@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230808.0 → 0.0.0-nightly-20230809.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 _0x1dce=['element','commandParams','*Format:*\x20set\x20order\x20to\x20reversed','forward','length','afterInit','getFirstPosition','getListTypeFromListStyleType','_getSuggestionBlocksForListStyle','selection','map','getSelectedBlocks','format','handleListStartCommand','_getSuggestionBlocks','handleDescriptions','from','backward','enableCommand','getLastPosition','_LIST_','list.properties','reversed','editor','model','unshift','createRange','TrackChangesEditing','flat','handleListStyleCommand','listStart','toUpperCase','listType','styles','bind','startIndex','handleListReversedCommand','_descriptionFactory','change','listStyle','*Format:*\x20set\x20order\x20to\x20regular','getAttribute','getSiblingNodes','listItem','*Change\x20to:*\x20%0','document','push','locale','ListUtils','registerDescriptionCallback','before','get','markMultiRangeBlockFormat','listReversed','_getTranslationKeyForListStyle','plugins','filter','createPositionAt'];(function(_0x173fe7,_0x1dcec4){const _0x1456a5=function(_0x264b90){while(--_0x264b90){_0x173fe7['push'](_0x173fe7['shift']());}};_0x1456a5(++_0x1dcec4);}(_0x1dce,0xc5));const _0x1456=function(_0x173fe7,_0x1dcec4){_0x173fe7=_0x173fe7-0x0;let _0x1456a5=_0x1dce[_0x173fe7];return _0x1456a5;};import{Plugin as _0x2fd069}from'ckeditor5/src/core';import{getTranslation as _0x450dd8}from'../utils/common-translations';export default class nt extends _0x2fd069{[_0x1456('0x28')](){if(!this[_0x1456('0x0')][_0x1456('0x20')]['has']('ListPropertiesEditing'))return;const _0xc64665=this['editor']['config'][_0x1456('0x1c')](_0x1456('0x38')),_0x426555=this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x4'));_0xc64665[_0x1456('0xa')]&&_0x426555[_0x1456('0x35')](_0x1456('0x10'),this[_0x1456('0x6')][_0x1456('0xb')](this)),_0xc64665[_0x1456('0x39')]&&_0x426555['enableCommand']('listReversed',this[_0x1456('0xd')][_0x1456('0xb')](this)),_0xc64665[_0x1456('0xc')]&&_0x426555[_0x1456('0x35')]('listStart',this[_0x1456('0x30')][_0x1456('0xb')](this)),_0x426555[_0x1456('0xe')][_0x1456('0x1a')](this[_0x1456('0x32')]['bind'](this));}[_0x1456('0x6')](_0x11eecb,_0x52c0b8={}){const _0xdbbbc5=this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x4')),_0x331267=this[_0x1456('0x2b')]();this[_0x1456('0x0')][_0x1456('0x1')]['change'](()=>{_0xdbbbc5['markMultiRangeBlockFormat'](_0x331267,{'commandName':_0x1456('0x10'),'commandParams':[{'type':_0x52c0b8['type']}],'formatGroupId':_0x1456('0x10')});});}['handleListReversedCommand'](_0xc5983e,_0x3946c1={}){const _0x34cac3=this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x4')),_0x59995c=this['_getSuggestionBlocks'](_0x578234=>_0x578234['is'](_0x1456('0x23'),_0x1456('0x14'))&&'numbered'===_0x578234[_0x1456('0x12')](_0x1456('0x9')));if(_0x59995c[_0x1456('0x27')]<0x1)return;const _0x16b845=_0x59995c['map'](_0x390fe7=>this[_0x1456('0x0')][_0x1456('0x1')][_0x1456('0x3')](this[_0x1456('0x0')][_0x1456('0x1')]['createPositionAt'](_0x390fe7,_0x1456('0x1b')),this['editor'][_0x1456('0x1')][_0x1456('0x22')](_0x390fe7,0x0)));this[_0x1456('0x0')]['model'][_0x1456('0xf')](()=>{_0x34cac3['markMultiRangeBlockFormat'](_0x16b845,{'commandName':_0x1456('0x1e'),'commandParams':[{'reversed':_0x3946c1[_0x1456('0x39')]}],'formatGroupId':_0x1456('0x1e')});});}[_0x1456('0x30')](_0x21ca9f,_0x311581={}){const _0x230582=this[_0x1456('0x0')]['plugins'][_0x1456('0x1c')]('TrackChangesEditing'),_0x390eab=this[_0x1456('0x31')](_0x45cb4f=>_0x45cb4f['is'](_0x1456('0x23'),_0x1456('0x14'))&&'numbered'===_0x45cb4f[_0x1456('0x12')]('listType'));if(_0x390eab['length']<0x1)return;const _0xfda6b7=_0x390eab[_0x1456('0x2d')](_0x23a3a2=>this[_0x1456('0x0')]['model'][_0x1456('0x3')](this[_0x1456('0x0')]['model'][_0x1456('0x22')](_0x23a3a2,_0x1456('0x1b')),this[_0x1456('0x0')]['model'][_0x1456('0x22')](_0x23a3a2,0x0)));this[_0x1456('0x0')]['model'][_0x1456('0xf')](()=>{_0x230582[_0x1456('0x1d')](_0xfda6b7,{'commandName':_0x1456('0x7'),'commandParams':[{'startIndex':_0x311581[_0x1456('0xc')]}],'formatGroupId':_0x1456('0x7')});});}['handleDescriptions'](_0x262307){const _0x53ed45=this[_0x1456('0x0')][_0x1456('0x18')],{data:_0xdb769c}=_0x262307;if(!_0xdb769c)return;let _0x143c06,_0x352022;switch(_0xdb769c['commandName']){case _0x1456('0x10'):_0x143c06=_0x1456('0x15'),_0x352022={'type':_0x1456('0x2f'),'content':_0x450dd8(_0x53ed45,_0x143c06,_0x450dd8(_0x53ed45,this[_0x1456('0x1f')](_0xdb769c[_0x1456('0x24')][0x0]['type'])))};break;case'listReversed':_0x143c06=_0xdb769c[_0x1456('0x24')][0x0][_0x1456('0x39')]?_0x1456('0x25'):_0x1456('0x11'),_0x352022={'type':'format','content':_0x450dd8(_0x53ed45,_0x143c06)};break;case _0x1456('0x7'):_0x143c06='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x352022={'type':_0x1456('0x2f'),'content':_0x450dd8(_0x53ed45,_0x143c06,_0xdb769c[_0x1456('0x24')][0x0][_0x1456('0xc')])};}return _0x352022;}[_0x1456('0x2b')](){var _0xcf4fa5,_0x1dc632,_0x1e5788,_0x42c0b9;const _0x4ac8ff=this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x19'));let _0x11f71d=Array[_0x1456('0x33')](this[_0x1456('0x0')][_0x1456('0x1')][_0x1456('0x16')][_0x1456('0x2c')]['getSelectedBlocks']());return(null===(_0xcf4fa5=_0x11f71d[0x0])||void 0x0===_0xcf4fa5?void 0x0:_0xcf4fa5['is']('element',_0x1456('0x14')))&&_0x11f71d[_0x1456('0x2')](..._0x4ac8ff[_0x1456('0x13')](this[_0x1456('0x0')][_0x1456('0x1')][_0x1456('0x16')][_0x1456('0x2c')][_0x1456('0x29')](),'backward')),(null===(_0x1dc632=_0x11f71d[_0x11f71d[_0x1456('0x27')]-0x1])||void 0x0===_0x1dc632?void 0x0:_0x1dc632['is'](_0x1456('0x23'),_0x1456('0x14')))&&_0x11f71d[_0x1456('0x17')](..._0x4ac8ff[_0x1456('0x13')](this['editor'][_0x1456('0x1')][_0x1456('0x16')][_0x1456('0x2c')][_0x1456('0x36')](),_0x1456('0x26'))),_0x11f71d=[...new Set(_0x11f71d)],(null===(_0x42c0b9=null===(_0x1e5788=this['editor'][_0x1456('0x1')][_0x1456('0x16')]['selection'][_0x1456('0x29')]())||void 0x0===_0x1e5788?void 0x0:_0x1e5788['parent'])||void 0x0===_0x42c0b9?void 0x0:_0x42c0b9['is'](_0x1456('0x23'),'listItem'))&&(_0x11f71d=_0x11f71d[_0x1456('0x21')](_0x124c65=>_0x124c65['is'](_0x1456('0x23'),_0x1456('0x14')))),_0x11f71d;}[_0x1456('0x31')](_0x19e70f){const _0x18270a=this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x19'));let _0x1fc7a7=Array[_0x1456('0x33')](this[_0x1456('0x0')]['model'][_0x1456('0x16')][_0x1456('0x2c')][_0x1456('0x2e')]())['filter'](_0x19e70f)[_0x1456('0x2d')](_0x438d32=>{const _0x5671dd=this['editor']['model'][_0x1456('0x22')](_0x438d32,0x0);return[..._0x18270a['getSiblingNodes'](_0x5671dd,_0x1456('0x34')),..._0x18270a[_0x1456('0x13')](_0x5671dd,_0x1456('0x26'))];})[_0x1456('0x5')]();return _0x1fc7a7=[...new Set(_0x1fc7a7)],_0x1fc7a7;}[_0x1456('0x1f')](_0x1ec0b7){return'ELEMENT_'+this[_0x1456('0x0')][_0x1456('0x20')][_0x1456('0x1c')](_0x1456('0x19'))[_0x1456('0x2a')](_0x1ec0b7)[_0x1456('0x8')]()+_0x1456('0x37')+_0x1ec0b7['toUpperCase']()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x326e=['data','MediaEmbedEditing','ELEMENT_MEDIA','options','conversion','mediaEmbed','elementToElement','editor','_descriptionFactory','downcastDispatcher','stop','showSuggestionHighlights','media','afterInit','for','locale','div','dataDowncast','plugins'];(function(_0x2decbe,_0x326ef1){const _0x46ecb5=function(_0x204afb){while(--_0x204afb){_0x2decbe['push'](_0x2decbe['shift']());}};_0x46ecb5(++_0x326ef1);}(_0x326e,0x125));const _0x46ec=function(_0x2decbe,_0x326ef1){_0x2decbe=_0x2decbe-0x0;let _0x46ecb5=_0x326e[_0x2decbe];return _0x46ecb5;};import{Plugin as _0x4ec766}from'ckeditor5/src/core';import{getTranslation as _0x461da4}from'../utils/common-translations';export default class ot extends _0x4ec766{[_0x46ec('0x5')](){const _0x284bc9=this[_0x46ec('0x12')];if(!_0x284bc9[_0x46ec('0xa')]['has'](_0x46ec('0xc')))return;const _0x3ebfc9=_0x284bc9[_0x46ec('0xa')]['get']('TrackChangesEditing'),_0x204b9e=_0x284bc9[_0x46ec('0x7')];_0x3ebfc9['enableCommand'](_0x46ec('0x10')),_0x3ebfc9[_0x46ec('0x0')]['registerElementLabel'](_0x46ec('0x4'),_0x40c885=>_0x461da4(_0x204b9e,_0x46ec('0xd'),_0x40c885)),_0x284bc9[_0x46ec('0xf')][_0x46ec('0x6')](_0x46ec('0x9'))[_0x46ec('0x11')]({'model':_0x46ec('0x4'),'view':(_0x22d3cf,{writer:_0xbe982e,options:_0x2a402b})=>{if(_0x2a402b[_0x46ec('0x3')])return _0xbe982e['createEmptyElement'](_0x46ec('0x8'));},'converterPriority':'high'}),_0x284bc9[_0x46ec('0xb')][_0x46ec('0x1')]['on']('attribute:url:media',(_0x1b64d8,_0xa3114b,_0x1530d7)=>{_0x1530d7[_0x46ec('0xe')][_0x46ec('0x3')]&&_0x1b64d8[_0x46ec('0x2')]();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f1e=['has','MentionEditing','plugins','TrackChangesEditing','editor','enableCommand','afterInit'];(function(_0x9fdcb0,_0x1f1ec6){const _0x33dd0f=function(_0x26e4a8){while(--_0x26e4a8){_0x9fdcb0['push'](_0x9fdcb0['shift']());}};_0x33dd0f(++_0x1f1ec6);}(_0x1f1e,0x8d));const _0x33dd=function(_0x9fdcb0,_0x1f1ec6){_0x9fdcb0=_0x9fdcb0-0x0;let _0x33dd0f=_0x1f1e[_0x9fdcb0];return _0x33dd0f;};import{Plugin as _0x197839}from'ckeditor5/src/core';export default class rt extends _0x197839{[_0x33dd('0x5')](){const _0x461cab=this[_0x33dd('0x3')];_0x461cab[_0x33dd('0x1')][_0x33dd('0x6')](_0x33dd('0x0'))&&_0x461cab['plugins']['get'](_0x33dd('0x2'))[_0x33dd('0x4')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f69=['PageBreakEditing','pageBreak','has','editor','registerElementLabel','TrackChangesEditing','ELEMENT_PAGE_BREAK','_descriptionFactory','get','plugins','locale'];(function(_0x407baf,_0x1f696a){const _0x1a90b9=function(_0x586fa2){while(--_0x586fa2){_0x407baf['push'](_0x407baf['shift']());}};_0x1a90b9(++_0x1f696a);}(_0x1f69,0x173));const _0x1a90=function(_0x407baf,_0x1f696a){_0x407baf=_0x407baf-0x0;let _0x1a90b9=_0x1f69[_0x407baf];return _0x1a90b9;};import{Plugin as _0x33f4bb}from'ckeditor5/src/core';import{getTranslation as _0x59350c}from'../utils/common-translations';export default class at extends _0x33f4bb{['afterInit'](){const _0x2daafd=this[_0x1a90('0x6')];if(!_0x2daafd[_0x1a90('0x1')][_0x1a90('0x5')](_0x1a90('0x3')))return;_0x2daafd[_0x1a90('0x1')][_0x1a90('0x0')](_0x1a90('0x8'))['enableCommand'](_0x1a90('0x4'));const _0x56eafa=_0x2daafd['plugins'][_0x1a90('0x0')](_0x1a90('0x8')),_0xdc994b=_0x2daafd[_0x1a90('0x2')];_0x56eafa[_0x1a90('0xa')][_0x1a90('0x7')](_0x1a90('0x4'),_0x46e556=>_0x59350c(_0xdc994b,_0x1a90('0x9'),_0x46e556));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2009=['plugins','registerElementLabel','selection','enableCommand','schema','addMarker:suggestion:insertion','parent','isBlock','isObject','addClass','includes','markerRange','checkChild','showSuggestionHighlights','name','filter','createUIElement','nodeAfter','downcastDispatcher','*Insert:*\x20%0','blockName','span','markBlockFormat','locale','highest','ck-suggestion-marker--active','insertion','insert','mapper','TrackChangesEditing','ELEMENT_PARAGRAPH','Paragraph','has','isTouching','ck-suggestion-marker-split','getItemLabel','options','activeMarkers','isLimit','insertParagraph','editing','editor','consumable','model','_descriptionFactory','paragraph','change','registerDescriptionCallback','*Change\x20to:*\x20%0','get','getSelectedBlocks','afterInit','end','consume','$text','format','markerName','writer','bindElementToMarker','document'];(function(_0x1e271c,_0x200976){const _0x17954d=function(_0x389dc8){while(--_0x389dc8){_0x1e271c['push'](_0x1e271c['shift']());}};_0x17954d(++_0x200976);}(_0x2009,0xe2));const _0x1795=function(_0x1e271c,_0x200976){_0x1e271c=_0x1e271c-0x0;let _0x17954d=_0x2009[_0x1e271c];return _0x17954d;};import{Plugin as _0x59f063}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x3f38f0}from'./utils';import{getTranslation as _0x4f0cc7}from'../utils/common-translations';export default class ct extends _0x59f063{[_0x1795('0x5')](){const _0x38465d=this[_0x1795('0x37')];if(!_0x38465d[_0x1795('0xe')][_0x1795('0x2e')](_0x1795('0x2d')))return;const _0x33be52=_0x38465d[_0x1795('0x25')],_0xb538d1=_0x38465d[_0x1795('0xe')][_0x1795('0x3')](_0x1795('0x2b'));_0xb538d1['_descriptionFactory'][_0x1795('0xf')](_0x1795('0x3b'),_0x37219e=>_0x4f0cc7(_0x33be52,_0x1795('0x2c'),_0x37219e)),_0xb538d1[_0x1795('0x11')]('paragraph',(_0x5a225a,_0xc6f859={})=>{const _0x212654=_0x38465d[_0x1795('0x39')][_0x1795('0xd')],_0x23144e=_0xc6f859[_0x1795('0x10')]||_0x212654['selection'],_0x40bd4b=Array['from'](_0x23144e[_0x1795('0x4')]())[_0x1795('0x1d')](_0x44a5c5=>function(_0x4f8609,_0x4aaf17){return _0x4aaf17[_0x1795('0x1a')](_0x4f8609[_0x1795('0x14')],'paragraph')&&!_0x4aaf17[_0x1795('0x16')](_0x4f8609)&&_0x1795('0x3b')!=_0x4f8609[_0x1795('0x1c')];}(_0x44a5c5,this[_0x1795('0x37')]['model']['schema']));_0x38465d['model'][_0x1795('0x0')](()=>{for(const _0x33a4d1 of _0x40bd4b)_0xb538d1[_0x1795('0x24')](_0x33a4d1,{'commandName':_0x1795('0x3b'),'commandParams':[],'formatGroupId':_0x1795('0x22')},_0x3f38f0(_0x33a4d1));});}),_0xb538d1['_descriptionFactory'][_0x1795('0x1')](_0x4700e0=>{const {data:_0x94c093}=_0x4700e0;if(_0x94c093&&'paragraph'==_0x94c093['commandName'])return{'type':_0x1795('0x9'),'content':_0x4f0cc7(_0x33be52,_0x1795('0x2'),_0x4f0cc7(_0x33be52,_0x1795('0x2c')))};}),_0xb538d1[_0x1795('0x11')](_0x1795('0x35')),_0x38465d[_0x1795('0x36')][_0x1795('0x20')]['on'](_0x1795('0x13'),ar(_0x38465d),{'priority':_0x1795('0x26')}),_0x38465d['data'][_0x1795('0x20')]['on'](_0x1795('0x13'),(_0x19ea18,_0x43c43a,_0x4fecf4)=>{_0x4fecf4[_0x1795('0x32')][_0x1795('0x1b')]&&ar(_0x38465d,{'showActiveMarker':!0x1})(_0x19ea18,_0x43c43a,_0x4fecf4);},{'priority':_0x1795('0x26')});const _0x221bf3=_0xb538d1[_0x1795('0x3a')];_0x221bf3[_0x1795('0x1')](_0x54e127=>{if(_0x1795('0x28')!==_0x54e127['type'])return;const {start:_0x20b672,end:_0x211ff9}=_0x54e127['getFirstRange']();if(!_0x20b672[_0x1795('0x2f')](_0x211ff9)||!_0x20b672[_0x1795('0x1f')])return;const _0x4f555b=_0x38465d['model'][_0x1795('0x12')],_0x5a7586=_0x20b672['nodeAfter'];return _0x4f555b[_0x1795('0x15')](_0x5a7586)&&!_0x4f555b[_0x1795('0x34')](_0x5a7586)&&_0x4f555b[_0x1795('0x1a')](_0x5a7586,_0x1795('0x8'))?{'type':'insertion','content':_0x4f0cc7(_0x33be52,_0x1795('0x21'),_0x221bf3[_0x1795('0x31')](_0x5a7586,0x1))}:void 0x0;});}}function ar(_0x4dcf81,{showActiveMarker:_0x117618=!0x0}={}){return(_0x5e27ce,_0x227ea3,_0x4d09cc)=>{const _0x40a020=_0x4dcf81[_0x1795('0xe')][_0x1795('0x3')](_0x1795('0x2b')),_0x3e5119=_0x227ea3[_0x1795('0x19')]['start'],_0x282cb9=_0x227ea3['markerRange'][_0x1795('0x6')],_0x103feb=_0x4dcf81[_0x1795('0x39')][_0x1795('0x12')];if(!_0x3e5119[_0x1795('0x2f')](_0x282cb9)||!_0x3e5119['nodeAfter'])return;const _0xb01e83=_0x3e5119[_0x1795('0x1f')];if(_0x103feb[_0x1795('0x15')](_0xb01e83)&&!_0x103feb[_0x1795('0x34')](_0xb01e83)&&_0x103feb['checkChild'](_0xb01e83,_0x1795('0x8'))){if(!_0x4d09cc[_0x1795('0x38')][_0x1795('0x7')](_0x227ea3[_0x1795('0x19')],_0x5e27ce['name']))return;const _0x2d5488=_0x4d09cc['writer'][_0x1795('0x1e')](_0x1795('0x23'),{'class':_0x1795('0x30')}),_0x5081fe=_0x4d09cc[_0x1795('0x2a')]['toViewPosition'](_0x282cb9);_0x117618&&_0x40a020[_0x1795('0x33')][_0x1795('0x18')](_0x227ea3['markerName'])&&_0x4d09cc['writer'][_0x1795('0x17')](_0x1795('0x27'),_0x2d5488),_0x4d09cc[_0x1795('0xb')][_0x1795('0x29')](_0x5081fe,_0x2d5488),_0x4d09cc['mapper'][_0x1795('0xc')](_0x2d5488,_0x227ea3[_0x1795('0xa')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x411a=['getRanges','has','change','createRangeOn','removeFormat','plugins','getAttributeProperties','isFormatting','registerDescriptionCallback','model','commandName','markInlineFormat','get','afterInit','RemoveFormatEditing','TrackChangesEditing','editor','*Remove\x20all\x20formatting*','document','_descriptionFactory','format','getAttributes','schema'];(function(_0x36626a,_0x411a98){const _0x3ab429=function(_0x5e1ee0){while(--_0x5e1ee0){_0x36626a['push'](_0x36626a['shift']());}};_0x3ab429(++_0x411a98);}(_0x411a,0x148));const _0x3ab4=function(_0x36626a,_0x411a98){_0x36626a=_0x36626a-0x0;let _0x3ab429=_0x411a[_0x36626a];return _0x3ab429;};import{Plugin as _0x262263}from'ckeditor5/src/core';import{getTranslation as _0x1f3c38}from'../utils/common-translations';export default class ht extends _0x262263{[_0x3ab4('0x7')](){const _0x2367e2=this[_0x3ab4('0xa')];if(!_0x2367e2[_0x3ab4('0x16')][_0x3ab4('0x12')](_0x3ab4('0x8')))return;const _0x433b47=_0x2367e2[_0x3ab4('0x16')][_0x3ab4('0x6')](_0x3ab4('0x9'));_0x433b47['enableCommand'](_0x3ab4('0x15'),_0x5624b5=>{const _0x3230a5=_0x2367e2[_0x3ab4('0x3')][_0x3ab4('0xc')]['selection'];_0x3230a5['isCollapsed']?_0x5624b5():_0x2367e2[_0x3ab4('0x3')][_0x3ab4('0x13')](()=>{const _0x3b9bf6=Array['from'](_0x3230a5[_0x3ab4('0x11')]());for(const _0x31e66d of _0x3b9bf6)for(const _0x3a9d06 of _0x31e66d['getItems']())eo(_0x3a9d06,_0x2367e2['model'][_0x3ab4('0x10')])&&_0x433b47[_0x3ab4('0x5')](_0x2367e2[_0x3ab4('0x3')][_0x3ab4('0x14')](_0x3a9d06),{'commandName':_0x3ab4('0x15'),'commandParams':[]});});}),_0x433b47[_0x3ab4('0xd')][_0x3ab4('0x2')](_0x40013d=>{const {data:_0x452be9}=_0x40013d;if(_0x452be9&&'removeFormat'==_0x452be9[_0x3ab4('0x4')])return{'type':_0x3ab4('0xe'),'content':_0x1f3c38(_0x2367e2['locale'],_0x3ab4('0xb'))};});}}function eo(_0x24b867,_0x2b6830){for(const [_0x410613]of _0x24b867[_0x3ab4('0xf')]()){const _0x155312=_0x2b6830[_0x3ab4('0x0')](_0x410613);if(_0x155312&&_0x155312[_0x3ab4('0x1')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7c0b=['enableCommand','trackChanges','discardSelectedSuggestions','acceptSuggestion','acceptAllSuggestions','plugins','discardAllSuggestions','goToNextRestrictedEditingException','TrackChangesEditing','RestrictedEditingModeEditing','afterInit','has','discardSuggestion','acceptSelectedSuggestions','get','editor'];(function(_0x2a7002,_0x7c0b40){const _0x3fcf65=function(_0x569173){while(--_0x569173){_0x2a7002['push'](_0x2a7002['shift']());}};_0x3fcf65(++_0x7c0b40);}(_0x7c0b,0x116));const _0x3fcf=function(_0x2a7002,_0x7c0b40){_0x2a7002=_0x2a7002-0x0;let _0x3fcf65=_0x7c0b[_0x2a7002];return _0x3fcf65;};import{Plugin as _0x2d02cb}from'ckeditor5/src/core';export default class ut extends _0x2d02cb{[_0x3fcf('0x4')](){const _0x40e770=this[_0x3fcf('0x9')];if(!_0x40e770[_0x3fcf('0xf')][_0x3fcf('0x5')]('RestrictedEditingModeEditing'))return;const _0x7b262e=_0x40e770[_0x3fcf('0xf')][_0x3fcf('0x8')](_0x3fcf('0x2'));_0x7b262e[_0x3fcf('0xa')]('goToPreviousRestrictedEditingException'),_0x7b262e[_0x3fcf('0xa')](_0x3fcf('0x1'));const _0x5c2f81=_0x40e770[_0x3fcf('0xf')][_0x3fcf('0x8')](_0x3fcf('0x3'));_0x5c2f81[_0x3fcf('0xa')](_0x3fcf('0xb')),_0x5c2f81['enableCommand'](_0x3fcf('0xd')),_0x5c2f81[_0x3fcf('0xa')](_0x3fcf('0x6')),_0x5c2f81['enableCommand'](_0x3fcf('0xe')),_0x5c2f81[_0x3fcf('0xa')](_0x3fcf('0x0')),_0x5c2f81[_0x3fcf('0xa')](_0x3fcf('0x7')),_0x5c2f81[_0x3fcf('0xa')](_0x3fcf('0xc'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4596=['mapper','enableCommand','_descriptionFactory','getItems','ck-suggestion-marker-','options','init','downcastDispatcher','createUIElement','writer','model','span','element','shiftEnter','addMarker:suggestion:insertion','activeMarkers','split','includes','locale','TrackChangesEditing','consumable','addClass','registerElementLabel','get','markerName','name','softBreak','merge','requires','insert','showSuggestionHighlights','createPositionBefore','ck-suggestion-marker--active','editor','data','editing','markerRange','bindElementToMarker','plugins'];(function(_0x1868f6,_0x459695){const _0xfc4aed=function(_0x1866d8){while(--_0x1866d8){_0x1868f6['push'](_0x1868f6['shift']());}};_0xfc4aed(++_0x459695);}(_0x4596,0xca));const _0xfc4a=function(_0x1868f6,_0x459695){_0x1868f6=_0x1868f6-0x0;let _0xfc4aed=_0x4596[_0x1868f6];return _0xfc4aed;};import{Plugin as _0x1fb16b}from'ckeditor5/src/core';import{ShiftEnter as _0x12f698}from'ckeditor5/src/enter';import{getTranslation as _0x23a1dc}from'../utils/common-translations';export default class ft extends _0x1fb16b{static get[_0xfc4a('0x15')](){return[_0x12f698];}[_0xfc4a('0x26')](){const _0x4f47bf=this[_0xfc4a('0x1a')],_0x33a02e=_0x4f47bf[_0xfc4a('0x1f')][_0xfc4a('0x10')](_0xfc4a('0xc'));_0x33a02e[_0xfc4a('0x21')](_0xfc4a('0x6')),_0x4f47bf[_0xfc4a('0x1c')]['downcastDispatcher']['on'](_0xfc4a('0x7'),re(_0x4f47bf),{'priority':'high'}),_0x4f47bf[_0xfc4a('0x1c')][_0xfc4a('0x0')]['on']('addMarker:suggestion:deletion',re(_0x4f47bf),{'priority':'high'}),_0x4f47bf[_0xfc4a('0x1b')][_0xfc4a('0x0')]['on']('addMarker:suggestion',(_0xfbb53c,_0x2119a5,_0x55e7cb)=>{_0x55e7cb[_0xfc4a('0x25')][_0xfc4a('0x17')]&&re(_0x4f47bf,{'showActiveMarker':!0x1})(_0xfbb53c,_0x2119a5,_0x55e7cb);}),_0x33a02e[_0xfc4a('0x22')][_0xfc4a('0xf')](_0xfc4a('0x13'),_0x35263a=>_0x23a1dc(_0x4f47bf[_0xfc4a('0xb')],'ELEMENT_LINE_BREAK',_0x35263a));}}function re(_0x55056d,{showActiveMarker:_0x2623d4=!0x0}={}){return(_0xa9cb59,_0x18a32c,_0x5edee8)=>{const _0x44100c=_0x55056d[_0xfc4a('0x1f')]['get'](_0xfc4a('0xc'));if(!_0x5edee8[_0xfc4a('0xd')]['test'](_0x18a32c[_0xfc4a('0x1d')],_0xa9cb59[_0xfc4a('0x12')]))return;const _0x410685=_0x55056d[_0xfc4a('0x3')];for(const _0x2cf1e4 of _0x18a32c[_0xfc4a('0x1d')][_0xfc4a('0x23')]()){if(!_0x2cf1e4['is'](_0xfc4a('0x5'),_0xfc4a('0x13')))continue;const _0x381829='deletion'==_0x18a32c['markerName'][_0xfc4a('0x9')](':')[0x1]?_0xfc4a('0x14'):_0xfc4a('0x9'),_0x495ed8=_0x5edee8[_0xfc4a('0x2')][_0xfc4a('0x1')](_0xfc4a('0x4'),{'class':_0xfc4a('0x24')+_0x381829}),_0x4b37c2=_0x5edee8[_0xfc4a('0x20')]['toViewPosition'](_0x410685[_0xfc4a('0x18')](_0x2cf1e4));_0x2623d4&&_0x44100c[_0xfc4a('0x8')][_0xfc4a('0xa')](_0x18a32c[_0xfc4a('0x11')])&&_0x5edee8[_0xfc4a('0x2')][_0xfc4a('0xe')](_0xfc4a('0x19'),_0x495ed8),_0x5edee8[_0xfc4a('0x2')][_0xfc4a('0x16')](_0x4b37c2,_0x495ed8),_0x5edee8[_0xfc4a('0x20')][_0xfc4a('0x1e')](_0x495ed8,_0x18a32c[_0xfc4a('0x11')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x380b=['value','commandParams','forceValue','model','afterInit','markInlineFormat','has','enableCommand','registerDescriptionCallback','plugins','format','change','StandardEditingModeEditing','commandName','restrictedEditingException','TrackChangesEditing','FORMAT_RESTRICTED_ENABLED','document','_descriptionFactory','get','from','isCollapsed'];(function(_0x28c08c,_0x380b66){const _0xe6de2e=function(_0x1eb066){while(--_0x1eb066){_0x28c08c['push'](_0x28c08c['shift']());}};_0xe6de2e(++_0x380b66);}(_0x380b,0x10f));const _0xe6de=function(_0x28c08c,_0x380b66){_0x28c08c=_0x28c08c-0x0;let _0xe6de2e=_0x380b[_0x28c08c];return _0xe6de2e;};import{Plugin as _0x401474}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x2f0e40}from'./utils';import{getTranslation as _0xdea1a3}from'../utils/common-translations';export default class lt extends _0x401474{[_0xe6de('0x13')](){const _0x19c168=this['editor'],_0x3b31b1=_0x19c168[_0xe6de('0x12')],_0x10bf51=_0x19c168['locale'];if(!_0x19c168[_0xe6de('0x2')][_0xe6de('0x15')](_0xe6de('0x5')))return;const _0x49c192=_0x19c168[_0xe6de('0x2')]['get'](_0xe6de('0x8')),_0x28032d=_0xe6de('0x7'),_0x4ffd6e=_0x19c168['commands'][_0xe6de('0xc')](_0x28032d);_0x49c192[_0xe6de('0x0')](_0x28032d,(_0x1fe6fd,_0x4b6065={})=>{const _0x1866aa=_0x3b31b1[_0xe6de('0xa')]['selection'];if(_0x1866aa[_0xe6de('0xe')])return void _0x1fe6fd(_0x4b6065);const _0x29da6a=void 0x0!==_0x4b6065[_0xe6de('0x11')]?_0x4b6065['forceValue']:!_0x4ffd6e[_0xe6de('0xf')];_0x3b31b1[_0xe6de('0x4')](()=>{const _0x25f745=Array[_0xe6de('0xd')](_0x1866aa['getRanges']());for(const _0x203e37 of _0x25f745){const _0x4ffd0f=_0x29da6a?[_0x203e37]:_0x2f0e40(_0x28032d,_0x203e37,_0x3b31b1);for(const _0xf97720 of _0x4ffd0f)_0x49c192[_0xe6de('0x14')](_0xf97720,{'commandName':_0x28032d,'commandParams':[{'forceValue':_0x29da6a}]});}});}),_0x49c192[_0xe6de('0xb')][_0xe6de('0x1')](_0x2f8b25=>{const {data:_0x3e4c10}=_0x2f8b25;if(_0x3e4c10&&_0x3e4c10[_0xe6de('0x6')]==_0x28032d)return _0x3e4c10[_0xe6de('0x10')][0x0][_0xe6de('0x11')]?{'type':_0xe6de('0x3'),'content':_0xdea1a3(_0x10bf51,_0xe6de('0x9'))}:{'type':_0xe6de('0x3'),'content':_0xdea1a3(_0x10bf51,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x255e=['name','_getStyleDefinition','style:','add','modelElements','push','styleName','classes','locale','getDefinitionsForView','style.definitions','toLowerCase','change','style','inline','enableCommand','plugins','Style','document','*Remove\x20format:*\x20%0','normalizeConfig','getSelectedBlocks','includes','commandName','model','registerDescriptionCallback','_descriptionFactory','get','commandParams','isBlock','createRangeOn','from','element','afterInit','forceValue','value','editor','enabledStyles','markInlineFormat','find','isCollapsed','commands','config','getAttribute','every','StyleUtils','block','*Format:*\x20%0'];(function(_0x2333f5,_0x255e27){const _0x5a82e3=function(_0x59fffb){while(--_0x59fffb){_0x2333f5['push'](_0x2333f5['shift']());}};_0x5a82e3(++_0x255e27);}(_0x255e,0xf7));const _0x5a82=function(_0x2333f5,_0x255e27){_0x2333f5=_0x2333f5-0x0;let _0x5a82e3=_0x255e[_0x2333f5];return _0x5a82e3;};import{Plugin as _0x399bf0}from'ckeditor5/src/core';import{getTranslation as _0xb81081}from'../utils/common-translations';export default class gt extends _0x399bf0{[_0x5a82('0x1a')](){const _0x31edb5=this[_0x5a82('0x1d')];if(!_0x31edb5[_0x5a82('0x9')]['has'](_0x5a82('0xa')))return;const _0x33ed4c=_0x31edb5[_0x5a82('0x22')]['get'](_0x5a82('0x6')),_0x490bb6=_0x31edb5['plugins'][_0x5a82('0x14')]('TrackChangesEditing'),_0xf5ede1=_0x31edb5[_0x5a82('0x1')],_0x49c390=_0x31edb5[_0x5a82('0x9')][_0x5a82('0x14')]('DataSchema'),_0x262ff6=_0x31edb5['plugins']['get'](_0x5a82('0x26'))[_0x5a82('0xd')](_0x49c390,_0x31edb5[_0x5a82('0x23')]['get'](_0x5a82('0x3')));_0x490bb6[_0x5a82('0x8')]('style',(_0x2db92d,{styleName:_0xbb7633})=>{const _0x43df45=_0x31edb5[_0x5a82('0x11')][_0x5a82('0xb')]['selection'],_0x50b24e=this[_0x5a82('0x2a')](_0xbb7633,_0x262ff6);if(!_0x50b24e)return;if(!_0x33ed4c[_0x5a82('0x1e')][_0x5a82('0xf')](_0xbb7633))return;if(_0x43df45[_0x5a82('0x21')]&&!_0x50b24e[_0x5a82('0x16')])return void _0x2db92d({'styleName':_0xbb7633});const _0x39c37c=!_0x33ed4c[_0x5a82('0x1c')][_0x5a82('0xf')](_0x50b24e['name']);if(_0x50b24e[_0x5a82('0x16')]){const _0x300dfc=function(_0x5254e0,_0x2db20d){const _0x434747=new Set();for(const _0x1356d8 of _0x5254e0){const _0x2c3fe8=_0x1356d8['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x9dd4f5 of _0x2c3fe8)if(_0x2db20d[_0x5a82('0xf')](_0x9dd4f5['name'])){_0x434747[_0x5a82('0x2c')](_0x9dd4f5);break;}}return _0x434747;}(_0x43df45[_0x5a82('0xe')](),_0x50b24e[_0x5a82('0x2d')]);_0x31edb5['model'][_0x5a82('0x5')](()=>{for(const _0x42842d of _0x300dfc)_0x490bb6['markBlockFormat'](_0x42842d,{'commandName':'style','commandParams':[{'styleName':_0xbb7633,'forceValue':_0x39c37c}],'formatGroupId':_0x5a82('0x2b')+_0xbb7633});});}else{let _0x2536ad=Array[_0x5a82('0x18')](_0x43df45['getRanges']());if(!_0x39c37c){const _0x500d62=Array[_0x5a82('0x18')](_0x49c390[_0x5a82('0x2')](_0x50b24e[_0x5a82('0x19')],!0x1))[0x0][_0x5a82('0x11')],_0x3f0351=[];for(const _0x35f8d8 of _0x2536ad){const _0x289679=this['_getRangesWithClasses'](_0x31edb5['model'],_0x35f8d8,_0x50b24e[_0x5a82('0x0')],_0x500d62);_0x3f0351['push'](..._0x289679);}_0x2536ad=_0x3f0351;}_0x31edb5[_0x5a82('0x11')][_0x5a82('0x5')](()=>{for(const _0x3f0326 of _0x2536ad)_0x490bb6[_0x5a82('0x1f')](_0x3f0326,{'commandName':_0x5a82('0x6'),'commandParams':[{'styleName':_0xbb7633,'forceValue':_0x39c37c}]});});}}),_0x490bb6[_0x5a82('0x13')][_0x5a82('0x12')](_0x7a16ad=>{const {data:_0x2b1696}=_0x7a16ad;if(_0x2b1696&&_0x5a82('0x6')===_0x2b1696[_0x5a82('0x10')])return _0x2b1696['commandParams'][0x0][_0x5a82('0x1b')]?{'type':'format','content':_0xb81081(_0xf5ede1,_0x5a82('0x28'),_0x2b1696[_0x5a82('0x15')][0x0][_0x5a82('0x2f')]['toLowerCase']())}:{'type':'format','content':_0xb81081(_0xf5ede1,_0x5a82('0xc'),_0x2b1696[_0x5a82('0x15')][0x0]['styleName'][_0x5a82('0x4')]())};});}['_getStyleDefinition'](_0x17b7e9,_0x3f8ad4){let _0x20a913=_0x3f8ad4[_0x5a82('0x27')]['find'](_0x3d0736=>_0x3d0736[_0x5a82('0x29')]===_0x17b7e9);return _0x20a913||(_0x20a913=_0x3f8ad4[_0x5a82('0x7')][_0x5a82('0x20')](_0x480e5f=>_0x480e5f[_0x5a82('0x29')]===_0x17b7e9)),_0x20a913;}['_getRangesWithClasses'](_0x18f7de,_0x2571da,_0x5e7ac7,_0xa4ed4e){const _0x5ec105=[];for(const _0x43f85e of _0x2571da['getItems']()){const _0x5cf5b8=_0x43f85e[_0x5a82('0x24')](_0xa4ed4e);_0x5cf5b8&&(_0x5e7ac7[_0x5a82('0x25')](_0x2c6a2b=>_0x5cf5b8[_0x5a82('0x0')][_0x5a82('0xf')](_0x2c6a2b))&&_0x5ec105[_0x5a82('0x2e')](_0x18f7de[_0x5a82('0x17')](_0x43f85e)));}return _0x5ec105;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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']());}
|
|
23
|
+
const _0x3330=['addClass','min','*Insert:*\x20%0','tableRow','ELEMENT_TABLE','createPositionAt','colspan','insertTableRowBelow','getAttribute','span','MAX_SAFE_INTEGER','insertTable','getSelectionAffectedTableCells','getContainedElement','classes','ELEMENT_TABLE_COLUMN','_getCoordsForCells','TableEditing','length','order','TableUtils','editor','push','nodeBefore','markMultiRangeDeletion','getChanges','_descriptionFactory','getChangedMarkers','getColumnIndexes','_acceptFormatSuggestionCallbackFactory','start','from','deletion','isTouching','getItems','startsWith','TrackChangesEditing','root','left','nodeAfter','getRanges','type','refresh','add','low','_tableSuggestions','getCellLocation','maxColumn','rowspan','change','change:data','afterInit','highest','toLowerCase','getFirstRange','join','locale','isArray','insertion','substr','element','item','_getSuggestionCoords','maxRow','subType','tablePaste','discard','removeTableRow','registerDescriptionCallback','fromRange','table','enableCommand','insertTableColumnLeft','selectTableRow','addMarker:suggestion','values','isEqual','_suggestionFactory','removeClass','execute','ELEMENT_TABLE_WITH_TEXT','*Remove:*\x20%0','oldRange','name','accept','addRange','last','ELEMENT_TABLE_ROW','batch','insert','createRangeIn','minRow','every','selectTableColumn','registerCustomCallback','_tablePostFixingSubtypes','rootName','writer','selection','plugins','_setupColumnsRowsFixing','enqueueChange','some','tableCell','ELEMENT_TABLE_ROW_WITH_TEXT','end','filter','getRowIndexes','has','findAncestor','cell','commands','mapper','$graveyard','createRangeOn','insertTableRowAbove','model','removeTableColumn','first','minColumn','isIntersectingWithRange','get','getSuggestion','tableColumn','map','$textProxy','hasAttribute','max','setSelection','ELEMENT_TABLE_COLUMN_WITH_TEXT','createTableWalker','data','suggestion','position','document','markMultiRangeInsertion','detach'];(function(_0x45ca6c,_0x333085){const _0x4e2ded=function(_0x5b5fd7){while(--_0x5b5fd7){_0x45ca6c['push'](_0x45ca6c['shift']());}};_0x4e2ded(++_0x333085);}(_0x3330,0x189));const _0x4e2d=function(_0x45ca6c,_0x333085){_0x45ca6c=_0x45ca6c-0x0;let _0x4e2ded=_0x3330[_0x45ca6c];return _0x4e2ded;};import{Plugin as _0x12b2e6}from'ckeditor5/src/core';import{LiveRange as _0x90ec29}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3ec0b5}from'ckeditor5/src/widget';import{getTranslation as _0x44045d}from'../utils/common-translations';export default class mt extends _0x12b2e6{constructor(_0x12d06b){super(_0x12d06b),this[_0x4e2d('0x71')]=[_0x4e2d('0x15'),_0x4e2d('0x4')],this[_0x4e2d('0x3f')]=new Set();}[_0x4e2d('0x45')](){const _0x593b0c=this['editor'],_0x350ce7=_0x593b0c['model'][_0x4e2d('0xf')][_0x4e2d('0x74')];if(!_0x593b0c[_0x4e2d('0x75')][_0x4e2d('0x7e')](_0x4e2d('0x23')))return;const _0x56d02e=_0x593b0c[_0x4e2d('0x4a')],_0x32fed5=_0x593b0c[_0x4e2d('0x75')][_0x4e2d('0x2')](_0x4e2d('0x36')),_0x43ae23=_0x593b0c['plugins']['get'](_0x4e2d('0x26'));_0x32fed5['_descriptionFactory']['registerElementLabel'](_0x4e2d('0x58'),_0x5c6371=>_0x44045d(_0x56d02e,_0x4e2d('0x16'),_0x5c6371)),this[_0x4e2d('0x76')](),_0x32fed5[_0x4e2d('0x59')](_0x4e2d('0x1d')),_0x32fed5[_0x4e2d('0x59')](_0x4e2d('0x5b')),_0x32fed5['enableCommand'](_0x4e2d('0x6f'));for(const _0x4e9a92 of[_0x4e2d('0x85'),_0x4e2d('0x19')]){const _0x12c4ad=_0x593b0c[_0x4e2d('0x81')][_0x4e2d('0x2')](_0x4e9a92);_0x32fed5[_0x4e2d('0x59')](_0x4e9a92,_0x414e0d=>{_0x593b0c['model'][_0x4e2d('0x43')](_0xac3378=>{_0x414e0d();const _0x5d732c='above'===_0x12c4ad[_0x4e2d('0x25')],_0x3f22f3=_0x43ae23[_0x4e2d('0x1e')](_0x350ce7),_0x18a42d=_0x43ae23[_0x4e2d('0x7d')](_0x3f22f3),_0x36277a=_0x5d732c?_0x18a42d[_0x4e2d('0x88')]-0x1:_0x18a42d[_0x4e2d('0x68')]+0x1,_0x3e8290=_0x3f22f3[0x0][_0x4e2d('0x7f')](_0x4e2d('0x58')),_0x5de768=_0x43ae23[_0x4e2d('0xb')](_0x3e8290,{'startRow':_0x36277a,'endRow':_0x36277a}),_0x318274=Array[_0x4e2d('0x31')](_0x5de768)[_0x4e2d('0x5')](_0x45e704=>_0xac3378[_0x4e2d('0x84')](_0x45e704[_0x4e2d('0x80')]));_0x32fed5[_0x4e2d('0x10')](_0x318274,_0x4e2d('0x15'));});});}for(const _0x579dee of[_0x4e2d('0x5a'),'insertTableColumnRight']){const _0x5d972a=_0x593b0c[_0x4e2d('0x81')][_0x4e2d('0x2')](_0x579dee);_0x32fed5[_0x4e2d('0x59')](_0x579dee,_0xf9e746=>{_0x593b0c[_0x4e2d('0x86')][_0x4e2d('0x43')](_0x2eb9d7=>{_0xf9e746();const _0x1740ff=_0x4e2d('0x38')===_0x5d972a['order'],_0x12f21b=_0x43ae23[_0x4e2d('0x1e')](_0x350ce7),_0x39ab7a=_0x43ae23[_0x4e2d('0x2e')](_0x12f21b),_0xa9d830=_0x1740ff?_0x39ab7a[_0x4e2d('0x88')]-0x1:_0x39ab7a['last']+0x1,_0x41343c=_0x12f21b[0x0][_0x4e2d('0x7f')](_0x4e2d('0x58')),_0x48081d=_0x43ae23[_0x4e2d('0xb')](_0x41343c,{'startRow':0x0,'column':_0xa9d830,'includeAllSlots':!0x1}),_0x12e22a=Array[_0x4e2d('0x31')](_0x48081d)[_0x4e2d('0x5')](_0x118141=>_0x2eb9d7['createRangeOn'](_0x118141[_0x4e2d('0x80')]));_0x32fed5[_0x4e2d('0x10')](_0x12e22a,_0x4e2d('0x4'));});});}for(const _0x4599e9 of[_0x4e2d('0x55'),_0x4e2d('0x87')]){const _0x5869b3=_0x4599e9['substr'](0xb),_0x5eec63=_0x5869b3[_0x4e2d('0x47')](),_0x4f5bd3=_0x5eec63[_0x4e2d('0x4d')](0x0,0x3)+_0x4e2d('0x1b'),_0x496bf6=_0x4e2d('0x58')+_0x5869b3,_0x35c0cc=_0x4e2d('0x13')+_0x5869b3,_0x3a844b='max'+_0x5869b3;_0x32fed5[_0x4e2d('0x59')](_0x4599e9,()=>{_0x593b0c[_0x4e2d('0x86')]['change'](_0x5235d4=>{const _0x36be89=_0x43ae23[_0x4e2d('0x1e')](_0x350ce7),_0x398177=_0x36be89[0x0]['findAncestor'](_0x4e2d('0x58'));let _0x2c465e;if(_0x4e2d('0x55')==_0x4599e9){const _0x3fa1d6=_0x43ae23[_0x4e2d('0x7d')](_0x36be89);_0x2c465e={'startRow':_0x3fa1d6[_0x4e2d('0x88')],'endRow':_0x3fa1d6[_0x4e2d('0x68')],'includeAllSlots':!0x0};}else{const _0x1659c6=_0x43ae23[_0x4e2d('0x2e')](_0x36be89);_0x2c465e={'startColumn':_0x1659c6[_0x4e2d('0x88')],'endColumn':_0x1659c6['last'],'includeAllSlots':!0x0};}const _0x3a065d=_0x43ae23['createTableWalker'](_0x398177,_0x2c465e),_0x415041=Array['from'](_0x3a065d)[_0x4e2d('0x5')](({cell:_0x612948})=>_0x612948),_0x31358a=se(_0x415041[_0x4e2d('0x7c')](_0x286c32=>_0x286c32[_0x4e2d('0x7')](_0x4f5bd3))),_0x46795e=se(_0x415041['filter'](_0x5f0b9d=>!_0x5f0b9d[_0x4e2d('0x7')](_0x4f5bd3)))['map'](_0x157757=>_0x5235d4['createRangeOn'](_0x157757)),_0x1939fc=_0x32fed5[_0x4e2d('0x2a')](_0x46795e,_0x496bf6);if(_0x1939fc&&(_0x4e2d('0x15')==_0x1939fc[_0x4e2d('0x52')]||_0x4e2d('0x4')==_0x1939fc[_0x4e2d('0x52')])){const _0x503571=this[_0x4e2d('0x50')](_0x1939fc);for(const _0x106dc0 of _0x31358a){const _0x3f6519=_0x5235d4[_0x4e2d('0x84')](_0x106dc0),_0x311961=_0x43ae23[_0x4e2d('0x40')](_0x106dc0),_0x1a2f95=_0x106dc0[_0x4e2d('0x1a')](_0x4f5bd3)-0x1,_0x4a45be=_0x503571[_0x35c0cc],_0x54961f=_0x503571[_0x3a844b];_0x4a45be<=_0x311961[_0x5eec63]&&_0x311961[_0x5eec63]+_0x1a2f95<=_0x54961f&&_0x1939fc[_0x4e2d('0x67')](_0x3f6519);}}});});}function _0x10540e(_0x12cd48){const _0x3ae834=Array[_0x4e2d('0x31')](_0x350ce7[_0x4e2d('0x3a')]())[_0x4e2d('0x5')](_0x5269e0=>_0x90ec29[_0x4e2d('0x57')](_0x5269e0));_0x593b0c['model']['change'](_0x21388a=>{const _0x5ad863=_0x21388a[_0x4e2d('0x6a')];_0x12cd48=_0x12cd48[_0x4e2d('0x7c')](_0x9686e0=>_0x4e2d('0x83')!=_0x9686e0['root'][_0x4e2d('0x72')]),_0x21388a['setSelection'](_0x12cd48),_0x593b0c[_0x4e2d('0x81')][_0x4e2d('0x2')]('removeTableRow')[_0x4e2d('0x3c')](),_0x593b0c[_0x4e2d('0x61')](_0x4e2d('0x55'),{'forceDefaultExecution':!0x0}),_0x593b0c['model'][_0x4e2d('0x77')](()=>{_0x593b0c[_0x4e2d('0x86')][_0x4e2d('0x77')](_0x5ad863,_0x260e84=>{const _0x1fb827=_0x3ae834['filter'](_0x11ffd6=>_0x4e2d('0x83')!=_0x11ffd6[_0x4e2d('0x37')][_0x4e2d('0x72')]);_0x1fb827[_0x4e2d('0x24')]>0x0&&_0x260e84[_0x4e2d('0x9')](_0x1fb827);for(const _0xc9bad7 of _0x3ae834)_0xc9bad7[_0x4e2d('0x11')]();});});});}function _0x2ab5d5(_0x292acd){_0x593b0c['model'][_0x4e2d('0x43')](_0x335251=>{const _0x4a276d=Array[_0x4e2d('0x31')](_0x350ce7[_0x4e2d('0x3a')]())[_0x4e2d('0x5')](_0x1604e6=>_0x90ec29[_0x4e2d('0x57')](_0x1604e6)),_0x2e0768=[];for(const _0x389053 of _0x292acd)for(const _0xc152be of _0x389053[_0x4e2d('0x34')]({'shallow':!0x0}))_0x2e0768[_0x4e2d('0x28')](_0xc152be);for(const _0x3480de of _0x2e0768)_0x4e2d('0x83')!=_0x3480de['root'][_0x4e2d('0x72')]&&(_0x335251[_0x4e2d('0x9')](_0x335251[_0x4e2d('0x17')](_0x3480de,0x0)),_0x593b0c['commands'][_0x4e2d('0x2')]('removeTableColumn')['refresh'](),_0x593b0c[_0x4e2d('0x61')](_0x4e2d('0x87'),{'forceDefaultExecution':!0x0}));const _0x191f00=_0x4a276d[_0x4e2d('0x7c')](_0x4526de=>_0x4e2d('0x83')!=_0x4526de[_0x4e2d('0x37')]['rootName']);_0x191f00[_0x4e2d('0x24')]>0x0&&_0x335251[_0x4e2d('0x9')](_0x191f00);for(const _0x948ff of _0x4a276d)_0x948ff[_0x4e2d('0x11')]();});}function _0x5c2b57(_0x34f68a,_0x3cba7d){return _0x3cba7d[_0x4e2d('0x6e')](_0x55629d=>_0x34f68a[_0x4e2d('0x78')](_0x39d370=>_0x39d370[_0x4e2d('0x7b')][_0x4e2d('0x5e')](_0x55629d[_0x4e2d('0x30')])||_0x55629d['end'][_0x4e2d('0x5e')](_0x39d370[_0x4e2d('0x30')])));}function _0x3e3298(_0x5ba33e,_0x335141){return _0x5ba33e['some'](_0x42ace2=>_0x335141[_0x4e2d('0x78')](_0x5ce0a2=>_0x42ace2[_0x4e2d('0x7b')][_0x4e2d('0x33')](_0x5ce0a2[_0x4e2d('0x30')])));}_0x593b0c[_0x4e2d('0xc')]['downcastDispatcher']['on'](_0x4e2d('0x5c'),(_0x1bde97,_0x48847e,_0x56f8e6)=>{if(!_0x56f8e6['options']['showSuggestionHighlights'])return;const _0xa612e8=_0x48847e[_0x4e2d('0x4f')];if(!_0xa612e8)return;const _0x4edaa7=_0x56f8e6[_0x4e2d('0x82')]['toViewElement'](_0xa612e8);function _0x13821f(_0x145c43){return Array[_0x4e2d('0x4b')](_0x145c43)?_0x145c43:[_0x145c43];}_0x4edaa7&&_0x4e2d('0x79')===_0xa612e8[_0x4e2d('0x65')]&&_0x3ec0b5(_0x4edaa7,_0x56f8e6[_0x4e2d('0x73')],(_0x6f633d,_0x1771f7,_0x4c70c2)=>_0x4c70c2[_0x4e2d('0x12')](_0x13821f(_0x1771f7[_0x4e2d('0x20')]),_0x6f633d),(_0x2ee56c,_0x5063f8,_0x211912)=>_0x211912[_0x4e2d('0x60')](_0x13821f(_0x5063f8[_0x4e2d('0x20')]),_0x2ee56c));},{'priority':_0x4e2d('0x46')}),_0x32fed5[_0x4e2d('0x2c')][_0x4e2d('0x56')](_0x547784=>{if(_0x4e2d('0x4c')!=_0x547784[_0x4e2d('0x3b')]&&_0x4e2d('0x32')!=_0x547784[_0x4e2d('0x3b')])return;const _0x5c3444=_0x547784[_0x4e2d('0x1f')]();if(null!=_0x5c3444&&_0x5c3444['is'](_0x4e2d('0x4e'),'table')){if(_0x4e2d('0x4c')==_0x547784[_0x4e2d('0x3b')]){const _0x5c06ab=_0x547784[_0x4e2d('0x34')]()['filter'](_0x191757=>_0x191757['is']('$textProxy'))['map'](_0x3e3e90=>_0x3e3e90['data']);if(_0x5c06ab[_0x4e2d('0x24')])return{'type':_0x4e2d('0x4c'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x14'),_0x44045d(_0x56d02e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c06ab[_0x4e2d('0x49')]('\x20')+'\x22'))};}if('deletion'==_0x547784[_0x4e2d('0x3b')]){const _0x1668b5=_0x547784['getItems']()['filter'](_0x427989=>_0x427989['is'](_0x4e2d('0x6')))[_0x4e2d('0x5')](_0x3854c9=>_0x3854c9['data']);if(_0x1668b5[_0x4e2d('0x24')])return{'type':_0x4e2d('0x32'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x63'),_0x44045d(_0x56d02e,_0x4e2d('0x62'),'\x22'+_0x1668b5[_0x4e2d('0x49')]('\x20')+'\x22'))};}}}),_0x32fed5[_0x4e2d('0x2c')][_0x4e2d('0x56')](_0x5a6049=>{if('tableRow'==_0x5a6049[_0x4e2d('0x52')]){const _0x3a1b30=_0x5a6049[_0x4e2d('0x34')]()[_0x4e2d('0x7c')](_0x1431a1=>_0x1431a1['is'](_0x4e2d('0x6')))[_0x4e2d('0x5')](_0x389f55=>_0x389f55[_0x4e2d('0xc')]),_0x37c921=this['_getSuggestionCoords'](_0x5a6049),_0x4e9997=_0x37c921[_0x4e2d('0x51')]-_0x37c921[_0x4e2d('0x6d')]+0x1;if(_0x4e2d('0x4c')==_0x5a6049[_0x4e2d('0x3b')])return _0x3a1b30['length']?{'type':_0x4e2d('0x4c'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x14'),_0x44045d(_0x56d02e,_0x4e2d('0x7a'),[_0x4e9997,'\x22'+_0x3a1b30[_0x4e2d('0x49')]('\x20')+'\x22']))}:{'type':_0x4e2d('0x4c'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x14'),_0x44045d(_0x56d02e,_0x4e2d('0x69'),_0x4e9997))};if(_0x4e2d('0x32')==_0x5a6049[_0x4e2d('0x3b')])return _0x3a1b30['length']?{'type':_0x4e2d('0x32'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x63'),_0x44045d(_0x56d02e,_0x4e2d('0x7a'),[_0x4e9997,'\x22'+_0x3a1b30[_0x4e2d('0x49')]('\x20')+'\x22']))}:{'type':_0x4e2d('0x32'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x63'),_0x44045d(_0x56d02e,'ELEMENT_TABLE_ROW',_0x4e9997))};}if(_0x4e2d('0x4')==_0x5a6049[_0x4e2d('0x52')]){const _0xb78af0=_0x5a6049[_0x4e2d('0x34')]()[_0x4e2d('0x7c')](_0x2bcadc=>_0x2bcadc['is']('$textProxy'))['map'](_0x8b0d0a=>_0x8b0d0a['data']),_0x1ee8b5=this[_0x4e2d('0x50')](_0x5a6049),_0x5a29a6=_0x1ee8b5[_0x4e2d('0x41')]-_0x1ee8b5[_0x4e2d('0x0')]+0x1;if('insertion'==_0x5a6049[_0x4e2d('0x3b')])return _0xb78af0[_0x4e2d('0x24')]?{'type':_0x4e2d('0x4c'),'content':_0x44045d(_0x56d02e,'*Insert:*\x20%0',_0x44045d(_0x56d02e,_0x4e2d('0xa'),[_0x5a29a6,'\x22'+_0xb78af0['join']('\x20')+'\x22']))}:{'type':_0x4e2d('0x4c'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x14'),_0x44045d(_0x56d02e,_0x4e2d('0x21'),_0x5a29a6))};if(_0x4e2d('0x32')==_0x5a6049[_0x4e2d('0x3b')])return _0xb78af0[_0x4e2d('0x24')]?{'type':'deletion','content':_0x44045d(_0x56d02e,_0x4e2d('0x63'),_0x44045d(_0x56d02e,_0x4e2d('0xa'),[_0x5a29a6,'\x22'+_0xb78af0['join']('\x20')+'\x22']))}:{'type':_0x4e2d('0x32'),'content':_0x44045d(_0x56d02e,_0x4e2d('0x63'),_0x44045d(_0x56d02e,_0x4e2d('0x21'),_0x5a29a6))};}}),_0x32fed5['_suggestionFactory'][_0x4e2d('0x70')](_0x4e2d('0x4c'),'tableRow',_0x4e2d('0x54'),_0x10540e),_0x32fed5[_0x4e2d('0x5f')]['registerCustomCallback'](_0x4e2d('0x32'),_0x4e2d('0x15'),_0x4e2d('0x66'),_0x10540e),_0x32fed5[_0x4e2d('0x5f')][_0x4e2d('0x70')]('insertion',_0x4e2d('0x4'),'discard',_0x2ab5d5),_0x32fed5[_0x4e2d('0x5f')][_0x4e2d('0x70')](_0x4e2d('0x32'),'tableColumn','accept',_0x2ab5d5),_0x32fed5['_suggestionFactory'][_0x4e2d('0x70')]('insertion',_0x4e2d('0x4'),_0x4e2d('0x49'),_0x5c2b57),_0x32fed5[_0x4e2d('0x5f')][_0x4e2d('0x70')]('deletion',_0x4e2d('0x4'),'join',_0x5c2b57),_0x32fed5[_0x4e2d('0x5f')]['registerCustomCallback']('insertion',_0x4e2d('0x15'),'join',_0x3e3298),_0x32fed5[_0x4e2d('0x5f')][_0x4e2d('0x70')]('deletion',_0x4e2d('0x15'),_0x4e2d('0x49'),_0x3e3298);}[_0x4e2d('0x2f')](){const _0x3787d9=this[_0x4e2d('0x27')],_0xb121a9=_0x3787d9[_0x4e2d('0x86')][_0x4e2d('0xf')]['selection'];return(_0xb2cef6,_0x4bf417)=>{_0x3787d9['model']['change'](_0x7c9f3e=>{const {commandName:_0x5cf466,commandParams:_0xf6743}=_0x4bf417;let _0x14841a=_0xb2cef6[0x0]['end'][_0x4e2d('0x29')];_0xf6743&&_0xf6743[0x0]&&!0x1===_0xf6743[0x0]['forceValue']&&(_0x14841a=_0xb2cef6[0x0]['start'][_0x4e2d('0x39')]);const _0x931be0=_0x7c9f3e[_0x4e2d('0x6c')](_0x14841a);if(_0x4e2d('0x83')==_0x931be0[_0x4e2d('0x37')][_0x4e2d('0x72')])return;const _0x244921=Array['from'](_0xb121a9[_0x4e2d('0x3a')]())[_0x4e2d('0x5')](_0x17c7c2=>_0x90ec29['fromRange'](_0x17c7c2));_0x7c9f3e['setSelection'](_0x931be0),_0x3787d9[_0x4e2d('0x81')][_0x4e2d('0x2')](_0x5cf466)['refresh'](),_0xf6743[_0x4e2d('0x28')]({'forceDefaultExecution':!0x0}),_0x3787d9['execute'](_0x5cf466,..._0xf6743);const _0x163de2=_0x244921['filter'](_0xfb1c10=>_0x4e2d('0x83')!=_0xfb1c10[_0x4e2d('0x37')][_0x4e2d('0x72')]);_0x163de2[_0x4e2d('0x24')]>0x0&&_0x7c9f3e[_0x4e2d('0x9')](_0x163de2);for(const _0x33930d of _0x244921)_0x33930d[_0x4e2d('0x11')]();});};}[_0x4e2d('0x22')](_0xc17b64){const _0x2e5172=this[_0x4e2d('0x27')][_0x4e2d('0x75')]['get'](_0x4e2d('0x26'));let _0x41075c=Number[_0x4e2d('0x1c')],_0x2e199f=Number['MIN_SAFE_INTEGER'],_0x4dbdcc=Number['MAX_SAFE_INTEGER'],_0x22d02b=Number['MIN_SAFE_INTEGER'];for(const _0x5beed3 of _0xc17b64){if(_0x4e2d('0x83')==_0x5beed3[_0x4e2d('0x37')][_0x4e2d('0x72')])continue;const {row:_0x4d111b,column:_0x2430b9}=_0x2e5172[_0x4e2d('0x40')](_0x5beed3),_0x383de5=_0x5beed3[_0x4e2d('0x7')](_0x4e2d('0x42'))?_0x5beed3[_0x4e2d('0x1a')](_0x4e2d('0x42'))-0x1:0x0,_0x2abae1=_0x5beed3[_0x4e2d('0x7')](_0x4e2d('0x18'))?_0x5beed3['getAttribute'](_0x4e2d('0x18'))-0x1:0x0;_0x41075c=_0x4d111b<_0x41075c?_0x4d111b:_0x41075c,_0x2e199f=_0x4d111b+_0x383de5>_0x2e199f?_0x4d111b+_0x383de5:_0x2e199f,_0x4dbdcc=_0x2430b9<_0x4dbdcc?_0x2430b9:_0x4dbdcc,_0x22d02b=_0x2430b9+_0x2abae1>_0x22d02b?_0x2430b9+_0x2abae1:_0x22d02b;}return{'minRow':_0x41075c,'maxRow':_0x2e199f,'minColumn':_0x4dbdcc,'maxColumn':_0x22d02b};}[_0x4e2d('0x76')](){const _0x5a6bbb=this[_0x4e2d('0x27')],_0x1c3159=_0x5a6bbb[_0x4e2d('0x75')][_0x4e2d('0x2')]('TrackChangesEditing'),_0x133542=_0x5a6bbb['plugins']['get']('TableUtils');_0x5a6bbb[_0x4e2d('0x86')][_0x4e2d('0xf')]['on'](_0x4e2d('0x44'),()=>{const _0x270bd2=Array[_0x4e2d('0x31')](_0x5a6bbb[_0x4e2d('0x86')][_0x4e2d('0xf')]['differ'][_0x4e2d('0x2d')]());for(const {name:_0x5b1e28,data:_0x3d8f98}of _0x270bd2){const {group:_0x183a05,id:_0x1ee920,subType:_0x3cd1e4}=_0x1c3159['_splitMarkerName'](_0x5b1e28);if(_0x4e2d('0xd')!=_0x183a05)continue;if(null!=_0x3d8f98[_0x4e2d('0x64')])continue;const _0x1db258=_0x1c3159[_0x4e2d('0x3')](_0x1ee920);this[_0x4e2d('0x71')]['includes'](_0x3cd1e4)&&this[_0x4e2d('0x3f')][_0x4e2d('0x3d')](_0x1db258);}},{'priority':_0x4e2d('0x3e')});const _0x576dee=(_0x2f1620,_0x5dd9d5)=>{let _0x315df3=!0x1;const _0x975da3=_0x5dd9d5[_0x4e2d('0x84')](_0x2f1620),_0x10639f=_0x2f1620[_0x4e2d('0x7f')](_0x4e2d('0x58')),_0x5c84b7=_0x133542[_0x4e2d('0x40')](_0x2f1620);for(const _0x4477ff of this[_0x4e2d('0x3f')]){const _0x439c1e=_0x4477ff[_0x4e2d('0x52')],_0x152dc3=_0x439c1e[_0x4e2d('0x35')](_0x4e2d('0x53')),_0x22e6ba=_0x439c1e[_0x4e2d('0x4d')](_0x152dc3?0xa:0x5),_0xf200d=_0x22e6ba[_0x4e2d('0x47')](),_0x127d41=_0xf200d['substr'](0x0,0x3)+'span',_0x460b38=_0x4e2d('0x13')+_0x22e6ba,_0x51fb9c=_0x4e2d('0x8')+_0x22e6ba;if(!_0x4477ff['isInContent'])continue;if(_0x10639f!=_0x4477ff[_0x4e2d('0x48')]()[_0x4e2d('0x30')][_0x4e2d('0x7f')]('table'))continue;if(_0x4477ff[_0x4e2d('0x1')](_0x975da3))continue;const _0x470184=_0x2f1620['hasAttribute'](_0x127d41)?_0x2f1620['getAttribute'](_0x127d41)-0x1:0x0,_0x1daa29=this[_0x4e2d('0x50')](_0x4477ff),_0x3ba517=_0x1daa29[_0x460b38],_0x1b207c=_0x1daa29[_0x51fb9c];_0x3ba517<=_0x5c84b7[_0xf200d]&&_0x5c84b7[_0xf200d]+_0x470184<=_0x1b207c&&(_0x4477ff[_0x4e2d('0x67')](_0x975da3),_0x315df3=!0x0);}return _0x315df3;};_0x5a6bbb[_0x4e2d('0x86')]['document']['registerPostFixer'](_0x562f24=>{let _0x788151=!0x1;for(const _0x2e78f9 of _0x5a6bbb['model']['document']['differ'][_0x4e2d('0x2b')]())if(_0x4e2d('0x6b')==_0x2e78f9[_0x4e2d('0x3b')]){if(_0x4e2d('0x15')==_0x2e78f9[_0x4e2d('0x65')])for(const _0x209436 of _0x2e78f9['position'][_0x4e2d('0x39')]['getChildren']())_0x788151=_0x788151||_0x576dee(_0x209436,_0x562f24);else'tableCell'==_0x2e78f9[_0x4e2d('0x65')]&&(_0x788151=_0x788151||_0x576dee(_0x2e78f9[_0x4e2d('0xe')][_0x4e2d('0x39')],_0x562f24));}return _0x788151;});}[_0x4e2d('0x50')](_0x25edec){return this[_0x4e2d('0x22')](_0x25edec['getRanges']()['map'](_0x1fecf6=>_0x1fecf6[_0x4e2d('0x30')][_0x4e2d('0x39')]));}}function se(_0x2538f3){return Array[_0x4e2d('0x31')](new Set(_0x2538f3)[_0x4e2d('0x5d')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfa57=['get','enableCommand','plugins','afterInit','editor','TrackChangesEditing','has','requires','toggleTableCaption'];(function(_0x14470d,_0xfa57c6){const _0x79abad=function(_0x16211c){while(--_0x16211c){_0x14470d['push'](_0x14470d['shift']());}};_0x79abad(++_0xfa57c6);}(_0xfa57,0xb9));const _0x79ab=function(_0x14470d,_0xfa57c6){_0x14470d=_0x14470d-0x0;let _0x79abad=_0xfa57[_0x14470d];return _0x79abad;};import{Plugin as _0x27455c}from'ckeditor5/src/core';import _0x52f356 from'./table';export default class vt extends _0x27455c{static get[_0x79ab('0x2')](){return[_0x52f356];}[_0x79ab('0x7')](){const _0x2babeb=this[_0x79ab('0x8')];if(!_0x2babeb[_0x79ab('0x6')][_0x79ab('0x1')]('TableCaptionEditing'))return;_0x2babeb[_0x79ab('0x6')][_0x79ab('0x4')](_0x79ab('0x0'))[_0x79ab('0x5')](_0x79ab('0x3'));}}
|