@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230906.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 _0x38e7=['classes','startsWith','accept','tableColumn','tableRow','registerDescriptionCallback','markMultiRangeDeletion','selectTableColumn','model','setSelection','_suggestionFactory','min','TrackChangesEditing','insertTableRowBelow','deletion','enableCommand','left','registerCustomCallback','getChangedMarkers','minRow','filter','mapper','data','MIN_SAFE_INTEGER','insertion','colspan','getRanges','getCellLocation','max','getColumnIndexes','rootName','options','enqueueChange','editor','getChanges','includes','execute','batch','*Remove:*\x20%0','nodeBefore','ELEMENT_TABLE_ROW_WITH_TEXT','last','_descriptionFactory','isInContent','addClass','_tablePostFixingSubtypes','registerPostFixer','change','markMultiRangeInsertion','change:data','oldRange','removeTableRow','element','first','suggestion','minColumn','some','commands','getSuggestion','tablePaste','type','locale','hasAttribute','_splitMarkerName','toLowerCase','findAncestor','root','MAX_SAFE_INTEGER','isTouching','isEqual','*Insert:*\x20%0','cell','fromRange','position','join','getSelectionAffectedTableCells','ELEMENT_TABLE_ROW','registerElementLabel','ELEMENT_TABLE_COLUMN_WITH_TEXT','order','subType','ELEMENT_TABLE_COLUMN','rowspan','insertTable','maxRow','start','insertTableColumnRight','isArray','_getSuggestionCoords','createPositionAt','push','table','_tableSuggestions','getChildren','getAttribute','map','addRange','createRangeOn','every','getRowIndexes','end','_acceptFormatSuggestionCallbackFactory','has','add','insertTableRowAbove','isIntersectingWithRange','TableUtils','length','selection','$graveyard','from','plugins','get','name','discard','selectTableRow','createTableWalker','removeClass','nodeAfter','differ','above','insert','tableCell','getItems','ELEMENT_TABLE_WITH_TEXT','$textProxy','item','low','showSuggestionHighlights','substr','document','refresh'];(function(_0x33aa70,_0x38e77e){const _0x325e5c=function(_0x47dcc1){while(--_0x47dcc1){_0x33aa70['push'](_0x33aa70['shift']());}};_0x325e5c(++_0x38e77e);}(_0x38e7,0x13d));const _0x325e=function(_0x33aa70,_0x38e77e){_0x33aa70=_0x33aa70-0x0;let _0x325e5c=_0x38e7[_0x33aa70];return _0x325e5c;};import{Plugin as _0x3cdb2a}from'ckeditor5/src/core';import{LiveRange as _0x20bb9f}from'ckeditor5/src/engine';import{setHighlightHandling as _0x4b4de6}from'ckeditor5/src/widget';import{getTranslation as _0x4d1e3d}from'../utils/common-translations';export default class mt extends _0x3cdb2a{constructor(_0x120cf9){super(_0x120cf9),this[_0x325e('0x7c')]=[_0x325e('0x53'),_0x325e('0x52')],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x208c89=this[_0x325e('0x70')],_0x2af9f5=_0x208c89[_0x325e('0x57')][_0x325e('0x4d')][_0x325e('0x37')];if(!_0x208c89[_0x325e('0x3a')][_0x325e('0x31')]('TableEditing'))return;const _0x3c5df9=_0x208c89[_0x325e('0x8')],_0x28b61d=_0x208c89['plugins'][_0x325e('0x3b')](_0x325e('0x5b')),_0x40a8b0=_0x208c89[_0x325e('0x3a')]['get']('TableUtils');_0x28b61d[_0x325e('0x79')][_0x325e('0x18')](_0x325e('0x26'),_0x30d928=>_0x4d1e3d(_0x3c5df9,'ELEMENT_TABLE',_0x30d928)),this['_setupColumnsRowsFixing'](),_0x28b61d[_0x325e('0x5e')](_0x325e('0x1e')),_0x28b61d[_0x325e('0x5e')](_0x325e('0x3e')),_0x28b61d['enableCommand'](_0x325e('0x56'));for(const _0x3b6301 of[_0x325e('0x33'),_0x325e('0x5c')]){const _0x1b27ea=_0x208c89[_0x325e('0x4')][_0x325e('0x3b')](_0x3b6301);_0x28b61d[_0x325e('0x5e')](_0x3b6301,_0x51c90c=>{_0x208c89[_0x325e('0x57')]['change'](_0x2d2b1d=>{_0x51c90c();const _0x153c49=_0x325e('0x43')===_0x1b27ea[_0x325e('0x1a')],_0x416274=_0x40a8b0[_0x325e('0x16')](_0x2af9f5),_0x8a73c3=_0x40a8b0[_0x325e('0x2e')](_0x416274),_0x363473=_0x153c49?_0x8a73c3[_0x325e('0x0')]-0x1:_0x8a73c3[_0x325e('0x78')]+0x1,_0x39a1ef=_0x416274[0x0][_0x325e('0xc')](_0x325e('0x26')),_0x478ff7=_0x40a8b0['createTableWalker'](_0x39a1ef,{'startRow':_0x363473,'endRow':_0x363473}),_0x17a17b=Array[_0x325e('0x39')](_0x478ff7)[_0x325e('0x2a')](_0x66f80=>_0x2d2b1d['createRangeOn'](_0x66f80['cell']));_0x28b61d[_0x325e('0x7f')](_0x17a17b,_0x325e('0x53'));});});}for(const _0x29a6a0 of['insertTableColumnLeft',_0x325e('0x21')]){const _0x23daf6=_0x208c89[_0x325e('0x4')][_0x325e('0x3b')](_0x29a6a0);_0x28b61d[_0x325e('0x5e')](_0x29a6a0,_0x3235b4=>{_0x208c89[_0x325e('0x57')][_0x325e('0x7e')](_0xcb68c6=>{_0x3235b4();const _0x42de4c=_0x325e('0x5f')===_0x23daf6[_0x325e('0x1a')],_0x5edd90=_0x40a8b0[_0x325e('0x16')](_0x2af9f5),_0x453d3f=_0x40a8b0[_0x325e('0x6c')](_0x5edd90),_0x2a5ae4=_0x42de4c?_0x453d3f[_0x325e('0x0')]-0x1:_0x453d3f[_0x325e('0x78')]+0x1,_0x3b1a36=_0x5edd90[0x0][_0x325e('0xc')]('table'),_0x43e55a=_0x40a8b0[_0x325e('0x3f')](_0x3b1a36,{'startRow':0x0,'column':_0x2a5ae4,'includeAllSlots':!0x1}),_0x4ab948=Array[_0x325e('0x39')](_0x43e55a)['map'](_0x678ac6=>_0xcb68c6[_0x325e('0x2c')](_0x678ac6[_0x325e('0x12')]));_0x28b61d[_0x325e('0x7f')](_0x4ab948,_0x325e('0x52'));});});}for(const _0x4ba283 of[_0x325e('0x82'),'removeTableColumn']){const _0x3eb5d5=_0x4ba283[_0x325e('0x4c')](0xb),_0x489306=_0x3eb5d5[_0x325e('0xb')](),_0x84e50f=_0x489306['substr'](0x0,0x3)+'span',_0x3c38fc=_0x325e('0x26')+_0x3eb5d5,_0x529d1f=_0x325e('0x5a')+_0x3eb5d5,_0x4baa8c=_0x325e('0x6b')+_0x3eb5d5;_0x28b61d['enableCommand'](_0x4ba283,()=>{_0x208c89['model'][_0x325e('0x7e')](_0x4e6b73=>{const _0x43d668=_0x40a8b0[_0x325e('0x16')](_0x2af9f5),_0x49d22b=_0x43d668[0x0][_0x325e('0xc')](_0x325e('0x26'));let _0x2af1bf;if('removeTableRow'==_0x4ba283){const _0xd9b6c8=_0x40a8b0[_0x325e('0x2e')](_0x43d668);_0x2af1bf={'startRow':_0xd9b6c8[_0x325e('0x0')],'endRow':_0xd9b6c8['last'],'includeAllSlots':!0x0};}else{const _0x4c0f2c=_0x40a8b0[_0x325e('0x6c')](_0x43d668);_0x2af1bf={'startColumn':_0x4c0f2c['first'],'endColumn':_0x4c0f2c[_0x325e('0x78')],'includeAllSlots':!0x0};}const _0x4ac3f5=_0x40a8b0['createTableWalker'](_0x49d22b,_0x2af1bf),_0x418aa6=Array[_0x325e('0x39')](_0x4ac3f5)[_0x325e('0x2a')](({cell:_0x10217a})=>_0x10217a),_0x27f6aa=se(_0x418aa6['filter'](_0x5beb89=>_0x5beb89[_0x325e('0x9')](_0x84e50f))),_0x10007b=se(_0x418aa6[_0x325e('0x63')](_0x4801ea=>!_0x4801ea[_0x325e('0x9')](_0x84e50f)))[_0x325e('0x2a')](_0x5afc8b=>_0x4e6b73[_0x325e('0x2c')](_0x5afc8b)),_0xe8373c=_0x28b61d[_0x325e('0x55')](_0x10007b,_0x3c38fc);if(_0xe8373c&&('tableRow'==_0xe8373c[_0x325e('0x1b')]||_0x325e('0x52')==_0xe8373c[_0x325e('0x1b')])){const _0x5cde4a=this[_0x325e('0x23')](_0xe8373c);for(const _0x5224cc of _0x27f6aa){const _0x165644=_0x4e6b73[_0x325e('0x2c')](_0x5224cc),_0x46d35c=_0x40a8b0[_0x325e('0x6a')](_0x5224cc),_0x2c3d30=_0x5224cc[_0x325e('0x29')](_0x84e50f)-0x1,_0x4e9909=_0x5cde4a[_0x529d1f],_0x56d47c=_0x5cde4a[_0x4baa8c];_0x4e9909<=_0x46d35c[_0x489306]&&_0x46d35c[_0x489306]+_0x2c3d30<=_0x56d47c&&_0xe8373c[_0x325e('0x2b')](_0x165644);}}});});}function _0x35df47(_0x27b96d){const _0x3e9f94=Array[_0x325e('0x39')](_0x2af9f5['getRanges']())[_0x325e('0x2a')](_0x1d00f1=>_0x20bb9f['fromRange'](_0x1d00f1));_0x208c89['model'][_0x325e('0x7e')](_0x5475eb=>{const _0xce3f4a=_0x5475eb[_0x325e('0x74')];_0x27b96d=_0x27b96d[_0x325e('0x63')](_0x112f0f=>_0x325e('0x38')!=_0x112f0f[_0x325e('0xd')]['rootName']),_0x5475eb[_0x325e('0x58')](_0x27b96d),_0x208c89[_0x325e('0x4')][_0x325e('0x3b')](_0x325e('0x82'))[_0x325e('0x4e')](),_0x208c89[_0x325e('0x73')](_0x325e('0x82'),{'forceDefaultExecution':!0x0}),_0x208c89['model'][_0x325e('0x6f')](()=>{_0x208c89[_0x325e('0x57')][_0x325e('0x6f')](_0xce3f4a,_0x830728=>{const _0x5f068b=_0x3e9f94[_0x325e('0x63')](_0x41dab5=>_0x325e('0x38')!=_0x41dab5[_0x325e('0xd')][_0x325e('0x6d')]);_0x5f068b[_0x325e('0x36')]>0x0&&_0x830728[_0x325e('0x58')](_0x5f068b);for(const _0x182749 of _0x3e9f94)_0x182749['detach']();});});});}function _0x42817a(_0x56226d){_0x208c89[_0x325e('0x57')][_0x325e('0x7e')](_0x3521fc=>{const _0xda3364=Array[_0x325e('0x39')](_0x2af9f5[_0x325e('0x69')]())['map'](_0x4e0cc0=>_0x20bb9f[_0x325e('0x13')](_0x4e0cc0)),_0x3fd0fc=[];for(const _0x3ccc2d of _0x56226d)for(const _0x386cfd of _0x3ccc2d[_0x325e('0x46')]({'shallow':!0x0}))_0x3fd0fc[_0x325e('0x25')](_0x386cfd);for(const _0x423da9 of _0x3fd0fc)_0x325e('0x38')!=_0x423da9[_0x325e('0xd')][_0x325e('0x6d')]&&(_0x3521fc['setSelection'](_0x3521fc[_0x325e('0x24')](_0x423da9,0x0)),_0x208c89['commands'][_0x325e('0x3b')]('removeTableColumn')[_0x325e('0x4e')](),_0x208c89[_0x325e('0x73')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xfc2c20=_0xda3364['filter'](_0xf3bbe6=>'$graveyard'!=_0xf3bbe6[_0x325e('0xd')]['rootName']);_0xfc2c20[_0x325e('0x36')]>0x0&&_0x3521fc['setSelection'](_0xfc2c20);for(const _0x578c47 of _0xda3364)_0x578c47['detach']();});}function _0x35646d(_0x30e90d,_0x30169c){return _0x30169c[_0x325e('0x2d')](_0x10ec76=>_0x30e90d[_0x325e('0x3')](_0x7fb489=>_0x7fb489[_0x325e('0x2f')][_0x325e('0x10')](_0x10ec76[_0x325e('0x20')])||_0x10ec76['end'][_0x325e('0x10')](_0x7fb489[_0x325e('0x20')])));}function _0x3274cd(_0x213836,_0x1fa3f9){return _0x213836[_0x325e('0x3')](_0x44acfd=>_0x1fa3f9[_0x325e('0x3')](_0x4545aa=>_0x44acfd['end'][_0x325e('0xf')](_0x4545aa['start'])));}_0x208c89[_0x325e('0x65')]['downcastDispatcher']['on']('addMarker:suggestion',(_0x95badb,_0x2e7fc7,_0x2d3967)=>{if(!_0x2d3967[_0x325e('0x6e')][_0x325e('0x4b')])return;const _0x1480d9=_0x2e7fc7[_0x325e('0x49')];if(!_0x1480d9)return;const _0x15b558=_0x2d3967[_0x325e('0x64')]['toViewElement'](_0x1480d9);function _0x2fb8af(_0x594599){return Array[_0x325e('0x22')](_0x594599)?_0x594599:[_0x594599];}_0x15b558&&_0x325e('0x45')===_0x1480d9[_0x325e('0x3c')]&&_0x4b4de6(_0x15b558,_0x2d3967['writer'],(_0x167958,_0x2da984,_0x1a56b8)=>_0x1a56b8[_0x325e('0x7b')](_0x2fb8af(_0x2da984['classes']),_0x167958),(_0x3cde20,_0x28eb2e,_0x9a4ccf)=>_0x9a4ccf[_0x325e('0x40')](_0x2fb8af(_0x28eb2e[_0x325e('0x4f')]),_0x3cde20));},{'priority':'highest'}),_0x28b61d['_descriptionFactory']['registerDescriptionCallback'](_0x548216=>{if(_0x325e('0x67')!=_0x548216['type']&&_0x325e('0x5d')!=_0x548216['type'])return;const _0x523c28=_0x548216['getContainedElement']();if(null!=_0x523c28&&_0x523c28['is'](_0x325e('0x83'),_0x325e('0x26'))){if(_0x325e('0x67')==_0x548216[_0x325e('0x7')]){const _0x482f29=_0x548216[_0x325e('0x46')]()['filter'](_0x7a0128=>_0x7a0128['is'](_0x325e('0x48')))[_0x325e('0x2a')](_0x1ae87f=>_0x1ae87f[_0x325e('0x65')]);if(_0x482f29[_0x325e('0x36')])return{'type':_0x325e('0x67'),'content':_0x4d1e3d(_0x3c5df9,'*Insert:*\x20%0',_0x4d1e3d(_0x3c5df9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x482f29['join']('\x20')+'\x22'))};}if(_0x325e('0x5d')==_0x548216[_0x325e('0x7')]){const _0x4b2637=_0x548216[_0x325e('0x46')]()['filter'](_0x2a4c48=>_0x2a4c48['is'](_0x325e('0x48')))[_0x325e('0x2a')](_0x9acea=>_0x9acea[_0x325e('0x65')]);if(_0x4b2637[_0x325e('0x36')])return{'type':_0x325e('0x5d'),'content':_0x4d1e3d(_0x3c5df9,'*Remove:*\x20%0',_0x4d1e3d(_0x3c5df9,_0x325e('0x47'),'\x22'+_0x4b2637[_0x325e('0x15')]('\x20')+'\x22'))};}}}),_0x28b61d[_0x325e('0x79')][_0x325e('0x54')](_0x39721e=>{if(_0x325e('0x53')==_0x39721e[_0x325e('0x1b')]){const _0x2fc97c=_0x39721e['getItems']()[_0x325e('0x63')](_0x45f74f=>_0x45f74f['is']('$textProxy'))[_0x325e('0x2a')](_0x357c84=>_0x357c84[_0x325e('0x65')]),_0x3a9867=this[_0x325e('0x23')](_0x39721e),_0x27881a=_0x3a9867[_0x325e('0x1f')]-_0x3a9867[_0x325e('0x62')]+0x1;if(_0x325e('0x67')==_0x39721e[_0x325e('0x7')])return _0x2fc97c[_0x325e('0x36')]?{'type':_0x325e('0x67'),'content':_0x4d1e3d(_0x3c5df9,'*Insert:*\x20%0',_0x4d1e3d(_0x3c5df9,_0x325e('0x77'),[_0x27881a,'\x22'+_0x2fc97c['join']('\x20')+'\x22']))}:{'type':_0x325e('0x67'),'content':_0x4d1e3d(_0x3c5df9,_0x325e('0x11'),_0x4d1e3d(_0x3c5df9,_0x325e('0x17'),_0x27881a))};if('deletion'==_0x39721e[_0x325e('0x7')])return _0x2fc97c[_0x325e('0x36')]?{'type':_0x325e('0x5d'),'content':_0x4d1e3d(_0x3c5df9,_0x325e('0x75'),_0x4d1e3d(_0x3c5df9,_0x325e('0x77'),[_0x27881a,'\x22'+_0x2fc97c['join']('\x20')+'\x22']))}:{'type':_0x325e('0x5d'),'content':_0x4d1e3d(_0x3c5df9,_0x325e('0x75'),_0x4d1e3d(_0x3c5df9,'ELEMENT_TABLE_ROW',_0x27881a))};}if(_0x325e('0x52')==_0x39721e['subType']){const _0xfcf1c8=_0x39721e[_0x325e('0x46')]()['filter'](_0x3025c0=>_0x3025c0['is'](_0x325e('0x48')))[_0x325e('0x2a')](_0x30e0a9=>_0x30e0a9[_0x325e('0x65')]),_0x517ec8=this[_0x325e('0x23')](_0x39721e),_0x2b4853=_0x517ec8['maxColumn']-_0x517ec8[_0x325e('0x2')]+0x1;if(_0x325e('0x67')==_0x39721e[_0x325e('0x7')])return _0xfcf1c8[_0x325e('0x36')]?{'type':_0x325e('0x67'),'content':_0x4d1e3d(_0x3c5df9,_0x325e('0x11'),_0x4d1e3d(_0x3c5df9,_0x325e('0x19'),[_0x2b4853,'\x22'+_0xfcf1c8[_0x325e('0x15')]('\x20')+'\x22']))}:{'type':_0x325e('0x67'),'content':_0x4d1e3d(_0x3c5df9,_0x325e('0x11'),_0x4d1e3d(_0x3c5df9,_0x325e('0x1c'),_0x2b4853))};if('deletion'==_0x39721e[_0x325e('0x7')])return _0xfcf1c8[_0x325e('0x36')]?{'type':_0x325e('0x5d'),'content':_0x4d1e3d(_0x3c5df9,_0x325e('0x75'),_0x4d1e3d(_0x3c5df9,_0x325e('0x19'),[_0x2b4853,'\x22'+_0xfcf1c8[_0x325e('0x15')]('\x20')+'\x22']))}:{'type':_0x325e('0x5d'),'content':_0x4d1e3d(_0x3c5df9,_0x325e('0x75'),_0x4d1e3d(_0x3c5df9,_0x325e('0x1c'),_0x2b4853))};}}),_0x28b61d[_0x325e('0x59')][_0x325e('0x60')](_0x325e('0x67'),_0x325e('0x53'),_0x325e('0x3d'),_0x35df47),_0x28b61d[_0x325e('0x59')]['registerCustomCallback'](_0x325e('0x5d'),_0x325e('0x53'),_0x325e('0x51'),_0x35df47),_0x28b61d[_0x325e('0x59')][_0x325e('0x60')]('insertion',_0x325e('0x52'),'discard',_0x42817a),_0x28b61d[_0x325e('0x59')][_0x325e('0x60')](_0x325e('0x5d'),_0x325e('0x52'),'accept',_0x42817a),_0x28b61d[_0x325e('0x59')]['registerCustomCallback'](_0x325e('0x67'),'tableColumn','join',_0x35646d),_0x28b61d[_0x325e('0x59')][_0x325e('0x60')](_0x325e('0x5d'),_0x325e('0x52'),_0x325e('0x15'),_0x35646d),_0x28b61d[_0x325e('0x59')][_0x325e('0x60')]('insertion',_0x325e('0x53'),_0x325e('0x15'),_0x3274cd),_0x28b61d['_suggestionFactory']['registerCustomCallback'](_0x325e('0x5d'),_0x325e('0x53'),'join',_0x3274cd);}[_0x325e('0x30')](){const _0xae460=this[_0x325e('0x70')],_0x492d65=_0xae460['model'][_0x325e('0x4d')][_0x325e('0x37')];return(_0x411bd0,_0x456c9f)=>{_0xae460['model'][_0x325e('0x7e')](_0x302b93=>{const {commandName:_0x32f031,commandParams:_0x15b1a2}=_0x456c9f;let _0x3a3a5b=_0x411bd0[0x0][_0x325e('0x2f')][_0x325e('0x76')];_0x15b1a2&&_0x15b1a2[0x0]&&!0x1===_0x15b1a2[0x0]['forceValue']&&(_0x3a3a5b=_0x411bd0[0x0][_0x325e('0x20')][_0x325e('0x41')]);const _0x14bb63=_0x302b93['createRangeIn'](_0x3a3a5b);if('$graveyard'==_0x14bb63[_0x325e('0xd')][_0x325e('0x6d')])return;const _0x4638d4=Array['from'](_0x492d65[_0x325e('0x69')]())['map'](_0x1f29a8=>_0x20bb9f[_0x325e('0x13')](_0x1f29a8));_0x302b93['setSelection'](_0x14bb63),_0xae460[_0x325e('0x4')][_0x325e('0x3b')](_0x32f031)['refresh'](),_0x15b1a2[_0x325e('0x25')]({'forceDefaultExecution':!0x0}),_0xae460[_0x325e('0x73')](_0x32f031,..._0x15b1a2);const _0x53be5a=_0x4638d4['filter'](_0x3104bd=>'$graveyard'!=_0x3104bd[_0x325e('0xd')]['rootName']);_0x53be5a[_0x325e('0x36')]>0x0&&_0x302b93[_0x325e('0x58')](_0x53be5a);for(const _0x41137b of _0x4638d4)_0x41137b['detach']();});};}['_getCoordsForCells'](_0x13c734){const _0x3fd086=this[_0x325e('0x70')][_0x325e('0x3a')][_0x325e('0x3b')](_0x325e('0x35'));let _0x2b094a=Number['MAX_SAFE_INTEGER'],_0x61fc2d=Number[_0x325e('0x66')],_0x23994e=Number[_0x325e('0xe')],_0x1b46a=Number[_0x325e('0x66')];for(const _0xfb4c53 of _0x13c734){if(_0x325e('0x38')==_0xfb4c53[_0x325e('0xd')][_0x325e('0x6d')])continue;const {row:_0x1d25d7,column:_0x2be288}=_0x3fd086['getCellLocation'](_0xfb4c53),_0x451384=_0xfb4c53[_0x325e('0x9')]('rowspan')?_0xfb4c53['getAttribute'](_0x325e('0x1d'))-0x1:0x0,_0x53888b=_0xfb4c53['hasAttribute'](_0x325e('0x68'))?_0xfb4c53[_0x325e('0x29')](_0x325e('0x68'))-0x1:0x0;_0x2b094a=_0x1d25d7<_0x2b094a?_0x1d25d7:_0x2b094a,_0x61fc2d=_0x1d25d7+_0x451384>_0x61fc2d?_0x1d25d7+_0x451384:_0x61fc2d,_0x23994e=_0x2be288<_0x23994e?_0x2be288:_0x23994e,_0x1b46a=_0x2be288+_0x53888b>_0x1b46a?_0x2be288+_0x53888b:_0x1b46a;}return{'minRow':_0x2b094a,'maxRow':_0x61fc2d,'minColumn':_0x23994e,'maxColumn':_0x1b46a};}['_setupColumnsRowsFixing'](){const _0x302002=this[_0x325e('0x70')],_0x5795c0=_0x302002[_0x325e('0x3a')][_0x325e('0x3b')](_0x325e('0x5b')),_0x479d1d=_0x302002['plugins']['get'](_0x325e('0x35'));_0x302002['model'][_0x325e('0x4d')]['on'](_0x325e('0x80'),()=>{const _0x534a04=Array['from'](_0x302002[_0x325e('0x57')][_0x325e('0x4d')][_0x325e('0x42')][_0x325e('0x61')]());for(const {name:_0x55b0c3,data:_0x4ab5a1}of _0x534a04){const {group:_0x6016d2,id:_0x3a9ed7,subType:_0x1e1500}=_0x5795c0[_0x325e('0xa')](_0x55b0c3);if(_0x325e('0x1')!=_0x6016d2)continue;if(null!=_0x4ab5a1[_0x325e('0x81')])continue;const _0x150bda=_0x5795c0[_0x325e('0x5')](_0x3a9ed7);this[_0x325e('0x7c')][_0x325e('0x72')](_0x1e1500)&&this[_0x325e('0x27')][_0x325e('0x32')](_0x150bda);}},{'priority':_0x325e('0x4a')});const _0x212c7b=(_0x1d0008,_0x17d7a7)=>{let _0x432088=!0x1;const _0x2b6077=_0x17d7a7[_0x325e('0x2c')](_0x1d0008),_0x8c4e63=_0x1d0008[_0x325e('0xc')](_0x325e('0x26')),_0x169e00=_0x479d1d[_0x325e('0x6a')](_0x1d0008);for(const _0x38990b of this[_0x325e('0x27')]){const _0x132b28=_0x38990b['subType'],_0x77dba5=_0x132b28[_0x325e('0x50')](_0x325e('0x6')),_0x33772a=_0x132b28[_0x325e('0x4c')](_0x77dba5?0xa:0x5),_0xc94f5f=_0x33772a[_0x325e('0xb')](),_0x3cb435=_0xc94f5f['substr'](0x0,0x3)+'span',_0x59133a=_0x325e('0x5a')+_0x33772a,_0x13ff5a=_0x325e('0x6b')+_0x33772a;if(!_0x38990b[_0x325e('0x7a')])continue;if(_0x8c4e63!=_0x38990b['getFirstRange']()[_0x325e('0x20')]['findAncestor'](_0x325e('0x26')))continue;if(_0x38990b[_0x325e('0x34')](_0x2b6077))continue;const _0x212765=_0x1d0008[_0x325e('0x9')](_0x3cb435)?_0x1d0008[_0x325e('0x29')](_0x3cb435)-0x1:0x0,_0x12ada2=this['_getSuggestionCoords'](_0x38990b),_0x1070f7=_0x12ada2[_0x59133a],_0x58c892=_0x12ada2[_0x13ff5a];_0x1070f7<=_0x169e00[_0xc94f5f]&&_0x169e00[_0xc94f5f]+_0x212765<=_0x58c892&&(_0x38990b[_0x325e('0x2b')](_0x2b6077),_0x432088=!0x0);}return _0x432088;};_0x302002[_0x325e('0x57')]['document'][_0x325e('0x7d')](_0x5d7b0b=>{let _0x27ff72=!0x1;for(const _0x581d86 of _0x302002[_0x325e('0x57')][_0x325e('0x4d')]['differ'][_0x325e('0x71')]())if(_0x325e('0x44')==_0x581d86['type']){if(_0x325e('0x53')==_0x581d86[_0x325e('0x3c')])for(const _0x502eeb of _0x581d86['position'][_0x325e('0x41')][_0x325e('0x28')]())_0x27ff72=_0x27ff72||_0x212c7b(_0x502eeb,_0x5d7b0b);else _0x325e('0x45')==_0x581d86[_0x325e('0x3c')]&&(_0x27ff72=_0x27ff72||_0x212c7b(_0x581d86[_0x325e('0x14')][_0x325e('0x41')],_0x5d7b0b));}return _0x27ff72;});}[_0x325e('0x23')](_0x294fbe){return this['_getCoordsForCells'](_0x294fbe[_0x325e('0x69')]()[_0x325e('0x2a')](_0x2ae70e=>_0x2ae70e[_0x325e('0x20')][_0x325e('0x41')]));}}function se(_0x1eb388){return Array['from'](new Set(_0x1eb388)['values']());}
|
|
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'));}}
|