@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230817.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 _0x4357=['_suggestionFactory','refresh','discard','nodeBefore','getSuggestion','model','getFirstRange','forceValue','insertTableRowAbove','item','execute','from','_setupColumnsRowsFixing','getRowIndexes','last','detach','every','suggestion','isInContent','removeTableColumn','setSelection','isEqual','MAX_SAFE_INTEGER','cell','nodeAfter','getContainedElement','*Insert:*\x20%0','push','subType','values','accept','toViewElement','get','$textProxy','min','_getSuggestionCoords','left','minRow','editor','removeClass','max','selectTableColumn','batch','map','writer','insertTableRowBelow','getItems','end','has','type','getCellLocation','registerElementLabel','TableUtils','start','addMarker:suggestion','join','_acceptFormatSuggestionCallbackFactory','insert','insertTableColumnLeft','createTableWalker','tableCell','change','name','add','above','showSuggestionHighlights','differ','table','startsWith','element','hasAttribute','data','span','first','highest','root','getColumnIndexes','TableEditing','filter','markMultiRangeInsertion','getChildren','createRangeOn','_splitMarkerName','classes','ELEMENT_TABLE','oldRange','plugins','_tablePostFixingSubtypes','tableRow','maxColumn','getRanges','minColumn','maxRow','markMultiRangeDeletion','tableColumn','mapper','position','_tableSuggestions','isTouching','ELEMENT_TABLE_COLUMN','enableCommand','removeTableRow','ELEMENT_TABLE_WITH_TEXT','MIN_SAFE_INTEGER','ELEMENT_TABLE_COLUMN_WITH_TEXT','ELEMENT_TABLE_ROW','options','isArray','order','findAncestor','$graveyard','afterInit','deletion','toLowerCase','substr','includes','isIntersectingWithRange','*Remove:*\x20%0','low','rootName','some','TrackChangesEditing','addRange','insertTable','insertion','enqueueChange','ELEMENT_TABLE_ROW_WITH_TEXT','length','commands','getAttribute','fromRange','document','rowspan','_descriptionFactory','colspan','change:data','getChangedMarkers','selection','tablePaste','registerCustomCallback','getSelectionAffectedTableCells'];(function(_0x3c1522,_0x4357f6){const _0x2d30f9=function(_0x55634a){while(--_0x55634a){_0x3c1522['push'](_0x3c1522['shift']());}};_0x2d30f9(++_0x4357f6);}(_0x4357,0x160));const _0x2d30=function(_0x3c1522,_0x4357f6){_0x3c1522=_0x3c1522-0x0;let _0x2d30f9=_0x4357[_0x3c1522];return _0x2d30f9;};import{Plugin as _0x26e358}from'ckeditor5/src/core';import{LiveRange as _0x547d2c}from'ckeditor5/src/engine';import{setHighlightHandling as _0x5538fe}from'ckeditor5/src/widget';import{getTranslation as _0x27cfbb}from'../utils/common-translations';export default class mt extends _0x26e358{constructor(_0x431a06){super(_0x431a06),this[_0x2d30('0x11')]=[_0x2d30('0x12'),_0x2d30('0x18')],this['_tableSuggestions']=new Set();}[_0x2d30('0x29')](){const _0x1fcf2a=this[_0x2d30('0x6d')],_0x1ed46b=_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x3d')][_0x2d30('0x43')];if(!_0x1fcf2a['plugins'][_0x2d30('0x77')](_0x2d30('0x7')))return;const _0x2e2249=_0x1fcf2a['locale'],_0x169b93=_0x1fcf2a[_0x2d30('0x10')][_0x2d30('0x67')]('TrackChangesEditing'),_0xd3ef8c=_0x1fcf2a[_0x2d30('0x10')]['get'](_0x2d30('0x7b'));_0x169b93[_0x2d30('0x3f')][_0x2d30('0x7a')](_0x2d30('0x8a'),_0x5815bc=>_0x27cfbb(_0x2e2249,_0x2d30('0xe'),_0x5815bc)),this[_0x2d30('0x53')](),_0x169b93[_0x2d30('0x1e')](_0x2d30('0x35')),_0x169b93['enableCommand']('selectTableRow'),_0x169b93['enableCommand'](_0x2d30('0x70'));for(const _0x51f2d5 of[_0x2d30('0x4f'),_0x2d30('0x74')]){const _0x34aacf=_0x1fcf2a[_0x2d30('0x3a')][_0x2d30('0x67')](_0x51f2d5);_0x169b93[_0x2d30('0x1e')](_0x51f2d5,_0x239f4e=>{_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x84')](_0x398a03=>{_0x239f4e();const _0x2b708b=_0x2d30('0x87')===_0x34aacf[_0x2d30('0x26')],_0x55df83=_0xd3ef8c[_0x2d30('0x46')](_0x1ed46b),_0x32f06d=_0xd3ef8c[_0x2d30('0x54')](_0x55df83),_0x1dc969=_0x2b708b?_0x32f06d['first']-0x1:_0x32f06d['last']+0x1,_0x426083=_0x55df83[0x0][_0x2d30('0x27')]('table'),_0x20b913=_0xd3ef8c['createTableWalker'](_0x426083,{'startRow':_0x1dc969,'endRow':_0x1dc969}),_0x367cc8=Array[_0x2d30('0x52')](_0x20b913)['map'](_0x8ec71f=>_0x398a03[_0x2d30('0xb')](_0x8ec71f[_0x2d30('0x5e')]));_0x169b93[_0x2d30('0x9')](_0x367cc8,_0x2d30('0x12'));});});}for(const _0x491e54 of[_0x2d30('0x81'),'insertTableColumnRight']){const _0x2a65fa=_0x1fcf2a[_0x2d30('0x3a')][_0x2d30('0x67')](_0x491e54);_0x169b93['enableCommand'](_0x491e54,_0x13b2ff=>{_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x84')](_0x353c10=>{_0x13b2ff();const _0xf7abbb=_0x2d30('0x6b')===_0x2a65fa[_0x2d30('0x26')],_0x374499=_0xd3ef8c['getSelectionAffectedTableCells'](_0x1ed46b),_0x5e893c=_0xd3ef8c[_0x2d30('0x6')](_0x374499),_0x243590=_0xf7abbb?_0x5e893c['first']-0x1:_0x5e893c[_0x2d30('0x55')]+0x1,_0x2d7c61=_0x374499[0x0][_0x2d30('0x27')]('table'),_0x439848=_0xd3ef8c['createTableWalker'](_0x2d7c61,{'startRow':0x0,'column':_0x243590,'includeAllSlots':!0x1}),_0x2c25dd=Array['from'](_0x439848)[_0x2d30('0x72')](_0x40d0bf=>_0x353c10[_0x2d30('0xb')](_0x40d0bf[_0x2d30('0x5e')]));_0x169b93[_0x2d30('0x9')](_0x2c25dd,_0x2d30('0x18'));});});}for(const _0x3a7f0c of['removeTableRow',_0x2d30('0x5a')]){const _0x448b54=_0x3a7f0c['substr'](0xb),_0x601f44=_0x448b54[_0x2d30('0x2b')](),_0x3862a9=_0x601f44['substr'](0x0,0x3)+'span',_0x1dcf7b=_0x2d30('0x8a')+_0x448b54,_0x25ce10=_0x2d30('0x69')+_0x448b54,_0x1980db=_0x2d30('0x6f')+_0x448b54;_0x169b93[_0x2d30('0x1e')](_0x3a7f0c,()=>{_0x1fcf2a['model'][_0x2d30('0x84')](_0x1c439b=>{const _0x194f0b=_0xd3ef8c[_0x2d30('0x46')](_0x1ed46b),_0x5f6748=_0x194f0b[0x0][_0x2d30('0x27')]('table');let _0x1fb981;if(_0x2d30('0x1f')==_0x3a7f0c){const _0x19835a=_0xd3ef8c[_0x2d30('0x54')](_0x194f0b);_0x1fb981={'startRow':_0x19835a[_0x2d30('0x3')],'endRow':_0x19835a[_0x2d30('0x55')],'includeAllSlots':!0x0};}else{const _0x3648e7=_0xd3ef8c[_0x2d30('0x6')](_0x194f0b);_0x1fb981={'startColumn':_0x3648e7['first'],'endColumn':_0x3648e7['last'],'includeAllSlots':!0x0};}const _0x21b5eb=_0xd3ef8c[_0x2d30('0x82')](_0x5f6748,_0x1fb981),_0x5a2dc9=Array[_0x2d30('0x52')](_0x21b5eb)['map'](({cell:_0x2d6aae})=>_0x2d6aae),_0x1d8377=se(_0x5a2dc9[_0x2d30('0x8')](_0x238eb0=>_0x238eb0[_0x2d30('0x0')](_0x3862a9))),_0x4da698=se(_0x5a2dc9['filter'](_0x176e08=>!_0x176e08[_0x2d30('0x0')](_0x3862a9)))['map'](_0x16f854=>_0x1c439b[_0x2d30('0xb')](_0x16f854)),_0x5b406f=_0x169b93[_0x2d30('0x17')](_0x4da698,_0x1dcf7b);if(_0x5b406f&&(_0x2d30('0x12')==_0x5b406f[_0x2d30('0x63')]||_0x2d30('0x18')==_0x5b406f[_0x2d30('0x63')])){const _0x749fab=this[_0x2d30('0x6a')](_0x5b406f);for(const _0x494ddf of _0x1d8377){const _0x497fd0=_0x1c439b['createRangeOn'](_0x494ddf),_0x38ffb3=_0xd3ef8c[_0x2d30('0x79')](_0x494ddf),_0x4c0c36=_0x494ddf['getAttribute'](_0x3862a9)-0x1,_0x10f33e=_0x749fab[_0x25ce10],_0x2913f1=_0x749fab[_0x1980db];_0x10f33e<=_0x38ffb3[_0x601f44]&&_0x38ffb3[_0x601f44]+_0x4c0c36<=_0x2913f1&&_0x5b406f[_0x2d30('0x34')](_0x497fd0);}}});});}function _0x11eff1(_0x50a623){const _0x34e03c=Array[_0x2d30('0x52')](_0x1ed46b['getRanges']())[_0x2d30('0x72')](_0x2f9235=>_0x547d2c[_0x2d30('0x3c')](_0x2f9235));_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x84')](_0x33118c=>{const _0x424e04=_0x33118c[_0x2d30('0x71')];_0x50a623=_0x50a623['filter'](_0x2b9d58=>_0x2d30('0x28')!=_0x2b9d58[_0x2d30('0x5')][_0x2d30('0x31')]),_0x33118c['setSelection'](_0x50a623),_0x1fcf2a[_0x2d30('0x3a')][_0x2d30('0x67')]('removeTableRow')[_0x2d30('0x48')](),_0x1fcf2a['execute'](_0x2d30('0x1f'),{'forceDefaultExecution':!0x0}),_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x37')](()=>{_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x37')](_0x424e04,_0x5445ee=>{const _0x27f3ee=_0x34e03c[_0x2d30('0x8')](_0x25d4f7=>_0x2d30('0x28')!=_0x25d4f7[_0x2d30('0x5')]['rootName']);_0x27f3ee[_0x2d30('0x39')]>0x0&&_0x5445ee[_0x2d30('0x5b')](_0x27f3ee);for(const _0x5ef225 of _0x34e03c)_0x5ef225['detach']();});});});}function _0x1c4a5b(_0x2542e4){_0x1fcf2a[_0x2d30('0x4c')][_0x2d30('0x84')](_0x4c2b10=>{const _0x50a6dc=Array[_0x2d30('0x52')](_0x1ed46b[_0x2d30('0x14')]())[_0x2d30('0x72')](_0x1ffa9e=>_0x547d2c['fromRange'](_0x1ffa9e)),_0x2663ab=[];for(const _0x21e59f of _0x2542e4)for(const _0xe01309 of _0x21e59f['getItems']({'shallow':!0x0}))_0x2663ab[_0x2d30('0x62')](_0xe01309);for(const _0x5cf2db of _0x2663ab)'$graveyard'!=_0x5cf2db['root']['rootName']&&(_0x4c2b10[_0x2d30('0x5b')](_0x4c2b10['createPositionAt'](_0x5cf2db,0x0)),_0x1fcf2a[_0x2d30('0x3a')]['get']('removeTableColumn')['refresh'](),_0x1fcf2a[_0x2d30('0x51')](_0x2d30('0x5a'),{'forceDefaultExecution':!0x0}));const _0x5c220b=_0x50a6dc[_0x2d30('0x8')](_0x2e96b9=>'$graveyard'!=_0x2e96b9[_0x2d30('0x5')][_0x2d30('0x31')]);_0x5c220b[_0x2d30('0x39')]>0x0&&_0x4c2b10[_0x2d30('0x5b')](_0x5c220b);for(const _0x319f50 of _0x50a6dc)_0x319f50[_0x2d30('0x56')]();});}function _0x1574bb(_0x9fc272,_0xa28cbb){return _0xa28cbb[_0x2d30('0x57')](_0x3ffa30=>_0x9fc272['some'](_0xdd64a2=>_0xdd64a2[_0x2d30('0x76')][_0x2d30('0x5c')](_0x3ffa30[_0x2d30('0x7c')])||_0x3ffa30[_0x2d30('0x76')][_0x2d30('0x5c')](_0xdd64a2['start'])));}function _0x50b425(_0xe99f56,_0x3cf131){return _0xe99f56['some'](_0x19e240=>_0x3cf131[_0x2d30('0x32')](_0x28c90a=>_0x19e240[_0x2d30('0x76')][_0x2d30('0x1c')](_0x28c90a[_0x2d30('0x7c')])));}_0x1fcf2a[_0x2d30('0x1')]['downcastDispatcher']['on'](_0x2d30('0x7d'),(_0x55e1e5,_0x44bae5,_0x18c9d6)=>{if(!_0x18c9d6[_0x2d30('0x24')][_0x2d30('0x88')])return;const _0x2ecce8=_0x44bae5[_0x2d30('0x50')];if(!_0x2ecce8)return;const _0x5e2ec8=_0x18c9d6[_0x2d30('0x19')][_0x2d30('0x66')](_0x2ecce8);function _0x1c331e(_0x10ed47){return Array[_0x2d30('0x25')](_0x10ed47)?_0x10ed47:[_0x10ed47];}_0x5e2ec8&&_0x2d30('0x83')===_0x2ecce8[_0x2d30('0x85')]&&_0x5538fe(_0x5e2ec8,_0x18c9d6[_0x2d30('0x73')],(_0x5b7bf1,_0x1b2eb2,_0x47e7ba)=>_0x47e7ba['addClass'](_0x1c331e(_0x1b2eb2[_0x2d30('0xd')]),_0x5b7bf1),(_0x5c3c24,_0x1f1493,_0x305ac5)=>_0x305ac5[_0x2d30('0x6e')](_0x1c331e(_0x1f1493[_0x2d30('0xd')]),_0x5c3c24));},{'priority':_0x2d30('0x4')}),_0x169b93[_0x2d30('0x3f')]['registerDescriptionCallback'](_0x3de7bd=>{if(_0x2d30('0x36')!=_0x3de7bd[_0x2d30('0x78')]&&'deletion'!=_0x3de7bd[_0x2d30('0x78')])return;const _0x12ec7a=_0x3de7bd[_0x2d30('0x60')]();if(null!=_0x12ec7a&&_0x12ec7a['is'](_0x2d30('0x8c'),_0x2d30('0x8a'))){if(_0x2d30('0x36')==_0x3de7bd[_0x2d30('0x78')]){const _0x83360a=_0x3de7bd[_0x2d30('0x75')]()[_0x2d30('0x8')](_0x225f6d=>_0x225f6d['is'](_0x2d30('0x68')))['map'](_0x5b789b=>_0x5b789b['data']);if(_0x83360a['length'])return{'type':_0x2d30('0x36'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x61'),_0x27cfbb(_0x2e2249,_0x2d30('0x20'),'\x22'+_0x83360a[_0x2d30('0x7e')]('\x20')+'\x22'))};}if(_0x2d30('0x2a')==_0x3de7bd[_0x2d30('0x78')]){const _0x528b6e=_0x3de7bd[_0x2d30('0x75')]()[_0x2d30('0x8')](_0x1ee8a5=>_0x1ee8a5['is'](_0x2d30('0x68')))['map'](_0x52a85e=>_0x52a85e[_0x2d30('0x1')]);if(_0x528b6e[_0x2d30('0x39')])return{'type':'deletion','content':_0x27cfbb(_0x2e2249,_0x2d30('0x2f'),_0x27cfbb(_0x2e2249,_0x2d30('0x20'),'\x22'+_0x528b6e['join']('\x20')+'\x22'))};}}}),_0x169b93[_0x2d30('0x3f')]['registerDescriptionCallback'](_0x10d011=>{if('tableRow'==_0x10d011[_0x2d30('0x63')]){const _0x5bbaf9=_0x10d011[_0x2d30('0x75')]()['filter'](_0x278b73=>_0x278b73['is'](_0x2d30('0x68')))[_0x2d30('0x72')](_0x4d5514=>_0x4d5514[_0x2d30('0x1')]),_0x4dd4ec=this['_getSuggestionCoords'](_0x10d011),_0x50393f=_0x4dd4ec[_0x2d30('0x16')]-_0x4dd4ec[_0x2d30('0x6c')]+0x1;if(_0x2d30('0x36')==_0x10d011[_0x2d30('0x78')])return _0x5bbaf9[_0x2d30('0x39')]?{'type':_0x2d30('0x36'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x61'),_0x27cfbb(_0x2e2249,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x50393f,'\x22'+_0x5bbaf9[_0x2d30('0x7e')]('\x20')+'\x22']))}:{'type':_0x2d30('0x36'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x61'),_0x27cfbb(_0x2e2249,_0x2d30('0x23'),_0x50393f))};if(_0x2d30('0x2a')==_0x10d011[_0x2d30('0x78')])return _0x5bbaf9[_0x2d30('0x39')]?{'type':'deletion','content':_0x27cfbb(_0x2e2249,_0x2d30('0x2f'),_0x27cfbb(_0x2e2249,_0x2d30('0x38'),[_0x50393f,'\x22'+_0x5bbaf9[_0x2d30('0x7e')]('\x20')+'\x22']))}:{'type':_0x2d30('0x2a'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x2f'),_0x27cfbb(_0x2e2249,_0x2d30('0x23'),_0x50393f))};}if(_0x2d30('0x18')==_0x10d011[_0x2d30('0x63')]){const _0x4af8b4=_0x10d011[_0x2d30('0x75')]()['filter'](_0x32fbc6=>_0x32fbc6['is']('$textProxy'))[_0x2d30('0x72')](_0x16c8fb=>_0x16c8fb[_0x2d30('0x1')]),_0x4413dd=this['_getSuggestionCoords'](_0x10d011),_0x2d9636=_0x4413dd[_0x2d30('0x13')]-_0x4413dd[_0x2d30('0x15')]+0x1;if(_0x2d30('0x36')==_0x10d011[_0x2d30('0x78')])return _0x4af8b4[_0x2d30('0x39')]?{'type':'insertion','content':_0x27cfbb(_0x2e2249,_0x2d30('0x61'),_0x27cfbb(_0x2e2249,_0x2d30('0x22'),[_0x2d9636,'\x22'+_0x4af8b4['join']('\x20')+'\x22']))}:{'type':_0x2d30('0x36'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x61'),_0x27cfbb(_0x2e2249,_0x2d30('0x1d'),_0x2d9636))};if(_0x2d30('0x2a')==_0x10d011[_0x2d30('0x78')])return _0x4af8b4[_0x2d30('0x39')]?{'type':'deletion','content':_0x27cfbb(_0x2e2249,'*Remove:*\x20%0',_0x27cfbb(_0x2e2249,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d9636,'\x22'+_0x4af8b4['join']('\x20')+'\x22']))}:{'type':_0x2d30('0x2a'),'content':_0x27cfbb(_0x2e2249,_0x2d30('0x2f'),_0x27cfbb(_0x2e2249,_0x2d30('0x1d'),_0x2d9636))};}}),_0x169b93[_0x2d30('0x47')]['registerCustomCallback'](_0x2d30('0x36'),_0x2d30('0x12'),'discard',_0x11eff1),_0x169b93[_0x2d30('0x47')]['registerCustomCallback'](_0x2d30('0x2a'),_0x2d30('0x12'),_0x2d30('0x65'),_0x11eff1),_0x169b93[_0x2d30('0x47')][_0x2d30('0x45')](_0x2d30('0x36'),_0x2d30('0x18'),_0x2d30('0x49'),_0x1c4a5b),_0x169b93['_suggestionFactory'][_0x2d30('0x45')](_0x2d30('0x2a'),'tableColumn',_0x2d30('0x65'),_0x1c4a5b),_0x169b93['_suggestionFactory'][_0x2d30('0x45')](_0x2d30('0x36'),_0x2d30('0x18'),_0x2d30('0x7e'),_0x1574bb),_0x169b93[_0x2d30('0x47')][_0x2d30('0x45')](_0x2d30('0x2a'),'tableColumn',_0x2d30('0x7e'),_0x1574bb),_0x169b93[_0x2d30('0x47')][_0x2d30('0x45')](_0x2d30('0x36'),_0x2d30('0x12'),_0x2d30('0x7e'),_0x50b425),_0x169b93[_0x2d30('0x47')][_0x2d30('0x45')](_0x2d30('0x2a'),_0x2d30('0x12'),_0x2d30('0x7e'),_0x50b425);}[_0x2d30('0x7f')](){const _0x44b65b=this[_0x2d30('0x6d')],_0xa84f7d=_0x44b65b[_0x2d30('0x4c')]['document'][_0x2d30('0x43')];return(_0x546057,_0x3f873e)=>{_0x44b65b[_0x2d30('0x4c')][_0x2d30('0x84')](_0x3e2c67=>{const {commandName:_0x50ad00,commandParams:_0x54681d}=_0x3f873e;let _0x26ad2b=_0x546057[0x0][_0x2d30('0x76')][_0x2d30('0x4a')];_0x54681d&&_0x54681d[0x0]&&!0x1===_0x54681d[0x0][_0x2d30('0x4e')]&&(_0x26ad2b=_0x546057[0x0][_0x2d30('0x7c')][_0x2d30('0x5f')]);const _0x590b85=_0x3e2c67['createRangeIn'](_0x26ad2b);if(_0x2d30('0x28')==_0x590b85['root'][_0x2d30('0x31')])return;const _0x501b11=Array[_0x2d30('0x52')](_0xa84f7d['getRanges']())[_0x2d30('0x72')](_0x1f8f13=>_0x547d2c['fromRange'](_0x1f8f13));_0x3e2c67[_0x2d30('0x5b')](_0x590b85),_0x44b65b[_0x2d30('0x3a')][_0x2d30('0x67')](_0x50ad00)['refresh'](),_0x54681d['push']({'forceDefaultExecution':!0x0}),_0x44b65b['execute'](_0x50ad00,..._0x54681d);const _0x5a427f=_0x501b11['filter'](_0x72c097=>_0x2d30('0x28')!=_0x72c097[_0x2d30('0x5')]['rootName']);_0x5a427f[_0x2d30('0x39')]>0x0&&_0x3e2c67['setSelection'](_0x5a427f);for(const _0x12fb28 of _0x501b11)_0x12fb28[_0x2d30('0x56')]();});};}['_getCoordsForCells'](_0x1689ac){const _0x46517d=this[_0x2d30('0x6d')][_0x2d30('0x10')][_0x2d30('0x67')]('TableUtils');let _0x4ab4af=Number[_0x2d30('0x5d')],_0x354c7f=Number['MIN_SAFE_INTEGER'],_0x741c57=Number[_0x2d30('0x5d')],_0x4d230c=Number[_0x2d30('0x21')];for(const _0x28265f of _0x1689ac){if(_0x2d30('0x28')==_0x28265f[_0x2d30('0x5')][_0x2d30('0x31')])continue;const {row:_0x1ce517,column:_0x3aec41}=_0x46517d[_0x2d30('0x79')](_0x28265f),_0x1630db=_0x28265f[_0x2d30('0x0')]('rowspan')?_0x28265f[_0x2d30('0x3b')](_0x2d30('0x3e'))-0x1:0x0,_0x132506=_0x28265f['hasAttribute'](_0x2d30('0x40'))?_0x28265f[_0x2d30('0x3b')]('colspan')-0x1:0x0;_0x4ab4af=_0x1ce517<_0x4ab4af?_0x1ce517:_0x4ab4af,_0x354c7f=_0x1ce517+_0x1630db>_0x354c7f?_0x1ce517+_0x1630db:_0x354c7f,_0x741c57=_0x3aec41<_0x741c57?_0x3aec41:_0x741c57,_0x4d230c=_0x3aec41+_0x132506>_0x4d230c?_0x3aec41+_0x132506:_0x4d230c;}return{'minRow':_0x4ab4af,'maxRow':_0x354c7f,'minColumn':_0x741c57,'maxColumn':_0x4d230c};}[_0x2d30('0x53')](){const _0x75043f=this[_0x2d30('0x6d')],_0x31f702=_0x75043f[_0x2d30('0x10')][_0x2d30('0x67')](_0x2d30('0x33')),_0x5ce556=_0x75043f[_0x2d30('0x10')][_0x2d30('0x67')](_0x2d30('0x7b'));_0x75043f['model'][_0x2d30('0x3d')]['on'](_0x2d30('0x41'),()=>{const _0x3d87f9=Array['from'](_0x75043f[_0x2d30('0x4c')][_0x2d30('0x3d')][_0x2d30('0x89')][_0x2d30('0x42')]());for(const {name:_0x23a28e,data:_0x1c34c5}of _0x3d87f9){const {group:_0x1ea03a,id:_0x44bcca,subType:_0x436164}=_0x31f702[_0x2d30('0xc')](_0x23a28e);if(_0x2d30('0x58')!=_0x1ea03a)continue;if(null!=_0x1c34c5[_0x2d30('0xf')])continue;const _0xa3e436=_0x31f702[_0x2d30('0x4b')](_0x44bcca);this[_0x2d30('0x11')][_0x2d30('0x2d')](_0x436164)&&this['_tableSuggestions'][_0x2d30('0x86')](_0xa3e436);}},{'priority':_0x2d30('0x30')});const _0x5d1b90=(_0x34d7d4,_0x198242)=>{let _0x2b5d51=!0x1;const _0x53039a=_0x198242[_0x2d30('0xb')](_0x34d7d4),_0x1f7515=_0x34d7d4[_0x2d30('0x27')]('table'),_0x5b4ced=_0x5ce556[_0x2d30('0x79')](_0x34d7d4);for(const _0x1398bd of this[_0x2d30('0x1b')]){const _0x23a5a6=_0x1398bd[_0x2d30('0x63')],_0x37bd70=_0x23a5a6[_0x2d30('0x8b')](_0x2d30('0x44')),_0x40935d=_0x23a5a6[_0x2d30('0x2c')](_0x37bd70?0xa:0x5),_0x952408=_0x40935d['toLowerCase'](),_0x291242=_0x952408[_0x2d30('0x2c')](0x0,0x3)+_0x2d30('0x2'),_0x5804db=_0x2d30('0x69')+_0x40935d,_0x18c1f0=_0x2d30('0x6f')+_0x40935d;if(!_0x1398bd[_0x2d30('0x59')])continue;if(_0x1f7515!=_0x1398bd[_0x2d30('0x4d')]()[_0x2d30('0x7c')][_0x2d30('0x27')](_0x2d30('0x8a')))continue;if(_0x1398bd[_0x2d30('0x2e')](_0x53039a))continue;const _0x2fb941=_0x34d7d4[_0x2d30('0x0')](_0x291242)?_0x34d7d4['getAttribute'](_0x291242)-0x1:0x0,_0x472bfa=this[_0x2d30('0x6a')](_0x1398bd),_0x25c1bf=_0x472bfa[_0x5804db],_0x3150a7=_0x472bfa[_0x18c1f0];_0x25c1bf<=_0x5b4ced[_0x952408]&&_0x5b4ced[_0x952408]+_0x2fb941<=_0x3150a7&&(_0x1398bd[_0x2d30('0x34')](_0x53039a),_0x2b5d51=!0x0);}return _0x2b5d51;};_0x75043f[_0x2d30('0x4c')][_0x2d30('0x3d')]['registerPostFixer'](_0x3302f3=>{let _0x300c1c=!0x1;for(const _0x4df93a of _0x75043f['model'][_0x2d30('0x3d')][_0x2d30('0x89')]['getChanges']())if(_0x2d30('0x80')==_0x4df93a[_0x2d30('0x78')]){if(_0x2d30('0x12')==_0x4df93a[_0x2d30('0x85')])for(const _0x192285 of _0x4df93a[_0x2d30('0x1a')]['nodeAfter'][_0x2d30('0xa')]())_0x300c1c=_0x300c1c||_0x5d1b90(_0x192285,_0x3302f3);else _0x2d30('0x83')==_0x4df93a['name']&&(_0x300c1c=_0x300c1c||_0x5d1b90(_0x4df93a[_0x2d30('0x1a')]['nodeAfter'],_0x3302f3));}return _0x300c1c;});}[_0x2d30('0x6a')](_0x1f43ac){return this['_getCoordsForCells'](_0x1f43ac[_0x2d30('0x14')]()[_0x2d30('0x72')](_0x526718=>_0x526718[_0x2d30('0x7c')][_0x2d30('0x5f')]));}}function se(_0x1b4df1){return Array['from'](new Set(_0x1b4df1)[_0x2d30('0x64')]());}
|
|
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'));}}
|