@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230810.0 → 0.0.0-nightly-20230811.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 _0x4094=['config','type','listItem','_getSuggestionBlocksForListStyle','getSelectedBlocks','_descriptionFactory','push','createRange','filter','getFirstPosition','_getSuggestionBlocks','handleListReversedCommand','createPositionAt','getLastPosition','document','getAttribute','ListPropertiesEditing','toUpperCase','*Format:*\x20set\x20order\x20to\x20regular','format','handleListStyleCommand','selection','ELEMENT_','bind','listType','commandName','change','getSiblingNodes','flat','list.properties','model','plugins','from','listReversed','TrackChangesEditing','forward','*Format:*\x20set\x20start\x20index\x20to\x20%0','listStyle','styles','parent','markMultiRangeBlockFormat','_LIST_','reversed','handleDescriptions','numbered','_getTranslationKeyForListStyle','afterInit','locale','enableCommand','ListUtils','before','backward','listStart','element','getListTypeFromListStyleType','unshift','map','*Change\x20to:*\x20%0','startIndex','commandParams','editor','handleListStartCommand','get','length'];(function(_0x16d883,_0x409409){const _0x21de8b=function(_0x350e5e){while(--_0x350e5e){_0x16d883['push'](_0x16d883['shift']());}};_0x21de8b(++_0x409409);}(_0x4094,0xc4));const _0x21de=function(_0x16d883,_0x409409){_0x16d883=_0x16d883-0x0;let _0x21de8b=_0x4094[_0x16d883];return _0x21de8b;};import{Plugin as _0x181b3e}from'ckeditor5/src/core';import{getTranslation as _0x2ad7c8}from'../utils/common-translations';export default class nt extends _0x181b3e{[_0x21de('0x2a')](){if(!this[_0x21de('0x38')]['plugins']['has'](_0x21de('0xc')))return;const _0x311db6=this[_0x21de('0x38')][_0x21de('0x3c')][_0x21de('0x3a')](_0x21de('0x19')),_0x21d867=this[_0x21de('0x38')][_0x21de('0x1b')][_0x21de('0x3a')](_0x21de('0x1e'));_0x311db6[_0x21de('0x22')]&&_0x21d867[_0x21de('0x2c')](_0x21de('0x21'),this[_0x21de('0x10')][_0x21de('0x13')](this)),_0x311db6[_0x21de('0x26')]&&_0x21d867[_0x21de('0x2c')]('listReversed',this['handleListReversedCommand']['bind'](this)),_0x311db6[_0x21de('0x36')]&&_0x21d867[_0x21de('0x2c')]('listStart',this['handleListStartCommand'][_0x21de('0x13')](this)),_0x21d867[_0x21de('0x1')]['registerDescriptionCallback'](this[_0x21de('0x27')][_0x21de('0x13')](this));}[_0x21de('0x10')](_0x462aa0,_0x5ef5d3={}){const _0x4b9ef6=this[_0x21de('0x38')][_0x21de('0x1b')][_0x21de('0x3a')](_0x21de('0x1e')),_0x29c2d7=this[_0x21de('0x3f')]();this['editor'][_0x21de('0x1a')][_0x21de('0x16')](()=>{_0x4b9ef6['markMultiRangeBlockFormat'](_0x29c2d7,{'commandName':'listStyle','commandParams':[{'type':_0x5ef5d3[_0x21de('0x3d')]}],'formatGroupId':_0x21de('0x21')});});}[_0x21de('0x7')](_0x285cf5,_0x31c6e5={}){const _0x44a93c=this['editor'][_0x21de('0x1b')][_0x21de('0x3a')](_0x21de('0x1e')),_0x34d0eb=this[_0x21de('0x6')](_0xe9cb0e=>_0xe9cb0e['is'](_0x21de('0x31'),_0x21de('0x3e'))&&_0x21de('0x28')===_0xe9cb0e[_0x21de('0xb')](_0x21de('0x14')));if(_0x34d0eb[_0x21de('0x3b')]<0x1)return;const _0xbfee46=_0x34d0eb['map'](_0x3cd478=>this[_0x21de('0x38')][_0x21de('0x1a')][_0x21de('0x3')](this[_0x21de('0x38')][_0x21de('0x1a')][_0x21de('0x8')](_0x3cd478,_0x21de('0x2e')),this[_0x21de('0x38')]['model'][_0x21de('0x8')](_0x3cd478,0x0)));this['editor']['model'][_0x21de('0x16')](()=>{_0x44a93c[_0x21de('0x24')](_0xbfee46,{'commandName':_0x21de('0x1d'),'commandParams':[{'reversed':_0x31c6e5[_0x21de('0x26')]}],'formatGroupId':_0x21de('0x1d')});});}[_0x21de('0x39')](_0x54c1bf,_0xc8ee94={}){const _0x55afff=this[_0x21de('0x38')][_0x21de('0x1b')][_0x21de('0x3a')](_0x21de('0x1e')),_0x54591c=this[_0x21de('0x6')](_0x44fb0a=>_0x44fb0a['is']('element',_0x21de('0x3e'))&&_0x21de('0x28')===_0x44fb0a[_0x21de('0xb')](_0x21de('0x14')));if(_0x54591c['length']<0x1)return;const _0x184156=_0x54591c['map'](_0x39d841=>this[_0x21de('0x38')][_0x21de('0x1a')][_0x21de('0x3')](this[_0x21de('0x38')][_0x21de('0x1a')]['createPositionAt'](_0x39d841,_0x21de('0x2e')),this[_0x21de('0x38')][_0x21de('0x1a')]['createPositionAt'](_0x39d841,0x0)));this[_0x21de('0x38')]['model']['change'](()=>{_0x55afff[_0x21de('0x24')](_0x184156,{'commandName':_0x21de('0x30'),'commandParams':[{'startIndex':_0xc8ee94[_0x21de('0x36')]}],'formatGroupId':_0x21de('0x30')});});}[_0x21de('0x27')](_0x236771){const _0x444473=this[_0x21de('0x38')][_0x21de('0x2b')],{data:_0x4d87be}=_0x236771;if(!_0x4d87be)return;let _0x343465,_0x242bbd;switch(_0x4d87be[_0x21de('0x15')]){case _0x21de('0x21'):_0x343465=_0x21de('0x35'),_0x242bbd={'type':_0x21de('0xf'),'content':_0x2ad7c8(_0x444473,_0x343465,_0x2ad7c8(_0x444473,this[_0x21de('0x29')](_0x4d87be[_0x21de('0x37')][0x0][_0x21de('0x3d')])))};break;case'listReversed':_0x343465=_0x4d87be['commandParams'][0x0][_0x21de('0x26')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x21de('0xe'),_0x242bbd={'type':_0x21de('0xf'),'content':_0x2ad7c8(_0x444473,_0x343465)};break;case _0x21de('0x30'):_0x343465=_0x21de('0x20'),_0x242bbd={'type':_0x21de('0xf'),'content':_0x2ad7c8(_0x444473,_0x343465,_0x4d87be[_0x21de('0x37')][0x0][_0x21de('0x36')])};}return _0x242bbd;}[_0x21de('0x3f')](){var _0x25a290,_0x311877,_0x25d431,_0x43d31b;const _0x19100b=this[_0x21de('0x38')][_0x21de('0x1b')][_0x21de('0x3a')](_0x21de('0x2d'));let _0x3db126=Array[_0x21de('0x1c')](this[_0x21de('0x38')][_0x21de('0x1a')][_0x21de('0xa')][_0x21de('0x11')][_0x21de('0x0')]());return(null===(_0x25a290=_0x3db126[0x0])||void 0x0===_0x25a290?void 0x0:_0x25a290['is'](_0x21de('0x31'),'listItem'))&&_0x3db126[_0x21de('0x33')](..._0x19100b['getSiblingNodes'](this[_0x21de('0x38')]['model'][_0x21de('0xa')][_0x21de('0x11')][_0x21de('0x5')](),_0x21de('0x2f'))),(null===(_0x311877=_0x3db126[_0x3db126[_0x21de('0x3b')]-0x1])||void 0x0===_0x311877?void 0x0:_0x311877['is'](_0x21de('0x31'),_0x21de('0x3e')))&&_0x3db126[_0x21de('0x2')](..._0x19100b[_0x21de('0x17')](this[_0x21de('0x38')][_0x21de('0x1a')][_0x21de('0xa')][_0x21de('0x11')][_0x21de('0x9')](),_0x21de('0x1f'))),_0x3db126=[...new Set(_0x3db126)],(null===(_0x43d31b=null===(_0x25d431=this['editor'][_0x21de('0x1a')][_0x21de('0xa')][_0x21de('0x11')][_0x21de('0x5')]())||void 0x0===_0x25d431?void 0x0:_0x25d431[_0x21de('0x23')])||void 0x0===_0x43d31b?void 0x0:_0x43d31b['is'](_0x21de('0x31'),_0x21de('0x3e')))&&(_0x3db126=_0x3db126[_0x21de('0x4')](_0x2cc641=>_0x2cc641['is'](_0x21de('0x31'),_0x21de('0x3e')))),_0x3db126;}[_0x21de('0x6')](_0x3ed424){const _0x54e391=this[_0x21de('0x38')][_0x21de('0x1b')][_0x21de('0x3a')]('ListUtils');let _0xc38467=Array[_0x21de('0x1c')](this[_0x21de('0x38')][_0x21de('0x1a')][_0x21de('0xa')][_0x21de('0x11')][_0x21de('0x0')]())[_0x21de('0x4')](_0x3ed424)[_0x21de('0x34')](_0x8c5b28=>{const _0x2d3a2d=this[_0x21de('0x38')][_0x21de('0x1a')][_0x21de('0x8')](_0x8c5b28,0x0);return[..._0x54e391[_0x21de('0x17')](_0x2d3a2d,_0x21de('0x2f')),..._0x54e391[_0x21de('0x17')](_0x2d3a2d,_0x21de('0x1f'))];})[_0x21de('0x18')]();return _0xc38467=[...new Set(_0xc38467)],_0xc38467;}[_0x21de('0x29')](_0x4db6d6){return _0x21de('0x12')+this[_0x21de('0x38')][_0x21de('0x1b')][_0x21de('0x3a')](_0x21de('0x2d'))[_0x21de('0x32')](_0x4db6d6)[_0x21de('0xd')]()+_0x21de('0x25')+_0x4db6d6[_0x21de('0xd')]()['replace'](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf4cb=['_descriptionFactory','conversion','createEmptyElement','locale','plugins','get','high','afterInit','elementToElement','showSuggestionHighlights','downcastDispatcher','data','options','for','stop','registerElementLabel','TrackChangesEditing','mediaEmbed','MediaEmbedEditing','ELEMENT_MEDIA','media','has'];(function(_0x17ae2a,_0xf4cb05){const _0x21e507=function(_0x2616c3){while(--_0x2616c3){_0x17ae2a['push'](_0x17ae2a['shift']());}};_0x21e507(++_0xf4cb05);}(_0xf4cb,0xc7));const _0x21e5=function(_0x17ae2a,_0xf4cb05){_0x17ae2a=_0x17ae2a-0x0;let _0x21e507=_0xf4cb[_0x17ae2a];return _0x21e507;};import{Plugin as _0x50ccf0}from'ckeditor5/src/core';import{getTranslation as _0x597ee1}from'../utils/common-translations';export default class ot extends _0x50ccf0{[_0x21e5('0x6')](){const _0x2377e1=this['editor'];if(!_0x2377e1[_0x21e5('0x3')][_0x21e5('0x14')](_0x21e5('0x11')))return;const _0x4a5363=_0x2377e1[_0x21e5('0x3')][_0x21e5('0x4')](_0x21e5('0xf')),_0x15b329=_0x2377e1[_0x21e5('0x2')];_0x4a5363['enableCommand'](_0x21e5('0x10')),_0x4a5363[_0x21e5('0x15')][_0x21e5('0xe')](_0x21e5('0x13'),_0x4e9d7f=>_0x597ee1(_0x15b329,_0x21e5('0x12'),_0x4e9d7f)),_0x2377e1[_0x21e5('0x0')][_0x21e5('0xc')]('dataDowncast')[_0x21e5('0x7')]({'model':_0x21e5('0x13'),'view':(_0x44252d,{writer:_0x62f4c7,options:_0x2cdf81})=>{if(_0x2cdf81[_0x21e5('0x8')])return _0x62f4c7[_0x21e5('0x1')]('div');},'converterPriority':_0x21e5('0x5')}),_0x2377e1[_0x21e5('0xa')][_0x21e5('0x9')]['on']('attribute:url:media',(_0x4ea0b2,_0x4500a5,_0x5373cd)=>{_0x5373cd[_0x21e5('0xb')][_0x21e5('0x8')]&&_0x4ea0b2[_0x21e5('0xd')]();},{'priority':_0x21e5('0x5')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c98=['enableCommand','get','TrackChangesEditing','MentionEditing','has','plugins','editor','mention'];(function(_0x5d3034,_0x2c9883){const _0x2a18cc=function(_0x984aa4){while(--_0x984aa4){_0x5d3034['push'](_0x5d3034['shift']());}};_0x2a18cc(++_0x2c9883);}(_0x2c98,0x1eb));const _0x2a18=function(_0x5d3034,_0x2c9883){_0x5d3034=_0x5d3034-0x0;let _0x2a18cc=_0x2c98[_0x5d3034];return _0x2a18cc;};import{Plugin as _0x561b5e}from'ckeditor5/src/core';export default class rt extends _0x561b5e{['afterInit'](){const _0x1f221a=this[_0x2a18('0x3')];_0x1f221a['plugins'][_0x2a18('0x1')](_0x2a18('0x0'))&&_0x1f221a[_0x2a18('0x2')][_0x2a18('0x6')](_0x2a18('0x7'))[_0x2a18('0x5')](_0x2a18('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x628f=['PageBreakEditing','registerElementLabel','_descriptionFactory','editor','ELEMENT_PAGE_BREAK','enableCommand','TrackChangesEditing','get','has','plugins','pageBreak'];(function(_0xa073e3,_0x628fb8){const _0x179a66=function(_0x3344e9){while(--_0x3344e9){_0xa073e3['push'](_0xa073e3['shift']());}};_0x179a66(++_0x628fb8);}(_0x628f,0x8e));const _0x179a=function(_0xa073e3,_0x628fb8){_0xa073e3=_0xa073e3-0x0;let _0x179a66=_0x628f[_0xa073e3];return _0x179a66;};import{Plugin as _0x148221}from'ckeditor5/src/core';import{getTranslation as _0x3fee4f}from'../utils/common-translations';export default class at extends _0x148221{['afterInit'](){const _0x394a8b=this[_0x179a('0x4')];if(!_0x394a8b['plugins'][_0x179a('0x9')](_0x179a('0x1')))return;_0x394a8b['plugins'][_0x179a('0x8')](_0x179a('0x7'))[_0x179a('0x6')]('pageBreak');const _0x2211c1=_0x394a8b[_0x179a('0xa')][_0x179a('0x8')]('TrackChangesEditing'),_0x260316=_0x394a8b['locale'];_0x2211c1[_0x179a('0x3')][_0x179a('0x2')](_0x179a('0x0'),_0x220a5e=>_0x3fee4f(_0x260316,_0x179a('0x5'),_0x220a5e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3eea=['blockName','selection','getFirstRange','editing','isObject','paragraph','end','activeMarkers','consumable','isTouching','registerDescriptionCallback','markerRange','schema','addClass','change','addMarker:suggestion:insertion','ck-suggestion-marker-split','locale','$text','get','has','checkChild','downcastDispatcher','markerName','filter','ELEMENT_PARAGRAPH','enableCommand','start','_descriptionFactory','model','ck-suggestion-marker--active','*Insert:*\x20%0','editor','isBlock','registerElementLabel','createUIElement','getSelectedBlocks','document','writer','plugins','getItemLabel','toViewPosition','commandName','data','name','markBlockFormat','insertion','TrackChangesEditing','*Change\x20to:*\x20%0','nodeAfter','showSuggestionHighlights','span','parent','bindElementToMarker'];(function(_0x5037b8,_0x3eeaf5){const _0x3335dc=function(_0x2d4939){while(--_0x2d4939){_0x5037b8['push'](_0x5037b8['shift']());}};_0x3335dc(++_0x3eeaf5);}(_0x3eea,0x79));const _0x3335=function(_0x5037b8,_0x3eeaf5){_0x5037b8=_0x5037b8-0x0;let _0x3335dc=_0x3eea[_0x5037b8];return _0x3335dc;};import{Plugin as _0x392af0}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x3799cd}from'./utils';import{getTranslation as _0x54a19d}from'../utils/common-translations';export default class ct extends _0x392af0{['afterInit'](){const _0x73ae22=this[_0x3335('0x13')];if(!_0x73ae22['plugins'][_0x3335('0x7')]('Paragraph'))return;const _0x10ede1=_0x73ae22[_0x3335('0x4')],_0x24a62f=_0x73ae22[_0x3335('0x1a')][_0x3335('0x6')](_0x3335('0x22'));_0x24a62f[_0x3335('0xf')][_0x3335('0x15')](_0x3335('0x2e'),_0x5c1284=>_0x54a19d(_0x10ede1,'ELEMENT_PARAGRAPH',_0x5c1284)),_0x24a62f['enableCommand'](_0x3335('0x2e'),(_0x241105,_0x481158={})=>{const _0x460be4=_0x73ae22[_0x3335('0x10')][_0x3335('0x18')],_0x509378=_0x481158[_0x3335('0x2a')]||_0x460be4['selection'],_0x41a6fc=Array['from'](_0x509378[_0x3335('0x17')]())[_0x3335('0xb')](_0x242a28=>function(_0x14874a,_0x29e419){return _0x29e419[_0x3335('0x8')](_0x14874a[_0x3335('0x27')],_0x3335('0x2e'))&&!_0x29e419[_0x3335('0x2d')](_0x14874a)&&_0x3335('0x2e')!=_0x14874a[_0x3335('0x1f')];}(_0x242a28,this[_0x3335('0x13')][_0x3335('0x10')][_0x3335('0x35')]));_0x73ae22[_0x3335('0x10')][_0x3335('0x1')](()=>{for(const _0x36d4f9 of _0x41a6fc)_0x24a62f[_0x3335('0x20')](_0x36d4f9,{'commandName':_0x3335('0x2e'),'commandParams':[],'formatGroupId':_0x3335('0x29')},_0x3799cd(_0x36d4f9));});}),_0x24a62f[_0x3335('0xf')][_0x3335('0x33')](_0x240a5a=>{const {data:_0x3d099c}=_0x240a5a;if(_0x3d099c&&_0x3335('0x2e')==_0x3d099c[_0x3335('0x1d')])return{'type':'format','content':_0x54a19d(_0x10ede1,_0x3335('0x23'),_0x54a19d(_0x10ede1,_0x3335('0xc')))};}),_0x24a62f[_0x3335('0xd')]('insertParagraph'),_0x73ae22[_0x3335('0x2c')][_0x3335('0x9')]['on'](_0x3335('0x2'),ar(_0x73ae22),{'priority':'highest'}),_0x73ae22[_0x3335('0x1e')][_0x3335('0x9')]['on'](_0x3335('0x2'),(_0x393ef9,_0x1dcfe3,_0x1cc907)=>{_0x1cc907['options'][_0x3335('0x25')]&&ar(_0x73ae22,{'showActiveMarker':!0x1})(_0x393ef9,_0x1dcfe3,_0x1cc907);},{'priority':'highest'});const _0x1322cf=_0x24a62f['_descriptionFactory'];_0x1322cf[_0x3335('0x33')](_0x126484=>{if(_0x3335('0x21')!==_0x126484['type'])return;const {start:_0x5570f8,end:_0x3c407a}=_0x126484[_0x3335('0x2b')]();if(!_0x5570f8['isTouching'](_0x3c407a)||!_0x5570f8['nodeAfter'])return;const _0x33aea4=_0x73ae22[_0x3335('0x10')][_0x3335('0x35')],_0x6be88d=_0x5570f8[_0x3335('0x24')];return _0x33aea4[_0x3335('0x14')](_0x6be88d)&&!_0x33aea4['isLimit'](_0x6be88d)&&_0x33aea4[_0x3335('0x8')](_0x6be88d,_0x3335('0x5'))?{'type':'insertion','content':_0x54a19d(_0x10ede1,_0x3335('0x12'),_0x1322cf[_0x3335('0x1b')](_0x6be88d,0x1))}:void 0x0;});}}function ar(_0x542cd6,{showActiveMarker:_0x1b731e=!0x0}={}){return(_0x405531,_0x2fd6f5,_0x2546c3)=>{const _0x339015=_0x542cd6[_0x3335('0x1a')][_0x3335('0x6')](_0x3335('0x22')),_0x73d9c8=_0x2fd6f5[_0x3335('0x34')][_0x3335('0xe')],_0x303941=_0x2fd6f5['markerRange'][_0x3335('0x2f')],_0x3ee4a1=_0x542cd6[_0x3335('0x10')]['schema'];if(!_0x73d9c8[_0x3335('0x32')](_0x303941)||!_0x73d9c8[_0x3335('0x24')])return;const _0x3ef4cd=_0x73d9c8[_0x3335('0x24')];if(_0x3ee4a1[_0x3335('0x14')](_0x3ef4cd)&&!_0x3ee4a1['isLimit'](_0x3ef4cd)&&_0x3ee4a1[_0x3335('0x8')](_0x3ef4cd,'$text')){if(!_0x2546c3[_0x3335('0x31')]['consume'](_0x2fd6f5[_0x3335('0x34')],_0x405531[_0x3335('0x1f')]))return;const _0x5a2835=_0x2546c3[_0x3335('0x19')][_0x3335('0x16')](_0x3335('0x26'),{'class':_0x3335('0x3')}),_0x7ff5a2=_0x2546c3['mapper'][_0x3335('0x1c')](_0x303941);_0x1b731e&&_0x339015[_0x3335('0x30')]['includes'](_0x2fd6f5['markerName'])&&_0x2546c3['writer'][_0x3335('0x0')](_0x3335('0x11'),_0x5a2835),_0x2546c3[_0x3335('0x19')]['insert'](_0x7ff5a2,_0x5a2835),_0x2546c3['mapper'][_0x3335('0x28')](_0x5a2835,_0x2fd6f5[_0x3335('0xa')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x658a=['markInlineFormat','from','registerDescriptionCallback','isFormatting','locale','afterInit','change','createRangeOn','editor','format','removeFormat','plugins','_descriptionFactory','TrackChangesEditing','schema','document','getAttributes','isCollapsed','has','model'];(function(_0xbbdee5,_0x658a52){const _0x348f32=function(_0x50c992){while(--_0x50c992){_0xbbdee5['push'](_0xbbdee5['shift']());}};_0x348f32(++_0x658a52);}(_0x658a,0x95));const _0x348f=function(_0xbbdee5,_0x658a52){_0xbbdee5=_0xbbdee5-0x0;let _0x348f32=_0x658a[_0xbbdee5];return _0x348f32;};import{Plugin as _0x86549c}from'ckeditor5/src/core';import{getTranslation as _0x568251}from'../utils/common-translations';export default class ht extends _0x86549c{[_0x348f('0x10')](){const _0x255265=this[_0x348f('0x13')];if(!_0x255265[_0x348f('0x2')][_0x348f('0x9')]('RemoveFormatEditing'))return;const _0x467eb4=_0x255265['plugins']['get'](_0x348f('0x4'));_0x467eb4['enableCommand']('removeFormat',_0x110d0b=>{const _0x28e51c=_0x255265[_0x348f('0xa')][_0x348f('0x6')]['selection'];_0x28e51c[_0x348f('0x8')]?_0x110d0b():_0x255265[_0x348f('0xa')][_0x348f('0x11')](()=>{const _0x46ab7c=Array[_0x348f('0xc')](_0x28e51c['getRanges']());for(const _0x13a969 of _0x46ab7c)for(const _0x6ea194 of _0x13a969['getItems']())eo(_0x6ea194,_0x255265['model'][_0x348f('0x5')])&&_0x467eb4[_0x348f('0xb')](_0x255265[_0x348f('0xa')][_0x348f('0x12')](_0x6ea194),{'commandName':_0x348f('0x1'),'commandParams':[]});});}),_0x467eb4[_0x348f('0x3')][_0x348f('0xd')](_0x3f384f=>{const {data:_0x1948a7}=_0x3f384f;if(_0x1948a7&&_0x348f('0x1')==_0x1948a7['commandName'])return{'type':_0x348f('0x0'),'content':_0x568251(_0x255265[_0x348f('0xf')],'*Remove\x20all\x20formatting*')};});}}function eo(_0x1e146f,_0x4258bd){for(const [_0x155a34]of _0x1e146f[_0x348f('0x7')]()){const _0x5610c3=_0x4258bd['getAttributeProperties'](_0x155a34);if(_0x5610c3&&_0x5610c3[_0x348f('0xe')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfc46=['discardSuggestion','discardSelectedSuggestions','goToNextRestrictedEditingException','RestrictedEditingModeEditing','enableCommand','has','trackChanges','goToPreviousRestrictedEditingException','plugins','get','editor','acceptAllSuggestions','discardAllSuggestions','acceptSuggestion','afterInit','TrackChangesEditing'];(function(_0xcc55dd,_0xfc46f0){const _0x2fe4c8=function(_0x3c272d){while(--_0x3c272d){_0xcc55dd['push'](_0xcc55dd['shift']());}};_0x2fe4c8(++_0xfc46f0);}(_0xfc46,0x99));const _0x2fe4=function(_0xcc55dd,_0xfc46f0){_0xcc55dd=_0xcc55dd-0x0;let _0x2fe4c8=_0xfc46[_0xcc55dd];return _0x2fe4c8;};import{Plugin as _0x46df07}from'ckeditor5/src/core';export default class ut extends _0x46df07{[_0x2fe4('0x5')](){const _0x34440c=this[_0x2fe4('0x1')];if(!_0x34440c['plugins'][_0x2fe4('0xc')]('RestrictedEditingModeEditing'))return;const _0xb67361=_0x34440c[_0x2fe4('0xf')]['get'](_0x2fe4('0x6'));_0xb67361[_0x2fe4('0xb')](_0x2fe4('0xe')),_0xb67361['enableCommand'](_0x2fe4('0x9'));const _0x2e5792=_0x34440c[_0x2fe4('0xf')][_0x2fe4('0x0')](_0x2fe4('0xa'));_0x2e5792['enableCommand'](_0x2fe4('0xd')),_0x2e5792[_0x2fe4('0xb')](_0x2fe4('0x4')),_0x2e5792[_0x2fe4('0xb')](_0x2fe4('0x7')),_0x2e5792[_0x2fe4('0xb')](_0x2fe4('0x2')),_0x2e5792[_0x2fe4('0xb')](_0x2fe4('0x3')),_0x2e5792[_0x2fe4('0xb')]('acceptSelectedSuggestions'),_0x2e5792[_0x2fe4('0xb')](_0x2fe4('0x8'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5975=['mapper','markerName','enableCommand','showSuggestionHighlights','addMarker:suggestion:deletion','model','ELEMENT_LINE_BREAK','span','downcastDispatcher','merge','test','deletion','get','options','markerRange','TrackChangesEditing','name','createPositionBefore','_descriptionFactory','plugins','softBreak','bindElementToMarker','writer','registerElementLabel','createUIElement','shiftEnter','data','high','consumable','addMarker:suggestion:insertion','editing','requires','toViewPosition','split','element','editor','activeMarkers'];(function(_0x5ac89b,_0x597575){const _0x2a71f1=function(_0x4bdcca){while(--_0x4bdcca){_0x5ac89b['push'](_0x5ac89b['shift']());}};_0x2a71f1(++_0x597575);}(_0x5975,0x1e1));const _0x2a71=function(_0x5ac89b,_0x597575){_0x5ac89b=_0x5ac89b-0x0;let _0x2a71f1=_0x5975[_0x5ac89b];return _0x2a71f1;};import{Plugin as _0x1b6574}from'ckeditor5/src/core';import{ShiftEnter as _0x2b44f6}from'ckeditor5/src/enter';import{getTranslation as _0x434995}from'../utils/common-translations';export default class ft extends _0x1b6574{static get[_0x2a71('0x1f')](){return[_0x2b44f6];}['init'](){const _0x34cb5b=this[_0x2a71('0x23')],_0x1126b5=_0x34cb5b[_0x2a71('0x13')][_0x2a71('0xc')](_0x2a71('0xf'));_0x1126b5[_0x2a71('0x2')](_0x2a71('0x19')),_0x34cb5b[_0x2a71('0x1e')][_0x2a71('0x8')]['on'](_0x2a71('0x1d'),re(_0x34cb5b),{'priority':_0x2a71('0x1b')}),_0x34cb5b[_0x2a71('0x1e')]['downcastDispatcher']['on'](_0x2a71('0x4'),re(_0x34cb5b),{'priority':'high'}),_0x34cb5b[_0x2a71('0x1a')][_0x2a71('0x8')]['on']('addMarker:suggestion',(_0x10c431,_0x22f4f9,_0x2eed18)=>{_0x2eed18[_0x2a71('0xd')][_0x2a71('0x3')]&&re(_0x34cb5b,{'showActiveMarker':!0x1})(_0x10c431,_0x22f4f9,_0x2eed18);}),_0x1126b5[_0x2a71('0x12')][_0x2a71('0x17')](_0x2a71('0x14'),_0x20c016=>_0x434995(_0x34cb5b['locale'],_0x2a71('0x6'),_0x20c016));}}function re(_0x2eea15,{showActiveMarker:_0x3cd57c=!0x0}={}){return(_0x553646,_0x345987,_0x125b49)=>{const _0xe68dbc=_0x2eea15[_0x2a71('0x13')][_0x2a71('0xc')](_0x2a71('0xf'));if(!_0x125b49[_0x2a71('0x1c')][_0x2a71('0xa')](_0x345987[_0x2a71('0xe')],_0x553646[_0x2a71('0x10')]))return;const _0x26efd3=_0x2eea15[_0x2a71('0x5')];for(const _0x40ccc4 of _0x345987[_0x2a71('0xe')]['getItems']()){if(!_0x40ccc4['is'](_0x2a71('0x22'),_0x2a71('0x14')))continue;const _0x5950bc=_0x2a71('0xb')==_0x345987[_0x2a71('0x1')][_0x2a71('0x21')](':')[0x1]?_0x2a71('0x9'):_0x2a71('0x21'),_0x4f3e31=_0x125b49[_0x2a71('0x16')][_0x2a71('0x18')](_0x2a71('0x7'),{'class':'ck-suggestion-marker-'+_0x5950bc}),_0x10b65c=_0x125b49[_0x2a71('0x0')][_0x2a71('0x20')](_0x26efd3[_0x2a71('0x11')](_0x40ccc4));_0x3cd57c&&_0xe68dbc[_0x2a71('0x24')]['includes'](_0x345987[_0x2a71('0x1')])&&_0x125b49[_0x2a71('0x16')]['addClass']('ck-suggestion-marker--active',_0x4f3e31),_0x125b49[_0x2a71('0x16')]['insert'](_0x10b65c,_0x4f3e31),_0x125b49[_0x2a71('0x0')][_0x2a71('0x15')](_0x4f3e31,_0x345987[_0x2a71('0x1')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1afa=['commands','registerDescriptionCallback','locale','TrackChangesEditing','get','plugins','selection','document','_descriptionFactory','model','StandardEditingModeEditing','forceValue','getRanges','afterInit','restrictedEditingException','markInlineFormat','FORMAT_RESTRICTED_ENABLED','change','commandName','format','value'];(function(_0x123208,_0x1afafc){const _0x1f3117=function(_0x24543e){while(--_0x24543e){_0x123208['push'](_0x123208['shift']());}};_0x1f3117(++_0x1afafc);}(_0x1afa,0xb0));const _0x1f31=function(_0x123208,_0x1afafc){_0x123208=_0x123208-0x0;let _0x1f3117=_0x1afa[_0x123208];return _0x1f3117;};import{Plugin as _0x4ed224}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x337614}from'./utils';import{getTranslation as _0x55e151}from'../utils/common-translations';export default class lt extends _0x4ed224{[_0x1f31('0x5')](){const _0x5f0f70=this['editor'],_0x548dc4=_0x5f0f70[_0x1f31('0x1')],_0x5e1c42=_0x5f0f70[_0x1f31('0xf')];if(!_0x5f0f70['plugins']['has'](_0x1f31('0x2')))return;const _0x35558c=_0x5f0f70[_0x1f31('0x12')][_0x1f31('0x11')](_0x1f31('0x10')),_0x45f7ac=_0x1f31('0x6'),_0x26fb89=_0x5f0f70[_0x1f31('0xd')][_0x1f31('0x11')](_0x45f7ac);_0x35558c['enableCommand'](_0x45f7ac,(_0xcf55c,_0x30aa4a={})=>{const _0x1ecbe5=_0x548dc4[_0x1f31('0x14')][_0x1f31('0x13')];if(_0x1ecbe5['isCollapsed'])return void _0xcf55c(_0x30aa4a);const _0x3f2e8c=void 0x0!==_0x30aa4a[_0x1f31('0x3')]?_0x30aa4a['forceValue']:!_0x26fb89[_0x1f31('0xc')];_0x548dc4[_0x1f31('0x9')](()=>{const _0x36196a=Array['from'](_0x1ecbe5[_0x1f31('0x4')]());for(const _0x2304bd of _0x36196a){const _0x7dcd9c=_0x3f2e8c?[_0x2304bd]:_0x337614(_0x45f7ac,_0x2304bd,_0x548dc4);for(const _0x40bafb of _0x7dcd9c)_0x35558c[_0x1f31('0x7')](_0x40bafb,{'commandName':_0x45f7ac,'commandParams':[{'forceValue':_0x3f2e8c}]});}});}),_0x35558c[_0x1f31('0x0')][_0x1f31('0xe')](_0x5de770=>{const {data:_0x2c308c}=_0x5de770;if(_0x2c308c&&_0x2c308c[_0x1f31('0xa')]==_0x45f7ac)return _0x2c308c['commandParams'][0x0][_0x1f31('0x3')]?{'type':_0x1f31('0xb'),'content':_0x55e151(_0x5e1c42,_0x1f31('0x8'))}:{'type':_0x1f31('0xb'),'content':_0x55e151(_0x5e1c42,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x393b=['name','find','enabledStyles','createRangeOn','styleName','afterInit','enableCommand','_getStyleDefinition','normalizeConfig','commands','change','getAttribute','DataSchema','StyleUtils','style.definitions','isCollapsed','markInlineFormat','commandParams','_descriptionFactory','style','has','modelElements','get','inline','format','getSelectedBlocks','locale','config','model','push','_getRangesWithClasses','plugins','*Format:*\x20%0','getDefinitionsForView','selection','from','registerDescriptionCallback','document','*Remove\x20format:*\x20%0','every','markBlockFormat','getItems','commandName','Style','isBlock','forceValue','style:','block','includes','classes'];(function(_0x20a910,_0x393b97){const _0x50821e=function(_0x5f5858){while(--_0x5f5858){_0x20a910['push'](_0x20a910['shift']());}};_0x50821e(++_0x393b97);}(_0x393b,0xed));const _0x5082=function(_0x20a910,_0x393b97){_0x20a910=_0x20a910-0x0;let _0x50821e=_0x393b[_0x20a910];return _0x50821e;};import{Plugin as _0x2587f4}from'ckeditor5/src/core';import{getTranslation as _0x84186b}from'../utils/common-translations';export default class gt extends _0x2587f4{[_0x5082('0x12')](){const _0x2b8a65=this['editor'];if(!_0x2b8a65['plugins'][_0x5082('0x21')](_0x5082('0x6')))return;const _0x4ff2c0=_0x2b8a65[_0x5082('0x16')]['get'](_0x5082('0x20')),_0x1eb213=_0x2b8a65['plugins'][_0x5082('0x23')]('TrackChangesEditing'),_0x3b28d9=_0x2b8a65[_0x5082('0x27')],_0x18713e=_0x2b8a65[_0x5082('0x2c')][_0x5082('0x23')](_0x5082('0x19')),_0x2dadc2=_0x2b8a65[_0x5082('0x2c')][_0x5082('0x23')](_0x5082('0x1a'))[_0x5082('0x15')](_0x18713e,_0x2b8a65[_0x5082('0x28')]['get'](_0x5082('0x1b')));_0x1eb213[_0x5082('0x13')]('style',(_0x1eb95c,{styleName:_0x34e2ee})=>{const _0x5d363f=_0x2b8a65[_0x5082('0x29')][_0x5082('0x0')][_0x5082('0x2f')],_0x22873c=this[_0x5082('0x14')](_0x34e2ee,_0x2dadc2);if(!_0x22873c)return;if(!_0x4ff2c0[_0x5082('0xf')][_0x5082('0xb')](_0x34e2ee))return;if(_0x5d363f[_0x5082('0x1c')]&&!_0x22873c[_0x5082('0x7')])return void _0x1eb95c({'styleName':_0x34e2ee});const _0xaae4c9=!_0x4ff2c0['value'][_0x5082('0xb')](_0x22873c[_0x5082('0xd')]);if(_0x22873c['isBlock']){const _0xf28e6f=function(_0x4559e3,_0x1804b4){const _0xb69c9d=new Set();for(const _0x123de7 of _0x4559e3){const _0x249e95=_0x123de7['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x2f2637 of _0x249e95)if(_0x1804b4['includes'](_0x2f2637['name'])){_0xb69c9d['add'](_0x2f2637);break;}}return _0xb69c9d;}(_0x5d363f[_0x5082('0x26')](),_0x22873c[_0x5082('0x22')]);_0x2b8a65[_0x5082('0x29')][_0x5082('0x17')](()=>{for(const _0x29a4a6 of _0xf28e6f)_0x1eb213[_0x5082('0x3')](_0x29a4a6,{'commandName':_0x5082('0x20'),'commandParams':[{'styleName':_0x34e2ee,'forceValue':_0xaae4c9}],'formatGroupId':_0x5082('0x9')+_0x34e2ee});});}else{let _0x469aba=Array['from'](_0x5d363f['getRanges']());if(!_0xaae4c9){const _0x41c383=Array[_0x5082('0x30')](_0x18713e[_0x5082('0x2e')](_0x22873c['element'],!0x1))[0x0][_0x5082('0x29')],_0x57461b=[];for(const _0x65dfff of _0x469aba){const _0x3b5255=this[_0x5082('0x2b')](_0x2b8a65[_0x5082('0x29')],_0x65dfff,_0x22873c[_0x5082('0xc')],_0x41c383);_0x57461b[_0x5082('0x2a')](..._0x3b5255);}_0x469aba=_0x57461b;}_0x2b8a65[_0x5082('0x29')]['change'](()=>{for(const _0x4be177 of _0x469aba)_0x1eb213[_0x5082('0x1d')](_0x4be177,{'commandName':'style','commandParams':[{'styleName':_0x34e2ee,'forceValue':_0xaae4c9}]});});}}),_0x1eb213[_0x5082('0x1f')][_0x5082('0x31')](_0x646d1=>{const {data:_0xa3fe74}=_0x646d1;if(_0xa3fe74&&'style'===_0xa3fe74[_0x5082('0x5')])return _0xa3fe74['commandParams'][0x0][_0x5082('0x8')]?{'type':_0x5082('0x25'),'content':_0x84186b(_0x3b28d9,_0x5082('0x2d'),_0xa3fe74['commandParams'][0x0][_0x5082('0x11')]['toLowerCase']())}:{'type':_0x5082('0x25'),'content':_0x84186b(_0x3b28d9,_0x5082('0x1'),_0xa3fe74[_0x5082('0x1e')][0x0][_0x5082('0x11')]['toLowerCase']())};});}[_0x5082('0x14')](_0x50c258,_0x52e56b){let _0x13695e=_0x52e56b[_0x5082('0xa')][_0x5082('0xe')](_0x2e0a09=>_0x2e0a09[_0x5082('0xd')]===_0x50c258);return _0x13695e||(_0x13695e=_0x52e56b[_0x5082('0x24')][_0x5082('0xe')](_0x1cac2d=>_0x1cac2d[_0x5082('0xd')]===_0x50c258)),_0x13695e;}['_getRangesWithClasses'](_0x3aadff,_0x55a889,_0xa14178,_0x2e6be8){const _0x2ba28c=[];for(const _0x2c4e6e of _0x55a889[_0x5082('0x4')]()){const _0x211b82=_0x2c4e6e[_0x5082('0x18')](_0x2e6be8);_0x211b82&&(_0xa14178[_0x5082('0x2')](_0x588917=>_0x211b82['classes'][_0x5082('0xb')](_0x588917))&&_0x2ba28c[_0x5082('0x2a')](_0x3aadff[_0x5082('0x10')](_0x2c4e6e)));}return _0x2ba28c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3654=['push','deletion','cell','differ','insertTableRowAbove','insert','insertTableRowBelow','get','TrackChangesEditing','downcastDispatcher','position','_getCoordsForCells','table','subType','registerCustomCallback','insertTableColumnRight','*Remove:*\x20%0','isArray','join','MIN_SAFE_INTEGER','_descriptionFactory','_suggestionFactory','editor','removeTableColumn','root','accept','filter','markMultiRangeInsertion','end','tableRow','$textProxy','TableEditing','*Insert:*\x20%0','ELEMENT_TABLE_COLUMN','enqueueChange','above','batch','startsWith','getCellLocation','addClass','last','ELEMENT_TABLE_COLUMN_WITH_TEXT','getContainedElement','enableCommand','removeClass','ELEMENT_TABLE_ROW','getItems','start','removeTableRow','addRange','rowspan','findAncestor','isTouching','commands','substr','getRowIndexes','map','hasAttribute','fromRange','order','getChildren','type','item','minRow','span','insertion','_acceptFormatSuggestionCallbackFactory','classes','element','colspan','_tablePostFixingSubtypes','registerPostFixer','rootName','createTableWalker','getAttribute','_tableSuggestions','execute','_getSuggestionCoords','model','nodeBefore','first','insertTableColumnLeft','writer','ELEMENT_TABLE_WITH_TEXT','getRanges','selectTableColumn','toViewElement','getChanges','forceValue','length','some','afterInit','change','setSelection','_setupColumnsRowsFixing','createRangeOn','name','refresh','data','min','TableUtils','createRangeIn','createPositionAt','plugins','tableColumn','ELEMENT_TABLE_ROW_WITH_TEXT','document','detach','$graveyard','ELEMENT_TABLE','getSelectionAffectedTableCells','max','isEqual','toLowerCase','showSuggestionHighlights','change:data','options','isInContent','from','getColumnIndexes','highest','nodeAfter','discard','tableCell','selectTableRow','addMarker:suggestion','includes','selection'];(function(_0xbe95b3,_0x3654dd){const _0x5bcee1=function(_0x59dc14){while(--_0x59dc14){_0xbe95b3['push'](_0xbe95b3['shift']());}};_0x5bcee1(++_0x3654dd);}(_0x3654,0x96));const _0x5bce=function(_0xbe95b3,_0x3654dd){_0xbe95b3=_0xbe95b3-0x0;let _0x5bcee1=_0x3654[_0xbe95b3];return _0x5bcee1;};import{Plugin as _0x254eac}from'ckeditor5/src/core';import{LiveRange as _0x531dd9}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2375e2}from'ckeditor5/src/widget';import{getTranslation as _0x1b0091}from'../utils/common-translations';export default class mt extends _0x254eac{constructor(_0x65d37){super(_0x65d37),this[_0x5bce('0x30')]=[_0x5bce('0x7'),_0x5bce('0x52')],this[_0x5bce('0x35')]=new Set();}[_0x5bce('0x45')](){const _0x5691e8=this['editor'],_0x4621ee=_0x5691e8[_0x5bce('0x38')][_0x5bce('0x54')][_0x5bce('0x69')];if(!_0x5691e8[_0x5bce('0x51')]['has'](_0x5bce('0x9')))return;const _0x2bf04b=_0x5691e8['locale'],_0x103d32=_0x5691e8['plugins'][_0x5bce('0x71')](_0x5bce('0x72')),_0x596820=_0x5691e8[_0x5bce('0x51')]['get'](_0x5bce('0x4e'));_0x103d32[_0x5bce('0x7e')]['registerElementLabel'](_0x5bce('0x76'),_0x48b207=>_0x1b0091(_0x2bf04b,_0x5bce('0x57'),_0x48b207)),this[_0x5bce('0x48')](),_0x103d32['enableCommand']('insertTable'),_0x103d32[_0x5bce('0x15')](_0x5bce('0x66')),_0x103d32['enableCommand'](_0x5bce('0x3f'));for(const _0x35afe7 of[_0x5bce('0x6e'),_0x5bce('0x70')]){const _0x4f081b=_0x5691e8[_0x5bce('0x1f')]['get'](_0x35afe7);_0x103d32[_0x5bce('0x15')](_0x35afe7,_0x144265=>{_0x5691e8[_0x5bce('0x38')][_0x5bce('0x46')](_0x1494ec=>{_0x144265();const _0x3aa283=_0x5bce('0xd')===_0x4f081b[_0x5bce('0x25')],_0x29b9c9=_0x596820[_0x5bce('0x58')](_0x4621ee),_0x194c32=_0x596820[_0x5bce('0x21')](_0x29b9c9),_0x2e7fb1=_0x3aa283?_0x194c32[_0x5bce('0x3a')]-0x1:_0x194c32['last']+0x1,_0x3bf5f0=_0x29b9c9[0x0]['findAncestor'](_0x5bce('0x76')),_0x46d75e=_0x596820[_0x5bce('0x33')](_0x3bf5f0,{'startRow':_0x2e7fb1,'endRow':_0x2e7fb1}),_0x46b802=Array['from'](_0x46d75e)[_0x5bce('0x22')](_0x41f1a5=>_0x1494ec[_0x5bce('0x49')](_0x41f1a5[_0x5bce('0x6c')]));_0x103d32[_0x5bce('0x5')](_0x46b802,_0x5bce('0x7'));});});}for(const _0x37cfe4 of[_0x5bce('0x3b'),_0x5bce('0x79')]){const _0x5e4f0e=_0x5691e8[_0x5bce('0x1f')][_0x5bce('0x71')](_0x37cfe4);_0x103d32[_0x5bce('0x15')](_0x37cfe4,_0x46ec8c=>{_0x5691e8[_0x5bce('0x38')][_0x5bce('0x46')](_0x5675a0=>{_0x46ec8c();const _0x325647='left'===_0x5e4f0e[_0x5bce('0x25')],_0x459a60=_0x596820[_0x5bce('0x58')](_0x4621ee),_0x11ba7b=_0x596820[_0x5bce('0x61')](_0x459a60),_0x598824=_0x325647?_0x11ba7b[_0x5bce('0x3a')]-0x1:_0x11ba7b[_0x5bce('0x12')]+0x1,_0x291407=_0x459a60[0x0][_0x5bce('0x1d')]('table'),_0x2c61da=_0x596820['createTableWalker'](_0x291407,{'startRow':0x0,'column':_0x598824,'includeAllSlots':!0x1}),_0x5739fa=Array['from'](_0x2c61da)[_0x5bce('0x22')](_0x5e44b5=>_0x5675a0[_0x5bce('0x49')](_0x5e44b5[_0x5bce('0x6c')]));_0x103d32[_0x5bce('0x5')](_0x5739fa,_0x5bce('0x52'));});});}for(const _0x154867 of['removeTableRow',_0x5bce('0x1')]){const _0x3dfcaa=_0x154867[_0x5bce('0x20')](0xb),_0x58a7d6=_0x3dfcaa[_0x5bce('0x5b')](),_0x41ac8f=_0x58a7d6[_0x5bce('0x20')](0x0,0x3)+'span',_0x2c8db0=_0x5bce('0x76')+_0x3dfcaa,_0x37dff0=_0x5bce('0x4d')+_0x3dfcaa,_0x2aa05f=_0x5bce('0x59')+_0x3dfcaa;_0x103d32['enableCommand'](_0x154867,()=>{_0x5691e8['model'][_0x5bce('0x46')](_0x2ba94d=>{const _0x29c19b=_0x596820[_0x5bce('0x58')](_0x4621ee),_0x51b9e4=_0x29c19b[0x0][_0x5bce('0x1d')](_0x5bce('0x76'));let _0x3f2422;if(_0x5bce('0x1a')==_0x154867){const _0x620663=_0x596820[_0x5bce('0x21')](_0x29c19b);_0x3f2422={'startRow':_0x620663[_0x5bce('0x3a')],'endRow':_0x620663[_0x5bce('0x12')],'includeAllSlots':!0x0};}else{const _0x90d4c2=_0x596820[_0x5bce('0x61')](_0x29c19b);_0x3f2422={'startColumn':_0x90d4c2[_0x5bce('0x3a')],'endColumn':_0x90d4c2['last'],'includeAllSlots':!0x0};}const _0x52b27e=_0x596820[_0x5bce('0x33')](_0x51b9e4,_0x3f2422),_0x20c185=Array[_0x5bce('0x60')](_0x52b27e)[_0x5bce('0x22')](({cell:_0x4cc96a})=>_0x4cc96a),_0x16fe17=se(_0x20c185[_0x5bce('0x4')](_0xeb4dcb=>_0xeb4dcb[_0x5bce('0x23')](_0x41ac8f))),_0x21006d=se(_0x20c185[_0x5bce('0x4')](_0x261ef8=>!_0x261ef8[_0x5bce('0x23')](_0x41ac8f)))['map'](_0x85ffce=>_0x2ba94d['createRangeOn'](_0x85ffce)),_0x4443ad=_0x103d32['markMultiRangeDeletion'](_0x21006d,_0x2c8db0);if(_0x4443ad&&(_0x5bce('0x7')==_0x4443ad[_0x5bce('0x77')]||_0x5bce('0x52')==_0x4443ad['subType'])){const _0x5aaa9a=this[_0x5bce('0x37')](_0x4443ad);for(const _0x5a4242 of _0x16fe17){const _0x2c4667=_0x2ba94d['createRangeOn'](_0x5a4242),_0x461e30=_0x596820[_0x5bce('0x10')](_0x5a4242),_0x241c18=_0x5a4242[_0x5bce('0x34')](_0x41ac8f)-0x1,_0x192bc3=_0x5aaa9a[_0x37dff0],_0x497d73=_0x5aaa9a[_0x2aa05f];_0x192bc3<=_0x461e30[_0x58a7d6]&&_0x461e30[_0x58a7d6]+_0x241c18<=_0x497d73&&_0x4443ad['addRange'](_0x2c4667);}}});});}function _0x50840d(_0x54859b){const _0x5bc812=Array[_0x5bce('0x60')](_0x4621ee[_0x5bce('0x3e')]())[_0x5bce('0x22')](_0x30197d=>_0x531dd9[_0x5bce('0x24')](_0x30197d));_0x5691e8[_0x5bce('0x38')][_0x5bce('0x46')](_0x4dbbe2=>{const _0x382096=_0x4dbbe2[_0x5bce('0xe')];_0x54859b=_0x54859b[_0x5bce('0x4')](_0x4f4a24=>_0x5bce('0x56')!=_0x4f4a24[_0x5bce('0x2')][_0x5bce('0x32')]),_0x4dbbe2['setSelection'](_0x54859b),_0x5691e8[_0x5bce('0x1f')][_0x5bce('0x71')](_0x5bce('0x1a'))['refresh'](),_0x5691e8[_0x5bce('0x36')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5691e8[_0x5bce('0x38')][_0x5bce('0xc')](()=>{_0x5691e8[_0x5bce('0x38')][_0x5bce('0xc')](_0x382096,_0x25813c=>{const _0x43cfd0=_0x5bc812[_0x5bce('0x4')](_0x973cc3=>_0x5bce('0x56')!=_0x973cc3[_0x5bce('0x2')][_0x5bce('0x32')]);_0x43cfd0['length']>0x0&&_0x25813c[_0x5bce('0x47')](_0x43cfd0);for(const _0x39d27c of _0x5bc812)_0x39d27c['detach']();});});});}function _0x289ce7(_0x19e96e){_0x5691e8['model']['change'](_0x396687=>{const _0x2ae42d=Array[_0x5bce('0x60')](_0x4621ee[_0x5bce('0x3e')]())['map'](_0x5948a2=>_0x531dd9[_0x5bce('0x24')](_0x5948a2)),_0x2a9912=[];for(const _0x1cf4b2 of _0x19e96e)for(const _0x59e3c4 of _0x1cf4b2['getItems']({'shallow':!0x0}))_0x2a9912[_0x5bce('0x6a')](_0x59e3c4);for(const _0x589bb3 of _0x2a9912)_0x5bce('0x56')!=_0x589bb3[_0x5bce('0x2')][_0x5bce('0x32')]&&(_0x396687[_0x5bce('0x47')](_0x396687[_0x5bce('0x50')](_0x589bb3,0x0)),_0x5691e8[_0x5bce('0x1f')][_0x5bce('0x71')]('removeTableColumn')[_0x5bce('0x4b')](),_0x5691e8['execute'](_0x5bce('0x1'),{'forceDefaultExecution':!0x0}));const _0x53eb19=_0x2ae42d[_0x5bce('0x4')](_0x481b9a=>_0x5bce('0x56')!=_0x481b9a[_0x5bce('0x2')][_0x5bce('0x32')]);_0x53eb19[_0x5bce('0x43')]>0x0&&_0x396687[_0x5bce('0x47')](_0x53eb19);for(const _0xe614e9 of _0x2ae42d)_0xe614e9['detach']();});}function _0x2e69cf(_0x1e1e0f,_0x1bd010){return _0x1bd010['every'](_0x3eea26=>_0x1e1e0f[_0x5bce('0x44')](_0x2b6357=>_0x2b6357[_0x5bce('0x6')][_0x5bce('0x5a')](_0x3eea26[_0x5bce('0x19')])||_0x3eea26['end'][_0x5bce('0x5a')](_0x2b6357[_0x5bce('0x19')])));}function _0x2383f5(_0x1c5a36,_0xda836d){return _0x1c5a36['some'](_0x48f268=>_0xda836d['some'](_0x399314=>_0x48f268[_0x5bce('0x6')][_0x5bce('0x1e')](_0x399314['start'])));}_0x5691e8[_0x5bce('0x4c')][_0x5bce('0x73')]['on'](_0x5bce('0x67'),(_0x8bb359,_0x524c8e,_0x382521)=>{if(!_0x382521[_0x5bce('0x5e')][_0x5bce('0x5c')])return;const _0x1543ce=_0x524c8e[_0x5bce('0x28')];if(!_0x1543ce)return;const _0x54a0ed=_0x382521['mapper'][_0x5bce('0x40')](_0x1543ce);function _0x1bca5b(_0x30559f){return Array[_0x5bce('0x7b')](_0x30559f)?_0x30559f:[_0x30559f];}_0x54a0ed&&_0x5bce('0x65')===_0x1543ce[_0x5bce('0x4a')]&&_0x2375e2(_0x54a0ed,_0x382521[_0x5bce('0x3c')],(_0x4790bd,_0xe7093b,_0x32dc98)=>_0x32dc98[_0x5bce('0x11')](_0x1bca5b(_0xe7093b['classes']),_0x4790bd),(_0xb1ed0e,_0x4d2ce6,_0x483f1c)=>_0x483f1c[_0x5bce('0x16')](_0x1bca5b(_0x4d2ce6[_0x5bce('0x2d')]),_0xb1ed0e));},{'priority':_0x5bce('0x62')}),_0x103d32[_0x5bce('0x7e')]['registerDescriptionCallback'](_0x1a3252=>{if(_0x5bce('0x2b')!=_0x1a3252[_0x5bce('0x27')]&&'deletion'!=_0x1a3252[_0x5bce('0x27')])return;const _0x2da5a2=_0x1a3252[_0x5bce('0x14')]();if(null!=_0x2da5a2&&_0x2da5a2['is'](_0x5bce('0x2e'),_0x5bce('0x76'))){if(_0x5bce('0x2b')==_0x1a3252[_0x5bce('0x27')]){const _0x1576ff=_0x1a3252[_0x5bce('0x18')]()['filter'](_0x120279=>_0x120279['is']('$textProxy'))[_0x5bce('0x22')](_0x351b95=>_0x351b95[_0x5bce('0x4c')]);if(_0x1576ff[_0x5bce('0x43')])return{'type':_0x5bce('0x2b'),'content':_0x1b0091(_0x2bf04b,_0x5bce('0xa'),_0x1b0091(_0x2bf04b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1576ff['join']('\x20')+'\x22'))};}if('deletion'==_0x1a3252[_0x5bce('0x27')]){const _0x28759f=_0x1a3252['getItems']()[_0x5bce('0x4')](_0x3be6c6=>_0x3be6c6['is'](_0x5bce('0x8')))[_0x5bce('0x22')](_0x26d648=>_0x26d648[_0x5bce('0x4c')]);if(_0x28759f[_0x5bce('0x43')])return{'type':'deletion','content':_0x1b0091(_0x2bf04b,_0x5bce('0x7a'),_0x1b0091(_0x2bf04b,_0x5bce('0x3d'),'\x22'+_0x28759f[_0x5bce('0x7c')]('\x20')+'\x22'))};}}}),_0x103d32['_descriptionFactory']['registerDescriptionCallback'](_0x4bfb17=>{if('tableRow'==_0x4bfb17[_0x5bce('0x77')]){const _0x4f7b8f=_0x4bfb17[_0x5bce('0x18')]()[_0x5bce('0x4')](_0xade855=>_0xade855['is'](_0x5bce('0x8')))['map'](_0x12fe3f=>_0x12fe3f[_0x5bce('0x4c')]),_0x1ad6bf=this[_0x5bce('0x37')](_0x4bfb17),_0x37b1f8=_0x1ad6bf['maxRow']-_0x1ad6bf[_0x5bce('0x29')]+0x1;if(_0x5bce('0x2b')==_0x4bfb17['type'])return _0x4f7b8f[_0x5bce('0x43')]?{'type':_0x5bce('0x2b'),'content':_0x1b0091(_0x2bf04b,_0x5bce('0xa'),_0x1b0091(_0x2bf04b,_0x5bce('0x53'),[_0x37b1f8,'\x22'+_0x4f7b8f['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x1b0091(_0x2bf04b,'*Insert:*\x20%0',_0x1b0091(_0x2bf04b,_0x5bce('0x17'),_0x37b1f8))};if(_0x5bce('0x6b')==_0x4bfb17['type'])return _0x4f7b8f[_0x5bce('0x43')]?{'type':_0x5bce('0x6b'),'content':_0x1b0091(_0x2bf04b,_0x5bce('0x7a'),_0x1b0091(_0x2bf04b,_0x5bce('0x53'),[_0x37b1f8,'\x22'+_0x4f7b8f['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x1b0091(_0x2bf04b,_0x5bce('0x7a'),_0x1b0091(_0x2bf04b,_0x5bce('0x17'),_0x37b1f8))};}if(_0x5bce('0x52')==_0x4bfb17[_0x5bce('0x77')]){const _0x4fb94b=_0x4bfb17[_0x5bce('0x18')]()[_0x5bce('0x4')](_0x18bf24=>_0x18bf24['is'](_0x5bce('0x8')))[_0x5bce('0x22')](_0x46254a=>_0x46254a[_0x5bce('0x4c')]),_0x165179=this[_0x5bce('0x37')](_0x4bfb17),_0x6e0a4f=_0x165179['maxColumn']-_0x165179['minColumn']+0x1;if(_0x5bce('0x2b')==_0x4bfb17[_0x5bce('0x27')])return _0x4fb94b[_0x5bce('0x43')]?{'type':'insertion','content':_0x1b0091(_0x2bf04b,_0x5bce('0xa'),_0x1b0091(_0x2bf04b,_0x5bce('0x13'),[_0x6e0a4f,'\x22'+_0x4fb94b[_0x5bce('0x7c')]('\x20')+'\x22']))}:{'type':_0x5bce('0x2b'),'content':_0x1b0091(_0x2bf04b,_0x5bce('0xa'),_0x1b0091(_0x2bf04b,_0x5bce('0xb'),_0x6e0a4f))};if('deletion'==_0x4bfb17['type'])return _0x4fb94b[_0x5bce('0x43')]?{'type':'deletion','content':_0x1b0091(_0x2bf04b,'*Remove:*\x20%0',_0x1b0091(_0x2bf04b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x6e0a4f,'\x22'+_0x4fb94b['join']('\x20')+'\x22']))}:{'type':_0x5bce('0x6b'),'content':_0x1b0091(_0x2bf04b,'*Remove:*\x20%0',_0x1b0091(_0x2bf04b,_0x5bce('0xb'),_0x6e0a4f))};}}),_0x103d32[_0x5bce('0x7f')][_0x5bce('0x78')](_0x5bce('0x2b'),_0x5bce('0x7'),_0x5bce('0x64'),_0x50840d),_0x103d32[_0x5bce('0x7f')]['registerCustomCallback'](_0x5bce('0x6b'),_0x5bce('0x7'),_0x5bce('0x3'),_0x50840d),_0x103d32[_0x5bce('0x7f')]['registerCustomCallback'](_0x5bce('0x2b'),_0x5bce('0x52'),'discard',_0x289ce7),_0x103d32[_0x5bce('0x7f')][_0x5bce('0x78')](_0x5bce('0x6b'),'tableColumn','accept',_0x289ce7),_0x103d32[_0x5bce('0x7f')][_0x5bce('0x78')](_0x5bce('0x2b'),'tableColumn',_0x5bce('0x7c'),_0x2e69cf),_0x103d32['_suggestionFactory'][_0x5bce('0x78')]('deletion',_0x5bce('0x52'),_0x5bce('0x7c'),_0x2e69cf),_0x103d32[_0x5bce('0x7f')][_0x5bce('0x78')](_0x5bce('0x2b'),_0x5bce('0x7'),'join',_0x2383f5),_0x103d32[_0x5bce('0x7f')]['registerCustomCallback'](_0x5bce('0x6b'),_0x5bce('0x7'),_0x5bce('0x7c'),_0x2383f5);}[_0x5bce('0x2c')](){const _0x15589a=this[_0x5bce('0x0')],_0x21deb2=_0x15589a[_0x5bce('0x38')]['document'][_0x5bce('0x69')];return(_0x48ae46,_0x31364f)=>{_0x15589a[_0x5bce('0x38')][_0x5bce('0x46')](_0x26e9a9=>{const {commandName:_0x3c97de,commandParams:_0x52f27f}=_0x31364f;let _0x41afc1=_0x48ae46[0x0]['end'][_0x5bce('0x39')];_0x52f27f&&_0x52f27f[0x0]&&!0x1===_0x52f27f[0x0][_0x5bce('0x42')]&&(_0x41afc1=_0x48ae46[0x0][_0x5bce('0x19')][_0x5bce('0x63')]);const _0x30ce8e=_0x26e9a9[_0x5bce('0x4f')](_0x41afc1);if('$graveyard'==_0x30ce8e[_0x5bce('0x2')][_0x5bce('0x32')])return;const _0x534194=Array[_0x5bce('0x60')](_0x21deb2[_0x5bce('0x3e')]())[_0x5bce('0x22')](_0x582554=>_0x531dd9[_0x5bce('0x24')](_0x582554));_0x26e9a9[_0x5bce('0x47')](_0x30ce8e),_0x15589a['commands'][_0x5bce('0x71')](_0x3c97de)[_0x5bce('0x4b')](),_0x52f27f[_0x5bce('0x6a')]({'forceDefaultExecution':!0x0}),_0x15589a[_0x5bce('0x36')](_0x3c97de,..._0x52f27f);const _0x34fd63=_0x534194[_0x5bce('0x4')](_0x4cc069=>_0x5bce('0x56')!=_0x4cc069[_0x5bce('0x2')][_0x5bce('0x32')]);_0x34fd63[_0x5bce('0x43')]>0x0&&_0x26e9a9[_0x5bce('0x47')](_0x34fd63);for(const _0x4a7e05 of _0x534194)_0x4a7e05[_0x5bce('0x55')]();});};}[_0x5bce('0x75')](_0x2fafb6){const _0x22311b=this[_0x5bce('0x0')][_0x5bce('0x51')][_0x5bce('0x71')]('TableUtils');let _0x46ffc1=Number['MAX_SAFE_INTEGER'],_0x283f3b=Number['MIN_SAFE_INTEGER'],_0x47183b=Number['MAX_SAFE_INTEGER'],_0x3a8775=Number[_0x5bce('0x7d')];for(const _0x525a98 of _0x2fafb6){if('$graveyard'==_0x525a98[_0x5bce('0x2')][_0x5bce('0x32')])continue;const {row:_0x13202e,column:_0x2206d8}=_0x22311b['getCellLocation'](_0x525a98),_0x1be226=_0x525a98[_0x5bce('0x23')]('rowspan')?_0x525a98[_0x5bce('0x34')](_0x5bce('0x1c'))-0x1:0x0,_0x4dca21=_0x525a98['hasAttribute'](_0x5bce('0x2f'))?_0x525a98[_0x5bce('0x34')](_0x5bce('0x2f'))-0x1:0x0;_0x46ffc1=_0x13202e<_0x46ffc1?_0x13202e:_0x46ffc1,_0x283f3b=_0x13202e+_0x1be226>_0x283f3b?_0x13202e+_0x1be226:_0x283f3b,_0x47183b=_0x2206d8<_0x47183b?_0x2206d8:_0x47183b,_0x3a8775=_0x2206d8+_0x4dca21>_0x3a8775?_0x2206d8+_0x4dca21:_0x3a8775;}return{'minRow':_0x46ffc1,'maxRow':_0x283f3b,'minColumn':_0x47183b,'maxColumn':_0x3a8775};}['_setupColumnsRowsFixing'](){const _0x43fdbf=this[_0x5bce('0x0')],_0x16a3e1=_0x43fdbf[_0x5bce('0x51')][_0x5bce('0x71')]('TrackChangesEditing'),_0x1549fb=_0x43fdbf[_0x5bce('0x51')][_0x5bce('0x71')](_0x5bce('0x4e'));_0x43fdbf['model']['document']['on'](_0x5bce('0x5d'),()=>{const _0x484905=Array[_0x5bce('0x60')](_0x43fdbf[_0x5bce('0x38')]['document'][_0x5bce('0x6d')]['getChangedMarkers']());for(const {name:_0x1c2083,data:_0x1927a9}of _0x484905){const {group:_0x4fa362,id:_0x9a3a3b,subType:_0x24838f}=_0x16a3e1['_splitMarkerName'](_0x1c2083);if('suggestion'!=_0x4fa362)continue;if(null!=_0x1927a9['oldRange'])continue;const _0x1a73e0=_0x16a3e1['getSuggestion'](_0x9a3a3b);this[_0x5bce('0x30')][_0x5bce('0x68')](_0x24838f)&&this[_0x5bce('0x35')]['add'](_0x1a73e0);}},{'priority':'low'});const _0x4a091d=(_0x15ef9f,_0x12bcd8)=>{let _0x509b44=!0x1;const _0x2a1ef9=_0x12bcd8[_0x5bce('0x49')](_0x15ef9f),_0x39791b=_0x15ef9f[_0x5bce('0x1d')](_0x5bce('0x76')),_0x4c32e0=_0x1549fb[_0x5bce('0x10')](_0x15ef9f);for(const _0x54e69e of this['_tableSuggestions']){const _0x46aec7=_0x54e69e[_0x5bce('0x77')],_0x3ec7dc=_0x46aec7[_0x5bce('0xf')]('tablePaste'),_0x12acd8=_0x46aec7[_0x5bce('0x20')](_0x3ec7dc?0xa:0x5),_0x5b8ea7=_0x12acd8[_0x5bce('0x5b')](),_0xa51619=_0x5b8ea7[_0x5bce('0x20')](0x0,0x3)+_0x5bce('0x2a'),_0x516d50=_0x5bce('0x4d')+_0x12acd8,_0x30a0ef=_0x5bce('0x59')+_0x12acd8;if(!_0x54e69e[_0x5bce('0x5f')])continue;if(_0x39791b!=_0x54e69e['getFirstRange']()[_0x5bce('0x19')][_0x5bce('0x1d')]('table'))continue;if(_0x54e69e['isIntersectingWithRange'](_0x2a1ef9))continue;const _0x10eb95=_0x15ef9f[_0x5bce('0x23')](_0xa51619)?_0x15ef9f[_0x5bce('0x34')](_0xa51619)-0x1:0x0,_0x221f28=this[_0x5bce('0x37')](_0x54e69e),_0x254cb8=_0x221f28[_0x516d50],_0x2437f5=_0x221f28[_0x30a0ef];_0x254cb8<=_0x4c32e0[_0x5b8ea7]&&_0x4c32e0[_0x5b8ea7]+_0x10eb95<=_0x2437f5&&(_0x54e69e[_0x5bce('0x1b')](_0x2a1ef9),_0x509b44=!0x0);}return _0x509b44;};_0x43fdbf[_0x5bce('0x38')][_0x5bce('0x54')][_0x5bce('0x31')](_0x267327=>{let _0x451f4e=!0x1;for(const _0x52c95b of _0x43fdbf[_0x5bce('0x38')][_0x5bce('0x54')][_0x5bce('0x6d')][_0x5bce('0x41')]())if(_0x5bce('0x6f')==_0x52c95b['type']){if('tableRow'==_0x52c95b[_0x5bce('0x4a')])for(const _0x36231d of _0x52c95b[_0x5bce('0x74')][_0x5bce('0x63')][_0x5bce('0x26')]())_0x451f4e=_0x451f4e||_0x4a091d(_0x36231d,_0x267327);else _0x5bce('0x65')==_0x52c95b[_0x5bce('0x4a')]&&(_0x451f4e=_0x451f4e||_0x4a091d(_0x52c95b[_0x5bce('0x74')]['nodeAfter'],_0x267327));}return _0x451f4e;});}[_0x5bce('0x37')](_0x4b58da){return this[_0x5bce('0x75')](_0x4b58da[_0x5bce('0x3e')]()[_0x5bce('0x22')](_0x441828=>_0x441828['start']['nodeAfter']));}}function se(_0x5a210a){return Array[_0x5bce('0x60')](new Set(_0x5a210a)['values']());}
|
|
23
|
+
const _0x1780=['classes','createRangeIn','some','getColumnIndexes','min','enqueueChange','colspan','refresh','data','getItems','_splitMarkerName','registerDescriptionCallback','setSelection','registerPostFixer','markMultiRangeInsertion','order','rootName','plugins','differ','ELEMENT_TABLE_COLUMN','_setupColumnsRowsFixing','map','isIntersectingWithRange','$textProxy','removeTableRow','document','maxColumn','low','fromRange','registerElementLabel','subType','ELEMENT_TABLE_COLUMN_WITH_TEXT','selection','ELEMENT_TABLE_ROW','getAttribute','minColumn','removeClass','tablePaste','push','tableCell','_getCoordsForCells','suggestion','getSelectionAffectedTableCells','insertTable','findAncestor','enableCommand','downcastDispatcher','position','*Remove:*\x20%0','nodeAfter','values','markMultiRangeDeletion','editor','insertTableColumnRight','discard','MIN_SAFE_INTEGER','MAX_SAFE_INTEGER','nodeBefore','writer','registerCustomCallback','item','from','_descriptionFactory','join','getRanges','ELEMENT_TABLE_ROW_WITH_TEXT','_getSuggestionCoords','_suggestionFactory','createTableWalker','minRow','insert','deletion','removeTableColumn','name','options','type','span','oldRange','getContainedElement','last','length','end','ELEMENT_TABLE','root','addRange','*Insert:*\x20%0','TableUtils','detach','substr','getChildren','mapper','toLowerCase','accept','maxRow','get','getRowIndexes','insertion','change:data','commands','table','addClass','hasAttribute','insertTableRowAbove','selectTableRow','getChangedMarkers','startsWith','tableColumn','_tablePostFixingSubtypes','$graveyard','isEqual','TrackChangesEditing','rowspan','above','execute','selectTableColumn','change','first','filter','start','getSuggestion','tableRow','createRangeOn','getChanges','every','max','model','isInContent','has','ELEMENT_TABLE_WITH_TEXT'];(function(_0x33618c,_0x17802f){const _0x3b92e5=function(_0x33999d){while(--_0x33999d){_0x33618c['push'](_0x33618c['shift']());}};_0x3b92e5(++_0x17802f);}(_0x1780,0x13c));const _0x3b92=function(_0x33618c,_0x17802f){_0x33618c=_0x33618c-0x0;let _0x3b92e5=_0x1780[_0x33618c];return _0x3b92e5;};import{Plugin as _0x8c0d3d}from'ckeditor5/src/core';import{LiveRange as _0x1605a2}from'ckeditor5/src/engine';import{setHighlightHandling as _0x43c95a}from'ckeditor5/src/widget';import{getTranslation as _0x510c36}from'../utils/common-translations';export default class mt extends _0x8c0d3d{constructor(_0x2b8297){super(_0x2b8297),this[_0x3b92('0x31')]=[_0x3b92('0x3e'),'tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5d7e5e=this[_0x3b92('0x7b')],_0x221410=_0x5d7e5e[_0x3b92('0x43')][_0x3b92('0x60')][_0x3b92('0x67')];if(!_0x5d7e5e[_0x3b92('0x58')][_0x3b92('0x45')]('TableEditing'))return;const _0x53d192=_0x5d7e5e['locale'],_0x4518eb=_0x5d7e5e[_0x3b92('0x58')]['get']('TrackChangesEditing'),_0x42f974=_0x5d7e5e[_0x3b92('0x58')][_0x3b92('0x24')](_0x3b92('0x1c'));_0x4518eb[_0x3b92('0x4')][_0x3b92('0x64')](_0x3b92('0x29'),_0xb4ee4b=>_0x510c36(_0x53d192,_0x3b92('0x18'),_0xb4ee4b)),this[_0x3b92('0x5b')](),_0x4518eb['enableCommand'](_0x3b92('0x72')),_0x4518eb['enableCommand'](_0x3b92('0x2d')),_0x4518eb[_0x3b92('0x74')](_0x3b92('0x38'));for(const _0x389b7e of[_0x3b92('0x2c'),'insertTableRowBelow']){const _0x504823=_0x5d7e5e[_0x3b92('0x28')][_0x3b92('0x24')](_0x389b7e);_0x4518eb[_0x3b92('0x74')](_0x389b7e,_0x32d565=>{_0x5d7e5e[_0x3b92('0x43')][_0x3b92('0x39')](_0x55bda4=>{_0x32d565();const _0x597b13=_0x3b92('0x36')===_0x504823['order'],_0x53084d=_0x42f974[_0x3b92('0x71')](_0x221410),_0x30f8e2=_0x42f974['getRowIndexes'](_0x53084d),_0x335f8d=_0x597b13?_0x30f8e2[_0x3b92('0x3a')]-0x1:_0x30f8e2[_0x3b92('0x15')]+0x1,_0x4b5d49=_0x53084d[0x0][_0x3b92('0x73')](_0x3b92('0x29')),_0x4fd62d=_0x42f974[_0x3b92('0xa')](_0x4b5d49,{'startRow':_0x335f8d,'endRow':_0x335f8d}),_0xed01e1=Array['from'](_0x4fd62d)[_0x3b92('0x5c')](_0x21c9d3=>_0x55bda4['createRangeOn'](_0x21c9d3['cell']));_0x4518eb[_0x3b92('0x55')](_0xed01e1,'tableRow');});});}for(const _0x198c63 of['insertTableColumnLeft',_0x3b92('0x7c')]){const _0x4abcf3=_0x5d7e5e[_0x3b92('0x28')][_0x3b92('0x24')](_0x198c63);_0x4518eb[_0x3b92('0x74')](_0x198c63,_0x146008=>{_0x5d7e5e[_0x3b92('0x43')][_0x3b92('0x39')](_0x2810df=>{_0x146008();const _0x52efaf='left'===_0x4abcf3[_0x3b92('0x56')],_0x244e12=_0x42f974['getSelectionAffectedTableCells'](_0x221410),_0x48056b=_0x42f974[_0x3b92('0x4a')](_0x244e12),_0x445167=_0x52efaf?_0x48056b[_0x3b92('0x3a')]-0x1:_0x48056b[_0x3b92('0x15')]+0x1,_0xe36d5e=_0x244e12[0x0][_0x3b92('0x73')](_0x3b92('0x29')),_0x513b46=_0x42f974[_0x3b92('0xa')](_0xe36d5e,{'startRow':0x0,'column':_0x445167,'includeAllSlots':!0x1}),_0x4c9026=Array['from'](_0x513b46)['map'](_0x281820=>_0x2810df[_0x3b92('0x3f')](_0x281820['cell']));_0x4518eb[_0x3b92('0x55')](_0x4c9026,_0x3b92('0x30'));});});}for(const _0x3f7d20 of[_0x3b92('0x5f'),'removeTableColumn']){const _0x4b7368=_0x3f7d20['substr'](0xb),_0x3e1863=_0x4b7368[_0x3b92('0x21')](),_0x3a8e45=_0x3e1863[_0x3b92('0x1e')](0x0,0x3)+_0x3b92('0x12'),_0x517c00=_0x3b92('0x29')+_0x4b7368,_0x4154aa=_0x3b92('0x4b')+_0x4b7368,_0x4b21fb=_0x3b92('0x42')+_0x4b7368;_0x4518eb['enableCommand'](_0x3f7d20,()=>{_0x5d7e5e[_0x3b92('0x43')][_0x3b92('0x39')](_0x1cc0ac=>{const _0xc8fa76=_0x42f974['getSelectionAffectedTableCells'](_0x221410),_0x5ad390=_0xc8fa76[0x0][_0x3b92('0x73')]('table');let _0x27eb67;if(_0x3b92('0x5f')==_0x3f7d20){const _0x1c6792=_0x42f974[_0x3b92('0x25')](_0xc8fa76);_0x27eb67={'startRow':_0x1c6792[_0x3b92('0x3a')],'endRow':_0x1c6792[_0x3b92('0x15')],'includeAllSlots':!0x0};}else{const _0x25ba53=_0x42f974['getColumnIndexes'](_0xc8fa76);_0x27eb67={'startColumn':_0x25ba53[_0x3b92('0x3a')],'endColumn':_0x25ba53[_0x3b92('0x15')],'includeAllSlots':!0x0};}const _0x104f16=_0x42f974[_0x3b92('0xa')](_0x5ad390,_0x27eb67),_0x1e6fd9=Array[_0x3b92('0x3')](_0x104f16)[_0x3b92('0x5c')](({cell:_0x3563b1})=>_0x3563b1),_0x198104=se(_0x1e6fd9[_0x3b92('0x3b')](_0x3daa52=>_0x3daa52['hasAttribute'](_0x3a8e45))),_0x2d69e0=se(_0x1e6fd9[_0x3b92('0x3b')](_0x58142b=>!_0x58142b['hasAttribute'](_0x3a8e45)))[_0x3b92('0x5c')](_0x773417=>_0x1cc0ac[_0x3b92('0x3f')](_0x773417)),_0x96a45=_0x4518eb[_0x3b92('0x7a')](_0x2d69e0,_0x517c00);if(_0x96a45&&(_0x3b92('0x3e')==_0x96a45[_0x3b92('0x65')]||'tableColumn'==_0x96a45['subType'])){const _0x14d96a=this[_0x3b92('0x8')](_0x96a45);for(const _0xa08e6e of _0x198104){const _0x5e653b=_0x1cc0ac[_0x3b92('0x3f')](_0xa08e6e),_0x56d4ff=_0x42f974['getCellLocation'](_0xa08e6e),_0x31a120=_0xa08e6e[_0x3b92('0x69')](_0x3a8e45)-0x1,_0x17b620=_0x14d96a[_0x4154aa],_0x4810a1=_0x14d96a[_0x4b21fb];_0x17b620<=_0x56d4ff[_0x3e1863]&&_0x56d4ff[_0x3e1863]+_0x31a120<=_0x4810a1&&_0x96a45[_0x3b92('0x1a')](_0x5e653b);}}});});}function _0x2e237a(_0xc73350){const _0x1c2d96=Array['from'](_0x221410[_0x3b92('0x6')]())[_0x3b92('0x5c')](_0x11f706=>_0x1605a2[_0x3b92('0x63')](_0x11f706));_0x5d7e5e['model']['change'](_0x5862bd=>{const _0x2d4669=_0x5862bd['batch'];_0xc73350=_0xc73350[_0x3b92('0x3b')](_0x5eb6e7=>_0x3b92('0x32')!=_0x5eb6e7['root'][_0x3b92('0x57')]),_0x5862bd[_0x3b92('0x53')](_0xc73350),_0x5d7e5e[_0x3b92('0x28')]['get'](_0x3b92('0x5f'))[_0x3b92('0x4e')](),_0x5d7e5e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5d7e5e[_0x3b92('0x43')][_0x3b92('0x4c')](()=>{_0x5d7e5e[_0x3b92('0x43')][_0x3b92('0x4c')](_0x2d4669,_0x2aafb4=>{const _0x5165ea=_0x1c2d96[_0x3b92('0x3b')](_0xde7fcf=>_0x3b92('0x32')!=_0xde7fcf[_0x3b92('0x19')]['rootName']);_0x5165ea[_0x3b92('0x16')]>0x0&&_0x2aafb4['setSelection'](_0x5165ea);for(const _0x15b5c5 of _0x1c2d96)_0x15b5c5[_0x3b92('0x1d')]();});});});}function _0x1607ef(_0x3821e1){_0x5d7e5e['model'][_0x3b92('0x39')](_0x5e4a0a=>{const _0x26f936=Array[_0x3b92('0x3')](_0x221410['getRanges']())[_0x3b92('0x5c')](_0x4fdc06=>_0x1605a2[_0x3b92('0x63')](_0x4fdc06)),_0x315804=[];for(const _0x52c944 of _0x3821e1)for(const _0x1f5692 of _0x52c944[_0x3b92('0x50')]({'shallow':!0x0}))_0x315804[_0x3b92('0x6d')](_0x1f5692);for(const _0x1e7846 of _0x315804)_0x3b92('0x32')!=_0x1e7846[_0x3b92('0x19')][_0x3b92('0x57')]&&(_0x5e4a0a[_0x3b92('0x53')](_0x5e4a0a['createPositionAt'](_0x1e7846,0x0)),_0x5d7e5e[_0x3b92('0x28')][_0x3b92('0x24')](_0x3b92('0xe'))['refresh'](),_0x5d7e5e[_0x3b92('0x37')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x502b80=_0x26f936[_0x3b92('0x3b')](_0x3fb98e=>_0x3b92('0x32')!=_0x3fb98e['root'][_0x3b92('0x57')]);_0x502b80[_0x3b92('0x16')]>0x0&&_0x5e4a0a[_0x3b92('0x53')](_0x502b80);for(const _0x51b614 of _0x26f936)_0x51b614['detach']();});}function _0x2b2a0d(_0x3ca53b,_0x151c1c){return _0x151c1c[_0x3b92('0x41')](_0x2d3071=>_0x3ca53b['some'](_0x178388=>_0x178388[_0x3b92('0x17')][_0x3b92('0x33')](_0x2d3071['start'])||_0x2d3071[_0x3b92('0x17')][_0x3b92('0x33')](_0x178388[_0x3b92('0x3c')])));}function _0x15b8d9(_0x25d4c8,_0x5f2fad){return _0x25d4c8[_0x3b92('0x49')](_0x29b300=>_0x5f2fad[_0x3b92('0x49')](_0x29be6b=>_0x29b300[_0x3b92('0x17')]['isTouching'](_0x29be6b[_0x3b92('0x3c')])));}_0x5d7e5e[_0x3b92('0x4f')][_0x3b92('0x75')]['on']('addMarker:suggestion',(_0x511f8b,_0x4b4248,_0x1bdf3e)=>{if(!_0x1bdf3e[_0x3b92('0x10')]['showSuggestionHighlights'])return;const _0x634f55=_0x4b4248[_0x3b92('0x2')];if(!_0x634f55)return;const _0x2ae2f3=_0x1bdf3e[_0x3b92('0x20')]['toViewElement'](_0x634f55);function _0x29841c(_0x472d36){return Array['isArray'](_0x472d36)?_0x472d36:[_0x472d36];}_0x2ae2f3&&'tableCell'===_0x634f55[_0x3b92('0xf')]&&_0x43c95a(_0x2ae2f3,_0x1bdf3e[_0x3b92('0x0')],(_0x5016dc,_0x56d013,_0x3ee104)=>_0x3ee104[_0x3b92('0x2a')](_0x29841c(_0x56d013[_0x3b92('0x47')]),_0x5016dc),(_0x375aea,_0x5228cf,_0x21e557)=>_0x21e557[_0x3b92('0x6b')](_0x29841c(_0x5228cf[_0x3b92('0x47')]),_0x375aea));},{'priority':'highest'}),_0x4518eb[_0x3b92('0x4')][_0x3b92('0x52')](_0x117424=>{if('insertion'!=_0x117424[_0x3b92('0x11')]&&_0x3b92('0xd')!=_0x117424[_0x3b92('0x11')])return;const _0x476d40=_0x117424[_0x3b92('0x14')]();if(null!=_0x476d40&&_0x476d40['is']('element',_0x3b92('0x29'))){if(_0x3b92('0x26')==_0x117424[_0x3b92('0x11')]){const _0x3ec52b=_0x117424['getItems']()[_0x3b92('0x3b')](_0x2f8c32=>_0x2f8c32['is'](_0x3b92('0x5e')))[_0x3b92('0x5c')](_0x31c1b5=>_0x31c1b5['data']);if(_0x3ec52b[_0x3b92('0x16')])return{'type':_0x3b92('0x26'),'content':_0x510c36(_0x53d192,_0x3b92('0x1b'),_0x510c36(_0x53d192,_0x3b92('0x46'),'\x22'+_0x3ec52b[_0x3b92('0x5')]('\x20')+'\x22'))};}if('deletion'==_0x117424[_0x3b92('0x11')]){const _0x3248cb=_0x117424[_0x3b92('0x50')]()[_0x3b92('0x3b')](_0x344b30=>_0x344b30['is'](_0x3b92('0x5e')))['map'](_0x270c54=>_0x270c54[_0x3b92('0x4f')]);if(_0x3248cb[_0x3b92('0x16')])return{'type':_0x3b92('0xd'),'content':_0x510c36(_0x53d192,_0x3b92('0x77'),_0x510c36(_0x53d192,_0x3b92('0x46'),'\x22'+_0x3248cb[_0x3b92('0x5')]('\x20')+'\x22'))};}}}),_0x4518eb['_descriptionFactory'][_0x3b92('0x52')](_0x4cc471=>{if(_0x3b92('0x3e')==_0x4cc471['subType']){const _0xf40a0c=_0x4cc471['getItems']()['filter'](_0x1ef50b=>_0x1ef50b['is']('$textProxy'))[_0x3b92('0x5c')](_0x18eccc=>_0x18eccc[_0x3b92('0x4f')]),_0x31bf33=this[_0x3b92('0x8')](_0x4cc471),_0x236fa5=_0x31bf33[_0x3b92('0x23')]-_0x31bf33[_0x3b92('0xb')]+0x1;if(_0x3b92('0x26')==_0x4cc471[_0x3b92('0x11')])return _0xf40a0c['length']?{'type':_0x3b92('0x26'),'content':_0x510c36(_0x53d192,'*Insert:*\x20%0',_0x510c36(_0x53d192,_0x3b92('0x7'),[_0x236fa5,'\x22'+_0xf40a0c['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x510c36(_0x53d192,_0x3b92('0x1b'),_0x510c36(_0x53d192,_0x3b92('0x68'),_0x236fa5))};if(_0x3b92('0xd')==_0x4cc471[_0x3b92('0x11')])return _0xf40a0c[_0x3b92('0x16')]?{'type':'deletion','content':_0x510c36(_0x53d192,_0x3b92('0x77'),_0x510c36(_0x53d192,_0x3b92('0x7'),[_0x236fa5,'\x22'+_0xf40a0c[_0x3b92('0x5')]('\x20')+'\x22']))}:{'type':_0x3b92('0xd'),'content':_0x510c36(_0x53d192,_0x3b92('0x77'),_0x510c36(_0x53d192,'ELEMENT_TABLE_ROW',_0x236fa5))};}if(_0x3b92('0x30')==_0x4cc471[_0x3b92('0x65')]){const _0x540963=_0x4cc471[_0x3b92('0x50')]()['filter'](_0x4cf64e=>_0x4cf64e['is']('$textProxy'))[_0x3b92('0x5c')](_0x551fe7=>_0x551fe7[_0x3b92('0x4f')]),_0xc05c0e=this[_0x3b92('0x8')](_0x4cc471),_0x539402=_0xc05c0e[_0x3b92('0x61')]-_0xc05c0e[_0x3b92('0x6a')]+0x1;if(_0x3b92('0x26')==_0x4cc471['type'])return _0x540963[_0x3b92('0x16')]?{'type':_0x3b92('0x26'),'content':_0x510c36(_0x53d192,'*Insert:*\x20%0',_0x510c36(_0x53d192,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x539402,'\x22'+_0x540963[_0x3b92('0x5')]('\x20')+'\x22']))}:{'type':_0x3b92('0x26'),'content':_0x510c36(_0x53d192,'*Insert:*\x20%0',_0x510c36(_0x53d192,_0x3b92('0x5a'),_0x539402))};if('deletion'==_0x4cc471[_0x3b92('0x11')])return _0x540963[_0x3b92('0x16')]?{'type':'deletion','content':_0x510c36(_0x53d192,_0x3b92('0x77'),_0x510c36(_0x53d192,_0x3b92('0x66'),[_0x539402,'\x22'+_0x540963[_0x3b92('0x5')]('\x20')+'\x22']))}:{'type':_0x3b92('0xd'),'content':_0x510c36(_0x53d192,'*Remove:*\x20%0',_0x510c36(_0x53d192,_0x3b92('0x5a'),_0x539402))};}}),_0x4518eb[_0x3b92('0x9')][_0x3b92('0x1')](_0x3b92('0x26'),_0x3b92('0x3e'),'discard',_0x2e237a),_0x4518eb['_suggestionFactory'][_0x3b92('0x1')](_0x3b92('0xd'),_0x3b92('0x3e'),_0x3b92('0x22'),_0x2e237a),_0x4518eb[_0x3b92('0x9')][_0x3b92('0x1')](_0x3b92('0x26'),_0x3b92('0x30'),_0x3b92('0x7d'),_0x1607ef),_0x4518eb[_0x3b92('0x9')]['registerCustomCallback'](_0x3b92('0xd'),_0x3b92('0x30'),_0x3b92('0x22'),_0x1607ef),_0x4518eb['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b92('0x30'),'join',_0x2b2a0d),_0x4518eb['_suggestionFactory'][_0x3b92('0x1')](_0x3b92('0xd'),_0x3b92('0x30'),'join',_0x2b2a0d),_0x4518eb[_0x3b92('0x9')][_0x3b92('0x1')](_0x3b92('0x26'),_0x3b92('0x3e'),'join',_0x15b8d9),_0x4518eb[_0x3b92('0x9')][_0x3b92('0x1')]('deletion',_0x3b92('0x3e'),_0x3b92('0x5'),_0x15b8d9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1891f0=this[_0x3b92('0x7b')],_0x1fd78b=_0x1891f0[_0x3b92('0x43')][_0x3b92('0x60')][_0x3b92('0x67')];return(_0x380b8e,_0x4adc78)=>{_0x1891f0[_0x3b92('0x43')][_0x3b92('0x39')](_0x2645b2=>{const {commandName:_0x3ce818,commandParams:_0x41cc20}=_0x4adc78;let _0x4399ed=_0x380b8e[0x0][_0x3b92('0x17')][_0x3b92('0x80')];_0x41cc20&&_0x41cc20[0x0]&&!0x1===_0x41cc20[0x0]['forceValue']&&(_0x4399ed=_0x380b8e[0x0][_0x3b92('0x3c')][_0x3b92('0x78')]);const _0x3acb71=_0x2645b2[_0x3b92('0x48')](_0x4399ed);if(_0x3b92('0x32')==_0x3acb71[_0x3b92('0x19')]['rootName'])return;const _0x357102=Array[_0x3b92('0x3')](_0x1fd78b[_0x3b92('0x6')]())[_0x3b92('0x5c')](_0x466b29=>_0x1605a2[_0x3b92('0x63')](_0x466b29));_0x2645b2[_0x3b92('0x53')](_0x3acb71),_0x1891f0[_0x3b92('0x28')]['get'](_0x3ce818)['refresh'](),_0x41cc20[_0x3b92('0x6d')]({'forceDefaultExecution':!0x0}),_0x1891f0['execute'](_0x3ce818,..._0x41cc20);const _0x5c3bd6=_0x357102[_0x3b92('0x3b')](_0x209e8b=>_0x3b92('0x32')!=_0x209e8b['root'][_0x3b92('0x57')]);_0x5c3bd6[_0x3b92('0x16')]>0x0&&_0x2645b2['setSelection'](_0x5c3bd6);for(const _0x3cb5df of _0x357102)_0x3cb5df[_0x3b92('0x1d')]();});};}['_getCoordsForCells'](_0x49a7fa){const _0x5e4059=this[_0x3b92('0x7b')]['plugins']['get'](_0x3b92('0x1c'));let _0x28f7eb=Number[_0x3b92('0x7f')],_0x999b4b=Number[_0x3b92('0x7e')],_0x524dbe=Number['MAX_SAFE_INTEGER'],_0xa96158=Number[_0x3b92('0x7e')];for(const _0x3be607 of _0x49a7fa){if(_0x3b92('0x32')==_0x3be607[_0x3b92('0x19')][_0x3b92('0x57')])continue;const {row:_0x31b9bb,column:_0x56e410}=_0x5e4059['getCellLocation'](_0x3be607),_0x2d10ff=_0x3be607[_0x3b92('0x2b')]('rowspan')?_0x3be607[_0x3b92('0x69')](_0x3b92('0x35'))-0x1:0x0,_0x3626bf=_0x3be607[_0x3b92('0x2b')](_0x3b92('0x4d'))?_0x3be607[_0x3b92('0x69')]('colspan')-0x1:0x0;_0x28f7eb=_0x31b9bb<_0x28f7eb?_0x31b9bb:_0x28f7eb,_0x999b4b=_0x31b9bb+_0x2d10ff>_0x999b4b?_0x31b9bb+_0x2d10ff:_0x999b4b,_0x524dbe=_0x56e410<_0x524dbe?_0x56e410:_0x524dbe,_0xa96158=_0x56e410+_0x3626bf>_0xa96158?_0x56e410+_0x3626bf:_0xa96158;}return{'minRow':_0x28f7eb,'maxRow':_0x999b4b,'minColumn':_0x524dbe,'maxColumn':_0xa96158};}[_0x3b92('0x5b')](){const _0x3f5a8f=this['editor'],_0x1d2022=_0x3f5a8f[_0x3b92('0x58')][_0x3b92('0x24')](_0x3b92('0x34')),_0xb48861=_0x3f5a8f[_0x3b92('0x58')]['get']('TableUtils');_0x3f5a8f[_0x3b92('0x43')][_0x3b92('0x60')]['on'](_0x3b92('0x27'),()=>{const _0x5ce0d5=Array['from'](_0x3f5a8f[_0x3b92('0x43')]['document'][_0x3b92('0x59')][_0x3b92('0x2e')]());for(const {name:_0x301d05,data:_0x212e83}of _0x5ce0d5){const {group:_0x9eec48,id:_0x193dec,subType:_0x46f73c}=_0x1d2022[_0x3b92('0x51')](_0x301d05);if(_0x3b92('0x70')!=_0x9eec48)continue;if(null!=_0x212e83[_0x3b92('0x13')])continue;const _0x138842=_0x1d2022[_0x3b92('0x3d')](_0x193dec);this[_0x3b92('0x31')]['includes'](_0x46f73c)&&this['_tableSuggestions']['add'](_0x138842);}},{'priority':_0x3b92('0x62')});const _0x49100e=(_0xadc88d,_0x167c6b)=>{let _0x4189d6=!0x1;const _0x4c3f6a=_0x167c6b['createRangeOn'](_0xadc88d),_0x5f0395=_0xadc88d[_0x3b92('0x73')]('table'),_0x54dacb=_0xb48861['getCellLocation'](_0xadc88d);for(const _0x2a53d1 of this['_tableSuggestions']){const _0x957fbe=_0x2a53d1[_0x3b92('0x65')],_0x327c41=_0x957fbe[_0x3b92('0x2f')](_0x3b92('0x6c')),_0x5795ef=_0x957fbe['substr'](_0x327c41?0xa:0x5),_0xe4b23=_0x5795ef['toLowerCase'](),_0xc7be9b=_0xe4b23['substr'](0x0,0x3)+'span',_0x5020c0=_0x3b92('0x4b')+_0x5795ef,_0x6600f2=_0x3b92('0x42')+_0x5795ef;if(!_0x2a53d1[_0x3b92('0x44')])continue;if(_0x5f0395!=_0x2a53d1['getFirstRange']()[_0x3b92('0x3c')][_0x3b92('0x73')](_0x3b92('0x29')))continue;if(_0x2a53d1[_0x3b92('0x5d')](_0x4c3f6a))continue;const _0x2badf6=_0xadc88d[_0x3b92('0x2b')](_0xc7be9b)?_0xadc88d[_0x3b92('0x69')](_0xc7be9b)-0x1:0x0,_0x8cac4c=this[_0x3b92('0x8')](_0x2a53d1),_0x431609=_0x8cac4c[_0x5020c0],_0xdfcba1=_0x8cac4c[_0x6600f2];_0x431609<=_0x54dacb[_0xe4b23]&&_0x54dacb[_0xe4b23]+_0x2badf6<=_0xdfcba1&&(_0x2a53d1[_0x3b92('0x1a')](_0x4c3f6a),_0x4189d6=!0x0);}return _0x4189d6;};_0x3f5a8f['model'][_0x3b92('0x60')][_0x3b92('0x54')](_0x4ec75c=>{let _0xff187b=!0x1;for(const _0x7a24f1 of _0x3f5a8f[_0x3b92('0x43')][_0x3b92('0x60')][_0x3b92('0x59')][_0x3b92('0x40')]())if(_0x3b92('0xc')==_0x7a24f1[_0x3b92('0x11')]){if(_0x3b92('0x3e')==_0x7a24f1[_0x3b92('0xf')])for(const _0x4a7abc of _0x7a24f1[_0x3b92('0x76')][_0x3b92('0x78')][_0x3b92('0x1f')]())_0xff187b=_0xff187b||_0x49100e(_0x4a7abc,_0x4ec75c);else _0x3b92('0x6e')==_0x7a24f1[_0x3b92('0xf')]&&(_0xff187b=_0xff187b||_0x49100e(_0x7a24f1[_0x3b92('0x76')][_0x3b92('0x78')],_0x4ec75c));}return _0xff187b;});}[_0x3b92('0x8')](_0x2ab6c7){return this[_0x3b92('0x6f')](_0x2ab6c7['getRanges']()[_0x3b92('0x5c')](_0x2985ae=>_0x2985ae[_0x3b92('0x3c')]['nodeAfter']));}}function se(_0x7cf60f){return Array['from'](new Set(_0x7cf60f)[_0x3b92('0x79')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x472a=['TableCaptionEditing','plugins','afterInit','enableCommand','requires','get','toggleTableCaption','editor','has','TrackChangesEditing'];(function(_0x4f2343,_0x472a12){const _0x43baa2=function(_0x18adf5){while(--_0x18adf5){_0x4f2343['push'](_0x4f2343['shift']());}};_0x43baa2(++_0x472a12);}(_0x472a,0x1b0));const _0x43ba=function(_0x4f2343,_0x472a12){_0x4f2343=_0x4f2343-0x0;let _0x43baa2=_0x472a[_0x4f2343];return _0x43baa2;};import{Plugin as _0x411db4}from'ckeditor5/src/core';import _0x2aca96 from'./table';export default class vt extends _0x411db4{static get[_0x43ba('0x2')](){return[_0x2aca96];}[_0x43ba('0x0')](){const _0x540a8c=this[_0x43ba('0x5')];if(!_0x540a8c[_0x43ba('0x9')][_0x43ba('0x6')](_0x43ba('0x8')))return;_0x540a8c[_0x43ba('0x9')][_0x43ba('0x3')](_0x43ba('0x7'))[_0x43ba('0x1')](_0x43ba('0x4'));}}
|