@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230816.0 → 0.0.0-nightly-20230817.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 _0x3986=['getAttribute','unshift','bind','listStyle','document','reversed','registerDescriptionCallback','listStart','backward','markMultiRangeBlockFormat','editor','before','map','commandName','enableCommand','config','toUpperCase','has','flat','element','filter','locale','getSiblingNodes','listType','type','getFirstPosition','commandParams','handleListReversedCommand','change','push','format','afterInit','_getTranslationKeyForListStyle','createPositionAt','handleListStyleCommand','startIndex','ListUtils','styles','model','selection','get','listItem','ELEMENT_','getListTypeFromListStyleType','createRange','getSelectedBlocks','numbered','TrackChangesEditing','parent','listReversed','*Format:*\x20set\x20start\x20index\x20to\x20%0','_descriptionFactory','forward','*Change\x20to:*\x20%0','_getSuggestionBlocks','_LIST_','length','handleListStartCommand','plugins','handleDescriptions','from'];(function(_0x14f2bd,_0x3986a9){const _0x493e03=function(_0x266b0b){while(--_0x266b0b){_0x14f2bd['push'](_0x14f2bd['shift']());}};_0x493e03(++_0x3986a9);}(_0x3986,0xbc));const _0x493e=function(_0x14f2bd,_0x3986a9){_0x14f2bd=_0x14f2bd-0x0;let _0x493e03=_0x3986[_0x14f2bd];return _0x493e03;};import{Plugin as _0x1f719d}from'ckeditor5/src/core';import{getTranslation as _0x22f367}from'../utils/common-translations';export default class nt extends _0x1f719d{[_0x493e('0x1a')](){if(!this['editor'][_0x493e('0x35')][_0x493e('0xc')]('ListPropertiesEditing'))return;const _0x2d5ec9=this[_0x493e('0x5')][_0x493e('0xa')][_0x493e('0x23')]('list.properties'),_0x4e97ac=this[_0x493e('0x5')]['plugins'][_0x493e('0x23')](_0x493e('0x2a'));_0x2d5ec9[_0x493e('0x20')]&&_0x4e97ac[_0x493e('0x9')]('listStyle',this[_0x493e('0x1d')][_0x493e('0x3a')](this)),_0x2d5ec9[_0x493e('0x0')]&&_0x4e97ac[_0x493e('0x9')](_0x493e('0x2c'),this[_0x493e('0x16')][_0x493e('0x3a')](this)),_0x2d5ec9[_0x493e('0x1e')]&&_0x4e97ac[_0x493e('0x9')](_0x493e('0x2'),this[_0x493e('0x34')][_0x493e('0x3a')](this)),_0x4e97ac[_0x493e('0x2e')][_0x493e('0x1')](this['handleDescriptions']['bind'](this));}[_0x493e('0x1d')](_0x5100c3,_0x4daeb2={}){const _0x299740=this[_0x493e('0x5')][_0x493e('0x35')][_0x493e('0x23')](_0x493e('0x2a')),_0xfa4ebe=this['_getSuggestionBlocksForListStyle']();this[_0x493e('0x5')][_0x493e('0x21')]['change'](()=>{_0x299740[_0x493e('0x4')](_0xfa4ebe,{'commandName':_0x493e('0x3b'),'commandParams':[{'type':_0x4daeb2[_0x493e('0x13')]}],'formatGroupId':_0x493e('0x3b')});});}[_0x493e('0x16')](_0x6d05f4,_0x5bc3cd={}){const _0xc126a3=this[_0x493e('0x5')][_0x493e('0x35')][_0x493e('0x23')]('TrackChangesEditing'),_0x38222a=this[_0x493e('0x31')](_0x26bcfb=>_0x26bcfb['is'](_0x493e('0xe'),_0x493e('0x24'))&&_0x493e('0x29')===_0x26bcfb[_0x493e('0x38')]('listType'));if(_0x38222a['length']<0x1)return;const _0x3cdc81=_0x38222a[_0x493e('0x7')](_0x3838c7=>this[_0x493e('0x5')]['model'][_0x493e('0x27')](this[_0x493e('0x5')][_0x493e('0x21')][_0x493e('0x1c')](_0x3838c7,_0x493e('0x6')),this['editor'][_0x493e('0x21')][_0x493e('0x1c')](_0x3838c7,0x0)));this[_0x493e('0x5')]['model'][_0x493e('0x17')](()=>{_0xc126a3[_0x493e('0x4')](_0x3cdc81,{'commandName':_0x493e('0x2c'),'commandParams':[{'reversed':_0x5bc3cd[_0x493e('0x0')]}],'formatGroupId':_0x493e('0x2c')});});}[_0x493e('0x34')](_0x430de7,_0x2bb93d={}){const _0x37a4ff=this[_0x493e('0x5')]['plugins']['get'](_0x493e('0x2a')),_0x212875=this['_getSuggestionBlocks'](_0x4ee821=>_0x4ee821['is'](_0x493e('0xe'),_0x493e('0x24'))&&_0x493e('0x29')===_0x4ee821['getAttribute'](_0x493e('0x12')));if(_0x212875[_0x493e('0x33')]<0x1)return;const _0x4bc7e7=_0x212875[_0x493e('0x7')](_0x5de053=>this[_0x493e('0x5')][_0x493e('0x21')][_0x493e('0x27')](this[_0x493e('0x5')][_0x493e('0x21')][_0x493e('0x1c')](_0x5de053,_0x493e('0x6')),this[_0x493e('0x5')][_0x493e('0x21')]['createPositionAt'](_0x5de053,0x0)));this[_0x493e('0x5')]['model'][_0x493e('0x17')](()=>{_0x37a4ff[_0x493e('0x4')](_0x4bc7e7,{'commandName':_0x493e('0x2'),'commandParams':[{'startIndex':_0x2bb93d[_0x493e('0x1e')]}],'formatGroupId':_0x493e('0x2')});});}[_0x493e('0x36')](_0x3bca3c){const _0x122861=this[_0x493e('0x5')][_0x493e('0x10')],{data:_0x237b88}=_0x3bca3c;if(!_0x237b88)return;let _0x24f176,_0x5128ab;switch(_0x237b88[_0x493e('0x8')]){case _0x493e('0x3b'):_0x24f176=_0x493e('0x30'),_0x5128ab={'type':_0x493e('0x19'),'content':_0x22f367(_0x122861,_0x24f176,_0x22f367(_0x122861,this[_0x493e('0x1b')](_0x237b88['commandParams'][0x0][_0x493e('0x13')])))};break;case _0x493e('0x2c'):_0x24f176=_0x237b88[_0x493e('0x15')][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5128ab={'type':'format','content':_0x22f367(_0x122861,_0x24f176)};break;case'listStart':_0x24f176=_0x493e('0x2d'),_0x5128ab={'type':_0x493e('0x19'),'content':_0x22f367(_0x122861,_0x24f176,_0x237b88[_0x493e('0x15')][0x0]['startIndex'])};}return _0x5128ab;}['_getSuggestionBlocksForListStyle'](){var _0x3ed78c,_0x85ef63,_0x489e31,_0x18e509;const _0x49801c=this['editor'][_0x493e('0x35')][_0x493e('0x23')](_0x493e('0x1f'));let _0x21dda0=Array[_0x493e('0x37')](this['editor'][_0x493e('0x21')][_0x493e('0x3c')][_0x493e('0x22')][_0x493e('0x28')]());return(null===(_0x3ed78c=_0x21dda0[0x0])||void 0x0===_0x3ed78c?void 0x0:_0x3ed78c['is'](_0x493e('0xe'),_0x493e('0x24')))&&_0x21dda0[_0x493e('0x39')](..._0x49801c['getSiblingNodes'](this[_0x493e('0x5')]['model'][_0x493e('0x3c')][_0x493e('0x22')][_0x493e('0x14')](),_0x493e('0x3'))),(null===(_0x85ef63=_0x21dda0[_0x21dda0[_0x493e('0x33')]-0x1])||void 0x0===_0x85ef63?void 0x0:_0x85ef63['is'](_0x493e('0xe'),_0x493e('0x24')))&&_0x21dda0[_0x493e('0x18')](..._0x49801c[_0x493e('0x11')](this[_0x493e('0x5')][_0x493e('0x21')][_0x493e('0x3c')][_0x493e('0x22')]['getLastPosition'](),'forward')),_0x21dda0=[...new Set(_0x21dda0)],(null===(_0x18e509=null===(_0x489e31=this[_0x493e('0x5')][_0x493e('0x21')][_0x493e('0x3c')][_0x493e('0x22')][_0x493e('0x14')]())||void 0x0===_0x489e31?void 0x0:_0x489e31[_0x493e('0x2b')])||void 0x0===_0x18e509?void 0x0:_0x18e509['is'](_0x493e('0xe'),_0x493e('0x24')))&&(_0x21dda0=_0x21dda0['filter'](_0x5be163=>_0x5be163['is']('element',_0x493e('0x24')))),_0x21dda0;}[_0x493e('0x31')](_0x12fc34){const _0x5678a5=this[_0x493e('0x5')]['plugins'][_0x493e('0x23')](_0x493e('0x1f'));let _0x205d1e=Array[_0x493e('0x37')](this[_0x493e('0x5')][_0x493e('0x21')][_0x493e('0x3c')][_0x493e('0x22')][_0x493e('0x28')]())[_0x493e('0xf')](_0x12fc34)[_0x493e('0x7')](_0x5116c5=>{const _0x58d8ea=this[_0x493e('0x5')][_0x493e('0x21')][_0x493e('0x1c')](_0x5116c5,0x0);return[..._0x5678a5[_0x493e('0x11')](_0x58d8ea,'backward'),..._0x5678a5[_0x493e('0x11')](_0x58d8ea,_0x493e('0x2f'))];})[_0x493e('0xd')]();return _0x205d1e=[...new Set(_0x205d1e)],_0x205d1e;}[_0x493e('0x1b')](_0x3f98c5){return _0x493e('0x25')+this['editor']['plugins'][_0x493e('0x23')](_0x493e('0x1f'))[_0x493e('0x26')](_0x3f98c5)[_0x493e('0xb')]()+_0x493e('0x32')+_0x3f98c5[_0x493e('0xb')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x575d=['editor','afterInit','data','enableCommand','downcastDispatcher','MediaEmbedEditing','plugins','for','high','get','options','stop','dataDowncast','createEmptyElement','media','attribute:url:media','_descriptionFactory','TrackChangesEditing','registerElementLabel','showSuggestionHighlights','elementToElement'];(function(_0x5082a4,_0x575dc5){const _0x12d843=function(_0x3c582d){while(--_0x3c582d){_0x5082a4['push'](_0x5082a4['shift']());}};_0x12d843(++_0x575dc5);}(_0x575d,0x1b6));const _0x12d8=function(_0x5082a4,_0x575dc5){_0x5082a4=_0x5082a4-0x0;let _0x12d843=_0x575d[_0x5082a4];return _0x12d843;};import{Plugin as _0x4ceabc}from'ckeditor5/src/core';import{getTranslation as _0x536278}from'../utils/common-translations';export default class ot extends _0x4ceabc{[_0x12d8('0x4')](){const _0x1c19be=this[_0x12d8('0x3')];if(!_0x1c19be['plugins']['has'](_0x12d8('0x8')))return;const _0xbdfd65=_0x1c19be[_0x12d8('0x9')][_0x12d8('0xc')](_0x12d8('0x14')),_0x2ecd0c=_0x1c19be['locale'];_0xbdfd65[_0x12d8('0x6')]('mediaEmbed'),_0xbdfd65[_0x12d8('0x13')][_0x12d8('0x0')](_0x12d8('0x11'),_0x55c885=>_0x536278(_0x2ecd0c,'ELEMENT_MEDIA',_0x55c885)),_0x1c19be['conversion'][_0x12d8('0xa')](_0x12d8('0xf'))[_0x12d8('0x2')]({'model':_0x12d8('0x11'),'view':(_0x5bf9dd,{writer:_0x581d7a,options:_0x199fbf})=>{if(_0x199fbf[_0x12d8('0x1')])return _0x581d7a[_0x12d8('0x10')]('div');},'converterPriority':_0x12d8('0xb')}),_0x1c19be[_0x12d8('0x5')][_0x12d8('0x7')]['on'](_0x12d8('0x12'),(_0x17d22e,_0x206ac3,_0x372fbe)=>{_0x372fbe[_0x12d8('0xd')][_0x12d8('0x1')]&&_0x17d22e[_0x12d8('0xe')]();},{'priority':_0x12d8('0xb')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x503f=['get','afterInit','plugins','editor','has','TrackChangesEditing','enableCommand'];(function(_0x5a33f3,_0x503f2e){const _0x3abb3a=function(_0x4d2766){while(--_0x4d2766){_0x5a33f3['push'](_0x5a33f3['shift']());}};_0x3abb3a(++_0x503f2e);}(_0x503f,0x1df));const _0x3abb=function(_0x5a33f3,_0x503f2e){_0x5a33f3=_0x5a33f3-0x0;let _0x3abb3a=_0x503f[_0x5a33f3];return _0x3abb3a;};import{Plugin as _0x41fc97}from'ckeditor5/src/core';export default class rt extends _0x41fc97{[_0x3abb('0x5')](){const _0x4f7457=this[_0x3abb('0x0')];_0x4f7457[_0x3abb('0x6')][_0x3abb('0x1')]('MentionEditing')&&_0x4f7457[_0x3abb('0x6')][_0x3abb('0x4')](_0x3abb('0x2'))[_0x3abb('0x3')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1dd7=['locale','TrackChangesEditing','PageBreakEditing','afterInit','_descriptionFactory','plugins','has','get','pageBreak','ELEMENT_PAGE_BREAK','registerElementLabel','enableCommand'];(function(_0x1648d2,_0x1dd745){const _0x490195=function(_0x563ba8){while(--_0x563ba8){_0x1648d2['push'](_0x1648d2['shift']());}};_0x490195(++_0x1dd745);}(_0x1dd7,0xc1));const _0x4901=function(_0x1648d2,_0x1dd745){_0x1648d2=_0x1648d2-0x0;let _0x490195=_0x1dd7[_0x1648d2];return _0x490195;};import{Plugin as _0x36ec15}from'ckeditor5/src/core';import{getTranslation as _0x3ae146}from'../utils/common-translations';export default class at extends _0x36ec15{[_0x4901('0x2')](){const _0x3eeadd=this['editor'];if(!_0x3eeadd[_0x4901('0x4')][_0x4901('0x5')](_0x4901('0x1')))return;_0x3eeadd[_0x4901('0x4')][_0x4901('0x6')](_0x4901('0x0'))[_0x4901('0xa')](_0x4901('0x7'));const _0x1babb0=_0x3eeadd['plugins'][_0x4901('0x6')]('TrackChangesEditing'),_0x299a37=_0x3eeadd[_0x4901('0xb')];_0x1babb0[_0x4901('0x3')][_0x4901('0x9')](_0x4901('0x7'),_0x1d3222=>_0x3ae146(_0x299a37,_0x4901('0x8'),_0x1d3222));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2506=['getSelectedBlocks','schema','ELEMENT_PARAGRAPH','get','writer','registerDescriptionCallback','model','ck-suggestion-marker--active','markerRange','registerElementLabel','selection','_descriptionFactory','afterInit','showSuggestionHighlights','options','start','isLimit','change','commandName','format','checkChild','markBlockFormat','addClass','editor','locale','isTouching','TrackChangesEditing','createUIElement','type','mapper','bindElementToMarker','*Change\x20to:*\x20%0','consume','includes','span','highest','activeMarkers','toViewPosition','$text','editing','paragraph','markerName','nodeAfter','ck-suggestion-marker-split','has','blockName','isBlock','document','consumable','data','name','Paragraph','enableCommand','getItemLabel','plugins','insertion'];(function(_0x3d8da1,_0x250667){const _0x1a3981=function(_0x5a6e3a){while(--_0x5a6e3a){_0x3d8da1['push'](_0x3d8da1['shift']());}};_0x1a3981(++_0x250667);}(_0x2506,0x166));const _0x1a39=function(_0x3d8da1,_0x250667){_0x3d8da1=_0x3d8da1-0x0;let _0x1a3981=_0x2506[_0x3d8da1];return _0x1a3981;};import{Plugin as _0x893443}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5da4ae}from'./utils';import{getTranslation as _0x475be8}from'../utils/common-translations';export default class ct extends _0x893443{[_0x1a39('0x2e')](){const _0x295164=this[_0x1a39('0x1')];if(!_0x295164[_0x1a39('0x20')][_0x1a39('0x16')](_0x1a39('0x1d')))return;const _0xb5b5cc=_0x295164[_0x1a39('0x2')],_0x451b07=_0x295164[_0x1a39('0x20')]['get']('TrackChangesEditing');_0x451b07['_descriptionFactory'][_0x1a39('0x2b')]('paragraph',_0x3a071=>_0x475be8(_0xb5b5cc,_0x1a39('0x24'),_0x3a071)),_0x451b07[_0x1a39('0x1e')](_0x1a39('0x12'),(_0x39cacb,_0x3045a8={})=>{const _0x3574f4=_0x295164['model'][_0x1a39('0x19')],_0x277d82=_0x3045a8[_0x1a39('0x2c')]||_0x3574f4[_0x1a39('0x2c')],_0x4ba33d=Array['from'](_0x277d82[_0x1a39('0x22')]())['filter'](_0x151d0c=>function(_0x4466ed,_0x43e1fa){return _0x43e1fa[_0x1a39('0x36')](_0x4466ed['parent'],_0x1a39('0x12'))&&!_0x43e1fa['isObject'](_0x4466ed)&&_0x1a39('0x12')!=_0x4466ed[_0x1a39('0x1c')];}(_0x151d0c,this[_0x1a39('0x1')]['model'][_0x1a39('0x23')]));_0x295164['model'][_0x1a39('0x33')](()=>{for(const _0x5a80e of _0x4ba33d)_0x451b07[_0x1a39('0x37')](_0x5a80e,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0x1a39('0x17')},_0x5da4ae(_0x5a80e));});}),_0x451b07['_descriptionFactory'][_0x1a39('0x27')](_0x1c554d=>{const {data:_0x28274c}=_0x1c554d;if(_0x28274c&&'paragraph'==_0x28274c[_0x1a39('0x34')])return{'type':_0x1a39('0x35'),'content':_0x475be8(_0xb5b5cc,_0x1a39('0x9'),_0x475be8(_0xb5b5cc,_0x1a39('0x24')))};}),_0x451b07[_0x1a39('0x1e')]('insertParagraph'),_0x295164[_0x1a39('0x11')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',ar(_0x295164),{'priority':_0x1a39('0xd')}),_0x295164[_0x1a39('0x1b')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x7125a1,_0x2486f0,_0x15dcb1)=>{_0x15dcb1[_0x1a39('0x30')][_0x1a39('0x2f')]&&ar(_0x295164,{'showActiveMarker':!0x1})(_0x7125a1,_0x2486f0,_0x15dcb1);},{'priority':_0x1a39('0xd')});const _0x46e01b=_0x451b07[_0x1a39('0x2d')];_0x46e01b[_0x1a39('0x27')](_0x5f90b2=>{if('insertion'!==_0x5f90b2[_0x1a39('0x6')])return;const {start:_0x10e142,end:_0x4f5d69}=_0x5f90b2['getFirstRange']();if(!_0x10e142[_0x1a39('0x3')](_0x4f5d69)||!_0x10e142[_0x1a39('0x14')])return;const _0x10a603=_0x295164[_0x1a39('0x28')]['schema'],_0x394d45=_0x10e142[_0x1a39('0x14')];return _0x10a603[_0x1a39('0x18')](_0x394d45)&&!_0x10a603[_0x1a39('0x32')](_0x394d45)&&_0x10a603['checkChild'](_0x394d45,_0x1a39('0x10'))?{'type':_0x1a39('0x21'),'content':_0x475be8(_0xb5b5cc,'*Insert:*\x20%0',_0x46e01b[_0x1a39('0x1f')](_0x394d45,0x1))}:void 0x0;});}}function ar(_0x1e8ad2,{showActiveMarker:_0x4ef07a=!0x0}={}){return(_0x554cc0,_0x23b9e0,_0x458e66)=>{const _0x4efef3=_0x1e8ad2[_0x1a39('0x20')][_0x1a39('0x25')](_0x1a39('0x4')),_0x217c43=_0x23b9e0[_0x1a39('0x2a')][_0x1a39('0x31')],_0xec953e=_0x23b9e0[_0x1a39('0x2a')]['end'],_0x912acc=_0x1e8ad2[_0x1a39('0x28')][_0x1a39('0x23')];if(!_0x217c43[_0x1a39('0x3')](_0xec953e)||!_0x217c43[_0x1a39('0x14')])return;const _0x220f5a=_0x217c43['nodeAfter'];if(_0x912acc[_0x1a39('0x18')](_0x220f5a)&&!_0x912acc[_0x1a39('0x32')](_0x220f5a)&&_0x912acc['checkChild'](_0x220f5a,_0x1a39('0x10'))){if(!_0x458e66[_0x1a39('0x1a')][_0x1a39('0xa')](_0x23b9e0['markerRange'],_0x554cc0[_0x1a39('0x1c')]))return;const _0x245beb=_0x458e66['writer'][_0x1a39('0x5')](_0x1a39('0xc'),{'class':_0x1a39('0x15')}),_0x4855e9=_0x458e66[_0x1a39('0x7')][_0x1a39('0xf')](_0xec953e);_0x4ef07a&&_0x4efef3[_0x1a39('0xe')][_0x1a39('0xb')](_0x23b9e0['markerName'])&&_0x458e66['writer'][_0x1a39('0x0')](_0x1a39('0x29'),_0x245beb),_0x458e66[_0x1a39('0x26')]['insert'](_0x4855e9,_0x245beb),_0x458e66['mapper'][_0x1a39('0x8')](_0x245beb,_0x23b9e0[_0x1a39('0x13')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x494a=['model','editor','removeFormat','get','_descriptionFactory','has','isCollapsed','registerDescriptionCallback','plugins','format','document','enableCommand','change','afterInit','getAttributes','createRangeOn','locale'];(function(_0x3366ce,_0x494af1){const _0x84f186=function(_0x4961bf){while(--_0x4961bf){_0x3366ce['push'](_0x3366ce['shift']());}};_0x84f186(++_0x494af1);}(_0x494a,0x13c));const _0x84f1=function(_0x3366ce,_0x494af1){_0x3366ce=_0x3366ce-0x0;let _0x84f186=_0x494a[_0x3366ce];return _0x84f186;};import{Plugin as _0x2e6b14}from'ckeditor5/src/core';import{getTranslation as _0x5276ca}from'../utils/common-translations';export default class ht extends _0x2e6b14{[_0x84f1('0x3')](){const _0x2d8a9f=this[_0x84f1('0x8')];if(!_0x2d8a9f[_0x84f1('0xf')][_0x84f1('0xc')]('RemoveFormatEditing'))return;const _0x35d86c=_0x2d8a9f[_0x84f1('0xf')][_0x84f1('0xa')]('TrackChangesEditing');_0x35d86c[_0x84f1('0x1')](_0x84f1('0x9'),_0x363b83=>{const _0x50c2a6=_0x2d8a9f[_0x84f1('0x7')][_0x84f1('0x0')]['selection'];_0x50c2a6[_0x84f1('0xd')]?_0x363b83():_0x2d8a9f[_0x84f1('0x7')][_0x84f1('0x2')](()=>{const _0x411585=Array['from'](_0x50c2a6['getRanges']());for(const _0x42336e of _0x411585)for(const _0x15a94c of _0x42336e['getItems']())eo(_0x15a94c,_0x2d8a9f[_0x84f1('0x7')]['schema'])&&_0x35d86c['markInlineFormat'](_0x2d8a9f[_0x84f1('0x7')][_0x84f1('0x5')](_0x15a94c),{'commandName':_0x84f1('0x9'),'commandParams':[]});});}),_0x35d86c[_0x84f1('0xb')][_0x84f1('0xe')](_0x345b99=>{const {data:_0x56138b}=_0x345b99;if(_0x56138b&&_0x84f1('0x9')==_0x56138b['commandName'])return{'type':_0x84f1('0x10'),'content':_0x5276ca(_0x2d8a9f[_0x84f1('0x6')],'*Remove\x20all\x20formatting*')};});}}function eo(_0x5b2de4,_0x4a1fae){for(const [_0x446371]of _0x5b2de4[_0x84f1('0x4')]()){const _0x44dec1=_0x4a1fae['getAttributeProperties'](_0x446371);if(_0x44dec1&&_0x44dec1['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2544=['trackChanges','acceptSelectedSuggestions','goToPreviousRestrictedEditingException','TrackChangesEditing','enableCommand','RestrictedEditingModeEditing','plugins','goToNextRestrictedEditingException','acceptAllSuggestions','has','discardAllSuggestions','get','editor'];(function(_0x2f9136,_0x2544e4){const _0xe37543=function(_0x566163){while(--_0x566163){_0x2f9136['push'](_0x2f9136['shift']());}};_0xe37543(++_0x2544e4);}(_0x2544,0x12b));const _0xe375=function(_0x2f9136,_0x2544e4){_0x2f9136=_0x2f9136-0x0;let _0xe37543=_0x2544[_0x2f9136];return _0xe37543;};import{Plugin as _0x4cd610}from'ckeditor5/src/core';export default class ut extends _0x4cd610{['afterInit'](){const _0x48f581=this[_0xe375('0xc')];if(!_0x48f581['plugins'][_0xe375('0x9')]('RestrictedEditingModeEditing'))return;const _0xdf0ab2=_0x48f581[_0xe375('0x6')][_0xe375('0xb')](_0xe375('0x3'));_0xdf0ab2['enableCommand'](_0xe375('0x2')),_0xdf0ab2[_0xe375('0x4')](_0xe375('0x7'));const _0x3dce8a=_0x48f581[_0xe375('0x6')][_0xe375('0xb')](_0xe375('0x5'));_0x3dce8a[_0xe375('0x4')](_0xe375('0x0')),_0x3dce8a[_0xe375('0x4')]('acceptSuggestion'),_0x3dce8a[_0xe375('0x4')]('discardSuggestion'),_0x3dce8a[_0xe375('0x4')](_0xe375('0x8')),_0x3dce8a[_0xe375('0x4')](_0xe375('0xa')),_0x3dce8a[_0xe375('0x4')](_0xe375('0x1')),_0x3dce8a[_0xe375('0x4')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c0e=['mapper','addMarker:suggestion:deletion','markerRange','element','plugins','high','editing','ck-suggestion-marker--active','locale','shiftEnter','addMarker:suggestion','ELEMENT_LINE_BREAK','addMarker:suggestion:insertion','test','consumable','createUIElement','merge','split','includes','bindElementToMarker','createPositionBefore','registerElementLabel','toViewPosition','deletion','TrackChangesEditing','options','showSuggestionHighlights','writer','addClass','markerName','activeMarkers','data','insert','name','editor','downcastDispatcher','enableCommand','get'];(function(_0x32cc5b,_0x1c0ecb){const _0x56c62e=function(_0x5aa274){while(--_0x5aa274){_0x32cc5b['push'](_0x32cc5b['shift']());}};_0x56c62e(++_0x1c0ecb);}(_0x1c0e,0x139));const _0x56c6=function(_0x32cc5b,_0x1c0ecb){_0x32cc5b=_0x32cc5b-0x0;let _0x56c62e=_0x1c0e[_0x32cc5b];return _0x56c62e;};import{Plugin as _0x53e190}from'ckeditor5/src/core';import{ShiftEnter as _0x4414ba}from'ckeditor5/src/enter';import{getTranslation as _0x1a7e72}from'../utils/common-translations';export default class ft extends _0x53e190{static get['requires'](){return[_0x4414ba];}['init'](){const _0x534487=this[_0x56c6('0x19')],_0x388a66=_0x534487[_0x56c6('0x21')]['get']('TrackChangesEditing');_0x388a66[_0x56c6('0x1b')](_0x56c6('0x0')),_0x534487[_0x56c6('0x23')][_0x56c6('0x1a')]['on'](_0x56c6('0x3'),re(_0x534487),{'priority':_0x56c6('0x22')}),_0x534487[_0x56c6('0x23')][_0x56c6('0x1a')]['on'](_0x56c6('0x1e'),re(_0x534487),{'priority':_0x56c6('0x22')}),_0x534487[_0x56c6('0x16')][_0x56c6('0x1a')]['on'](_0x56c6('0x1'),(_0x3ae8e4,_0x27b332,_0xa7ec54)=>{_0xa7ec54[_0x56c6('0x10')][_0x56c6('0x11')]&&re(_0x534487,{'showActiveMarker':!0x1})(_0x3ae8e4,_0x27b332,_0xa7ec54);}),_0x388a66['_descriptionFactory'][_0x56c6('0xc')]('softBreak',_0x598e0f=>_0x1a7e72(_0x534487[_0x56c6('0x25')],_0x56c6('0x2'),_0x598e0f));}}function re(_0x295932,{showActiveMarker:_0x233ae6=!0x0}={}){return(_0x663ec7,_0x5865f9,_0x2b7575)=>{const _0x1d3dbe=_0x295932[_0x56c6('0x21')][_0x56c6('0x1c')](_0x56c6('0xf'));if(!_0x2b7575[_0x56c6('0x5')][_0x56c6('0x4')](_0x5865f9[_0x56c6('0x1f')],_0x663ec7[_0x56c6('0x18')]))return;const _0x3bcc0b=_0x295932['model'];for(const _0x42bb7c of _0x5865f9[_0x56c6('0x1f')]['getItems']()){if(!_0x42bb7c['is'](_0x56c6('0x20'),'softBreak'))continue;const _0x2838b7=_0x56c6('0xe')==_0x5865f9[_0x56c6('0x14')][_0x56c6('0x8')](':')[0x1]?_0x56c6('0x7'):_0x56c6('0x8'),_0xc1f217=_0x2b7575['writer'][_0x56c6('0x6')]('span',{'class':'ck-suggestion-marker-'+_0x2838b7}),_0x4afc45=_0x2b7575[_0x56c6('0x1d')][_0x56c6('0xd')](_0x3bcc0b[_0x56c6('0xb')](_0x42bb7c));_0x233ae6&&_0x1d3dbe[_0x56c6('0x15')][_0x56c6('0x9')](_0x5865f9[_0x56c6('0x14')])&&_0x2b7575[_0x56c6('0x12')][_0x56c6('0x13')](_0x56c6('0x24'),_0xc1f217),_0x2b7575[_0x56c6('0x12')][_0x56c6('0x17')](_0x4afc45,_0xc1f217),_0x2b7575[_0x56c6('0x1d')][_0x56c6('0xa')](_0xc1f217,_0x5865f9[_0x56c6('0x14')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4974=['markInlineFormat','from','commands','StandardEditingModeEditing','restrictedEditingException','isCollapsed','get','commandParams','forceValue','model','_descriptionFactory','locale','registerDescriptionCallback','FORMAT_RESTRICTED_ENABLED','FORMAT_RESTRICTED_DISABLED','selection','plugins','editor','afterInit','format','commandName','TrackChangesEditing','enableCommand','change'];(function(_0x1f050e,_0x4974f4){const _0x19bb84=function(_0x1ef6ac){while(--_0x1ef6ac){_0x1f050e['push'](_0x1f050e['shift']());}};_0x19bb84(++_0x4974f4);}(_0x4974,0xe6));const _0x19bb=function(_0x1f050e,_0x4974f4){_0x1f050e=_0x1f050e-0x0;let _0x19bb84=_0x4974[_0x1f050e];return _0x19bb84;};import{Plugin as _0x1ef946}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x2df15c}from'./utils';import{getTranslation as _0x2a684a}from'../utils/common-translations';export default class lt extends _0x1ef946{[_0x19bb('0x4')](){const _0x2f1cab=this[_0x19bb('0x3')],_0x11af7b=_0x2f1cab[_0x19bb('0x13')],_0x209718=_0x2f1cab[_0x19bb('0x15')];if(!_0x2f1cab[_0x19bb('0x2')]['has'](_0x19bb('0xd')))return;const _0x2420d1=_0x2f1cab['plugins'][_0x19bb('0x10')](_0x19bb('0x7')),_0x3366af=_0x19bb('0xe'),_0x9d2d84=_0x2f1cab[_0x19bb('0xc')][_0x19bb('0x10')](_0x3366af);_0x2420d1[_0x19bb('0x8')](_0x3366af,(_0x55d429,_0xd1365={})=>{const _0x591c9f=_0x11af7b['document'][_0x19bb('0x1')];if(_0x591c9f[_0x19bb('0xf')])return void _0x55d429(_0xd1365);const _0x3f5927=void 0x0!==_0xd1365[_0x19bb('0x12')]?_0xd1365[_0x19bb('0x12')]:!_0x9d2d84['value'];_0x11af7b[_0x19bb('0x9')](()=>{const _0x24fa37=Array[_0x19bb('0xb')](_0x591c9f['getRanges']());for(const _0x5969e8 of _0x24fa37){const _0x1ed996=_0x3f5927?[_0x5969e8]:_0x2df15c(_0x3366af,_0x5969e8,_0x11af7b);for(const _0x1a2281 of _0x1ed996)_0x2420d1[_0x19bb('0xa')](_0x1a2281,{'commandName':_0x3366af,'commandParams':[{'forceValue':_0x3f5927}]});}});}),_0x2420d1[_0x19bb('0x14')][_0x19bb('0x16')](_0x3d485b=>{const {data:_0xc6237d}=_0x3d485b;if(_0xc6237d&&_0xc6237d[_0x19bb('0x6')]==_0x3366af)return _0xc6237d[_0x19bb('0x11')][0x0][_0x19bb('0x12')]?{'type':'format','content':_0x2a684a(_0x209718,_0x19bb('0x17'))}:{'type':_0x19bb('0x5'),'content':_0x2a684a(_0x209718,_0x19bb('0x0'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8e54=['markBlockFormat','includes','commandName','push','getDefinitionsForView','find','toLowerCase','_descriptionFactory','model','isBlock','DataSchema','Style','inline','normalizeConfig','getSelectedBlocks','commandParams','*Remove\x20format:*\x20%0','has','getItems','style.definitions','_getStyleDefinition','add','forceValue','locale','block','get','modelElements','style','selection','registerDescriptionCallback','commands','classes','createRangeOn','styleName','afterInit','name','plugins','_getRangesWithClasses','isCollapsed','enableCommand'];(function(_0x24b20b,_0x8e54ee){const _0x4dd2c9=function(_0x1aa598){while(--_0x1aa598){_0x24b20b['push'](_0x24b20b['shift']());}};_0x4dd2c9(++_0x8e54ee);}(_0x8e54,0xfe));const _0x4dd2=function(_0x24b20b,_0x8e54ee){_0x24b20b=_0x24b20b-0x0;let _0x4dd2c9=_0x8e54[_0x24b20b];return _0x4dd2c9;};import{Plugin as _0x12972a}from'ckeditor5/src/core';import{getTranslation as _0x22d738}from'../utils/common-translations';export default class gt extends _0x12972a{[_0x4dd2('0x14')](){const _0x126594=this['editor'];if(!_0x126594[_0x4dd2('0x16')][_0x4dd2('0x3')](_0x4dd2('0x25')))return;const _0x32e3d9=_0x126594[_0x4dd2('0x10')]['get'](_0x4dd2('0xd')),_0x1e0c52=_0x126594[_0x4dd2('0x16')]['get']('TrackChangesEditing'),_0x2973de=_0x126594[_0x4dd2('0x9')],_0x4ca6ba=_0x126594[_0x4dd2('0x16')][_0x4dd2('0xb')](_0x4dd2('0x24')),_0x5c4c07=_0x126594[_0x4dd2('0x16')][_0x4dd2('0xb')]('StyleUtils')[_0x4dd2('0x27')](_0x4ca6ba,_0x126594['config']['get'](_0x4dd2('0x5')));_0x1e0c52[_0x4dd2('0x19')]('style',(_0x287551,{styleName:_0x1b04f7})=>{const _0x355b12=_0x126594[_0x4dd2('0x22')]['document'][_0x4dd2('0xe')],_0x3b4135=this[_0x4dd2('0x6')](_0x1b04f7,_0x5c4c07);if(!_0x3b4135)return;if(!_0x32e3d9['enabledStyles'][_0x4dd2('0x1b')](_0x1b04f7))return;if(_0x355b12[_0x4dd2('0x18')]&&!_0x3b4135['isBlock'])return void _0x287551({'styleName':_0x1b04f7});const _0x2b10b0=!_0x32e3d9['value'][_0x4dd2('0x1b')](_0x3b4135[_0x4dd2('0x15')]);if(_0x3b4135[_0x4dd2('0x23')]){const _0x18f8b0=function(_0x26ce5b,_0x4e2b62){const _0x175e8f=new Set();for(const _0x366063 of _0x26ce5b){const _0x46d105=_0x366063['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x5b7e2c of _0x46d105)if(_0x4e2b62[_0x4dd2('0x1b')](_0x5b7e2c['name'])){_0x175e8f[_0x4dd2('0x7')](_0x5b7e2c);break;}}return _0x175e8f;}(_0x355b12[_0x4dd2('0x0')](),_0x3b4135[_0x4dd2('0xc')]);_0x126594[_0x4dd2('0x22')]['change'](()=>{for(const _0x127570 of _0x18f8b0)_0x1e0c52[_0x4dd2('0x1a')](_0x127570,{'commandName':_0x4dd2('0xd'),'commandParams':[{'styleName':_0x1b04f7,'forceValue':_0x2b10b0}],'formatGroupId':'style:'+_0x1b04f7});});}else{let _0x3f0579=Array['from'](_0x355b12['getRanges']());if(!_0x2b10b0){const _0xb6860a=Array['from'](_0x4ca6ba[_0x4dd2('0x1e')](_0x3b4135['element'],!0x1))[0x0][_0x4dd2('0x22')],_0x29bc71=[];for(const _0x4f910c of _0x3f0579){const _0x32b507=this['_getRangesWithClasses'](_0x126594[_0x4dd2('0x22')],_0x4f910c,_0x3b4135[_0x4dd2('0x11')],_0xb6860a);_0x29bc71[_0x4dd2('0x1d')](..._0x32b507);}_0x3f0579=_0x29bc71;}_0x126594['model']['change'](()=>{for(const _0xabd32b of _0x3f0579)_0x1e0c52['markInlineFormat'](_0xabd32b,{'commandName':_0x4dd2('0xd'),'commandParams':[{'styleName':_0x1b04f7,'forceValue':_0x2b10b0}]});});}}),_0x1e0c52[_0x4dd2('0x21')][_0x4dd2('0xf')](_0x5c8d0d=>{const {data:_0x3e0f17}=_0x5c8d0d;if(_0x3e0f17&&_0x4dd2('0xd')===_0x3e0f17[_0x4dd2('0x1c')])return _0x3e0f17[_0x4dd2('0x1')][0x0][_0x4dd2('0x8')]?{'type':'format','content':_0x22d738(_0x2973de,'*Format:*\x20%0',_0x3e0f17[_0x4dd2('0x1')][0x0][_0x4dd2('0x13')]['toLowerCase']())}:{'type':'format','content':_0x22d738(_0x2973de,_0x4dd2('0x2'),_0x3e0f17[_0x4dd2('0x1')][0x0][_0x4dd2('0x13')][_0x4dd2('0x20')]())};});}[_0x4dd2('0x6')](_0x167ef7,_0x519289){let _0x4e5174=_0x519289[_0x4dd2('0xa')][_0x4dd2('0x1f')](_0x47fd79=>_0x47fd79['name']===_0x167ef7);return _0x4e5174||(_0x4e5174=_0x519289[_0x4dd2('0x26')][_0x4dd2('0x1f')](_0x4140a3=>_0x4140a3['name']===_0x167ef7)),_0x4e5174;}[_0x4dd2('0x17')](_0x4b2dfb,_0x3e9810,_0x3120a5,_0x7bdf9a){const _0x177037=[];for(const _0x4df96e of _0x3e9810[_0x4dd2('0x4')]()){const _0x2647da=_0x4df96e['getAttribute'](_0x7bdf9a);_0x2647da&&(_0x3120a5['every'](_0x45da7b=>_0x2647da[_0x4dd2('0x11')][_0x4dd2('0x1b')](_0x45da7b))&&_0x177037[_0x4dd2('0x1d')](_0x4b2dfb[_0x4dd2('0x12')](_0x4df96e)));}return _0x177037;}}
|
|
@@ -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 _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')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4092=['plugins','enableCommand','TrackChangesEditing','has','afterInit','requires','toggleTableCaption','get','editor'];(function(_0x38a206,_0x4092d7){const _0x5b9cdc=function(_0x150ca5){while(--_0x150ca5){_0x38a206['push'](_0x38a206['shift']());}};_0x5b9cdc(++_0x4092d7);}(_0x4092,0x152));const _0x5b9c=function(_0x38a206,_0x4092d7){_0x38a206=_0x38a206-0x0;let _0x5b9cdc=_0x4092[_0x38a206];return _0x5b9cdc;};import{Plugin as _0x205e2e}from'ckeditor5/src/core';import _0x4c1ed3 from'./table';export default class vt extends _0x205e2e{static get[_0x5b9c('0x0')](){return[_0x4c1ed3];}[_0x5b9c('0x8')](){const _0x1b1462=this[_0x5b9c('0x3')];if(!_0x1b1462['plugins'][_0x5b9c('0x7')]('TableCaptionEditing'))return;_0x1b1462[_0x5b9c('0x4')][_0x5b9c('0x2')](_0x5b9c('0x6'))[_0x5b9c('0x5')](_0x5b9c('0x1'));}}
|