@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230907.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 _0x3db3=['getFirstPosition','flat','numbered','_LIST_','startIndex','afterInit','selection','_getSuggestionBlocks','getAttribute','commandParams','*Format:*\x20set\x20order\x20to\x20regular','listItem','handleDescriptions','listStyle','handleListStartCommand','TrackChangesEditing','map','change','document','getSelectedBlocks','model','length','*Format:*\x20set\x20order\x20to\x20reversed','plugins','locale','forward','listType','list.properties','backward','ListUtils','reversed','parent','unshift','enableCommand','editor','_getTranslationKeyForListStyle','createPositionAt','listReversed','toUpperCase','before','getLastPosition','listStart','element','format','handleListReversedCommand','ELEMENT_','*Format:*\x20set\x20start\x20index\x20to\x20%0','_getSuggestionBlocksForListStyle','_descriptionFactory','filter','getSiblingNodes','createRange','*Change\x20to:*\x20%0','markMultiRangeBlockFormat','config','bind','getListTypeFromListStyleType','get','replace','push'];(function(_0x1db943,_0x3db3dd){const _0x57f52e=function(_0x51db32){while(--_0x51db32){_0x1db943['push'](_0x1db943['shift']());}};_0x57f52e(++_0x3db3dd);}(_0x3db3,0xe0));const _0x57f5=function(_0x1db943,_0x3db3dd){_0x1db943=_0x1db943-0x0;let _0x57f52e=_0x3db3[_0x1db943];return _0x57f52e;};import{Plugin as _0x4794f3}from'ckeditor5/src/core';import{getTranslation as _0x54cace}from'../utils/common-translations';export default class st extends _0x4794f3{[_0x57f5('0x15')](){if(!this[_0x57f5('0x32')][_0x57f5('0x27')]['has']('ListPropertiesEditing'))return;const _0x2f4c2f=this[_0x57f5('0x32')][_0x57f5('0xa')][_0x57f5('0xd')](_0x57f5('0x2b')),_0x15cc13=this[_0x57f5('0x32')][_0x57f5('0x27')][_0x57f5('0xd')](_0x57f5('0x1f'));_0x2f4c2f['styles']&&_0x15cc13[_0x57f5('0x31')](_0x57f5('0x1d'),this['handleListStyleCommand'][_0x57f5('0xb')](this)),_0x2f4c2f[_0x57f5('0x2e')]&&_0x15cc13[_0x57f5('0x31')](_0x57f5('0x35'),this[_0x57f5('0x0')][_0x57f5('0xb')](this)),_0x2f4c2f['startIndex']&&_0x15cc13['enableCommand'](_0x57f5('0x39'),this[_0x57f5('0x1e')][_0x57f5('0xb')](this)),_0x15cc13[_0x57f5('0x4')]['registerDescriptionCallback'](this['handleDescriptions'][_0x57f5('0xb')](this));}['handleListStyleCommand'](_0x58ee11,_0x41d04d={}){const _0x4818f7=this[_0x57f5('0x32')][_0x57f5('0x27')][_0x57f5('0xd')](_0x57f5('0x1f')),_0x59609c=this['_getSuggestionBlocksForListStyle']();this[_0x57f5('0x32')]['model'][_0x57f5('0x21')](()=>{_0x4818f7[_0x57f5('0x9')](_0x59609c,{'commandName':_0x57f5('0x1d'),'commandParams':[{'type':_0x41d04d['type']}],'formatGroupId':_0x57f5('0x1d')});});}[_0x57f5('0x0')](_0x48e76d,_0x4dadb6={}){const _0x26ec49=this['editor'][_0x57f5('0x27')][_0x57f5('0xd')](_0x57f5('0x1f')),_0x97233d=this['_getSuggestionBlocks'](_0x2198ec=>_0x2198ec['is'](_0x57f5('0x3a'),_0x57f5('0x1b'))&&_0x57f5('0x12')===_0x2198ec[_0x57f5('0x18')]('listType'));if(_0x97233d[_0x57f5('0x25')]<0x1)return;const _0x499d81=_0x97233d[_0x57f5('0x20')](_0x458ea4=>this[_0x57f5('0x32')]['model'][_0x57f5('0x7')](this['editor'][_0x57f5('0x24')][_0x57f5('0x34')](_0x458ea4,_0x57f5('0x37')),this[_0x57f5('0x32')][_0x57f5('0x24')][_0x57f5('0x34')](_0x458ea4,0x0)));this[_0x57f5('0x32')][_0x57f5('0x24')]['change'](()=>{_0x26ec49[_0x57f5('0x9')](_0x499d81,{'commandName':_0x57f5('0x35'),'commandParams':[{'reversed':_0x4dadb6[_0x57f5('0x2e')]}],'formatGroupId':_0x57f5('0x35')});});}[_0x57f5('0x1e')](_0x30ed83,_0x33f7bc={}){const _0x378fdd=this[_0x57f5('0x32')][_0x57f5('0x27')][_0x57f5('0xd')](_0x57f5('0x1f')),_0x5290d9=this[_0x57f5('0x17')](_0x2e8c6f=>_0x2e8c6f['is'](_0x57f5('0x3a'),_0x57f5('0x1b'))&&_0x57f5('0x12')===_0x2e8c6f[_0x57f5('0x18')](_0x57f5('0x2a')));if(_0x5290d9[_0x57f5('0x25')]<0x1)return;const _0x8df385=_0x5290d9[_0x57f5('0x20')](_0x3d2110=>this[_0x57f5('0x32')][_0x57f5('0x24')][_0x57f5('0x7')](this[_0x57f5('0x32')][_0x57f5('0x24')][_0x57f5('0x34')](_0x3d2110,_0x57f5('0x37')),this[_0x57f5('0x32')]['model'][_0x57f5('0x34')](_0x3d2110,0x0)));this[_0x57f5('0x32')]['model'][_0x57f5('0x21')](()=>{_0x378fdd['markMultiRangeBlockFormat'](_0x8df385,{'commandName':_0x57f5('0x39'),'commandParams':[{'startIndex':_0x33f7bc[_0x57f5('0x14')]}],'formatGroupId':_0x57f5('0x39')});});}[_0x57f5('0x1c')](_0xedd212){const _0x4db4e2=this[_0x57f5('0x32')][_0x57f5('0x28')],{data:_0x63f1c}=_0xedd212;if(!_0x63f1c)return;let _0x42cf12,_0x47ae5c;switch(_0x63f1c['commandName']){case _0x57f5('0x1d'):_0x42cf12=_0x57f5('0x8'),_0x47ae5c={'type':_0x57f5('0x3b'),'content':_0x54cace(_0x4db4e2,_0x42cf12,_0x54cace(_0x4db4e2,this[_0x57f5('0x33')](_0x63f1c[_0x57f5('0x19')][0x0]['type'])))};break;case _0x57f5('0x35'):_0x42cf12=_0x63f1c[_0x57f5('0x19')][0x0]['reversed']?_0x57f5('0x26'):_0x57f5('0x1a'),_0x47ae5c={'type':_0x57f5('0x3b'),'content':_0x54cace(_0x4db4e2,_0x42cf12)};break;case'listStart':_0x42cf12=_0x57f5('0x2'),_0x47ae5c={'type':_0x57f5('0x3b'),'content':_0x54cace(_0x4db4e2,_0x42cf12,_0x63f1c['commandParams'][0x0][_0x57f5('0x14')])};}return _0x47ae5c;}[_0x57f5('0x3')](){var _0x533d6c,_0x4b1474,_0x4fef9b,_0x6b274c;const _0x3b6ef5=this[_0x57f5('0x32')][_0x57f5('0x27')]['get'](_0x57f5('0x2d'));let _0x24c31f=Array['from'](this['editor'][_0x57f5('0x24')][_0x57f5('0x22')][_0x57f5('0x16')][_0x57f5('0x23')]());return(null===(_0x533d6c=_0x24c31f[0x0])||void 0x0===_0x533d6c?void 0x0:_0x533d6c['is'](_0x57f5('0x3a'),'listItem'))&&_0x24c31f[_0x57f5('0x30')](..._0x3b6ef5[_0x57f5('0x6')](this[_0x57f5('0x32')][_0x57f5('0x24')][_0x57f5('0x22')][_0x57f5('0x16')][_0x57f5('0x10')](),_0x57f5('0x2c'))),(null===(_0x4b1474=_0x24c31f[_0x24c31f[_0x57f5('0x25')]-0x1])||void 0x0===_0x4b1474?void 0x0:_0x4b1474['is']('element',_0x57f5('0x1b')))&&_0x24c31f[_0x57f5('0xf')](..._0x3b6ef5[_0x57f5('0x6')](this[_0x57f5('0x32')][_0x57f5('0x24')][_0x57f5('0x22')][_0x57f5('0x16')][_0x57f5('0x38')](),_0x57f5('0x29'))),_0x24c31f=[...new Set(_0x24c31f)],(null===(_0x6b274c=null===(_0x4fef9b=this[_0x57f5('0x32')][_0x57f5('0x24')][_0x57f5('0x22')][_0x57f5('0x16')]['getFirstPosition']())||void 0x0===_0x4fef9b?void 0x0:_0x4fef9b[_0x57f5('0x2f')])||void 0x0===_0x6b274c?void 0x0:_0x6b274c['is'](_0x57f5('0x3a'),_0x57f5('0x1b')))&&(_0x24c31f=_0x24c31f[_0x57f5('0x5')](_0x2194e1=>_0x2194e1['is']('element',_0x57f5('0x1b')))),_0x24c31f;}[_0x57f5('0x17')](_0x3d585c){const _0x176cf7=this['editor'][_0x57f5('0x27')][_0x57f5('0xd')](_0x57f5('0x2d'));let _0x45f67f=Array['from'](this[_0x57f5('0x32')]['model'][_0x57f5('0x22')]['selection'][_0x57f5('0x23')]())[_0x57f5('0x5')](_0x3d585c)[_0x57f5('0x20')](_0x2454df=>{const _0xc5dca4=this[_0x57f5('0x32')][_0x57f5('0x24')][_0x57f5('0x34')](_0x2454df,0x0);return[..._0x176cf7[_0x57f5('0x6')](_0xc5dca4,_0x57f5('0x2c')),..._0x176cf7[_0x57f5('0x6')](_0xc5dca4,'forward')];})[_0x57f5('0x11')]();return _0x45f67f=[...new Set(_0x45f67f)],_0x45f67f;}[_0x57f5('0x33')](_0x4f3f7a){return _0x57f5('0x1')+this[_0x57f5('0x32')][_0x57f5('0x27')][_0x57f5('0xd')](_0x57f5('0x2d'))[_0x57f5('0xc')](_0x4f3f7a)[_0x57f5('0x36')]()+_0x57f5('0x13')+_0x4f3f7a[_0x57f5('0x36')]()[_0x57f5('0xe')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5456=['registerElementLabel','ELEMENT_MEDIA','conversion','TrackChangesEditing','high','media','plugins','editor','get','div','downcastDispatcher','locale','createEmptyElement','enableCommand','MediaEmbedEditing','showSuggestionHighlights','afterInit','options','dataDowncast'];(function(_0x38d2c0,_0x5456f0){const _0x3e9652=function(_0x18809b){while(--_0x18809b){_0x38d2c0['push'](_0x38d2c0['shift']());}};_0x3e9652(++_0x5456f0);}(_0x5456,0x152));const _0x3e96=function(_0x38d2c0,_0x5456f0){_0x38d2c0=_0x38d2c0-0x0;let _0x3e9652=_0x5456[_0x38d2c0];return _0x3e9652;};import{Plugin as _0x589f22}from'ckeditor5/src/core';import{getTranslation as _0xf347b4}from'../utils/common-translations';export default class ot extends _0x589f22{[_0x3e96('0x1')](){const _0x3a8702=this[_0x3e96('0xb')];if(!_0x3a8702[_0x3e96('0xa')]['has'](_0x3e96('0x12')))return;const _0x4766fb=_0x3a8702[_0x3e96('0xa')][_0x3e96('0xc')](_0x3e96('0x7')),_0x1eda3e=_0x3a8702[_0x3e96('0xf')];_0x4766fb[_0x3e96('0x11')]('mediaEmbed'),_0x4766fb['_descriptionFactory'][_0x3e96('0x4')](_0x3e96('0x9'),_0x28e457=>_0xf347b4(_0x1eda3e,_0x3e96('0x5'),_0x28e457)),_0x3a8702[_0x3e96('0x6')]['for'](_0x3e96('0x3'))['elementToElement']({'model':_0x3e96('0x9'),'view':(_0x56b3ab,{writer:_0xaaaf72,options:_0x41777a})=>{if(_0x41777a[_0x3e96('0x0')])return _0xaaaf72[_0x3e96('0x10')](_0x3e96('0xd'));},'converterPriority':_0x3e96('0x8')}),_0x3a8702['data'][_0x3e96('0xe')]['on']('attribute:url:media',(_0xf5acdb,_0x142514,_0x503475)=>{_0x503475[_0x3e96('0x2')][_0x3e96('0x0')]&&_0xf5acdb['stop']();},{'priority':_0x3e96('0x8')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30d3=['editor','get','plugins','has','afterInit','enableCommand','MentionEditing','mention'];(function(_0x28a3ef,_0x30d3cf){const _0x4b5047=function(_0x35b830){while(--_0x35b830){_0x28a3ef['push'](_0x28a3ef['shift']());}};_0x4b5047(++_0x30d3cf);}(_0x30d3,0x10e));const _0x4b50=function(_0x28a3ef,_0x30d3cf){_0x28a3ef=_0x28a3ef-0x0;let _0x4b5047=_0x30d3[_0x28a3ef];return _0x4b5047;};import{Plugin as _0x2f1ca2}from'ckeditor5/src/core';export default class rt extends _0x2f1ca2{[_0x4b50('0x6')](){const _0xabe67b=this[_0x4b50('0x2')];_0xabe67b[_0x4b50('0x4')][_0x4b50('0x5')](_0x4b50('0x0'))&&_0xabe67b[_0x4b50('0x4')][_0x4b50('0x3')]('TrackChangesEditing')[_0x4b50('0x7')](_0x4b50('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26bd=['_descriptionFactory','get','afterInit','TrackChangesEditing','plugins','pageBreak','ELEMENT_PAGE_BREAK','editor'];(function(_0x39098c,_0x26bdf8){const _0x98baff=function(_0x25b67c){while(--_0x25b67c){_0x39098c['push'](_0x39098c['shift']());}};_0x98baff(++_0x26bdf8);}(_0x26bd,0x153));const _0x98ba=function(_0x39098c,_0x26bdf8){_0x39098c=_0x39098c-0x0;let _0x98baff=_0x26bd[_0x39098c];return _0x98baff;};import{Plugin as _0x30a5f8}from'ckeditor5/src/core';import{getTranslation as _0x3cace4}from'../utils/common-translations';export default class at extends _0x30a5f8{[_0x98ba('0x7')](){const _0x522de7=this[_0x98ba('0x4')];if(!_0x522de7['plugins']['has']('PageBreakEditing'))return;_0x522de7[_0x98ba('0x1')][_0x98ba('0x6')](_0x98ba('0x0'))['enableCommand'](_0x98ba('0x2'));const _0x51d43f=_0x522de7[_0x98ba('0x1')]['get'](_0x98ba('0x0')),_0x2cc455=_0x522de7['locale'];_0x51d43f[_0x98ba('0x5')]['registerElementLabel'](_0x98ba('0x2'),_0xfa9e0e=>_0x3cace4(_0x2cc455,_0x98ba('0x3'),_0xfa9e0e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2957=['markerName','*Insert:*\x20%0','change','selection','from','isLimit','commandName','end','get','document','highest','insertion','markerRange','nodeAfter','checkChild','span','writer','ELEMENT_PARAGRAPH','getFirstRange','format','consumable','plugins','schema','type','*Change\x20to:*\x20%0','registerElementLabel','isBlock','getSelectedBlocks','editing','parent','data','createUIElement','TrackChangesEditing','blockName','enableCommand','paragraph','insertParagraph','registerDescriptionCallback','isTouching','_descriptionFactory','options','Paragraph','name','isObject','toViewPosition','model','afterInit','editor','addMarker:suggestion:insertion','includes','mapper','consume','$text'];(function(_0x954395,_0x29571b){const _0x32bb0d=function(_0x14c4f8){while(--_0x14c4f8){_0x954395['push'](_0x954395['shift']());}};_0x32bb0d(++_0x29571b);}(_0x2957,0x8b));const _0x32bb=function(_0x954395,_0x29571b){_0x954395=_0x954395-0x0;let _0x32bb0d=_0x2957[_0x954395];return _0x32bb0d;};import{Plugin as _0xafaac4}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0xecd476}from'./utils';import{getTranslation as _0x4f9e0e}from'../utils/common-translations';export default class ct extends _0xafaac4{[_0x32bb('0xd')](){const _0x1ce29d=this[_0x32bb('0xe')];if(!_0x1ce29d['plugins']['has'](_0x32bb('0x8')))return;const _0x4cc549=_0x1ce29d['locale'],_0x5dd1de=_0x1ce29d[_0x32bb('0x29')][_0x32bb('0x1c')](_0x32bb('0x34'));_0x5dd1de[_0x32bb('0x6')][_0x32bb('0x2d')]('paragraph',_0x584d57=>_0x4f9e0e(_0x4cc549,_0x32bb('0x25'),_0x584d57)),_0x5dd1de[_0x32bb('0x1')]('paragraph',(_0x2e1dd0,_0x23c384={})=>{const _0x5c78ee=_0x1ce29d['model'][_0x32bb('0x1d')],_0xfc349=_0x23c384[_0x32bb('0x17')]||_0x5c78ee[_0x32bb('0x17')],_0x4fa660=Array[_0x32bb('0x18')](_0xfc349[_0x32bb('0x2f')]())['filter'](_0x266e1e=>function(_0x43af08,_0x2421ee){return _0x2421ee['checkChild'](_0x43af08[_0x32bb('0x31')],_0x32bb('0x2'))&&!_0x2421ee[_0x32bb('0xa')](_0x43af08)&&_0x32bb('0x2')!=_0x43af08[_0x32bb('0x9')];}(_0x266e1e,this[_0x32bb('0xe')][_0x32bb('0xc')][_0x32bb('0x2a')]));_0x1ce29d[_0x32bb('0xc')][_0x32bb('0x16')](()=>{for(const _0x42dd16 of _0x4fa660)_0x5dd1de['markBlockFormat'](_0x42dd16,{'commandName':_0x32bb('0x2'),'commandParams':[],'formatGroupId':_0x32bb('0x0')},_0xecd476(_0x42dd16));});}),_0x5dd1de[_0x32bb('0x6')]['registerDescriptionCallback'](_0x491ffe=>{const {data:_0x33a25b}=_0x491ffe;if(_0x33a25b&&_0x32bb('0x2')==_0x33a25b[_0x32bb('0x1a')])return{'type':_0x32bb('0x27'),'content':_0x4f9e0e(_0x4cc549,_0x32bb('0x2c'),_0x4f9e0e(_0x4cc549,_0x32bb('0x25')))};}),_0x5dd1de[_0x32bb('0x1')](_0x32bb('0x3')),_0x1ce29d[_0x32bb('0x30')]['downcastDispatcher']['on'](_0x32bb('0xf'),ar(_0x1ce29d),{'priority':_0x32bb('0x1e')}),_0x1ce29d[_0x32bb('0x32')]['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ce981,_0x2811f7,_0x4003e5)=>{_0x4003e5[_0x32bb('0x7')]['showSuggestionHighlights']&&ar(_0x1ce29d,{'showActiveMarker':!0x1})(_0x3ce981,_0x2811f7,_0x4003e5);},{'priority':_0x32bb('0x1e')});const _0x4dee95=_0x5dd1de['_descriptionFactory'];_0x4dee95[_0x32bb('0x4')](_0x2d5689=>{if('insertion'!==_0x2d5689[_0x32bb('0x2b')])return;const {start:_0x38ad15,end:_0x5a7cc6}=_0x2d5689[_0x32bb('0x26')]();if(!_0x38ad15[_0x32bb('0x5')](_0x5a7cc6)||!_0x38ad15[_0x32bb('0x21')])return;const _0xa45045=_0x1ce29d[_0x32bb('0xc')][_0x32bb('0x2a')],_0x5bcbe7=_0x38ad15['nodeAfter'];return _0xa45045[_0x32bb('0x2e')](_0x5bcbe7)&&!_0xa45045[_0x32bb('0x19')](_0x5bcbe7)&&_0xa45045['checkChild'](_0x5bcbe7,'$text')?{'type':_0x32bb('0x1f'),'content':_0x4f9e0e(_0x4cc549,_0x32bb('0x15'),_0x4dee95['getItemLabel'](_0x5bcbe7,0x1))}:void 0x0;});}}function ar(_0x31651e,{showActiveMarker:_0x502fd9=!0x0}={}){return(_0x196897,_0x34d07c,_0x57b2f9)=>{const _0x5f16af=_0x31651e[_0x32bb('0x29')][_0x32bb('0x1c')](_0x32bb('0x34')),_0x888482=_0x34d07c['markerRange']['start'],_0x537743=_0x34d07c[_0x32bb('0x20')][_0x32bb('0x1b')],_0x2a5f90=_0x31651e[_0x32bb('0xc')]['schema'];if(!_0x888482[_0x32bb('0x5')](_0x537743)||!_0x888482[_0x32bb('0x21')])return;const _0x13601f=_0x888482[_0x32bb('0x21')];if(_0x2a5f90[_0x32bb('0x2e')](_0x13601f)&&!_0x2a5f90['isLimit'](_0x13601f)&&_0x2a5f90[_0x32bb('0x22')](_0x13601f,_0x32bb('0x13'))){if(!_0x57b2f9[_0x32bb('0x28')][_0x32bb('0x12')](_0x34d07c[_0x32bb('0x20')],_0x196897['name']))return;const _0x1ba355=_0x57b2f9[_0x32bb('0x24')][_0x32bb('0x33')](_0x32bb('0x23'),{'class':'ck-suggestion-marker-split'}),_0x5735a6=_0x57b2f9[_0x32bb('0x11')][_0x32bb('0xb')](_0x537743);_0x502fd9&&_0x5f16af['activeMarkers'][_0x32bb('0x10')](_0x34d07c[_0x32bb('0x14')])&&_0x57b2f9[_0x32bb('0x24')]['addClass']('ck-suggestion-marker--active',_0x1ba355),_0x57b2f9[_0x32bb('0x24')]['insert'](_0x5735a6,_0x1ba355),_0x57b2f9['mapper']['bindElementToMarker'](_0x1ba355,_0x34d07c[_0x32bb('0x14')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1968=['isFormatting','getAttributes','schema','RemoveFormatEditing','has','selection','locale','change','document','isCollapsed','get','registerDescriptionCallback','TrackChangesEditing','afterInit','_descriptionFactory','model','createRangeOn','enableCommand','markInlineFormat','editor','getItems','format','removeFormat','*Remove\x20all\x20formatting*'];(function(_0x3c0642,_0x1968ba){const _0x59a843=function(_0x237bf5){while(--_0x237bf5){_0x3c0642['push'](_0x3c0642['shift']());}};_0x59a843(++_0x1968ba);}(_0x1968,0x160));const _0x59a8=function(_0x3c0642,_0x1968ba){_0x3c0642=_0x3c0642-0x0;let _0x59a843=_0x1968[_0x3c0642];return _0x59a843;};import{Plugin as _0x4a4257}from'ckeditor5/src/core';import{getTranslation as _0x3e49fd}from'../utils/common-translations';export default class ht extends _0x4a4257{[_0x59a8('0x15')](){const _0x291073=this[_0x59a8('0x3')];if(!_0x291073['plugins'][_0x59a8('0xc')](_0x59a8('0xb')))return;const _0x29d2d3=_0x291073['plugins'][_0x59a8('0x12')](_0x59a8('0x14'));_0x29d2d3[_0x59a8('0x1')](_0x59a8('0x6'),_0x36b46d=>{const _0x241776=_0x291073['model'][_0x59a8('0x10')][_0x59a8('0xd')];_0x241776[_0x59a8('0x11')]?_0x36b46d():_0x291073[_0x59a8('0x17')][_0x59a8('0xf')](()=>{const _0x304e59=Array['from'](_0x241776['getRanges']());for(const _0x130b87 of _0x304e59)for(const _0x536b7d of _0x130b87[_0x59a8('0x4')]())mo(_0x536b7d,_0x291073[_0x59a8('0x17')][_0x59a8('0xa')])&&_0x29d2d3[_0x59a8('0x2')](_0x291073[_0x59a8('0x17')][_0x59a8('0x0')](_0x536b7d),{'commandName':_0x59a8('0x6'),'commandParams':[]});});}),_0x29d2d3[_0x59a8('0x16')][_0x59a8('0x13')](_0x1e414e=>{const {data:_0xa707fc}=_0x1e414e;if(_0xa707fc&&_0x59a8('0x6')==_0xa707fc['commandName'])return{'type':_0x59a8('0x5'),'content':_0x3e49fd(_0x291073[_0x59a8('0xe')],_0x59a8('0x7'))};});}}function mo(_0x17e0b2,_0x1dc135){for(const [_0x17a59c]of _0x17e0b2[_0x59a8('0x9')]()){const _0x52723d=_0x1dc135['getAttributeProperties'](_0x17a59c);if(_0x52723d&&_0x52723d[_0x59a8('0x8')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x534a=['goToNextRestrictedEditingException','get','afterInit','RestrictedEditingModeEditing','acceptAllSuggestions','enableCommand','TrackChangesEditing','discardSuggestion','discardSelectedSuggestions','acceptSuggestion','editor','plugins','acceptSelectedSuggestions','has'];(function(_0xf08b16,_0x534a96){const _0x4d4ed7=function(_0x1c9cba){while(--_0x1c9cba){_0xf08b16['push'](_0xf08b16['shift']());}};_0x4d4ed7(++_0x534a96);}(_0x534a,0xa3));const _0x4d4e=function(_0xf08b16,_0x534a96){_0xf08b16=_0xf08b16-0x0;let _0x4d4ed7=_0x534a[_0xf08b16];return _0x4d4ed7;};import{Plugin as _0x36f6ce}from'ckeditor5/src/core';export default class ut extends _0x36f6ce{[_0x4d4e('0x7')](){const _0x2f7a1f=this[_0x4d4e('0x1')];if(!_0x2f7a1f['plugins'][_0x4d4e('0x4')](_0x4d4e('0x8')))return;const _0x14ccd8=_0x2f7a1f[_0x4d4e('0x2')][_0x4d4e('0x6')](_0x4d4e('0xb'));_0x14ccd8[_0x4d4e('0xa')]('goToPreviousRestrictedEditingException'),_0x14ccd8[_0x4d4e('0xa')](_0x4d4e('0x5'));const _0xce1eb8=_0x2f7a1f[_0x4d4e('0x2')][_0x4d4e('0x6')]('RestrictedEditingModeEditing');_0xce1eb8['enableCommand']('trackChanges'),_0xce1eb8['enableCommand'](_0x4d4e('0x0')),_0xce1eb8[_0x4d4e('0xa')](_0x4d4e('0xc')),_0xce1eb8[_0x4d4e('0xa')](_0x4d4e('0x9')),_0xce1eb8[_0x4d4e('0xa')]('discardAllSuggestions'),_0xce1eb8['enableCommand'](_0x4d4e('0x3')),_0xce1eb8[_0x4d4e('0xa')](_0x4d4e('0xd'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x64fd=['addMarker:suggestion','plugins','model','activeMarkers','includes','data','get','merge','editor','writer','shiftEnter','element','test','name','markerName','getItems','requires','consumable','addMarker:suggestion:insertion','ELEMENT_LINE_BREAK','createUIElement','addClass','enableCommand','mapper','span','init','markerRange','editing','locale','showSuggestionHighlights','_descriptionFactory','registerElementLabel','options','TrackChangesEditing','high','softBreak'];(function(_0x5cc090,_0x64fd06){const _0x379b7a=function(_0x293188){while(--_0x293188){_0x5cc090['push'](_0x5cc090['shift']());}};_0x379b7a(++_0x64fd06);}(_0x64fd,0x1ea));const _0x379b=function(_0x5cc090,_0x64fd06){_0x5cc090=_0x5cc090-0x0;let _0x379b7a=_0x64fd[_0x5cc090];return _0x379b7a;};import{Plugin as _0x13da68}from'ckeditor5/src/core';import{ShiftEnter as _0x1a64ba}from'ckeditor5/src/enter';import{getTranslation as _0x89ae6b}from'../utils/common-translations';export default class ft extends _0x13da68{static get[_0x379b('0x1e')](){return[_0x1a64ba];}[_0x379b('0x3')](){const _0x313816=this[_0x379b('0x16')],_0x15e6b1=_0x313816[_0x379b('0xf')][_0x379b('0x14')](_0x379b('0xb'));_0x15e6b1[_0x379b('0x0')](_0x379b('0x18')),_0x313816[_0x379b('0x5')]['downcastDispatcher']['on'](_0x379b('0x20'),re(_0x313816),{'priority':_0x379b('0xc')}),_0x313816['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',re(_0x313816),{'priority':_0x379b('0xc')}),_0x313816[_0x379b('0x13')]['downcastDispatcher']['on'](_0x379b('0xe'),(_0x3eb5d5,_0x2420da,_0xa74279)=>{_0xa74279[_0x379b('0xa')][_0x379b('0x7')]&&re(_0x313816,{'showActiveMarker':!0x1})(_0x3eb5d5,_0x2420da,_0xa74279);}),_0x15e6b1[_0x379b('0x8')][_0x379b('0x9')](_0x379b('0xd'),_0x4b0224=>_0x89ae6b(_0x313816[_0x379b('0x6')],_0x379b('0x21'),_0x4b0224));}}function re(_0x3f00cd,{showActiveMarker:_0x2495f7=!0x0}={}){return(_0x54ab57,_0x2e986d,_0x506c7e)=>{const _0x3af283=_0x3f00cd[_0x379b('0xf')][_0x379b('0x14')](_0x379b('0xb'));if(!_0x506c7e[_0x379b('0x1f')][_0x379b('0x1a')](_0x2e986d[_0x379b('0x4')],_0x54ab57[_0x379b('0x1b')]))return;const _0x2faac8=_0x3f00cd[_0x379b('0x10')];for(const _0xdb636 of _0x2e986d['markerRange'][_0x379b('0x1d')]()){if(!_0xdb636['is'](_0x379b('0x19'),'softBreak'))continue;const _0x4751f2='deletion'==_0x2e986d[_0x379b('0x1c')]['split'](':')[0x1]?_0x379b('0x15'):'split',_0x2b7b29=_0x506c7e[_0x379b('0x17')][_0x379b('0x22')](_0x379b('0x2'),{'class':'ck-suggestion-marker-'+_0x4751f2}),_0x540cb2=_0x506c7e[_0x379b('0x1')]['toViewPosition'](_0x2faac8['createPositionBefore'](_0xdb636));_0x2495f7&&_0x3af283[_0x379b('0x11')][_0x379b('0x12')](_0x2e986d[_0x379b('0x1c')])&&_0x506c7e[_0x379b('0x17')][_0x379b('0x23')]('ck-suggestion-marker--active',_0x2b7b29),_0x506c7e[_0x379b('0x17')]['insert'](_0x540cb2,_0x2b7b29),_0x506c7e[_0x379b('0x1')]['bindElementToMarker'](_0x2b7b29,_0x2e986d[_0x379b('0x1c')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3543=['has','commandParams','FORMAT_RESTRICTED_DISABLED','locale','isCollapsed','selection','model','forceValue','FORMAT_RESTRICTED_ENABLED','get','afterInit','document','TrackChangesEditing','value','_descriptionFactory','editor','from','markInlineFormat','restrictedEditingException','enableCommand','format','StandardEditingModeEditing'];(function(_0x44879e,_0x35438f){const _0x78b658=function(_0xfb8d99){while(--_0xfb8d99){_0x44879e['push'](_0x44879e['shift']());}};_0x78b658(++_0x35438f);}(_0x3543,0x184));const _0x78b6=function(_0x44879e,_0x35438f){_0x44879e=_0x44879e-0x0;let _0x78b658=_0x3543[_0x44879e];return _0x78b658;};import{Plugin as _0x1cb254}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x49f962}from'./utils';import{getTranslation as _0x5011a0}from'../utils/common-translations';export default class lt extends _0x1cb254{[_0x78b6('0x12')](){const _0x442624=this[_0x78b6('0x1')],_0x445344=_0x442624[_0x78b6('0xe')],_0x499a58=_0x442624[_0x78b6('0xb')];if(!_0x442624['plugins'][_0x78b6('0x8')](_0x78b6('0x7')))return;const _0x953de9=_0x442624['plugins'][_0x78b6('0x11')](_0x78b6('0x14')),_0x51f35d=_0x78b6('0x4'),_0x21697c=_0x442624['commands']['get'](_0x51f35d);_0x953de9[_0x78b6('0x5')](_0x51f35d,(_0x465dba,_0x3d50d1={})=>{const _0x23ef40=_0x445344[_0x78b6('0x13')][_0x78b6('0xd')];if(_0x23ef40[_0x78b6('0xc')])return void _0x465dba(_0x3d50d1);const _0x5bc4a1=void 0x0!==_0x3d50d1[_0x78b6('0xf')]?_0x3d50d1[_0x78b6('0xf')]:!_0x21697c[_0x78b6('0x15')];_0x445344['change'](()=>{const _0x453746=Array[_0x78b6('0x2')](_0x23ef40['getRanges']());for(const _0x516065 of _0x453746){const _0x39a52a=_0x5bc4a1?[_0x516065]:_0x49f962(_0x51f35d,_0x516065,_0x445344);for(const _0x50b142 of _0x39a52a)_0x953de9[_0x78b6('0x3')](_0x50b142,{'commandName':_0x51f35d,'commandParams':[{'forceValue':_0x5bc4a1}]});}});}),_0x953de9[_0x78b6('0x0')]['registerDescriptionCallback'](_0x4f0047=>{const {data:_0x225a59}=_0x4f0047;if(_0x225a59&&_0x225a59['commandName']==_0x51f35d)return _0x225a59[_0x78b6('0x9')][0x0][_0x78b6('0xf')]?{'type':'format','content':_0x5011a0(_0x499a58,_0x78b6('0x10'))}:{'type':_0x78b6('0x6'),'content':_0x5011a0(_0x499a58,_0x78b6('0xa'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a1e=['styleName','commands','includes','block','style','has','markInlineFormat','document','locale','push','getDefinitionsForView','isCollapsed','getAttribute','modelElements','enableCommand','createRangeOn','name','from','classes','normalizeConfig','inline','editor','enabledStyles','find','commandName','format','toLowerCase','markBlockFormat','_descriptionFactory','model','config','registerDescriptionCallback','getAncestors','style:','StyleUtils','change','element','get','commandParams','_getRangesWithClasses','style.definitions','TrackChangesEditing','getItems','_getStyleDefinition','isBlock','plugins','*Format:*\x20%0','getRanges'];(function(_0x3e9ee3,_0x4a1e74){const _0x1d3a14=function(_0x905b94){while(--_0x905b94){_0x3e9ee3['push'](_0x3e9ee3['shift']());}};_0x1d3a14(++_0x4a1e74);}(_0x4a1e,0x16b));const _0x1d3a=function(_0x3e9ee3,_0x4a1e74){_0x3e9ee3=_0x3e9ee3-0x0;let _0x1d3a14=_0x4a1e[_0x3e9ee3];return _0x1d3a14;};import{Plugin as _0x67c27c}from'ckeditor5/src/core';import{getTranslation as _0xf53c98}from'../utils/common-translations';export default class gt extends _0x67c27c{['afterInit'](){const _0x788447=this[_0x1d3a('0x2a')];if(!_0x788447[_0x1d3a('0x12')][_0x1d3a('0x1a')]('Style'))return;const _0x2d87ab=_0x788447[_0x1d3a('0x16')][_0x1d3a('0xa')]('style'),_0x52edb7=_0x788447['plugins'][_0x1d3a('0xa')](_0x1d3a('0xe')),_0x241119=_0x788447[_0x1d3a('0x1d')],_0x51c2c9=_0x788447['plugins'][_0x1d3a('0xa')]('DataSchema'),_0x3f3b39=_0x788447['plugins'][_0x1d3a('0xa')](_0x1d3a('0x7'))[_0x1d3a('0x28')](_0x51c2c9,_0x788447[_0x1d3a('0x3')][_0x1d3a('0xa')](_0x1d3a('0xd')));_0x52edb7[_0x1d3a('0x23')](_0x1d3a('0x19'),(_0x3bb106,{styleName:_0x10a8db})=>{const _0x1e12e5=_0x788447[_0x1d3a('0x2')][_0x1d3a('0x1c')]['selection'],_0x4a85cc=this[_0x1d3a('0x10')](_0x10a8db,_0x3f3b39);if(!_0x4a85cc)return;if(!_0x2d87ab[_0x1d3a('0x2b')][_0x1d3a('0x17')](_0x10a8db))return;if(_0x1e12e5[_0x1d3a('0x20')]&&!_0x4a85cc[_0x1d3a('0x11')])return void _0x3bb106({'styleName':_0x10a8db});const _0x2f69f4=!_0x2d87ab['value'][_0x1d3a('0x17')](_0x4a85cc[_0x1d3a('0x25')]);if(_0x4a85cc['isBlock']){const _0x185923=function(_0x358bdd,_0x35d321){const _0x431123=new Set();for(const _0x5b7ffc of _0x358bdd){const _0x540814=_0x5b7ffc[_0x1d3a('0x5')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x43db09 of _0x540814)if(_0x35d321['includes'](_0x43db09[_0x1d3a('0x25')])){_0x431123['add'](_0x43db09);break;}}return _0x431123;}(_0x1e12e5['getSelectedBlocks'](),_0x4a85cc[_0x1d3a('0x22')]);_0x788447[_0x1d3a('0x2')][_0x1d3a('0x8')](()=>{for(const _0x35112c of _0x185923)_0x52edb7[_0x1d3a('0x0')](_0x35112c,{'commandName':_0x1d3a('0x19'),'commandParams':[{'styleName':_0x10a8db,'forceValue':_0x2f69f4}],'formatGroupId':_0x1d3a('0x6')+_0x10a8db});});}else{let _0x29c642=Array[_0x1d3a('0x26')](_0x1e12e5[_0x1d3a('0x14')]());if(!_0x2f69f4){const _0x183368=Array[_0x1d3a('0x26')](_0x51c2c9[_0x1d3a('0x1f')](_0x4a85cc[_0x1d3a('0x9')],!0x1))[0x0]['model'],_0x3c8e9d=[];for(const _0x5b06e7 of _0x29c642){const _0x2a6c54=this[_0x1d3a('0xc')](_0x788447[_0x1d3a('0x2')],_0x5b06e7,_0x4a85cc[_0x1d3a('0x27')],_0x183368);_0x3c8e9d[_0x1d3a('0x1e')](..._0x2a6c54);}_0x29c642=_0x3c8e9d;}_0x788447[_0x1d3a('0x2')]['change'](()=>{for(const _0x4445f8 of _0x29c642)_0x52edb7[_0x1d3a('0x1b')](_0x4445f8,{'commandName':_0x1d3a('0x19'),'commandParams':[{'styleName':_0x10a8db,'forceValue':_0x2f69f4}]});});}}),_0x52edb7[_0x1d3a('0x1')][_0x1d3a('0x4')](_0x2325c4=>{const {data:_0x2450ae}=_0x2325c4;if(_0x2450ae&&'style'===_0x2450ae[_0x1d3a('0x2d')])return _0x2450ae[_0x1d3a('0xb')][0x0]['forceValue']?{'type':_0x1d3a('0x2e'),'content':_0xf53c98(_0x241119,_0x1d3a('0x13'),_0x2450ae['commandParams'][0x0]['styleName'][_0x1d3a('0x2f')]())}:{'type':'format','content':_0xf53c98(_0x241119,'*Remove\x20format:*\x20%0',_0x2450ae[_0x1d3a('0xb')][0x0][_0x1d3a('0x15')][_0x1d3a('0x2f')]())};});}[_0x1d3a('0x10')](_0x393a9d,_0x2a614f){let _0x351711=_0x2a614f[_0x1d3a('0x18')][_0x1d3a('0x2c')](_0x5051f4=>_0x5051f4['name']===_0x393a9d);return _0x351711||(_0x351711=_0x2a614f[_0x1d3a('0x29')][_0x1d3a('0x2c')](_0x5c4463=>_0x5c4463[_0x1d3a('0x25')]===_0x393a9d)),_0x351711;}['_getRangesWithClasses'](_0x3a36fa,_0x32ab57,_0x45dd92,_0x1af051){const _0x2f142b=[];for(const _0x4404ab of _0x32ab57[_0x1d3a('0xf')]()){const _0x5c51d2=_0x4404ab[_0x1d3a('0x21')](_0x1af051);_0x5c51d2&&(_0x45dd92['every'](_0x1f8231=>_0x5c51d2[_0x1d3a('0x27')][_0x1d3a('0x17')](_0x1f8231))&&_0x2f142b['push'](_0x3a36fa[_0x1d3a('0x24')](_0x4404ab)));}return _0x2f142b;}}
|
|
@@ -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 _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')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3766=['requires','TrackChangesEditing','TableCaptionEditing','plugins','enableCommand','get','toggleTableCaption'];(function(_0x40c639,_0x37663a){const _0x1d5fb5=function(_0x3419ab){while(--_0x3419ab){_0x40c639['push'](_0x40c639['shift']());}};_0x1d5fb5(++_0x37663a);}(_0x3766,0x174));const _0x1d5f=function(_0x40c639,_0x37663a){_0x40c639=_0x40c639-0x0;let _0x1d5fb5=_0x3766[_0x40c639];return _0x1d5fb5;};import{Plugin as _0x2b499c}from'ckeditor5/src/core';import _0xfc104 from'./table';export default class vt extends _0x2b499c{static get[_0x1d5f('0x6')](){return[_0xfc104];}['afterInit'](){const _0x47ade8=this['editor'];if(!_0x47ade8[_0x1d5f('0x2')]['has'](_0x1d5f('0x1')))return;_0x47ade8['plugins'][_0x1d5f('0x4')](_0x1d5f('0x0'))[_0x1d5f('0x3')](_0x1d5f('0x5'));}}
|