@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231007.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 _0x3c0e=['toViewElement','ELEMENT_TABLE_COLUMN_WITH_TEXT','nodeBefore','markMultiRangeDeletion','registerElementLabel','low','findAncestor','span','colspan','tablePaste','data','_setupColumnsRowsFixing','deletion','join','from','getChanges','downcastDispatcher','_descriptionFactory','options','some','above','registerPostFixer','addRange','get','isArray','TrackChangesEditing','add','insertTableRowAbove','document','last','locale','$textProxy','removeTableColumn','push','insert','markMultiRangeInsertion','classes','refresh','enqueueChange','addClass','change','change:data','MIN_SAFE_INTEGER','max','insertTableRowBelow','subType','ELEMENT_TABLE_ROW_WITH_TEXT','every','createTableWalker','getItems','getRanges','oldRange','maxRow','start','end','_getSuggestionCoords','min','selectTableRow','ELEMENT_TABLE_COLUMN','addMarker:suggestion','tableRow','selectTableColumn','model','root','insertTableColumnRight','TableUtils','getContainedElement','ELEMENT_TABLE_WITH_TEXT','isEqual','tableCell','left','*Remove:*\x20%0','commands','getAttribute','editor','type','TableEditing','length','removeTableRow','toLowerCase','table','first','_tableSuggestions','cell','registerDescriptionCallback','nodeAfter','isTouching','hasAttribute','removeClass','fromRange','getCellLocation','insertTable','highest','ELEMENT_TABLE','detach','map','substr','_tablePostFixingSubtypes','setSelection','*Insert:*\x20%0','accept','isInContent','createPositionAt','ELEMENT_TABLE_ROW','enableCommand','discard','$graveyard','differ','position','getRowIndexes','writer','includes','insertion','filter','insertTableColumnLeft','MAX_SAFE_INTEGER','_suggestionFactory','afterInit','createRangeOn','getSelectionAffectedTableCells','_acceptFormatSuggestionCallbackFactory','maxColumn','tableColumn','plugins','_splitMarkerName','item','createRangeIn','selection','execute','values','rootName','getFirstRange','rowspan','registerCustomCallback','order','name'];(function(_0x3a3eea,_0x3c0e2d){const _0x5db015=function(_0x1edb4a){while(--_0x1edb4a){_0x3a3eea['push'](_0x3a3eea['shift']());}};_0x5db015(++_0x3c0e2d);}(_0x3c0e,0x158));const _0x5db0=function(_0x3a3eea,_0x3c0e2d){_0x3a3eea=_0x3a3eea-0x0;let _0x5db015=_0x3c0e[_0x3a3eea];return _0x5db015;};import{Plugin as _0x397730}from'ckeditor5/src/core';import{LiveRange as _0x40ce2f}from'ckeditor5/src/engine';import{setHighlightHandling as _0x5da32a}from'ckeditor5/src/widget';import{getTranslation as _0x31c1cb}from'../utils/common-translations';export default class dt extends _0x397730{constructor(_0x3c3b15){super(_0x3c3b15),this[_0x5db0('0x19')]=['tableRow',_0x5db0('0x32')],this[_0x5db0('0xa')]=new Set();}[_0x5db0('0x2d')](){const _0x2520ec=this[_0x5db0('0x2')],_0xb22f87=_0x2520ec['model'][_0x5db0('0x5c')]['selection'];if(!_0x2520ec[_0x5db0('0x33')]['has'](_0x5db0('0x4')))return;const _0x46781a=_0x2520ec[_0x5db0('0x5e')],_0x22d671=_0x2520ec[_0x5db0('0x33')][_0x5db0('0x57')](_0x5db0('0x59')),_0x34527f=_0x2520ec['plugins']['get'](_0x5db0('0x81'));_0x22d671[_0x5db0('0x51')][_0x5db0('0x44')]('table',_0x77e3c4=>_0x31c1cb(_0x46781a,_0x5db0('0x15'),_0x77e3c4)),this['_setupColumnsRowsFixing'](),_0x22d671[_0x5db0('0x20')](_0x5db0('0x13')),_0x22d671[_0x5db0('0x20')](_0x5db0('0x79')),_0x22d671[_0x5db0('0x20')](_0x5db0('0x7d'));for(const _0x4d702a of[_0x5db0('0x5b'),_0x5db0('0x6c')]){const _0x4c90b9=_0x2520ec[_0x5db0('0x0')][_0x5db0('0x57')](_0x4d702a);_0x22d671[_0x5db0('0x20')](_0x4d702a,_0x586c64=>{_0x2520ec['model'][_0x5db0('0x68')](_0xa9d265=>{_0x586c64();const _0x1ed2e5=_0x5db0('0x54')===_0x4c90b9[_0x5db0('0x3e')],_0x2ba64f=_0x34527f['getSelectionAffectedTableCells'](_0xb22f87),_0xd1ec3e=_0x34527f[_0x5db0('0x25')](_0x2ba64f),_0xc4f172=_0x1ed2e5?_0xd1ec3e['first']-0x1:_0xd1ec3e[_0x5db0('0x5d')]+0x1,_0x2fa7b0=_0x2ba64f[0x0][_0x5db0('0x46')](_0x5db0('0x8')),_0x247148=_0x34527f['createTableWalker'](_0x2fa7b0,{'startRow':_0xc4f172,'endRow':_0xc4f172}),_0x106ac6=Array[_0x5db0('0x4e')](_0x247148)[_0x5db0('0x17')](_0x4f3e9e=>_0xa9d265[_0x5db0('0x2e')](_0x4f3e9e[_0x5db0('0xb')]));_0x22d671[_0x5db0('0x63')](_0x106ac6,'tableRow');});});}for(const _0x52b431 of[_0x5db0('0x2a'),_0x5db0('0x80')]){const _0x376a40=_0x2520ec['commands'][_0x5db0('0x57')](_0x52b431);_0x22d671[_0x5db0('0x20')](_0x52b431,_0x9d7d02=>{_0x2520ec['model'][_0x5db0('0x68')](_0x34951b=>{_0x9d7d02();const _0x953f38=_0x5db0('0x86')===_0x376a40['order'],_0x47e97f=_0x34527f[_0x5db0('0x2f')](_0xb22f87),_0x1aa5e9=_0x34527f['getColumnIndexes'](_0x47e97f),_0x3a7638=_0x953f38?_0x1aa5e9['first']-0x1:_0x1aa5e9[_0x5db0('0x5d')]+0x1,_0xbd8a79=_0x47e97f[0x0]['findAncestor'](_0x5db0('0x8')),_0x39acb=_0x34527f[_0x5db0('0x70')](_0xbd8a79,{'startRow':0x0,'column':_0x3a7638,'includeAllSlots':!0x1}),_0x36da4e=Array[_0x5db0('0x4e')](_0x39acb)[_0x5db0('0x17')](_0x102928=>_0x34951b[_0x5db0('0x2e')](_0x102928[_0x5db0('0xb')]));_0x22d671[_0x5db0('0x63')](_0x36da4e,_0x5db0('0x32'));});});}for(const _0x3fc4b6 of[_0x5db0('0x6'),_0x5db0('0x60')]){const _0x49ae7a=_0x3fc4b6[_0x5db0('0x18')](0xb),_0x2dc033=_0x49ae7a[_0x5db0('0x7')](),_0x4bdff7=_0x2dc033[_0x5db0('0x18')](0x0,0x3)+'span',_0x270482=_0x5db0('0x8')+_0x49ae7a,_0x44befe=_0x5db0('0x78')+_0x49ae7a,_0x3d3202='max'+_0x49ae7a;_0x22d671['enableCommand'](_0x3fc4b6,()=>{_0x2520ec['model'][_0x5db0('0x68')](_0x3582bb=>{const _0xfac6b9=_0x34527f[_0x5db0('0x2f')](_0xb22f87),_0x82fb4c=_0xfac6b9[0x0][_0x5db0('0x46')]('table');let _0x1c023a;if(_0x5db0('0x6')==_0x3fc4b6){const _0x5f5205=_0x34527f[_0x5db0('0x25')](_0xfac6b9);_0x1c023a={'startRow':_0x5f5205['first'],'endRow':_0x5f5205['last'],'includeAllSlots':!0x0};}else{const _0x5e3f24=_0x34527f['getColumnIndexes'](_0xfac6b9);_0x1c023a={'startColumn':_0x5e3f24[_0x5db0('0x9')],'endColumn':_0x5e3f24[_0x5db0('0x5d')],'includeAllSlots':!0x0};}const _0x3979d1=_0x34527f[_0x5db0('0x70')](_0x82fb4c,_0x1c023a),_0x39426a=Array[_0x5db0('0x4e')](_0x3979d1)[_0x5db0('0x17')](({cell:_0x1555f9})=>_0x1555f9),_0x655d19=se(_0x39426a[_0x5db0('0x29')](_0x24ffa3=>_0x24ffa3['hasAttribute'](_0x4bdff7))),_0x9290ee=se(_0x39426a['filter'](_0x4510ce=>!_0x4510ce[_0x5db0('0xf')](_0x4bdff7)))[_0x5db0('0x17')](_0x3a3ddb=>_0x3582bb[_0x5db0('0x2e')](_0x3a3ddb)),_0x156155=_0x22d671[_0x5db0('0x43')](_0x9290ee,_0x270482);if(_0x156155&&(_0x5db0('0x7c')==_0x156155[_0x5db0('0x6d')]||_0x5db0('0x32')==_0x156155[_0x5db0('0x6d')])){const _0x3587e8=this[_0x5db0('0x77')](_0x156155);for(const _0xe5fe3f of _0x655d19){const _0x197332=_0x3582bb['createRangeOn'](_0xe5fe3f),_0xf3b07f=_0x34527f[_0x5db0('0x12')](_0xe5fe3f),_0x44f68e=_0xe5fe3f[_0x5db0('0x1')](_0x4bdff7)-0x1,_0x19cd7c=_0x3587e8[_0x44befe],_0x3d45cd=_0x3587e8[_0x3d3202];_0x19cd7c<=_0xf3b07f[_0x2dc033]&&_0xf3b07f[_0x2dc033]+_0x44f68e<=_0x3d45cd&&_0x156155[_0x5db0('0x56')](_0x197332);}}});});}function _0x2deeea(_0x148d08){const _0x588633=Array['from'](_0xb22f87['getRanges']())[_0x5db0('0x17')](_0x4f844d=>_0x40ce2f['fromRange'](_0x4f844d));_0x2520ec[_0x5db0('0x7e')][_0x5db0('0x68')](_0x4ffbcb=>{const _0x29f6e1=_0x4ffbcb['batch'];_0x148d08=_0x148d08[_0x5db0('0x29')](_0x456434=>'$graveyard'!=_0x456434[_0x5db0('0x7f')][_0x5db0('0x3a')]),_0x4ffbcb[_0x5db0('0x1a')](_0x148d08),_0x2520ec[_0x5db0('0x0')]['get'](_0x5db0('0x6'))[_0x5db0('0x65')](),_0x2520ec[_0x5db0('0x38')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2520ec['model'][_0x5db0('0x66')](()=>{_0x2520ec['model'][_0x5db0('0x66')](_0x29f6e1,_0x14d504=>{const _0xebb6bb=_0x588633[_0x5db0('0x29')](_0x1fca81=>_0x5db0('0x22')!=_0x1fca81[_0x5db0('0x7f')]['rootName']);_0xebb6bb['length']>0x0&&_0x14d504[_0x5db0('0x1a')](_0xebb6bb);for(const _0x1d4ed8 of _0x588633)_0x1d4ed8['detach']();});});});}function _0x15d719(_0x545ecf){_0x2520ec[_0x5db0('0x7e')]['change'](_0x1448db=>{const _0x499017=Array[_0x5db0('0x4e')](_0xb22f87[_0x5db0('0x72')]())[_0x5db0('0x17')](_0x5aad10=>_0x40ce2f[_0x5db0('0x11')](_0x5aad10)),_0x45de4f=[];for(const _0x230b0b of _0x545ecf)for(const _0x201fd3 of _0x230b0b[_0x5db0('0x71')]({'shallow':!0x0}))_0x45de4f[_0x5db0('0x61')](_0x201fd3);for(const _0x597d04 of _0x45de4f)_0x5db0('0x22')!=_0x597d04[_0x5db0('0x7f')][_0x5db0('0x3a')]&&(_0x1448db[_0x5db0('0x1a')](_0x1448db[_0x5db0('0x1e')](_0x597d04,0x0)),_0x2520ec[_0x5db0('0x0')][_0x5db0('0x57')](_0x5db0('0x60'))['refresh'](),_0x2520ec[_0x5db0('0x38')](_0x5db0('0x60'),{'forceDefaultExecution':!0x0}));const _0x56a68c=_0x499017[_0x5db0('0x29')](_0x3c2416=>_0x5db0('0x22')!=_0x3c2416[_0x5db0('0x7f')][_0x5db0('0x3a')]);_0x56a68c[_0x5db0('0x5')]>0x0&&_0x1448db[_0x5db0('0x1a')](_0x56a68c);for(const _0x4b8e2f of _0x499017)_0x4b8e2f['detach']();});}function _0x35b124(_0x2d789d,_0x80f85e){return _0x80f85e[_0x5db0('0x6f')](_0x46e921=>_0x2d789d[_0x5db0('0x53')](_0x52e794=>_0x52e794['end'][_0x5db0('0x84')](_0x46e921[_0x5db0('0x75')])||_0x46e921[_0x5db0('0x76')][_0x5db0('0x84')](_0x52e794[_0x5db0('0x75')])));}function _0x1cb262(_0x180896,_0x407a6c){return _0x180896[_0x5db0('0x53')](_0x4f08a4=>_0x407a6c[_0x5db0('0x53')](_0x23a285=>_0x4f08a4[_0x5db0('0x76')][_0x5db0('0xe')](_0x23a285[_0x5db0('0x75')])));}_0x2520ec[_0x5db0('0x4a')][_0x5db0('0x50')]['on'](_0x5db0('0x7b'),(_0x37b855,_0x31a7de,_0x451a70)=>{if(!_0x451a70[_0x5db0('0x52')]['showSuggestionHighlights'])return;const _0x1213dd=_0x31a7de[_0x5db0('0x35')];if(!_0x1213dd)return;const _0x30a4b6=_0x451a70['mapper'][_0x5db0('0x40')](_0x1213dd);function _0x520957(_0x166b9a){return Array[_0x5db0('0x58')](_0x166b9a)?_0x166b9a:[_0x166b9a];}_0x30a4b6&&_0x5db0('0x85')===_0x1213dd['name']&&_0x5da32a(_0x30a4b6,_0x451a70[_0x5db0('0x26')],(_0x17e5bf,_0x1233b8,_0x2940b8)=>_0x2940b8[_0x5db0('0x67')](_0x520957(_0x1233b8['classes']),_0x17e5bf),(_0x124747,_0x286977,_0x3f06ef)=>_0x3f06ef[_0x5db0('0x10')](_0x520957(_0x286977[_0x5db0('0x64')]),_0x124747));},{'priority':_0x5db0('0x14')}),_0x22d671[_0x5db0('0x51')]['registerDescriptionCallback'](_0x87860a=>{if(_0x5db0('0x28')!=_0x87860a[_0x5db0('0x3')]&&_0x5db0('0x4c')!=_0x87860a['type'])return;const _0x3750a8=_0x87860a[_0x5db0('0x82')]();if(null!=_0x3750a8&&_0x3750a8['is']('element',_0x5db0('0x8'))){if('insertion'==_0x87860a[_0x5db0('0x3')]){const _0x33fc1b=_0x87860a[_0x5db0('0x71')]()['filter'](_0x560124=>_0x560124['is'](_0x5db0('0x5f')))[_0x5db0('0x17')](_0x2c486d=>_0x2c486d['data']);if(_0x33fc1b['length'])return{'type':'insertion','content':_0x31c1cb(_0x46781a,_0x5db0('0x1b'),_0x31c1cb(_0x46781a,_0x5db0('0x83'),'\x22'+_0x33fc1b[_0x5db0('0x4d')]('\x20')+'\x22'))};}if(_0x5db0('0x4c')==_0x87860a[_0x5db0('0x3')]){const _0x53a039=_0x87860a[_0x5db0('0x71')]()[_0x5db0('0x29')](_0x3b3975=>_0x3b3975['is'](_0x5db0('0x5f')))[_0x5db0('0x17')](_0x524366=>_0x524366[_0x5db0('0x4a')]);if(_0x53a039[_0x5db0('0x5')])return{'type':_0x5db0('0x4c'),'content':_0x31c1cb(_0x46781a,_0x5db0('0x87'),_0x31c1cb(_0x46781a,_0x5db0('0x83'),'\x22'+_0x53a039['join']('\x20')+'\x22'))};}}}),_0x22d671[_0x5db0('0x51')][_0x5db0('0xc')](_0x18c71c=>{if('tableRow'==_0x18c71c[_0x5db0('0x6d')]){const _0xb7be93=_0x18c71c['getItems']()[_0x5db0('0x29')](_0x497450=>_0x497450['is']('$textProxy'))[_0x5db0('0x17')](_0x2f86bc=>_0x2f86bc[_0x5db0('0x4a')]),_0x10c39e=this[_0x5db0('0x77')](_0x18c71c),_0x5d90f0=_0x10c39e[_0x5db0('0x74')]-_0x10c39e['minRow']+0x1;if('insertion'==_0x18c71c[_0x5db0('0x3')])return _0xb7be93['length']?{'type':_0x5db0('0x28'),'content':_0x31c1cb(_0x46781a,_0x5db0('0x1b'),_0x31c1cb(_0x46781a,_0x5db0('0x6e'),[_0x5d90f0,'\x22'+_0xb7be93[_0x5db0('0x4d')]('\x20')+'\x22']))}:{'type':_0x5db0('0x28'),'content':_0x31c1cb(_0x46781a,_0x5db0('0x1b'),_0x31c1cb(_0x46781a,_0x5db0('0x1f'),_0x5d90f0))};if(_0x5db0('0x4c')==_0x18c71c['type'])return _0xb7be93[_0x5db0('0x5')]?{'type':_0x5db0('0x4c'),'content':_0x31c1cb(_0x46781a,_0x5db0('0x87'),_0x31c1cb(_0x46781a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d90f0,'\x22'+_0xb7be93[_0x5db0('0x4d')]('\x20')+'\x22']))}:{'type':_0x5db0('0x4c'),'content':_0x31c1cb(_0x46781a,'*Remove:*\x20%0',_0x31c1cb(_0x46781a,'ELEMENT_TABLE_ROW',_0x5d90f0))};}if(_0x5db0('0x32')==_0x18c71c[_0x5db0('0x6d')]){const _0xa66b32=_0x18c71c[_0x5db0('0x71')]()[_0x5db0('0x29')](_0x43b9c5=>_0x43b9c5['is'](_0x5db0('0x5f')))[_0x5db0('0x17')](_0x31b8f4=>_0x31b8f4[_0x5db0('0x4a')]),_0x1d61c2=this[_0x5db0('0x77')](_0x18c71c),_0x2d0b1c=_0x1d61c2[_0x5db0('0x31')]-_0x1d61c2['minColumn']+0x1;if(_0x5db0('0x28')==_0x18c71c[_0x5db0('0x3')])return _0xa66b32[_0x5db0('0x5')]?{'type':_0x5db0('0x28'),'content':_0x31c1cb(_0x46781a,_0x5db0('0x1b'),_0x31c1cb(_0x46781a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d0b1c,'\x22'+_0xa66b32[_0x5db0('0x4d')]('\x20')+'\x22']))}:{'type':_0x5db0('0x28'),'content':_0x31c1cb(_0x46781a,_0x5db0('0x1b'),_0x31c1cb(_0x46781a,_0x5db0('0x7a'),_0x2d0b1c))};if(_0x5db0('0x4c')==_0x18c71c[_0x5db0('0x3')])return _0xa66b32[_0x5db0('0x5')]?{'type':_0x5db0('0x4c'),'content':_0x31c1cb(_0x46781a,_0x5db0('0x87'),_0x31c1cb(_0x46781a,_0x5db0('0x41'),[_0x2d0b1c,'\x22'+_0xa66b32[_0x5db0('0x4d')]('\x20')+'\x22']))}:{'type':_0x5db0('0x4c'),'content':_0x31c1cb(_0x46781a,_0x5db0('0x87'),_0x31c1cb(_0x46781a,_0x5db0('0x7a'),_0x2d0b1c))};}}),_0x22d671['_suggestionFactory'][_0x5db0('0x3d')](_0x5db0('0x28'),_0x5db0('0x7c'),_0x5db0('0x21'),_0x2deeea),_0x22d671[_0x5db0('0x2c')][_0x5db0('0x3d')](_0x5db0('0x4c'),_0x5db0('0x7c'),'accept',_0x2deeea),_0x22d671[_0x5db0('0x2c')][_0x5db0('0x3d')](_0x5db0('0x28'),_0x5db0('0x32'),_0x5db0('0x21'),_0x15d719),_0x22d671[_0x5db0('0x2c')][_0x5db0('0x3d')]('deletion',_0x5db0('0x32'),_0x5db0('0x1c'),_0x15d719),_0x22d671['_suggestionFactory'][_0x5db0('0x3d')](_0x5db0('0x28'),_0x5db0('0x32'),'join',_0x35b124),_0x22d671['_suggestionFactory'][_0x5db0('0x3d')](_0x5db0('0x4c'),_0x5db0('0x32'),_0x5db0('0x4d'),_0x35b124),_0x22d671[_0x5db0('0x2c')][_0x5db0('0x3d')]('insertion',_0x5db0('0x7c'),_0x5db0('0x4d'),_0x1cb262),_0x22d671[_0x5db0('0x2c')][_0x5db0('0x3d')](_0x5db0('0x4c'),_0x5db0('0x7c'),'join',_0x1cb262);}[_0x5db0('0x30')](){const _0x5bffe2=this['editor'],_0x3e7e1b=_0x5bffe2['model'][_0x5db0('0x5c')][_0x5db0('0x37')];return(_0x1f2ed6,_0x2bb101)=>{_0x5bffe2[_0x5db0('0x7e')]['change'](_0x572bfd=>{const {commandName:_0x1fdf7d,commandParams:_0x4143cf}=_0x2bb101;let _0x3677cf=_0x1f2ed6[0x0][_0x5db0('0x76')][_0x5db0('0x42')];_0x4143cf&&_0x4143cf[0x0]&&!0x1===_0x4143cf[0x0]['forceValue']&&(_0x3677cf=_0x1f2ed6[0x0][_0x5db0('0x75')][_0x5db0('0xd')]);const _0x3b908f=_0x572bfd[_0x5db0('0x36')](_0x3677cf);if(_0x5db0('0x22')==_0x3b908f[_0x5db0('0x7f')]['rootName'])return;const _0x443ec1=Array[_0x5db0('0x4e')](_0x3e7e1b[_0x5db0('0x72')]())['map'](_0x535ee5=>_0x40ce2f[_0x5db0('0x11')](_0x535ee5));_0x572bfd['setSelection'](_0x3b908f),_0x5bffe2['commands']['get'](_0x1fdf7d)[_0x5db0('0x65')](),_0x4143cf[_0x5db0('0x61')]({'forceDefaultExecution':!0x0}),_0x5bffe2['execute'](_0x1fdf7d,..._0x4143cf);const _0x343bfd=_0x443ec1[_0x5db0('0x29')](_0xba5f57=>_0x5db0('0x22')!=_0xba5f57[_0x5db0('0x7f')][_0x5db0('0x3a')]);_0x343bfd[_0x5db0('0x5')]>0x0&&_0x572bfd[_0x5db0('0x1a')](_0x343bfd);for(const _0x426ad7 of _0x443ec1)_0x426ad7[_0x5db0('0x16')]();});};}['_getCoordsForCells'](_0x4aa468){const _0x4a29d6=this[_0x5db0('0x2')][_0x5db0('0x33')][_0x5db0('0x57')](_0x5db0('0x81'));let _0x5a000e=Number[_0x5db0('0x2b')],_0x38cb37=Number['MIN_SAFE_INTEGER'],_0x5ba379=Number[_0x5db0('0x2b')],_0x2f8632=Number[_0x5db0('0x6a')];for(const _0x55aee5 of _0x4aa468){if(_0x5db0('0x22')==_0x55aee5[_0x5db0('0x7f')][_0x5db0('0x3a')])continue;const {row:_0x477479,column:_0x30c1b1}=_0x4a29d6[_0x5db0('0x12')](_0x55aee5),_0x20d122=_0x55aee5[_0x5db0('0xf')]('rowspan')?_0x55aee5[_0x5db0('0x1')](_0x5db0('0x3c'))-0x1:0x0,_0x11e559=_0x55aee5[_0x5db0('0xf')](_0x5db0('0x48'))?_0x55aee5['getAttribute']('colspan')-0x1:0x0;_0x5a000e=_0x477479<_0x5a000e?_0x477479:_0x5a000e,_0x38cb37=_0x477479+_0x20d122>_0x38cb37?_0x477479+_0x20d122:_0x38cb37,_0x5ba379=_0x30c1b1<_0x5ba379?_0x30c1b1:_0x5ba379,_0x2f8632=_0x30c1b1+_0x11e559>_0x2f8632?_0x30c1b1+_0x11e559:_0x2f8632;}return{'minRow':_0x5a000e,'maxRow':_0x38cb37,'minColumn':_0x5ba379,'maxColumn':_0x2f8632};}[_0x5db0('0x4b')](){const _0x4a2b9b=this[_0x5db0('0x2')],_0x2efcc6=_0x4a2b9b[_0x5db0('0x33')][_0x5db0('0x57')](_0x5db0('0x59')),_0x40f6c9=_0x4a2b9b['plugins'][_0x5db0('0x57')](_0x5db0('0x81'));_0x4a2b9b[_0x5db0('0x7e')][_0x5db0('0x5c')]['on'](_0x5db0('0x69'),()=>{const _0x4044c6=Array[_0x5db0('0x4e')](_0x4a2b9b[_0x5db0('0x7e')][_0x5db0('0x5c')][_0x5db0('0x23')]['getChangedMarkers']());for(const {name:_0x4ca722,data:_0x7e765b}of _0x4044c6){const {group:_0x4f5332,id:_0x40358f,subType:_0x45df79}=_0x2efcc6[_0x5db0('0x34')](_0x4ca722);if('suggestion'!=_0x4f5332)continue;if(null!=_0x7e765b[_0x5db0('0x73')])continue;const _0x5da519=_0x2efcc6['getSuggestion'](_0x40358f);this[_0x5db0('0x19')][_0x5db0('0x27')](_0x45df79)&&this[_0x5db0('0xa')][_0x5db0('0x5a')](_0x5da519);}},{'priority':_0x5db0('0x45')});const _0x5e7a8f=(_0x473251,_0x36be5b)=>{let _0xb948cc=!0x1;const _0x2f8bb6=_0x36be5b[_0x5db0('0x2e')](_0x473251),_0x156c3c=_0x473251[_0x5db0('0x46')](_0x5db0('0x8')),_0x413612=_0x40f6c9['getCellLocation'](_0x473251);for(const _0x3a8b57 of this[_0x5db0('0xa')]){const _0xc375e8=_0x3a8b57[_0x5db0('0x6d')],_0x4a5cce=_0xc375e8['startsWith'](_0x5db0('0x49')),_0x49f334=_0xc375e8[_0x5db0('0x18')](_0x4a5cce?0xa:0x5),_0x27363f=_0x49f334['toLowerCase'](),_0x4bb310=_0x27363f['substr'](0x0,0x3)+_0x5db0('0x47'),_0x5b1c8f='min'+_0x49f334,_0x48fec1=_0x5db0('0x6b')+_0x49f334;if(!_0x3a8b57[_0x5db0('0x1d')])continue;if(_0x156c3c!=_0x3a8b57[_0x5db0('0x3b')]()[_0x5db0('0x75')]['findAncestor']('table'))continue;if(_0x3a8b57['isIntersectingWithRange'](_0x2f8bb6))continue;const _0x92a040=_0x473251[_0x5db0('0xf')](_0x4bb310)?_0x473251[_0x5db0('0x1')](_0x4bb310)-0x1:0x0,_0x3374e3=this[_0x5db0('0x77')](_0x3a8b57),_0x395bba=_0x3374e3[_0x5b1c8f],_0x26be3d=_0x3374e3[_0x48fec1];_0x395bba<=_0x413612[_0x27363f]&&_0x413612[_0x27363f]+_0x92a040<=_0x26be3d&&(_0x3a8b57[_0x5db0('0x56')](_0x2f8bb6),_0xb948cc=!0x0);}return _0xb948cc;};_0x4a2b9b[_0x5db0('0x7e')]['document'][_0x5db0('0x55')](_0x4c2815=>{let _0xe63bac=!0x1;for(const _0x42249e of _0x4a2b9b[_0x5db0('0x7e')][_0x5db0('0x5c')]['differ'][_0x5db0('0x4f')]())if(_0x5db0('0x62')==_0x42249e['type']){if(_0x5db0('0x7c')==_0x42249e['name'])for(const _0x18affb of _0x42249e['position']['nodeAfter']['getChildren']())_0xe63bac=_0xe63bac||_0x5e7a8f(_0x18affb,_0x4c2815);else _0x5db0('0x85')==_0x42249e[_0x5db0('0x3f')]&&(_0xe63bac=_0xe63bac||_0x5e7a8f(_0x42249e[_0x5db0('0x24')][_0x5db0('0xd')],_0x4c2815));}return _0xe63bac;});}[_0x5db0('0x77')](_0x57a2eb){return this['_getCoordsForCells'](_0x57a2eb['getRanges']()['map'](_0x2ebfff=>_0x2ebfff[_0x5db0('0x75')][_0x5db0('0xd')]));}}function se(_0x26e507){return Array[_0x5db0('0x4e')](new Set(_0x26e507)[_0x5db0('0x39')]());}
|
|
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'));}}
|