@ckeditor/ckeditor5-track-changes 38.0.0-rc.0 → 38.0.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 _0x2199=['createRange','handleListStartCommand','ListUtils','*Change\x20to:*\x20%0','getLastPosition','commandName','listStyle','toUpperCase','handleListReversedCommand','unshift','format','backward','listItem','get','_getSuggestionBlocksForListStyle','flat','map','selection','getSiblingNodes','plugins','_getTranslationKeyForListStyle','editor','getAttribute','_descriptionFactory','handleListStyleCommand','enableCommand','_LIST_','model','before','numbered','parent','listReversed','startIndex','*Format:*\x20set\x20order\x20to\x20reversed','change','length','styles','ListPropertiesEditing','createPositionAt','element','document','markMultiRangeBlockFormat','getFirstPosition','listType','reversed','getListTypeFromListStyleType','*Format:*\x20set\x20start\x20index\x20to\x20%0','has','forward','registerDescriptionCallback','handleDescriptions','TrackChangesEditing','listStart','config','_getSuggestionBlocks','filter','from','list.properties','getSelectedBlocks','commandParams','bind'];(function(_0x2b10ae,_0x21995f){const _0x4d6e38=function(_0x77029d){while(--_0x77029d){_0x2b10ae['push'](_0x2b10ae['shift']());}};_0x4d6e38(++_0x21995f);}(_0x2199,0x119));const _0x4d6e=function(_0x2b10ae,_0x21995f){_0x2b10ae=_0x2b10ae-0x0;let _0x4d6e38=_0x2199[_0x2b10ae];return _0x4d6e38;};import{Plugin as _0x4a6771}from'ckeditor5/src/core';import{getTranslation as _0x32a7ea}from'../utils/common-translations';export default class nt extends _0x4a6771{['afterInit'](){if(!this[_0x4d6e('0x2d')][_0x4d6e('0x2b')][_0x4d6e('0xa')](_0x4d6e('0x0')))return;const _0xec95a3=this['editor'][_0x4d6e('0x10')]['get'](_0x4d6e('0x14')),_0x421cd1=this[_0x4d6e('0x2d')][_0x4d6e('0x2b')]['get'](_0x4d6e('0xe'));_0xec95a3[_0x4d6e('0x3c')]&&_0x421cd1['enableCommand'](_0x4d6e('0x1e'),this[_0x4d6e('0x30')][_0x4d6e('0x17')](this)),_0xec95a3[_0x4d6e('0x7')]&&_0x421cd1[_0x4d6e('0x31')](_0x4d6e('0x37'),this['handleListReversedCommand'][_0x4d6e('0x17')](this)),_0xec95a3[_0x4d6e('0x38')]&&_0x421cd1['enableCommand'](_0x4d6e('0xf'),this[_0x4d6e('0x19')][_0x4d6e('0x17')](this)),_0x421cd1[_0x4d6e('0x2f')][_0x4d6e('0xc')](this[_0x4d6e('0xd')][_0x4d6e('0x17')](this));}['handleListStyleCommand'](_0x2afc15,_0x4ea83c={}){const _0x4a6b70=this[_0x4d6e('0x2d')]['plugins'][_0x4d6e('0x25')]('TrackChangesEditing'),_0x4b2f81=this[_0x4d6e('0x26')]();this['editor'][_0x4d6e('0x33')][_0x4d6e('0x3a')](()=>{_0x4a6b70[_0x4d6e('0x4')](_0x4b2f81,{'commandName':'listStyle','commandParams':[{'type':_0x4ea83c['type']}],'formatGroupId':_0x4d6e('0x1e')});});}[_0x4d6e('0x20')](_0x19929d,_0x2895fe={}){const _0x5fc800=this[_0x4d6e('0x2d')]['plugins'][_0x4d6e('0x25')](_0x4d6e('0xe')),_0x1184d5=this['_getSuggestionBlocks'](_0x2b1fca=>_0x2b1fca['is'](_0x4d6e('0x2'),_0x4d6e('0x24'))&&_0x4d6e('0x35')===_0x2b1fca[_0x4d6e('0x2e')](_0x4d6e('0x6')));if(_0x1184d5[_0x4d6e('0x3b')]<0x1)return;const _0x1f6652=_0x1184d5['map'](_0x36dfb1=>this[_0x4d6e('0x2d')][_0x4d6e('0x33')][_0x4d6e('0x18')](this[_0x4d6e('0x2d')][_0x4d6e('0x33')]['createPositionAt'](_0x36dfb1,_0x4d6e('0x34')),this[_0x4d6e('0x2d')][_0x4d6e('0x33')]['createPositionAt'](_0x36dfb1,0x0)));this['editor'][_0x4d6e('0x33')][_0x4d6e('0x3a')](()=>{_0x5fc800[_0x4d6e('0x4')](_0x1f6652,{'commandName':_0x4d6e('0x37'),'commandParams':[{'reversed':_0x2895fe[_0x4d6e('0x7')]}],'formatGroupId':'listReversed'});});}[_0x4d6e('0x19')](_0x2a02e1,_0x1d6633={}){const _0x230e4a=this[_0x4d6e('0x2d')][_0x4d6e('0x2b')]['get'](_0x4d6e('0xe')),_0x52a6d2=this[_0x4d6e('0x11')](_0x719b83=>_0x719b83['is'](_0x4d6e('0x2'),_0x4d6e('0x24'))&&'numbered'===_0x719b83['getAttribute']('listType'));if(_0x52a6d2[_0x4d6e('0x3b')]<0x1)return;const _0x353fe0=_0x52a6d2[_0x4d6e('0x28')](_0x5cad79=>this[_0x4d6e('0x2d')][_0x4d6e('0x33')][_0x4d6e('0x18')](this[_0x4d6e('0x2d')][_0x4d6e('0x33')][_0x4d6e('0x1')](_0x5cad79,_0x4d6e('0x34')),this[_0x4d6e('0x2d')][_0x4d6e('0x33')]['createPositionAt'](_0x5cad79,0x0)));this['editor'][_0x4d6e('0x33')][_0x4d6e('0x3a')](()=>{_0x230e4a[_0x4d6e('0x4')](_0x353fe0,{'commandName':_0x4d6e('0xf'),'commandParams':[{'startIndex':_0x1d6633[_0x4d6e('0x38')]}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x71c556){const _0x3d131f=this[_0x4d6e('0x2d')]['locale'],{data:_0x2cb081}=_0x71c556;if(!_0x2cb081)return;let _0x4cdd00,_0x706516;switch(_0x2cb081[_0x4d6e('0x1d')]){case _0x4d6e('0x1e'):_0x4cdd00=_0x4d6e('0x1b'),_0x706516={'type':_0x4d6e('0x22'),'content':_0x32a7ea(_0x3d131f,_0x4cdd00,_0x32a7ea(_0x3d131f,this[_0x4d6e('0x2c')](_0x2cb081[_0x4d6e('0x16')][0x0]['type'])))};break;case _0x4d6e('0x37'):_0x4cdd00=_0x2cb081['commandParams'][0x0][_0x4d6e('0x7')]?_0x4d6e('0x39'):'*Format:*\x20set\x20order\x20to\x20regular',_0x706516={'type':_0x4d6e('0x22'),'content':_0x32a7ea(_0x3d131f,_0x4cdd00)};break;case _0x4d6e('0xf'):_0x4cdd00=_0x4d6e('0x9'),_0x706516={'type':'format','content':_0x32a7ea(_0x3d131f,_0x4cdd00,_0x2cb081[_0x4d6e('0x16')][0x0]['startIndex'])};}return _0x706516;}[_0x4d6e('0x26')](){var _0x1823b0,_0x1cfede,_0x5e3815,_0x4c8b2e;const _0x51c6ea=this[_0x4d6e('0x2d')][_0x4d6e('0x2b')][_0x4d6e('0x25')]('ListUtils');let _0x254ef3=Array[_0x4d6e('0x13')](this[_0x4d6e('0x2d')]['model'][_0x4d6e('0x3')][_0x4d6e('0x29')][_0x4d6e('0x15')]());return(null===(_0x1823b0=_0x254ef3[0x0])||void 0x0===_0x1823b0?void 0x0:_0x1823b0['is']('element',_0x4d6e('0x24')))&&_0x254ef3[_0x4d6e('0x21')](..._0x51c6ea[_0x4d6e('0x2a')](this[_0x4d6e('0x2d')]['model'][_0x4d6e('0x3')][_0x4d6e('0x29')][_0x4d6e('0x5')](),_0x4d6e('0x23'))),(null===(_0x1cfede=_0x254ef3[_0x254ef3['length']-0x1])||void 0x0===_0x1cfede?void 0x0:_0x1cfede['is']('element','listItem'))&&_0x254ef3['push'](..._0x51c6ea['getSiblingNodes'](this[_0x4d6e('0x2d')][_0x4d6e('0x33')]['document'][_0x4d6e('0x29')][_0x4d6e('0x1c')](),_0x4d6e('0xb'))),_0x254ef3=[...new Set(_0x254ef3)],(null===(_0x4c8b2e=null===(_0x5e3815=this[_0x4d6e('0x2d')][_0x4d6e('0x33')][_0x4d6e('0x3')][_0x4d6e('0x29')][_0x4d6e('0x5')]())||void 0x0===_0x5e3815?void 0x0:_0x5e3815[_0x4d6e('0x36')])||void 0x0===_0x4c8b2e?void 0x0:_0x4c8b2e['is'](_0x4d6e('0x2'),_0x4d6e('0x24')))&&(_0x254ef3=_0x254ef3['filter'](_0x4073d9=>_0x4073d9['is'](_0x4d6e('0x2'),_0x4d6e('0x24')))),_0x254ef3;}[_0x4d6e('0x11')](_0x23eb1a){const _0x254a61=this[_0x4d6e('0x2d')][_0x4d6e('0x2b')][_0x4d6e('0x25')](_0x4d6e('0x1a'));let _0x4376cc=Array[_0x4d6e('0x13')](this[_0x4d6e('0x2d')][_0x4d6e('0x33')][_0x4d6e('0x3')][_0x4d6e('0x29')][_0x4d6e('0x15')]())[_0x4d6e('0x12')](_0x23eb1a)['map'](_0x52a79d=>{const _0x3f5ef9=this[_0x4d6e('0x2d')][_0x4d6e('0x33')]['createPositionAt'](_0x52a79d,0x0);return[..._0x254a61['getSiblingNodes'](_0x3f5ef9,_0x4d6e('0x23')),..._0x254a61[_0x4d6e('0x2a')](_0x3f5ef9,_0x4d6e('0xb'))];})[_0x4d6e('0x27')]();return _0x4376cc=[...new Set(_0x4376cc)],_0x4376cc;}[_0x4d6e('0x2c')](_0x176743){return'ELEMENT_'+this[_0x4d6e('0x2d')][_0x4d6e('0x2b')]['get'](_0x4d6e('0x1a'))[_0x4d6e('0x8')](_0x176743)[_0x4d6e('0x1f')]()+_0x4d6e('0x32')+_0x176743['toUpperCase']()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b81=['showSuggestionHighlights','get','attribute:url:media','conversion','createEmptyElement','high','registerElementLabel','div','afterInit','downcastDispatcher','ELEMENT_MEDIA','stop','elementToElement','editor','mediaEmbed','MediaEmbedEditing','_descriptionFactory','enableCommand','data','media','TrackChangesEditing','plugins','dataDowncast'];(function(_0x675b8c,_0x1b81f4){const _0x1c00dc=function(_0x45ce66){while(--_0x45ce66){_0x675b8c['push'](_0x675b8c['shift']());}};_0x1c00dc(++_0x1b81f4);}(_0x1b81,0x7f));const _0x1c00=function(_0x675b8c,_0x1b81f4){_0x675b8c=_0x675b8c-0x0;let _0x1c00dc=_0x1b81[_0x675b8c];return _0x1c00dc;};import{Plugin as _0x3ca194}from'ckeditor5/src/core';import{getTranslation as _0x5bc078}from'../utils/common-translations';export default class ot extends _0x3ca194{[_0x1c00('0x13')](){const _0x2405ad=this[_0x1c00('0x1')];if(!_0x2405ad['plugins']['has'](_0x1c00('0x3')))return;const _0x573306=_0x2405ad[_0x1c00('0x9')][_0x1c00('0xc')](_0x1c00('0x8')),_0xecfccf=_0x2405ad['locale'];_0x573306[_0x1c00('0x5')](_0x1c00('0x2')),_0x573306[_0x1c00('0x4')][_0x1c00('0x11')](_0x1c00('0x7'),_0x687058=>_0x5bc078(_0xecfccf,_0x1c00('0x15'),_0x687058)),_0x2405ad[_0x1c00('0xe')]['for'](_0x1c00('0xa'))[_0x1c00('0x0')]({'model':'media','view':(_0x216fac,{writer:_0x3a6e5e,options:_0xe010a1})=>{if(_0xe010a1[_0x1c00('0xb')])return _0x3a6e5e[_0x1c00('0xf')](_0x1c00('0x12'));},'converterPriority':_0x1c00('0x10')}),_0x2405ad[_0x1c00('0x6')][_0x1c00('0x14')]['on'](_0x1c00('0xd'),(_0x30ddeb,_0x53da53,_0x264e54)=>{_0x264e54['options'][_0x1c00('0xb')]&&_0x30ddeb[_0x1c00('0x16')]();},{'priority':_0x1c00('0x10')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x259e=['has','get','TrackChangesEditing','plugins','editor','mention','MentionEditing'];(function(_0x12ed64,_0x259ee9){const _0x5786f9=function(_0x440d3c){while(--_0x440d3c){_0x12ed64['push'](_0x12ed64['shift']());}};_0x5786f9(++_0x259ee9);}(_0x259e,0xb3));const _0x5786=function(_0x12ed64,_0x259ee9){_0x12ed64=_0x12ed64-0x0;let _0x5786f9=_0x259e[_0x12ed64];return _0x5786f9;};import{Plugin as _0xbb4c9}from'ckeditor5/src/core';export default class rt extends _0xbb4c9{['afterInit'](){const _0x30e009=this[_0x5786('0x0')];_0x30e009[_0x5786('0x6')][_0x5786('0x3')](_0x5786('0x2'))&&_0x30e009[_0x5786('0x6')][_0x5786('0x4')](_0x5786('0x5'))['enableCommand'](_0x5786('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x471d=['PageBreakEditing','afterInit','get','plugins','editor','pageBreak','ELEMENT_PAGE_BREAK','enableCommand','locale','has','_descriptionFactory','TrackChangesEditing'];(function(_0x46436e,_0x471d07){const _0x2b74c6=function(_0x3ebfcd){while(--_0x3ebfcd){_0x46436e['push'](_0x46436e['shift']());}};_0x2b74c6(++_0x471d07);}(_0x471d,0x18b));const _0x2b74=function(_0x46436e,_0x471d07){_0x46436e=_0x46436e-0x0;let _0x2b74c6=_0x471d[_0x46436e];return _0x2b74c6;};import{Plugin as _0x42d91b}from'ckeditor5/src/core';import{getTranslation as _0x4fd58f}from'../utils/common-translations';export default class at extends _0x42d91b{[_0x2b74('0x2')](){const _0x4d6a9d=this[_0x2b74('0x5')];if(!_0x4d6a9d[_0x2b74('0x4')][_0x2b74('0xa')](_0x2b74('0x1')))return;_0x4d6a9d[_0x2b74('0x4')][_0x2b74('0x3')](_0x2b74('0x0'))[_0x2b74('0x8')]('pageBreak');const _0x128a96=_0x4d6a9d[_0x2b74('0x4')][_0x2b74('0x3')](_0x2b74('0x0')),_0x1fd810=_0x4d6a9d[_0x2b74('0x9')];_0x128a96[_0x2b74('0xb')]['registerElementLabel'](_0x2b74('0x6'),_0x2ea423=>_0x4fd58f(_0x1fd810,_0x2b74('0x7'),_0x2ea423));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5529=['Paragraph','addClass','insertParagraph','from','checkChild','nodeAfter','ELEMENT_PARAGRAPH','isObject','getSelectedBlocks','bindElementToMarker','downcastDispatcher','TrackChangesEditing','model','name','span','_descriptionFactory','highest','options','writer','start','*Insert:*\x20%0','addMarker:suggestion:insertion','markerName','change','plugins','paragraph','*Change\x20to:*\x20%0','getFirstRange','insert','afterInit','filter','getItemLabel','blockName','locale','editor','consumable','type','document','selection','editing','markerRange','$text','schema','enableCommand','isTouching','data','registerElementLabel','end','registerDescriptionCallback','activeMarkers','mapper','toViewPosition','get','createUIElement','ck-suggestion-marker-split','format','isLimit','insertion','has','commandName'];(function(_0x3a7e54,_0x5529ba){const _0x33b75f=function(_0x2b967d){while(--_0x2b967d){_0x3a7e54['push'](_0x3a7e54['shift']());}};_0x33b75f(++_0x5529ba);}(_0x5529,0x159));const _0x33b7=function(_0x3a7e54,_0x5529ba){_0x3a7e54=_0x3a7e54-0x0;let _0x33b75f=_0x5529[_0x3a7e54];return _0x33b75f;};import{Plugin as _0xa2edf8}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x196dd5}from'./utils';import{getTranslation as _0x1686ca}from'../utils/common-translations';export default class ct extends _0xa2edf8{[_0x33b7('0x2c')](){const _0x1f93c0=this[_0x33b7('0x31')];if(!_0x1f93c0[_0x33b7('0x27')][_0x33b7('0xd')](_0x33b7('0xf')))return;const _0x2fcfb1=_0x1f93c0[_0x33b7('0x30')],_0x59ed1d=_0x1f93c0[_0x33b7('0x27')]['get'](_0x33b7('0x1a'));_0x59ed1d[_0x33b7('0x1e')][_0x33b7('0x1')](_0x33b7('0x28'),_0x16dd63=>_0x1686ca(_0x2fcfb1,_0x33b7('0x15'),_0x16dd63)),_0x59ed1d[_0x33b7('0x3a')](_0x33b7('0x28'),(_0x3b2f62,_0xb253d8={})=>{const _0x5a1a1=_0x1f93c0[_0x33b7('0x1b')][_0x33b7('0x34')],_0x1ce1f0=_0xb253d8[_0x33b7('0x35')]||_0x5a1a1[_0x33b7('0x35')],_0x3fe1b4=Array[_0x33b7('0x12')](_0x1ce1f0[_0x33b7('0x17')]())[_0x33b7('0x2d')](_0x2935d9=>function(_0x45da2f,_0x3bb263){return _0x3bb263[_0x33b7('0x13')](_0x45da2f['parent'],'paragraph')&&!_0x3bb263[_0x33b7('0x16')](_0x45da2f)&&'paragraph'!=_0x45da2f[_0x33b7('0x1c')];}(_0x2935d9,this[_0x33b7('0x31')][_0x33b7('0x1b')][_0x33b7('0x39')]));_0x1f93c0[_0x33b7('0x1b')][_0x33b7('0x26')](()=>{for(const _0xf1bc3d of _0x3fe1b4)_0x59ed1d['markBlockFormat'](_0xf1bc3d,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0x33b7('0x2f')},_0x196dd5(_0xf1bc3d));});}),_0x59ed1d['_descriptionFactory']['registerDescriptionCallback'](_0x519ced=>{const {data:_0x5eb7a6}=_0x519ced;if(_0x5eb7a6&&_0x33b7('0x28')==_0x5eb7a6[_0x33b7('0xe')])return{'type':_0x33b7('0xa'),'content':_0x1686ca(_0x2fcfb1,_0x33b7('0x29'),_0x1686ca(_0x2fcfb1,'ELEMENT_PARAGRAPH'))};}),_0x59ed1d['enableCommand'](_0x33b7('0x11')),_0x1f93c0[_0x33b7('0x36')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',ar(_0x1f93c0),{'priority':_0x33b7('0x1f')}),_0x1f93c0[_0x33b7('0x0')][_0x33b7('0x19')]['on'](_0x33b7('0x24'),(_0x3d363b,_0x3897a4,_0x1dbd44)=>{_0x1dbd44[_0x33b7('0x20')]['showSuggestionHighlights']&&ar(_0x1f93c0,{'showActiveMarker':!0x1})(_0x3d363b,_0x3897a4,_0x1dbd44);},{'priority':'highest'});const _0x421dd8=_0x59ed1d['_descriptionFactory'];_0x421dd8[_0x33b7('0x3')](_0x4e32f1=>{if(_0x33b7('0xc')!==_0x4e32f1[_0x33b7('0x33')])return;const {start:_0x17a12a,end:_0x1627a4}=_0x4e32f1[_0x33b7('0x2a')]();if(!_0x17a12a[_0x33b7('0x3b')](_0x1627a4)||!_0x17a12a['nodeAfter'])return;const _0xda9ce4=_0x1f93c0[_0x33b7('0x1b')]['schema'],_0x48d91b=_0x17a12a['nodeAfter'];return _0xda9ce4['isBlock'](_0x48d91b)&&!_0xda9ce4[_0x33b7('0xb')](_0x48d91b)&&_0xda9ce4['checkChild'](_0x48d91b,'$text')?{'type':_0x33b7('0xc'),'content':_0x1686ca(_0x2fcfb1,_0x33b7('0x23'),_0x421dd8[_0x33b7('0x2e')](_0x48d91b,0x1))}:void 0x0;});}}function ar(_0x592b94,{showActiveMarker:_0x3d6855=!0x0}={}){return(_0x1e6316,_0x1dd4a5,_0x4b4e3a)=>{const _0x46b435=_0x592b94['plugins'][_0x33b7('0x7')](_0x33b7('0x1a')),_0xbf58f2=_0x1dd4a5[_0x33b7('0x37')][_0x33b7('0x22')],_0x5c0ae1=_0x1dd4a5[_0x33b7('0x37')][_0x33b7('0x2')],_0x5d60d8=_0x592b94[_0x33b7('0x1b')]['schema'];if(!_0xbf58f2[_0x33b7('0x3b')](_0x5c0ae1)||!_0xbf58f2[_0x33b7('0x14')])return;const _0x4eb475=_0xbf58f2['nodeAfter'];if(_0x5d60d8['isBlock'](_0x4eb475)&&!_0x5d60d8[_0x33b7('0xb')](_0x4eb475)&&_0x5d60d8[_0x33b7('0x13')](_0x4eb475,_0x33b7('0x38'))){if(!_0x4b4e3a[_0x33b7('0x32')]['consume'](_0x1dd4a5[_0x33b7('0x37')],_0x1e6316[_0x33b7('0x1c')]))return;const _0x3c04a0=_0x4b4e3a['writer'][_0x33b7('0x8')](_0x33b7('0x1d'),{'class':_0x33b7('0x9')}),_0x40543c=_0x4b4e3a[_0x33b7('0x5')][_0x33b7('0x6')](_0x5c0ae1);_0x3d6855&&_0x46b435[_0x33b7('0x4')]['includes'](_0x1dd4a5['markerName'])&&_0x4b4e3a['writer'][_0x33b7('0x10')]('ck-suggestion-marker--active',_0x3c04a0),_0x4b4e3a[_0x33b7('0x21')][_0x33b7('0x2b')](_0x40543c,_0x3c04a0),_0x4b4e3a[_0x33b7('0x5')][_0x33b7('0x18')](_0x3c04a0,_0x1dd4a5[_0x33b7('0x25')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xecff=['getItems','plugins','TrackChangesEditing','change','RemoveFormatEditing','removeFormat','selection','isCollapsed','locale','getAttributes','commandName','getRanges','registerDescriptionCallback','editor','from','document','has','model'];(function(_0x36499e,_0xecffb7){const _0x4de538=function(_0x23f5e7){while(--_0x23f5e7){_0x36499e['push'](_0x36499e['shift']());}};_0x4de538(++_0xecffb7);}(_0xecff,0x148));const _0x4de5=function(_0x36499e,_0xecffb7){_0x36499e=_0x36499e-0x0;let _0x4de538=_0xecff[_0x36499e];return _0x4de538;};import{Plugin as _0x5299c3}from'ckeditor5/src/core';import{getTranslation as _0xa37d59}from'../utils/common-translations';export default class ht extends _0x5299c3{['afterInit'](){const _0x55939d=this[_0x4de5('0x9')];if(!_0x55939d[_0x4de5('0xf')][_0x4de5('0xc')](_0x4de5('0x0')))return;const _0x391fb5=_0x55939d[_0x4de5('0xf')]['get'](_0x4de5('0x10'));_0x391fb5['enableCommand'](_0x4de5('0x1'),_0x4dea63=>{const _0x4adeb8=_0x55939d['model'][_0x4de5('0xb')][_0x4de5('0x2')];_0x4adeb8[_0x4de5('0x3')]?_0x4dea63():_0x55939d['model'][_0x4de5('0x11')](()=>{const _0x5ca5f1=Array[_0x4de5('0xa')](_0x4adeb8[_0x4de5('0x7')]());for(const _0x20eb4b of _0x5ca5f1)for(const _0xd360 of _0x20eb4b[_0x4de5('0xe')]())uo(_0xd360,_0x55939d[_0x4de5('0xd')]['schema'])&&_0x391fb5['markInlineFormat'](_0x55939d[_0x4de5('0xd')]['createRangeOn'](_0xd360),{'commandName':_0x4de5('0x1'),'commandParams':[]});});}),_0x391fb5['_descriptionFactory'][_0x4de5('0x8')](_0x58faa5=>{const {data:_0x5acc16}=_0x58faa5;if(_0x5acc16&&_0x4de5('0x1')==_0x5acc16[_0x4de5('0x6')])return{'type':'format','content':_0xa37d59(_0x55939d[_0x4de5('0x4')],'*Remove\x20all\x20formatting*')};});}}function uo(_0x3efef0,_0x24fb63){for(const [_0x1d29c0]of _0x3efef0[_0x4de5('0x5')]()){const _0x119a0e=_0x24fb63['getAttributeProperties'](_0x1d29c0);if(_0x119a0e&&_0x119a0e['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5769=['goToPreviousRestrictedEditingException','trackChanges','acceptSelectedSuggestions','enableCommand','RestrictedEditingModeEditing','acceptAllSuggestions','get','acceptSuggestion','editor','discardSuggestion','plugins','has','afterInit'];(function(_0x49b148,_0x5769bc){const _0x20fbc0=function(_0x1d20b7){while(--_0x1d20b7){_0x49b148['push'](_0x49b148['shift']());}};_0x20fbc0(++_0x5769bc);}(_0x5769,0x199));const _0x20fb=function(_0x49b148,_0x5769bc){_0x49b148=_0x49b148-0x0;let _0x20fbc0=_0x5769[_0x49b148];return _0x20fbc0;};import{Plugin as _0x44c846}from'ckeditor5/src/core';export default class ut extends _0x44c846{[_0x20fb('0x6')](){const _0x2dfa15=this[_0x20fb('0x2')];if(!_0x2dfa15[_0x20fb('0x4')][_0x20fb('0x5')](_0x20fb('0xb')))return;const _0x29fe04=_0x2dfa15['plugins']['get']('TrackChangesEditing');_0x29fe04[_0x20fb('0xa')](_0x20fb('0x7')),_0x29fe04[_0x20fb('0xa')]('goToNextRestrictedEditingException');const _0xb0bcb7=_0x2dfa15[_0x20fb('0x4')][_0x20fb('0x0')]('RestrictedEditingModeEditing');_0xb0bcb7[_0x20fb('0xa')](_0x20fb('0x8')),_0xb0bcb7[_0x20fb('0xa')](_0x20fb('0x1')),_0xb0bcb7[_0x20fb('0xa')](_0x20fb('0x3')),_0xb0bcb7[_0x20fb('0xa')](_0x20fb('0xc')),_0xb0bcb7[_0x20fb('0xa')]('discardAllSuggestions'),_0xb0bcb7['enableCommand'](_0x20fb('0x9')),_0xb0bcb7[_0x20fb('0xa')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53ca=['init','markerRange','includes','span','activeMarkers','model','split','registerElementLabel','toViewPosition','get','name','bindElementToMarker','editor','merge','plugins','enableCommand','createUIElement','test','high','deletion','createPositionBefore','addMarker:suggestion','ELEMENT_LINE_BREAK','writer','options','_descriptionFactory','consumable','locale','showSuggestionHighlights','downcastDispatcher','ck-suggestion-marker--active','requires','ck-suggestion-marker-','editing','markerName','shiftEnter','addMarker:suggestion:deletion','softBreak','insert'];(function(_0x3dee82,_0x53caf4){const _0x3f4627=function(_0x414a70){while(--_0x414a70){_0x3dee82['push'](_0x3dee82['shift']());}};_0x3f4627(++_0x53caf4);}(_0x53ca,0x168));const _0x3f46=function(_0x3dee82,_0x53caf4){_0x3dee82=_0x3dee82-0x0;let _0x3f4627=_0x53ca[_0x3dee82];return _0x3f4627;};import{Plugin as _0x14eab0}from'ckeditor5/src/core';import{ShiftEnter as _0x1dcea7}from'ckeditor5/src/enter';import{getTranslation as _0x565b8c}from'../utils/common-translations';export default class ft extends _0x14eab0{static get[_0x3f46('0x16')](){return[_0x1dcea7];}[_0x3f46('0x1e')](){const _0x4b6e2f=this[_0x3f46('0x3')],_0x5aed51=_0x4b6e2f[_0x3f46('0x5')][_0x3f46('0x0')]('TrackChangesEditing');_0x5aed51[_0x3f46('0x6')](_0x3f46('0x1a')),_0x4b6e2f[_0x3f46('0x18')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',re(_0x4b6e2f),{'priority':_0x3f46('0x9')}),_0x4b6e2f[_0x3f46('0x18')][_0x3f46('0x14')]['on'](_0x3f46('0x1b'),re(_0x4b6e2f),{'priority':_0x3f46('0x9')}),_0x4b6e2f['data'][_0x3f46('0x14')]['on'](_0x3f46('0xc'),(_0x256014,_0x2d3b26,_0x11fc65)=>{_0x11fc65[_0x3f46('0xf')][_0x3f46('0x13')]&&re(_0x4b6e2f,{'showActiveMarker':!0x1})(_0x256014,_0x2d3b26,_0x11fc65);}),_0x5aed51[_0x3f46('0x10')][_0x3f46('0x25')]('softBreak',_0x16ec94=>_0x565b8c(_0x4b6e2f[_0x3f46('0x12')],_0x3f46('0xd'),_0x16ec94));}}function re(_0x37ca6e,{showActiveMarker:_0x49acf3=!0x0}={}){return(_0x4e3ca2,_0x3a0117,_0x310f5a)=>{const _0x44f9c8=_0x37ca6e[_0x3f46('0x5')][_0x3f46('0x0')]('TrackChangesEditing');if(!_0x310f5a[_0x3f46('0x11')][_0x3f46('0x8')](_0x3a0117[_0x3f46('0x1f')],_0x4e3ca2[_0x3f46('0x1')]))return;const _0x10a219=_0x37ca6e[_0x3f46('0x23')];for(const _0x3c7797 of _0x3a0117['markerRange']['getItems']()){if(!_0x3c7797['is']('element',_0x3f46('0x1c')))continue;const _0x48885c=_0x3f46('0xa')==_0x3a0117[_0x3f46('0x19')][_0x3f46('0x24')](':')[0x1]?_0x3f46('0x4'):_0x3f46('0x24'),_0xc00dc3=_0x310f5a['writer'][_0x3f46('0x7')](_0x3f46('0x21'),{'class':_0x3f46('0x17')+_0x48885c}),_0x42140b=_0x310f5a['mapper'][_0x3f46('0x26')](_0x10a219[_0x3f46('0xb')](_0x3c7797));_0x49acf3&&_0x44f9c8[_0x3f46('0x22')][_0x3f46('0x20')](_0x3a0117[_0x3f46('0x19')])&&_0x310f5a[_0x3f46('0xe')]['addClass'](_0x3f46('0x15'),_0xc00dc3),_0x310f5a[_0x3f46('0xe')][_0x3f46('0x1d')](_0x42140b,_0xc00dc3),_0x310f5a['mapper'][_0x3f46('0x2')](_0xc00dc3,_0x3a0117[_0x3f46('0x19')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38e0=['document','FORMAT_RESTRICTED_ENABLED','commandName','getRanges','TrackChangesEditing','from','FORMAT_RESTRICTED_DISABLED','value','registerDescriptionCallback','selection','forceValue','_descriptionFactory','get','plugins','markInlineFormat','restrictedEditingException','model','enableCommand','has','afterInit','commands','format','StandardEditingModeEditing'];(function(_0x383774,_0x38e0ee){const _0x3abd6e=function(_0x5217de){while(--_0x5217de){_0x383774['push'](_0x383774['shift']());}};_0x3abd6e(++_0x38e0ee);}(_0x38e0,0x150));const _0x3abd=function(_0x383774,_0x38e0ee){_0x383774=_0x383774-0x0;let _0x3abd6e=_0x38e0[_0x383774];return _0x3abd6e;};import{Plugin as _0x504b99}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x2067c8}from'./utils';import{getTranslation as _0x4191d3}from'../utils/common-translations';export default class lt extends _0x504b99{[_0x3abd('0x5')](){const _0x2b8e0e=this['editor'],_0x43eb9d=_0x2b8e0e[_0x3abd('0x2')],_0xaf4ff=_0x2b8e0e['locale'];if(!_0x2b8e0e[_0x3abd('0x16')][_0x3abd('0x4')](_0x3abd('0x8')))return;const _0x1a9232=_0x2b8e0e[_0x3abd('0x16')][_0x3abd('0x15')](_0x3abd('0xd')),_0x3f7734=_0x3abd('0x1'),_0x46ac3c=_0x2b8e0e[_0x3abd('0x6')]['get'](_0x3f7734);_0x1a9232[_0x3abd('0x3')](_0x3f7734,(_0x1e35e3,_0x4d45f4={})=>{const _0x410144=_0x43eb9d[_0x3abd('0x9')][_0x3abd('0x12')];if(_0x410144['isCollapsed'])return void _0x1e35e3(_0x4d45f4);const _0x3523d8=void 0x0!==_0x4d45f4['forceValue']?_0x4d45f4['forceValue']:!_0x46ac3c[_0x3abd('0x10')];_0x43eb9d['change'](()=>{const _0x27d5de=Array[_0x3abd('0xe')](_0x410144[_0x3abd('0xc')]());for(const _0x2803f2 of _0x27d5de){const _0x25036c=_0x3523d8?[_0x2803f2]:_0x2067c8(_0x3f7734,_0x2803f2,_0x43eb9d);for(const _0x1479e1 of _0x25036c)_0x1a9232[_0x3abd('0x0')](_0x1479e1,{'commandName':_0x3f7734,'commandParams':[{'forceValue':_0x3523d8}]});}});}),_0x1a9232[_0x3abd('0x14')][_0x3abd('0x11')](_0x111b2d=>{const {data:_0x21f55a}=_0x111b2d;if(_0x21f55a&&_0x21f55a[_0x3abd('0xb')]==_0x3f7734)return _0x21f55a['commandParams'][0x0][_0x3abd('0x13')]?{'type':_0x3abd('0x7'),'content':_0x4191d3(_0xaf4ff,_0x3abd('0xa'))}:{'type':_0x3abd('0x7'),'content':_0x4191d3(_0xaf4ff,_0x3abd('0xf'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ecc=['has','getDefinitionsForView','getSelectedBlocks','normalizeConfig','change','get','markBlockFormat','add','forceValue','model','plugins','getAttribute','enabledStyles','value','format','isBlock','classes','style','style:','commandName','includes','push','name','commandParams','getAncestors','styleName','every','find','afterInit','_getRangesWithClasses','TrackChangesEditing','block','DataSchema','inline','_getStyleDefinition','createRangeOn','config','getItems','markInlineFormat','StyleUtils','modelElements','from','*Format:*\x20%0','getRanges','*Remove\x20format:*\x20%0'];(function(_0xf7b755,_0x4eccc3){const _0x36214d=function(_0x3c083c){while(--_0x3c083c){_0xf7b755['push'](_0xf7b755['shift']());}};_0x36214d(++_0x4eccc3);}(_0x4ecc,0xa5));const _0x3621=function(_0xf7b755,_0x4eccc3){_0xf7b755=_0xf7b755-0x0;let _0x36214d=_0x4ecc[_0xf7b755];return _0x36214d;};import{Plugin as _0x2cf626}from'ckeditor5/src/core';import{getTranslation as _0x539d7f}from'../utils/common-translations';export default class gt extends _0x2cf626{[_0x3621('0x2b')](){const _0x532572=this['editor'];if(!_0x532572[_0x3621('0x19')][_0x3621('0xf')]('Style'))return;const _0x587944=_0x532572['commands'][_0x3621('0x14')](_0x3621('0x20')),_0x1e7a32=_0x532572[_0x3621('0x19')]['get'](_0x3621('0x0')),_0x10eeb3=_0x532572['locale'],_0x34c0cb=_0x532572[_0x3621('0x19')][_0x3621('0x14')](_0x3621('0x2')),_0x515efc=_0x532572[_0x3621('0x19')][_0x3621('0x14')](_0x3621('0x9'))[_0x3621('0x12')](_0x34c0cb,_0x532572[_0x3621('0x6')][_0x3621('0x14')]('style.definitions'));_0x1e7a32['enableCommand'](_0x3621('0x20'),(_0x331cb5,{styleName:_0x4cf646})=>{const _0x5b0ce0=_0x532572[_0x3621('0x18')]['document']['selection'],_0x5b17b4=this[_0x3621('0x4')](_0x4cf646,_0x515efc);if(!_0x5b17b4)return;if(!_0x587944[_0x3621('0x1b')][_0x3621('0x23')](_0x4cf646))return;if(_0x5b0ce0['isCollapsed']&&!_0x5b17b4[_0x3621('0x1e')])return void _0x331cb5({'styleName':_0x4cf646});const _0x4ba5df=!_0x587944[_0x3621('0x1c')]['includes'](_0x5b17b4[_0x3621('0x25')]);if(_0x5b17b4[_0x3621('0x1e')]){const _0x1b7e7a=function(_0x251767,_0x2f4c68){const _0x55ef23=new Set();for(const _0x4f8289 of _0x251767){const _0x3a504c=_0x4f8289[_0x3621('0x27')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x31ca64 of _0x3a504c)if(_0x2f4c68['includes'](_0x31ca64[_0x3621('0x25')])){_0x55ef23[_0x3621('0x16')](_0x31ca64);break;}}return _0x55ef23;}(_0x5b0ce0[_0x3621('0x11')](),_0x5b17b4[_0x3621('0xa')]);_0x532572[_0x3621('0x18')][_0x3621('0x13')](()=>{for(const _0x1bd624 of _0x1b7e7a)_0x1e7a32[_0x3621('0x15')](_0x1bd624,{'commandName':_0x3621('0x20'),'commandParams':[{'styleName':_0x4cf646,'forceValue':_0x4ba5df}],'formatGroupId':_0x3621('0x21')+_0x4cf646});});}else{let _0xfc408f=Array[_0x3621('0xb')](_0x5b0ce0[_0x3621('0xd')]());if(!_0x4ba5df){const _0x2d18c7=Array[_0x3621('0xb')](_0x34c0cb[_0x3621('0x10')](_0x5b17b4['element'],!0x1))[0x0][_0x3621('0x18')],_0x504ae9=[];for(const _0x59c7df of _0xfc408f){const _0x319e5d=this[_0x3621('0x2c')](_0x532572[_0x3621('0x18')],_0x59c7df,_0x5b17b4[_0x3621('0x1f')],_0x2d18c7);_0x504ae9[_0x3621('0x24')](..._0x319e5d);}_0xfc408f=_0x504ae9;}_0x532572[_0x3621('0x18')][_0x3621('0x13')](()=>{for(const _0x4c0c56 of _0xfc408f)_0x1e7a32[_0x3621('0x8')](_0x4c0c56,{'commandName':_0x3621('0x20'),'commandParams':[{'styleName':_0x4cf646,'forceValue':_0x4ba5df}]});});}}),_0x1e7a32['_descriptionFactory']['registerDescriptionCallback'](_0x431757=>{const {data:_0x14ccea}=_0x431757;if(_0x14ccea&&_0x3621('0x20')===_0x14ccea[_0x3621('0x22')])return _0x14ccea[_0x3621('0x26')][0x0][_0x3621('0x17')]?{'type':_0x3621('0x1d'),'content':_0x539d7f(_0x10eeb3,_0x3621('0xc'),_0x14ccea[_0x3621('0x26')][0x0][_0x3621('0x28')]['toLowerCase']())}:{'type':_0x3621('0x1d'),'content':_0x539d7f(_0x10eeb3,_0x3621('0xe'),_0x14ccea[_0x3621('0x26')][0x0][_0x3621('0x28')]['toLowerCase']())};});}[_0x3621('0x4')](_0x1db5d0,_0x4e7808){let _0x4d06e6=_0x4e7808[_0x3621('0x1')][_0x3621('0x2a')](_0x20b509=>_0x20b509[_0x3621('0x25')]===_0x1db5d0);return _0x4d06e6||(_0x4d06e6=_0x4e7808[_0x3621('0x3')][_0x3621('0x2a')](_0x2006df=>_0x2006df[_0x3621('0x25')]===_0x1db5d0)),_0x4d06e6;}[_0x3621('0x2c')](_0x4b564e,_0x42f845,_0x23ffe1,_0x313442){const _0x39f859=[];for(const _0x3ae135 of _0x42f845[_0x3621('0x7')]()){const _0xfe2bfa=_0x3ae135[_0x3621('0x1a')](_0x313442);_0xfe2bfa&&(_0x23ffe1[_0x3621('0x29')](_0x397951=>_0xfe2bfa['classes'][_0x3621('0x23')](_0x397951))&&_0x39f859['push'](_0x4b564e[_0x3621('0x5')](_0x3ae135)));}return _0x39f859;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2fa0=['minRow','TableUtils','addMarker:suggestion','name','_tableSuggestions','TableEditing','setSelection','subType','mapper','addRange','change:data','createPositionAt','selection','insertTableColumnRight','_suggestionFactory','_splitMarkerName','createRangeIn','hasAttribute','$graveyard','getItems','has','add','item','isArray','filter','map','$textProxy','insertTable','classes','createRangeOn','ELEMENT_TABLE_COLUMN','join','change','insert','tablePaste','addClass','suggestion','removeTableColumn','last','_getCoordsForCells','detach','findAncestor','commands','first','position','toViewElement','getRowIndexes','length','nodeAfter','every','colspan','insertTableColumnLeft','toLowerCase','MIN_SAFE_INTEGER','insertTableRowAbove','document','getSelectionAffectedTableCells','data','accept','differ','getColumnIndexes','table','_descriptionFactory','afterInit','options','minColumn','_getSuggestionCoords','low','model','enqueueChange','tableCell','min','registerPostFixer','_acceptFormatSuggestionCallbackFactory','getAttribute','includes','registerDescriptionCallback','values','getChangedMarkers','ELEMENT_TABLE','plugins','highest','above','isIntersectingWithRange','editor','get','insertion','selectTableRow','isTouching','fromRange','removeTableRow','end','rowspan','getContainedElement','MAX_SAFE_INTEGER','*Insert:*\x20%0','registerCustomCallback','root','refresh','nodeBefore','batch','start','_tablePostFixingSubtypes','span','rootName','tableRow','max','element','execute','ELEMENT_TABLE_COLUMN_WITH_TEXT','isEqual','createTableWalker','push','downcastDispatcher','type','maxRow','markMultiRangeInsertion','getSuggestion','substr','selectTableColumn','ELEMENT_TABLE_ROW','cell','discard','enableCommand','maxColumn','*Remove:*\x20%0','oldRange','getCellLocation','TrackChangesEditing','_setupColumnsRowsFixing','tableColumn','some','getFirstRange','deletion','from','left','ELEMENT_TABLE_ROW_WITH_TEXT','getChildren','getRanges'];(function(_0x3a7768,_0x2fa03c){const _0x5561fa=function(_0x3ca168){while(--_0x3ca168){_0x3a7768['push'](_0x3a7768['shift']());}};_0x5561fa(++_0x2fa03c);}(_0x2fa0,0x159));const _0x5561=function(_0x3a7768,_0x2fa03c){_0x3a7768=_0x3a7768-0x0;let _0x5561fa=_0x2fa0[_0x3a7768];return _0x5561fa;};import{Plugin as _0x214e5b}from'ckeditor5/src/core';import{LiveRange as _0x14e5c6}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2c7f49}from'ckeditor5/src/widget';import{getTranslation as _0xea22e6}from'../utils/common-translations';export default class mt extends _0x214e5b{constructor(_0x344073){super(_0x344073),this[_0x5561('0x23')]=[_0x5561('0x26'),_0x5561('0x3f')],this['_tableSuggestions']=new Set();}[_0x5561('0x87')](){const _0x5a74d0=this[_0x5561('0x11')],_0x1b315f=_0x5a74d0[_0x5561('0x1')]['document'][_0x5561('0x54')];if(!_0x5a74d0[_0x5561('0xd')][_0x5561('0x5c')](_0x5561('0x4d')))return;const _0x57cccc=_0x5a74d0['locale'],_0x179274=_0x5a74d0[_0x5561('0xd')][_0x5561('0x12')](_0x5561('0x3d')),_0x1dad51=_0x5a74d0[_0x5561('0xd')][_0x5561('0x12')]('TableUtils');_0x179274['_descriptionFactory']['registerElementLabel'](_0x5561('0x85'),_0x4352c6=>_0xea22e6(_0x57cccc,_0x5561('0xc'),_0x4352c6)),this['_setupColumnsRowsFixing'](),_0x179274[_0x5561('0x38')](_0x5561('0x63')),_0x179274[_0x5561('0x38')](_0x5561('0x14')),_0x179274[_0x5561('0x38')](_0x5561('0x34'));for(const _0x51e0bb of[_0x5561('0x7e'),'insertTableRowBelow']){const _0x5644f6=_0x5a74d0[_0x5561('0x72')][_0x5561('0x12')](_0x51e0bb);_0x179274[_0x5561('0x38')](_0x51e0bb,_0x3dd2d7=>{_0x5a74d0[_0x5561('0x1')][_0x5561('0x68')](_0x1c6325=>{_0x3dd2d7();const _0x20aa19=_0x5561('0xf')===_0x5644f6['order'],_0x185d3f=_0x1dad51[_0x5561('0x80')](_0x1b315f),_0x37a9ce=_0x1dad51[_0x5561('0x76')](_0x185d3f),_0x1c04a9=_0x20aa19?_0x37a9ce[_0x5561('0x73')]-0x1:_0x37a9ce[_0x5561('0x6e')]+0x1,_0x24702f=_0x185d3f[0x0][_0x5561('0x71')](_0x5561('0x85')),_0x269916=_0x1dad51[_0x5561('0x2c')](_0x24702f,{'startRow':_0x1c04a9,'endRow':_0x1c04a9}),_0x3a73a1=Array[_0x5561('0x43')](_0x269916)[_0x5561('0x61')](_0x275542=>_0x1c6325[_0x5561('0x65')](_0x275542['cell']));_0x179274[_0x5561('0x31')](_0x3a73a1,_0x5561('0x26'));});});}for(const _0x43558f of[_0x5561('0x7b'),_0x5561('0x55')]){const _0x447106=_0x5a74d0[_0x5561('0x72')]['get'](_0x43558f);_0x179274[_0x5561('0x38')](_0x43558f,_0x2d808d=>{_0x5a74d0['model'][_0x5561('0x68')](_0x2f141a=>{_0x2d808d();const _0x2fba88=_0x5561('0x44')===_0x447106['order'],_0x4ba2d5=_0x1dad51[_0x5561('0x80')](_0x1b315f),_0x27fcf6=_0x1dad51[_0x5561('0x84')](_0x4ba2d5),_0x3a5ba1=_0x2fba88?_0x27fcf6[_0x5561('0x73')]-0x1:_0x27fcf6['last']+0x1,_0x260349=_0x4ba2d5[0x0][_0x5561('0x71')](_0x5561('0x85')),_0x16a9a2=_0x1dad51[_0x5561('0x2c')](_0x260349,{'startRow':0x0,'column':_0x3a5ba1,'includeAllSlots':!0x1}),_0x25afc3=Array[_0x5561('0x43')](_0x16a9a2)[_0x5561('0x61')](_0x3cea05=>_0x2f141a[_0x5561('0x65')](_0x3cea05[_0x5561('0x36')]));_0x179274[_0x5561('0x31')](_0x25afc3,_0x5561('0x3f'));});});}for(const _0x39d281 of[_0x5561('0x17'),_0x5561('0x6d')]){const _0x5496da=_0x39d281[_0x5561('0x33')](0xb),_0x3fd474=_0x5496da[_0x5561('0x7c')](),_0x513dba=_0x3fd474[_0x5561('0x33')](0x0,0x3)+'span',_0x323145=_0x5561('0x85')+_0x5496da,_0x4303b3=_0x5561('0x4')+_0x5496da,_0x47df52=_0x5561('0x27')+_0x5496da;_0x179274[_0x5561('0x38')](_0x39d281,()=>{_0x5a74d0[_0x5561('0x1')]['change'](_0x30d240=>{const _0x35fc4f=_0x1dad51[_0x5561('0x80')](_0x1b315f),_0x311c29=_0x35fc4f[0x0]['findAncestor'](_0x5561('0x85'));let _0x42149f;if('removeTableRow'==_0x39d281){const _0x20b437=_0x1dad51[_0x5561('0x76')](_0x35fc4f);_0x42149f={'startRow':_0x20b437[_0x5561('0x73')],'endRow':_0x20b437['last'],'includeAllSlots':!0x0};}else{const _0x2b7a3f=_0x1dad51['getColumnIndexes'](_0x35fc4f);_0x42149f={'startColumn':_0x2b7a3f[_0x5561('0x73')],'endColumn':_0x2b7a3f[_0x5561('0x6e')],'includeAllSlots':!0x0};}const _0x25e5c3=_0x1dad51['createTableWalker'](_0x311c29,_0x42149f),_0x42148a=Array['from'](_0x25e5c3)[_0x5561('0x61')](({cell:_0x3eb994})=>_0x3eb994),_0x4482db=se(_0x42148a['filter'](_0x4a1089=>_0x4a1089['hasAttribute'](_0x513dba))),_0xcc29e6=se(_0x42148a[_0x5561('0x60')](_0x80146a=>!_0x80146a[_0x5561('0x59')](_0x513dba)))[_0x5561('0x61')](_0x1c4f1e=>_0x30d240[_0x5561('0x65')](_0x1c4f1e)),_0x41152a=_0x179274['markMultiRangeDeletion'](_0xcc29e6,_0x323145);if(_0x41152a&&(_0x5561('0x26')==_0x41152a[_0x5561('0x4f')]||_0x5561('0x3f')==_0x41152a[_0x5561('0x4f')])){const _0x358c23=this[_0x5561('0x8a')](_0x41152a);for(const _0x2c2dce of _0x4482db){const _0x41fe84=_0x30d240[_0x5561('0x65')](_0x2c2dce),_0x54a25a=_0x1dad51[_0x5561('0x3c')](_0x2c2dce),_0x21517b=_0x2c2dce[_0x5561('0x7')](_0x513dba)-0x1,_0xfd21f6=_0x358c23[_0x4303b3],_0x2647f0=_0x358c23[_0x47df52];_0xfd21f6<=_0x54a25a[_0x3fd474]&&_0x54a25a[_0x3fd474]+_0x21517b<=_0x2647f0&&_0x41152a[_0x5561('0x51')](_0x41fe84);}}});});}function _0x61474e(_0x3c65a4){const _0x3017d7=Array[_0x5561('0x43')](_0x1b315f['getRanges']())[_0x5561('0x61')](_0x4facb4=>_0x14e5c6[_0x5561('0x16')](_0x4facb4));_0x5a74d0[_0x5561('0x1')][_0x5561('0x68')](_0x24cc97=>{const _0x2525db=_0x24cc97[_0x5561('0x21')];_0x3c65a4=_0x3c65a4[_0x5561('0x60')](_0x2fb72e=>_0x5561('0x5a')!=_0x2fb72e[_0x5561('0x1e')][_0x5561('0x25')]),_0x24cc97[_0x5561('0x4e')](_0x3c65a4),_0x5a74d0['commands'][_0x5561('0x12')]('removeTableRow')[_0x5561('0x1f')](),_0x5a74d0[_0x5561('0x29')](_0x5561('0x17'),{'forceDefaultExecution':!0x0}),_0x5a74d0[_0x5561('0x1')]['enqueueChange'](()=>{_0x5a74d0['model'][_0x5561('0x2')](_0x2525db,_0x3cd232=>{const _0x3b6a27=_0x3017d7['filter'](_0x2f7dbe=>_0x5561('0x5a')!=_0x2f7dbe[_0x5561('0x1e')][_0x5561('0x25')]);_0x3b6a27['length']>0x0&&_0x3cd232[_0x5561('0x4e')](_0x3b6a27);for(const _0x183444 of _0x3017d7)_0x183444[_0x5561('0x70')]();});});});}function _0x49e1a7(_0x272c24){_0x5a74d0['model'][_0x5561('0x68')](_0x50709f=>{const _0x53eb61=Array[_0x5561('0x43')](_0x1b315f[_0x5561('0x47')]())[_0x5561('0x61')](_0x4788cd=>_0x14e5c6['fromRange'](_0x4788cd)),_0x3b586f=[];for(const _0x3b5505 of _0x272c24)for(const _0xc4b78b of _0x3b5505[_0x5561('0x5b')]({'shallow':!0x0}))_0x3b586f[_0x5561('0x2d')](_0xc4b78b);for(const _0x18b608 of _0x3b586f)'$graveyard'!=_0x18b608[_0x5561('0x1e')][_0x5561('0x25')]&&(_0x50709f[_0x5561('0x4e')](_0x50709f[_0x5561('0x53')](_0x18b608,0x0)),_0x5a74d0['commands'][_0x5561('0x12')](_0x5561('0x6d'))[_0x5561('0x1f')](),_0x5a74d0[_0x5561('0x29')](_0x5561('0x6d'),{'forceDefaultExecution':!0x0}));const _0x513766=_0x53eb61[_0x5561('0x60')](_0x39856e=>_0x5561('0x5a')!=_0x39856e[_0x5561('0x1e')][_0x5561('0x25')]);_0x513766[_0x5561('0x77')]>0x0&&_0x50709f[_0x5561('0x4e')](_0x513766);for(const _0x353049 of _0x53eb61)_0x353049['detach']();});}function _0x433209(_0x21edfd,_0x1fb67f){return _0x1fb67f[_0x5561('0x79')](_0x257ea0=>_0x21edfd[_0x5561('0x40')](_0x276efb=>_0x276efb[_0x5561('0x18')][_0x5561('0x2b')](_0x257ea0[_0x5561('0x22')])||_0x257ea0['end'][_0x5561('0x2b')](_0x276efb[_0x5561('0x22')])));}function _0x589c5d(_0x23ac34,_0x256b8b){return _0x23ac34['some'](_0x4a8307=>_0x256b8b['some'](_0x2eca3c=>_0x4a8307[_0x5561('0x18')][_0x5561('0x15')](_0x2eca3c[_0x5561('0x22')])));}_0x5a74d0[_0x5561('0x81')][_0x5561('0x2e')]['on'](_0x5561('0x4a'),(_0x7248fd,_0x5d97e5,_0x3f9439)=>{if(!_0x3f9439[_0x5561('0x88')]['showSuggestionHighlights'])return;const _0x276a07=_0x5d97e5[_0x5561('0x5e')];if(!_0x276a07)return;const _0x261ada=_0x3f9439[_0x5561('0x50')][_0x5561('0x75')](_0x276a07);function _0x3184cf(_0x19cd23){return Array[_0x5561('0x5f')](_0x19cd23)?_0x19cd23:[_0x19cd23];}_0x261ada&&_0x5561('0x3')===_0x276a07[_0x5561('0x4b')]&&_0x2c7f49(_0x261ada,_0x3f9439['writer'],(_0x504046,_0xa9f656,_0x491606)=>_0x491606[_0x5561('0x6b')](_0x3184cf(_0xa9f656[_0x5561('0x64')]),_0x504046),(_0x430095,_0x2fec9b,_0x2758e7)=>_0x2758e7['removeClass'](_0x3184cf(_0x2fec9b[_0x5561('0x64')]),_0x430095));},{'priority':_0x5561('0xe')}),_0x179274['_descriptionFactory'][_0x5561('0x9')](_0x4fe080=>{if(_0x5561('0x13')!=_0x4fe080[_0x5561('0x2f')]&&'deletion'!=_0x4fe080[_0x5561('0x2f')])return;const _0x37b312=_0x4fe080[_0x5561('0x1a')]();if(null!=_0x37b312&&_0x37b312['is'](_0x5561('0x28'),_0x5561('0x85'))){if('insertion'==_0x4fe080[_0x5561('0x2f')]){const _0xc8b52b=_0x4fe080[_0x5561('0x5b')]()[_0x5561('0x60')](_0x5206dc=>_0x5206dc['is'](_0x5561('0x62')))[_0x5561('0x61')](_0x2b27e9=>_0x2b27e9[_0x5561('0x81')]);if(_0xc8b52b[_0x5561('0x77')])return{'type':'insertion','content':_0xea22e6(_0x57cccc,_0x5561('0x1c'),_0xea22e6(_0x57cccc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc8b52b[_0x5561('0x67')]('\x20')+'\x22'))};}if(_0x5561('0x42')==_0x4fe080[_0x5561('0x2f')]){const _0x4cfcd0=_0x4fe080['getItems']()[_0x5561('0x60')](_0x3ba8d3=>_0x3ba8d3['is'](_0x5561('0x62')))[_0x5561('0x61')](_0x52c9c8=>_0x52c9c8['data']);if(_0x4cfcd0[_0x5561('0x77')])return{'type':_0x5561('0x42'),'content':_0xea22e6(_0x57cccc,_0x5561('0x3a'),_0xea22e6(_0x57cccc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cfcd0['join']('\x20')+'\x22'))};}}}),_0x179274[_0x5561('0x86')][_0x5561('0x9')](_0x2dec56=>{if(_0x5561('0x26')==_0x2dec56[_0x5561('0x4f')]){const _0x300dfe=_0x2dec56[_0x5561('0x5b')]()['filter'](_0x5d7834=>_0x5d7834['is'](_0x5561('0x62')))[_0x5561('0x61')](_0x20bec9=>_0x20bec9[_0x5561('0x81')]),_0x2a6d48=this['_getSuggestionCoords'](_0x2dec56),_0x374e9=_0x2a6d48[_0x5561('0x30')]-_0x2a6d48[_0x5561('0x48')]+0x1;if('insertion'==_0x2dec56[_0x5561('0x2f')])return _0x300dfe[_0x5561('0x77')]?{'type':_0x5561('0x13'),'content':_0xea22e6(_0x57cccc,_0x5561('0x1c'),_0xea22e6(_0x57cccc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x374e9,'\x22'+_0x300dfe[_0x5561('0x67')]('\x20')+'\x22']))}:{'type':_0x5561('0x13'),'content':_0xea22e6(_0x57cccc,_0x5561('0x1c'),_0xea22e6(_0x57cccc,_0x5561('0x35'),_0x374e9))};if(_0x5561('0x42')==_0x2dec56[_0x5561('0x2f')])return _0x300dfe[_0x5561('0x77')]?{'type':_0x5561('0x42'),'content':_0xea22e6(_0x57cccc,'*Remove:*\x20%0',_0xea22e6(_0x57cccc,_0x5561('0x45'),[_0x374e9,'\x22'+_0x300dfe[_0x5561('0x67')]('\x20')+'\x22']))}:{'type':'deletion','content':_0xea22e6(_0x57cccc,_0x5561('0x3a'),_0xea22e6(_0x57cccc,'ELEMENT_TABLE_ROW',_0x374e9))};}if(_0x5561('0x3f')==_0x2dec56[_0x5561('0x4f')]){const _0xb2f569=_0x2dec56['getItems']()[_0x5561('0x60')](_0x311cc9=>_0x311cc9['is']('$textProxy'))[_0x5561('0x61')](_0x2afa94=>_0x2afa94['data']),_0x262add=this[_0x5561('0x8a')](_0x2dec56),_0x2d8b0d=_0x262add[_0x5561('0x39')]-_0x262add[_0x5561('0x89')]+0x1;if(_0x5561('0x13')==_0x2dec56['type'])return _0xb2f569['length']?{'type':_0x5561('0x13'),'content':_0xea22e6(_0x57cccc,_0x5561('0x1c'),_0xea22e6(_0x57cccc,_0x5561('0x2a'),[_0x2d8b0d,'\x22'+_0xb2f569[_0x5561('0x67')]('\x20')+'\x22']))}:{'type':'insertion','content':_0xea22e6(_0x57cccc,_0x5561('0x1c'),_0xea22e6(_0x57cccc,_0x5561('0x66'),_0x2d8b0d))};if(_0x5561('0x42')==_0x2dec56[_0x5561('0x2f')])return _0xb2f569[_0x5561('0x77')]?{'type':'deletion','content':_0xea22e6(_0x57cccc,_0x5561('0x3a'),_0xea22e6(_0x57cccc,_0x5561('0x2a'),[_0x2d8b0d,'\x22'+_0xb2f569[_0x5561('0x67')]('\x20')+'\x22']))}:{'type':_0x5561('0x42'),'content':_0xea22e6(_0x57cccc,_0x5561('0x3a'),_0xea22e6(_0x57cccc,'ELEMENT_TABLE_COLUMN',_0x2d8b0d))};}}),_0x179274[_0x5561('0x56')][_0x5561('0x1d')](_0x5561('0x13'),'tableRow','discard',_0x61474e),_0x179274[_0x5561('0x56')]['registerCustomCallback'](_0x5561('0x42'),_0x5561('0x26'),_0x5561('0x82'),_0x61474e),_0x179274['_suggestionFactory'][_0x5561('0x1d')](_0x5561('0x13'),_0x5561('0x3f'),_0x5561('0x37'),_0x49e1a7),_0x179274[_0x5561('0x56')][_0x5561('0x1d')](_0x5561('0x42'),_0x5561('0x3f'),_0x5561('0x82'),_0x49e1a7),_0x179274[_0x5561('0x56')][_0x5561('0x1d')](_0x5561('0x13'),'tableColumn',_0x5561('0x67'),_0x433209),_0x179274[_0x5561('0x56')]['registerCustomCallback'](_0x5561('0x42'),_0x5561('0x3f'),_0x5561('0x67'),_0x433209),_0x179274[_0x5561('0x56')][_0x5561('0x1d')](_0x5561('0x13'),_0x5561('0x26'),'join',_0x589c5d),_0x179274[_0x5561('0x56')][_0x5561('0x1d')](_0x5561('0x42'),_0x5561('0x26'),_0x5561('0x67'),_0x589c5d);}[_0x5561('0x6')](){const _0x599759=this[_0x5561('0x11')],_0x599b27=_0x599759['model'][_0x5561('0x7f')][_0x5561('0x54')];return(_0xd4ecb6,_0x3e3b34)=>{_0x599759['model'][_0x5561('0x68')](_0x2e1766=>{const {commandName:_0x1f03a7,commandParams:_0x18cf16}=_0x3e3b34;let _0x3512a3=_0xd4ecb6[0x0]['end'][_0x5561('0x20')];_0x18cf16&&_0x18cf16[0x0]&&!0x1===_0x18cf16[0x0]['forceValue']&&(_0x3512a3=_0xd4ecb6[0x0][_0x5561('0x22')][_0x5561('0x78')]);const _0x47b631=_0x2e1766[_0x5561('0x58')](_0x3512a3);if('$graveyard'==_0x47b631[_0x5561('0x1e')][_0x5561('0x25')])return;const _0x47ec2d=Array[_0x5561('0x43')](_0x599b27[_0x5561('0x47')]())['map'](_0x5bcda4=>_0x14e5c6['fromRange'](_0x5bcda4));_0x2e1766[_0x5561('0x4e')](_0x47b631),_0x599759[_0x5561('0x72')][_0x5561('0x12')](_0x1f03a7)[_0x5561('0x1f')](),_0x18cf16[_0x5561('0x2d')]({'forceDefaultExecution':!0x0}),_0x599759['execute'](_0x1f03a7,..._0x18cf16);const _0x129703=_0x47ec2d['filter'](_0x11df96=>_0x5561('0x5a')!=_0x11df96[_0x5561('0x1e')][_0x5561('0x25')]);_0x129703['length']>0x0&&_0x2e1766['setSelection'](_0x129703);for(const _0x205d75 of _0x47ec2d)_0x205d75[_0x5561('0x70')]();});};}[_0x5561('0x6f')](_0x5cee37){const _0x4418d1=this[_0x5561('0x11')][_0x5561('0xd')]['get'](_0x5561('0x49'));let _0x5caedd=Number[_0x5561('0x1b')],_0x70a238=Number[_0x5561('0x7d')],_0xe0139e=Number[_0x5561('0x1b')],_0x31b5a2=Number[_0x5561('0x7d')];for(const _0x264f73 of _0x5cee37){if(_0x5561('0x5a')==_0x264f73[_0x5561('0x1e')][_0x5561('0x25')])continue;const {row:_0x23b1bf,column:_0x2b944c}=_0x4418d1[_0x5561('0x3c')](_0x264f73),_0x519776=_0x264f73[_0x5561('0x59')](_0x5561('0x19'))?_0x264f73[_0x5561('0x7')](_0x5561('0x19'))-0x1:0x0,_0x3dd1d4=_0x264f73['hasAttribute'](_0x5561('0x7a'))?_0x264f73[_0x5561('0x7')](_0x5561('0x7a'))-0x1:0x0;_0x5caedd=_0x23b1bf<_0x5caedd?_0x23b1bf:_0x5caedd,_0x70a238=_0x23b1bf+_0x519776>_0x70a238?_0x23b1bf+_0x519776:_0x70a238,_0xe0139e=_0x2b944c<_0xe0139e?_0x2b944c:_0xe0139e,_0x31b5a2=_0x2b944c+_0x3dd1d4>_0x31b5a2?_0x2b944c+_0x3dd1d4:_0x31b5a2;}return{'minRow':_0x5caedd,'maxRow':_0x70a238,'minColumn':_0xe0139e,'maxColumn':_0x31b5a2};}[_0x5561('0x3e')](){const _0x4b88ea=this['editor'],_0x1e954b=_0x4b88ea['plugins'][_0x5561('0x12')](_0x5561('0x3d')),_0x323ae9=_0x4b88ea['plugins'][_0x5561('0x12')](_0x5561('0x49'));_0x4b88ea[_0x5561('0x1')][_0x5561('0x7f')]['on'](_0x5561('0x52'),()=>{const _0x4800e0=Array['from'](_0x4b88ea['model'][_0x5561('0x7f')][_0x5561('0x83')][_0x5561('0xb')]());for(const {name:_0x3b2714,data:_0x4e3154}of _0x4800e0){const {group:_0x2e6c54,id:_0x5addbd,subType:_0x1264e0}=_0x1e954b[_0x5561('0x57')](_0x3b2714);if(_0x5561('0x6c')!=_0x2e6c54)continue;if(null!=_0x4e3154[_0x5561('0x3b')])continue;const _0xf71900=_0x1e954b[_0x5561('0x32')](_0x5addbd);this['_tablePostFixingSubtypes'][_0x5561('0x8')](_0x1264e0)&&this['_tableSuggestions'][_0x5561('0x5d')](_0xf71900);}},{'priority':_0x5561('0x0')});const _0x93635c=(_0x5c66e1,_0x1e0f16)=>{let _0x1a372d=!0x1;const _0x401a25=_0x1e0f16['createRangeOn'](_0x5c66e1),_0x1f5c6b=_0x5c66e1[_0x5561('0x71')]('table'),_0x744b67=_0x323ae9[_0x5561('0x3c')](_0x5c66e1);for(const _0x238549 of this[_0x5561('0x4c')]){const _0x5ec77c=_0x238549[_0x5561('0x4f')],_0x1cfe25=_0x5ec77c['startsWith'](_0x5561('0x6a')),_0x40a0b1=_0x5ec77c[_0x5561('0x33')](_0x1cfe25?0xa:0x5),_0x526fa0=_0x40a0b1['toLowerCase'](),_0x495a7c=_0x526fa0[_0x5561('0x33')](0x0,0x3)+_0x5561('0x24'),_0xf721c3=_0x5561('0x4')+_0x40a0b1,_0x3b2b89='max'+_0x40a0b1;if(!_0x238549['isInContent'])continue;if(_0x1f5c6b!=_0x238549[_0x5561('0x41')]()['start'][_0x5561('0x71')](_0x5561('0x85')))continue;if(_0x238549[_0x5561('0x10')](_0x401a25))continue;const _0x31bcf3=_0x5c66e1['hasAttribute'](_0x495a7c)?_0x5c66e1[_0x5561('0x7')](_0x495a7c)-0x1:0x0,_0x14b4b7=this[_0x5561('0x8a')](_0x238549),_0x214eea=_0x14b4b7[_0xf721c3],_0x553339=_0x14b4b7[_0x3b2b89];_0x214eea<=_0x744b67[_0x526fa0]&&_0x744b67[_0x526fa0]+_0x31bcf3<=_0x553339&&(_0x238549[_0x5561('0x51')](_0x401a25),_0x1a372d=!0x0);}return _0x1a372d;};_0x4b88ea[_0x5561('0x1')]['document'][_0x5561('0x5')](_0x241d94=>{let _0x523a5c=!0x1;for(const _0x15216f of _0x4b88ea[_0x5561('0x1')][_0x5561('0x7f')][_0x5561('0x83')]['getChanges']())if(_0x5561('0x69')==_0x15216f[_0x5561('0x2f')]){if('tableRow'==_0x15216f[_0x5561('0x4b')])for(const _0x2f37c2 of _0x15216f[_0x5561('0x74')][_0x5561('0x78')][_0x5561('0x46')]())_0x523a5c=_0x523a5c||_0x93635c(_0x2f37c2,_0x241d94);else _0x5561('0x3')==_0x15216f[_0x5561('0x4b')]&&(_0x523a5c=_0x523a5c||_0x93635c(_0x15216f['position'][_0x5561('0x78')],_0x241d94));}return _0x523a5c;});}[_0x5561('0x8a')](_0x73d83f){return this[_0x5561('0x6f')](_0x73d83f['getRanges']()['map'](_0x23ffe0=>_0x23ffe0[_0x5561('0x22')]['nodeAfter']));}}function se(_0xe1deea){return Array[_0x5561('0x43')](new Set(_0xe1deea)[_0x5561('0xa')]());}
|
|
23
|
+
const _0x43b4=['createTableWalker','suggestion','writer','markMultiRangeInsertion','isInContent','TrackChangesEditing','getChildren','above','$graveyard','enableCommand','tableColumn','root','getRowIndexes','filter','name','_setupColumnsRowsFixing','getSuggestion','isIntersectingWithRange','getFirstRange','editor','getSelectionAffectedTableCells','markMultiRangeDeletion','add','differ','_getCoordsForCells','end','every','first','max','getContainedElement','change','last','data','*Remove:*\x20%0','createPositionAt','_acceptFormatSuggestionCallbackFactory','afterInit','_tablePostFixingSubtypes','addMarker:suggestion','rowspan','deletion','execute','join','map','tableCell','isArray','toViewElement','plugins','ELEMENT_TABLE_COLUMN','position','subType','commands','order','showSuggestionHighlights','selectTableColumn','_tableSuggestions','registerPostFixer','hasAttribute','getRanges','type','maxRow','insertTable','insertTableRowAbove','includes','ELEMENT_TABLE_ROW_WITH_TEXT','createRangeOn','from','oldRange','left','fromRange','_suggestionFactory','get','registerDescriptionCallback','substr','removeTableColumn','*Insert:*\x20%0','element','enqueueChange','_splitMarkerName','change:data','getItems','ELEMENT_TABLE_WITH_TEXT','isEqual','discard','minColumn','MIN_SAFE_INTEGER','ELEMENT_TABLE','push','removeClass','document','getAttribute','insertTableRowBelow','insertion','minRow','_getSuggestionCoords','_descriptionFactory','classes','length','min','getCellLocation','addRange','isTouching','options','detach','removeTableRow','downcastDispatcher','findAncestor','ELEMENT_TABLE_COLUMN_WITH_TEXT','start','rootName','colspan','selectTableRow','model','getChangedMarkers','getChanges','$textProxy','tableRow','values','some','table','refresh','insertTableColumnLeft','ELEMENT_TABLE_ROW','registerCustomCallback','setSelection','toLowerCase','accept','TableUtils','insert','getColumnIndexes','item','nodeAfter','TableEditing','cell','MAX_SAFE_INTEGER'];(function(_0x34bdd3,_0x43b4f9){const _0x5cc087=function(_0x1b6f82){while(--_0x1b6f82){_0x34bdd3['push'](_0x34bdd3['shift']());}};_0x5cc087(++_0x43b4f9);}(_0x43b4,0x141));const _0x5cc0=function(_0x34bdd3,_0x43b4f9){_0x34bdd3=_0x34bdd3-0x0;let _0x5cc087=_0x43b4[_0x34bdd3];return _0x5cc087;};import{Plugin as _0x46f1c9}from'ckeditor5/src/core';import{LiveRange as _0x5366cb}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3fbed8}from'ckeditor5/src/widget';import{getTranslation as _0x528878}from'../utils/common-translations';export default class mt extends _0x46f1c9{constructor(_0x4ae1ef){super(_0x4ae1ef),this['_tablePostFixingSubtypes']=[_0x5cc0('0x41'),_0x5cc0('0x5e')],this['_tableSuggestions']=new Set();}[_0x5cc0('0x78')](){const _0x233006=this['editor'],_0x326853=_0x233006['model'][_0x5cc0('0x26')]['selection'];if(!_0x233006[_0x5cc0('0x83')]['has'](_0x5cc0('0x51')))return;const _0x553e08=_0x233006['locale'],_0x5baea5=_0x233006[_0x5cc0('0x83')][_0x5cc0('0x14')](_0x5cc0('0x59')),_0x5368c4=_0x233006[_0x5cc0('0x83')]['get'](_0x5cc0('0x4c'));_0x5baea5[_0x5cc0('0x2c')]['registerElementLabel']('table',_0x23b1b2=>_0x528878(_0x553e08,_0x5cc0('0x23'),_0x23b1b2)),this[_0x5cc0('0x63')](),_0x5baea5[_0x5cc0('0x5d')](_0x5cc0('0xa')),_0x5baea5[_0x5cc0('0x5d')](_0x5cc0('0x3c')),_0x5baea5['enableCommand'](_0x5cc0('0x3'));for(const _0x601cc of[_0x5cc0('0xb'),_0x5cc0('0x28')]){const _0x28440c=_0x233006['commands'][_0x5cc0('0x14')](_0x601cc);_0x5baea5[_0x5cc0('0x5d')](_0x601cc,_0xc34638=>{_0x233006['model'][_0x5cc0('0x72')](_0x209a44=>{_0xc34638();const _0x236e24=_0x5cc0('0x5b')===_0x28440c[_0x5cc0('0x1')],_0xa16bbb=_0x5368c4[_0x5cc0('0x68')](_0x326853),_0x439f91=_0x5368c4['getRowIndexes'](_0xa16bbb),_0x4361b2=_0x236e24?_0x439f91['first']-0x1:_0x439f91[_0x5cc0('0x73')]+0x1,_0x45860a=_0xa16bbb[0x0][_0x5cc0('0x37')](_0x5cc0('0x44')),_0xd9c337=_0x5368c4[_0x5cc0('0x54')](_0x45860a,{'startRow':_0x4361b2,'endRow':_0x4361b2}),_0x2e0e76=Array[_0x5cc0('0xf')](_0xd9c337)['map'](_0x333669=>_0x209a44[_0x5cc0('0xe')](_0x333669[_0x5cc0('0x52')]));_0x5baea5['markMultiRangeInsertion'](_0x2e0e76,_0x5cc0('0x41'));});});}for(const _0x1e188d of[_0x5cc0('0x46'),'insertTableColumnRight']){const _0xf74201=_0x233006[_0x5cc0('0x0')][_0x5cc0('0x14')](_0x1e188d);_0x5baea5[_0x5cc0('0x5d')](_0x1e188d,_0x296dd4=>{_0x233006[_0x5cc0('0x3d')]['change'](_0x25a90b=>{_0x296dd4();const _0x4a7060=_0x5cc0('0x11')===_0xf74201[_0x5cc0('0x1')],_0x568f0e=_0x5368c4['getSelectionAffectedTableCells'](_0x326853),_0x4cf83f=_0x5368c4[_0x5cc0('0x4e')](_0x568f0e),_0x2ae2fc=_0x4a7060?_0x4cf83f[_0x5cc0('0x6f')]-0x1:_0x4cf83f[_0x5cc0('0x73')]+0x1,_0x554d06=_0x568f0e[0x0][_0x5cc0('0x37')](_0x5cc0('0x44')),_0x4600e8=_0x5368c4[_0x5cc0('0x54')](_0x554d06,{'startRow':0x0,'column':_0x2ae2fc,'includeAllSlots':!0x1}),_0x41ba04=Array[_0x5cc0('0xf')](_0x4600e8)[_0x5cc0('0x7f')](_0x3a3f88=>_0x25a90b[_0x5cc0('0xe')](_0x3a3f88[_0x5cc0('0x52')]));_0x5baea5[_0x5cc0('0x57')](_0x41ba04,_0x5cc0('0x5e'));});});}for(const _0x4c0837 of[_0x5cc0('0x35'),_0x5cc0('0x17')]){const _0x135c6b=_0x4c0837['substr'](0xb),_0x29a132=_0x135c6b[_0x5cc0('0x4a')](),_0x297a31=_0x29a132['substr'](0x0,0x3)+'span',_0x29673e='table'+_0x135c6b,_0x589200=_0x5cc0('0x2f')+_0x135c6b,_0x3fc9f0=_0x5cc0('0x70')+_0x135c6b;_0x5baea5[_0x5cc0('0x5d')](_0x4c0837,()=>{_0x233006[_0x5cc0('0x3d')][_0x5cc0('0x72')](_0x46cbec=>{const _0x37c493=_0x5368c4[_0x5cc0('0x68')](_0x326853),_0x3adf9a=_0x37c493[0x0]['findAncestor'](_0x5cc0('0x44'));let _0x58e0c9;if('removeTableRow'==_0x4c0837){const _0x16b8b9=_0x5368c4[_0x5cc0('0x60')](_0x37c493);_0x58e0c9={'startRow':_0x16b8b9['first'],'endRow':_0x16b8b9['last'],'includeAllSlots':!0x0};}else{const _0x5be5ca=_0x5368c4[_0x5cc0('0x4e')](_0x37c493);_0x58e0c9={'startColumn':_0x5be5ca[_0x5cc0('0x6f')],'endColumn':_0x5be5ca[_0x5cc0('0x73')],'includeAllSlots':!0x0};}const _0x47fb24=_0x5368c4[_0x5cc0('0x54')](_0x3adf9a,_0x58e0c9),_0x38c3db=Array[_0x5cc0('0xf')](_0x47fb24)[_0x5cc0('0x7f')](({cell:_0x167ece})=>_0x167ece),_0x3c85b9=se(_0x38c3db[_0x5cc0('0x61')](_0x416420=>_0x416420[_0x5cc0('0x6')](_0x297a31))),_0x509a9a=se(_0x38c3db['filter'](_0x122783=>!_0x122783['hasAttribute'](_0x297a31)))[_0x5cc0('0x7f')](_0x10d758=>_0x46cbec[_0x5cc0('0xe')](_0x10d758)),_0x269450=_0x5baea5[_0x5cc0('0x69')](_0x509a9a,_0x29673e);if(_0x269450&&(_0x5cc0('0x41')==_0x269450[_0x5cc0('0x86')]||'tableColumn'==_0x269450[_0x5cc0('0x86')])){const _0x26122e=this[_0x5cc0('0x2b')](_0x269450);for(const _0x4c2609 of _0x3c85b9){const _0x47ddbb=_0x46cbec[_0x5cc0('0xe')](_0x4c2609),_0x2eab36=_0x5368c4[_0x5cc0('0x30')](_0x4c2609),_0x4555f3=_0x4c2609[_0x5cc0('0x27')](_0x297a31)-0x1,_0x485ca0=_0x26122e[_0x589200],_0x544ffe=_0x26122e[_0x3fc9f0];_0x485ca0<=_0x2eab36[_0x29a132]&&_0x2eab36[_0x29a132]+_0x4555f3<=_0x544ffe&&_0x269450[_0x5cc0('0x31')](_0x47ddbb);}}});});}function _0xb81d6(_0x54bce5){const _0x359b8d=Array[_0x5cc0('0xf')](_0x326853[_0x5cc0('0x7')]())['map'](_0x13b264=>_0x5366cb[_0x5cc0('0x12')](_0x13b264));_0x233006[_0x5cc0('0x3d')][_0x5cc0('0x72')](_0x5c1fbb=>{const _0x343534=_0x5c1fbb['batch'];_0x54bce5=_0x54bce5['filter'](_0x46bca0=>_0x5cc0('0x5c')!=_0x46bca0[_0x5cc0('0x5f')]['rootName']),_0x5c1fbb[_0x5cc0('0x49')](_0x54bce5),_0x233006[_0x5cc0('0x0')][_0x5cc0('0x14')](_0x5cc0('0x35'))[_0x5cc0('0x45')](),_0x233006[_0x5cc0('0x7d')](_0x5cc0('0x35'),{'forceDefaultExecution':!0x0}),_0x233006['model'][_0x5cc0('0x1a')](()=>{_0x233006[_0x5cc0('0x3d')][_0x5cc0('0x1a')](_0x343534,_0xd3d5f8=>{const _0x5125b9=_0x359b8d[_0x5cc0('0x61')](_0x232a2a=>_0x5cc0('0x5c')!=_0x232a2a[_0x5cc0('0x5f')][_0x5cc0('0x3a')]);_0x5125b9['length']>0x0&&_0xd3d5f8[_0x5cc0('0x49')](_0x5125b9);for(const _0x5e9129 of _0x359b8d)_0x5e9129['detach']();});});});}function _0x3ad50d(_0x141bc9){_0x233006['model'][_0x5cc0('0x72')](_0x557b40=>{const _0x128761=Array[_0x5cc0('0xf')](_0x326853[_0x5cc0('0x7')]())[_0x5cc0('0x7f')](_0x59ada5=>_0x5366cb['fromRange'](_0x59ada5)),_0x17a6fa=[];for(const _0x3b42b8 of _0x141bc9)for(const _0x237d97 of _0x3b42b8[_0x5cc0('0x1d')]({'shallow':!0x0}))_0x17a6fa['push'](_0x237d97);for(const _0xc7c553 of _0x17a6fa)_0x5cc0('0x5c')!=_0xc7c553[_0x5cc0('0x5f')][_0x5cc0('0x3a')]&&(_0x557b40[_0x5cc0('0x49')](_0x557b40[_0x5cc0('0x76')](_0xc7c553,0x0)),_0x233006[_0x5cc0('0x0')]['get'](_0x5cc0('0x17'))[_0x5cc0('0x45')](),_0x233006[_0x5cc0('0x7d')](_0x5cc0('0x17'),{'forceDefaultExecution':!0x0}));const _0x14b1b6=_0x128761['filter'](_0x337856=>'$graveyard'!=_0x337856[_0x5cc0('0x5f')][_0x5cc0('0x3a')]);_0x14b1b6[_0x5cc0('0x2e')]>0x0&&_0x557b40[_0x5cc0('0x49')](_0x14b1b6);for(const _0x373af0 of _0x128761)_0x373af0[_0x5cc0('0x34')]();});}function _0x18f750(_0x5477c1,_0x193066){return _0x193066[_0x5cc0('0x6e')](_0x303110=>_0x5477c1[_0x5cc0('0x43')](_0x4713bd=>_0x4713bd[_0x5cc0('0x6d')][_0x5cc0('0x1f')](_0x303110[_0x5cc0('0x39')])||_0x303110[_0x5cc0('0x6d')]['isEqual'](_0x4713bd[_0x5cc0('0x39')])));}function _0x574dba(_0x22698d,_0xaa77c3){return _0x22698d[_0x5cc0('0x43')](_0x1464f8=>_0xaa77c3[_0x5cc0('0x43')](_0x34d7b4=>_0x1464f8[_0x5cc0('0x6d')][_0x5cc0('0x32')](_0x34d7b4[_0x5cc0('0x39')])));}_0x233006[_0x5cc0('0x74')][_0x5cc0('0x36')]['on'](_0x5cc0('0x7a'),(_0xbefd52,_0x31d8b2,_0xe46697)=>{if(!_0xe46697[_0x5cc0('0x33')][_0x5cc0('0x2')])return;const _0x4ec455=_0x31d8b2[_0x5cc0('0x4f')];if(!_0x4ec455)return;const _0x1fd7aa=_0xe46697['mapper'][_0x5cc0('0x82')](_0x4ec455);function _0xf06a82(_0x565c3d){return Array[_0x5cc0('0x81')](_0x565c3d)?_0x565c3d:[_0x565c3d];}_0x1fd7aa&&_0x5cc0('0x80')===_0x4ec455['name']&&_0x3fbed8(_0x1fd7aa,_0xe46697[_0x5cc0('0x56')],(_0x2e72dc,_0x3f049f,_0x107165)=>_0x107165['addClass'](_0xf06a82(_0x3f049f[_0x5cc0('0x2d')]),_0x2e72dc),(_0x373c2b,_0x54f7d4,_0x204026)=>_0x204026[_0x5cc0('0x25')](_0xf06a82(_0x54f7d4[_0x5cc0('0x2d')]),_0x373c2b));},{'priority':'highest'}),_0x5baea5[_0x5cc0('0x2c')][_0x5cc0('0x15')](_0x1c0c79=>{if(_0x5cc0('0x29')!=_0x1c0c79[_0x5cc0('0x8')]&&_0x5cc0('0x7c')!=_0x1c0c79['type'])return;const _0x14bb88=_0x1c0c79[_0x5cc0('0x71')]();if(null!=_0x14bb88&&_0x14bb88['is'](_0x5cc0('0x19'),_0x5cc0('0x44'))){if(_0x5cc0('0x29')==_0x1c0c79[_0x5cc0('0x8')]){const _0x34faee=_0x1c0c79[_0x5cc0('0x1d')]()[_0x5cc0('0x61')](_0x49a55f=>_0x49a55f['is'](_0x5cc0('0x40')))[_0x5cc0('0x7f')](_0x213c35=>_0x213c35['data']);if(_0x34faee[_0x5cc0('0x2e')])return{'type':'insertion','content':_0x528878(_0x553e08,_0x5cc0('0x18'),_0x528878(_0x553e08,_0x5cc0('0x1e'),'\x22'+_0x34faee['join']('\x20')+'\x22'))};}if(_0x5cc0('0x7c')==_0x1c0c79['type']){const _0x4fdcf0=_0x1c0c79[_0x5cc0('0x1d')]()['filter'](_0x19616a=>_0x19616a['is']('$textProxy'))[_0x5cc0('0x7f')](_0x3a47ac=>_0x3a47ac[_0x5cc0('0x74')]);if(_0x4fdcf0[_0x5cc0('0x2e')])return{'type':_0x5cc0('0x7c'),'content':_0x528878(_0x553e08,_0x5cc0('0x75'),_0x528878(_0x553e08,_0x5cc0('0x1e'),'\x22'+_0x4fdcf0[_0x5cc0('0x7e')]('\x20')+'\x22'))};}}}),_0x5baea5[_0x5cc0('0x2c')][_0x5cc0('0x15')](_0x2e5601=>{if(_0x5cc0('0x41')==_0x2e5601[_0x5cc0('0x86')]){const _0x180f70=_0x2e5601[_0x5cc0('0x1d')]()[_0x5cc0('0x61')](_0x4a6fb0=>_0x4a6fb0['is'](_0x5cc0('0x40')))[_0x5cc0('0x7f')](_0x56e3d4=>_0x56e3d4[_0x5cc0('0x74')]),_0x5c0f68=this[_0x5cc0('0x2b')](_0x2e5601),_0xdc50e0=_0x5c0f68[_0x5cc0('0x9')]-_0x5c0f68[_0x5cc0('0x2a')]+0x1;if(_0x5cc0('0x29')==_0x2e5601[_0x5cc0('0x8')])return _0x180f70[_0x5cc0('0x2e')]?{'type':_0x5cc0('0x29'),'content':_0x528878(_0x553e08,_0x5cc0('0x18'),_0x528878(_0x553e08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xdc50e0,'\x22'+_0x180f70['join']('\x20')+'\x22']))}:{'type':_0x5cc0('0x29'),'content':_0x528878(_0x553e08,_0x5cc0('0x18'),_0x528878(_0x553e08,_0x5cc0('0x47'),_0xdc50e0))};if(_0x5cc0('0x7c')==_0x2e5601[_0x5cc0('0x8')])return _0x180f70['length']?{'type':_0x5cc0('0x7c'),'content':_0x528878(_0x553e08,_0x5cc0('0x75'),_0x528878(_0x553e08,_0x5cc0('0xd'),[_0xdc50e0,'\x22'+_0x180f70[_0x5cc0('0x7e')]('\x20')+'\x22']))}:{'type':_0x5cc0('0x7c'),'content':_0x528878(_0x553e08,_0x5cc0('0x75'),_0x528878(_0x553e08,_0x5cc0('0x47'),_0xdc50e0))};}if(_0x5cc0('0x5e')==_0x2e5601['subType']){const _0x311d1a=_0x2e5601[_0x5cc0('0x1d')]()[_0x5cc0('0x61')](_0x2f94a1=>_0x2f94a1['is'](_0x5cc0('0x40')))['map'](_0x260f16=>_0x260f16['data']),_0x18f40d=this['_getSuggestionCoords'](_0x2e5601),_0x33908c=_0x18f40d['maxColumn']-_0x18f40d[_0x5cc0('0x21')]+0x1;if(_0x5cc0('0x29')==_0x2e5601[_0x5cc0('0x8')])return _0x311d1a['length']?{'type':_0x5cc0('0x29'),'content':_0x528878(_0x553e08,_0x5cc0('0x18'),_0x528878(_0x553e08,_0x5cc0('0x38'),[_0x33908c,'\x22'+_0x311d1a[_0x5cc0('0x7e')]('\x20')+'\x22']))}:{'type':_0x5cc0('0x29'),'content':_0x528878(_0x553e08,_0x5cc0('0x18'),_0x528878(_0x553e08,_0x5cc0('0x84'),_0x33908c))};if(_0x5cc0('0x7c')==_0x2e5601[_0x5cc0('0x8')])return _0x311d1a[_0x5cc0('0x2e')]?{'type':_0x5cc0('0x7c'),'content':_0x528878(_0x553e08,_0x5cc0('0x75'),_0x528878(_0x553e08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33908c,'\x22'+_0x311d1a[_0x5cc0('0x7e')]('\x20')+'\x22']))}:{'type':_0x5cc0('0x7c'),'content':_0x528878(_0x553e08,_0x5cc0('0x75'),_0x528878(_0x553e08,_0x5cc0('0x84'),_0x33908c))};}}),_0x5baea5[_0x5cc0('0x13')][_0x5cc0('0x48')](_0x5cc0('0x29'),'tableRow',_0x5cc0('0x20'),_0xb81d6),_0x5baea5[_0x5cc0('0x13')]['registerCustomCallback'](_0x5cc0('0x7c'),'tableRow','accept',_0xb81d6),_0x5baea5[_0x5cc0('0x13')][_0x5cc0('0x48')](_0x5cc0('0x29'),_0x5cc0('0x5e'),_0x5cc0('0x20'),_0x3ad50d),_0x5baea5[_0x5cc0('0x13')]['registerCustomCallback']('deletion',_0x5cc0('0x5e'),_0x5cc0('0x4b'),_0x3ad50d),_0x5baea5[_0x5cc0('0x13')]['registerCustomCallback'](_0x5cc0('0x29'),'tableColumn',_0x5cc0('0x7e'),_0x18f750),_0x5baea5[_0x5cc0('0x13')][_0x5cc0('0x48')](_0x5cc0('0x7c'),_0x5cc0('0x5e'),_0x5cc0('0x7e'),_0x18f750),_0x5baea5[_0x5cc0('0x13')][_0x5cc0('0x48')]('insertion','tableRow',_0x5cc0('0x7e'),_0x574dba),_0x5baea5[_0x5cc0('0x13')]['registerCustomCallback'](_0x5cc0('0x7c'),_0x5cc0('0x41'),_0x5cc0('0x7e'),_0x574dba);}[_0x5cc0('0x77')](){const _0x224b36=this[_0x5cc0('0x67')],_0x47820d=_0x224b36[_0x5cc0('0x3d')][_0x5cc0('0x26')]['selection'];return(_0x6c00a6,_0xadb59e)=>{_0x224b36['model'][_0x5cc0('0x72')](_0x1e594c=>{const {commandName:_0x338c26,commandParams:_0x591d25}=_0xadb59e;let _0x596326=_0x6c00a6[0x0][_0x5cc0('0x6d')]['nodeBefore'];_0x591d25&&_0x591d25[0x0]&&!0x1===_0x591d25[0x0]['forceValue']&&(_0x596326=_0x6c00a6[0x0]['start'][_0x5cc0('0x50')]);const _0x1e8ea8=_0x1e594c['createRangeIn'](_0x596326);if(_0x5cc0('0x5c')==_0x1e8ea8[_0x5cc0('0x5f')][_0x5cc0('0x3a')])return;const _0x247643=Array[_0x5cc0('0xf')](_0x47820d[_0x5cc0('0x7')]())['map'](_0x423815=>_0x5366cb[_0x5cc0('0x12')](_0x423815));_0x1e594c['setSelection'](_0x1e8ea8),_0x224b36[_0x5cc0('0x0')]['get'](_0x338c26)[_0x5cc0('0x45')](),_0x591d25[_0x5cc0('0x24')]({'forceDefaultExecution':!0x0}),_0x224b36[_0x5cc0('0x7d')](_0x338c26,..._0x591d25);const _0x4b4924=_0x247643['filter'](_0x1151d1=>'$graveyard'!=_0x1151d1[_0x5cc0('0x5f')][_0x5cc0('0x3a')]);_0x4b4924['length']>0x0&&_0x1e594c[_0x5cc0('0x49')](_0x4b4924);for(const _0x246467 of _0x247643)_0x246467[_0x5cc0('0x34')]();});};}[_0x5cc0('0x6c')](_0x2813bb){const _0x5a50a3=this[_0x5cc0('0x67')][_0x5cc0('0x83')][_0x5cc0('0x14')](_0x5cc0('0x4c'));let _0x335ed5=Number[_0x5cc0('0x53')],_0x2d56e8=Number[_0x5cc0('0x22')],_0x1c41d0=Number[_0x5cc0('0x53')],_0x556fd6=Number[_0x5cc0('0x22')];for(const _0x5a1eea of _0x2813bb){if('$graveyard'==_0x5a1eea[_0x5cc0('0x5f')][_0x5cc0('0x3a')])continue;const {row:_0x1a0074,column:_0x56fe9c}=_0x5a50a3['getCellLocation'](_0x5a1eea),_0x24ca1a=_0x5a1eea[_0x5cc0('0x6')](_0x5cc0('0x7b'))?_0x5a1eea[_0x5cc0('0x27')](_0x5cc0('0x7b'))-0x1:0x0,_0x1e176c=_0x5a1eea[_0x5cc0('0x6')](_0x5cc0('0x3b'))?_0x5a1eea[_0x5cc0('0x27')](_0x5cc0('0x3b'))-0x1:0x0;_0x335ed5=_0x1a0074<_0x335ed5?_0x1a0074:_0x335ed5,_0x2d56e8=_0x1a0074+_0x24ca1a>_0x2d56e8?_0x1a0074+_0x24ca1a:_0x2d56e8,_0x1c41d0=_0x56fe9c<_0x1c41d0?_0x56fe9c:_0x1c41d0,_0x556fd6=_0x56fe9c+_0x1e176c>_0x556fd6?_0x56fe9c+_0x1e176c:_0x556fd6;}return{'minRow':_0x335ed5,'maxRow':_0x2d56e8,'minColumn':_0x1c41d0,'maxColumn':_0x556fd6};}[_0x5cc0('0x63')](){const _0x1f71df=this['editor'],_0x4625f1=_0x1f71df['plugins'][_0x5cc0('0x14')](_0x5cc0('0x59')),_0x57c9b2=_0x1f71df[_0x5cc0('0x83')][_0x5cc0('0x14')]('TableUtils');_0x1f71df['model'][_0x5cc0('0x26')]['on'](_0x5cc0('0x1c'),()=>{const _0x1c0b5a=Array['from'](_0x1f71df['model']['document']['differ'][_0x5cc0('0x3e')]());for(const {name:_0x3fc7cc,data:_0x44decf}of _0x1c0b5a){const {group:_0xb71735,id:_0x1dfd26,subType:_0x5850ae}=_0x4625f1[_0x5cc0('0x1b')](_0x3fc7cc);if(_0x5cc0('0x55')!=_0xb71735)continue;if(null!=_0x44decf[_0x5cc0('0x10')])continue;const _0x5f135a=_0x4625f1[_0x5cc0('0x64')](_0x1dfd26);this[_0x5cc0('0x79')][_0x5cc0('0xc')](_0x5850ae)&&this[_0x5cc0('0x4')][_0x5cc0('0x6a')](_0x5f135a);}},{'priority':'low'});const _0x128267=(_0x13154b,_0x54cd4c)=>{let _0x3102bd=!0x1;const _0xe1552a=_0x54cd4c[_0x5cc0('0xe')](_0x13154b),_0x4b9471=_0x13154b[_0x5cc0('0x37')](_0x5cc0('0x44')),_0x34efde=_0x57c9b2['getCellLocation'](_0x13154b);for(const _0x24991b of this['_tableSuggestions']){const _0x193c7d=_0x24991b[_0x5cc0('0x86')],_0x4b48ac=_0x193c7d['startsWith']('tablePaste'),_0x3a8ede=_0x193c7d[_0x5cc0('0x16')](_0x4b48ac?0xa:0x5),_0x16b25e=_0x3a8ede[_0x5cc0('0x4a')](),_0x35a397=_0x16b25e['substr'](0x0,0x3)+'span',_0x343d86='min'+_0x3a8ede,_0x2c014e=_0x5cc0('0x70')+_0x3a8ede;if(!_0x24991b[_0x5cc0('0x58')])continue;if(_0x4b9471!=_0x24991b[_0x5cc0('0x66')]()[_0x5cc0('0x39')]['findAncestor'](_0x5cc0('0x44')))continue;if(_0x24991b[_0x5cc0('0x65')](_0xe1552a))continue;const _0x5bfb19=_0x13154b[_0x5cc0('0x6')](_0x35a397)?_0x13154b[_0x5cc0('0x27')](_0x35a397)-0x1:0x0,_0x35a2cb=this[_0x5cc0('0x2b')](_0x24991b),_0x3ae0b5=_0x35a2cb[_0x343d86],_0x45d824=_0x35a2cb[_0x2c014e];_0x3ae0b5<=_0x34efde[_0x16b25e]&&_0x34efde[_0x16b25e]+_0x5bfb19<=_0x45d824&&(_0x24991b[_0x5cc0('0x31')](_0xe1552a),_0x3102bd=!0x0);}return _0x3102bd;};_0x1f71df['model'][_0x5cc0('0x26')][_0x5cc0('0x5')](_0x9cf32a=>{let _0x3e59c4=!0x1;for(const _0x461745 of _0x1f71df[_0x5cc0('0x3d')]['document'][_0x5cc0('0x6b')][_0x5cc0('0x3f')]())if(_0x5cc0('0x4d')==_0x461745[_0x5cc0('0x8')]){if(_0x5cc0('0x41')==_0x461745[_0x5cc0('0x62')])for(const _0x4e203a of _0x461745[_0x5cc0('0x85')]['nodeAfter'][_0x5cc0('0x5a')]())_0x3e59c4=_0x3e59c4||_0x128267(_0x4e203a,_0x9cf32a);else _0x5cc0('0x80')==_0x461745[_0x5cc0('0x62')]&&(_0x3e59c4=_0x3e59c4||_0x128267(_0x461745[_0x5cc0('0x85')][_0x5cc0('0x50')],_0x9cf32a));}return _0x3e59c4;});}[_0x5cc0('0x2b')](_0x3ca9d7){return this[_0x5cc0('0x6c')](_0x3ca9d7[_0x5cc0('0x7')]()[_0x5cc0('0x7f')](_0x4830f9=>_0x4830f9['start']['nodeAfter']));}}function se(_0x16bdf7){return Array[_0x5cc0('0xf')](new Set(_0x16bdf7)[_0x5cc0('0x42')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x272b=['TrackChangesEditing','has','get','plugins','toggleTableCaption','TableCaptionEditing','enableCommand','editor','afterInit'];(function(_0x3c3837,_0x272b70){const _0x31bf4b=function(_0x1181e6){while(--_0x1181e6){_0x3c3837['push'](_0x3c3837['shift']());}};_0x31bf4b(++_0x272b70);}(_0x272b,0x161));const _0x31bf=function(_0x3c3837,_0x272b70){_0x3c3837=_0x3c3837-0x0;let _0x31bf4b=_0x272b[_0x3c3837];return _0x31bf4b;};import{Plugin as _0x13b8ad}from'ckeditor5/src/core';import _0x3cdc14 from'./table';export default class vt extends _0x13b8ad{static get['requires'](){return[_0x3cdc14];}[_0x31bf('0x6')](){const _0x595c52=this[_0x31bf('0x5')];if(!_0x595c52[_0x31bf('0x1')][_0x31bf('0x8')](_0x31bf('0x3')))return;_0x595c52['plugins'][_0x31bf('0x0')](_0x31bf('0x7'))[_0x31bf('0x4')](_0x31bf('0x2'));}}
|