@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230725.1 → 0.0.0-nightly-20230726.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd894=['get','getListTypeFromListStyleType','_getTranslationKeyForListStyle','enableCommand','from','*Format:*\x20set\x20start\x20index\x20to\x20%0','listStyle','startIndex','document','_getSuggestionBlocksForListStyle','handleListStyleCommand','registerDescriptionCallback','flat','numbered','forward','unshift','_getSuggestionBlocks','afterInit','filter','getAttribute','element','TrackChangesEditing','ListPropertiesEditing','listReversed','getSiblingNodes','styles','commandName','toUpperCase','config','getSelectedBlocks','*Change\x20to:*\x20%0','listItem','bind','createRange','getFirstPosition','listType','handleListStartCommand','backward','before','format','replace','change','markMultiRangeBlockFormat','reversed','ListUtils','model','ELEMENT_','selection','commandParams','createPositionAt','length','_descriptionFactory','handleDescriptions','editor','handleListReversedCommand','*Format:*\x20set\x20order\x20to\x20regular','map','push','listStart','type','plugins'];(function(_0x459c40,_0xd894ce){const _0x2d43fb=function(_0x1b3b2c){while(--_0x1b3b2c){_0x459c40['push'](_0x459c40['shift']());}};_0x2d43fb(++_0xd894ce);}(_0xd894,0x76));const _0x2d43=function(_0x459c40,_0xd894ce){_0x459c40=_0x459c40-0x0;let _0x2d43fb=_0xd894[_0x459c40];return _0x2d43fb;};import{Plugin as _0x2dc2f0}from'ckeditor5/src/core';import{getTranslation as _0x909fea}from'../utils/common-translations';export default class nt extends _0x2dc2f0{[_0x2d43('0x15')](){if(!this[_0x2d43('0x39')][_0x2d43('0x3')]['has'](_0x2d43('0x1a')))return;const _0x5dec17=this[_0x2d43('0x39')][_0x2d43('0x20')][_0x2d43('0x4')]('list.properties'),_0x4f5dbc=this['editor'][_0x2d43('0x3')][_0x2d43('0x4')](_0x2d43('0x19'));_0x5dec17[_0x2d43('0x1d')]&&_0x4f5dbc['enableCommand'](_0x2d43('0xa'),this['handleListStyleCommand'][_0x2d43('0x24')](this)),_0x5dec17[_0x2d43('0x2f')]&&_0x4f5dbc[_0x2d43('0x7')](_0x2d43('0x1b'),this[_0x2d43('0x3a')][_0x2d43('0x24')](this)),_0x5dec17[_0x2d43('0xb')]&&_0x4f5dbc[_0x2d43('0x7')](_0x2d43('0x1'),this[_0x2d43('0x28')][_0x2d43('0x24')](this)),_0x4f5dbc[_0x2d43('0x37')][_0x2d43('0xf')](this['handleDescriptions'][_0x2d43('0x24')](this));}[_0x2d43('0xe')](_0x2b977d,_0x50d54e={}){const _0x58d6d2=this['editor'][_0x2d43('0x3')]['get'](_0x2d43('0x19')),_0x593d64=this[_0x2d43('0xd')]();this[_0x2d43('0x39')]['model']['change'](()=>{_0x58d6d2[_0x2d43('0x2e')](_0x593d64,{'commandName':'listStyle','commandParams':[{'type':_0x50d54e[_0x2d43('0x2')]}],'formatGroupId':_0x2d43('0xa')});});}[_0x2d43('0x3a')](_0x2b2789,_0x3b52e2={}){const _0xa28f39=this['editor'][_0x2d43('0x3')][_0x2d43('0x4')](_0x2d43('0x19')),_0x5a8b61=this['_getSuggestionBlocks'](_0x54918a=>_0x54918a['is'](_0x2d43('0x18'),_0x2d43('0x23'))&&_0x2d43('0x11')===_0x54918a[_0x2d43('0x17')](_0x2d43('0x27')));if(_0x5a8b61['length']<0x1)return;const _0x19fe10=_0x5a8b61[_0x2d43('0x3c')](_0x1d994d=>this['editor'][_0x2d43('0x31')][_0x2d43('0x25')](this['editor'][_0x2d43('0x31')]['createPositionAt'](_0x1d994d,'before'),this[_0x2d43('0x39')][_0x2d43('0x31')][_0x2d43('0x35')](_0x1d994d,0x0)));this[_0x2d43('0x39')][_0x2d43('0x31')][_0x2d43('0x2d')](()=>{_0xa28f39[_0x2d43('0x2e')](_0x19fe10,{'commandName':_0x2d43('0x1b'),'commandParams':[{'reversed':_0x3b52e2[_0x2d43('0x2f')]}],'formatGroupId':_0x2d43('0x1b')});});}[_0x2d43('0x28')](_0x456284,_0x42c80b={}){const _0x50d6b4=this[_0x2d43('0x39')][_0x2d43('0x3')][_0x2d43('0x4')](_0x2d43('0x19')),_0x3ef03a=this[_0x2d43('0x14')](_0x4fe575=>_0x4fe575['is'](_0x2d43('0x18'),_0x2d43('0x23'))&&_0x2d43('0x11')===_0x4fe575[_0x2d43('0x17')](_0x2d43('0x27')));if(_0x3ef03a[_0x2d43('0x36')]<0x1)return;const _0xee6d22=_0x3ef03a[_0x2d43('0x3c')](_0x4d140e=>this['editor'][_0x2d43('0x31')]['createRange'](this['editor']['model']['createPositionAt'](_0x4d140e,_0x2d43('0x2a')),this[_0x2d43('0x39')][_0x2d43('0x31')][_0x2d43('0x35')](_0x4d140e,0x0)));this[_0x2d43('0x39')][_0x2d43('0x31')][_0x2d43('0x2d')](()=>{_0x50d6b4['markMultiRangeBlockFormat'](_0xee6d22,{'commandName':_0x2d43('0x1'),'commandParams':[{'startIndex':_0x42c80b[_0x2d43('0xb')]}],'formatGroupId':_0x2d43('0x1')});});}[_0x2d43('0x38')](_0xd9b89a){const _0x4dca9f=this['editor']['locale'],{data:_0x1836de}=_0xd9b89a;if(!_0x1836de)return;let _0xa0973a,_0x178e93;switch(_0x1836de[_0x2d43('0x1e')]){case _0x2d43('0xa'):_0xa0973a=_0x2d43('0x22'),_0x178e93={'type':'format','content':_0x909fea(_0x4dca9f,_0xa0973a,_0x909fea(_0x4dca9f,this[_0x2d43('0x6')](_0x1836de[_0x2d43('0x34')][0x0]['type'])))};break;case _0x2d43('0x1b'):_0xa0973a=_0x1836de[_0x2d43('0x34')][0x0][_0x2d43('0x2f')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x2d43('0x3b'),_0x178e93={'type':'format','content':_0x909fea(_0x4dca9f,_0xa0973a)};break;case'listStart':_0xa0973a=_0x2d43('0x9'),_0x178e93={'type':_0x2d43('0x2b'),'content':_0x909fea(_0x4dca9f,_0xa0973a,_0x1836de[_0x2d43('0x34')][0x0][_0x2d43('0xb')])};}return _0x178e93;}[_0x2d43('0xd')](){var _0x5711a5,_0x33e1bf,_0x46bf85,_0x5cc86b;const _0x2e07b2=this['editor'][_0x2d43('0x3')][_0x2d43('0x4')](_0x2d43('0x30'));let _0x189827=Array[_0x2d43('0x8')](this[_0x2d43('0x39')][_0x2d43('0x31')][_0x2d43('0xc')][_0x2d43('0x33')][_0x2d43('0x21')]());return(null===(_0x5711a5=_0x189827[0x0])||void 0x0===_0x5711a5?void 0x0:_0x5711a5['is'](_0x2d43('0x18'),_0x2d43('0x23')))&&_0x189827[_0x2d43('0x13')](..._0x2e07b2[_0x2d43('0x1c')](this[_0x2d43('0x39')][_0x2d43('0x31')]['document'][_0x2d43('0x33')]['getFirstPosition'](),_0x2d43('0x29'))),(null===(_0x33e1bf=_0x189827[_0x189827[_0x2d43('0x36')]-0x1])||void 0x0===_0x33e1bf?void 0x0:_0x33e1bf['is'](_0x2d43('0x18'),_0x2d43('0x23')))&&_0x189827[_0x2d43('0x0')](..._0x2e07b2[_0x2d43('0x1c')](this[_0x2d43('0x39')][_0x2d43('0x31')][_0x2d43('0xc')][_0x2d43('0x33')]['getLastPosition'](),'forward')),_0x189827=[...new Set(_0x189827)],(null===(_0x5cc86b=null===(_0x46bf85=this['editor'][_0x2d43('0x31')][_0x2d43('0xc')][_0x2d43('0x33')][_0x2d43('0x26')]())||void 0x0===_0x46bf85?void 0x0:_0x46bf85['parent'])||void 0x0===_0x5cc86b?void 0x0:_0x5cc86b['is']('element',_0x2d43('0x23')))&&(_0x189827=_0x189827[_0x2d43('0x16')](_0x483f47=>_0x483f47['is'](_0x2d43('0x18'),_0x2d43('0x23')))),_0x189827;}[_0x2d43('0x14')](_0x480f3b){const _0xbda39b=this[_0x2d43('0x39')]['plugins'][_0x2d43('0x4')](_0x2d43('0x30'));let _0x1f4270=Array[_0x2d43('0x8')](this[_0x2d43('0x39')]['model']['document'][_0x2d43('0x33')]['getSelectedBlocks']())[_0x2d43('0x16')](_0x480f3b)[_0x2d43('0x3c')](_0x23f463=>{const _0x1c888e=this[_0x2d43('0x39')][_0x2d43('0x31')][_0x2d43('0x35')](_0x23f463,0x0);return[..._0xbda39b[_0x2d43('0x1c')](_0x1c888e,_0x2d43('0x29')),..._0xbda39b['getSiblingNodes'](_0x1c888e,_0x2d43('0x12'))];})[_0x2d43('0x10')]();return _0x1f4270=[...new Set(_0x1f4270)],_0x1f4270;}['_getTranslationKeyForListStyle'](_0x108c80){return _0x2d43('0x32')+this['editor'][_0x2d43('0x3')][_0x2d43('0x4')]('ListUtils')[_0x2d43('0x5')](_0x108c80)[_0x2d43('0x1f')]()+'_LIST_'+_0x108c80['toUpperCase']()[_0x2d43('0x2c')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1db2=['registerElementLabel','has','locale','media','plugins','downcastDispatcher','get','conversion','attribute:url:media','elementToElement','dataDowncast','MediaEmbedEditing','ELEMENT_MEDIA','mediaEmbed','TrackChangesEditing','data','high','_descriptionFactory','showSuggestionHighlights'];(function(_0x12b6b8,_0x1db2ac){const _0x302af7=function(_0x1d9f69){while(--_0x1d9f69){_0x12b6b8['push'](_0x12b6b8['shift']());}};_0x302af7(++_0x1db2ac);}(_0x1db2,0x68));const _0x302a=function(_0x12b6b8,_0x1db2ac){_0x12b6b8=_0x12b6b8-0x0;let _0x302af7=_0x1db2[_0x12b6b8];return _0x302af7;};import{Plugin as _0x4b95ba}from'ckeditor5/src/core';import{getTranslation as _0x38b60b}from'../utils/common-translations';export default class ot extends _0x4b95ba{['afterInit'](){const _0x39ccc9=this['editor'];if(!_0x39ccc9['plugins'][_0x302a('0xb')](_0x302a('0x2')))return;const _0x5c0178=_0x39ccc9[_0x302a('0xe')][_0x302a('0x10')](_0x302a('0x5')),_0x5a756b=_0x39ccc9[_0x302a('0xc')];_0x5c0178['enableCommand'](_0x302a('0x4')),_0x5c0178[_0x302a('0x8')][_0x302a('0xa')](_0x302a('0xd'),_0x4f19bb=>_0x38b60b(_0x5a756b,_0x302a('0x3'),_0x4f19bb)),_0x39ccc9[_0x302a('0x11')]['for'](_0x302a('0x1'))[_0x302a('0x0')]({'model':_0x302a('0xd'),'view':(_0x533e7a,{writer:_0x471f5d,options:_0x30759c})=>{if(_0x30759c[_0x302a('0x9')])return _0x471f5d['createEmptyElement']('div');},'converterPriority':_0x302a('0x7')}),_0x39ccc9[_0x302a('0x6')][_0x302a('0xf')]['on'](_0x302a('0x12'),(_0x5616e4,_0x4bc522,_0x51f46c)=>{_0x51f46c['options'][_0x302a('0x9')]&&_0x5616e4['stop']();},{'priority':_0x302a('0x7')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c31=['plugins','get','MentionEditing','TrackChangesEditing','has','editor','mention'];(function(_0x3dbc60,_0x1c313c){const _0x38f5ed=function(_0xf66503){while(--_0xf66503){_0x3dbc60['push'](_0x3dbc60['shift']());}};_0x38f5ed(++_0x1c313c);}(_0x1c31,0x167));const _0x38f5=function(_0x3dbc60,_0x1c313c){_0x3dbc60=_0x3dbc60-0x0;let _0x38f5ed=_0x1c31[_0x3dbc60];return _0x38f5ed;};import{Plugin as _0x53c49d}from'ckeditor5/src/core';export default class rt extends _0x53c49d{['afterInit'](){const _0x238752=this[_0x38f5('0x3')];_0x238752[_0x38f5('0x5')][_0x38f5('0x2')](_0x38f5('0x0'))&&_0x238752[_0x38f5('0x5')][_0x38f5('0x6')](_0x38f5('0x1'))['enableCommand'](_0x38f5('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x156f=['pageBreak','locale','afterInit','enableCommand','has','get','registerElementLabel','PageBreakEditing','TrackChangesEditing','plugins','_descriptionFactory','editor'];(function(_0x3f9ddf,_0x156f07){const _0xbd99fa=function(_0x105215){while(--_0x105215){_0x3f9ddf['push'](_0x3f9ddf['shift']());}};_0xbd99fa(++_0x156f07);}(_0x156f,0x16f));const _0xbd99=function(_0x3f9ddf,_0x156f07){_0x3f9ddf=_0x3f9ddf-0x0;let _0xbd99fa=_0x156f[_0x3f9ddf];return _0xbd99fa;};import{Plugin as _0x38caf3}from'ckeditor5/src/core';import{getTranslation as _0x181d23}from'../utils/common-translations';export default class at extends _0x38caf3{[_0xbd99('0x7')](){const _0x4bc5bf=this[_0xbd99('0x4')];if(!_0x4bc5bf[_0xbd99('0x2')][_0xbd99('0x9')](_0xbd99('0x0')))return;_0x4bc5bf['plugins']['get']('TrackChangesEditing')[_0xbd99('0x8')](_0xbd99('0x5'));const _0x43c36d=_0x4bc5bf[_0xbd99('0x2')][_0xbd99('0xa')](_0xbd99('0x1')),_0x11900e=_0x4bc5bf[_0xbd99('0x6')];_0x43c36d[_0xbd99('0x3')][_0xbd99('0xb')](_0xbd99('0x5'),_0x2d7715=>_0x181d23(_0x11900e,'ELEMENT_PAGE_BREAK',_0x2d7715));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e95=['plugins','editing','model','paragraph','*Insert:*\x20%0','TrackChangesEditing','type','addClass','insertion','createUIElement','get','isTouching','options','data','checkChild','name','locale','markerRange','insert','addMarker:suggestion:insertion','commandName','Paragraph','end','highest','afterInit','parent','getItemLabel','schema','format','getFirstRange','toViewPosition','filter','downcastDispatcher','mapper','start','markerName','activeMarkers','*Change\x20to:*\x20%0','blockName','editor','consume','_descriptionFactory','registerDescriptionCallback','selection','change','isLimit','enableCommand','ck-suggestion-marker-split','from','isBlock','nodeAfter','markBlockFormat','document','consumable','showSuggestionHighlights','writer','insertParagraph'];(function(_0x36938f,_0x5e95c3){const _0x162402=function(_0x5f290d){while(--_0x5f290d){_0x36938f['push'](_0x36938f['shift']());}};_0x162402(++_0x5e95c3);}(_0x5e95,0x149));const _0x1624=function(_0x36938f,_0x5e95c3){_0x36938f=_0x36938f-0x0;let _0x162402=_0x5e95[_0x36938f];return _0x162402;};import{Plugin as _0x15f073}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0xd915}from'./utils';import{getTranslation as _0x3febab}from'../utils/common-translations';export default class ct extends _0x15f073{[_0x1624('0x25')](){const _0x258dde=this[_0x1624('0x34')];if(!_0x258dde[_0x1624('0xd')]['has'](_0x1624('0x22')))return;const _0x1278c6=_0x258dde[_0x1624('0x1d')],_0x5bd157=_0x258dde['plugins']['get'](_0x1624('0x12'));_0x5bd157['_descriptionFactory']['registerElementLabel'](_0x1624('0x10'),_0x2414ef=>_0x3febab(_0x1278c6,'ELEMENT_PARAGRAPH',_0x2414ef)),_0x5bd157['enableCommand'](_0x1624('0x10'),(_0x555305,_0x297a6b={})=>{const _0x4643c8=_0x258dde[_0x1624('0xf')][_0x1624('0x8')],_0xe157e3=_0x297a6b[_0x1624('0x38')]||_0x4643c8[_0x1624('0x38')],_0x23d6aa=Array[_0x1624('0x4')](_0xe157e3['getSelectedBlocks']())[_0x1624('0x2c')](_0x2f9066=>function(_0x1b55e1,_0xe2fa23){return _0xe2fa23[_0x1624('0x1b')](_0x1b55e1[_0x1624('0x26')],_0x1624('0x10'))&&!_0xe2fa23['isObject'](_0x1b55e1)&&_0x1624('0x10')!=_0x1b55e1[_0x1624('0x1c')];}(_0x2f9066,this['editor']['model'][_0x1624('0x28')]));_0x258dde[_0x1624('0xf')][_0x1624('0x0')](()=>{for(const _0x3a093b of _0x23d6aa)_0x5bd157[_0x1624('0x7')](_0x3a093b,{'commandName':_0x1624('0x10'),'commandParams':[],'formatGroupId':_0x1624('0x33')},_0xd915(_0x3a093b));});}),_0x5bd157[_0x1624('0x36')][_0x1624('0x37')](_0x432b92=>{const {data:_0x58667d}=_0x432b92;if(_0x58667d&&_0x1624('0x10')==_0x58667d[_0x1624('0x21')])return{'type':_0x1624('0x29'),'content':_0x3febab(_0x1278c6,_0x1624('0x32'),_0x3febab(_0x1278c6,'ELEMENT_PARAGRAPH'))};}),_0x5bd157[_0x1624('0x2')](_0x1624('0xc')),_0x258dde[_0x1624('0xe')]['downcastDispatcher']['on'](_0x1624('0x20'),ar(_0x258dde),{'priority':_0x1624('0x24')}),_0x258dde[_0x1624('0x1a')][_0x1624('0x2d')]['on'](_0x1624('0x20'),(_0x3d7b71,_0x3a5156,_0x464406)=>{_0x464406[_0x1624('0x19')][_0x1624('0xa')]&&ar(_0x258dde,{'showActiveMarker':!0x1})(_0x3d7b71,_0x3a5156,_0x464406);},{'priority':_0x1624('0x24')});const _0x5a9189=_0x5bd157[_0x1624('0x36')];_0x5a9189[_0x1624('0x37')](_0x409791=>{if(_0x1624('0x15')!==_0x409791[_0x1624('0x13')])return;const {start:_0x1fcd71,end:_0x106df5}=_0x409791[_0x1624('0x2a')]();if(!_0x1fcd71[_0x1624('0x18')](_0x106df5)||!_0x1fcd71['nodeAfter'])return;const _0x131d99=_0x258dde[_0x1624('0xf')][_0x1624('0x28')],_0x97366d=_0x1fcd71[_0x1624('0x6')];return _0x131d99[_0x1624('0x5')](_0x97366d)&&!_0x131d99[_0x1624('0x1')](_0x97366d)&&_0x131d99[_0x1624('0x1b')](_0x97366d,'$text')?{'type':_0x1624('0x15'),'content':_0x3febab(_0x1278c6,_0x1624('0x11'),_0x5a9189[_0x1624('0x27')](_0x97366d,0x1))}:void 0x0;});}}function ar(_0x2cbb4f,{showActiveMarker:_0xba4895=!0x0}={}){return(_0x4151a1,_0xe76267,_0x42baf7)=>{const _0x5ea3ff=_0x2cbb4f[_0x1624('0xd')][_0x1624('0x17')](_0x1624('0x12')),_0x4a4893=_0xe76267[_0x1624('0x1e')][_0x1624('0x2f')],_0x94f9bd=_0xe76267[_0x1624('0x1e')][_0x1624('0x23')],_0x5838a0=_0x2cbb4f[_0x1624('0xf')][_0x1624('0x28')];if(!_0x4a4893[_0x1624('0x18')](_0x94f9bd)||!_0x4a4893[_0x1624('0x6')])return;const _0x526f62=_0x4a4893[_0x1624('0x6')];if(_0x5838a0['isBlock'](_0x526f62)&&!_0x5838a0[_0x1624('0x1')](_0x526f62)&&_0x5838a0[_0x1624('0x1b')](_0x526f62,'$text')){if(!_0x42baf7[_0x1624('0x9')][_0x1624('0x35')](_0xe76267['markerRange'],_0x4151a1[_0x1624('0x1c')]))return;const _0x1f0a87=_0x42baf7['writer'][_0x1624('0x16')]('span',{'class':_0x1624('0x3')}),_0xdc0b55=_0x42baf7['mapper'][_0x1624('0x2b')](_0x94f9bd);_0xba4895&&_0x5ea3ff[_0x1624('0x31')]['includes'](_0xe76267[_0x1624('0x30')])&&_0x42baf7[_0x1624('0xb')][_0x1624('0x14')]('ck-suggestion-marker--active',_0x1f0a87),_0x42baf7[_0x1624('0xb')][_0x1624('0x1f')](_0xdc0b55,_0x1f0a87),_0x42baf7[_0x1624('0x2e')]['bindElementToMarker'](_0x1f0a87,_0xe76267[_0x1624('0x30')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1702=['getItems','has','change','isCollapsed','createRangeOn','commandName','getAttributes','RemoveFormatEditing','editor','selection','TrackChangesEditing','enableCommand','get','getRanges','format','plugins','from','removeFormat','locale','registerDescriptionCallback','afterInit','getAttributeProperties','model','markInlineFormat','_descriptionFactory','*Remove\x20all\x20formatting*'];(function(_0x14d7ac,_0x170293){const _0x3d10a4=function(_0x233614){while(--_0x233614){_0x14d7ac['push'](_0x14d7ac['shift']());}};_0x3d10a4(++_0x170293);}(_0x1702,0x69));const _0x3d10=function(_0x14d7ac,_0x170293){_0x14d7ac=_0x14d7ac-0x0;let _0x3d10a4=_0x1702[_0x14d7ac];return _0x3d10a4;};import{Plugin as _0x2bf92d}from'ckeditor5/src/core';import{getTranslation as _0x4684e0}from'../utils/common-translations';export default class ht extends _0x2bf92d{[_0x3d10('0x13')](){const _0x5919c5=this[_0x3d10('0x7')];if(!_0x5919c5[_0x3d10('0xe')][_0x3d10('0x0')](_0x3d10('0x6')))return;const _0x397486=_0x5919c5[_0x3d10('0xe')][_0x3d10('0xb')](_0x3d10('0x9'));_0x397486[_0x3d10('0xa')]('removeFormat',_0x4a664e=>{const _0x34f28a=_0x5919c5[_0x3d10('0x15')]['document'][_0x3d10('0x8')];_0x34f28a[_0x3d10('0x2')]?_0x4a664e():_0x5919c5[_0x3d10('0x15')][_0x3d10('0x1')](()=>{const _0xecfb27=Array[_0x3d10('0xf')](_0x34f28a[_0x3d10('0xc')]());for(const _0x4725d8 of _0xecfb27)for(const _0x5b6e84 of _0x4725d8[_0x3d10('0x19')]())eo(_0x5b6e84,_0x5919c5[_0x3d10('0x15')]['schema'])&&_0x397486[_0x3d10('0x16')](_0x5919c5['model'][_0x3d10('0x3')](_0x5b6e84),{'commandName':_0x3d10('0x10'),'commandParams':[]});});}),_0x397486[_0x3d10('0x17')][_0x3d10('0x12')](_0x3c7c85=>{const {data:_0xd51894}=_0x3c7c85;if(_0xd51894&&'removeFormat'==_0xd51894[_0x3d10('0x4')])return{'type':_0x3d10('0xd'),'content':_0x4684e0(_0x5919c5[_0x3d10('0x11')],_0x3d10('0x18'))};});}}function eo(_0x5b1d54,_0xed5ca1){for(const [_0x2c5bfa]of _0x5b1d54[_0x3d10('0x5')]()){const _0x4c5b50=_0xed5ca1[_0x3d10('0x14')](_0x2c5bfa);if(_0x4c5b50&&_0x4c5b50['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1816=['enableCommand','TrackChangesEditing','editor','discardSelectedSuggestions','RestrictedEditingModeEditing','discardSuggestion','acceptAllSuggestions','afterInit','acceptSelectedSuggestions','trackChanges','get','discardAllSuggestions','goToNextRestrictedEditingException','plugins','goToPreviousRestrictedEditingException'];(function(_0x1d0c48,_0x181611){const _0x73cd4e=function(_0x49ddf2){while(--_0x49ddf2){_0x1d0c48['push'](_0x1d0c48['shift']());}};_0x73cd4e(++_0x181611);}(_0x1816,0xde));const _0x73cd=function(_0x1d0c48,_0x181611){_0x1d0c48=_0x1d0c48-0x0;let _0x73cd4e=_0x1816[_0x1d0c48];return _0x73cd4e;};import{Plugin as _0x323dbc}from'ckeditor5/src/core';export default class ut extends _0x323dbc{[_0x73cd('0xa')](){const _0x5b6095=this[_0x73cd('0x5')];if(!_0x5b6095[_0x73cd('0x1')]['has'](_0x73cd('0x7')))return;const _0x418bd8=_0x5b6095[_0x73cd('0x1')][_0x73cd('0xd')](_0x73cd('0x4'));_0x418bd8[_0x73cd('0x3')](_0x73cd('0x2')),_0x418bd8[_0x73cd('0x3')](_0x73cd('0x0'));const _0x2339d2=_0x5b6095['plugins'][_0x73cd('0xd')]('RestrictedEditingModeEditing');_0x2339d2['enableCommand'](_0x73cd('0xc')),_0x2339d2[_0x73cd('0x3')]('acceptSuggestion'),_0x2339d2[_0x73cd('0x3')](_0x73cd('0x8')),_0x2339d2[_0x73cd('0x3')](_0x73cd('0x9')),_0x2339d2[_0x73cd('0x3')](_0x73cd('0xe')),_0x2339d2[_0x73cd('0x3')](_0x73cd('0xb')),_0x2339d2[_0x73cd('0x3')](_0x73cd('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ddc=['markerName','downcastDispatcher','high','bindElementToMarker','showSuggestionHighlights','span','plugins','addClass','_descriptionFactory','addMarker:suggestion','split','mapper','ck-suggestion-marker-','addMarker:suggestion:deletion','ck-suggestion-marker--active','includes','model','init','writer','ELEMENT_LINE_BREAK','softBreak','shiftEnter','insert','get','merge','enableCommand','data','options','activeMarkers','consumable','test','locale','editing','element','name','createPositionBefore','markerRange','deletion','requires'];(function(_0x32cba0,_0x4ddca2){const _0x52ce17=function(_0x382b76){while(--_0x382b76){_0x32cba0['push'](_0x32cba0['shift']());}};_0x52ce17(++_0x4ddca2);}(_0x4ddc,0x139));const _0x52ce=function(_0x32cba0,_0x4ddca2){_0x32cba0=_0x32cba0-0x0;let _0x52ce17=_0x4ddc[_0x32cba0];return _0x52ce17;};import{Plugin as _0x1b5baf}from'ckeditor5/src/core';import{ShiftEnter as _0x259628}from'ckeditor5/src/enter';import{getTranslation as _0xdc463d}from'../utils/common-translations';export default class ft extends _0x1b5baf{static get[_0x52ce('0x25')](){return[_0x259628];}[_0x52ce('0x10')](){const _0x303321=this['editor'],_0x1a97f1=_0x303321[_0x52ce('0x5')][_0x52ce('0x16')]('TrackChangesEditing');_0x1a97f1[_0x52ce('0x18')](_0x52ce('0x14')),_0x303321['editing'][_0x52ce('0x0')]['on']('addMarker:suggestion:insertion',re(_0x303321),{'priority':_0x52ce('0x1')}),_0x303321[_0x52ce('0x1f')]['downcastDispatcher']['on'](_0x52ce('0xc'),re(_0x303321),{'priority':_0x52ce('0x1')}),_0x303321[_0x52ce('0x19')]['downcastDispatcher']['on'](_0x52ce('0x8'),(_0x428143,_0x5478dd,_0x9545c)=>{_0x9545c[_0x52ce('0x1a')][_0x52ce('0x3')]&&re(_0x303321,{'showActiveMarker':!0x1})(_0x428143,_0x5478dd,_0x9545c);}),_0x1a97f1[_0x52ce('0x7')]['registerElementLabel'](_0x52ce('0x13'),_0x5c0c26=>_0xdc463d(_0x303321[_0x52ce('0x1e')],_0x52ce('0x12'),_0x5c0c26));}}function re(_0x34e2ec,{showActiveMarker:_0x20fa78=!0x0}={}){return(_0x26b1ee,_0x54d437,_0x46bb3a)=>{const _0x84b158=_0x34e2ec[_0x52ce('0x5')][_0x52ce('0x16')]('TrackChangesEditing');if(!_0x46bb3a[_0x52ce('0x1c')][_0x52ce('0x1d')](_0x54d437['markerRange'],_0x26b1ee[_0x52ce('0x21')]))return;const _0x304ac9=_0x34e2ec[_0x52ce('0xf')];for(const _0x2c640b of _0x54d437[_0x52ce('0x23')]['getItems']()){if(!_0x2c640b['is'](_0x52ce('0x20'),_0x52ce('0x13')))continue;const _0x19ed0f=_0x52ce('0x24')==_0x54d437[_0x52ce('0x26')][_0x52ce('0x9')](':')[0x1]?_0x52ce('0x17'):'split',_0x153732=_0x46bb3a[_0x52ce('0x11')]['createUIElement'](_0x52ce('0x4'),{'class':_0x52ce('0xb')+_0x19ed0f}),_0x5ed0ff=_0x46bb3a[_0x52ce('0xa')]['toViewPosition'](_0x304ac9[_0x52ce('0x22')](_0x2c640b));_0x20fa78&&_0x84b158[_0x52ce('0x1b')][_0x52ce('0xe')](_0x54d437[_0x52ce('0x26')])&&_0x46bb3a[_0x52ce('0x11')][_0x52ce('0x6')](_0x52ce('0xd'),_0x153732),_0x46bb3a[_0x52ce('0x11')][_0x52ce('0x15')](_0x5ed0ff,_0x153732),_0x46bb3a[_0x52ce('0xa')][_0x52ce('0x2')](_0x153732,_0x54d437[_0x52ce('0x26')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa9d3=['has','markInlineFormat','selection','document','commandParams','commandName','commands','forceValue','locale','from','get','change','StandardEditingModeEditing','model','TrackChangesEditing','registerDescriptionCallback','afterInit','FORMAT_RESTRICTED_DISABLED','enableCommand','value','editor','_descriptionFactory','plugins'];(function(_0x5882de,_0xa9d31e){const _0x22b775=function(_0x168aa2){while(--_0x168aa2){_0x5882de['push'](_0x5882de['shift']());}};_0x22b775(++_0xa9d31e);}(_0xa9d3,0x1d8));const _0x22b7=function(_0x5882de,_0xa9d31e){_0x5882de=_0x5882de-0x0;let _0x22b775=_0xa9d3[_0x5882de];return _0x22b775;};import{Plugin as _0x3faba6}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x3d693d}from'./utils';import{getTranslation as _0x2d0be3}from'../utils/common-translations';export default class lt extends _0x3faba6{[_0x22b7('0x4')](){const _0x2d7d43=this[_0x22b7('0x8')],_0x5cdc72=_0x2d7d43[_0x22b7('0x1')],_0x2106b7=_0x2d7d43[_0x22b7('0x13')];if(!_0x2d7d43['plugins'][_0x22b7('0xb')](_0x22b7('0x0')))return;const _0x308329=_0x2d7d43[_0x22b7('0xa')][_0x22b7('0x15')](_0x22b7('0x2')),_0x1415ff='restrictedEditingException',_0x10b9dd=_0x2d7d43[_0x22b7('0x11')]['get'](_0x1415ff);_0x308329[_0x22b7('0x6')](_0x1415ff,(_0x23fa9f,_0x140745={})=>{const _0xd30cfb=_0x5cdc72[_0x22b7('0xe')][_0x22b7('0xd')];if(_0xd30cfb['isCollapsed'])return void _0x23fa9f(_0x140745);const _0x351c87=void 0x0!==_0x140745['forceValue']?_0x140745[_0x22b7('0x12')]:!_0x10b9dd[_0x22b7('0x7')];_0x5cdc72[_0x22b7('0x16')](()=>{const _0x5c1505=Array[_0x22b7('0x14')](_0xd30cfb['getRanges']());for(const _0x294526 of _0x5c1505){const _0x354853=_0x351c87?[_0x294526]:_0x3d693d(_0x1415ff,_0x294526,_0x5cdc72);for(const _0x528afa of _0x354853)_0x308329[_0x22b7('0xc')](_0x528afa,{'commandName':_0x1415ff,'commandParams':[{'forceValue':_0x351c87}]});}});}),_0x308329[_0x22b7('0x9')][_0x22b7('0x3')](_0x4445fd=>{const {data:_0x5513c7}=_0x4445fd;if(_0x5513c7&&_0x5513c7[_0x22b7('0x10')]==_0x1415ff)return _0x5513c7[_0x22b7('0xf')][0x0]['forceValue']?{'type':'format','content':_0x2d0be3(_0x2106b7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':_0x2d0be3(_0x2106b7,_0x22b7('0x5'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa014=['format','isBlock','getItems','style','style.definitions','*Remove\x20format:*\x20%0','enableCommand','inline','TrackChangesEditing','model','from','_getStyleDefinition','get','push','commands','plugins','getRanges','style:','every','Style','DataSchema','change','toLowerCase','add','_getRangesWithClasses','name','commandName','document','element','config','enabledStyles','registerDescriptionCallback','find','StyleUtils','normalizeConfig','createRangeOn','forceValue','styleName','block','isCollapsed','has','includes','commandParams'];(function(_0x2addaa,_0xa014d1){const _0x53bbaa=function(_0x86e657){while(--_0x86e657){_0x2addaa['push'](_0x2addaa['shift']());}};_0x53bbaa(++_0xa014d1);}(_0xa014,0x118));const _0x53bb=function(_0x2addaa,_0xa014d1){_0x2addaa=_0x2addaa-0x0;let _0x53bbaa=_0xa014[_0x2addaa];return _0x53bbaa;};import{Plugin as _0x14f493}from'ckeditor5/src/core';import{getTranslation as _0x50908e}from'../utils/common-translations';export default class gt extends _0x14f493{['afterInit'](){const _0x25c88b=this['editor'];if(!_0x25c88b[_0x53bb('0x24')][_0x53bb('0x12')](_0x53bb('0x28')))return;const _0x431a22=_0x25c88b[_0x53bb('0x23')]['get'](_0x53bb('0x18')),_0x48682e=_0x25c88b[_0x53bb('0x24')][_0x53bb('0x21')](_0x53bb('0x1d')),_0x37afe3=_0x25c88b['locale'],_0x333611=_0x25c88b['plugins']['get'](_0x53bb('0x29')),_0x14db47=_0x25c88b[_0x53bb('0x24')][_0x53bb('0x21')](_0x53bb('0xb'))[_0x53bb('0xc')](_0x333611,_0x25c88b[_0x53bb('0x7')][_0x53bb('0x21')](_0x53bb('0x19')));_0x48682e[_0x53bb('0x1b')](_0x53bb('0x18'),(_0x4d2fa6,{styleName:_0x22169f})=>{const _0x15ca1b=_0x25c88b['model'][_0x53bb('0x5')]['selection'],_0x2b7fbc=this['_getStyleDefinition'](_0x22169f,_0x14db47);if(!_0x2b7fbc)return;if(!_0x431a22[_0x53bb('0x8')][_0x53bb('0x13')](_0x22169f))return;if(_0x15ca1b[_0x53bb('0x11')]&&!_0x2b7fbc[_0x53bb('0x16')])return void _0x4d2fa6({'styleName':_0x22169f});const _0x393395=!_0x431a22['value'][_0x53bb('0x13')](_0x2b7fbc[_0x53bb('0x3')]);if(_0x2b7fbc[_0x53bb('0x16')]){const _0x43fdda=function(_0x5ad113,_0x11e539){const _0x36b5af=new Set();for(const _0x111a57 of _0x5ad113){const _0x4a85f7=_0x111a57['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x3e8ace of _0x4a85f7)if(_0x11e539[_0x53bb('0x13')](_0x3e8ace[_0x53bb('0x3')])){_0x36b5af[_0x53bb('0x1')](_0x3e8ace);break;}}return _0x36b5af;}(_0x15ca1b['getSelectedBlocks'](),_0x2b7fbc['modelElements']);_0x25c88b[_0x53bb('0x1e')]['change'](()=>{for(const _0x47662c of _0x43fdda)_0x48682e['markBlockFormat'](_0x47662c,{'commandName':_0x53bb('0x18'),'commandParams':[{'styleName':_0x22169f,'forceValue':_0x393395}],'formatGroupId':_0x53bb('0x26')+_0x22169f});});}else{let _0x2ccab1=Array[_0x53bb('0x1f')](_0x15ca1b[_0x53bb('0x25')]());if(!_0x393395){const _0x3d5c0a=Array[_0x53bb('0x1f')](_0x333611['getDefinitionsForView'](_0x2b7fbc[_0x53bb('0x6')],!0x1))[0x0]['model'],_0x3d71c6=[];for(const _0x23cf0f of _0x2ccab1){const _0x59004c=this[_0x53bb('0x2')](_0x25c88b[_0x53bb('0x1e')],_0x23cf0f,_0x2b7fbc['classes'],_0x3d5c0a);_0x3d71c6[_0x53bb('0x22')](..._0x59004c);}_0x2ccab1=_0x3d71c6;}_0x25c88b[_0x53bb('0x1e')][_0x53bb('0x2a')](()=>{for(const _0x4c0cf9 of _0x2ccab1)_0x48682e['markInlineFormat'](_0x4c0cf9,{'commandName':_0x53bb('0x18'),'commandParams':[{'styleName':_0x22169f,'forceValue':_0x393395}]});});}}),_0x48682e['_descriptionFactory'][_0x53bb('0x9')](_0x2e3a5f=>{const {data:_0x176eb2}=_0x2e3a5f;if(_0x176eb2&&_0x53bb('0x18')===_0x176eb2[_0x53bb('0x4')])return _0x176eb2[_0x53bb('0x14')][0x0][_0x53bb('0xe')]?{'type':_0x53bb('0x15'),'content':_0x50908e(_0x37afe3,'*Format:*\x20%0',_0x176eb2[_0x53bb('0x14')][0x0][_0x53bb('0xf')][_0x53bb('0x0')]())}:{'type':_0x53bb('0x15'),'content':_0x50908e(_0x37afe3,_0x53bb('0x1a'),_0x176eb2[_0x53bb('0x14')][0x0][_0x53bb('0xf')][_0x53bb('0x0')]())};});}[_0x53bb('0x20')](_0x428741,_0x4f2dc5){let _0x5d9233=_0x4f2dc5[_0x53bb('0x10')][_0x53bb('0xa')](_0x1703f5=>_0x1703f5[_0x53bb('0x3')]===_0x428741);return _0x5d9233||(_0x5d9233=_0x4f2dc5[_0x53bb('0x1c')][_0x53bb('0xa')](_0x461233=>_0x461233['name']===_0x428741)),_0x5d9233;}['_getRangesWithClasses'](_0xced3e9,_0x151c71,_0x2b658c,_0x10d756){const _0x4a63d4=[];for(const _0x162c99 of _0x151c71[_0x53bb('0x17')]()){const _0x473329=_0x162c99['getAttribute'](_0x10d756);_0x473329&&(_0x2b658c[_0x53bb('0x27')](_0x3c5134=>_0x473329['classes'][_0x53bb('0x13')](_0x3c5134))&&_0x4a63d4[_0x53bb('0x22')](_0xced3e9[_0x53bb('0xd')](_0x162c99)));}return _0x4a63d4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xd210=['insertTableColumnLeft','change:data','enqueueChange','detach','removeTableColumn','substr','hasAttribute','ELEMENT_TABLE','selection','_descriptionFactory','_setupColumnsRowsFixing','nodeAfter','$graveyard','removeTableRow','*Insert:*\x20%0','isIntersectingWithRange','registerCustomCallback','_tableSuggestions','position','getChanges','getSelectionAffectedTableCells','rootName','insertTableColumnRight','has','type','createRangeOn','registerDescriptionCallback','showSuggestionHighlights','root','maxColumn','getRowIndexes','maxRow','subType','table','join','_acceptFormatSuggestionCallbackFactory','MIN_SAFE_INTEGER','document','name','_splitMarkerName','*Remove:*\x20%0','setSelection','createRangeIn','tableRow','add','execute','isInContent','last','model','markMultiRangeDeletion','suggestion','fromRange','colspan','deletion','TableUtils','insertTableRowAbove','addClass','start','getChildren','downcastDispatcher','batch','MAX_SAFE_INTEGER','isTouching','insert','filter','length','createPositionAt','plugins','findAncestor','differ','tablePaste','getCellLocation','get','end','addRange','markMultiRangeInsertion','cell','left','_getCoordsForCells','above','_tablePostFixingSubtypes','options','selectTableColumn','every','getColumnIndexes','toViewElement','push','min','enableCommand','order','classes','ELEMENT_TABLE_ROW_WITH_TEXT','registerElementLabel','tableCell','writer','max','refresh','ELEMENT_TABLE_WITH_TEXT','rowspan','nodeBefore','minColumn','tableColumn','from','getAttribute','first','$textProxy','afterInit','addMarker:suggestion','oldRange','getRanges','minRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','_getSuggestionCoords','removeClass','getItems','TrackChangesEditing','locale','data','editor','toLowerCase','ELEMENT_TABLE_ROW','insertTable','isEqual','ELEMENT_TABLE_COLUMN','includes','_suggestionFactory','getContainedElement','commands','insertion','span','insertTableRowBelow','discard','createTableWalker','change','values','map','TableEditing','getFirstRange','some'];(function(_0x248efb,_0xd2101c){const _0xf326cf=function(_0x3e7a50){while(--_0x3e7a50){_0x248efb['push'](_0x248efb['shift']());}};_0xf326cf(++_0xd2101c);}(_0xd210,0xfd));const _0xf326=function(_0x248efb,_0xd2101c){_0x248efb=_0x248efb-0x0;let _0xf326cf=_0xd210[_0x248efb];return _0xf326cf;};import{Plugin as _0x500636}from'ckeditor5/src/core';import{LiveRange as _0x62383e}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2b935e}from'ckeditor5/src/widget';import{getTranslation as _0x143fc6}from'../utils/common-translations';export default class mt extends _0x500636{constructor(_0x2e2aae){super(_0x2e2aae),this[_0xf326('0x69')]=[_0xf326('0x44'),_0xf326('0x7e')],this[_0xf326('0x2a')]=new Set();}[_0xf326('0x83')](){const _0x41537d=this[_0xf326('0x4')],_0x3c8887=_0x41537d[_0xf326('0x49')][_0xf326('0x3e')]['selection'];if(!_0x41537d[_0xf326('0x5c')][_0xf326('0x30')](_0xf326('0x16')))return;const _0x4cb8af=_0x41537d[_0xf326('0x2')],_0x4c23b2=_0x41537d[_0xf326('0x5c')][_0xf326('0x61')](_0xf326('0x1')),_0x39c7d9=_0x41537d['plugins'][_0xf326('0x61')](_0xf326('0x4f'));_0x4c23b2[_0xf326('0x22')][_0xf326('0x75')](_0xf326('0x3a'),_0x15f74a=>_0x143fc6(_0x4cb8af,_0xf326('0x20'),_0x15f74a)),this[_0xf326('0x23')](),_0x4c23b2[_0xf326('0x71')](_0xf326('0x7')),_0x4c23b2[_0xf326('0x71')]('selectTableRow'),_0x4c23b2[_0xf326('0x71')](_0xf326('0x6b'));for(const _0x8b8b42 of[_0xf326('0x50'),_0xf326('0x10')]){const _0xb2f299=_0x41537d[_0xf326('0xd')][_0xf326('0x61')](_0x8b8b42);_0x4c23b2[_0xf326('0x71')](_0x8b8b42,_0x404db7=>{_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0xe44db=>{_0x404db7();const _0x28064f=_0xf326('0x68')===_0xb2f299[_0xf326('0x72')],_0x453786=_0x39c7d9[_0xf326('0x2d')](_0x3c8887),_0x1b8305=_0x39c7d9[_0xf326('0x37')](_0x453786),_0x47515d=_0x28064f?_0x1b8305[_0xf326('0x81')]-0x1:_0x1b8305[_0xf326('0x48')]+0x1,_0x5305e0=_0x453786[0x0][_0xf326('0x5d')](_0xf326('0x3a')),_0x22dc7f=_0x39c7d9[_0xf326('0x12')](_0x5305e0,{'startRow':_0x47515d,'endRow':_0x47515d}),_0x16edb7=Array[_0xf326('0x7f')](_0x22dc7f)[_0xf326('0x15')](_0x59e01f=>_0xe44db[_0xf326('0x32')](_0x59e01f[_0xf326('0x65')]));_0x4c23b2['markMultiRangeInsertion'](_0x16edb7,_0xf326('0x44'));});});}for(const _0xee7e14 of[_0xf326('0x19'),_0xf326('0x2f')]){const _0x592f56=_0x41537d['commands']['get'](_0xee7e14);_0x4c23b2[_0xf326('0x71')](_0xee7e14,_0x5e8837=>{_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0x24195f=>{_0x5e8837();const _0x405e53=_0xf326('0x66')===_0x592f56[_0xf326('0x72')],_0x490f7a=_0x39c7d9[_0xf326('0x2d')](_0x3c8887),_0x35dc36=_0x39c7d9[_0xf326('0x6d')](_0x490f7a),_0x170c73=_0x405e53?_0x35dc36[_0xf326('0x81')]-0x1:_0x35dc36['last']+0x1,_0x1e9e15=_0x490f7a[0x0][_0xf326('0x5d')](_0xf326('0x3a')),_0x1471cd=_0x39c7d9[_0xf326('0x12')](_0x1e9e15,{'startRow':0x0,'column':_0x170c73,'includeAllSlots':!0x1}),_0x53eb06=Array[_0xf326('0x7f')](_0x1471cd)[_0xf326('0x15')](_0xe465a3=>_0x24195f[_0xf326('0x32')](_0xe465a3[_0xf326('0x65')]));_0x4c23b2[_0xf326('0x64')](_0x53eb06,_0xf326('0x7e'));});});}for(const _0x25df25 of[_0xf326('0x26'),_0xf326('0x1d')]){const _0x3c56fb=_0x25df25['substr'](0xb),_0x3456bf=_0x3c56fb[_0xf326('0x5')](),_0x5c80d9=_0x3456bf['substr'](0x0,0x3)+_0xf326('0xf'),_0x4be89b='table'+_0x3c56fb,_0x29a828=_0xf326('0x70')+_0x3c56fb,_0x46198a=_0xf326('0x78')+_0x3c56fb;_0x4c23b2[_0xf326('0x71')](_0x25df25,()=>{_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0x29a3b0=>{const _0x5d2442=_0x39c7d9[_0xf326('0x2d')](_0x3c8887),_0x5ef197=_0x5d2442[0x0][_0xf326('0x5d')](_0xf326('0x3a'));let _0x59a2e8;if(_0xf326('0x26')==_0x25df25){const _0x255482=_0x39c7d9[_0xf326('0x37')](_0x5d2442);_0x59a2e8={'startRow':_0x255482[_0xf326('0x81')],'endRow':_0x255482['last'],'includeAllSlots':!0x0};}else{const _0x374e24=_0x39c7d9['getColumnIndexes'](_0x5d2442);_0x59a2e8={'startColumn':_0x374e24['first'],'endColumn':_0x374e24[_0xf326('0x48')],'includeAllSlots':!0x0};}const _0x55d12e=_0x39c7d9[_0xf326('0x12')](_0x5ef197,_0x59a2e8),_0x458f5f=Array['from'](_0x55d12e)[_0xf326('0x15')](({cell:_0x459a46})=>_0x459a46),_0x4e4d87=se(_0x458f5f['filter'](_0x1b4476=>_0x1b4476['hasAttribute'](_0x5c80d9))),_0x33b553=se(_0x458f5f[_0xf326('0x59')](_0x3ae4d7=>!_0x3ae4d7['hasAttribute'](_0x5c80d9)))[_0xf326('0x15')](_0x56c94f=>_0x29a3b0['createRangeOn'](_0x56c94f)),_0x34f95c=_0x4c23b2[_0xf326('0x4a')](_0x33b553,_0x4be89b);if(_0x34f95c&&(_0xf326('0x44')==_0x34f95c[_0xf326('0x39')]||'tableColumn'==_0x34f95c[_0xf326('0x39')])){const _0x29e6ab=this[_0xf326('0x89')](_0x34f95c);for(const _0xfe2c2a of _0x4e4d87){const _0x3115ba=_0x29a3b0[_0xf326('0x32')](_0xfe2c2a),_0x43ed5b=_0x39c7d9['getCellLocation'](_0xfe2c2a),_0x347c6d=_0xfe2c2a[_0xf326('0x80')](_0x5c80d9)-0x1,_0x44098a=_0x29e6ab[_0x29a828],_0x190cbb=_0x29e6ab[_0x46198a];_0x44098a<=_0x43ed5b[_0x3456bf]&&_0x43ed5b[_0x3456bf]+_0x347c6d<=_0x190cbb&&_0x34f95c[_0xf326('0x63')](_0x3115ba);}}});});}function _0xc1579e(_0x3b33a2){const _0x4e9d69=Array['from'](_0x3c8887[_0xf326('0x86')]())[_0xf326('0x15')](_0x190d9e=>_0x62383e[_0xf326('0x4c')](_0x190d9e));_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0x565260=>{const _0x17135c=_0x565260[_0xf326('0x55')];_0x3b33a2=_0x3b33a2[_0xf326('0x59')](_0x3f1f9c=>_0xf326('0x25')!=_0x3f1f9c[_0xf326('0x35')]['rootName']),_0x565260[_0xf326('0x42')](_0x3b33a2),_0x41537d['commands']['get']('removeTableRow')[_0xf326('0x79')](),_0x41537d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41537d[_0xf326('0x49')][_0xf326('0x1b')](()=>{_0x41537d[_0xf326('0x49')]['enqueueChange'](_0x17135c,_0x568cfb=>{const _0x2107ec=_0x4e9d69[_0xf326('0x59')](_0x34efb6=>_0xf326('0x25')!=_0x34efb6[_0xf326('0x35')][_0xf326('0x2e')]);_0x2107ec['length']>0x0&&_0x568cfb[_0xf326('0x42')](_0x2107ec);for(const _0x32b328 of _0x4e9d69)_0x32b328[_0xf326('0x1c')]();});});});}function _0x129051(_0x148bd7){_0x41537d[_0xf326('0x49')]['change'](_0x53adae=>{const _0x1b298=Array[_0xf326('0x7f')](_0x3c8887[_0xf326('0x86')]())['map'](_0x3d8080=>_0x62383e['fromRange'](_0x3d8080)),_0x1d8438=[];for(const _0x1d3c00 of _0x148bd7)for(const _0x116025 of _0x1d3c00['getItems']({'shallow':!0x0}))_0x1d8438[_0xf326('0x6f')](_0x116025);for(const _0x33bf58 of _0x1d8438)_0xf326('0x25')!=_0x33bf58[_0xf326('0x35')][_0xf326('0x2e')]&&(_0x53adae[_0xf326('0x42')](_0x53adae[_0xf326('0x5b')](_0x33bf58,0x0)),_0x41537d[_0xf326('0xd')]['get'](_0xf326('0x1d'))[_0xf326('0x79')](),_0x41537d[_0xf326('0x46')](_0xf326('0x1d'),{'forceDefaultExecution':!0x0}));const _0x1cb8cc=_0x1b298[_0xf326('0x59')](_0x34344e=>_0xf326('0x25')!=_0x34344e[_0xf326('0x35')][_0xf326('0x2e')]);_0x1cb8cc[_0xf326('0x5a')]>0x0&&_0x53adae[_0xf326('0x42')](_0x1cb8cc);for(const _0x293f3c of _0x1b298)_0x293f3c['detach']();});}function _0x357f3e(_0x340b63,_0x4a47b4){return _0x4a47b4[_0xf326('0x6c')](_0x51a58e=>_0x340b63[_0xf326('0x18')](_0x28e503=>_0x28e503[_0xf326('0x62')]['isEqual'](_0x51a58e[_0xf326('0x52')])||_0x51a58e['end'][_0xf326('0x8')](_0x28e503[_0xf326('0x52')])));}function _0x54edcd(_0x34d229,_0x12f23a){return _0x34d229[_0xf326('0x18')](_0x162bbc=>_0x12f23a['some'](_0x546aa5=>_0x162bbc[_0xf326('0x62')][_0xf326('0x57')](_0x546aa5[_0xf326('0x52')])));}_0x41537d[_0xf326('0x3')][_0xf326('0x54')]['on'](_0xf326('0x84'),(_0x5f26f3,_0x14929e,_0x65d749)=>{if(!_0x65d749[_0xf326('0x6a')][_0xf326('0x34')])return;const _0x5b621f=_0x14929e['item'];if(!_0x5b621f)return;const _0x2874e6=_0x65d749['mapper'][_0xf326('0x6e')](_0x5b621f);function _0x39c1f7(_0x4e0e9f){return Array['isArray'](_0x4e0e9f)?_0x4e0e9f:[_0x4e0e9f];}_0x2874e6&&_0xf326('0x76')===_0x5b621f[_0xf326('0x3f')]&&_0x2b935e(_0x2874e6,_0x65d749[_0xf326('0x77')],(_0x598bc4,_0x51bee7,_0x443d1a)=>_0x443d1a[_0xf326('0x51')](_0x39c1f7(_0x51bee7[_0xf326('0x73')]),_0x598bc4),(_0x595e8d,_0x9660f1,_0xd02d91)=>_0xd02d91[_0xf326('0x8a')](_0x39c1f7(_0x9660f1[_0xf326('0x73')]),_0x595e8d));},{'priority':'highest'}),_0x4c23b2[_0xf326('0x22')]['registerDescriptionCallback'](_0x52f4f0=>{if(_0xf326('0xe')!=_0x52f4f0[_0xf326('0x31')]&&_0xf326('0x4e')!=_0x52f4f0[_0xf326('0x31')])return;const _0x11073d=_0x52f4f0[_0xf326('0xc')]();if(null!=_0x11073d&&_0x11073d['is']('element','table')){if(_0xf326('0xe')==_0x52f4f0[_0xf326('0x31')]){const _0x1f1f22=_0x52f4f0[_0xf326('0x0')]()['filter'](_0x4658b1=>_0x4658b1['is'](_0xf326('0x82')))[_0xf326('0x15')](_0x533f64=>_0x533f64[_0xf326('0x3')]);if(_0x1f1f22[_0xf326('0x5a')])return{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x7a'),'\x22'+_0x1f1f22[_0xf326('0x3b')]('\x20')+'\x22'))};}if(_0xf326('0x4e')==_0x52f4f0[_0xf326('0x31')]){const _0x32b437=_0x52f4f0[_0xf326('0x0')]()[_0xf326('0x59')](_0x50a962=>_0x50a962['is']('$textProxy'))[_0xf326('0x15')](_0x8d0846=>_0x8d0846['data']);if(_0x32b437['length'])return{'type':'deletion','content':_0x143fc6(_0x4cb8af,'*Remove:*\x20%0',_0x143fc6(_0x4cb8af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x32b437[_0xf326('0x3b')]('\x20')+'\x22'))};}}}),_0x4c23b2['_descriptionFactory'][_0xf326('0x33')](_0xf96240=>{if('tableRow'==_0xf96240[_0xf326('0x39')]){const _0x5ee059=_0xf96240[_0xf326('0x0')]()['filter'](_0x48d510=>_0x48d510['is']('$textProxy'))[_0xf326('0x15')](_0x2f1dbf=>_0x2f1dbf[_0xf326('0x3')]),_0x418f57=this[_0xf326('0x89')](_0xf96240),_0x12788b=_0x418f57[_0xf326('0x38')]-_0x418f57[_0xf326('0x87')]+0x1;if(_0xf326('0xe')==_0xf96240[_0xf326('0x31')])return _0x5ee059[_0xf326('0x5a')]?{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x74'),[_0x12788b,'\x22'+_0x5ee059[_0xf326('0x3b')]('\x20')+'\x22']))}:{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x6'),_0x12788b))};if(_0xf326('0x4e')==_0xf96240[_0xf326('0x31')])return _0x5ee059[_0xf326('0x5a')]?{'type':_0xf326('0x4e'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,_0xf326('0x74'),[_0x12788b,'\x22'+_0x5ee059['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,'ELEMENT_TABLE_ROW',_0x12788b))};}if('tableColumn'==_0xf96240[_0xf326('0x39')]){const _0x598573=_0xf96240['getItems']()['filter'](_0x44de1a=>_0x44de1a['is'](_0xf326('0x82')))['map'](_0x5dbb3c=>_0x5dbb3c[_0xf326('0x3')]),_0x1890cc=this[_0xf326('0x89')](_0xf96240),_0x3ed001=_0x1890cc[_0xf326('0x36')]-_0x1890cc[_0xf326('0x7d')]+0x1;if('insertion'==_0xf96240[_0xf326('0x31')])return _0x598573['length']?{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x88'),[_0x3ed001,'\x22'+_0x598573['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x143fc6(_0x4cb8af,'*Insert:*\x20%0',_0x143fc6(_0x4cb8af,_0xf326('0x9'),_0x3ed001))};if(_0xf326('0x4e')==_0xf96240[_0xf326('0x31')])return _0x598573['length']?{'type':_0xf326('0x4e'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,_0xf326('0x88'),[_0x3ed001,'\x22'+_0x598573[_0xf326('0x3b')]('\x20')+'\x22']))}:{'type':_0xf326('0x4e'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,_0xf326('0x9'),_0x3ed001))};}}),_0x4c23b2[_0xf326('0xb')]['registerCustomCallback'](_0xf326('0xe'),_0xf326('0x44'),_0xf326('0x11'),_0xc1579e),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')]('deletion',_0xf326('0x44'),'accept',_0xc1579e),_0x4c23b2[_0xf326('0xb')]['registerCustomCallback'](_0xf326('0xe'),_0xf326('0x7e'),'discard',_0x129051),_0x4c23b2[_0xf326('0xb')]['registerCustomCallback'](_0xf326('0x4e'),'tableColumn','accept',_0x129051),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')](_0xf326('0xe'),_0xf326('0x7e'),_0xf326('0x3b'),_0x357f3e),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')]('deletion',_0xf326('0x7e'),_0xf326('0x3b'),_0x357f3e),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')](_0xf326('0xe'),_0xf326('0x44'),_0xf326('0x3b'),_0x54edcd),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')](_0xf326('0x4e'),_0xf326('0x44'),'join',_0x54edcd);}[_0xf326('0x3c')](){const _0x3e5f27=this[_0xf326('0x4')],_0x4f9603=_0x3e5f27[_0xf326('0x49')][_0xf326('0x3e')][_0xf326('0x21')];return(_0x572c78,_0x3a8808)=>{_0x3e5f27[_0xf326('0x49')]['change'](_0x18f52d=>{const {commandName:_0x32ce16,commandParams:_0x23c043}=_0x3a8808;let _0x522ca0=_0x572c78[0x0][_0xf326('0x62')][_0xf326('0x7c')];_0x23c043&&_0x23c043[0x0]&&!0x1===_0x23c043[0x0]['forceValue']&&(_0x522ca0=_0x572c78[0x0][_0xf326('0x52')][_0xf326('0x24')]);const _0x17c04a=_0x18f52d[_0xf326('0x43')](_0x522ca0);if('$graveyard'==_0x17c04a[_0xf326('0x35')][_0xf326('0x2e')])return;const _0x2fe4ba=Array[_0xf326('0x7f')](_0x4f9603[_0xf326('0x86')]())[_0xf326('0x15')](_0x436f07=>_0x62383e['fromRange'](_0x436f07));_0x18f52d[_0xf326('0x42')](_0x17c04a),_0x3e5f27[_0xf326('0xd')][_0xf326('0x61')](_0x32ce16)[_0xf326('0x79')](),_0x23c043[_0xf326('0x6f')]({'forceDefaultExecution':!0x0}),_0x3e5f27[_0xf326('0x46')](_0x32ce16,..._0x23c043);const _0x354c7c=_0x2fe4ba[_0xf326('0x59')](_0x518f12=>_0xf326('0x25')!=_0x518f12[_0xf326('0x35')][_0xf326('0x2e')]);_0x354c7c[_0xf326('0x5a')]>0x0&&_0x18f52d[_0xf326('0x42')](_0x354c7c);for(const _0x58d6d1 of _0x2fe4ba)_0x58d6d1[_0xf326('0x1c')]();});};}['_getCoordsForCells'](_0x2a257b){const _0x4ae7ba=this[_0xf326('0x4')][_0xf326('0x5c')][_0xf326('0x61')](_0xf326('0x4f'));let _0x169a59=Number[_0xf326('0x56')],_0x28fa12=Number[_0xf326('0x3d')],_0x3b8504=Number[_0xf326('0x56')],_0x6b785=Number[_0xf326('0x3d')];for(const _0x562273 of _0x2a257b){if(_0xf326('0x25')==_0x562273['root'][_0xf326('0x2e')])continue;const {row:_0x57d770,column:_0xe561eb}=_0x4ae7ba[_0xf326('0x60')](_0x562273),_0x3c4515=_0x562273['hasAttribute'](_0xf326('0x7b'))?_0x562273[_0xf326('0x80')](_0xf326('0x7b'))-0x1:0x0,_0x5824e0=_0x562273[_0xf326('0x1f')](_0xf326('0x4d'))?_0x562273['getAttribute'](_0xf326('0x4d'))-0x1:0x0;_0x169a59=_0x57d770<_0x169a59?_0x57d770:_0x169a59,_0x28fa12=_0x57d770+_0x3c4515>_0x28fa12?_0x57d770+_0x3c4515:_0x28fa12,_0x3b8504=_0xe561eb<_0x3b8504?_0xe561eb:_0x3b8504,_0x6b785=_0xe561eb+_0x5824e0>_0x6b785?_0xe561eb+_0x5824e0:_0x6b785;}return{'minRow':_0x169a59,'maxRow':_0x28fa12,'minColumn':_0x3b8504,'maxColumn':_0x6b785};}[_0xf326('0x23')](){const _0x4d064e=this['editor'],_0x3c2577=_0x4d064e[_0xf326('0x5c')]['get']('TrackChangesEditing'),_0x52fa17=_0x4d064e[_0xf326('0x5c')][_0xf326('0x61')](_0xf326('0x4f'));_0x4d064e[_0xf326('0x49')]['document']['on'](_0xf326('0x1a'),()=>{const _0xd098c7=Array[_0xf326('0x7f')](_0x4d064e[_0xf326('0x49')][_0xf326('0x3e')][_0xf326('0x5e')]['getChangedMarkers']());for(const {name:_0x1adb84,data:_0x167e71}of _0xd098c7){const {group:_0x3462e5,id:_0x4f117c,subType:_0xddba1d}=_0x3c2577[_0xf326('0x40')](_0x1adb84);if(_0xf326('0x4b')!=_0x3462e5)continue;if(null!=_0x167e71[_0xf326('0x85')])continue;const _0x164703=_0x3c2577['getSuggestion'](_0x4f117c);this['_tablePostFixingSubtypes'][_0xf326('0xa')](_0xddba1d)&&this[_0xf326('0x2a')][_0xf326('0x45')](_0x164703);}},{'priority':'low'});const _0x125899=(_0x677497,_0x377d46)=>{let _0x4093ac=!0x1;const _0x230ee4=_0x377d46['createRangeOn'](_0x677497),_0xcc7320=_0x677497[_0xf326('0x5d')](_0xf326('0x3a')),_0x636972=_0x52fa17['getCellLocation'](_0x677497);for(const _0x2e37d8 of this[_0xf326('0x2a')]){const _0x1abb56=_0x2e37d8[_0xf326('0x39')],_0x48d337=_0x1abb56['startsWith'](_0xf326('0x5f')),_0xfd9c01=_0x1abb56[_0xf326('0x1e')](_0x48d337?0xa:0x5),_0x321256=_0xfd9c01[_0xf326('0x5')](),_0x65dd94=_0x321256[_0xf326('0x1e')](0x0,0x3)+_0xf326('0xf'),_0x1e6337=_0xf326('0x70')+_0xfd9c01,_0x3dc0ce=_0xf326('0x78')+_0xfd9c01;if(!_0x2e37d8[_0xf326('0x47')])continue;if(_0xcc7320!=_0x2e37d8[_0xf326('0x17')]()[_0xf326('0x52')][_0xf326('0x5d')](_0xf326('0x3a')))continue;if(_0x2e37d8[_0xf326('0x28')](_0x230ee4))continue;const _0x4db28a=_0x677497[_0xf326('0x1f')](_0x65dd94)?_0x677497[_0xf326('0x80')](_0x65dd94)-0x1:0x0,_0x37556c=this[_0xf326('0x89')](_0x2e37d8),_0x4592a3=_0x37556c[_0x1e6337],_0x5a9e3c=_0x37556c[_0x3dc0ce];_0x4592a3<=_0x636972[_0x321256]&&_0x636972[_0x321256]+_0x4db28a<=_0x5a9e3c&&(_0x2e37d8[_0xf326('0x63')](_0x230ee4),_0x4093ac=!0x0);}return _0x4093ac;};_0x4d064e[_0xf326('0x49')]['document']['registerPostFixer'](_0x267a16=>{let _0x4a7191=!0x1;for(const _0x55dd7e of _0x4d064e['model'][_0xf326('0x3e')][_0xf326('0x5e')][_0xf326('0x2c')]())if(_0xf326('0x58')==_0x55dd7e[_0xf326('0x31')]){if(_0xf326('0x44')==_0x55dd7e[_0xf326('0x3f')])for(const _0x59f105 of _0x55dd7e['position'][_0xf326('0x24')][_0xf326('0x53')]())_0x4a7191=_0x4a7191||_0x125899(_0x59f105,_0x267a16);else _0xf326('0x76')==_0x55dd7e['name']&&(_0x4a7191=_0x4a7191||_0x125899(_0x55dd7e[_0xf326('0x2b')][_0xf326('0x24')],_0x267a16));}return _0x4a7191;});}[_0xf326('0x89')](_0x11c5ca){return this[_0xf326('0x67')](_0x11c5ca['getRanges']()[_0xf326('0x15')](_0x10d3b3=>_0x10d3b3['start'][_0xf326('0x24')]));}}function se(_0x453ba2){return Array['from'](new Set(_0x453ba2)[_0xf326('0x14')]());}
|
|
23
|
+
const _0x2674=['MIN_SAFE_INTEGER','getSuggestion','above','includes','ELEMENT_TABLE_ROW_WITH_TEXT','maxColumn','add','commands','refresh','end','ELEMENT_TABLE_COLUMN','insert','type','nodeBefore','MAX_SAFE_INTEGER','removeTableRow','substr','isTouching','batch','from','enableCommand','getItems','start','table','rowspan','_getSuggestionCoords','$textProxy','suggestion','push','deletion','min','_tableSuggestions','fromRange','isArray','data','addRange','removeTableColumn','maxRow','createRangeOn','findAncestor','ELEMENT_TABLE_COLUMN_WITH_TEXT','insertTableRowAbove','insertTableColumnRight','getCellLocation','change','isInContent','markMultiRangeInsertion','_suggestionFactory','ELEMENT_TABLE_ROW','_acceptFormatSuggestionCallbackFactory','colspan','position','span','ELEMENT_TABLE','getRowIndexes','detach','model','registerCustomCallback','writer','insertTable','plugins','rootName','some','options','tableRow','_descriptionFactory','toLowerCase','highest','max','discard','getSelectionAffectedTableCells','removeClass','get','first','length','low','tablePaste','getRanges','registerDescriptionCallback','getAttribute','selectTableColumn','registerElementLabel','join','left','nodeAfter','_splitMarkerName','accept','createTableWalker','insertTableColumnLeft','showSuggestionHighlights','insertion','addMarker:suggestion','locale','execute','every','enqueueChange','TrackChangesEditing','insertTableRowBelow','differ','hasAttribute','filter','selectTableRow','*Insert:*\x20%0','document','setSelection','editor','root','minColumn','markMultiRangeDeletion','last','*Remove:*\x20%0','change:data','isIntersectingWithRange','getChangedMarkers','getContainedElement','oldRange','getColumnIndexes','order','_setupColumnsRowsFixing','downcastDispatcher','ELEMENT_TABLE_WITH_TEXT','has','tableColumn','selection','classes','$graveyard','values','_getCoordsForCells','getFirstRange','TableUtils','element','tableCell','_tablePostFixingSubtypes','startsWith','subType','cell','map','name','item'];(function(_0x113c97,_0x2674bf){const _0x512371=function(_0x2d638b){while(--_0x2d638b){_0x113c97['push'](_0x113c97['shift']());}};_0x512371(++_0x2674bf);}(_0x2674,0xac));const _0x5123=function(_0x113c97,_0x2674bf){_0x113c97=_0x113c97-0x0;let _0x512371=_0x2674[_0x113c97];return _0x512371;};import{Plugin as _0x2295f3}from'ckeditor5/src/core';import{LiveRange as _0x22f666}from'ckeditor5/src/engine';import{setHighlightHandling as _0x343e7d}from'ckeditor5/src/widget';import{getTranslation as _0x220379}from'../utils/common-translations';export default class mt extends _0x2295f3{constructor(_0x2129e5){super(_0x2129e5),this[_0x5123('0x63')]=['tableRow',_0x5123('0x59')],this[_0x5123('0x89')]=new Set();}['afterInit'](){const _0x3ed0c7=this['editor'],_0x403d03=_0x3ed0c7['model'][_0x5123('0x46')][_0x5123('0x5a')];if(!_0x3ed0c7['plugins'][_0x5123('0x58')]('TableEditing'))return;const _0x4622ab=_0x3ed0c7[_0x5123('0x3b')],_0x520790=_0x3ed0c7[_0x5123('0x1b')][_0x5123('0x27')](_0x5123('0x3f')),_0x55d204=_0x3ed0c7[_0x5123('0x1b')][_0x5123('0x27')]('TableUtils');_0x520790[_0x5123('0x20')][_0x5123('0x30')](_0x5123('0x81'),_0x5298f4=>_0x220379(_0x4622ab,_0x5123('0x14'),_0x5298f4)),this['_setupColumnsRowsFixing'](),_0x520790[_0x5123('0x7e')](_0x5123('0x1a')),_0x520790[_0x5123('0x7e')](_0x5123('0x44')),_0x520790['enableCommand'](_0x5123('0x2f'));for(const _0x1ed319 of[_0x5123('0x8'),_0x5123('0x40')]){const _0x3187a3=_0x3ed0c7[_0x5123('0x71')][_0x5123('0x27')](_0x1ed319);_0x520790[_0x5123('0x7e')](_0x1ed319,_0x461f04=>{_0x3ed0c7['model'][_0x5123('0xb')](_0x1051dd=>{_0x461f04();const _0x519e4c=_0x5123('0x6c')===_0x3187a3[_0x5123('0x54')],_0x28feba=_0x55d204[_0x5123('0x25')](_0x403d03),_0x4d268=_0x55d204[_0x5123('0x15')](_0x28feba),_0x2feccb=_0x519e4c?_0x4d268[_0x5123('0x28')]-0x1:_0x4d268[_0x5123('0x4c')]+0x1,_0x5455d9=_0x28feba[0x0][_0x5123('0x6')](_0x5123('0x81')),_0x3c287a=_0x55d204[_0x5123('0x36')](_0x5455d9,{'startRow':_0x2feccb,'endRow':_0x2feccb}),_0x7708d8=Array['from'](_0x3c287a)[_0x5123('0x67')](_0xcdd5f5=>_0x1051dd['createRangeOn'](_0xcdd5f5[_0x5123('0x66')]));_0x520790[_0x5123('0xd')](_0x7708d8,_0x5123('0x1f'));});});}for(const _0x474bde of[_0x5123('0x37'),_0x5123('0x9')]){const _0x50f3a4=_0x3ed0c7[_0x5123('0x71')][_0x5123('0x27')](_0x474bde);_0x520790[_0x5123('0x7e')](_0x474bde,_0x29d525=>{_0x3ed0c7['model'][_0x5123('0xb')](_0x3d7c76=>{_0x29d525();const _0x278978=_0x5123('0x32')===_0x50f3a4[_0x5123('0x54')],_0x26f113=_0x55d204['getSelectionAffectedTableCells'](_0x403d03),_0x168eed=_0x55d204[_0x5123('0x53')](_0x26f113),_0x21d124=_0x278978?_0x168eed[_0x5123('0x28')]-0x1:_0x168eed[_0x5123('0x4c')]+0x1,_0x2529eb=_0x26f113[0x0][_0x5123('0x6')]('table'),_0x734d7=_0x55d204[_0x5123('0x36')](_0x2529eb,{'startRow':0x0,'column':_0x21d124,'includeAllSlots':!0x1}),_0x24cf73=Array[_0x5123('0x7d')](_0x734d7)[_0x5123('0x67')](_0x696483=>_0x3d7c76[_0x5123('0x5')](_0x696483[_0x5123('0x66')]));_0x520790[_0x5123('0xd')](_0x24cf73,_0x5123('0x59'));});});}for(const _0x1d42e8 of[_0x5123('0x79'),'removeTableColumn']){const _0x5cbe04=_0x1d42e8[_0x5123('0x7a')](0xb),_0x43b8ef=_0x5cbe04[_0x5123('0x21')](),_0x233c33=_0x43b8ef[_0x5123('0x7a')](0x0,0x3)+_0x5123('0x13'),_0x5b3e76=_0x5123('0x81')+_0x5cbe04,_0x39e640=_0x5123('0x88')+_0x5cbe04,_0x3565f8='max'+_0x5cbe04;_0x520790[_0x5123('0x7e')](_0x1d42e8,()=>{_0x3ed0c7['model'][_0x5123('0xb')](_0x1244ef=>{const _0x4c2cf4=_0x55d204[_0x5123('0x25')](_0x403d03),_0x4ad5da=_0x4c2cf4[0x0]['findAncestor'](_0x5123('0x81'));let _0x362ade;if(_0x5123('0x79')==_0x1d42e8){const _0x4c0d3b=_0x55d204[_0x5123('0x15')](_0x4c2cf4);_0x362ade={'startRow':_0x4c0d3b['first'],'endRow':_0x4c0d3b[_0x5123('0x4c')],'includeAllSlots':!0x0};}else{const _0x4a3d7f=_0x55d204['getColumnIndexes'](_0x4c2cf4);_0x362ade={'startColumn':_0x4a3d7f[_0x5123('0x28')],'endColumn':_0x4a3d7f['last'],'includeAllSlots':!0x0};}const _0x25cd3d=_0x55d204[_0x5123('0x36')](_0x4ad5da,_0x362ade),_0x5a69e9=Array[_0x5123('0x7d')](_0x25cd3d)[_0x5123('0x67')](({cell:_0x94be68})=>_0x94be68),_0x332ed3=se(_0x5a69e9[_0x5123('0x43')](_0x419279=>_0x419279[_0x5123('0x42')](_0x233c33))),_0x3bca9e=se(_0x5a69e9[_0x5123('0x43')](_0x449347=>!_0x449347[_0x5123('0x42')](_0x233c33)))[_0x5123('0x67')](_0x3e826a=>_0x1244ef[_0x5123('0x5')](_0x3e826a)),_0x4a7056=_0x520790[_0x5123('0x4b')](_0x3bca9e,_0x5b3e76);if(_0x4a7056&&(_0x5123('0x1f')==_0x4a7056[_0x5123('0x65')]||_0x5123('0x59')==_0x4a7056[_0x5123('0x65')])){const _0x1b0ef1=this[_0x5123('0x83')](_0x4a7056);for(const _0xc5068d of _0x332ed3){const _0x54addf=_0x1244ef[_0x5123('0x5')](_0xc5068d),_0x2e4774=_0x55d204[_0x5123('0xa')](_0xc5068d),_0x2277b7=_0xc5068d[_0x5123('0x2e')](_0x233c33)-0x1,_0x243f90=_0x1b0ef1[_0x39e640],_0x3eeebf=_0x1b0ef1[_0x3565f8];_0x243f90<=_0x2e4774[_0x43b8ef]&&_0x2e4774[_0x43b8ef]+_0x2277b7<=_0x3eeebf&&_0x4a7056['addRange'](_0x54addf);}}});});}function _0x3ccce2(_0x106cda){const _0x17a8df=Array[_0x5123('0x7d')](_0x403d03[_0x5123('0x2c')]())[_0x5123('0x67')](_0xd652e4=>_0x22f666['fromRange'](_0xd652e4));_0x3ed0c7[_0x5123('0x17')][_0x5123('0xb')](_0x3f3346=>{const _0x300bb9=_0x3f3346[_0x5123('0x7c')];_0x106cda=_0x106cda[_0x5123('0x43')](_0x370fc4=>_0x5123('0x5c')!=_0x370fc4[_0x5123('0x49')][_0x5123('0x1c')]),_0x3f3346[_0x5123('0x47')](_0x106cda),_0x3ed0c7[_0x5123('0x71')][_0x5123('0x27')](_0x5123('0x79'))['refresh'](),_0x3ed0c7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ed0c7[_0x5123('0x17')][_0x5123('0x3e')](()=>{_0x3ed0c7[_0x5123('0x17')][_0x5123('0x3e')](_0x300bb9,_0xeb76a=>{const _0x1309ac=_0x17a8df[_0x5123('0x43')](_0x5945d1=>_0x5123('0x5c')!=_0x5945d1['root'][_0x5123('0x1c')]);_0x1309ac[_0x5123('0x29')]>0x0&&_0xeb76a[_0x5123('0x47')](_0x1309ac);for(const _0x5aa9bf of _0x17a8df)_0x5aa9bf[_0x5123('0x16')]();});});});}function _0x259e14(_0x489fc3){_0x3ed0c7[_0x5123('0x17')]['change'](_0x38eeb0=>{const _0x57f078=Array[_0x5123('0x7d')](_0x403d03['getRanges']())[_0x5123('0x67')](_0x4bca80=>_0x22f666[_0x5123('0x8a')](_0x4bca80)),_0x2c18ca=[];for(const _0x14fb62 of _0x489fc3)for(const _0x3a32fb of _0x14fb62[_0x5123('0x7f')]({'shallow':!0x0}))_0x2c18ca[_0x5123('0x86')](_0x3a32fb);for(const _0x5ba9a6 of _0x2c18ca)'$graveyard'!=_0x5ba9a6[_0x5123('0x49')][_0x5123('0x1c')]&&(_0x38eeb0[_0x5123('0x47')](_0x38eeb0['createPositionAt'](_0x5ba9a6,0x0)),_0x3ed0c7[_0x5123('0x71')][_0x5123('0x27')](_0x5123('0x3'))[_0x5123('0x72')](),_0x3ed0c7[_0x5123('0x3c')](_0x5123('0x3'),{'forceDefaultExecution':!0x0}));const _0x182d82=_0x57f078[_0x5123('0x43')](_0xf55967=>_0x5123('0x5c')!=_0xf55967[_0x5123('0x49')]['rootName']);_0x182d82[_0x5123('0x29')]>0x0&&_0x38eeb0['setSelection'](_0x182d82);for(const _0x16a329 of _0x57f078)_0x16a329[_0x5123('0x16')]();});}function _0x4aed86(_0x4bfce7,_0x479ab9){return _0x479ab9[_0x5123('0x3d')](_0x253b19=>_0x4bfce7['some'](_0x2bbd3f=>_0x2bbd3f['end']['isEqual'](_0x253b19[_0x5123('0x80')])||_0x253b19[_0x5123('0x73')]['isEqual'](_0x2bbd3f[_0x5123('0x80')])));}function _0x22dda1(_0x33956a,_0x475ba1){return _0x33956a[_0x5123('0x1d')](_0x291948=>_0x475ba1[_0x5123('0x1d')](_0x985e4f=>_0x291948[_0x5123('0x73')][_0x5123('0x7b')](_0x985e4f[_0x5123('0x80')])));}_0x3ed0c7['data'][_0x5123('0x56')]['on'](_0x5123('0x3a'),(_0x26f0fe,_0x449715,_0x1067bb)=>{if(!_0x1067bb[_0x5123('0x1e')][_0x5123('0x38')])return;const _0x2eceb7=_0x449715[_0x5123('0x69')];if(!_0x2eceb7)return;const _0x551a68=_0x1067bb['mapper']['toViewElement'](_0x2eceb7);function _0x51e3da(_0x3adb70){return Array[_0x5123('0x0')](_0x3adb70)?_0x3adb70:[_0x3adb70];}_0x551a68&&_0x5123('0x62')===_0x2eceb7[_0x5123('0x68')]&&_0x343e7d(_0x551a68,_0x1067bb[_0x5123('0x19')],(_0x5404d2,_0x32c11b,_0x1d49de)=>_0x1d49de['addClass'](_0x51e3da(_0x32c11b[_0x5123('0x5b')]),_0x5404d2),(_0x5b57e4,_0x3b3610,_0x307deb)=>_0x307deb[_0x5123('0x26')](_0x51e3da(_0x3b3610['classes']),_0x5b57e4));},{'priority':_0x5123('0x22')}),_0x520790[_0x5123('0x20')]['registerDescriptionCallback'](_0x4b32bd=>{if(_0x5123('0x39')!=_0x4b32bd[_0x5123('0x76')]&&_0x5123('0x87')!=_0x4b32bd[_0x5123('0x76')])return;const _0x50417f=_0x4b32bd[_0x5123('0x51')]();if(null!=_0x50417f&&_0x50417f['is'](_0x5123('0x61'),_0x5123('0x81'))){if(_0x5123('0x39')==_0x4b32bd[_0x5123('0x76')]){const _0x2fa802=_0x4b32bd[_0x5123('0x7f')]()[_0x5123('0x43')](_0x1deefe=>_0x1deefe['is'](_0x5123('0x84')))[_0x5123('0x67')](_0x18ce38=>_0x18ce38['data']);if(_0x2fa802[_0x5123('0x29')])return{'type':_0x5123('0x39'),'content':_0x220379(_0x4622ab,_0x5123('0x45'),_0x220379(_0x4622ab,_0x5123('0x57'),'\x22'+_0x2fa802[_0x5123('0x31')]('\x20')+'\x22'))};}if(_0x5123('0x87')==_0x4b32bd[_0x5123('0x76')]){const _0x524a6e=_0x4b32bd[_0x5123('0x7f')]()[_0x5123('0x43')](_0xf0cc11=>_0xf0cc11['is'](_0x5123('0x84')))[_0x5123('0x67')](_0x1468f0=>_0x1468f0[_0x5123('0x1')]);if(_0x524a6e[_0x5123('0x29')])return{'type':_0x5123('0x87'),'content':_0x220379(_0x4622ab,_0x5123('0x4d'),_0x220379(_0x4622ab,_0x5123('0x57'),'\x22'+_0x524a6e[_0x5123('0x31')]('\x20')+'\x22'))};}}}),_0x520790[_0x5123('0x20')][_0x5123('0x2d')](_0x37a339=>{if('tableRow'==_0x37a339[_0x5123('0x65')]){const _0x4508e0=_0x37a339['getItems']()[_0x5123('0x43')](_0x2ddefd=>_0x2ddefd['is'](_0x5123('0x84')))['map'](_0x1b090c=>_0x1b090c['data']),_0x3db6b0=this[_0x5123('0x83')](_0x37a339),_0x107479=_0x3db6b0[_0x5123('0x4')]-_0x3db6b0['minRow']+0x1;if(_0x5123('0x39')==_0x37a339[_0x5123('0x76')])return _0x4508e0[_0x5123('0x29')]?{'type':_0x5123('0x39'),'content':_0x220379(_0x4622ab,_0x5123('0x45'),_0x220379(_0x4622ab,_0x5123('0x6e'),[_0x107479,'\x22'+_0x4508e0[_0x5123('0x31')]('\x20')+'\x22']))}:{'type':_0x5123('0x39'),'content':_0x220379(_0x4622ab,'*Insert:*\x20%0',_0x220379(_0x4622ab,'ELEMENT_TABLE_ROW',_0x107479))};if(_0x5123('0x87')==_0x37a339[_0x5123('0x76')])return _0x4508e0[_0x5123('0x29')]?{'type':'deletion','content':_0x220379(_0x4622ab,_0x5123('0x4d'),_0x220379(_0x4622ab,_0x5123('0x6e'),[_0x107479,'\x22'+_0x4508e0['join']('\x20')+'\x22']))}:{'type':_0x5123('0x87'),'content':_0x220379(_0x4622ab,_0x5123('0x4d'),_0x220379(_0x4622ab,_0x5123('0xf'),_0x107479))};}if(_0x5123('0x59')==_0x37a339[_0x5123('0x65')]){const _0x48c892=_0x37a339['getItems']()[_0x5123('0x43')](_0x4a9c96=>_0x4a9c96['is']('$textProxy'))[_0x5123('0x67')](_0x182306=>_0x182306[_0x5123('0x1')]),_0x18608a=this[_0x5123('0x83')](_0x37a339),_0x48c295=_0x18608a[_0x5123('0x6f')]-_0x18608a[_0x5123('0x4a')]+0x1;if(_0x5123('0x39')==_0x37a339[_0x5123('0x76')])return _0x48c892[_0x5123('0x29')]?{'type':_0x5123('0x39'),'content':_0x220379(_0x4622ab,_0x5123('0x45'),_0x220379(_0x4622ab,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48c295,'\x22'+_0x48c892[_0x5123('0x31')]('\x20')+'\x22']))}:{'type':_0x5123('0x39'),'content':_0x220379(_0x4622ab,_0x5123('0x45'),_0x220379(_0x4622ab,_0x5123('0x74'),_0x48c295))};if(_0x5123('0x87')==_0x37a339[_0x5123('0x76')])return _0x48c892['length']?{'type':_0x5123('0x87'),'content':_0x220379(_0x4622ab,_0x5123('0x4d'),_0x220379(_0x4622ab,_0x5123('0x7'),[_0x48c295,'\x22'+_0x48c892[_0x5123('0x31')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x220379(_0x4622ab,'*Remove:*\x20%0',_0x220379(_0x4622ab,_0x5123('0x74'),_0x48c295))};}}),_0x520790[_0x5123('0xe')][_0x5123('0x18')](_0x5123('0x39'),_0x5123('0x1f'),'discard',_0x3ccce2),_0x520790['_suggestionFactory']['registerCustomCallback'](_0x5123('0x87'),_0x5123('0x1f'),_0x5123('0x35'),_0x3ccce2),_0x520790[_0x5123('0xe')][_0x5123('0x18')]('insertion',_0x5123('0x59'),_0x5123('0x24'),_0x259e14),_0x520790[_0x5123('0xe')]['registerCustomCallback'](_0x5123('0x87'),'tableColumn','accept',_0x259e14),_0x520790[_0x5123('0xe')][_0x5123('0x18')](_0x5123('0x39'),_0x5123('0x59'),'join',_0x4aed86),_0x520790[_0x5123('0xe')][_0x5123('0x18')](_0x5123('0x87'),_0x5123('0x59'),_0x5123('0x31'),_0x4aed86),_0x520790[_0x5123('0xe')][_0x5123('0x18')](_0x5123('0x39'),_0x5123('0x1f'),_0x5123('0x31'),_0x22dda1),_0x520790[_0x5123('0xe')][_0x5123('0x18')](_0x5123('0x87'),'tableRow',_0x5123('0x31'),_0x22dda1);}[_0x5123('0x10')](){const _0x1c93df=this[_0x5123('0x48')],_0x169f0c=_0x1c93df[_0x5123('0x17')]['document']['selection'];return(_0x305c04,_0x317931)=>{_0x1c93df[_0x5123('0x17')][_0x5123('0xb')](_0x210626=>{const {commandName:_0x12718a,commandParams:_0x275b5c}=_0x317931;let _0x2a4a34=_0x305c04[0x0][_0x5123('0x73')][_0x5123('0x77')];_0x275b5c&&_0x275b5c[0x0]&&!0x1===_0x275b5c[0x0]['forceValue']&&(_0x2a4a34=_0x305c04[0x0][_0x5123('0x80')]['nodeAfter']);const _0x1a4e8c=_0x210626['createRangeIn'](_0x2a4a34);if(_0x5123('0x5c')==_0x1a4e8c[_0x5123('0x49')][_0x5123('0x1c')])return;const _0x41ca11=Array[_0x5123('0x7d')](_0x169f0c[_0x5123('0x2c')]())[_0x5123('0x67')](_0x1f9920=>_0x22f666['fromRange'](_0x1f9920));_0x210626['setSelection'](_0x1a4e8c),_0x1c93df['commands'][_0x5123('0x27')](_0x12718a)['refresh'](),_0x275b5c[_0x5123('0x86')]({'forceDefaultExecution':!0x0}),_0x1c93df['execute'](_0x12718a,..._0x275b5c);const _0x6bc35c=_0x41ca11[_0x5123('0x43')](_0x2409bc=>_0x5123('0x5c')!=_0x2409bc[_0x5123('0x49')]['rootName']);_0x6bc35c[_0x5123('0x29')]>0x0&&_0x210626[_0x5123('0x47')](_0x6bc35c);for(const _0x4ba3d9 of _0x41ca11)_0x4ba3d9[_0x5123('0x16')]();});};}[_0x5123('0x5e')](_0x11a0c2){const _0x247db7=this[_0x5123('0x48')]['plugins'][_0x5123('0x27')](_0x5123('0x60'));let _0x590148=Number[_0x5123('0x78')],_0x31ec5a=Number[_0x5123('0x6a')],_0x42576c=Number[_0x5123('0x78')],_0x177073=Number[_0x5123('0x6a')];for(const _0x35f0ee of _0x11a0c2){if('$graveyard'==_0x35f0ee[_0x5123('0x49')]['rootName'])continue;const {row:_0x31fdd9,column:_0x10cf89}=_0x247db7['getCellLocation'](_0x35f0ee),_0x2d7da8=_0x35f0ee[_0x5123('0x42')](_0x5123('0x82'))?_0x35f0ee[_0x5123('0x2e')](_0x5123('0x82'))-0x1:0x0,_0x3657f9=_0x35f0ee[_0x5123('0x42')](_0x5123('0x11'))?_0x35f0ee['getAttribute'](_0x5123('0x11'))-0x1:0x0;_0x590148=_0x31fdd9<_0x590148?_0x31fdd9:_0x590148,_0x31ec5a=_0x31fdd9+_0x2d7da8>_0x31ec5a?_0x31fdd9+_0x2d7da8:_0x31ec5a,_0x42576c=_0x10cf89<_0x42576c?_0x10cf89:_0x42576c,_0x177073=_0x10cf89+_0x3657f9>_0x177073?_0x10cf89+_0x3657f9:_0x177073;}return{'minRow':_0x590148,'maxRow':_0x31ec5a,'minColumn':_0x42576c,'maxColumn':_0x177073};}[_0x5123('0x55')](){const _0x2f8daf=this[_0x5123('0x48')],_0x4ebe24=_0x2f8daf[_0x5123('0x1b')][_0x5123('0x27')](_0x5123('0x3f')),_0x4e2cc3=_0x2f8daf[_0x5123('0x1b')][_0x5123('0x27')](_0x5123('0x60'));_0x2f8daf['model'][_0x5123('0x46')]['on'](_0x5123('0x4e'),()=>{const _0x573a67=Array[_0x5123('0x7d')](_0x2f8daf[_0x5123('0x17')][_0x5123('0x46')][_0x5123('0x41')][_0x5123('0x50')]());for(const {name:_0x128207,data:_0x4aa697}of _0x573a67){const {group:_0x53d53b,id:_0x538819,subType:_0x423faa}=_0x4ebe24[_0x5123('0x34')](_0x128207);if(_0x5123('0x85')!=_0x53d53b)continue;if(null!=_0x4aa697[_0x5123('0x52')])continue;const _0x10aca9=_0x4ebe24[_0x5123('0x6b')](_0x538819);this['_tablePostFixingSubtypes'][_0x5123('0x6d')](_0x423faa)&&this[_0x5123('0x89')][_0x5123('0x70')](_0x10aca9);}},{'priority':_0x5123('0x2a')});const _0xbb804a=(_0x130760,_0x16d8de)=>{let _0x370c51=!0x1;const _0x33891a=_0x16d8de[_0x5123('0x5')](_0x130760),_0x173244=_0x130760['findAncestor'](_0x5123('0x81')),_0x165d7d=_0x4e2cc3[_0x5123('0xa')](_0x130760);for(const _0xdad025 of this['_tableSuggestions']){const _0xaaf5c7=_0xdad025[_0x5123('0x65')],_0xfd6b84=_0xaaf5c7[_0x5123('0x64')](_0x5123('0x2b')),_0x141e91=_0xaaf5c7['substr'](_0xfd6b84?0xa:0x5),_0x1ce01f=_0x141e91[_0x5123('0x21')](),_0x543046=_0x1ce01f[_0x5123('0x7a')](0x0,0x3)+'span',_0x55dff9=_0x5123('0x88')+_0x141e91,_0x23c7fe=_0x5123('0x23')+_0x141e91;if(!_0xdad025[_0x5123('0xc')])continue;if(_0x173244!=_0xdad025[_0x5123('0x5f')]()[_0x5123('0x80')][_0x5123('0x6')](_0x5123('0x81')))continue;if(_0xdad025[_0x5123('0x4f')](_0x33891a))continue;const _0x21025d=_0x130760[_0x5123('0x42')](_0x543046)?_0x130760[_0x5123('0x2e')](_0x543046)-0x1:0x0,_0x35eb32=this[_0x5123('0x83')](_0xdad025),_0x5867b1=_0x35eb32[_0x55dff9],_0x151a13=_0x35eb32[_0x23c7fe];_0x5867b1<=_0x165d7d[_0x1ce01f]&&_0x165d7d[_0x1ce01f]+_0x21025d<=_0x151a13&&(_0xdad025[_0x5123('0x2')](_0x33891a),_0x370c51=!0x0);}return _0x370c51;};_0x2f8daf[_0x5123('0x17')]['document']['registerPostFixer'](_0xeca80a=>{let _0x5e872b=!0x1;for(const _0x5e8793 of _0x2f8daf[_0x5123('0x17')]['document'][_0x5123('0x41')]['getChanges']())if(_0x5123('0x75')==_0x5e8793[_0x5123('0x76')]){if(_0x5123('0x1f')==_0x5e8793[_0x5123('0x68')])for(const _0xb7d802 of _0x5e8793[_0x5123('0x12')][_0x5123('0x33')]['getChildren']())_0x5e872b=_0x5e872b||_0xbb804a(_0xb7d802,_0xeca80a);else _0x5123('0x62')==_0x5e8793['name']&&(_0x5e872b=_0x5e872b||_0xbb804a(_0x5e8793[_0x5123('0x12')][_0x5123('0x33')],_0xeca80a));}return _0x5e872b;});}[_0x5123('0x83')](_0x3d1cee){return this[_0x5123('0x5e')](_0x3d1cee[_0x5123('0x2c')]()['map'](_0x4292f2=>_0x4292f2[_0x5123('0x80')][_0x5123('0x33')]));}}function se(_0x38cc27){return Array[_0x5123('0x7d')](new Set(_0x38cc27)[_0x5123('0x5d')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3202=['get','plugins','enableCommand','editor','has','TableCaptionEditing'];(function(_0x918d1a,_0x320229){const _0x31af0f=function(_0x5b11e8){while(--_0x5b11e8){_0x918d1a['push'](_0x918d1a['shift']());}};_0x31af0f(++_0x320229);}(_0x3202,0x8a));const _0x31af=function(_0x918d1a,_0x320229){_0x918d1a=_0x918d1a-0x0;let _0x31af0f=_0x3202[_0x918d1a];return _0x31af0f;};import{Plugin as _0x148351}from'ckeditor5/src/core';import _0x3cf39a from'./table';export default class vt extends _0x148351{static get['requires'](){return[_0x3cf39a];}['afterInit'](){const _0x5b2fa0=this[_0x31af('0x3')];if(!_0x5b2fa0['plugins'][_0x31af('0x4')](_0x31af('0x5')))return;_0x5b2fa0[_0x31af('0x1')][_0x31af('0x0')]('TrackChangesEditing')[_0x31af('0x2')]('toggleTableCaption');}}
|