@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230903.0 → 0.0.0-nightly-20230905.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 _0x3c63=['afterInit','filter','model','format','backward','parent','listType','createPositionAt','bind','getAttribute','document','getLastPosition','before','change','getSiblingNodes','getFirstPosition','listStart','plugins','ELEMENT_','*Format:*\x20set\x20order\x20to\x20reversed','handleDescriptions','getListTypeFromListStyleType','ListUtils','element','forward','handleListReversedCommand','config','push','editor','list.properties','unshift','enableCommand','toUpperCase','length','TrackChangesEditing','_getSuggestionBlocks','commandName','handleListStartCommand','replace','ListPropertiesEditing','listItem','get','_descriptionFactory','markMultiRangeBlockFormat','*Format:*\x20set\x20order\x20to\x20regular','reversed','has','map','handleListStyleCommand','listStyle','styles','createRange','_LIST_','listReversed','_getSuggestionBlocksForListStyle','getSelectedBlocks','_getTranslationKeyForListStyle','from','startIndex','commandParams','selection'];(function(_0x49b1c9,_0x3c637c){const _0x4a938d=function(_0x3ec763){while(--_0x3ec763){_0x49b1c9['push'](_0x49b1c9['shift']());}};_0x4a938d(++_0x3c637c);}(_0x3c63,0x199));const _0x4a93=function(_0x49b1c9,_0x3c637c){_0x49b1c9=_0x49b1c9-0x0;let _0x4a938d=_0x3c63[_0x49b1c9];return _0x4a938d;};import{Plugin as _0x1ad081}from'ckeditor5/src/core';import{getTranslation as _0x51b123}from'../utils/common-translations';export default class st extends _0x1ad081{[_0x4a93('0x12')](){if(!this['editor'][_0x4a93('0x23')][_0x4a93('0x3')](_0x4a93('0x39')))return;const _0xa4b000=this['editor'][_0x4a93('0x2c')][_0x4a93('0x3b')](_0x4a93('0x2f')),_0x5b02d=this[_0x4a93('0x2e')][_0x4a93('0x23')][_0x4a93('0x3b')]('TrackChangesEditing');_0xa4b000[_0x4a93('0x7')]&&_0x5b02d[_0x4a93('0x31')](_0x4a93('0x6'),this[_0x4a93('0x5')][_0x4a93('0x1a')](this)),_0xa4b000[_0x4a93('0x2')]&&_0x5b02d[_0x4a93('0x31')](_0x4a93('0xa'),this['handleListReversedCommand'][_0x4a93('0x1a')](this)),_0xa4b000[_0x4a93('0xf')]&&_0x5b02d[_0x4a93('0x31')]('listStart',this[_0x4a93('0x37')][_0x4a93('0x1a')](this)),_0x5b02d[_0x4a93('0x3c')]['registerDescriptionCallback'](this[_0x4a93('0x26')][_0x4a93('0x1a')](this));}['handleListStyleCommand'](_0x1cd5c2,_0x2c4fd8={}){const _0x114fac=this[_0x4a93('0x2e')]['plugins'][_0x4a93('0x3b')](_0x4a93('0x34')),_0xcfa463=this['_getSuggestionBlocksForListStyle']();this[_0x4a93('0x2e')][_0x4a93('0x14')][_0x4a93('0x1f')](()=>{_0x114fac[_0x4a93('0x0')](_0xcfa463,{'commandName':_0x4a93('0x6'),'commandParams':[{'type':_0x2c4fd8['type']}],'formatGroupId':_0x4a93('0x6')});});}[_0x4a93('0x2b')](_0x3e2659,_0x383084={}){const _0x24606f=this[_0x4a93('0x2e')][_0x4a93('0x23')][_0x4a93('0x3b')](_0x4a93('0x34')),_0x4b87f6=this['_getSuggestionBlocks'](_0x761660=>_0x761660['is'](_0x4a93('0x29'),_0x4a93('0x3a'))&&'numbered'===_0x761660['getAttribute']('listType'));if(_0x4b87f6['length']<0x1)return;const _0x4e4114=_0x4b87f6[_0x4a93('0x4')](_0x40be0a=>this[_0x4a93('0x2e')]['model'][_0x4a93('0x8')](this[_0x4a93('0x2e')][_0x4a93('0x14')][_0x4a93('0x19')](_0x40be0a,_0x4a93('0x1e')),this[_0x4a93('0x2e')]['model'][_0x4a93('0x19')](_0x40be0a,0x0)));this[_0x4a93('0x2e')][_0x4a93('0x14')]['change'](()=>{_0x24606f[_0x4a93('0x0')](_0x4e4114,{'commandName':_0x4a93('0xa'),'commandParams':[{'reversed':_0x383084[_0x4a93('0x2')]}],'formatGroupId':'listReversed'});});}[_0x4a93('0x37')](_0x536008,_0x3415e1={}){const _0x4e0f7f=this['editor'][_0x4a93('0x23')][_0x4a93('0x3b')](_0x4a93('0x34')),_0xaf8e1e=this[_0x4a93('0x35')](_0x682e89=>_0x682e89['is']('element',_0x4a93('0x3a'))&&'numbered'===_0x682e89[_0x4a93('0x1b')](_0x4a93('0x18')));if(_0xaf8e1e[_0x4a93('0x33')]<0x1)return;const _0x28bff2=_0xaf8e1e[_0x4a93('0x4')](_0x47404e=>this[_0x4a93('0x2e')][_0x4a93('0x14')][_0x4a93('0x8')](this[_0x4a93('0x2e')][_0x4a93('0x14')][_0x4a93('0x19')](_0x47404e,_0x4a93('0x1e')),this[_0x4a93('0x2e')][_0x4a93('0x14')][_0x4a93('0x19')](_0x47404e,0x0)));this[_0x4a93('0x2e')]['model'][_0x4a93('0x1f')](()=>{_0x4e0f7f['markMultiRangeBlockFormat'](_0x28bff2,{'commandName':_0x4a93('0x22'),'commandParams':[{'startIndex':_0x3415e1[_0x4a93('0xf')]}],'formatGroupId':'listStart'});});}[_0x4a93('0x26')](_0x876940){const _0x5260c2=this[_0x4a93('0x2e')]['locale'],{data:_0xea7a9a}=_0x876940;if(!_0xea7a9a)return;let _0xf80ddf,_0x1dcc92;switch(_0xea7a9a[_0x4a93('0x36')]){case _0x4a93('0x6'):_0xf80ddf='*Change\x20to:*\x20%0',_0x1dcc92={'type':'format','content':_0x51b123(_0x5260c2,_0xf80ddf,_0x51b123(_0x5260c2,this[_0x4a93('0xd')](_0xea7a9a['commandParams'][0x0]['type'])))};break;case _0x4a93('0xa'):_0xf80ddf=_0xea7a9a['commandParams'][0x0]['reversed']?_0x4a93('0x25'):_0x4a93('0x1'),_0x1dcc92={'type':_0x4a93('0x15'),'content':_0x51b123(_0x5260c2,_0xf80ddf)};break;case'listStart':_0xf80ddf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1dcc92={'type':_0x4a93('0x15'),'content':_0x51b123(_0x5260c2,_0xf80ddf,_0xea7a9a[_0x4a93('0x10')][0x0][_0x4a93('0xf')])};}return _0x1dcc92;}[_0x4a93('0xb')](){var _0x2a385e,_0x186a60,_0x1da810,_0xb3c3ac;const _0x3c3114=this[_0x4a93('0x2e')][_0x4a93('0x23')][_0x4a93('0x3b')](_0x4a93('0x28'));let _0x1f6ec5=Array[_0x4a93('0xe')](this[_0x4a93('0x2e')][_0x4a93('0x14')]['document']['selection'][_0x4a93('0xc')]());return(null===(_0x2a385e=_0x1f6ec5[0x0])||void 0x0===_0x2a385e?void 0x0:_0x2a385e['is'](_0x4a93('0x29'),_0x4a93('0x3a')))&&_0x1f6ec5[_0x4a93('0x30')](..._0x3c3114['getSiblingNodes'](this[_0x4a93('0x2e')][_0x4a93('0x14')][_0x4a93('0x1c')][_0x4a93('0x11')][_0x4a93('0x21')](),_0x4a93('0x16'))),(null===(_0x186a60=_0x1f6ec5[_0x1f6ec5[_0x4a93('0x33')]-0x1])||void 0x0===_0x186a60?void 0x0:_0x186a60['is'](_0x4a93('0x29'),_0x4a93('0x3a')))&&_0x1f6ec5[_0x4a93('0x2d')](..._0x3c3114[_0x4a93('0x20')](this['editor'][_0x4a93('0x14')][_0x4a93('0x1c')][_0x4a93('0x11')][_0x4a93('0x1d')](),_0x4a93('0x2a'))),_0x1f6ec5=[...new Set(_0x1f6ec5)],(null===(_0xb3c3ac=null===(_0x1da810=this[_0x4a93('0x2e')][_0x4a93('0x14')][_0x4a93('0x1c')][_0x4a93('0x11')][_0x4a93('0x21')]())||void 0x0===_0x1da810?void 0x0:_0x1da810[_0x4a93('0x17')])||void 0x0===_0xb3c3ac?void 0x0:_0xb3c3ac['is'](_0x4a93('0x29'),'listItem'))&&(_0x1f6ec5=_0x1f6ec5[_0x4a93('0x13')](_0x306883=>_0x306883['is'](_0x4a93('0x29'),'listItem'))),_0x1f6ec5;}[_0x4a93('0x35')](_0x4bb3e8){const _0xf6f5c8=this[_0x4a93('0x2e')][_0x4a93('0x23')]['get'](_0x4a93('0x28'));let _0x3e14ac=Array[_0x4a93('0xe')](this[_0x4a93('0x2e')][_0x4a93('0x14')][_0x4a93('0x1c')][_0x4a93('0x11')][_0x4a93('0xc')]())[_0x4a93('0x13')](_0x4bb3e8)[_0x4a93('0x4')](_0x16f2c5=>{const _0x215d9f=this[_0x4a93('0x2e')]['model'][_0x4a93('0x19')](_0x16f2c5,0x0);return[..._0xf6f5c8[_0x4a93('0x20')](_0x215d9f,_0x4a93('0x16')),..._0xf6f5c8[_0x4a93('0x20')](_0x215d9f,_0x4a93('0x2a'))];})['flat']();return _0x3e14ac=[...new Set(_0x3e14ac)],_0x3e14ac;}[_0x4a93('0xd')](_0x425307){return _0x4a93('0x24')+this[_0x4a93('0x2e')][_0x4a93('0x23')][_0x4a93('0x3b')](_0x4a93('0x28'))[_0x4a93('0x27')](_0x425307)[_0x4a93('0x32')]()+_0x4a93('0x9')+_0x425307[_0x4a93('0x32')]()[_0x4a93('0x38')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124f=['stop','data','media','dataDowncast','attribute:url:media','TrackChangesEditing','options','downcastDispatcher','get','showSuggestionHighlights','div','afterInit','ELEMENT_MEDIA','createEmptyElement','high','mediaEmbed','conversion','_descriptionFactory','elementToElement','registerElementLabel'];(function(_0x25c2dc,_0x124f03){const _0x26cc28=function(_0x634a93){while(--_0x634a93){_0x25c2dc['push'](_0x25c2dc['shift']());}};_0x26cc28(++_0x124f03);}(_0x124f,0x102));const _0x26cc=function(_0x25c2dc,_0x124f03){_0x25c2dc=_0x25c2dc-0x0;let _0x26cc28=_0x124f[_0x25c2dc];return _0x26cc28;};import{Plugin as _0xc232b1}from'ckeditor5/src/core';import{getTranslation as _0xd7bb68}from'../utils/common-translations';export default class ot extends _0xc232b1{[_0x26cc('0xd')](){const _0x797428=this['editor'];if(!_0x797428['plugins']['has']('MediaEmbedEditing'))return;const _0x3ccde4=_0x797428['plugins'][_0x26cc('0xa')](_0x26cc('0x7')),_0x983f76=_0x797428['locale'];_0x3ccde4['enableCommand'](_0x26cc('0x11')),_0x3ccde4[_0x26cc('0x13')][_0x26cc('0x1')](_0x26cc('0x4'),_0x2ae34e=>_0xd7bb68(_0x983f76,_0x26cc('0xe'),_0x2ae34e)),_0x797428[_0x26cc('0x12')]['for'](_0x26cc('0x5'))[_0x26cc('0x0')]({'model':_0x26cc('0x4'),'view':(_0x3e0ca8,{writer:_0xaa9dfd,options:_0x39d809})=>{if(_0x39d809['showSuggestionHighlights'])return _0xaa9dfd[_0x26cc('0xf')](_0x26cc('0xc'));},'converterPriority':_0x26cc('0x10')}),_0x797428[_0x26cc('0x3')][_0x26cc('0x9')]['on'](_0x26cc('0x6'),(_0x3af998,_0x1188ac,_0x5cb4c8)=>{_0x5cb4c8[_0x26cc('0x8')][_0x26cc('0xb')]&&_0x3af998[_0x26cc('0x2')]();},{'priority':_0x26cc('0x10')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fc2=['editor','get','afterInit','plugins','mention','has','enableCommand','TrackChangesEditing'];(function(_0x2f3895,_0x3fc284){const _0x326e5f=function(_0x2d8de9){while(--_0x2d8de9){_0x2f3895['push'](_0x2f3895['shift']());}};_0x326e5f(++_0x3fc284);}(_0x3fc2,0x12a));const _0x326e=function(_0x2f3895,_0x3fc284){_0x2f3895=_0x2f3895-0x0;let _0x326e5f=_0x3fc2[_0x2f3895];return _0x326e5f;};import{Plugin as _0x2bbc79}from'ckeditor5/src/core';export default class rt extends _0x2bbc79{[_0x326e('0x0')](){const _0x212dd9=this[_0x326e('0x6')];_0x212dd9[_0x326e('0x1')][_0x326e('0x3')]('MentionEditing')&&_0x212dd9[_0x326e('0x1')][_0x326e('0x7')](_0x326e('0x5'))[_0x326e('0x4')](_0x326e('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58e6=['plugins','get','has','PageBreakEditing','_descriptionFactory','pageBreak','locale','editor','registerElementLabel'];(function(_0xfae5de,_0x58e617){const _0x2a5785=function(_0x41d180){while(--_0x41d180){_0xfae5de['push'](_0xfae5de['shift']());}};_0x2a5785(++_0x58e617);}(_0x58e6,0xa5));const _0x2a57=function(_0xfae5de,_0x58e617){_0xfae5de=_0xfae5de-0x0;let _0x2a5785=_0x58e6[_0xfae5de];return _0x2a5785;};import{Plugin as _0x321c88}from'ckeditor5/src/core';import{getTranslation as _0x261651}from'../utils/common-translations';export default class at extends _0x321c88{['afterInit'](){const _0x16faae=this[_0x2a57('0x4')];if(!_0x16faae[_0x2a57('0x6')][_0x2a57('0x8')](_0x2a57('0x0')))return;_0x16faae[_0x2a57('0x6')][_0x2a57('0x7')]('TrackChangesEditing')['enableCommand'](_0x2a57('0x2'));const _0x6da0c3=_0x16faae[_0x2a57('0x6')][_0x2a57('0x7')]('TrackChangesEditing'),_0x1d2d3f=_0x16faae[_0x2a57('0x3')];_0x6da0c3[_0x2a57('0x1')][_0x2a57('0x5')]('pageBreak',_0x20b8fb=>_0x261651(_0x1d2d3f,'ELEMENT_PAGE_BREAK',_0x20b8fb));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e37=['filter','highest','enableCommand','from','markBlockFormat','blockName','name','createUIElement','registerElementLabel','ELEMENT_PARAGRAPH','get','data','model','TrackChangesEditing','activeMarkers','insertion','markerRange','getSelectedBlocks','schema','addClass','addMarker:suggestion:insertion','editor','document','span','options','checkChild','paragraph','nodeAfter','registerDescriptionCallback','editing','isObject','locale','end','insert','parent','ck-suggestion-marker-split','consumable','ck-suggestion-marker--active','plugins','*Change\x20to:*\x20%0','writer','_descriptionFactory','selection','$text','start','Paragraph','afterInit','format','isBlock','type','isTouching','bindElementToMarker','downcastDispatcher','isLimit','showSuggestionHighlights','commandName'];(function(_0x44d2bb,_0x4e3763){const _0xf8ab78=function(_0x157628){while(--_0x157628){_0x44d2bb['push'](_0x44d2bb['shift']());}};_0xf8ab78(++_0x4e3763);}(_0x4e37,0x185));const _0xf8ab=function(_0x44d2bb,_0x4e3763){_0x44d2bb=_0x44d2bb-0x0;let _0xf8ab78=_0x4e37[_0x44d2bb];return _0xf8ab78;};import{Plugin as _0x5265b5}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x21c142}from'./utils';import{getTranslation as _0x25ac6b}from'../utils/common-translations';export default class ct extends _0x5265b5{[_0xf8ab('0x31')](){const _0xb5c77b=this[_0xf8ab('0x18')];if(!_0xb5c77b[_0xf8ab('0x29')]['has'](_0xf8ab('0x30')))return;const _0x409220=_0xb5c77b[_0xf8ab('0x22')],_0x1aac24=_0xb5c77b[_0xf8ab('0x29')]['get'](_0xf8ab('0x10'));_0x1aac24[_0xf8ab('0x2c')][_0xf8ab('0xb')](_0xf8ab('0x1d'),_0x4c29b1=>_0x25ac6b(_0x409220,_0xf8ab('0xc'),_0x4c29b1)),_0x1aac24[_0xf8ab('0x5')]('paragraph',(_0x3dd730,_0xd09729={})=>{const _0x52020f=_0xb5c77b[_0xf8ab('0xf')][_0xf8ab('0x19')],_0x38cb4e=_0xd09729[_0xf8ab('0x2d')]||_0x52020f['selection'],_0x5c7bdb=Array[_0xf8ab('0x6')](_0x38cb4e[_0xf8ab('0x14')]())[_0xf8ab('0x3')](_0xd668b6=>function(_0x5b8a9e,_0x252fa8){return _0x252fa8['checkChild'](_0x5b8a9e[_0xf8ab('0x25')],_0xf8ab('0x1d'))&&!_0x252fa8[_0xf8ab('0x21')](_0x5b8a9e)&&_0xf8ab('0x1d')!=_0x5b8a9e[_0xf8ab('0x9')];}(_0xd668b6,this['editor'][_0xf8ab('0xf')][_0xf8ab('0x15')]));_0xb5c77b['model']['change'](()=>{for(const _0x4e7919 of _0x5c7bdb)_0x1aac24[_0xf8ab('0x7')](_0x4e7919,{'commandName':_0xf8ab('0x1d'),'commandParams':[],'formatGroupId':_0xf8ab('0x8')},_0x21c142(_0x4e7919));});}),_0x1aac24[_0xf8ab('0x2c')]['registerDescriptionCallback'](_0xa809ad=>{const {data:_0x3f2360}=_0xa809ad;if(_0x3f2360&&_0xf8ab('0x1d')==_0x3f2360[_0xf8ab('0x2')])return{'type':_0xf8ab('0x32'),'content':_0x25ac6b(_0x409220,_0xf8ab('0x2a'),_0x25ac6b(_0x409220,_0xf8ab('0xc')))};}),_0x1aac24['enableCommand']('insertParagraph'),_0xb5c77b[_0xf8ab('0x20')][_0xf8ab('0x37')]['on'](_0xf8ab('0x17'),ar(_0xb5c77b),{'priority':_0xf8ab('0x4')}),_0xb5c77b[_0xf8ab('0xe')][_0xf8ab('0x37')]['on'](_0xf8ab('0x17'),(_0x1301dd,_0x11f7c4,_0x57fcc2)=>{_0x57fcc2[_0xf8ab('0x1b')][_0xf8ab('0x1')]&&ar(_0xb5c77b,{'showActiveMarker':!0x1})(_0x1301dd,_0x11f7c4,_0x57fcc2);},{'priority':_0xf8ab('0x4')});const _0x49356c=_0x1aac24[_0xf8ab('0x2c')];_0x49356c[_0xf8ab('0x1f')](_0x267f08=>{if(_0xf8ab('0x12')!==_0x267f08[_0xf8ab('0x34')])return;const {start:_0x4eaf34,end:_0x2f6194}=_0x267f08['getFirstRange']();if(!_0x4eaf34[_0xf8ab('0x35')](_0x2f6194)||!_0x4eaf34[_0xf8ab('0x1e')])return;const _0x5a72cc=_0xb5c77b[_0xf8ab('0xf')][_0xf8ab('0x15')],_0x3f04c6=_0x4eaf34[_0xf8ab('0x1e')];return _0x5a72cc[_0xf8ab('0x33')](_0x3f04c6)&&!_0x5a72cc[_0xf8ab('0x0')](_0x3f04c6)&&_0x5a72cc[_0xf8ab('0x1c')](_0x3f04c6,_0xf8ab('0x2e'))?{'type':'insertion','content':_0x25ac6b(_0x409220,'*Insert:*\x20%0',_0x49356c['getItemLabel'](_0x3f04c6,0x1))}:void 0x0;});}}function ar(_0x1a6a6a,{showActiveMarker:_0x2e3956=!0x0}={}){return(_0x245a50,_0x4c306d,_0x436db3)=>{const _0x3390f8=_0x1a6a6a[_0xf8ab('0x29')][_0xf8ab('0xd')]('TrackChangesEditing'),_0x22616a=_0x4c306d[_0xf8ab('0x13')][_0xf8ab('0x2f')],_0x474f77=_0x4c306d['markerRange'][_0xf8ab('0x23')],_0x28ab7b=_0x1a6a6a[_0xf8ab('0xf')][_0xf8ab('0x15')];if(!_0x22616a['isTouching'](_0x474f77)||!_0x22616a[_0xf8ab('0x1e')])return;const _0x1e48a1=_0x22616a[_0xf8ab('0x1e')];if(_0x28ab7b[_0xf8ab('0x33')](_0x1e48a1)&&!_0x28ab7b['isLimit'](_0x1e48a1)&&_0x28ab7b[_0xf8ab('0x1c')](_0x1e48a1,'$text')){if(!_0x436db3[_0xf8ab('0x27')]['consume'](_0x4c306d[_0xf8ab('0x13')],_0x245a50[_0xf8ab('0x9')]))return;const _0x1c07b2=_0x436db3['writer'][_0xf8ab('0xa')](_0xf8ab('0x1a'),{'class':_0xf8ab('0x26')}),_0x148761=_0x436db3['mapper']['toViewPosition'](_0x474f77);_0x2e3956&&_0x3390f8[_0xf8ab('0x11')]['includes'](_0x4c306d['markerName'])&&_0x436db3['writer'][_0xf8ab('0x16')](_0xf8ab('0x28'),_0x1c07b2),_0x436db3[_0xf8ab('0x2b')][_0xf8ab('0x24')](_0x148761,_0x1c07b2),_0x436db3['mapper'][_0xf8ab('0x36')](_0x1c07b2,_0x4c306d['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa3e2=['commandName','format','model','schema','getAttributeProperties','selection','plugins','change','*Remove\x20all\x20formatting*','markInlineFormat','RemoveFormatEditing','getItems','getRanges','locale','enableCommand','getAttributes','isFormatting','isCollapsed','registerDescriptionCallback','TrackChangesEditing','from'];(function(_0x3eae98,_0xa3e277){const _0x227158=function(_0x146dd0){while(--_0x146dd0){_0x3eae98['push'](_0x3eae98['shift']());}};_0x227158(++_0xa3e277);}(_0xa3e2,0x16b));const _0x2271=function(_0x3eae98,_0xa3e277){_0x3eae98=_0x3eae98-0x0;let _0x227158=_0xa3e2[_0x3eae98];return _0x227158;};import{Plugin as _0x598391}from'ckeditor5/src/core';import{getTranslation as _0x1694dd}from'../utils/common-translations';export default class ht extends _0x598391{['afterInit'](){const _0x10783b=this['editor'];if(!_0x10783b[_0x2271('0x0')]['has'](_0x2271('0x4')))return;const _0xb4d1e5=_0x10783b[_0x2271('0x0')]['get'](_0x2271('0xd'));_0xb4d1e5[_0x2271('0x8')]('removeFormat',_0x4ef00a=>{const _0x25b91f=_0x10783b[_0x2271('0x11')]['document'][_0x2271('0x14')];_0x25b91f[_0x2271('0xb')]?_0x4ef00a():_0x10783b[_0x2271('0x11')][_0x2271('0x1')](()=>{const _0x251dc2=Array[_0x2271('0xe')](_0x25b91f[_0x2271('0x6')]());for(const _0x2f1b11 of _0x251dc2)for(const _0x106d7a of _0x2f1b11[_0x2271('0x5')]())mo(_0x106d7a,_0x10783b[_0x2271('0x11')][_0x2271('0x12')])&&_0xb4d1e5[_0x2271('0x3')](_0x10783b[_0x2271('0x11')]['createRangeOn'](_0x106d7a),{'commandName':'removeFormat','commandParams':[]});});}),_0xb4d1e5['_descriptionFactory'][_0x2271('0xc')](_0x40a437=>{const {data:_0x42312b}=_0x40a437;if(_0x42312b&&'removeFormat'==_0x42312b[_0x2271('0xf')])return{'type':_0x2271('0x10'),'content':_0x1694dd(_0x10783b[_0x2271('0x7')],_0x2271('0x2'))};});}}function mo(_0x2c3ff0,_0x571d09){for(const [_0x109727]of _0x2c3ff0[_0x2271('0x9')]()){const _0x1123ad=_0x571d09[_0x2271('0x13')](_0x109727);if(_0x1123ad&&_0x1123ad[_0x2271('0xa')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3270=['acceptSuggestion','get','goToNextRestrictedEditingException','enableCommand','discardSuggestion','plugins','discardAllSuggestions','has','afterInit','acceptSelectedSuggestions','goToPreviousRestrictedEditingException','trackChanges'];(function(_0x1148b2,_0x32704f){const _0x1716ae=function(_0xcdc80d){while(--_0xcdc80d){_0x1148b2['push'](_0x1148b2['shift']());}};_0x1716ae(++_0x32704f);}(_0x3270,0xac));const _0x1716=function(_0x1148b2,_0x32704f){_0x1148b2=_0x1148b2-0x0;let _0x1716ae=_0x3270[_0x1148b2];return _0x1716ae;};import{Plugin as _0x4aacfc}from'ckeditor5/src/core';export default class ut extends _0x4aacfc{[_0x1716('0x4')](){const _0x4280d3=this['editor'];if(!_0x4280d3[_0x1716('0x1')][_0x1716('0x3')]('RestrictedEditingModeEditing'))return;const _0x3b4469=_0x4280d3[_0x1716('0x1')][_0x1716('0x9')]('TrackChangesEditing');_0x3b4469[_0x1716('0xb')](_0x1716('0x6')),_0x3b4469[_0x1716('0xb')](_0x1716('0xa'));const _0x4f6166=_0x4280d3['plugins']['get']('RestrictedEditingModeEditing');_0x4f6166[_0x1716('0xb')](_0x1716('0x7')),_0x4f6166[_0x1716('0xb')](_0x1716('0x8')),_0x4f6166[_0x1716('0xb')](_0x1716('0x0')),_0x4f6166[_0x1716('0xb')]('acceptAllSuggestions'),_0x4f6166['enableCommand'](_0x1716('0x2')),_0x4f6166['enableCommand'](_0x1716('0x5')),_0x4f6166[_0x1716('0xb')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20e6=['test','enableCommand','get','addMarker:suggestion','insert','writer','createUIElement','addMarker:suggestion:insertion','plugins','requires','addClass','includes','TrackChangesEditing','markerRange','markerName','element','split','span','locale','activeMarkers','ck-suggestion-marker-','model','bindElementToMarker','mapper','ck-suggestion-marker--active','_descriptionFactory','showSuggestionHighlights','high','registerElementLabel','ELEMENT_LINE_BREAK','name','shiftEnter','downcastDispatcher','addMarker:suggestion:deletion','toViewPosition','deletion','init','editing'];(function(_0xcbfa4e,_0x20e682){const _0x5ad58d=function(_0x2b477b){while(--_0x2b477b){_0xcbfa4e['push'](_0xcbfa4e['shift']());}};_0x5ad58d(++_0x20e682);}(_0x20e6,0x99));const _0x5ad5=function(_0xcbfa4e,_0x20e682){_0xcbfa4e=_0xcbfa4e-0x0;let _0x5ad58d=_0x20e6[_0xcbfa4e];return _0x5ad58d;};import{Plugin as _0x50de9d}from'ckeditor5/src/core';import{ShiftEnter as _0x315fe9}from'ckeditor5/src/enter';import{getTranslation as _0x875190}from'../utils/common-translations';export default class ft extends _0x50de9d{static get[_0x5ad5('0x8')](){return[_0x315fe9];}[_0x5ad5('0x23')](){const _0x31a9b2=this['editor'],_0x11f4f9=_0x31a9b2[_0x5ad5('0x7')][_0x5ad5('0x1')](_0x5ad5('0xb'));_0x11f4f9[_0x5ad5('0x0')](_0x5ad5('0x1e')),_0x31a9b2[_0x5ad5('0x24')][_0x5ad5('0x1f')]['on'](_0x5ad5('0x6'),re(_0x31a9b2),{'priority':_0x5ad5('0x1a')}),_0x31a9b2[_0x5ad5('0x24')][_0x5ad5('0x1f')]['on'](_0x5ad5('0x20'),re(_0x31a9b2),{'priority':_0x5ad5('0x1a')}),_0x31a9b2['data']['downcastDispatcher']['on'](_0x5ad5('0x2'),(_0x4e1c1b,_0x1555b7,_0x37dc03)=>{_0x37dc03['options'][_0x5ad5('0x19')]&&re(_0x31a9b2,{'showActiveMarker':!0x1})(_0x4e1c1b,_0x1555b7,_0x37dc03);}),_0x11f4f9[_0x5ad5('0x18')][_0x5ad5('0x1b')]('softBreak',_0xcecfd2=>_0x875190(_0x31a9b2[_0x5ad5('0x11')],_0x5ad5('0x1c'),_0xcecfd2));}}function re(_0xc67112,{showActiveMarker:_0x38f26a=!0x0}={}){return(_0xb41d22,_0x2d6bc6,_0x3c99d0)=>{const _0xfc91d7=_0xc67112[_0x5ad5('0x7')][_0x5ad5('0x1')](_0x5ad5('0xb'));if(!_0x3c99d0['consumable'][_0x5ad5('0x25')](_0x2d6bc6[_0x5ad5('0xc')],_0xb41d22[_0x5ad5('0x1d')]))return;const _0x1df4c3=_0xc67112[_0x5ad5('0x14')];for(const _0x31d3ad of _0x2d6bc6[_0x5ad5('0xc')]['getItems']()){if(!_0x31d3ad['is'](_0x5ad5('0xe'),'softBreak'))continue;const _0x4929ce=_0x5ad5('0x22')==_0x2d6bc6[_0x5ad5('0xd')][_0x5ad5('0xf')](':')[0x1]?'merge':_0x5ad5('0xf'),_0x10ad36=_0x3c99d0[_0x5ad5('0x4')][_0x5ad5('0x5')](_0x5ad5('0x10'),{'class':_0x5ad5('0x13')+_0x4929ce}),_0x4bcf95=_0x3c99d0[_0x5ad5('0x16')][_0x5ad5('0x21')](_0x1df4c3['createPositionBefore'](_0x31d3ad));_0x38f26a&&_0xfc91d7[_0x5ad5('0x12')][_0x5ad5('0xa')](_0x2d6bc6[_0x5ad5('0xd')])&&_0x3c99d0['writer'][_0x5ad5('0x9')](_0x5ad5('0x17'),_0x10ad36),_0x3c99d0['writer'][_0x5ad5('0x3')](_0x4bcf95,_0x10ad36),_0x3c99d0['mapper'][_0x5ad5('0x15')](_0x10ad36,_0x2d6bc6[_0x5ad5('0xd')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c0b=['document','registerDescriptionCallback','locale','TrackChangesEditing','afterInit','enableCommand','forceValue','getRanges','format','commandName','from','plugins','FORMAT_RESTRICTED_DISABLED','_descriptionFactory','restrictedEditingException','change','StandardEditingModeEditing','FORMAT_RESTRICTED_ENABLED','selection','commandParams','get','has'];(function(_0x4036b4,_0x1c0b2){const _0x40b610=function(_0x4c3cc3){while(--_0x4c3cc3){_0x4036b4['push'](_0x4036b4['shift']());}};_0x40b610(++_0x1c0b2);}(_0x1c0b,0x171));const _0x40b6=function(_0x4036b4,_0x1c0b2){_0x4036b4=_0x4036b4-0x0;let _0x40b610=_0x1c0b[_0x4036b4];return _0x40b610;};import{Plugin as _0x42992a}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x40645a}from'./utils';import{getTranslation as _0x4e0960}from'../utils/common-translations';export default class lt extends _0x42992a{[_0x40b6('0x9')](){const _0x1dea0e=this['editor'],_0x1042e7=_0x1dea0e['model'],_0x2d9df2=_0x1dea0e[_0x40b6('0x7')];if(!_0x1dea0e[_0x40b6('0x10')][_0x40b6('0x4')](_0x40b6('0x15')))return;const _0x40e706=_0x1dea0e[_0x40b6('0x10')]['get'](_0x40b6('0x8')),_0x3c2a57=_0x40b6('0x13'),_0x1a13cf=_0x1dea0e['commands'][_0x40b6('0x3')](_0x3c2a57);_0x40e706[_0x40b6('0xa')](_0x3c2a57,(_0x2c6c94,_0x464b40={})=>{const _0x1c41fe=_0x1042e7[_0x40b6('0x5')][_0x40b6('0x1')];if(_0x1c41fe['isCollapsed'])return void _0x2c6c94(_0x464b40);const _0x587a12=void 0x0!==_0x464b40[_0x40b6('0xb')]?_0x464b40['forceValue']:!_0x1a13cf['value'];_0x1042e7[_0x40b6('0x14')](()=>{const _0x583c42=Array[_0x40b6('0xf')](_0x1c41fe[_0x40b6('0xc')]());for(const _0x33d442 of _0x583c42){const _0x41da00=_0x587a12?[_0x33d442]:_0x40645a(_0x3c2a57,_0x33d442,_0x1042e7);for(const _0x2ab416 of _0x41da00)_0x40e706['markInlineFormat'](_0x2ab416,{'commandName':_0x3c2a57,'commandParams':[{'forceValue':_0x587a12}]});}});}),_0x40e706[_0x40b6('0x12')][_0x40b6('0x6')](_0x2e7a03=>{const {data:_0x3342a0}=_0x2e7a03;if(_0x3342a0&&_0x3342a0[_0x40b6('0xe')]==_0x3c2a57)return _0x3342a0[_0x40b6('0x2')][0x0][_0x40b6('0xb')]?{'type':_0x40b6('0xd'),'content':_0x4e0960(_0x2d9df2,_0x40b6('0x0'))}:{'type':'format','content':_0x4e0960(_0x2d9df2,_0x40b6('0x11'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b0b=['format','getDefinitionsForView','classes','*Remove\x20format:*\x20%0','change','_getStyleDefinition','has','element','TrackChangesEditing','getSelectedBlocks','config','from','_getRangesWithClasses','createRangeOn','afterInit','locale','inline','includes','style','_descriptionFactory','markInlineFormat','DataSchema','registerDescriptionCallback','get','isBlock','normalizeConfig','styleName','Style','getRanges','StyleUtils','document','modelElements','isCollapsed','block','name','value','plugins','getAttribute','push','commands','enabledStyles','commandName','commandParams','getItems','forceValue','every','find','model','toLowerCase'];(function(_0xf34172,_0x4b0b75){const _0x3570bf=function(_0x4db911){while(--_0x4db911){_0xf34172['push'](_0xf34172['shift']());}};_0x3570bf(++_0x4b0b75);}(_0x4b0b,0xa3));const _0x3570=function(_0xf34172,_0x4b0b75){_0xf34172=_0xf34172-0x0;let _0x3570bf=_0x4b0b[_0xf34172];return _0x3570bf;};import{Plugin as _0x1ae229}from'ckeditor5/src/core';import{getTranslation as _0x47338e}from'../utils/common-translations';export default class gt extends _0x1ae229{[_0x3570('0x2f')](){const _0x12b071=this['editor'];if(!_0x12b071['plugins'][_0x3570('0x27')](_0x3570('0xb')))return;const _0x5368ba=_0x12b071[_0x3570('0x17')]['get'](_0x3570('0x2')),_0x84e1b6=_0x12b071[_0x3570('0x14')][_0x3570('0x7')](_0x3570('0x29')),_0x54a5e0=_0x12b071[_0x3570('0x30')],_0x43dcf2=_0x12b071[_0x3570('0x14')][_0x3570('0x7')](_0x3570('0x5')),_0x28df01=_0x12b071[_0x3570('0x14')][_0x3570('0x7')](_0x3570('0xd'))[_0x3570('0x9')](_0x43dcf2,_0x12b071[_0x3570('0x2b')]['get']('style.definitions'));_0x84e1b6['enableCommand']('style',(_0x2cfe6f,{styleName:_0x3d0077})=>{const _0x558ed5=_0x12b071[_0x3570('0x1f')][_0x3570('0xe')]['selection'],_0x58ae2b=this['_getStyleDefinition'](_0x3d0077,_0x28df01);if(!_0x58ae2b)return;if(!_0x5368ba[_0x3570('0x18')][_0x3570('0x1')](_0x3d0077))return;if(_0x558ed5[_0x3570('0x10')]&&!_0x58ae2b[_0x3570('0x8')])return void _0x2cfe6f({'styleName':_0x3d0077});const _0x5a1211=!_0x5368ba[_0x3570('0x13')]['includes'](_0x58ae2b[_0x3570('0x12')]);if(_0x58ae2b[_0x3570('0x8')]){const _0x33d5f9=function(_0x45268b,_0x5a44be){const _0x868e3b=new Set();for(const _0xeeb693 of _0x45268b){const _0x283131=_0xeeb693['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x551a54 of _0x283131)if(_0x5a44be[_0x3570('0x1')](_0x551a54[_0x3570('0x12')])){_0x868e3b['add'](_0x551a54);break;}}return _0x868e3b;}(_0x558ed5[_0x3570('0x2a')](),_0x58ae2b[_0x3570('0xf')]);_0x12b071['model'][_0x3570('0x25')](()=>{for(const _0x5c2962 of _0x33d5f9)_0x84e1b6['markBlockFormat'](_0x5c2962,{'commandName':'style','commandParams':[{'styleName':_0x3d0077,'forceValue':_0x5a1211}],'formatGroupId':'style:'+_0x3d0077});});}else{let _0x1667ed=Array['from'](_0x558ed5[_0x3570('0xc')]());if(!_0x5a1211){const _0x6acf1a=Array[_0x3570('0x2c')](_0x43dcf2[_0x3570('0x22')](_0x58ae2b[_0x3570('0x28')],!0x1))[0x0]['model'],_0x359e80=[];for(const _0x243d1b of _0x1667ed){const _0x5d1b90=this[_0x3570('0x2d')](_0x12b071[_0x3570('0x1f')],_0x243d1b,_0x58ae2b[_0x3570('0x23')],_0x6acf1a);_0x359e80[_0x3570('0x16')](..._0x5d1b90);}_0x1667ed=_0x359e80;}_0x12b071['model']['change'](()=>{for(const _0x26e0ff of _0x1667ed)_0x84e1b6[_0x3570('0x4')](_0x26e0ff,{'commandName':_0x3570('0x2'),'commandParams':[{'styleName':_0x3d0077,'forceValue':_0x5a1211}]});});}}),_0x84e1b6[_0x3570('0x3')][_0x3570('0x6')](_0x44bc3c=>{const {data:_0x49881f}=_0x44bc3c;if(_0x49881f&&_0x3570('0x2')===_0x49881f[_0x3570('0x19')])return _0x49881f[_0x3570('0x1a')][0x0][_0x3570('0x1c')]?{'type':'format','content':_0x47338e(_0x54a5e0,'*Format:*\x20%0',_0x49881f['commandParams'][0x0][_0x3570('0xa')][_0x3570('0x20')]())}:{'type':_0x3570('0x21'),'content':_0x47338e(_0x54a5e0,_0x3570('0x24'),_0x49881f[_0x3570('0x1a')][0x0][_0x3570('0xa')]['toLowerCase']())};});}[_0x3570('0x26')](_0x5b9df7,_0x175282){let _0x5391e4=_0x175282[_0x3570('0x11')][_0x3570('0x1e')](_0x11cce2=>_0x11cce2['name']===_0x5b9df7);return _0x5391e4||(_0x5391e4=_0x175282[_0x3570('0x0')][_0x3570('0x1e')](_0x5b40de=>_0x5b40de['name']===_0x5b9df7)),_0x5391e4;}[_0x3570('0x2d')](_0x373e89,_0x2c1c21,_0x3758bf,_0x54e8cf){const _0x217f67=[];for(const _0x3b9f5b of _0x2c1c21[_0x3570('0x1b')]()){const _0x32e3a0=_0x3b9f5b[_0x3570('0x15')](_0x54e8cf);_0x32e3a0&&(_0x3758bf[_0x3570('0x1d')](_0x64211c=>_0x32e3a0[_0x3570('0x23')][_0x3570('0x1')](_0x64211c))&&_0x217f67[_0x3570('0x16')](_0x373e89[_0x3570('0x2e')](_0x3b9f5b)));}return _0x217f67;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1701=['_getCoordsForCells','ELEMENT_TABLE_WITH_TEXT','isInContent','hasAttribute','createTableWalker','options','ELEMENT_TABLE','item','values','ELEMENT_TABLE_ROW_WITH_TEXT','discard','end','_getSuggestionCoords','setSelection','*Insert:*\x20%0','_suggestionFactory','element','_descriptionFactory','map','minRow','root','oldRange','removeClass','createRangeIn','registerElementLabel','MAX_SAFE_INTEGER','ELEMENT_TABLE_ROW','some','afterInit','maxRow','cell','ELEMENT_TABLE_COLUMN','toLowerCase','enqueueChange','_splitMarkerName','markMultiRangeInsertion','isArray','isEqual','selectTableColumn','colspan','getCellLocation','nodeAfter','addRange','subType','MIN_SAFE_INTEGER','left','tablePaste','span','selection','addClass','document','getSuggestion','insertTableColumnLeft','_acceptFormatSuggestionCallbackFactory','getAttribute','$graveyard','removeTableRow','change','push','type','accept','registerPostFixer','getSelectionAffectedTableCells','findAncestor','first','insertion','includes','length','rowspan','last','*Remove:*\x20%0','substr','registerCustomCallback','rootName','join','editor','commands','enableCommand','classes','fromRange','getChildren','above','has','$textProxy','getRowIndexes','createPositionAt','startsWith','get','min','getContainedElement','addMarker:suggestion','every','execute','from','tableCell','_tablePostFixingSubtypes','insertTableRowBelow','table','getItems','tableColumn','refresh','ELEMENT_TABLE_COLUMN_WITH_TEXT','suggestion','removeTableColumn','tableRow','_tableSuggestions','plugins','selectTableRow','insertTableRowAbove','markMultiRangeDeletion','deletion','order','differ','TableUtils','name','isIntersectingWithRange','detach','nodeBefore','model','getRanges','insertTableColumnRight','data','filter','writer','_setupColumnsRowsFixing','isTouching','showSuggestionHighlights','registerDescriptionCallback','getChangedMarkers','getColumnIndexes','createRangeOn','start','max','change:data'];(function(_0x49e238,_0x170117){const _0x87c525=function(_0x1c7911){while(--_0x1c7911){_0x49e238['push'](_0x49e238['shift']());}};_0x87c525(++_0x170117);}(_0x1701,0x77));const _0x87c5=function(_0x49e238,_0x170117){_0x49e238=_0x49e238-0x0;let _0x87c525=_0x1701[_0x49e238];return _0x87c525;};import{Plugin as _0x439b80}from'ckeditor5/src/core';import{LiveRange as _0x1f834c}from'ckeditor5/src/engine';import{setHighlightHandling as _0x17d548}from'ckeditor5/src/widget';import{getTranslation as _0x3625a7}from'../utils/common-translations';export default class mt extends _0x439b80{constructor(_0x9d9b73){super(_0x9d9b73),this[_0x87c5('0x6e')]=[_0x87c5('0x77'),_0x87c5('0x72')],this[_0x87c5('0x78')]=new Set();}[_0x87c5('0x2b')](){const _0x58ae32=this[_0x87c5('0x5a')],_0x2844c5=_0x58ae32[_0x87c5('0x85')][_0x87c5('0x41')]['selection'];if(!_0x58ae32[_0x87c5('0x79')][_0x87c5('0x61')]('TableEditing'))return;const _0x5b6b22=_0x58ae32['locale'],_0x251831=_0x58ae32[_0x87c5('0x79')]['get']('TrackChangesEditing'),_0x1ebac4=_0x58ae32[_0x87c5('0x79')]['get'](_0x87c5('0x80'));_0x251831['_descriptionFactory'][_0x87c5('0x27')]('table',_0x5946a0=>_0x3625a7(_0x5b6b22,_0x87c5('0x15'),_0x5946a0)),this['_setupColumnsRowsFixing'](),_0x251831['enableCommand']('insertTable'),_0x251831[_0x87c5('0x5c')](_0x87c5('0x7a')),_0x251831[_0x87c5('0x5c')](_0x87c5('0x35'));for(const _0x1b6504 of[_0x87c5('0x7b'),_0x87c5('0x6f')]){const _0x1dca24=_0x58ae32[_0x87c5('0x5b')]['get'](_0x1b6504);_0x251831[_0x87c5('0x5c')](_0x1b6504,_0x54bcfc=>{_0x58ae32['model']['change'](_0x54f175=>{_0x54bcfc();const _0x20950d=_0x87c5('0x60')===_0x1dca24[_0x87c5('0x7e')],_0x1fd4af=_0x1ebac4[_0x87c5('0x4d')](_0x2844c5),_0x1a31c5=_0x1ebac4[_0x87c5('0x63')](_0x1fd4af),_0x38e838=_0x20950d?_0x1a31c5[_0x87c5('0x4f')]-0x1:_0x1a31c5['last']+0x1,_0x45fa0c=_0x1fd4af[0x0][_0x87c5('0x4e')](_0x87c5('0x70')),_0x2b8cb8=_0x1ebac4[_0x87c5('0x13')](_0x45fa0c,{'startRow':_0x38e838,'endRow':_0x38e838}),_0x1bf415=Array[_0x87c5('0x6c')](_0x2b8cb8)[_0x87c5('0x21')](_0xb96975=>_0x54f175[_0x87c5('0xb')](_0xb96975[_0x87c5('0x2d')]));_0x251831['markMultiRangeInsertion'](_0x1bf415,'tableRow');});});}for(const _0x2bf936 of[_0x87c5('0x43'),_0x87c5('0x1')]){const _0x34dca9=_0x58ae32[_0x87c5('0x5b')][_0x87c5('0x66')](_0x2bf936);_0x251831[_0x87c5('0x5c')](_0x2bf936,_0x11a460=>{_0x58ae32['model'][_0x87c5('0x48')](_0x4926e1=>{_0x11a460();const _0xc33a4=_0x87c5('0x3c')===_0x34dca9[_0x87c5('0x7e')],_0x50232d=_0x1ebac4[_0x87c5('0x4d')](_0x2844c5),_0xa7be47=_0x1ebac4[_0x87c5('0xa')](_0x50232d),_0x509498=_0xc33a4?_0xa7be47[_0x87c5('0x4f')]-0x1:_0xa7be47['last']+0x1,_0x215aae=_0x50232d[0x0][_0x87c5('0x4e')](_0x87c5('0x70')),_0x4517c1=_0x1ebac4['createTableWalker'](_0x215aae,{'startRow':0x0,'column':_0x509498,'includeAllSlots':!0x1}),_0x5226d8=Array[_0x87c5('0x6c')](_0x4517c1)[_0x87c5('0x21')](_0x3548d=>_0x4926e1[_0x87c5('0xb')](_0x3548d['cell']));_0x251831[_0x87c5('0x32')](_0x5226d8,_0x87c5('0x72'));});});}for(const _0x4ca63a of[_0x87c5('0x47'),'removeTableColumn']){const _0xf775ec=_0x4ca63a['substr'](0xb),_0x35d6f8=_0xf775ec[_0x87c5('0x2f')](),_0x11a603=_0x35d6f8[_0x87c5('0x56')](0x0,0x3)+_0x87c5('0x3e'),_0x1c73e1=_0x87c5('0x70')+_0xf775ec,_0x26df93='min'+_0xf775ec,_0x239ca7=_0x87c5('0xd')+_0xf775ec;_0x251831[_0x87c5('0x5c')](_0x4ca63a,()=>{_0x58ae32['model'][_0x87c5('0x48')](_0x29f7de=>{const _0x49b53b=_0x1ebac4[_0x87c5('0x4d')](_0x2844c5),_0x5c6fd9=_0x49b53b[0x0][_0x87c5('0x4e')](_0x87c5('0x70'));let _0xf93235;if('removeTableRow'==_0x4ca63a){const _0x4c6c5c=_0x1ebac4[_0x87c5('0x63')](_0x49b53b);_0xf93235={'startRow':_0x4c6c5c[_0x87c5('0x4f')],'endRow':_0x4c6c5c[_0x87c5('0x54')],'includeAllSlots':!0x0};}else{const _0x35c7f6=_0x1ebac4[_0x87c5('0xa')](_0x49b53b);_0xf93235={'startColumn':_0x35c7f6[_0x87c5('0x4f')],'endColumn':_0x35c7f6[_0x87c5('0x54')],'includeAllSlots':!0x0};}const _0x5e4a8d=_0x1ebac4['createTableWalker'](_0x5c6fd9,_0xf93235),_0x284e15=Array[_0x87c5('0x6c')](_0x5e4a8d)[_0x87c5('0x21')](({cell:_0x3ca86b})=>_0x3ca86b),_0x5a94f1=se(_0x284e15['filter'](_0x1aefaf=>_0x1aefaf['hasAttribute'](_0x11a603))),_0x38e649=se(_0x284e15['filter'](_0x1e84e2=>!_0x1e84e2[_0x87c5('0x12')](_0x11a603)))[_0x87c5('0x21')](_0x59077d=>_0x29f7de[_0x87c5('0xb')](_0x59077d)),_0x95d146=_0x251831[_0x87c5('0x7c')](_0x38e649,_0x1c73e1);if(_0x95d146&&(_0x87c5('0x77')==_0x95d146[_0x87c5('0x3a')]||_0x87c5('0x72')==_0x95d146[_0x87c5('0x3a')])){const _0x5a8c80=this[_0x87c5('0x1b')](_0x95d146);for(const _0x3b0152 of _0x5a94f1){const _0x451517=_0x29f7de[_0x87c5('0xb')](_0x3b0152),_0x56eb33=_0x1ebac4[_0x87c5('0x37')](_0x3b0152),_0x2b7be9=_0x3b0152[_0x87c5('0x45')](_0x11a603)-0x1,_0x5323ec=_0x5a8c80[_0x26df93],_0x401951=_0x5a8c80[_0x239ca7];_0x5323ec<=_0x56eb33[_0x35d6f8]&&_0x56eb33[_0x35d6f8]+_0x2b7be9<=_0x401951&&_0x95d146[_0x87c5('0x39')](_0x451517);}}});});}function _0x24daaf(_0x45d639){const _0x4699aa=Array[_0x87c5('0x6c')](_0x2844c5[_0x87c5('0x0')]())['map'](_0x4e495d=>_0x1f834c['fromRange'](_0x4e495d));_0x58ae32[_0x87c5('0x85')]['change'](_0x44e0d5=>{const _0x2ec364=_0x44e0d5['batch'];_0x45d639=_0x45d639[_0x87c5('0x3')](_0x38ce4f=>_0x87c5('0x46')!=_0x38ce4f[_0x87c5('0x23')][_0x87c5('0x58')]),_0x44e0d5[_0x87c5('0x1c')](_0x45d639),_0x58ae32[_0x87c5('0x5b')][_0x87c5('0x66')](_0x87c5('0x47'))[_0x87c5('0x73')](),_0x58ae32['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x58ae32[_0x87c5('0x85')][_0x87c5('0x30')](()=>{_0x58ae32['model']['enqueueChange'](_0x2ec364,_0x185dff=>{const _0x4ac358=_0x4699aa['filter'](_0x434888=>_0x87c5('0x46')!=_0x434888[_0x87c5('0x23')][_0x87c5('0x58')]);_0x4ac358['length']>0x0&&_0x185dff[_0x87c5('0x1c')](_0x4ac358);for(const _0x4a479f of _0x4699aa)_0x4a479f[_0x87c5('0x83')]();});});});}function _0x4c4732(_0x187004){_0x58ae32[_0x87c5('0x85')][_0x87c5('0x48')](_0x386a58=>{const _0x567ef4=Array[_0x87c5('0x6c')](_0x2844c5[_0x87c5('0x0')]())[_0x87c5('0x21')](_0x20d090=>_0x1f834c[_0x87c5('0x5e')](_0x20d090)),_0x384b50=[];for(const _0x149db3 of _0x187004)for(const _0x12969b of _0x149db3['getItems']({'shallow':!0x0}))_0x384b50[_0x87c5('0x49')](_0x12969b);for(const _0x55a950 of _0x384b50)_0x87c5('0x46')!=_0x55a950[_0x87c5('0x23')][_0x87c5('0x58')]&&(_0x386a58[_0x87c5('0x1c')](_0x386a58[_0x87c5('0x64')](_0x55a950,0x0)),_0x58ae32[_0x87c5('0x5b')]['get']('removeTableColumn')[_0x87c5('0x73')](),_0x58ae32['execute'](_0x87c5('0x76'),{'forceDefaultExecution':!0x0}));const _0x5e33db=_0x567ef4[_0x87c5('0x3')](_0x2cd3de=>'$graveyard'!=_0x2cd3de[_0x87c5('0x23')][_0x87c5('0x58')]);_0x5e33db[_0x87c5('0x52')]>0x0&&_0x386a58[_0x87c5('0x1c')](_0x5e33db);for(const _0x104549 of _0x567ef4)_0x104549[_0x87c5('0x83')]();});}function _0x5f3ff0(_0x30dab2,_0x3da678){return _0x3da678[_0x87c5('0x6a')](_0x431787=>_0x30dab2[_0x87c5('0x2a')](_0x2ef18a=>_0x2ef18a[_0x87c5('0x1a')][_0x87c5('0x34')](_0x431787[_0x87c5('0xc')])||_0x431787[_0x87c5('0x1a')][_0x87c5('0x34')](_0x2ef18a[_0x87c5('0xc')])));}function _0x3a3525(_0x422e9b,_0x2d38fd){return _0x422e9b['some'](_0x18b309=>_0x2d38fd[_0x87c5('0x2a')](_0x33b150=>_0x18b309[_0x87c5('0x1a')][_0x87c5('0x6')](_0x33b150[_0x87c5('0xc')])));}_0x58ae32['data']['downcastDispatcher']['on'](_0x87c5('0x69'),(_0x5b03be,_0x321865,_0x4efe94)=>{if(!_0x4efe94[_0x87c5('0x14')][_0x87c5('0x7')])return;const _0x3d99ac=_0x321865[_0x87c5('0x16')];if(!_0x3d99ac)return;const _0x56e553=_0x4efe94['mapper']['toViewElement'](_0x3d99ac);function _0x475275(_0x21fdc8){return Array[_0x87c5('0x33')](_0x21fdc8)?_0x21fdc8:[_0x21fdc8];}_0x56e553&&_0x87c5('0x6d')===_0x3d99ac['name']&&_0x17d548(_0x56e553,_0x4efe94[_0x87c5('0x4')],(_0x4dd1c0,_0xe9e8a,_0x5f253a)=>_0x5f253a[_0x87c5('0x40')](_0x475275(_0xe9e8a[_0x87c5('0x5d')]),_0x4dd1c0),(_0x386025,_0x46605b,_0x4d7ac2)=>_0x4d7ac2[_0x87c5('0x25')](_0x475275(_0x46605b[_0x87c5('0x5d')]),_0x386025));},{'priority':'highest'}),_0x251831[_0x87c5('0x20')][_0x87c5('0x8')](_0x29b49d=>{if(_0x87c5('0x50')!=_0x29b49d['type']&&'deletion'!=_0x29b49d['type'])return;const _0x597322=_0x29b49d[_0x87c5('0x68')]();if(null!=_0x597322&&_0x597322['is'](_0x87c5('0x1f'),_0x87c5('0x70'))){if(_0x87c5('0x50')==_0x29b49d[_0x87c5('0x4a')]){const _0x475939=_0x29b49d['getItems']()[_0x87c5('0x3')](_0x8e64ad=>_0x8e64ad['is'](_0x87c5('0x62')))[_0x87c5('0x21')](_0x11436a=>_0x11436a['data']);if(_0x475939[_0x87c5('0x52')])return{'type':'insertion','content':_0x3625a7(_0x5b6b22,_0x87c5('0x1d'),_0x3625a7(_0x5b6b22,_0x87c5('0x10'),'\x22'+_0x475939[_0x87c5('0x59')]('\x20')+'\x22'))};}if('deletion'==_0x29b49d[_0x87c5('0x4a')]){const _0x40f320=_0x29b49d[_0x87c5('0x71')]()[_0x87c5('0x3')](_0x3b7042=>_0x3b7042['is'](_0x87c5('0x62')))[_0x87c5('0x21')](_0x2d1b37=>_0x2d1b37[_0x87c5('0x2')]);if(_0x40f320['length'])return{'type':'deletion','content':_0x3625a7(_0x5b6b22,'*Remove:*\x20%0',_0x3625a7(_0x5b6b22,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40f320[_0x87c5('0x59')]('\x20')+'\x22'))};}}}),_0x251831[_0x87c5('0x20')][_0x87c5('0x8')](_0x183721=>{if('tableRow'==_0x183721['subType']){const _0x331b34=_0x183721[_0x87c5('0x71')]()[_0x87c5('0x3')](_0x4ad74d=>_0x4ad74d['is'](_0x87c5('0x62')))[_0x87c5('0x21')](_0x3e9eb6=>_0x3e9eb6[_0x87c5('0x2')]),_0x7f70ca=this[_0x87c5('0x1b')](_0x183721),_0x36d9b0=_0x7f70ca[_0x87c5('0x2c')]-_0x7f70ca[_0x87c5('0x22')]+0x1;if('insertion'==_0x183721[_0x87c5('0x4a')])return _0x331b34['length']?{'type':'insertion','content':_0x3625a7(_0x5b6b22,_0x87c5('0x1d'),_0x3625a7(_0x5b6b22,_0x87c5('0x18'),[_0x36d9b0,'\x22'+_0x331b34[_0x87c5('0x59')]('\x20')+'\x22']))}:{'type':_0x87c5('0x50'),'content':_0x3625a7(_0x5b6b22,_0x87c5('0x1d'),_0x3625a7(_0x5b6b22,_0x87c5('0x29'),_0x36d9b0))};if(_0x87c5('0x7d')==_0x183721[_0x87c5('0x4a')])return _0x331b34[_0x87c5('0x52')]?{'type':'deletion','content':_0x3625a7(_0x5b6b22,_0x87c5('0x55'),_0x3625a7(_0x5b6b22,_0x87c5('0x18'),[_0x36d9b0,'\x22'+_0x331b34[_0x87c5('0x59')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x3625a7(_0x5b6b22,_0x87c5('0x55'),_0x3625a7(_0x5b6b22,'ELEMENT_TABLE_ROW',_0x36d9b0))};}if(_0x87c5('0x72')==_0x183721['subType']){const _0x3d4148=_0x183721[_0x87c5('0x71')]()[_0x87c5('0x3')](_0x458868=>_0x458868['is'](_0x87c5('0x62')))[_0x87c5('0x21')](_0x4c82b7=>_0x4c82b7[_0x87c5('0x2')]),_0x121a99=this[_0x87c5('0x1b')](_0x183721),_0x398090=_0x121a99['maxColumn']-_0x121a99['minColumn']+0x1;if(_0x87c5('0x50')==_0x183721['type'])return _0x3d4148[_0x87c5('0x52')]?{'type':_0x87c5('0x50'),'content':_0x3625a7(_0x5b6b22,_0x87c5('0x1d'),_0x3625a7(_0x5b6b22,_0x87c5('0x74'),[_0x398090,'\x22'+_0x3d4148[_0x87c5('0x59')]('\x20')+'\x22']))}:{'type':_0x87c5('0x50'),'content':_0x3625a7(_0x5b6b22,_0x87c5('0x1d'),_0x3625a7(_0x5b6b22,_0x87c5('0x2e'),_0x398090))};if(_0x87c5('0x7d')==_0x183721['type'])return _0x3d4148[_0x87c5('0x52')]?{'type':_0x87c5('0x7d'),'content':_0x3625a7(_0x5b6b22,_0x87c5('0x55'),_0x3625a7(_0x5b6b22,_0x87c5('0x74'),[_0x398090,'\x22'+_0x3d4148[_0x87c5('0x59')]('\x20')+'\x22']))}:{'type':_0x87c5('0x7d'),'content':_0x3625a7(_0x5b6b22,_0x87c5('0x55'),_0x3625a7(_0x5b6b22,_0x87c5('0x2e'),_0x398090))};}}),_0x251831[_0x87c5('0x1e')][_0x87c5('0x57')](_0x87c5('0x50'),_0x87c5('0x77'),_0x87c5('0x19'),_0x24daaf),_0x251831[_0x87c5('0x1e')][_0x87c5('0x57')](_0x87c5('0x7d'),_0x87c5('0x77'),_0x87c5('0x4b'),_0x24daaf),_0x251831[_0x87c5('0x1e')][_0x87c5('0x57')](_0x87c5('0x50'),_0x87c5('0x72'),_0x87c5('0x19'),_0x4c4732),_0x251831[_0x87c5('0x1e')][_0x87c5('0x57')](_0x87c5('0x7d'),_0x87c5('0x72'),_0x87c5('0x4b'),_0x4c4732),_0x251831[_0x87c5('0x1e')][_0x87c5('0x57')](_0x87c5('0x50'),_0x87c5('0x72'),_0x87c5('0x59'),_0x5f3ff0),_0x251831[_0x87c5('0x1e')][_0x87c5('0x57')](_0x87c5('0x7d'),'tableColumn','join',_0x5f3ff0),_0x251831[_0x87c5('0x1e')]['registerCustomCallback'](_0x87c5('0x50'),_0x87c5('0x77'),_0x87c5('0x59'),_0x3a3525),_0x251831[_0x87c5('0x1e')][_0x87c5('0x57')](_0x87c5('0x7d'),'tableRow',_0x87c5('0x59'),_0x3a3525);}[_0x87c5('0x44')](){const _0x49c661=this['editor'],_0x1eddbb=_0x49c661[_0x87c5('0x85')][_0x87c5('0x41')][_0x87c5('0x3f')];return(_0x264e63,_0x4b332e)=>{_0x49c661['model'][_0x87c5('0x48')](_0x1d0282=>{const {commandName:_0xa41e94,commandParams:_0x2f6739}=_0x4b332e;let _0x3501bf=_0x264e63[0x0][_0x87c5('0x1a')][_0x87c5('0x84')];_0x2f6739&&_0x2f6739[0x0]&&!0x1===_0x2f6739[0x0]['forceValue']&&(_0x3501bf=_0x264e63[0x0]['start']['nodeAfter']);const _0x4f9b0f=_0x1d0282[_0x87c5('0x26')](_0x3501bf);if(_0x87c5('0x46')==_0x4f9b0f[_0x87c5('0x23')][_0x87c5('0x58')])return;const _0x34022e=Array['from'](_0x1eddbb[_0x87c5('0x0')]())[_0x87c5('0x21')](_0x4950fe=>_0x1f834c[_0x87c5('0x5e')](_0x4950fe));_0x1d0282['setSelection'](_0x4f9b0f),_0x49c661[_0x87c5('0x5b')][_0x87c5('0x66')](_0xa41e94)[_0x87c5('0x73')](),_0x2f6739[_0x87c5('0x49')]({'forceDefaultExecution':!0x0}),_0x49c661[_0x87c5('0x6b')](_0xa41e94,..._0x2f6739);const _0x30698e=_0x34022e[_0x87c5('0x3')](_0x1074c4=>'$graveyard'!=_0x1074c4[_0x87c5('0x23')][_0x87c5('0x58')]);_0x30698e[_0x87c5('0x52')]>0x0&&_0x1d0282['setSelection'](_0x30698e);for(const _0x26830e of _0x34022e)_0x26830e['detach']();});};}[_0x87c5('0xf')](_0xa17233){const _0x2545be=this[_0x87c5('0x5a')][_0x87c5('0x79')]['get'](_0x87c5('0x80'));let _0x122b6d=Number[_0x87c5('0x28')],_0x5443e5=Number[_0x87c5('0x3b')],_0x35265b=Number[_0x87c5('0x28')],_0x12b4fe=Number[_0x87c5('0x3b')];for(const _0x272fc6 of _0xa17233){if(_0x87c5('0x46')==_0x272fc6[_0x87c5('0x23')]['rootName'])continue;const {row:_0x193ca9,column:_0xe214ab}=_0x2545be[_0x87c5('0x37')](_0x272fc6),_0x3a1d0a=_0x272fc6[_0x87c5('0x12')](_0x87c5('0x53'))?_0x272fc6[_0x87c5('0x45')]('rowspan')-0x1:0x0,_0x33c9a5=_0x272fc6[_0x87c5('0x12')](_0x87c5('0x36'))?_0x272fc6[_0x87c5('0x45')](_0x87c5('0x36'))-0x1:0x0;_0x122b6d=_0x193ca9<_0x122b6d?_0x193ca9:_0x122b6d,_0x5443e5=_0x193ca9+_0x3a1d0a>_0x5443e5?_0x193ca9+_0x3a1d0a:_0x5443e5,_0x35265b=_0xe214ab<_0x35265b?_0xe214ab:_0x35265b,_0x12b4fe=_0xe214ab+_0x33c9a5>_0x12b4fe?_0xe214ab+_0x33c9a5:_0x12b4fe;}return{'minRow':_0x122b6d,'maxRow':_0x5443e5,'minColumn':_0x35265b,'maxColumn':_0x12b4fe};}[_0x87c5('0x5')](){const _0x77d20e=this[_0x87c5('0x5a')],_0x5ab801=_0x77d20e[_0x87c5('0x79')][_0x87c5('0x66')]('TrackChangesEditing'),_0x2c3b5b=_0x77d20e[_0x87c5('0x79')][_0x87c5('0x66')]('TableUtils');_0x77d20e['model'][_0x87c5('0x41')]['on'](_0x87c5('0xe'),()=>{const _0x2d6af1=Array['from'](_0x77d20e[_0x87c5('0x85')]['document'][_0x87c5('0x7f')][_0x87c5('0x9')]());for(const {name:_0x55fcd2,data:_0x44df5f}of _0x2d6af1){const {group:_0x1074fc,id:_0x3cb7f0,subType:_0x59933f}=_0x5ab801[_0x87c5('0x31')](_0x55fcd2);if(_0x87c5('0x75')!=_0x1074fc)continue;if(null!=_0x44df5f[_0x87c5('0x24')])continue;const _0x171794=_0x5ab801[_0x87c5('0x42')](_0x3cb7f0);this[_0x87c5('0x6e')][_0x87c5('0x51')](_0x59933f)&&this[_0x87c5('0x78')]['add'](_0x171794);}},{'priority':'low'});const _0x31e148=(_0x14b256,_0x5c1c7b)=>{let _0x145d23=!0x1;const _0x195642=_0x5c1c7b['createRangeOn'](_0x14b256),_0x59ec35=_0x14b256[_0x87c5('0x4e')]('table'),_0x4c9732=_0x2c3b5b[_0x87c5('0x37')](_0x14b256);for(const _0x48717d of this[_0x87c5('0x78')]){const _0x34ad10=_0x48717d[_0x87c5('0x3a')],_0x262c11=_0x34ad10[_0x87c5('0x65')](_0x87c5('0x3d')),_0xb8992a=_0x34ad10['substr'](_0x262c11?0xa:0x5),_0x369e27=_0xb8992a[_0x87c5('0x2f')](),_0x2255ab=_0x369e27[_0x87c5('0x56')](0x0,0x3)+_0x87c5('0x3e'),_0x5dd9e9=_0x87c5('0x67')+_0xb8992a,_0x59fdb4='max'+_0xb8992a;if(!_0x48717d[_0x87c5('0x11')])continue;if(_0x59ec35!=_0x48717d['getFirstRange']()[_0x87c5('0xc')][_0x87c5('0x4e')](_0x87c5('0x70')))continue;if(_0x48717d[_0x87c5('0x82')](_0x195642))continue;const _0x360bb5=_0x14b256[_0x87c5('0x12')](_0x2255ab)?_0x14b256[_0x87c5('0x45')](_0x2255ab)-0x1:0x0,_0x184ac6=this[_0x87c5('0x1b')](_0x48717d),_0x48471e=_0x184ac6[_0x5dd9e9],_0x347f02=_0x184ac6[_0x59fdb4];_0x48471e<=_0x4c9732[_0x369e27]&&_0x4c9732[_0x369e27]+_0x360bb5<=_0x347f02&&(_0x48717d[_0x87c5('0x39')](_0x195642),_0x145d23=!0x0);}return _0x145d23;};_0x77d20e[_0x87c5('0x85')][_0x87c5('0x41')][_0x87c5('0x4c')](_0x523cb8=>{let _0x112d54=!0x1;for(const _0x8493b0 of _0x77d20e['model'][_0x87c5('0x41')][_0x87c5('0x7f')]['getChanges']())if('insert'==_0x8493b0[_0x87c5('0x4a')]){if(_0x87c5('0x77')==_0x8493b0[_0x87c5('0x81')])for(const _0x260505 of _0x8493b0['position'][_0x87c5('0x38')][_0x87c5('0x5f')]())_0x112d54=_0x112d54||_0x31e148(_0x260505,_0x523cb8);else _0x87c5('0x6d')==_0x8493b0[_0x87c5('0x81')]&&(_0x112d54=_0x112d54||_0x31e148(_0x8493b0['position']['nodeAfter'],_0x523cb8));}return _0x112d54;});}['_getSuggestionCoords'](_0x3b1d09){return this[_0x87c5('0xf')](_0x3b1d09[_0x87c5('0x0')]()[_0x87c5('0x21')](_0x18a635=>_0x18a635[_0x87c5('0xc')]['nodeAfter']));}}function se(_0x1307a5){return Array[_0x87c5('0x6c')](new Set(_0x1307a5)[_0x87c5('0x17')]());}
|
|
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']());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6290=['editor','TableCaptionEditing','plugins','get','enableCommand','requires','TrackChangesEditing','toggleTableCaption','afterInit'];(function(_0x5b62ee,_0x6290fa){const _0x295df7=function(_0x590fe0){while(--_0x590fe0){_0x5b62ee['push'](_0x5b62ee['shift']());}};_0x295df7(++_0x6290fa);}(_0x6290,0x1e4));const _0x295d=function(_0x5b62ee,_0x6290fa){_0x5b62ee=_0x5b62ee-0x0;let _0x295df7=_0x6290[_0x5b62ee];return _0x295df7;};import{Plugin as _0x1056d2}from'ckeditor5/src/core';import _0x446cd5 from'./table';export default class vt extends _0x1056d2{static get[_0x295d('0x7')](){return[_0x446cd5];}[_0x295d('0x1')](){const _0x471828=this[_0x295d('0x2')];if(!_0x471828[_0x295d('0x4')]['has'](_0x295d('0x3')))return;_0x471828[_0x295d('0x4')][_0x295d('0x5')](_0x295d('0x8'))[_0x295d('0x6')](_0x295d('0x0'));}}
|