@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231011.0 → 0.0.0-nightly-20231013.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 _0x5ca5=['TrackChangesEditing','_getTranslationKeyForListStyle','model','listStyle','handleListStartCommand','toUpperCase','listType','locale','selection','reversed','getSiblingNodes','listItem','flat','type','unshift','*Format:*\x20set\x20start\x20index\x20to\x20%0','_getSuggestionBlocksForListStyle','*Format:*\x20set\x20order\x20to\x20reversed','markMultiRangeBlockFormat','handleDescriptions','getFirstPosition','commandParams','getAttribute','bind','createRange','replace','ListPropertiesEditing','createPositionAt','change','get','listReversed','editor','list.properties','_descriptionFactory','forward','_LIST_','enableCommand','ELEMENT_','plugins','startIndex','afterInit','listStart','config','getSelectedBlocks','handleListReversedCommand','from','format','before','document','ListUtils','_getSuggestionBlocks','parent','*Change\x20to:*\x20%0','commandName','element','backward','push','length','map','*Format:*\x20set\x20order\x20to\x20regular','numbered'];(function(_0x2e1fd8,_0x5ca504){const _0x3d57cb=function(_0x2a0a77){while(--_0x2a0a77){_0x2e1fd8['push'](_0x2e1fd8['shift']());}};_0x3d57cb(++_0x5ca504);}(_0x5ca5,0x125));const _0x3d57=function(_0x2e1fd8,_0x5ca504){_0x2e1fd8=_0x2e1fd8-0x0;let _0x3d57cb=_0x5ca5[_0x2e1fd8];return _0x3d57cb;};import{Plugin as _0x1c7cf4}from'ckeditor5/src/core';import{getTranslation as _0x4c364f}from'../utils/common-translations';export default class ot extends _0x1c7cf4{[_0x3d57('0x34')](){if(!this[_0x3d57('0x2b')][_0x3d57('0x32')]['has'](_0x3d57('0x26')))return;const _0x1cf8cf=this['editor'][_0x3d57('0x36')][_0x3d57('0x29')](_0x3d57('0x2c')),_0x2fcaf0=this[_0x3d57('0x2b')][_0x3d57('0x32')]['get']('TrackChangesEditing');_0x1cf8cf['styles']&&_0x2fcaf0[_0x3d57('0x30')](_0x3d57('0xf'),this['handleListStyleCommand'][_0x3d57('0x23')](this)),_0x1cf8cf['reversed']&&_0x2fcaf0[_0x3d57('0x30')]('listReversed',this[_0x3d57('0x38')][_0x3d57('0x23')](this)),_0x1cf8cf[_0x3d57('0x33')]&&_0x2fcaf0[_0x3d57('0x30')](_0x3d57('0x35'),this[_0x3d57('0x10')][_0x3d57('0x23')](this)),_0x2fcaf0[_0x3d57('0x2d')]['registerDescriptionCallback'](this[_0x3d57('0x1f')][_0x3d57('0x23')](this));}['handleListStyleCommand'](_0x3f0cf5,_0x505ee6={}){const _0x4e1ccb=this['editor'][_0x3d57('0x32')][_0x3d57('0x29')](_0x3d57('0xc')),_0x1023c3=this[_0x3d57('0x1c')]();this[_0x3d57('0x2b')]['model'][_0x3d57('0x28')](()=>{_0x4e1ccb['markMultiRangeBlockFormat'](_0x1023c3,{'commandName':_0x3d57('0xf'),'commandParams':[{'type':_0x505ee6[_0x3d57('0x19')]}],'formatGroupId':'listStyle'});});}[_0x3d57('0x38')](_0x157175,_0x14c888={}){const _0x438be1=this[_0x3d57('0x2b')][_0x3d57('0x32')]['get'](_0x3d57('0xc')),_0x2495e4=this[_0x3d57('0x1')](_0x23930d=>_0x23930d['is'](_0x3d57('0x5'),_0x3d57('0x17'))&&_0x3d57('0xb')===_0x23930d[_0x3d57('0x22')](_0x3d57('0x12')));if(_0x2495e4[_0x3d57('0x8')]<0x1)return;const _0x14235d=_0x2495e4[_0x3d57('0x9')](_0x423f28=>this[_0x3d57('0x2b')][_0x3d57('0xe')][_0x3d57('0x24')](this['editor'][_0x3d57('0xe')]['createPositionAt'](_0x423f28,_0x3d57('0x3b')),this[_0x3d57('0x2b')][_0x3d57('0xe')]['createPositionAt'](_0x423f28,0x0)));this['editor']['model']['change'](()=>{_0x438be1['markMultiRangeBlockFormat'](_0x14235d,{'commandName':_0x3d57('0x2a'),'commandParams':[{'reversed':_0x14c888['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3bf5b5,_0x4f8600={}){const _0x43ce8e=this['editor'][_0x3d57('0x32')]['get'](_0x3d57('0xc')),_0x4ecb49=this[_0x3d57('0x1')](_0x1a1d7d=>_0x1a1d7d['is'](_0x3d57('0x5'),_0x3d57('0x17'))&&_0x3d57('0xb')===_0x1a1d7d[_0x3d57('0x22')](_0x3d57('0x12')));if(_0x4ecb49[_0x3d57('0x8')]<0x1)return;const _0x3d7931=_0x4ecb49[_0x3d57('0x9')](_0x1b2e2a=>this['editor'][_0x3d57('0xe')][_0x3d57('0x24')](this[_0x3d57('0x2b')][_0x3d57('0xe')][_0x3d57('0x27')](_0x1b2e2a,'before'),this[_0x3d57('0x2b')][_0x3d57('0xe')]['createPositionAt'](_0x1b2e2a,0x0)));this[_0x3d57('0x2b')][_0x3d57('0xe')][_0x3d57('0x28')](()=>{_0x43ce8e[_0x3d57('0x1e')](_0x3d7931,{'commandName':'listStart','commandParams':[{'startIndex':_0x4f8600[_0x3d57('0x33')]}],'formatGroupId':_0x3d57('0x35')});});}['handleDescriptions'](_0x577be7){const _0x44cb27=this[_0x3d57('0x2b')][_0x3d57('0x13')],{data:_0x59a2ea}=_0x577be7;if(!_0x59a2ea)return;let _0x15ff40,_0x26953a;switch(_0x59a2ea[_0x3d57('0x4')]){case'listStyle':_0x15ff40=_0x3d57('0x3'),_0x26953a={'type':_0x3d57('0x3a'),'content':_0x4c364f(_0x44cb27,_0x15ff40,_0x4c364f(_0x44cb27,this[_0x3d57('0xd')](_0x59a2ea[_0x3d57('0x21')][0x0]['type'])))};break;case _0x3d57('0x2a'):_0x15ff40=_0x59a2ea[_0x3d57('0x21')][0x0][_0x3d57('0x15')]?_0x3d57('0x1d'):_0x3d57('0xa'),_0x26953a={'type':_0x3d57('0x3a'),'content':_0x4c364f(_0x44cb27,_0x15ff40)};break;case _0x3d57('0x35'):_0x15ff40=_0x3d57('0x1b'),_0x26953a={'type':_0x3d57('0x3a'),'content':_0x4c364f(_0x44cb27,_0x15ff40,_0x59a2ea[_0x3d57('0x21')][0x0][_0x3d57('0x33')])};}return _0x26953a;}[_0x3d57('0x1c')](){var _0x46a963,_0x1f80d8,_0x3e33b1,_0x472a4b;const _0x334181=this['editor']['plugins']['get']('ListUtils');let _0x4b9317=Array['from'](this[_0x3d57('0x2b')]['model'][_0x3d57('0x3c')][_0x3d57('0x14')][_0x3d57('0x37')]());return(null===(_0x46a963=_0x4b9317[0x0])||void 0x0===_0x46a963?void 0x0:_0x46a963['is'](_0x3d57('0x5'),'listItem'))&&_0x4b9317[_0x3d57('0x1a')](..._0x334181['getSiblingNodes'](this[_0x3d57('0x2b')][_0x3d57('0xe')][_0x3d57('0x3c')][_0x3d57('0x14')][_0x3d57('0x20')](),_0x3d57('0x6'))),(null===(_0x1f80d8=_0x4b9317[_0x4b9317[_0x3d57('0x8')]-0x1])||void 0x0===_0x1f80d8?void 0x0:_0x1f80d8['is'](_0x3d57('0x5'),_0x3d57('0x17')))&&_0x4b9317[_0x3d57('0x7')](..._0x334181[_0x3d57('0x16')](this[_0x3d57('0x2b')][_0x3d57('0xe')]['document'][_0x3d57('0x14')]['getLastPosition'](),_0x3d57('0x2e'))),_0x4b9317=[...new Set(_0x4b9317)],(null===(_0x472a4b=null===(_0x3e33b1=this[_0x3d57('0x2b')]['model'][_0x3d57('0x3c')][_0x3d57('0x14')]['getFirstPosition']())||void 0x0===_0x3e33b1?void 0x0:_0x3e33b1[_0x3d57('0x2')])||void 0x0===_0x472a4b?void 0x0:_0x472a4b['is'](_0x3d57('0x5'),_0x3d57('0x17')))&&(_0x4b9317=_0x4b9317['filter'](_0x1a2cc4=>_0x1a2cc4['is'](_0x3d57('0x5'),_0x3d57('0x17')))),_0x4b9317;}[_0x3d57('0x1')](_0x3bf12a){const _0x19535c=this['editor'][_0x3d57('0x32')][_0x3d57('0x29')](_0x3d57('0x0'));let _0x4001e6=Array[_0x3d57('0x39')](this['editor']['model'][_0x3d57('0x3c')][_0x3d57('0x14')][_0x3d57('0x37')]())['filter'](_0x3bf12a)[_0x3d57('0x9')](_0x37c1ae=>{const _0x34565a=this[_0x3d57('0x2b')][_0x3d57('0xe')][_0x3d57('0x27')](_0x37c1ae,0x0);return[..._0x19535c[_0x3d57('0x16')](_0x34565a,_0x3d57('0x6')),..._0x19535c[_0x3d57('0x16')](_0x34565a,_0x3d57('0x2e'))];})[_0x3d57('0x18')]();return _0x4001e6=[...new Set(_0x4001e6)],_0x4001e6;}[_0x3d57('0xd')](_0x2c7d4a){return _0x3d57('0x31')+this['editor'][_0x3d57('0x32')][_0x3d57('0x29')](_0x3d57('0x0'))['getListTypeFromListStyleType'](_0x2c7d4a)[_0x3d57('0x11')]()+_0x3d57('0x2f')+_0x2c7d4a[_0x3d57('0x11')]()[_0x3d57('0x25')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5612=['ELEMENT_MEDIA','for','editor','downcastDispatcher','high','createEmptyElement','div','locale','dataDowncast','get','conversion','has','options','afterInit','elementToElement','MediaEmbedEditing','showSuggestionHighlights','TrackChangesEditing','attribute:url:media','media','plugins','data','stop'];(function(_0x227c15,_0x561236){const _0x1a8517=function(_0x4089c5){while(--_0x4089c5){_0x227c15['push'](_0x227c15['shift']());}};_0x1a8517(++_0x561236);}(_0x5612,0xf4));const _0x1a85=function(_0x227c15,_0x561236){_0x227c15=_0x227c15-0x0;let _0x1a8517=_0x5612[_0x227c15];return _0x1a8517;};import{Plugin as _0x4cb555}from'ckeditor5/src/core';import{getTranslation as _0xa07687}from'../utils/common-translations';export default class rt extends _0x4cb555{[_0x1a85('0x16')](){const _0x1e88ac=this[_0x1a85('0xb')];if(!_0x1e88ac[_0x1a85('0x6')][_0x1a85('0x14')](_0x1a85('0x1')))return;const _0x182264=_0x1e88ac['plugins'][_0x1a85('0x12')](_0x1a85('0x3')),_0xf9dd95=_0x1e88ac[_0x1a85('0x10')];_0x182264['enableCommand']('mediaEmbed'),_0x182264['_descriptionFactory']['registerElementLabel'](_0x1a85('0x5'),_0x18fb6d=>_0xa07687(_0xf9dd95,_0x1a85('0x9'),_0x18fb6d)),_0x1e88ac[_0x1a85('0x13')][_0x1a85('0xa')](_0x1a85('0x11'))[_0x1a85('0x0')]({'model':_0x1a85('0x5'),'view':(_0x3014db,{writer:_0x5bce27,options:_0x9f0f83})=>{if(_0x9f0f83[_0x1a85('0x2')])return _0x5bce27[_0x1a85('0xe')](_0x1a85('0xf'));},'converterPriority':_0x1a85('0xd')}),_0x1e88ac[_0x1a85('0x7')][_0x1a85('0xc')]['on'](_0x1a85('0x4'),(_0x55af96,_0x5886c3,_0x4ed7f3)=>{_0x4ed7f3[_0x1a85('0x15')]['showSuggestionHighlights']&&_0x55af96[_0x1a85('0x8')]();},{'priority':_0x1a85('0xd')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3aab=['has','get','afterInit','editor','MentionEditing','mention','plugins','enableCommand'];(function(_0x9234c7,_0x3aab33){const _0x217462=function(_0x5c8d59){while(--_0x5c8d59){_0x9234c7['push'](_0x9234c7['shift']());}};_0x217462(++_0x3aab33);}(_0x3aab,0x8a));const _0x2174=function(_0x9234c7,_0x3aab33){_0x9234c7=_0x9234c7-0x0;let _0x217462=_0x3aab[_0x9234c7];return _0x217462;};import{Plugin as _0xc394d2}from'ckeditor5/src/core';export default class at extends _0xc394d2{[_0x2174('0x0')](){const _0x1541b4=this[_0x2174('0x1')];_0x1541b4[_0x2174('0x4')][_0x2174('0x6')](_0x2174('0x2'))&&_0x1541b4['plugins'][_0x2174('0x7')]('TrackChangesEditing')[_0x2174('0x5')](_0x2174('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29ee=['get','locale','_descriptionFactory','registerElementLabel','TrackChangesEditing','pageBreak','plugins','ELEMENT_PAGE_BREAK','has','editor','PageBreakEditing','enableCommand'];(function(_0x364829,_0x29eeab){const _0x286160=function(_0x3590de){while(--_0x3590de){_0x364829['push'](_0x364829['shift']());}};_0x286160(++_0x29eeab);}(_0x29ee,0x148));const _0x2861=function(_0x364829,_0x29eeab){_0x364829=_0x364829-0x0;let _0x286160=_0x29ee[_0x364829];return _0x286160;};import{Plugin as _0x433c1a}from'ckeditor5/src/core';import{getTranslation as _0x539e77}from'../utils/common-translations';export default class ct extends _0x433c1a{['afterInit'](){const _0x57e61a=this[_0x2861('0x5')];if(!_0x57e61a[_0x2861('0x2')][_0x2861('0x4')](_0x2861('0x6')))return;_0x57e61a[_0x2861('0x2')][_0x2861('0x8')](_0x2861('0x0'))[_0x2861('0x7')](_0x2861('0x1'));const _0x1e8077=_0x57e61a[_0x2861('0x2')]['get'](_0x2861('0x0')),_0x153a3f=_0x57e61a[_0x2861('0x9')];_0x1e8077[_0x2861('0xa')][_0x2861('0xb')](_0x2861('0x1'),_0x27a111=>_0x539e77(_0x153a3f,_0x2861('0x3'),_0x27a111));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4936=['blockName','markerRange','model','afterInit','from','addMarker:suggestion:insertion','getItemLabel','showSuggestionHighlights','paragraph','editor','nodeAfter','downcastDispatcher','change','insertParagraph','registerDescriptionCallback','*Change\x20to:*\x20%0','isLimit','options','commandName','enableCommand','locale','writer','isObject','ck-suggestion-marker--active','end','$text','type','consumable','addClass','createUIElement','includes','name','document','registerElementLabel','editing','data','isBlock','isTouching','get','checkChild','ELEMENT_PARAGRAPH','markerName','activeMarkers','consume','ck-suggestion-marker-split','insertion','selection','getSelectedBlocks','insert','plugins','parent','start','bindElementToMarker','highest','mapper','_descriptionFactory','TrackChangesEditing','schema'];(function(_0x425c10,_0x493686){const _0x790835=function(_0x22eab9){while(--_0x22eab9){_0x425c10['push'](_0x425c10['shift']());}};_0x790835(++_0x493686);}(_0x4936,0x17b));const _0x7908=function(_0x425c10,_0x493686){_0x425c10=_0x425c10-0x0;let _0x790835=_0x4936[_0x425c10];return _0x790835;};import{Plugin as _0x13b769}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2fc002}from'./utils';import{getTranslation as _0x50caf8}from'../utils/common-translations';export default class ht extends _0x13b769{[_0x7908('0x1e')](){const _0x485510=this[_0x7908('0x24')];if(!_0x485510[_0x7908('0x12')]['has']('Paragraph'))return;const _0x2ebf70=_0x485510[_0x7908('0x2f')],_0x5eec1c=_0x485510['plugins']['get'](_0x7908('0x19'));_0x5eec1c[_0x7908('0x18')][_0x7908('0x2')](_0x7908('0x23'),_0x253b04=>_0x50caf8(_0x2ebf70,_0x7908('0x9'),_0x253b04)),_0x5eec1c[_0x7908('0x2e')](_0x7908('0x23'),(_0x56141e,_0x59b028={})=>{const _0x3f2a8c=_0x485510['model'][_0x7908('0x1')],_0x52318b=_0x59b028[_0x7908('0xf')]||_0x3f2a8c[_0x7908('0xf')],_0x4c72ed=Array[_0x7908('0x1f')](_0x52318b[_0x7908('0x10')]())['filter'](_0x58504d=>function(_0x1a8f39,_0x2b925b){return _0x2b925b[_0x7908('0x8')](_0x1a8f39[_0x7908('0x13')],_0x7908('0x23'))&&!_0x2b925b[_0x7908('0x31')](_0x1a8f39)&&_0x7908('0x23')!=_0x1a8f39['name'];}(_0x58504d,this[_0x7908('0x24')][_0x7908('0x1d')]['schema']));_0x485510[_0x7908('0x1d')][_0x7908('0x27')](()=>{for(const _0x5898b9 of _0x4c72ed)_0x5eec1c['markBlockFormat'](_0x5898b9,{'commandName':_0x7908('0x23'),'commandParams':[],'formatGroupId':_0x7908('0x1b')},_0x2fc002(_0x5898b9));});}),_0x5eec1c[_0x7908('0x18')][_0x7908('0x29')](_0x4a30ac=>{const {data:_0x3f678a}=_0x4a30ac;if(_0x3f678a&&'paragraph'==_0x3f678a[_0x7908('0x2d')])return{'type':'format','content':_0x50caf8(_0x2ebf70,_0x7908('0x2a'),_0x50caf8(_0x2ebf70,_0x7908('0x9')))};}),_0x5eec1c[_0x7908('0x2e')](_0x7908('0x28')),_0x485510[_0x7908('0x3')][_0x7908('0x26')]['on'](_0x7908('0x20'),ar(_0x485510),{'priority':_0x7908('0x16')}),_0x485510[_0x7908('0x4')]['downcastDispatcher']['on'](_0x7908('0x20'),(_0x5eb897,_0x716d50,_0xae9d6f)=>{_0xae9d6f[_0x7908('0x2c')][_0x7908('0x22')]&&ar(_0x485510,{'showActiveMarker':!0x1})(_0x5eb897,_0x716d50,_0xae9d6f);},{'priority':'highest'});const _0x40000f=_0x5eec1c[_0x7908('0x18')];_0x40000f[_0x7908('0x29')](_0x203adc=>{if('insertion'!==_0x203adc[_0x7908('0x35')])return;const {start:_0x3d21c8,end:_0xacfa27}=_0x203adc['getFirstRange']();if(!_0x3d21c8[_0x7908('0x6')](_0xacfa27)||!_0x3d21c8[_0x7908('0x25')])return;const _0x4045b6=_0x485510[_0x7908('0x1d')][_0x7908('0x1a')],_0x24a85a=_0x3d21c8[_0x7908('0x25')];return _0x4045b6[_0x7908('0x5')](_0x24a85a)&&!_0x4045b6[_0x7908('0x2b')](_0x24a85a)&&_0x4045b6['checkChild'](_0x24a85a,'$text')?{'type':_0x7908('0xe'),'content':_0x50caf8(_0x2ebf70,'*Insert:*\x20%0',_0x40000f[_0x7908('0x21')](_0x24a85a,0x1))}:void 0x0;});}}function ar(_0x7269a,{showActiveMarker:_0x36a16e=!0x0}={}){return(_0x18c74a,_0x239734,_0xbf67e0)=>{const _0x13cb17=_0x7269a[_0x7908('0x12')][_0x7908('0x7')](_0x7908('0x19')),_0x2bab51=_0x239734['markerRange'][_0x7908('0x14')],_0x13b799=_0x239734['markerRange'][_0x7908('0x33')],_0x32569b=_0x7269a[_0x7908('0x1d')]['schema'];if(!_0x2bab51['isTouching'](_0x13b799)||!_0x2bab51[_0x7908('0x25')])return;const _0x239272=_0x2bab51[_0x7908('0x25')];if(_0x32569b[_0x7908('0x5')](_0x239272)&&!_0x32569b[_0x7908('0x2b')](_0x239272)&&_0x32569b[_0x7908('0x8')](_0x239272,_0x7908('0x34'))){if(!_0xbf67e0[_0x7908('0x36')][_0x7908('0xc')](_0x239734[_0x7908('0x1c')],_0x18c74a[_0x7908('0x0')]))return;const _0xab799a=_0xbf67e0[_0x7908('0x30')][_0x7908('0x38')]('span',{'class':_0x7908('0xd')}),_0x31ffcc=_0xbf67e0['mapper']['toViewPosition'](_0x13b799);_0x36a16e&&_0x13cb17[_0x7908('0xb')][_0x7908('0x39')](_0x239734['markerName'])&&_0xbf67e0[_0x7908('0x30')][_0x7908('0x37')](_0x7908('0x32'),_0xab799a),_0xbf67e0[_0x7908('0x30')][_0x7908('0x11')](_0x31ffcc,_0xab799a),_0xbf67e0[_0x7908('0x17')][_0x7908('0x15')](_0xab799a,_0x239734[_0x7908('0xa')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a2d=['model','afterInit','*Remove\x20all\x20formatting*','removeFormat','plugins','commandName','isFormatting','RemoveFormatEditing','isCollapsed','editor','locale','markInlineFormat','TrackChangesEditing','document','getAttributeProperties','registerDescriptionCallback','createRangeOn','enableCommand','format','change','selection','has','getItems'];(function(_0x192aac,_0x2a2d10){const _0x32e15c=function(_0x20a3d1){while(--_0x20a3d1){_0x192aac['push'](_0x192aac['shift']());}};_0x32e15c(++_0x2a2d10);}(_0x2a2d,0xcd));const _0x32e1=function(_0x192aac,_0x2a2d10){_0x192aac=_0x192aac-0x0;let _0x32e15c=_0x2a2d[_0x192aac];return _0x32e15c;};import{Plugin as _0x547e8f}from'ckeditor5/src/core';import{getTranslation as _0x3175f4}from'../utils/common-translations';export default class ut extends _0x547e8f{[_0x32e1('0x3')](){const _0x4c7d4a=this[_0x32e1('0xb')];if(!_0x4c7d4a[_0x32e1('0x6')][_0x32e1('0x0')](_0x32e1('0x9')))return;const _0x4550bc=_0x4c7d4a['plugins']['get'](_0x32e1('0xe'));_0x4550bc[_0x32e1('0x13')](_0x32e1('0x5'),_0x247e37=>{const _0x391551=_0x4c7d4a[_0x32e1('0x2')][_0x32e1('0xf')][_0x32e1('0x16')];_0x391551[_0x32e1('0xa')]?_0x247e37():_0x4c7d4a['model'][_0x32e1('0x15')](()=>{const _0x53b298=Array['from'](_0x391551['getRanges']());for(const _0x2c8671 of _0x53b298)for(const _0x3dc66a of _0x2c8671[_0x32e1('0x1')]())mo(_0x3dc66a,_0x4c7d4a[_0x32e1('0x2')]['schema'])&&_0x4550bc[_0x32e1('0xd')](_0x4c7d4a[_0x32e1('0x2')][_0x32e1('0x12')](_0x3dc66a),{'commandName':_0x32e1('0x5'),'commandParams':[]});});}),_0x4550bc['_descriptionFactory'][_0x32e1('0x11')](_0x1e33ff=>{const {data:_0x4a766}=_0x1e33ff;if(_0x4a766&&'removeFormat'==_0x4a766[_0x32e1('0x7')])return{'type':_0x32e1('0x14'),'content':_0x3175f4(_0x4c7d4a[_0x32e1('0xc')],_0x32e1('0x4'))};});}}function mo(_0x23c5ce,_0x11bb4d){for(const [_0x5d8746]of _0x23c5ce['getAttributes']()){const _0x15260e=_0x11bb4d[_0x32e1('0x10')](_0x5d8746);if(_0x15260e&&_0x15260e[_0x32e1('0x8')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a34=['has','trackChanges','enableCommand','plugins','TrackChangesEditing','RestrictedEditingModeEditing','discardSuggestion','acceptSuggestion','acceptSelectedSuggestions','afterInit','get','goToPreviousRestrictedEditingException','acceptAllSuggestions'];(function(_0x10c279,_0x5a34ce){const _0x553ff5=function(_0x4bfeaf){while(--_0x4bfeaf){_0x10c279['push'](_0x10c279['shift']());}};_0x553ff5(++_0x5a34ce);}(_0x5a34,0xaa));const _0x553f=function(_0x10c279,_0x5a34ce){_0x10c279=_0x10c279-0x0;let _0x553ff5=_0x5a34[_0x10c279];return _0x553ff5;};import{Plugin as _0x373d0e}from'ckeditor5/src/core';export default class ft extends _0x373d0e{[_0x553f('0x8')](){const _0x35e088=this['editor'];if(!_0x35e088['plugins'][_0x553f('0xc')]('RestrictedEditingModeEditing'))return;const _0x45883e=_0x35e088[_0x553f('0x2')][_0x553f('0x9')](_0x553f('0x3'));_0x45883e['enableCommand'](_0x553f('0xa')),_0x45883e['enableCommand']('goToNextRestrictedEditingException');const _0x46cf42=_0x35e088[_0x553f('0x2')][_0x553f('0x9')](_0x553f('0x4'));_0x46cf42[_0x553f('0x1')](_0x553f('0x0')),_0x46cf42['enableCommand'](_0x553f('0x6')),_0x46cf42['enableCommand'](_0x553f('0x5')),_0x46cf42[_0x553f('0x1')](_0x553f('0xb')),_0x46cf42['enableCommand']('discardAllSuggestions'),_0x46cf42[_0x553f('0x1')](_0x553f('0x7')),_0x46cf42[_0x553f('0x1')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x81eb=['insert','high','get','includes','bindElementToMarker','createPositionBefore','writer','ELEMENT_LINE_BREAK','locale','deletion','init','data','element','model','consumable','toViewPosition','ck-suggestion-marker-','markerRange','TrackChangesEditing','split','activeMarkers','softBreak','enableCommand','createUIElement','markerName','span','mapper','merge','ck-suggestion-marker--active','editor','options','registerElementLabel','requires','plugins','addClass','addMarker:suggestion:deletion','name','addMarker:suggestion','downcastDispatcher','addMarker:suggestion:insertion','test'];(function(_0x59d7c8,_0x81eb5f){const _0x3c9421=function(_0x1dabbd){while(--_0x1dabbd){_0x59d7c8['push'](_0x59d7c8['shift']());}};_0x3c9421(++_0x81eb5f);}(_0x81eb,0x1dd));const _0x3c94=function(_0x59d7c8,_0x81eb5f){_0x59d7c8=_0x59d7c8-0x0;let _0x3c9421=_0x81eb[_0x59d7c8];return _0x3c9421;};import{Plugin as _0x162be6}from'ckeditor5/src/core';import{ShiftEnter as _0x26cd2c}from'ckeditor5/src/enter';import{getTranslation as _0xc38040}from'../utils/common-translations';export default class lt extends _0x162be6{static get[_0x3c94('0x6')](){return[_0x26cd2c];}[_0x3c94('0x19')](){const _0x3bb11c=this[_0x3c94('0x3')],_0xd46190=_0x3bb11c[_0x3c94('0x7')]['get'](_0x3c94('0x21'));_0xd46190[_0x3c94('0x25')]('shiftEnter'),_0x3bb11c['editing'][_0x3c94('0xc')]['on'](_0x3c94('0xd'),re(_0x3bb11c),{'priority':_0x3c94('0x10')}),_0x3bb11c['editing'][_0x3c94('0xc')]['on'](_0x3c94('0x9'),re(_0x3bb11c),{'priority':_0x3c94('0x10')}),_0x3bb11c[_0x3c94('0x1a')]['downcastDispatcher']['on'](_0x3c94('0xb'),(_0x41eb3b,_0x193df3,_0x358c01)=>{_0x358c01[_0x3c94('0x4')]['showSuggestionHighlights']&&re(_0x3bb11c,{'showActiveMarker':!0x1})(_0x41eb3b,_0x193df3,_0x358c01);}),_0xd46190['_descriptionFactory'][_0x3c94('0x5')](_0x3c94('0x24'),_0x5cfbdd=>_0xc38040(_0x3bb11c[_0x3c94('0x17')],_0x3c94('0x16'),_0x5cfbdd));}}function re(_0x110d44,{showActiveMarker:_0xffcbf1=!0x0}={}){return(_0x3f93d5,_0x5a8d18,_0x1fbe51)=>{const _0x4432b5=_0x110d44['plugins'][_0x3c94('0x11')]('TrackChangesEditing');if(!_0x1fbe51[_0x3c94('0x1d')][_0x3c94('0xe')](_0x5a8d18[_0x3c94('0x20')],_0x3f93d5[_0x3c94('0xa')]))return;const _0x3c6ba5=_0x110d44[_0x3c94('0x1c')];for(const _0x4ae9c7 of _0x5a8d18[_0x3c94('0x20')]['getItems']()){if(!_0x4ae9c7['is'](_0x3c94('0x1b'),_0x3c94('0x24')))continue;const _0x508ffd=_0x3c94('0x18')==_0x5a8d18[_0x3c94('0x27')][_0x3c94('0x22')](':')[0x1]?_0x3c94('0x1'):_0x3c94('0x22'),_0x424a91=_0x1fbe51[_0x3c94('0x15')][_0x3c94('0x26')](_0x3c94('0x28'),{'class':_0x3c94('0x1f')+_0x508ffd}),_0xf4e582=_0x1fbe51[_0x3c94('0x0')][_0x3c94('0x1e')](_0x3c6ba5[_0x3c94('0x14')](_0x4ae9c7));_0xffcbf1&&_0x4432b5[_0x3c94('0x23')][_0x3c94('0x12')](_0x5a8d18[_0x3c94('0x27')])&&_0x1fbe51['writer'][_0x3c94('0x8')](_0x3c94('0x2'),_0x424a91),_0x1fbe51[_0x3c94('0x15')][_0x3c94('0xf')](_0xf4e582,_0x424a91),_0x1fbe51[_0x3c94('0x0')][_0x3c94('0x13')](_0x424a91,_0x5a8d18[_0x3c94('0x27')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5817=['registerDescriptionCallback','selection','format','plugins','isCollapsed','FORMAT_RESTRICTED_ENABLED','markInlineFormat','from','document','TrackChangesEditing','change','get','_descriptionFactory','commandParams','forceValue','model','locale','enableCommand','FORMAT_RESTRICTED_DISABLED','afterInit','editor','has','commandName','getRanges'];(function(_0x12f9aa,_0x58171a){const _0x3290a9=function(_0x5ed088){while(--_0x5ed088){_0x12f9aa['push'](_0x12f9aa['shift']());}};_0x3290a9(++_0x58171a);}(_0x5817,0xb3));const _0x3290=function(_0x12f9aa,_0x58171a){_0x12f9aa=_0x12f9aa-0x0;let _0x3290a9=_0x5817[_0x12f9aa];return _0x3290a9;};import{Plugin as _0x10286a}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x451ce1}from'./utils';import{getTranslation as _0x341125}from'../utils/common-translations';export default class gt extends _0x10286a{[_0x3290('0x8')](){const _0x442220=this[_0x3290('0x9')],_0x189b4e=_0x442220[_0x3290('0x4')],_0x2e2c71=_0x442220[_0x3290('0x5')];if(!_0x442220[_0x3290('0x10')][_0x3290('0xa')]('StandardEditingModeEditing'))return;const _0x1fd272=_0x442220[_0x3290('0x10')][_0x3290('0x0')](_0x3290('0x16')),_0x54b906='restrictedEditingException',_0x3a8e52=_0x442220['commands'][_0x3290('0x0')](_0x54b906);_0x1fd272[_0x3290('0x6')](_0x54b906,(_0x903b30,_0x4889f0={})=>{const _0x5c2d12=_0x189b4e[_0x3290('0x15')][_0x3290('0xe')];if(_0x5c2d12[_0x3290('0x11')])return void _0x903b30(_0x4889f0);const _0x23fa94=void 0x0!==_0x4889f0[_0x3290('0x3')]?_0x4889f0['forceValue']:!_0x3a8e52['value'];_0x189b4e[_0x3290('0x17')](()=>{const _0x6fc6df=Array[_0x3290('0x14')](_0x5c2d12[_0x3290('0xc')]());for(const _0xd890bc of _0x6fc6df){const _0x47b895=_0x23fa94?[_0xd890bc]:_0x451ce1(_0x54b906,_0xd890bc,_0x189b4e);for(const _0x4dd8f1 of _0x47b895)_0x1fd272[_0x3290('0x13')](_0x4dd8f1,{'commandName':_0x54b906,'commandParams':[{'forceValue':_0x23fa94}]});}});}),_0x1fd272[_0x3290('0x1')][_0x3290('0xd')](_0x4a63a8=>{const {data:_0xd3b236}=_0x4a63a8;if(_0xd3b236&&_0xd3b236[_0x3290('0xb')]==_0x54b906)return _0xd3b236[_0x3290('0x2')][0x0][_0x3290('0x3')]?{'type':'format','content':_0x341125(_0x2e2c71,_0x3290('0x12'))}:{'type':_0x3290('0xf'),'content':_0x341125(_0x2e2c71,_0x3290('0x7'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d17=['locale','markInlineFormat','has','toLowerCase','afterInit','getAncestors','block','commandParams','style.definitions','TrackChangesEditing','value','styleName','Style','markBlockFormat','change','DataSchema','_getStyleDefinition','model','includes','normalizeConfig','plugins','selection','getDefinitionsForView','inline','push','commands','modelElements','isBlock','*Remove\x20format:*\x20%0','classes','*Format:*\x20%0','getRanges','registerDescriptionCallback','createRangeOn','getAttribute','format','get','style:','isCollapsed','add','commandName','name','config','find','style','_getRangesWithClasses','editor','every','from'];(function(_0x6630b4,_0x3d1721){const _0x591e2b=function(_0x2c6e30){while(--_0x2c6e30){_0x6630b4['push'](_0x6630b4['shift']());}};_0x591e2b(++_0x3d1721);}(_0x3d17,0x7e));const _0x591e=function(_0x6630b4,_0x3d1721){_0x6630b4=_0x6630b4-0x0;let _0x591e2b=_0x3d17[_0x6630b4];return _0x591e2b;};import{Plugin as _0x46aa8d}from'ckeditor5/src/core';import{getTranslation as _0x534858}from'../utils/common-translations';export default class mt extends _0x46aa8d{[_0x591e('0x19')](){const _0x23054f=this[_0x591e('0x12')];if(!_0x23054f['plugins'][_0x591e('0x17')](_0x591e('0x21')))return;const _0x291ee9=_0x23054f[_0x591e('0x2e')][_0x591e('0x8')](_0x591e('0x10')),_0x137f42=_0x23054f[_0x591e('0x29')][_0x591e('0x8')](_0x591e('0x1e')),_0x29fa54=_0x23054f[_0x591e('0x15')],_0x1d659b=_0x23054f[_0x591e('0x29')][_0x591e('0x8')](_0x591e('0x24')),_0x3304b2=_0x23054f[_0x591e('0x29')][_0x591e('0x8')]('StyleUtils')[_0x591e('0x28')](_0x1d659b,_0x23054f[_0x591e('0xe')][_0x591e('0x8')](_0x591e('0x1d')));_0x137f42['enableCommand'](_0x591e('0x10'),(_0x1531d1,{styleName:_0x3cdb25})=>{const _0x251e2f=_0x23054f[_0x591e('0x26')]['document'][_0x591e('0x2a')],_0x570ad8=this['_getStyleDefinition'](_0x3cdb25,_0x3304b2);if(!_0x570ad8)return;if(!_0x291ee9['enabledStyles'][_0x591e('0x27')](_0x3cdb25))return;if(_0x251e2f[_0x591e('0xa')]&&!_0x570ad8[_0x591e('0x30')])return void _0x1531d1({'styleName':_0x3cdb25});const _0x201a63=!_0x291ee9[_0x591e('0x1f')]['includes'](_0x570ad8[_0x591e('0xd')]);if(_0x570ad8[_0x591e('0x30')]){const _0x554d59=function(_0xaa4997,_0x53b3ce){const _0x14aa03=new Set();for(const _0x1e0028 of _0xaa4997){const _0x46173f=_0x1e0028[_0x591e('0x1a')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x4af803 of _0x46173f)if(_0x53b3ce[_0x591e('0x27')](_0x4af803[_0x591e('0xd')])){_0x14aa03[_0x591e('0xb')](_0x4af803);break;}}return _0x14aa03;}(_0x251e2f['getSelectedBlocks'](),_0x570ad8[_0x591e('0x2f')]);_0x23054f[_0x591e('0x26')][_0x591e('0x23')](()=>{for(const _0x2870ad of _0x554d59)_0x137f42[_0x591e('0x22')](_0x2870ad,{'commandName':_0x591e('0x10'),'commandParams':[{'styleName':_0x3cdb25,'forceValue':_0x201a63}],'formatGroupId':_0x591e('0x9')+_0x3cdb25});});}else{let _0x25989c=Array[_0x591e('0x14')](_0x251e2f[_0x591e('0x3')]());if(!_0x201a63){const _0x19a532=Array[_0x591e('0x14')](_0x1d659b[_0x591e('0x2b')](_0x570ad8['element'],!0x1))[0x0][_0x591e('0x26')],_0x34feee=[];for(const _0x23e39f of _0x25989c){const _0x20ba58=this[_0x591e('0x11')](_0x23054f[_0x591e('0x26')],_0x23e39f,_0x570ad8[_0x591e('0x1')],_0x19a532);_0x34feee[_0x591e('0x2d')](..._0x20ba58);}_0x25989c=_0x34feee;}_0x23054f['model'][_0x591e('0x23')](()=>{for(const _0x1276bf of _0x25989c)_0x137f42[_0x591e('0x16')](_0x1276bf,{'commandName':'style','commandParams':[{'styleName':_0x3cdb25,'forceValue':_0x201a63}]});});}}),_0x137f42['_descriptionFactory'][_0x591e('0x4')](_0x43b4a4=>{const {data:_0x389c82}=_0x43b4a4;if(_0x389c82&&'style'===_0x389c82[_0x591e('0xc')])return _0x389c82[_0x591e('0x1c')][0x0]['forceValue']?{'type':'format','content':_0x534858(_0x29fa54,_0x591e('0x2'),_0x389c82[_0x591e('0x1c')][0x0][_0x591e('0x20')][_0x591e('0x18')]())}:{'type':_0x591e('0x7'),'content':_0x534858(_0x29fa54,_0x591e('0x0'),_0x389c82['commandParams'][0x0][_0x591e('0x20')][_0x591e('0x18')]())};});}[_0x591e('0x25')](_0x2b7f39,_0x2de281){let _0x43b288=_0x2de281[_0x591e('0x1b')][_0x591e('0xf')](_0x446b3c=>_0x446b3c[_0x591e('0xd')]===_0x2b7f39);return _0x43b288||(_0x43b288=_0x2de281[_0x591e('0x2c')][_0x591e('0xf')](_0x29eb2e=>_0x29eb2e[_0x591e('0xd')]===_0x2b7f39)),_0x43b288;}[_0x591e('0x11')](_0x5e7569,_0x243558,_0x1eb006,_0x1a0d8c){const _0x253741=[];for(const _0x5c378f of _0x243558['getItems']()){const _0x32a1ea=_0x5c378f[_0x591e('0x6')](_0x1a0d8c);_0x32a1ea&&(_0x1eb006[_0x591e('0x13')](_0x2525af=>_0x32a1ea[_0x591e('0x1')][_0x591e('0x27')](_0x2525af))&&_0x253741[_0x591e('0x2d')](_0x5e7569[_0x591e('0x5')](_0x5c378f)));}return _0x253741;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3f70=['getContainedElement','_setupColumnsRowsFixing','createPositionAt','isInContent','map','enqueueChange','_getSuggestionCoords','cell','subType','tableRow','removeTableRow','execute','last','enableCommand','minColumn','commands','toViewElement','$textProxy','editor','registerCustomCallback','deletion','downcastDispatcher','accept','_suggestionFactory','_getCoordsForCells','document','ELEMENT_TABLE_COLUMN_WITH_TEXT','colspan','*Remove:*\x20%0','TableUtils','isEqual','insertTableColumnLeft','insertTableRowAbove','discard','refresh','addRange','selectTableColumn','tableCell','root','start','fromRange','selectTableRow','add','findAncestor','ELEMENT_TABLE','writer','forceValue','locale','mapper','get','getItems','length','detach','getColumnIndexes','highest','registerDescriptionCallback','ELEMENT_TABLE_WITH_TEXT','change:data','left','rowspan','max','_descriptionFactory','data','insertTableColumnRight','createRangeIn','span','oldRange','order','_acceptFormatSuggestionCallbackFactory','hasAttribute','getChangedMarkers','createTableWalker','markMultiRangeDeletion','MAX_SAFE_INTEGER','ELEMENT_TABLE_ROW','addClass','TableEditing','getSuggestion','toLowerCase','filter','startsWith','plugins','rootName','tableColumn','_tablePostFixingSubtypes','MIN_SAFE_INTEGER','getRowIndexes','name','position','getCellLocation','insertion','some','isIntersectingWithRange','tablePaste','low','change','selection','_tableSuggestions','getSelectionAffectedTableCells','maxRow','registerPostFixer','$graveyard','model','above','getAttribute','addMarker:suggestion','ELEMENT_TABLE_COLUMN','from','removeTableColumn','min','insert','nodeAfter','table','values','differ','createRangeOn','getRanges','registerElementLabel','removeClass','substr','batch','type','ELEMENT_TABLE_ROW_WITH_TEXT','*Insert:*\x20%0','options','push','setSelection','join','first','end','markMultiRangeInsertion'];(function(_0x3e3fca,_0x3f7032){const _0x21abd8=function(_0x123555){while(--_0x123555){_0x3e3fca['push'](_0x3e3fca['shift']());}};_0x21abd8(++_0x3f7032);}(_0x3f70,0x169));const _0x21ab=function(_0x3e3fca,_0x3f7032){_0x3e3fca=_0x3e3fca-0x0;let _0x21abd8=_0x3f70[_0x3e3fca];return _0x21abd8;};import{Plugin as _0xe0ee24}from'ckeditor5/src/core';import{LiveRange as _0x5db462}from'ckeditor5/src/engine';import{setHighlightHandling as _0x1827bf}from'ckeditor5/src/widget';import{getTranslation as _0x540c9a}from'../utils/common-translations';export default class dt extends _0xe0ee24{constructor(_0x3293ba){super(_0x3293ba),this[_0x21ab('0x74')]=[_0x21ab('0x29'),'tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d0091=this['editor'],_0x4fc07d=_0x4d0091[_0x21ab('0x3')][_0x21ab('0x39')]['selection'];if(!_0x4d0091['plugins']['has'](_0x21ab('0x6c')))return;const _0x7a5755=_0x4d0091[_0x21ab('0x4f')],_0x318f64=_0x4d0091[_0x21ab('0x71')][_0x21ab('0x51')]('TrackChangesEditing'),_0x1e9938=_0x4d0091[_0x21ab('0x71')][_0x21ab('0x51')](_0x21ab('0x3d'));_0x318f64[_0x21ab('0x5d')][_0x21ab('0x12')](_0x21ab('0xd'),_0x4622eb=>_0x540c9a(_0x7a5755,_0x21ab('0x4c'),_0x4622eb)),this[_0x21ab('0x21')](),_0x318f64['enableCommand']('insertTable'),_0x318f64[_0x21ab('0x2d')](_0x21ab('0x49')),_0x318f64[_0x21ab('0x2d')](_0x21ab('0x44'));for(const _0x2c79ec of[_0x21ab('0x40'),'insertTableRowBelow']){const _0xb0335=_0x4d0091[_0x21ab('0x2f')][_0x21ab('0x51')](_0x2c79ec);_0x318f64[_0x21ab('0x2d')](_0x2c79ec,_0x2edc95=>{_0x4d0091[_0x21ab('0x3')][_0x21ab('0x7f')](_0x20acdf=>{_0x2edc95();const _0x390af8=_0x21ab('0x4')===_0xb0335[_0x21ab('0x63')],_0xa6f510=_0x1e9938[_0x21ab('0x82')](_0x4fc07d),_0x8aa2b7=_0x1e9938['getRowIndexes'](_0xa6f510),_0x20bbe1=_0x390af8?_0x8aa2b7[_0x21ab('0x1d')]-0x1:_0x8aa2b7[_0x21ab('0x2c')]+0x1,_0x12bc15=_0xa6f510[0x0][_0x21ab('0x4b')](_0x21ab('0xd')),_0x4ad98d=_0x1e9938[_0x21ab('0x67')](_0x12bc15,{'startRow':_0x20bbe1,'endRow':_0x20bbe1}),_0x336e66=Array[_0x21ab('0x8')](_0x4ad98d)[_0x21ab('0x24')](_0x50634e=>_0x20acdf[_0x21ab('0x10')](_0x50634e['cell']));_0x318f64[_0x21ab('0x1f')](_0x336e66,_0x21ab('0x29'));});});}for(const _0x40f44a of[_0x21ab('0x3f'),_0x21ab('0x5f')]){const _0x54b117=_0x4d0091[_0x21ab('0x2f')][_0x21ab('0x51')](_0x40f44a);_0x318f64[_0x21ab('0x2d')](_0x40f44a,_0x3cff6d=>{_0x4d0091[_0x21ab('0x3')][_0x21ab('0x7f')](_0x1beb45=>{_0x3cff6d();const _0x1ffa5d=_0x21ab('0x5a')===_0x54b117[_0x21ab('0x63')],_0x3674e5=_0x1e9938[_0x21ab('0x82')](_0x4fc07d),_0x31caad=_0x1e9938['getColumnIndexes'](_0x3674e5),_0x5abf78=_0x1ffa5d?_0x31caad[_0x21ab('0x1d')]-0x1:_0x31caad['last']+0x1,_0x148fd2=_0x3674e5[0x0][_0x21ab('0x4b')](_0x21ab('0xd')),_0x2d9ff4=_0x1e9938[_0x21ab('0x67')](_0x148fd2,{'startRow':0x0,'column':_0x5abf78,'includeAllSlots':!0x1}),_0x553390=Array[_0x21ab('0x8')](_0x2d9ff4)[_0x21ab('0x24')](_0x4e11d7=>_0x1beb45[_0x21ab('0x10')](_0x4e11d7[_0x21ab('0x27')]));_0x318f64[_0x21ab('0x1f')](_0x553390,_0x21ab('0x73'));});});}for(const _0x1a6512 of[_0x21ab('0x2a'),'removeTableColumn']){const _0x4cb467=_0x1a6512[_0x21ab('0x14')](0xb),_0x40c111=_0x4cb467[_0x21ab('0x6e')](),_0x3f840f=_0x40c111[_0x21ab('0x14')](0x0,0x3)+_0x21ab('0x61'),_0x1e1dc3=_0x21ab('0xd')+_0x4cb467,_0x266090='min'+_0x4cb467,_0x1844e6='max'+_0x4cb467;_0x318f64[_0x21ab('0x2d')](_0x1a6512,()=>{_0x4d0091['model'][_0x21ab('0x7f')](_0x1799d0=>{const _0x5b9938=_0x1e9938[_0x21ab('0x82')](_0x4fc07d),_0x70aded=_0x5b9938[0x0][_0x21ab('0x4b')](_0x21ab('0xd'));let _0x1c348e;if(_0x21ab('0x2a')==_0x1a6512){const _0x2c4b10=_0x1e9938[_0x21ab('0x76')](_0x5b9938);_0x1c348e={'startRow':_0x2c4b10[_0x21ab('0x1d')],'endRow':_0x2c4b10[_0x21ab('0x2c')],'includeAllSlots':!0x0};}else{const _0x22f445=_0x1e9938[_0x21ab('0x55')](_0x5b9938);_0x1c348e={'startColumn':_0x22f445[_0x21ab('0x1d')],'endColumn':_0x22f445['last'],'includeAllSlots':!0x0};}const _0x280a2e=_0x1e9938[_0x21ab('0x67')](_0x70aded,_0x1c348e),_0xa7b661=Array[_0x21ab('0x8')](_0x280a2e)[_0x21ab('0x24')](({cell:_0x1b4190})=>_0x1b4190),_0x5678c4=se(_0xa7b661['filter'](_0x254997=>_0x254997[_0x21ab('0x65')](_0x3f840f))),_0x13132a=se(_0xa7b661[_0x21ab('0x6f')](_0x179399=>!_0x179399['hasAttribute'](_0x3f840f)))['map'](_0x21ab24=>_0x1799d0[_0x21ab('0x10')](_0x21ab24)),_0x340030=_0x318f64[_0x21ab('0x68')](_0x13132a,_0x1e1dc3);if(_0x340030&&(_0x21ab('0x29')==_0x340030[_0x21ab('0x28')]||'tableColumn'==_0x340030[_0x21ab('0x28')])){const _0x347cc5=this['_getSuggestionCoords'](_0x340030);for(const _0x4f3777 of _0x5678c4){const _0x370c43=_0x1799d0['createRangeOn'](_0x4f3777),_0x558be7=_0x1e9938[_0x21ab('0x79')](_0x4f3777),_0x52d142=_0x4f3777[_0x21ab('0x5')](_0x3f840f)-0x1,_0x373558=_0x347cc5[_0x266090],_0x2421f5=_0x347cc5[_0x1844e6];_0x373558<=_0x558be7[_0x40c111]&&_0x558be7[_0x40c111]+_0x52d142<=_0x2421f5&&_0x340030[_0x21ab('0x43')](_0x370c43);}}});});}function _0x5bcbcc(_0x2135c2){const _0x5ac10a=Array[_0x21ab('0x8')](_0x4fc07d['getRanges']())[_0x21ab('0x24')](_0x4cdc7d=>_0x5db462[_0x21ab('0x48')](_0x4cdc7d));_0x4d0091[_0x21ab('0x3')][_0x21ab('0x7f')](_0x34cd01=>{const _0x4841ae=_0x34cd01[_0x21ab('0x15')];_0x2135c2=_0x2135c2['filter'](_0x364595=>_0x21ab('0x2')!=_0x364595[_0x21ab('0x46')][_0x21ab('0x72')]),_0x34cd01['setSelection'](_0x2135c2),_0x4d0091[_0x21ab('0x2f')]['get']('removeTableRow')[_0x21ab('0x42')](),_0x4d0091[_0x21ab('0x2b')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d0091[_0x21ab('0x3')][_0x21ab('0x25')](()=>{_0x4d0091[_0x21ab('0x3')][_0x21ab('0x25')](_0x4841ae,_0x122e08=>{const _0x139723=_0x5ac10a[_0x21ab('0x6f')](_0xab0ccc=>_0x21ab('0x2')!=_0xab0ccc[_0x21ab('0x46')][_0x21ab('0x72')]);_0x139723[_0x21ab('0x53')]>0x0&&_0x122e08[_0x21ab('0x1b')](_0x139723);for(const _0x1f09ad of _0x5ac10a)_0x1f09ad['detach']();});});});}function _0x566e7c(_0x47e30d){_0x4d0091[_0x21ab('0x3')][_0x21ab('0x7f')](_0x426c54=>{const _0x47c370=Array[_0x21ab('0x8')](_0x4fc07d[_0x21ab('0x11')]())[_0x21ab('0x24')](_0x2aa945=>_0x5db462[_0x21ab('0x48')](_0x2aa945)),_0x33b98b=[];for(const _0x23db96 of _0x47e30d)for(const _0x3bc10d of _0x23db96[_0x21ab('0x52')]({'shallow':!0x0}))_0x33b98b['push'](_0x3bc10d);for(const _0x3a4ee4 of _0x33b98b)_0x21ab('0x2')!=_0x3a4ee4[_0x21ab('0x46')][_0x21ab('0x72')]&&(_0x426c54[_0x21ab('0x1b')](_0x426c54[_0x21ab('0x22')](_0x3a4ee4,0x0)),_0x4d0091['commands'][_0x21ab('0x51')](_0x21ab('0x9'))[_0x21ab('0x42')](),_0x4d0091['execute'](_0x21ab('0x9'),{'forceDefaultExecution':!0x0}));const _0x1dd672=_0x47c370[_0x21ab('0x6f')](_0x1e47a9=>_0x21ab('0x2')!=_0x1e47a9[_0x21ab('0x46')][_0x21ab('0x72')]);_0x1dd672[_0x21ab('0x53')]>0x0&&_0x426c54['setSelection'](_0x1dd672);for(const _0x658be2 of _0x47c370)_0x658be2[_0x21ab('0x54')]();});}function _0x411ed2(_0x4d9c25,_0x355da4){return _0x355da4['every'](_0x11d177=>_0x4d9c25[_0x21ab('0x7b')](_0x531406=>_0x531406[_0x21ab('0x1e')][_0x21ab('0x3e')](_0x11d177[_0x21ab('0x47')])||_0x11d177[_0x21ab('0x1e')][_0x21ab('0x3e')](_0x531406['start'])));}function _0x5601a2(_0x2de218,_0x72a868){return _0x2de218[_0x21ab('0x7b')](_0xba53a3=>_0x72a868[_0x21ab('0x7b')](_0x17e790=>_0xba53a3[_0x21ab('0x1e')]['isTouching'](_0x17e790[_0x21ab('0x47')])));}_0x4d0091[_0x21ab('0x5e')][_0x21ab('0x35')]['on'](_0x21ab('0x6'),(_0x1c50e1,_0x385a72,_0x10e2f0)=>{if(!_0x10e2f0[_0x21ab('0x19')]['showSuggestionHighlights'])return;const _0x39b858=_0x385a72['item'];if(!_0x39b858)return;const _0x3deb69=_0x10e2f0[_0x21ab('0x50')][_0x21ab('0x30')](_0x39b858);function _0x1ae21a(_0x241006){return Array['isArray'](_0x241006)?_0x241006:[_0x241006];}_0x3deb69&&_0x21ab('0x45')===_0x39b858[_0x21ab('0x77')]&&_0x1827bf(_0x3deb69,_0x10e2f0[_0x21ab('0x4d')],(_0xe88db2,_0x9847c4,_0x21560f)=>_0x21560f[_0x21ab('0x6b')](_0x1ae21a(_0x9847c4['classes']),_0xe88db2),(_0x5e44f9,_0x1a3f54,_0x4465a8)=>_0x4465a8[_0x21ab('0x13')](_0x1ae21a(_0x1a3f54['classes']),_0x5e44f9));},{'priority':_0x21ab('0x56')}),_0x318f64[_0x21ab('0x5d')]['registerDescriptionCallback'](_0x5e38b5=>{if('insertion'!=_0x5e38b5[_0x21ab('0x16')]&&_0x21ab('0x34')!=_0x5e38b5[_0x21ab('0x16')])return;const _0xf44fdd=_0x5e38b5[_0x21ab('0x20')]();if(null!=_0xf44fdd&&_0xf44fdd['is']('element',_0x21ab('0xd'))){if('insertion'==_0x5e38b5[_0x21ab('0x16')]){const _0x2759b1=_0x5e38b5[_0x21ab('0x52')]()['filter'](_0x339288=>_0x339288['is'](_0x21ab('0x31')))[_0x21ab('0x24')](_0x23cfbb=>_0x23cfbb['data']);if(_0x2759b1[_0x21ab('0x53')])return{'type':_0x21ab('0x7a'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x18'),_0x540c9a(_0x7a5755,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2759b1[_0x21ab('0x1c')]('\x20')+'\x22'))};}if(_0x21ab('0x34')==_0x5e38b5[_0x21ab('0x16')]){const _0x2efeb4=_0x5e38b5[_0x21ab('0x52')]()[_0x21ab('0x6f')](_0x8069a2=>_0x8069a2['is'](_0x21ab('0x31')))[_0x21ab('0x24')](_0x3bc2b7=>_0x3bc2b7[_0x21ab('0x5e')]);if(_0x2efeb4[_0x21ab('0x53')])return{'type':_0x21ab('0x34'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x3c'),_0x540c9a(_0x7a5755,_0x21ab('0x58'),'\x22'+_0x2efeb4['join']('\x20')+'\x22'))};}}}),_0x318f64[_0x21ab('0x5d')][_0x21ab('0x57')](_0x6efc6a=>{if(_0x21ab('0x29')==_0x6efc6a[_0x21ab('0x28')]){const _0x22398e=_0x6efc6a[_0x21ab('0x52')]()[_0x21ab('0x6f')](_0x5d3999=>_0x5d3999['is']('$textProxy'))['map'](_0x43b7b9=>_0x43b7b9['data']),_0x5e0129=this[_0x21ab('0x26')](_0x6efc6a),_0x1d20f3=_0x5e0129[_0x21ab('0x0')]-_0x5e0129['minRow']+0x1;if('insertion'==_0x6efc6a[_0x21ab('0x16')])return _0x22398e[_0x21ab('0x53')]?{'type':'insertion','content':_0x540c9a(_0x7a5755,_0x21ab('0x18'),_0x540c9a(_0x7a5755,_0x21ab('0x17'),[_0x1d20f3,'\x22'+_0x22398e[_0x21ab('0x1c')]('\x20')+'\x22']))}:{'type':_0x21ab('0x7a'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x18'),_0x540c9a(_0x7a5755,_0x21ab('0x6a'),_0x1d20f3))};if(_0x21ab('0x34')==_0x6efc6a['type'])return _0x22398e[_0x21ab('0x53')]?{'type':'deletion','content':_0x540c9a(_0x7a5755,_0x21ab('0x3c'),_0x540c9a(_0x7a5755,_0x21ab('0x17'),[_0x1d20f3,'\x22'+_0x22398e[_0x21ab('0x1c')]('\x20')+'\x22']))}:{'type':_0x21ab('0x34'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x3c'),_0x540c9a(_0x7a5755,_0x21ab('0x6a'),_0x1d20f3))};}if('tableColumn'==_0x6efc6a[_0x21ab('0x28')]){const _0x3b410f=_0x6efc6a[_0x21ab('0x52')]()['filter'](_0x34b5e1=>_0x34b5e1['is']('$textProxy'))['map'](_0xa1b48d=>_0xa1b48d[_0x21ab('0x5e')]),_0x8b2a5b=this['_getSuggestionCoords'](_0x6efc6a),_0x39c6f4=_0x8b2a5b['maxColumn']-_0x8b2a5b[_0x21ab('0x2e')]+0x1;if(_0x21ab('0x7a')==_0x6efc6a['type'])return _0x3b410f[_0x21ab('0x53')]?{'type':_0x21ab('0x7a'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x18'),_0x540c9a(_0x7a5755,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39c6f4,'\x22'+_0x3b410f[_0x21ab('0x1c')]('\x20')+'\x22']))}:{'type':_0x21ab('0x7a'),'content':_0x540c9a(_0x7a5755,_0x21ab('0x18'),_0x540c9a(_0x7a5755,_0x21ab('0x7'),_0x39c6f4))};if(_0x21ab('0x34')==_0x6efc6a[_0x21ab('0x16')])return _0x3b410f[_0x21ab('0x53')]?{'type':_0x21ab('0x34'),'content':_0x540c9a(_0x7a5755,'*Remove:*\x20%0',_0x540c9a(_0x7a5755,_0x21ab('0x3a'),[_0x39c6f4,'\x22'+_0x3b410f['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x540c9a(_0x7a5755,_0x21ab('0x3c'),_0x540c9a(_0x7a5755,_0x21ab('0x7'),_0x39c6f4))};}}),_0x318f64[_0x21ab('0x37')][_0x21ab('0x33')]('insertion',_0x21ab('0x29'),_0x21ab('0x41'),_0x5bcbcc),_0x318f64[_0x21ab('0x37')][_0x21ab('0x33')](_0x21ab('0x34'),_0x21ab('0x29'),'accept',_0x5bcbcc),_0x318f64[_0x21ab('0x37')][_0x21ab('0x33')](_0x21ab('0x7a'),_0x21ab('0x73'),_0x21ab('0x41'),_0x566e7c),_0x318f64[_0x21ab('0x37')]['registerCustomCallback']('deletion','tableColumn',_0x21ab('0x36'),_0x566e7c),_0x318f64['_suggestionFactory']['registerCustomCallback'](_0x21ab('0x7a'),'tableColumn',_0x21ab('0x1c'),_0x411ed2),_0x318f64[_0x21ab('0x37')][_0x21ab('0x33')](_0x21ab('0x34'),_0x21ab('0x73'),_0x21ab('0x1c'),_0x411ed2),_0x318f64['_suggestionFactory'][_0x21ab('0x33')](_0x21ab('0x7a'),_0x21ab('0x29'),'join',_0x5601a2),_0x318f64['_suggestionFactory'][_0x21ab('0x33')](_0x21ab('0x34'),'tableRow',_0x21ab('0x1c'),_0x5601a2);}[_0x21ab('0x64')](){const _0x867adf=this[_0x21ab('0x32')],_0x2abe65=_0x867adf[_0x21ab('0x3')][_0x21ab('0x39')][_0x21ab('0x80')];return(_0x32bee2,_0x41475e)=>{_0x867adf[_0x21ab('0x3')]['change'](_0x576d27=>{const {commandName:_0x1bf538,commandParams:_0x40d8a9}=_0x41475e;let _0x3098e9=_0x32bee2[0x0]['end']['nodeBefore'];_0x40d8a9&&_0x40d8a9[0x0]&&!0x1===_0x40d8a9[0x0][_0x21ab('0x4e')]&&(_0x3098e9=_0x32bee2[0x0]['start'][_0x21ab('0xc')]);const _0xa18436=_0x576d27[_0x21ab('0x60')](_0x3098e9);if('$graveyard'==_0xa18436[_0x21ab('0x46')]['rootName'])return;const _0x25153b=Array[_0x21ab('0x8')](_0x2abe65['getRanges']())[_0x21ab('0x24')](_0x565252=>_0x5db462[_0x21ab('0x48')](_0x565252));_0x576d27[_0x21ab('0x1b')](_0xa18436),_0x867adf['commands']['get'](_0x1bf538)[_0x21ab('0x42')](),_0x40d8a9[_0x21ab('0x1a')]({'forceDefaultExecution':!0x0}),_0x867adf[_0x21ab('0x2b')](_0x1bf538,..._0x40d8a9);const _0x4f8163=_0x25153b[_0x21ab('0x6f')](_0x15b6f2=>_0x21ab('0x2')!=_0x15b6f2['root']['rootName']);_0x4f8163[_0x21ab('0x53')]>0x0&&_0x576d27[_0x21ab('0x1b')](_0x4f8163);for(const _0x1c0560 of _0x25153b)_0x1c0560[_0x21ab('0x54')]();});};}['_getCoordsForCells'](_0x2f1d3b){const _0x5ae1e6=this[_0x21ab('0x32')][_0x21ab('0x71')]['get']('TableUtils');let _0x69d9cc=Number[_0x21ab('0x69')],_0x39cb99=Number[_0x21ab('0x75')],_0x4fe3a5=Number['MAX_SAFE_INTEGER'],_0x1a3243=Number['MIN_SAFE_INTEGER'];for(const _0x32711c of _0x2f1d3b){if(_0x21ab('0x2')==_0x32711c[_0x21ab('0x46')][_0x21ab('0x72')])continue;const {row:_0x11e4a3,column:_0x1a0d58}=_0x5ae1e6[_0x21ab('0x79')](_0x32711c),_0x329b7d=_0x32711c[_0x21ab('0x65')]('rowspan')?_0x32711c[_0x21ab('0x5')](_0x21ab('0x5b'))-0x1:0x0,_0x37253e=_0x32711c[_0x21ab('0x65')]('colspan')?_0x32711c[_0x21ab('0x5')](_0x21ab('0x3b'))-0x1:0x0;_0x69d9cc=_0x11e4a3<_0x69d9cc?_0x11e4a3:_0x69d9cc,_0x39cb99=_0x11e4a3+_0x329b7d>_0x39cb99?_0x11e4a3+_0x329b7d:_0x39cb99,_0x4fe3a5=_0x1a0d58<_0x4fe3a5?_0x1a0d58:_0x4fe3a5,_0x1a3243=_0x1a0d58+_0x37253e>_0x1a3243?_0x1a0d58+_0x37253e:_0x1a3243;}return{'minRow':_0x69d9cc,'maxRow':_0x39cb99,'minColumn':_0x4fe3a5,'maxColumn':_0x1a3243};}['_setupColumnsRowsFixing'](){const _0xe1dd92=this[_0x21ab('0x32')],_0x4f11d0=_0xe1dd92[_0x21ab('0x71')][_0x21ab('0x51')]('TrackChangesEditing'),_0x32659b=_0xe1dd92[_0x21ab('0x71')][_0x21ab('0x51')]('TableUtils');_0xe1dd92['model'][_0x21ab('0x39')]['on'](_0x21ab('0x59'),()=>{const _0x386b2e=Array[_0x21ab('0x8')](_0xe1dd92[_0x21ab('0x3')][_0x21ab('0x39')]['differ'][_0x21ab('0x66')]());for(const {name:_0x1e03e7,data:_0x52cab1}of _0x386b2e){const {group:_0xf9a640,id:_0x3466f7,subType:_0x5469ff}=_0x4f11d0['_splitMarkerName'](_0x1e03e7);if('suggestion'!=_0xf9a640)continue;if(null!=_0x52cab1[_0x21ab('0x62')])continue;const _0x14cbec=_0x4f11d0[_0x21ab('0x6d')](_0x3466f7);this[_0x21ab('0x74')]['includes'](_0x5469ff)&&this[_0x21ab('0x81')][_0x21ab('0x4a')](_0x14cbec);}},{'priority':_0x21ab('0x7e')});const _0x2e6884=(_0x4e8b3a,_0x296a29)=>{let _0x425ba6=!0x1;const _0x3356a5=_0x296a29[_0x21ab('0x10')](_0x4e8b3a),_0x55ca39=_0x4e8b3a[_0x21ab('0x4b')](_0x21ab('0xd')),_0x375033=_0x32659b[_0x21ab('0x79')](_0x4e8b3a);for(const _0xddad70 of this[_0x21ab('0x81')]){const _0x290f4f=_0xddad70[_0x21ab('0x28')],_0x35c8a9=_0x290f4f[_0x21ab('0x70')](_0x21ab('0x7d')),_0x4457cb=_0x290f4f[_0x21ab('0x14')](_0x35c8a9?0xa:0x5),_0x3417f0=_0x4457cb[_0x21ab('0x6e')](),_0x36ccf5=_0x3417f0[_0x21ab('0x14')](0x0,0x3)+_0x21ab('0x61'),_0x11d3b8=_0x21ab('0xa')+_0x4457cb,_0x21639b=_0x21ab('0x5c')+_0x4457cb;if(!_0xddad70[_0x21ab('0x23')])continue;if(_0x55ca39!=_0xddad70['getFirstRange']()['start'][_0x21ab('0x4b')](_0x21ab('0xd')))continue;if(_0xddad70[_0x21ab('0x7c')](_0x3356a5))continue;const _0x1e93ec=_0x4e8b3a[_0x21ab('0x65')](_0x36ccf5)?_0x4e8b3a[_0x21ab('0x5')](_0x36ccf5)-0x1:0x0,_0x173766=this[_0x21ab('0x26')](_0xddad70),_0x30723=_0x173766[_0x11d3b8],_0x5890f0=_0x173766[_0x21639b];_0x30723<=_0x375033[_0x3417f0]&&_0x375033[_0x3417f0]+_0x1e93ec<=_0x5890f0&&(_0xddad70[_0x21ab('0x43')](_0x3356a5),_0x425ba6=!0x0);}return _0x425ba6;};_0xe1dd92[_0x21ab('0x3')][_0x21ab('0x39')][_0x21ab('0x1')](_0x5db35c=>{let _0x5934c9=!0x1;for(const _0x2dff1f of _0xe1dd92[_0x21ab('0x3')][_0x21ab('0x39')][_0x21ab('0xf')]['getChanges']())if(_0x21ab('0xb')==_0x2dff1f[_0x21ab('0x16')]){if(_0x21ab('0x29')==_0x2dff1f[_0x21ab('0x77')])for(const _0x26eab5 of _0x2dff1f[_0x21ab('0x78')]['nodeAfter']['getChildren']())_0x5934c9=_0x5934c9||_0x2e6884(_0x26eab5,_0x5db35c);else _0x21ab('0x45')==_0x2dff1f[_0x21ab('0x77')]&&(_0x5934c9=_0x5934c9||_0x2e6884(_0x2dff1f[_0x21ab('0x78')][_0x21ab('0xc')],_0x5db35c));}return _0x5934c9;});}['_getSuggestionCoords'](_0x2511cb){return this[_0x21ab('0x38')](_0x2511cb['getRanges']()[_0x21ab('0x24')](_0x2bb4ae=>_0x2bb4ae[_0x21ab('0x47')][_0x21ab('0xc')]));}}function se(_0x375e2b){return Array[_0x21ab('0x8')](new Set(_0x375e2b)[_0x21ab('0xe')]());}
|
|
23
|
+
const _0x432d=['tableRow','push','insertTableRowAbove','substr','values','change:data','low','removeTableColumn','isEqual','isTouching','selectTableRow','last','plugins','data','MAX_SAFE_INTEGER','insert','model','accept','_descriptionFactory','$graveyard','change','$textProxy','insertTableColumnRight','from','getContainedElement','order','isIntersectingWithRange','addRange','position','toViewElement','insertTable','max','map','length','oldRange','*Insert:*\x20%0','has','maxColumn','element','item','includes','cell','left','mapper','suggestion','startsWith','getChangedMarkers','some','insertTableColumnLeft','getColumnIndexes','above','tableCell','createRangeOn','start','downcastDispatcher','getCellLocation','getAttribute','_acceptFormatSuggestionCallbackFactory','registerPostFixer','batch','name','createTableWalker','nodeAfter','writer','TrackChangesEditing','getRanges','_splitMarkerName','tablePaste','registerDescriptionCallback','hasAttribute','_getCoordsForCells','_tableSuggestions','colspan','commands','getItems','MIN_SAFE_INTEGER','_getSuggestionCoords','get','TableUtils','_tablePostFixingSubtypes','execute','markMultiRangeInsertion','deletion','ELEMENT_TABLE_WITH_TEXT','enqueueChange','ELEMENT_TABLE_ROW_WITH_TEXT','findAncestor','minRow','options','first','getChildren','registerCustomCallback','getSelectionAffectedTableCells','differ','rowspan','isInContent','filter','selection','afterInit','root','span','addClass','fromRange','selectTableColumn','nodeBefore','type','getChanges','getFirstRange','createRangeIn','tableColumn','ELEMENT_TABLE_COLUMN_WITH_TEXT','table','removeClass','toLowerCase','end','join','subType','insertion','_setupColumnsRowsFixing','document','every','ELEMENT_TABLE','rootName','minColumn','detach','refresh','enableCommand','showSuggestionHighlights','discard','insertTableRowBelow','getSuggestion','setSelection','*Remove:*\x20%0','getRowIndexes','editor','removeTableRow','_suggestionFactory','classes'];(function(_0x5b7c26,_0x432df5){const _0xe964e8=function(_0x48afda){while(--_0x48afda){_0x5b7c26['push'](_0x5b7c26['shift']());}};_0xe964e8(++_0x432df5);}(_0x432d,0x1e4));const _0xe964=function(_0x5b7c26,_0x432df5){_0x5b7c26=_0x5b7c26-0x0;let _0xe964e8=_0x432d[_0x5b7c26];return _0xe964e8;};import{Plugin as _0x192899}from'ckeditor5/src/core';import{LiveRange as _0x27e648}from'ckeditor5/src/engine';import{setHighlightHandling as _0x55d9ce}from'ckeditor5/src/widget';import{getTranslation as _0x29a874}from'../utils/common-translations';export default class dt extends _0x192899{constructor(_0x2905be){super(_0x2905be),this[_0xe964('0x9')]=[_0xe964('0x44'),_0xe964('0x27')],this[_0xe964('0x1')]=new Set();}[_0xe964('0x1c')](){const _0x38f93d=this[_0xe964('0x40')],_0x5bb59b=_0x38f93d['model'][_0xe964('0x31')]['selection'];if(!_0x38f93d[_0xe964('0x50')][_0xe964('0x68')]('TableEditing'))return;const _0x1e205f=_0x38f93d['locale'],_0x32a431=_0x38f93d[_0xe964('0x50')]['get'](_0xe964('0x84')),_0x4c8a91=_0x38f93d[_0xe964('0x50')][_0xe964('0x7')](_0xe964('0x8'));_0x32a431[_0xe964('0x56')]['registerElementLabel'](_0xe964('0x29'),_0x61c6ae=>_0x29a874(_0x1e205f,_0xe964('0x33'),_0x61c6ae)),this[_0xe964('0x30')](),_0x32a431[_0xe964('0x38')](_0xe964('0x62')),_0x32a431['enableCommand'](_0xe964('0x4e')),_0x32a431['enableCommand'](_0xe964('0x21'));for(const _0x59d987 of[_0xe964('0x46'),_0xe964('0x3b')]){const _0x30fd63=_0x38f93d[_0xe964('0x3')]['get'](_0x59d987);_0x32a431[_0xe964('0x38')](_0x59d987,_0x108d5e=>{_0x38f93d['model']['change'](_0x509185=>{_0x108d5e();const _0x31c268=_0xe964('0x76')===_0x30fd63['order'],_0x262e81=_0x4c8a91[_0xe964('0x16')](_0x5bb59b),_0xa581e9=_0x4c8a91[_0xe964('0x3f')](_0x262e81),_0x322f9a=_0x31c268?_0xa581e9[_0xe964('0x13')]-0x1:_0xa581e9[_0xe964('0x4f')]+0x1,_0x3df36f=_0x262e81[0x0]['findAncestor'](_0xe964('0x29')),_0x5f398d=_0x4c8a91[_0xe964('0x81')](_0x3df36f,{'startRow':_0x322f9a,'endRow':_0x322f9a}),_0x2710d8=Array[_0xe964('0x5b')](_0x5f398d)['map'](_0x1dab0c=>_0x509185[_0xe964('0x78')](_0x1dab0c['cell']));_0x32a431[_0xe964('0xb')](_0x2710d8,_0xe964('0x44'));});});}for(const _0x540911 of[_0xe964('0x74'),_0xe964('0x5a')]){const _0x2b51cd=_0x38f93d[_0xe964('0x3')][_0xe964('0x7')](_0x540911);_0x32a431[_0xe964('0x38')](_0x540911,_0xeae73f=>{_0x38f93d[_0xe964('0x54')][_0xe964('0x58')](_0x209727=>{_0xeae73f();const _0x2f2c9a=_0xe964('0x6e')===_0x2b51cd[_0xe964('0x5d')],_0x2e88a1=_0x4c8a91[_0xe964('0x16')](_0x5bb59b),_0x10fda0=_0x4c8a91[_0xe964('0x75')](_0x2e88a1),_0x14e24c=_0x2f2c9a?_0x10fda0[_0xe964('0x13')]-0x1:_0x10fda0[_0xe964('0x4f')]+0x1,_0x2c2d52=_0x2e88a1[0x0]['findAncestor'](_0xe964('0x29')),_0x379589=_0x4c8a91[_0xe964('0x81')](_0x2c2d52,{'startRow':0x0,'column':_0x14e24c,'includeAllSlots':!0x1}),_0x230d79=Array[_0xe964('0x5b')](_0x379589)[_0xe964('0x64')](_0x3ade0d=>_0x209727[_0xe964('0x78')](_0x3ade0d[_0xe964('0x6d')]));_0x32a431[_0xe964('0xb')](_0x230d79,_0xe964('0x27'));});});}for(const _0x356f53 of['removeTableRow',_0xe964('0x4b')]){const _0xc55eab=_0x356f53[_0xe964('0x47')](0xb),_0x3f1090=_0xc55eab['toLowerCase'](),_0x4e7218=_0x3f1090['substr'](0x0,0x3)+_0xe964('0x1e'),_0x5576ce=_0xe964('0x29')+_0xc55eab,_0xb231f8='min'+_0xc55eab,_0x483a85=_0xe964('0x63')+_0xc55eab;_0x32a431[_0xe964('0x38')](_0x356f53,()=>{_0x38f93d[_0xe964('0x54')][_0xe964('0x58')](_0x2dd5f8=>{const _0x958299=_0x4c8a91['getSelectionAffectedTableCells'](_0x5bb59b),_0x4524bb=_0x958299[0x0][_0xe964('0x10')]('table');let _0x993bae;if(_0xe964('0x41')==_0x356f53){const _0x2cb3ae=_0x4c8a91[_0xe964('0x3f')](_0x958299);_0x993bae={'startRow':_0x2cb3ae[_0xe964('0x13')],'endRow':_0x2cb3ae['last'],'includeAllSlots':!0x0};}else{const _0x4283f2=_0x4c8a91[_0xe964('0x75')](_0x958299);_0x993bae={'startColumn':_0x4283f2['first'],'endColumn':_0x4283f2[_0xe964('0x4f')],'includeAllSlots':!0x0};}const _0x40b83b=_0x4c8a91['createTableWalker'](_0x4524bb,_0x993bae),_0x3dfdfc=Array[_0xe964('0x5b')](_0x40b83b)['map'](({cell:_0x3315bb})=>_0x3315bb),_0x126ace=se(_0x3dfdfc['filter'](_0x1cd53c=>_0x1cd53c[_0xe964('0x89')](_0x4e7218))),_0x12815a=se(_0x3dfdfc[_0xe964('0x1a')](_0x4c56c1=>!_0x4c56c1[_0xe964('0x89')](_0x4e7218)))[_0xe964('0x64')](_0x1958b7=>_0x2dd5f8[_0xe964('0x78')](_0x1958b7)),_0x4c0b4c=_0x32a431['markMultiRangeDeletion'](_0x12815a,_0x5576ce);if(_0x4c0b4c&&(_0xe964('0x44')==_0x4c0b4c['subType']||_0xe964('0x27')==_0x4c0b4c[_0xe964('0x2e')])){const _0x35ba6e=this[_0xe964('0x6')](_0x4c0b4c);for(const _0x4f0e57 of _0x126ace){const _0xcec8ca=_0x2dd5f8['createRangeOn'](_0x4f0e57),_0x51e766=_0x4c8a91[_0xe964('0x7b')](_0x4f0e57),_0x32779b=_0x4f0e57['getAttribute'](_0x4e7218)-0x1,_0x2d44f2=_0x35ba6e[_0xb231f8],_0x208a6e=_0x35ba6e[_0x483a85];_0x2d44f2<=_0x51e766[_0x3f1090]&&_0x51e766[_0x3f1090]+_0x32779b<=_0x208a6e&&_0x4c0b4c[_0xe964('0x5f')](_0xcec8ca);}}});});}function _0xafc5bb(_0x4e390c){const _0x228c39=Array[_0xe964('0x5b')](_0x5bb59b[_0xe964('0x85')]())[_0xe964('0x64')](_0x240819=>_0x27e648[_0xe964('0x20')](_0x240819));_0x38f93d[_0xe964('0x54')][_0xe964('0x58')](_0x551c60=>{const _0x100f9e=_0x551c60[_0xe964('0x7f')];_0x4e390c=_0x4e390c[_0xe964('0x1a')](_0x175533=>_0xe964('0x57')!=_0x175533['root']['rootName']),_0x551c60[_0xe964('0x3d')](_0x4e390c),_0x38f93d[_0xe964('0x3')][_0xe964('0x7')](_0xe964('0x41'))[_0xe964('0x37')](),_0x38f93d[_0xe964('0xa')](_0xe964('0x41'),{'forceDefaultExecution':!0x0}),_0x38f93d[_0xe964('0x54')][_0xe964('0xe')](()=>{_0x38f93d[_0xe964('0x54')][_0xe964('0xe')](_0x100f9e,_0x299228=>{const _0x17809b=_0x228c39[_0xe964('0x1a')](_0x28b2d7=>_0xe964('0x57')!=_0x28b2d7[_0xe964('0x1d')]['rootName']);_0x17809b[_0xe964('0x65')]>0x0&&_0x299228[_0xe964('0x3d')](_0x17809b);for(const _0x2682ce of _0x228c39)_0x2682ce[_0xe964('0x36')]();});});});}function _0x48b611(_0x5cb91a){_0x38f93d['model']['change'](_0x4a4f34=>{const _0x5e6ac3=Array[_0xe964('0x5b')](_0x5bb59b[_0xe964('0x85')]())['map'](_0x38ed45=>_0x27e648[_0xe964('0x20')](_0x38ed45)),_0x58321f=[];for(const _0x4f541c of _0x5cb91a)for(const _0x2e45e6 of _0x4f541c[_0xe964('0x4')]({'shallow':!0x0}))_0x58321f[_0xe964('0x45')](_0x2e45e6);for(const _0x13079e of _0x58321f)'$graveyard'!=_0x13079e[_0xe964('0x1d')][_0xe964('0x34')]&&(_0x4a4f34[_0xe964('0x3d')](_0x4a4f34['createPositionAt'](_0x13079e,0x0)),_0x38f93d[_0xe964('0x3')][_0xe964('0x7')](_0xe964('0x4b'))[_0xe964('0x37')](),_0x38f93d[_0xe964('0xa')](_0xe964('0x4b'),{'forceDefaultExecution':!0x0}));const _0x4df8ef=_0x5e6ac3[_0xe964('0x1a')](_0x1a4bba=>_0xe964('0x57')!=_0x1a4bba[_0xe964('0x1d')][_0xe964('0x34')]);_0x4df8ef['length']>0x0&&_0x4a4f34[_0xe964('0x3d')](_0x4df8ef);for(const _0x1ec788 of _0x5e6ac3)_0x1ec788['detach']();});}function _0x185354(_0x4eb369,_0x44d84b){return _0x44d84b[_0xe964('0x32')](_0x4d1e9d=>_0x4eb369[_0xe964('0x73')](_0x282f9c=>_0x282f9c[_0xe964('0x2c')][_0xe964('0x4c')](_0x4d1e9d['start'])||_0x4d1e9d['end'][_0xe964('0x4c')](_0x282f9c[_0xe964('0x79')])));}function _0xe6e94(_0x20438c,_0x9a17be){return _0x20438c[_0xe964('0x73')](_0x449fc1=>_0x9a17be[_0xe964('0x73')](_0x4ab7ae=>_0x449fc1[_0xe964('0x2c')][_0xe964('0x4d')](_0x4ab7ae[_0xe964('0x79')])));}_0x38f93d[_0xe964('0x51')][_0xe964('0x7a')]['on']('addMarker:suggestion',(_0x54a184,_0x147a3d,_0x3de023)=>{if(!_0x3de023[_0xe964('0x12')][_0xe964('0x39')])return;const _0x127db8=_0x147a3d[_0xe964('0x6b')];if(!_0x127db8)return;const _0x13d448=_0x3de023[_0xe964('0x6f')][_0xe964('0x61')](_0x127db8);function _0x7277a4(_0x35e923){return Array['isArray'](_0x35e923)?_0x35e923:[_0x35e923];}_0x13d448&&_0xe964('0x77')===_0x127db8['name']&&_0x55d9ce(_0x13d448,_0x3de023[_0xe964('0x83')],(_0xebbf8a,_0x293b7a,_0x510bda)=>_0x510bda[_0xe964('0x1f')](_0x7277a4(_0x293b7a[_0xe964('0x43')]),_0xebbf8a),(_0x5022b3,_0x14b383,_0x317133)=>_0x317133[_0xe964('0x2a')](_0x7277a4(_0x14b383['classes']),_0x5022b3));},{'priority':'highest'}),_0x32a431[_0xe964('0x56')][_0xe964('0x88')](_0x4290cf=>{if(_0xe964('0x2f')!=_0x4290cf[_0xe964('0x23')]&&_0xe964('0xc')!=_0x4290cf[_0xe964('0x23')])return;const _0x54c1cb=_0x4290cf[_0xe964('0x5c')]();if(null!=_0x54c1cb&&_0x54c1cb['is'](_0xe964('0x6a'),_0xe964('0x29'))){if(_0xe964('0x2f')==_0x4290cf[_0xe964('0x23')]){const _0x33ed5d=_0x4290cf[_0xe964('0x4')]()[_0xe964('0x1a')](_0xc4d18c=>_0xc4d18c['is']('$textProxy'))[_0xe964('0x64')](_0x391f86=>_0x391f86[_0xe964('0x51')]);if(_0x33ed5d['length'])return{'type':_0xe964('0x2f'),'content':_0x29a874(_0x1e205f,_0xe964('0x67'),_0x29a874(_0x1e205f,_0xe964('0xd'),'\x22'+_0x33ed5d['join']('\x20')+'\x22'))};}if(_0xe964('0xc')==_0x4290cf[_0xe964('0x23')]){const _0x5d0588=_0x4290cf[_0xe964('0x4')]()[_0xe964('0x1a')](_0x58cf20=>_0x58cf20['is'](_0xe964('0x59')))[_0xe964('0x64')](_0x2a0f3d=>_0x2a0f3d[_0xe964('0x51')]);if(_0x5d0588[_0xe964('0x65')])return{'type':_0xe964('0xc'),'content':_0x29a874(_0x1e205f,_0xe964('0x3e'),_0x29a874(_0x1e205f,_0xe964('0xd'),'\x22'+_0x5d0588[_0xe964('0x2d')]('\x20')+'\x22'))};}}}),_0x32a431[_0xe964('0x56')]['registerDescriptionCallback'](_0x2e150b=>{if('tableRow'==_0x2e150b[_0xe964('0x2e')]){const _0x456394=_0x2e150b[_0xe964('0x4')]()[_0xe964('0x1a')](_0xeda001=>_0xeda001['is'](_0xe964('0x59')))[_0xe964('0x64')](_0x39c356=>_0x39c356[_0xe964('0x51')]),_0x1e5852=this[_0xe964('0x6')](_0x2e150b),_0x26b51b=_0x1e5852['maxRow']-_0x1e5852[_0xe964('0x11')]+0x1;if('insertion'==_0x2e150b[_0xe964('0x23')])return _0x456394['length']?{'type':'insertion','content':_0x29a874(_0x1e205f,_0xe964('0x67'),_0x29a874(_0x1e205f,_0xe964('0xf'),[_0x26b51b,'\x22'+_0x456394[_0xe964('0x2d')]('\x20')+'\x22']))}:{'type':_0xe964('0x2f'),'content':_0x29a874(_0x1e205f,'*Insert:*\x20%0',_0x29a874(_0x1e205f,'ELEMENT_TABLE_ROW',_0x26b51b))};if(_0xe964('0xc')==_0x2e150b['type'])return _0x456394[_0xe964('0x65')]?{'type':_0xe964('0xc'),'content':_0x29a874(_0x1e205f,_0xe964('0x3e'),_0x29a874(_0x1e205f,_0xe964('0xf'),[_0x26b51b,'\x22'+_0x456394['join']('\x20')+'\x22']))}:{'type':_0xe964('0xc'),'content':_0x29a874(_0x1e205f,_0xe964('0x3e'),_0x29a874(_0x1e205f,'ELEMENT_TABLE_ROW',_0x26b51b))};}if(_0xe964('0x27')==_0x2e150b['subType']){const _0x20c47f=_0x2e150b[_0xe964('0x4')]()['filter'](_0x230379=>_0x230379['is'](_0xe964('0x59')))[_0xe964('0x64')](_0x4c81ed=>_0x4c81ed['data']),_0x7652ee=this['_getSuggestionCoords'](_0x2e150b),_0x2f8c46=_0x7652ee[_0xe964('0x69')]-_0x7652ee[_0xe964('0x35')]+0x1;if(_0xe964('0x2f')==_0x2e150b[_0xe964('0x23')])return _0x20c47f[_0xe964('0x65')]?{'type':'insertion','content':_0x29a874(_0x1e205f,'*Insert:*\x20%0',_0x29a874(_0x1e205f,_0xe964('0x28'),[_0x2f8c46,'\x22'+_0x20c47f[_0xe964('0x2d')]('\x20')+'\x22']))}:{'type':_0xe964('0x2f'),'content':_0x29a874(_0x1e205f,_0xe964('0x67'),_0x29a874(_0x1e205f,'ELEMENT_TABLE_COLUMN',_0x2f8c46))};if(_0xe964('0xc')==_0x2e150b[_0xe964('0x23')])return _0x20c47f['length']?{'type':_0xe964('0xc'),'content':_0x29a874(_0x1e205f,'*Remove:*\x20%0',_0x29a874(_0x1e205f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2f8c46,'\x22'+_0x20c47f[_0xe964('0x2d')]('\x20')+'\x22']))}:{'type':_0xe964('0xc'),'content':_0x29a874(_0x1e205f,_0xe964('0x3e'),_0x29a874(_0x1e205f,'ELEMENT_TABLE_COLUMN',_0x2f8c46))};}}),_0x32a431[_0xe964('0x42')][_0xe964('0x15')](_0xe964('0x2f'),_0xe964('0x44'),_0xe964('0x3a'),_0xafc5bb),_0x32a431[_0xe964('0x42')][_0xe964('0x15')]('deletion',_0xe964('0x44'),_0xe964('0x55'),_0xafc5bb),_0x32a431[_0xe964('0x42')][_0xe964('0x15')](_0xe964('0x2f'),_0xe964('0x27'),_0xe964('0x3a'),_0x48b611),_0x32a431[_0xe964('0x42')][_0xe964('0x15')](_0xe964('0xc'),_0xe964('0x27'),_0xe964('0x55'),_0x48b611),_0x32a431['_suggestionFactory'][_0xe964('0x15')](_0xe964('0x2f'),'tableColumn',_0xe964('0x2d'),_0x185354),_0x32a431[_0xe964('0x42')][_0xe964('0x15')](_0xe964('0xc'),_0xe964('0x27'),_0xe964('0x2d'),_0x185354),_0x32a431[_0xe964('0x42')]['registerCustomCallback'](_0xe964('0x2f'),_0xe964('0x44'),_0xe964('0x2d'),_0xe6e94),_0x32a431['_suggestionFactory']['registerCustomCallback'](_0xe964('0xc'),_0xe964('0x44'),_0xe964('0x2d'),_0xe6e94);}[_0xe964('0x7d')](){const _0x4637b3=this[_0xe964('0x40')],_0x4a7b33=_0x4637b3[_0xe964('0x54')][_0xe964('0x31')][_0xe964('0x1b')];return(_0x485828,_0x534863)=>{_0x4637b3[_0xe964('0x54')][_0xe964('0x58')](_0x58a088=>{const {commandName:_0x236116,commandParams:_0x4408a9}=_0x534863;let _0x220b4d=_0x485828[0x0][_0xe964('0x2c')][_0xe964('0x22')];_0x4408a9&&_0x4408a9[0x0]&&!0x1===_0x4408a9[0x0]['forceValue']&&(_0x220b4d=_0x485828[0x0][_0xe964('0x79')][_0xe964('0x82')]);const _0xe8b764=_0x58a088[_0xe964('0x26')](_0x220b4d);if(_0xe964('0x57')==_0xe8b764[_0xe964('0x1d')][_0xe964('0x34')])return;const _0x3af984=Array[_0xe964('0x5b')](_0x4a7b33[_0xe964('0x85')]())[_0xe964('0x64')](_0x7207d7=>_0x27e648[_0xe964('0x20')](_0x7207d7));_0x58a088[_0xe964('0x3d')](_0xe8b764),_0x4637b3['commands'][_0xe964('0x7')](_0x236116)[_0xe964('0x37')](),_0x4408a9[_0xe964('0x45')]({'forceDefaultExecution':!0x0}),_0x4637b3[_0xe964('0xa')](_0x236116,..._0x4408a9);const _0x158b3f=_0x3af984[_0xe964('0x1a')](_0x13ee40=>_0xe964('0x57')!=_0x13ee40[_0xe964('0x1d')][_0xe964('0x34')]);_0x158b3f[_0xe964('0x65')]>0x0&&_0x58a088[_0xe964('0x3d')](_0x158b3f);for(const _0x4a060 of _0x3af984)_0x4a060[_0xe964('0x36')]();});};}[_0xe964('0x0')](_0x94edad){const _0x591dc1=this[_0xe964('0x40')][_0xe964('0x50')]['get'](_0xe964('0x8'));let _0x392111=Number[_0xe964('0x52')],_0x126d2f=Number[_0xe964('0x5')],_0x4d29b2=Number['MAX_SAFE_INTEGER'],_0x46a611=Number[_0xe964('0x5')];for(const _0x5857e3 of _0x94edad){if('$graveyard'==_0x5857e3[_0xe964('0x1d')][_0xe964('0x34')])continue;const {row:_0x1d8d03,column:_0x1d471a}=_0x591dc1[_0xe964('0x7b')](_0x5857e3),_0x56f337=_0x5857e3[_0xe964('0x89')]('rowspan')?_0x5857e3['getAttribute'](_0xe964('0x18'))-0x1:0x0,_0x5bc486=_0x5857e3['hasAttribute'](_0xe964('0x2'))?_0x5857e3[_0xe964('0x7c')](_0xe964('0x2'))-0x1:0x0;_0x392111=_0x1d8d03<_0x392111?_0x1d8d03:_0x392111,_0x126d2f=_0x1d8d03+_0x56f337>_0x126d2f?_0x1d8d03+_0x56f337:_0x126d2f,_0x4d29b2=_0x1d471a<_0x4d29b2?_0x1d471a:_0x4d29b2,_0x46a611=_0x1d471a+_0x5bc486>_0x46a611?_0x1d471a+_0x5bc486:_0x46a611;}return{'minRow':_0x392111,'maxRow':_0x126d2f,'minColumn':_0x4d29b2,'maxColumn':_0x46a611};}[_0xe964('0x30')](){const _0x4b2b46=this['editor'],_0x1fcb85=_0x4b2b46['plugins'][_0xe964('0x7')](_0xe964('0x84')),_0x4ec0b3=_0x4b2b46['plugins'][_0xe964('0x7')](_0xe964('0x8'));_0x4b2b46['model'][_0xe964('0x31')]['on'](_0xe964('0x49'),()=>{const _0x2ec336=Array[_0xe964('0x5b')](_0x4b2b46['model'][_0xe964('0x31')]['differ'][_0xe964('0x72')]());for(const {name:_0x18802c,data:_0x3232ad}of _0x2ec336){const {group:_0x3f408a,id:_0x50b243,subType:_0x3df1d8}=_0x1fcb85[_0xe964('0x86')](_0x18802c);if(_0xe964('0x70')!=_0x3f408a)continue;if(null!=_0x3232ad[_0xe964('0x66')])continue;const _0x1f6d89=_0x1fcb85[_0xe964('0x3c')](_0x50b243);this[_0xe964('0x9')][_0xe964('0x6c')](_0x3df1d8)&&this[_0xe964('0x1')]['add'](_0x1f6d89);}},{'priority':_0xe964('0x4a')});const _0x1cccee=(_0x26ccb1,_0x22abd3)=>{let _0x5dc3a=!0x1;const _0x1076cf=_0x22abd3[_0xe964('0x78')](_0x26ccb1),_0xfcb5a7=_0x26ccb1['findAncestor'](_0xe964('0x29')),_0x4c9ca6=_0x4ec0b3['getCellLocation'](_0x26ccb1);for(const _0x34bfdd of this[_0xe964('0x1')]){const _0x1931b9=_0x34bfdd['subType'],_0x14a4f0=_0x1931b9[_0xe964('0x71')](_0xe964('0x87')),_0x1abe3b=_0x1931b9[_0xe964('0x47')](_0x14a4f0?0xa:0x5),_0x33ad40=_0x1abe3b[_0xe964('0x2b')](),_0x5182f5=_0x33ad40[_0xe964('0x47')](0x0,0x3)+'span',_0x1ee387='min'+_0x1abe3b,_0x14cb71='max'+_0x1abe3b;if(!_0x34bfdd[_0xe964('0x19')])continue;if(_0xfcb5a7!=_0x34bfdd[_0xe964('0x25')]()['start'][_0xe964('0x10')](_0xe964('0x29')))continue;if(_0x34bfdd[_0xe964('0x5e')](_0x1076cf))continue;const _0x1adcad=_0x26ccb1['hasAttribute'](_0x5182f5)?_0x26ccb1[_0xe964('0x7c')](_0x5182f5)-0x1:0x0,_0xee8b3f=this[_0xe964('0x6')](_0x34bfdd),_0x36e379=_0xee8b3f[_0x1ee387],_0x5459fc=_0xee8b3f[_0x14cb71];_0x36e379<=_0x4c9ca6[_0x33ad40]&&_0x4c9ca6[_0x33ad40]+_0x1adcad<=_0x5459fc&&(_0x34bfdd[_0xe964('0x5f')](_0x1076cf),_0x5dc3a=!0x0);}return _0x5dc3a;};_0x4b2b46[_0xe964('0x54')][_0xe964('0x31')][_0xe964('0x7e')](_0x240db2=>{let _0x5388e3=!0x1;for(const _0x27ba7b of _0x4b2b46['model'][_0xe964('0x31')][_0xe964('0x17')][_0xe964('0x24')]())if(_0xe964('0x53')==_0x27ba7b[_0xe964('0x23')]){if(_0xe964('0x44')==_0x27ba7b[_0xe964('0x80')])for(const _0x2360a5 of _0x27ba7b[_0xe964('0x60')][_0xe964('0x82')][_0xe964('0x14')]())_0x5388e3=_0x5388e3||_0x1cccee(_0x2360a5,_0x240db2);else _0xe964('0x77')==_0x27ba7b[_0xe964('0x80')]&&(_0x5388e3=_0x5388e3||_0x1cccee(_0x27ba7b['position'][_0xe964('0x82')],_0x240db2));}return _0x5388e3;});}[_0xe964('0x6')](_0x18c6f3){return this[_0xe964('0x0')](_0x18c6f3['getRanges']()['map'](_0x55ac2d=>_0x55ac2d[_0xe964('0x79')][_0xe964('0x82')]));}}function se(_0xc0cd8c){return Array[_0xe964('0x5b')](new Set(_0xc0cd8c)[_0xe964('0x48')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ffc=['plugins','editor','afterInit','has','requires','TableCaptionEditing','get'];(function(_0x32b4ba,_0x2ffcd2){const _0x1321dd=function(_0x4485d8){while(--_0x4485d8){_0x32b4ba['push'](_0x32b4ba['shift']());}};_0x1321dd(++_0x2ffcd2);}(_0x2ffc,0x139));const _0x1321=function(_0x32b4ba,_0x2ffcd2){_0x32b4ba=_0x32b4ba-0x0;let _0x1321dd=_0x2ffc[_0x32b4ba];return _0x1321dd;};import{Plugin as _0x4f259c}from'ckeditor5/src/core';import _0x5c828d from'./table';export default class At extends _0x4f259c{static get[_0x1321('0x6')](){return[_0x5c828d];}[_0x1321('0x4')](){const _0x492d12=this[_0x1321('0x3')];if(!_0x492d12['plugins'][_0x1321('0x5')](_0x1321('0x0')))return;_0x492d12[_0x1321('0x2')][_0x1321('0x1')]('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}
|