@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231012.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 _0x51fd=['order','change','tableCell','subType','name','rootName','enqueueChange','toViewElement','get','change:data','ELEMENT_TABLE','selection','registerDescriptionCallback','_suggestionFactory','getRowIndexes','accept','isArray','startsWith','MIN_SAFE_INTEGER','$textProxy','cell','detach','TrackChangesEditing','rowspan','enableCommand','removeTableColumn','tablePaste','findAncestor','end','insertTableColumnRight','refresh','registerCustomCallback','getSuggestion','*Insert:*\x20%0','toLowerCase','suggestion','_tableSuggestions','from','*Remove:*\x20%0','values','type','length','getItems','last','maxColumn','position','discard','insertTable','editor','every','first','addMarker:suggestion','min','filter','_getCoordsForCells','minRow','includes','options','map','TableEditing','isEqual','createTableWalker','tableColumn','minColumn','isTouching','downcastDispatcher','isIntersectingWithRange','addRange','createRangeOn','ELEMENT_TABLE_COLUMN','above','getRanges','addClass','push','data','insertTableColumnLeft','root','TableUtils','setSelection','$graveyard','execute','max','plugins','createRangeIn','mapper','removeTableRow','item','start','getColumnIndexes','removeClass','createPositionAt','low','nodeAfter','markMultiRangeInsertion','deletion','commands','tableRow','table','_splitMarkerName','_tablePostFixingSubtypes','ELEMENT_TABLE_COLUMN_WITH_TEXT','substr','ELEMENT_TABLE_ROW_WITH_TEXT','document','_descriptionFactory','insertion','insert','differ','registerElementLabel','_getSuggestionCoords','fromRange','join','some','getAttribute','MAX_SAFE_INTEGER','getFirstRange','hasAttribute','insertTableRowAbove','batch','has','colspan','registerPostFixer','getCellLocation','writer','_setupColumnsRowsFixing','model','maxRow','getSelectionAffectedTableCells','ELEMENT_TABLE_WITH_TEXT'];(function(_0x18876e,_0x51fd09){const _0x561b72=function(_0x206506){while(--_0x206506){_0x18876e['push'](_0x18876e['shift']());}};_0x561b72(++_0x51fd09);}(_0x51fd,0xcb));const _0x561b=function(_0x18876e,_0x51fd09){_0x18876e=_0x18876e-0x0;let _0x561b72=_0x51fd[_0x18876e];return _0x561b72;};import{Plugin as _0x28ff0a}from'ckeditor5/src/core';import{LiveRange as _0x44dafe}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2ba045}from'ckeditor5/src/widget';import{getTranslation as _0x33ed96}from'../utils/common-translations';export default class dt extends _0x28ff0a{constructor(_0x21fc9a){super(_0x21fc9a),this['_tablePostFixingSubtypes']=[_0x561b('0x16'),_0x561b('0x75')],this[_0x561b('0x5b')]=new Set();}['afterInit'](){const _0x32da67=this[_0x561b('0x67')],_0xdb9c65=_0x32da67['model'][_0x561b('0x1d')][_0x561b('0x42')];if(!_0x32da67[_0x561b('0x8')][_0x561b('0x2d')](_0x561b('0x72')))return;const _0x4c55d3=_0x32da67['locale'],_0x1b4d64=_0x32da67[_0x561b('0x8')][_0x561b('0x3f')](_0x561b('0x4d')),_0x4379b6=_0x32da67[_0x561b('0x8')][_0x561b('0x3f')](_0x561b('0x3'));_0x1b4d64[_0x561b('0x1e')][_0x561b('0x22')](_0x561b('0x17'),_0x316e1a=>_0x33ed96(_0x4c55d3,_0x561b('0x41'),_0x316e1a)),this[_0x561b('0x32')](),_0x1b4d64[_0x561b('0x4f')](_0x561b('0x66')),_0x1b4d64[_0x561b('0x4f')]('selectTableRow'),_0x1b4d64['enableCommand']('selectTableColumn');for(const _0x10e36a of[_0x561b('0x2b'),'insertTableRowBelow']){const _0x2287b2=_0x32da67['commands'][_0x561b('0x3f')](_0x10e36a);_0x1b4d64[_0x561b('0x4f')](_0x10e36a,_0x5a5854=>{_0x32da67['model'][_0x561b('0x38')](_0x2da334=>{_0x5a5854();const _0x4d955c=_0x561b('0x7d')===_0x2287b2[_0x561b('0x37')],_0xa9293b=_0x4379b6[_0x561b('0x35')](_0xdb9c65),_0x2766a2=_0x4379b6[_0x561b('0x45')](_0xa9293b),_0x252f7e=_0x4d955c?_0x2766a2[_0x561b('0x69')]-0x1:_0x2766a2[_0x561b('0x62')]+0x1,_0x265b6b=_0xa9293b[0x0][_0x561b('0x52')]('table'),_0x312d0b=_0x4379b6[_0x561b('0x74')](_0x265b6b,{'startRow':_0x252f7e,'endRow':_0x252f7e}),_0x469b4c=Array['from'](_0x312d0b)[_0x561b('0x71')](_0x43d91e=>_0x2da334[_0x561b('0x7b')](_0x43d91e['cell']));_0x1b4d64[_0x561b('0x13')](_0x469b4c,_0x561b('0x16'));});});}for(const _0x4c2175 of[_0x561b('0x1'),_0x561b('0x54')]){const _0x3a0856=_0x32da67[_0x561b('0x15')][_0x561b('0x3f')](_0x4c2175);_0x1b4d64[_0x561b('0x4f')](_0x4c2175,_0x51b202=>{_0x32da67[_0x561b('0x33')][_0x561b('0x38')](_0x2d3e31=>{_0x51b202();const _0x156c72='left'===_0x3a0856[_0x561b('0x37')],_0x5c6664=_0x4379b6[_0x561b('0x35')](_0xdb9c65),_0x140453=_0x4379b6[_0x561b('0xe')](_0x5c6664),_0x275d4d=_0x156c72?_0x140453[_0x561b('0x69')]-0x1:_0x140453[_0x561b('0x62')]+0x1,_0x40f1f0=_0x5c6664[0x0]['findAncestor'](_0x561b('0x17')),_0xb94765=_0x4379b6[_0x561b('0x74')](_0x40f1f0,{'startRow':0x0,'column':_0x275d4d,'includeAllSlots':!0x1}),_0x23d3cf=Array[_0x561b('0x5c')](_0xb94765)[_0x561b('0x71')](_0x9dc165=>_0x2d3e31['createRangeOn'](_0x9dc165[_0x561b('0x4b')]));_0x1b4d64[_0x561b('0x13')](_0x23d3cf,'tableColumn');});});}for(const _0x2f27b3 of[_0x561b('0xb'),_0x561b('0x50')]){const _0x58b7e3=_0x2f27b3['substr'](0xb),_0x27e5a5=_0x58b7e3['toLowerCase'](),_0x105415=_0x27e5a5[_0x561b('0x1b')](0x0,0x3)+'span',_0x3a18ca=_0x561b('0x17')+_0x58b7e3,_0x3660bd=_0x561b('0x6b')+_0x58b7e3,_0x168554=_0x561b('0x7')+_0x58b7e3;_0x1b4d64[_0x561b('0x4f')](_0x2f27b3,()=>{_0x32da67[_0x561b('0x33')][_0x561b('0x38')](_0xe80439=>{const _0x264eee=_0x4379b6[_0x561b('0x35')](_0xdb9c65),_0x3a0832=_0x264eee[0x0][_0x561b('0x52')]('table');let _0x458e09;if('removeTableRow'==_0x2f27b3){const _0x2e89d5=_0x4379b6[_0x561b('0x45')](_0x264eee);_0x458e09={'startRow':_0x2e89d5['first'],'endRow':_0x2e89d5[_0x561b('0x62')],'includeAllSlots':!0x0};}else{const _0x5c7f4c=_0x4379b6[_0x561b('0xe')](_0x264eee);_0x458e09={'startColumn':_0x5c7f4c[_0x561b('0x69')],'endColumn':_0x5c7f4c[_0x561b('0x62')],'includeAllSlots':!0x0};}const _0x25a12f=_0x4379b6[_0x561b('0x74')](_0x3a0832,_0x458e09),_0x1552ef=Array[_0x561b('0x5c')](_0x25a12f)['map'](({cell:_0x3ae3bf})=>_0x3ae3bf),_0xc436f=se(_0x1552ef[_0x561b('0x6c')](_0xb9a52f=>_0xb9a52f[_0x561b('0x2a')](_0x105415))),_0xd27f85=se(_0x1552ef[_0x561b('0x6c')](_0x2784b3=>!_0x2784b3[_0x561b('0x2a')](_0x105415)))[_0x561b('0x71')](_0x71233e=>_0xe80439['createRangeOn'](_0x71233e)),_0x358bc0=_0x1b4d64['markMultiRangeDeletion'](_0xd27f85,_0x3a18ca);if(_0x358bc0&&(_0x561b('0x16')==_0x358bc0[_0x561b('0x3a')]||_0x561b('0x75')==_0x358bc0[_0x561b('0x3a')])){const _0x135b10=this[_0x561b('0x23')](_0x358bc0);for(const _0x5da268 of _0xc436f){const _0x1a1083=_0xe80439[_0x561b('0x7b')](_0x5da268),_0x5dd31a=_0x4379b6[_0x561b('0x30')](_0x5da268),_0x3af082=_0x5da268[_0x561b('0x27')](_0x105415)-0x1,_0x93a44f=_0x135b10[_0x3660bd],_0x131e68=_0x135b10[_0x168554];_0x93a44f<=_0x5dd31a[_0x27e5a5]&&_0x5dd31a[_0x27e5a5]+_0x3af082<=_0x131e68&&_0x358bc0[_0x561b('0x7a')](_0x1a1083);}}});});}function _0x5755d9(_0x2bfeb2){const _0x24c2f6=Array[_0x561b('0x5c')](_0xdb9c65[_0x561b('0x7e')]())[_0x561b('0x71')](_0xee81f4=>_0x44dafe[_0x561b('0x24')](_0xee81f4));_0x32da67[_0x561b('0x33')][_0x561b('0x38')](_0xfff425=>{const _0x12a038=_0xfff425[_0x561b('0x2c')];_0x2bfeb2=_0x2bfeb2[_0x561b('0x6c')](_0x45ab4a=>_0x561b('0x5')!=_0x45ab4a[_0x561b('0x2')][_0x561b('0x3c')]),_0xfff425['setSelection'](_0x2bfeb2),_0x32da67[_0x561b('0x15')][_0x561b('0x3f')](_0x561b('0xb'))[_0x561b('0x55')](),_0x32da67[_0x561b('0x6')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x32da67[_0x561b('0x33')][_0x561b('0x3d')](()=>{_0x32da67[_0x561b('0x33')][_0x561b('0x3d')](_0x12a038,_0x5ba12b=>{const _0x44459f=_0x24c2f6[_0x561b('0x6c')](_0x249827=>_0x561b('0x5')!=_0x249827[_0x561b('0x2')][_0x561b('0x3c')]);_0x44459f[_0x561b('0x60')]>0x0&&_0x5ba12b[_0x561b('0x4')](_0x44459f);for(const _0x2211e3 of _0x24c2f6)_0x2211e3[_0x561b('0x4c')]();});});});}function _0x23e731(_0x1862e0){_0x32da67[_0x561b('0x33')][_0x561b('0x38')](_0x110989=>{const _0x5cc4db=Array['from'](_0xdb9c65['getRanges']())[_0x561b('0x71')](_0x4f3bfb=>_0x44dafe[_0x561b('0x24')](_0x4f3bfb)),_0x4718c7=[];for(const _0x51d4a5 of _0x1862e0)for(const _0x421aa0 of _0x51d4a5['getItems']({'shallow':!0x0}))_0x4718c7[_0x561b('0x80')](_0x421aa0);for(const _0x3396e0 of _0x4718c7)'$graveyard'!=_0x3396e0[_0x561b('0x2')][_0x561b('0x3c')]&&(_0x110989[_0x561b('0x4')](_0x110989[_0x561b('0x10')](_0x3396e0,0x0)),_0x32da67['commands'][_0x561b('0x3f')](_0x561b('0x50'))[_0x561b('0x55')](),_0x32da67['execute'](_0x561b('0x50'),{'forceDefaultExecution':!0x0}));const _0x52b41a=_0x5cc4db['filter'](_0x5bbbe7=>'$graveyard'!=_0x5bbbe7['root'][_0x561b('0x3c')]);_0x52b41a[_0x561b('0x60')]>0x0&&_0x110989[_0x561b('0x4')](_0x52b41a);for(const _0x5892ff of _0x5cc4db)_0x5892ff[_0x561b('0x4c')]();});}function _0x53673a(_0x289236,_0x21aa4c){return _0x21aa4c[_0x561b('0x68')](_0x3dc3d1=>_0x289236[_0x561b('0x26')](_0x101dae=>_0x101dae['end'][_0x561b('0x73')](_0x3dc3d1[_0x561b('0xd')])||_0x3dc3d1['end'][_0x561b('0x73')](_0x101dae['start'])));}function _0x48f4ac(_0x54a8f2,_0x2a7000){return _0x54a8f2[_0x561b('0x26')](_0x2c7ccf=>_0x2a7000['some'](_0x34260c=>_0x2c7ccf[_0x561b('0x53')][_0x561b('0x77')](_0x34260c['start'])));}_0x32da67['data'][_0x561b('0x78')]['on'](_0x561b('0x6a'),(_0x10fb16,_0x3553cd,_0x49fe7f)=>{if(!_0x49fe7f[_0x561b('0x70')]['showSuggestionHighlights'])return;const _0x4a9c3c=_0x3553cd[_0x561b('0xc')];if(!_0x4a9c3c)return;const _0x4fe51b=_0x49fe7f[_0x561b('0xa')][_0x561b('0x3e')](_0x4a9c3c);function _0x1ac1e9(_0x4ff059){return Array[_0x561b('0x47')](_0x4ff059)?_0x4ff059:[_0x4ff059];}_0x4fe51b&&_0x561b('0x39')===_0x4a9c3c['name']&&_0x2ba045(_0x4fe51b,_0x49fe7f[_0x561b('0x31')],(_0x5558be,_0xf0ca3a,_0x1554aa)=>_0x1554aa[_0x561b('0x7f')](_0x1ac1e9(_0xf0ca3a['classes']),_0x5558be),(_0xc9cde7,_0x2f0d25,_0x3b6434)=>_0x3b6434[_0x561b('0xf')](_0x1ac1e9(_0x2f0d25['classes']),_0xc9cde7));},{'priority':'highest'}),_0x1b4d64[_0x561b('0x1e')][_0x561b('0x43')](_0x4e0933=>{if(_0x561b('0x1f')!=_0x4e0933[_0x561b('0x5f')]&&_0x561b('0x14')!=_0x4e0933['type'])return;const _0x44f684=_0x4e0933['getContainedElement']();if(null!=_0x44f684&&_0x44f684['is']('element',_0x561b('0x17'))){if(_0x561b('0x1f')==_0x4e0933[_0x561b('0x5f')]){const _0x10ed4d=_0x4e0933[_0x561b('0x61')]()[_0x561b('0x6c')](_0x4de141=>_0x4de141['is'](_0x561b('0x4a')))[_0x561b('0x71')](_0x5da20d=>_0x5da20d[_0x561b('0x0')]);if(_0x10ed4d[_0x561b('0x60')])return{'type':'insertion','content':_0x33ed96(_0x4c55d3,'*Insert:*\x20%0',_0x33ed96(_0x4c55d3,_0x561b('0x36'),'\x22'+_0x10ed4d[_0x561b('0x25')]('\x20')+'\x22'))};}if(_0x561b('0x14')==_0x4e0933[_0x561b('0x5f')]){const _0x325116=_0x4e0933[_0x561b('0x61')]()[_0x561b('0x6c')](_0x544a4a=>_0x544a4a['is'](_0x561b('0x4a')))[_0x561b('0x71')](_0x21098b=>_0x21098b['data']);if(_0x325116[_0x561b('0x60')])return{'type':_0x561b('0x14'),'content':_0x33ed96(_0x4c55d3,_0x561b('0x5d'),_0x33ed96(_0x4c55d3,_0x561b('0x36'),'\x22'+_0x325116[_0x561b('0x25')]('\x20')+'\x22'))};}}}),_0x1b4d64['_descriptionFactory'][_0x561b('0x43')](_0xcd56a2=>{if(_0x561b('0x16')==_0xcd56a2[_0x561b('0x3a')]){const _0x1548b8=_0xcd56a2['getItems']()['filter'](_0x4960eb=>_0x4960eb['is'](_0x561b('0x4a')))['map'](_0x98d76f=>_0x98d76f[_0x561b('0x0')]),_0x2cb055=this[_0x561b('0x23')](_0xcd56a2),_0x499596=_0x2cb055[_0x561b('0x34')]-_0x2cb055[_0x561b('0x6e')]+0x1;if('insertion'==_0xcd56a2[_0x561b('0x5f')])return _0x1548b8[_0x561b('0x60')]?{'type':'insertion','content':_0x33ed96(_0x4c55d3,_0x561b('0x58'),_0x33ed96(_0x4c55d3,_0x561b('0x1c'),[_0x499596,'\x22'+_0x1548b8[_0x561b('0x25')]('\x20')+'\x22']))}:{'type':_0x561b('0x1f'),'content':_0x33ed96(_0x4c55d3,_0x561b('0x58'),_0x33ed96(_0x4c55d3,'ELEMENT_TABLE_ROW',_0x499596))};if(_0x561b('0x14')==_0xcd56a2[_0x561b('0x5f')])return _0x1548b8['length']?{'type':_0x561b('0x14'),'content':_0x33ed96(_0x4c55d3,_0x561b('0x5d'),_0x33ed96(_0x4c55d3,_0x561b('0x1c'),[_0x499596,'\x22'+_0x1548b8[_0x561b('0x25')]('\x20')+'\x22']))}:{'type':_0x561b('0x14'),'content':_0x33ed96(_0x4c55d3,'*Remove:*\x20%0',_0x33ed96(_0x4c55d3,'ELEMENT_TABLE_ROW',_0x499596))};}if(_0x561b('0x75')==_0xcd56a2[_0x561b('0x3a')]){const _0x429fe9=_0xcd56a2[_0x561b('0x61')]()['filter'](_0x1ba643=>_0x1ba643['is'](_0x561b('0x4a')))[_0x561b('0x71')](_0x592279=>_0x592279[_0x561b('0x0')]),_0x3088f7=this[_0x561b('0x23')](_0xcd56a2),_0x202a0b=_0x3088f7[_0x561b('0x63')]-_0x3088f7[_0x561b('0x76')]+0x1;if('insertion'==_0xcd56a2['type'])return _0x429fe9[_0x561b('0x60')]?{'type':_0x561b('0x1f'),'content':_0x33ed96(_0x4c55d3,_0x561b('0x58'),_0x33ed96(_0x4c55d3,_0x561b('0x1a'),[_0x202a0b,'\x22'+_0x429fe9[_0x561b('0x25')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x33ed96(_0x4c55d3,_0x561b('0x58'),_0x33ed96(_0x4c55d3,'ELEMENT_TABLE_COLUMN',_0x202a0b))};if(_0x561b('0x14')==_0xcd56a2[_0x561b('0x5f')])return _0x429fe9['length']?{'type':_0x561b('0x14'),'content':_0x33ed96(_0x4c55d3,'*Remove:*\x20%0',_0x33ed96(_0x4c55d3,_0x561b('0x1a'),[_0x202a0b,'\x22'+_0x429fe9['join']('\x20')+'\x22']))}:{'type':_0x561b('0x14'),'content':_0x33ed96(_0x4c55d3,_0x561b('0x5d'),_0x33ed96(_0x4c55d3,_0x561b('0x7c'),_0x202a0b))};}}),_0x1b4d64[_0x561b('0x44')][_0x561b('0x56')]('insertion',_0x561b('0x16'),_0x561b('0x65'),_0x5755d9),_0x1b4d64[_0x561b('0x44')][_0x561b('0x56')](_0x561b('0x14'),_0x561b('0x16'),_0x561b('0x46'),_0x5755d9),_0x1b4d64[_0x561b('0x44')]['registerCustomCallback'](_0x561b('0x1f'),_0x561b('0x75'),_0x561b('0x65'),_0x23e731),_0x1b4d64[_0x561b('0x44')]['registerCustomCallback']('deletion',_0x561b('0x75'),'accept',_0x23e731),_0x1b4d64[_0x561b('0x44')][_0x561b('0x56')](_0x561b('0x1f'),_0x561b('0x75'),_0x561b('0x25'),_0x53673a),_0x1b4d64[_0x561b('0x44')]['registerCustomCallback'](_0x561b('0x14'),'tableColumn',_0x561b('0x25'),_0x53673a),_0x1b4d64[_0x561b('0x44')][_0x561b('0x56')](_0x561b('0x1f'),_0x561b('0x16'),_0x561b('0x25'),_0x48f4ac),_0x1b4d64[_0x561b('0x44')][_0x561b('0x56')](_0x561b('0x14'),_0x561b('0x16'),_0x561b('0x25'),_0x48f4ac);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4bed25=this[_0x561b('0x67')],_0x34f8c3=_0x4bed25[_0x561b('0x33')]['document']['selection'];return(_0x568ac0,_0xa068bb)=>{_0x4bed25[_0x561b('0x33')][_0x561b('0x38')](_0x24d873=>{const {commandName:_0x37e8e1,commandParams:_0x21d9ec}=_0xa068bb;let _0x21eaad=_0x568ac0[0x0][_0x561b('0x53')]['nodeBefore'];_0x21d9ec&&_0x21d9ec[0x0]&&!0x1===_0x21d9ec[0x0]['forceValue']&&(_0x21eaad=_0x568ac0[0x0][_0x561b('0xd')][_0x561b('0x12')]);const _0x179c25=_0x24d873[_0x561b('0x9')](_0x21eaad);if('$graveyard'==_0x179c25['root'][_0x561b('0x3c')])return;const _0x45bdb4=Array[_0x561b('0x5c')](_0x34f8c3['getRanges']())[_0x561b('0x71')](_0x5639dc=>_0x44dafe[_0x561b('0x24')](_0x5639dc));_0x24d873[_0x561b('0x4')](_0x179c25),_0x4bed25['commands']['get'](_0x37e8e1)[_0x561b('0x55')](),_0x21d9ec[_0x561b('0x80')]({'forceDefaultExecution':!0x0}),_0x4bed25[_0x561b('0x6')](_0x37e8e1,..._0x21d9ec);const _0x198bef=_0x45bdb4['filter'](_0x25ec92=>_0x561b('0x5')!=_0x25ec92['root']['rootName']);_0x198bef['length']>0x0&&_0x24d873[_0x561b('0x4')](_0x198bef);for(const _0x2dd867 of _0x45bdb4)_0x2dd867[_0x561b('0x4c')]();});};}[_0x561b('0x6d')](_0x4f8346){const _0x49da3e=this[_0x561b('0x67')][_0x561b('0x8')][_0x561b('0x3f')](_0x561b('0x3'));let _0x602e77=Number[_0x561b('0x28')],_0x2a2d9e=Number[_0x561b('0x49')],_0x3d9ba5=Number[_0x561b('0x28')],_0x554d41=Number[_0x561b('0x49')];for(const _0x5d0203 of _0x4f8346){if('$graveyard'==_0x5d0203[_0x561b('0x2')][_0x561b('0x3c')])continue;const {row:_0x12401b,column:_0x18ce00}=_0x49da3e[_0x561b('0x30')](_0x5d0203),_0x39b0b4=_0x5d0203[_0x561b('0x2a')](_0x561b('0x4e'))?_0x5d0203[_0x561b('0x27')]('rowspan')-0x1:0x0,_0x3c0c4e=_0x5d0203[_0x561b('0x2a')](_0x561b('0x2e'))?_0x5d0203[_0x561b('0x27')]('colspan')-0x1:0x0;_0x602e77=_0x12401b<_0x602e77?_0x12401b:_0x602e77,_0x2a2d9e=_0x12401b+_0x39b0b4>_0x2a2d9e?_0x12401b+_0x39b0b4:_0x2a2d9e,_0x3d9ba5=_0x18ce00<_0x3d9ba5?_0x18ce00:_0x3d9ba5,_0x554d41=_0x18ce00+_0x3c0c4e>_0x554d41?_0x18ce00+_0x3c0c4e:_0x554d41;}return{'minRow':_0x602e77,'maxRow':_0x2a2d9e,'minColumn':_0x3d9ba5,'maxColumn':_0x554d41};}[_0x561b('0x32')](){const _0x4537e9=this[_0x561b('0x67')],_0x2a4c45=_0x4537e9['plugins'][_0x561b('0x3f')]('TrackChangesEditing'),_0x216194=_0x4537e9[_0x561b('0x8')][_0x561b('0x3f')]('TableUtils');_0x4537e9[_0x561b('0x33')][_0x561b('0x1d')]['on'](_0x561b('0x40'),()=>{const _0x5e08af=Array[_0x561b('0x5c')](_0x4537e9[_0x561b('0x33')][_0x561b('0x1d')][_0x561b('0x21')]['getChangedMarkers']());for(const {name:_0x347ed3,data:_0x5cdd26}of _0x5e08af){const {group:_0x225991,id:_0x58e778,subType:_0x588d76}=_0x2a4c45[_0x561b('0x18')](_0x347ed3);if(_0x561b('0x5a')!=_0x225991)continue;if(null!=_0x5cdd26['oldRange'])continue;const _0x32a009=_0x2a4c45[_0x561b('0x57')](_0x58e778);this[_0x561b('0x19')][_0x561b('0x6f')](_0x588d76)&&this[_0x561b('0x5b')]['add'](_0x32a009);}},{'priority':_0x561b('0x11')});const _0x2884b1=(_0x14d4f3,_0x4ce9c7)=>{let _0x5cbecc=!0x1;const _0x1db2a4=_0x4ce9c7['createRangeOn'](_0x14d4f3),_0x2e63b2=_0x14d4f3['findAncestor'](_0x561b('0x17')),_0x29ca23=_0x216194['getCellLocation'](_0x14d4f3);for(const _0x2b9dc2 of this[_0x561b('0x5b')]){const _0x4ed0a3=_0x2b9dc2[_0x561b('0x3a')],_0x508bc9=_0x4ed0a3[_0x561b('0x48')](_0x561b('0x51')),_0x3df8ca=_0x4ed0a3[_0x561b('0x1b')](_0x508bc9?0xa:0x5),_0x472e69=_0x3df8ca[_0x561b('0x59')](),_0x2f8e81=_0x472e69[_0x561b('0x1b')](0x0,0x3)+'span',_0x1b43f0=_0x561b('0x6b')+_0x3df8ca,_0x2d1411=_0x561b('0x7')+_0x3df8ca;if(!_0x2b9dc2['isInContent'])continue;if(_0x2e63b2!=_0x2b9dc2[_0x561b('0x29')]()[_0x561b('0xd')]['findAncestor'](_0x561b('0x17')))continue;if(_0x2b9dc2[_0x561b('0x79')](_0x1db2a4))continue;const _0x4c7f15=_0x14d4f3['hasAttribute'](_0x2f8e81)?_0x14d4f3[_0x561b('0x27')](_0x2f8e81)-0x1:0x0,_0xc9a2cb=this[_0x561b('0x23')](_0x2b9dc2),_0x64be6f=_0xc9a2cb[_0x1b43f0],_0x12daa2=_0xc9a2cb[_0x2d1411];_0x64be6f<=_0x29ca23[_0x472e69]&&_0x29ca23[_0x472e69]+_0x4c7f15<=_0x12daa2&&(_0x2b9dc2['addRange'](_0x1db2a4),_0x5cbecc=!0x0);}return _0x5cbecc;};_0x4537e9[_0x561b('0x33')][_0x561b('0x1d')][_0x561b('0x2f')](_0xfb2ae=>{let _0x1eb636=!0x1;for(const _0x30beb9 of _0x4537e9[_0x561b('0x33')][_0x561b('0x1d')][_0x561b('0x21')]['getChanges']())if(_0x561b('0x20')==_0x30beb9['type']){if('tableRow'==_0x30beb9[_0x561b('0x3b')])for(const _0x4031ab of _0x30beb9[_0x561b('0x64')][_0x561b('0x12')]['getChildren']())_0x1eb636=_0x1eb636||_0x2884b1(_0x4031ab,_0xfb2ae);else _0x561b('0x39')==_0x30beb9[_0x561b('0x3b')]&&(_0x1eb636=_0x1eb636||_0x2884b1(_0x30beb9[_0x561b('0x64')][_0x561b('0x12')],_0xfb2ae));}return _0x1eb636;});}[_0x561b('0x23')](_0x3c4d79){return this[_0x561b('0x6d')](_0x3c4d79[_0x561b('0x7e')]()[_0x561b('0x71')](_0x539dba=>_0x539dba['start'][_0x561b('0x12')]));}}function se(_0x596324){return Array['from'](new Set(_0x596324)[_0x561b('0x5e')]());}
|
|
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');}}
|