@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230720.0 → 0.0.0-nightly-20230722.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 _0x5df3=['ELEMENT_','listItem','markMultiRangeBlockFormat','startIndex','getAttribute','ListUtils','_LIST_','createRange','*Format:*\x20set\x20order\x20to\x20reversed','document','config','type','bind','TrackChangesEditing','listStyle','element','listReversed','_getTranslationKeyForListStyle','flat','listType','listStart','*Format:*\x20set\x20order\x20to\x20regular','plugins','commandParams','parent','handleListReversedCommand','locale','has','commandName','before','length','change','_descriptionFactory','handleDescriptions','createPositionAt','backward','model','_getSuggestionBlocksForListStyle','replace','*Change\x20to:*\x20%0','selection','reversed','handleListStyleCommand','getSelectedBlocks','editor','numbered','get','_getSuggestionBlocks','getListTypeFromListStyleType','forward','getSiblingNodes','format','afterInit','handleListStartCommand','getFirstPosition','filter','enableCommand'];(function(_0x1d1a79,_0x5df30c){const _0x1e0c92=function(_0x5d26c6){while(--_0x5d26c6){_0x1d1a79['push'](_0x1d1a79['shift']());}};_0x1e0c92(++_0x5df30c);}(_0x5df3,0xde));const _0x1e0c=function(_0x1d1a79,_0x5df30c){_0x1d1a79=_0x1d1a79-0x0;let _0x1e0c92=_0x5df3[_0x1d1a79];return _0x1e0c92;};import{Plugin as _0x4b212f}from'ckeditor5/src/core';import{getTranslation as _0x2abe13}from'../utils/common-translations';export default class nt extends _0x4b212f{[_0x1e0c('0x1')](){if(!this[_0x1e0c('0x32')]['plugins'][_0x1e0c('0x21')]('ListPropertiesEditing'))return;const _0x30ecbf=this[_0x1e0c('0x32')][_0x1e0c('0x10')][_0x1e0c('0x34')]('list.properties'),_0x5876b7=this['editor']['plugins']['get'](_0x1e0c('0x13'));_0x30ecbf['styles']&&_0x5876b7['enableCommand'](_0x1e0c('0x14'),this[_0x1e0c('0x30')][_0x1e0c('0x12')](this)),_0x30ecbf[_0x1e0c('0x2f')]&&_0x5876b7[_0x1e0c('0x5')](_0x1e0c('0x16'),this[_0x1e0c('0x1f')][_0x1e0c('0x12')](this)),_0x30ecbf['startIndex']&&_0x5876b7[_0x1e0c('0x5')](_0x1e0c('0x1a'),this[_0x1e0c('0x2')][_0x1e0c('0x12')](this)),_0x5876b7[_0x1e0c('0x26')]['registerDescriptionCallback'](this[_0x1e0c('0x27')][_0x1e0c('0x12')](this));}[_0x1e0c('0x30')](_0x4d6be4,_0x5a5505={}){const _0x58eb0b=this['editor']['plugins'][_0x1e0c('0x34')](_0x1e0c('0x13')),_0x1e442f=this[_0x1e0c('0x2b')]();this[_0x1e0c('0x32')][_0x1e0c('0x2a')][_0x1e0c('0x25')](()=>{_0x58eb0b[_0x1e0c('0x8')](_0x1e442f,{'commandName':_0x1e0c('0x14'),'commandParams':[{'type':_0x5a5505[_0x1e0c('0x11')]}],'formatGroupId':_0x1e0c('0x14')});});}[_0x1e0c('0x1f')](_0x13ed19,_0x587cb6={}){const _0x5dc618=this[_0x1e0c('0x32')]['plugins'][_0x1e0c('0x34')](_0x1e0c('0x13')),_0x381546=this['_getSuggestionBlocks'](_0x54da39=>_0x54da39['is'](_0x1e0c('0x15'),_0x1e0c('0x7'))&&'numbered'===_0x54da39['getAttribute'](_0x1e0c('0x19')));if(_0x381546['length']<0x1)return;const _0x2fcf73=_0x381546['map'](_0x52b55f=>this['editor'][_0x1e0c('0x2a')][_0x1e0c('0xd')](this[_0x1e0c('0x32')]['model'][_0x1e0c('0x28')](_0x52b55f,_0x1e0c('0x23')),this['editor'][_0x1e0c('0x2a')]['createPositionAt'](_0x52b55f,0x0)));this[_0x1e0c('0x32')][_0x1e0c('0x2a')][_0x1e0c('0x25')](()=>{_0x5dc618[_0x1e0c('0x8')](_0x2fcf73,{'commandName':_0x1e0c('0x16'),'commandParams':[{'reversed':_0x587cb6[_0x1e0c('0x2f')]}],'formatGroupId':_0x1e0c('0x16')});});}[_0x1e0c('0x2')](_0x2b5d19,_0x49e247={}){const _0x15a839=this[_0x1e0c('0x32')][_0x1e0c('0x1c')][_0x1e0c('0x34')](_0x1e0c('0x13')),_0x20bbac=this['_getSuggestionBlocks'](_0xaf5185=>_0xaf5185['is'](_0x1e0c('0x15'),_0x1e0c('0x7'))&&_0x1e0c('0x33')===_0xaf5185[_0x1e0c('0xa')](_0x1e0c('0x19')));if(_0x20bbac['length']<0x1)return;const _0xd94774=_0x20bbac['map'](_0x23509d=>this[_0x1e0c('0x32')][_0x1e0c('0x2a')][_0x1e0c('0xd')](this[_0x1e0c('0x32')][_0x1e0c('0x2a')][_0x1e0c('0x28')](_0x23509d,'before'),this[_0x1e0c('0x32')][_0x1e0c('0x2a')][_0x1e0c('0x28')](_0x23509d,0x0)));this['editor'][_0x1e0c('0x2a')][_0x1e0c('0x25')](()=>{_0x15a839[_0x1e0c('0x8')](_0xd94774,{'commandName':_0x1e0c('0x1a'),'commandParams':[{'startIndex':_0x49e247[_0x1e0c('0x9')]}],'formatGroupId':_0x1e0c('0x1a')});});}[_0x1e0c('0x27')](_0x30a0be){const _0x351ac9=this[_0x1e0c('0x32')][_0x1e0c('0x20')],{data:_0x1fc6ae}=_0x30a0be;if(!_0x1fc6ae)return;let _0x3e29fa,_0x5df1f4;switch(_0x1fc6ae[_0x1e0c('0x22')]){case _0x1e0c('0x14'):_0x3e29fa=_0x1e0c('0x2d'),_0x5df1f4={'type':'format','content':_0x2abe13(_0x351ac9,_0x3e29fa,_0x2abe13(_0x351ac9,this[_0x1e0c('0x17')](_0x1fc6ae[_0x1e0c('0x1d')][0x0][_0x1e0c('0x11')])))};break;case _0x1e0c('0x16'):_0x3e29fa=_0x1fc6ae[_0x1e0c('0x1d')][0x0]['reversed']?_0x1e0c('0xe'):_0x1e0c('0x1b'),_0x5df1f4={'type':_0x1e0c('0x0'),'content':_0x2abe13(_0x351ac9,_0x3e29fa)};break;case'listStart':_0x3e29fa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5df1f4={'type':_0x1e0c('0x0'),'content':_0x2abe13(_0x351ac9,_0x3e29fa,_0x1fc6ae[_0x1e0c('0x1d')][0x0][_0x1e0c('0x9')])};}return _0x5df1f4;}[_0x1e0c('0x2b')](){var _0xc8cb70,_0x133970,_0x24034b,_0x25bff5;const _0xeb469f=this[_0x1e0c('0x32')][_0x1e0c('0x1c')][_0x1e0c('0x34')](_0x1e0c('0xb'));let _0x4600c3=Array['from'](this[_0x1e0c('0x32')]['model']['document']['selection'][_0x1e0c('0x31')]());return(null===(_0xc8cb70=_0x4600c3[0x0])||void 0x0===_0xc8cb70?void 0x0:_0xc8cb70['is'](_0x1e0c('0x15'),_0x1e0c('0x7')))&&_0x4600c3['unshift'](..._0xeb469f[_0x1e0c('0x38')](this['editor']['model'][_0x1e0c('0xf')][_0x1e0c('0x2e')][_0x1e0c('0x3')](),'backward')),(null===(_0x133970=_0x4600c3[_0x4600c3[_0x1e0c('0x24')]-0x1])||void 0x0===_0x133970?void 0x0:_0x133970['is'](_0x1e0c('0x15'),_0x1e0c('0x7')))&&_0x4600c3['push'](..._0xeb469f[_0x1e0c('0x38')](this['editor'][_0x1e0c('0x2a')][_0x1e0c('0xf')][_0x1e0c('0x2e')]['getLastPosition'](),_0x1e0c('0x37'))),_0x4600c3=[...new Set(_0x4600c3)],(null===(_0x25bff5=null===(_0x24034b=this[_0x1e0c('0x32')][_0x1e0c('0x2a')][_0x1e0c('0xf')][_0x1e0c('0x2e')]['getFirstPosition']())||void 0x0===_0x24034b?void 0x0:_0x24034b[_0x1e0c('0x1e')])||void 0x0===_0x25bff5?void 0x0:_0x25bff5['is'](_0x1e0c('0x15'),_0x1e0c('0x7')))&&(_0x4600c3=_0x4600c3[_0x1e0c('0x4')](_0x5a87df=>_0x5a87df['is']('element',_0x1e0c('0x7')))),_0x4600c3;}[_0x1e0c('0x35')](_0x5f2ef8){const _0x25599d=this[_0x1e0c('0x32')][_0x1e0c('0x1c')][_0x1e0c('0x34')]('ListUtils');let _0x188182=Array['from'](this['editor']['model']['document'][_0x1e0c('0x2e')][_0x1e0c('0x31')]())[_0x1e0c('0x4')](_0x5f2ef8)['map'](_0x53985e=>{const _0x12fdfa=this[_0x1e0c('0x32')][_0x1e0c('0x2a')][_0x1e0c('0x28')](_0x53985e,0x0);return[..._0x25599d[_0x1e0c('0x38')](_0x12fdfa,_0x1e0c('0x29')),..._0x25599d['getSiblingNodes'](_0x12fdfa,_0x1e0c('0x37'))];})[_0x1e0c('0x18')]();return _0x188182=[...new Set(_0x188182)],_0x188182;}[_0x1e0c('0x17')](_0x1eb471){return _0x1e0c('0x6')+this['editor'][_0x1e0c('0x1c')][_0x1e0c('0x34')](_0x1e0c('0xb'))[_0x1e0c('0x36')](_0x1eb471)['toUpperCase']()+_0x1e0c('0xc')+_0x1eb471['toUpperCase']()[_0x1e0c('0x2c')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c3d=['createEmptyElement','attribute:url:media','ELEMENT_MEDIA','enableCommand','plugins','data','TrackChangesEditing','media','options','for','conversion','high','afterInit','downcastDispatcher','editor','locale','dataDowncast','elementToElement','showSuggestionHighlights','stop','div','has','mediaEmbed','_descriptionFactory','get'];(function(_0x2cd91a,_0x3c3d1){const _0xee1e6=function(_0x368338){while(--_0x368338){_0x2cd91a['push'](_0x2cd91a['shift']());}};_0xee1e6(++_0x3c3d1);}(_0x3c3d,0x120));const _0xee1e=function(_0x2cd91a,_0x3c3d1){_0x2cd91a=_0x2cd91a-0x0;let _0xee1e6=_0x3c3d[_0x2cd91a];return _0xee1e6;};import{Plugin as _0x50098c}from'ckeditor5/src/core';import{getTranslation as _0x580434}from'../utils/common-translations';export default class ot extends _0x50098c{[_0xee1e('0x18')](){const _0x355d69=this[_0xee1e('0x1')];if(!_0x355d69[_0xee1e('0x10')][_0xee1e('0x8')]('MediaEmbedEditing'))return;const _0x267585=_0x355d69[_0xee1e('0x10')][_0xee1e('0xb')](_0xee1e('0x12')),_0x5103d0=_0x355d69[_0xee1e('0x2')];_0x267585[_0xee1e('0xf')](_0xee1e('0x9')),_0x267585[_0xee1e('0xa')]['registerElementLabel'](_0xee1e('0x13'),_0x335726=>_0x580434(_0x5103d0,_0xee1e('0xe'),_0x335726)),_0x355d69[_0xee1e('0x16')][_0xee1e('0x15')](_0xee1e('0x3'))[_0xee1e('0x4')]({'model':_0xee1e('0x13'),'view':(_0x518509,{writer:_0x513ade,options:_0x323531})=>{if(_0x323531[_0xee1e('0x5')])return _0x513ade[_0xee1e('0xc')](_0xee1e('0x7'));},'converterPriority':'high'}),_0x355d69[_0xee1e('0x11')][_0xee1e('0x0')]['on'](_0xee1e('0xd'),(_0x3ef881,_0x120a1c,_0x3767ea)=>{_0x3767ea[_0xee1e('0x14')][_0xee1e('0x5')]&&_0x3ef881[_0xee1e('0x6')]();},{'priority':_0xee1e('0x17')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51b1=['editor','MentionEditing','plugins','get','enableCommand','TrackChangesEditing','has'];(function(_0x3433ce,_0x51b1d8){const _0x22c57d=function(_0xc9ffe1){while(--_0xc9ffe1){_0x3433ce['push'](_0x3433ce['shift']());}};_0x22c57d(++_0x51b1d8);}(_0x51b1,0x13f));const _0x22c5=function(_0x3433ce,_0x51b1d8){_0x3433ce=_0x3433ce-0x0;let _0x22c57d=_0x51b1[_0x3433ce];return _0x22c57d;};import{Plugin as _0x4f603a}from'ckeditor5/src/core';export default class rt extends _0x4f603a{['afterInit'](){const _0xc69157=this[_0x22c5('0x3')];_0xc69157[_0x22c5('0x5')][_0x22c5('0x2')](_0x22c5('0x4'))&&_0xc69157[_0x22c5('0x5')][_0x22c5('0x6')](_0x22c5('0x1'))[_0x22c5('0x0')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19f4=['pageBreak','afterInit','get','enableCommand','editor','TrackChangesEditing','plugins','registerElementLabel','ELEMENT_PAGE_BREAK','locale'];(function(_0x59e462,_0x19f4fd){const _0xadd29b=function(_0x2de47d){while(--_0x2de47d){_0x59e462['push'](_0x59e462['shift']());}};_0xadd29b(++_0x19f4fd);}(_0x19f4,0x1dd));const _0xadd2=function(_0x59e462,_0x19f4fd){_0x59e462=_0x59e462-0x0;let _0xadd29b=_0x19f4[_0x59e462];return _0xadd29b;};import{Plugin as _0x5c4f0a}from'ckeditor5/src/core';import{getTranslation as _0x1bba73}from'../utils/common-translations';export default class at extends _0x5c4f0a{[_0xadd2('0x4')](){const _0x5b75a8=this[_0xadd2('0x7')];if(!_0x5b75a8['plugins']['has']('PageBreakEditing'))return;_0x5b75a8[_0xadd2('0x9')][_0xadd2('0x5')]('TrackChangesEditing')[_0xadd2('0x6')](_0xadd2('0x3'));const _0x52d4d6=_0x5b75a8[_0xadd2('0x9')][_0xadd2('0x5')](_0xadd2('0x8')),_0xca40e2=_0x5b75a8[_0xadd2('0x2')];_0x52d4d6['_descriptionFactory'][_0xadd2('0x0')]('pageBreak',_0x1cc1a7=>_0x1bba73(_0xca40e2,_0xadd2('0x1'),_0x1cc1a7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5060=['end','has','isLimit','insertParagraph','includes','TrackChangesEditing','editor','enableCommand','addClass','activeMarkers','selection','blockName','consumable','markerName','mapper','options','highest','document','ELEMENT_PARAGRAPH','name','locale','registerDescriptionCallback','filter','paragraph','downcastDispatcher','Paragraph','$text','insert','markBlockFormat','writer','registerElementLabel','getSelectedBlocks','addMarker:suggestion:insertion','editing','markerRange','toViewPosition','insertion','get','bindElementToMarker','model','ck-suggestion-marker--active','nodeAfter','commandName','getFirstRange','isBlock','from','checkChild','isObject','span','isTouching','plugins','createUIElement','change','schema','parent','_descriptionFactory','data','showSuggestionHighlights'];(function(_0x31aed5,_0x506063){const _0x2824fe=function(_0x41f4eb){while(--_0x41f4eb){_0x31aed5['push'](_0x31aed5['shift']());}};_0x2824fe(++_0x506063);}(_0x5060,0x134));const _0x2824=function(_0x31aed5,_0x506063){_0x31aed5=_0x31aed5-0x0;let _0x2824fe=_0x5060[_0x31aed5];return _0x2824fe;};import{Plugin as _0x55f05d}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5d0861}from'./utils';import{getTranslation as _0x12ed90}from'../utils/common-translations';export default class ct extends _0x55f05d{['afterInit'](){const _0xa6899f=this[_0x2824('0x2e')];if(!_0xa6899f['plugins'][_0x2824('0x29')](_0x2824('0x7')))return;const _0x24afc9=_0xa6899f[_0x2824('0x2')],_0x17442b=_0xa6899f[_0x2824('0x20')][_0x2824('0x13')](_0x2824('0x2d'));_0x17442b[_0x2824('0x25')][_0x2824('0xc')]('paragraph',_0x39804f=>_0x12ed90(_0x24afc9,_0x2824('0x0'),_0x39804f)),_0x17442b['enableCommand'](_0x2824('0x5'),(_0x5c65d1,_0xd42fda={})=>{const _0x2027d6=_0xa6899f[_0x2824('0x15')][_0x2824('0x39')],_0x3de269=_0xd42fda[_0x2824('0x32')]||_0x2027d6[_0x2824('0x32')],_0x3b44b2=Array[_0x2824('0x1b')](_0x3de269[_0x2824('0xd')]())[_0x2824('0x4')](_0x3b2ad5=>function(_0x4acbcd,_0x462e53){return _0x462e53[_0x2824('0x1c')](_0x4acbcd[_0x2824('0x24')],_0x2824('0x5'))&&!_0x462e53[_0x2824('0x1d')](_0x4acbcd)&&_0x2824('0x5')!=_0x4acbcd[_0x2824('0x1')];}(_0x3b2ad5,this[_0x2824('0x2e')][_0x2824('0x15')][_0x2824('0x23')]));_0xa6899f[_0x2824('0x15')][_0x2824('0x22')](()=>{for(const _0xe3ad24 of _0x3b44b2)_0x17442b[_0x2824('0xa')](_0xe3ad24,{'commandName':_0x2824('0x5'),'commandParams':[],'formatGroupId':_0x2824('0x33')},_0x5d0861(_0xe3ad24));});}),_0x17442b['_descriptionFactory'][_0x2824('0x3')](_0x2ff4ee=>{const {data:_0x3c2e4f}=_0x2ff4ee;if(_0x3c2e4f&&'paragraph'==_0x3c2e4f[_0x2824('0x18')])return{'type':'format','content':_0x12ed90(_0x24afc9,'*Change\x20to:*\x20%0',_0x12ed90(_0x24afc9,_0x2824('0x0')))};}),_0x17442b[_0x2824('0x2f')](_0x2824('0x2b')),_0xa6899f[_0x2824('0xf')]['downcastDispatcher']['on'](_0x2824('0xe'),ar(_0xa6899f),{'priority':_0x2824('0x38')}),_0xa6899f[_0x2824('0x26')][_0x2824('0x6')]['on'](_0x2824('0xe'),(_0x2e2de1,_0x265044,_0x90033d)=>{_0x90033d[_0x2824('0x37')][_0x2824('0x27')]&&ar(_0xa6899f,{'showActiveMarker':!0x1})(_0x2e2de1,_0x265044,_0x90033d);},{'priority':'highest'});const _0x341c77=_0x17442b['_descriptionFactory'];_0x341c77[_0x2824('0x3')](_0xf85baf=>{if(_0x2824('0x12')!==_0xf85baf['type'])return;const {start:_0x3dd3f8,end:_0x5dbd31}=_0xf85baf[_0x2824('0x19')]();if(!_0x3dd3f8[_0x2824('0x1f')](_0x5dbd31)||!_0x3dd3f8[_0x2824('0x17')])return;const _0x335da6=_0xa6899f[_0x2824('0x15')][_0x2824('0x23')],_0x64dab7=_0x3dd3f8['nodeAfter'];return _0x335da6[_0x2824('0x1a')](_0x64dab7)&&!_0x335da6[_0x2824('0x2a')](_0x64dab7)&&_0x335da6[_0x2824('0x1c')](_0x64dab7,_0x2824('0x8'))?{'type':_0x2824('0x12'),'content':_0x12ed90(_0x24afc9,'*Insert:*\x20%0',_0x341c77['getItemLabel'](_0x64dab7,0x1))}:void 0x0;});}}function ar(_0x4eb370,{showActiveMarker:_0x14c7ff=!0x0}={}){return(_0x402b6f,_0x3f615d,_0x489ed0)=>{const _0x483f2c=_0x4eb370[_0x2824('0x20')][_0x2824('0x13')](_0x2824('0x2d')),_0x5207ab=_0x3f615d[_0x2824('0x10')]['start'],_0x561b61=_0x3f615d['markerRange'][_0x2824('0x28')],_0x3ec72a=_0x4eb370[_0x2824('0x15')]['schema'];if(!_0x5207ab[_0x2824('0x1f')](_0x561b61)||!_0x5207ab[_0x2824('0x17')])return;const _0x5cb438=_0x5207ab[_0x2824('0x17')];if(_0x3ec72a[_0x2824('0x1a')](_0x5cb438)&&!_0x3ec72a[_0x2824('0x2a')](_0x5cb438)&&_0x3ec72a['checkChild'](_0x5cb438,'$text')){if(!_0x489ed0[_0x2824('0x34')]['consume'](_0x3f615d['markerRange'],_0x402b6f['name']))return;const _0x1656b3=_0x489ed0['writer'][_0x2824('0x21')](_0x2824('0x1e'),{'class':'ck-suggestion-marker-split'}),_0x366820=_0x489ed0[_0x2824('0x36')][_0x2824('0x11')](_0x561b61);_0x14c7ff&&_0x483f2c[_0x2824('0x31')][_0x2824('0x2c')](_0x3f615d[_0x2824('0x35')])&&_0x489ed0[_0x2824('0xb')][_0x2824('0x30')](_0x2824('0x16'),_0x1656b3),_0x489ed0[_0x2824('0xb')][_0x2824('0x9')](_0x366820,_0x1656b3),_0x489ed0[_0x2824('0x36')][_0x2824('0x14')](_0x1656b3,_0x3f615d[_0x2824('0x35')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4533=['from','commandName','getRanges','locale','isFormatting','enableCommand','_descriptionFactory','change','isCollapsed','get','TrackChangesEditing','getAttributes','getAttributeProperties','editor','plugins','registerDescriptionCallback','format','markInlineFormat','schema','model','getItems','RemoveFormatEditing','*Remove\x20all\x20formatting*','removeFormat','selection','has'];(function(_0x3900ef,_0x45337d){const _0x201123=function(_0x2aaa11){while(--_0x2aaa11){_0x3900ef['push'](_0x3900ef['shift']());}};_0x201123(++_0x45337d);}(_0x4533,0x72));const _0x2011=function(_0x3900ef,_0x45337d){_0x3900ef=_0x3900ef-0x0;let _0x201123=_0x4533[_0x3900ef];return _0x201123;};import{Plugin as _0x58fcd0}from'ckeditor5/src/core';import{getTranslation as _0x3e5fe7}from'../utils/common-translations';export default class ht extends _0x58fcd0{['afterInit'](){const _0x435539=this[_0x2011('0x3')];if(!_0x435539[_0x2011('0x4')][_0x2011('0xf')](_0x2011('0xb')))return;const _0x39bf3f=_0x435539[_0x2011('0x4')][_0x2011('0x19')](_0x2011('0x0'));_0x39bf3f[_0x2011('0x15')](_0x2011('0xd'),_0x2eb7ee=>{const _0x5e5a18=_0x435539[_0x2011('0x9')]['document'][_0x2011('0xe')];_0x5e5a18[_0x2011('0x18')]?_0x2eb7ee():_0x435539[_0x2011('0x9')][_0x2011('0x17')](()=>{const _0x367787=Array[_0x2011('0x10')](_0x5e5a18[_0x2011('0x12')]());for(const _0x2648d9 of _0x367787)for(const _0xe26442 of _0x2648d9[_0x2011('0xa')]())eo(_0xe26442,_0x435539['model'][_0x2011('0x8')])&&_0x39bf3f[_0x2011('0x7')](_0x435539[_0x2011('0x9')]['createRangeOn'](_0xe26442),{'commandName':_0x2011('0xd'),'commandParams':[]});});}),_0x39bf3f[_0x2011('0x16')][_0x2011('0x5')](_0x1e19c8=>{const {data:_0x286b81}=_0x1e19c8;if(_0x286b81&&_0x2011('0xd')==_0x286b81[_0x2011('0x11')])return{'type':_0x2011('0x6'),'content':_0x3e5fe7(_0x435539[_0x2011('0x13')],_0x2011('0xc'))};});}}function eo(_0x3d24ae,_0x55e7b2){for(const [_0x1bb32d]of _0x3d24ae[_0x2011('0x1')]()){const _0x160d2c=_0x55e7b2[_0x2011('0x2')](_0x1bb32d);if(_0x160d2c&&_0x160d2c[_0x2011('0x14')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x410a=['afterInit','enableCommand','plugins','discardAllSuggestions','discardSelectedSuggestions','get','TrackChangesEditing','has','RestrictedEditingModeEditing','acceptAllSuggestions','trackChanges'];(function(_0x383b97,_0x410adc){const _0x74f019=function(_0x27d713){while(--_0x27d713){_0x383b97['push'](_0x383b97['shift']());}};_0x74f019(++_0x410adc);}(_0x410a,0x72));const _0x74f0=function(_0x383b97,_0x410adc){_0x383b97=_0x383b97-0x0;let _0x74f019=_0x410a[_0x383b97];return _0x74f019;};import{Plugin as _0x139032}from'ckeditor5/src/core';export default class ut extends _0x139032{[_0x74f0('0x7')](){const _0x5d3b82=this['editor'];if(!_0x5d3b82[_0x74f0('0x9')][_0x74f0('0x3')](_0x74f0('0x4')))return;const _0x5ae127=_0x5d3b82[_0x74f0('0x9')][_0x74f0('0x1')](_0x74f0('0x2'));_0x5ae127[_0x74f0('0x8')]('goToPreviousRestrictedEditingException'),_0x5ae127[_0x74f0('0x8')]('goToNextRestrictedEditingException');const _0x4c9309=_0x5d3b82['plugins'][_0x74f0('0x1')](_0x74f0('0x4'));_0x4c9309[_0x74f0('0x8')](_0x74f0('0x6')),_0x4c9309['enableCommand']('acceptSuggestion'),_0x4c9309[_0x74f0('0x8')]('discardSuggestion'),_0x4c9309['enableCommand'](_0x74f0('0x5')),_0x4c9309['enableCommand'](_0x74f0('0xa')),_0x4c9309[_0x74f0('0x8')]('acceptSelectedSuggestions'),_0x4c9309[_0x74f0('0x8')](_0x74f0('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3033=['addMarker:suggestion:insertion','span','high','showSuggestionHighlights','editor','getItems','data','merge','mapper','enableCommand','_descriptionFactory','includes','createPositionBefore','model','locale','addClass','activeMarkers','options','toViewPosition','downcastDispatcher','split','TrackChangesEditing','deletion','addMarker:suggestion','consumable','writer','markerRange','markerName','element','softBreak','ck-suggestion-marker-','createUIElement','test','ck-suggestion-marker--active','insert','plugins','editing','get','requires','registerElementLabel','init','addMarker:suggestion:deletion','bindElementToMarker'];(function(_0xb8ed75,_0x303365){const _0x15a384=function(_0x2d87cd){while(--_0x2d87cd){_0xb8ed75['push'](_0xb8ed75['shift']());}};_0x15a384(++_0x303365);}(_0x3033,0x94));const _0x15a3=function(_0xb8ed75,_0x303365){_0xb8ed75=_0xb8ed75-0x0;let _0x15a384=_0x3033[_0xb8ed75];return _0x15a384;};import{Plugin as _0x2a1e2d}from'ckeditor5/src/core';import{ShiftEnter as _0x439279}from'ckeditor5/src/enter';import{getTranslation as _0x426e9c}from'../utils/common-translations';export default class ft extends _0x2a1e2d{static get[_0x15a3('0x13')](){return[_0x439279];}[_0x15a3('0x15')](){const _0x136a1b=this[_0x15a3('0x1c')],_0xb5e51b=_0x136a1b[_0x15a3('0x10')][_0x15a3('0x12')](_0x15a3('0x2'));_0xb5e51b[_0x15a3('0x21')]('shiftEnter'),_0x136a1b[_0x15a3('0x11')][_0x15a3('0x0')]['on'](_0x15a3('0x18'),re(_0x136a1b),{'priority':'high'}),_0x136a1b[_0x15a3('0x11')][_0x15a3('0x0')]['on'](_0x15a3('0x16'),re(_0x136a1b),{'priority':_0x15a3('0x1a')}),_0x136a1b[_0x15a3('0x1e')][_0x15a3('0x0')]['on'](_0x15a3('0x4'),(_0x70a1b8,_0x594a68,_0x2ad559)=>{_0x2ad559[_0x15a3('0x29')][_0x15a3('0x1b')]&&re(_0x136a1b,{'showActiveMarker':!0x1})(_0x70a1b8,_0x594a68,_0x2ad559);}),_0xb5e51b[_0x15a3('0x22')][_0x15a3('0x14')](_0x15a3('0xa'),_0x1e4d1c=>_0x426e9c(_0x136a1b[_0x15a3('0x26')],'ELEMENT_LINE_BREAK',_0x1e4d1c));}}function re(_0x1785b0,{showActiveMarker:_0x59b026=!0x0}={}){return(_0x485799,_0x1316ed,_0x37d690)=>{const _0x174b08=_0x1785b0['plugins'][_0x15a3('0x12')](_0x15a3('0x2'));if(!_0x37d690[_0x15a3('0x5')][_0x15a3('0xd')](_0x1316ed[_0x15a3('0x7')],_0x485799['name']))return;const _0xda7754=_0x1785b0[_0x15a3('0x25')];for(const _0xe75c13 of _0x1316ed['markerRange'][_0x15a3('0x1d')]()){if(!_0xe75c13['is'](_0x15a3('0x9'),'softBreak'))continue;const _0x4d2147=_0x15a3('0x3')==_0x1316ed[_0x15a3('0x8')][_0x15a3('0x1')](':')[0x1]?_0x15a3('0x1f'):_0x15a3('0x1'),_0x2dcd19=_0x37d690[_0x15a3('0x6')][_0x15a3('0xc')](_0x15a3('0x19'),{'class':_0x15a3('0xb')+_0x4d2147}),_0x470a85=_0x37d690['mapper'][_0x15a3('0x2a')](_0xda7754[_0x15a3('0x24')](_0xe75c13));_0x59b026&&_0x174b08[_0x15a3('0x28')][_0x15a3('0x23')](_0x1316ed[_0x15a3('0x8')])&&_0x37d690[_0x15a3('0x6')][_0x15a3('0x27')](_0x15a3('0xe'),_0x2dcd19),_0x37d690[_0x15a3('0x6')][_0x15a3('0xf')](_0x470a85,_0x2dcd19),_0x37d690[_0x15a3('0x20')][_0x15a3('0x17')](_0x2dcd19,_0x1316ed[_0x15a3('0x8')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54df=['getRanges','markInlineFormat','FORMAT_RESTRICTED_DISABLED','registerDescriptionCallback','plugins','model','change','from','commandName','FORMAT_RESTRICTED_ENABLED','selection','format','forceValue','StandardEditingModeEditing','enableCommand','editor','commandParams','isCollapsed','has','locale','value','afterInit','get','document'];(function(_0x3e0734,_0x54dfbb){const _0x1149e1=function(_0x1fbc28){while(--_0x1fbc28){_0x3e0734['push'](_0x3e0734['shift']());}};_0x1149e1(++_0x54dfbb);}(_0x54df,0x168));const _0x1149=function(_0x3e0734,_0x54dfbb){_0x3e0734=_0x3e0734-0x0;let _0x1149e1=_0x54df[_0x3e0734];return _0x1149e1;};import{Plugin as _0x2bed77}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x5bc374}from'./utils';import{getTranslation as _0x4abdd0}from'../utils/common-translations';export default class lt extends _0x2bed77{[_0x1149('0x15')](){const _0x5e06f8=this[_0x1149('0xf')],_0x52c83d=_0x5e06f8[_0x1149('0x5')],_0x3f1be9=_0x5e06f8[_0x1149('0x13')];if(!_0x5e06f8[_0x1149('0x4')][_0x1149('0x12')](_0x1149('0xd')))return;const _0x49c5f1=_0x5e06f8['plugins'][_0x1149('0x16')]('TrackChangesEditing'),_0x3e0d8e='restrictedEditingException',_0x5938c6=_0x5e06f8['commands'][_0x1149('0x16')](_0x3e0d8e);_0x49c5f1[_0x1149('0xe')](_0x3e0d8e,(_0x4f6364,_0x200bf7={})=>{const _0x433346=_0x52c83d[_0x1149('0x17')][_0x1149('0xa')];if(_0x433346[_0x1149('0x11')])return void _0x4f6364(_0x200bf7);const _0x466bc7=void 0x0!==_0x200bf7[_0x1149('0xc')]?_0x200bf7[_0x1149('0xc')]:!_0x5938c6[_0x1149('0x14')];_0x52c83d[_0x1149('0x6')](()=>{const _0xd4453c=Array[_0x1149('0x7')](_0x433346[_0x1149('0x0')]());for(const _0x2d4ea2 of _0xd4453c){const _0x31d425=_0x466bc7?[_0x2d4ea2]:_0x5bc374(_0x3e0d8e,_0x2d4ea2,_0x52c83d);for(const _0x36cac8 of _0x31d425)_0x49c5f1[_0x1149('0x1')](_0x36cac8,{'commandName':_0x3e0d8e,'commandParams':[{'forceValue':_0x466bc7}]});}});}),_0x49c5f1['_descriptionFactory'][_0x1149('0x3')](_0x20e524=>{const {data:_0x538894}=_0x20e524;if(_0x538894&&_0x538894[_0x1149('0x8')]==_0x3e0d8e)return _0x538894[_0x1149('0x10')][0x0][_0x1149('0xc')]?{'type':'format','content':_0x4abdd0(_0x3f1be9,_0x1149('0x9'))}:{'type':_0x1149('0xb'),'content':_0x4abdd0(_0x3f1be9,_0x1149('0x2'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x311a=['markInlineFormat','markBlockFormat','has','element','get','getItems','change','enabledStyles','_getRangesWithClasses','includes','from','format','*Format:*\x20%0','classes','value','name','model','Style','block','commandName','_getStyleDefinition','toLowerCase','forceValue','plugins','document','registerDescriptionCallback','commandParams','enableCommand','getAncestors','normalizeConfig','styleName','editor','commands','style','isBlock','DataSchema','push','modelElements','isCollapsed','getDefinitionsForView','createRangeOn','every'];(function(_0x41100f,_0x311a35){const _0x4586fb=function(_0xe39549){while(--_0xe39549){_0x41100f['push'](_0x41100f['shift']());}};_0x4586fb(++_0x311a35);}(_0x311a,0x175));const _0x4586=function(_0x41100f,_0x311a35){_0x41100f=_0x41100f-0x0;let _0x4586fb=_0x311a[_0x41100f];return _0x4586fb;};import{Plugin as _0x5affdb}from'ckeditor5/src/core';import{getTranslation as _0xf4f2a5}from'../utils/common-translations';export default class gt extends _0x5affdb{['afterInit'](){const _0x5cc5b8=this[_0x4586('0x24')];if(!_0x5cc5b8['plugins'][_0x4586('0x7')](_0x4586('0x16')))return;const _0x5bd3c6=_0x5cc5b8[_0x4586('0x25')]['get'](_0x4586('0x26')),_0x367686=_0x5cc5b8[_0x4586('0x1c')][_0x4586('0x9')]('TrackChangesEditing'),_0x29456f=_0x5cc5b8['locale'],_0x24a776=_0x5cc5b8[_0x4586('0x1c')][_0x4586('0x9')](_0x4586('0x28')),_0x1bee00=_0x5cc5b8[_0x4586('0x1c')]['get']('StyleUtils')[_0x4586('0x22')](_0x24a776,_0x5cc5b8['config'][_0x4586('0x9')]('style.definitions'));_0x367686[_0x4586('0x20')](_0x4586('0x26'),(_0x529a22,{styleName:_0x466b2f})=>{const _0x76eebc=_0x5cc5b8[_0x4586('0x15')][_0x4586('0x1d')]['selection'],_0x29c990=this[_0x4586('0x19')](_0x466b2f,_0x1bee00);if(!_0x29c990)return;if(!_0x5bd3c6[_0x4586('0xc')][_0x4586('0xe')](_0x466b2f))return;if(_0x76eebc[_0x4586('0x1')]&&!_0x29c990[_0x4586('0x27')])return void _0x529a22({'styleName':_0x466b2f});const _0x53338e=!_0x5bd3c6[_0x4586('0x13')][_0x4586('0xe')](_0x29c990[_0x4586('0x14')]);if(_0x29c990[_0x4586('0x27')]){const _0x1c6b07=function(_0x20de2a,_0x2cd825){const _0x1d194a=new Set();for(const _0x593b34 of _0x20de2a){const _0x36a403=_0x593b34[_0x4586('0x21')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x2d0efe of _0x36a403)if(_0x2cd825[_0x4586('0xe')](_0x2d0efe['name'])){_0x1d194a['add'](_0x2d0efe);break;}}return _0x1d194a;}(_0x76eebc['getSelectedBlocks'](),_0x29c990[_0x4586('0x0')]);_0x5cc5b8[_0x4586('0x15')]['change'](()=>{for(const _0xdd4a89 of _0x1c6b07)_0x367686[_0x4586('0x6')](_0xdd4a89,{'commandName':_0x4586('0x26'),'commandParams':[{'styleName':_0x466b2f,'forceValue':_0x53338e}],'formatGroupId':'style:'+_0x466b2f});});}else{let _0xce39cb=Array[_0x4586('0xf')](_0x76eebc['getRanges']());if(!_0x53338e){const _0xafb507=Array[_0x4586('0xf')](_0x24a776[_0x4586('0x2')](_0x29c990[_0x4586('0x8')],!0x1))[0x0][_0x4586('0x15')],_0x1027b1=[];for(const _0x44bbd3 of _0xce39cb){const _0x2b34c2=this[_0x4586('0xd')](_0x5cc5b8['model'],_0x44bbd3,_0x29c990[_0x4586('0x12')],_0xafb507);_0x1027b1[_0x4586('0x29')](..._0x2b34c2);}_0xce39cb=_0x1027b1;}_0x5cc5b8[_0x4586('0x15')][_0x4586('0xb')](()=>{for(const _0x16f4dd of _0xce39cb)_0x367686[_0x4586('0x5')](_0x16f4dd,{'commandName':'style','commandParams':[{'styleName':_0x466b2f,'forceValue':_0x53338e}]});});}}),_0x367686['_descriptionFactory'][_0x4586('0x1e')](_0x2580b8=>{const {data:_0x1af7a3}=_0x2580b8;if(_0x1af7a3&&_0x4586('0x26')===_0x1af7a3[_0x4586('0x18')])return _0x1af7a3[_0x4586('0x1f')][0x0][_0x4586('0x1b')]?{'type':_0x4586('0x10'),'content':_0xf4f2a5(_0x29456f,_0x4586('0x11'),_0x1af7a3[_0x4586('0x1f')][0x0][_0x4586('0x23')][_0x4586('0x1a')]())}:{'type':_0x4586('0x10'),'content':_0xf4f2a5(_0x29456f,'*Remove\x20format:*\x20%0',_0x1af7a3[_0x4586('0x1f')][0x0][_0x4586('0x23')]['toLowerCase']())};});}[_0x4586('0x19')](_0x45d674,_0x94b98b){let _0x1dc757=_0x94b98b[_0x4586('0x17')]['find'](_0x333512=>_0x333512[_0x4586('0x14')]===_0x45d674);return _0x1dc757||(_0x1dc757=_0x94b98b['inline']['find'](_0x136a17=>_0x136a17[_0x4586('0x14')]===_0x45d674)),_0x1dc757;}['_getRangesWithClasses'](_0x5449b8,_0x42c42b,_0x4c9a9a,_0x11dc32){const _0x53ceec=[];for(const _0x197625 of _0x42c42b[_0x4586('0xa')]()){const _0x191014=_0x197625['getAttribute'](_0x11dc32);_0x191014&&(_0x4c9a9a[_0x4586('0x4')](_0x2947f3=>_0x191014[_0x4586('0x12')]['includes'](_0x2947f3))&&_0x53ceec[_0x4586('0x29')](_0x5449b8[_0x4586('0x3')](_0x197625)));}return _0x53ceec;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2292=['options','type','TrackChangesEditing','markMultiRangeDeletion','document','oldRange','insertTableColumnLeft','join','discard','cell','addClass','classes','_getSuggestionCoords','table','has','tableRow','nodeAfter','first','name','_descriptionFactory','detach','maxColumn','removeClass','every','TableUtils','map','above','min','some','plugins','locale','fromRange','includes','add','model','afterInit','length','addMarker:suggestion','*Insert:*\x20%0','insertTableColumnRight','tableCell','startsWith','suggestion','getRanges','_tablePostFixingSubtypes','$textProxy','toLowerCase','getChanges','ELEMENT_TABLE_COLUMN','ELEMENT_TABLE_ROW_WITH_TEXT','last','max','enableCommand','tablePaste','_suggestionFactory','_getCoordsForCells','getSelectionAffectedTableCells','push','showSuggestionHighlights','isTouching','hasAttribute','*Remove:*\x20%0','change','_acceptFormatSuggestionCallbackFactory','colspan','from','values','removeTableRow','markMultiRangeInsertion','filter','ELEMENT_TABLE_WITH_TEXT','start','selectTableColumn','setSelection','deletion','MIN_SAFE_INTEGER','isArray','span','rootName','addRange','forceValue','end','editor','get','_setupColumnsRowsFixing','position','selectTableRow','insertTable','order','item','getColumnIndexes','isInContent','tableColumn','highest','$graveyard','_tableSuggestions','element','createTableWalker','_splitMarkerName','data','refresh','maxRow','ELEMENT_TABLE','removeTableColumn','createRangeIn','insertion','registerCustomCallback','getItems','getSuggestion','low','getCellLocation','substr','ELEMENT_TABLE_ROW','enqueueChange','differ','findAncestor','registerElementLabel','root','registerDescriptionCallback','accept','selection','createRangeOn','mapper','getFirstRange','ELEMENT_TABLE_COLUMN_WITH_TEXT','getAttribute','left','commands','subType','change:data','getContainedElement','execute','writer','minColumn'];(function(_0x469ce1,_0x2292c8){const _0x46117a=function(_0x4d322e){while(--_0x4d322e){_0x469ce1['push'](_0x469ce1['shift']());}};_0x46117a(++_0x2292c8);}(_0x2292,0x18c));const _0x4611=function(_0x469ce1,_0x2292c8){_0x469ce1=_0x469ce1-0x0;let _0x46117a=_0x2292[_0x469ce1];return _0x46117a;};import{Plugin as _0x2416be}from'ckeditor5/src/core';import{LiveRange as _0x1bbda1}from'ckeditor5/src/engine';import{setHighlightHandling as _0x5a665d}from'ckeditor5/src/widget';import{getTranslation as _0xf8203}from'../utils/common-translations';export default class mt extends _0x2416be{constructor(_0x1ab8e4){super(_0x1ab8e4),this[_0x4611('0x32')]=['tableRow',_0x4611('0x62')],this['_tableSuggestions']=new Set();}[_0x4611('0x29')](){const _0xb444eb=this[_0x4611('0x58')],_0x50647b=_0xb444eb[_0x4611('0x28')]['document']['selection'];if(!_0xb444eb[_0x4611('0x23')][_0x4611('0x14')]('TableEditing'))return;const _0x2a4afa=_0xb444eb[_0x4611('0x24')],_0x584584=_0xb444eb[_0x4611('0x23')][_0x4611('0x59')](_0x4611('0x8')),_0x281bb7=_0xb444eb[_0x4611('0x23')][_0x4611('0x59')](_0x4611('0x1e'));_0x584584['_descriptionFactory'][_0x4611('0x7a')]('table',_0x29c11e=>_0xf8203(_0x2a4afa,_0x4611('0x6c'),_0x29c11e)),this[_0x4611('0x5a')](),_0x584584[_0x4611('0x3a')](_0x4611('0x5d')),_0x584584[_0x4611('0x3a')](_0x4611('0x5c')),_0x584584[_0x4611('0x3a')](_0x4611('0x4e'));for(const _0x22eaea of['insertTableRowAbove','insertTableRowBelow']){const _0x487996=_0xb444eb[_0x4611('0x85')][_0x4611('0x59')](_0x22eaea);_0x584584[_0x4611('0x3a')](_0x22eaea,_0x2d370e=>{_0xb444eb[_0x4611('0x28')][_0x4611('0x44')](_0xbc5e8a=>{_0x2d370e();const _0x4efa48=_0x4611('0x20')===_0x487996[_0x4611('0x5e')],_0x47faf2=_0x281bb7['getSelectionAffectedTableCells'](_0x50647b),_0x339f4f=_0x281bb7['getRowIndexes'](_0x47faf2),_0x55edd6=_0x4efa48?_0x339f4f[_0x4611('0x17')]-0x1:_0x339f4f[_0x4611('0x38')]+0x1,_0x658193=_0x47faf2[0x0][_0x4611('0x79')](_0x4611('0x13')),_0x1b60c5=_0x281bb7['createTableWalker'](_0x658193,{'startRow':_0x55edd6,'endRow':_0x55edd6}),_0xceecae=Array['from'](_0x1b60c5)['map'](_0x10232e=>_0xbc5e8a['createRangeOn'](_0x10232e[_0x4611('0xf')]));_0x584584[_0x4611('0x4a')](_0xceecae,'tableRow');});});}for(const _0x36b782 of[_0x4611('0xc'),_0x4611('0x2d')]){const _0x2a6a58=_0xb444eb['commands'][_0x4611('0x59')](_0x36b782);_0x584584['enableCommand'](_0x36b782,_0x22cda6=>{_0xb444eb[_0x4611('0x28')]['change'](_0x4db0b7=>{_0x22cda6();const _0x3aa146=_0x4611('0x84')===_0x2a6a58[_0x4611('0x5e')],_0x13cff5=_0x281bb7[_0x4611('0x3e')](_0x50647b),_0x2d45dd=_0x281bb7[_0x4611('0x60')](_0x13cff5),_0x229fc4=_0x3aa146?_0x2d45dd['first']-0x1:_0x2d45dd[_0x4611('0x38')]+0x1,_0x31ce64=_0x13cff5[0x0][_0x4611('0x79')]('table'),_0x48a7b2=_0x281bb7[_0x4611('0x67')](_0x31ce64,{'startRow':0x0,'column':_0x229fc4,'includeAllSlots':!0x1}),_0x360dd9=Array[_0x4611('0x47')](_0x48a7b2)[_0x4611('0x1f')](_0x13bace=>_0x4db0b7[_0x4611('0x7f')](_0x13bace[_0x4611('0xf')]));_0x584584['markMultiRangeInsertion'](_0x360dd9,'tableColumn');});});}for(const _0x4d99ef of[_0x4611('0x49'),_0x4611('0x6d')]){const _0x398012=_0x4d99ef[_0x4611('0x75')](0xb),_0x3eeb8f=_0x398012['toLowerCase'](),_0x32dc79=_0x3eeb8f[_0x4611('0x75')](0x0,0x3)+_0x4611('0x53'),_0x181a19=_0x4611('0x13')+_0x398012,_0x369863=_0x4611('0x21')+_0x398012,_0xe7601=_0x4611('0x39')+_0x398012;_0x584584['enableCommand'](_0x4d99ef,()=>{_0xb444eb[_0x4611('0x28')][_0x4611('0x44')](_0x11f15e=>{const _0xf94bb9=_0x281bb7[_0x4611('0x3e')](_0x50647b),_0x3a7385=_0xf94bb9[0x0][_0x4611('0x79')]('table');let _0xbae6fc;if(_0x4611('0x49')==_0x4d99ef){const _0x45c7d2=_0x281bb7['getRowIndexes'](_0xf94bb9);_0xbae6fc={'startRow':_0x45c7d2[_0x4611('0x17')],'endRow':_0x45c7d2[_0x4611('0x38')],'includeAllSlots':!0x0};}else{const _0x1f6e35=_0x281bb7[_0x4611('0x60')](_0xf94bb9);_0xbae6fc={'startColumn':_0x1f6e35[_0x4611('0x17')],'endColumn':_0x1f6e35['last'],'includeAllSlots':!0x0};}const _0x3eb5dc=_0x281bb7[_0x4611('0x67')](_0x3a7385,_0xbae6fc),_0x39a75d=Array[_0x4611('0x47')](_0x3eb5dc)[_0x4611('0x1f')](({cell:_0x969b89})=>_0x969b89),_0x414b0b=se(_0x39a75d[_0x4611('0x4b')](_0x21201e=>_0x21201e[_0x4611('0x42')](_0x32dc79))),_0x7a0ab6=se(_0x39a75d[_0x4611('0x4b')](_0x32da42=>!_0x32da42[_0x4611('0x42')](_0x32dc79)))[_0x4611('0x1f')](_0x496566=>_0x11f15e[_0x4611('0x7f')](_0x496566)),_0xba9817=_0x584584[_0x4611('0x9')](_0x7a0ab6,_0x181a19);if(_0xba9817&&(_0x4611('0x15')==_0xba9817[_0x4611('0x0')]||_0x4611('0x62')==_0xba9817[_0x4611('0x0')])){const _0x2a0bbd=this[_0x4611('0x12')](_0xba9817);for(const _0x413e53 of _0x414b0b){const _0x374249=_0x11f15e['createRangeOn'](_0x413e53),_0x3664e7=_0x281bb7['getCellLocation'](_0x413e53),_0x3b3e7e=_0x413e53[_0x4611('0x83')](_0x32dc79)-0x1,_0x5a8740=_0x2a0bbd[_0x369863],_0x3b86f9=_0x2a0bbd[_0xe7601];_0x5a8740<=_0x3664e7[_0x3eeb8f]&&_0x3664e7[_0x3eeb8f]+_0x3b3e7e<=_0x3b86f9&&_0xba9817[_0x4611('0x55')](_0x374249);}}});});}function _0x328d9f(_0x172ed5){const _0x4a5202=Array['from'](_0x50647b[_0x4611('0x31')]())[_0x4611('0x1f')](_0x18c3d1=>_0x1bbda1[_0x4611('0x25')](_0x18c3d1));_0xb444eb[_0x4611('0x28')][_0x4611('0x44')](_0x4249b3=>{const _0x3c09cd=_0x4249b3['batch'];_0x172ed5=_0x172ed5[_0x4611('0x4b')](_0x1fc7dd=>_0x4611('0x64')!=_0x1fc7dd[_0x4611('0x7b')][_0x4611('0x54')]),_0x4249b3['setSelection'](_0x172ed5),_0xb444eb[_0x4611('0x85')][_0x4611('0x59')](_0x4611('0x49'))[_0x4611('0x6a')](),_0xb444eb['execute'](_0x4611('0x49'),{'forceDefaultExecution':!0x0}),_0xb444eb[_0x4611('0x28')][_0x4611('0x77')](()=>{_0xb444eb[_0x4611('0x28')][_0x4611('0x77')](_0x3c09cd,_0x3d21d1=>{const _0x5e4783=_0x4a5202[_0x4611('0x4b')](_0x35acf5=>'$graveyard'!=_0x35acf5['root'][_0x4611('0x54')]);_0x5e4783[_0x4611('0x2a')]>0x0&&_0x3d21d1[_0x4611('0x4f')](_0x5e4783);for(const _0x271e29 of _0x4a5202)_0x271e29['detach']();});});});}function _0x36278f(_0x12c9bb){_0xb444eb[_0x4611('0x28')][_0x4611('0x44')](_0x1e3071=>{const _0x54aa6c=Array[_0x4611('0x47')](_0x50647b['getRanges']())['map'](_0x5b0ab2=>_0x1bbda1[_0x4611('0x25')](_0x5b0ab2)),_0x3454e1=[];for(const _0x4f01e5 of _0x12c9bb)for(const _0x36403f of _0x4f01e5[_0x4611('0x71')]({'shallow':!0x0}))_0x3454e1['push'](_0x36403f);for(const _0x1c4dcf of _0x3454e1)_0x4611('0x64')!=_0x1c4dcf['root'][_0x4611('0x54')]&&(_0x1e3071[_0x4611('0x4f')](_0x1e3071['createPositionAt'](_0x1c4dcf,0x0)),_0xb444eb[_0x4611('0x85')][_0x4611('0x59')]('removeTableColumn')[_0x4611('0x6a')](),_0xb444eb[_0x4611('0x3')](_0x4611('0x6d'),{'forceDefaultExecution':!0x0}));const _0x3ea82f=_0x54aa6c['filter'](_0x161534=>_0x4611('0x64')!=_0x161534[_0x4611('0x7b')][_0x4611('0x54')]);_0x3ea82f['length']>0x0&&_0x1e3071['setSelection'](_0x3ea82f);for(const _0x33d1b7 of _0x54aa6c)_0x33d1b7[_0x4611('0x1a')]();});}function _0x1de16c(_0x5d1144,_0x1ac82e){return _0x1ac82e[_0x4611('0x1d')](_0x373f0e=>_0x5d1144[_0x4611('0x22')](_0x19bba0=>_0x19bba0['end']['isEqual'](_0x373f0e['start'])||_0x373f0e[_0x4611('0x57')]['isEqual'](_0x19bba0[_0x4611('0x4d')])));}function _0x9c7a97(_0xdf2c7,_0x5667a4){return _0xdf2c7[_0x4611('0x22')](_0x27ff91=>_0x5667a4[_0x4611('0x22')](_0x537978=>_0x27ff91[_0x4611('0x57')][_0x4611('0x41')](_0x537978[_0x4611('0x4d')])));}_0xb444eb[_0x4611('0x69')]['downcastDispatcher']['on'](_0x4611('0x2b'),(_0x17a82d,_0x5842da,_0x158f08)=>{if(!_0x158f08[_0x4611('0x6')][_0x4611('0x40')])return;const _0x2fda15=_0x5842da[_0x4611('0x5f')];if(!_0x2fda15)return;const _0x9b9f05=_0x158f08[_0x4611('0x80')]['toViewElement'](_0x2fda15);function _0x4ce021(_0x599f79){return Array[_0x4611('0x52')](_0x599f79)?_0x599f79:[_0x599f79];}_0x9b9f05&&_0x4611('0x2e')===_0x2fda15['name']&&_0x5a665d(_0x9b9f05,_0x158f08[_0x4611('0x4')],(_0x4f89d7,_0x3667a8,_0xcf1905)=>_0xcf1905[_0x4611('0x10')](_0x4ce021(_0x3667a8['classes']),_0x4f89d7),(_0x37966f,_0x3295c5,_0x331d60)=>_0x331d60[_0x4611('0x1c')](_0x4ce021(_0x3295c5[_0x4611('0x11')]),_0x37966f));},{'priority':_0x4611('0x63')}),_0x584584['_descriptionFactory']['registerDescriptionCallback'](_0x467dff=>{if(_0x4611('0x6f')!=_0x467dff['type']&&_0x4611('0x50')!=_0x467dff[_0x4611('0x7')])return;const _0x5b4a29=_0x467dff[_0x4611('0x2')]();if(null!=_0x5b4a29&&_0x5b4a29['is'](_0x4611('0x66'),_0x4611('0x13'))){if(_0x4611('0x6f')==_0x467dff['type']){const _0x166981=_0x467dff[_0x4611('0x71')]()[_0x4611('0x4b')](_0x4261f3=>_0x4261f3['is'](_0x4611('0x33')))[_0x4611('0x1f')](_0x3c4347=>_0x3c4347[_0x4611('0x69')]);if(_0x166981[_0x4611('0x2a')])return{'type':'insertion','content':_0xf8203(_0x2a4afa,_0x4611('0x2c'),_0xf8203(_0x2a4afa,_0x4611('0x4c'),'\x22'+_0x166981[_0x4611('0xd')]('\x20')+'\x22'))};}if(_0x4611('0x50')==_0x467dff[_0x4611('0x7')]){const _0x5e9f14=_0x467dff[_0x4611('0x71')]()[_0x4611('0x4b')](_0x1815d2=>_0x1815d2['is'](_0x4611('0x33')))[_0x4611('0x1f')](_0x368425=>_0x368425[_0x4611('0x69')]);if(_0x5e9f14[_0x4611('0x2a')])return{'type':_0x4611('0x50'),'content':_0xf8203(_0x2a4afa,_0x4611('0x43'),_0xf8203(_0x2a4afa,_0x4611('0x4c'),'\x22'+_0x5e9f14[_0x4611('0xd')]('\x20')+'\x22'))};}}}),_0x584584[_0x4611('0x19')][_0x4611('0x7c')](_0x54011b=>{if(_0x4611('0x15')==_0x54011b[_0x4611('0x0')]){const _0x53e8ca=_0x54011b[_0x4611('0x71')]()['filter'](_0x2a2ee9=>_0x2a2ee9['is'](_0x4611('0x33')))[_0x4611('0x1f')](_0x2f0d88=>_0x2f0d88[_0x4611('0x69')]),_0x3745e4=this[_0x4611('0x12')](_0x54011b),_0x22a61e=_0x3745e4[_0x4611('0x6b')]-_0x3745e4['minRow']+0x1;if(_0x4611('0x6f')==_0x54011b[_0x4611('0x7')])return _0x53e8ca[_0x4611('0x2a')]?{'type':_0x4611('0x6f'),'content':_0xf8203(_0x2a4afa,_0x4611('0x2c'),_0xf8203(_0x2a4afa,_0x4611('0x37'),[_0x22a61e,'\x22'+_0x53e8ca[_0x4611('0xd')]('\x20')+'\x22']))}:{'type':_0x4611('0x6f'),'content':_0xf8203(_0x2a4afa,_0x4611('0x2c'),_0xf8203(_0x2a4afa,_0x4611('0x76'),_0x22a61e))};if(_0x4611('0x50')==_0x54011b[_0x4611('0x7')])return _0x53e8ca['length']?{'type':_0x4611('0x50'),'content':_0xf8203(_0x2a4afa,'*Remove:*\x20%0',_0xf8203(_0x2a4afa,_0x4611('0x37'),[_0x22a61e,'\x22'+_0x53e8ca[_0x4611('0xd')]('\x20')+'\x22']))}:{'type':_0x4611('0x50'),'content':_0xf8203(_0x2a4afa,_0x4611('0x43'),_0xf8203(_0x2a4afa,_0x4611('0x76'),_0x22a61e))};}if(_0x4611('0x62')==_0x54011b[_0x4611('0x0')]){const _0x4715c0=_0x54011b[_0x4611('0x71')]()[_0x4611('0x4b')](_0x139e78=>_0x139e78['is'](_0x4611('0x33')))[_0x4611('0x1f')](_0xd8f134=>_0xd8f134['data']),_0x21fe47=this[_0x4611('0x12')](_0x54011b),_0x49d338=_0x21fe47[_0x4611('0x1b')]-_0x21fe47[_0x4611('0x5')]+0x1;if(_0x4611('0x6f')==_0x54011b[_0x4611('0x7')])return _0x4715c0[_0x4611('0x2a')]?{'type':_0x4611('0x6f'),'content':_0xf8203(_0x2a4afa,_0x4611('0x2c'),_0xf8203(_0x2a4afa,_0x4611('0x82'),[_0x49d338,'\x22'+_0x4715c0[_0x4611('0xd')]('\x20')+'\x22']))}:{'type':_0x4611('0x6f'),'content':_0xf8203(_0x2a4afa,_0x4611('0x2c'),_0xf8203(_0x2a4afa,_0x4611('0x36'),_0x49d338))};if(_0x4611('0x50')==_0x54011b[_0x4611('0x7')])return _0x4715c0[_0x4611('0x2a')]?{'type':_0x4611('0x50'),'content':_0xf8203(_0x2a4afa,_0x4611('0x43'),_0xf8203(_0x2a4afa,_0x4611('0x82'),[_0x49d338,'\x22'+_0x4715c0[_0x4611('0xd')]('\x20')+'\x22']))}:{'type':_0x4611('0x50'),'content':_0xf8203(_0x2a4afa,_0x4611('0x43'),_0xf8203(_0x2a4afa,_0x4611('0x36'),_0x49d338))};}}),_0x584584[_0x4611('0x3c')][_0x4611('0x70')](_0x4611('0x6f'),'tableRow',_0x4611('0xe'),_0x328d9f),_0x584584[_0x4611('0x3c')][_0x4611('0x70')](_0x4611('0x50'),_0x4611('0x15'),'accept',_0x328d9f),_0x584584[_0x4611('0x3c')][_0x4611('0x70')]('insertion','tableColumn','discard',_0x36278f),_0x584584[_0x4611('0x3c')][_0x4611('0x70')]('deletion',_0x4611('0x62'),_0x4611('0x7d'),_0x36278f),_0x584584[_0x4611('0x3c')][_0x4611('0x70')](_0x4611('0x6f'),'tableColumn',_0x4611('0xd'),_0x1de16c),_0x584584[_0x4611('0x3c')][_0x4611('0x70')](_0x4611('0x50'),_0x4611('0x62'),'join',_0x1de16c),_0x584584[_0x4611('0x3c')]['registerCustomCallback'](_0x4611('0x6f'),'tableRow',_0x4611('0xd'),_0x9c7a97),_0x584584[_0x4611('0x3c')][_0x4611('0x70')]('deletion',_0x4611('0x15'),_0x4611('0xd'),_0x9c7a97);}[_0x4611('0x45')](){const _0x3f8769=this[_0x4611('0x58')],_0xb31b22=_0x3f8769[_0x4611('0x28')][_0x4611('0xa')][_0x4611('0x7e')];return(_0x101228,_0xb886fd)=>{_0x3f8769[_0x4611('0x28')][_0x4611('0x44')](_0x17de41=>{const {commandName:_0x1d8014,commandParams:_0x128a62}=_0xb886fd;let _0x33b1b1=_0x101228[0x0][_0x4611('0x57')]['nodeBefore'];_0x128a62&&_0x128a62[0x0]&&!0x1===_0x128a62[0x0][_0x4611('0x56')]&&(_0x33b1b1=_0x101228[0x0][_0x4611('0x4d')][_0x4611('0x16')]);const _0x5f18d7=_0x17de41[_0x4611('0x6e')](_0x33b1b1);if(_0x4611('0x64')==_0x5f18d7['root']['rootName'])return;const _0x5039c4=Array[_0x4611('0x47')](_0xb31b22[_0x4611('0x31')]())[_0x4611('0x1f')](_0x20c910=>_0x1bbda1[_0x4611('0x25')](_0x20c910));_0x17de41['setSelection'](_0x5f18d7),_0x3f8769[_0x4611('0x85')][_0x4611('0x59')](_0x1d8014)[_0x4611('0x6a')](),_0x128a62[_0x4611('0x3f')]({'forceDefaultExecution':!0x0}),_0x3f8769[_0x4611('0x3')](_0x1d8014,..._0x128a62);const _0x347058=_0x5039c4[_0x4611('0x4b')](_0x4048b9=>'$graveyard'!=_0x4048b9['root'][_0x4611('0x54')]);_0x347058[_0x4611('0x2a')]>0x0&&_0x17de41[_0x4611('0x4f')](_0x347058);for(const _0x3d5ce2 of _0x5039c4)_0x3d5ce2[_0x4611('0x1a')]();});};}['_getCoordsForCells'](_0x5088bc){const _0x3f4e02=this[_0x4611('0x58')][_0x4611('0x23')][_0x4611('0x59')](_0x4611('0x1e'));let _0x5f284f=Number['MAX_SAFE_INTEGER'],_0x35cf8a=Number[_0x4611('0x51')],_0x5beddb=Number['MAX_SAFE_INTEGER'],_0x35eb73=Number[_0x4611('0x51')];for(const _0x5a6fee of _0x5088bc){if('$graveyard'==_0x5a6fee[_0x4611('0x7b')][_0x4611('0x54')])continue;const {row:_0x1b01f2,column:_0x875457}=_0x3f4e02[_0x4611('0x74')](_0x5a6fee),_0xe9c358=_0x5a6fee[_0x4611('0x42')]('rowspan')?_0x5a6fee[_0x4611('0x83')]('rowspan')-0x1:0x0,_0x22a176=_0x5a6fee[_0x4611('0x42')](_0x4611('0x46'))?_0x5a6fee['getAttribute'](_0x4611('0x46'))-0x1:0x0;_0x5f284f=_0x1b01f2<_0x5f284f?_0x1b01f2:_0x5f284f,_0x35cf8a=_0x1b01f2+_0xe9c358>_0x35cf8a?_0x1b01f2+_0xe9c358:_0x35cf8a,_0x5beddb=_0x875457<_0x5beddb?_0x875457:_0x5beddb,_0x35eb73=_0x875457+_0x22a176>_0x35eb73?_0x875457+_0x22a176:_0x35eb73;}return{'minRow':_0x5f284f,'maxRow':_0x35cf8a,'minColumn':_0x5beddb,'maxColumn':_0x35eb73};}['_setupColumnsRowsFixing'](){const _0x771d65=this['editor'],_0x2c8c9f=_0x771d65['plugins']['get'](_0x4611('0x8')),_0x26176e=_0x771d65['plugins'][_0x4611('0x59')](_0x4611('0x1e'));_0x771d65['model'][_0x4611('0xa')]['on'](_0x4611('0x1'),()=>{const _0x473082=Array[_0x4611('0x47')](_0x771d65[_0x4611('0x28')][_0x4611('0xa')][_0x4611('0x78')]['getChangedMarkers']());for(const {name:_0x2bee5d,data:_0x1152e8}of _0x473082){const {group:_0x1c7b4a,id:_0x405130,subType:_0x47e7cd}=_0x2c8c9f[_0x4611('0x68')](_0x2bee5d);if(_0x4611('0x30')!=_0x1c7b4a)continue;if(null!=_0x1152e8[_0x4611('0xb')])continue;const _0x4d439e=_0x2c8c9f[_0x4611('0x72')](_0x405130);this[_0x4611('0x32')][_0x4611('0x26')](_0x47e7cd)&&this[_0x4611('0x65')][_0x4611('0x27')](_0x4d439e);}},{'priority':_0x4611('0x73')});const _0x2a6285=(_0x292499,_0x3aad30)=>{let _0x3a3974=!0x1;const _0xb5655b=_0x3aad30['createRangeOn'](_0x292499),_0xc18692=_0x292499[_0x4611('0x79')](_0x4611('0x13')),_0x4c78f9=_0x26176e[_0x4611('0x74')](_0x292499);for(const _0x40d054 of this[_0x4611('0x65')]){const _0x30b011=_0x40d054['subType'],_0x5e61d2=_0x30b011[_0x4611('0x2f')](_0x4611('0x3b')),_0x53dfd6=_0x30b011[_0x4611('0x75')](_0x5e61d2?0xa:0x5),_0x1da058=_0x53dfd6[_0x4611('0x34')](),_0x10100f=_0x1da058[_0x4611('0x75')](0x0,0x3)+_0x4611('0x53'),_0x42e036=_0x4611('0x21')+_0x53dfd6,_0x20b494=_0x4611('0x39')+_0x53dfd6;if(!_0x40d054[_0x4611('0x61')])continue;if(_0xc18692!=_0x40d054[_0x4611('0x81')]()[_0x4611('0x4d')][_0x4611('0x79')](_0x4611('0x13')))continue;if(_0x40d054['isIntersectingWithRange'](_0xb5655b))continue;const _0x35d1c0=_0x292499['hasAttribute'](_0x10100f)?_0x292499[_0x4611('0x83')](_0x10100f)-0x1:0x0,_0x41a46e=this[_0x4611('0x12')](_0x40d054),_0x3825ab=_0x41a46e[_0x42e036],_0x31528c=_0x41a46e[_0x20b494];_0x3825ab<=_0x4c78f9[_0x1da058]&&_0x4c78f9[_0x1da058]+_0x35d1c0<=_0x31528c&&(_0x40d054['addRange'](_0xb5655b),_0x3a3974=!0x0);}return _0x3a3974;};_0x771d65[_0x4611('0x28')][_0x4611('0xa')]['registerPostFixer'](_0xc790d8=>{let _0x1b9a57=!0x1;for(const _0x51951a of _0x771d65['model']['document'][_0x4611('0x78')][_0x4611('0x35')]())if('insert'==_0x51951a['type']){if(_0x4611('0x15')==_0x51951a[_0x4611('0x18')])for(const _0x44335b of _0x51951a[_0x4611('0x5b')][_0x4611('0x16')]['getChildren']())_0x1b9a57=_0x1b9a57||_0x2a6285(_0x44335b,_0xc790d8);else _0x4611('0x2e')==_0x51951a[_0x4611('0x18')]&&(_0x1b9a57=_0x1b9a57||_0x2a6285(_0x51951a[_0x4611('0x5b')][_0x4611('0x16')],_0xc790d8));}return _0x1b9a57;});}[_0x4611('0x12')](_0x5780ca){return this[_0x4611('0x3d')](_0x5780ca[_0x4611('0x31')]()['map'](_0x440557=>_0x440557[_0x4611('0x4d')][_0x4611('0x16')]));}}function se(_0x1a5eb1){return Array[_0x4611('0x47')](new Set(_0x1a5eb1)[_0x4611('0x48')]());}
|
|
23
|
+
const _0x3689=['tableColumn','commands','refresh','registerDescriptionCallback','enqueueChange','options','substr','model','start','isEqual','isTouching','registerElementLabel','getChildren','maxColumn','cell','hasAttribute','above','detach','_getCoordsForCells','ELEMENT_TABLE_ROW_WITH_TEXT','change:data','getContainedElement','*Remove:*\x20%0','ELEMENT_TABLE','span','element','createRangeOn','ELEMENT_TABLE_WITH_TEXT','mapper','getCellLocation','insertion','some','first','rowspan','selectTableColumn','forceValue','getRowIndexes','_suggestionFactory','data','oldRange','name','suggestion','fromRange','every','length','addMarker:suggestion','registerCustomCallback','root','_tableSuggestions','*Insert:*\x20%0','insert','type','getItems','values','TableEditing','tablePaste','rootName','from','nodeAfter','writer','accept','getChangedMarkers','_tablePostFixingSubtypes','getRanges','order','insertTableRowBelow','removeTableColumn','tableCell','markMultiRangeInsertion','discard','setSelection','removeClass','ELEMENT_TABLE_ROW','max','ELEMENT_TABLE_COLUMN','push','item','differ','highest','subType','TableUtils','minRow','change','getAttribute','editor','execute','$graveyard','getSelectionAffectedTableCells','end','low','$textProxy','get','selection','ELEMENT_TABLE_COLUMN_WITH_TEXT','insertTableColumnRight','MAX_SAFE_INTEGER','join','removeTableRow','filter','getFirstRange','tableRow','createTableWalker','document','_getSuggestionCoords','TrackChangesEditing','_descriptionFactory','map','getColumnIndexes','locale','plugins','_acceptFormatSuggestionCallbackFactory','last','deletion','includes','registerPostFixer','enableCommand','position','toLowerCase','findAncestor','min','createRangeIn','maxRow','insertTableRowAbove','MIN_SAFE_INTEGER','colspan','table','nodeBefore','markMultiRangeDeletion','addRange','insertTableColumnLeft','isInContent','minColumn'];(function(_0x59ff47,_0x368942){const _0x1ad8fe=function(_0x4919fb){while(--_0x4919fb){_0x59ff47['push'](_0x59ff47['shift']());}};_0x1ad8fe(++_0x368942);}(_0x3689,0x1de));const _0x1ad8=function(_0x59ff47,_0x368942){_0x59ff47=_0x59ff47-0x0;let _0x1ad8fe=_0x3689[_0x59ff47];return _0x1ad8fe;};import{Plugin as _0x200495}from'ckeditor5/src/core';import{LiveRange as _0x4c518c}from'ckeditor5/src/engine';import{setHighlightHandling as _0x188268}from'ckeditor5/src/widget';import{getTranslation as _0xa8bed0}from'../utils/common-translations';export default class mt extends _0x200495{constructor(_0x1eb2ca){super(_0x1eb2ca),this[_0x1ad8('0x70')]=[_0x1ad8('0x12'),_0x1ad8('0x32')],this[_0x1ad8('0x62')]=new Set();}['afterInit'](){const _0x3c204a=this[_0x1ad8('0x2')],_0x2c32ef=_0x3c204a['model'][_0x1ad8('0x14')][_0x1ad8('0xa')];if(!_0x3c204a['plugins']['has'](_0x1ad8('0x68')))return;const _0x1b9dd2=_0x3c204a[_0x1ad8('0x1a')],_0x42a3e7=_0x3c204a[_0x1ad8('0x1b')][_0x1ad8('0x9')](_0x1ad8('0x16')),_0x109d1e=_0x3c204a[_0x1ad8('0x1b')][_0x1ad8('0x9')](_0x1ad8('0x82'));_0x42a3e7[_0x1ad8('0x17')][_0x1ad8('0x3d')](_0x1ad8('0x2b'),_0x31331b=>_0xa8bed0(_0x1b9dd2,_0x1ad8('0x49'),_0x31331b)),this['_setupColumnsRowsFixing'](),_0x42a3e7[_0x1ad8('0x21')]('insertTable'),_0x42a3e7['enableCommand']('selectTableRow'),_0x42a3e7[_0x1ad8('0x21')](_0x1ad8('0x54'));for(const _0x4bb0d1 of[_0x1ad8('0x28'),_0x1ad8('0x73')]){const _0xf1f5c0=_0x3c204a[_0x1ad8('0x33')][_0x1ad8('0x9')](_0x4bb0d1);_0x42a3e7['enableCommand'](_0x4bb0d1,_0x2be25c=>{_0x3c204a['model'][_0x1ad8('0x0')](_0x18f694=>{_0x2be25c();const _0x1dc189=_0x1ad8('0x42')===_0xf1f5c0[_0x1ad8('0x72')],_0x542cb1=_0x109d1e[_0x1ad8('0x5')](_0x2c32ef),_0x4a2822=_0x109d1e[_0x1ad8('0x56')](_0x542cb1),_0x52e4ea=_0x1dc189?_0x4a2822['first']-0x1:_0x4a2822['last']+0x1,_0x3f815f=_0x542cb1[0x0][_0x1ad8('0x24')](_0x1ad8('0x2b')),_0x1be42f=_0x109d1e[_0x1ad8('0x13')](_0x3f815f,{'startRow':_0x52e4ea,'endRow':_0x52e4ea}),_0x1c76f2=Array[_0x1ad8('0x6b')](_0x1be42f)[_0x1ad8('0x18')](_0x4750ad=>_0x18f694[_0x1ad8('0x4c')](_0x4750ad[_0x1ad8('0x40')]));_0x42a3e7[_0x1ad8('0x76')](_0x1c76f2,'tableRow');});});}for(const _0x1ae9ea of[_0x1ad8('0x2f'),_0x1ad8('0xc')]){const _0x22e0d1=_0x3c204a['commands'][_0x1ad8('0x9')](_0x1ae9ea);_0x42a3e7[_0x1ad8('0x21')](_0x1ae9ea,_0x3feed0=>{_0x3c204a[_0x1ad8('0x39')]['change'](_0x37f42d=>{_0x3feed0();const _0x443460='left'===_0x22e0d1['order'],_0x59a781=_0x109d1e[_0x1ad8('0x5')](_0x2c32ef),_0x50678e=_0x109d1e[_0x1ad8('0x19')](_0x59a781),_0x4a3413=_0x443460?_0x50678e[_0x1ad8('0x52')]-0x1:_0x50678e[_0x1ad8('0x1d')]+0x1,_0x5d477c=_0x59a781[0x0][_0x1ad8('0x24')](_0x1ad8('0x2b')),_0x510e63=_0x109d1e['createTableWalker'](_0x5d477c,{'startRow':0x0,'column':_0x4a3413,'includeAllSlots':!0x1}),_0x21b054=Array[_0x1ad8('0x6b')](_0x510e63)['map'](_0x3ebc8c=>_0x37f42d[_0x1ad8('0x4c')](_0x3ebc8c[_0x1ad8('0x40')]));_0x42a3e7[_0x1ad8('0x76')](_0x21b054,_0x1ad8('0x32'));});});}for(const _0x39ae87 of[_0x1ad8('0xf'),_0x1ad8('0x74')]){const _0x3fac01=_0x39ae87[_0x1ad8('0x38')](0xb),_0x577b4f=_0x3fac01[_0x1ad8('0x23')](),_0x491a8f=_0x577b4f[_0x1ad8('0x38')](0x0,0x3)+_0x1ad8('0x4a'),_0x2691ce='table'+_0x3fac01,_0x3b072d=_0x1ad8('0x25')+_0x3fac01,_0x122e7e=_0x1ad8('0x7b')+_0x3fac01;_0x42a3e7[_0x1ad8('0x21')](_0x39ae87,()=>{_0x3c204a[_0x1ad8('0x39')][_0x1ad8('0x0')](_0x4d283a=>{const _0x339546=_0x109d1e[_0x1ad8('0x5')](_0x2c32ef),_0x511044=_0x339546[0x0]['findAncestor']('table');let _0x5d070e;if(_0x1ad8('0xf')==_0x39ae87){const _0x53b9e9=_0x109d1e['getRowIndexes'](_0x339546);_0x5d070e={'startRow':_0x53b9e9[_0x1ad8('0x52')],'endRow':_0x53b9e9[_0x1ad8('0x1d')],'includeAllSlots':!0x0};}else{const _0x3663c8=_0x109d1e[_0x1ad8('0x19')](_0x339546);_0x5d070e={'startColumn':_0x3663c8['first'],'endColumn':_0x3663c8[_0x1ad8('0x1d')],'includeAllSlots':!0x0};}const _0x309616=_0x109d1e['createTableWalker'](_0x511044,_0x5d070e),_0x2ebdb6=Array[_0x1ad8('0x6b')](_0x309616)[_0x1ad8('0x18')](({cell:_0x302993})=>_0x302993),_0x51af2a=se(_0x2ebdb6['filter'](_0x1cf3cb=>_0x1cf3cb[_0x1ad8('0x41')](_0x491a8f))),_0x17fb85=se(_0x2ebdb6[_0x1ad8('0x10')](_0x4f0964=>!_0x4f0964[_0x1ad8('0x41')](_0x491a8f)))[_0x1ad8('0x18')](_0x1a6afa=>_0x4d283a['createRangeOn'](_0x1a6afa)),_0x420601=_0x42a3e7[_0x1ad8('0x2d')](_0x17fb85,_0x2691ce);if(_0x420601&&(_0x1ad8('0x12')==_0x420601[_0x1ad8('0x81')]||_0x1ad8('0x32')==_0x420601[_0x1ad8('0x81')])){const _0x4dd1de=this['_getSuggestionCoords'](_0x420601);for(const _0x3d22fc of _0x51af2a){const _0x3e8ef0=_0x4d283a['createRangeOn'](_0x3d22fc),_0x401baa=_0x109d1e['getCellLocation'](_0x3d22fc),_0x271581=_0x3d22fc[_0x1ad8('0x1')](_0x491a8f)-0x1,_0x456c67=_0x4dd1de[_0x3b072d],_0x394dd0=_0x4dd1de[_0x122e7e];_0x456c67<=_0x401baa[_0x577b4f]&&_0x401baa[_0x577b4f]+_0x271581<=_0x394dd0&&_0x420601['addRange'](_0x3e8ef0);}}});});}function _0x3e4842(_0x28e48a){const _0x32606e=Array['from'](_0x2c32ef[_0x1ad8('0x71')]())[_0x1ad8('0x18')](_0x226ebb=>_0x4c518c[_0x1ad8('0x5c')](_0x226ebb));_0x3c204a['model'][_0x1ad8('0x0')](_0x50f424=>{const _0x32dab8=_0x50f424['batch'];_0x28e48a=_0x28e48a['filter'](_0x4bc2ac=>_0x1ad8('0x4')!=_0x4bc2ac[_0x1ad8('0x61')][_0x1ad8('0x6a')]),_0x50f424[_0x1ad8('0x78')](_0x28e48a),_0x3c204a[_0x1ad8('0x33')][_0x1ad8('0x9')]('removeTableRow')[_0x1ad8('0x34')](),_0x3c204a[_0x1ad8('0x3')](_0x1ad8('0xf'),{'forceDefaultExecution':!0x0}),_0x3c204a['model'][_0x1ad8('0x36')](()=>{_0x3c204a[_0x1ad8('0x39')][_0x1ad8('0x36')](_0x32dab8,_0x19cbf2=>{const _0x1d3872=_0x32606e[_0x1ad8('0x10')](_0x22fde3=>_0x1ad8('0x4')!=_0x22fde3[_0x1ad8('0x61')][_0x1ad8('0x6a')]);_0x1d3872['length']>0x0&&_0x19cbf2['setSelection'](_0x1d3872);for(const _0x112862 of _0x32606e)_0x112862['detach']();});});});}function _0x38ee7e(_0x548d8c){_0x3c204a[_0x1ad8('0x39')][_0x1ad8('0x0')](_0x274b3a=>{const _0x3d407a=Array[_0x1ad8('0x6b')](_0x2c32ef[_0x1ad8('0x71')]())['map'](_0xfb2ef0=>_0x4c518c[_0x1ad8('0x5c')](_0xfb2ef0)),_0xe93ea=[];for(const _0x5289a0 of _0x548d8c)for(const _0x2f6a9a of _0x5289a0['getItems']({'shallow':!0x0}))_0xe93ea[_0x1ad8('0x7d')](_0x2f6a9a);for(const _0x59746f of _0xe93ea)_0x1ad8('0x4')!=_0x59746f[_0x1ad8('0x61')][_0x1ad8('0x6a')]&&(_0x274b3a[_0x1ad8('0x78')](_0x274b3a['createPositionAt'](_0x59746f,0x0)),_0x3c204a['commands'][_0x1ad8('0x9')](_0x1ad8('0x74'))[_0x1ad8('0x34')](),_0x3c204a[_0x1ad8('0x3')](_0x1ad8('0x74'),{'forceDefaultExecution':!0x0}));const _0x30758e=_0x3d407a[_0x1ad8('0x10')](_0x136ee1=>_0x1ad8('0x4')!=_0x136ee1[_0x1ad8('0x61')][_0x1ad8('0x6a')]);_0x30758e[_0x1ad8('0x5e')]>0x0&&_0x274b3a[_0x1ad8('0x78')](_0x30758e);for(const _0x1a1f43 of _0x3d407a)_0x1a1f43[_0x1ad8('0x43')]();});}function _0x44f3d9(_0x2bbf25,_0x8a492){return _0x8a492[_0x1ad8('0x5d')](_0x43ae40=>_0x2bbf25[_0x1ad8('0x51')](_0x2f401f=>_0x2f401f[_0x1ad8('0x6')]['isEqual'](_0x43ae40[_0x1ad8('0x3a')])||_0x43ae40[_0x1ad8('0x6')][_0x1ad8('0x3b')](_0x2f401f[_0x1ad8('0x3a')])));}function _0x94a608(_0x4cc282,_0x251e48){return _0x4cc282[_0x1ad8('0x51')](_0x4d9217=>_0x251e48['some'](_0x14bb40=>_0x4d9217[_0x1ad8('0x6')][_0x1ad8('0x3c')](_0x14bb40[_0x1ad8('0x3a')])));}_0x3c204a[_0x1ad8('0x58')]['downcastDispatcher']['on'](_0x1ad8('0x5f'),(_0x2f9cc5,_0x29c073,_0x463c3a)=>{if(!_0x463c3a[_0x1ad8('0x37')]['showSuggestionHighlights'])return;const _0x3a0221=_0x29c073[_0x1ad8('0x7e')];if(!_0x3a0221)return;const _0x17b5aa=_0x463c3a[_0x1ad8('0x4e')]['toViewElement'](_0x3a0221);function _0x4a37d1(_0x516b52){return Array['isArray'](_0x516b52)?_0x516b52:[_0x516b52];}_0x17b5aa&&_0x1ad8('0x75')===_0x3a0221[_0x1ad8('0x5a')]&&_0x188268(_0x17b5aa,_0x463c3a[_0x1ad8('0x6d')],(_0x1f9ef6,_0x57d6f9,_0x4d9bd8)=>_0x4d9bd8['addClass'](_0x4a37d1(_0x57d6f9['classes']),_0x1f9ef6),(_0x5f5632,_0x283a07,_0x5b8363)=>_0x5b8363[_0x1ad8('0x79')](_0x4a37d1(_0x283a07['classes']),_0x5f5632));},{'priority':_0x1ad8('0x80')}),_0x42a3e7['_descriptionFactory']['registerDescriptionCallback'](_0xed551c=>{if(_0x1ad8('0x50')!=_0xed551c['type']&&'deletion'!=_0xed551c[_0x1ad8('0x65')])return;const _0x12a978=_0xed551c[_0x1ad8('0x47')]();if(null!=_0x12a978&&_0x12a978['is'](_0x1ad8('0x4b'),_0x1ad8('0x2b'))){if(_0x1ad8('0x50')==_0xed551c[_0x1ad8('0x65')]){const _0x2b0948=_0xed551c[_0x1ad8('0x66')]()[_0x1ad8('0x10')](_0x234d5a=>_0x234d5a['is'](_0x1ad8('0x8')))['map'](_0x5b2aba=>_0x5b2aba[_0x1ad8('0x58')]);if(_0x2b0948[_0x1ad8('0x5e')])return{'type':_0x1ad8('0x50'),'content':_0xa8bed0(_0x1b9dd2,'*Insert:*\x20%0',_0xa8bed0(_0x1b9dd2,_0x1ad8('0x4d'),'\x22'+_0x2b0948['join']('\x20')+'\x22'))};}if(_0x1ad8('0x1e')==_0xed551c[_0x1ad8('0x65')]){const _0x4d79ce=_0xed551c[_0x1ad8('0x66')]()[_0x1ad8('0x10')](_0xca306=>_0xca306['is'](_0x1ad8('0x8')))['map'](_0x255868=>_0x255868[_0x1ad8('0x58')]);if(_0x4d79ce['length'])return{'type':'deletion','content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x48'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0x4d'),'\x22'+_0x4d79ce['join']('\x20')+'\x22'))};}}}),_0x42a3e7['_descriptionFactory'][_0x1ad8('0x35')](_0xb5c822=>{if(_0x1ad8('0x12')==_0xb5c822[_0x1ad8('0x81')]){const _0xdaaefb=_0xb5c822['getItems']()[_0x1ad8('0x10')](_0x821df5=>_0x821df5['is']('$textProxy'))[_0x1ad8('0x18')](_0x158508=>_0x158508[_0x1ad8('0x58')]),_0x56f832=this[_0x1ad8('0x15')](_0xb5c822),_0xaa4277=_0x56f832[_0x1ad8('0x27')]-_0x56f832[_0x1ad8('0x83')]+0x1;if(_0x1ad8('0x50')==_0xb5c822['type'])return _0xdaaefb[_0x1ad8('0x5e')]?{'type':'insertion','content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x63'),_0xa8bed0(_0x1b9dd2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xaa4277,'\x22'+_0xdaaefb['join']('\x20')+'\x22']))}:{'type':_0x1ad8('0x50'),'content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x63'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0x7a'),_0xaa4277))};if(_0x1ad8('0x1e')==_0xb5c822[_0x1ad8('0x65')])return _0xdaaefb[_0x1ad8('0x5e')]?{'type':_0x1ad8('0x1e'),'content':_0xa8bed0(_0x1b9dd2,'*Remove:*\x20%0',_0xa8bed0(_0x1b9dd2,_0x1ad8('0x45'),[_0xaa4277,'\x22'+_0xdaaefb['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x48'),_0xa8bed0(_0x1b9dd2,'ELEMENT_TABLE_ROW',_0xaa4277))};}if(_0x1ad8('0x32')==_0xb5c822['subType']){const _0x1891f7=_0xb5c822[_0x1ad8('0x66')]()[_0x1ad8('0x10')](_0x203e2e=>_0x203e2e['is'](_0x1ad8('0x8')))[_0x1ad8('0x18')](_0x3574da=>_0x3574da[_0x1ad8('0x58')]),_0x59ba4f=this[_0x1ad8('0x15')](_0xb5c822),_0x4a29ae=_0x59ba4f[_0x1ad8('0x3f')]-_0x59ba4f[_0x1ad8('0x31')]+0x1;if(_0x1ad8('0x50')==_0xb5c822[_0x1ad8('0x65')])return _0x1891f7[_0x1ad8('0x5e')]?{'type':_0x1ad8('0x50'),'content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x63'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0xb'),[_0x4a29ae,'\x22'+_0x1891f7[_0x1ad8('0xe')]('\x20')+'\x22']))}:{'type':_0x1ad8('0x50'),'content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x63'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0x7c'),_0x4a29ae))};if('deletion'==_0xb5c822[_0x1ad8('0x65')])return _0x1891f7[_0x1ad8('0x5e')]?{'type':_0x1ad8('0x1e'),'content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x48'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0xb'),[_0x4a29ae,'\x22'+_0x1891f7[_0x1ad8('0xe')]('\x20')+'\x22']))}:{'type':'deletion','content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x48'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0x7c'),_0x4a29ae))};}}),_0x42a3e7[_0x1ad8('0x57')][_0x1ad8('0x60')]('insertion',_0x1ad8('0x12'),'discard',_0x3e4842),_0x42a3e7[_0x1ad8('0x57')]['registerCustomCallback'](_0x1ad8('0x1e'),'tableRow','accept',_0x3e4842),_0x42a3e7['_suggestionFactory'][_0x1ad8('0x60')](_0x1ad8('0x50'),_0x1ad8('0x32'),_0x1ad8('0x77'),_0x38ee7e),_0x42a3e7[_0x1ad8('0x57')]['registerCustomCallback'](_0x1ad8('0x1e'),_0x1ad8('0x32'),_0x1ad8('0x6e'),_0x38ee7e),_0x42a3e7[_0x1ad8('0x57')][_0x1ad8('0x60')](_0x1ad8('0x50'),'tableColumn','join',_0x44f3d9),_0x42a3e7[_0x1ad8('0x57')][_0x1ad8('0x60')](_0x1ad8('0x1e'),_0x1ad8('0x32'),_0x1ad8('0xe'),_0x44f3d9),_0x42a3e7[_0x1ad8('0x57')]['registerCustomCallback'](_0x1ad8('0x50'),_0x1ad8('0x12'),_0x1ad8('0xe'),_0x94a608),_0x42a3e7[_0x1ad8('0x57')]['registerCustomCallback'](_0x1ad8('0x1e'),_0x1ad8('0x12'),_0x1ad8('0xe'),_0x94a608);}[_0x1ad8('0x1c')](){const _0x27fc10=this['editor'],_0x514f8c=_0x27fc10[_0x1ad8('0x39')]['document'][_0x1ad8('0xa')];return(_0xa4e98,_0x10ccbe)=>{_0x27fc10[_0x1ad8('0x39')]['change'](_0xd39d20=>{const {commandName:_0x245aca,commandParams:_0x4f9415}=_0x10ccbe;let _0x38260d=_0xa4e98[0x0][_0x1ad8('0x6')][_0x1ad8('0x2c')];_0x4f9415&&_0x4f9415[0x0]&&!0x1===_0x4f9415[0x0][_0x1ad8('0x55')]&&(_0x38260d=_0xa4e98[0x0][_0x1ad8('0x3a')][_0x1ad8('0x6c')]);const _0xc07ae=_0xd39d20[_0x1ad8('0x26')](_0x38260d);if('$graveyard'==_0xc07ae[_0x1ad8('0x61')]['rootName'])return;const _0x122925=Array[_0x1ad8('0x6b')](_0x514f8c[_0x1ad8('0x71')]())[_0x1ad8('0x18')](_0x1e1d03=>_0x4c518c[_0x1ad8('0x5c')](_0x1e1d03));_0xd39d20[_0x1ad8('0x78')](_0xc07ae),_0x27fc10[_0x1ad8('0x33')][_0x1ad8('0x9')](_0x245aca)['refresh'](),_0x4f9415[_0x1ad8('0x7d')]({'forceDefaultExecution':!0x0}),_0x27fc10[_0x1ad8('0x3')](_0x245aca,..._0x4f9415);const _0xcbb27e=_0x122925[_0x1ad8('0x10')](_0x19942c=>_0x1ad8('0x4')!=_0x19942c['root'][_0x1ad8('0x6a')]);_0xcbb27e[_0x1ad8('0x5e')]>0x0&&_0xd39d20[_0x1ad8('0x78')](_0xcbb27e);for(const _0x2fd944 of _0x122925)_0x2fd944[_0x1ad8('0x43')]();});};}[_0x1ad8('0x44')](_0x5188da){const _0x526a0e=this['editor'][_0x1ad8('0x1b')][_0x1ad8('0x9')](_0x1ad8('0x82'));let _0xec9263=Number[_0x1ad8('0xd')],_0x1f9cd4=Number['MIN_SAFE_INTEGER'],_0x566c7b=Number[_0x1ad8('0xd')],_0x3c8f3c=Number[_0x1ad8('0x29')];for(const _0x2e1592 of _0x5188da){if('$graveyard'==_0x2e1592[_0x1ad8('0x61')][_0x1ad8('0x6a')])continue;const {row:_0x1e4127,column:_0xf0a033}=_0x526a0e[_0x1ad8('0x4f')](_0x2e1592),_0x35365d=_0x2e1592[_0x1ad8('0x41')](_0x1ad8('0x53'))?_0x2e1592[_0x1ad8('0x1')]('rowspan')-0x1:0x0,_0x5c5e3a=_0x2e1592[_0x1ad8('0x41')](_0x1ad8('0x2a'))?_0x2e1592['getAttribute'](_0x1ad8('0x2a'))-0x1:0x0;_0xec9263=_0x1e4127<_0xec9263?_0x1e4127:_0xec9263,_0x1f9cd4=_0x1e4127+_0x35365d>_0x1f9cd4?_0x1e4127+_0x35365d:_0x1f9cd4,_0x566c7b=_0xf0a033<_0x566c7b?_0xf0a033:_0x566c7b,_0x3c8f3c=_0xf0a033+_0x5c5e3a>_0x3c8f3c?_0xf0a033+_0x5c5e3a:_0x3c8f3c;}return{'minRow':_0xec9263,'maxRow':_0x1f9cd4,'minColumn':_0x566c7b,'maxColumn':_0x3c8f3c};}['_setupColumnsRowsFixing'](){const _0x4eff7a=this[_0x1ad8('0x2')],_0x5c8099=_0x4eff7a[_0x1ad8('0x1b')][_0x1ad8('0x9')](_0x1ad8('0x16')),_0x2fa37c=_0x4eff7a[_0x1ad8('0x1b')][_0x1ad8('0x9')](_0x1ad8('0x82'));_0x4eff7a[_0x1ad8('0x39')]['document']['on'](_0x1ad8('0x46'),()=>{const _0x27aad0=Array[_0x1ad8('0x6b')](_0x4eff7a[_0x1ad8('0x39')][_0x1ad8('0x14')][_0x1ad8('0x7f')][_0x1ad8('0x6f')]());for(const {name:_0x3a1e2d,data:_0x2c5783}of _0x27aad0){const {group:_0x448849,id:_0xffdde,subType:_0x58de60}=_0x5c8099['_splitMarkerName'](_0x3a1e2d);if(_0x1ad8('0x5b')!=_0x448849)continue;if(null!=_0x2c5783[_0x1ad8('0x59')])continue;const _0x38d303=_0x5c8099['getSuggestion'](_0xffdde);this['_tablePostFixingSubtypes'][_0x1ad8('0x1f')](_0x58de60)&&this[_0x1ad8('0x62')]['add'](_0x38d303);}},{'priority':_0x1ad8('0x7')});const _0x1c4faf=(_0x1c4afb,_0x54c8c9)=>{let _0x3eb991=!0x1;const _0x302936=_0x54c8c9['createRangeOn'](_0x1c4afb),_0x5abfcc=_0x1c4afb[_0x1ad8('0x24')](_0x1ad8('0x2b')),_0x357d3a=_0x2fa37c[_0x1ad8('0x4f')](_0x1c4afb);for(const _0x31563d of this[_0x1ad8('0x62')]){const _0x572a06=_0x31563d[_0x1ad8('0x81')],_0x3a24c2=_0x572a06['startsWith'](_0x1ad8('0x69')),_0x7e19da=_0x572a06[_0x1ad8('0x38')](_0x3a24c2?0xa:0x5),_0x589e66=_0x7e19da[_0x1ad8('0x23')](),_0x21504b=_0x589e66['substr'](0x0,0x3)+_0x1ad8('0x4a'),_0x4d5348='min'+_0x7e19da,_0x3f7719=_0x1ad8('0x7b')+_0x7e19da;if(!_0x31563d[_0x1ad8('0x30')])continue;if(_0x5abfcc!=_0x31563d[_0x1ad8('0x11')]()[_0x1ad8('0x3a')][_0x1ad8('0x24')](_0x1ad8('0x2b')))continue;if(_0x31563d['isIntersectingWithRange'](_0x302936))continue;const _0x2e23c6=_0x1c4afb[_0x1ad8('0x41')](_0x21504b)?_0x1c4afb[_0x1ad8('0x1')](_0x21504b)-0x1:0x0,_0x1eeba3=this['_getSuggestionCoords'](_0x31563d),_0x5896f5=_0x1eeba3[_0x4d5348],_0x1cfe66=_0x1eeba3[_0x3f7719];_0x5896f5<=_0x357d3a[_0x589e66]&&_0x357d3a[_0x589e66]+_0x2e23c6<=_0x1cfe66&&(_0x31563d[_0x1ad8('0x2e')](_0x302936),_0x3eb991=!0x0);}return _0x3eb991;};_0x4eff7a[_0x1ad8('0x39')]['document'][_0x1ad8('0x20')](_0x51980c=>{let _0x4f28be=!0x1;for(const _0x4872ff of _0x4eff7a[_0x1ad8('0x39')]['document']['differ']['getChanges']())if(_0x1ad8('0x64')==_0x4872ff[_0x1ad8('0x65')]){if('tableRow'==_0x4872ff[_0x1ad8('0x5a')])for(const _0x104e87 of _0x4872ff[_0x1ad8('0x22')]['nodeAfter'][_0x1ad8('0x3e')]())_0x4f28be=_0x4f28be||_0x1c4faf(_0x104e87,_0x51980c);else _0x1ad8('0x75')==_0x4872ff[_0x1ad8('0x5a')]&&(_0x4f28be=_0x4f28be||_0x1c4faf(_0x4872ff['position'][_0x1ad8('0x6c')],_0x51980c));}return _0x4f28be;});}[_0x1ad8('0x15')](_0x42d76b){return this['_getCoordsForCells'](_0x42d76b['getRanges']()[_0x1ad8('0x18')](_0x50be95=>_0x50be95[_0x1ad8('0x3a')]['nodeAfter']));}}function se(_0x286d20){return Array['from'](new Set(_0x286d20)[_0x1ad8('0x67')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58cc=['TableCaptionEditing','plugins','has','toggleTableCaption','enableCommand','afterInit','get','requires','editor'];(function(_0x1bac7d,_0x58cc6a){const _0x2c4554=function(_0x2e823f){while(--_0x2e823f){_0x1bac7d['push'](_0x1bac7d['shift']());}};_0x2c4554(++_0x58cc6a);}(_0x58cc,0x6b));const _0x2c45=function(_0x1bac7d,_0x58cc6a){_0x1bac7d=_0x1bac7d-0x0;let _0x2c4554=_0x58cc[_0x1bac7d];return _0x2c4554;};import{Plugin as _0x20bf09}from'ckeditor5/src/core';import _0x5e8fb2 from'./table';export default class vt extends _0x20bf09{static get[_0x2c45('0x8')](){return[_0x5e8fb2];}[_0x2c45('0x6')](){const _0x3cd456=this[_0x2c45('0x0')];if(!_0x3cd456[_0x2c45('0x2')][_0x2c45('0x3')](_0x2c45('0x1')))return;_0x3cd456[_0x2c45('0x2')][_0x2c45('0x7')]('TrackChangesEditing')[_0x2c45('0x5')](_0x2c45('0x4'));}}
|