@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230721.0 → 0.0.0-nightly-20230723.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 _0x43e1=['getSelectionAffectedTableCells','first','last','filter','ELEMENT_TABLE_ROW_WITH_TEXT','markMultiRangeInsertion','start','every','join','*Insert:*\x20%0','suggestion','getCellLocation','_getSuggestionCoords','toViewElement','item','TrackChangesEditing','ELEMENT_TABLE_COLUMN_WITH_TEXT','model','_getCoordsForCells','hasAttribute','selection','createTableWalker','writer','some','minColumn','addMarker:suggestion','registerElementLabel','insertTableRowAbove','selectTableRow','getColumnIndexes','left','_splitMarkerName','change','ELEMENT_TABLE_COLUMN','add','table','span','type','_tablePostFixingSubtypes','commands','markMultiRangeDeletion','colspan','ELEMENT_TABLE','name','order','push','ELEMENT_TABLE_WITH_TEXT','classes','removeTableColumn','nodeBefore','getAttribute','getRanges','_descriptionFactory','selectTableColumn','rootName','setSelection','substr','isIntersectingWithRange','MIN_SAFE_INTEGER','tableColumn','_acceptFormatSuggestionCallbackFactory','ELEMENT_TABLE_ROW','values','above','getChanges','root','addClass','execute','addRange','insertion','getItems','cell','fromRange','end','getContainedElement','_suggestionFactory','includes','getFirstRange','_tableSuggestions','TableUtils','registerCustomCallback','length','deletion','locale','removeTableRow','accept','$textProxy','minRow','insertTableRowBelow','maxRow','editor','startsWith','min','detach','toLowerCase','downcastDispatcher','discard','rowspan','has','findAncestor','insertTableColumnRight','batch','enableCommand','createRangeOn','isEqual','change:data','from','TableEditing','$graveyard','plugins','highest','*Remove:*\x20%0','tableRow','subType','mapper','low','document','isTouching','get','enqueueChange','refresh','max','nodeAfter','registerPostFixer','position','tableCell','data','map','getChangedMarkers'];(function(_0x33e4b5,_0x43e10c){const _0x26672e=function(_0x21bba7){while(--_0x21bba7){_0x33e4b5['push'](_0x33e4b5['shift']());}};_0x26672e(++_0x43e10c);}(_0x43e1,0x13e));const _0x2667=function(_0x33e4b5,_0x43e10c){_0x33e4b5=_0x33e4b5-0x0;let _0x26672e=_0x43e1[_0x33e4b5];return _0x26672e;};import{Plugin as _0x402dc7}from'ckeditor5/src/core';import{LiveRange as _0x118f17}from'ckeditor5/src/engine';import{setHighlightHandling as _0x255fc3}from'ckeditor5/src/widget';import{getTranslation as _0x41f726}from'../utils/common-translations';export default class mt extends _0x402dc7{constructor(_0x2a3041){super(_0x2a3041),this[_0x2667('0x6b')]=[_0x2667('0x34'),_0x2667('0x80')],this[_0x2667('0x12')]=new Set();}['afterInit'](){const _0x26680d=this[_0x2667('0x1e')],_0x4a51a3=_0x26680d[_0x2667('0x56')][_0x2667('0x38')][_0x2667('0x59')];if(!_0x26680d[_0x2667('0x31')][_0x2667('0x26')](_0x2667('0x2f')))return;const _0x48737e=_0x26680d[_0x2667('0x17')],_0x1837f0=_0x26680d[_0x2667('0x31')][_0x2667('0x3a')](_0x2667('0x54')),_0xec472a=_0x26680d[_0x2667('0x31')][_0x2667('0x3a')]('TableUtils');_0x1837f0[_0x2667('0x79')][_0x2667('0x5f')](_0x2667('0x68'),_0x4dff83=>_0x41f726(_0x48737e,_0x2667('0x6f'),_0x4dff83)),this['_setupColumnsRowsFixing'](),_0x1837f0[_0x2667('0x2a')]('insertTable'),_0x1837f0[_0x2667('0x2a')](_0x2667('0x61')),_0x1837f0[_0x2667('0x2a')](_0x2667('0x7a'));for(const _0x4ac696 of[_0x2667('0x60'),_0x2667('0x1c')]){const _0xeb77c5=_0x26680d[_0x2667('0x6c')][_0x2667('0x3a')](_0x4ac696);_0x1837f0[_0x2667('0x2a')](_0x4ac696,_0x4ef07d=>{_0x26680d[_0x2667('0x56')]['change'](_0x3a2410=>{_0x4ef07d();const _0x5ac48c=_0x2667('0x3')===_0xeb77c5[_0x2667('0x71')],_0x2b0068=_0xec472a[_0x2667('0x45')](_0x4a51a3),_0x358045=_0xec472a['getRowIndexes'](_0x2b0068),_0x3e0434=_0x5ac48c?_0x358045[_0x2667('0x46')]-0x1:_0x358045['last']+0x1,_0x23b3e4=_0x2b0068[0x0][_0x2667('0x27')](_0x2667('0x68')),_0x595550=_0xec472a['createTableWalker'](_0x23b3e4,{'startRow':_0x3e0434,'endRow':_0x3e0434}),_0x22e3f8=Array['from'](_0x595550)['map'](_0x539749=>_0x3a2410[_0x2667('0x2b')](_0x539749['cell']));_0x1837f0[_0x2667('0x4a')](_0x22e3f8,_0x2667('0x34'));});});}for(const _0x2359e5 of['insertTableColumnLeft',_0x2667('0x28')]){const _0x5867ef=_0x26680d[_0x2667('0x6c')][_0x2667('0x3a')](_0x2359e5);_0x1837f0[_0x2667('0x2a')](_0x2359e5,_0x481485=>{_0x26680d[_0x2667('0x56')][_0x2667('0x65')](_0x22affd=>{_0x481485();const _0x2e69aa=_0x2667('0x63')===_0x5867ef['order'],_0x43272c=_0xec472a[_0x2667('0x45')](_0x4a51a3),_0x13eefd=_0xec472a[_0x2667('0x62')](_0x43272c),_0x9f745f=_0x2e69aa?_0x13eefd[_0x2667('0x46')]-0x1:_0x13eefd['last']+0x1,_0x53c7ff=_0x43272c[0x0][_0x2667('0x27')](_0x2667('0x68')),_0x1333c4=_0xec472a[_0x2667('0x5a')](_0x53c7ff,{'startRow':0x0,'column':_0x9f745f,'includeAllSlots':!0x1}),_0x103569=Array[_0x2667('0x2e')](_0x1333c4)[_0x2667('0x43')](_0x1209ec=>_0x22affd[_0x2667('0x2b')](_0x1209ec[_0x2667('0xb')]));_0x1837f0[_0x2667('0x4a')](_0x103569,_0x2667('0x80'));});});}for(const _0x3da871 of[_0x2667('0x18'),_0x2667('0x75')]){const _0x1d2983=_0x3da871[_0x2667('0x7d')](0xb),_0x35be26=_0x1d2983[_0x2667('0x22')](),_0x25b38f=_0x35be26[_0x2667('0x7d')](0x0,0x3)+_0x2667('0x69'),_0x16b5c4=_0x2667('0x68')+_0x1d2983,_0x1fd5cf=_0x2667('0x20')+_0x1d2983,_0x428214=_0x2667('0x3d')+_0x1d2983;_0x1837f0['enableCommand'](_0x3da871,()=>{_0x26680d[_0x2667('0x56')][_0x2667('0x65')](_0x111a6a=>{const _0x5849ac=_0xec472a[_0x2667('0x45')](_0x4a51a3),_0x574739=_0x5849ac[0x0][_0x2667('0x27')](_0x2667('0x68'));let _0x1c99c2;if(_0x2667('0x18')==_0x3da871){const _0x563f7b=_0xec472a['getRowIndexes'](_0x5849ac);_0x1c99c2={'startRow':_0x563f7b[_0x2667('0x46')],'endRow':_0x563f7b['last'],'includeAllSlots':!0x0};}else{const _0x47482e=_0xec472a[_0x2667('0x62')](_0x5849ac);_0x1c99c2={'startColumn':_0x47482e[_0x2667('0x46')],'endColumn':_0x47482e[_0x2667('0x47')],'includeAllSlots':!0x0};}const _0x5eaf75=_0xec472a[_0x2667('0x5a')](_0x574739,_0x1c99c2),_0xa68128=Array[_0x2667('0x2e')](_0x5eaf75)[_0x2667('0x43')](({cell:_0x58a779})=>_0x58a779),_0x38bc34=se(_0xa68128[_0x2667('0x48')](_0x1b7a71=>_0x1b7a71[_0x2667('0x58')](_0x25b38f))),_0x3bf099=se(_0xa68128[_0x2667('0x48')](_0x120563=>!_0x120563[_0x2667('0x58')](_0x25b38f)))[_0x2667('0x43')](_0x31dde9=>_0x111a6a['createRangeOn'](_0x31dde9)),_0x5e0754=_0x1837f0[_0x2667('0x6d')](_0x3bf099,_0x16b5c4);if(_0x5e0754&&(_0x2667('0x34')==_0x5e0754[_0x2667('0x35')]||_0x2667('0x80')==_0x5e0754[_0x2667('0x35')])){const _0x2de846=this['_getSuggestionCoords'](_0x5e0754);for(const _0x533688 of _0x38bc34){const _0xbbfce4=_0x111a6a['createRangeOn'](_0x533688),_0x32282a=_0xec472a['getCellLocation'](_0x533688),_0x41bc7d=_0x533688['getAttribute'](_0x25b38f)-0x1,_0x18fd02=_0x2de846[_0x1fd5cf],_0x286ee7=_0x2de846[_0x428214];_0x18fd02<=_0x32282a[_0x35be26]&&_0x32282a[_0x35be26]+_0x41bc7d<=_0x286ee7&&_0x5e0754[_0x2667('0x8')](_0xbbfce4);}}});});}function _0x4fb6d2(_0x1c34f0){const _0xc2cadc=Array[_0x2667('0x2e')](_0x4a51a3['getRanges']())[_0x2667('0x43')](_0x2d48f3=>_0x118f17[_0x2667('0xc')](_0x2d48f3));_0x26680d['model'][_0x2667('0x65')](_0x17183b=>{const _0x17a0b8=_0x17183b[_0x2667('0x29')];_0x1c34f0=_0x1c34f0[_0x2667('0x48')](_0x468595=>_0x2667('0x30')!=_0x468595[_0x2667('0x5')][_0x2667('0x7b')]),_0x17183b[_0x2667('0x7c')](_0x1c34f0),_0x26680d[_0x2667('0x6c')]['get'](_0x2667('0x18'))['refresh'](),_0x26680d[_0x2667('0x7')](_0x2667('0x18'),{'forceDefaultExecution':!0x0}),_0x26680d[_0x2667('0x56')][_0x2667('0x3b')](()=>{_0x26680d[_0x2667('0x56')]['enqueueChange'](_0x17a0b8,_0x5911ba=>{const _0x2daf59=_0xc2cadc[_0x2667('0x48')](_0xa314ad=>_0x2667('0x30')!=_0xa314ad[_0x2667('0x5')]['rootName']);_0x2daf59['length']>0x0&&_0x5911ba['setSelection'](_0x2daf59);for(const _0x170cf6 of _0xc2cadc)_0x170cf6[_0x2667('0x21')]();});});});}function _0x52e6db(_0x27de28){_0x26680d['model'][_0x2667('0x65')](_0x5766b=>{const _0x19fcf4=Array['from'](_0x4a51a3['getRanges']())['map'](_0x56f2b6=>_0x118f17[_0x2667('0xc')](_0x56f2b6)),_0x390626=[];for(const _0x167785 of _0x27de28)for(const _0x10bd42 of _0x167785[_0x2667('0xa')]({'shallow':!0x0}))_0x390626[_0x2667('0x72')](_0x10bd42);for(const _0x5241c6 of _0x390626)'$graveyard'!=_0x5241c6['root'][_0x2667('0x7b')]&&(_0x5766b[_0x2667('0x7c')](_0x5766b['createPositionAt'](_0x5241c6,0x0)),_0x26680d[_0x2667('0x6c')][_0x2667('0x3a')](_0x2667('0x75'))[_0x2667('0x3c')](),_0x26680d['execute'](_0x2667('0x75'),{'forceDefaultExecution':!0x0}));const _0x413f72=_0x19fcf4[_0x2667('0x48')](_0x50250a=>'$graveyard'!=_0x50250a[_0x2667('0x5')][_0x2667('0x7b')]);_0x413f72[_0x2667('0x15')]>0x0&&_0x5766b[_0x2667('0x7c')](_0x413f72);for(const _0x1ac0d3 of _0x19fcf4)_0x1ac0d3['detach']();});}function _0x3902be(_0x39a28b,_0x528198){return _0x528198[_0x2667('0x4c')](_0x5645d2=>_0x39a28b[_0x2667('0x5c')](_0x53a8cb=>_0x53a8cb[_0x2667('0xd')]['isEqual'](_0x5645d2['start'])||_0x5645d2['end'][_0x2667('0x2c')](_0x53a8cb[_0x2667('0x4b')])));}function _0x106d6b(_0x56499b,_0x1a4491){return _0x56499b[_0x2667('0x5c')](_0x30e20e=>_0x1a4491[_0x2667('0x5c')](_0x2cc0ca=>_0x30e20e['end'][_0x2667('0x39')](_0x2cc0ca[_0x2667('0x4b')])));}_0x26680d[_0x2667('0x42')][_0x2667('0x23')]['on'](_0x2667('0x5e'),(_0x3efe90,_0x5a82d8,_0x194894)=>{if(!_0x194894['options']['showSuggestionHighlights'])return;const _0x1da613=_0x5a82d8[_0x2667('0x53')];if(!_0x1da613)return;const _0x4dcd32=_0x194894[_0x2667('0x36')][_0x2667('0x52')](_0x1da613);function _0x1ea0b1(_0x2c6770){return Array['isArray'](_0x2c6770)?_0x2c6770:[_0x2c6770];}_0x4dcd32&&_0x2667('0x41')===_0x1da613['name']&&_0x255fc3(_0x4dcd32,_0x194894[_0x2667('0x5b')],(_0x30ec2c,_0x2a48db,_0x8f2997)=>_0x8f2997[_0x2667('0x6')](_0x1ea0b1(_0x2a48db[_0x2667('0x74')]),_0x30ec2c),(_0x46798c,_0x92c440,_0x158cdf)=>_0x158cdf['removeClass'](_0x1ea0b1(_0x92c440[_0x2667('0x74')]),_0x46798c));},{'priority':_0x2667('0x32')}),_0x1837f0[_0x2667('0x79')]['registerDescriptionCallback'](_0x311dcb=>{if(_0x2667('0x9')!=_0x311dcb[_0x2667('0x6a')]&&_0x2667('0x16')!=_0x311dcb['type'])return;const _0x3b9e74=_0x311dcb[_0x2667('0xe')]();if(null!=_0x3b9e74&&_0x3b9e74['is']('element',_0x2667('0x68'))){if(_0x2667('0x9')==_0x311dcb[_0x2667('0x6a')]){const _0x1a684a=_0x311dcb[_0x2667('0xa')]()['filter'](_0x5ddbb1=>_0x5ddbb1['is']('$textProxy'))['map'](_0x38227b=>_0x38227b[_0x2667('0x42')]);if(_0x1a684a[_0x2667('0x15')])return{'type':'insertion','content':_0x41f726(_0x48737e,_0x2667('0x4e'),_0x41f726(_0x48737e,_0x2667('0x73'),'\x22'+_0x1a684a[_0x2667('0x4d')]('\x20')+'\x22'))};}if(_0x2667('0x16')==_0x311dcb['type']){const _0x104bc0=_0x311dcb[_0x2667('0xa')]()[_0x2667('0x48')](_0x3a0e28=>_0x3a0e28['is'](_0x2667('0x1a')))[_0x2667('0x43')](_0x4314fb=>_0x4314fb['data']);if(_0x104bc0[_0x2667('0x15')])return{'type':_0x2667('0x16'),'content':_0x41f726(_0x48737e,_0x2667('0x33'),_0x41f726(_0x48737e,_0x2667('0x73'),'\x22'+_0x104bc0[_0x2667('0x4d')]('\x20')+'\x22'))};}}}),_0x1837f0[_0x2667('0x79')]['registerDescriptionCallback'](_0x4c419d=>{if('tableRow'==_0x4c419d['subType']){const _0x518551=_0x4c419d[_0x2667('0xa')]()[_0x2667('0x48')](_0x2d2c7d=>_0x2d2c7d['is'](_0x2667('0x1a')))[_0x2667('0x43')](_0x4ee46c=>_0x4ee46c[_0x2667('0x42')]),_0x48027c=this[_0x2667('0x51')](_0x4c419d),_0x432706=_0x48027c[_0x2667('0x1d')]-_0x48027c[_0x2667('0x1b')]+0x1;if(_0x2667('0x9')==_0x4c419d[_0x2667('0x6a')])return _0x518551[_0x2667('0x15')]?{'type':_0x2667('0x9'),'content':_0x41f726(_0x48737e,'*Insert:*\x20%0',_0x41f726(_0x48737e,_0x2667('0x49'),[_0x432706,'\x22'+_0x518551['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x41f726(_0x48737e,'*Insert:*\x20%0',_0x41f726(_0x48737e,'ELEMENT_TABLE_ROW',_0x432706))};if(_0x2667('0x16')==_0x4c419d[_0x2667('0x6a')])return _0x518551['length']?{'type':'deletion','content':_0x41f726(_0x48737e,_0x2667('0x33'),_0x41f726(_0x48737e,_0x2667('0x49'),[_0x432706,'\x22'+_0x518551[_0x2667('0x4d')]('\x20')+'\x22']))}:{'type':_0x2667('0x16'),'content':_0x41f726(_0x48737e,_0x2667('0x33'),_0x41f726(_0x48737e,_0x2667('0x1'),_0x432706))};}if(_0x2667('0x80')==_0x4c419d[_0x2667('0x35')]){const _0x131721=_0x4c419d['getItems']()[_0x2667('0x48')](_0x44103c=>_0x44103c['is'](_0x2667('0x1a')))[_0x2667('0x43')](_0x56879b=>_0x56879b['data']),_0xe894b0=this[_0x2667('0x51')](_0x4c419d),_0x3cd7b1=_0xe894b0['maxColumn']-_0xe894b0[_0x2667('0x5d')]+0x1;if(_0x2667('0x9')==_0x4c419d[_0x2667('0x6a')])return _0x131721[_0x2667('0x15')]?{'type':_0x2667('0x9'),'content':_0x41f726(_0x48737e,_0x2667('0x4e'),_0x41f726(_0x48737e,_0x2667('0x55'),[_0x3cd7b1,'\x22'+_0x131721[_0x2667('0x4d')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x41f726(_0x48737e,'*Insert:*\x20%0',_0x41f726(_0x48737e,_0x2667('0x66'),_0x3cd7b1))};if(_0x2667('0x16')==_0x4c419d['type'])return _0x131721[_0x2667('0x15')]?{'type':_0x2667('0x16'),'content':_0x41f726(_0x48737e,_0x2667('0x33'),_0x41f726(_0x48737e,_0x2667('0x55'),[_0x3cd7b1,'\x22'+_0x131721[_0x2667('0x4d')]('\x20')+'\x22']))}:{'type':_0x2667('0x16'),'content':_0x41f726(_0x48737e,_0x2667('0x33'),_0x41f726(_0x48737e,'ELEMENT_TABLE_COLUMN',_0x3cd7b1))};}}),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')](_0x2667('0x9'),'tableRow',_0x2667('0x24'),_0x4fb6d2),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')](_0x2667('0x16'),_0x2667('0x34'),_0x2667('0x19'),_0x4fb6d2),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')](_0x2667('0x9'),'tableColumn',_0x2667('0x24'),_0x52e6db),_0x1837f0[_0x2667('0xf')]['registerCustomCallback'](_0x2667('0x16'),_0x2667('0x80'),_0x2667('0x19'),_0x52e6db),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')](_0x2667('0x9'),_0x2667('0x80'),_0x2667('0x4d'),_0x3902be),_0x1837f0['_suggestionFactory'][_0x2667('0x14')](_0x2667('0x16'),_0x2667('0x80'),'join',_0x3902be),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')]('insertion','tableRow',_0x2667('0x4d'),_0x106d6b),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')](_0x2667('0x16'),_0x2667('0x34'),'join',_0x106d6b);}[_0x2667('0x0')](){const _0x461c3f=this[_0x2667('0x1e')],_0x82b1f9=_0x461c3f['model'][_0x2667('0x38')]['selection'];return(_0x21cd40,_0x32aaf0)=>{_0x461c3f['model'][_0x2667('0x65')](_0x15d31b=>{const {commandName:_0x5d9de9,commandParams:_0x24d919}=_0x32aaf0;let _0x44cca0=_0x21cd40[0x0][_0x2667('0xd')][_0x2667('0x76')];_0x24d919&&_0x24d919[0x0]&&!0x1===_0x24d919[0x0]['forceValue']&&(_0x44cca0=_0x21cd40[0x0][_0x2667('0x4b')]['nodeAfter']);const _0x184992=_0x15d31b['createRangeIn'](_0x44cca0);if(_0x2667('0x30')==_0x184992[_0x2667('0x5')][_0x2667('0x7b')])return;const _0x429d21=Array['from'](_0x82b1f9[_0x2667('0x78')]())[_0x2667('0x43')](_0x4f8fc0=>_0x118f17[_0x2667('0xc')](_0x4f8fc0));_0x15d31b[_0x2667('0x7c')](_0x184992),_0x461c3f[_0x2667('0x6c')][_0x2667('0x3a')](_0x5d9de9)[_0x2667('0x3c')](),_0x24d919[_0x2667('0x72')]({'forceDefaultExecution':!0x0}),_0x461c3f['execute'](_0x5d9de9,..._0x24d919);const _0x4183ed=_0x429d21['filter'](_0x109805=>_0x2667('0x30')!=_0x109805[_0x2667('0x5')][_0x2667('0x7b')]);_0x4183ed[_0x2667('0x15')]>0x0&&_0x15d31b[_0x2667('0x7c')](_0x4183ed);for(const _0x18e867 of _0x429d21)_0x18e867[_0x2667('0x21')]();});};}[_0x2667('0x57')](_0x17fa74){const _0x469012=this['editor']['plugins'][_0x2667('0x3a')](_0x2667('0x13'));let _0x25ce8f=Number['MAX_SAFE_INTEGER'],_0x260dfb=Number['MIN_SAFE_INTEGER'],_0x312451=Number['MAX_SAFE_INTEGER'],_0x3b976e=Number[_0x2667('0x7f')];for(const _0x471a8b of _0x17fa74){if(_0x2667('0x30')==_0x471a8b[_0x2667('0x5')][_0x2667('0x7b')])continue;const {row:_0x5c6060,column:_0x244723}=_0x469012['getCellLocation'](_0x471a8b),_0x35d2df=_0x471a8b[_0x2667('0x58')](_0x2667('0x25'))?_0x471a8b[_0x2667('0x77')](_0x2667('0x25'))-0x1:0x0,_0x5f1f65=_0x471a8b[_0x2667('0x58')](_0x2667('0x6e'))?_0x471a8b[_0x2667('0x77')](_0x2667('0x6e'))-0x1:0x0;_0x25ce8f=_0x5c6060<_0x25ce8f?_0x5c6060:_0x25ce8f,_0x260dfb=_0x5c6060+_0x35d2df>_0x260dfb?_0x5c6060+_0x35d2df:_0x260dfb,_0x312451=_0x244723<_0x312451?_0x244723:_0x312451,_0x3b976e=_0x244723+_0x5f1f65>_0x3b976e?_0x244723+_0x5f1f65:_0x3b976e;}return{'minRow':_0x25ce8f,'maxRow':_0x260dfb,'minColumn':_0x312451,'maxColumn':_0x3b976e};}['_setupColumnsRowsFixing'](){const _0x7ed675=this[_0x2667('0x1e')],_0x1a9644=_0x7ed675[_0x2667('0x31')]['get'](_0x2667('0x54')),_0x3e26da=_0x7ed675[_0x2667('0x31')][_0x2667('0x3a')](_0x2667('0x13'));_0x7ed675['model'][_0x2667('0x38')]['on'](_0x2667('0x2d'),()=>{const _0x5bdd97=Array[_0x2667('0x2e')](_0x7ed675[_0x2667('0x56')][_0x2667('0x38')]['differ'][_0x2667('0x44')]());for(const {name:_0x578599,data:_0x34014e}of _0x5bdd97){const {group:_0x3ab963,id:_0x33ffa5,subType:_0x58a472}=_0x1a9644[_0x2667('0x64')](_0x578599);if(_0x2667('0x4f')!=_0x3ab963)continue;if(null!=_0x34014e['oldRange'])continue;const _0x404c2f=_0x1a9644['getSuggestion'](_0x33ffa5);this[_0x2667('0x6b')][_0x2667('0x10')](_0x58a472)&&this[_0x2667('0x12')][_0x2667('0x67')](_0x404c2f);}},{'priority':_0x2667('0x37')});const _0x1b4897=(_0x4e180a,_0x26c4b0)=>{let _0x361339=!0x1;const _0x319b2c=_0x26c4b0['createRangeOn'](_0x4e180a),_0xc99c1d=_0x4e180a['findAncestor'](_0x2667('0x68')),_0x1eb898=_0x3e26da[_0x2667('0x50')](_0x4e180a);for(const _0x2122a5 of this[_0x2667('0x12')]){const _0x262377=_0x2122a5['subType'],_0x4f6860=_0x262377[_0x2667('0x1f')]('tablePaste'),_0x30ac93=_0x262377['substr'](_0x4f6860?0xa:0x5),_0x3141d4=_0x30ac93[_0x2667('0x22')](),_0x44a30c=_0x3141d4[_0x2667('0x7d')](0x0,0x3)+'span',_0x426afa=_0x2667('0x20')+_0x30ac93,_0x5b0d4a=_0x2667('0x3d')+_0x30ac93;if(!_0x2122a5['isInContent'])continue;if(_0xc99c1d!=_0x2122a5[_0x2667('0x11')]()[_0x2667('0x4b')]['findAncestor'](_0x2667('0x68')))continue;if(_0x2122a5[_0x2667('0x7e')](_0x319b2c))continue;const _0x181c04=_0x4e180a[_0x2667('0x58')](_0x44a30c)?_0x4e180a['getAttribute'](_0x44a30c)-0x1:0x0,_0x16ed5a=this['_getSuggestionCoords'](_0x2122a5),_0xed2935=_0x16ed5a[_0x426afa],_0x549fae=_0x16ed5a[_0x5b0d4a];_0xed2935<=_0x1eb898[_0x3141d4]&&_0x1eb898[_0x3141d4]+_0x181c04<=_0x549fae&&(_0x2122a5[_0x2667('0x8')](_0x319b2c),_0x361339=!0x0);}return _0x361339;};_0x7ed675['model'][_0x2667('0x38')][_0x2667('0x3f')](_0x346e60=>{let _0x54ada9=!0x1;for(const _0x11f018 of _0x7ed675[_0x2667('0x56')][_0x2667('0x38')]['differ'][_0x2667('0x4')]())if('insert'==_0x11f018[_0x2667('0x6a')]){if(_0x2667('0x34')==_0x11f018[_0x2667('0x70')])for(const _0x53895c of _0x11f018[_0x2667('0x40')]['nodeAfter']['getChildren']())_0x54ada9=_0x54ada9||_0x1b4897(_0x53895c,_0x346e60);else'tableCell'==_0x11f018[_0x2667('0x70')]&&(_0x54ada9=_0x54ada9||_0x1b4897(_0x11f018[_0x2667('0x40')]['nodeAfter'],_0x346e60));}return _0x54ada9;});}[_0x2667('0x51')](_0x400bc4){return this[_0x2667('0x57')](_0x400bc4[_0x2667('0x78')]()[_0x2667('0x43')](_0x241fed=>_0x241fed[_0x2667('0x4b')][_0x2667('0x3e')]));}}function se(_0x581f8d){return Array[_0x2667('0x2e')](new Set(_0x581f8d)[_0x2667('0x2')]());}
|
|
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'));}}
|