@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231006.0 → 0.0.0-nightly-20231008.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/aiassistant.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 _0x5b89=['_LIST_','createRange','listStart','map','listStyle','getSiblingNodes','_getTranslationKeyForListStyle','backward','document','startIndex','styles','markMultiRangeBlockFormat','get','listType','element','change','getFirstPosition','commandName','format','reversed','config','listItem','_descriptionFactory','*Change\x20to:*\x20%0','handleListStartCommand','handleListStyleCommand','getListTypeFromListStyleType','unshift','commandParams','createPositionAt','plugins','TrackChangesEditing','_getSuggestionBlocksForListStyle','getLastPosition','editor','handleDescriptions','filter','enableCommand','push','length','from','handleListReversedCommand','forward','toUpperCase','type','*Format:*\x20set\x20order\x20to\x20reversed','afterInit','*Format:*\x20set\x20start\x20index\x20to\x20%0','getSelectedBlocks','listReversed','flat','_getSuggestionBlocks','bind','replace','selection','getAttribute','parent','locale','numbered','model','ListUtils'];(function(_0x5d637a,_0x5b8938){const _0x1210e2=function(_0x36ba7f){while(--_0x36ba7f){_0x5d637a['push'](_0x5d637a['shift']());}};_0x1210e2(++_0x5b8938);}(_0x5b89,0x1ec));const _0x1210=function(_0x5d637a,_0x5b8938){_0x5d637a=_0x5d637a-0x0;let _0x1210e2=_0x5b89[_0x5d637a];return _0x1210e2;};import{Plugin as _0x67733a}from'ckeditor5/src/core';import{getTranslation as _0x476a8f}from'../utils/common-translations';export default class ot extends _0x67733a{[_0x1210('0x2a')](){if(!this[_0x1210('0x1e')][_0x1210('0x1a')]['has']('ListPropertiesEditing'))return;const _0xc3e5bf=this[_0x1210('0x1e')][_0x1210('0x10')]['get']('list.properties'),_0x16b171=this[_0x1210('0x1e')]['plugins'][_0x1210('0x8')](_0x1210('0x1b'));_0xc3e5bf[_0x1210('0x6')]&&_0x16b171[_0x1210('0x21')](_0x1210('0x0'),this['handleListStyleCommand'][_0x1210('0x30')](this)),_0xc3e5bf['reversed']&&_0x16b171[_0x1210('0x21')](_0x1210('0x2d'),this[_0x1210('0x25')][_0x1210('0x30')](this)),_0xc3e5bf[_0x1210('0x5')]&&_0x16b171['enableCommand'](_0x1210('0x3b'),this[_0x1210('0x14')][_0x1210('0x30')](this)),_0x16b171[_0x1210('0x12')]['registerDescriptionCallback'](this[_0x1210('0x1f')][_0x1210('0x30')](this));}[_0x1210('0x15')](_0x3913cd,_0x2c0fbd={}){const _0x4e927e=this[_0x1210('0x1e')]['plugins'][_0x1210('0x8')](_0x1210('0x1b')),_0xbaa073=this['_getSuggestionBlocksForListStyle']();this[_0x1210('0x1e')]['model'][_0x1210('0xb')](()=>{_0x4e927e[_0x1210('0x7')](_0xbaa073,{'commandName':_0x1210('0x0'),'commandParams':[{'type':_0x2c0fbd[_0x1210('0x28')]}],'formatGroupId':_0x1210('0x0')});});}['handleListReversedCommand'](_0x442fb0,_0x328e99={}){const _0x5c4d77=this[_0x1210('0x1e')]['plugins']['get'](_0x1210('0x1b')),_0x1da1b8=this[_0x1210('0x2f')](_0x2fff38=>_0x2fff38['is']('element','listItem')&&_0x1210('0x36')===_0x2fff38[_0x1210('0x33')](_0x1210('0x9')));if(_0x1da1b8[_0x1210('0x23')]<0x1)return;const _0x3597c3=_0x1da1b8[_0x1210('0x3c')](_0x465d3b=>this['editor'][_0x1210('0x37')][_0x1210('0x3a')](this[_0x1210('0x1e')][_0x1210('0x37')][_0x1210('0x19')](_0x465d3b,'before'),this[_0x1210('0x1e')][_0x1210('0x37')][_0x1210('0x19')](_0x465d3b,0x0)));this[_0x1210('0x1e')][_0x1210('0x37')][_0x1210('0xb')](()=>{_0x5c4d77[_0x1210('0x7')](_0x3597c3,{'commandName':'listReversed','commandParams':[{'reversed':_0x328e99[_0x1210('0xf')]}],'formatGroupId':'listReversed'});});}[_0x1210('0x14')](_0x4d2486,_0x389fe7={}){const _0x64f7d8=this[_0x1210('0x1e')][_0x1210('0x1a')][_0x1210('0x8')](_0x1210('0x1b')),_0x132f54=this[_0x1210('0x2f')](_0x217c35=>_0x217c35['is']('element',_0x1210('0x11'))&&_0x1210('0x36')===_0x217c35['getAttribute']('listType'));if(_0x132f54['length']<0x1)return;const _0x170bf6=_0x132f54['map'](_0x3b8362=>this[_0x1210('0x1e')][_0x1210('0x37')][_0x1210('0x3a')](this[_0x1210('0x1e')]['model']['createPositionAt'](_0x3b8362,'before'),this[_0x1210('0x1e')]['model'][_0x1210('0x19')](_0x3b8362,0x0)));this['editor'][_0x1210('0x37')][_0x1210('0xb')](()=>{_0x64f7d8[_0x1210('0x7')](_0x170bf6,{'commandName':'listStart','commandParams':[{'startIndex':_0x389fe7[_0x1210('0x5')]}],'formatGroupId':'listStart'});});}[_0x1210('0x1f')](_0x16efda){const _0x3e9d4d=this[_0x1210('0x1e')][_0x1210('0x35')],{data:_0x2ca7d1}=_0x16efda;if(!_0x2ca7d1)return;let _0x38992d,_0x5f0209;switch(_0x2ca7d1[_0x1210('0xd')]){case _0x1210('0x0'):_0x38992d=_0x1210('0x13'),_0x5f0209={'type':_0x1210('0xe'),'content':_0x476a8f(_0x3e9d4d,_0x38992d,_0x476a8f(_0x3e9d4d,this[_0x1210('0x2')](_0x2ca7d1[_0x1210('0x18')][0x0][_0x1210('0x28')])))};break;case'listReversed':_0x38992d=_0x2ca7d1[_0x1210('0x18')][0x0][_0x1210('0xf')]?_0x1210('0x29'):'*Format:*\x20set\x20order\x20to\x20regular',_0x5f0209={'type':'format','content':_0x476a8f(_0x3e9d4d,_0x38992d)};break;case _0x1210('0x3b'):_0x38992d=_0x1210('0x2b'),_0x5f0209={'type':_0x1210('0xe'),'content':_0x476a8f(_0x3e9d4d,_0x38992d,_0x2ca7d1['commandParams'][0x0]['startIndex'])};}return _0x5f0209;}[_0x1210('0x1c')](){var _0x4ca3e3,_0x41c8cf,_0x30ff92,_0x1d8e83;const _0x2a42aa=this[_0x1210('0x1e')]['plugins'][_0x1210('0x8')](_0x1210('0x38'));let _0x28b2fd=Array[_0x1210('0x24')](this[_0x1210('0x1e')][_0x1210('0x37')][_0x1210('0x4')][_0x1210('0x32')][_0x1210('0x2c')]());return(null===(_0x4ca3e3=_0x28b2fd[0x0])||void 0x0===_0x4ca3e3?void 0x0:_0x4ca3e3['is']('element',_0x1210('0x11')))&&_0x28b2fd[_0x1210('0x17')](..._0x2a42aa[_0x1210('0x1')](this[_0x1210('0x1e')][_0x1210('0x37')]['document'][_0x1210('0x32')][_0x1210('0xc')](),_0x1210('0x3'))),(null===(_0x41c8cf=_0x28b2fd[_0x28b2fd[_0x1210('0x23')]-0x1])||void 0x0===_0x41c8cf?void 0x0:_0x41c8cf['is'](_0x1210('0xa'),_0x1210('0x11')))&&_0x28b2fd[_0x1210('0x22')](..._0x2a42aa[_0x1210('0x1')](this['editor']['model'][_0x1210('0x4')]['selection'][_0x1210('0x1d')](),_0x1210('0x26'))),_0x28b2fd=[...new Set(_0x28b2fd)],(null===(_0x1d8e83=null===(_0x30ff92=this[_0x1210('0x1e')][_0x1210('0x37')][_0x1210('0x4')][_0x1210('0x32')][_0x1210('0xc')]())||void 0x0===_0x30ff92?void 0x0:_0x30ff92[_0x1210('0x34')])||void 0x0===_0x1d8e83?void 0x0:_0x1d8e83['is'](_0x1210('0xa'),_0x1210('0x11')))&&(_0x28b2fd=_0x28b2fd['filter'](_0x5cde8e=>_0x5cde8e['is'](_0x1210('0xa'),_0x1210('0x11')))),_0x28b2fd;}[_0x1210('0x2f')](_0x150c76){const _0x2c175f=this[_0x1210('0x1e')][_0x1210('0x1a')][_0x1210('0x8')](_0x1210('0x38'));let _0x210279=Array[_0x1210('0x24')](this[_0x1210('0x1e')]['model'][_0x1210('0x4')][_0x1210('0x32')][_0x1210('0x2c')]())[_0x1210('0x20')](_0x150c76)['map'](_0x30d932=>{const _0x48ad0b=this['editor']['model'][_0x1210('0x19')](_0x30d932,0x0);return[..._0x2c175f[_0x1210('0x1')](_0x48ad0b,_0x1210('0x3')),..._0x2c175f[_0x1210('0x1')](_0x48ad0b,'forward')];})[_0x1210('0x2e')]();return _0x210279=[...new Set(_0x210279)],_0x210279;}['_getTranslationKeyForListStyle'](_0x54af4e){return'ELEMENT_'+this[_0x1210('0x1e')]['plugins'][_0x1210('0x8')](_0x1210('0x38'))[_0x1210('0x16')](_0x54af4e)['toUpperCase']()+_0x1210('0x39')+_0x54af4e[_0x1210('0x27')]()[_0x1210('0x31')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x159d=['elementToElement','_descriptionFactory','dataDowncast','div','media','has','locale','for','MediaEmbedEditing','enableCommand','createEmptyElement','high','downcastDispatcher','mediaEmbed','plugins','TrackChangesEditing','data','showSuggestionHighlights','options','get','ELEMENT_MEDIA','attribute:url:media','conversion','editor'];(function(_0x10da70,_0x159dc3){const _0x1f0482=function(_0x2eee17){while(--_0x2eee17){_0x10da70['push'](_0x10da70['shift']());}};_0x1f0482(++_0x159dc3);}(_0x159d,0xaa));const _0x1f04=function(_0x10da70,_0x159dc3){_0x10da70=_0x10da70-0x0;let _0x1f0482=_0x159d[_0x10da70];return _0x1f0482;};import{Plugin as _0x129afe}from'ckeditor5/src/core';import{getTranslation as _0x203d86}from'../utils/common-translations';export default class rt extends _0x129afe{['afterInit'](){const _0xe95d57=this[_0x1f04('0x15')];if(!_0xe95d57[_0x1f04('0xc')][_0x1f04('0x3')](_0x1f04('0x6')))return;const _0x453ea0=_0xe95d57[_0x1f04('0xc')][_0x1f04('0x11')](_0x1f04('0xd')),_0x8183d8=_0xe95d57[_0x1f04('0x4')];_0x453ea0[_0x1f04('0x7')](_0x1f04('0xb')),_0x453ea0[_0x1f04('0x17')]['registerElementLabel'](_0x1f04('0x2'),_0x8847d9=>_0x203d86(_0x8183d8,_0x1f04('0x12'),_0x8847d9)),_0xe95d57[_0x1f04('0x14')][_0x1f04('0x5')](_0x1f04('0x0'))[_0x1f04('0x16')]({'model':_0x1f04('0x2'),'view':(_0x2131c1,{writer:_0x3a2228,options:_0x2d7145})=>{if(_0x2d7145[_0x1f04('0xf')])return _0x3a2228[_0x1f04('0x8')](_0x1f04('0x1'));},'converterPriority':_0x1f04('0x9')}),_0xe95d57[_0x1f04('0xe')][_0x1f04('0xa')]['on'](_0x1f04('0x13'),(_0x7dfdde,_0x90ad4,_0x4fb008)=>{_0x4fb008[_0x1f04('0x10')][_0x1f04('0xf')]&&_0x7dfdde['stop']();},{'priority':_0x1f04('0x9')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12bb=['mention','editor','enableCommand','MentionEditing','plugins','afterInit'];(function(_0x6b972f,_0x12bb64){const _0x50fe0f=function(_0x527db7){while(--_0x527db7){_0x6b972f['push'](_0x6b972f['shift']());}};_0x50fe0f(++_0x12bb64);}(_0x12bb,0x80));const _0x50fe=function(_0x6b972f,_0x12bb64){_0x6b972f=_0x6b972f-0x0;let _0x50fe0f=_0x12bb[_0x6b972f];return _0x50fe0f;};import{Plugin as _0x200bb1}from'ckeditor5/src/core';export default class at extends _0x200bb1{[_0x50fe('0x3')](){const _0x2c0721=this[_0x50fe('0x5')];_0x2c0721[_0x50fe('0x2')]['has'](_0x50fe('0x1'))&&_0x2c0721[_0x50fe('0x2')]['get']('TrackChangesEditing')[_0x50fe('0x0')](_0x50fe('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a08=['editor','plugins','enableCommand','afterInit','get','pageBreak','ELEMENT_PAGE_BREAK','_descriptionFactory','PageBreakEditing','registerElementLabel','has'];(function(_0x22b233,_0x1a087d){const _0x50608c=function(_0xeaeaf5){while(--_0xeaeaf5){_0x22b233['push'](_0x22b233['shift']());}};_0x50608c(++_0x1a087d);}(_0x1a08,0xf5));const _0x5060=function(_0x22b233,_0x1a087d){_0x22b233=_0x22b233-0x0;let _0x50608c=_0x1a08[_0x22b233];return _0x50608c;};import{Plugin as _0x3d00ef}from'ckeditor5/src/core';import{getTranslation as _0x4d55b1}from'../utils/common-translations';export default class ct extends _0x3d00ef{[_0x5060('0x0')](){const _0x472ad2=this[_0x5060('0x8')];if(!_0x472ad2[_0x5060('0x9')][_0x5060('0x7')](_0x5060('0x5')))return;_0x472ad2[_0x5060('0x9')][_0x5060('0x1')]('TrackChangesEditing')[_0x5060('0xa')](_0x5060('0x2'));const _0x2ce372=_0x472ad2['plugins']['get']('TrackChangesEditing'),_0x521e56=_0x472ad2['locale'];_0x2ce372[_0x5060('0x4')][_0x5060('0x6')](_0x5060('0x2'),_0x1d710b=>_0x4d55b1(_0x521e56,_0x5060('0x3'),_0x1d710b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fc3=['*Change\x20to:*\x20%0','getItemLabel','has','paragraph','ck-suggestion-marker--active','markerName','ELEMENT_PARAGRAPH','isTouching','parent','format','mapper','from','writer','span','end','markBlockFormat','consumable','highest','change','markerRange','checkChild','activeMarkers','schema','nodeAfter','data','_descriptionFactory','createUIElement','insertion','model','toViewPosition','get','type','addMarker:suggestion:insertion','isLimit','$text','afterInit','ck-suggestion-marker-split','getSelectedBlocks','registerElementLabel','consume','plugins','document','filter','name','commandName','isBlock','Paragraph','selection','addClass','registerDescriptionCallback','editing','TrackChangesEditing','editor','enableCommand','isObject','showSuggestionHighlights','bindElementToMarker','options'];(function(_0x17c981,_0x1fc377){const _0x277446=function(_0x33de82){while(--_0x33de82){_0x17c981['push'](_0x17c981['shift']());}};_0x277446(++_0x1fc377);}(_0x1fc3,0xc7));const _0x2774=function(_0x17c981,_0x1fc377){_0x17c981=_0x17c981-0x0;let _0x277446=_0x1fc3[_0x17c981];return _0x277446;};import{Plugin as _0x261b6a}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x29743b}from'./utils';import{getTranslation as _0x55465e}from'../utils/common-translations';export default class ht extends _0x261b6a{[_0x2774('0xa')](){const _0x5d46b9=this[_0x2774('0x1b')];if(!_0x5d46b9[_0x2774('0xf')][_0x2774('0x23')](_0x2774('0x15')))return;const _0x16b860=_0x5d46b9['locale'],_0x3ddadb=_0x5d46b9['plugins'][_0x2774('0x5')]('TrackChangesEditing');_0x3ddadb[_0x2774('0x0')][_0x2774('0xd')](_0x2774('0x24'),_0xde3694=>_0x55465e(_0x16b860,_0x2774('0x27'),_0xde3694)),_0x3ddadb['enableCommand']('paragraph',(_0xe0c21e,_0x343b00={})=>{const _0x5586ef=_0x5d46b9[_0x2774('0x3')][_0x2774('0x10')],_0x453b66=_0x343b00[_0x2774('0x16')]||_0x5586ef[_0x2774('0x16')],_0x1ac34d=Array[_0x2774('0x2c')](_0x453b66[_0x2774('0xc')]())[_0x2774('0x11')](_0x442521=>function(_0x248de3,_0x157582){return _0x157582[_0x2774('0x35')](_0x248de3[_0x2774('0x29')],_0x2774('0x24'))&&!_0x157582[_0x2774('0x1d')](_0x248de3)&&_0x2774('0x24')!=_0x248de3['name'];}(_0x442521,this['editor'][_0x2774('0x3')]['schema']));_0x5d46b9['model'][_0x2774('0x33')](()=>{for(const _0x473dfb of _0x1ac34d)_0x3ddadb[_0x2774('0x30')](_0x473dfb,{'commandName':_0x2774('0x24'),'commandParams':[],'formatGroupId':'blockName'},_0x29743b(_0x473dfb));});}),_0x3ddadb[_0x2774('0x0')][_0x2774('0x18')](_0x28630e=>{const {data:_0x353b64}=_0x28630e;if(_0x353b64&&'paragraph'==_0x353b64[_0x2774('0x13')])return{'type':_0x2774('0x2a'),'content':_0x55465e(_0x16b860,_0x2774('0x21'),_0x55465e(_0x16b860,_0x2774('0x27')))};}),_0x3ddadb[_0x2774('0x1c')]('insertParagraph'),_0x5d46b9[_0x2774('0x19')]['downcastDispatcher']['on'](_0x2774('0x7'),ar(_0x5d46b9),{'priority':_0x2774('0x32')}),_0x5d46b9[_0x2774('0x39')]['downcastDispatcher']['on'](_0x2774('0x7'),(_0x112a41,_0x2a7334,_0x552b0c)=>{_0x552b0c[_0x2774('0x20')][_0x2774('0x1e')]&&ar(_0x5d46b9,{'showActiveMarker':!0x1})(_0x112a41,_0x2a7334,_0x552b0c);},{'priority':_0x2774('0x32')});const _0x4b7911=_0x3ddadb[_0x2774('0x0')];_0x4b7911[_0x2774('0x18')](_0x494a45=>{if(_0x2774('0x2')!==_0x494a45[_0x2774('0x6')])return;const {start:_0x2e43ac,end:_0x6c92d2}=_0x494a45['getFirstRange']();if(!_0x2e43ac[_0x2774('0x28')](_0x6c92d2)||!_0x2e43ac['nodeAfter'])return;const _0x1de5ab=_0x5d46b9['model'][_0x2774('0x37')],_0x3ca8aa=_0x2e43ac['nodeAfter'];return _0x1de5ab['isBlock'](_0x3ca8aa)&&!_0x1de5ab[_0x2774('0x8')](_0x3ca8aa)&&_0x1de5ab[_0x2774('0x35')](_0x3ca8aa,_0x2774('0x9'))?{'type':_0x2774('0x2'),'content':_0x55465e(_0x16b860,'*Insert:*\x20%0',_0x4b7911[_0x2774('0x22')](_0x3ca8aa,0x1))}:void 0x0;});}}function ar(_0x521f98,{showActiveMarker:_0x1aa6d3=!0x0}={}){return(_0x414d8e,_0x132a3e,_0x4d85ec)=>{const _0x2c9116=_0x521f98[_0x2774('0xf')][_0x2774('0x5')](_0x2774('0x1a')),_0x3470c5=_0x132a3e[_0x2774('0x34')]['start'],_0x7ecaeb=_0x132a3e[_0x2774('0x34')][_0x2774('0x2f')],_0x5a643e=_0x521f98['model'][_0x2774('0x37')];if(!_0x3470c5[_0x2774('0x28')](_0x7ecaeb)||!_0x3470c5[_0x2774('0x38')])return;const _0x2edeea=_0x3470c5[_0x2774('0x38')];if(_0x5a643e[_0x2774('0x14')](_0x2edeea)&&!_0x5a643e[_0x2774('0x8')](_0x2edeea)&&_0x5a643e[_0x2774('0x35')](_0x2edeea,'$text')){if(!_0x4d85ec[_0x2774('0x31')][_0x2774('0xe')](_0x132a3e['markerRange'],_0x414d8e[_0x2774('0x12')]))return;const _0x2537b0=_0x4d85ec[_0x2774('0x2d')][_0x2774('0x1')](_0x2774('0x2e'),{'class':_0x2774('0xb')}),_0x90fbcc=_0x4d85ec[_0x2774('0x2b')][_0x2774('0x4')](_0x7ecaeb);_0x1aa6d3&&_0x2c9116[_0x2774('0x36')]['includes'](_0x132a3e[_0x2774('0x26')])&&_0x4d85ec[_0x2774('0x2d')][_0x2774('0x17')](_0x2774('0x25'),_0x2537b0),_0x4d85ec['writer']['insert'](_0x90fbcc,_0x2537b0),_0x4d85ec[_0x2774('0x2b')][_0x2774('0x1f')](_0x2537b0,_0x132a3e[_0x2774('0x26')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2288=['RemoveFormatEditing','has','get','isFormatting','format','TrackChangesEditing','change','removeFormat','*Remove\x20all\x20formatting*','plugins','schema','editor','markInlineFormat','getAttributes','afterInit','isCollapsed','_descriptionFactory','model','getItems'];(function(_0x203bdd,_0x2288bd){const _0x3aff66=function(_0x503a9e){while(--_0x503a9e){_0x203bdd['push'](_0x203bdd['shift']());}};_0x3aff66(++_0x2288bd);}(_0x2288,0xeb));const _0x3aff=function(_0x203bdd,_0x2288bd){_0x203bdd=_0x203bdd-0x0;let _0x3aff66=_0x2288[_0x203bdd];return _0x3aff66;};import{Plugin as _0x4f2a50}from'ckeditor5/src/core';import{getTranslation as _0x57c9ed}from'../utils/common-translations';export default class ut extends _0x4f2a50{[_0x3aff('0x7')](){const _0x2d8142=this[_0x3aff('0x4')];if(!_0x2d8142[_0x3aff('0x2')][_0x3aff('0xd')](_0x3aff('0xc')))return;const _0x1ac85d=_0x2d8142[_0x3aff('0x2')][_0x3aff('0xe')](_0x3aff('0x11'));_0x1ac85d['enableCommand'](_0x3aff('0x0'),_0x71f6cf=>{const _0x1a3e12=_0x2d8142[_0x3aff('0xa')]['document']['selection'];_0x1a3e12[_0x3aff('0x8')]?_0x71f6cf():_0x2d8142[_0x3aff('0xa')][_0x3aff('0x12')](()=>{const _0xaeaf0c=Array['from'](_0x1a3e12['getRanges']());for(const _0x1a87b7 of _0xaeaf0c)for(const _0x5c9f04 of _0x1a87b7[_0x3aff('0xb')]())mo(_0x5c9f04,_0x2d8142[_0x3aff('0xa')][_0x3aff('0x3')])&&_0x1ac85d[_0x3aff('0x5')](_0x2d8142[_0x3aff('0xa')]['createRangeOn'](_0x5c9f04),{'commandName':'removeFormat','commandParams':[]});});}),_0x1ac85d[_0x3aff('0x9')]['registerDescriptionCallback'](_0x2d42b2=>{const {data:_0x3355e4}=_0x2d42b2;if(_0x3355e4&&_0x3aff('0x0')==_0x3355e4['commandName'])return{'type':_0x3aff('0x10'),'content':_0x57c9ed(_0x2d8142['locale'],_0x3aff('0x1'))};});}}function mo(_0x4ea069,_0xacab68){for(const [_0x271cab]of _0x4ea069[_0x3aff('0x6')]()){const _0xa362fc=_0xacab68['getAttributeProperties'](_0x271cab);if(_0xa362fc&&_0xa362fc[_0x3aff('0xf')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f15=['get','editor','trackChanges','discardSelectedSuggestions','has','goToNextRestrictedEditingException','enableCommand','acceptSelectedSuggestions','acceptAllSuggestions','discardAllSuggestions','goToPreviousRestrictedEditingException'];(function(_0x1b3a4d,_0x3f1521){const _0x3ce558=function(_0x249a94){while(--_0x249a94){_0x1b3a4d['push'](_0x1b3a4d['shift']());}};_0x3ce558(++_0x3f1521);}(_0x3f15,0x6b));const _0x3ce5=function(_0x1b3a4d,_0x3f1521){_0x1b3a4d=_0x1b3a4d-0x0;let _0x3ce558=_0x3f15[_0x1b3a4d];return _0x3ce558;};import{Plugin as _0x666c87}from'ckeditor5/src/core';export default class ft extends _0x666c87{['afterInit'](){const _0x289a01=this[_0x3ce5('0x4')];if(!_0x289a01['plugins'][_0x3ce5('0x7')]('RestrictedEditingModeEditing'))return;const _0x1ad389=_0x289a01['plugins'][_0x3ce5('0x3')]('TrackChangesEditing');_0x1ad389[_0x3ce5('0x9')](_0x3ce5('0x2')),_0x1ad389['enableCommand'](_0x3ce5('0x8'));const _0x1c39f6=_0x289a01['plugins'][_0x3ce5('0x3')]('RestrictedEditingModeEditing');_0x1c39f6[_0x3ce5('0x9')](_0x3ce5('0x5')),_0x1c39f6[_0x3ce5('0x9')]('acceptSuggestion'),_0x1c39f6['enableCommand']('discardSuggestion'),_0x1c39f6[_0x3ce5('0x9')](_0x3ce5('0x0')),_0x1c39f6[_0x3ce5('0x9')](_0x3ce5('0x1')),_0x1c39f6[_0x3ce5('0x9')](_0x3ce5('0xa')),_0x1c39f6['enableCommand'](_0x3ce5('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e89=['locale','model','get','getItems','markerRange','insert','markerName','showSuggestionHighlights','enableCommand','editor','options','element','addMarker:suggestion:insertion','writer','_descriptionFactory','registerElementLabel','includes','TrackChangesEditing','softBreak','test','editing','high','createPositionBefore','data','bindElementToMarker','plugins','span','merge','deletion','requires','addMarker:suggestion:deletion','addMarker:suggestion','name','ELEMENT_LINE_BREAK','split','shiftEnter','downcastDispatcher','toViewPosition','mapper'];(function(_0x2def84,_0x3e899c){const _0x14b74c=function(_0x147487){while(--_0x147487){_0x2def84['push'](_0x2def84['shift']());}};_0x14b74c(++_0x3e899c);}(_0x3e89,0x125));const _0x14b7=function(_0x2def84,_0x3e899c){_0x2def84=_0x2def84-0x0;let _0x14b74c=_0x3e89[_0x2def84];return _0x14b74c;};import{Plugin as _0x5ee94f}from'ckeditor5/src/core';import{ShiftEnter as _0x4444e5}from'ckeditor5/src/enter';import{getTranslation as _0x13ceae}from'../utils/common-translations';export default class lt extends _0x5ee94f{static get[_0x14b7('0x9')](){return[_0x4444e5];}['init'](){const _0x19f40d=this[_0x14b7('0x1c')],_0x3106bc=_0x19f40d[_0x14b7('0x5')][_0x14b7('0x15')](_0x14b7('0x24'));_0x3106bc[_0x14b7('0x1b')](_0x14b7('0xf')),_0x19f40d[_0x14b7('0x0')][_0x14b7('0x10')]['on'](_0x14b7('0x1f'),re(_0x19f40d),{'priority':'high'}),_0x19f40d[_0x14b7('0x0')][_0x14b7('0x10')]['on'](_0x14b7('0xa'),re(_0x19f40d),{'priority':_0x14b7('0x1')}),_0x19f40d[_0x14b7('0x3')][_0x14b7('0x10')]['on'](_0x14b7('0xb'),(_0x3dfe3f,_0x2e0481,_0x38d312)=>{_0x38d312[_0x14b7('0x1d')][_0x14b7('0x1a')]&&re(_0x19f40d,{'showActiveMarker':!0x1})(_0x3dfe3f,_0x2e0481,_0x38d312);}),_0x3106bc[_0x14b7('0x21')][_0x14b7('0x22')](_0x14b7('0x25'),_0x2b04c5=>_0x13ceae(_0x19f40d[_0x14b7('0x13')],_0x14b7('0xd'),_0x2b04c5));}}function re(_0x45f3e4,{showActiveMarker:_0x17c7c9=!0x0}={}){return(_0x32b664,_0x251697,_0x180f1a)=>{const _0x3feb6b=_0x45f3e4[_0x14b7('0x5')][_0x14b7('0x15')](_0x14b7('0x24'));if(!_0x180f1a['consumable'][_0x14b7('0x26')](_0x251697[_0x14b7('0x17')],_0x32b664[_0x14b7('0xc')]))return;const _0x588ced=_0x45f3e4[_0x14b7('0x14')];for(const _0x1faef8 of _0x251697[_0x14b7('0x17')][_0x14b7('0x16')]()){if(!_0x1faef8['is'](_0x14b7('0x1e'),'softBreak'))continue;const _0x4bd088=_0x14b7('0x8')==_0x251697[_0x14b7('0x19')]['split'](':')[0x1]?_0x14b7('0x7'):_0x14b7('0xe'),_0x1dcd14=_0x180f1a['writer']['createUIElement'](_0x14b7('0x6'),{'class':'ck-suggestion-marker-'+_0x4bd088}),_0x1a57b6=_0x180f1a[_0x14b7('0x12')][_0x14b7('0x11')](_0x588ced[_0x14b7('0x2')](_0x1faef8));_0x17c7c9&&_0x3feb6b['activeMarkers'][_0x14b7('0x23')](_0x251697[_0x14b7('0x19')])&&_0x180f1a[_0x14b7('0x20')]['addClass']('ck-suggestion-marker--active',_0x1dcd14),_0x180f1a[_0x14b7('0x20')][_0x14b7('0x18')](_0x1a57b6,_0x1dcd14),_0x180f1a[_0x14b7('0x12')][_0x14b7('0x4')](_0x1dcd14,_0x251697[_0x14b7('0x19')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c47=['get','commands','_descriptionFactory','has','restrictedEditingException','selection','document','format','from','forceValue','markInlineFormat','TrackChangesEditing','plugins','isCollapsed','editor','commandParams','value','change','FORMAT_RESTRICTED_ENABLED','locale','StandardEditingModeEditing','FORMAT_RESTRICTED_DISABLED','commandName'];(function(_0x34589d,_0x1c4782){const _0x5db685=function(_0x407114){while(--_0x407114){_0x34589d['push'](_0x34589d['shift']());}};_0x5db685(++_0x1c4782);}(_0x1c47,0x140));const _0x5db6=function(_0x34589d,_0x1c4782){_0x34589d=_0x34589d-0x0;let _0x5db685=_0x1c47[_0x34589d];return _0x5db685;};import{Plugin as _0x5a3340}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x5282bc}from'./utils';import{getTranslation as _0x338aad}from'../utils/common-translations';export default class gt extends _0x5a3340{['afterInit'](){const _0xd6e7b2=this[_0x5db6('0x10')],_0x3b9c9a=_0xd6e7b2['model'],_0x185312=_0xd6e7b2[_0x5db6('0x15')];if(!_0xd6e7b2[_0x5db6('0xe')][_0x5db6('0x5')](_0x5db6('0x16')))return;const _0x2bb31a=_0xd6e7b2[_0x5db6('0xe')]['get'](_0x5db6('0xd')),_0x24dadb=_0x5db6('0x6'),_0x283d19=_0xd6e7b2[_0x5db6('0x3')][_0x5db6('0x2')](_0x24dadb);_0x2bb31a['enableCommand'](_0x24dadb,(_0x262e63,_0xafad52={})=>{const _0x3c0cd8=_0x3b9c9a[_0x5db6('0x8')][_0x5db6('0x7')];if(_0x3c0cd8[_0x5db6('0xf')])return void _0x262e63(_0xafad52);const _0x568b6d=void 0x0!==_0xafad52['forceValue']?_0xafad52[_0x5db6('0xb')]:!_0x283d19[_0x5db6('0x12')];_0x3b9c9a[_0x5db6('0x13')](()=>{const _0x175e9f=Array[_0x5db6('0xa')](_0x3c0cd8['getRanges']());for(const _0x2a05d5 of _0x175e9f){const _0x3e4cc3=_0x568b6d?[_0x2a05d5]:_0x5282bc(_0x24dadb,_0x2a05d5,_0x3b9c9a);for(const _0x5e525b of _0x3e4cc3)_0x2bb31a[_0x5db6('0xc')](_0x5e525b,{'commandName':_0x24dadb,'commandParams':[{'forceValue':_0x568b6d}]});}});}),_0x2bb31a[_0x5db6('0x4')]['registerDescriptionCallback'](_0x5b3395=>{const {data:_0x39101d}=_0x5b3395;if(_0x39101d&&_0x39101d[_0x5db6('0x1')]==_0x24dadb)return _0x39101d[_0x5db6('0x11')][0x0][_0x5db6('0xb')]?{'type':'format','content':_0x338aad(_0x185312,_0x5db6('0x14'))}:{'type':_0x5db6('0x9'),'content':_0x338aad(_0x185312,_0x5db6('0x0'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdc70=['get','has','getAncestors','includes','model','every','isCollapsed','normalizeConfig','element','add','styleName','value','StyleUtils','classes','isBlock','getAttribute','format','style.definitions','style','locale','config','name','getItems','getRanges','push','toLowerCase','_getRangesWithClasses','commandName','forceValue','markBlockFormat','find','plugins','from','*Remove\x20format:*\x20%0','enableCommand','editor','change','_getStyleDefinition','commandParams','enabledStyles','*Format:*\x20%0','getDefinitionsForView'];(function(_0x5bc063,_0xdc702d){const _0x41fac0=function(_0x308f41){while(--_0x308f41){_0x5bc063['push'](_0x5bc063['shift']());}};_0x41fac0(++_0xdc702d);}(_0xdc70,0x1e5));const _0x41fa=function(_0x5bc063,_0xdc702d){_0x5bc063=_0x5bc063-0x0;let _0x41fac0=_0xdc70[_0x5bc063];return _0x41fac0;};import{Plugin as _0x417a81}from'ckeditor5/src/core';import{getTranslation as _0x52d1af}from'../utils/common-translations';export default class mt extends _0x417a81{['afterInit'](){const _0x2534d2=this[_0x41fa('0xc')];if(!_0x2534d2[_0x41fa('0x8')][_0x41fa('0x14')]('Style'))return;const _0x33ea24=_0x2534d2['commands'][_0x41fa('0x13')](_0x41fa('0x25')),_0x47c504=_0x2534d2[_0x41fa('0x8')]['get']('TrackChangesEditing'),_0x5dd92f=_0x2534d2[_0x41fa('0x26')],_0x268e85=_0x2534d2[_0x41fa('0x8')]['get']('DataSchema'),_0x546c33=_0x2534d2['plugins']['get'](_0x41fa('0x1f'))[_0x41fa('0x1a')](_0x268e85,_0x2534d2[_0x41fa('0x27')]['get'](_0x41fa('0x24')));_0x47c504[_0x41fa('0xb')]('style',(_0x153c73,{styleName:_0x3edb87})=>{const _0x3535bf=_0x2534d2[_0x41fa('0x17')]['document']['selection'],_0x49b1b1=this[_0x41fa('0xe')](_0x3edb87,_0x546c33);if(!_0x49b1b1)return;if(!_0x33ea24[_0x41fa('0x10')][_0x41fa('0x16')](_0x3edb87))return;if(_0x3535bf[_0x41fa('0x19')]&&!_0x49b1b1[_0x41fa('0x21')])return void _0x153c73({'styleName':_0x3edb87});const _0x26c083=!_0x33ea24[_0x41fa('0x1e')]['includes'](_0x49b1b1['name']);if(_0x49b1b1[_0x41fa('0x21')]){const _0x2c7382=function(_0x7137a7,_0x209f39){const _0x13130e=new Set();for(const _0x48299a of _0x7137a7){const _0x20ca80=_0x48299a[_0x41fa('0x15')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x3f2d9e of _0x20ca80)if(_0x209f39[_0x41fa('0x16')](_0x3f2d9e[_0x41fa('0x28')])){_0x13130e[_0x41fa('0x1c')](_0x3f2d9e);break;}}return _0x13130e;}(_0x3535bf['getSelectedBlocks'](),_0x49b1b1['modelElements']);_0x2534d2[_0x41fa('0x17')][_0x41fa('0xd')](()=>{for(const _0x3af133 of _0x2c7382)_0x47c504[_0x41fa('0x6')](_0x3af133,{'commandName':'style','commandParams':[{'styleName':_0x3edb87,'forceValue':_0x26c083}],'formatGroupId':'style:'+_0x3edb87});});}else{let _0x1ff06a=Array[_0x41fa('0x9')](_0x3535bf[_0x41fa('0x0')]());if(!_0x26c083){const _0x3fe89d=Array['from'](_0x268e85[_0x41fa('0x12')](_0x49b1b1[_0x41fa('0x1b')],!0x1))[0x0]['model'],_0x45f3aa=[];for(const _0x3b8fd0 of _0x1ff06a){const _0x2069d0=this[_0x41fa('0x3')](_0x2534d2[_0x41fa('0x17')],_0x3b8fd0,_0x49b1b1[_0x41fa('0x20')],_0x3fe89d);_0x45f3aa[_0x41fa('0x1')](..._0x2069d0);}_0x1ff06a=_0x45f3aa;}_0x2534d2[_0x41fa('0x17')][_0x41fa('0xd')](()=>{for(const _0x31662f of _0x1ff06a)_0x47c504['markInlineFormat'](_0x31662f,{'commandName':_0x41fa('0x25'),'commandParams':[{'styleName':_0x3edb87,'forceValue':_0x26c083}]});});}}),_0x47c504['_descriptionFactory']['registerDescriptionCallback'](_0x59b60c=>{const {data:_0xdfbbd}=_0x59b60c;if(_0xdfbbd&&_0x41fa('0x25')===_0xdfbbd[_0x41fa('0x4')])return _0xdfbbd[_0x41fa('0xf')][0x0][_0x41fa('0x5')]?{'type':_0x41fa('0x23'),'content':_0x52d1af(_0x5dd92f,_0x41fa('0x11'),_0xdfbbd[_0x41fa('0xf')][0x0][_0x41fa('0x1d')][_0x41fa('0x2')]())}:{'type':_0x41fa('0x23'),'content':_0x52d1af(_0x5dd92f,_0x41fa('0xa'),_0xdfbbd[_0x41fa('0xf')][0x0][_0x41fa('0x1d')][_0x41fa('0x2')]())};});}[_0x41fa('0xe')](_0x36024c,_0x41ed6b){let _0x2fc063=_0x41ed6b['block'][_0x41fa('0x7')](_0x15cebe=>_0x15cebe[_0x41fa('0x28')]===_0x36024c);return _0x2fc063||(_0x2fc063=_0x41ed6b['inline'][_0x41fa('0x7')](_0x41547d=>_0x41547d[_0x41fa('0x28')]===_0x36024c)),_0x2fc063;}[_0x41fa('0x3')](_0x4367a8,_0x2b1c4a,_0x4aa2fa,_0x2cbe86){const _0x178eca=[];for(const _0x25b522 of _0x2b1c4a[_0x41fa('0x29')]()){const _0x10d56c=_0x25b522[_0x41fa('0x22')](_0x2cbe86);_0x10d56c&&(_0x4aa2fa[_0x41fa('0x18')](_0x217a5e=>_0x10d56c[_0x41fa('0x20')][_0x41fa('0x16')](_0x217a5e))&&_0x178eca[_0x41fa('0x1')](_0x4367a8['createRangeOn'](_0x25b522)));}return _0x178eca;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xdfe5=['getItems','change:data','start','selectTableColumn','TableEditing','substr','*Remove:*\x20%0','removeTableColumn','_suggestionFactory','enableCommand','TableUtils','type','getChildren','tablePaste','tableRow','deletion','has','rowspan','editor','_descriptionFactory','table','isIntersectingWithRange','removeClass','showSuggestionHighlights','addClass','oldRange','left','getColumnIndexes','_tableSuggestions','*Insert:*\x20%0','createRangeOn','colspan','element','order','from','plugins','highest','afterInit','nodeBefore','span','getFirstRange','isArray','subType','position','minRow','createTableWalker','createRangeIn','end','selection','isTouching','options','getAttribute','includes','name','nodeAfter','_getCoordsForCells','addRange','_getSuggestionCoords','_acceptFormatSuggestionCallbackFactory','push','data','getRanges','fromRange','setSelection','MAX_SAFE_INTEGER','$textProxy','isInContent','startsWith','getCellLocation','toLowerCase','ELEMENT_TABLE_ROW_WITH_TEXT','insertTableColumnLeft','_tablePostFixingSubtypes','tableColumn','insertTableRowBelow','TrackChangesEditing','commands','low','registerElementLabel','map','addMarker:suggestion','enqueueChange','getChangedMarkers','getContainedElement','tableCell','registerCustomCallback','execute','some','ELEMENT_TABLE_WITH_TEXT','min','removeTableRow','markMultiRangeInsertion','getRowIndexes','ELEMENT_TABLE_COLUMN','$graveyard','rootName','maxRow','values','discard','last','getChanges','detach','root','ELEMENT_TABLE_COLUMN_WITH_TEXT','downcastDispatcher','isEqual','differ','ELEMENT_TABLE_ROW','join','filter','insertTableRowAbove','toViewElement','classes','markMultiRangeDeletion','insertTable','get','length','change','getSelectionAffectedTableCells','_setupColumnsRowsFixing','locale','document','ELEMENT_TABLE','first','hasAttribute','findAncestor','MIN_SAFE_INTEGER','model','insertion','registerDescriptionCallback'];(function(_0x2d6a2b,_0xdfe5a4){const _0x1db4ba=function(_0x833977){while(--_0x833977){_0x2d6a2b['push'](_0x2d6a2b['shift']());}};_0x1db4ba(++_0xdfe5a4);}(_0xdfe5,0x122));const _0x1db4=function(_0x2d6a2b,_0xdfe5a4){_0x2d6a2b=_0x2d6a2b-0x0;let _0x1db4ba=_0xdfe5[_0x2d6a2b];return _0x1db4ba;};import{Plugin as _0x451299}from'ckeditor5/src/core';import{LiveRange as _0x3f2bdc}from'ckeditor5/src/engine';import{setHighlightHandling as _0x280e00}from'ckeditor5/src/widget';import{getTranslation as _0x350cd1}from'../utils/common-translations';export default class dt extends _0x451299{constructor(_0x482c1d){super(_0x482c1d),this[_0x1db4('0x2a')]=[_0x1db4('0x72'),_0x1db4('0x2b')],this[_0x1db4('0x80')]=new Set();}[_0x1db4('0x7')](){const _0x16e9cf=this[_0x1db4('0x76')],_0x6087d=_0x16e9cf[_0x1db4('0x61')][_0x1db4('0x5b')][_0x1db4('0x12')];if(!_0x16e9cf['plugins'][_0x1db4('0x74')](_0x1db4('0x68')))return;const _0x5efb3f=_0x16e9cf[_0x1db4('0x5a')],_0x177d22=_0x16e9cf[_0x1db4('0x5')][_0x1db4('0x55')](_0x1db4('0x2d')),_0x2597cd=_0x16e9cf[_0x1db4('0x5')][_0x1db4('0x55')](_0x1db4('0x6e'));_0x177d22[_0x1db4('0x77')][_0x1db4('0x30')](_0x1db4('0x78'),_0x14c2ba=>_0x350cd1(_0x5efb3f,_0x1db4('0x5c'),_0x14c2ba)),this[_0x1db4('0x59')](),_0x177d22[_0x1db4('0x6d')](_0x1db4('0x54')),_0x177d22[_0x1db4('0x6d')]('selectTableRow'),_0x177d22['enableCommand'](_0x1db4('0x67'));for(const _0x2c34a1 of[_0x1db4('0x50'),_0x1db4('0x2c')]){const _0x358ff9=_0x16e9cf[_0x1db4('0x2e')][_0x1db4('0x55')](_0x2c34a1);_0x177d22[_0x1db4('0x6d')](_0x2c34a1,_0xcaeeb4=>{_0x16e9cf[_0x1db4('0x61')][_0x1db4('0x57')](_0x4c8476=>{_0xcaeeb4();const _0x549722='above'===_0x358ff9[_0x1db4('0x3')],_0x1d41a3=_0x2597cd[_0x1db4('0x58')](_0x6087d),_0x1d9ccf=_0x2597cd['getRowIndexes'](_0x1d41a3),_0xd6ae7a=_0x549722?_0x1d9ccf[_0x1db4('0x5d')]-0x1:_0x1d9ccf[_0x1db4('0x45')]+0x1,_0x46557d=_0x1d41a3[0x0]['findAncestor'](_0x1db4('0x78')),_0x402564=_0x2597cd[_0x1db4('0xf')](_0x46557d,{'startRow':_0xd6ae7a,'endRow':_0xd6ae7a}),_0x107507=Array[_0x1db4('0x4')](_0x402564)[_0x1db4('0x31')](_0xdc42bc=>_0x4c8476[_0x1db4('0x0')](_0xdc42bc['cell']));_0x177d22['markMultiRangeInsertion'](_0x107507,_0x1db4('0x72'));});});}for(const _0x3379df of[_0x1db4('0x29'),'insertTableColumnRight']){const _0x3240e5=_0x16e9cf[_0x1db4('0x2e')]['get'](_0x3379df);_0x177d22[_0x1db4('0x6d')](_0x3379df,_0x1ac57c=>{_0x16e9cf[_0x1db4('0x61')]['change'](_0x5745b3=>{_0x1ac57c();const _0x3cf83e=_0x1db4('0x7e')===_0x3240e5[_0x1db4('0x3')],_0x59ce6d=_0x2597cd[_0x1db4('0x58')](_0x6087d),_0x1ddb94=_0x2597cd[_0x1db4('0x7f')](_0x59ce6d),_0xf3f461=_0x3cf83e?_0x1ddb94[_0x1db4('0x5d')]-0x1:_0x1ddb94[_0x1db4('0x45')]+0x1,_0x4262e7=_0x59ce6d[0x0][_0x1db4('0x5f')]('table'),_0x566389=_0x2597cd[_0x1db4('0xf')](_0x4262e7,{'startRow':0x0,'column':_0xf3f461,'includeAllSlots':!0x1}),_0xdd7534=Array[_0x1db4('0x4')](_0x566389)[_0x1db4('0x31')](_0x4eb692=>_0x5745b3[_0x1db4('0x0')](_0x4eb692['cell']));_0x177d22[_0x1db4('0x3d')](_0xdd7534,_0x1db4('0x2b'));});});}for(const _0x361475 of[_0x1db4('0x3c'),_0x1db4('0x6b')]){const _0x371303=_0x361475[_0x1db4('0x69')](0xb),_0x352fd6=_0x371303[_0x1db4('0x27')](),_0x1a0649=_0x352fd6[_0x1db4('0x69')](0x0,0x3)+'span',_0x4a0bc6=_0x1db4('0x78')+_0x371303,_0x203a08='min'+_0x371303,_0x3dee84='max'+_0x371303;_0x177d22['enableCommand'](_0x361475,()=>{_0x16e9cf[_0x1db4('0x61')][_0x1db4('0x57')](_0x1deec5=>{const _0x5d6610=_0x2597cd[_0x1db4('0x58')](_0x6087d),_0x541684=_0x5d6610[0x0]['findAncestor']('table');let _0x26ddc5;if(_0x1db4('0x3c')==_0x361475){const _0x3f734f=_0x2597cd[_0x1db4('0x3e')](_0x5d6610);_0x26ddc5={'startRow':_0x3f734f[_0x1db4('0x5d')],'endRow':_0x3f734f[_0x1db4('0x45')],'includeAllSlots':!0x0};}else{const _0x1a3a8c=_0x2597cd[_0x1db4('0x7f')](_0x5d6610);_0x26ddc5={'startColumn':_0x1a3a8c[_0x1db4('0x5d')],'endColumn':_0x1a3a8c[_0x1db4('0x45')],'includeAllSlots':!0x0};}const _0x667e73=_0x2597cd[_0x1db4('0xf')](_0x541684,_0x26ddc5),_0x25a6ad=Array[_0x1db4('0x4')](_0x667e73)[_0x1db4('0x31')](({cell:_0x566f63})=>_0x566f63),_0x307754=se(_0x25a6ad[_0x1db4('0x4f')](_0x2e52db=>_0x2e52db[_0x1db4('0x5e')](_0x1a0649))),_0x2e42b1=se(_0x25a6ad[_0x1db4('0x4f')](_0x1fe180=>!_0x1fe180[_0x1db4('0x5e')](_0x1a0649)))[_0x1db4('0x31')](_0x4b9cc6=>_0x1deec5[_0x1db4('0x0')](_0x4b9cc6)),_0x3197fb=_0x177d22[_0x1db4('0x53')](_0x2e42b1,_0x4a0bc6);if(_0x3197fb&&('tableRow'==_0x3197fb[_0x1db4('0xc')]||'tableColumn'==_0x3197fb['subType'])){const _0x3374da=this[_0x1db4('0x1b')](_0x3197fb);for(const _0x13d9c3 of _0x307754){const _0x475625=_0x1deec5[_0x1db4('0x0')](_0x13d9c3),_0x2070e2=_0x2597cd['getCellLocation'](_0x13d9c3),_0x340754=_0x13d9c3['getAttribute'](_0x1a0649)-0x1,_0x18ec8c=_0x3374da[_0x203a08],_0x5ac46d=_0x3374da[_0x3dee84];_0x18ec8c<=_0x2070e2[_0x352fd6]&&_0x2070e2[_0x352fd6]+_0x340754<=_0x5ac46d&&_0x3197fb[_0x1db4('0x1a')](_0x475625);}}});});}function _0x8e2711(_0x19f77d){const _0x4d0a1c=Array[_0x1db4('0x4')](_0x6087d[_0x1db4('0x1f')]())['map'](_0x5180d9=>_0x3f2bdc[_0x1db4('0x20')](_0x5180d9));_0x16e9cf[_0x1db4('0x61')][_0x1db4('0x57')](_0x3625fa=>{const _0x33a044=_0x3625fa['batch'];_0x19f77d=_0x19f77d[_0x1db4('0x4f')](_0x31bc38=>'$graveyard'!=_0x31bc38[_0x1db4('0x48')][_0x1db4('0x41')]),_0x3625fa[_0x1db4('0x21')](_0x19f77d),_0x16e9cf['commands'][_0x1db4('0x55')](_0x1db4('0x3c'))['refresh'](),_0x16e9cf[_0x1db4('0x38')](_0x1db4('0x3c'),{'forceDefaultExecution':!0x0}),_0x16e9cf['model'][_0x1db4('0x33')](()=>{_0x16e9cf[_0x1db4('0x61')]['enqueueChange'](_0x33a044,_0x1319bf=>{const _0xe04514=_0x4d0a1c[_0x1db4('0x4f')](_0x513dd9=>'$graveyard'!=_0x513dd9[_0x1db4('0x48')][_0x1db4('0x41')]);_0xe04514[_0x1db4('0x56')]>0x0&&_0x1319bf[_0x1db4('0x21')](_0xe04514);for(const _0x37ed42 of _0x4d0a1c)_0x37ed42['detach']();});});});}function _0x319a66(_0x336c66){_0x16e9cf['model'][_0x1db4('0x57')](_0x4543ea=>{const _0x5a48a7=Array[_0x1db4('0x4')](_0x6087d['getRanges']())[_0x1db4('0x31')](_0x5a0001=>_0x3f2bdc[_0x1db4('0x20')](_0x5a0001)),_0x38ad37=[];for(const _0xcc498f of _0x336c66)for(const _0x4dbfe6 of _0xcc498f[_0x1db4('0x64')]({'shallow':!0x0}))_0x38ad37[_0x1db4('0x1d')](_0x4dbfe6);for(const _0x388b59 of _0x38ad37)_0x1db4('0x40')!=_0x388b59[_0x1db4('0x48')][_0x1db4('0x41')]&&(_0x4543ea[_0x1db4('0x21')](_0x4543ea['createPositionAt'](_0x388b59,0x0)),_0x16e9cf[_0x1db4('0x2e')][_0x1db4('0x55')](_0x1db4('0x6b'))['refresh'](),_0x16e9cf[_0x1db4('0x38')](_0x1db4('0x6b'),{'forceDefaultExecution':!0x0}));const _0x554113=_0x5a48a7[_0x1db4('0x4f')](_0x6d6f80=>_0x1db4('0x40')!=_0x6d6f80[_0x1db4('0x48')]['rootName']);_0x554113[_0x1db4('0x56')]>0x0&&_0x4543ea[_0x1db4('0x21')](_0x554113);for(const _0x1b3e54 of _0x5a48a7)_0x1b3e54[_0x1db4('0x47')]();});}function _0x10952c(_0xd80cce,_0x215748){return _0x215748['every'](_0x18813b=>_0xd80cce[_0x1db4('0x39')](_0xbe09ac=>_0xbe09ac['end'][_0x1db4('0x4b')](_0x18813b[_0x1db4('0x66')])||_0x18813b[_0x1db4('0x11')][_0x1db4('0x4b')](_0xbe09ac[_0x1db4('0x66')])));}function _0x40a05d(_0x3cd393,_0x451f5d){return _0x3cd393[_0x1db4('0x39')](_0x35a382=>_0x451f5d[_0x1db4('0x39')](_0x556e06=>_0x35a382[_0x1db4('0x11')][_0x1db4('0x13')](_0x556e06['start'])));}_0x16e9cf[_0x1db4('0x1e')][_0x1db4('0x4a')]['on'](_0x1db4('0x32'),(_0x287ad8,_0x4b47c9,_0x5a1a68)=>{if(!_0x5a1a68[_0x1db4('0x14')][_0x1db4('0x7b')])return;const _0x1082f1=_0x4b47c9['item'];if(!_0x1082f1)return;const _0x3c4bb1=_0x5a1a68['mapper'][_0x1db4('0x51')](_0x1082f1);function _0x40760f(_0x35bd6f){return Array[_0x1db4('0xb')](_0x35bd6f)?_0x35bd6f:[_0x35bd6f];}_0x3c4bb1&&_0x1db4('0x36')===_0x1082f1['name']&&_0x280e00(_0x3c4bb1,_0x5a1a68['writer'],(_0x23a2f0,_0x38c472,_0x3826b6)=>_0x3826b6[_0x1db4('0x7c')](_0x40760f(_0x38c472[_0x1db4('0x52')]),_0x23a2f0),(_0x19e879,_0x389113,_0x430673)=>_0x430673[_0x1db4('0x7a')](_0x40760f(_0x389113[_0x1db4('0x52')]),_0x19e879));},{'priority':_0x1db4('0x6')}),_0x177d22[_0x1db4('0x77')][_0x1db4('0x63')](_0xc5b151=>{if(_0x1db4('0x62')!=_0xc5b151[_0x1db4('0x6f')]&&_0x1db4('0x73')!=_0xc5b151[_0x1db4('0x6f')])return;const _0x3dda01=_0xc5b151[_0x1db4('0x35')]();if(null!=_0x3dda01&&_0x3dda01['is'](_0x1db4('0x2'),_0x1db4('0x78'))){if(_0x1db4('0x62')==_0xc5b151['type']){const _0x1f16d8=_0xc5b151[_0x1db4('0x64')]()['filter'](_0x50e706=>_0x50e706['is']('$textProxy'))[_0x1db4('0x31')](_0x52ed66=>_0x52ed66[_0x1db4('0x1e')]);if(_0x1f16d8[_0x1db4('0x56')])return{'type':'insertion','content':_0x350cd1(_0x5efb3f,_0x1db4('0x81'),_0x350cd1(_0x5efb3f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1f16d8['join']('\x20')+'\x22'))};}if(_0x1db4('0x73')==_0xc5b151[_0x1db4('0x6f')]){const _0x299c2a=_0xc5b151['getItems']()[_0x1db4('0x4f')](_0x1d01cb=>_0x1d01cb['is'](_0x1db4('0x23')))[_0x1db4('0x31')](_0x460856=>_0x460856['data']);if(_0x299c2a[_0x1db4('0x56')])return{'type':_0x1db4('0x73'),'content':_0x350cd1(_0x5efb3f,_0x1db4('0x6a'),_0x350cd1(_0x5efb3f,_0x1db4('0x3a'),'\x22'+_0x299c2a[_0x1db4('0x4e')]('\x20')+'\x22'))};}}}),_0x177d22[_0x1db4('0x77')][_0x1db4('0x63')](_0x285633=>{if(_0x1db4('0x72')==_0x285633[_0x1db4('0xc')]){const _0x24e385=_0x285633[_0x1db4('0x64')]()['filter'](_0x426f9c=>_0x426f9c['is'](_0x1db4('0x23')))[_0x1db4('0x31')](_0x15c173=>_0x15c173['data']),_0x3cdfbb=this[_0x1db4('0x1b')](_0x285633),_0x205fc0=_0x3cdfbb[_0x1db4('0x42')]-_0x3cdfbb[_0x1db4('0xe')]+0x1;if(_0x1db4('0x62')==_0x285633[_0x1db4('0x6f')])return _0x24e385[_0x1db4('0x56')]?{'type':_0x1db4('0x62'),'content':_0x350cd1(_0x5efb3f,_0x1db4('0x81'),_0x350cd1(_0x5efb3f,_0x1db4('0x28'),[_0x205fc0,'\x22'+_0x24e385[_0x1db4('0x4e')]('\x20')+'\x22']))}:{'type':_0x1db4('0x62'),'content':_0x350cd1(_0x5efb3f,_0x1db4('0x81'),_0x350cd1(_0x5efb3f,_0x1db4('0x4d'),_0x205fc0))};if(_0x1db4('0x73')==_0x285633[_0x1db4('0x6f')])return _0x24e385[_0x1db4('0x56')]?{'type':'deletion','content':_0x350cd1(_0x5efb3f,_0x1db4('0x6a'),_0x350cd1(_0x5efb3f,_0x1db4('0x28'),[_0x205fc0,'\x22'+_0x24e385[_0x1db4('0x4e')]('\x20')+'\x22']))}:{'type':_0x1db4('0x73'),'content':_0x350cd1(_0x5efb3f,_0x1db4('0x6a'),_0x350cd1(_0x5efb3f,'ELEMENT_TABLE_ROW',_0x205fc0))};}if('tableColumn'==_0x285633[_0x1db4('0xc')]){const _0x4b063a=_0x285633[_0x1db4('0x64')]()[_0x1db4('0x4f')](_0x34f2f5=>_0x34f2f5['is']('$textProxy'))[_0x1db4('0x31')](_0x3df201=>_0x3df201[_0x1db4('0x1e')]),_0x4c743=this[_0x1db4('0x1b')](_0x285633),_0x1a4ead=_0x4c743['maxColumn']-_0x4c743['minColumn']+0x1;if(_0x1db4('0x62')==_0x285633[_0x1db4('0x6f')])return _0x4b063a['length']?{'type':_0x1db4('0x62'),'content':_0x350cd1(_0x5efb3f,_0x1db4('0x81'),_0x350cd1(_0x5efb3f,_0x1db4('0x49'),[_0x1a4ead,'\x22'+_0x4b063a[_0x1db4('0x4e')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x350cd1(_0x5efb3f,_0x1db4('0x81'),_0x350cd1(_0x5efb3f,_0x1db4('0x3f'),_0x1a4ead))};if('deletion'==_0x285633[_0x1db4('0x6f')])return _0x4b063a['length']?{'type':_0x1db4('0x73'),'content':_0x350cd1(_0x5efb3f,'*Remove:*\x20%0',_0x350cd1(_0x5efb3f,_0x1db4('0x49'),[_0x1a4ead,'\x22'+_0x4b063a['join']('\x20')+'\x22']))}:{'type':_0x1db4('0x73'),'content':_0x350cd1(_0x5efb3f,'*Remove:*\x20%0',_0x350cd1(_0x5efb3f,_0x1db4('0x3f'),_0x1a4ead))};}}),_0x177d22[_0x1db4('0x6c')][_0x1db4('0x37')](_0x1db4('0x62'),_0x1db4('0x72'),_0x1db4('0x44'),_0x8e2711),_0x177d22[_0x1db4('0x6c')][_0x1db4('0x37')](_0x1db4('0x73'),_0x1db4('0x72'),'accept',_0x8e2711),_0x177d22['_suggestionFactory']['registerCustomCallback'](_0x1db4('0x62'),'tableColumn','discard',_0x319a66),_0x177d22[_0x1db4('0x6c')][_0x1db4('0x37')](_0x1db4('0x73'),_0x1db4('0x2b'),'accept',_0x319a66),_0x177d22['_suggestionFactory'][_0x1db4('0x37')](_0x1db4('0x62'),_0x1db4('0x2b'),_0x1db4('0x4e'),_0x10952c),_0x177d22[_0x1db4('0x6c')][_0x1db4('0x37')](_0x1db4('0x73'),_0x1db4('0x2b'),_0x1db4('0x4e'),_0x10952c),_0x177d22[_0x1db4('0x6c')][_0x1db4('0x37')](_0x1db4('0x62'),_0x1db4('0x72'),_0x1db4('0x4e'),_0x40a05d),_0x177d22[_0x1db4('0x6c')]['registerCustomCallback'](_0x1db4('0x73'),_0x1db4('0x72'),'join',_0x40a05d);}[_0x1db4('0x1c')](){const _0x352f40=this[_0x1db4('0x76')],_0x4384c7=_0x352f40[_0x1db4('0x61')][_0x1db4('0x5b')][_0x1db4('0x12')];return(_0x10b35e,_0x85c2af)=>{_0x352f40['model'][_0x1db4('0x57')](_0x43c12d=>{const {commandName:_0xbadf0c,commandParams:_0x1c7d25}=_0x85c2af;let _0x4ca913=_0x10b35e[0x0][_0x1db4('0x11')][_0x1db4('0x8')];_0x1c7d25&&_0x1c7d25[0x0]&&!0x1===_0x1c7d25[0x0]['forceValue']&&(_0x4ca913=_0x10b35e[0x0]['start'][_0x1db4('0x18')]);const _0x89a85f=_0x43c12d[_0x1db4('0x10')](_0x4ca913);if(_0x1db4('0x40')==_0x89a85f['root'][_0x1db4('0x41')])return;const _0x390980=Array[_0x1db4('0x4')](_0x4384c7['getRanges']())[_0x1db4('0x31')](_0x17ca51=>_0x3f2bdc['fromRange'](_0x17ca51));_0x43c12d[_0x1db4('0x21')](_0x89a85f),_0x352f40[_0x1db4('0x2e')]['get'](_0xbadf0c)['refresh'](),_0x1c7d25[_0x1db4('0x1d')]({'forceDefaultExecution':!0x0}),_0x352f40[_0x1db4('0x38')](_0xbadf0c,..._0x1c7d25);const _0x8098dd=_0x390980[_0x1db4('0x4f')](_0x15609e=>_0x1db4('0x40')!=_0x15609e['root']['rootName']);_0x8098dd[_0x1db4('0x56')]>0x0&&_0x43c12d['setSelection'](_0x8098dd);for(const _0x15c4b5 of _0x390980)_0x15c4b5[_0x1db4('0x47')]();});};}['_getCoordsForCells'](_0x494c45){const _0x403359=this[_0x1db4('0x76')][_0x1db4('0x5')][_0x1db4('0x55')]('TableUtils');let _0x3a1ca3=Number['MAX_SAFE_INTEGER'],_0x4f2d95=Number[_0x1db4('0x60')],_0x38c699=Number[_0x1db4('0x22')],_0x3b90f7=Number['MIN_SAFE_INTEGER'];for(const _0x3fb011 of _0x494c45){if(_0x1db4('0x40')==_0x3fb011[_0x1db4('0x48')][_0x1db4('0x41')])continue;const {row:_0x5b4d80,column:_0x503f14}=_0x403359[_0x1db4('0x26')](_0x3fb011),_0x1bd08a=_0x3fb011['hasAttribute'](_0x1db4('0x75'))?_0x3fb011[_0x1db4('0x15')](_0x1db4('0x75'))-0x1:0x0,_0x122100=_0x3fb011[_0x1db4('0x5e')]('colspan')?_0x3fb011[_0x1db4('0x15')](_0x1db4('0x1'))-0x1:0x0;_0x3a1ca3=_0x5b4d80<_0x3a1ca3?_0x5b4d80:_0x3a1ca3,_0x4f2d95=_0x5b4d80+_0x1bd08a>_0x4f2d95?_0x5b4d80+_0x1bd08a:_0x4f2d95,_0x38c699=_0x503f14<_0x38c699?_0x503f14:_0x38c699,_0x3b90f7=_0x503f14+_0x122100>_0x3b90f7?_0x503f14+_0x122100:_0x3b90f7;}return{'minRow':_0x3a1ca3,'maxRow':_0x4f2d95,'minColumn':_0x38c699,'maxColumn':_0x3b90f7};}[_0x1db4('0x59')](){const _0x170ff5=this['editor'],_0x311af2=_0x170ff5[_0x1db4('0x5')][_0x1db4('0x55')]('TrackChangesEditing'),_0x233b7c=_0x170ff5['plugins'][_0x1db4('0x55')]('TableUtils');_0x170ff5[_0x1db4('0x61')][_0x1db4('0x5b')]['on'](_0x1db4('0x65'),()=>{const _0x418ce1=Array[_0x1db4('0x4')](_0x170ff5[_0x1db4('0x61')]['document'][_0x1db4('0x4c')][_0x1db4('0x34')]());for(const {name:_0x1faa22,data:_0x47b16a}of _0x418ce1){const {group:_0x2205e4,id:_0x1b20a4,subType:_0x22dce8}=_0x311af2['_splitMarkerName'](_0x1faa22);if('suggestion'!=_0x2205e4)continue;if(null!=_0x47b16a[_0x1db4('0x7d')])continue;const _0x483d32=_0x311af2['getSuggestion'](_0x1b20a4);this[_0x1db4('0x2a')][_0x1db4('0x16')](_0x22dce8)&&this[_0x1db4('0x80')]['add'](_0x483d32);}},{'priority':_0x1db4('0x2f')});const _0xb063c2=(_0x1f8d89,_0x4ae398)=>{let _0x25db1d=!0x1;const _0x40a927=_0x4ae398[_0x1db4('0x0')](_0x1f8d89),_0x2d6ae3=_0x1f8d89[_0x1db4('0x5f')]('table'),_0x36dcd5=_0x233b7c[_0x1db4('0x26')](_0x1f8d89);for(const _0xa58afb of this[_0x1db4('0x80')]){const _0x5e6af4=_0xa58afb[_0x1db4('0xc')],_0x5f65a=_0x5e6af4[_0x1db4('0x25')](_0x1db4('0x71')),_0x4a2fe4=_0x5e6af4[_0x1db4('0x69')](_0x5f65a?0xa:0x5),_0x1147b6=_0x4a2fe4[_0x1db4('0x27')](),_0x250ca8=_0x1147b6[_0x1db4('0x69')](0x0,0x3)+_0x1db4('0x9'),_0x18155c=_0x1db4('0x3b')+_0x4a2fe4,_0x29477b='max'+_0x4a2fe4;if(!_0xa58afb[_0x1db4('0x24')])continue;if(_0x2d6ae3!=_0xa58afb[_0x1db4('0xa')]()[_0x1db4('0x66')][_0x1db4('0x5f')](_0x1db4('0x78')))continue;if(_0xa58afb[_0x1db4('0x79')](_0x40a927))continue;const _0x55dbca=_0x1f8d89[_0x1db4('0x5e')](_0x250ca8)?_0x1f8d89[_0x1db4('0x15')](_0x250ca8)-0x1:0x0,_0x1a6ba6=this[_0x1db4('0x1b')](_0xa58afb),_0x2736fe=_0x1a6ba6[_0x18155c],_0xd7b842=_0x1a6ba6[_0x29477b];_0x2736fe<=_0x36dcd5[_0x1147b6]&&_0x36dcd5[_0x1147b6]+_0x55dbca<=_0xd7b842&&(_0xa58afb[_0x1db4('0x1a')](_0x40a927),_0x25db1d=!0x0);}return _0x25db1d;};_0x170ff5[_0x1db4('0x61')][_0x1db4('0x5b')]['registerPostFixer'](_0x544f79=>{let _0xf06c67=!0x1;for(const _0x54e5df of _0x170ff5[_0x1db4('0x61')][_0x1db4('0x5b')][_0x1db4('0x4c')][_0x1db4('0x46')]())if('insert'==_0x54e5df['type']){if('tableRow'==_0x54e5df[_0x1db4('0x17')])for(const _0x283a83 of _0x54e5df['position'][_0x1db4('0x18')][_0x1db4('0x70')]())_0xf06c67=_0xf06c67||_0xb063c2(_0x283a83,_0x544f79);else _0x1db4('0x36')==_0x54e5df['name']&&(_0xf06c67=_0xf06c67||_0xb063c2(_0x54e5df[_0x1db4('0xd')][_0x1db4('0x18')],_0x544f79));}return _0xf06c67;});}[_0x1db4('0x1b')](_0x6e8de3){return this[_0x1db4('0x19')](_0x6e8de3[_0x1db4('0x1f')]()['map'](_0x2ca35b=>_0x2ca35b[_0x1db4('0x66')][_0x1db4('0x18')]));}}function se(_0x101b7c){return Array[_0x1db4('0x4')](new Set(_0x101b7c)[_0x1db4('0x43')]());}
|
|
23
|
+
const _0x23a5=['type','ELEMENT_TABLE','downcastDispatcher','$graveyard','removeTableRow','setSelection','getSelectionAffectedTableCells','values','span','maxRow','addMarker:suggestion','removeTableColumn','differ','join','TableEditing','nodeAfter','getChildren','last','ELEMENT_TABLE_COLUMN_WITH_TEXT','filter','addRange','min','TrackChangesEditing','insertTable','order','createPositionAt','isIntersectingWithRange','fromRange','model','addClass','detach','element','rootName','getRowIndexes','_getCoordsForCells','get','TableUtils','insertTableColumnLeft','end','registerElementLabel','position','document','ELEMENT_TABLE_ROW','selectTableColumn','push','findAncestor','enableCommand','markMultiRangeInsertion','suggestion','_acceptFormatSuggestionCallbackFactory','rowspan','insertion','map','maxColumn','tableCell','refresh','*Remove:*\x20%0','createRangeOn','$textProxy','_descriptionFactory','substr','getCellLocation','enqueueChange','afterInit','insertTableColumnRight','registerCustomCallback','locale','getRanges','low','editor','minColumn','isEqual','deletion','highest','minRow','length','commands','getItems','start','tablePaste','insert','mapper','change:data','data','startsWith','_setupColumnsRowsFixing','table','item','every','tableColumn','from','batch','toViewElement','subType','cell','getFirstRange','nodeBefore','_tableSuggestions','_splitMarkerName','isArray','writer','getColumnIndexes','execute','hasAttribute','oldRange','classes','_suggestionFactory','some','MIN_SAFE_INTEGER','first','registerDescriptionCallback','isInContent','toLowerCase','ELEMENT_TABLE_COLUMN','tableRow','createRangeIn','colspan','_getSuggestionCoords','isTouching','name','_tablePostFixingSubtypes','registerPostFixer','left','getAttribute','root','change','getChanges','ELEMENT_TABLE_ROW_WITH_TEXT','MAX_SAFE_INTEGER','markMultiRangeDeletion','ELEMENT_TABLE_WITH_TEXT','getSuggestion','accept','has','discard','plugins','*Insert:*\x20%0','insertTableRowBelow'];(function(_0x5a450e,_0x23a538){const _0x5c77ca=function(_0x3b7e15){while(--_0x3b7e15){_0x5a450e['push'](_0x5a450e['shift']());}};_0x5c77ca(++_0x23a538);}(_0x23a5,0x1df));const _0x5c77=function(_0x5a450e,_0x23a538){_0x5a450e=_0x5a450e-0x0;let _0x5c77ca=_0x23a5[_0x5a450e];return _0x5c77ca;};import{Plugin as _0x1cbfd8}from'ckeditor5/src/core';import{LiveRange as _0x49c5b6}from'ckeditor5/src/engine';import{setHighlightHandling as _0xed6d71}from'ckeditor5/src/widget';import{getTranslation as _0x3ed19c}from'../utils/common-translations';export default class dt extends _0x1cbfd8{constructor(_0x5418f9){super(_0x5418f9),this[_0x5c77('0x37')]=[_0x5c77('0x31'),_0x5c77('0x18')],this[_0x5c77('0x20')]=new Set();}[_0x5c77('0x88')](){const _0xc82ade=this['editor'],_0x5eb4ac=_0xc82ade['model'][_0x5c77('0x72')]['selection'];if(!_0xc82ade['plugins'][_0x5c77('0x44')](_0x5c77('0x57')))return;const _0x5213e0=_0xc82ade[_0x5c77('0x1')],_0xb9f178=_0xc82ade[_0x5c77('0x46')]['get'](_0x5c77('0x5f')),_0x3c576f=_0xc82ade[_0x5c77('0x46')][_0x5c77('0x6c')](_0x5c77('0x6d'));_0xb9f178[_0x5c77('0x84')][_0x5c77('0x70')](_0x5c77('0x15'),_0x3cb555=>_0x3ed19c(_0x5213e0,_0x5c77('0x4a'),_0x3cb555)),this[_0x5c77('0x14')](),_0xb9f178[_0x5c77('0x77')](_0x5c77('0x60')),_0xb9f178[_0x5c77('0x77')]('selectTableRow'),_0xb9f178[_0x5c77('0x77')](_0x5c77('0x74'));for(const _0x446867 of['insertTableRowAbove',_0x5c77('0x48')]){const _0x3fc21c=_0xc82ade[_0x5c77('0xb')]['get'](_0x446867);_0xb9f178[_0x5c77('0x77')](_0x446867,_0x4541fc=>{_0xc82ade[_0x5c77('0x65')][_0x5c77('0x3c')](_0x6e443c=>{_0x4541fc();const _0x1e7fc2='above'===_0x3fc21c[_0x5c77('0x61')],_0xdff626=_0x3c576f[_0x5c77('0x4f')](_0x5eb4ac),_0x3f24b0=_0x3c576f[_0x5c77('0x6a')](_0xdff626),_0x3c4ae1=_0x1e7fc2?_0x3f24b0[_0x5c77('0x2c')]-0x1:_0x3f24b0[_0x5c77('0x5a')]+0x1,_0x6f31b4=_0xdff626[0x0][_0x5c77('0x76')](_0x5c77('0x15')),_0x417072=_0x3c576f['createTableWalker'](_0x6f31b4,{'startRow':_0x3c4ae1,'endRow':_0x3c4ae1}),_0x4b9965=Array[_0x5c77('0x19')](_0x417072)[_0x5c77('0x7d')](_0x51f57c=>_0x6e443c[_0x5c77('0x82')](_0x51f57c['cell']));_0xb9f178['markMultiRangeInsertion'](_0x4b9965,_0x5c77('0x31'));});});}for(const _0x526283 of[_0x5c77('0x6e'),_0x5c77('0x89')]){const _0x920db1=_0xc82ade[_0x5c77('0xb')][_0x5c77('0x6c')](_0x526283);_0xb9f178[_0x5c77('0x77')](_0x526283,_0x4e306a=>{_0xc82ade[_0x5c77('0x65')]['change'](_0x183933=>{_0x4e306a();const _0x1c8232=_0x5c77('0x39')===_0x920db1[_0x5c77('0x61')],_0x39ffdd=_0x3c576f[_0x5c77('0x4f')](_0x5eb4ac),_0x36051b=_0x3c576f[_0x5c77('0x24')](_0x39ffdd),_0x4a1199=_0x1c8232?_0x36051b[_0x5c77('0x2c')]-0x1:_0x36051b[_0x5c77('0x5a')]+0x1,_0x293cee=_0x39ffdd[0x0][_0x5c77('0x76')](_0x5c77('0x15')),_0x555fcf=_0x3c576f['createTableWalker'](_0x293cee,{'startRow':0x0,'column':_0x4a1199,'includeAllSlots':!0x1}),_0x50f35e=Array[_0x5c77('0x19')](_0x555fcf)[_0x5c77('0x7d')](_0x2c8f92=>_0x183933[_0x5c77('0x82')](_0x2c8f92[_0x5c77('0x1d')]));_0xb9f178[_0x5c77('0x78')](_0x50f35e,_0x5c77('0x18'));});});}for(const _0x196c46 of['removeTableRow',_0x5c77('0x54')]){const _0x3b3d8a=_0x196c46[_0x5c77('0x85')](0xb),_0x3b2474=_0x3b3d8a[_0x5c77('0x2f')](),_0x179fe6=_0x3b2474[_0x5c77('0x85')](0x0,0x3)+_0x5c77('0x51'),_0x1d3b3b=_0x5c77('0x15')+_0x3b3d8a,_0xa53f45=_0x5c77('0x5e')+_0x3b3d8a,_0x3744ee='max'+_0x3b3d8a;_0xb9f178['enableCommand'](_0x196c46,()=>{_0xc82ade[_0x5c77('0x65')][_0x5c77('0x3c')](_0x1dccae=>{const _0x415121=_0x3c576f['getSelectionAffectedTableCells'](_0x5eb4ac),_0x143f33=_0x415121[0x0][_0x5c77('0x76')]('table');let _0x2fd3f3;if('removeTableRow'==_0x196c46){const _0x28ba61=_0x3c576f[_0x5c77('0x6a')](_0x415121);_0x2fd3f3={'startRow':_0x28ba61[_0x5c77('0x2c')],'endRow':_0x28ba61[_0x5c77('0x5a')],'includeAllSlots':!0x0};}else{const _0x52a231=_0x3c576f[_0x5c77('0x24')](_0x415121);_0x2fd3f3={'startColumn':_0x52a231[_0x5c77('0x2c')],'endColumn':_0x52a231['last'],'includeAllSlots':!0x0};}const _0x18b073=_0x3c576f['createTableWalker'](_0x143f33,_0x2fd3f3),_0x40363e=Array[_0x5c77('0x19')](_0x18b073)['map'](({cell:_0x9b63c5})=>_0x9b63c5),_0x21b91b=se(_0x40363e[_0x5c77('0x5c')](_0x1e5384=>_0x1e5384['hasAttribute'](_0x179fe6))),_0x3cf2c4=se(_0x40363e[_0x5c77('0x5c')](_0x56d010=>!_0x56d010['hasAttribute'](_0x179fe6)))[_0x5c77('0x7d')](_0x5b6b8b=>_0x1dccae[_0x5c77('0x82')](_0x5b6b8b)),_0x3d7e30=_0xb9f178[_0x5c77('0x40')](_0x3cf2c4,_0x1d3b3b);if(_0x3d7e30&&('tableRow'==_0x3d7e30[_0x5c77('0x1c')]||_0x5c77('0x18')==_0x3d7e30[_0x5c77('0x1c')])){const _0x33a682=this['_getSuggestionCoords'](_0x3d7e30);for(const _0x5e3cfb of _0x21b91b){const _0x41a5c9=_0x1dccae['createRangeOn'](_0x5e3cfb),_0x385bfa=_0x3c576f[_0x5c77('0x86')](_0x5e3cfb),_0x4633b8=_0x5e3cfb[_0x5c77('0x3a')](_0x179fe6)-0x1,_0x2783ea=_0x33a682[_0xa53f45],_0x19d2ce=_0x33a682[_0x3744ee];_0x2783ea<=_0x385bfa[_0x3b2474]&&_0x385bfa[_0x3b2474]+_0x4633b8<=_0x19d2ce&&_0x3d7e30[_0x5c77('0x5d')](_0x41a5c9);}}});});}function _0x23b26b(_0x5a3442){const _0xd9858a=Array[_0x5c77('0x19')](_0x5eb4ac[_0x5c77('0x2')]())['map'](_0x460689=>_0x49c5b6[_0x5c77('0x64')](_0x460689));_0xc82ade['model'][_0x5c77('0x3c')](_0x4fa7d2=>{const _0x5759f4=_0x4fa7d2[_0x5c77('0x1a')];_0x5a3442=_0x5a3442['filter'](_0x1330c0=>_0x5c77('0x4c')!=_0x1330c0['root'][_0x5c77('0x69')]),_0x4fa7d2[_0x5c77('0x4e')](_0x5a3442),_0xc82ade[_0x5c77('0xb')][_0x5c77('0x6c')]('removeTableRow')[_0x5c77('0x80')](),_0xc82ade[_0x5c77('0x25')](_0x5c77('0x4d'),{'forceDefaultExecution':!0x0}),_0xc82ade[_0x5c77('0x65')][_0x5c77('0x87')](()=>{_0xc82ade[_0x5c77('0x65')][_0x5c77('0x87')](_0x5759f4,_0xa75770=>{const _0x49a458=_0xd9858a[_0x5c77('0x5c')](_0x9faafd=>_0x5c77('0x4c')!=_0x9faafd[_0x5c77('0x3b')][_0x5c77('0x69')]);_0x49a458['length']>0x0&&_0xa75770[_0x5c77('0x4e')](_0x49a458);for(const _0x2b74f4 of _0xd9858a)_0x2b74f4['detach']();});});});}function _0x30854f(_0x446cea){_0xc82ade[_0x5c77('0x65')][_0x5c77('0x3c')](_0x1023ec=>{const _0xb0a95=Array[_0x5c77('0x19')](_0x5eb4ac[_0x5c77('0x2')]())[_0x5c77('0x7d')](_0x1ff750=>_0x49c5b6[_0x5c77('0x64')](_0x1ff750)),_0x18e03f=[];for(const _0x26be05 of _0x446cea)for(const _0x47a34f of _0x26be05[_0x5c77('0xc')]({'shallow':!0x0}))_0x18e03f[_0x5c77('0x75')](_0x47a34f);for(const _0x3ccfd9 of _0x18e03f)'$graveyard'!=_0x3ccfd9[_0x5c77('0x3b')][_0x5c77('0x69')]&&(_0x1023ec[_0x5c77('0x4e')](_0x1023ec[_0x5c77('0x62')](_0x3ccfd9,0x0)),_0xc82ade[_0x5c77('0xb')][_0x5c77('0x6c')](_0x5c77('0x54'))['refresh'](),_0xc82ade[_0x5c77('0x25')](_0x5c77('0x54'),{'forceDefaultExecution':!0x0}));const _0x32f6f4=_0xb0a95[_0x5c77('0x5c')](_0x356c18=>'$graveyard'!=_0x356c18['root']['rootName']);_0x32f6f4['length']>0x0&&_0x1023ec[_0x5c77('0x4e')](_0x32f6f4);for(const _0xc1b778 of _0xb0a95)_0xc1b778[_0x5c77('0x67')]();});}function _0x185e25(_0x380d9d,_0x3bee06){return _0x3bee06[_0x5c77('0x17')](_0x2f7c0c=>_0x380d9d[_0x5c77('0x2a')](_0x21d6a8=>_0x21d6a8['end'][_0x5c77('0x6')](_0x2f7c0c[_0x5c77('0xd')])||_0x2f7c0c[_0x5c77('0x6f')]['isEqual'](_0x21d6a8['start'])));}function _0x53693e(_0xc824b7,_0x3ce8a5){return _0xc824b7['some'](_0x5c1b71=>_0x3ce8a5['some'](_0x2b732e=>_0x5c1b71[_0x5c77('0x6f')][_0x5c77('0x35')](_0x2b732e[_0x5c77('0xd')])));}_0xc82ade[_0x5c77('0x12')][_0x5c77('0x4b')]['on'](_0x5c77('0x53'),(_0x88a852,_0x1f5cc9,_0x89b581)=>{if(!_0x89b581['options']['showSuggestionHighlights'])return;const _0x57569e=_0x1f5cc9[_0x5c77('0x16')];if(!_0x57569e)return;const _0x5af058=_0x89b581[_0x5c77('0x10')][_0x5c77('0x1b')](_0x57569e);function _0x3a42ef(_0x39023a){return Array[_0x5c77('0x22')](_0x39023a)?_0x39023a:[_0x39023a];}_0x5af058&&_0x5c77('0x7f')===_0x57569e[_0x5c77('0x36')]&&_0xed6d71(_0x5af058,_0x89b581[_0x5c77('0x23')],(_0x59e4ab,_0x5001d7,_0x497746)=>_0x497746[_0x5c77('0x66')](_0x3a42ef(_0x5001d7['classes']),_0x59e4ab),(_0x988a15,_0x5b9a54,_0xda73f9)=>_0xda73f9['removeClass'](_0x3a42ef(_0x5b9a54[_0x5c77('0x28')]),_0x988a15));},{'priority':_0x5c77('0x8')}),_0xb9f178[_0x5c77('0x84')][_0x5c77('0x2d')](_0x33d8a4=>{if(_0x5c77('0x7c')!=_0x33d8a4[_0x5c77('0x49')]&&'deletion'!=_0x33d8a4[_0x5c77('0x49')])return;const _0x597210=_0x33d8a4['getContainedElement']();if(null!=_0x597210&&_0x597210['is'](_0x5c77('0x68'),_0x5c77('0x15'))){if(_0x5c77('0x7c')==_0x33d8a4[_0x5c77('0x49')]){const _0x3cba1a=_0x33d8a4['getItems']()['filter'](_0x21b07b=>_0x21b07b['is'](_0x5c77('0x83')))[_0x5c77('0x7d')](_0x1c7277=>_0x1c7277[_0x5c77('0x12')]);if(_0x3cba1a[_0x5c77('0xa')])return{'type':_0x5c77('0x7c'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x47'),_0x3ed19c(_0x5213e0,_0x5c77('0x41'),'\x22'+_0x3cba1a[_0x5c77('0x56')]('\x20')+'\x22'))};}if('deletion'==_0x33d8a4[_0x5c77('0x49')]){const _0x4c9958=_0x33d8a4[_0x5c77('0xc')]()[_0x5c77('0x5c')](_0x488e33=>_0x488e33['is'](_0x5c77('0x83')))[_0x5c77('0x7d')](_0xc4cae=>_0xc4cae[_0x5c77('0x12')]);if(_0x4c9958[_0x5c77('0xa')])return{'type':_0x5c77('0x7'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x81'),_0x3ed19c(_0x5213e0,_0x5c77('0x41'),'\x22'+_0x4c9958[_0x5c77('0x56')]('\x20')+'\x22'))};}}}),_0xb9f178[_0x5c77('0x84')][_0x5c77('0x2d')](_0x3b9c6c=>{if(_0x5c77('0x31')==_0x3b9c6c[_0x5c77('0x1c')]){const _0x924a36=_0x3b9c6c['getItems']()[_0x5c77('0x5c')](_0x13430c=>_0x13430c['is'](_0x5c77('0x83')))['map'](_0x542c76=>_0x542c76[_0x5c77('0x12')]),_0x37764a=this[_0x5c77('0x34')](_0x3b9c6c),_0x47d9ed=_0x37764a[_0x5c77('0x52')]-_0x37764a[_0x5c77('0x9')]+0x1;if(_0x5c77('0x7c')==_0x3b9c6c[_0x5c77('0x49')])return _0x924a36[_0x5c77('0xa')]?{'type':'insertion','content':_0x3ed19c(_0x5213e0,_0x5c77('0x47'),_0x3ed19c(_0x5213e0,_0x5c77('0x3e'),[_0x47d9ed,'\x22'+_0x924a36[_0x5c77('0x56')]('\x20')+'\x22']))}:{'type':_0x5c77('0x7c'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x47'),_0x3ed19c(_0x5213e0,_0x5c77('0x73'),_0x47d9ed))};if(_0x5c77('0x7')==_0x3b9c6c[_0x5c77('0x49')])return _0x924a36['length']?{'type':'deletion','content':_0x3ed19c(_0x5213e0,'*Remove:*\x20%0',_0x3ed19c(_0x5213e0,_0x5c77('0x3e'),[_0x47d9ed,'\x22'+_0x924a36[_0x5c77('0x56')]('\x20')+'\x22']))}:{'type':_0x5c77('0x7'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x81'),_0x3ed19c(_0x5213e0,_0x5c77('0x73'),_0x47d9ed))};}if(_0x5c77('0x18')==_0x3b9c6c[_0x5c77('0x1c')]){const _0x46fe6b=_0x3b9c6c['getItems']()[_0x5c77('0x5c')](_0x309ad7=>_0x309ad7['is'](_0x5c77('0x83')))['map'](_0x316049=>_0x316049[_0x5c77('0x12')]),_0x5c41b8=this[_0x5c77('0x34')](_0x3b9c6c),_0x595a92=_0x5c41b8[_0x5c77('0x7e')]-_0x5c41b8[_0x5c77('0x5')]+0x1;if(_0x5c77('0x7c')==_0x3b9c6c[_0x5c77('0x49')])return _0x46fe6b[_0x5c77('0xa')]?{'type':_0x5c77('0x7c'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x47'),_0x3ed19c(_0x5213e0,_0x5c77('0x5b'),[_0x595a92,'\x22'+_0x46fe6b['join']('\x20')+'\x22']))}:{'type':_0x5c77('0x7c'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x47'),_0x3ed19c(_0x5213e0,_0x5c77('0x30'),_0x595a92))};if('deletion'==_0x3b9c6c[_0x5c77('0x49')])return _0x46fe6b[_0x5c77('0xa')]?{'type':'deletion','content':_0x3ed19c(_0x5213e0,_0x5c77('0x81'),_0x3ed19c(_0x5213e0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x595a92,'\x22'+_0x46fe6b['join']('\x20')+'\x22']))}:{'type':_0x5c77('0x7'),'content':_0x3ed19c(_0x5213e0,_0x5c77('0x81'),_0x3ed19c(_0x5213e0,_0x5c77('0x30'),_0x595a92))};}}),_0xb9f178[_0x5c77('0x29')][_0x5c77('0x0')]('insertion',_0x5c77('0x31'),_0x5c77('0x45'),_0x23b26b),_0xb9f178[_0x5c77('0x29')]['registerCustomCallback'](_0x5c77('0x7'),_0x5c77('0x31'),_0x5c77('0x43'),_0x23b26b),_0xb9f178[_0x5c77('0x29')]['registerCustomCallback']('insertion',_0x5c77('0x18'),_0x5c77('0x45'),_0x30854f),_0xb9f178[_0x5c77('0x29')][_0x5c77('0x0')](_0x5c77('0x7'),_0x5c77('0x18'),'accept',_0x30854f),_0xb9f178[_0x5c77('0x29')][_0x5c77('0x0')](_0x5c77('0x7c'),'tableColumn',_0x5c77('0x56'),_0x185e25),_0xb9f178[_0x5c77('0x29')][_0x5c77('0x0')]('deletion',_0x5c77('0x18'),_0x5c77('0x56'),_0x185e25),_0xb9f178[_0x5c77('0x29')][_0x5c77('0x0')](_0x5c77('0x7c'),'tableRow','join',_0x53693e),_0xb9f178['_suggestionFactory'][_0x5c77('0x0')](_0x5c77('0x7'),_0x5c77('0x31'),_0x5c77('0x56'),_0x53693e);}[_0x5c77('0x7a')](){const _0x19bc88=this['editor'],_0x11ceb9=_0x19bc88[_0x5c77('0x65')][_0x5c77('0x72')]['selection'];return(_0x43e0a7,_0x3aa8c0)=>{_0x19bc88['model'][_0x5c77('0x3c')](_0x16f721=>{const {commandName:_0x5e3abf,commandParams:_0x158191}=_0x3aa8c0;let _0x3684c7=_0x43e0a7[0x0][_0x5c77('0x6f')][_0x5c77('0x1f')];_0x158191&&_0x158191[0x0]&&!0x1===_0x158191[0x0]['forceValue']&&(_0x3684c7=_0x43e0a7[0x0][_0x5c77('0xd')][_0x5c77('0x58')]);const _0x608f59=_0x16f721[_0x5c77('0x32')](_0x3684c7);if('$graveyard'==_0x608f59[_0x5c77('0x3b')]['rootName'])return;const _0x6c6684=Array['from'](_0x11ceb9[_0x5c77('0x2')]())[_0x5c77('0x7d')](_0x443bf1=>_0x49c5b6[_0x5c77('0x64')](_0x443bf1));_0x16f721['setSelection'](_0x608f59),_0x19bc88[_0x5c77('0xb')][_0x5c77('0x6c')](_0x5e3abf)[_0x5c77('0x80')](),_0x158191[_0x5c77('0x75')]({'forceDefaultExecution':!0x0}),_0x19bc88[_0x5c77('0x25')](_0x5e3abf,..._0x158191);const _0x3a4945=_0x6c6684['filter'](_0x47f239=>_0x5c77('0x4c')!=_0x47f239[_0x5c77('0x3b')][_0x5c77('0x69')]);_0x3a4945[_0x5c77('0xa')]>0x0&&_0x16f721[_0x5c77('0x4e')](_0x3a4945);for(const _0x574198 of _0x6c6684)_0x574198[_0x5c77('0x67')]();});};}['_getCoordsForCells'](_0x209871){const _0x17f95b=this[_0x5c77('0x4')][_0x5c77('0x46')][_0x5c77('0x6c')](_0x5c77('0x6d'));let _0x6e818a=Number[_0x5c77('0x3f')],_0x51a2d2=Number['MIN_SAFE_INTEGER'],_0x54b466=Number[_0x5c77('0x3f')],_0x3aabac=Number[_0x5c77('0x2b')];for(const _0x31d57b of _0x209871){if(_0x5c77('0x4c')==_0x31d57b[_0x5c77('0x3b')]['rootName'])continue;const {row:_0xf47779,column:_0x486a7e}=_0x17f95b[_0x5c77('0x86')](_0x31d57b),_0x5d04fd=_0x31d57b[_0x5c77('0x26')](_0x5c77('0x7b'))?_0x31d57b['getAttribute'](_0x5c77('0x7b'))-0x1:0x0,_0x20313d=_0x31d57b[_0x5c77('0x26')]('colspan')?_0x31d57b[_0x5c77('0x3a')](_0x5c77('0x33'))-0x1:0x0;_0x6e818a=_0xf47779<_0x6e818a?_0xf47779:_0x6e818a,_0x51a2d2=_0xf47779+_0x5d04fd>_0x51a2d2?_0xf47779+_0x5d04fd:_0x51a2d2,_0x54b466=_0x486a7e<_0x54b466?_0x486a7e:_0x54b466,_0x3aabac=_0x486a7e+_0x20313d>_0x3aabac?_0x486a7e+_0x20313d:_0x3aabac;}return{'minRow':_0x6e818a,'maxRow':_0x51a2d2,'minColumn':_0x54b466,'maxColumn':_0x3aabac};}[_0x5c77('0x14')](){const _0x39b77c=this['editor'],_0x198784=_0x39b77c['plugins'][_0x5c77('0x6c')](_0x5c77('0x5f')),_0x2ead4d=_0x39b77c['plugins'][_0x5c77('0x6c')](_0x5c77('0x6d'));_0x39b77c['model'][_0x5c77('0x72')]['on'](_0x5c77('0x11'),()=>{const _0x5a16ea=Array[_0x5c77('0x19')](_0x39b77c[_0x5c77('0x65')][_0x5c77('0x72')][_0x5c77('0x55')]['getChangedMarkers']());for(const {name:_0x3f86b3,data:_0x1de9b4}of _0x5a16ea){const {group:_0x20d21f,id:_0x5bf298,subType:_0x16f702}=_0x198784[_0x5c77('0x21')](_0x3f86b3);if(_0x5c77('0x79')!=_0x20d21f)continue;if(null!=_0x1de9b4[_0x5c77('0x27')])continue;const _0x4cd386=_0x198784[_0x5c77('0x42')](_0x5bf298);this[_0x5c77('0x37')]['includes'](_0x16f702)&&this[_0x5c77('0x20')]['add'](_0x4cd386);}},{'priority':_0x5c77('0x3')});const _0x20eec2=(_0x539350,_0x4336d0)=>{let _0x215f7d=!0x1;const _0x2c2d0a=_0x4336d0['createRangeOn'](_0x539350),_0xd7a6cf=_0x539350[_0x5c77('0x76')](_0x5c77('0x15')),_0x5146df=_0x2ead4d['getCellLocation'](_0x539350);for(const _0x5cdba6 of this['_tableSuggestions']){const _0x5d5030=_0x5cdba6[_0x5c77('0x1c')],_0x1f76c=_0x5d5030[_0x5c77('0x13')](_0x5c77('0xe')),_0x47a1c3=_0x5d5030[_0x5c77('0x85')](_0x1f76c?0xa:0x5),_0x161590=_0x47a1c3[_0x5c77('0x2f')](),_0x35f0b0=_0x161590[_0x5c77('0x85')](0x0,0x3)+_0x5c77('0x51'),_0x5b6470=_0x5c77('0x5e')+_0x47a1c3,_0x384714='max'+_0x47a1c3;if(!_0x5cdba6[_0x5c77('0x2e')])continue;if(_0xd7a6cf!=_0x5cdba6[_0x5c77('0x1e')]()['start'][_0x5c77('0x76')]('table'))continue;if(_0x5cdba6[_0x5c77('0x63')](_0x2c2d0a))continue;const _0x25d101=_0x539350[_0x5c77('0x26')](_0x35f0b0)?_0x539350[_0x5c77('0x3a')](_0x35f0b0)-0x1:0x0,_0x33c4bb=this['_getSuggestionCoords'](_0x5cdba6),_0x10b1bf=_0x33c4bb[_0x5b6470],_0x184133=_0x33c4bb[_0x384714];_0x10b1bf<=_0x5146df[_0x161590]&&_0x5146df[_0x161590]+_0x25d101<=_0x184133&&(_0x5cdba6[_0x5c77('0x5d')](_0x2c2d0a),_0x215f7d=!0x0);}return _0x215f7d;};_0x39b77c[_0x5c77('0x65')][_0x5c77('0x72')][_0x5c77('0x38')](_0xf9b140=>{let _0x40961a=!0x1;for(const _0x34f1b2 of _0x39b77c['model'][_0x5c77('0x72')][_0x5c77('0x55')][_0x5c77('0x3d')]())if(_0x5c77('0xf')==_0x34f1b2[_0x5c77('0x49')]){if(_0x5c77('0x31')==_0x34f1b2[_0x5c77('0x36')])for(const _0xcc2482 of _0x34f1b2[_0x5c77('0x71')]['nodeAfter'][_0x5c77('0x59')]())_0x40961a=_0x40961a||_0x20eec2(_0xcc2482,_0xf9b140);else _0x5c77('0x7f')==_0x34f1b2[_0x5c77('0x36')]&&(_0x40961a=_0x40961a||_0x20eec2(_0x34f1b2[_0x5c77('0x71')][_0x5c77('0x58')],_0xf9b140));}return _0x40961a;});}[_0x5c77('0x34')](_0x1826b0){return this[_0x5c77('0x6b')](_0x1826b0[_0x5c77('0x2')]()[_0x5c77('0x7d')](_0x167a10=>_0x167a10[_0x5c77('0xd')][_0x5c77('0x58')]));}}function se(_0x1216ed){return Array['from'](new Set(_0x1216ed)[_0x5c77('0x50')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9e6f=['requires','plugins','toggleTableCaption','TrackChangesEditing','afterInit','get','has','editor'];(function(_0x42183b,_0x9e6f9c){const _0xef01cf=function(_0x5326aa){while(--_0x5326aa){_0x42183b['push'](_0x42183b['shift']());}};_0xef01cf(++_0x9e6f9c);}(_0x9e6f,0x179));const _0xef01=function(_0x42183b,_0x9e6f9c){_0x42183b=_0x42183b-0x0;let _0xef01cf=_0x9e6f[_0x42183b];return _0xef01cf;};import{Plugin as _0x3a9059}from'ckeditor5/src/core';import _0x38c8f8 from'./table';export default class At extends _0x3a9059{static get[_0xef01('0x7')](){return[_0x38c8f8];}[_0xef01('0x3')](){const _0x599f20=this[_0xef01('0x6')];if(!_0x599f20[_0xef01('0x0')][_0xef01('0x5')]('TableCaptionEditing'))return;_0x599f20[_0xef01('0x0')][_0xef01('0x4')](_0xef01('0x2'))['enableCommand'](_0xef01('0x1'));}}
|