@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230907.0 → 0.0.0-nightly-20230908.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 _0x4b59=['styles','type','filter','numbered','listReversed','selection','TrackChangesEditing','get','_getSuggestionBlocksForListStyle','getSiblingNodes','format','listStyle','length','reversed','model','commandParams','document','commandName','getLastPosition','parent','getFirstPosition','has','change','createRange','ListUtils','listType','handleListReversedCommand','*Format:*\x20set\x20order\x20to\x20reversed','replace','getListTypeFromListStyleType','toUpperCase','locale','registerDescriptionCallback','push','forward','ELEMENT_','flat','map','listStart','ListPropertiesEditing','*Change\x20to:*\x20%0','startIndex','_descriptionFactory','plugins','_LIST_','createPositionAt','unshift','before','element','handleListStyleCommand','markMultiRangeBlockFormat','afterInit','backward','handleDescriptions','*Format:*\x20set\x20order\x20to\x20regular','_getSuggestionBlocks','editor','enableCommand','listItem','bind','getSelectedBlocks'];(function(_0x2dafbf,_0x4b59a9){const _0x101562=function(_0x1137fe){while(--_0x1137fe){_0x2dafbf['push'](_0x2dafbf['shift']());}};_0x101562(++_0x4b59a9);}(_0x4b59,0x124));const _0x1015=function(_0x2dafbf,_0x4b59a9){_0x2dafbf=_0x2dafbf-0x0;let _0x101562=_0x4b59[_0x2dafbf];return _0x101562;};import{Plugin as _0x18c030}from'ckeditor5/src/core';import{getTranslation as _0x35b316}from'../utils/common-translations';export default class st extends _0x18c030{[_0x1015('0x3')](){if(!this[_0x1015('0x8')][_0x1015('0x38')][_0x1015('0x22')](_0x1015('0x34')))return;const _0xdf7e1c=this[_0x1015('0x8')]['config'][_0x1015('0x14')]('list.properties'),_0x3027db=this[_0x1015('0x8')][_0x1015('0x38')][_0x1015('0x14')](_0x1015('0x13'));_0xdf7e1c[_0x1015('0xd')]&&_0x3027db['enableCommand'](_0x1015('0x18'),this[_0x1015('0x1')][_0x1015('0xb')](this)),_0xdf7e1c['reversed']&&_0x3027db['enableCommand'](_0x1015('0x11'),this[_0x1015('0x27')]['bind'](this)),_0xdf7e1c['startIndex']&&_0x3027db[_0x1015('0x9')](_0x1015('0x33'),this['handleListStartCommand'][_0x1015('0xb')](this)),_0x3027db[_0x1015('0x37')][_0x1015('0x2d')](this['handleDescriptions'][_0x1015('0xb')](this));}['handleListStyleCommand'](_0x267014,_0x45555d={}){const _0x5c9d61=this[_0x1015('0x8')][_0x1015('0x38')]['get']('TrackChangesEditing'),_0x1bd725=this[_0x1015('0x15')]();this[_0x1015('0x8')][_0x1015('0x1b')][_0x1015('0x23')](()=>{_0x5c9d61[_0x1015('0x2')](_0x1bd725,{'commandName':_0x1015('0x18'),'commandParams':[{'type':_0x45555d['type']}],'formatGroupId':_0x1015('0x18')});});}[_0x1015('0x27')](_0x57a91f,_0x31c6bc={}){const _0x2ed8d6=this['editor'][_0x1015('0x38')][_0x1015('0x14')]('TrackChangesEditing'),_0x2dce50=this['_getSuggestionBlocks'](_0x71eefb=>_0x71eefb['is'](_0x1015('0x0'),_0x1015('0xa'))&&'numbered'===_0x71eefb['getAttribute']('listType'));if(_0x2dce50[_0x1015('0x19')]<0x1)return;const _0x13a5cc=_0x2dce50[_0x1015('0x32')](_0x45833a=>this[_0x1015('0x8')][_0x1015('0x1b')]['createRange'](this[_0x1015('0x8')][_0x1015('0x1b')][_0x1015('0x3a')](_0x45833a,_0x1015('0x3c')),this[_0x1015('0x8')]['model'][_0x1015('0x3a')](_0x45833a,0x0)));this[_0x1015('0x8')][_0x1015('0x1b')][_0x1015('0x23')](()=>{_0x2ed8d6[_0x1015('0x2')](_0x13a5cc,{'commandName':_0x1015('0x11'),'commandParams':[{'reversed':_0x31c6bc[_0x1015('0x1a')]}],'formatGroupId':_0x1015('0x11')});});}['handleListStartCommand'](_0x5c130b,_0x52b512={}){const _0x2c0f90=this[_0x1015('0x8')][_0x1015('0x38')][_0x1015('0x14')](_0x1015('0x13')),_0x16d9ad=this[_0x1015('0x7')](_0x305fd8=>_0x305fd8['is']('element',_0x1015('0xa'))&&_0x1015('0x10')===_0x305fd8['getAttribute'](_0x1015('0x26')));if(_0x16d9ad[_0x1015('0x19')]<0x1)return;const _0x508141=_0x16d9ad[_0x1015('0x32')](_0xba09cb=>this[_0x1015('0x8')][_0x1015('0x1b')][_0x1015('0x24')](this['editor'][_0x1015('0x1b')]['createPositionAt'](_0xba09cb,_0x1015('0x3c')),this[_0x1015('0x8')]['model'][_0x1015('0x3a')](_0xba09cb,0x0)));this['editor'][_0x1015('0x1b')][_0x1015('0x23')](()=>{_0x2c0f90[_0x1015('0x2')](_0x508141,{'commandName':_0x1015('0x33'),'commandParams':[{'startIndex':_0x52b512[_0x1015('0x36')]}],'formatGroupId':_0x1015('0x33')});});}[_0x1015('0x5')](_0x188de1){const _0xdf7923=this[_0x1015('0x8')][_0x1015('0x2c')],{data:_0x3399be}=_0x188de1;if(!_0x3399be)return;let _0x2e9a64,_0x52608b;switch(_0x3399be[_0x1015('0x1e')]){case _0x1015('0x18'):_0x2e9a64=_0x1015('0x35'),_0x52608b={'type':_0x1015('0x17'),'content':_0x35b316(_0xdf7923,_0x2e9a64,_0x35b316(_0xdf7923,this['_getTranslationKeyForListStyle'](_0x3399be[_0x1015('0x1c')][0x0][_0x1015('0xe')])))};break;case _0x1015('0x11'):_0x2e9a64=_0x3399be[_0x1015('0x1c')][0x0][_0x1015('0x1a')]?_0x1015('0x28'):_0x1015('0x6'),_0x52608b={'type':_0x1015('0x17'),'content':_0x35b316(_0xdf7923,_0x2e9a64)};break;case _0x1015('0x33'):_0x2e9a64='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x52608b={'type':_0x1015('0x17'),'content':_0x35b316(_0xdf7923,_0x2e9a64,_0x3399be[_0x1015('0x1c')][0x0][_0x1015('0x36')])};}return _0x52608b;}[_0x1015('0x15')](){var _0xb063eb,_0x20387f,_0x4ee79f,_0x3ca388;const _0x387c2b=this[_0x1015('0x8')]['plugins']['get'](_0x1015('0x25'));let _0x38ad16=Array['from'](this[_0x1015('0x8')][_0x1015('0x1b')]['document']['selection']['getSelectedBlocks']());return(null===(_0xb063eb=_0x38ad16[0x0])||void 0x0===_0xb063eb?void 0x0:_0xb063eb['is'](_0x1015('0x0'),_0x1015('0xa')))&&_0x38ad16[_0x1015('0x3b')](..._0x387c2b[_0x1015('0x16')](this[_0x1015('0x8')][_0x1015('0x1b')]['document']['selection']['getFirstPosition'](),_0x1015('0x4'))),(null===(_0x20387f=_0x38ad16[_0x38ad16[_0x1015('0x19')]-0x1])||void 0x0===_0x20387f?void 0x0:_0x20387f['is'](_0x1015('0x0'),'listItem'))&&_0x38ad16[_0x1015('0x2e')](..._0x387c2b[_0x1015('0x16')](this['editor'][_0x1015('0x1b')]['document'][_0x1015('0x12')][_0x1015('0x1f')](),_0x1015('0x2f'))),_0x38ad16=[...new Set(_0x38ad16)],(null===(_0x3ca388=null===(_0x4ee79f=this[_0x1015('0x8')][_0x1015('0x1b')][_0x1015('0x1d')][_0x1015('0x12')][_0x1015('0x21')]())||void 0x0===_0x4ee79f?void 0x0:_0x4ee79f[_0x1015('0x20')])||void 0x0===_0x3ca388?void 0x0:_0x3ca388['is'](_0x1015('0x0'),_0x1015('0xa')))&&(_0x38ad16=_0x38ad16['filter'](_0x53decb=>_0x53decb['is']('element',_0x1015('0xa')))),_0x38ad16;}[_0x1015('0x7')](_0x4d4f90){const _0x4ec6a6=this[_0x1015('0x8')][_0x1015('0x38')][_0x1015('0x14')](_0x1015('0x25'));let _0x3eeb58=Array['from'](this[_0x1015('0x8')]['model']['document'][_0x1015('0x12')][_0x1015('0xc')]())[_0x1015('0xf')](_0x4d4f90)[_0x1015('0x32')](_0xfd5589=>{const _0x28e6b2=this[_0x1015('0x8')][_0x1015('0x1b')][_0x1015('0x3a')](_0xfd5589,0x0);return[..._0x4ec6a6[_0x1015('0x16')](_0x28e6b2,'backward'),..._0x4ec6a6['getSiblingNodes'](_0x28e6b2,_0x1015('0x2f'))];})[_0x1015('0x31')]();return _0x3eeb58=[...new Set(_0x3eeb58)],_0x3eeb58;}['_getTranslationKeyForListStyle'](_0x3ed00d){return _0x1015('0x30')+this[_0x1015('0x8')][_0x1015('0x38')][_0x1015('0x14')]('ListUtils')[_0x1015('0x2a')](_0x3ed00d)[_0x1015('0x2b')]()+_0x1015('0x39')+_0x3ed00d[_0x1015('0x2b')]()[_0x1015('0x29')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e0d=['div','_descriptionFactory','editor','high','get','options','locale','media','for','afterInit','downcastDispatcher','mediaEmbed','dataDowncast','createEmptyElement','elementToElement','stop','TrackChangesEditing','enableCommand','MediaEmbedEditing','plugins','ELEMENT_MEDIA'];(function(_0x3654ba,_0x5e0de6){const _0x31e70d=function(_0x2e8de2){while(--_0x2e8de2){_0x3654ba['push'](_0x3654ba['shift']());}};_0x31e70d(++_0x5e0de6);}(_0x5e0d,0x148));const _0x31e7=function(_0x3654ba,_0x5e0de6){_0x3654ba=_0x3654ba-0x0;let _0x31e70d=_0x5e0d[_0x3654ba];return _0x31e70d;};import{Plugin as _0x24c880}from'ckeditor5/src/core';import{getTranslation as _0x342b90}from'../utils/common-translations';export default class ot extends _0x24c880{[_0x31e7('0x11')](){const _0x20fcf0=this[_0x31e7('0xa')];if(!_0x20fcf0['plugins']['has'](_0x31e7('0x5')))return;const _0x41c480=_0x20fcf0[_0x31e7('0x6')][_0x31e7('0xc')](_0x31e7('0x3')),_0x1417eb=_0x20fcf0[_0x31e7('0xe')];_0x41c480[_0x31e7('0x4')](_0x31e7('0x13')),_0x41c480[_0x31e7('0x9')]['registerElementLabel'](_0x31e7('0xf'),_0xad5fff=>_0x342b90(_0x1417eb,_0x31e7('0x7'),_0xad5fff)),_0x20fcf0['conversion'][_0x31e7('0x10')](_0x31e7('0x14'))[_0x31e7('0x1')]({'model':'media','view':(_0x3ae083,{writer:_0x57c4c1,options:_0x113bfd})=>{if(_0x113bfd['showSuggestionHighlights'])return _0x57c4c1[_0x31e7('0x0')](_0x31e7('0x8'));},'converterPriority':'high'}),_0x20fcf0['data'][_0x31e7('0x12')]['on']('attribute:url:media',(_0x3b9ab9,_0x287fef,_0x62719f)=>{_0x62719f[_0x31e7('0xd')]['showSuggestionHighlights']&&_0x3b9ab9[_0x31e7('0x2')]();},{'priority':_0x31e7('0xb')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59de=['plugins','mention','afterInit','TrackChangesEditing','editor','has','enableCommand'];(function(_0x454b1c,_0x59ded){const _0x2ca528=function(_0x5256b1){while(--_0x5256b1){_0x454b1c['push'](_0x454b1c['shift']());}};_0x2ca528(++_0x59ded);}(_0x59de,0x187));const _0x2ca5=function(_0x454b1c,_0x59ded){_0x454b1c=_0x454b1c-0x0;let _0x2ca528=_0x59de[_0x454b1c];return _0x2ca528;};import{Plugin as _0x41c5ca}from'ckeditor5/src/core';export default class rt extends _0x41c5ca{[_0x2ca5('0x3')](){const _0x12b030=this[_0x2ca5('0x5')];_0x12b030[_0x2ca5('0x1')][_0x2ca5('0x6')]('MentionEditing')&&_0x12b030[_0x2ca5('0x1')]['get'](_0x2ca5('0x4'))[_0x2ca5('0x0')](_0x2ca5('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x381f=['pageBreak','registerElementLabel','_descriptionFactory','TrackChangesEditing','PageBreakEditing','enableCommand','locale','has','ELEMENT_PAGE_BREAK','plugins'];(function(_0xa2d7b1,_0x381f3e){const _0x327b97=function(_0x5c5774){while(--_0x5c5774){_0xa2d7b1['push'](_0xa2d7b1['shift']());}};_0x327b97(++_0x381f3e);}(_0x381f,0x8e));const _0x327b=function(_0xa2d7b1,_0x381f3e){_0xa2d7b1=_0xa2d7b1-0x0;let _0x327b97=_0x381f[_0xa2d7b1];return _0x327b97;};import{Plugin as _0x5b87a3}from'ckeditor5/src/core';import{getTranslation as _0x229446}from'../utils/common-translations';export default class at extends _0x5b87a3{['afterInit'](){const _0x188893=this['editor'];if(!_0x188893[_0x327b('0x7')][_0x327b('0x5')](_0x327b('0x2')))return;_0x188893[_0x327b('0x7')]['get'](_0x327b('0x1'))[_0x327b('0x3')](_0x327b('0x8'));const _0x55cbdc=_0x188893[_0x327b('0x7')]['get'](_0x327b('0x1')),_0x2dbe8b=_0x188893[_0x327b('0x4')];_0x55cbdc[_0x327b('0x0')][_0x327b('0x9')](_0x327b('0x8'),_0x5cde67=>_0x229446(_0x2dbe8b,_0x327b('0x6'),_0x5cde67));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d87=['schema','type','isObject','TrackChangesEditing','has','toViewPosition','format','isBlock','insert','span','*Change\x20to:*\x20%0','createUIElement','bindElementToMarker','blockName','plugins','editor','ck-suggestion-marker-split','filter','getFirstRange','highest','options','selection','registerElementLabel','get','*Insert:*\x20%0','includes','change','ELEMENT_PARAGRAPH','start','markBlockFormat','paragraph','markerRange','insertParagraph','markerName','getItemLabel','name','writer','from','parent','locale','isTouching','model','consumable','addClass','_descriptionFactory','downcastDispatcher','insertion','nodeAfter','checkChild','registerDescriptionCallback','isLimit','addMarker:suggestion:insertion','end','$text','mapper','ck-suggestion-marker--active','data'];(function(_0x1ada6e,_0x2d8789){const _0x1c5419=function(_0x3379f5){while(--_0x3379f5){_0x1ada6e['push'](_0x1ada6e['shift']());}};_0x1c5419(++_0x2d8789);}(_0x2d87,0xd4));const _0x1c54=function(_0x1ada6e,_0x2d8789){_0x1ada6e=_0x1ada6e-0x0;let _0x1c5419=_0x2d87[_0x1ada6e];return _0x1c5419;};import{Plugin as _0x3297fb}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x34c332}from'./utils';import{getTranslation as _0x2aaaf2}from'../utils/common-translations';export default class ct extends _0x3297fb{['afterInit'](){const _0x2b96df=this[_0x1c54('0x1f')];if(!_0x2b96df[_0x1c54('0x1e')][_0x1c54('0x14')]('Paragraph'))return;const _0x4de554=_0x2b96df[_0x1c54('0x37')],_0xa4745f=_0x2b96df['plugins'][_0x1c54('0x27')]('TrackChangesEditing');_0xa4745f[_0x1c54('0x3')][_0x1c54('0x26')](_0x1c54('0x2e'),_0x115371=>_0x2aaaf2(_0x4de554,_0x1c54('0x2b'),_0x115371)),_0xa4745f['enableCommand'](_0x1c54('0x2e'),(_0x2d776c,_0x206e0a={})=>{const _0xba0353=_0x2b96df[_0x1c54('0x0')]['document'],_0x49e6af=_0x206e0a[_0x1c54('0x25')]||_0xba0353[_0x1c54('0x25')],_0x3c49cb=Array[_0x1c54('0x35')](_0x49e6af['getSelectedBlocks']())[_0x1c54('0x21')](_0x1512ce=>function(_0x30201d,_0x395226){return _0x395226[_0x1c54('0x7')](_0x30201d[_0x1c54('0x36')],'paragraph')&&!_0x395226[_0x1c54('0x12')](_0x30201d)&&_0x1c54('0x2e')!=_0x30201d['name'];}(_0x1512ce,this[_0x1c54('0x1f')][_0x1c54('0x0')]['schema']));_0x2b96df[_0x1c54('0x0')][_0x1c54('0x2a')](()=>{for(const _0xbc8abd of _0x3c49cb)_0xa4745f[_0x1c54('0x2d')](_0xbc8abd,{'commandName':_0x1c54('0x2e'),'commandParams':[],'formatGroupId':_0x1c54('0x1d')},_0x34c332(_0xbc8abd));});}),_0xa4745f[_0x1c54('0x3')][_0x1c54('0x8')](_0x55db48=>{const {data:_0x442ed5}=_0x55db48;if(_0x442ed5&&_0x1c54('0x2e')==_0x442ed5['commandName'])return{'type':_0x1c54('0x16'),'content':_0x2aaaf2(_0x4de554,_0x1c54('0x1a'),_0x2aaaf2(_0x4de554,_0x1c54('0x2b')))};}),_0xa4745f['enableCommand'](_0x1c54('0x30')),_0x2b96df['editing'][_0x1c54('0x4')]['on'](_0x1c54('0xa'),ar(_0x2b96df),{'priority':_0x1c54('0x23')}),_0x2b96df[_0x1c54('0xf')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29b203,_0x54b609,_0x42ddf1)=>{_0x42ddf1[_0x1c54('0x24')]['showSuggestionHighlights']&&ar(_0x2b96df,{'showActiveMarker':!0x1})(_0x29b203,_0x54b609,_0x42ddf1);},{'priority':_0x1c54('0x23')});const _0x2a83af=_0xa4745f[_0x1c54('0x3')];_0x2a83af[_0x1c54('0x8')](_0x270514=>{if('insertion'!==_0x270514[_0x1c54('0x11')])return;const {start:_0x24c56a,end:_0x1c88dc}=_0x270514[_0x1c54('0x22')]();if(!_0x24c56a[_0x1c54('0x38')](_0x1c88dc)||!_0x24c56a[_0x1c54('0x6')])return;const _0x546eef=_0x2b96df[_0x1c54('0x0')][_0x1c54('0x10')],_0x25ac3c=_0x24c56a[_0x1c54('0x6')];return _0x546eef[_0x1c54('0x17')](_0x25ac3c)&&!_0x546eef[_0x1c54('0x9')](_0x25ac3c)&&_0x546eef['checkChild'](_0x25ac3c,_0x1c54('0xc'))?{'type':_0x1c54('0x5'),'content':_0x2aaaf2(_0x4de554,_0x1c54('0x28'),_0x2a83af[_0x1c54('0x32')](_0x25ac3c,0x1))}:void 0x0;});}}function ar(_0x33f367,{showActiveMarker:_0x224d31=!0x0}={}){return(_0x3c23b6,_0x2dad7f,_0x4d0105)=>{const _0x1005a2=_0x33f367[_0x1c54('0x1e')][_0x1c54('0x27')](_0x1c54('0x13')),_0x49bdfa=_0x2dad7f['markerRange'][_0x1c54('0x2c')],_0x58eb5c=_0x2dad7f[_0x1c54('0x2f')][_0x1c54('0xb')],_0x268500=_0x33f367[_0x1c54('0x0')][_0x1c54('0x10')];if(!_0x49bdfa[_0x1c54('0x38')](_0x58eb5c)||!_0x49bdfa[_0x1c54('0x6')])return;const _0x337ebf=_0x49bdfa[_0x1c54('0x6')];if(_0x268500['isBlock'](_0x337ebf)&&!_0x268500[_0x1c54('0x9')](_0x337ebf)&&_0x268500[_0x1c54('0x7')](_0x337ebf,_0x1c54('0xc'))){if(!_0x4d0105[_0x1c54('0x1')]['consume'](_0x2dad7f[_0x1c54('0x2f')],_0x3c23b6[_0x1c54('0x33')]))return;const _0x7a62cc=_0x4d0105[_0x1c54('0x34')][_0x1c54('0x1b')](_0x1c54('0x19'),{'class':_0x1c54('0x20')}),_0xbb9a60=_0x4d0105[_0x1c54('0xd')][_0x1c54('0x15')](_0x58eb5c);_0x224d31&&_0x1005a2['activeMarkers'][_0x1c54('0x29')](_0x2dad7f[_0x1c54('0x31')])&&_0x4d0105['writer'][_0x1c54('0x2')](_0x1c54('0xe'),_0x7a62cc),_0x4d0105[_0x1c54('0x34')][_0x1c54('0x18')](_0xbb9a60,_0x7a62cc),_0x4d0105[_0x1c54('0xd')][_0x1c54('0x1c')](_0x7a62cc,_0x2dad7f[_0x1c54('0x31')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4394=['plugins','removeFormat','_descriptionFactory','isCollapsed','TrackChangesEditing','createRangeOn','change','document','has','model','getAttributes','getAttributeProperties','schema','format','locale','registerDescriptionCallback','getItems','afterInit','enableCommand','isFormatting','selection','get','from','RemoveFormatEditing','commandName','*Remove\x20all\x20formatting*'];(function(_0x1522ec,_0x43940c){const _0x42bf87=function(_0x260af0){while(--_0x260af0){_0x1522ec['push'](_0x1522ec['shift']());}};_0x42bf87(++_0x43940c);}(_0x4394,0xbc));const _0x42bf=function(_0x1522ec,_0x43940c){_0x1522ec=_0x1522ec-0x0;let _0x42bf87=_0x4394[_0x1522ec];return _0x42bf87;};import{Plugin as _0x108176}from'ckeditor5/src/core';import{getTranslation as _0x504351}from'../utils/common-translations';export default class ht extends _0x108176{[_0x42bf('0xb')](){const _0x40bc94=this['editor'];if(!_0x40bc94[_0x42bf('0x14')][_0x42bf('0x2')](_0x42bf('0x11')))return;const _0x2fcc3d=_0x40bc94[_0x42bf('0x14')][_0x42bf('0xf')](_0x42bf('0x18'));_0x2fcc3d[_0x42bf('0xc')]('removeFormat',_0x340bc0=>{const _0x2693ed=_0x40bc94['model'][_0x42bf('0x1')][_0x42bf('0xe')];_0x2693ed[_0x42bf('0x17')]?_0x340bc0():_0x40bc94[_0x42bf('0x3')][_0x42bf('0x0')](()=>{const _0x42b7be=Array[_0x42bf('0x10')](_0x2693ed['getRanges']());for(const _0x48cf93 of _0x42b7be)for(const _0x4938dc of _0x48cf93[_0x42bf('0xa')]())mo(_0x4938dc,_0x40bc94['model'][_0x42bf('0x6')])&&_0x2fcc3d['markInlineFormat'](_0x40bc94[_0x42bf('0x3')][_0x42bf('0x19')](_0x4938dc),{'commandName':_0x42bf('0x15'),'commandParams':[]});});}),_0x2fcc3d[_0x42bf('0x16')][_0x42bf('0x9')](_0x36fb74=>{const {data:_0x47b013}=_0x36fb74;if(_0x47b013&&_0x42bf('0x15')==_0x47b013[_0x42bf('0x12')])return{'type':_0x42bf('0x7'),'content':_0x504351(_0x40bc94[_0x42bf('0x8')],_0x42bf('0x13'))};});}}function mo(_0x544813,_0xc3cfb0){for(const [_0x5364ff]of _0x544813[_0x42bf('0x4')]()){const _0x28c484=_0xc3cfb0[_0x42bf('0x5')](_0x5364ff);if(_0x28c484&&_0x28c484[_0x42bf('0xd')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bbc=['discardSelectedSuggestions','RestrictedEditingModeEditing','TrackChangesEditing','acceptSuggestion','discardAllSuggestions','plugins','trackChanges','get','goToNextRestrictedEditingException','afterInit','enableCommand','discardSuggestion','acceptSelectedSuggestions'];(function(_0x5917ac,_0x1bbc37){const _0x2e735e=function(_0x25ae4d){while(--_0x25ae4d){_0x5917ac['push'](_0x5917ac['shift']());}};_0x2e735e(++_0x1bbc37);}(_0x1bbc,0x1da));const _0x2e73=function(_0x5917ac,_0x1bbc37){_0x5917ac=_0x5917ac-0x0;let _0x2e735e=_0x1bbc[_0x5917ac];return _0x2e735e;};import{Plugin as _0x3201f2}from'ckeditor5/src/core';export default class ut extends _0x3201f2{[_0x2e73('0x3')](){const _0x2f2b5c=this['editor'];if(!_0x2f2b5c[_0x2e73('0xc')]['has'](_0x2e73('0x8')))return;const _0x245131=_0x2f2b5c['plugins'][_0x2e73('0x1')](_0x2e73('0x9'));_0x245131[_0x2e73('0x4')]('goToPreviousRestrictedEditingException'),_0x245131[_0x2e73('0x4')](_0x2e73('0x2'));const _0x5d0798=_0x2f2b5c[_0x2e73('0xc')]['get']('RestrictedEditingModeEditing');_0x5d0798[_0x2e73('0x4')](_0x2e73('0x0')),_0x5d0798[_0x2e73('0x4')](_0x2e73('0xa')),_0x5d0798['enableCommand'](_0x2e73('0x5')),_0x5d0798[_0x2e73('0x4')]('acceptAllSuggestions'),_0x5d0798[_0x2e73('0x4')](_0x2e73('0xb')),_0x5d0798[_0x2e73('0x4')](_0x2e73('0x6')),_0x5d0798[_0x2e73('0x4')](_0x2e73('0x7'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5728=['ELEMENT_LINE_BREAK','softBreak','mapper','registerElementLabel','high','showSuggestionHighlights','consumable','locale','includes','data','addMarker:suggestion:insertion','deletion','bindElementToMarker','get','addClass','ck-suggestion-marker-','editor','toViewPosition','writer','addMarker:suggestion:deletion','createPositionBefore','markerRange','element','test','editing','_descriptionFactory','span','split','options','requires','downcastDispatcher','addMarker:suggestion','model','getItems','activeMarkers','plugins','markerName'];(function(_0x133068,_0x572843){const _0x3e3958=function(_0x5b3c89){while(--_0x5b3c89){_0x133068['push'](_0x133068['shift']());}};_0x3e3958(++_0x572843);}(_0x5728,0xb4));const _0x3e39=function(_0x133068,_0x572843){_0x133068=_0x133068-0x0;let _0x3e3958=_0x5728[_0x133068];return _0x3e3958;};import{Plugin as _0x396948}from'ckeditor5/src/core';import{ShiftEnter as _0x363646}from'ckeditor5/src/enter';import{getTranslation as _0x1f6dd8}from'../utils/common-translations';export default class ft extends _0x396948{static get[_0x3e39('0x22')](){return[_0x363646];}['init'](){const _0xb49e23=this[_0x3e39('0x15')],_0x13fc94=_0xb49e23[_0x3e39('0x3')][_0x3e39('0x12')]('TrackChangesEditing');_0x13fc94['enableCommand']('shiftEnter'),_0xb49e23['editing'][_0x3e39('0x23')]['on'](_0x3e39('0xf'),re(_0xb49e23),{'priority':_0x3e39('0x9')}),_0xb49e23[_0x3e39('0x1d')][_0x3e39('0x23')]['on'](_0x3e39('0x18'),re(_0xb49e23),{'priority':'high'}),_0xb49e23[_0x3e39('0xe')][_0x3e39('0x23')]['on'](_0x3e39('0x24'),(_0x3a7a1e,_0x78fc4a,_0x4dab00)=>{_0x4dab00[_0x3e39('0x21')][_0x3e39('0xa')]&&re(_0xb49e23,{'showActiveMarker':!0x1})(_0x3a7a1e,_0x78fc4a,_0x4dab00);}),_0x13fc94[_0x3e39('0x1e')][_0x3e39('0x8')](_0x3e39('0x6'),_0x299b31=>_0x1f6dd8(_0xb49e23[_0x3e39('0xc')],_0x3e39('0x5'),_0x299b31));}}function re(_0x272d5b,{showActiveMarker:_0x14d0c8=!0x0}={}){return(_0x4fe788,_0x2bcabe,_0x5d3783)=>{const _0x17dc7f=_0x272d5b[_0x3e39('0x3')][_0x3e39('0x12')]('TrackChangesEditing');if(!_0x5d3783[_0x3e39('0xb')][_0x3e39('0x1c')](_0x2bcabe[_0x3e39('0x1a')],_0x4fe788['name']))return;const _0x6a3714=_0x272d5b[_0x3e39('0x0')];for(const _0x27774f of _0x2bcabe['markerRange'][_0x3e39('0x1')]()){if(!_0x27774f['is'](_0x3e39('0x1b'),_0x3e39('0x6')))continue;const _0x206842=_0x3e39('0x10')==_0x2bcabe[_0x3e39('0x4')][_0x3e39('0x20')](':')[0x1]?'merge':_0x3e39('0x20'),_0x30e73d=_0x5d3783[_0x3e39('0x17')]['createUIElement'](_0x3e39('0x1f'),{'class':_0x3e39('0x14')+_0x206842}),_0xc3b4bb=_0x5d3783[_0x3e39('0x7')][_0x3e39('0x16')](_0x6a3714[_0x3e39('0x19')](_0x27774f));_0x14d0c8&&_0x17dc7f[_0x3e39('0x2')][_0x3e39('0xd')](_0x2bcabe[_0x3e39('0x4')])&&_0x5d3783[_0x3e39('0x17')][_0x3e39('0x13')]('ck-suggestion-marker--active',_0x30e73d),_0x5d3783[_0x3e39('0x17')]['insert'](_0xc3b4bb,_0x30e73d),_0x5d3783[_0x3e39('0x7')][_0x3e39('0x11')](_0x30e73d,_0x2bcabe[_0x3e39('0x4')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b82=['selection','model','document','markInlineFormat','from','FORMAT_RESTRICTED_DISABLED','plugins','locale','commands','format','StandardEditingModeEditing','value','_descriptionFactory','forceValue','registerDescriptionCallback','commandName','afterInit','has','get','change','commandParams','TrackChangesEditing'];(function(_0x24443b,_0x1b823f){const _0x2e253b=function(_0x180593){while(--_0x180593){_0x24443b['push'](_0x24443b['shift']());}};_0x2e253b(++_0x1b823f);}(_0x1b82,0xfc));const _0x2e25=function(_0x24443b,_0x1b823f){_0x24443b=_0x24443b-0x0;let _0x2e253b=_0x1b82[_0x24443b];return _0x2e253b;};import{Plugin as _0x32db02}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x5832c4}from'./utils';import{getTranslation as _0x25da98}from'../utils/common-translations';export default class lt extends _0x32db02{[_0x2e25('0x6')](){const _0x591b8a=this['editor'],_0x1c8cbb=_0x591b8a[_0x2e25('0xd')],_0x12bf44=_0x591b8a[_0x2e25('0x13')];if(!_0x591b8a[_0x2e25('0x12')][_0x2e25('0x7')](_0x2e25('0x0')))return;const _0x387fbd=_0x591b8a[_0x2e25('0x12')][_0x2e25('0x8')](_0x2e25('0xb')),_0x236d3d='restrictedEditingException',_0x3168f4=_0x591b8a[_0x2e25('0x14')]['get'](_0x236d3d);_0x387fbd['enableCommand'](_0x236d3d,(_0x3cbde3,_0x58a8c2={})=>{const _0x404a91=_0x1c8cbb[_0x2e25('0xe')][_0x2e25('0xc')];if(_0x404a91['isCollapsed'])return void _0x3cbde3(_0x58a8c2);const _0x4fae5e=void 0x0!==_0x58a8c2[_0x2e25('0x3')]?_0x58a8c2[_0x2e25('0x3')]:!_0x3168f4[_0x2e25('0x1')];_0x1c8cbb[_0x2e25('0x9')](()=>{const _0x41aaa0=Array[_0x2e25('0x10')](_0x404a91['getRanges']());for(const _0x3aa5d of _0x41aaa0){const _0x4bd1cb=_0x4fae5e?[_0x3aa5d]:_0x5832c4(_0x236d3d,_0x3aa5d,_0x1c8cbb);for(const _0x2c5eed of _0x4bd1cb)_0x387fbd[_0x2e25('0xf')](_0x2c5eed,{'commandName':_0x236d3d,'commandParams':[{'forceValue':_0x4fae5e}]});}});}),_0x387fbd[_0x2e25('0x2')][_0x2e25('0x4')](_0xe08517=>{const {data:_0x484078}=_0xe08517;if(_0x484078&&_0x484078[_0x2e25('0x5')]==_0x236d3d)return _0x484078[_0x2e25('0xa')][0x0][_0x2e25('0x3')]?{'type':'format','content':_0x25da98(_0x12bf44,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x2e25('0x15'),'content':_0x25da98(_0x12bf44,_0x2e25('0x11'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b3a=['locale','value','toLowerCase','add','Style','_getStyleDefinition','inline','commandName','push','afterInit','registerDescriptionCallback','model','from','isCollapsed','style','commandParams','StyleUtils','getAncestors','editor','getAttribute','get','block','DataSchema','plugins','_getRangesWithClasses','find','document','forceValue','format','createRangeOn','change','getRanges','getItems','normalizeConfig','*Format:*\x20%0','styleName','enabledStyles','has','modelElements','includes','getSelectedBlocks','name','style.definitions','selection','classes','style:','every','getDefinitionsForView'];(function(_0x5c7b71,_0x1b3a84){const _0x1bfc2b=function(_0x491469){while(--_0x491469){_0x5c7b71['push'](_0x5c7b71['shift']());}};_0x1bfc2b(++_0x1b3a84);}(_0x1b3a,0x1e8));const _0x1bfc=function(_0x5c7b71,_0x1b3a84){_0x5c7b71=_0x5c7b71-0x0;let _0x1bfc2b=_0x1b3a[_0x5c7b71];return _0x1bfc2b;};import{Plugin as _0x3b281c}from'ckeditor5/src/core';import{getTranslation as _0x40fe11}from'../utils/common-translations';export default class gt extends _0x3b281c{[_0x1bfc('0x1')](){const _0x306a99=this[_0x1bfc('0xa')];if(!_0x306a99[_0x1bfc('0xf')][_0x1bfc('0x1d')](_0x1bfc('0x2c')))return;const _0xbec7e9=_0x306a99['commands'][_0x1bfc('0xc')](_0x1bfc('0x6')),_0x2ba55e=_0x306a99[_0x1bfc('0xf')][_0x1bfc('0xc')]('TrackChangesEditing'),_0x1c23cc=_0x306a99[_0x1bfc('0x28')],_0x3148f5=_0x306a99[_0x1bfc('0xf')]['get'](_0x1bfc('0xe')),_0x19f679=_0x306a99['plugins']['get'](_0x1bfc('0x8'))[_0x1bfc('0x19')](_0x3148f5,_0x306a99['config'][_0x1bfc('0xc')](_0x1bfc('0x22')));_0x2ba55e['enableCommand'](_0x1bfc('0x6'),(_0x2722dd,{styleName:_0x120d53})=>{const _0x560e49=_0x306a99[_0x1bfc('0x3')][_0x1bfc('0x12')][_0x1bfc('0x23')],_0x5eaf28=this[_0x1bfc('0x2d')](_0x120d53,_0x19f679);if(!_0x5eaf28)return;if(!_0xbec7e9[_0x1bfc('0x1c')][_0x1bfc('0x1f')](_0x120d53))return;if(_0x560e49[_0x1bfc('0x5')]&&!_0x5eaf28['isBlock'])return void _0x2722dd({'styleName':_0x120d53});const _0x34cecc=!_0xbec7e9[_0x1bfc('0x29')]['includes'](_0x5eaf28['name']);if(_0x5eaf28['isBlock']){const _0xda873c=function(_0x40bd49,_0x2373ad){const _0x32338a=new Set();for(const _0x3181d9 of _0x40bd49){const _0x389a03=_0x3181d9[_0x1bfc('0x9')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x4701b8 of _0x389a03)if(_0x2373ad[_0x1bfc('0x1f')](_0x4701b8['name'])){_0x32338a[_0x1bfc('0x2b')](_0x4701b8);break;}}return _0x32338a;}(_0x560e49[_0x1bfc('0x20')](),_0x5eaf28[_0x1bfc('0x1e')]);_0x306a99[_0x1bfc('0x3')][_0x1bfc('0x16')](()=>{for(const _0x15f5d3 of _0xda873c)_0x2ba55e['markBlockFormat'](_0x15f5d3,{'commandName':'style','commandParams':[{'styleName':_0x120d53,'forceValue':_0x34cecc}],'formatGroupId':_0x1bfc('0x25')+_0x120d53});});}else{let _0x3b6e82=Array['from'](_0x560e49[_0x1bfc('0x17')]());if(!_0x34cecc){const _0x10012f=Array[_0x1bfc('0x4')](_0x3148f5[_0x1bfc('0x27')](_0x5eaf28['element'],!0x1))[0x0][_0x1bfc('0x3')],_0x1a5f2d=[];for(const _0x42c7aa of _0x3b6e82){const _0x3d45e6=this[_0x1bfc('0x10')](_0x306a99[_0x1bfc('0x3')],_0x42c7aa,_0x5eaf28[_0x1bfc('0x24')],_0x10012f);_0x1a5f2d[_0x1bfc('0x0')](..._0x3d45e6);}_0x3b6e82=_0x1a5f2d;}_0x306a99[_0x1bfc('0x3')]['change'](()=>{for(const _0xae6a29 of _0x3b6e82)_0x2ba55e['markInlineFormat'](_0xae6a29,{'commandName':_0x1bfc('0x6'),'commandParams':[{'styleName':_0x120d53,'forceValue':_0x34cecc}]});});}}),_0x2ba55e['_descriptionFactory'][_0x1bfc('0x2')](_0x217f4f=>{const {data:_0x30d787}=_0x217f4f;if(_0x30d787&&_0x1bfc('0x6')===_0x30d787[_0x1bfc('0x2f')])return _0x30d787[_0x1bfc('0x7')][0x0][_0x1bfc('0x13')]?{'type':_0x1bfc('0x14'),'content':_0x40fe11(_0x1c23cc,_0x1bfc('0x1a'),_0x30d787['commandParams'][0x0][_0x1bfc('0x1b')][_0x1bfc('0x2a')]())}:{'type':'format','content':_0x40fe11(_0x1c23cc,'*Remove\x20format:*\x20%0',_0x30d787[_0x1bfc('0x7')][0x0][_0x1bfc('0x1b')][_0x1bfc('0x2a')]())};});}['_getStyleDefinition'](_0x441ca3,_0xabb177){let _0x30db86=_0xabb177[_0x1bfc('0xd')][_0x1bfc('0x11')](_0x4e1407=>_0x4e1407[_0x1bfc('0x21')]===_0x441ca3);return _0x30db86||(_0x30db86=_0xabb177[_0x1bfc('0x2e')][_0x1bfc('0x11')](_0x16dd21=>_0x16dd21[_0x1bfc('0x21')]===_0x441ca3)),_0x30db86;}[_0x1bfc('0x10')](_0xd3514d,_0x21c17e,_0x510580,_0x14deb4){const _0x6a60d9=[];for(const _0x733adf of _0x21c17e[_0x1bfc('0x18')]()){const _0x4684b1=_0x733adf[_0x1bfc('0xb')](_0x14deb4);_0x4684b1&&(_0x510580[_0x1bfc('0x26')](_0x11bbba=>_0x4684b1[_0x1bfc('0x24')][_0x1bfc('0x1f')](_0x11bbba))&&_0x6a60d9[_0x1bfc('0x0')](_0xd3514d[_0x1bfc('0x15')](_0x733adf)));}return _0x6a60d9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x28d2=['getColumnIndexes','*Remove:*\x20%0','findAncestor','TableUtils','add','ELEMENT_TABLE_ROW','hasAttribute','oldRange','registerElementLabel','editor','plugins','nodeBefore','first','maxRow','selectTableColumn','isIntersectingWithRange','tableCell','getSelectionAffectedTableCells','refresh','_splitMarkerName','getRanges','createRangeOn','getChildren','_tablePostFixingSubtypes','markMultiRangeInsertion','nodeAfter','position','name','colspan','forceValue','ELEMENT_TABLE_COLUMN','length','type','detach','registerDescriptionCallback','getCellLocation','addClass','start','tableRow','_acceptFormatSuggestionCallbackFactory','setSelection','end','discard','addRange','values','from','createTableWalker','execute','mapper','TableEditing','enableCommand','afterInit','_getCoordsForCells','includes','_getSuggestionCoords','createRangeIn','span','order','ELEMENT_TABLE_COLUMN_WITH_TEXT','insertTableRowAbove','deletion','$graveyard','toViewElement','subType','min','filter','minColumn','item','enqueueChange','getFirstRange','getChangedMarkers','getAttribute','selectTableRow','root','removeTableRow','MAX_SAFE_INTEGER','getItems','change','data','writer','classes','selection','some','startsWith','insertTable','_descriptionFactory','isEqual','table','_tableSuggestions','rootName','model','addMarker:suggestion','tableColumn','differ','*Insert:*\x20%0','registerCustomCallback','registerPostFixer','document','last','_suggestionFactory','toLowerCase','insertTableColumnRight','$textProxy','fromRange','change:data','_setupColumnsRowsFixing','commands','ELEMENT_TABLE','join','cell','suggestion','push','tablePaste','getRowIndexes','accept','substr','get','insertTableColumnLeft','element','map','removeTableColumn','isInContent','insertion','ELEMENT_TABLE_WITH_TEXT','TrackChangesEditing','isTouching','showSuggestionHighlights','has','ELEMENT_TABLE_ROW_WITH_TEXT','max','low'];(function(_0x30b613,_0x28d2a4){const _0x1b4924=function(_0x1fc134){while(--_0x1fc134){_0x30b613['push'](_0x30b613['shift']());}};_0x1b4924(++_0x28d2a4);}(_0x28d2,0x130));const _0x1b49=function(_0x30b613,_0x28d2a4){_0x30b613=_0x30b613-0x0;let _0x1b4924=_0x28d2[_0x30b613];return _0x1b4924;};import{Plugin as _0x238895}from'ckeditor5/src/core';import{LiveRange as _0x263e68}from'ckeditor5/src/engine';import{setHighlightHandling as _0xaabf0}from'ckeditor5/src/widget';import{getTranslation as _0x2a917a}from'../utils/common-translations';export default class mt extends _0x238895{constructor(_0x4c0e3b){super(_0x4c0e3b),this[_0x1b49('0x70')]=[_0x1b49('0x7f'),_0x1b49('0x32')],this['_tableSuggestions']=new Set();}[_0x1b49('0x9')](){const _0x200d29=this[_0x1b49('0x62')],_0x9fe1a2=_0x200d29['model'][_0x1b49('0x37')][_0x1b49('0x27')];if(!_0x200d29[_0x1b49('0x63')][_0x1b49('0x55')](_0x1b49('0x7')))return;const _0x2539f8=_0x200d29['locale'],_0x1a9504=_0x200d29[_0x1b49('0x63')][_0x1b49('0x4a')](_0x1b49('0x52')),_0x3699f8=_0x200d29[_0x1b49('0x63')][_0x1b49('0x4a')]('TableUtils');_0x1a9504[_0x1b49('0x2b')][_0x1b49('0x61')](_0x1b49('0x2d'),_0x3a31a3=>_0x2a917a(_0x2539f8,_0x1b49('0x41'),_0x3a31a3)),this[_0x1b49('0x3f')](),_0x1a9504[_0x1b49('0x8')](_0x1b49('0x2a')),_0x1a9504[_0x1b49('0x8')](_0x1b49('0x1e')),_0x1a9504['enableCommand'](_0x1b49('0x67'));for(const _0x4dd3be of[_0x1b49('0x11'),'insertTableRowBelow']){const _0x70d3cc=_0x200d29[_0x1b49('0x40')][_0x1b49('0x4a')](_0x4dd3be);_0x1a9504[_0x1b49('0x8')](_0x4dd3be,_0x2e64aa=>{_0x200d29[_0x1b49('0x30')]['change'](_0x1471cb=>{_0x2e64aa();const _0x343fec='above'===_0x70d3cc[_0x1b49('0xf')],_0x506827=_0x3699f8[_0x1b49('0x6a')](_0x9fe1a2),_0x5b0047=_0x3699f8[_0x1b49('0x47')](_0x506827),_0xa2c95a=_0x343fec?_0x5b0047[_0x1b49('0x65')]-0x1:_0x5b0047[_0x1b49('0x38')]+0x1,_0x23a775=_0x506827[0x0][_0x1b49('0x5b')](_0x1b49('0x2d')),_0x199f8b=_0x3699f8['createTableWalker'](_0x23a775,{'startRow':_0xa2c95a,'endRow':_0xa2c95a}),_0x1fc72b=Array[_0x1b49('0x3')](_0x199f8b)[_0x1b49('0x4d')](_0x41dd0c=>_0x1471cb[_0x1b49('0x6e')](_0x41dd0c[_0x1b49('0x43')]));_0x1a9504['markMultiRangeInsertion'](_0x1fc72b,_0x1b49('0x7f'));});});}for(const _0xa0610c of[_0x1b49('0x4b'),_0x1b49('0x3b')]){const _0x2323a9=_0x200d29[_0x1b49('0x40')][_0x1b49('0x4a')](_0xa0610c);_0x1a9504[_0x1b49('0x8')](_0xa0610c,_0x390529=>{_0x200d29[_0x1b49('0x30')][_0x1b49('0x23')](_0x58ac9f=>{_0x390529();const _0x32fa9c='left'===_0x2323a9[_0x1b49('0xf')],_0x4d6887=_0x3699f8[_0x1b49('0x6a')](_0x9fe1a2),_0x50353a=_0x3699f8[_0x1b49('0x59')](_0x4d6887),_0x54cbb0=_0x32fa9c?_0x50353a[_0x1b49('0x65')]-0x1:_0x50353a[_0x1b49('0x38')]+0x1,_0x16d382=_0x4d6887[0x0][_0x1b49('0x5b')](_0x1b49('0x2d')),_0x25b4fe=_0x3699f8[_0x1b49('0x4')](_0x16d382,{'startRow':0x0,'column':_0x54cbb0,'includeAllSlots':!0x1}),_0x32f90b=Array[_0x1b49('0x3')](_0x25b4fe)['map'](_0x3b162b=>_0x58ac9f[_0x1b49('0x6e')](_0x3b162b[_0x1b49('0x43')]));_0x1a9504[_0x1b49('0x71')](_0x32f90b,_0x1b49('0x32'));});});}for(const _0x2dd6ec of[_0x1b49('0x20'),_0x1b49('0x4e')]){const _0xb4a160=_0x2dd6ec[_0x1b49('0x49')](0xb),_0x2a57e0=_0xb4a160['toLowerCase'](),_0x5da379=_0x2a57e0[_0x1b49('0x49')](0x0,0x3)+_0x1b49('0xe'),_0xb851d9=_0x1b49('0x2d')+_0xb4a160,_0x163ca4='min'+_0xb4a160,_0x4682ee=_0x1b49('0x57')+_0xb4a160;_0x1a9504[_0x1b49('0x8')](_0x2dd6ec,()=>{_0x200d29[_0x1b49('0x30')]['change'](_0x2d9a07=>{const _0x31bff6=_0x3699f8[_0x1b49('0x6a')](_0x9fe1a2),_0x134e32=_0x31bff6[0x0][_0x1b49('0x5b')](_0x1b49('0x2d'));let _0x4fde6d;if(_0x1b49('0x20')==_0x2dd6ec){const _0x1bfcb7=_0x3699f8[_0x1b49('0x47')](_0x31bff6);_0x4fde6d={'startRow':_0x1bfcb7['first'],'endRow':_0x1bfcb7[_0x1b49('0x38')],'includeAllSlots':!0x0};}else{const _0x362612=_0x3699f8[_0x1b49('0x59')](_0x31bff6);_0x4fde6d={'startColumn':_0x362612['first'],'endColumn':_0x362612[_0x1b49('0x38')],'includeAllSlots':!0x0};}const _0x27bb3c=_0x3699f8['createTableWalker'](_0x134e32,_0x4fde6d),_0x1f87a8=Array[_0x1b49('0x3')](_0x27bb3c)['map'](({cell:_0x42716d})=>_0x42716d),_0x47f0bd=se(_0x1f87a8[_0x1b49('0x17')](_0x56e528=>_0x56e528[_0x1b49('0x5f')](_0x5da379))),_0x4bf167=se(_0x1f87a8[_0x1b49('0x17')](_0x28a323=>!_0x28a323[_0x1b49('0x5f')](_0x5da379)))[_0x1b49('0x4d')](_0x3c02e9=>_0x2d9a07[_0x1b49('0x6e')](_0x3c02e9)),_0x445fc8=_0x1a9504['markMultiRangeDeletion'](_0x4bf167,_0xb851d9);if(_0x445fc8&&(_0x1b49('0x7f')==_0x445fc8[_0x1b49('0x15')]||_0x1b49('0x32')==_0x445fc8['subType'])){const _0xfac838=this[_0x1b49('0xc')](_0x445fc8);for(const _0x3341ba of _0x47f0bd){const _0x41020d=_0x2d9a07[_0x1b49('0x6e')](_0x3341ba),_0x29d20a=_0x3699f8[_0x1b49('0x7c')](_0x3341ba),_0x58d824=_0x3341ba[_0x1b49('0x1d')](_0x5da379)-0x1,_0x4d3fa3=_0xfac838[_0x163ca4],_0x1fe0e0=_0xfac838[_0x4682ee];_0x4d3fa3<=_0x29d20a[_0x2a57e0]&&_0x29d20a[_0x2a57e0]+_0x58d824<=_0x1fe0e0&&_0x445fc8[_0x1b49('0x1')](_0x41020d);}}});});}function _0x5d764c(_0x1580ac){const _0x3fab62=Array[_0x1b49('0x3')](_0x9fe1a2[_0x1b49('0x6d')]())[_0x1b49('0x4d')](_0x52264d=>_0x263e68['fromRange'](_0x52264d));_0x200d29['model'][_0x1b49('0x23')](_0xb72386=>{const _0x228fcf=_0xb72386['batch'];_0x1580ac=_0x1580ac[_0x1b49('0x17')](_0x371e17=>_0x1b49('0x13')!=_0x371e17[_0x1b49('0x1f')][_0x1b49('0x2f')]),_0xb72386[_0x1b49('0x81')](_0x1580ac),_0x200d29[_0x1b49('0x40')][_0x1b49('0x4a')](_0x1b49('0x20'))['refresh'](),_0x200d29[_0x1b49('0x5')](_0x1b49('0x20'),{'forceDefaultExecution':!0x0}),_0x200d29[_0x1b49('0x30')]['enqueueChange'](()=>{_0x200d29['model'][_0x1b49('0x1a')](_0x228fcf,_0x102dd9=>{const _0x1f94f1=_0x3fab62['filter'](_0x5290ee=>_0x1b49('0x13')!=_0x5290ee[_0x1b49('0x1f')][_0x1b49('0x2f')]);_0x1f94f1[_0x1b49('0x78')]>0x0&&_0x102dd9[_0x1b49('0x81')](_0x1f94f1);for(const _0x35be8e of _0x3fab62)_0x35be8e[_0x1b49('0x7a')]();});});});}function _0x100be5(_0x41c977){_0x200d29[_0x1b49('0x30')][_0x1b49('0x23')](_0x58bf9f=>{const _0x3c0d69=Array[_0x1b49('0x3')](_0x9fe1a2[_0x1b49('0x6d')]())['map'](_0x1f1fb8=>_0x263e68[_0x1b49('0x3d')](_0x1f1fb8)),_0x42760c=[];for(const _0x507602 of _0x41c977)for(const _0x35d62c of _0x507602[_0x1b49('0x22')]({'shallow':!0x0}))_0x42760c[_0x1b49('0x45')](_0x35d62c);for(const _0x91adaa of _0x42760c)_0x1b49('0x13')!=_0x91adaa[_0x1b49('0x1f')][_0x1b49('0x2f')]&&(_0x58bf9f[_0x1b49('0x81')](_0x58bf9f['createPositionAt'](_0x91adaa,0x0)),_0x200d29[_0x1b49('0x40')][_0x1b49('0x4a')](_0x1b49('0x4e'))[_0x1b49('0x6b')](),_0x200d29[_0x1b49('0x5')](_0x1b49('0x4e'),{'forceDefaultExecution':!0x0}));const _0x26de15=_0x3c0d69['filter'](_0xccdfa4=>'$graveyard'!=_0xccdfa4[_0x1b49('0x1f')][_0x1b49('0x2f')]);_0x26de15[_0x1b49('0x78')]>0x0&&_0x58bf9f[_0x1b49('0x81')](_0x26de15);for(const _0x58b542 of _0x3c0d69)_0x58b542[_0x1b49('0x7a')]();});}function _0x101e05(_0x14c45f,_0x526616){return _0x526616['every'](_0x630473=>_0x14c45f[_0x1b49('0x28')](_0x4f113b=>_0x4f113b[_0x1b49('0x82')][_0x1b49('0x2c')](_0x630473['start'])||_0x630473[_0x1b49('0x82')][_0x1b49('0x2c')](_0x4f113b[_0x1b49('0x7e')])));}function _0x58ce15(_0x19ddf9,_0x3277e1){return _0x19ddf9[_0x1b49('0x28')](_0x146991=>_0x3277e1[_0x1b49('0x28')](_0x54f645=>_0x146991[_0x1b49('0x82')][_0x1b49('0x53')](_0x54f645[_0x1b49('0x7e')])));}_0x200d29['data']['downcastDispatcher']['on'](_0x1b49('0x31'),(_0x17b695,_0x47ad3c,_0x86b7cf)=>{if(!_0x86b7cf['options'][_0x1b49('0x54')])return;const _0x3fdfcb=_0x47ad3c[_0x1b49('0x19')];if(!_0x3fdfcb)return;const _0x3bcd98=_0x86b7cf[_0x1b49('0x6')][_0x1b49('0x14')](_0x3fdfcb);function _0x2ac7e9(_0x163a78){return Array['isArray'](_0x163a78)?_0x163a78:[_0x163a78];}_0x3bcd98&&_0x1b49('0x69')===_0x3fdfcb[_0x1b49('0x74')]&&_0xaabf0(_0x3bcd98,_0x86b7cf[_0x1b49('0x25')],(_0x51ee84,_0x5b17a2,_0x48004e)=>_0x48004e[_0x1b49('0x7d')](_0x2ac7e9(_0x5b17a2[_0x1b49('0x26')]),_0x51ee84),(_0x259b61,_0x9705c2,_0x2bbb6e)=>_0x2bbb6e['removeClass'](_0x2ac7e9(_0x9705c2[_0x1b49('0x26')]),_0x259b61));},{'priority':'highest'}),_0x1a9504['_descriptionFactory']['registerDescriptionCallback'](_0x3e9d26=>{if(_0x1b49('0x50')!=_0x3e9d26['type']&&_0x1b49('0x12')!=_0x3e9d26[_0x1b49('0x79')])return;const _0x2aa8da=_0x3e9d26['getContainedElement']();if(null!=_0x2aa8da&&_0x2aa8da['is'](_0x1b49('0x4c'),_0x1b49('0x2d'))){if(_0x1b49('0x50')==_0x3e9d26[_0x1b49('0x79')]){const _0x186731=_0x3e9d26[_0x1b49('0x22')]()[_0x1b49('0x17')](_0x92ca40=>_0x92ca40['is'](_0x1b49('0x3c')))[_0x1b49('0x4d')](_0x30062d=>_0x30062d[_0x1b49('0x24')]);if(_0x186731[_0x1b49('0x78')])return{'type':_0x1b49('0x50'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x34'),_0x2a917a(_0x2539f8,_0x1b49('0x51'),'\x22'+_0x186731[_0x1b49('0x42')]('\x20')+'\x22'))};}if(_0x1b49('0x12')==_0x3e9d26[_0x1b49('0x79')]){const _0x524c50=_0x3e9d26[_0x1b49('0x22')]()[_0x1b49('0x17')](_0x9e4cc8=>_0x9e4cc8['is'](_0x1b49('0x3c')))[_0x1b49('0x4d')](_0x166dd6=>_0x166dd6[_0x1b49('0x24')]);if(_0x524c50[_0x1b49('0x78')])return{'type':_0x1b49('0x12'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x5a'),_0x2a917a(_0x2539f8,_0x1b49('0x51'),'\x22'+_0x524c50[_0x1b49('0x42')]('\x20')+'\x22'))};}}}),_0x1a9504[_0x1b49('0x2b')][_0x1b49('0x7b')](_0x539097=>{if(_0x1b49('0x7f')==_0x539097[_0x1b49('0x15')]){const _0x280fbd=_0x539097[_0x1b49('0x22')]()[_0x1b49('0x17')](_0x4b378d=>_0x4b378d['is'](_0x1b49('0x3c')))[_0x1b49('0x4d')](_0x1b0a43=>_0x1b0a43[_0x1b49('0x24')]),_0xfb074e=this['_getSuggestionCoords'](_0x539097),_0x58dae5=_0xfb074e[_0x1b49('0x66')]-_0xfb074e['minRow']+0x1;if(_0x1b49('0x50')==_0x539097[_0x1b49('0x79')])return _0x280fbd[_0x1b49('0x78')]?{'type':'insertion','content':_0x2a917a(_0x2539f8,_0x1b49('0x34'),_0x2a917a(_0x2539f8,_0x1b49('0x56'),[_0x58dae5,'\x22'+_0x280fbd[_0x1b49('0x42')]('\x20')+'\x22']))}:{'type':_0x1b49('0x50'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x34'),_0x2a917a(_0x2539f8,'ELEMENT_TABLE_ROW',_0x58dae5))};if(_0x1b49('0x12')==_0x539097[_0x1b49('0x79')])return _0x280fbd[_0x1b49('0x78')]?{'type':_0x1b49('0x12'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x5a'),_0x2a917a(_0x2539f8,_0x1b49('0x56'),[_0x58dae5,'\x22'+_0x280fbd[_0x1b49('0x42')]('\x20')+'\x22']))}:{'type':_0x1b49('0x12'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x5a'),_0x2a917a(_0x2539f8,_0x1b49('0x5e'),_0x58dae5))};}if(_0x1b49('0x32')==_0x539097['subType']){const _0x458f3c=_0x539097[_0x1b49('0x22')]()[_0x1b49('0x17')](_0x31fc1b=>_0x31fc1b['is'](_0x1b49('0x3c')))[_0x1b49('0x4d')](_0x3f2bf5=>_0x3f2bf5['data']),_0x4649db=this[_0x1b49('0xc')](_0x539097),_0x20be4c=_0x4649db['maxColumn']-_0x4649db[_0x1b49('0x18')]+0x1;if('insertion'==_0x539097['type'])return _0x458f3c['length']?{'type':_0x1b49('0x50'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x34'),_0x2a917a(_0x2539f8,_0x1b49('0x10'),[_0x20be4c,'\x22'+_0x458f3c[_0x1b49('0x42')]('\x20')+'\x22']))}:{'type':_0x1b49('0x50'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x34'),_0x2a917a(_0x2539f8,_0x1b49('0x77'),_0x20be4c))};if('deletion'==_0x539097[_0x1b49('0x79')])return _0x458f3c['length']?{'type':_0x1b49('0x12'),'content':_0x2a917a(_0x2539f8,_0x1b49('0x5a'),_0x2a917a(_0x2539f8,_0x1b49('0x10'),[_0x20be4c,'\x22'+_0x458f3c[_0x1b49('0x42')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x2a917a(_0x2539f8,_0x1b49('0x5a'),_0x2a917a(_0x2539f8,_0x1b49('0x77'),_0x20be4c))};}}),_0x1a9504[_0x1b49('0x39')][_0x1b49('0x35')](_0x1b49('0x50'),_0x1b49('0x7f'),_0x1b49('0x0'),_0x5d764c),_0x1a9504['_suggestionFactory'][_0x1b49('0x35')](_0x1b49('0x12'),_0x1b49('0x7f'),'accept',_0x5d764c),_0x1a9504[_0x1b49('0x39')][_0x1b49('0x35')](_0x1b49('0x50'),_0x1b49('0x32'),_0x1b49('0x0'),_0x100be5),_0x1a9504[_0x1b49('0x39')][_0x1b49('0x35')](_0x1b49('0x12'),_0x1b49('0x32'),_0x1b49('0x48'),_0x100be5),_0x1a9504['_suggestionFactory'][_0x1b49('0x35')](_0x1b49('0x50'),_0x1b49('0x32'),_0x1b49('0x42'),_0x101e05),_0x1a9504[_0x1b49('0x39')]['registerCustomCallback'](_0x1b49('0x12'),_0x1b49('0x32'),_0x1b49('0x42'),_0x101e05),_0x1a9504[_0x1b49('0x39')][_0x1b49('0x35')](_0x1b49('0x50'),_0x1b49('0x7f'),_0x1b49('0x42'),_0x58ce15),_0x1a9504[_0x1b49('0x39')][_0x1b49('0x35')](_0x1b49('0x12'),_0x1b49('0x7f'),_0x1b49('0x42'),_0x58ce15);}[_0x1b49('0x80')](){const _0x269d5e=this[_0x1b49('0x62')],_0x116d00=_0x269d5e[_0x1b49('0x30')][_0x1b49('0x37')][_0x1b49('0x27')];return(_0x1bc477,_0x3b87f1)=>{_0x269d5e['model'][_0x1b49('0x23')](_0x500e1f=>{const {commandName:_0x215ef4,commandParams:_0x3c77b3}=_0x3b87f1;let _0x1e5954=_0x1bc477[0x0][_0x1b49('0x82')][_0x1b49('0x64')];_0x3c77b3&&_0x3c77b3[0x0]&&!0x1===_0x3c77b3[0x0][_0x1b49('0x76')]&&(_0x1e5954=_0x1bc477[0x0][_0x1b49('0x7e')][_0x1b49('0x72')]);const _0x27be7e=_0x500e1f[_0x1b49('0xd')](_0x1e5954);if(_0x1b49('0x13')==_0x27be7e['root'][_0x1b49('0x2f')])return;const _0x251c66=Array[_0x1b49('0x3')](_0x116d00[_0x1b49('0x6d')]())[_0x1b49('0x4d')](_0x4710bc=>_0x263e68['fromRange'](_0x4710bc));_0x500e1f[_0x1b49('0x81')](_0x27be7e),_0x269d5e[_0x1b49('0x40')]['get'](_0x215ef4)[_0x1b49('0x6b')](),_0x3c77b3[_0x1b49('0x45')]({'forceDefaultExecution':!0x0}),_0x269d5e['execute'](_0x215ef4,..._0x3c77b3);const _0xa5be7f=_0x251c66[_0x1b49('0x17')](_0x2bae3d=>_0x1b49('0x13')!=_0x2bae3d['root'][_0x1b49('0x2f')]);_0xa5be7f[_0x1b49('0x78')]>0x0&&_0x500e1f[_0x1b49('0x81')](_0xa5be7f);for(const _0x1d7fa1 of _0x251c66)_0x1d7fa1[_0x1b49('0x7a')]();});};}[_0x1b49('0xa')](_0x321edc){const _0x55ddce=this[_0x1b49('0x62')][_0x1b49('0x63')][_0x1b49('0x4a')](_0x1b49('0x5c'));let _0x956b1f=Number[_0x1b49('0x21')],_0x404d50=Number['MIN_SAFE_INTEGER'],_0x27533c=Number[_0x1b49('0x21')],_0x4ccbb0=Number['MIN_SAFE_INTEGER'];for(const _0x312b25 of _0x321edc){if(_0x1b49('0x13')==_0x312b25[_0x1b49('0x1f')][_0x1b49('0x2f')])continue;const {row:_0x4b9855,column:_0x2eac29}=_0x55ddce[_0x1b49('0x7c')](_0x312b25),_0x227c9c=_0x312b25[_0x1b49('0x5f')]('rowspan')?_0x312b25['getAttribute']('rowspan')-0x1:0x0,_0x311906=_0x312b25[_0x1b49('0x5f')](_0x1b49('0x75'))?_0x312b25[_0x1b49('0x1d')](_0x1b49('0x75'))-0x1:0x0;_0x956b1f=_0x4b9855<_0x956b1f?_0x4b9855:_0x956b1f,_0x404d50=_0x4b9855+_0x227c9c>_0x404d50?_0x4b9855+_0x227c9c:_0x404d50,_0x27533c=_0x2eac29<_0x27533c?_0x2eac29:_0x27533c,_0x4ccbb0=_0x2eac29+_0x311906>_0x4ccbb0?_0x2eac29+_0x311906:_0x4ccbb0;}return{'minRow':_0x956b1f,'maxRow':_0x404d50,'minColumn':_0x27533c,'maxColumn':_0x4ccbb0};}[_0x1b49('0x3f')](){const _0x1c6097=this[_0x1b49('0x62')],_0x5d54d3=_0x1c6097[_0x1b49('0x63')][_0x1b49('0x4a')]('TrackChangesEditing'),_0xc762c9=_0x1c6097[_0x1b49('0x63')]['get'](_0x1b49('0x5c'));_0x1c6097['model'][_0x1b49('0x37')]['on'](_0x1b49('0x3e'),()=>{const _0x267298=Array[_0x1b49('0x3')](_0x1c6097['model']['document'][_0x1b49('0x33')][_0x1b49('0x1c')]());for(const {name:_0x1007c4,data:_0x3d73bc}of _0x267298){const {group:_0x406e1d,id:_0x1d4531,subType:_0x156483}=_0x5d54d3[_0x1b49('0x6c')](_0x1007c4);if(_0x1b49('0x44')!=_0x406e1d)continue;if(null!=_0x3d73bc[_0x1b49('0x60')])continue;const _0xef0099=_0x5d54d3['getSuggestion'](_0x1d4531);this[_0x1b49('0x70')][_0x1b49('0xb')](_0x156483)&&this[_0x1b49('0x2e')][_0x1b49('0x5d')](_0xef0099);}},{'priority':_0x1b49('0x58')});const _0x121817=(_0x4506ee,_0xef0cd6)=>{let _0x7b832f=!0x1;const _0x404af8=_0xef0cd6[_0x1b49('0x6e')](_0x4506ee),_0x1b29c5=_0x4506ee[_0x1b49('0x5b')](_0x1b49('0x2d')),_0x1fb640=_0xc762c9[_0x1b49('0x7c')](_0x4506ee);for(const _0x31b7ed of this[_0x1b49('0x2e')]){const _0x448232=_0x31b7ed[_0x1b49('0x15')],_0x93a128=_0x448232[_0x1b49('0x29')](_0x1b49('0x46')),_0x262641=_0x448232['substr'](_0x93a128?0xa:0x5),_0x469e9d=_0x262641[_0x1b49('0x3a')](),_0x17c1f0=_0x469e9d['substr'](0x0,0x3)+_0x1b49('0xe'),_0x564e9f=_0x1b49('0x16')+_0x262641,_0x1f10b4=_0x1b49('0x57')+_0x262641;if(!_0x31b7ed[_0x1b49('0x4f')])continue;if(_0x1b29c5!=_0x31b7ed[_0x1b49('0x1b')]()[_0x1b49('0x7e')][_0x1b49('0x5b')](_0x1b49('0x2d')))continue;if(_0x31b7ed[_0x1b49('0x68')](_0x404af8))continue;const _0x2e3065=_0x4506ee[_0x1b49('0x5f')](_0x17c1f0)?_0x4506ee[_0x1b49('0x1d')](_0x17c1f0)-0x1:0x0,_0x1595ea=this[_0x1b49('0xc')](_0x31b7ed),_0x55c5bb=_0x1595ea[_0x564e9f],_0x10551d=_0x1595ea[_0x1f10b4];_0x55c5bb<=_0x1fb640[_0x469e9d]&&_0x1fb640[_0x469e9d]+_0x2e3065<=_0x10551d&&(_0x31b7ed['addRange'](_0x404af8),_0x7b832f=!0x0);}return _0x7b832f;};_0x1c6097[_0x1b49('0x30')][_0x1b49('0x37')][_0x1b49('0x36')](_0x5f199b=>{let _0x5740b1=!0x1;for(const _0x45f391 of _0x1c6097[_0x1b49('0x30')][_0x1b49('0x37')][_0x1b49('0x33')]['getChanges']())if('insert'==_0x45f391[_0x1b49('0x79')]){if(_0x1b49('0x7f')==_0x45f391['name'])for(const _0xaff70d of _0x45f391[_0x1b49('0x73')][_0x1b49('0x72')][_0x1b49('0x6f')]())_0x5740b1=_0x5740b1||_0x121817(_0xaff70d,_0x5f199b);else _0x1b49('0x69')==_0x45f391['name']&&(_0x5740b1=_0x5740b1||_0x121817(_0x45f391[_0x1b49('0x73')]['nodeAfter'],_0x5f199b));}return _0x5740b1;});}['_getSuggestionCoords'](_0xb8a511){return this[_0x1b49('0xa')](_0xb8a511[_0x1b49('0x6d')]()[_0x1b49('0x4d')](_0x43e4dd=>_0x43e4dd[_0x1b49('0x7e')][_0x1b49('0x72')]));}}function se(_0x3902cf){return Array[_0x1b49('0x3')](new Set(_0x3902cf)[_0x1b49('0x2')]());}
|
|
23
|
+
const _0xc8f6=['createPositionAt','markMultiRangeDeletion','classes','map','registerPostFixer','tableCell','isIntersectingWithRange','getSelectionAffectedTableCells','registerDescriptionCallback','get','_tableSuggestions','removeTableColumn','_getSuggestionCoords','locale','toViewElement','low','oldRange','document','nodeAfter','push','root','createRangeOn','selection','MAX_SAFE_INTEGER','ELEMENT_TABLE_WITH_TEXT','_suggestionFactory','differ','TableEditing','options','_tablePostFixingSubtypes','enableCommand','markMultiRangeInsertion','deletion','writer','_descriptionFactory','subType','getChanges','ELEMENT_TABLE_ROW_WITH_TEXT','startsWith','rootName','includes','name','isEqual','data','ELEMENT_TABLE','isArray','insert','_splitMarkerName','ELEMENT_TABLE_COLUMN_WITH_TEXT','some','ELEMENT_TABLE_ROW','removeTableRow','getSuggestion','isInContent','min','showSuggestionHighlights','end','getChildren','insertion','max','getChangedMarkers','colspan','start','getCellLocation','getItems','*Insert:*\x20%0','maxColumn','commands','getAttribute','fromRange','_setupColumnsRowsFixing','removeClass','span','hasAttribute','registerElementLabel','length','rowspan','model','_getCoordsForCells','getRanges','enqueueChange','values','batch','plugins','discard','addRange','*Remove:*\x20%0','refresh','maxRow','insertTable','TrackChangesEditing','execute','selectTableColumn','minRow','item','getRowIndexes','substr','editor','getColumnIndexes','afterInit','$graveyard','change:data','has','ELEMENT_TABLE_COLUMN','every','MIN_SAFE_INTEGER','change','minColumn','isTouching','first','$textProxy','TableUtils','position','mapper','accept','registerCustomCallback','type','insertTableColumnRight','_acceptFormatSuggestionCallbackFactory','tablePaste','add','filter','forceValue','suggestion','tableRow','table','createRangeIn','tableColumn','getContainedElement','join','getFirstRange','insertTableRowBelow','downcastDispatcher','detach','setSelection','findAncestor','createTableWalker','last','from','highest','order'];(function(_0x3c4647,_0xc8f667){const _0x5a753b=function(_0x20de2c){while(--_0x20de2c){_0x3c4647['push'](_0x3c4647['shift']());}};_0x5a753b(++_0xc8f667);}(_0xc8f6,0x161));const _0x5a75=function(_0x3c4647,_0xc8f667){_0x3c4647=_0x3c4647-0x0;let _0x5a753b=_0xc8f6[_0x3c4647];return _0x5a753b;};import{Plugin as _0x5225e2}from'ckeditor5/src/core';import{LiveRange as _0x44849a}from'ckeditor5/src/engine';import{setHighlightHandling as _0x43502e}from'ckeditor5/src/widget';import{getTranslation as _0x29cafb}from'../utils/common-translations';export default class mt extends _0x5225e2{constructor(_0x2761f9){super(_0x2761f9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this[_0x5a75('0x50')]=new Set();}[_0x5a75('0x1c')](){const _0x5235d1=this[_0x5a75('0x1a')],_0x4a93f7=_0x5235d1[_0x5a75('0x6')][_0x5a75('0x57')][_0x5a75('0x5c')];if(!_0x5235d1['plugins'][_0x5a75('0x1f')](_0x5a75('0x61')))return;const _0x211a8b=_0x5235d1[_0x5a75('0x53')],_0x630e3d=_0x5235d1['plugins'][_0x5a75('0x4f')](_0x5a75('0x13')),_0x291c1f=_0x5235d1[_0x5a75('0xc')][_0x5a75('0x4f')](_0x5a75('0x28'));_0x630e3d[_0x5a75('0x68')][_0x5a75('0x3')](_0x5a75('0x36'),_0xe1369f=>_0x29cafb(_0x211a8b,_0x5a75('0x72'),_0xe1369f)),this[_0x5a75('0x8c')](),_0x630e3d[_0x5a75('0x64')](_0x5a75('0x12')),_0x630e3d[_0x5a75('0x64')]('selectTableRow'),_0x630e3d[_0x5a75('0x64')](_0x5a75('0x15'));for(const _0xdeb9db of['insertTableRowAbove',_0x5a75('0x3c')]){const _0x491832=_0x5235d1[_0x5a75('0x89')][_0x5a75('0x4f')](_0xdeb9db);_0x630e3d[_0x5a75('0x64')](_0xdeb9db,_0x3ddaa3=>{_0x5235d1[_0x5a75('0x6')]['change'](_0x4bffd7=>{_0x3ddaa3();const _0x5e777e='above'===_0x491832[_0x5a75('0x45')],_0xf38861=_0x291c1f[_0x5a75('0x4d')](_0x4a93f7),_0x2cf550=_0x291c1f[_0x5a75('0x18')](_0xf38861),_0x4848f4=_0x5e777e?_0x2cf550['first']-0x1:_0x2cf550[_0x5a75('0x42')]+0x1,_0x151af1=_0xf38861[0x0][_0x5a75('0x40')]('table'),_0x2d9f16=_0x291c1f[_0x5a75('0x41')](_0x151af1,{'startRow':_0x4848f4,'endRow':_0x4848f4}),_0x3179b2=Array[_0x5a75('0x43')](_0x2d9f16)[_0x5a75('0x49')](_0x4105cf=>_0x4bffd7[_0x5a75('0x5b')](_0x4105cf['cell']));_0x630e3d[_0x5a75('0x65')](_0x3179b2,'tableRow');});});}for(const _0x4eae51 of['insertTableColumnLeft',_0x5a75('0x2e')]){const _0x19e1c8=_0x5235d1[_0x5a75('0x89')][_0x5a75('0x4f')](_0x4eae51);_0x630e3d[_0x5a75('0x64')](_0x4eae51,_0x4e704e=>{_0x5235d1['model'][_0x5a75('0x23')](_0x5de50d=>{_0x4e704e();const _0x468e1b='left'===_0x19e1c8[_0x5a75('0x45')],_0x32d55f=_0x291c1f['getSelectionAffectedTableCells'](_0x4a93f7),_0x12988b=_0x291c1f[_0x5a75('0x1b')](_0x32d55f),_0xa74db6=_0x468e1b?_0x12988b[_0x5a75('0x26')]-0x1:_0x12988b['last']+0x1,_0x21bd6e=_0x32d55f[0x0][_0x5a75('0x40')]('table'),_0x5dbcad=_0x291c1f[_0x5a75('0x41')](_0x21bd6e,{'startRow':0x0,'column':_0xa74db6,'includeAllSlots':!0x1}),_0xfa552d=Array['from'](_0x5dbcad)[_0x5a75('0x49')](_0x3dfd8c=>_0x5de50d[_0x5a75('0x5b')](_0x3dfd8c['cell']));_0x630e3d[_0x5a75('0x65')](_0xfa552d,'tableColumn');});});}for(const _0x4a2ea7 of[_0x5a75('0x79'),_0x5a75('0x51')]){const _0x5d34e9=_0x4a2ea7[_0x5a75('0x19')](0xb),_0x19b6e4=_0x5d34e9['toLowerCase'](),_0x431e79=_0x19b6e4[_0x5a75('0x19')](0x0,0x3)+_0x5a75('0x1'),_0x131a3e=_0x5a75('0x36')+_0x5d34e9,_0x4a33bc='min'+_0x5d34e9,_0x4b1a18='max'+_0x5d34e9;_0x630e3d[_0x5a75('0x64')](_0x4a2ea7,()=>{_0x5235d1['model'][_0x5a75('0x23')](_0x1f64a=>{const _0x2d3440=_0x291c1f[_0x5a75('0x4d')](_0x4a93f7),_0x35c957=_0x2d3440[0x0]['findAncestor'](_0x5a75('0x36'));let _0x3962fc;if(_0x5a75('0x79')==_0x4a2ea7){const _0x4dbc33=_0x291c1f[_0x5a75('0x18')](_0x2d3440);_0x3962fc={'startRow':_0x4dbc33[_0x5a75('0x26')],'endRow':_0x4dbc33[_0x5a75('0x42')],'includeAllSlots':!0x0};}else{const _0x422259=_0x291c1f[_0x5a75('0x1b')](_0x2d3440);_0x3962fc={'startColumn':_0x422259[_0x5a75('0x26')],'endColumn':_0x422259[_0x5a75('0x42')],'includeAllSlots':!0x0};}const _0x1ad9a9=_0x291c1f[_0x5a75('0x41')](_0x35c957,_0x3962fc),_0x21d4b1=Array[_0x5a75('0x43')](_0x1ad9a9)[_0x5a75('0x49')](({cell:_0x2d89fd})=>_0x2d89fd),_0x572de4=se(_0x21d4b1[_0x5a75('0x32')](_0x8a7c0d=>_0x8a7c0d['hasAttribute'](_0x431e79))),_0x3f76ac=se(_0x21d4b1[_0x5a75('0x32')](_0x1a9706=>!_0x1a9706['hasAttribute'](_0x431e79)))[_0x5a75('0x49')](_0x24d551=>_0x1f64a[_0x5a75('0x5b')](_0x24d551)),_0xa26014=_0x630e3d[_0x5a75('0x47')](_0x3f76ac,_0x131a3e);if(_0xa26014&&('tableRow'==_0xa26014[_0x5a75('0x69')]||_0x5a75('0x38')==_0xa26014[_0x5a75('0x69')])){const _0x43901b=this[_0x5a75('0x52')](_0xa26014);for(const _0x4c91ea of _0x572de4){const _0x370a9a=_0x1f64a[_0x5a75('0x5b')](_0x4c91ea),_0x18a0d1=_0x291c1f[_0x5a75('0x85')](_0x4c91ea),_0x330556=_0x4c91ea[_0x5a75('0x8a')](_0x431e79)-0x1,_0x3d7e31=_0x43901b[_0x4a33bc],_0x4483b7=_0x43901b[_0x4b1a18];_0x3d7e31<=_0x18a0d1[_0x19b6e4]&&_0x18a0d1[_0x19b6e4]+_0x330556<=_0x4483b7&&_0xa26014[_0x5a75('0xe')](_0x370a9a);}}});});}function _0x12eccf(_0x121c20){const _0x21955c=Array['from'](_0x4a93f7[_0x5a75('0x8')]())[_0x5a75('0x49')](_0xf422ce=>_0x44849a[_0x5a75('0x8b')](_0xf422ce));_0x5235d1['model'][_0x5a75('0x23')](_0x2e5565=>{const _0x40be58=_0x2e5565[_0x5a75('0xb')];_0x121c20=_0x121c20[_0x5a75('0x32')](_0x509da6=>_0x5a75('0x1d')!=_0x509da6[_0x5a75('0x5a')][_0x5a75('0x6d')]),_0x2e5565[_0x5a75('0x3f')](_0x121c20),_0x5235d1[_0x5a75('0x89')][_0x5a75('0x4f')](_0x5a75('0x79'))[_0x5a75('0x10')](),_0x5235d1[_0x5a75('0x14')](_0x5a75('0x79'),{'forceDefaultExecution':!0x0}),_0x5235d1[_0x5a75('0x6')][_0x5a75('0x9')](()=>{_0x5235d1['model'][_0x5a75('0x9')](_0x40be58,_0x51d2eb=>{const _0x30852b=_0x21955c[_0x5a75('0x32')](_0x2e2fc6=>'$graveyard'!=_0x2e2fc6[_0x5a75('0x5a')][_0x5a75('0x6d')]);_0x30852b['length']>0x0&&_0x51d2eb[_0x5a75('0x3f')](_0x30852b);for(const _0xc8751 of _0x21955c)_0xc8751[_0x5a75('0x3e')]();});});});}function _0x41e81e(_0x30989e){_0x5235d1[_0x5a75('0x6')]['change'](_0x4cd5b4=>{const _0x1b61b9=Array['from'](_0x4a93f7['getRanges']())['map'](_0xbbbe49=>_0x44849a[_0x5a75('0x8b')](_0xbbbe49)),_0x4f592d=[];for(const _0x4924eb of _0x30989e)for(const _0x4988f6 of _0x4924eb[_0x5a75('0x86')]({'shallow':!0x0}))_0x4f592d[_0x5a75('0x59')](_0x4988f6);for(const _0x1ce13a of _0x4f592d)_0x5a75('0x1d')!=_0x1ce13a[_0x5a75('0x5a')][_0x5a75('0x6d')]&&(_0x4cd5b4['setSelection'](_0x4cd5b4[_0x5a75('0x46')](_0x1ce13a,0x0)),_0x5235d1[_0x5a75('0x89')]['get']('removeTableColumn')[_0x5a75('0x10')](),_0x5235d1[_0x5a75('0x14')](_0x5a75('0x51'),{'forceDefaultExecution':!0x0}));const _0x14fc66=_0x1b61b9[_0x5a75('0x32')](_0x3ee915=>_0x5a75('0x1d')!=_0x3ee915[_0x5a75('0x5a')][_0x5a75('0x6d')]);_0x14fc66[_0x5a75('0x4')]>0x0&&_0x4cd5b4[_0x5a75('0x3f')](_0x14fc66);for(const _0x55964b of _0x1b61b9)_0x55964b[_0x5a75('0x3e')]();});}function _0x1595ac(_0x2f8870,_0x2438dc){return _0x2438dc[_0x5a75('0x21')](_0x550681=>_0x2f8870[_0x5a75('0x77')](_0x461675=>_0x461675[_0x5a75('0x7e')][_0x5a75('0x70')](_0x550681[_0x5a75('0x84')])||_0x550681['end'][_0x5a75('0x70')](_0x461675[_0x5a75('0x84')])));}function _0x58612e(_0x38ddf1,_0x1c654b){return _0x38ddf1['some'](_0x13f267=>_0x1c654b['some'](_0x266769=>_0x13f267[_0x5a75('0x7e')][_0x5a75('0x25')](_0x266769[_0x5a75('0x84')])));}_0x5235d1[_0x5a75('0x71')][_0x5a75('0x3d')]['on']('addMarker:suggestion',(_0x511d17,_0x51d76c,_0x86ab43)=>{if(!_0x86ab43[_0x5a75('0x62')][_0x5a75('0x7d')])return;const _0x1dddc0=_0x51d76c[_0x5a75('0x17')];if(!_0x1dddc0)return;const _0x29545d=_0x86ab43[_0x5a75('0x2a')][_0x5a75('0x54')](_0x1dddc0);function _0x409038(_0x1f32a4){return Array[_0x5a75('0x73')](_0x1f32a4)?_0x1f32a4:[_0x1f32a4];}_0x29545d&&_0x5a75('0x4b')===_0x1dddc0[_0x5a75('0x6f')]&&_0x43502e(_0x29545d,_0x86ab43[_0x5a75('0x67')],(_0x2a013d,_0x323736,_0x2842f1)=>_0x2842f1['addClass'](_0x409038(_0x323736['classes']),_0x2a013d),(_0x532d16,_0x5c7927,_0xeb5338)=>_0xeb5338[_0x5a75('0x0')](_0x409038(_0x5c7927[_0x5a75('0x48')]),_0x532d16));},{'priority':_0x5a75('0x44')}),_0x630e3d[_0x5a75('0x68')][_0x5a75('0x4e')](_0x5a8774=>{if('insertion'!=_0x5a8774['type']&&_0x5a75('0x66')!=_0x5a8774['type'])return;const _0xa244cf=_0x5a8774[_0x5a75('0x39')]();if(null!=_0xa244cf&&_0xa244cf['is']('element',_0x5a75('0x36'))){if(_0x5a75('0x80')==_0x5a8774[_0x5a75('0x2d')]){const _0x1a82da=_0x5a8774[_0x5a75('0x86')]()[_0x5a75('0x32')](_0x52cf00=>_0x52cf00['is'](_0x5a75('0x27')))['map'](_0xab71fa=>_0xab71fa[_0x5a75('0x71')]);if(_0x1a82da[_0x5a75('0x4')])return{'type':_0x5a75('0x80'),'content':_0x29cafb(_0x211a8b,_0x5a75('0x87'),_0x29cafb(_0x211a8b,_0x5a75('0x5e'),'\x22'+_0x1a82da['join']('\x20')+'\x22'))};}if(_0x5a75('0x66')==_0x5a8774['type']){const _0x25f473=_0x5a8774[_0x5a75('0x86')]()[_0x5a75('0x32')](_0x35bb8a=>_0x35bb8a['is'](_0x5a75('0x27')))['map'](_0x1a01cd=>_0x1a01cd['data']);if(_0x25f473['length'])return{'type':_0x5a75('0x66'),'content':_0x29cafb(_0x211a8b,_0x5a75('0xf'),_0x29cafb(_0x211a8b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x25f473['join']('\x20')+'\x22'))};}}}),_0x630e3d[_0x5a75('0x68')][_0x5a75('0x4e')](_0x26713f=>{if(_0x5a75('0x35')==_0x26713f[_0x5a75('0x69')]){const _0x56cc1e=_0x26713f['getItems']()['filter'](_0x33f3c9=>_0x33f3c9['is'](_0x5a75('0x27')))[_0x5a75('0x49')](_0x2fb025=>_0x2fb025[_0x5a75('0x71')]),_0x58150f=this[_0x5a75('0x52')](_0x26713f),_0x19c815=_0x58150f[_0x5a75('0x11')]-_0x58150f[_0x5a75('0x16')]+0x1;if(_0x5a75('0x80')==_0x26713f['type'])return _0x56cc1e['length']?{'type':_0x5a75('0x80'),'content':_0x29cafb(_0x211a8b,_0x5a75('0x87'),_0x29cafb(_0x211a8b,_0x5a75('0x6b'),[_0x19c815,'\x22'+_0x56cc1e[_0x5a75('0x3a')]('\x20')+'\x22']))}:{'type':_0x5a75('0x80'),'content':_0x29cafb(_0x211a8b,_0x5a75('0x87'),_0x29cafb(_0x211a8b,_0x5a75('0x78'),_0x19c815))};if(_0x5a75('0x66')==_0x26713f[_0x5a75('0x2d')])return _0x56cc1e['length']?{'type':_0x5a75('0x66'),'content':_0x29cafb(_0x211a8b,'*Remove:*\x20%0',_0x29cafb(_0x211a8b,_0x5a75('0x6b'),[_0x19c815,'\x22'+_0x56cc1e[_0x5a75('0x3a')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x29cafb(_0x211a8b,_0x5a75('0xf'),_0x29cafb(_0x211a8b,_0x5a75('0x78'),_0x19c815))};}if(_0x5a75('0x38')==_0x26713f[_0x5a75('0x69')]){const _0x310167=_0x26713f[_0x5a75('0x86')]()[_0x5a75('0x32')](_0x121084=>_0x121084['is'](_0x5a75('0x27')))['map'](_0x5d0c1c=>_0x5d0c1c[_0x5a75('0x71')]),_0x4f14d5=this[_0x5a75('0x52')](_0x26713f),_0x413f3b=_0x4f14d5[_0x5a75('0x88')]-_0x4f14d5[_0x5a75('0x24')]+0x1;if('insertion'==_0x26713f[_0x5a75('0x2d')])return _0x310167[_0x5a75('0x4')]?{'type':_0x5a75('0x80'),'content':_0x29cafb(_0x211a8b,'*Insert:*\x20%0',_0x29cafb(_0x211a8b,_0x5a75('0x76'),[_0x413f3b,'\x22'+_0x310167[_0x5a75('0x3a')]('\x20')+'\x22']))}:{'type':_0x5a75('0x80'),'content':_0x29cafb(_0x211a8b,_0x5a75('0x87'),_0x29cafb(_0x211a8b,_0x5a75('0x20'),_0x413f3b))};if(_0x5a75('0x66')==_0x26713f['type'])return _0x310167['length']?{'type':_0x5a75('0x66'),'content':_0x29cafb(_0x211a8b,'*Remove:*\x20%0',_0x29cafb(_0x211a8b,_0x5a75('0x76'),[_0x413f3b,'\x22'+_0x310167[_0x5a75('0x3a')]('\x20')+'\x22']))}:{'type':_0x5a75('0x66'),'content':_0x29cafb(_0x211a8b,_0x5a75('0xf'),_0x29cafb(_0x211a8b,_0x5a75('0x20'),_0x413f3b))};}}),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')](_0x5a75('0x80'),_0x5a75('0x35'),_0x5a75('0xd'),_0x12eccf),_0x630e3d[_0x5a75('0x5f')]['registerCustomCallback'](_0x5a75('0x66'),'tableRow',_0x5a75('0x2b'),_0x12eccf),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')](_0x5a75('0x80'),'tableColumn',_0x5a75('0xd'),_0x41e81e),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')](_0x5a75('0x66'),_0x5a75('0x38'),'accept',_0x41e81e),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')]('insertion',_0x5a75('0x38'),_0x5a75('0x3a'),_0x1595ac),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')]('deletion',_0x5a75('0x38'),_0x5a75('0x3a'),_0x1595ac),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')](_0x5a75('0x80'),'tableRow',_0x5a75('0x3a'),_0x58612e),_0x630e3d[_0x5a75('0x5f')][_0x5a75('0x2c')](_0x5a75('0x66'),'tableRow',_0x5a75('0x3a'),_0x58612e);}[_0x5a75('0x2f')](){const _0x1db72a=this[_0x5a75('0x1a')],_0x8cb236=_0x1db72a[_0x5a75('0x6')][_0x5a75('0x57')][_0x5a75('0x5c')];return(_0x21dbe5,_0x4004d3)=>{_0x1db72a[_0x5a75('0x6')][_0x5a75('0x23')](_0x37d065=>{const {commandName:_0x4df84f,commandParams:_0x1bcc5f}=_0x4004d3;let _0x1530d1=_0x21dbe5[0x0][_0x5a75('0x7e')]['nodeBefore'];_0x1bcc5f&&_0x1bcc5f[0x0]&&!0x1===_0x1bcc5f[0x0][_0x5a75('0x33')]&&(_0x1530d1=_0x21dbe5[0x0][_0x5a75('0x84')][_0x5a75('0x58')]);const _0xfccd5a=_0x37d065[_0x5a75('0x37')](_0x1530d1);if(_0x5a75('0x1d')==_0xfccd5a[_0x5a75('0x5a')]['rootName'])return;const _0x3e5230=Array[_0x5a75('0x43')](_0x8cb236[_0x5a75('0x8')]())['map'](_0x857ac3=>_0x44849a['fromRange'](_0x857ac3));_0x37d065[_0x5a75('0x3f')](_0xfccd5a),_0x1db72a[_0x5a75('0x89')][_0x5a75('0x4f')](_0x4df84f)[_0x5a75('0x10')](),_0x1bcc5f[_0x5a75('0x59')]({'forceDefaultExecution':!0x0}),_0x1db72a['execute'](_0x4df84f,..._0x1bcc5f);const _0x5baed5=_0x3e5230[_0x5a75('0x32')](_0x2dabdf=>_0x5a75('0x1d')!=_0x2dabdf['root']['rootName']);_0x5baed5[_0x5a75('0x4')]>0x0&&_0x37d065[_0x5a75('0x3f')](_0x5baed5);for(const _0x52a93f of _0x3e5230)_0x52a93f[_0x5a75('0x3e')]();});};}[_0x5a75('0x7')](_0x30b277){const _0x639a8a=this[_0x5a75('0x1a')][_0x5a75('0xc')]['get'](_0x5a75('0x28'));let _0x574d0c=Number[_0x5a75('0x5d')],_0xee418d=Number[_0x5a75('0x22')],_0x347674=Number[_0x5a75('0x5d')],_0x38b4c0=Number[_0x5a75('0x22')];for(const _0x4fb745 of _0x30b277){if(_0x5a75('0x1d')==_0x4fb745[_0x5a75('0x5a')][_0x5a75('0x6d')])continue;const {row:_0x1c8f7a,column:_0x943790}=_0x639a8a[_0x5a75('0x85')](_0x4fb745),_0xa80b16=_0x4fb745[_0x5a75('0x2')](_0x5a75('0x5'))?_0x4fb745[_0x5a75('0x8a')](_0x5a75('0x5'))-0x1:0x0,_0x1fbfa3=_0x4fb745[_0x5a75('0x2')](_0x5a75('0x83'))?_0x4fb745[_0x5a75('0x8a')](_0x5a75('0x83'))-0x1:0x0;_0x574d0c=_0x1c8f7a<_0x574d0c?_0x1c8f7a:_0x574d0c,_0xee418d=_0x1c8f7a+_0xa80b16>_0xee418d?_0x1c8f7a+_0xa80b16:_0xee418d,_0x347674=_0x943790<_0x347674?_0x943790:_0x347674,_0x38b4c0=_0x943790+_0x1fbfa3>_0x38b4c0?_0x943790+_0x1fbfa3:_0x38b4c0;}return{'minRow':_0x574d0c,'maxRow':_0xee418d,'minColumn':_0x347674,'maxColumn':_0x38b4c0};}[_0x5a75('0x8c')](){const _0x55e9b0=this[_0x5a75('0x1a')],_0x3c291e=_0x55e9b0[_0x5a75('0xc')]['get'](_0x5a75('0x13')),_0x4dcfa0=_0x55e9b0[_0x5a75('0xc')][_0x5a75('0x4f')](_0x5a75('0x28'));_0x55e9b0[_0x5a75('0x6')][_0x5a75('0x57')]['on'](_0x5a75('0x1e'),()=>{const _0x18445f=Array[_0x5a75('0x43')](_0x55e9b0[_0x5a75('0x6')][_0x5a75('0x57')][_0x5a75('0x60')][_0x5a75('0x82')]());for(const {name:_0x5da5fd,data:_0x53b11c}of _0x18445f){const {group:_0x328b9e,id:_0x272efa,subType:_0x2e20f0}=_0x3c291e[_0x5a75('0x75')](_0x5da5fd);if(_0x5a75('0x34')!=_0x328b9e)continue;if(null!=_0x53b11c[_0x5a75('0x56')])continue;const _0x37e4ec=_0x3c291e[_0x5a75('0x7a')](_0x272efa);this[_0x5a75('0x63')][_0x5a75('0x6e')](_0x2e20f0)&&this['_tableSuggestions'][_0x5a75('0x31')](_0x37e4ec);}},{'priority':_0x5a75('0x55')});const _0x5d2c2a=(_0x5850d9,_0x1e84af)=>{let _0x31105f=!0x1;const _0x287cac=_0x1e84af[_0x5a75('0x5b')](_0x5850d9),_0x1a7bf9=_0x5850d9[_0x5a75('0x40')](_0x5a75('0x36')),_0x16b9dc=_0x4dcfa0[_0x5a75('0x85')](_0x5850d9);for(const _0x25b9ce of this['_tableSuggestions']){const _0x4353d1=_0x25b9ce[_0x5a75('0x69')],_0x57cb89=_0x4353d1[_0x5a75('0x6c')](_0x5a75('0x30')),_0x2568a1=_0x4353d1[_0x5a75('0x19')](_0x57cb89?0xa:0x5),_0x25dbdd=_0x2568a1['toLowerCase'](),_0x300130=_0x25dbdd['substr'](0x0,0x3)+'span',_0x4bb2b6=_0x5a75('0x7c')+_0x2568a1,_0x3fca30=_0x5a75('0x81')+_0x2568a1;if(!_0x25b9ce[_0x5a75('0x7b')])continue;if(_0x1a7bf9!=_0x25b9ce[_0x5a75('0x3b')]()['start'][_0x5a75('0x40')](_0x5a75('0x36')))continue;if(_0x25b9ce[_0x5a75('0x4c')](_0x287cac))continue;const _0x9d8352=_0x5850d9[_0x5a75('0x2')](_0x300130)?_0x5850d9[_0x5a75('0x8a')](_0x300130)-0x1:0x0,_0x5ddf19=this[_0x5a75('0x52')](_0x25b9ce),_0x50b6b8=_0x5ddf19[_0x4bb2b6],_0x2bef37=_0x5ddf19[_0x3fca30];_0x50b6b8<=_0x16b9dc[_0x25dbdd]&&_0x16b9dc[_0x25dbdd]+_0x9d8352<=_0x2bef37&&(_0x25b9ce[_0x5a75('0xe')](_0x287cac),_0x31105f=!0x0);}return _0x31105f;};_0x55e9b0['model'][_0x5a75('0x57')][_0x5a75('0x4a')](_0xb1d8d1=>{let _0x1e40d8=!0x1;for(const _0x825162 of _0x55e9b0[_0x5a75('0x6')][_0x5a75('0x57')][_0x5a75('0x60')][_0x5a75('0x6a')]())if(_0x5a75('0x74')==_0x825162[_0x5a75('0x2d')]){if(_0x5a75('0x35')==_0x825162['name'])for(const _0x3a9677 of _0x825162[_0x5a75('0x29')]['nodeAfter'][_0x5a75('0x7f')]())_0x1e40d8=_0x1e40d8||_0x5d2c2a(_0x3a9677,_0xb1d8d1);else _0x5a75('0x4b')==_0x825162[_0x5a75('0x6f')]&&(_0x1e40d8=_0x1e40d8||_0x5d2c2a(_0x825162['position'][_0x5a75('0x58')],_0xb1d8d1));}return _0x1e40d8;});}[_0x5a75('0x52')](_0x4ba300){return this[_0x5a75('0x7')](_0x4ba300[_0x5a75('0x8')]()[_0x5a75('0x49')](_0x67bed6=>_0x67bed6[_0x5a75('0x84')]['nodeAfter']));}}function se(_0x36c055){return Array[_0x5a75('0x43')](new Set(_0x36c055)[_0x5a75('0xa')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47dc=['afterInit','plugins','editor','has','toggleTableCaption','requires','enableCommand','get'];(function(_0x1fbf56,_0x47dc87){const _0x403298=function(_0x223256){while(--_0x223256){_0x1fbf56['push'](_0x1fbf56['shift']());}};_0x403298(++_0x47dc87);}(_0x47dc,0xe9));const _0x4032=function(_0x1fbf56,_0x47dc87){_0x1fbf56=_0x1fbf56-0x0;let _0x403298=_0x47dc[_0x1fbf56];return _0x403298;};import{Plugin as _0x3e49f3}from'ckeditor5/src/core';import _0x3a9cbb from'./table';export default class vt extends _0x3e49f3{static get[_0x4032('0x4')](){return[_0x3a9cbb];}[_0x4032('0x7')](){const _0x415ffd=this[_0x4032('0x1')];if(!_0x415ffd[_0x4032('0x0')][_0x4032('0x2')]('TableCaptionEditing'))return;_0x415ffd[_0x4032('0x0')][_0x4032('0x6')]('TrackChangesEditing')[_0x4032('0x5')](_0x4032('0x3'));}}
|