@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230825.0 → 0.0.0-nightly-20230827.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 _0x30fc=['*Change\x20to:*\x20%0','_getSuggestionBlocksForListStyle','ListPropertiesEditing','map','document','createRange','element','has','handleDescriptions','createPositionAt','*Format:*\x20set\x20start\x20index\x20to\x20%0','handleListStartCommand','numbered','editor','type','handleListStyleCommand','length','toUpperCase','getSelectedBlocks','reversed','getSiblingNodes','replace','commandName','listStart','markMultiRangeBlockFormat','get','commandParams','getFirstPosition','_getTranslationKeyForListStyle','parent','config','before','listReversed','forward','selection','listStyle','filter','handleListReversedCommand','change','format','listItem','styles','locale','getAttribute','enableCommand','getListTypeFromListStyleType','model','listType','push','_getSuggestionBlocks','plugins','ListUtils','TrackChangesEditing','ELEMENT_','bind','startIndex','flat','from','_descriptionFactory'];(function(_0x1f8479,_0x30fc72){const _0xb3f24a=function(_0x1d86de){while(--_0x1d86de){_0x1f8479['push'](_0x1f8479['shift']());}};_0xb3f24a(++_0x30fc72);}(_0x30fc,0xe8));const _0xb3f2=function(_0x1f8479,_0x30fc72){_0x1f8479=_0x1f8479-0x0;let _0xb3f24a=_0x30fc[_0x1f8479];return _0xb3f24a;};import{Plugin as _0x4e0fcc}from'ckeditor5/src/core';import{getTranslation as _0x5069f6}from'../utils/common-translations';export default class nt extends _0x4e0fcc{['afterInit'](){if(!this[_0xb3f2('0x11')]['plugins'][_0xb3f2('0xb')](_0xb3f2('0x6')))return;const _0x5d8af5=this[_0xb3f2('0x11')][_0xb3f2('0x22')][_0xb3f2('0x1d')]('list.properties'),_0x40c1ed=this[_0xb3f2('0x11')]['plugins'][_0xb3f2('0x1d')](_0xb3f2('0x38'));_0x5d8af5[_0xb3f2('0x2d')]&&_0x40c1ed[_0xb3f2('0x30')](_0xb3f2('0x27'),this[_0xb3f2('0x13')]['bind'](this)),_0x5d8af5['reversed']&&_0x40c1ed[_0xb3f2('0x30')](_0xb3f2('0x24'),this['handleListReversedCommand'][_0xb3f2('0x3a')](this)),_0x5d8af5[_0xb3f2('0x0')]&&_0x40c1ed['enableCommand'](_0xb3f2('0x1b'),this['handleListStartCommand'][_0xb3f2('0x3a')](this)),_0x40c1ed[_0xb3f2('0x3')]['registerDescriptionCallback'](this['handleDescriptions'][_0xb3f2('0x3a')](this));}[_0xb3f2('0x13')](_0x463cae,_0x10044e={}){const _0x10b35a=this[_0xb3f2('0x11')][_0xb3f2('0x36')]['get']('TrackChangesEditing'),_0xc8070e=this[_0xb3f2('0x5')]();this[_0xb3f2('0x11')][_0xb3f2('0x32')][_0xb3f2('0x2a')](()=>{_0x10b35a[_0xb3f2('0x1c')](_0xc8070e,{'commandName':'listStyle','commandParams':[{'type':_0x10044e[_0xb3f2('0x12')]}],'formatGroupId':_0xb3f2('0x27')});});}[_0xb3f2('0x29')](_0x365c79,_0x3b0ae9={}){const _0x38e266=this[_0xb3f2('0x11')][_0xb3f2('0x36')][_0xb3f2('0x1d')](_0xb3f2('0x38')),_0x102ba9=this[_0xb3f2('0x35')](_0x2868c0=>_0x2868c0['is'](_0xb3f2('0xa'),_0xb3f2('0x2c'))&&_0xb3f2('0x10')===_0x2868c0[_0xb3f2('0x2f')](_0xb3f2('0x33')));if(_0x102ba9[_0xb3f2('0x14')]<0x1)return;const _0x29588c=_0x102ba9['map'](_0x581822=>this[_0xb3f2('0x11')]['model'][_0xb3f2('0x9')](this[_0xb3f2('0x11')][_0xb3f2('0x32')][_0xb3f2('0xd')](_0x581822,_0xb3f2('0x23')),this[_0xb3f2('0x11')][_0xb3f2('0x32')]['createPositionAt'](_0x581822,0x0)));this[_0xb3f2('0x11')][_0xb3f2('0x32')][_0xb3f2('0x2a')](()=>{_0x38e266[_0xb3f2('0x1c')](_0x29588c,{'commandName':_0xb3f2('0x24'),'commandParams':[{'reversed':_0x3b0ae9['reversed']}],'formatGroupId':_0xb3f2('0x24')});});}[_0xb3f2('0xf')](_0x490473,_0xe4db6b={}){const _0xdcc7c1=this[_0xb3f2('0x11')]['plugins'][_0xb3f2('0x1d')](_0xb3f2('0x38')),_0x351313=this[_0xb3f2('0x35')](_0x34f7ca=>_0x34f7ca['is'](_0xb3f2('0xa'),'listItem')&&_0xb3f2('0x10')===_0x34f7ca[_0xb3f2('0x2f')](_0xb3f2('0x33')));if(_0x351313[_0xb3f2('0x14')]<0x1)return;const _0x250124=_0x351313[_0xb3f2('0x7')](_0x1e28a9=>this[_0xb3f2('0x11')][_0xb3f2('0x32')][_0xb3f2('0x9')](this[_0xb3f2('0x11')]['model'][_0xb3f2('0xd')](_0x1e28a9,_0xb3f2('0x23')),this[_0xb3f2('0x11')][_0xb3f2('0x32')][_0xb3f2('0xd')](_0x1e28a9,0x0)));this[_0xb3f2('0x11')][_0xb3f2('0x32')]['change'](()=>{_0xdcc7c1['markMultiRangeBlockFormat'](_0x250124,{'commandName':_0xb3f2('0x1b'),'commandParams':[{'startIndex':_0xe4db6b[_0xb3f2('0x0')]}],'formatGroupId':'listStart'});});}[_0xb3f2('0xc')](_0x193f91){const _0x5a8e26=this[_0xb3f2('0x11')][_0xb3f2('0x2e')],{data:_0x6e251}=_0x193f91;if(!_0x6e251)return;let _0x5471fd,_0x15bb23;switch(_0x6e251[_0xb3f2('0x1a')]){case'listStyle':_0x5471fd=_0xb3f2('0x4'),_0x15bb23={'type':_0xb3f2('0x2b'),'content':_0x5069f6(_0x5a8e26,_0x5471fd,_0x5069f6(_0x5a8e26,this[_0xb3f2('0x20')](_0x6e251[_0xb3f2('0x1e')][0x0]['type'])))};break;case _0xb3f2('0x24'):_0x5471fd=_0x6e251['commandParams'][0x0][_0xb3f2('0x17')]?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x15bb23={'type':_0xb3f2('0x2b'),'content':_0x5069f6(_0x5a8e26,_0x5471fd)};break;case _0xb3f2('0x1b'):_0x5471fd=_0xb3f2('0xe'),_0x15bb23={'type':_0xb3f2('0x2b'),'content':_0x5069f6(_0x5a8e26,_0x5471fd,_0x6e251[_0xb3f2('0x1e')][0x0]['startIndex'])};}return _0x15bb23;}[_0xb3f2('0x5')](){var _0x38ae8a,_0x116ba7,_0x2fa991,_0x3db142;const _0x296fb2=this[_0xb3f2('0x11')][_0xb3f2('0x36')]['get'](_0xb3f2('0x37'));let _0x23e1fb=Array[_0xb3f2('0x2')](this[_0xb3f2('0x11')][_0xb3f2('0x32')][_0xb3f2('0x8')][_0xb3f2('0x26')]['getSelectedBlocks']());return(null===(_0x38ae8a=_0x23e1fb[0x0])||void 0x0===_0x38ae8a?void 0x0:_0x38ae8a['is'](_0xb3f2('0xa'),'listItem'))&&_0x23e1fb['unshift'](..._0x296fb2['getSiblingNodes'](this['editor'][_0xb3f2('0x32')][_0xb3f2('0x8')]['selection'][_0xb3f2('0x1f')](),'backward')),(null===(_0x116ba7=_0x23e1fb[_0x23e1fb[_0xb3f2('0x14')]-0x1])||void 0x0===_0x116ba7?void 0x0:_0x116ba7['is'](_0xb3f2('0xa'),_0xb3f2('0x2c')))&&_0x23e1fb[_0xb3f2('0x34')](..._0x296fb2[_0xb3f2('0x18')](this[_0xb3f2('0x11')]['model'][_0xb3f2('0x8')][_0xb3f2('0x26')]['getLastPosition'](),_0xb3f2('0x25'))),_0x23e1fb=[...new Set(_0x23e1fb)],(null===(_0x3db142=null===(_0x2fa991=this[_0xb3f2('0x11')][_0xb3f2('0x32')][_0xb3f2('0x8')][_0xb3f2('0x26')][_0xb3f2('0x1f')]())||void 0x0===_0x2fa991?void 0x0:_0x2fa991[_0xb3f2('0x21')])||void 0x0===_0x3db142?void 0x0:_0x3db142['is']('element',_0xb3f2('0x2c')))&&(_0x23e1fb=_0x23e1fb[_0xb3f2('0x28')](_0x5e3aa9=>_0x5e3aa9['is']('element','listItem'))),_0x23e1fb;}[_0xb3f2('0x35')](_0x489372){const _0xfbf16=this['editor'][_0xb3f2('0x36')][_0xb3f2('0x1d')]('ListUtils');let _0x73ae36=Array[_0xb3f2('0x2')](this[_0xb3f2('0x11')][_0xb3f2('0x32')][_0xb3f2('0x8')]['selection'][_0xb3f2('0x16')]())['filter'](_0x489372)[_0xb3f2('0x7')](_0x28d76f=>{const _0x515834=this['editor']['model'][_0xb3f2('0xd')](_0x28d76f,0x0);return[..._0xfbf16['getSiblingNodes'](_0x515834,'backward'),..._0xfbf16[_0xb3f2('0x18')](_0x515834,_0xb3f2('0x25'))];})[_0xb3f2('0x1')]();return _0x73ae36=[...new Set(_0x73ae36)],_0x73ae36;}[_0xb3f2('0x20')](_0x441b6a){return _0xb3f2('0x39')+this[_0xb3f2('0x11')][_0xb3f2('0x36')]['get'](_0xb3f2('0x37'))[_0xb3f2('0x31')](_0x441b6a)['toUpperCase']()+'_LIST_'+_0x441b6a[_0xb3f2('0x15')]()[_0xb3f2('0x19')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b51=['for','data','high','ELEMENT_MEDIA','has','showSuggestionHighlights','div','createEmptyElement','conversion','enableCommand','TrackChangesEditing','downcastDispatcher','editor','attribute:url:media','dataDowncast','media','plugins','options','elementToElement','mediaEmbed','afterInit','MediaEmbedEditing','stop'];(function(_0x14442a,_0x4b51d9){const _0x52ec93=function(_0x33464c){while(--_0x33464c){_0x14442a['push'](_0x14442a['shift']());}};_0x52ec93(++_0x4b51d9);}(_0x4b51,0xb9));const _0x52ec=function(_0x14442a,_0x4b51d9){_0x14442a=_0x14442a-0x0;let _0x52ec93=_0x4b51[_0x14442a];return _0x52ec93;};import{Plugin as _0x40e589}from'ckeditor5/src/core';import{getTranslation as _0x1faf38}from'../utils/common-translations';export default class ot extends _0x40e589{[_0x52ec('0x13')](){const _0x1b3e90=this[_0x52ec('0xb')];if(!_0x1b3e90['plugins'][_0x52ec('0x3')](_0x52ec('0x14')))return;const _0x26c041=_0x1b3e90[_0x52ec('0xf')]['get'](_0x52ec('0x9')),_0x1b7bc0=_0x1b3e90['locale'];_0x26c041[_0x52ec('0x8')](_0x52ec('0x12')),_0x26c041['_descriptionFactory']['registerElementLabel'](_0x52ec('0xe'),_0x2865bf=>_0x1faf38(_0x1b7bc0,_0x52ec('0x2'),_0x2865bf)),_0x1b3e90[_0x52ec('0x7')][_0x52ec('0x16')](_0x52ec('0xd'))[_0x52ec('0x11')]({'model':_0x52ec('0xe'),'view':(_0x2f2417,{writer:_0x23a57e,options:_0x592a9e})=>{if(_0x592a9e[_0x52ec('0x4')])return _0x23a57e[_0x52ec('0x6')](_0x52ec('0x5'));},'converterPriority':_0x52ec('0x1')}),_0x1b3e90[_0x52ec('0x0')][_0x52ec('0xa')]['on'](_0x52ec('0xc'),(_0x4e99c6,_0x31e035,_0x27bc44)=>{_0x27bc44[_0x52ec('0x10')]['showSuggestionHighlights']&&_0x4e99c6[_0x52ec('0x15')]();},{'priority':_0x52ec('0x1')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5779=['mention','plugins','TrackChangesEditing','MentionEditing','has','editor'];(function(_0xa356d7,_0x57793a){const _0x25379f=function(_0x56a4df){while(--_0x56a4df){_0xa356d7['push'](_0xa356d7['shift']());}};_0x25379f(++_0x57793a);}(_0x5779,0x8e));const _0x2537=function(_0xa356d7,_0x57793a){_0xa356d7=_0xa356d7-0x0;let _0x25379f=_0x5779[_0xa356d7];return _0x25379f;};import{Plugin as _0x13f521}from'ckeditor5/src/core';export default class rt extends _0x13f521{['afterInit'](){const _0x1bf5de=this[_0x2537('0x1')];_0x1bf5de['plugins'][_0x2537('0x0')](_0x2537('0x5'))&&_0x1bf5de[_0x2537('0x3')]['get'](_0x2537('0x4'))['enableCommand'](_0x2537('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1479=['locale','_descriptionFactory','editor','PageBreakEditing','afterInit','has','ELEMENT_PAGE_BREAK','pageBreak','get','plugins'];(function(_0x7684e,_0x147973){const _0x5da011=function(_0xc37cfd){while(--_0xc37cfd){_0x7684e['push'](_0x7684e['shift']());}};_0x5da011(++_0x147973);}(_0x1479,0x65));const _0x5da0=function(_0x7684e,_0x147973){_0x7684e=_0x7684e-0x0;let _0x5da011=_0x1479[_0x7684e];return _0x5da011;};import{Plugin as _0x561350}from'ckeditor5/src/core';import{getTranslation as _0x4e76a0}from'../utils/common-translations';export default class at extends _0x561350{[_0x5da0('0x3')](){const _0xaad83=this[_0x5da0('0x1')];if(!_0xaad83[_0x5da0('0x8')][_0x5da0('0x4')](_0x5da0('0x2')))return;_0xaad83['plugins'][_0x5da0('0x7')]('TrackChangesEditing')['enableCommand'](_0x5da0('0x6'));const _0x3cbeae=_0xaad83[_0x5da0('0x8')][_0x5da0('0x7')]('TrackChangesEditing'),_0x479c45=_0xaad83[_0x5da0('0x9')];_0x3cbeae[_0x5da0('0x0')]['registerElementLabel'](_0x5da0('0x6'),_0x24d340=>_0x4e76a0(_0x479c45,_0x5da0('0x5'),_0x24d340));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6c55=['includes','addMarker:suggestion:insertion','downcastDispatcher','data','getSelectedBlocks','from','_descriptionFactory','activeMarkers','mapper','start','isLimit','filter','getItemLabel','commandName','model','highest','registerElementLabel','markerRange','isObject','has','markBlockFormat','change','plugins','$text','isBlock','end','Paragraph','insert','consumable','checkChild','parent','insertion','writer','isTouching','addClass','editing','selection','paragraph','afterInit','createUIElement','toViewPosition','name','ck-suggestion-marker--active','ELEMENT_PARAGRAPH','get','markerName','locale','TrackChangesEditing','schema','registerDescriptionCallback','format','enableCommand','insertParagraph','blockName','*Change\x20to:*\x20%0','*Insert:*\x20%0','document','bindElementToMarker','type','editor','nodeAfter','showSuggestionHighlights','span'];(function(_0x1d8d3d,_0x6c55f0){const _0x355868=function(_0x49b53f){while(--_0x49b53f){_0x1d8d3d['push'](_0x1d8d3d['shift']());}};_0x355868(++_0x6c55f0);}(_0x6c55,0xe0));const _0x3558=function(_0x1d8d3d,_0x6c55f0){_0x1d8d3d=_0x1d8d3d-0x0;let _0x355868=_0x6c55[_0x1d8d3d];return _0x355868;};import{Plugin as _0x2ef053}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x133b13}from'./utils';import{getTranslation as _0x52c7c1}from'../utils/common-translations';export default class ct extends _0x2ef053{[_0x3558('0x3')](){const _0xdec907=this[_0x3558('0x18')];if(!_0xdec907[_0x3558('0x32')][_0x3558('0x2f')](_0x3558('0x36')))return;const _0x4c2481=_0xdec907[_0x3558('0xb')],_0x5bfe8c=_0xdec907['plugins']['get']('TrackChangesEditing');_0x5bfe8c[_0x3558('0x22')][_0x3558('0x2c')](_0x3558('0x2'),_0x34cc47=>_0x52c7c1(_0x4c2481,_0x3558('0x8'),_0x34cc47)),_0x5bfe8c[_0x3558('0x10')](_0x3558('0x2'),(_0x214853,_0x20ea0e={})=>{const _0x869c76=_0xdec907[_0x3558('0x2a')][_0x3558('0x15')],_0x343097=_0x20ea0e[_0x3558('0x1')]||_0x869c76[_0x3558('0x1')],_0x1973a0=Array[_0x3558('0x21')](_0x343097[_0x3558('0x20')]())[_0x3558('0x27')](_0x4d0add=>function(_0x42db1a,_0x33956d){return _0x33956d[_0x3558('0x39')](_0x42db1a[_0x3558('0x3a')],_0x3558('0x2'))&&!_0x33956d[_0x3558('0x2e')](_0x42db1a)&&_0x3558('0x2')!=_0x42db1a[_0x3558('0x6')];}(_0x4d0add,this['editor'][_0x3558('0x2a')][_0x3558('0xd')]));_0xdec907['model'][_0x3558('0x31')](()=>{for(const _0x556448 of _0x1973a0)_0x5bfe8c[_0x3558('0x30')](_0x556448,{'commandName':_0x3558('0x2'),'commandParams':[],'formatGroupId':_0x3558('0x12')},_0x133b13(_0x556448));});}),_0x5bfe8c[_0x3558('0x22')][_0x3558('0xe')](_0x23fa51=>{const {data:_0x5f3419}=_0x23fa51;if(_0x5f3419&&'paragraph'==_0x5f3419[_0x3558('0x29')])return{'type':_0x3558('0xf'),'content':_0x52c7c1(_0x4c2481,_0x3558('0x13'),_0x52c7c1(_0x4c2481,'ELEMENT_PARAGRAPH'))};}),_0x5bfe8c[_0x3558('0x10')](_0x3558('0x11')),_0xdec907[_0x3558('0x0')]['downcastDispatcher']['on'](_0x3558('0x1d'),ar(_0xdec907),{'priority':_0x3558('0x2b')}),_0xdec907[_0x3558('0x1f')][_0x3558('0x1e')]['on'](_0x3558('0x1d'),(_0xafcd70,_0x39ee7f,_0x108d3b)=>{_0x108d3b['options'][_0x3558('0x1a')]&&ar(_0xdec907,{'showActiveMarker':!0x1})(_0xafcd70,_0x39ee7f,_0x108d3b);},{'priority':'highest'});const _0x1bd1ef=_0x5bfe8c[_0x3558('0x22')];_0x1bd1ef['registerDescriptionCallback'](_0x2eb0dd=>{if(_0x3558('0x3b')!==_0x2eb0dd[_0x3558('0x17')])return;const {start:_0x27a2c9,end:_0x1b084a}=_0x2eb0dd['getFirstRange']();if(!_0x27a2c9[_0x3558('0x3d')](_0x1b084a)||!_0x27a2c9[_0x3558('0x19')])return;const _0x5d534c=_0xdec907[_0x3558('0x2a')][_0x3558('0xd')],_0x207196=_0x27a2c9[_0x3558('0x19')];return _0x5d534c[_0x3558('0x34')](_0x207196)&&!_0x5d534c[_0x3558('0x26')](_0x207196)&&_0x5d534c[_0x3558('0x39')](_0x207196,_0x3558('0x33'))?{'type':_0x3558('0x3b'),'content':_0x52c7c1(_0x4c2481,_0x3558('0x14'),_0x1bd1ef[_0x3558('0x28')](_0x207196,0x1))}:void 0x0;});}}function ar(_0x13b33a,{showActiveMarker:_0x1e8f15=!0x0}={}){return(_0x4dea88,_0x5815a5,_0x42bd9e)=>{const _0x56bc33=_0x13b33a[_0x3558('0x32')][_0x3558('0x9')](_0x3558('0xc')),_0x36205b=_0x5815a5['markerRange'][_0x3558('0x25')],_0x2f07a2=_0x5815a5[_0x3558('0x2d')][_0x3558('0x35')],_0x5d4ab5=_0x13b33a[_0x3558('0x2a')][_0x3558('0xd')];if(!_0x36205b[_0x3558('0x3d')](_0x2f07a2)||!_0x36205b[_0x3558('0x19')])return;const _0x75c712=_0x36205b[_0x3558('0x19')];if(_0x5d4ab5[_0x3558('0x34')](_0x75c712)&&!_0x5d4ab5['isLimit'](_0x75c712)&&_0x5d4ab5[_0x3558('0x39')](_0x75c712,_0x3558('0x33'))){if(!_0x42bd9e[_0x3558('0x38')]['consume'](_0x5815a5[_0x3558('0x2d')],_0x4dea88['name']))return;const _0x9deede=_0x42bd9e[_0x3558('0x3c')][_0x3558('0x4')](_0x3558('0x1b'),{'class':'ck-suggestion-marker-split'}),_0x40408a=_0x42bd9e[_0x3558('0x24')][_0x3558('0x5')](_0x2f07a2);_0x1e8f15&&_0x56bc33[_0x3558('0x23')][_0x3558('0x1c')](_0x5815a5[_0x3558('0xa')])&&_0x42bd9e[_0x3558('0x3c')][_0x3558('0x3e')](_0x3558('0x7'),_0x9deede),_0x42bd9e[_0x3558('0x3c')][_0x3558('0x37')](_0x40408a,_0x9deede),_0x42bd9e['mapper'][_0x3558('0x16')](_0x9deede,_0x5815a5[_0x3558('0xa')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fa1=['getAttributeProperties','schema','TrackChangesEditing','get','locale','from','commandName','createRangeOn','enableCommand','getRanges','has','document','plugins','getAttributes','change','selection','_descriptionFactory','format','removeFormat','markInlineFormat','editor','*Remove\x20all\x20formatting*','isCollapsed','registerDescriptionCallback','model'];(function(_0x346431,_0x2fa1cb){const _0x869b07=function(_0x369252){while(--_0x369252){_0x346431['push'](_0x346431['shift']());}};_0x869b07(++_0x2fa1cb);}(_0x2fa1,0x140));const _0x869b=function(_0x346431,_0x2fa1cb){_0x346431=_0x346431-0x0;let _0x869b07=_0x2fa1[_0x346431];return _0x869b07;};import{Plugin as _0x13bf2e}from'ckeditor5/src/core';import{getTranslation as _0x38d290}from'../utils/common-translations';export default class ht extends _0x13bf2e{['afterInit'](){const _0x2c2097=this[_0x869b('0x0')];if(!_0x2c2097['plugins'][_0x869b('0xf')]('RemoveFormatEditing'))return;const _0x3e9ab=_0x2c2097[_0x869b('0x11')][_0x869b('0x8')](_0x869b('0x7'));_0x3e9ab[_0x869b('0xd')](_0x869b('0x17'),_0x154ba9=>{const _0x26fc70=_0x2c2097[_0x869b('0x4')][_0x869b('0x10')][_0x869b('0x14')];_0x26fc70[_0x869b('0x2')]?_0x154ba9():_0x2c2097[_0x869b('0x4')][_0x869b('0x13')](()=>{const _0x5de42e=Array[_0x869b('0xa')](_0x26fc70[_0x869b('0xe')]());for(const _0x3c369e of _0x5de42e)for(const _0x163289 of _0x3c369e['getItems']())eo(_0x163289,_0x2c2097[_0x869b('0x4')][_0x869b('0x6')])&&_0x3e9ab[_0x869b('0x18')](_0x2c2097['model'][_0x869b('0xc')](_0x163289),{'commandName':_0x869b('0x17'),'commandParams':[]});});}),_0x3e9ab[_0x869b('0x15')][_0x869b('0x3')](_0x37c45a=>{const {data:_0x5f9192}=_0x37c45a;if(_0x5f9192&&_0x869b('0x17')==_0x5f9192[_0x869b('0xb')])return{'type':_0x869b('0x16'),'content':_0x38d290(_0x2c2097[_0x869b('0x9')],_0x869b('0x1'))};});}}function eo(_0x494013,_0x1c4e16){for(const [_0x452c72]of _0x494013[_0x869b('0x12')]()){const _0x3c3d2a=_0x1c4e16[_0x869b('0x5')](_0x452c72);if(_0x3c3d2a&&_0x3c3d2a['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3907=['TrackChangesEditing','discardSuggestion','goToNextRestrictedEditingException','plugins','afterInit','acceptSelectedSuggestions','enableCommand','discardSelectedSuggestions','acceptAllSuggestions','trackChanges','editor','has','discardAllSuggestions','get','acceptSuggestion','RestrictedEditingModeEditing'];(function(_0x1c08cc,_0x390716){const _0x2e287a=function(_0x32bf8c){while(--_0x32bf8c){_0x1c08cc['push'](_0x1c08cc['shift']());}};_0x2e287a(++_0x390716);}(_0x3907,0xd9));const _0x2e28=function(_0x1c08cc,_0x390716){_0x1c08cc=_0x1c08cc-0x0;let _0x2e287a=_0x3907[_0x1c08cc];return _0x2e287a;};import{Plugin as _0x12431e}from'ckeditor5/src/core';export default class ut extends _0x12431e{[_0x2e28('0xb')](){const _0x3f60b7=this[_0x2e28('0x1')];if(!_0x3f60b7[_0x2e28('0xa')][_0x2e28('0x2')](_0x2e28('0x6')))return;const _0x3ea072=_0x3f60b7['plugins'][_0x2e28('0x4')](_0x2e28('0x7'));_0x3ea072[_0x2e28('0xd')]('goToPreviousRestrictedEditingException'),_0x3ea072['enableCommand'](_0x2e28('0x9'));const _0x4c6518=_0x3f60b7[_0x2e28('0xa')][_0x2e28('0x4')](_0x2e28('0x6'));_0x4c6518[_0x2e28('0xd')](_0x2e28('0x0')),_0x4c6518[_0x2e28('0xd')](_0x2e28('0x5')),_0x4c6518[_0x2e28('0xd')](_0x2e28('0x8')),_0x4c6518[_0x2e28('0xd')](_0x2e28('0xf')),_0x4c6518[_0x2e28('0xd')](_0x2e28('0x3')),_0x4c6518['enableCommand'](_0x2e28('0xc')),_0x4c6518[_0x2e28('0xd')](_0x2e28('0xe'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x419d=['addMarker:suggestion:insertion','consumable','createUIElement','span','addMarker:suggestion:deletion','showSuggestionHighlights','name','requires','ELEMENT_LINE_BREAK','split','deletion','mapper','softBreak','TrackChangesEditing','bindElementToMarker','markerRange','addMarker:suggestion','test','insert','activeMarkers','init','downcastDispatcher','get','markerName','element','editing','plugins','registerElementLabel','merge','locale','editor','writer','ck-suggestion-marker--active','addClass','shiftEnter','toViewPosition','enableCommand','high','getItems','ck-suggestion-marker-'];(function(_0x2ec677,_0x419de3){const _0x4c6516=function(_0x52d853){while(--_0x52d853){_0x2ec677['push'](_0x2ec677['shift']());}};_0x4c6516(++_0x419de3);}(_0x419d,0x128));const _0x4c65=function(_0x2ec677,_0x419de3){_0x2ec677=_0x2ec677-0x0;let _0x4c6516=_0x419d[_0x2ec677];return _0x4c6516;};import{Plugin as _0x11b367}from'ckeditor5/src/core';import{ShiftEnter as _0x19374b}from'ckeditor5/src/enter';import{getTranslation as _0x34ad92}from'../utils/common-translations';export default class ft extends _0x11b367{static get[_0x4c65('0x1f')](){return[_0x19374b];}[_0x4c65('0x4')](){const _0xf4be61=this[_0x4c65('0xe')],_0x59296=_0xf4be61['plugins'][_0x4c65('0x6')](_0x4c65('0x25'));_0x59296[_0x4c65('0x14')](_0x4c65('0x12')),_0xf4be61[_0x4c65('0x9')]['downcastDispatcher']['on'](_0x4c65('0x18'),re(_0xf4be61),{'priority':_0x4c65('0x15')}),_0xf4be61[_0x4c65('0x9')]['downcastDispatcher']['on'](_0x4c65('0x1c'),re(_0xf4be61),{'priority':_0x4c65('0x15')}),_0xf4be61['data'][_0x4c65('0x5')]['on'](_0x4c65('0x0'),(_0x22419e,_0x4d186f,_0x2f6bb6)=>{_0x2f6bb6['options'][_0x4c65('0x1d')]&&re(_0xf4be61,{'showActiveMarker':!0x1})(_0x22419e,_0x4d186f,_0x2f6bb6);}),_0x59296['_descriptionFactory'][_0x4c65('0xb')](_0x4c65('0x24'),_0x59459b=>_0x34ad92(_0xf4be61[_0x4c65('0xd')],_0x4c65('0x20'),_0x59459b));}}function re(_0x38c4dd,{showActiveMarker:_0x224071=!0x0}={}){return(_0x5b8f78,_0x5a2bf2,_0xa156df)=>{const _0x27c6ac=_0x38c4dd[_0x4c65('0xa')][_0x4c65('0x6')](_0x4c65('0x25'));if(!_0xa156df[_0x4c65('0x19')][_0x4c65('0x1')](_0x5a2bf2[_0x4c65('0x27')],_0x5b8f78[_0x4c65('0x1e')]))return;const _0x2c714e=_0x38c4dd['model'];for(const _0x110916 of _0x5a2bf2[_0x4c65('0x27')][_0x4c65('0x16')]()){if(!_0x110916['is'](_0x4c65('0x8'),'softBreak'))continue;const _0x74a5fc=_0x4c65('0x22')==_0x5a2bf2['markerName']['split'](':')[0x1]?_0x4c65('0xc'):_0x4c65('0x21'),_0x13250b=_0xa156df[_0x4c65('0xf')][_0x4c65('0x1a')](_0x4c65('0x1b'),{'class':_0x4c65('0x17')+_0x74a5fc}),_0x5242f6=_0xa156df[_0x4c65('0x23')][_0x4c65('0x13')](_0x2c714e['createPositionBefore'](_0x110916));_0x224071&&_0x27c6ac[_0x4c65('0x3')]['includes'](_0x5a2bf2[_0x4c65('0x7')])&&_0xa156df[_0x4c65('0xf')][_0x4c65('0x11')](_0x4c65('0x10'),_0x13250b),_0xa156df['writer'][_0x4c65('0x2')](_0x5242f6,_0x13250b),_0xa156df['mapper'][_0x4c65('0x26')](_0x13250b,_0x5a2bf2[_0x4c65('0x7')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ec1=['change','locale','commandParams','format','value','StandardEditingModeEditing','editor','forceValue','registerDescriptionCallback','commands','getRanges','isCollapsed','get','plugins','TrackChangesEditing','selection','_descriptionFactory','afterInit','from','enableCommand'];(function(_0x54d2ec,_0x2ec145){const _0x3a3c7c=function(_0x59a141){while(--_0x59a141){_0x54d2ec['push'](_0x54d2ec['shift']());}};_0x3a3c7c(++_0x2ec145);}(_0x2ec1,0x1c8));const _0x3a3c=function(_0x54d2ec,_0x2ec145){_0x54d2ec=_0x54d2ec-0x0;let _0x3a3c7c=_0x2ec1[_0x54d2ec];return _0x3a3c7c;};import{Plugin as _0x774e1}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x38a8aa}from'./utils';import{getTranslation as _0x504232}from'../utils/common-translations';export default class lt extends _0x774e1{[_0x3a3c('0x1')](){const _0x35ee80=this[_0x3a3c('0xa')],_0x3f247c=_0x35ee80['model'],_0x219828=_0x35ee80[_0x3a3c('0x5')];if(!_0x35ee80['plugins']['has'](_0x3a3c('0x9')))return;const _0xfc40c8=_0x35ee80[_0x3a3c('0x11')][_0x3a3c('0x10')](_0x3a3c('0x12')),_0x172382='restrictedEditingException',_0x21e8b6=_0x35ee80[_0x3a3c('0xd')]['get'](_0x172382);_0xfc40c8[_0x3a3c('0x3')](_0x172382,(_0x48c8dc,_0x44999d={})=>{const _0x47a4e2=_0x3f247c['document'][_0x3a3c('0x13')];if(_0x47a4e2[_0x3a3c('0xf')])return void _0x48c8dc(_0x44999d);const _0x1aa49a=void 0x0!==_0x44999d['forceValue']?_0x44999d[_0x3a3c('0xb')]:!_0x21e8b6[_0x3a3c('0x8')];_0x3f247c[_0x3a3c('0x4')](()=>{const _0x5dedc6=Array[_0x3a3c('0x2')](_0x47a4e2[_0x3a3c('0xe')]());for(const _0x498048 of _0x5dedc6){const _0x354bd7=_0x1aa49a?[_0x498048]:_0x38a8aa(_0x172382,_0x498048,_0x3f247c);for(const _0x1ed833 of _0x354bd7)_0xfc40c8['markInlineFormat'](_0x1ed833,{'commandName':_0x172382,'commandParams':[{'forceValue':_0x1aa49a}]});}});}),_0xfc40c8[_0x3a3c('0x0')][_0x3a3c('0xc')](_0x466191=>{const {data:_0x4621e2}=_0x466191;if(_0x4621e2&&_0x4621e2['commandName']==_0x172382)return _0x4621e2[_0x3a3c('0x6')][0x0][_0x3a3c('0xb')]?{'type':_0x3a3c('0x7'),'content':_0x504232(_0x219828,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x3a3c('0x7'),'content':_0x504232(_0x219828,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e7c=['style','getDefinitionsForView','add','normalizeConfig','every','enabledStyles','toLowerCase','classes','has','isCollapsed','markInlineFormat','enableCommand','name','*Remove\x20format:*\x20%0','commands','getAttribute','afterInit','createRangeOn','from','Style','_descriptionFactory','inline','get','plugins','push','_getRangesWithClasses','getRanges','DataSchema','locale','change','styleName','commandName','find','isBlock','commandParams','TrackChangesEditing','model','markBlockFormat','format','getAncestors','getItems','value','_getStyleDefinition','document','includes','modelElements','getSelectedBlocks'];(function(_0x23e03f,_0x3e7cbf){const _0xbbe81a=function(_0x42acd8){while(--_0x42acd8){_0x23e03f['push'](_0x23e03f['shift']());}};_0xbbe81a(++_0x3e7cbf);}(_0x3e7c,0xfa));const _0xbbe8=function(_0x23e03f,_0x3e7cbf){_0x23e03f=_0x23e03f-0x0;let _0xbbe81a=_0x3e7c[_0x23e03f];return _0xbbe81a;};import{Plugin as _0x461f7b}from'ckeditor5/src/core';import{getTranslation as _0x1b0878}from'../utils/common-translations';export default class gt extends _0x461f7b{[_0xbbe8('0x1')](){const _0x394bdb=this['editor'];if(!_0x394bdb[_0xbbe8('0x8')][_0xbbe8('0x28')](_0xbbe8('0x4')))return;const _0x689862=_0x394bdb[_0xbbe8('0x2e')]['get'](_0xbbe8('0x20')),_0x3fff3d=_0x394bdb[_0xbbe8('0x8')][_0xbbe8('0x7')](_0xbbe8('0x14')),_0x772a20=_0x394bdb[_0xbbe8('0xd')],_0x274a8f=_0x394bdb[_0xbbe8('0x8')][_0xbbe8('0x7')](_0xbbe8('0xc')),_0xe81951=_0x394bdb[_0xbbe8('0x8')]['get']('StyleUtils')[_0xbbe8('0x23')](_0x274a8f,_0x394bdb['config'][_0xbbe8('0x7')]('style.definitions'));_0x3fff3d[_0xbbe8('0x2b')]('style',(_0x22d197,{styleName:_0x27c60e})=>{const _0x3e4dfc=_0x394bdb[_0xbbe8('0x15')][_0xbbe8('0x1c')]['selection'],_0x5dd861=this[_0xbbe8('0x1b')](_0x27c60e,_0xe81951);if(!_0x5dd861)return;if(!_0x689862[_0xbbe8('0x25')][_0xbbe8('0x1d')](_0x27c60e))return;if(_0x3e4dfc[_0xbbe8('0x29')]&&!_0x5dd861[_0xbbe8('0x12')])return void _0x22d197({'styleName':_0x27c60e});const _0x4d2e69=!_0x689862[_0xbbe8('0x1a')]['includes'](_0x5dd861[_0xbbe8('0x2c')]);if(_0x5dd861['isBlock']){const _0x3d8d6f=function(_0x319da4,_0x415182){const _0x275f9d=new Set();for(const _0x2ae4e0 of _0x319da4){const _0x4b4c04=_0x2ae4e0[_0xbbe8('0x18')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x420da6 of _0x4b4c04)if(_0x415182[_0xbbe8('0x1d')](_0x420da6[_0xbbe8('0x2c')])){_0x275f9d[_0xbbe8('0x22')](_0x420da6);break;}}return _0x275f9d;}(_0x3e4dfc[_0xbbe8('0x1f')](),_0x5dd861[_0xbbe8('0x1e')]);_0x394bdb[_0xbbe8('0x15')][_0xbbe8('0xe')](()=>{for(const _0x2e90a5 of _0x3d8d6f)_0x3fff3d[_0xbbe8('0x16')](_0x2e90a5,{'commandName':_0xbbe8('0x20'),'commandParams':[{'styleName':_0x27c60e,'forceValue':_0x4d2e69}],'formatGroupId':'style:'+_0x27c60e});});}else{let _0x3726b8=Array[_0xbbe8('0x3')](_0x3e4dfc[_0xbbe8('0xb')]());if(!_0x4d2e69){const _0x113e78=Array[_0xbbe8('0x3')](_0x274a8f[_0xbbe8('0x21')](_0x5dd861['element'],!0x1))[0x0][_0xbbe8('0x15')],_0x2d9823=[];for(const _0x306392 of _0x3726b8){const _0x606aa1=this[_0xbbe8('0xa')](_0x394bdb[_0xbbe8('0x15')],_0x306392,_0x5dd861[_0xbbe8('0x27')],_0x113e78);_0x2d9823[_0xbbe8('0x9')](..._0x606aa1);}_0x3726b8=_0x2d9823;}_0x394bdb['model'][_0xbbe8('0xe')](()=>{for(const _0x1b00a7 of _0x3726b8)_0x3fff3d[_0xbbe8('0x2a')](_0x1b00a7,{'commandName':'style','commandParams':[{'styleName':_0x27c60e,'forceValue':_0x4d2e69}]});});}}),_0x3fff3d[_0xbbe8('0x5')]['registerDescriptionCallback'](_0xb28f21=>{const {data:_0x5b9d48}=_0xb28f21;if(_0x5b9d48&&'style'===_0x5b9d48[_0xbbe8('0x10')])return _0x5b9d48[_0xbbe8('0x13')][0x0]['forceValue']?{'type':_0xbbe8('0x17'),'content':_0x1b0878(_0x772a20,'*Format:*\x20%0',_0x5b9d48[_0xbbe8('0x13')][0x0][_0xbbe8('0xf')][_0xbbe8('0x26')]())}:{'type':_0xbbe8('0x17'),'content':_0x1b0878(_0x772a20,_0xbbe8('0x2d'),_0x5b9d48['commandParams'][0x0][_0xbbe8('0xf')][_0xbbe8('0x26')]())};});}['_getStyleDefinition'](_0x26643e,_0x414d54){let _0x4ebdba=_0x414d54['block'][_0xbbe8('0x11')](_0x1ac057=>_0x1ac057[_0xbbe8('0x2c')]===_0x26643e);return _0x4ebdba||(_0x4ebdba=_0x414d54[_0xbbe8('0x6')][_0xbbe8('0x11')](_0x34c626=>_0x34c626['name']===_0x26643e)),_0x4ebdba;}[_0xbbe8('0xa')](_0x83a8d8,_0xd5fe47,_0x5cd752,_0x31e25a){const _0x35d69f=[];for(const _0x22d48e of _0xd5fe47[_0xbbe8('0x19')]()){const _0x5a4c42=_0x22d48e[_0xbbe8('0x0')](_0x31e25a);_0x5a4c42&&(_0x5cd752[_0xbbe8('0x24')](_0x4daef4=>_0x5a4c42['classes'][_0xbbe8('0x1d')](_0x4daef4))&&_0x35d69f[_0xbbe8('0x9')](_0x83a8d8[_0xbbe8('0x2')](_0x22d48e)));}return _0x35d69f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1b35=['execute','nodeAfter','change','isArray','MIN_SAFE_INTEGER','*Remove:*\x20%0','*Insert:*\x20%0','getChanges','_descriptionFactory','classes','model','getContainedElement','minRow','tableCell','substr','_splitMarkerName','_getCoordsForCells','nodeBefore','_tableSuggestions','removeTableRow','refresh','colspan','$graveyard','removeTableColumn','getSuggestion','hasAttribute','$textProxy','markMultiRangeDeletion','_getSuggestionCoords','type','get','min','differ','getRanges','includes','startsWith','element','enableCommand','insertTableRowBelow','TableUtils','plugins','accept','ELEMENT_TABLE_COLUMN_WITH_TEXT','registerCustomCallback','push','MAX_SAFE_INTEGER','discard','selectTableRow','tablePaste','suggestion','toViewElement','findAncestor','enqueueChange','addClass','getSelectionAffectedTableCells','_acceptFormatSuggestionCallbackFactory','low','rowspan','getChangedMarkers','registerElementLabel','commands','add','from','deletion','ELEMENT_TABLE_WITH_TEXT','end','filter','TrackChangesEditing','getCellLocation','left','createTableWalker','name','length','createPositionAt','locale','createRangeIn','mapper','showSuggestionHighlights','ELEMENT_TABLE_COLUMN','setSelection','addRange','getColumnIndexes','registerDescriptionCallback','maxRow','ELEMENT_TABLE_ROW_WITH_TEXT','document','markMultiRangeInsertion','insertion','editor','start','join','insertTable','getChildren','getAttribute','change:data','last','forceValue','ELEMENT_TABLE_ROW','minColumn','getRowIndexes','insertTableRowAbove','insertTableColumnRight','ELEMENT_TABLE','fromRange','createRangeOn','selectTableColumn','some','isEqual','isIntersectingWithRange','position','toLowerCase','every','cell','addMarker:suggestion','getItems','order','_suggestionFactory','map','subType','rootName','has','root','table','_tablePostFixingSubtypes','first','tableRow','max','tableColumn','data'];(function(_0x35e2ae,_0x1b351b){const _0x167c64=function(_0x4deda5){while(--_0x4deda5){_0x35e2ae['push'](_0x35e2ae['shift']());}};_0x167c64(++_0x1b351b);}(_0x1b35,0x146));const _0x167c=function(_0x35e2ae,_0x1b351b){_0x35e2ae=_0x35e2ae-0x0;let _0x167c64=_0x1b35[_0x35e2ae];return _0x167c64;};import{Plugin as _0x5df773}from'ckeditor5/src/core';import{LiveRange as _0x50d1f6}from'ckeditor5/src/engine';import{setHighlightHandling as _0x43da1c}from'ckeditor5/src/widget';import{getTranslation as _0x4e8e0e}from'../utils/common-translations';export default class mt extends _0x5df773{constructor(_0x25a24a){super(_0x25a24a),this['_tablePostFixingSubtypes']=[_0x167c('0x39'),_0x167c('0x3b')],this[_0x167c('0x4f')]=new Set();}['afterInit'](){const _0x35ecf4=this[_0x167c('0x14')],_0x35f387=_0x35ecf4[_0x167c('0x47')][_0x167c('0x11')]['selection'];if(!_0x35ecf4[_0x167c('0x65')][_0x167c('0x34')]('TableEditing'))return;const _0x3ab8cd=_0x35ecf4[_0x167c('0x6')],_0x29f05e=_0x35ecf4[_0x167c('0x65')][_0x167c('0x5b')](_0x167c('0x80')),_0x58b627=_0x35ecf4['plugins'][_0x167c('0x5b')](_0x167c('0x64'));_0x29f05e[_0x167c('0x45')][_0x167c('0x78')](_0x167c('0x36'),_0x36d6bb=>_0x4e8e0e(_0x3ab8cd,_0x167c('0x22'),_0x36d6bb)),this['_setupColumnsRowsFixing'](),_0x29f05e['enableCommand'](_0x167c('0x17')),_0x29f05e[_0x167c('0x62')](_0x167c('0x6c')),_0x29f05e[_0x167c('0x62')](_0x167c('0x25'));for(const _0x58435f of[_0x167c('0x20'),_0x167c('0x63')]){const _0x35fecc=_0x35ecf4[_0x167c('0x79')]['get'](_0x58435f);_0x29f05e[_0x167c('0x62')](_0x58435f,_0x2b2420=>{_0x35ecf4['model'][_0x167c('0x3f')](_0x4e8229=>{_0x2b2420();const _0x1ed7e2='above'===_0x35fecc[_0x167c('0x2f')],_0x546b12=_0x58b627[_0x167c('0x73')](_0x35f387),_0x57b1bd=_0x58b627['getRowIndexes'](_0x546b12),_0x4d00e4=_0x1ed7e2?_0x57b1bd[_0x167c('0x38')]-0x1:_0x57b1bd[_0x167c('0x1b')]+0x1,_0x26fb28=_0x546b12[0x0][_0x167c('0x70')](_0x167c('0x36')),_0x175194=_0x58b627[_0x167c('0x2')](_0x26fb28,{'startRow':_0x4d00e4,'endRow':_0x4d00e4}),_0x248cbe=Array['from'](_0x175194)[_0x167c('0x31')](_0x32bbb7=>_0x4e8229[_0x167c('0x24')](_0x32bbb7[_0x167c('0x2c')]));_0x29f05e[_0x167c('0x12')](_0x248cbe,_0x167c('0x39'));});});}for(const _0x4d4473 of['insertTableColumnLeft',_0x167c('0x21')]){const _0x22c993=_0x35ecf4[_0x167c('0x79')][_0x167c('0x5b')](_0x4d4473);_0x29f05e[_0x167c('0x62')](_0x4d4473,_0x3c9ff6=>{_0x35ecf4[_0x167c('0x47')][_0x167c('0x3f')](_0x96ad31=>{_0x3c9ff6();const _0x2c341a=_0x167c('0x1')===_0x22c993[_0x167c('0x2f')],_0x2e1b0f=_0x58b627[_0x167c('0x73')](_0x35f387),_0x1006a6=_0x58b627[_0x167c('0xd')](_0x2e1b0f),_0x328c8a=_0x2c341a?_0x1006a6['first']-0x1:_0x1006a6['last']+0x1,_0x539afd=_0x2e1b0f[0x0][_0x167c('0x70')](_0x167c('0x36')),_0x2142f3=_0x58b627[_0x167c('0x2')](_0x539afd,{'startRow':0x0,'column':_0x328c8a,'includeAllSlots':!0x1}),_0x7d93f1=Array[_0x167c('0x7b')](_0x2142f3)[_0x167c('0x31')](_0x45526c=>_0x96ad31[_0x167c('0x24')](_0x45526c[_0x167c('0x2c')]));_0x29f05e['markMultiRangeInsertion'](_0x7d93f1,_0x167c('0x3b'));});});}for(const _0x277d2b of[_0x167c('0x50'),_0x167c('0x54')]){const _0x92e143=_0x277d2b[_0x167c('0x4b')](0xb),_0x4f99e3=_0x92e143[_0x167c('0x2a')](),_0x4db0af=_0x4f99e3[_0x167c('0x4b')](0x0,0x3)+'span',_0x2f604b=_0x167c('0x36')+_0x92e143,_0x4e9bb2=_0x167c('0x5c')+_0x92e143,_0x4e13df=_0x167c('0x3a')+_0x92e143;_0x29f05e[_0x167c('0x62')](_0x277d2b,()=>{_0x35ecf4[_0x167c('0x47')][_0x167c('0x3f')](_0x3f697b=>{const _0x5dbcb0=_0x58b627[_0x167c('0x73')](_0x35f387),_0x3dfba2=_0x5dbcb0[0x0][_0x167c('0x70')](_0x167c('0x36'));let _0x55e62b;if(_0x167c('0x50')==_0x277d2b){const _0x28f4ce=_0x58b627[_0x167c('0x1f')](_0x5dbcb0);_0x55e62b={'startRow':_0x28f4ce['first'],'endRow':_0x28f4ce[_0x167c('0x1b')],'includeAllSlots':!0x0};}else{const _0x19e3f3=_0x58b627['getColumnIndexes'](_0x5dbcb0);_0x55e62b={'startColumn':_0x19e3f3[_0x167c('0x38')],'endColumn':_0x19e3f3[_0x167c('0x1b')],'includeAllSlots':!0x0};}const _0x182e1d=_0x58b627[_0x167c('0x2')](_0x3dfba2,_0x55e62b),_0x206d08=Array[_0x167c('0x7b')](_0x182e1d)[_0x167c('0x31')](({cell:_0x579315})=>_0x579315),_0x358be2=se(_0x206d08[_0x167c('0x7f')](_0x44ea80=>_0x44ea80[_0x167c('0x56')](_0x4db0af))),_0x36f679=se(_0x206d08[_0x167c('0x7f')](_0x1f9a22=>!_0x1f9a22['hasAttribute'](_0x4db0af)))[_0x167c('0x31')](_0x395ff2=>_0x3f697b[_0x167c('0x24')](_0x395ff2)),_0x492279=_0x29f05e[_0x167c('0x58')](_0x36f679,_0x2f604b);if(_0x492279&&(_0x167c('0x39')==_0x492279[_0x167c('0x32')]||_0x167c('0x3b')==_0x492279[_0x167c('0x32')])){const _0x2011c2=this[_0x167c('0x59')](_0x492279);for(const _0x46e8f2 of _0x358be2){const _0x133aa1=_0x3f697b['createRangeOn'](_0x46e8f2),_0x53cc8f=_0x58b627[_0x167c('0x0')](_0x46e8f2),_0x22e603=_0x46e8f2[_0x167c('0x19')](_0x4db0af)-0x1,_0x1c2817=_0x2011c2[_0x4e9bb2],_0x3cc744=_0x2011c2[_0x4e13df];_0x1c2817<=_0x53cc8f[_0x4f99e3]&&_0x53cc8f[_0x4f99e3]+_0x22e603<=_0x3cc744&&_0x492279[_0x167c('0xc')](_0x133aa1);}}});});}function _0x436cfa(_0x2a6f21){const _0x1f480b=Array[_0x167c('0x7b')](_0x35f387[_0x167c('0x5e')]())[_0x167c('0x31')](_0x1988e7=>_0x50d1f6[_0x167c('0x23')](_0x1988e7));_0x35ecf4[_0x167c('0x47')][_0x167c('0x3f')](_0x4c0e84=>{const _0x3e37d0=_0x4c0e84['batch'];_0x2a6f21=_0x2a6f21[_0x167c('0x7f')](_0x720bc2=>_0x167c('0x53')!=_0x720bc2[_0x167c('0x35')][_0x167c('0x33')]),_0x4c0e84[_0x167c('0xb')](_0x2a6f21),_0x35ecf4[_0x167c('0x79')]['get'](_0x167c('0x50'))[_0x167c('0x51')](),_0x35ecf4[_0x167c('0x3d')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x35ecf4[_0x167c('0x47')][_0x167c('0x71')](()=>{_0x35ecf4[_0x167c('0x47')][_0x167c('0x71')](_0x3e37d0,_0x54ae23=>{const _0x32534b=_0x1f480b[_0x167c('0x7f')](_0x5cf908=>_0x167c('0x53')!=_0x5cf908[_0x167c('0x35')][_0x167c('0x33')]);_0x32534b['length']>0x0&&_0x54ae23[_0x167c('0xb')](_0x32534b);for(const _0x2faaee of _0x1f480b)_0x2faaee['detach']();});});});}function _0x542f1c(_0x39e6d1){_0x35ecf4[_0x167c('0x47')][_0x167c('0x3f')](_0x465d9b=>{const _0x208bc8=Array[_0x167c('0x7b')](_0x35f387[_0x167c('0x5e')]())[_0x167c('0x31')](_0x451234=>_0x50d1f6['fromRange'](_0x451234)),_0x14b979=[];for(const _0x516c6f of _0x39e6d1)for(const _0x41baac of _0x516c6f['getItems']({'shallow':!0x0}))_0x14b979['push'](_0x41baac);for(const _0x273110 of _0x14b979)_0x167c('0x53')!=_0x273110[_0x167c('0x35')][_0x167c('0x33')]&&(_0x465d9b[_0x167c('0xb')](_0x465d9b[_0x167c('0x5')](_0x273110,0x0)),_0x35ecf4[_0x167c('0x79')]['get'](_0x167c('0x54'))['refresh'](),_0x35ecf4['execute'](_0x167c('0x54'),{'forceDefaultExecution':!0x0}));const _0x57f208=_0x208bc8[_0x167c('0x7f')](_0x442cd5=>_0x167c('0x53')!=_0x442cd5[_0x167c('0x35')][_0x167c('0x33')]);_0x57f208['length']>0x0&&_0x465d9b[_0x167c('0xb')](_0x57f208);for(const _0x41a17b of _0x208bc8)_0x41a17b['detach']();});}function _0x322d09(_0x2f722c,_0x254f05){return _0x254f05[_0x167c('0x2b')](_0x57a7ea=>_0x2f722c[_0x167c('0x26')](_0x207ca5=>_0x207ca5[_0x167c('0x7e')][_0x167c('0x27')](_0x57a7ea['start'])||_0x57a7ea[_0x167c('0x7e')][_0x167c('0x27')](_0x207ca5[_0x167c('0x15')])));}function _0xf5db91(_0x3f0547,_0x11e616){return _0x3f0547[_0x167c('0x26')](_0x25cd5c=>_0x11e616[_0x167c('0x26')](_0x52015c=>_0x25cd5c[_0x167c('0x7e')]['isTouching'](_0x52015c[_0x167c('0x15')])));}_0x35ecf4['data']['downcastDispatcher']['on'](_0x167c('0x2d'),(_0x5df265,_0x1bdf0b,_0x372144)=>{if(!_0x372144['options'][_0x167c('0x9')])return;const _0x4d1645=_0x1bdf0b['item'];if(!_0x4d1645)return;const _0x566dc1=_0x372144[_0x167c('0x8')][_0x167c('0x6f')](_0x4d1645);function _0x25a728(_0x408c72){return Array[_0x167c('0x40')](_0x408c72)?_0x408c72:[_0x408c72];}_0x566dc1&&_0x167c('0x4a')===_0x4d1645[_0x167c('0x3')]&&_0x43da1c(_0x566dc1,_0x372144['writer'],(_0x567262,_0x11198a,_0x4eb8c5)=>_0x4eb8c5[_0x167c('0x72')](_0x25a728(_0x11198a[_0x167c('0x46')]),_0x567262),(_0x988302,_0x29236f,_0x51a2d6)=>_0x51a2d6['removeClass'](_0x25a728(_0x29236f[_0x167c('0x46')]),_0x988302));},{'priority':'highest'}),_0x29f05e['_descriptionFactory']['registerDescriptionCallback'](_0x2a1f8f=>{if(_0x167c('0x13')!=_0x2a1f8f['type']&&_0x167c('0x7c')!=_0x2a1f8f[_0x167c('0x5a')])return;const _0x14e040=_0x2a1f8f[_0x167c('0x48')]();if(null!=_0x14e040&&_0x14e040['is'](_0x167c('0x61'),_0x167c('0x36'))){if(_0x167c('0x13')==_0x2a1f8f[_0x167c('0x5a')]){const _0x43aeb7=_0x2a1f8f[_0x167c('0x2e')]()['filter'](_0x19473c=>_0x19473c['is']('$textProxy'))[_0x167c('0x31')](_0x3e161d=>_0x3e161d[_0x167c('0x3c')]);if(_0x43aeb7[_0x167c('0x4')])return{'type':'insertion','content':_0x4e8e0e(_0x3ab8cd,_0x167c('0x43'),_0x4e8e0e(_0x3ab8cd,_0x167c('0x7d'),'\x22'+_0x43aeb7[_0x167c('0x16')]('\x20')+'\x22'))};}if(_0x167c('0x7c')==_0x2a1f8f['type']){const _0x12364b=_0x2a1f8f[_0x167c('0x2e')]()['filter'](_0x44f20d=>_0x44f20d['is'](_0x167c('0x57')))[_0x167c('0x31')](_0x5c3fb8=>_0x5c3fb8[_0x167c('0x3c')]);if(_0x12364b[_0x167c('0x4')])return{'type':'deletion','content':_0x4e8e0e(_0x3ab8cd,_0x167c('0x42'),_0x4e8e0e(_0x3ab8cd,_0x167c('0x7d'),'\x22'+_0x12364b['join']('\x20')+'\x22'))};}}}),_0x29f05e[_0x167c('0x45')][_0x167c('0xe')](_0x480ee7=>{if(_0x167c('0x39')==_0x480ee7[_0x167c('0x32')]){const _0x36e86d=_0x480ee7[_0x167c('0x2e')]()['filter'](_0x4b5292=>_0x4b5292['is'](_0x167c('0x57')))['map'](_0x55dc41=>_0x55dc41[_0x167c('0x3c')]),_0x1bf448=this[_0x167c('0x59')](_0x480ee7),_0xdbeda4=_0x1bf448[_0x167c('0xf')]-_0x1bf448[_0x167c('0x49')]+0x1;if('insertion'==_0x480ee7[_0x167c('0x5a')])return _0x36e86d[_0x167c('0x4')]?{'type':_0x167c('0x13'),'content':_0x4e8e0e(_0x3ab8cd,_0x167c('0x43'),_0x4e8e0e(_0x3ab8cd,_0x167c('0x10'),[_0xdbeda4,'\x22'+_0x36e86d[_0x167c('0x16')]('\x20')+'\x22']))}:{'type':_0x167c('0x13'),'content':_0x4e8e0e(_0x3ab8cd,'*Insert:*\x20%0',_0x4e8e0e(_0x3ab8cd,_0x167c('0x1d'),_0xdbeda4))};if(_0x167c('0x7c')==_0x480ee7[_0x167c('0x5a')])return _0x36e86d['length']?{'type':_0x167c('0x7c'),'content':_0x4e8e0e(_0x3ab8cd,_0x167c('0x42'),_0x4e8e0e(_0x3ab8cd,_0x167c('0x10'),[_0xdbeda4,'\x22'+_0x36e86d[_0x167c('0x16')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x4e8e0e(_0x3ab8cd,'*Remove:*\x20%0',_0x4e8e0e(_0x3ab8cd,'ELEMENT_TABLE_ROW',_0xdbeda4))};}if('tableColumn'==_0x480ee7[_0x167c('0x32')]){const _0x5cb198=_0x480ee7['getItems']()[_0x167c('0x7f')](_0x3988ec=>_0x3988ec['is'](_0x167c('0x57')))[_0x167c('0x31')](_0x2d8ec2=>_0x2d8ec2['data']),_0x151850=this[_0x167c('0x59')](_0x480ee7),_0x460ce8=_0x151850['maxColumn']-_0x151850[_0x167c('0x1e')]+0x1;if(_0x167c('0x13')==_0x480ee7[_0x167c('0x5a')])return _0x5cb198['length']?{'type':'insertion','content':_0x4e8e0e(_0x3ab8cd,_0x167c('0x43'),_0x4e8e0e(_0x3ab8cd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x460ce8,'\x22'+_0x5cb198['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x4e8e0e(_0x3ab8cd,'*Insert:*\x20%0',_0x4e8e0e(_0x3ab8cd,'ELEMENT_TABLE_COLUMN',_0x460ce8))};if(_0x167c('0x7c')==_0x480ee7[_0x167c('0x5a')])return _0x5cb198['length']?{'type':_0x167c('0x7c'),'content':_0x4e8e0e(_0x3ab8cd,_0x167c('0x42'),_0x4e8e0e(_0x3ab8cd,_0x167c('0x67'),[_0x460ce8,'\x22'+_0x5cb198['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x4e8e0e(_0x3ab8cd,_0x167c('0x42'),_0x4e8e0e(_0x3ab8cd,_0x167c('0xa'),_0x460ce8))};}}),_0x29f05e['_suggestionFactory'][_0x167c('0x68')](_0x167c('0x13'),_0x167c('0x39'),_0x167c('0x6b'),_0x436cfa),_0x29f05e[_0x167c('0x30')][_0x167c('0x68')](_0x167c('0x7c'),_0x167c('0x39'),'accept',_0x436cfa),_0x29f05e['_suggestionFactory'][_0x167c('0x68')](_0x167c('0x13'),_0x167c('0x3b'),_0x167c('0x6b'),_0x542f1c),_0x29f05e[_0x167c('0x30')][_0x167c('0x68')](_0x167c('0x7c'),_0x167c('0x3b'),_0x167c('0x66'),_0x542f1c),_0x29f05e[_0x167c('0x30')][_0x167c('0x68')](_0x167c('0x13'),_0x167c('0x3b'),_0x167c('0x16'),_0x322d09),_0x29f05e[_0x167c('0x30')][_0x167c('0x68')](_0x167c('0x7c'),'tableColumn',_0x167c('0x16'),_0x322d09),_0x29f05e[_0x167c('0x30')][_0x167c('0x68')](_0x167c('0x13'),_0x167c('0x39'),_0x167c('0x16'),_0xf5db91),_0x29f05e[_0x167c('0x30')][_0x167c('0x68')](_0x167c('0x7c'),_0x167c('0x39'),'join',_0xf5db91);}[_0x167c('0x74')](){const _0x4a2265=this[_0x167c('0x14')],_0x1b8058=_0x4a2265[_0x167c('0x47')]['document']['selection'];return(_0x3efacd,_0x5ea8c2)=>{_0x4a2265[_0x167c('0x47')]['change'](_0x3eb2e9=>{const {commandName:_0xef33e6,commandParams:_0xca3eaa}=_0x5ea8c2;let _0xa1d645=_0x3efacd[0x0][_0x167c('0x7e')][_0x167c('0x4e')];_0xca3eaa&&_0xca3eaa[0x0]&&!0x1===_0xca3eaa[0x0][_0x167c('0x1c')]&&(_0xa1d645=_0x3efacd[0x0]['start'][_0x167c('0x3e')]);const _0x1e63da=_0x3eb2e9[_0x167c('0x7')](_0xa1d645);if('$graveyard'==_0x1e63da['root'][_0x167c('0x33')])return;const _0x503d09=Array[_0x167c('0x7b')](_0x1b8058[_0x167c('0x5e')]())['map'](_0x457ce7=>_0x50d1f6[_0x167c('0x23')](_0x457ce7));_0x3eb2e9['setSelection'](_0x1e63da),_0x4a2265['commands']['get'](_0xef33e6)['refresh'](),_0xca3eaa[_0x167c('0x69')]({'forceDefaultExecution':!0x0}),_0x4a2265['execute'](_0xef33e6,..._0xca3eaa);const _0x527db1=_0x503d09[_0x167c('0x7f')](_0x3f59db=>'$graveyard'!=_0x3f59db[_0x167c('0x35')][_0x167c('0x33')]);_0x527db1[_0x167c('0x4')]>0x0&&_0x3eb2e9['setSelection'](_0x527db1);for(const _0x2cf4f1 of _0x503d09)_0x2cf4f1['detach']();});};}[_0x167c('0x4d')](_0x3eb937){const _0x302e78=this[_0x167c('0x14')][_0x167c('0x65')][_0x167c('0x5b')]('TableUtils');let _0x4fbaea=Number[_0x167c('0x6a')],_0x268080=Number[_0x167c('0x41')],_0x15799b=Number['MAX_SAFE_INTEGER'],_0x14cdae=Number[_0x167c('0x41')];for(const _0x26845d of _0x3eb937){if(_0x167c('0x53')==_0x26845d['root'][_0x167c('0x33')])continue;const {row:_0x1f58fc,column:_0x1b0cb0}=_0x302e78[_0x167c('0x0')](_0x26845d),_0x264218=_0x26845d[_0x167c('0x56')](_0x167c('0x76'))?_0x26845d[_0x167c('0x19')](_0x167c('0x76'))-0x1:0x0,_0x11ce34=_0x26845d[_0x167c('0x56')](_0x167c('0x52'))?_0x26845d[_0x167c('0x19')](_0x167c('0x52'))-0x1:0x0;_0x4fbaea=_0x1f58fc<_0x4fbaea?_0x1f58fc:_0x4fbaea,_0x268080=_0x1f58fc+_0x264218>_0x268080?_0x1f58fc+_0x264218:_0x268080,_0x15799b=_0x1b0cb0<_0x15799b?_0x1b0cb0:_0x15799b,_0x14cdae=_0x1b0cb0+_0x11ce34>_0x14cdae?_0x1b0cb0+_0x11ce34:_0x14cdae;}return{'minRow':_0x4fbaea,'maxRow':_0x268080,'minColumn':_0x15799b,'maxColumn':_0x14cdae};}['_setupColumnsRowsFixing'](){const _0x581e80=this[_0x167c('0x14')],_0x1eef8c=_0x581e80[_0x167c('0x65')][_0x167c('0x5b')](_0x167c('0x80')),_0x62d95f=_0x581e80[_0x167c('0x65')][_0x167c('0x5b')]('TableUtils');_0x581e80[_0x167c('0x47')][_0x167c('0x11')]['on'](_0x167c('0x1a'),()=>{const _0x1d84fe=Array['from'](_0x581e80[_0x167c('0x47')][_0x167c('0x11')][_0x167c('0x5d')][_0x167c('0x77')]());for(const {name:_0x476b08,data:_0x5040ff}of _0x1d84fe){const {group:_0x143db0,id:_0x3f3eb6,subType:_0xbf5300}=_0x1eef8c[_0x167c('0x4c')](_0x476b08);if(_0x167c('0x6e')!=_0x143db0)continue;if(null!=_0x5040ff['oldRange'])continue;const _0x5c96cc=_0x1eef8c[_0x167c('0x55')](_0x3f3eb6);this[_0x167c('0x37')][_0x167c('0x5f')](_0xbf5300)&&this[_0x167c('0x4f')][_0x167c('0x7a')](_0x5c96cc);}},{'priority':_0x167c('0x75')});const _0x293cc3=(_0x2b5100,_0x483992)=>{let _0x1c5fde=!0x1;const _0x5ea30e=_0x483992['createRangeOn'](_0x2b5100),_0x2b5f2d=_0x2b5100[_0x167c('0x70')](_0x167c('0x36')),_0x3db4a5=_0x62d95f[_0x167c('0x0')](_0x2b5100);for(const _0x4e7996 of this['_tableSuggestions']){const _0x58b1a9=_0x4e7996[_0x167c('0x32')],_0x3406ee=_0x58b1a9[_0x167c('0x60')](_0x167c('0x6d')),_0x380588=_0x58b1a9['substr'](_0x3406ee?0xa:0x5),_0x36a3b3=_0x380588[_0x167c('0x2a')](),_0x1f98bd=_0x36a3b3[_0x167c('0x4b')](0x0,0x3)+'span',_0xaea72d='min'+_0x380588,_0x3f9075=_0x167c('0x3a')+_0x380588;if(!_0x4e7996['isInContent'])continue;if(_0x2b5f2d!=_0x4e7996['getFirstRange']()[_0x167c('0x15')][_0x167c('0x70')](_0x167c('0x36')))continue;if(_0x4e7996[_0x167c('0x28')](_0x5ea30e))continue;const _0x20def4=_0x2b5100['hasAttribute'](_0x1f98bd)?_0x2b5100[_0x167c('0x19')](_0x1f98bd)-0x1:0x0,_0x4a0df6=this['_getSuggestionCoords'](_0x4e7996),_0x5aa841=_0x4a0df6[_0xaea72d],_0xc10b8c=_0x4a0df6[_0x3f9075];_0x5aa841<=_0x3db4a5[_0x36a3b3]&&_0x3db4a5[_0x36a3b3]+_0x20def4<=_0xc10b8c&&(_0x4e7996[_0x167c('0xc')](_0x5ea30e),_0x1c5fde=!0x0);}return _0x1c5fde;};_0x581e80['model'][_0x167c('0x11')]['registerPostFixer'](_0x1cfdae=>{let _0x3d076d=!0x1;for(const _0x29151c of _0x581e80[_0x167c('0x47')][_0x167c('0x11')]['differ'][_0x167c('0x44')]())if('insert'==_0x29151c[_0x167c('0x5a')]){if(_0x167c('0x39')==_0x29151c[_0x167c('0x3')])for(const _0x5e7b49 of _0x29151c[_0x167c('0x29')][_0x167c('0x3e')][_0x167c('0x18')]())_0x3d076d=_0x3d076d||_0x293cc3(_0x5e7b49,_0x1cfdae);else _0x167c('0x4a')==_0x29151c[_0x167c('0x3')]&&(_0x3d076d=_0x3d076d||_0x293cc3(_0x29151c['position'][_0x167c('0x3e')],_0x1cfdae));}return _0x3d076d;});}[_0x167c('0x59')](_0x31b5f7){return this[_0x167c('0x4d')](_0x31b5f7[_0x167c('0x5e')]()[_0x167c('0x31')](_0x20e9dd=>_0x20e9dd[_0x167c('0x15')][_0x167c('0x3e')]));}}function se(_0x177e02){return Array[_0x167c('0x7b')](new Set(_0x177e02)['values']());}
|
|
23
|
+
const _0x3269=['getSelectionAffectedTableCells','filter','enqueueChange','commands','$graveyard','change','plugins','cell','isIntersectingWithRange','options','MIN_SAFE_INTEGER','_setupColumnsRowsFixing','order','downcastDispatcher','deletion','ELEMENT_TABLE_COLUMN','tablePaste','mapper','showSuggestionHighlights','data','highest','addMarker:suggestion','getRanges','minColumn','registerElementLabel','MAX_SAFE_INTEGER','join','end','selectTableRow','span','model','detach','first','getColumnIndexes','rootName','getFirstRange','position','ELEMENT_TABLE_ROW_WITH_TEXT','isTouching','locale','table','enableCommand','setSelection','insertTableColumnLeft','oldRange','removeTableRow','nodeAfter','insertion','fromRange','every','TrackChangesEditing','isArray','_suggestionFactory','forceValue','registerCustomCallback','createRangeIn','has','getChangedMarkers','rowspan','findAncestor','editor','registerDescriptionCallback','tableRow','_tableSuggestions','*Remove:*\x20%0','batch','_getCoordsForCells','accept','afterInit','type','getChildren','createRangeOn','tableColumn','max','discard','change:data','createTableWalker','differ','TableEditing','name','ELEMENT_TABLE','selectTableColumn','document','start','tableCell','execute','root','push','$textProxy','insertTableColumnRight','getAttribute','getContainedElement','getItems','hasAttribute','minRow','getRowIndexes','ELEMENT_TABLE_ROW','element','toLowerCase','createPositionAt','min','_splitMarkerName','from','addRange','substr','isInContent','ELEMENT_TABLE_WITH_TEXT','TableUtils','_acceptFormatSuggestionCallbackFactory','colspan','markMultiRangeInsertion','_tablePostFixingSubtypes','low','selection','item','addClass','insertTable','suggestion','insertTableRowAbove','isEqual','values','startsWith','removeTableColumn','some','*Insert:*\x20%0','_descriptionFactory','map','getCellLocation','_getSuggestionCoords','markMultiRangeDeletion','last','ELEMENT_TABLE_COLUMN_WITH_TEXT','removeClass','getChanges','left','classes','subType','refresh','length','get'];(function(_0x1b245f,_0x3269cb){const _0x447262=function(_0x4edb2c){while(--_0x4edb2c){_0x1b245f['push'](_0x1b245f['shift']());}};_0x447262(++_0x3269cb);}(_0x3269,0xd6));const _0x4472=function(_0x1b245f,_0x3269cb){_0x1b245f=_0x1b245f-0x0;let _0x447262=_0x3269[_0x1b245f];return _0x447262;};import{Plugin as _0x2398df}from'ckeditor5/src/core';import{LiveRange as _0x2e5f8b}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2d4a82}from'ckeditor5/src/widget';import{getTranslation as _0x3b2b54}from'../utils/common-translations';export default class mt extends _0x2398df{constructor(_0x914b58){super(_0x914b58),this[_0x4472('0x25')]=[_0x4472('0x80'),_0x4472('0x8a')],this[_0x4472('0x81')]=new Set();}[_0x4472('0x86')](){const _0x294429=this[_0x4472('0x7e')],_0x106fce=_0x294429[_0x4472('0x60')][_0x4472('0x8')]['selection'];if(!_0x294429[_0x4472('0x48')][_0x4472('0x7a')](_0x4472('0x4')))return;const _0x1b16cb=_0x294429[_0x4472('0x69')],_0x36a3fa=_0x294429['plugins']['get'](_0x4472('0x74')),_0xa286f2=_0x294429[_0x4472('0x48')][_0x4472('0x41')](_0x4472('0x21'));_0x36a3fa[_0x4472('0x33')][_0x4472('0x5a')](_0x4472('0x6a'),_0x60d28f=>_0x3b2b54(_0x1b16cb,_0x4472('0x6'),_0x60d28f)),this[_0x4472('0x4d')](),_0x36a3fa['enableCommand'](_0x4472('0x2a')),_0x36a3fa[_0x4472('0x6b')](_0x4472('0x5e')),_0x36a3fa[_0x4472('0x6b')](_0x4472('0x7'));for(const _0x11f61c of[_0x4472('0x2c'),'insertTableRowBelow']){const _0x588a83=_0x294429['commands']['get'](_0x11f61c);_0x36a3fa['enableCommand'](_0x11f61c,_0x293108=>{_0x294429[_0x4472('0x60')]['change'](_0x4015b7=>{_0x293108();const _0x136922='above'===_0x588a83[_0x4472('0x4e')],_0x3be4d1=_0xa286f2[_0x4472('0x42')](_0x106fce),_0x36adf0=_0xa286f2[_0x4472('0x15')](_0x3be4d1),_0xe3a128=_0x136922?_0x36adf0[_0x4472('0x62')]-0x1:_0x36adf0[_0x4472('0x38')]+0x1,_0x4f5669=_0x3be4d1[0x0][_0x4472('0x7d')](_0x4472('0x6a')),_0x1c4b1a=_0xa286f2[_0x4472('0x2')](_0x4f5669,{'startRow':_0xe3a128,'endRow':_0xe3a128}),_0x4e4071=Array['from'](_0x1c4b1a)[_0x4472('0x34')](_0x25fa5f=>_0x4015b7[_0x4472('0x89')](_0x25fa5f[_0x4472('0x49')]));_0x36a3fa[_0x4472('0x24')](_0x4e4071,'tableRow');});});}for(const _0x57af08 of[_0x4472('0x6d'),_0x4472('0xf')]){const _0x4cde64=_0x294429['commands']['get'](_0x57af08);_0x36a3fa['enableCommand'](_0x57af08,_0x56e9f9=>{_0x294429[_0x4472('0x60')][_0x4472('0x47')](_0x3532e9=>{_0x56e9f9();const _0x37b335=_0x4472('0x3c')===_0x4cde64[_0x4472('0x4e')],_0x26b85a=_0xa286f2['getSelectionAffectedTableCells'](_0x106fce),_0x374b92=_0xa286f2[_0x4472('0x63')](_0x26b85a),_0x19d1ee=_0x37b335?_0x374b92[_0x4472('0x62')]-0x1:_0x374b92['last']+0x1,_0x506dd4=_0x26b85a[0x0][_0x4472('0x7d')]('table'),_0x2b3cef=_0xa286f2[_0x4472('0x2')](_0x506dd4,{'startRow':0x0,'column':_0x19d1ee,'includeAllSlots':!0x1}),_0x32dd99=Array[_0x4472('0x1c')](_0x2b3cef)[_0x4472('0x34')](_0x3eb6ea=>_0x3532e9[_0x4472('0x89')](_0x3eb6ea[_0x4472('0x49')]));_0x36a3fa[_0x4472('0x24')](_0x32dd99,_0x4472('0x8a'));});});}for(const _0x3a0d11 of['removeTableRow','removeTableColumn']){const _0xd4c2c0=_0x3a0d11['substr'](0xb),_0x54daf3=_0xd4c2c0[_0x4472('0x18')](),_0x152ac7=_0x54daf3[_0x4472('0x1e')](0x0,0x3)+'span',_0x113e22=_0x4472('0x6a')+_0xd4c2c0,_0x2e52e2=_0x4472('0x1a')+_0xd4c2c0,_0x206e60='max'+_0xd4c2c0;_0x36a3fa[_0x4472('0x6b')](_0x3a0d11,()=>{_0x294429[_0x4472('0x60')][_0x4472('0x47')](_0x58c66d=>{const _0xa8dd62=_0xa286f2[_0x4472('0x42')](_0x106fce),_0x1fc210=_0xa8dd62[0x0][_0x4472('0x7d')](_0x4472('0x6a'));let _0x51ec8a;if('removeTableRow'==_0x3a0d11){const _0x3bfd59=_0xa286f2[_0x4472('0x15')](_0xa8dd62);_0x51ec8a={'startRow':_0x3bfd59[_0x4472('0x62')],'endRow':_0x3bfd59[_0x4472('0x38')],'includeAllSlots':!0x0};}else{const _0x566973=_0xa286f2[_0x4472('0x63')](_0xa8dd62);_0x51ec8a={'startColumn':_0x566973['first'],'endColumn':_0x566973[_0x4472('0x38')],'includeAllSlots':!0x0};}const _0x2be958=_0xa286f2['createTableWalker'](_0x1fc210,_0x51ec8a),_0x31993f=Array[_0x4472('0x1c')](_0x2be958)[_0x4472('0x34')](({cell:_0x3e8e0c})=>_0x3e8e0c),_0x4c818c=se(_0x31993f[_0x4472('0x43')](_0xa5d642=>_0xa5d642[_0x4472('0x13')](_0x152ac7))),_0x5c180e=se(_0x31993f[_0x4472('0x43')](_0x82ace8=>!_0x82ace8[_0x4472('0x13')](_0x152ac7)))[_0x4472('0x34')](_0xddd872=>_0x58c66d[_0x4472('0x89')](_0xddd872)),_0x18e0e0=_0x36a3fa[_0x4472('0x37')](_0x5c180e,_0x113e22);if(_0x18e0e0&&(_0x4472('0x80')==_0x18e0e0[_0x4472('0x3e')]||_0x4472('0x8a')==_0x18e0e0[_0x4472('0x3e')])){const _0x44fa23=this[_0x4472('0x36')](_0x18e0e0);for(const _0x38cc79 of _0x4c818c){const _0x1f5e87=_0x58c66d[_0x4472('0x89')](_0x38cc79),_0x4beae6=_0xa286f2[_0x4472('0x35')](_0x38cc79),_0x3def20=_0x38cc79[_0x4472('0x10')](_0x152ac7)-0x1,_0x15839b=_0x44fa23[_0x2e52e2],_0x4fee9=_0x44fa23[_0x206e60];_0x15839b<=_0x4beae6[_0x54daf3]&&_0x4beae6[_0x54daf3]+_0x3def20<=_0x4fee9&&_0x18e0e0[_0x4472('0x1d')](_0x1f5e87);}}});});}function _0xe63e34(_0x3d8724){const _0x489c1b=Array[_0x4472('0x1c')](_0x106fce[_0x4472('0x58')]())['map'](_0xc9c1ad=>_0x2e5f8b[_0x4472('0x72')](_0xc9c1ad));_0x294429[_0x4472('0x60')][_0x4472('0x47')](_0x5554fc=>{const _0x1d5ca2=_0x5554fc[_0x4472('0x83')];_0x3d8724=_0x3d8724['filter'](_0x5b3b20=>_0x4472('0x46')!=_0x5b3b20[_0x4472('0xc')][_0x4472('0x64')]),_0x5554fc['setSelection'](_0x3d8724),_0x294429[_0x4472('0x45')][_0x4472('0x41')](_0x4472('0x6f'))['refresh'](),_0x294429[_0x4472('0xb')](_0x4472('0x6f'),{'forceDefaultExecution':!0x0}),_0x294429[_0x4472('0x60')][_0x4472('0x44')](()=>{_0x294429[_0x4472('0x60')][_0x4472('0x44')](_0x1d5ca2,_0x4c8997=>{const _0x56c862=_0x489c1b[_0x4472('0x43')](_0x2bea89=>_0x4472('0x46')!=_0x2bea89[_0x4472('0xc')][_0x4472('0x64')]);_0x56c862[_0x4472('0x40')]>0x0&&_0x4c8997[_0x4472('0x6c')](_0x56c862);for(const _0x24af60 of _0x489c1b)_0x24af60[_0x4472('0x61')]();});});});}function _0x293f25(_0x314539){_0x294429[_0x4472('0x60')][_0x4472('0x47')](_0x392597=>{const _0x860879=Array[_0x4472('0x1c')](_0x106fce[_0x4472('0x58')]())[_0x4472('0x34')](_0x155415=>_0x2e5f8b[_0x4472('0x72')](_0x155415)),_0x22f982=[];for(const _0x3e35bc of _0x314539)for(const _0x3177ac of _0x3e35bc[_0x4472('0x12')]({'shallow':!0x0}))_0x22f982[_0x4472('0xd')](_0x3177ac);for(const _0xc9b2d of _0x22f982)'$graveyard'!=_0xc9b2d[_0x4472('0xc')]['rootName']&&(_0x392597['setSelection'](_0x392597[_0x4472('0x19')](_0xc9b2d,0x0)),_0x294429[_0x4472('0x45')][_0x4472('0x41')](_0x4472('0x30'))[_0x4472('0x3f')](),_0x294429['execute'](_0x4472('0x30'),{'forceDefaultExecution':!0x0}));const _0xe315cd=_0x860879[_0x4472('0x43')](_0x39fe3d=>_0x4472('0x46')!=_0x39fe3d['root']['rootName']);_0xe315cd[_0x4472('0x40')]>0x0&&_0x392597[_0x4472('0x6c')](_0xe315cd);for(const _0x277f27 of _0x860879)_0x277f27[_0x4472('0x61')]();});}function _0x440f43(_0xb18796,_0x1d0580){return _0x1d0580[_0x4472('0x73')](_0x17075f=>_0xb18796[_0x4472('0x31')](_0x4339fe=>_0x4339fe['end'][_0x4472('0x2d')](_0x17075f['start'])||_0x17075f[_0x4472('0x5d')][_0x4472('0x2d')](_0x4339fe[_0x4472('0x9')])));}function _0x495c49(_0x344904,_0x194555){return _0x344904[_0x4472('0x31')](_0x457e1a=>_0x194555[_0x4472('0x31')](_0x4c559a=>_0x457e1a[_0x4472('0x5d')][_0x4472('0x68')](_0x4c559a[_0x4472('0x9')])));}_0x294429[_0x4472('0x55')][_0x4472('0x4f')]['on'](_0x4472('0x57'),(_0x160ad8,_0x2ebc6e,_0x39542c)=>{if(!_0x39542c[_0x4472('0x4b')][_0x4472('0x54')])return;const _0x33776f=_0x2ebc6e[_0x4472('0x28')];if(!_0x33776f)return;const _0x1fdb0b=_0x39542c[_0x4472('0x53')]['toViewElement'](_0x33776f);function _0x1a8d88(_0x107707){return Array[_0x4472('0x75')](_0x107707)?_0x107707:[_0x107707];}_0x1fdb0b&&'tableCell'===_0x33776f[_0x4472('0x5')]&&_0x2d4a82(_0x1fdb0b,_0x39542c['writer'],(_0x2fc625,_0x312f62,_0x6561a6)=>_0x6561a6[_0x4472('0x29')](_0x1a8d88(_0x312f62[_0x4472('0x3d')]),_0x2fc625),(_0x242827,_0x260de9,_0xed0ef0)=>_0xed0ef0[_0x4472('0x3a')](_0x1a8d88(_0x260de9[_0x4472('0x3d')]),_0x242827));},{'priority':_0x4472('0x56')}),_0x36a3fa[_0x4472('0x33')][_0x4472('0x7f')](_0x2116ef=>{if(_0x4472('0x71')!=_0x2116ef[_0x4472('0x87')]&&_0x4472('0x50')!=_0x2116ef[_0x4472('0x87')])return;const _0x5959e0=_0x2116ef[_0x4472('0x11')]();if(null!=_0x5959e0&&_0x5959e0['is'](_0x4472('0x17'),'table')){if('insertion'==_0x2116ef[_0x4472('0x87')]){const _0x442576=_0x2116ef[_0x4472('0x12')]()[_0x4472('0x43')](_0x493333=>_0x493333['is'](_0x4472('0xe')))[_0x4472('0x34')](_0x3392c3=>_0x3392c3[_0x4472('0x55')]);if(_0x442576[_0x4472('0x40')])return{'type':_0x4472('0x71'),'content':_0x3b2b54(_0x1b16cb,'*Insert:*\x20%0',_0x3b2b54(_0x1b16cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x442576[_0x4472('0x5c')]('\x20')+'\x22'))};}if(_0x4472('0x50')==_0x2116ef[_0x4472('0x87')]){const _0x56cac4=_0x2116ef[_0x4472('0x12')]()['filter'](_0x3fc8c1=>_0x3fc8c1['is']('$textProxy'))[_0x4472('0x34')](_0x553dee=>_0x553dee[_0x4472('0x55')]);if(_0x56cac4[_0x4472('0x40')])return{'type':_0x4472('0x50'),'content':_0x3b2b54(_0x1b16cb,_0x4472('0x82'),_0x3b2b54(_0x1b16cb,_0x4472('0x20'),'\x22'+_0x56cac4[_0x4472('0x5c')]('\x20')+'\x22'))};}}}),_0x36a3fa[_0x4472('0x33')]['registerDescriptionCallback'](_0x34bfff=>{if('tableRow'==_0x34bfff['subType']){const _0x4ccc55=_0x34bfff['getItems']()[_0x4472('0x43')](_0x58177e=>_0x58177e['is']('$textProxy'))['map'](_0xf3790e=>_0xf3790e[_0x4472('0x55')]),_0x3ac1f0=this[_0x4472('0x36')](_0x34bfff),_0x39c95f=_0x3ac1f0['maxRow']-_0x3ac1f0[_0x4472('0x14')]+0x1;if(_0x4472('0x71')==_0x34bfff[_0x4472('0x87')])return _0x4ccc55['length']?{'type':'insertion','content':_0x3b2b54(_0x1b16cb,'*Insert:*\x20%0',_0x3b2b54(_0x1b16cb,_0x4472('0x67'),[_0x39c95f,'\x22'+_0x4ccc55[_0x4472('0x5c')]('\x20')+'\x22']))}:{'type':_0x4472('0x71'),'content':_0x3b2b54(_0x1b16cb,_0x4472('0x32'),_0x3b2b54(_0x1b16cb,_0x4472('0x16'),_0x39c95f))};if(_0x4472('0x50')==_0x34bfff[_0x4472('0x87')])return _0x4ccc55[_0x4472('0x40')]?{'type':_0x4472('0x50'),'content':_0x3b2b54(_0x1b16cb,_0x4472('0x82'),_0x3b2b54(_0x1b16cb,_0x4472('0x67'),[_0x39c95f,'\x22'+_0x4ccc55[_0x4472('0x5c')]('\x20')+'\x22']))}:{'type':_0x4472('0x50'),'content':_0x3b2b54(_0x1b16cb,_0x4472('0x82'),_0x3b2b54(_0x1b16cb,'ELEMENT_TABLE_ROW',_0x39c95f))};}if(_0x4472('0x8a')==_0x34bfff['subType']){const _0x55100b=_0x34bfff[_0x4472('0x12')]()['filter'](_0x4dbbb6=>_0x4dbbb6['is']('$textProxy'))['map'](_0x20fd15=>_0x20fd15[_0x4472('0x55')]),_0x7f002f=this[_0x4472('0x36')](_0x34bfff),_0x503b93=_0x7f002f['maxColumn']-_0x7f002f[_0x4472('0x59')]+0x1;if(_0x4472('0x71')==_0x34bfff[_0x4472('0x87')])return _0x55100b[_0x4472('0x40')]?{'type':'insertion','content':_0x3b2b54(_0x1b16cb,_0x4472('0x32'),_0x3b2b54(_0x1b16cb,_0x4472('0x39'),[_0x503b93,'\x22'+_0x55100b[_0x4472('0x5c')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x3b2b54(_0x1b16cb,_0x4472('0x32'),_0x3b2b54(_0x1b16cb,_0x4472('0x51'),_0x503b93))};if(_0x4472('0x50')==_0x34bfff[_0x4472('0x87')])return _0x55100b[_0x4472('0x40')]?{'type':_0x4472('0x50'),'content':_0x3b2b54(_0x1b16cb,_0x4472('0x82'),_0x3b2b54(_0x1b16cb,_0x4472('0x39'),[_0x503b93,'\x22'+_0x55100b[_0x4472('0x5c')]('\x20')+'\x22']))}:{'type':_0x4472('0x50'),'content':_0x3b2b54(_0x1b16cb,_0x4472('0x82'),_0x3b2b54(_0x1b16cb,_0x4472('0x51'),_0x503b93))};}}),_0x36a3fa[_0x4472('0x76')][_0x4472('0x78')]('insertion',_0x4472('0x80'),_0x4472('0x0'),_0xe63e34),_0x36a3fa[_0x4472('0x76')][_0x4472('0x78')](_0x4472('0x50'),_0x4472('0x80'),_0x4472('0x85'),_0xe63e34),_0x36a3fa[_0x4472('0x76')][_0x4472('0x78')](_0x4472('0x71'),'tableColumn',_0x4472('0x0'),_0x293f25),_0x36a3fa['_suggestionFactory'][_0x4472('0x78')]('deletion',_0x4472('0x8a'),'accept',_0x293f25),_0x36a3fa['_suggestionFactory']['registerCustomCallback'](_0x4472('0x71'),_0x4472('0x8a'),_0x4472('0x5c'),_0x440f43),_0x36a3fa['_suggestionFactory'][_0x4472('0x78')](_0x4472('0x50'),_0x4472('0x8a'),_0x4472('0x5c'),_0x440f43),_0x36a3fa[_0x4472('0x76')][_0x4472('0x78')](_0x4472('0x71'),'tableRow','join',_0x495c49),_0x36a3fa[_0x4472('0x76')][_0x4472('0x78')](_0x4472('0x50'),_0x4472('0x80'),'join',_0x495c49);}[_0x4472('0x22')](){const _0x5132e1=this[_0x4472('0x7e')],_0x492c49=_0x5132e1[_0x4472('0x60')][_0x4472('0x8')][_0x4472('0x27')];return(_0x4dc226,_0x573430)=>{_0x5132e1[_0x4472('0x60')]['change'](_0x2483a3=>{const {commandName:_0x5e7cdb,commandParams:_0x1e6f36}=_0x573430;let _0xe61d8f=_0x4dc226[0x0]['end']['nodeBefore'];_0x1e6f36&&_0x1e6f36[0x0]&&!0x1===_0x1e6f36[0x0][_0x4472('0x77')]&&(_0xe61d8f=_0x4dc226[0x0][_0x4472('0x9')][_0x4472('0x70')]);const _0x2d44db=_0x2483a3[_0x4472('0x79')](_0xe61d8f);if(_0x4472('0x46')==_0x2d44db[_0x4472('0xc')]['rootName'])return;const _0x280bbd=Array['from'](_0x492c49[_0x4472('0x58')]())[_0x4472('0x34')](_0x3ff439=>_0x2e5f8b[_0x4472('0x72')](_0x3ff439));_0x2483a3[_0x4472('0x6c')](_0x2d44db),_0x5132e1[_0x4472('0x45')][_0x4472('0x41')](_0x5e7cdb)[_0x4472('0x3f')](),_0x1e6f36[_0x4472('0xd')]({'forceDefaultExecution':!0x0}),_0x5132e1[_0x4472('0xb')](_0x5e7cdb,..._0x1e6f36);const _0x49bf68=_0x280bbd[_0x4472('0x43')](_0x3c1830=>_0x4472('0x46')!=_0x3c1830[_0x4472('0xc')]['rootName']);_0x49bf68[_0x4472('0x40')]>0x0&&_0x2483a3['setSelection'](_0x49bf68);for(const _0x3cade6 of _0x280bbd)_0x3cade6[_0x4472('0x61')]();});};}[_0x4472('0x84')](_0x2c97cd){const _0x413c04=this[_0x4472('0x7e')][_0x4472('0x48')][_0x4472('0x41')]('TableUtils');let _0xe60d=Number['MAX_SAFE_INTEGER'],_0x3db78c=Number[_0x4472('0x4c')],_0x4e84af=Number[_0x4472('0x5b')],_0x4a714a=Number['MIN_SAFE_INTEGER'];for(const _0x47724e of _0x2c97cd){if(_0x4472('0x46')==_0x47724e[_0x4472('0xc')][_0x4472('0x64')])continue;const {row:_0x677070,column:_0x49ae87}=_0x413c04[_0x4472('0x35')](_0x47724e),_0x504156=_0x47724e['hasAttribute'](_0x4472('0x7c'))?_0x47724e['getAttribute'](_0x4472('0x7c'))-0x1:0x0,_0xa5e9f4=_0x47724e[_0x4472('0x13')](_0x4472('0x23'))?_0x47724e[_0x4472('0x10')](_0x4472('0x23'))-0x1:0x0;_0xe60d=_0x677070<_0xe60d?_0x677070:_0xe60d,_0x3db78c=_0x677070+_0x504156>_0x3db78c?_0x677070+_0x504156:_0x3db78c,_0x4e84af=_0x49ae87<_0x4e84af?_0x49ae87:_0x4e84af,_0x4a714a=_0x49ae87+_0xa5e9f4>_0x4a714a?_0x49ae87+_0xa5e9f4:_0x4a714a;}return{'minRow':_0xe60d,'maxRow':_0x3db78c,'minColumn':_0x4e84af,'maxColumn':_0x4a714a};}[_0x4472('0x4d')](){const _0x1f5239=this[_0x4472('0x7e')],_0x5a1868=_0x1f5239[_0x4472('0x48')]['get']('TrackChangesEditing'),_0x171d3a=_0x1f5239['plugins'][_0x4472('0x41')](_0x4472('0x21'));_0x1f5239[_0x4472('0x60')][_0x4472('0x8')]['on'](_0x4472('0x1'),()=>{const _0x1613f0=Array[_0x4472('0x1c')](_0x1f5239[_0x4472('0x60')][_0x4472('0x8')][_0x4472('0x3')][_0x4472('0x7b')]());for(const {name:_0x2c3dd9,data:_0x26e092}of _0x1613f0){const {group:_0x4fa480,id:_0x370aa3,subType:_0x16ab2c}=_0x5a1868[_0x4472('0x1b')](_0x2c3dd9);if(_0x4472('0x2b')!=_0x4fa480)continue;if(null!=_0x26e092[_0x4472('0x6e')])continue;const _0x5ed0e8=_0x5a1868['getSuggestion'](_0x370aa3);this[_0x4472('0x25')]['includes'](_0x16ab2c)&&this[_0x4472('0x81')]['add'](_0x5ed0e8);}},{'priority':_0x4472('0x26')});const _0x1ce9b7=(_0x495490,_0x5b8981)=>{let _0x503ba1=!0x1;const _0xd130ee=_0x5b8981[_0x4472('0x89')](_0x495490),_0xda5772=_0x495490[_0x4472('0x7d')](_0x4472('0x6a')),_0x34d005=_0x171d3a[_0x4472('0x35')](_0x495490);for(const _0x430ac9 of this['_tableSuggestions']){const _0x1ec967=_0x430ac9['subType'],_0x976972=_0x1ec967[_0x4472('0x2f')](_0x4472('0x52')),_0x132f23=_0x1ec967[_0x4472('0x1e')](_0x976972?0xa:0x5),_0x1c2dee=_0x132f23[_0x4472('0x18')](),_0xc5164b=_0x1c2dee[_0x4472('0x1e')](0x0,0x3)+_0x4472('0x5f'),_0x47fb61=_0x4472('0x1a')+_0x132f23,_0x4c8986=_0x4472('0x8b')+_0x132f23;if(!_0x430ac9[_0x4472('0x1f')])continue;if(_0xda5772!=_0x430ac9[_0x4472('0x65')]()[_0x4472('0x9')][_0x4472('0x7d')](_0x4472('0x6a')))continue;if(_0x430ac9[_0x4472('0x4a')](_0xd130ee))continue;const _0x3aa169=_0x495490['hasAttribute'](_0xc5164b)?_0x495490['getAttribute'](_0xc5164b)-0x1:0x0,_0x4f6200=this[_0x4472('0x36')](_0x430ac9),_0x4bc220=_0x4f6200[_0x47fb61],_0x190654=_0x4f6200[_0x4c8986];_0x4bc220<=_0x34d005[_0x1c2dee]&&_0x34d005[_0x1c2dee]+_0x3aa169<=_0x190654&&(_0x430ac9[_0x4472('0x1d')](_0xd130ee),_0x503ba1=!0x0);}return _0x503ba1;};_0x1f5239[_0x4472('0x60')][_0x4472('0x8')]['registerPostFixer'](_0x3e6f33=>{let _0x1df89f=!0x1;for(const _0x3ac018 of _0x1f5239[_0x4472('0x60')][_0x4472('0x8')][_0x4472('0x3')][_0x4472('0x3b')]())if('insert'==_0x3ac018['type']){if(_0x4472('0x80')==_0x3ac018[_0x4472('0x5')])for(const _0x125412 of _0x3ac018[_0x4472('0x66')][_0x4472('0x70')][_0x4472('0x88')]())_0x1df89f=_0x1df89f||_0x1ce9b7(_0x125412,_0x3e6f33);else _0x4472('0xa')==_0x3ac018['name']&&(_0x1df89f=_0x1df89f||_0x1ce9b7(_0x3ac018[_0x4472('0x66')][_0x4472('0x70')],_0x3e6f33));}return _0x1df89f;});}[_0x4472('0x36')](_0x5bdd74){return this[_0x4472('0x84')](_0x5bdd74['getRanges']()[_0x4472('0x34')](_0xdd66d3=>_0xdd66d3[_0x4472('0x9')][_0x4472('0x70')]));}}function se(_0x1a762a){return Array[_0x4472('0x1c')](new Set(_0x1a762a)[_0x4472('0x2e')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x405d=['has','toggleTableCaption','get','afterInit','TrackChangesEditing','plugins','requires','TableCaptionEditing','enableCommand'];(function(_0x1f7b1e,_0x405dba){const _0x1bb4c1=function(_0x4cc260){while(--_0x4cc260){_0x1f7b1e['push'](_0x1f7b1e['shift']());}};_0x1bb4c1(++_0x405dba);}(_0x405d,0xe8));const _0x1bb4=function(_0x1f7b1e,_0x405dba){_0x1f7b1e=_0x1f7b1e-0x0;let _0x1bb4c1=_0x405d[_0x1f7b1e];return _0x1bb4c1;};import{Plugin as _0x57806f}from'ckeditor5/src/core';import _0x473132 from'./table';export default class vt extends _0x57806f{static get[_0x1bb4('0x8')](){return[_0x473132];}[_0x1bb4('0x5')](){const _0x4af1ee=this['editor'];if(!_0x4af1ee[_0x1bb4('0x7')][_0x1bb4('0x2')](_0x1bb4('0x0')))return;_0x4af1ee[_0x1bb4('0x7')][_0x1bb4('0x4')](_0x1bb4('0x6'))[_0x1bb4('0x1')](_0x1bb4('0x3'));}}
|