@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230807.0 → 0.0.0-nightly-20230808.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/CHANGELOG.md +2 -2
- package/LICENSE.md +5 -5
- package/README.md +13 -13
- 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 _0xc510=['listItem','getSelectedBlocks','from','styles','handleListStyleCommand','bind','handleDescriptions','getSiblingNodes','_LIST_','plugins','listStart','getLastPosition','push','*Format:*\x20set\x20start\x20index\x20to\x20%0','locale','forward','listStyle','createRange','handleListStartCommand','element','get','document','commandParams','type','startIndex','replace','_getSuggestionBlocksForListStyle','listType','reversed','before','handleListReversedCommand','unshift','createPositionAt','change','model','*Format:*\x20set\x20order\x20to\x20reversed','TrackChangesEditing','registerDescriptionCallback','_descriptionFactory','toUpperCase','selection','getListTypeFromListStyleType','_getSuggestionBlocks','filter','format','editor','parent','getAttribute','length','_getTranslationKeyForListStyle','ListUtils','*Change\x20to:*\x20%0','ListPropertiesEditing','map','numbered','backward','enableCommand','listReversed','afterInit','has','config','ELEMENT_','markMultiRangeBlockFormat'];(function(_0x3b8976,_0xc510a5){const _0x1fa1da=function(_0x1cda8e){while(--_0x1cda8e){_0x3b8976['push'](_0x3b8976['shift']());}};_0x1fa1da(++_0xc510a5);}(_0xc510,0x15e));const _0x1fa1=function(_0x3b8976,_0xc510a5){_0x3b8976=_0x3b8976-0x0;let _0x1fa1da=_0xc510[_0x3b8976];return _0x1fa1da;};import{Plugin as _0x361fdf}from'ckeditor5/src/core';import{getTranslation as _0x4a2e2e}from'../utils/common-translations';export default class nt extends _0x361fdf{[_0x1fa1('0x17')](){if(!this[_0x1fa1('0xa')][_0x1fa1('0x25')][_0x1fa1('0x18')](_0x1fa1('0x11')))return;const _0x471710=this['editor'][_0x1fa1('0x19')][_0x1fa1('0x30')]('list.properties'),_0x27ab5a=this[_0x1fa1('0xa')][_0x1fa1('0x25')][_0x1fa1('0x30')](_0x1fa1('0x1'));_0x471710[_0x1fa1('0x1f')]&&_0x27ab5a['enableCommand']('listStyle',this[_0x1fa1('0x20')][_0x1fa1('0x21')](this)),_0x471710['reversed']&&_0x27ab5a['enableCommand']('listReversed',this[_0x1fa1('0x3a')][_0x1fa1('0x21')](this)),_0x471710['startIndex']&&_0x27ab5a[_0x1fa1('0x15')](_0x1fa1('0x26'),this['handleListStartCommand'][_0x1fa1('0x21')](this)),_0x27ab5a[_0x1fa1('0x3')][_0x1fa1('0x2')](this['handleDescriptions'][_0x1fa1('0x21')](this));}[_0x1fa1('0x20')](_0xb01469,_0x6245f2={}){const _0x3287c4=this[_0x1fa1('0xa')][_0x1fa1('0x25')]['get'](_0x1fa1('0x1')),_0x453551=this[_0x1fa1('0x36')]();this[_0x1fa1('0xa')]['model'][_0x1fa1('0x3d')](()=>{_0x3287c4['markMultiRangeBlockFormat'](_0x453551,{'commandName':_0x1fa1('0x2c'),'commandParams':[{'type':_0x6245f2[_0x1fa1('0x33')]}],'formatGroupId':_0x1fa1('0x2c')});});}[_0x1fa1('0x3a')](_0x1e2cdc,_0x31ae6c={}){const _0x46ca21=this[_0x1fa1('0xa')]['plugins']['get'](_0x1fa1('0x1')),_0x5b35c6=this[_0x1fa1('0x7')](_0x52d7e1=>_0x52d7e1['is'](_0x1fa1('0x2f'),'listItem')&&_0x1fa1('0x13')===_0x52d7e1[_0x1fa1('0xc')](_0x1fa1('0x37')));if(_0x5b35c6[_0x1fa1('0xd')]<0x1)return;const _0x579f94=_0x5b35c6[_0x1fa1('0x12')](_0x637df9=>this[_0x1fa1('0xa')][_0x1fa1('0x3e')][_0x1fa1('0x2d')](this[_0x1fa1('0xa')]['model'][_0x1fa1('0x3c')](_0x637df9,_0x1fa1('0x39')),this[_0x1fa1('0xa')][_0x1fa1('0x3e')]['createPositionAt'](_0x637df9,0x0)));this[_0x1fa1('0xa')]['model'][_0x1fa1('0x3d')](()=>{_0x46ca21[_0x1fa1('0x1b')](_0x579f94,{'commandName':'listReversed','commandParams':[{'reversed':_0x31ae6c[_0x1fa1('0x38')]}],'formatGroupId':'listReversed'});});}[_0x1fa1('0x2e')](_0x9ef655,_0x204b7a={}){const _0x4322b9=this[_0x1fa1('0xa')][_0x1fa1('0x25')][_0x1fa1('0x30')](_0x1fa1('0x1')),_0x456265=this[_0x1fa1('0x7')](_0x147d77=>_0x147d77['is'](_0x1fa1('0x2f'),_0x1fa1('0x1c'))&&_0x1fa1('0x13')===_0x147d77[_0x1fa1('0xc')](_0x1fa1('0x37')));if(_0x456265[_0x1fa1('0xd')]<0x1)return;const _0x5defb5=_0x456265[_0x1fa1('0x12')](_0x5ab09d=>this['editor'][_0x1fa1('0x3e')][_0x1fa1('0x2d')](this[_0x1fa1('0xa')][_0x1fa1('0x3e')][_0x1fa1('0x3c')](_0x5ab09d,_0x1fa1('0x39')),this[_0x1fa1('0xa')][_0x1fa1('0x3e')][_0x1fa1('0x3c')](_0x5ab09d,0x0)));this[_0x1fa1('0xa')][_0x1fa1('0x3e')]['change'](()=>{_0x4322b9[_0x1fa1('0x1b')](_0x5defb5,{'commandName':_0x1fa1('0x26'),'commandParams':[{'startIndex':_0x204b7a[_0x1fa1('0x34')]}],'formatGroupId':_0x1fa1('0x26')});});}[_0x1fa1('0x22')](_0x1501a2){const _0x36c4c4=this[_0x1fa1('0xa')][_0x1fa1('0x2a')],{data:_0x3bf384}=_0x1501a2;if(!_0x3bf384)return;let _0x43f915,_0x445936;switch(_0x3bf384['commandName']){case _0x1fa1('0x2c'):_0x43f915=_0x1fa1('0x10'),_0x445936={'type':_0x1fa1('0x9'),'content':_0x4a2e2e(_0x36c4c4,_0x43f915,_0x4a2e2e(_0x36c4c4,this['_getTranslationKeyForListStyle'](_0x3bf384[_0x1fa1('0x32')][0x0][_0x1fa1('0x33')])))};break;case _0x1fa1('0x16'):_0x43f915=_0x3bf384[_0x1fa1('0x32')][0x0][_0x1fa1('0x38')]?_0x1fa1('0x0'):'*Format:*\x20set\x20order\x20to\x20regular',_0x445936={'type':_0x1fa1('0x9'),'content':_0x4a2e2e(_0x36c4c4,_0x43f915)};break;case'listStart':_0x43f915=_0x1fa1('0x29'),_0x445936={'type':_0x1fa1('0x9'),'content':_0x4a2e2e(_0x36c4c4,_0x43f915,_0x3bf384[_0x1fa1('0x32')][0x0][_0x1fa1('0x34')])};}return _0x445936;}[_0x1fa1('0x36')](){var _0x33b39c,_0x184e1c,_0x1f2d8f,_0x40ae6c;const _0x39f212=this[_0x1fa1('0xa')][_0x1fa1('0x25')][_0x1fa1('0x30')](_0x1fa1('0xf'));let _0x568ca5=Array['from'](this[_0x1fa1('0xa')][_0x1fa1('0x3e')]['document'][_0x1fa1('0x5')][_0x1fa1('0x1d')]());return(null===(_0x33b39c=_0x568ca5[0x0])||void 0x0===_0x33b39c?void 0x0:_0x33b39c['is'](_0x1fa1('0x2f'),_0x1fa1('0x1c')))&&_0x568ca5[_0x1fa1('0x3b')](..._0x39f212[_0x1fa1('0x23')](this[_0x1fa1('0xa')][_0x1fa1('0x3e')][_0x1fa1('0x31')]['selection']['getFirstPosition'](),_0x1fa1('0x14'))),(null===(_0x184e1c=_0x568ca5[_0x568ca5[_0x1fa1('0xd')]-0x1])||void 0x0===_0x184e1c?void 0x0:_0x184e1c['is'](_0x1fa1('0x2f'),_0x1fa1('0x1c')))&&_0x568ca5[_0x1fa1('0x28')](..._0x39f212[_0x1fa1('0x23')](this[_0x1fa1('0xa')][_0x1fa1('0x3e')]['document']['selection'][_0x1fa1('0x27')](),_0x1fa1('0x2b'))),_0x568ca5=[...new Set(_0x568ca5)],(null===(_0x40ae6c=null===(_0x1f2d8f=this[_0x1fa1('0xa')]['model']['document'][_0x1fa1('0x5')]['getFirstPosition']())||void 0x0===_0x1f2d8f?void 0x0:_0x1f2d8f[_0x1fa1('0xb')])||void 0x0===_0x40ae6c?void 0x0:_0x40ae6c['is']('element',_0x1fa1('0x1c')))&&(_0x568ca5=_0x568ca5[_0x1fa1('0x8')](_0x128b6e=>_0x128b6e['is']('element',_0x1fa1('0x1c')))),_0x568ca5;}[_0x1fa1('0x7')](_0x547d42){const _0x1703ec=this[_0x1fa1('0xa')]['plugins'][_0x1fa1('0x30')]('ListUtils');let _0x59b0af=Array[_0x1fa1('0x1e')](this['editor'][_0x1fa1('0x3e')][_0x1fa1('0x31')][_0x1fa1('0x5')][_0x1fa1('0x1d')]())[_0x1fa1('0x8')](_0x547d42)['map'](_0x468789=>{const _0x2dca88=this['editor'][_0x1fa1('0x3e')][_0x1fa1('0x3c')](_0x468789,0x0);return[..._0x1703ec[_0x1fa1('0x23')](_0x2dca88,_0x1fa1('0x14')),..._0x1703ec[_0x1fa1('0x23')](_0x2dca88,_0x1fa1('0x2b'))];})['flat']();return _0x59b0af=[...new Set(_0x59b0af)],_0x59b0af;}[_0x1fa1('0xe')](_0x51413d){return _0x1fa1('0x1a')+this[_0x1fa1('0xa')]['plugins'][_0x1fa1('0x30')]('ListUtils')[_0x1fa1('0x6')](_0x51413d)[_0x1fa1('0x4')]()+_0x1fa1('0x24')+_0x51413d[_0x1fa1('0x4')]()[_0x1fa1('0x35')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4141=['media','editor','registerElementLabel','plugins','locale','MediaEmbedEditing','downcastDispatcher','createEmptyElement','ELEMENT_MEDIA','stop','afterInit','high','has','TrackChangesEditing','dataDowncast','conversion','get','enableCommand','elementToElement','showSuggestionHighlights'];(function(_0x300797,_0x414101){const _0x51b621=function(_0x23633c){while(--_0x23633c){_0x300797['push'](_0x300797['shift']());}};_0x51b621(++_0x414101);}(_0x4141,0x12d));const _0x51b6=function(_0x300797,_0x414101){_0x300797=_0x300797-0x0;let _0x51b621=_0x4141[_0x300797];return _0x51b621;};import{Plugin as _0x396344}from'ckeditor5/src/core';import{getTranslation as _0xdff07f}from'../utils/common-translations';export default class ot extends _0x396344{[_0x51b6('0x9')](){const _0x478c2a=this[_0x51b6('0x0')];if(!_0x478c2a[_0x51b6('0x2')][_0x51b6('0xb')](_0x51b6('0x4')))return;const _0x41e097=_0x478c2a[_0x51b6('0x2')][_0x51b6('0xf')](_0x51b6('0xc')),_0x41dec8=_0x478c2a[_0x51b6('0x3')];_0x41e097[_0x51b6('0x10')]('mediaEmbed'),_0x41e097['_descriptionFactory'][_0x51b6('0x1')](_0x51b6('0x13'),_0x4ad256=>_0xdff07f(_0x41dec8,_0x51b6('0x7'),_0x4ad256)),_0x478c2a[_0x51b6('0xe')]['for'](_0x51b6('0xd'))[_0x51b6('0x11')]({'model':_0x51b6('0x13'),'view':(_0x4c34de,{writer:_0x13e68e,options:_0x27175c})=>{if(_0x27175c[_0x51b6('0x12')])return _0x13e68e[_0x51b6('0x6')]('div');},'converterPriority':_0x51b6('0xa')}),_0x478c2a['data'][_0x51b6('0x5')]['on']('attribute:url:media',(_0x2819b5,_0x5233d3,_0x18ba84)=>{_0x18ba84['options'][_0x51b6('0x12')]&&_0x2819b5[_0x51b6('0x8')]();},{'priority':_0x51b6('0xa')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d47=['get','enableCommand','plugins','afterInit','MentionEditing'];(function(_0x63232c,_0x3d470c){const _0x2cde50=function(_0x4b8635){while(--_0x4b8635){_0x63232c['push'](_0x63232c['shift']());}};_0x2cde50(++_0x3d470c);}(_0x3d47,0x7e));const _0x2cde=function(_0x63232c,_0x3d470c){_0x63232c=_0x63232c-0x0;let _0x2cde50=_0x3d47[_0x63232c];return _0x2cde50;};import{Plugin as _0xc83e10}from'ckeditor5/src/core';export default class rt extends _0xc83e10{[_0x2cde('0x2')](){const _0x20ea2d=this['editor'];_0x20ea2d[_0x2cde('0x1')]['has'](_0x2cde('0x3'))&&_0x20ea2d[_0x2cde('0x1')][_0x2cde('0x4')]('TrackChangesEditing')[_0x2cde('0x0')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4da6=['enableCommand','_descriptionFactory','locale','registerElementLabel','ELEMENT_PAGE_BREAK','pageBreak','has','plugins','editor','TrackChangesEditing','get','afterInit'];(function(_0x78171a,_0x4da643){const _0xff8403=function(_0x289aab){while(--_0x289aab){_0x78171a['push'](_0x78171a['shift']());}};_0xff8403(++_0x4da643);}(_0x4da6,0x83));const _0xff84=function(_0x78171a,_0x4da643){_0x78171a=_0x78171a-0x0;let _0xff8403=_0x4da6[_0x78171a];return _0xff8403;};import{Plugin as _0x599fdf}from'ckeditor5/src/core';import{getTranslation as _0x43d915}from'../utils/common-translations';export default class at extends _0x599fdf{[_0xff84('0x0')](){const _0x23bc71=this[_0xff84('0x9')];if(!_0x23bc71['plugins'][_0xff84('0x7')]('PageBreakEditing'))return;_0x23bc71[_0xff84('0x8')]['get'](_0xff84('0xa'))[_0xff84('0x1')](_0xff84('0x6'));const _0x40d5f9=_0x23bc71['plugins'][_0xff84('0xb')](_0xff84('0xa')),_0x100685=_0x23bc71[_0xff84('0x3')];_0x40d5f9[_0xff84('0x2')][_0xff84('0x4')](_0xff84('0x6'),_0x5f1070=>_0x43d915(_0x100685,_0xff84('0x5'),_0x5f1070));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe6dc=['activeMarkers','editor','blockName','change','addMarker:suggestion:insertion','ck-suggestion-marker-split','ck-suggestion-marker--active','start','paragraph','editing','document','checkChild','nodeAfter','*Change\x20to:*\x20%0','format','isTouching','isBlock','schema','downcastDispatcher','consume','insertion','bindElementToMarker','plugins','_descriptionFactory','writer','markerName','TrackChangesEditing','showSuggestionHighlights','model','isObject','ELEMENT_PARAGRAPH','insert','addClass','locale','*Insert:*\x20%0','markerRange','from','selection','data','consumable','highest','name','getSelectedBlocks','filter','options','parent','has','getItemLabel','Paragraph','end','registerDescriptionCallback','get','mapper','isLimit','type','enableCommand'];(function(_0xfc5d44,_0xe6dce4){const _0x5c320a=function(_0x321e0f){while(--_0x321e0f){_0xfc5d44['push'](_0xfc5d44['shift']());}};_0x5c320a(++_0xe6dce4);}(_0xe6dc,0xa6));const _0x5c32=function(_0xfc5d44,_0xe6dce4){_0xfc5d44=_0xfc5d44-0x0;let _0x5c320a=_0xe6dc[_0xfc5d44];return _0x5c320a;};import{Plugin as _0x568e49}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x33b7e1}from'./utils';import{getTranslation as _0x4a3cfb}from'../utils/common-translations';export default class ct extends _0x568e49{['afterInit'](){const _0x218eed=this[_0x5c32('0x3')];if(!_0x218eed['plugins'][_0x5c32('0x30')](_0x5c32('0x32')))return;const _0x4f2187=_0x218eed[_0x5c32('0x23')],_0x75c294=_0x218eed['plugins'][_0x5c32('0x35')](_0x5c32('0x1c'));_0x75c294['_descriptionFactory']['registerElementLabel'](_0x5c32('0xa'),_0xd7214c=>_0x4a3cfb(_0x4f2187,_0x5c32('0x20'),_0xd7214c)),_0x75c294[_0x5c32('0x1')](_0x5c32('0xa'),(_0x372d44,_0x4574b7={})=>{const _0x211e64=_0x218eed[_0x5c32('0x1e')][_0x5c32('0xc')],_0x3b9c25=_0x4574b7[_0x5c32('0x27')]||_0x211e64[_0x5c32('0x27')],_0xe29c56=Array[_0x5c32('0x26')](_0x3b9c25[_0x5c32('0x2c')]())[_0x5c32('0x2d')](_0x33fae1=>function(_0x2b1fff,_0x220c04){return _0x220c04['checkChild'](_0x2b1fff[_0x5c32('0x2f')],'paragraph')&&!_0x220c04[_0x5c32('0x1f')](_0x2b1fff)&&_0x5c32('0xa')!=_0x2b1fff[_0x5c32('0x2b')];}(_0x33fae1,this[_0x5c32('0x3')][_0x5c32('0x1e')][_0x5c32('0x13')]));_0x218eed[_0x5c32('0x1e')][_0x5c32('0x5')](()=>{for(const _0x2454bb of _0xe29c56)_0x75c294['markBlockFormat'](_0x2454bb,{'commandName':_0x5c32('0xa'),'commandParams':[],'formatGroupId':_0x5c32('0x4')},_0x33b7e1(_0x2454bb));});}),_0x75c294[_0x5c32('0x19')][_0x5c32('0x34')](_0x5d9d87=>{const {data:_0x4e0a01}=_0x5d9d87;if(_0x4e0a01&&_0x5c32('0xa')==_0x4e0a01['commandName'])return{'type':_0x5c32('0x10'),'content':_0x4a3cfb(_0x4f2187,_0x5c32('0xf'),_0x4a3cfb(_0x4f2187,'ELEMENT_PARAGRAPH'))};}),_0x75c294[_0x5c32('0x1')]('insertParagraph'),_0x218eed[_0x5c32('0xb')][_0x5c32('0x14')]['on'](_0x5c32('0x6'),ar(_0x218eed),{'priority':_0x5c32('0x2a')}),_0x218eed[_0x5c32('0x28')][_0x5c32('0x14')]['on']('addMarker:suggestion:insertion',(_0xccef3b,_0x43f3c8,_0x2d1ba0)=>{_0x2d1ba0[_0x5c32('0x2e')][_0x5c32('0x1d')]&&ar(_0x218eed,{'showActiveMarker':!0x1})(_0xccef3b,_0x43f3c8,_0x2d1ba0);},{'priority':'highest'});const _0x333afa=_0x75c294[_0x5c32('0x19')];_0x333afa['registerDescriptionCallback'](_0x51dc34=>{if(_0x5c32('0x16')!==_0x51dc34[_0x5c32('0x0')])return;const {start:_0x1db7f7,end:_0x13234b}=_0x51dc34['getFirstRange']();if(!_0x1db7f7[_0x5c32('0x11')](_0x13234b)||!_0x1db7f7[_0x5c32('0xe')])return;const _0x4c2a4b=_0x218eed[_0x5c32('0x1e')]['schema'],_0x5619c4=_0x1db7f7[_0x5c32('0xe')];return _0x4c2a4b[_0x5c32('0x12')](_0x5619c4)&&!_0x4c2a4b[_0x5c32('0x37')](_0x5619c4)&&_0x4c2a4b['checkChild'](_0x5619c4,'$text')?{'type':'insertion','content':_0x4a3cfb(_0x4f2187,_0x5c32('0x24'),_0x333afa[_0x5c32('0x31')](_0x5619c4,0x1))}:void 0x0;});}}function ar(_0xdee25b,{showActiveMarker:_0x11e18b=!0x0}={}){return(_0x5b61ec,_0x1132a7,_0x2218c6)=>{const _0x2f15f1=_0xdee25b[_0x5c32('0x18')]['get'](_0x5c32('0x1c')),_0x4fa59b=_0x1132a7[_0x5c32('0x25')][_0x5c32('0x9')],_0x262fe1=_0x1132a7['markerRange'][_0x5c32('0x33')],_0x1bcaca=_0xdee25b[_0x5c32('0x1e')][_0x5c32('0x13')];if(!_0x4fa59b[_0x5c32('0x11')](_0x262fe1)||!_0x4fa59b['nodeAfter'])return;const _0x14b2f8=_0x4fa59b[_0x5c32('0xe')];if(_0x1bcaca['isBlock'](_0x14b2f8)&&!_0x1bcaca['isLimit'](_0x14b2f8)&&_0x1bcaca[_0x5c32('0xd')](_0x14b2f8,'$text')){if(!_0x2218c6[_0x5c32('0x29')][_0x5c32('0x15')](_0x1132a7['markerRange'],_0x5b61ec[_0x5c32('0x2b')]))return;const _0x44c53e=_0x2218c6[_0x5c32('0x1a')]['createUIElement']('span',{'class':_0x5c32('0x7')}),_0x2670b5=_0x2218c6[_0x5c32('0x36')]['toViewPosition'](_0x262fe1);_0x11e18b&&_0x2f15f1[_0x5c32('0x2')]['includes'](_0x1132a7[_0x5c32('0x1b')])&&_0x2218c6[_0x5c32('0x1a')][_0x5c32('0x22')](_0x5c32('0x8'),_0x44c53e),_0x2218c6[_0x5c32('0x1a')][_0x5c32('0x21')](_0x2670b5,_0x44c53e),_0x2218c6[_0x5c32('0x36')][_0x5c32('0x17')](_0x44c53e,_0x1132a7[_0x5c32('0x1b')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2856=['get','format','*Remove\x20all\x20formatting*','enableCommand','has','schema','editor','getAttributeProperties','_descriptionFactory','markInlineFormat','locale','removeFormat','RemoveFormatEditing','afterInit','commandName','isCollapsed','selection','change','registerDescriptionCallback','plugins','model','createRangeOn'];(function(_0x55ef22,_0x2856cb){const _0x3dd70a=function(_0x470546){while(--_0x470546){_0x55ef22['push'](_0x55ef22['shift']());}};_0x3dd70a(++_0x2856cb);}(_0x2856,0x1cd));const _0x3dd7=function(_0x55ef22,_0x2856cb){_0x55ef22=_0x55ef22-0x0;let _0x3dd70a=_0x2856[_0x55ef22];return _0x3dd70a;};import{Plugin as _0x51608d}from'ckeditor5/src/core';import{getTranslation as _0x57d408}from'../utils/common-translations';export default class ht extends _0x51608d{[_0x3dd7('0xe')](){const _0xbc3600=this[_0x3dd7('0x7')];if(!_0xbc3600[_0x3dd7('0x14')][_0x3dd7('0x5')](_0x3dd7('0xd')))return;const _0x476af2=_0xbc3600[_0x3dd7('0x14')][_0x3dd7('0x1')]('TrackChangesEditing');_0x476af2[_0x3dd7('0x4')](_0x3dd7('0xc'),_0x21eaec=>{const _0x3fdefe=_0xbc3600[_0x3dd7('0x15')]['document'][_0x3dd7('0x11')];_0x3fdefe[_0x3dd7('0x10')]?_0x21eaec():_0xbc3600['model'][_0x3dd7('0x12')](()=>{const _0x2f07e9=Array['from'](_0x3fdefe['getRanges']());for(const _0x56721f of _0x2f07e9)for(const _0x3d6928 of _0x56721f['getItems']())eo(_0x3d6928,_0xbc3600[_0x3dd7('0x15')][_0x3dd7('0x6')])&&_0x476af2[_0x3dd7('0xa')](_0xbc3600['model'][_0x3dd7('0x0')](_0x3d6928),{'commandName':_0x3dd7('0xc'),'commandParams':[]});});}),_0x476af2[_0x3dd7('0x9')][_0x3dd7('0x13')](_0x4389c5=>{const {data:_0x563643}=_0x4389c5;if(_0x563643&&_0x3dd7('0xc')==_0x563643[_0x3dd7('0xf')])return{'type':_0x3dd7('0x2'),'content':_0x57d408(_0xbc3600[_0x3dd7('0xb')],_0x3dd7('0x3'))};});}}function eo(_0x58c2f5,_0x3443be){for(const [_0x5b03b0]of _0x58c2f5['getAttributes']()){const _0x4b2875=_0x3443be[_0x3dd7('0x8')](_0x5b03b0);if(_0x4b2875&&_0x4b2875['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57e7=['enableCommand','discardSelectedSuggestions','has','plugins','acceptSelectedSuggestions','discardSuggestion','TrackChangesEditing','goToNextRestrictedEditingException','trackChanges','afterInit','editor','RestrictedEditingModeEditing','get','discardAllSuggestions','goToPreviousRestrictedEditingException'];(function(_0x4181cc,_0x57e720){const _0x34bc96=function(_0x26e3e5){while(--_0x26e3e5){_0x4181cc['push'](_0x4181cc['shift']());}};_0x34bc96(++_0x57e720);}(_0x57e7,0x177));const _0x34bc=function(_0x4181cc,_0x57e720){_0x4181cc=_0x4181cc-0x0;let _0x34bc96=_0x57e7[_0x4181cc];return _0x34bc96;};import{Plugin as _0x130308}from'ckeditor5/src/core';export default class ut extends _0x130308{[_0x34bc('0x9')](){const _0x284622=this[_0x34bc('0xa')];if(!_0x284622[_0x34bc('0x3')][_0x34bc('0x2')](_0x34bc('0xb')))return;const _0x38f252=_0x284622[_0x34bc('0x3')][_0x34bc('0xc')](_0x34bc('0x6'));_0x38f252[_0x34bc('0x0')](_0x34bc('0xe')),_0x38f252['enableCommand'](_0x34bc('0x7'));const _0x12c55d=_0x284622[_0x34bc('0x3')][_0x34bc('0xc')](_0x34bc('0xb'));_0x12c55d[_0x34bc('0x0')](_0x34bc('0x8')),_0x12c55d[_0x34bc('0x0')]('acceptSuggestion'),_0x12c55d[_0x34bc('0x0')](_0x34bc('0x5')),_0x12c55d[_0x34bc('0x0')]('acceptAllSuggestions'),_0x12c55d['enableCommand'](_0x34bc('0xd')),_0x12c55d[_0x34bc('0x0')](_0x34bc('0x4')),_0x12c55d[_0x34bc('0x0')](_0x34bc('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ede=['addMarker:suggestion:insertion','addClass','ck-suggestion-marker-','enableCommand','deletion','getItems','data','shiftEnter','plugins','TrackChangesEditing','toViewPosition','get','split','insert','writer','high','bindElementToMarker','editing','_descriptionFactory','registerElementLabel','consumable','softBreak','createPositionBefore','markerRange','merge','mapper','includes','name','editor','downcastDispatcher','activeMarkers','span','markerName','createUIElement','showSuggestionHighlights','element','options','init'];(function(_0x5f5250,_0x3ede9b){const _0x4923e1=function(_0x535d39){while(--_0x535d39){_0x5f5250['push'](_0x5f5250['shift']());}};_0x4923e1(++_0x3ede9b);}(_0x3ede,0x1f4));const _0x4923=function(_0x5f5250,_0x3ede9b){_0x5f5250=_0x5f5250-0x0;let _0x4923e1=_0x3ede[_0x5f5250];return _0x4923e1;};import{Plugin as _0x2e38dc}from'ckeditor5/src/core';import{ShiftEnter as _0x176604}from'ckeditor5/src/enter';import{getTranslation as _0x41a57f}from'../utils/common-translations';export default class ft extends _0x2e38dc{static get['requires'](){return[_0x176604];}[_0x4923('0x1f')](){const _0x52de52=this[_0x4923('0x16')],_0xc50ad5=_0x52de52[_0x4923('0x2')][_0x4923('0x5')](_0x4923('0x3'));_0xc50ad5[_0x4923('0x23')](_0x4923('0x1')),_0x52de52['editing']['downcastDispatcher']['on'](_0x4923('0x20'),re(_0x52de52),{'priority':'high'}),_0x52de52[_0x4923('0xb')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',re(_0x52de52),{'priority':_0x4923('0x9')}),_0x52de52[_0x4923('0x0')][_0x4923('0x17')]['on']('addMarker:suggestion',(_0xda51db,_0x5c132c,_0x2c8cf0)=>{_0x2c8cf0[_0x4923('0x1e')][_0x4923('0x1c')]&&re(_0x52de52,{'showActiveMarker':!0x1})(_0xda51db,_0x5c132c,_0x2c8cf0);}),_0xc50ad5[_0x4923('0xc')][_0x4923('0xd')](_0x4923('0xf'),_0xfbddc5=>_0x41a57f(_0x52de52['locale'],'ELEMENT_LINE_BREAK',_0xfbddc5));}}function re(_0x45c824,{showActiveMarker:_0x36323b=!0x0}={}){return(_0x3db5b0,_0x2dfe93,_0x1d89ec)=>{const _0x26d412=_0x45c824[_0x4923('0x2')][_0x4923('0x5')](_0x4923('0x3'));if(!_0x1d89ec[_0x4923('0xe')]['test'](_0x2dfe93[_0x4923('0x11')],_0x3db5b0[_0x4923('0x15')]))return;const _0x3aa2ac=_0x45c824['model'];for(const _0x24d121 of _0x2dfe93[_0x4923('0x11')][_0x4923('0x25')]()){if(!_0x24d121['is'](_0x4923('0x1d'),_0x4923('0xf')))continue;const _0x2d7232=_0x4923('0x24')==_0x2dfe93[_0x4923('0x1a')]['split'](':')[0x1]?_0x4923('0x12'):_0x4923('0x6'),_0x1aefab=_0x1d89ec[_0x4923('0x8')][_0x4923('0x1b')](_0x4923('0x19'),{'class':_0x4923('0x22')+_0x2d7232}),_0x379343=_0x1d89ec['mapper'][_0x4923('0x4')](_0x3aa2ac[_0x4923('0x10')](_0x24d121));_0x36323b&&_0x26d412[_0x4923('0x18')][_0x4923('0x14')](_0x2dfe93['markerName'])&&_0x1d89ec[_0x4923('0x8')][_0x4923('0x21')]('ck-suggestion-marker--active',_0x1aefab),_0x1d89ec[_0x4923('0x8')][_0x4923('0x7')](_0x379343,_0x1aefab),_0x1d89ec[_0x4923('0x13')][_0x4923('0xa')](_0x1aefab,_0x2dfe93['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x360a=['commands','isCollapsed','model','plugins','document','getRanges','get','afterInit','change','editor','from','has','value','enableCommand','selection','format','StandardEditingModeEditing','restrictedEditingException','FORMAT_RESTRICTED_ENABLED','FORMAT_RESTRICTED_DISABLED','forceValue'];(function(_0x13c115,_0x360a9f){const _0x4983ea=function(_0x47ab75){while(--_0x47ab75){_0x13c115['push'](_0x13c115['shift']());}};_0x4983ea(++_0x360a9f);}(_0x360a,0xb7));const _0x4983=function(_0x13c115,_0x360a9f){_0x13c115=_0x13c115-0x0;let _0x4983ea=_0x360a[_0x13c115];return _0x4983ea;};import{Plugin as _0x15b255}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x342601}from'./utils';import{getTranslation as _0x39d6e4}from'../utils/common-translations';export default class lt extends _0x15b255{[_0x4983('0xd')](){const _0x41007b=this[_0x4983('0xf')],_0x49644a=_0x41007b[_0x4983('0x8')],_0x351371=_0x41007b['locale'];if(!_0x41007b[_0x4983('0x9')][_0x4983('0x11')](_0x4983('0x1')))return;const _0x8a2b2a=_0x41007b[_0x4983('0x9')][_0x4983('0xc')]('TrackChangesEditing'),_0x1f6fda=_0x4983('0x2'),_0x473a03=_0x41007b[_0x4983('0x6')][_0x4983('0xc')](_0x1f6fda);_0x8a2b2a[_0x4983('0x13')](_0x1f6fda,(_0x2d0cac,_0x33022f={})=>{const _0x1bf684=_0x49644a[_0x4983('0xa')][_0x4983('0x14')];if(_0x1bf684[_0x4983('0x7')])return void _0x2d0cac(_0x33022f);const _0x19e9f3=void 0x0!==_0x33022f[_0x4983('0x5')]?_0x33022f[_0x4983('0x5')]:!_0x473a03[_0x4983('0x12')];_0x49644a[_0x4983('0xe')](()=>{const _0x4b5736=Array[_0x4983('0x10')](_0x1bf684[_0x4983('0xb')]());for(const _0x20b65e of _0x4b5736){const _0xdb7fb3=_0x19e9f3?[_0x20b65e]:_0x342601(_0x1f6fda,_0x20b65e,_0x49644a);for(const _0x4da334 of _0xdb7fb3)_0x8a2b2a['markInlineFormat'](_0x4da334,{'commandName':_0x1f6fda,'commandParams':[{'forceValue':_0x19e9f3}]});}});}),_0x8a2b2a['_descriptionFactory']['registerDescriptionCallback'](_0x65ca99=>{const {data:_0x512666}=_0x65ca99;if(_0x512666&&_0x512666['commandName']==_0x1f6fda)return _0x512666['commandParams'][0x0]['forceValue']?{'type':_0x4983('0x0'),'content':_0x39d6e4(_0x351371,_0x4983('0x3'))}:{'type':_0x4983('0x0'),'content':_0x39d6e4(_0x351371,_0x4983('0x4'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3955=['style.definitions','find','document','afterInit','normalizeConfig','style:','commands','value','plugins','config','element','style','getItems','registerDescriptionCallback','markInlineFormat','every','DataSchema','change','Style','name','_getStyleDefinition','locale','format','modelElements','getRanges','includes','isCollapsed','model','styleName','from','isBlock','_getRangesWithClasses','commandParams','getAttribute','enabledStyles','TrackChangesEditing','toLowerCase','_descriptionFactory','getDefinitionsForView','getSelectedBlocks','classes','selection','push','get','markBlockFormat','createRangeOn'];(function(_0xfa704b,_0x3955e0){const _0x4b919b=function(_0x3892fd){while(--_0x3892fd){_0xfa704b['push'](_0xfa704b['shift']());}};_0x4b919b(++_0x3955e0);}(_0x3955,0xa5));const _0x4b91=function(_0xfa704b,_0x3955e0){_0xfa704b=_0xfa704b-0x0;let _0x4b919b=_0x3955[_0xfa704b];return _0x4b919b;};import{Plugin as _0x28c95d}from'ckeditor5/src/core';import{getTranslation as _0x1090b2}from'../utils/common-translations';export default class gt extends _0x28c95d{[_0x4b91('0x16')](){const _0x1b8784=this['editor'];if(!_0x1b8784[_0x4b91('0x1b')]['has'](_0x4b91('0x25')))return;const _0x249761=_0x1b8784[_0x4b91('0x19')][_0x4b91('0x10')](_0x4b91('0x1e')),_0x2b4751=_0x1b8784['plugins'][_0x4b91('0x10')](_0x4b91('0x8')),_0x21478b=_0x1b8784[_0x4b91('0x28')],_0x1116b7=_0x1b8784['plugins'][_0x4b91('0x10')](_0x4b91('0x23')),_0x416264=_0x1b8784[_0x4b91('0x1b')][_0x4b91('0x10')]('StyleUtils')[_0x4b91('0x17')](_0x1116b7,_0x1b8784[_0x4b91('0x1c')][_0x4b91('0x10')](_0x4b91('0x13')));_0x2b4751['enableCommand'](_0x4b91('0x1e'),(_0x41dee9,{styleName:_0x520f46})=>{const _0x709b65=_0x1b8784['model'][_0x4b91('0x15')][_0x4b91('0xe')],_0x291a4d=this[_0x4b91('0x27')](_0x520f46,_0x416264);if(!_0x291a4d)return;if(!_0x249761[_0x4b91('0x7')]['includes'](_0x520f46))return;if(_0x709b65[_0x4b91('0x2d')]&&!_0x291a4d[_0x4b91('0x3')])return void _0x41dee9({'styleName':_0x520f46});const _0x2f437e=!_0x249761[_0x4b91('0x1a')][_0x4b91('0x2c')](_0x291a4d[_0x4b91('0x26')]);if(_0x291a4d['isBlock']){const _0x4a0950=function(_0x47af3d,_0x5ec023){const _0x22fd83=new Set();for(const _0x4f24ca of _0x47af3d){const _0x509189=_0x4f24ca['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x15e3d5 of _0x509189)if(_0x5ec023[_0x4b91('0x2c')](_0x15e3d5['name'])){_0x22fd83['add'](_0x15e3d5);break;}}return _0x22fd83;}(_0x709b65[_0x4b91('0xc')](),_0x291a4d[_0x4b91('0x2a')]);_0x1b8784[_0x4b91('0x0')][_0x4b91('0x24')](()=>{for(const _0x2cca16 of _0x4a0950)_0x2b4751[_0x4b91('0x11')](_0x2cca16,{'commandName':_0x4b91('0x1e'),'commandParams':[{'styleName':_0x520f46,'forceValue':_0x2f437e}],'formatGroupId':_0x4b91('0x18')+_0x520f46});});}else{let _0x221c6a=Array[_0x4b91('0x2')](_0x709b65[_0x4b91('0x2b')]());if(!_0x2f437e){const _0x258a5d=Array[_0x4b91('0x2')](_0x1116b7[_0x4b91('0xb')](_0x291a4d[_0x4b91('0x1d')],!0x1))[0x0][_0x4b91('0x0')],_0x3394bc=[];for(const _0x393d93 of _0x221c6a){const _0x4052a7=this[_0x4b91('0x4')](_0x1b8784[_0x4b91('0x0')],_0x393d93,_0x291a4d['classes'],_0x258a5d);_0x3394bc[_0x4b91('0xf')](..._0x4052a7);}_0x221c6a=_0x3394bc;}_0x1b8784[_0x4b91('0x0')]['change'](()=>{for(const _0x4dca0a of _0x221c6a)_0x2b4751[_0x4b91('0x21')](_0x4dca0a,{'commandName':_0x4b91('0x1e'),'commandParams':[{'styleName':_0x520f46,'forceValue':_0x2f437e}]});});}}),_0x2b4751[_0x4b91('0xa')][_0x4b91('0x20')](_0x1f3243=>{const {data:_0x290789}=_0x1f3243;if(_0x290789&&'style'===_0x290789['commandName'])return _0x290789[_0x4b91('0x5')][0x0]['forceValue']?{'type':_0x4b91('0x29'),'content':_0x1090b2(_0x21478b,'*Format:*\x20%0',_0x290789[_0x4b91('0x5')][0x0]['styleName']['toLowerCase']())}:{'type':_0x4b91('0x29'),'content':_0x1090b2(_0x21478b,'*Remove\x20format:*\x20%0',_0x290789[_0x4b91('0x5')][0x0][_0x4b91('0x1')][_0x4b91('0x9')]())};});}[_0x4b91('0x27')](_0x40807a,_0x468ea6){let _0x2b55e7=_0x468ea6['block'][_0x4b91('0x14')](_0x5da185=>_0x5da185[_0x4b91('0x26')]===_0x40807a);return _0x2b55e7||(_0x2b55e7=_0x468ea6['inline'][_0x4b91('0x14')](_0x5c9715=>_0x5c9715[_0x4b91('0x26')]===_0x40807a)),_0x2b55e7;}[_0x4b91('0x4')](_0x13c960,_0x232f57,_0x402c8e,_0x409a8c){const _0x32c5eb=[];for(const _0x5a8720 of _0x232f57[_0x4b91('0x1f')]()){const _0x1310ac=_0x5a8720[_0x4b91('0x6')](_0x409a8c);_0x1310ac&&(_0x402c8e[_0x4b91('0x22')](_0x1491e8=>_0x1310ac[_0x4b91('0xd')][_0x4b91('0x2c')](_0x1491e8))&&_0x32c5eb['push'](_0x13c960[_0x4b91('0x12')](_0x5a8720)));}return _0x32c5eb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1251=['_tablePostFixingSubtypes','has','TableEditing','plugins','isEqual','execute','name','oldRange','mapper','suggestion','change','findAncestor','markMultiRangeInsertion','registerPostFixer','showSuggestionHighlights','selectTableRow','_descriptionFactory','table','downcastDispatcher','selection','minColumn','insertion','enqueueChange','last','nodeBefore','hasAttribute','max','editor','cell','ELEMENT_TABLE_ROW','values','getSelectionAffectedTableCells','nodeAfter','insertTable','_setupColumnsRowsFixing','_suggestionFactory','differ','insert','addRange','MAX_SAFE_INTEGER','ELEMENT_TABLE','afterInit','fromRange','createPositionAt','document','$graveyard','join','rowspan','substr','registerCustomCallback','highest','toLowerCase','addClass','insertTableRowBelow','first','every','includes','root','min','tableRow','get','getChanges','some','_acceptFormatSuggestionCallbackFactory','rootName','ELEMENT_TABLE_WITH_TEXT','forceValue','subType','insertTableColumnRight','addMarker:suggestion','getSuggestion','_tableSuggestions','batch','length','registerDescriptionCallback','writer','getContainedElement','classes','_getCoordsForCells','isArray','startsWith','MIN_SAFE_INTEGER','isIntersectingWithRange','removeTableColumn','map','order','minRow','low','type','selectTableColumn','$textProxy','position','refresh','createTableWalker','getRowIndexes','enableCommand','locale','_getSuggestionCoords','removeTableRow','tablePaste','setSelection','isTouching','item','element','createRangeIn','model','getItems','getCellLocation','tableCell','tableColumn','getRanges','registerElementLabel','TableUtils','commands','createRangeOn','ELEMENT_TABLE_COLUMN_WITH_TEXT','discard','end','from','*Remove:*\x20%0','TrackChangesEditing','filter','accept','insertTableColumnLeft','maxRow','data','deletion','start','toViewElement','colspan','*Insert:*\x20%0','getAttribute','detach','ELEMENT_TABLE_COLUMN','push'];(function(_0xcd132b,_0x1251ae){const _0x475e3c=function(_0x3172a6){while(--_0x3172a6){_0xcd132b['push'](_0xcd132b['shift']());}};_0x475e3c(++_0x1251ae);}(_0x1251,0x99));const _0x475e=function(_0xcd132b,_0x1251ae){_0xcd132b=_0xcd132b-0x0;let _0x475e3c=_0x1251[_0xcd132b];return _0x475e3c;};import{Plugin as _0x1cdcfd}from'ckeditor5/src/core';import{LiveRange as _0x37b854}from'ckeditor5/src/engine';import{setHighlightHandling as _0x120d8a}from'ckeditor5/src/widget';import{getTranslation as _0x13a608}from'../utils/common-translations';export default class mt extends _0x1cdcfd{constructor(_0x3bd103){super(_0x3bd103),this[_0x475e('0x75')]=[_0x475e('0x29'),_0x475e('0x5b')],this[_0x475e('0x35')]=new Set();}[_0x475e('0x17')](){const _0x3a723a=this[_0x475e('0x9')],_0x3d077b=_0x3a723a[_0x475e('0x57')][_0x475e('0x1a')]['selection'];if(!_0x3a723a[_0x475e('0x78')][_0x475e('0x76')](_0x475e('0x77')))return;const _0x2ef58f=_0x3a723a[_0x475e('0x4e')],_0x594122=_0x3a723a[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x66')),_0x32569e=_0x3a723a[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x5e'));_0x594122[_0x475e('0x85')][_0x475e('0x5d')](_0x475e('0x86'),_0x3166e4=>_0x13a608(_0x2ef58f,_0x475e('0x16'),_0x3166e4)),this[_0x475e('0x10')](),_0x594122[_0x475e('0x4d')](_0x475e('0xf')),_0x594122[_0x475e('0x4d')](_0x475e('0x84')),_0x594122['enableCommand'](_0x475e('0x47'));for(const _0x23439f of['insertTableRowAbove',_0x475e('0x23')]){const _0x2a95b5=_0x3a723a[_0x475e('0x5f')]['get'](_0x23439f);_0x594122[_0x475e('0x4d')](_0x23439f,_0x40e417=>{_0x3a723a['model'][_0x475e('0x7f')](_0x52f005=>{_0x40e417();const _0x18ca26='above'===_0x2a95b5[_0x475e('0x43')],_0x4fa6b9=_0x32569e[_0x475e('0xd')](_0x3d077b),_0x186a7b=_0x32569e[_0x475e('0x4c')](_0x4fa6b9),_0x3eee0c=_0x18ca26?_0x186a7b[_0x475e('0x24')]-0x1:_0x186a7b[_0x475e('0x5')]+0x1,_0x4c11c4=_0x4fa6b9[0x0][_0x475e('0x80')](_0x475e('0x86')),_0x43e5d8=_0x32569e[_0x475e('0x4b')](_0x4c11c4,{'startRow':_0x3eee0c,'endRow':_0x3eee0c}),_0x6155f7=Array['from'](_0x43e5d8)[_0x475e('0x42')](_0x1a6197=>_0x52f005['createRangeOn'](_0x1a6197[_0x475e('0xa')]));_0x594122[_0x475e('0x81')](_0x6155f7,'tableRow');});});}for(const _0x20ba22 of[_0x475e('0x69'),_0x475e('0x32')]){const _0x1413fd=_0x3a723a[_0x475e('0x5f')][_0x475e('0x2a')](_0x20ba22);_0x594122[_0x475e('0x4d')](_0x20ba22,_0x4dfc55=>{_0x3a723a[_0x475e('0x57')]['change'](_0x5bdafb=>{_0x4dfc55();const _0x457224='left'===_0x1413fd[_0x475e('0x43')],_0x293424=_0x32569e[_0x475e('0xd')](_0x3d077b),_0x3a7b87=_0x32569e['getColumnIndexes'](_0x293424),_0x5b235c=_0x457224?_0x3a7b87[_0x475e('0x24')]-0x1:_0x3a7b87[_0x475e('0x5')]+0x1,_0x50b642=_0x293424[0x0]['findAncestor'](_0x475e('0x86')),_0x17520b=_0x32569e[_0x475e('0x4b')](_0x50b642,{'startRow':0x0,'column':_0x5b235c,'includeAllSlots':!0x1}),_0x336418=Array[_0x475e('0x64')](_0x17520b)[_0x475e('0x42')](_0x1a14f9=>_0x5bdafb['createRangeOn'](_0x1a14f9[_0x475e('0xa')]));_0x594122[_0x475e('0x81')](_0x336418,'tableColumn');});});}for(const _0x5e8cec of[_0x475e('0x50'),_0x475e('0x41')]){const _0x25e06f=_0x5e8cec[_0x475e('0x1e')](0xb),_0x468b83=_0x25e06f[_0x475e('0x21')](),_0x15a423=_0x468b83[_0x475e('0x1e')](0x0,0x3)+'span',_0x35936c='table'+_0x25e06f,_0x608f87=_0x475e('0x28')+_0x25e06f,_0x506584=_0x475e('0x8')+_0x25e06f;_0x594122['enableCommand'](_0x5e8cec,()=>{_0x3a723a['model']['change'](_0x17ff86=>{const _0xf16393=_0x32569e[_0x475e('0xd')](_0x3d077b),_0x9e9fc8=_0xf16393[0x0][_0x475e('0x80')]('table');let _0x4621a8;if('removeTableRow'==_0x5e8cec){const _0x4f1f69=_0x32569e[_0x475e('0x4c')](_0xf16393);_0x4621a8={'startRow':_0x4f1f69[_0x475e('0x24')],'endRow':_0x4f1f69[_0x475e('0x5')],'includeAllSlots':!0x0};}else{const _0x42ee3e=_0x32569e['getColumnIndexes'](_0xf16393);_0x4621a8={'startColumn':_0x42ee3e[_0x475e('0x24')],'endColumn':_0x42ee3e[_0x475e('0x5')],'includeAllSlots':!0x0};}const _0x4a9a6e=_0x32569e['createTableWalker'](_0x9e9fc8,_0x4621a8),_0x119151=Array[_0x475e('0x64')](_0x4a9a6e)[_0x475e('0x42')](({cell:_0x3f6335})=>_0x3f6335),_0x32677f=se(_0x119151[_0x475e('0x67')](_0x10672e=>_0x10672e['hasAttribute'](_0x15a423))),_0x2dc2db=se(_0x119151[_0x475e('0x67')](_0x18b435=>!_0x18b435[_0x475e('0x7')](_0x15a423)))[_0x475e('0x42')](_0x5c07ef=>_0x17ff86[_0x475e('0x60')](_0x5c07ef)),_0xcc448e=_0x594122['markMultiRangeDeletion'](_0x2dc2db,_0x35936c);if(_0xcc448e&&(_0x475e('0x29')==_0xcc448e[_0x475e('0x31')]||_0x475e('0x5b')==_0xcc448e[_0x475e('0x31')])){const _0x5a7331=this[_0x475e('0x4f')](_0xcc448e);for(const _0x53d731 of _0x32677f){const _0x49980c=_0x17ff86['createRangeOn'](_0x53d731),_0x468446=_0x32569e[_0x475e('0x59')](_0x53d731),_0xa82df9=_0x53d731[_0x475e('0x71')](_0x15a423)-0x1,_0x3183c0=_0x5a7331[_0x608f87],_0x3babb1=_0x5a7331[_0x506584];_0x3183c0<=_0x468446[_0x468b83]&&_0x468446[_0x468b83]+_0xa82df9<=_0x3babb1&&_0xcc448e[_0x475e('0x14')](_0x49980c);}}});});}function _0x12def0(_0x193379){const _0x4d1cbe=Array[_0x475e('0x64')](_0x3d077b[_0x475e('0x5c')]())[_0x475e('0x42')](_0x8a15e6=>_0x37b854[_0x475e('0x18')](_0x8a15e6));_0x3a723a['model']['change'](_0x26afee=>{const _0x4aa9a4=_0x26afee[_0x475e('0x36')];_0x193379=_0x193379[_0x475e('0x67')](_0x57d4f3=>_0x475e('0x1b')!=_0x57d4f3[_0x475e('0x27')][_0x475e('0x2e')]),_0x26afee['setSelection'](_0x193379),_0x3a723a[_0x475e('0x5f')][_0x475e('0x2a')](_0x475e('0x50'))[_0x475e('0x4a')](),_0x3a723a[_0x475e('0x7a')](_0x475e('0x50'),{'forceDefaultExecution':!0x0}),_0x3a723a[_0x475e('0x57')][_0x475e('0x4')](()=>{_0x3a723a[_0x475e('0x57')]['enqueueChange'](_0x4aa9a4,_0x4c3488=>{const _0x44e587=_0x4d1cbe[_0x475e('0x67')](_0x9b80d8=>'$graveyard'!=_0x9b80d8[_0x475e('0x27')][_0x475e('0x2e')]);_0x44e587[_0x475e('0x37')]>0x0&&_0x4c3488['setSelection'](_0x44e587);for(const _0x9863cb of _0x4d1cbe)_0x9863cb[_0x475e('0x72')]();});});});}function _0x3127fe(_0x33f176){_0x3a723a['model'][_0x475e('0x7f')](_0xc73db7=>{const _0x5dbd09=Array[_0x475e('0x64')](_0x3d077b[_0x475e('0x5c')]())[_0x475e('0x42')](_0x56c503=>_0x37b854[_0x475e('0x18')](_0x56c503)),_0x5a03b6=[];for(const _0x198a2b of _0x33f176)for(const _0x243cc9 of _0x198a2b[_0x475e('0x58')]({'shallow':!0x0}))_0x5a03b6['push'](_0x243cc9);for(const _0x1f9338 of _0x5a03b6)_0x475e('0x1b')!=_0x1f9338[_0x475e('0x27')][_0x475e('0x2e')]&&(_0xc73db7[_0x475e('0x52')](_0xc73db7[_0x475e('0x19')](_0x1f9338,0x0)),_0x3a723a['commands'][_0x475e('0x2a')](_0x475e('0x41'))[_0x475e('0x4a')](),_0x3a723a['execute'](_0x475e('0x41'),{'forceDefaultExecution':!0x0}));const _0x409cfc=_0x5dbd09[_0x475e('0x67')](_0x42c4a4=>_0x475e('0x1b')!=_0x42c4a4['root'][_0x475e('0x2e')]);_0x409cfc[_0x475e('0x37')]>0x0&&_0xc73db7[_0x475e('0x52')](_0x409cfc);for(const _0x5ee700 of _0x5dbd09)_0x5ee700[_0x475e('0x72')]();});}function _0x1129f6(_0x3b8d56,_0x7734aa){return _0x7734aa[_0x475e('0x25')](_0x390677=>_0x3b8d56['some'](_0xac47c1=>_0xac47c1[_0x475e('0x63')][_0x475e('0x79')](_0x390677['start'])||_0x390677[_0x475e('0x63')][_0x475e('0x79')](_0xac47c1[_0x475e('0x6d')])));}function _0x45544d(_0x232ca2,_0x268fdc){return _0x232ca2[_0x475e('0x2c')](_0x1a1de6=>_0x268fdc[_0x475e('0x2c')](_0x150fb0=>_0x1a1de6[_0x475e('0x63')][_0x475e('0x53')](_0x150fb0[_0x475e('0x6d')])));}_0x3a723a[_0x475e('0x6b')][_0x475e('0x0')]['on'](_0x475e('0x33'),(_0x22b356,_0x2b7e42,_0x47c1ff)=>{if(!_0x47c1ff['options'][_0x475e('0x83')])return;const _0x52af56=_0x2b7e42[_0x475e('0x54')];if(!_0x52af56)return;const _0x1cd175=_0x47c1ff[_0x475e('0x7d')][_0x475e('0x6e')](_0x52af56);function _0x1375df(_0x384040){return Array[_0x475e('0x3d')](_0x384040)?_0x384040:[_0x384040];}_0x1cd175&&_0x475e('0x5a')===_0x52af56[_0x475e('0x7b')]&&_0x120d8a(_0x1cd175,_0x47c1ff[_0x475e('0x39')],(_0x276a84,_0x501488,_0x570c8a)=>_0x570c8a[_0x475e('0x22')](_0x1375df(_0x501488[_0x475e('0x3b')]),_0x276a84),(_0x4c0d47,_0x1692b6,_0x3ac287)=>_0x3ac287['removeClass'](_0x1375df(_0x1692b6['classes']),_0x4c0d47));},{'priority':_0x475e('0x20')}),_0x594122['_descriptionFactory'][_0x475e('0x38')](_0x2c2f6b=>{if('insertion'!=_0x2c2f6b[_0x475e('0x46')]&&'deletion'!=_0x2c2f6b[_0x475e('0x46')])return;const _0x34ce67=_0x2c2f6b[_0x475e('0x3a')]();if(null!=_0x34ce67&&_0x34ce67['is'](_0x475e('0x55'),_0x475e('0x86'))){if(_0x475e('0x3')==_0x2c2f6b['type']){const _0x205fca=_0x2c2f6b[_0x475e('0x58')]()[_0x475e('0x67')](_0x40e62c=>_0x40e62c['is'](_0x475e('0x48')))[_0x475e('0x42')](_0x42738c=>_0x42738c[_0x475e('0x6b')]);if(_0x205fca['length'])return{'type':_0x475e('0x3'),'content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,_0x475e('0x2f'),'\x22'+_0x205fca[_0x475e('0x1c')]('\x20')+'\x22'))};}if(_0x475e('0x6c')==_0x2c2f6b[_0x475e('0x46')]){const _0x5963e1=_0x2c2f6b['getItems']()[_0x475e('0x67')](_0x4e71f8=>_0x4e71f8['is'](_0x475e('0x48')))['map'](_0x5c4967=>_0x5c4967[_0x475e('0x6b')]);if(_0x5963e1[_0x475e('0x37')])return{'type':'deletion','content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0x2f'),'\x22'+_0x5963e1['join']('\x20')+'\x22'))};}}}),_0x594122[_0x475e('0x85')][_0x475e('0x38')](_0x13a3b5=>{if('tableRow'==_0x13a3b5[_0x475e('0x31')]){const _0x250216=_0x13a3b5[_0x475e('0x58')]()[_0x475e('0x67')](_0x589541=>_0x589541['is'](_0x475e('0x48')))[_0x475e('0x42')](_0x4b6bd2=>_0x4b6bd2['data']),_0x5dbca8=this['_getSuggestionCoords'](_0x13a3b5),_0x463b49=_0x5dbca8[_0x475e('0x6a')]-_0x5dbca8[_0x475e('0x44')]+0x1;if(_0x475e('0x3')==_0x13a3b5[_0x475e('0x46')])return _0x250216[_0x475e('0x37')]?{'type':'insertion','content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x463b49,'\x22'+_0x250216[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,_0x475e('0xb'),_0x463b49))};if(_0x475e('0x6c')==_0x13a3b5[_0x475e('0x46')])return _0x250216[_0x475e('0x37')]?{'type':_0x475e('0x6c'),'content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x463b49,'\x22'+_0x250216[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':_0x475e('0x6c'),'content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0xb'),_0x463b49))};}if(_0x475e('0x5b')==_0x13a3b5['subType']){const _0x38ffb4=_0x13a3b5[_0x475e('0x58')]()['filter'](_0x2987d4=>_0x2987d4['is'](_0x475e('0x48')))[_0x475e('0x42')](_0x25d358=>_0x25d358[_0x475e('0x6b')]),_0x3f5919=this['_getSuggestionCoords'](_0x13a3b5),_0x3b28bc=_0x3f5919['maxColumn']-_0x3f5919[_0x475e('0x2')]+0x1;if(_0x475e('0x3')==_0x13a3b5['type'])return _0x38ffb4['length']?{'type':_0x475e('0x3'),'content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,_0x475e('0x61'),[_0x3b28bc,'\x22'+_0x38ffb4[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':_0x475e('0x3'),'content':_0x13a608(_0x2ef58f,_0x475e('0x70'),_0x13a608(_0x2ef58f,'ELEMENT_TABLE_COLUMN',_0x3b28bc))};if(_0x475e('0x6c')==_0x13a3b5['type'])return _0x38ffb4[_0x475e('0x37')]?{'type':'deletion','content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0x61'),[_0x3b28bc,'\x22'+_0x38ffb4[_0x475e('0x1c')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x13a608(_0x2ef58f,_0x475e('0x65'),_0x13a608(_0x2ef58f,_0x475e('0x73'),_0x3b28bc))};}}),_0x594122[_0x475e('0x11')][_0x475e('0x1f')]('insertion',_0x475e('0x29'),_0x475e('0x62'),_0x12def0),_0x594122[_0x475e('0x11')][_0x475e('0x1f')](_0x475e('0x6c'),'tableRow',_0x475e('0x68'),_0x12def0),_0x594122[_0x475e('0x11')][_0x475e('0x1f')](_0x475e('0x3'),_0x475e('0x5b'),'discard',_0x3127fe),_0x594122['_suggestionFactory']['registerCustomCallback'](_0x475e('0x6c'),_0x475e('0x5b'),'accept',_0x3127fe),_0x594122['_suggestionFactory'][_0x475e('0x1f')](_0x475e('0x3'),_0x475e('0x5b'),_0x475e('0x1c'),_0x1129f6),_0x594122['_suggestionFactory'][_0x475e('0x1f')](_0x475e('0x6c'),'tableColumn',_0x475e('0x1c'),_0x1129f6),_0x594122[_0x475e('0x11')]['registerCustomCallback'](_0x475e('0x3'),_0x475e('0x29'),'join',_0x45544d),_0x594122[_0x475e('0x11')][_0x475e('0x1f')](_0x475e('0x6c'),_0x475e('0x29'),'join',_0x45544d);}[_0x475e('0x2d')](){const _0x3c3357=this['editor'],_0x57ba92=_0x3c3357['model']['document'][_0x475e('0x1')];return(_0x2b4e2f,_0x3c8dc6)=>{_0x3c3357[_0x475e('0x57')][_0x475e('0x7f')](_0x5eb3f5=>{const {commandName:_0x5dad0b,commandParams:_0x347885}=_0x3c8dc6;let _0x38118a=_0x2b4e2f[0x0][_0x475e('0x63')][_0x475e('0x6')];_0x347885&&_0x347885[0x0]&&!0x1===_0x347885[0x0][_0x475e('0x30')]&&(_0x38118a=_0x2b4e2f[0x0][_0x475e('0x6d')][_0x475e('0xe')]);const _0x4f1c36=_0x5eb3f5[_0x475e('0x56')](_0x38118a);if('$graveyard'==_0x4f1c36[_0x475e('0x27')][_0x475e('0x2e')])return;const _0x1a0113=Array[_0x475e('0x64')](_0x57ba92['getRanges']())['map'](_0x2bfd08=>_0x37b854[_0x475e('0x18')](_0x2bfd08));_0x5eb3f5['setSelection'](_0x4f1c36),_0x3c3357[_0x475e('0x5f')]['get'](_0x5dad0b)[_0x475e('0x4a')](),_0x347885[_0x475e('0x74')]({'forceDefaultExecution':!0x0}),_0x3c3357[_0x475e('0x7a')](_0x5dad0b,..._0x347885);const _0x24f0c3=_0x1a0113[_0x475e('0x67')](_0x522d5e=>_0x475e('0x1b')!=_0x522d5e[_0x475e('0x27')][_0x475e('0x2e')]);_0x24f0c3[_0x475e('0x37')]>0x0&&_0x5eb3f5[_0x475e('0x52')](_0x24f0c3);for(const _0x423abc of _0x1a0113)_0x423abc[_0x475e('0x72')]();});};}[_0x475e('0x3c')](_0x227163){const _0xda9254=this[_0x475e('0x9')]['plugins'][_0x475e('0x2a')]('TableUtils');let _0x229a14=Number[_0x475e('0x15')],_0x42a9d4=Number[_0x475e('0x3f')],_0x3749aa=Number[_0x475e('0x15')],_0x33d131=Number[_0x475e('0x3f')];for(const _0x37300c of _0x227163){if('$graveyard'==_0x37300c[_0x475e('0x27')][_0x475e('0x2e')])continue;const {row:_0x20c3ee,column:_0x3dc2ff}=_0xda9254[_0x475e('0x59')](_0x37300c),_0x5a45af=_0x37300c[_0x475e('0x7')](_0x475e('0x1d'))?_0x37300c[_0x475e('0x71')](_0x475e('0x1d'))-0x1:0x0,_0x1b0d73=_0x37300c['hasAttribute'](_0x475e('0x6f'))?_0x37300c[_0x475e('0x71')]('colspan')-0x1:0x0;_0x229a14=_0x20c3ee<_0x229a14?_0x20c3ee:_0x229a14,_0x42a9d4=_0x20c3ee+_0x5a45af>_0x42a9d4?_0x20c3ee+_0x5a45af:_0x42a9d4,_0x3749aa=_0x3dc2ff<_0x3749aa?_0x3dc2ff:_0x3749aa,_0x33d131=_0x3dc2ff+_0x1b0d73>_0x33d131?_0x3dc2ff+_0x1b0d73:_0x33d131;}return{'minRow':_0x229a14,'maxRow':_0x42a9d4,'minColumn':_0x3749aa,'maxColumn':_0x33d131};}[_0x475e('0x10')](){const _0x5d4e6f=this[_0x475e('0x9')],_0x1ce830=_0x5d4e6f[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x66')),_0x467ad4=_0x5d4e6f[_0x475e('0x78')][_0x475e('0x2a')](_0x475e('0x5e'));_0x5d4e6f[_0x475e('0x57')]['document']['on']('change:data',()=>{const _0x40a495=Array['from'](_0x5d4e6f[_0x475e('0x57')]['document'][_0x475e('0x12')]['getChangedMarkers']());for(const {name:_0x96f05d,data:_0x5d2d1b}of _0x40a495){const {group:_0x1e7e8d,id:_0x548ee3,subType:_0x2dcfee}=_0x1ce830['_splitMarkerName'](_0x96f05d);if(_0x475e('0x7e')!=_0x1e7e8d)continue;if(null!=_0x5d2d1b[_0x475e('0x7c')])continue;const _0x46ff09=_0x1ce830[_0x475e('0x34')](_0x548ee3);this[_0x475e('0x75')][_0x475e('0x26')](_0x2dcfee)&&this[_0x475e('0x35')]['add'](_0x46ff09);}},{'priority':_0x475e('0x45')});const _0x155e86=(_0x5c91c6,_0x364bfe)=>{let _0x3df475=!0x1;const _0x501f1b=_0x364bfe[_0x475e('0x60')](_0x5c91c6),_0x41ddcc=_0x5c91c6['findAncestor'](_0x475e('0x86')),_0x12f849=_0x467ad4[_0x475e('0x59')](_0x5c91c6);for(const _0x12ab94 of this[_0x475e('0x35')]){const _0x2e542a=_0x12ab94[_0x475e('0x31')],_0x4080c4=_0x2e542a[_0x475e('0x3e')](_0x475e('0x51')),_0x4d9ccd=_0x2e542a[_0x475e('0x1e')](_0x4080c4?0xa:0x5),_0x4d47ab=_0x4d9ccd[_0x475e('0x21')](),_0x30f6e9=_0x4d47ab['substr'](0x0,0x3)+'span',_0x181651=_0x475e('0x28')+_0x4d9ccd,_0x4eac47='max'+_0x4d9ccd;if(!_0x12ab94['isInContent'])continue;if(_0x41ddcc!=_0x12ab94['getFirstRange']()[_0x475e('0x6d')][_0x475e('0x80')](_0x475e('0x86')))continue;if(_0x12ab94[_0x475e('0x40')](_0x501f1b))continue;const _0x2f2139=_0x5c91c6[_0x475e('0x7')](_0x30f6e9)?_0x5c91c6[_0x475e('0x71')](_0x30f6e9)-0x1:0x0,_0x470c0b=this[_0x475e('0x4f')](_0x12ab94),_0x5b7286=_0x470c0b[_0x181651],_0x18d381=_0x470c0b[_0x4eac47];_0x5b7286<=_0x12f849[_0x4d47ab]&&_0x12f849[_0x4d47ab]+_0x2f2139<=_0x18d381&&(_0x12ab94[_0x475e('0x14')](_0x501f1b),_0x3df475=!0x0);}return _0x3df475;};_0x5d4e6f[_0x475e('0x57')]['document'][_0x475e('0x82')](_0x8d32bb=>{let _0x307026=!0x1;for(const _0x1ffbdc of _0x5d4e6f[_0x475e('0x57')][_0x475e('0x1a')][_0x475e('0x12')][_0x475e('0x2b')]())if(_0x475e('0x13')==_0x1ffbdc['type']){if(_0x475e('0x29')==_0x1ffbdc[_0x475e('0x7b')])for(const _0xdfe617 of _0x1ffbdc[_0x475e('0x49')][_0x475e('0xe')]['getChildren']())_0x307026=_0x307026||_0x155e86(_0xdfe617,_0x8d32bb);else _0x475e('0x5a')==_0x1ffbdc[_0x475e('0x7b')]&&(_0x307026=_0x307026||_0x155e86(_0x1ffbdc['position'][_0x475e('0xe')],_0x8d32bb));}return _0x307026;});}[_0x475e('0x4f')](_0x55beda){return this[_0x475e('0x3c')](_0x55beda[_0x475e('0x5c')]()[_0x475e('0x42')](_0x28a827=>_0x28a827[_0x475e('0x6d')]['nodeAfter']));}}function se(_0x176719){return Array[_0x475e('0x64')](new Set(_0x176719)[_0x475e('0xc')]());}
|
|
23
|
+
const _0x100a=['TableUtils','registerDescriptionCallback','refresh','insertion','isInContent','createPositionAt','TrackChangesEditing','getSuggestion','has','addMarker:suggestion','getSelectionAffectedTableCells','MAX_SAFE_INTEGER','ELEMENT_TABLE_COLUMN','afterInit','$graveyard','above','substr','removeTableRow','getChanges','_splitMarkerName','_acceptFormatSuggestionCallbackFactory','selectTableColumn','registerElementLabel','tableRow','minRow','toViewElement','type','writer','item','from','start','commands','getRowIndexes','insert','every','discard','markMultiRangeInsertion','enableCommand','TableEditing','maxRow','getContainedElement','change:data','deletion','removeClass','plugins','nodeAfter','name','map','downcastDispatcher','data','last','setSelection','accept','suggestion','*Remove:*\x20%0','ELEMENT_TABLE_WITH_TEXT','differ','registerCustomCallback','selection','low','includes','_tableSuggestions','isEqual','addClass','root','end','join','insertTableRowAbove','tablePaste','_suggestionFactory','filter','model','getCellLocation','max','nodeBefore','hasAttribute','toLowerCase','batch','MIN_SAFE_INTEGER','$textProxy','createTableWalker','change','push','_setupColumnsRowsFixing','ELEMENT_TABLE_ROW','min','maxColumn','tableColumn','_tablePostFixingSubtypes','createRangeOn','rootName','isTouching','minColumn','length','insertTableColumnLeft','findAncestor','isArray','ELEMENT_TABLE_COLUMN_WITH_TEXT','editor','colspan','get','mapper','tableCell','removeTableColumn','table','getRanges','getItems','subType','markMultiRangeDeletion','options','addRange','enqueueChange','ELEMENT_TABLE','add','forceValue','insertTable','cell','execute','_descriptionFactory','getChildren','span','createRangeIn','_getSuggestionCoords','_getCoordsForCells','getAttribute','ELEMENT_TABLE_ROW_WITH_TEXT','detach','getColumnIndexes','order','first','rowspan','document','highest','*Insert:*\x20%0','selectTableRow','position'];(function(_0x801a00,_0x100a1f){const _0x51066e=function(_0x3be8d7){while(--_0x3be8d7){_0x801a00['push'](_0x801a00['shift']());}};_0x51066e(++_0x100a1f);}(_0x100a,0x85));const _0x5106=function(_0x801a00,_0x100a1f){_0x801a00=_0x801a00-0x0;let _0x51066e=_0x100a[_0x801a00];return _0x51066e;};import{Plugin as _0x20bf41}from'ckeditor5/src/core';import{LiveRange as _0x527122}from'ckeditor5/src/engine';import{setHighlightHandling as _0x5ea4a1}from'ckeditor5/src/widget';import{getTranslation as _0x5b0dee}from'../utils/common-translations';export default class mt extends _0x20bf41{constructor(_0x25e55c){super(_0x25e55c),this[_0x5106('0x5b')]=[_0x5106('0x1a'),_0x5106('0x5a')],this[_0x5106('0x40')]=new Set();}[_0x5106('0x10')](){const _0x2f829e=this[_0x5106('0x65')],_0x3da10f=_0x2f829e[_0x5106('0x4a')]['document'][_0x5106('0x3d')];if(!_0x2f829e[_0x5106('0x2f')][_0x5106('0xb')](_0x5106('0x29')))return;const _0x37d109=_0x2f829e['locale'],_0x19b64c=_0x2f829e[_0x5106('0x2f')][_0x5106('0x67')](_0x5106('0x9')),_0x54e88c=_0x2f829e[_0x5106('0x2f')][_0x5106('0x67')](_0x5106('0x3'));_0x19b64c[_0x5106('0x79')][_0x5106('0x19')](_0x5106('0x6b'),_0x18dd36=>_0x5b0dee(_0x37d109,_0x5106('0x73'),_0x18dd36)),this[_0x5106('0x56')](),_0x19b64c[_0x5106('0x28')](_0x5106('0x76')),_0x19b64c[_0x5106('0x28')](_0x5106('0x1')),_0x19b64c[_0x5106('0x28')](_0x5106('0x18'));for(const _0x52187e of[_0x5106('0x46'),'insertTableRowBelow']){const _0x1b53ac=_0x2f829e['commands']['get'](_0x52187e);_0x19b64c[_0x5106('0x28')](_0x52187e,_0x1953bf=>{_0x2f829e['model']['change'](_0x30e81d=>{_0x1953bf();const _0x65e66d=_0x5106('0x12')===_0x1b53ac[_0x5106('0x83')],_0x4db78b=_0x54e88c['getSelectionAffectedTableCells'](_0x3da10f),_0x2cffef=_0x54e88c[_0x5106('0x23')](_0x4db78b),_0x58bbc0=_0x65e66d?_0x2cffef['first']-0x1:_0x2cffef[_0x5106('0x35')]+0x1,_0x355ca9=_0x4db78b[0x0][_0x5106('0x62')]('table'),_0x50d9f0=_0x54e88c['createTableWalker'](_0x355ca9,{'startRow':_0x58bbc0,'endRow':_0x58bbc0}),_0x5d49c3=Array['from'](_0x50d9f0)['map'](_0x256fe5=>_0x30e81d[_0x5106('0x5c')](_0x256fe5[_0x5106('0x77')]));_0x19b64c[_0x5106('0x27')](_0x5d49c3,_0x5106('0x1a'));});});}for(const _0xf5d20b of[_0x5106('0x61'),'insertTableColumnRight']){const _0x483cf3=_0x2f829e[_0x5106('0x22')][_0x5106('0x67')](_0xf5d20b);_0x19b64c[_0x5106('0x28')](_0xf5d20b,_0x33b447=>{_0x2f829e['model']['change'](_0x84844d=>{_0x33b447();const _0x238f24='left'===_0x483cf3[_0x5106('0x83')],_0x5e4d57=_0x54e88c[_0x5106('0xd')](_0x3da10f),_0x290140=_0x54e88c[_0x5106('0x82')](_0x5e4d57),_0x29490b=_0x238f24?_0x290140[_0x5106('0x84')]-0x1:_0x290140[_0x5106('0x35')]+0x1,_0x1a2257=_0x5e4d57[0x0][_0x5106('0x62')](_0x5106('0x6b')),_0x29eb9e=_0x54e88c[_0x5106('0x53')](_0x1a2257,{'startRow':0x0,'column':_0x29490b,'includeAllSlots':!0x1}),_0xf0b052=Array['from'](_0x29eb9e)[_0x5106('0x32')](_0x47f568=>_0x84844d['createRangeOn'](_0x47f568[_0x5106('0x77')]));_0x19b64c[_0x5106('0x27')](_0xf0b052,_0x5106('0x5a'));});});}for(const _0x261c12 of[_0x5106('0x14'),'removeTableColumn']){const _0x159c86=_0x261c12[_0x5106('0x13')](0xb),_0x462912=_0x159c86['toLowerCase'](),_0x15fd8d=_0x462912['substr'](0x0,0x3)+_0x5106('0x7b'),_0x11071b=_0x5106('0x6b')+_0x159c86,_0x1cd5f7=_0x5106('0x58')+_0x159c86,_0x2ca69b=_0x5106('0x4c')+_0x159c86;_0x19b64c[_0x5106('0x28')](_0x261c12,()=>{_0x2f829e[_0x5106('0x4a')][_0x5106('0x54')](_0x53abfe=>{const _0x2f79ac=_0x54e88c[_0x5106('0xd')](_0x3da10f),_0x337a7b=_0x2f79ac[0x0]['findAncestor']('table');let _0x495534;if('removeTableRow'==_0x261c12){const _0x135e0a=_0x54e88c['getRowIndexes'](_0x2f79ac);_0x495534={'startRow':_0x135e0a[_0x5106('0x84')],'endRow':_0x135e0a[_0x5106('0x35')],'includeAllSlots':!0x0};}else{const _0x3e583b=_0x54e88c['getColumnIndexes'](_0x2f79ac);_0x495534={'startColumn':_0x3e583b[_0x5106('0x84')],'endColumn':_0x3e583b[_0x5106('0x35')],'includeAllSlots':!0x0};}const _0x5b9686=_0x54e88c[_0x5106('0x53')](_0x337a7b,_0x495534),_0x14c4ae=Array[_0x5106('0x20')](_0x5b9686)[_0x5106('0x32')](({cell:_0x41a5b6})=>_0x41a5b6),_0x1a157f=se(_0x14c4ae['filter'](_0xb747e1=>_0xb747e1['hasAttribute'](_0x15fd8d))),_0x36293e=se(_0x14c4ae['filter'](_0x56b73c=>!_0x56b73c['hasAttribute'](_0x15fd8d)))['map'](_0x2d9bcd=>_0x53abfe[_0x5106('0x5c')](_0x2d9bcd)),_0x266a08=_0x19b64c[_0x5106('0x6f')](_0x36293e,_0x11071b);if(_0x266a08&&(_0x5106('0x1a')==_0x266a08[_0x5106('0x6e')]||'tableColumn'==_0x266a08['subType'])){const _0x402b27=this[_0x5106('0x7d')](_0x266a08);for(const _0x287bb3 of _0x1a157f){const _0x100659=_0x53abfe[_0x5106('0x5c')](_0x287bb3),_0x458f5d=_0x54e88c[_0x5106('0x4b')](_0x287bb3),_0x5dc641=_0x287bb3[_0x5106('0x7f')](_0x15fd8d)-0x1,_0x4eb827=_0x402b27[_0x1cd5f7],_0x5e09e3=_0x402b27[_0x2ca69b];_0x4eb827<=_0x458f5d[_0x462912]&&_0x458f5d[_0x462912]+_0x5dc641<=_0x5e09e3&&_0x266a08[_0x5106('0x71')](_0x100659);}}});});}function _0x1166bf(_0x1cac43){const _0x597073=Array[_0x5106('0x20')](_0x3da10f['getRanges']())[_0x5106('0x32')](_0x235647=>_0x527122['fromRange'](_0x235647));_0x2f829e['model'][_0x5106('0x54')](_0x468536=>{const _0x2d6ed7=_0x468536[_0x5106('0x50')];_0x1cac43=_0x1cac43[_0x5106('0x49')](_0x4c4bcb=>_0x5106('0x11')!=_0x4c4bcb[_0x5106('0x43')][_0x5106('0x5d')]),_0x468536[_0x5106('0x36')](_0x1cac43),_0x2f829e['commands'][_0x5106('0x67')](_0x5106('0x14'))[_0x5106('0x5')](),_0x2f829e['execute'](_0x5106('0x14'),{'forceDefaultExecution':!0x0}),_0x2f829e[_0x5106('0x4a')][_0x5106('0x72')](()=>{_0x2f829e['model'][_0x5106('0x72')](_0x2d6ed7,_0x53166d=>{const _0x3b64f4=_0x597073[_0x5106('0x49')](_0x564dc9=>_0x5106('0x11')!=_0x564dc9['root'][_0x5106('0x5d')]);_0x3b64f4['length']>0x0&&_0x53166d[_0x5106('0x36')](_0x3b64f4);for(const _0x1e2ee0 of _0x597073)_0x1e2ee0[_0x5106('0x81')]();});});});}function _0x326a92(_0x453ab9){_0x2f829e[_0x5106('0x4a')][_0x5106('0x54')](_0x5589f7=>{const _0x49e25d=Array[_0x5106('0x20')](_0x3da10f[_0x5106('0x6c')]())[_0x5106('0x32')](_0x5d51af=>_0x527122['fromRange'](_0x5d51af)),_0x2302c5=[];for(const _0x480546 of _0x453ab9)for(const _0x39fcee of _0x480546['getItems']({'shallow':!0x0}))_0x2302c5[_0x5106('0x55')](_0x39fcee);for(const _0x2eb624 of _0x2302c5)_0x5106('0x11')!=_0x2eb624[_0x5106('0x43')][_0x5106('0x5d')]&&(_0x5589f7[_0x5106('0x36')](_0x5589f7[_0x5106('0x8')](_0x2eb624,0x0)),_0x2f829e['commands']['get'](_0x5106('0x6a'))['refresh'](),_0x2f829e[_0x5106('0x78')](_0x5106('0x6a'),{'forceDefaultExecution':!0x0}));const _0x11704d=_0x49e25d[_0x5106('0x49')](_0x3eeb71=>_0x5106('0x11')!=_0x3eeb71['root'][_0x5106('0x5d')]);_0x11704d[_0x5106('0x60')]>0x0&&_0x5589f7[_0x5106('0x36')](_0x11704d);for(const _0x2b35c3 of _0x49e25d)_0x2b35c3[_0x5106('0x81')]();});}function _0x3915fd(_0x1f8adc,_0x13ead8){return _0x13ead8[_0x5106('0x25')](_0x4274e3=>_0x1f8adc['some'](_0x5af1a4=>_0x5af1a4['end'][_0x5106('0x41')](_0x4274e3[_0x5106('0x21')])||_0x4274e3[_0x5106('0x44')][_0x5106('0x41')](_0x5af1a4[_0x5106('0x21')])));}function _0x23def0(_0x5e13d2,_0x1652a6){return _0x5e13d2['some'](_0x595945=>_0x1652a6['some'](_0x37dad6=>_0x595945[_0x5106('0x44')][_0x5106('0x5e')](_0x37dad6[_0x5106('0x21')])));}_0x2f829e['data'][_0x5106('0x33')]['on'](_0x5106('0xc'),(_0x429e29,_0x339010,_0x3f1aa5)=>{if(!_0x3f1aa5[_0x5106('0x70')]['showSuggestionHighlights'])return;const _0x4e9198=_0x339010[_0x5106('0x1f')];if(!_0x4e9198)return;const _0x46a232=_0x3f1aa5[_0x5106('0x68')][_0x5106('0x1c')](_0x4e9198);function _0x25e9bf(_0x175d87){return Array[_0x5106('0x63')](_0x175d87)?_0x175d87:[_0x175d87];}_0x46a232&&_0x5106('0x69')===_0x4e9198[_0x5106('0x31')]&&_0x5ea4a1(_0x46a232,_0x3f1aa5[_0x5106('0x1e')],(_0x50f6de,_0xe79aa4,_0x2e1d4d)=>_0x2e1d4d[_0x5106('0x42')](_0x25e9bf(_0xe79aa4['classes']),_0x50f6de),(_0xcec634,_0x2ebca7,_0x5b35dd)=>_0x5b35dd[_0x5106('0x2e')](_0x25e9bf(_0x2ebca7['classes']),_0xcec634));},{'priority':_0x5106('0x87')}),_0x19b64c[_0x5106('0x79')][_0x5106('0x4')](_0x1087c1=>{if(_0x5106('0x6')!=_0x1087c1['type']&&_0x5106('0x2d')!=_0x1087c1[_0x5106('0x1d')])return;const _0x4a06c9=_0x1087c1[_0x5106('0x2b')]();if(null!=_0x4a06c9&&_0x4a06c9['is']('element','table')){if(_0x5106('0x6')==_0x1087c1[_0x5106('0x1d')]){const _0x1cc1fd=_0x1087c1[_0x5106('0x6d')]()[_0x5106('0x49')](_0x3c9ec0=>_0x3c9ec0['is'](_0x5106('0x52')))[_0x5106('0x32')](_0x2bd070=>_0x2bd070[_0x5106('0x34')]);if(_0x1cc1fd[_0x5106('0x60')])return{'type':'insertion','content':_0x5b0dee(_0x37d109,'*Insert:*\x20%0',_0x5b0dee(_0x37d109,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cc1fd['join']('\x20')+'\x22'))};}if(_0x5106('0x2d')==_0x1087c1[_0x5106('0x1d')]){const _0x194c42=_0x1087c1[_0x5106('0x6d')]()[_0x5106('0x49')](_0x2df6f3=>_0x2df6f3['is'](_0x5106('0x52')))[_0x5106('0x32')](_0x171ad6=>_0x171ad6['data']);if(_0x194c42[_0x5106('0x60')])return{'type':_0x5106('0x2d'),'content':_0x5b0dee(_0x37d109,_0x5106('0x39'),_0x5b0dee(_0x37d109,_0x5106('0x3a'),'\x22'+_0x194c42[_0x5106('0x45')]('\x20')+'\x22'))};}}}),_0x19b64c[_0x5106('0x79')][_0x5106('0x4')](_0x4008c6=>{if(_0x5106('0x1a')==_0x4008c6[_0x5106('0x6e')]){const _0x322666=_0x4008c6[_0x5106('0x6d')]()['filter'](_0x3fd0a1=>_0x3fd0a1['is']('$textProxy'))['map'](_0x2026a7=>_0x2026a7[_0x5106('0x34')]),_0x3698eb=this[_0x5106('0x7d')](_0x4008c6),_0xf40889=_0x3698eb[_0x5106('0x2a')]-_0x3698eb[_0x5106('0x1b')]+0x1;if('insertion'==_0x4008c6[_0x5106('0x1d')])return _0x322666[_0x5106('0x60')]?{'type':'insertion','content':_0x5b0dee(_0x37d109,_0x5106('0x0'),_0x5b0dee(_0x37d109,_0x5106('0x80'),[_0xf40889,'\x22'+_0x322666['join']('\x20')+'\x22']))}:{'type':_0x5106('0x6'),'content':_0x5b0dee(_0x37d109,_0x5106('0x0'),_0x5b0dee(_0x37d109,'ELEMENT_TABLE_ROW',_0xf40889))};if(_0x5106('0x2d')==_0x4008c6[_0x5106('0x1d')])return _0x322666[_0x5106('0x60')]?{'type':_0x5106('0x2d'),'content':_0x5b0dee(_0x37d109,'*Remove:*\x20%0',_0x5b0dee(_0x37d109,_0x5106('0x80'),[_0xf40889,'\x22'+_0x322666[_0x5106('0x45')]('\x20')+'\x22']))}:{'type':_0x5106('0x2d'),'content':_0x5b0dee(_0x37d109,_0x5106('0x39'),_0x5b0dee(_0x37d109,_0x5106('0x57'),_0xf40889))};}if(_0x5106('0x5a')==_0x4008c6[_0x5106('0x6e')]){const _0x427ec5=_0x4008c6['getItems']()[_0x5106('0x49')](_0x422d5b=>_0x422d5b['is'](_0x5106('0x52')))['map'](_0x73da4b=>_0x73da4b['data']),_0x23b184=this[_0x5106('0x7d')](_0x4008c6),_0x9e68f1=_0x23b184[_0x5106('0x59')]-_0x23b184[_0x5106('0x5f')]+0x1;if(_0x5106('0x6')==_0x4008c6[_0x5106('0x1d')])return _0x427ec5[_0x5106('0x60')]?{'type':_0x5106('0x6'),'content':_0x5b0dee(_0x37d109,_0x5106('0x0'),_0x5b0dee(_0x37d109,_0x5106('0x64'),[_0x9e68f1,'\x22'+_0x427ec5[_0x5106('0x45')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x5b0dee(_0x37d109,_0x5106('0x0'),_0x5b0dee(_0x37d109,_0x5106('0xf'),_0x9e68f1))};if('deletion'==_0x4008c6[_0x5106('0x1d')])return _0x427ec5[_0x5106('0x60')]?{'type':_0x5106('0x2d'),'content':_0x5b0dee(_0x37d109,_0x5106('0x39'),_0x5b0dee(_0x37d109,_0x5106('0x64'),[_0x9e68f1,'\x22'+_0x427ec5[_0x5106('0x45')]('\x20')+'\x22']))}:{'type':_0x5106('0x2d'),'content':_0x5b0dee(_0x37d109,_0x5106('0x39'),_0x5b0dee(_0x37d109,_0x5106('0xf'),_0x9e68f1))};}}),_0x19b64c[_0x5106('0x48')]['registerCustomCallback'](_0x5106('0x6'),'tableRow',_0x5106('0x26'),_0x1166bf),_0x19b64c[_0x5106('0x48')][_0x5106('0x3c')]('deletion','tableRow',_0x5106('0x37'),_0x1166bf),_0x19b64c[_0x5106('0x48')]['registerCustomCallback'](_0x5106('0x6'),_0x5106('0x5a'),_0x5106('0x26'),_0x326a92),_0x19b64c[_0x5106('0x48')][_0x5106('0x3c')](_0x5106('0x2d'),_0x5106('0x5a'),_0x5106('0x37'),_0x326a92),_0x19b64c['_suggestionFactory'][_0x5106('0x3c')](_0x5106('0x6'),_0x5106('0x5a'),_0x5106('0x45'),_0x3915fd),_0x19b64c[_0x5106('0x48')]['registerCustomCallback']('deletion',_0x5106('0x5a'),_0x5106('0x45'),_0x3915fd),_0x19b64c[_0x5106('0x48')][_0x5106('0x3c')](_0x5106('0x6'),'tableRow','join',_0x23def0),_0x19b64c['_suggestionFactory'][_0x5106('0x3c')]('deletion','tableRow',_0x5106('0x45'),_0x23def0);}[_0x5106('0x17')](){const _0x3741b1=this[_0x5106('0x65')],_0x395a15=_0x3741b1[_0x5106('0x4a')][_0x5106('0x86')]['selection'];return(_0x13efb5,_0x5c99e8)=>{_0x3741b1[_0x5106('0x4a')][_0x5106('0x54')](_0x280be6=>{const {commandName:_0xf9b9b1,commandParams:_0x2d7ce8}=_0x5c99e8;let _0x115f27=_0x13efb5[0x0][_0x5106('0x44')][_0x5106('0x4d')];_0x2d7ce8&&_0x2d7ce8[0x0]&&!0x1===_0x2d7ce8[0x0][_0x5106('0x75')]&&(_0x115f27=_0x13efb5[0x0][_0x5106('0x21')][_0x5106('0x30')]);const _0x592eed=_0x280be6[_0x5106('0x7c')](_0x115f27);if(_0x5106('0x11')==_0x592eed[_0x5106('0x43')]['rootName'])return;const _0x3e58a5=Array['from'](_0x395a15[_0x5106('0x6c')]())['map'](_0x5f395c=>_0x527122['fromRange'](_0x5f395c));_0x280be6['setSelection'](_0x592eed),_0x3741b1[_0x5106('0x22')]['get'](_0xf9b9b1)[_0x5106('0x5')](),_0x2d7ce8['push']({'forceDefaultExecution':!0x0}),_0x3741b1[_0x5106('0x78')](_0xf9b9b1,..._0x2d7ce8);const _0x2fa782=_0x3e58a5[_0x5106('0x49')](_0x50204d=>_0x5106('0x11')!=_0x50204d['root']['rootName']);_0x2fa782[_0x5106('0x60')]>0x0&&_0x280be6[_0x5106('0x36')](_0x2fa782);for(const _0x5d0fd0 of _0x3e58a5)_0x5d0fd0[_0x5106('0x81')]();});};}['_getCoordsForCells'](_0xa0f1e3){const _0x246c6d=this[_0x5106('0x65')][_0x5106('0x2f')]['get'](_0x5106('0x3'));let _0x1f7f05=Number[_0x5106('0xe')],_0x197714=Number[_0x5106('0x51')],_0x3447d2=Number[_0x5106('0xe')],_0x46fe35=Number[_0x5106('0x51')];for(const _0x94f108 of _0xa0f1e3){if(_0x5106('0x11')==_0x94f108['root']['rootName'])continue;const {row:_0x27a2a3,column:_0xaa4f64}=_0x246c6d[_0x5106('0x4b')](_0x94f108),_0x416ec2=_0x94f108[_0x5106('0x4e')](_0x5106('0x85'))?_0x94f108[_0x5106('0x7f')](_0x5106('0x85'))-0x1:0x0,_0x5bd598=_0x94f108[_0x5106('0x4e')](_0x5106('0x66'))?_0x94f108[_0x5106('0x7f')](_0x5106('0x66'))-0x1:0x0;_0x1f7f05=_0x27a2a3<_0x1f7f05?_0x27a2a3:_0x1f7f05,_0x197714=_0x27a2a3+_0x416ec2>_0x197714?_0x27a2a3+_0x416ec2:_0x197714,_0x3447d2=_0xaa4f64<_0x3447d2?_0xaa4f64:_0x3447d2,_0x46fe35=_0xaa4f64+_0x5bd598>_0x46fe35?_0xaa4f64+_0x5bd598:_0x46fe35;}return{'minRow':_0x1f7f05,'maxRow':_0x197714,'minColumn':_0x3447d2,'maxColumn':_0x46fe35};}[_0x5106('0x56')](){const _0x4ce1f2=this[_0x5106('0x65')],_0x51dc84=_0x4ce1f2[_0x5106('0x2f')][_0x5106('0x67')](_0x5106('0x9')),_0x422cc1=_0x4ce1f2[_0x5106('0x2f')][_0x5106('0x67')]('TableUtils');_0x4ce1f2[_0x5106('0x4a')][_0x5106('0x86')]['on'](_0x5106('0x2c'),()=>{const _0xf809fc=Array[_0x5106('0x20')](_0x4ce1f2[_0x5106('0x4a')][_0x5106('0x86')][_0x5106('0x3b')]['getChangedMarkers']());for(const {name:_0x5b88f2,data:_0x76151f}of _0xf809fc){const {group:_0x5b73e7,id:_0xd7e287,subType:_0x1952c9}=_0x51dc84[_0x5106('0x16')](_0x5b88f2);if(_0x5106('0x38')!=_0x5b73e7)continue;if(null!=_0x76151f['oldRange'])continue;const _0x1e0717=_0x51dc84[_0x5106('0xa')](_0xd7e287);this[_0x5106('0x5b')][_0x5106('0x3f')](_0x1952c9)&&this[_0x5106('0x40')][_0x5106('0x74')](_0x1e0717);}},{'priority':_0x5106('0x3e')});const _0x1a62d7=(_0x36f54f,_0x945bd1)=>{let _0x8f2f5f=!0x1;const _0x43394a=_0x945bd1[_0x5106('0x5c')](_0x36f54f),_0x2724bb=_0x36f54f['findAncestor'](_0x5106('0x6b')),_0x2157a4=_0x422cc1[_0x5106('0x4b')](_0x36f54f);for(const _0xbe2864 of this['_tableSuggestions']){const _0x534891=_0xbe2864[_0x5106('0x6e')],_0x453de7=_0x534891['startsWith'](_0x5106('0x47')),_0x5b0a6a=_0x534891[_0x5106('0x13')](_0x453de7?0xa:0x5),_0x3fcd1b=_0x5b0a6a[_0x5106('0x4f')](),_0x1cca61=_0x3fcd1b[_0x5106('0x13')](0x0,0x3)+'span',_0x582a7d='min'+_0x5b0a6a,_0x29b333='max'+_0x5b0a6a;if(!_0xbe2864[_0x5106('0x7')])continue;if(_0x2724bb!=_0xbe2864['getFirstRange']()[_0x5106('0x21')][_0x5106('0x62')]('table'))continue;if(_0xbe2864['isIntersectingWithRange'](_0x43394a))continue;const _0x4528de=_0x36f54f[_0x5106('0x4e')](_0x1cca61)?_0x36f54f[_0x5106('0x7f')](_0x1cca61)-0x1:0x0,_0x565b98=this[_0x5106('0x7d')](_0xbe2864),_0x2f7691=_0x565b98[_0x582a7d],_0x2a2575=_0x565b98[_0x29b333];_0x2f7691<=_0x2157a4[_0x3fcd1b]&&_0x2157a4[_0x3fcd1b]+_0x4528de<=_0x2a2575&&(_0xbe2864[_0x5106('0x71')](_0x43394a),_0x8f2f5f=!0x0);}return _0x8f2f5f;};_0x4ce1f2[_0x5106('0x4a')][_0x5106('0x86')]['registerPostFixer'](_0x10b88d=>{let _0x2b6ca5=!0x1;for(const _0x4227fe of _0x4ce1f2[_0x5106('0x4a')][_0x5106('0x86')]['differ'][_0x5106('0x15')]())if(_0x5106('0x24')==_0x4227fe[_0x5106('0x1d')]){if(_0x5106('0x1a')==_0x4227fe[_0x5106('0x31')])for(const _0x9b6d73 of _0x4227fe[_0x5106('0x2')][_0x5106('0x30')][_0x5106('0x7a')]())_0x2b6ca5=_0x2b6ca5||_0x1a62d7(_0x9b6d73,_0x10b88d);else _0x5106('0x69')==_0x4227fe[_0x5106('0x31')]&&(_0x2b6ca5=_0x2b6ca5||_0x1a62d7(_0x4227fe[_0x5106('0x2')][_0x5106('0x30')],_0x10b88d));}return _0x2b6ca5;});}['_getSuggestionCoords'](_0xc160d5){return this[_0x5106('0x7e')](_0xc160d5[_0x5106('0x6c')]()[_0x5106('0x32')](_0x32cc53=>_0x32cc53[_0x5106('0x21')][_0x5106('0x30')]));}}function se(_0x1a8ed5){return Array[_0x5106('0x20')](new Set(_0x1a8ed5)['values']());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2821=['enableCommand','TableCaptionEditing','plugins','TrackChangesEditing','afterInit'];(function(_0x48aef0,_0x282117){const _0xc3c89=function(_0x425132){while(--_0x425132){_0x48aef0['push'](_0x48aef0['shift']());}};_0xc3c89(++_0x282117);}(_0x2821,0x195));const _0xc3c8=function(_0x48aef0,_0x282117){_0x48aef0=_0x48aef0-0x0;let _0xc3c89=_0x2821[_0x48aef0];return _0xc3c89;};import{Plugin as _0x2414e2}from'ckeditor5/src/core';import _0x526b54 from'./table';export default class vt extends _0x2414e2{static get['requires'](){return[_0x526b54];}[_0xc3c8('0x4')](){const _0x31f962=this['editor'];if(!_0x31f962[_0xc3c8('0x2')]['has'](_0xc3c8('0x1')))return;_0x31f962[_0xc3c8('0x2')]['get'](_0xc3c8('0x3'))[_0xc3c8('0x0')]('toggleTableCaption');}}
|