@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231114.0 → 0.0.0-nightly-20231116.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 +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +3 -3
- package/lang/translations/ar.po +19 -19
- package/lang/translations/bg.po +19 -19
- package/lang/translations/bn.po +19 -19
- package/lang/translations/ca.po +19 -19
- package/lang/translations/cs.po +19 -19
- package/lang/translations/da.po +19 -19
- package/lang/translations/de.po +19 -19
- package/lang/translations/el.po +19 -19
- package/lang/translations/es.po +19 -19
- package/lang/translations/et.po +19 -19
- package/lang/translations/fi.po +19 -19
- package/lang/translations/fr.po +19 -19
- package/lang/translations/he.po +19 -19
- package/lang/translations/hi.po +19 -19
- package/lang/translations/hu.po +19 -19
- package/lang/translations/id.po +19 -19
- package/lang/translations/it.po +19 -19
- package/lang/translations/ja.po +19 -19
- package/lang/translations/ko.po +19 -19
- package/lang/translations/lt.po +19 -19
- package/lang/translations/lv.po +19 -19
- package/lang/translations/ms.po +19 -19
- package/lang/translations/nl.po +19 -19
- package/lang/translations/no.po +19 -19
- package/lang/translations/pl.po +19 -19
- package/lang/translations/pt-br.po +19 -19
- package/lang/translations/pt.po +19 -19
- package/lang/translations/ro.po +19 -19
- package/lang/translations/ru.po +19 -19
- package/lang/translations/sk.po +19 -19
- package/lang/translations/sr.po +19 -19
- package/lang/translations/sv.po +19 -19
- package/lang/translations/th.po +19 -19
- package/lang/translations/tr.po +19 -19
- package/lang/translations/uk.po +19 -19
- package/lang/translations/vi.po +19 -19
- package/lang/translations/zh-cn.po +19 -19
- package/lang/translations/zh.po +19 -19
- 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/index.d.ts +1 -1
- package/src/integrations/aiassistant.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/imagestyle.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.d.ts +0 -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.d.ts +7 -4
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +0 -67
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +22 -19
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +14 -23
- 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.d.ts +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 _0x4257=['add','_descriptionFactory','commandParams','type','formatBlock','element','formatInline','StyleUtils','editor','registerDescriptionCallback','has','FORMAT_STYLE','style','forceValue','normalizeConfig','block','_registerInlineAttribute','commandName','inline','styleName','format','TrackChangesEditing','get','*Remove\x20format:*\x20%0','registerAttributeLabel','_registerLegacyDescription','_enableDefaultAttributesIntegration','plugins','DataSchema'];(function(_0x22efa7,_0x4257ce){const _0x437d7b=function(_0x174144){while(--_0x174144){_0x22efa7['push'](_0x22efa7['shift']());}};_0x437d7b(++_0x4257ce);}(_0x4257,0xf6));const _0x437d=function(_0x22efa7,_0x4257ce){_0x22efa7=_0x22efa7-0x0;let _0x437d7b=_0x4257[_0x22efa7];return _0x437d7b;};import{Plugin as _0x921201}from'ckeditor5/src/core';import{getTranslation as _0x209e3a}from'../utils/common-translations';export default class bt extends _0x921201{['afterInit'](){const _0x453660=this[_0x437d('0x17')];if(!_0x453660[_0x437d('0xd')][_0x437d('0x19')]('Style')||!_0x453660[_0x437d('0xd')][_0x437d('0x19')]('DataSchema'))return;const _0xa029f=_0x453660[_0x437d('0xd')][_0x437d('0x8')](_0x437d('0x7')),_0x312027=_0x453660['locale'],_0x39d563=_0x453660['config'][_0x437d('0x8')](_0x437d('0x1b')),_0x1e6c00=_0x453660[_0x437d('0xd')][_0x437d('0x8')]('GeneralHtmlSupport'),_0xdc261=_0x453660[_0x437d('0xd')][_0x437d('0x8')](_0x437d('0x16'))[_0x437d('0x0')](_0x453660['plugins'][_0x437d('0x8')](_0x437d('0xe')),_0x39d563['definitions']);_0xa029f[_0x437d('0xc')](_0x437d('0x1b'));const _0xefc513=new Set();for(const _0x1ee2e4 of _0xdc261[_0x437d('0x1')]){const _0x27b255=_0x1e6c00['getGhsAttributeNameForElement'](_0x1ee2e4[_0x437d('0x14')]);_0xefc513['add'](_0x27b255);}const _0x2ee084=new Set();for(const _0x4ac837 of _0xdc261[_0x437d('0x4')]){const _0x38d354=_0x1e6c00['getGhsAttributeNameForElement'](_0x4ac837[_0x437d('0x14')]);_0x2ee084[_0x437d('0xf')](_0x38d354);for(const _0x3ea4b8 of _0x4ac837['ghsAttributes'])_0x2ee084[_0x437d('0xf')](_0x3ea4b8);}for(const _0x16f1ed of _0xefc513)_0xa029f['_registerBlockAttribute'](_0x16f1ed),_0xa029f['_descriptionFactory'][_0x437d('0xa')](_0x16f1ed,_0x209e3a(_0x312027,_0x437d('0x1a')));for(const _0x2325f4 of _0x2ee084)_0xa029f[_0x437d('0x2')](_0x2325f4),_0xa029f[_0x437d('0x10')][_0x437d('0xa')](_0x2325f4,_0x209e3a(_0x312027,_0x437d('0x1a')));this['_registerLegacyDescription']();}[_0x437d('0xb')](){const _0x4242b8=this[_0x437d('0x17')],_0x22f6a4=_0x4242b8['locale'];_0x4242b8[_0x437d('0xd')]['get'](_0x437d('0x7'))['_descriptionFactory'][_0x437d('0x18')](_0x27b32f=>{if(_0x437d('0x13')!=_0x27b32f[_0x437d('0x12')]&&_0x437d('0x15')!=_0x27b32f[_0x437d('0x12')])return;const {data:_0x1dcc56}=_0x27b32f;return _0x1dcc56&&'style'===_0x1dcc56[_0x437d('0x3')]?_0x1dcc56[_0x437d('0x11')][0x0][_0x437d('0x1c')]?{'type':_0x437d('0x6'),'content':_0x209e3a(_0x22f6a4,'*Set\x20format:*\x20%0',_0x1dcc56[_0x437d('0x11')][0x0]['styleName']['toLowerCase']())}:{'type':_0x437d('0x6'),'content':_0x209e3a(_0x22f6a4,_0x437d('0x9'),_0x1dcc56[_0x437d('0x11')][0x0][_0x437d('0x5')]['toLowerCase']())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x171e=['createRangeOn','oldRange','document','ELEMENT_TABLE_COLUMN','push','createTableWalker','ELEMENT_TABLE_ROW_WITH_TEXT','_splitMarkerName','selection','getColumnIndexes','minColumn','MAX_SAFE_INTEGER','MIN_SAFE_INTEGER','*Insert:*\x20%0','cell','nodeBefore','writer','removeTableRow','addRange','isIntersectingWithRange','enableCommand','removeClass','_getCoordsForCells','addMarker:suggestion','markMultiRangeInsertion','findAncestor','type','first','ELEMENT_TABLE_ROW','getChangedMarkers','deletion','model','ELEMENT_TABLE_COLUMN_WITH_TEXT','getCellLocation','options','rootName','tableColumn','commands','TrackChangesEditing','substr','insertTableColumnLeft','isEqual','isInContent','batch','addClass','name','start','from','$textProxy','TableUtils','element','change:data','root','data','suggestion','afterInit','length','change','registerCustomCallback','_suggestionFactory','getAttribute','removeTableColumn','span','toLowerCase','some','discard','has','forceValue','_setupColumnsRowsFixing','getChanges','nodeAfter','ELEMENT_TABLE','tableRow','createPositionAt','registerDescriptionCallback','getRanges','getChildren','*Remove:*\x20%0','insert','max','differ','values','getSelectionAffectedTableCells','_acceptFormatSuggestionCallbackFactory','hasAttribute','refresh','startsWith','get','$graveyard','position','last','plugins','ELEMENT_TABLE_WITH_TEXT','low','tablePaste','classes','fromRange','left','showSuggestionHighlights','subType','getRowIndexes','getFirstRange','insertion','add','minRow','detach','tableCell','map','locale','_tableSuggestions','markMultiRangeDeletion','filter','end','accept','order','registerPostFixer','_tablePostFixingSubtypes','getItems','enqueueChange','insertTableRowAbove','table','rowspan','execute','registerElementLabel','includes','selectTableColumn','maxRow','selectTableRow','_getSuggestionCoords','isArray','editor','join','_descriptionFactory','setSelection','TableEditing'];(function(_0x595744,_0x171e49){const _0x3c61dd=function(_0x292f8e){while(--_0x292f8e){_0x595744['push'](_0x595744['shift']());}};_0x3c61dd(++_0x171e49);}(_0x171e,0x1db));const _0x3c61=function(_0x595744,_0x171e49){_0x595744=_0x595744-0x0;let _0x3c61dd=_0x171e[_0x595744];return _0x3c61dd;};import{Plugin as _0x60481e}from'ckeditor5/src/core';import{LiveRange as _0x29fa72}from'ckeditor5/src/engine';import{setHighlightHandling as _0x12fe96}from'ckeditor5/src/widget';import{getTranslation as _0x12178e}from'../utils/common-translations';export default class wt extends _0x60481e{constructor(_0x19913c){super(_0x19913c),this[_0x3c61('0x2e')]=[_0x3c61('0x2'),'tableColumn'],this[_0x3c61('0x27')]=new Set();}[_0x3c61('0x78')](){const _0x416288=this['editor'],_0x576067=_0x416288[_0x3c61('0x60')]['document'][_0x3c61('0x49')];if(!_0x416288[_0x3c61('0x15')][_0x3c61('0x83')](_0x3c61('0x40')))return;const _0x2e6d9a=_0x416288[_0x3c61('0x26')],_0x4d73f6=_0x416288[_0x3c61('0x15')][_0x3c61('0x11')](_0x3c61('0x67')),_0x544af1=_0x416288['plugins'][_0x3c61('0x11')](_0x3c61('0x72'));_0x4d73f6[_0x3c61('0x3e')][_0x3c61('0x35')](_0x3c61('0x32'),_0xc5b46a=>_0x12178e(_0x2e6d9a,_0x3c61('0x1'),_0xc5b46a)),this[_0x3c61('0x85')](),_0x4d73f6[_0x3c61('0x55')]('insertTable'),_0x4d73f6[_0x3c61('0x55')](_0x3c61('0x39')),_0x4d73f6[_0x3c61('0x55')](_0x3c61('0x37'));for(const _0x64ff9c of[_0x3c61('0x31'),'insertTableRowBelow']){const _0x344ba7=_0x416288[_0x3c61('0x66')][_0x3c61('0x11')](_0x64ff9c);_0x4d73f6[_0x3c61('0x55')](_0x64ff9c,_0x44f2d4=>{_0x416288['model']['change'](_0x1080a6=>{_0x44f2d4();const _0x528f69='above'===_0x344ba7[_0x3c61('0x2c')],_0x25f964=_0x544af1['getSelectionAffectedTableCells'](_0x576067),_0x528c35=_0x544af1[_0x3c61('0x1e')](_0x25f964),_0xf4a1cb=_0x528f69?_0x528c35['first']-0x1:_0x528c35[_0x3c61('0x14')]+0x1,_0x46ac24=_0x25f964[0x0]['findAncestor']('table'),_0x46138f=_0x544af1[_0x3c61('0x46')](_0x46ac24,{'startRow':_0xf4a1cb,'endRow':_0xf4a1cb}),_0xe907f0=Array[_0x3c61('0x70')](_0x46138f)[_0x3c61('0x25')](_0x1163b1=>_0x1080a6['createRangeOn'](_0x1163b1[_0x3c61('0x4f')]));_0x4d73f6[_0x3c61('0x59')](_0xe907f0,_0x3c61('0x2'));});});}for(const _0x27c21a of[_0x3c61('0x69'),'insertTableColumnRight']){const _0xd119ab=_0x416288[_0x3c61('0x66')][_0x3c61('0x11')](_0x27c21a);_0x4d73f6['enableCommand'](_0x27c21a,_0x9028=>{_0x416288[_0x3c61('0x60')][_0x3c61('0x7a')](_0x28ddc7=>{_0x9028();const _0x3c7974=_0x3c61('0x1b')===_0xd119ab[_0x3c61('0x2c')],_0x4327c5=_0x544af1[_0x3c61('0xc')](_0x576067),_0x390410=_0x544af1[_0x3c61('0x4a')](_0x4327c5),_0x16115e=_0x3c7974?_0x390410[_0x3c61('0x5c')]-0x1:_0x390410[_0x3c61('0x14')]+0x1,_0x568d48=_0x4327c5[0x0]['findAncestor'](_0x3c61('0x32')),_0x4b12b8=_0x544af1[_0x3c61('0x46')](_0x568d48,{'startRow':0x0,'column':_0x16115e,'includeAllSlots':!0x1}),_0xc40da8=Array[_0x3c61('0x70')](_0x4b12b8)[_0x3c61('0x25')](_0x4546cb=>_0x28ddc7[_0x3c61('0x41')](_0x4546cb[_0x3c61('0x4f')]));_0x4d73f6[_0x3c61('0x59')](_0xc40da8,_0x3c61('0x65'));});});}for(const _0x3a7c8d of[_0x3c61('0x52'),_0x3c61('0x7e')]){const _0x54e9b5=_0x3a7c8d[_0x3c61('0x68')](0xb),_0x12ce7d=_0x54e9b5[_0x3c61('0x80')](),_0x48f575=_0x12ce7d['substr'](0x0,0x3)+_0x3c61('0x7f'),_0xaa534e=_0x3c61('0x32')+_0x54e9b5,_0x37d0e6='min'+_0x54e9b5,_0x4951fe=_0x3c61('0x9')+_0x54e9b5;_0x4d73f6[_0x3c61('0x55')](_0x3a7c8d,()=>{_0x416288['model'][_0x3c61('0x7a')](_0x418f42=>{const _0x33950e=_0x544af1['getSelectionAffectedTableCells'](_0x576067),_0x2fb3e0=_0x33950e[0x0][_0x3c61('0x5a')](_0x3c61('0x32'));let _0x2af938;if(_0x3c61('0x52')==_0x3a7c8d){const _0x4c23a5=_0x544af1[_0x3c61('0x1e')](_0x33950e);_0x2af938={'startRow':_0x4c23a5[_0x3c61('0x5c')],'endRow':_0x4c23a5[_0x3c61('0x14')],'includeAllSlots':!0x0};}else{const _0x44191b=_0x544af1['getColumnIndexes'](_0x33950e);_0x2af938={'startColumn':_0x44191b['first'],'endColumn':_0x44191b[_0x3c61('0x14')],'includeAllSlots':!0x0};}const _0x52ebab=_0x544af1[_0x3c61('0x46')](_0x2fb3e0,_0x2af938),_0x28812c=Array[_0x3c61('0x70')](_0x52ebab)[_0x3c61('0x25')](({cell:_0x2b9eda})=>_0x2b9eda),_0x2c1c20=se(_0x28812c['filter'](_0x9868a4=>_0x9868a4[_0x3c61('0xe')](_0x48f575))),_0x21d43c=se(_0x28812c[_0x3c61('0x29')](_0x1861cd=>!_0x1861cd[_0x3c61('0xe')](_0x48f575)))[_0x3c61('0x25')](_0x49e54f=>_0x418f42[_0x3c61('0x41')](_0x49e54f)),_0x6c8ddc=_0x4d73f6[_0x3c61('0x28')](_0x21d43c,_0xaa534e);if(_0x6c8ddc&&(_0x3c61('0x2')==_0x6c8ddc[_0x3c61('0x1d')]||_0x3c61('0x65')==_0x6c8ddc[_0x3c61('0x1d')])){const _0x347d18=this['_getSuggestionCoords'](_0x6c8ddc);for(const _0x366bc5 of _0x2c1c20){const _0x3c8596=_0x418f42[_0x3c61('0x41')](_0x366bc5),_0x44a5b8=_0x544af1[_0x3c61('0x62')](_0x366bc5),_0x38fa34=_0x366bc5[_0x3c61('0x7d')](_0x48f575)-0x1,_0x1ee7a0=_0x347d18[_0x37d0e6],_0x64d48f=_0x347d18[_0x4951fe];_0x1ee7a0<=_0x44a5b8[_0x12ce7d]&&_0x44a5b8[_0x12ce7d]+_0x38fa34<=_0x64d48f&&_0x6c8ddc[_0x3c61('0x53')](_0x3c8596);}}});});}function _0x11922c(_0x36c976){const _0x26852e=Array[_0x3c61('0x70')](_0x576067[_0x3c61('0x5')]())['map'](_0x52f633=>_0x29fa72[_0x3c61('0x1a')](_0x52f633));_0x416288[_0x3c61('0x60')][_0x3c61('0x7a')](_0x432310=>{const _0x475786=_0x432310[_0x3c61('0x6c')];_0x36c976=_0x36c976[_0x3c61('0x29')](_0x2d4bdb=>_0x3c61('0x12')!=_0x2d4bdb['root'][_0x3c61('0x64')]),_0x432310[_0x3c61('0x3f')](_0x36c976),_0x416288[_0x3c61('0x66')][_0x3c61('0x11')](_0x3c61('0x52'))['refresh'](),_0x416288[_0x3c61('0x34')](_0x3c61('0x52'),{'forceDefaultExecution':!0x0}),_0x416288[_0x3c61('0x60')][_0x3c61('0x30')](()=>{_0x416288['model'][_0x3c61('0x30')](_0x475786,_0x174ddc=>{const _0x158736=_0x26852e[_0x3c61('0x29')](_0x4290c8=>_0x3c61('0x12')!=_0x4290c8[_0x3c61('0x75')][_0x3c61('0x64')]);_0x158736['length']>0x0&&_0x174ddc['setSelection'](_0x158736);for(const _0x375499 of _0x26852e)_0x375499[_0x3c61('0x23')]();});});});}function _0xcfd380(_0x53b61d){_0x416288[_0x3c61('0x60')][_0x3c61('0x7a')](_0x5c7fbd=>{const _0x83ec26=Array[_0x3c61('0x70')](_0x576067['getRanges']())[_0x3c61('0x25')](_0x1bd601=>_0x29fa72[_0x3c61('0x1a')](_0x1bd601)),_0x143bfb=[];for(const _0x114e29 of _0x53b61d)for(const _0x5ab317 of _0x114e29[_0x3c61('0x2f')]({'shallow':!0x0}))_0x143bfb[_0x3c61('0x45')](_0x5ab317);for(const _0x5a67eb of _0x143bfb)_0x3c61('0x12')!=_0x5a67eb['root'][_0x3c61('0x64')]&&(_0x5c7fbd[_0x3c61('0x3f')](_0x5c7fbd[_0x3c61('0x3')](_0x5a67eb,0x0)),_0x416288['commands']['get']('removeTableColumn')[_0x3c61('0xf')](),_0x416288[_0x3c61('0x34')](_0x3c61('0x7e'),{'forceDefaultExecution':!0x0}));const _0x389117=_0x83ec26[_0x3c61('0x29')](_0x4f682b=>'$graveyard'!=_0x4f682b[_0x3c61('0x75')][_0x3c61('0x64')]);_0x389117[_0x3c61('0x79')]>0x0&&_0x5c7fbd['setSelection'](_0x389117);for(const _0x581d58 of _0x83ec26)_0x581d58[_0x3c61('0x23')]();});}function _0x520fcf(_0x3607e1,_0x22c51d){return _0x22c51d['every'](_0x25fa74=>_0x3607e1[_0x3c61('0x81')](_0x479742=>_0x479742[_0x3c61('0x2a')][_0x3c61('0x6a')](_0x25fa74[_0x3c61('0x6f')])||_0x25fa74[_0x3c61('0x2a')][_0x3c61('0x6a')](_0x479742[_0x3c61('0x6f')])));}function _0x2bf585(_0x4cf662,_0x6dc5dd){return _0x4cf662['some'](_0x24731b=>_0x6dc5dd[_0x3c61('0x81')](_0x8e2058=>_0x24731b[_0x3c61('0x2a')]['isTouching'](_0x8e2058[_0x3c61('0x6f')])));}_0x416288[_0x3c61('0x76')]['downcastDispatcher']['on'](_0x3c61('0x58'),(_0x6d7e7a,_0x1506a3,_0x196510)=>{if(!_0x196510[_0x3c61('0x63')][_0x3c61('0x1c')])return;const _0x11e5f3=_0x1506a3['item'];if(!_0x11e5f3)return;const _0x2a5619=_0x196510['mapper']['toViewElement'](_0x11e5f3);function _0x573074(_0x41832e){return Array[_0x3c61('0x3b')](_0x41832e)?_0x41832e:[_0x41832e];}_0x2a5619&&_0x3c61('0x24')===_0x11e5f3[_0x3c61('0x6e')]&&_0x12fe96(_0x2a5619,_0x196510[_0x3c61('0x51')],(_0x341e9a,_0x4dd91d,_0x21a2e9)=>_0x21a2e9[_0x3c61('0x6d')](_0x573074(_0x4dd91d[_0x3c61('0x19')]),_0x341e9a),(_0xc82557,_0x52f032,_0x5d012a)=>_0x5d012a[_0x3c61('0x56')](_0x573074(_0x52f032[_0x3c61('0x19')]),_0xc82557));},{'priority':'highest'}),_0x4d73f6[_0x3c61('0x3e')][_0x3c61('0x4')](_0x571775=>{if(_0x3c61('0x20')!=_0x571775[_0x3c61('0x5b')]&&_0x3c61('0x5f')!=_0x571775[_0x3c61('0x5b')])return;const _0x2336e1=_0x571775['getContainedElement']();if(null!=_0x2336e1&&_0x2336e1['is'](_0x3c61('0x73'),_0x3c61('0x32'))){if('insertion'==_0x571775[_0x3c61('0x5b')]){const _0x5e48a5=_0x571775['getItems']()[_0x3c61('0x29')](_0x71cbd3=>_0x71cbd3['is']('$textProxy'))[_0x3c61('0x25')](_0x30ed64=>_0x30ed64[_0x3c61('0x76')]);if(_0x5e48a5['length'])return{'type':_0x3c61('0x20'),'content':_0x12178e(_0x2e6d9a,_0x3c61('0x4e'),_0x12178e(_0x2e6d9a,_0x3c61('0x16'),'\x22'+_0x5e48a5[_0x3c61('0x3d')]('\x20')+'\x22'))};}if('deletion'==_0x571775[_0x3c61('0x5b')]){const _0x7e115b=_0x571775['getItems']()[_0x3c61('0x29')](_0x52b88c=>_0x52b88c['is'](_0x3c61('0x71')))[_0x3c61('0x25')](_0x5dfb2f=>_0x5dfb2f[_0x3c61('0x76')]);if(_0x7e115b[_0x3c61('0x79')])return{'type':_0x3c61('0x5f'),'content':_0x12178e(_0x2e6d9a,_0x3c61('0x7'),_0x12178e(_0x2e6d9a,_0x3c61('0x16'),'\x22'+_0x7e115b['join']('\x20')+'\x22'))};}}}),_0x4d73f6[_0x3c61('0x3e')]['registerDescriptionCallback'](_0x12cfb1=>{if(_0x3c61('0x2')==_0x12cfb1['subType']){const _0x4af949=_0x12cfb1[_0x3c61('0x2f')]()[_0x3c61('0x29')](_0x46ff24=>_0x46ff24['is'](_0x3c61('0x71')))['map'](_0x46dbda=>_0x46dbda[_0x3c61('0x76')]),_0x35bcc8=this[_0x3c61('0x3a')](_0x12cfb1),_0x3b5595=_0x35bcc8[_0x3c61('0x38')]-_0x35bcc8[_0x3c61('0x22')]+0x1;if('insertion'==_0x12cfb1[_0x3c61('0x5b')])return _0x4af949[_0x3c61('0x79')]?{'type':_0x3c61('0x20'),'content':_0x12178e(_0x2e6d9a,_0x3c61('0x4e'),_0x12178e(_0x2e6d9a,_0x3c61('0x47'),[_0x3b5595,'\x22'+_0x4af949['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x12178e(_0x2e6d9a,_0x3c61('0x4e'),_0x12178e(_0x2e6d9a,_0x3c61('0x5d'),_0x3b5595))};if(_0x3c61('0x5f')==_0x12cfb1[_0x3c61('0x5b')])return _0x4af949['length']?{'type':_0x3c61('0x5f'),'content':_0x12178e(_0x2e6d9a,_0x3c61('0x7'),_0x12178e(_0x2e6d9a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3b5595,'\x22'+_0x4af949[_0x3c61('0x3d')]('\x20')+'\x22']))}:{'type':_0x3c61('0x5f'),'content':_0x12178e(_0x2e6d9a,_0x3c61('0x7'),_0x12178e(_0x2e6d9a,_0x3c61('0x5d'),_0x3b5595))};}if(_0x3c61('0x65')==_0x12cfb1['subType']){const _0x5c3213=_0x12cfb1[_0x3c61('0x2f')]()[_0x3c61('0x29')](_0x596ca0=>_0x596ca0['is']('$textProxy'))[_0x3c61('0x25')](_0xb4dc6f=>_0xb4dc6f['data']),_0x513a32=this[_0x3c61('0x3a')](_0x12cfb1),_0x2b7cfc=_0x513a32['maxColumn']-_0x513a32[_0x3c61('0x4b')]+0x1;if(_0x3c61('0x20')==_0x12cfb1[_0x3c61('0x5b')])return _0x5c3213[_0x3c61('0x79')]?{'type':_0x3c61('0x20'),'content':_0x12178e(_0x2e6d9a,_0x3c61('0x4e'),_0x12178e(_0x2e6d9a,_0x3c61('0x61'),[_0x2b7cfc,'\x22'+_0x5c3213[_0x3c61('0x3d')]('\x20')+'\x22']))}:{'type':_0x3c61('0x20'),'content':_0x12178e(_0x2e6d9a,_0x3c61('0x4e'),_0x12178e(_0x2e6d9a,_0x3c61('0x44'),_0x2b7cfc))};if(_0x3c61('0x5f')==_0x12cfb1[_0x3c61('0x5b')])return _0x5c3213[_0x3c61('0x79')]?{'type':_0x3c61('0x5f'),'content':_0x12178e(_0x2e6d9a,_0x3c61('0x7'),_0x12178e(_0x2e6d9a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2b7cfc,'\x22'+_0x5c3213[_0x3c61('0x3d')]('\x20')+'\x22']))}:{'type':_0x3c61('0x5f'),'content':_0x12178e(_0x2e6d9a,'*Remove:*\x20%0',_0x12178e(_0x2e6d9a,_0x3c61('0x44'),_0x2b7cfc))};}}),_0x4d73f6[_0x3c61('0x7c')]['registerCustomCallback'](_0x3c61('0x20'),_0x3c61('0x2'),_0x3c61('0x82'),_0x11922c),_0x4d73f6[_0x3c61('0x7c')][_0x3c61('0x7b')]('deletion',_0x3c61('0x2'),_0x3c61('0x2b'),_0x11922c),_0x4d73f6[_0x3c61('0x7c')][_0x3c61('0x7b')]('insertion','tableColumn',_0x3c61('0x82'),_0xcfd380),_0x4d73f6[_0x3c61('0x7c')][_0x3c61('0x7b')]('deletion',_0x3c61('0x65'),_0x3c61('0x2b'),_0xcfd380),_0x4d73f6[_0x3c61('0x7c')]['registerCustomCallback'](_0x3c61('0x20'),_0x3c61('0x65'),'join',_0x520fcf),_0x4d73f6[_0x3c61('0x7c')][_0x3c61('0x7b')](_0x3c61('0x5f'),_0x3c61('0x65'),_0x3c61('0x3d'),_0x520fcf),_0x4d73f6[_0x3c61('0x7c')][_0x3c61('0x7b')](_0x3c61('0x20'),'tableRow',_0x3c61('0x3d'),_0x2bf585),_0x4d73f6[_0x3c61('0x7c')][_0x3c61('0x7b')](_0x3c61('0x5f'),'tableRow',_0x3c61('0x3d'),_0x2bf585);}[_0x3c61('0xd')](){const _0x1dc002=this['editor'],_0x4875a2=_0x1dc002[_0x3c61('0x60')][_0x3c61('0x43')][_0x3c61('0x49')];return(_0x347900,_0x6e7c94)=>{_0x1dc002[_0x3c61('0x60')][_0x3c61('0x7a')](_0x153090=>{const {commandName:_0x391fc8,commandParams:_0x38684d}=_0x6e7c94;let _0x3211db=_0x347900[0x0][_0x3c61('0x2a')][_0x3c61('0x50')];_0x38684d&&_0x38684d[0x0]&&!0x1===_0x38684d[0x0][_0x3c61('0x84')]&&(_0x3211db=_0x347900[0x0]['start']['nodeAfter']);const _0x4e69ce=_0x153090['createRangeIn'](_0x3211db);if(_0x3c61('0x12')==_0x4e69ce['root'][_0x3c61('0x64')])return;const _0x5b40eb=Array[_0x3c61('0x70')](_0x4875a2[_0x3c61('0x5')]())[_0x3c61('0x25')](_0x5c7ed7=>_0x29fa72['fromRange'](_0x5c7ed7));_0x153090['setSelection'](_0x4e69ce),_0x1dc002[_0x3c61('0x66')][_0x3c61('0x11')](_0x391fc8)['refresh'](),_0x38684d[_0x3c61('0x45')]({'forceDefaultExecution':!0x0}),_0x1dc002['execute'](_0x391fc8,..._0x38684d);const _0x267be0=_0x5b40eb[_0x3c61('0x29')](_0x15ed2e=>_0x3c61('0x12')!=_0x15ed2e[_0x3c61('0x75')][_0x3c61('0x64')]);_0x267be0[_0x3c61('0x79')]>0x0&&_0x153090['setSelection'](_0x267be0);for(const _0x4ac86c of _0x5b40eb)_0x4ac86c[_0x3c61('0x23')]();});};}[_0x3c61('0x57')](_0x7aebab){const _0xe5c4=this[_0x3c61('0x3c')][_0x3c61('0x15')][_0x3c61('0x11')](_0x3c61('0x72'));let _0x1051b9=Number[_0x3c61('0x4c')],_0x1b63dd=Number[_0x3c61('0x4d')],_0x4d4c55=Number[_0x3c61('0x4c')],_0x3aef2e=Number[_0x3c61('0x4d')];for(const _0x4156f8 of _0x7aebab){if('$graveyard'==_0x4156f8[_0x3c61('0x75')][_0x3c61('0x64')])continue;const {row:_0x7ced3a,column:_0x232ff9}=_0xe5c4[_0x3c61('0x62')](_0x4156f8),_0x413f79=_0x4156f8[_0x3c61('0xe')](_0x3c61('0x33'))?_0x4156f8['getAttribute'](_0x3c61('0x33'))-0x1:0x0,_0xa4ca1b=_0x4156f8[_0x3c61('0xe')]('colspan')?_0x4156f8[_0x3c61('0x7d')]('colspan')-0x1:0x0;_0x1051b9=_0x7ced3a<_0x1051b9?_0x7ced3a:_0x1051b9,_0x1b63dd=_0x7ced3a+_0x413f79>_0x1b63dd?_0x7ced3a+_0x413f79:_0x1b63dd,_0x4d4c55=_0x232ff9<_0x4d4c55?_0x232ff9:_0x4d4c55,_0x3aef2e=_0x232ff9+_0xa4ca1b>_0x3aef2e?_0x232ff9+_0xa4ca1b:_0x3aef2e;}return{'minRow':_0x1051b9,'maxRow':_0x1b63dd,'minColumn':_0x4d4c55,'maxColumn':_0x3aef2e};}[_0x3c61('0x85')](){const _0x130a0e=this['editor'],_0x4309b5=_0x130a0e[_0x3c61('0x15')]['get']('TrackChangesEditing'),_0x49d7c2=_0x130a0e['plugins'][_0x3c61('0x11')](_0x3c61('0x72'));_0x130a0e[_0x3c61('0x60')]['document']['on'](_0x3c61('0x74'),()=>{const _0x1552b9=Array['from'](_0x130a0e[_0x3c61('0x60')][_0x3c61('0x43')][_0x3c61('0xa')][_0x3c61('0x5e')]());for(const {name:_0x39eb66,data:_0x231d32}of _0x1552b9){const {group:_0x5dddf9,id:_0xb7eda5,subType:_0x2e1d6f}=_0x4309b5[_0x3c61('0x48')](_0x39eb66);if(_0x3c61('0x77')!=_0x5dddf9)continue;if(null!=_0x231d32[_0x3c61('0x42')])continue;const _0x3cdb91=_0x4309b5['getSuggestion'](_0xb7eda5);this[_0x3c61('0x2e')][_0x3c61('0x36')](_0x2e1d6f)&&this[_0x3c61('0x27')][_0x3c61('0x21')](_0x3cdb91);}},{'priority':_0x3c61('0x17')});const _0x1509e8=(_0x4ba7e0,_0x308687)=>{let _0x1c5044=!0x1;const _0x570e2d=_0x308687['createRangeOn'](_0x4ba7e0),_0x43379e=_0x4ba7e0[_0x3c61('0x5a')](_0x3c61('0x32')),_0x197af7=_0x49d7c2[_0x3c61('0x62')](_0x4ba7e0);for(const _0x19d9ec of this[_0x3c61('0x27')]){const _0x54a5d3=_0x19d9ec['subType'],_0x3c77d5=_0x54a5d3[_0x3c61('0x10')](_0x3c61('0x18')),_0x4d5764=_0x54a5d3['substr'](_0x3c77d5?0xa:0x5),_0x3d7591=_0x4d5764[_0x3c61('0x80')](),_0x2974d0=_0x3d7591[_0x3c61('0x68')](0x0,0x3)+_0x3c61('0x7f'),_0x5204ea='min'+_0x4d5764,_0x2ec4bc=_0x3c61('0x9')+_0x4d5764;if(!_0x19d9ec[_0x3c61('0x6b')])continue;if(_0x43379e!=_0x19d9ec[_0x3c61('0x1f')]()[_0x3c61('0x6f')][_0x3c61('0x5a')](_0x3c61('0x32')))continue;if(_0x19d9ec[_0x3c61('0x54')](_0x570e2d))continue;const _0x3516cb=_0x4ba7e0['hasAttribute'](_0x2974d0)?_0x4ba7e0['getAttribute'](_0x2974d0)-0x1:0x0,_0x294ca0=this[_0x3c61('0x3a')](_0x19d9ec),_0x298af7=_0x294ca0[_0x5204ea],_0xf95421=_0x294ca0[_0x2ec4bc];_0x298af7<=_0x197af7[_0x3d7591]&&_0x197af7[_0x3d7591]+_0x3516cb<=_0xf95421&&(_0x19d9ec[_0x3c61('0x53')](_0x570e2d),_0x1c5044=!0x0);}return _0x1c5044;};_0x130a0e[_0x3c61('0x60')]['document'][_0x3c61('0x2d')](_0x337f70=>{let _0x14e2fb=!0x1;for(const _0x8a4deb of _0x130a0e[_0x3c61('0x60')][_0x3c61('0x43')][_0x3c61('0xa')][_0x3c61('0x86')]())if(_0x3c61('0x8')==_0x8a4deb[_0x3c61('0x5b')]){if('tableRow'==_0x8a4deb[_0x3c61('0x6e')])for(const _0x3db05d of _0x8a4deb[_0x3c61('0x13')]['nodeAfter'][_0x3c61('0x6')]())_0x14e2fb=_0x14e2fb||_0x1509e8(_0x3db05d,_0x337f70);else _0x3c61('0x24')==_0x8a4deb['name']&&(_0x14e2fb=_0x14e2fb||_0x1509e8(_0x8a4deb[_0x3c61('0x13')][_0x3c61('0x0')],_0x337f70));}return _0x14e2fb;});}[_0x3c61('0x3a')](_0x46b9e4){return this[_0x3c61('0x57')](_0x46b9e4[_0x3c61('0x5')]()[_0x3c61('0x25')](_0x37006b=>_0x37006b[_0x3c61('0x6f')][_0x3c61('0x0')]));}}function se(_0x16dcd8){return Array[_0x3c61('0x70')](new Set(_0x16dcd8)[_0x3c61('0xb')]());}
|
|
23
|
+
const _0x2d45=['setSelection','locale','max','createPositionAt','insertion','insert','change','change:data','first','markMultiRangeDeletion','document','join','hasAttribute','differ','deletion','span','detach','getCellLocation','TableUtils','cell','ELEMENT_TABLE_COLUMN','tableCell','oldRange','registerCustomCallback','_suggestionFactory','mapper','removeClass','removeTableColumn','commands','ELEMENT_TABLE_ROW','isIntersectingWithRange','type','createRangeOn','downcastDispatcher','substr','MIN_SAFE_INTEGER','tableColumn','data','item','execute','registerPostFixer','getRanges','getFirstRange','insertTableColumnRight','filter','markMultiRangeInsertion','addRange','above','getContainedElement','getChanges','writer','element','getRowIndexes','table','from','some','$graveyard','_getCoordsForCells','findAncestor','name','subType','createTableWalker','addMarker:suggestion','options','_getSuggestionCoords','*Insert:*\x20%0','add','accept','length','editor','selection','nodeAfter','isTouching','ELEMENT_TABLE_ROW_WITH_TEXT','_setupColumnsRowsFixing','plugins','model','has','isArray','ELEMENT_TABLE_COLUMN_WITH_TEXT','enqueueChange','$textProxy','refresh','removeTableRow','_tableSuggestions','root','tableRow','classes','push','rowspan','getItems','_acceptFormatSuggestionCallbackFactory','TrackChangesEditing','_tablePostFixingSubtypes','ELEMENT_TABLE_WITH_TEXT','minRow','start','insertTableColumnLeft','*Remove:*\x20%0','getChildren','toViewElement','getChangedMarkers','ELEMENT_TABLE','order','_descriptionFactory','enableCommand','get','min','highest','colspan','insertTableRowBelow','forceValue','getAttribute','last','addClass','tablePaste','isEqual','registerDescriptionCallback','suggestion','map','afterInit','toLowerCase','low','maxRow','rootName','values','end','getSelectionAffectedTableCells','fromRange','getSuggestion'];(function(_0x5bd17c,_0x2d4543){const _0x23b96b=function(_0x3dfa60){while(--_0x3dfa60){_0x5bd17c['push'](_0x5bd17c['shift']());}};_0x23b96b(++_0x2d4543);}(_0x2d45,0x1e6));const _0x23b9=function(_0x5bd17c,_0x2d4543){_0x5bd17c=_0x5bd17c-0x0;let _0x23b96b=_0x2d45[_0x5bd17c];return _0x23b96b;};import{Plugin as _0x3e069f}from'ckeditor5/src/core';import{LiveRange as _0x272c87}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2662e1}from'ckeditor5/src/widget';import{getTranslation as _0x4edab9}from'../utils/common-translations';export default class wt extends _0x3e069f{constructor(_0x58e778){super(_0x58e778),this[_0x23b9('0x7f')]=[_0x23b9('0x78'),'tableColumn'],this[_0x23b9('0x76')]=new Set();}[_0x23b9('0x18')](){const _0x43dae6=this['editor'],_0x4102e1=_0x43dae6[_0x23b9('0x6e')]['document']['selection'];if(!_0x43dae6[_0x23b9('0x6d')][_0x23b9('0x6f')]('TableEditing'))return;const _0x43ca75=_0x43dae6[_0x23b9('0x23')],_0x574215=_0x43dae6[_0x23b9('0x6d')]['get'](_0x23b9('0x7e')),_0x1f610b=_0x43dae6[_0x23b9('0x6d')][_0x23b9('0xa')](_0x23b9('0x34'));_0x574215[_0x23b9('0x8')]['registerElementLabel'](_0x23b9('0x57'),_0x4e239d=>_0x4edab9(_0x43ca75,_0x23b9('0x6'),_0x4e239d)),this[_0x23b9('0x6c')](),_0x574215[_0x23b9('0x9')]('insertTable'),_0x574215[_0x23b9('0x9')]('selectTableRow'),_0x574215[_0x23b9('0x9')]('selectTableColumn');for(const _0x587eaf of['insertTableRowAbove',_0x23b9('0xe')]){const _0x377415=_0x43dae6[_0x23b9('0x3e')]['get'](_0x587eaf);_0x574215[_0x23b9('0x9')](_0x587eaf,_0x281837=>{_0x43dae6['model'][_0x23b9('0x28')](_0x5b38c0=>{_0x281837();const _0x266c9a=_0x23b9('0x51')===_0x377415['order'],_0x3224ea=_0x1f610b[_0x23b9('0x1f')](_0x4102e1),_0x2d9245=_0x1f610b[_0x23b9('0x56')](_0x3224ea),_0x2d0fd2=_0x266c9a?_0x2d9245['first']-0x1:_0x2d9245[_0x23b9('0x11')]+0x1,_0x2b789a=_0x3224ea[0x0][_0x23b9('0x5c')](_0x23b9('0x57')),_0x21c615=_0x1f610b[_0x23b9('0x5f')](_0x2b789a,{'startRow':_0x2d0fd2,'endRow':_0x2d0fd2}),_0x4ef969=Array[_0x23b9('0x58')](_0x21c615)[_0x23b9('0x17')](_0x297270=>_0x5b38c0[_0x23b9('0x42')](_0x297270[_0x23b9('0x35')]));_0x574215[_0x23b9('0x4f')](_0x4ef969,'tableRow');});});}for(const _0xa224e5 of[_0x23b9('0x1'),_0x23b9('0x4d')]){const _0x48ce21=_0x43dae6['commands'][_0x23b9('0xa')](_0xa224e5);_0x574215[_0x23b9('0x9')](_0xa224e5,_0x30b2df=>{_0x43dae6[_0x23b9('0x6e')][_0x23b9('0x28')](_0x307404=>{_0x30b2df();const _0x5630d4='left'===_0x48ce21[_0x23b9('0x7')],_0x2fdb5c=_0x1f610b[_0x23b9('0x1f')](_0x4102e1),_0x5dd06f=_0x1f610b['getColumnIndexes'](_0x2fdb5c),_0x3172ff=_0x5630d4?_0x5dd06f['first']-0x1:_0x5dd06f[_0x23b9('0x11')]+0x1,_0x424ff0=_0x2fdb5c[0x0][_0x23b9('0x5c')](_0x23b9('0x57')),_0x137bf5=_0x1f610b[_0x23b9('0x5f')](_0x424ff0,{'startRow':0x0,'column':_0x3172ff,'includeAllSlots':!0x1}),_0x22dca9=Array['from'](_0x137bf5)['map'](_0x34257d=>_0x307404[_0x23b9('0x42')](_0x34257d[_0x23b9('0x35')]));_0x574215['markMultiRangeInsertion'](_0x22dca9,'tableColumn');});});}for(const _0x47448d of[_0x23b9('0x75'),_0x23b9('0x3d')]){const _0x16942d=_0x47448d[_0x23b9('0x44')](0xb),_0x543729=_0x16942d[_0x23b9('0x19')](),_0x3f99bf=_0x543729[_0x23b9('0x44')](0x0,0x3)+'span',_0x5d8e75=_0x23b9('0x57')+_0x16942d,_0x273831='min'+_0x16942d,_0x3b5897='max'+_0x16942d;_0x574215[_0x23b9('0x9')](_0x47448d,()=>{_0x43dae6[_0x23b9('0x6e')][_0x23b9('0x28')](_0x292df2=>{const _0x5bf60b=_0x1f610b[_0x23b9('0x1f')](_0x4102e1),_0xce501=_0x5bf60b[0x0][_0x23b9('0x5c')](_0x23b9('0x57'));let _0x266079;if(_0x23b9('0x75')==_0x47448d){const _0x5b2fdb=_0x1f610b[_0x23b9('0x56')](_0x5bf60b);_0x266079={'startRow':_0x5b2fdb[_0x23b9('0x2a')],'endRow':_0x5b2fdb[_0x23b9('0x11')],'includeAllSlots':!0x0};}else{const _0x187058=_0x1f610b['getColumnIndexes'](_0x5bf60b);_0x266079={'startColumn':_0x187058[_0x23b9('0x2a')],'endColumn':_0x187058[_0x23b9('0x11')],'includeAllSlots':!0x0};}const _0x572a45=_0x1f610b[_0x23b9('0x5f')](_0xce501,_0x266079),_0x60f00f=Array[_0x23b9('0x58')](_0x572a45)[_0x23b9('0x17')](({cell:_0x1778d5})=>_0x1778d5),_0x5e82cf=se(_0x60f00f[_0x23b9('0x4e')](_0x4efc79=>_0x4efc79['hasAttribute'](_0x3f99bf))),_0x54301d=se(_0x60f00f['filter'](_0x2fcc15=>!_0x2fcc15[_0x23b9('0x2e')](_0x3f99bf)))[_0x23b9('0x17')](_0x57adfd=>_0x292df2[_0x23b9('0x42')](_0x57adfd)),_0x4f61a0=_0x574215[_0x23b9('0x2b')](_0x54301d,_0x5d8e75);if(_0x4f61a0&&(_0x23b9('0x78')==_0x4f61a0[_0x23b9('0x5e')]||_0x23b9('0x46')==_0x4f61a0[_0x23b9('0x5e')])){const _0x4a496b=this[_0x23b9('0x62')](_0x4f61a0);for(const _0x91567e of _0x5e82cf){const _0x1b9643=_0x292df2[_0x23b9('0x42')](_0x91567e),_0x2e3950=_0x1f610b[_0x23b9('0x33')](_0x91567e),_0x53233e=_0x91567e[_0x23b9('0x10')](_0x3f99bf)-0x1,_0x28a86b=_0x4a496b[_0x273831],_0x9d0cfd=_0x4a496b[_0x3b5897];_0x28a86b<=_0x2e3950[_0x543729]&&_0x2e3950[_0x543729]+_0x53233e<=_0x9d0cfd&&_0x4f61a0['addRange'](_0x1b9643);}}});});}function _0x9bdb58(_0x3a6647){const _0x3aac45=Array[_0x23b9('0x58')](_0x4102e1[_0x23b9('0x4b')]())['map'](_0x4d91b7=>_0x272c87[_0x23b9('0x20')](_0x4d91b7));_0x43dae6[_0x23b9('0x6e')][_0x23b9('0x28')](_0x1c1f2f=>{const _0x106364=_0x1c1f2f['batch'];_0x3a6647=_0x3a6647[_0x23b9('0x4e')](_0x1b0d71=>_0x23b9('0x5a')!=_0x1b0d71['root']['rootName']),_0x1c1f2f[_0x23b9('0x22')](_0x3a6647),_0x43dae6[_0x23b9('0x3e')]['get'](_0x23b9('0x75'))['refresh'](),_0x43dae6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x43dae6[_0x23b9('0x6e')]['enqueueChange'](()=>{_0x43dae6[_0x23b9('0x6e')][_0x23b9('0x72')](_0x106364,_0x47a2fb=>{const _0x2fecbd=_0x3aac45[_0x23b9('0x4e')](_0x19b2db=>_0x23b9('0x5a')!=_0x19b2db[_0x23b9('0x77')]['rootName']);_0x2fecbd[_0x23b9('0x66')]>0x0&&_0x47a2fb[_0x23b9('0x22')](_0x2fecbd);for(const _0x1700a0 of _0x3aac45)_0x1700a0[_0x23b9('0x32')]();});});});}function _0x257b58(_0x3f3d2c){_0x43dae6[_0x23b9('0x6e')][_0x23b9('0x28')](_0x31ea24=>{const _0xadc2e3=Array[_0x23b9('0x58')](_0x4102e1[_0x23b9('0x4b')]())[_0x23b9('0x17')](_0x2d441e=>_0x272c87[_0x23b9('0x20')](_0x2d441e)),_0x4fc580=[];for(const _0x236bd9 of _0x3f3d2c)for(const _0x14f6e0 of _0x236bd9['getItems']({'shallow':!0x0}))_0x4fc580['push'](_0x14f6e0);for(const _0x59c1af of _0x4fc580)_0x23b9('0x5a')!=_0x59c1af[_0x23b9('0x77')][_0x23b9('0x1c')]&&(_0x31ea24['setSelection'](_0x31ea24[_0x23b9('0x25')](_0x59c1af,0x0)),_0x43dae6[_0x23b9('0x3e')][_0x23b9('0xa')](_0x23b9('0x3d'))[_0x23b9('0x74')](),_0x43dae6[_0x23b9('0x49')](_0x23b9('0x3d'),{'forceDefaultExecution':!0x0}));const _0x4f4485=_0xadc2e3[_0x23b9('0x4e')](_0x1ad09e=>'$graveyard'!=_0x1ad09e['root']['rootName']);_0x4f4485['length']>0x0&&_0x31ea24[_0x23b9('0x22')](_0x4f4485);for(const _0x4f2826 of _0xadc2e3)_0x4f2826[_0x23b9('0x32')]();});}function _0x3f26fc(_0x5abfd8,_0x5c21ef){return _0x5c21ef['every'](_0x214c8f=>_0x5abfd8[_0x23b9('0x59')](_0x58c320=>_0x58c320[_0x23b9('0x1e')][_0x23b9('0x14')](_0x214c8f[_0x23b9('0x0')])||_0x214c8f['end']['isEqual'](_0x58c320[_0x23b9('0x0')])));}function _0x17c8ea(_0xf03248,_0x3b241d){return _0xf03248[_0x23b9('0x59')](_0x5504f5=>_0x3b241d[_0x23b9('0x59')](_0x47e4b3=>_0x5504f5['end'][_0x23b9('0x6a')](_0x47e4b3[_0x23b9('0x0')])));}_0x43dae6[_0x23b9('0x47')][_0x23b9('0x43')]['on'](_0x23b9('0x60'),(_0x955eaf,_0x195a86,_0x20d9c1)=>{if(!_0x20d9c1[_0x23b9('0x61')]['showSuggestionHighlights'])return;const _0x575d5e=_0x195a86[_0x23b9('0x48')];if(!_0x575d5e)return;const _0x2506d5=_0x20d9c1[_0x23b9('0x3b')][_0x23b9('0x4')](_0x575d5e);function _0x345420(_0x4f7c39){return Array[_0x23b9('0x70')](_0x4f7c39)?_0x4f7c39:[_0x4f7c39];}_0x2506d5&&'tableCell'===_0x575d5e[_0x23b9('0x5d')]&&_0x2662e1(_0x2506d5,_0x20d9c1[_0x23b9('0x54')],(_0x46f9b7,_0x2c6545,_0x3da32d)=>_0x3da32d[_0x23b9('0x12')](_0x345420(_0x2c6545[_0x23b9('0x79')]),_0x46f9b7),(_0x2ccfee,_0x3c4d5d,_0x34f431)=>_0x34f431[_0x23b9('0x3c')](_0x345420(_0x3c4d5d[_0x23b9('0x79')]),_0x2ccfee));},{'priority':_0x23b9('0xc')}),_0x574215[_0x23b9('0x8')][_0x23b9('0x15')](_0xeb125c=>{if('insertion'!=_0xeb125c[_0x23b9('0x41')]&&_0x23b9('0x30')!=_0xeb125c[_0x23b9('0x41')])return;const _0x2cca8b=_0xeb125c[_0x23b9('0x52')]();if(null!=_0x2cca8b&&_0x2cca8b['is'](_0x23b9('0x55'),'table')){if('insertion'==_0xeb125c['type']){const _0xfb6fde=_0xeb125c[_0x23b9('0x7c')]()[_0x23b9('0x4e')](_0x5846ca=>_0x5846ca['is']('$textProxy'))[_0x23b9('0x17')](_0x370d7a=>_0x370d7a[_0x23b9('0x47')]);if(_0xfb6fde['length'])return{'type':_0x23b9('0x26'),'content':_0x4edab9(_0x43ca75,'*Insert:*\x20%0',_0x4edab9(_0x43ca75,_0x23b9('0x80'),'\x22'+_0xfb6fde[_0x23b9('0x2d')]('\x20')+'\x22'))};}if(_0x23b9('0x30')==_0xeb125c['type']){const _0x3c4f2d=_0xeb125c[_0x23b9('0x7c')]()['filter'](_0x3b89e2=>_0x3b89e2['is'](_0x23b9('0x73')))[_0x23b9('0x17')](_0x5a133b=>_0x5a133b[_0x23b9('0x47')]);if(_0x3c4f2d[_0x23b9('0x66')])return{'type':_0x23b9('0x30'),'content':_0x4edab9(_0x43ca75,_0x23b9('0x2'),_0x4edab9(_0x43ca75,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3c4f2d[_0x23b9('0x2d')]('\x20')+'\x22'))};}}}),_0x574215['_descriptionFactory'][_0x23b9('0x15')](_0x29860f=>{if('tableRow'==_0x29860f['subType']){const _0x7dc9d9=_0x29860f[_0x23b9('0x7c')]()['filter'](_0x385703=>_0x385703['is'](_0x23b9('0x73')))[_0x23b9('0x17')](_0x59a28a=>_0x59a28a['data']),_0x18a6a1=this[_0x23b9('0x62')](_0x29860f),_0x867053=_0x18a6a1[_0x23b9('0x1b')]-_0x18a6a1[_0x23b9('0x81')]+0x1;if(_0x23b9('0x26')==_0x29860f[_0x23b9('0x41')])return _0x7dc9d9['length']?{'type':_0x23b9('0x26'),'content':_0x4edab9(_0x43ca75,'*Insert:*\x20%0',_0x4edab9(_0x43ca75,_0x23b9('0x6b'),[_0x867053,'\x22'+_0x7dc9d9[_0x23b9('0x2d')]('\x20')+'\x22']))}:{'type':_0x23b9('0x26'),'content':_0x4edab9(_0x43ca75,_0x23b9('0x63'),_0x4edab9(_0x43ca75,'ELEMENT_TABLE_ROW',_0x867053))};if('deletion'==_0x29860f[_0x23b9('0x41')])return _0x7dc9d9[_0x23b9('0x66')]?{'type':'deletion','content':_0x4edab9(_0x43ca75,_0x23b9('0x2'),_0x4edab9(_0x43ca75,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x867053,'\x22'+_0x7dc9d9[_0x23b9('0x2d')]('\x20')+'\x22']))}:{'type':_0x23b9('0x30'),'content':_0x4edab9(_0x43ca75,_0x23b9('0x2'),_0x4edab9(_0x43ca75,_0x23b9('0x3f'),_0x867053))};}if('tableColumn'==_0x29860f['subType']){const _0x3dd97b=_0x29860f[_0x23b9('0x7c')]()['filter'](_0x1fbc52=>_0x1fbc52['is']('$textProxy'))[_0x23b9('0x17')](_0x268d8f=>_0x268d8f[_0x23b9('0x47')]),_0x4a8821=this[_0x23b9('0x62')](_0x29860f),_0x5f4e39=_0x4a8821['maxColumn']-_0x4a8821['minColumn']+0x1;if(_0x23b9('0x26')==_0x29860f[_0x23b9('0x41')])return _0x3dd97b['length']?{'type':_0x23b9('0x26'),'content':_0x4edab9(_0x43ca75,_0x23b9('0x63'),_0x4edab9(_0x43ca75,_0x23b9('0x71'),[_0x5f4e39,'\x22'+_0x3dd97b[_0x23b9('0x2d')]('\x20')+'\x22']))}:{'type':_0x23b9('0x26'),'content':_0x4edab9(_0x43ca75,_0x23b9('0x63'),_0x4edab9(_0x43ca75,'ELEMENT_TABLE_COLUMN',_0x5f4e39))};if(_0x23b9('0x30')==_0x29860f[_0x23b9('0x41')])return _0x3dd97b['length']?{'type':_0x23b9('0x30'),'content':_0x4edab9(_0x43ca75,_0x23b9('0x2'),_0x4edab9(_0x43ca75,_0x23b9('0x71'),[_0x5f4e39,'\x22'+_0x3dd97b[_0x23b9('0x2d')]('\x20')+'\x22']))}:{'type':_0x23b9('0x30'),'content':_0x4edab9(_0x43ca75,_0x23b9('0x2'),_0x4edab9(_0x43ca75,_0x23b9('0x36'),_0x5f4e39))};}}),_0x574215[_0x23b9('0x3a')]['registerCustomCallback']('insertion',_0x23b9('0x78'),'discard',_0x9bdb58),_0x574215['_suggestionFactory']['registerCustomCallback']('deletion',_0x23b9('0x78'),_0x23b9('0x65'),_0x9bdb58),_0x574215['_suggestionFactory'][_0x23b9('0x39')]('insertion','tableColumn','discard',_0x257b58),_0x574215[_0x23b9('0x3a')]['registerCustomCallback'](_0x23b9('0x30'),_0x23b9('0x46'),_0x23b9('0x65'),_0x257b58),_0x574215[_0x23b9('0x3a')]['registerCustomCallback'](_0x23b9('0x26'),_0x23b9('0x46'),_0x23b9('0x2d'),_0x3f26fc),_0x574215[_0x23b9('0x3a')]['registerCustomCallback'](_0x23b9('0x30'),_0x23b9('0x46'),'join',_0x3f26fc),_0x574215[_0x23b9('0x3a')][_0x23b9('0x39')](_0x23b9('0x26'),_0x23b9('0x78'),_0x23b9('0x2d'),_0x17c8ea),_0x574215[_0x23b9('0x3a')][_0x23b9('0x39')]('deletion','tableRow',_0x23b9('0x2d'),_0x17c8ea);}[_0x23b9('0x7d')](){const _0x2bce4e=this[_0x23b9('0x67')],_0x3fda8b=_0x2bce4e[_0x23b9('0x6e')][_0x23b9('0x2c')][_0x23b9('0x68')];return(_0x23c8da,_0x5d48e1)=>{_0x2bce4e[_0x23b9('0x6e')][_0x23b9('0x28')](_0xfafbb8=>{const {commandName:_0x40167c,commandParams:_0x1d8849}=_0x5d48e1;let _0x31c624=_0x23c8da[0x0][_0x23b9('0x1e')]['nodeBefore'];_0x1d8849&&_0x1d8849[0x0]&&!0x1===_0x1d8849[0x0][_0x23b9('0xf')]&&(_0x31c624=_0x23c8da[0x0][_0x23b9('0x0')]['nodeAfter']);const _0xaf84d0=_0xfafbb8['createRangeIn'](_0x31c624);if(_0x23b9('0x5a')==_0xaf84d0[_0x23b9('0x77')]['rootName'])return;const _0x3cc896=Array[_0x23b9('0x58')](_0x3fda8b[_0x23b9('0x4b')]())[_0x23b9('0x17')](_0x523d45=>_0x272c87[_0x23b9('0x20')](_0x523d45));_0xfafbb8[_0x23b9('0x22')](_0xaf84d0),_0x2bce4e[_0x23b9('0x3e')][_0x23b9('0xa')](_0x40167c)[_0x23b9('0x74')](),_0x1d8849[_0x23b9('0x7a')]({'forceDefaultExecution':!0x0}),_0x2bce4e[_0x23b9('0x49')](_0x40167c,..._0x1d8849);const _0x3bd560=_0x3cc896[_0x23b9('0x4e')](_0x5536e1=>_0x23b9('0x5a')!=_0x5536e1['root'][_0x23b9('0x1c')]);_0x3bd560[_0x23b9('0x66')]>0x0&&_0xfafbb8[_0x23b9('0x22')](_0x3bd560);for(const _0x5cb9d4 of _0x3cc896)_0x5cb9d4[_0x23b9('0x32')]();});};}[_0x23b9('0x5b')](_0x4735c1){const _0x2af7a2=this['editor'][_0x23b9('0x6d')]['get'](_0x23b9('0x34'));let _0x2fb7b2=Number['MAX_SAFE_INTEGER'],_0x4c8cf1=Number[_0x23b9('0x45')],_0x44c3da=Number['MAX_SAFE_INTEGER'],_0x32b824=Number['MIN_SAFE_INTEGER'];for(const _0x333993 of _0x4735c1){if(_0x23b9('0x5a')==_0x333993[_0x23b9('0x77')]['rootName'])continue;const {row:_0x21bc6d,column:_0x3c00f1}=_0x2af7a2[_0x23b9('0x33')](_0x333993),_0x1d0420=_0x333993[_0x23b9('0x2e')](_0x23b9('0x7b'))?_0x333993[_0x23b9('0x10')]('rowspan')-0x1:0x0,_0x191e71=_0x333993[_0x23b9('0x2e')](_0x23b9('0xd'))?_0x333993['getAttribute'](_0x23b9('0xd'))-0x1:0x0;_0x2fb7b2=_0x21bc6d<_0x2fb7b2?_0x21bc6d:_0x2fb7b2,_0x4c8cf1=_0x21bc6d+_0x1d0420>_0x4c8cf1?_0x21bc6d+_0x1d0420:_0x4c8cf1,_0x44c3da=_0x3c00f1<_0x44c3da?_0x3c00f1:_0x44c3da,_0x32b824=_0x3c00f1+_0x191e71>_0x32b824?_0x3c00f1+_0x191e71:_0x32b824;}return{'minRow':_0x2fb7b2,'maxRow':_0x4c8cf1,'minColumn':_0x44c3da,'maxColumn':_0x32b824};}['_setupColumnsRowsFixing'](){const _0x179175=this[_0x23b9('0x67')],_0x569d73=_0x179175[_0x23b9('0x6d')][_0x23b9('0xa')](_0x23b9('0x7e')),_0x475b78=_0x179175['plugins'][_0x23b9('0xa')](_0x23b9('0x34'));_0x179175[_0x23b9('0x6e')][_0x23b9('0x2c')]['on'](_0x23b9('0x29'),()=>{const _0xba7658=Array[_0x23b9('0x58')](_0x179175[_0x23b9('0x6e')]['document'][_0x23b9('0x2f')][_0x23b9('0x5')]());for(const {name:_0x519653,data:_0x308256}of _0xba7658){const {group:_0x1d6d4a,id:_0x5e6c24,subType:_0x714576}=_0x569d73['_splitMarkerName'](_0x519653);if(_0x23b9('0x16')!=_0x1d6d4a)continue;if(null!=_0x308256[_0x23b9('0x38')])continue;const _0x8d1015=_0x569d73[_0x23b9('0x21')](_0x5e6c24);this[_0x23b9('0x7f')]['includes'](_0x714576)&&this[_0x23b9('0x76')][_0x23b9('0x64')](_0x8d1015);}},{'priority':_0x23b9('0x1a')});const _0x2121b2=(_0x53f604,_0x3b145e)=>{let _0x4c84dd=!0x1;const _0x799380=_0x3b145e[_0x23b9('0x42')](_0x53f604),_0x3d0b63=_0x53f604[_0x23b9('0x5c')](_0x23b9('0x57')),_0x26008a=_0x475b78[_0x23b9('0x33')](_0x53f604);for(const _0x5e6d44 of this['_tableSuggestions']){const _0x3f64c4=_0x5e6d44['subType'],_0x157c13=_0x3f64c4['startsWith'](_0x23b9('0x13')),_0x546beb=_0x3f64c4[_0x23b9('0x44')](_0x157c13?0xa:0x5),_0x821887=_0x546beb[_0x23b9('0x19')](),_0x25d225=_0x821887['substr'](0x0,0x3)+_0x23b9('0x31'),_0x14b4dd=_0x23b9('0xb')+_0x546beb,_0x53b1f9=_0x23b9('0x24')+_0x546beb;if(!_0x5e6d44['isInContent'])continue;if(_0x3d0b63!=_0x5e6d44[_0x23b9('0x4c')]()['start']['findAncestor'](_0x23b9('0x57')))continue;if(_0x5e6d44[_0x23b9('0x40')](_0x799380))continue;const _0x140644=_0x53f604[_0x23b9('0x2e')](_0x25d225)?_0x53f604[_0x23b9('0x10')](_0x25d225)-0x1:0x0,_0x4ce062=this[_0x23b9('0x62')](_0x5e6d44),_0x1251d1=_0x4ce062[_0x14b4dd],_0x339e13=_0x4ce062[_0x53b1f9];_0x1251d1<=_0x26008a[_0x821887]&&_0x26008a[_0x821887]+_0x140644<=_0x339e13&&(_0x5e6d44[_0x23b9('0x50')](_0x799380),_0x4c84dd=!0x0);}return _0x4c84dd;};_0x179175[_0x23b9('0x6e')][_0x23b9('0x2c')][_0x23b9('0x4a')](_0x4fc0d9=>{let _0x1f0ed8=!0x1;for(const _0x32f1e3 of _0x179175['model'][_0x23b9('0x2c')]['differ'][_0x23b9('0x53')]())if(_0x23b9('0x27')==_0x32f1e3['type']){if('tableRow'==_0x32f1e3[_0x23b9('0x5d')])for(const _0x2e0c27 of _0x32f1e3['position'][_0x23b9('0x69')][_0x23b9('0x3')]())_0x1f0ed8=_0x1f0ed8||_0x2121b2(_0x2e0c27,_0x4fc0d9);else _0x23b9('0x37')==_0x32f1e3['name']&&(_0x1f0ed8=_0x1f0ed8||_0x2121b2(_0x32f1e3['position'][_0x23b9('0x69')],_0x4fc0d9));}return _0x1f0ed8;});}['_getSuggestionCoords'](_0x13d5e7){return this[_0x23b9('0x5b')](_0x13d5e7['getRanges']()[_0x23b9('0x17')](_0x593b8d=>_0x593b8d[_0x23b9('0x0')][_0x23b9('0x69')]));}}function se(_0x3d58cc){return Array[_0x23b9('0x58')](new Set(_0x3d58cc)[_0x23b9('0x1d')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x176d=['toggleTableCaption','get','plugins','afterInit','editor','requires','TableCaptionEditing','TrackChangesEditing','has','enableCommand'];(function(_0x46e740,_0x176d3a){const _0x3827a3=function(_0x1d6e85){while(--_0x1d6e85){_0x46e740['push'](_0x46e740['shift']());}};_0x3827a3(++_0x176d3a);}(_0x176d,0x18e));const _0x3827=function(_0x46e740,_0x176d3a){_0x46e740=_0x46e740-0x0;let _0x3827a3=_0x176d[_0x46e740];return _0x3827a3;};import{Plugin as _0x310917}from'ckeditor5/src/core';import _0xd87d25 from'./table';export default class Nt extends _0x310917{static get[_0x3827('0x7')](){return[_0xd87d25];}[_0x3827('0x5')](){const _0x23938c=this[_0x3827('0x6')];if(!_0x23938c[_0x3827('0x4')][_0x3827('0x0')](_0x3827('0x8')))return;_0x23938c[_0x3827('0x4')][_0x3827('0x3')](_0x3827('0x9'))[_0x3827('0x1')](_0x3827('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1ebd=['markerAttributes','columnInsertionIndexes','newRange','ck-suggestion-marker','markMultiRangeInsertion','markMultiRangeDeletion','fill','isEqual','createPositionBefore','add','conversion','markers','cell','formatBlock','model','filter','createRange','getAttributes','createRangeOn','accept','getColumns','markMultiRangeBlockFormat','nodeAfter','getAllAdjacentSuggestions','reduce','updateMarker','tableCellPadding','plugins','row','name','table','tablePaste','unwrap','discard','removeRows','cells','tableCellVerticalAlignment','setAttributes','Users','columnInsertionRanges','registerDescriptionCallback','endColumn','tableCellBackgroundColor','attributes','length','nextSibling','entries','return','forceDefaultExecution','insertContent','wrap','previous','createRangeIn','getRange','value','keys','get','registerPostFixer','getSuggestions','start','documentSelection','getChild','activeMarkers','insertion','locale','_splitMarkerName','batch','registerCustomCallback','low','_replaceTableSlotCell','getTableIfOnlyTableInContent','every','deletionRanges','columns','suggestion-td','afterInit','tablePasteChainId','rowInsertionRanges','suggestion','elementToElement','removeColumns','tableCellSuggestion','first','requires','last','removeMarker','selection','set','from','suggestion:formatBlock:tablePasteCell','stop','tablePasteColumn','removeMarkers','join','author','document','tableCellBorderColor','tablePasteRow','paragraph','getSuggestion','push','position','has','findAncestor','insertRows','TableUtils','rows','view','isInContent','end','suggestionUnloaded','createElement','startsWith','editor','subType','rowInsertionIndexes','root','type','trackChanges','getMarkers','dataDowncast','change','editing','options','getRows','schema','commands','createTableWalker','some','clipboardOutput','redo','tableCellBorderStyle','for','element','map','insert','high','$graveyard','tableCellBorderWidth','markerName','_suggestionFactory','setAttribute','next','remove','tablePasteCell','getRanges','TrackChangesEditing','ck-suggestion-marker-insertion','deletion','tableCell','markerToHighlight','differ','isEmpty','getRowIndexes','containsRange','tableCellHorizontalAlignment','_createdBatches','endRow','insertionRanges','getColumnIndexes','getContainedElement','fromEntries','includes','_getCoordsForCells','getChangedMarkers','_tablePostFixingSubtypes','TableClipboard','insertColumns','getChanges','column','oldRange','find','_descriptionFactory'];(function(_0x23bc96,_0x1ebd2f){const _0x4a374b=function(_0x3e7040){while(--_0x3e7040){_0x23bc96['push'](_0x23bc96['shift']());}};_0x4a374b(++_0x1ebd2f);}(_0x1ebd,0xfa));const _0x4a37=function(_0x23bc96,_0x1ebd2f){_0x23bc96=_0x23bc96-0x0;let _0x4a374b=_0x1ebd[_0x23bc96];return _0x4a374b;};import{getTranslation as _0x4308f8}from'../utils/common-translations';import{Plugin as _0x31dbff}from'ckeditor5/src/core';import{uid as _0x2016c9,priorities as _0x2e92b9}from'ckeditor5/src/utils';import _0x1a5294 from'./table';const le=[_0x4a37('0x3d'),_0x4a37('0x13'),_0x4a37('0x36'),_0x4a37('0x4e'),_0x4a37('0x84'),_0x4a37('0x8a'),_0x4a37('0x7a')],ae=Object[_0x4a37('0x54')](le[_0x4a37('0x39')](_0x129226=>[_0x129226,null]));export default class At extends _0x31dbff{static get[_0x4a37('0x6')](){return[_0x1a5294];}[_0x4a37('0xab')](){const _0x3a2e20=this[_0x4a37('0x24')];if(!_0x3a2e20[_0x4a37('0x7b')]['has'](_0x4a37('0x59')))return;const _0x12903c=_0x3a2e20[_0x4a37('0x7b')]['get'](_0x4a37('0x45')),_0x1582ee=_0x3a2e20[_0x4a37('0x7b')]['get'](_0x4a37('0x1c')),_0x49c4f0=_0x3a2e20[_0x4a37('0x7b')]['get'](_0x1a5294),_0x408063=_0x3a2e20[_0x4a37('0x7b')][_0x4a37('0x98')](_0x4a37('0x59'));_0x49c4f0[_0x4a37('0x58')][_0x4a37('0x17')]('tablePasteRow',_0x4a37('0xe')),_0x3a2e20['model'][_0x4a37('0x30')]['register'](_0x4a37('0x4'),{'allowIn':_0x4a37('0x48'),'allowContentOf':_0x4a37('0x48'),'isLimit':!0x0}),_0x3a2e20[_0x4a37('0x6a')][_0x4a37('0x2')]({'model':_0x4a37('0x4'),'view':_0x4a37('0xaa')});let _0x5a29ef=null;_0x3a2e20['model']['on'](_0x4a37('0x91'),(_0x4a6a29,_0x4b333b)=>{const [_0x4d069f,_0x343a99]=_0x4b333b,_0xcb9a3b=_0x4b333b[_0x4b333b[_0x4a37('0x8c')]-0x1];_0xcb9a3b&&_0xcb9a3b[_0x4a37('0x90')]||_0x12903c['_isForcedDefaultExecutionBlock']||this[_0x4a37('0x24')][_0x4a37('0x31')][_0x4a37('0x98')](_0x4a37('0x29'))[_0x4a37('0x96')]&&function(_0x5e2b67,_0x45aaf8,_0x464b8d,_0xa6dcab,_0x338d61){if(_0x45aaf8&&!_0x45aaf8['is'](_0x4a37('0x9c')))return!0x1;const _0x2bc066=_0x338d61[_0x4a37('0xa6')](_0x5e2b67,_0x464b8d);if(!_0x2bc066||!fe(_0x2bc066,void 0x0,_0xa6dcab))return!0x1;const _0xd61aa7=_0xa6dcab['getSelectionAffectedTableCells'](_0x464b8d[_0x4a37('0x12')][_0x4a37('0x9')]);if(!_0xd61aa7['length'])return!0x1;const _0x5a5a32=_0xd61aa7[0x0][_0x4a37('0x1a')](_0x4a37('0x7e')),_0x11787f=_0xa6dcab[_0x4a37('0x4c')](_0xd61aa7),_0x3af6e6=_0xa6dcab[_0x4a37('0x52')](_0xd61aa7),_0x32ab99={'startRow':_0x11787f[_0x4a37('0x5')],'endRow':_0x11787f[_0x4a37('0x7')],'startColumn':_0x3af6e6['first'],'endColumn':_0x3af6e6[_0x4a37('0x7')]};return 0x1==_0xd61aa7[_0x4a37('0x8c')]&&(_0x32ab99[_0x4a37('0x50')]+=_0xa6dcab[_0x4a37('0x2f')](_0x2bc066)-0x1,_0x32ab99[_0x4a37('0x89')]+=_0xa6dcab[_0x4a37('0x74')](_0x2bc066)-0x1),fe(_0x5a5a32,_0x32ab99,_0xa6dcab);}(_0x4d069f,_0x343a99,_0x3a2e20['model'],_0x1582ee,_0x408063)&&(_0x4a6a29[_0x4a37('0xd')](),_0x5a29ef={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3a2e20[_0x4a37('0x6e')][_0x4a37('0x2c')](()=>{_0x3a2e20[_0x4a37('0x6e')][_0x4a37('0x91')](_0x4b333b[0x0],_0x4b333b[0x1],_0x4b333b[0x2],{'forceDefaultExecution':!0x0});const _0x2c6edd=_0x2016c9(),{rowInsertionRanges:_0x55adf6,columnInsertionRanges:_0x28ee66,insertionRanges:_0x2d588a,deletionRanges:_0x3c4bab,cells:_0x4ff681}=_0x5a29ef;_0x55adf6[_0x4a37('0x8c')]&&_0x12903c[_0x4a37('0x64')](_0x55adf6,_0x4a37('0x14'),{'tablePasteChainId':_0x2c6edd}),_0x28ee66[_0x4a37('0x8c')]&&_0x12903c[_0x4a37('0x64')](_0x28ee66,_0x4a37('0xe'),{'tablePasteChainId':_0x2c6edd}),_0x2d588a[_0x4a37('0x8c')]&&_0x12903c[_0x4a37('0x64')](_0x2d588a,'tablePaste',{'tablePasteChainId':_0x2c6edd,'skipNestingCheck':!0x0}),_0x3c4bab[_0x4a37('0x8c')]&&_0x12903c[_0x4a37('0x65')](_0x3c4bab,_0x4a37('0x7f'),{'tablePasteChainId':_0x2c6edd,'skipNestingCheck':!0x0});const _0x586d96=_0x12903c[_0x4a37('0x75')](_0x4ff681['map'](({element:_0x2d8c6})=>_0x2d8c6),{'formatGroupId':_0x2016c9()},[],_0x4a37('0x43'),{'tablePasteChainId':_0x2c6edd});if(_0x586d96){const _0x5ce368=_0x586d96['getMarkers'](),_0x53bff4=[];for(const {element:_0x381509,attributes:_0x1f8ebb}of _0x4ff681){if(!_0x1f8ebb)continue;const _0x3980a4=_0x3a2e20[_0x4a37('0x6e')][_0x4a37('0x72')](_0x381509),_0x7f9c88=_0x5ce368[_0x4a37('0x5e')](_0x5b112e=>_0x5b112e[_0x4a37('0x95')]()[_0x4a37('0x67')](_0x3980a4));_0x7f9c88&&_0x53bff4['push']([_0x7f9c88['name'],_0x1f8ebb]);}_0x53bff4[_0x4a37('0x8c')]&&_0x586d96[_0x4a37('0x40')](_0x4a37('0x60'),Object[_0x4a37('0x54')](_0x53bff4));}_0x5a29ef=null;}));},{'priority':_0x2e92b9[_0x4a37('0x3b')]+0xa}),_0x3a2e20[_0x4a37('0x7b')][_0x4a37('0x98')](_0x4a37('0x59'))['on'](_0x4a37('0xa5'),(_0x3ef9dd,_0x329d58)=>{const [_0x1ff843,_0x2da40d,,_0x525b2f]=_0x329d58;if(!_0x5a29ef)return;_0x3ef9dd['stop']();const _0x5be5ba=_0x1ff843[_0x4a37('0x6c')],_0x387f0c=_0x2da40d,_0x127ed2=ce(_0x5be5ba),_0x2d5dd7=ce(_0x387f0c);_0x3ef9dd[_0x4a37('0x8f')]=_0x5be5ba;let _0x2ef8ea=null,_0x2f4088=null;if(_0x2d5dd7||_0x127ed2){if(_0x127ed2&&!_0x2d5dd7){_0x525b2f[_0x4a37('0x42')](_0x5be5ba[_0x4a37('0x9d')](0x0));for(const _0x51630b of Array[_0x4a37('0xb')](_0x387f0c['getChildren']()))_0x525b2f['insert'](_0x51630b,_0x5be5ba,_0x4a37('0x20'));const _0x13eb44=_0x5a29ef[_0x4a37('0x26')][_0x4a37('0x55')](_0x1ff843[_0x4a37('0x7c')]),_0x1c5783=_0x5a29ef[_0x4a37('0x61')][_0x4a37('0x55')](_0x1ff843[_0x4a37('0x5c')]);_0x13eb44||_0x1c5783||(_0x2ef8ea=_0x525b2f[_0x4a37('0x94')](_0x5be5ba));}else _0x2d5dd7&&!_0x127ed2&&(_0x2f4088=_0x525b2f[_0x4a37('0x94')](_0x5be5ba));}else{const _0x25d3bc=_0x525b2f[_0x4a37('0x22')](_0x4a37('0x4')),_0x508d07=_0x525b2f['createElement'](_0x4a37('0x4'));_0x525b2f[_0x4a37('0x92')](_0x525b2f[_0x4a37('0x94')](_0x5be5ba),_0x508d07),_0x525b2f['insert'](_0x25d3bc,_0x5be5ba,0x0);for(const _0x184d8e of Array['from'](_0x387f0c['getChildren']()))_0x525b2f[_0x4a37('0x3a')](_0x184d8e,_0x25d3bc,_0x4a37('0x20'));_0x2ef8ea=_0x525b2f[_0x4a37('0x72')](_0x25d3bc),_0x2f4088=_0x525b2f['createRangeOn'](_0x508d07);}const _0x54a22c=Array[_0x4a37('0xb')](_0x387f0c[_0x4a37('0x71')]())[_0x4a37('0x6f')](([_0x16e6d0])=>le['includes'](_0x16e6d0));_0x5a29ef['cells'][_0x4a37('0x17')]({'element':_0x5be5ba,'attributes':_0x54a22c[_0x4a37('0x8c')]?Object['fromEntries'](_0x54a22c):null}),_0x2ef8ea&&_0x5a29ef[_0x4a37('0x51')][_0x4a37('0x17')](_0x2ef8ea),_0x2f4088&&_0x5a29ef[_0x4a37('0xa8')][_0x4a37('0x17')](_0x2f4088);},{'priority':_0x4a37('0x3b')}),_0x1582ee['on'](_0x4a37('0x5a'),(_0x8869c4,_0x3caf71)=>{const [_0x229705,_0x8e9cfc={}]=_0x3caf71;if(!_0x5a29ef)return;const _0x1fd747=_0x8e9cfc['at']||0x0,_0x2f1f72=_0x8e9cfc[_0x4a37('0xa9')]||0x1;_0x5a29ef[_0x4a37('0x61')]=new Array(_0x2f1f72)[_0x4a37('0x66')](_0x1fd747)['map']((_0x343e92,_0x404c23)=>_0x343e92+_0x404c23);for(const {cell:_0x2c12ce}of _0x1582ee[_0x4a37('0x32')](_0x229705,{'startColumn':_0x1fd747,'endColumn':_0x1fd747+_0x2f1f72-0x1}))_0x5a29ef[_0x4a37('0x87')]['push'](_0x3a2e20[_0x4a37('0x6e')][_0x4a37('0x72')](_0x2c12ce));},{'priority':_0x4a37('0xa4')}),_0x1582ee['on'](_0x4a37('0x1b'),(_0xdd47c2,_0x2d36c7)=>{const [_0x1fc56a,_0x5f0ab2={}]=_0x2d36c7;if(!_0x5a29ef)return;const _0x5f13e5=_0x5f0ab2['at']||0x0,_0x3190a5=_0x5f0ab2[_0x4a37('0x1d')]||0x1;_0x5a29ef[_0x4a37('0x26')]=new Array(_0x3190a5)['fill'](_0x5f13e5)['map']((_0x195a59,_0x53c508)=>_0x195a59+_0x53c508);for(const {cell:_0x487a8e}of _0x1582ee['createTableWalker'](_0x1fc56a,{'startRow':_0x5f13e5,'endRow':_0x5f13e5+_0x3190a5-0x1}))_0x5a29ef[_0x4a37('0x0')][_0x4a37('0x17')](_0x3a2e20[_0x4a37('0x6e')]['createRangeOn'](_0x487a8e));},{'priority':_0x4a37('0xa4')}),_0x12903c[_0x4a37('0x5f')][_0x4a37('0x88')](_0xe147d=>{if(_0xe147d[_0x4a37('0x25')]&&_0xe147d[_0x4a37('0x25')]['startsWith'](_0x4a37('0x7f')))return _0xe147d[_0x4a37('0x93')]?{}:{'type':_0x4a37('0x9f'),'content':_0x4308f8(_0x3a2e20[_0x4a37('0xa0')],'*Replace\x20table\x20cells*')};});const _0x5e5bbd=()=>!0x1;for(const _0x1e1426 of[_0x4a37('0x7f'),'tablePasteColumn',_0x4a37('0x14'),_0x4a37('0x43')])_0x12903c[_0x4a37('0x3f')][_0x4a37('0xa3')]('insertion',_0x1e1426,_0x4a37('0x10'),_0x5e5bbd),_0x12903c[_0x4a37('0x3f')]['registerCustomCallback']('deletion',_0x1e1426,_0x4a37('0x10'),_0x5e5bbd),_0x12903c[_0x4a37('0x3f')]['registerCustomCallback'](_0x4a37('0x6d'),_0x1e1426,_0x4a37('0x10'),_0x5e5bbd);_0x12903c[_0x4a37('0x3f')][_0x4a37('0xa3')]('formatBlock',_0x4a37('0x43'),_0x4a37('0x81'),_0x5e5bbd),_0x12903c[_0x4a37('0x3f')]['registerCustomCallback'](_0x4a37('0x6d'),'tablePasteCell',_0x4a37('0x73'),(_0x2a873c,_0x5134c1,_0x1d72bc)=>{const _0x3809f7=_0x2a873c[_0x4a37('0x39')](_0x12d592=>_0x12d592[_0x4a37('0x53')]())['filter'](_0xc75d6b=>_0xc75d6b),_0x16b922=new Map(_0x3809f7[_0x4a37('0x39')](_0x139433=>[_0x139433,null]));if(_0x5a29ef)for(const {element:_0x223806,attributes:_0x22d5d0}of _0x5a29ef[_0x4a37('0x83')])_0x22d5d0&&_0x16b922['set'](_0x223806,_0x22d5d0);else{if(_0x1d72bc&&_0x1d72bc['markerAttributes'])for(const [_0x3bc92d,_0xaccaae]of Object[_0x4a37('0x8e')](_0x1d72bc['markerAttributes'])){const _0x5b295d=_0x3a2e20['model'][_0x4a37('0x6b')][_0x4a37('0x98')](_0x3bc92d),_0x22d695=_0x5b295d?_0x5b295d[_0x4a37('0x95')]()[_0x4a37('0x53')]():null;_0x22d695&&_0x16b922[_0x4a37('0xa')](_0x22d695,_0xaccaae);}}_0x3a2e20['model'][_0x4a37('0x2c')](_0x21541d=>{for(const [_0x2dfdb3,_0x440125]of _0x16b922)_0x21541d[_0x4a37('0x85')]({...ae,..._0x440125},_0x2dfdb3);});});const _0x488931=(_0x41e6d7,_0x1b3e37)=>{_0x12903c['_suggestionFactory'][_0x4a37('0xa3')](_0x41e6d7,_0x4a37('0x7f'),_0x1b3e37,(_0x12a9df,_0x5a83fd,_0x4c5958)=>{_0x3a2e20[_0x4a37('0x6e')][_0x4a37('0x2c')](_0x5da478=>{const _0x3204f5=[];for(const _0x542261 of _0x12a9df){const _0x4b3d50=_0x542261[_0x4a37('0x9b')][_0x4a37('0x76')];_0x4b3d50['is'](_0x4a37('0x38'),_0x4a37('0x4'))&&_0x3204f5[_0x4a37('0x17')](_0x4b3d50);}_0x12903c[_0x4a37('0x3f')]['getSuggestionCallback'](_0x41e6d7,null,_0x1b3e37)(_0x12a9df,_0x5a83fd,_0x4c5958);for(const _0x3e357c of _0x3204f5)_0x4a37('0x3c')!=_0x3e357c[_0x4a37('0x27')]['rootName']&&_0x5da478[_0x4a37('0x80')](_0x3e357c);});});};_0x488931(_0x4a37('0x9f'),_0x4a37('0x73')),_0x488931('insertion','discard'),_0x488931(_0x4a37('0x47'),_0x4a37('0x73')),_0x488931('deletion',_0x4a37('0x81')),_0x12903c[_0x4a37('0x3f')][_0x4a37('0xa3')]('insertion',_0x4a37('0x14'),_0x4a37('0x81'),_0x19a1cf=>{const _0xb27226=_0x19a1cf[_0x4a37('0x39')](_0x2a5cea=>_0x2a5cea[_0x4a37('0x53')]()),_0x2e3657=_0xb27226[0x0][_0x4a37('0x1a')](_0x4a37('0x7e')),{minRow:_0x4bedb3,maxRow:_0x312927}=_0x49c4f0[_0x4a37('0x56')](_0xb27226);_0x1582ee[_0x4a37('0x82')](_0x2e3657,{'at':_0x4bedb3,'rows':_0x312927-_0x4bedb3+0x1});}),_0x12903c[_0x4a37('0x3f')]['registerCustomCallback'](_0x4a37('0x9f'),'tablePasteColumn',_0x4a37('0x81'),_0x272ee6=>{const _0x457662=_0x272ee6[_0x4a37('0x39')](_0x24eca4=>_0x24eca4[_0x4a37('0x53')]()),_0x23359f=_0x457662[0x0][_0x4a37('0x1a')]('table'),{minColumn:_0x520042,maxColumn:_0xbc22c7}=_0x49c4f0[_0x4a37('0x56')](_0x457662);_0x1582ee[_0x4a37('0x3')](_0x23359f,{'at':_0x520042,'columns':_0xbc22c7-_0x520042+0x1});});const _0x299e6e=(_0xc51b85,_0x4a1692)=>{if(!_0x4a1692[_0x4a37('0x25')]||!_0x4a1692[_0x4a37('0x25')][_0x4a37('0x23')](_0x4a37('0x7f')))return;const _0x12706b=_0x4a1692[_0x4a37('0x8b')][_0x4a37('0xac')],_0xa05a4a=_0x12903c[_0x4a37('0x9a')]()[_0x4a37('0x6f')](_0x18e34a=>_0x18e34a[_0x4a37('0x1f')]&&_0x18e34a[_0x4a37('0x8b')]&&_0x18e34a[_0x4a37('0x8b')][_0x4a37('0xac')]==_0x12706b);_0xa05a4a[_0x4a37('0x8c')]&&_0x4a1692[_0x4a37('0x77')]()[_0x4a37('0x8c')]!=_0xa05a4a[_0x4a37('0x8c')]&&_0xa05a4a[_0x4a37('0x78')]((_0x2167f9,_0x35a22c)=>(_0x2167f9[_0x4a37('0x41')]=_0x35a22c,_0x35a22c[_0x4a37('0x93')]=_0x2167f9,_0x35a22c));};function _0x13afa5(_0x30a961,_0x3e2d63=!0x0){const {id:_0x191d01}=_0x12903c[_0x4a37('0xa1')](_0x30a961[_0x4a37('0x3e')]),_0x35bdb1=[_0x4a37('0x63'),_0x4a37('0x46')],_0x1e962d=_0x12903c[_0x4a37('0x9e')][_0x4a37('0x55')](_0x30a961[_0x4a37('0x3e')]);return _0x1e962d&&_0x35bdb1[_0x4a37('0x17')]('ck-suggestion-marker--active'),{'classes':_0x35bdb1,'attributes':{'data-suggestion':_0x191d01},'priority':_0x1e962d&&_0x3e2d63?0xbc2:0xbb8};}_0x12903c['on']('suggestionLoaded',_0x299e6e,{'priority':'high'}),_0x12903c['on'](_0x4a37('0x21'),_0x299e6e,{'priority':_0x4a37('0x3b')}),_0x3a2e20['model'][_0x4a37('0x12')][_0x4a37('0x99')](()=>{let _0x1a828f=!0x1;const _0x409e5b=Array['from'](_0x3a2e20[_0x4a37('0x6e')][_0x4a37('0x12')]['differ'][_0x4a37('0x57')]());for(const {name:_0x289424,data:_0x3aa366}of _0x409e5b){const {group:_0x423f58,type:_0x3de911,id:_0x2ca06e}=_0x12903c[_0x4a37('0xa1')](_0x289424);if(_0x4a37('0x1')!=_0x423f58||'deletion'!=_0x3de911||_0x3aa366[_0x4a37('0x5d')])continue;if(!_0x12903c['hasSuggestion'](_0x2ca06e))continue;const _0x4f7dac=_0x12903c[_0x4a37('0x16')](_0x2ca06e)['getRanges'](),_0x3c0921=_0x3a2e20[_0x4a37('0x7b')][_0x4a37('0x98')]('Users')['me'];for(const _0x38c014 of _0x12903c[_0x4a37('0x9a')]()){if(!_0x38c014[_0x4a37('0x1f')]||_0x38c014[_0x4a37('0x11')]!=_0x3c0921)continue;if('formatBlock'!=_0x38c014[_0x4a37('0x28')]||_0x4a37('0x43')!=_0x38c014[_0x4a37('0x25')])continue;if(_0x38c014[_0x4a37('0x44')]()[_0x4a37('0xa7')](_0xf522f4=>_0x4f7dac[_0x4a37('0x33')](_0x25abe3=>_0x25abe3[_0x4a37('0x4d')](_0xf522f4,!0x0))))for(const _0x21991b of _0x38c014[_0x4a37('0x77')]())_0x21991b['isInContent']&&(_0x21991b[_0x4a37('0x81')](),_0x1a828f=!0x0);}}return _0x1a828f;}),_0x3a2e20[_0x4a37('0x6e')]['document']['registerPostFixer'](_0x4481f4=>{const _0x3104f3=_0x3a2e20[_0x4a37('0x31')]['get'](_0x4a37('0x35'));if(!_0x3104f3||!_0x3104f3[_0x4a37('0x4f')][_0x4a37('0x19')](_0x4481f4[_0x4a37('0xa2')]))return!0x1;let _0x1fb19e=!0x1;const _0x5ad08b=_0x3a2e20[_0x4a37('0x7b')]['get'](_0x4a37('0x86'))['me'],_0x3ff5ac=_0x3a2e20[_0x4a37('0x6e')][_0x4a37('0x12')][_0x4a37('0x4a')][_0x4a37('0x5b')](),_0x42202e=Array['from'](_0x3a2e20['model']['document'][_0x4a37('0x4a')]['getChangedMarkers']())['filter'](({name:_0x111321,data:_0x33167e})=>{const {group:_0x1e1ab1,subType:_0x45fa6e,authorId:_0x25c5a8}=_0x12903c[_0x4a37('0xa1')](_0x111321);return _0x4a37('0x1')==_0x1e1ab1&&'tablePaste'==_0x45fa6e&&_0x25c5a8==_0x5ad08b['id']&&!_0x33167e[_0x4a37('0x5d')];});for(const _0x1b4a9a of _0x3ff5ac){if(_0x4a37('0x3a')!=_0x1b4a9a[_0x4a37('0x28')]||_0x4a37('0x4')!=_0x1b4a9a[_0x4a37('0x7d')]||0x1!=_0x1b4a9a[_0x4a37('0x8c')])continue;const _0x13aed4=_0x4481f4[_0x4a37('0x70')](_0x1b4a9a[_0x4a37('0x18')],_0x1b4a9a['position']['getShiftedBy'](0x1));if(!_0x42202e[_0x4a37('0x5e')](({data:_0xb1d28})=>_0xb1d28[_0x4a37('0x62')]['isEqual'](_0x13aed4)))for(const {name:_0x530f8e,data:_0x437434}of _0x42202e)if(_0x13aed4['containsRange'](_0x437434['newRange'])){_0x4481f4[_0x4a37('0x79')](_0x530f8e,{'range':_0x13aed4}),_0x1fb19e=!0x0;break;}}return _0x1fb19e;}),_0x3a2e20[_0x4a37('0x6e')][_0x4a37('0x12')][_0x4a37('0x99')](_0x448d5f=>{let _0x5c252d=!0x1;const _0x55f596=_0x3a2e20[_0x4a37('0x7b')][_0x4a37('0x98')]('Users')['me'],_0x5f45d7=_0x12903c[_0x4a37('0x9a')]()[_0x4a37('0x6f')](_0x528ee9=>_0x528ee9['isInContent']&&_0x528ee9[_0x4a37('0x11')]==_0x55f596),_0xa0062=new Set(),_0x50de19=new Set();for(const _0x8d5d1a of _0x5f45d7)if(_0x4a37('0x7f')==_0x8d5d1a[_0x4a37('0x25')])for(const _0xeb4914 of _0x8d5d1a[_0x4a37('0x2a')]()){const _0xbf8be5=_0xeb4914[_0x4a37('0x95')]()[_0x4a37('0x53')]();if(_0xbf8be5){if(_0xbf8be5['is'](_0x4a37('0x38'),_0x4a37('0x4'))&&ce(_0xbf8be5)){_0x8d5d1a[_0x4a37('0x8')](_0xeb4914['name']),_0xa0062[_0x4a37('0x69')](_0xbf8be5),_0x5c252d=!0x0;const _0x1f6f02=_0xbf8be5[_0x4a37('0x8d')],_0x358b8a=_0xbf8be5['previousSibling'],_0x35ad74=_0x1f6f02&&_0x1f6f02['is'](_0x4a37('0x38'),_0x4a37('0x4')),_0x2a58d8=_0x358b8a&&_0x358b8a['is']('element',_0x4a37('0x4'));_0x35ad74&&!_0xa0062[_0x4a37('0x19')](_0x1f6f02)&&_0x50de19[_0x4a37('0x69')](_0x1f6f02),_0x2a58d8&&!_0xa0062[_0x4a37('0x19')](_0x358b8a)&&_0x50de19[_0x4a37('0x69')](_0x358b8a);}else _0xbf8be5['is'](_0x4a37('0x38'),_0x4a37('0x15'))&&_0xbf8be5[_0x4a37('0x4b')]&&(_0x8d5d1a[_0x4a37('0x8')](_0xeb4914['name']),_0x5c252d=!0x0);}}else{if(_0x4a37('0x43')==_0x8d5d1a[_0x4a37('0x25')]){if(!_0x8d5d1a[_0x4a37('0x8b')]||!_0x8d5d1a[_0x4a37('0x8b')][_0x4a37('0xac')])continue;const _0x1108f8=_0x8d5d1a[_0x4a37('0x8b')][_0x4a37('0x60')];if(_0x1108f8&&Object[_0x4a37('0x97')](_0x1108f8)[_0x4a37('0x8c')])continue;const _0x4360c5=_0x8d5d1a['attributes'][_0x4a37('0xac')];let _0x3c724e=!0x0,_0x1afd41=!0x0;for(const _0xfb6240 of _0x5f45d7)if(_0xfb6240['subType']&&_0xfb6240[_0x4a37('0x25')][_0x4a37('0x23')](_0x4a37('0x7f'))){if(!_0xfb6240['attributes'][_0x4a37('0xac')]){_0x1afd41=!0x1;break;}if(_0xfb6240['id']!=_0x8d5d1a['id']&&_0xfb6240['attributes']['tablePasteChainId']==_0x4360c5){_0x3c724e=!0x1;break;}}_0x1afd41&&_0x3c724e&&(_0x8d5d1a[_0x4a37('0xf')](),_0x5c252d=!0x0);}}for(const _0x9b4478 of _0xa0062)_0x448d5f[_0x4a37('0x42')](_0x9b4478);for(const _0x1ceb82 of _0x50de19)_0x448d5f[_0x4a37('0x80')](_0x1ceb82);return _0x5c252d;}),_0x3a2e20[_0x4a37('0x6a')][_0x4a37('0x37')]('editingDowncast')[_0x4a37('0x49')]({'model':_0x4a37('0xc'),'view':(_0x537026,_0x580ca0)=>_0x13afa5(_0x537026),'converterPriority':_0x4a37('0x3b')}),_0x3a2e20[_0x4a37('0x6a')][_0x4a37('0x37')](_0x4a37('0x2b'))[_0x4a37('0x49')]({'model':_0x4a37('0xc'),'view':(_0x2756cf,_0x479f36)=>_0x479f36[_0x4a37('0x2e')]['showSuggestionHighlights']?_0x13afa5(_0x2756cf,!0x1):null,'converterPriority':_0x4a37('0x3b')});const _0x53baef=_0x3a2e20[_0x4a37('0x2d')][_0x4a37('0x1e')];this['listenTo'](_0x53baef[_0x4a37('0x12')],_0x4a37('0x34'),(_0x1d775a,_0x5e8371)=>{const _0x5e29e9=[];for(const _0x13ab3f of _0x53baef[_0x4a37('0x94')](_0x5e8371['content'])['getItems']())_0x13ab3f['is'](_0x4a37('0x38'),_0x4a37('0xaa'))&&_0x5e29e9[_0x4a37('0x17')](_0x13ab3f);_0x53baef[_0x4a37('0x2c')](_0x442de7=>{for(const _0x2065b1 of _0x5e29e9)_0x442de7['move'](_0x442de7[_0x4a37('0x94')](_0x2065b1),_0x442de7[_0x4a37('0x68')](_0x2065b1)),_0x442de7['remove'](_0x2065b1);});});}}function ce(_0xdd20e2){if(_0xdd20e2['isEmpty'])return!0x0;const _0x4810f4=_0xdd20e2['getChild'](0x0);return _0x4810f4['is'](_0x4a37('0x38'),'paragraph')&&_0x4810f4[_0x4a37('0x4b')];}function fe(_0xab62d5,_0x12a31a={},_0x541625){for(const {isAnchor:_0x221e78,cellHeight:_0x5a7afb,cellWidth:_0x17dbf0}of _0x541625[_0x4a37('0x32')](_0xab62d5,{'includeAllSlots':!0x0,..._0x12a31a}))if(!_0x221e78||0x1!=_0x5a7afb||0x1!=_0x17dbf0)return!0x1;return!0x0;}
|
|
23
|
+
const _0x3f59=['activeMarkers','editing','markers','findAncestor','suggestion:formatBlock:tablePasteCell','getShiftedBy','removeMarker','removeColumns','register','isEqual','paragraph','formatBlock','get','tablePasteColumn','first','$graveyard','tableCellPadding','tablePasteRow','previousSibling','cells','author','setAttribute','createRangeIn','discard','remove','insertContent','add','registerPostFixer','unwrap','markMultiRangeDeletion','fill','markerToHighlight','change','stop','deletionRanges','locale','every','columns','getChangedMarkers','markMultiRangeInsertion','getRanges','low','endColumn','name','TableClipboard','move','cell','filter','getChanges','has','removeRows','startsWith','TableUtils','tablePasteCell','editor','insertion','getSuggestions','row','isInContent','push','getRows','selection','ck-suggestion-marker-insertion','columnInsertionRanges','createRange','find','insert','trackChanges','value','for','tableCellHorizontalAlignment','batch','listenTo','last','tableCellBorderWidth','setAttributes','_getCoordsForCells','elementToElement','createRangeOn','getAttributes','type','getRowIndexes','registerDescriptionCallback','tableCell','plugins','redo','high','table','set','suggestion-td','element','attributes','oldRange','schema','isEmpty','wrap','getRange','_replaceTableSlotCell','model','length','registerCustomCallback','getTableIfOnlyTableInContent','entries','_createdBatches','endRow','getMarkers','documentSelection','columnInsertionIndexes','updateMarker','tableCellBorderColor','rowInsertionRanges','end','commands','nextSibling','_splitMarkerName','tableCellSuggestion','ck-suggestion-marker--active','deletion','column','createTableWalker','previous','containsRange','next','getAllAdjacentSuggestions','showSuggestionHighlights','insertionRanges','fromEntries','markerAttributes','insertColumns','subType','document','join','options','newRange','return','tableCellVerticalAlignment','forceDefaultExecution','content','differ','position','dataDowncast','rowInsertionIndexes','markerName','_suggestionFactory','getItems','tablePasteChainId','TrackChangesEditing','createElement','accept','getSuggestion','rootName','tablePaste','map','_isForcedDefaultExecutionBlock','from','Users','getContainedElement','afterInit','conversion','clipboardOutput','start','_tablePostFixingSubtypes','includes','getChild','nodeAfter','editingDowncast'];(function(_0x539b28,_0x3f596b){const _0x54cc50=function(_0x13a1ed){while(--_0x13a1ed){_0x539b28['push'](_0x539b28['shift']());}};_0x54cc50(++_0x3f596b);}(_0x3f59,0x1c3));const _0x54cc=function(_0x539b28,_0x3f596b){_0x539b28=_0x539b28-0x0;let _0x54cc50=_0x3f59[_0x539b28];return _0x54cc50;};import{getTranslation as _0x5ac578}from'../utils/common-translations';import{Plugin as _0x3814b5}from'ckeditor5/src/core';import{uid as _0x105884,priorities as _0x1a9ffb}from'ckeditor5/src/utils';import _0x41eec7 from'./table';const le=[_0x54cc('0x79'),_0x54cc('0x9c'),'tableCellBorderStyle',_0x54cc('0x75'),_0x54cc('0x10'),'tableCellBackgroundColor',_0x54cc('0x3f')],ae=Object[_0x54cc('0x7')](le['map'](_0x13986d=>[_0x13986d,null]));export default class At extends _0x3814b5{static get['requires'](){return[_0x41eec7];}[_0x54cc('0x26')](){const _0x2614e2=this['editor'];if(!_0x2614e2[_0x54cc('0x83')]['has'](_0x54cc('0x5b')))return;const _0x2da8bc=_0x2614e2[_0x54cc('0x83')][_0x54cc('0x3b')](_0x54cc('0x1b')),_0x329876=_0x2614e2[_0x54cc('0x83')][_0x54cc('0x3b')](_0x54cc('0x63')),_0x68f9d5=_0x2614e2[_0x54cc('0x83')][_0x54cc('0x3b')](_0x41eec7),_0x46d3ac=_0x2614e2[_0x54cc('0x83')][_0x54cc('0x3b')](_0x54cc('0x5b'));_0x68f9d5[_0x54cc('0x2a')][_0x54cc('0x6a')](_0x54cc('0x40'),_0x54cc('0x3c')),_0x2614e2[_0x54cc('0x91')][_0x54cc('0x8c')][_0x54cc('0x37')]('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':_0x54cc('0x82'),'isLimit':!0x0}),_0x2614e2[_0x54cc('0x27')][_0x54cc('0x7c')]({'model':_0x54cc('0xa2'),'view':_0x54cc('0x88')});let _0x1fdb42=null;_0x2614e2[_0x54cc('0x91')]['on'](_0x54cc('0x48'),(_0x38b11a,_0x132fb9)=>{const [_0xa748c2,_0x5eb2c0]=_0x132fb9,_0x56b83d=_0x132fb9[_0x132fb9[_0x54cc('0x92')]-0x1];_0x56b83d&&_0x56b83d[_0x54cc('0x11')]||_0x2da8bc[_0x54cc('0x22')]||this[_0x54cc('0x65')][_0x54cc('0x9f')][_0x54cc('0x3b')](_0x54cc('0x72'))[_0x54cc('0x73')]&&function(_0x2e18f7,_0x599f2b,_0xe4365a,_0x1b56a2,_0x51c9a2){if(_0x599f2b&&!_0x599f2b['is'](_0x54cc('0x99')))return!0x1;const _0x1adfb8=_0x51c9a2[_0x54cc('0x94')](_0x2e18f7,_0xe4365a);if(!_0x1adfb8||!fe(_0x1adfb8,void 0x0,_0x1b56a2))return!0x1;const _0x511b51=_0x1b56a2['getSelectionAffectedTableCells'](_0xe4365a['document'][_0x54cc('0x6c')]);if(!_0x511b51[_0x54cc('0x92')])return!0x1;const _0x1dd781=_0x511b51[0x0][_0x54cc('0x32')](_0x54cc('0x86')),_0x5f2297=_0x1b56a2[_0x54cc('0x80')](_0x511b51),_0x2f6630=_0x1b56a2['getColumnIndexes'](_0x511b51),_0x247619={'startRow':_0x5f2297[_0x54cc('0x3d')],'endRow':_0x5f2297[_0x54cc('0x78')],'startColumn':_0x2f6630[_0x54cc('0x3d')],'endColumn':_0x2f6630[_0x54cc('0x78')]};return 0x1==_0x511b51[_0x54cc('0x92')]&&(_0x247619[_0x54cc('0x97')]+=_0x1b56a2[_0x54cc('0x6b')](_0x1adfb8)-0x1,_0x247619[_0x54cc('0x59')]+=_0x1b56a2['getColumns'](_0x1adfb8)-0x1),fe(_0x1dd781,_0x247619,_0x1b56a2);}(_0xa748c2,_0x5eb2c0,_0x2614e2[_0x54cc('0x91')],_0x329876,_0x46d3ac)&&(_0x38b11a[_0x54cc('0x50')](),_0x1fdb42={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2614e2[_0x54cc('0x91')][_0x54cc('0x4f')](()=>{_0x2614e2[_0x54cc('0x91')][_0x54cc('0x48')](_0x132fb9[0x0],_0x132fb9[0x1],_0x132fb9[0x2],{'forceDefaultExecution':!0x0});const _0x1d97c9=_0x105884(),{rowInsertionRanges:_0x4865e6,columnInsertionRanges:_0x307721,insertionRanges:_0x36e206,deletionRanges:_0x13e06b,cells:_0x18646d}=_0x1fdb42;_0x4865e6[_0x54cc('0x92')]&&_0x2da8bc[_0x54cc('0x56')](_0x4865e6,_0x54cc('0x40'),{'tablePasteChainId':_0x1d97c9}),_0x307721['length']&&_0x2da8bc[_0x54cc('0x56')](_0x307721,_0x54cc('0x3c'),{'tablePasteChainId':_0x1d97c9}),_0x36e206['length']&&_0x2da8bc[_0x54cc('0x56')](_0x36e206,_0x54cc('0x20'),{'tablePasteChainId':_0x1d97c9,'skipNestingCheck':!0x0}),_0x13e06b[_0x54cc('0x92')]&&_0x2da8bc[_0x54cc('0x4c')](_0x13e06b,'tablePaste',{'tablePasteChainId':_0x1d97c9,'skipNestingCheck':!0x0});const _0xe81058=_0x2da8bc['markMultiRangeBlockFormat'](_0x18646d[_0x54cc('0x21')](({element:_0x2bc721})=>_0x2bc721),{'formatGroupId':_0x105884()},[],_0x54cc('0x64'),{'tablePasteChainId':_0x1d97c9});if(_0xe81058){const _0x1ef929=_0xe81058[_0x54cc('0x98')](),_0x48113d=[];for(const {element:_0x9d6533,attributes:_0x1ed5df}of _0x18646d){if(!_0x1ed5df)continue;const _0x50c9c6=_0x2614e2['model']['createRangeOn'](_0x9d6533),_0x5beba3=_0x1ef929[_0x54cc('0x70')](_0x144458=>_0x144458[_0x54cc('0x8f')]()['isEqual'](_0x50c9c6));_0x5beba3&&_0x48113d['push']([_0x5beba3[_0x54cc('0x5a')],_0x1ed5df]);}_0x48113d[_0x54cc('0x92')]&&_0xe81058[_0x54cc('0x44')](_0x54cc('0x8'),Object[_0x54cc('0x7')](_0x48113d));}_0x1fdb42=null;}));},{'priority':_0x1a9ffb[_0x54cc('0x85')]+0xa}),_0x2614e2[_0x54cc('0x83')]['get'](_0x54cc('0x5b'))['on'](_0x54cc('0x90'),(_0x16bb66,_0x20cf97)=>{const [_0x18e091,_0x957c34,,_0x993afd]=_0x20cf97;if(!_0x1fdb42)return;_0x16bb66[_0x54cc('0x50')]();const _0x4caae8=_0x18e091[_0x54cc('0x5d')],_0xfca395=_0x957c34,_0x3a6a35=ce(_0x4caae8),_0x479ca1=ce(_0xfca395);_0x16bb66[_0x54cc('0xf')]=_0x4caae8;let _0x24434e=null,_0x4a1e5e=null;if(_0x479ca1||_0x3a6a35){if(_0x3a6a35&&!_0x479ca1){_0x993afd[_0x54cc('0x47')](_0x4caae8[_0x54cc('0x2c')](0x0));for(const _0x3feecb of Array[_0x54cc('0x23')](_0xfca395['getChildren']()))_0x993afd['insert'](_0x3feecb,_0x4caae8,'end');const _0x3780e7=_0x1fdb42[_0x54cc('0x16')]['includes'](_0x18e091[_0x54cc('0x68')]),_0x73b251=_0x1fdb42[_0x54cc('0x9a')][_0x54cc('0x2b')](_0x18e091[_0x54cc('0xa5')]);_0x3780e7||_0x73b251||(_0x24434e=_0x993afd['createRangeIn'](_0x4caae8));}else _0x479ca1&&!_0x3a6a35&&(_0x4a1e5e=_0x993afd[_0x54cc('0x45')](_0x4caae8));}else{const _0x22e7bd=_0x993afd[_0x54cc('0x1c')](_0x54cc('0xa2')),_0x166544=_0x993afd[_0x54cc('0x1c')](_0x54cc('0xa2'));_0x993afd[_0x54cc('0x8e')](_0x993afd[_0x54cc('0x45')](_0x4caae8),_0x166544),_0x993afd[_0x54cc('0x71')](_0x22e7bd,_0x4caae8,0x0);for(const _0x3f0b09 of Array[_0x54cc('0x23')](_0xfca395['getChildren']()))_0x993afd[_0x54cc('0x71')](_0x3f0b09,_0x22e7bd,_0x54cc('0x9e'));_0x24434e=_0x993afd[_0x54cc('0x7d')](_0x22e7bd),_0x4a1e5e=_0x993afd[_0x54cc('0x7d')](_0x166544);}const _0x574eb9=Array[_0x54cc('0x23')](_0xfca395[_0x54cc('0x7e')]())['filter'](([_0x443217])=>le['includes'](_0x443217));_0x1fdb42[_0x54cc('0x42')][_0x54cc('0x6a')]({'element':_0x4caae8,'attributes':_0x574eb9[_0x54cc('0x92')]?Object[_0x54cc('0x7')](_0x574eb9):null}),_0x24434e&&_0x1fdb42[_0x54cc('0x6')][_0x54cc('0x6a')](_0x24434e),_0x4a1e5e&&_0x1fdb42[_0x54cc('0x51')][_0x54cc('0x6a')](_0x4a1e5e);},{'priority':'high'}),_0x329876['on'](_0x54cc('0x9'),(_0x423016,_0x4b9aa2)=>{const [_0x2dc8ab,_0x436da8={}]=_0x4b9aa2;if(!_0x1fdb42)return;const _0x45dc1e=_0x436da8['at']||0x0,_0x4a4898=_0x436da8[_0x54cc('0x54')]||0x1;_0x1fdb42[_0x54cc('0x9a')]=new Array(_0x4a4898)[_0x54cc('0x4d')](_0x45dc1e)[_0x54cc('0x21')]((_0xc39e31,_0x2bf59c)=>_0xc39e31+_0x2bf59c);for(const {cell:_0x5c7694}of _0x329876[_0x54cc('0x0')](_0x2dc8ab,{'startColumn':_0x45dc1e,'endColumn':_0x45dc1e+_0x4a4898-0x1}))_0x1fdb42[_0x54cc('0x6e')][_0x54cc('0x6a')](_0x2614e2[_0x54cc('0x91')][_0x54cc('0x7d')](_0x5c7694));},{'priority':_0x54cc('0x58')}),_0x329876['on']('insertRows',(_0x36533f,_0x126ea5)=>{const [_0x1bac9c,_0x268053={}]=_0x126ea5;if(!_0x1fdb42)return;const _0x52b8c6=_0x268053['at']||0x0,_0x23adf7=_0x268053['rows']||0x1;_0x1fdb42['rowInsertionIndexes']=new Array(_0x23adf7)[_0x54cc('0x4d')](_0x52b8c6)['map']((_0x2ee829,_0x194db5)=>_0x2ee829+_0x194db5);for(const {cell:_0x2182e8}of _0x329876[_0x54cc('0x0')](_0x1bac9c,{'startRow':_0x52b8c6,'endRow':_0x52b8c6+_0x23adf7-0x1}))_0x1fdb42[_0x54cc('0x9d')]['push'](_0x2614e2[_0x54cc('0x91')][_0x54cc('0x7d')](_0x2182e8));},{'priority':'low'}),_0x2da8bc['_descriptionFactory'][_0x54cc('0x81')](_0x5994e8=>{if(_0x5994e8[_0x54cc('0xa')]&&_0x5994e8[_0x54cc('0xa')][_0x54cc('0x62')](_0x54cc('0x20')))return _0x5994e8[_0x54cc('0x1')]?{}:{'type':_0x54cc('0x66'),'content':_0x5ac578(_0x2614e2[_0x54cc('0x52')],'*Replace\x20table\x20cells*')};});const _0x3da1ac=()=>!0x1;for(const _0x1142cc of[_0x54cc('0x20'),_0x54cc('0x3c'),_0x54cc('0x40'),_0x54cc('0x64')])_0x2da8bc[_0x54cc('0x18')][_0x54cc('0x93')](_0x54cc('0x66'),_0x1142cc,_0x54cc('0xc'),_0x3da1ac),_0x2da8bc[_0x54cc('0x18')][_0x54cc('0x93')](_0x54cc('0xa4'),_0x1142cc,_0x54cc('0xc'),_0x3da1ac),_0x2da8bc[_0x54cc('0x18')]['registerCustomCallback'](_0x54cc('0x3a'),_0x1142cc,_0x54cc('0xc'),_0x3da1ac);_0x2da8bc[_0x54cc('0x18')][_0x54cc('0x93')](_0x54cc('0x3a'),_0x54cc('0x64'),_0x54cc('0x46'),_0x3da1ac),_0x2da8bc[_0x54cc('0x18')][_0x54cc('0x93')](_0x54cc('0x3a'),_0x54cc('0x64'),'accept',(_0x151a34,_0x508f01,_0x180809)=>{const _0x4b1eb2=_0x151a34[_0x54cc('0x21')](_0x542532=>_0x542532[_0x54cc('0x25')]())['filter'](_0x3dbd7f=>_0x3dbd7f),_0x565f40=new Map(_0x4b1eb2['map'](_0x36be1f=>[_0x36be1f,null]));if(_0x1fdb42)for(const {element:_0x2037ae,attributes:_0x55f8d5}of _0x1fdb42[_0x54cc('0x42')])_0x55f8d5&&_0x565f40[_0x54cc('0x87')](_0x2037ae,_0x55f8d5);else{if(_0x180809&&_0x180809['markerAttributes'])for(const [_0x1f87b7,_0x115c36]of Object[_0x54cc('0x95')](_0x180809[_0x54cc('0x8')])){const _0x2935b0=_0x2614e2[_0x54cc('0x91')][_0x54cc('0x31')]['get'](_0x1f87b7),_0x21ccd=_0x2935b0?_0x2935b0[_0x54cc('0x8f')]()[_0x54cc('0x25')]():null;_0x21ccd&&_0x565f40['set'](_0x21ccd,_0x115c36);}}_0x2614e2[_0x54cc('0x91')][_0x54cc('0x4f')](_0x416774=>{for(const [_0x1ef9e8,_0x428e01]of _0x565f40)_0x416774[_0x54cc('0x7a')]({...ae,..._0x428e01},_0x1ef9e8);});});const _0x192de5=(_0x47b035,_0x10f206)=>{_0x2da8bc[_0x54cc('0x18')][_0x54cc('0x93')](_0x47b035,_0x54cc('0x20'),_0x10f206,(_0x159d45,_0x119318,_0x44d4f9)=>{_0x2614e2[_0x54cc('0x91')][_0x54cc('0x4f')](_0x3d5ed9=>{const _0x25b078=[];for(const _0x5c5f63 of _0x159d45){const _0x26b0ca=_0x5c5f63[_0x54cc('0x29')][_0x54cc('0x2d')];_0x26b0ca['is']('element','tableCellSuggestion')&&_0x25b078['push'](_0x26b0ca);}_0x2da8bc[_0x54cc('0x18')]['getSuggestionCallback'](_0x47b035,null,_0x10f206)(_0x159d45,_0x119318,_0x44d4f9);for(const _0x583b95 of _0x25b078)_0x54cc('0x3e')!=_0x583b95['root'][_0x54cc('0x1f')]&&_0x3d5ed9[_0x54cc('0x4b')](_0x583b95);});});};_0x192de5(_0x54cc('0x66'),_0x54cc('0x1d')),_0x192de5('insertion',_0x54cc('0x46')),_0x192de5('deletion',_0x54cc('0x1d')),_0x192de5(_0x54cc('0xa4'),_0x54cc('0x46')),_0x2da8bc[_0x54cc('0x18')]['registerCustomCallback'](_0x54cc('0x66'),_0x54cc('0x40'),'discard',_0x5cc729=>{const _0x45e7b9=_0x5cc729[_0x54cc('0x21')](_0x59fa13=>_0x59fa13[_0x54cc('0x25')]()),_0x5d6694=_0x45e7b9[0x0]['findAncestor'](_0x54cc('0x86')),{minRow:_0x409069,maxRow:_0x3710ab}=_0x68f9d5['_getCoordsForCells'](_0x45e7b9);_0x329876[_0x54cc('0x61')](_0x5d6694,{'at':_0x409069,'rows':_0x3710ab-_0x409069+0x1});}),_0x2da8bc[_0x54cc('0x18')][_0x54cc('0x93')](_0x54cc('0x66'),_0x54cc('0x3c'),'discard',_0x44092c=>{const _0x2a8a8c=_0x44092c[_0x54cc('0x21')](_0x4ac38e=>_0x4ac38e[_0x54cc('0x25')]()),_0x1d28f0=_0x2a8a8c[0x0]['findAncestor'](_0x54cc('0x86')),{minColumn:_0x37ee5b,maxColumn:_0x5a1d27}=_0x68f9d5[_0x54cc('0x7b')](_0x2a8a8c);_0x329876[_0x54cc('0x36')](_0x1d28f0,{'at':_0x37ee5b,'columns':_0x5a1d27-_0x37ee5b+0x1});});const _0x51c4bb=(_0x2b1717,_0x30c469)=>{if(!_0x30c469[_0x54cc('0xa')]||!_0x30c469[_0x54cc('0xa')][_0x54cc('0x62')](_0x54cc('0x20')))return;const _0x38611b=_0x30c469[_0x54cc('0x8a')][_0x54cc('0x1a')],_0x396d2d=_0x2da8bc[_0x54cc('0x67')]()[_0x54cc('0x5e')](_0x4773f7=>_0x4773f7[_0x54cc('0x69')]&&_0x4773f7[_0x54cc('0x8a')]&&_0x4773f7[_0x54cc('0x8a')][_0x54cc('0x1a')]==_0x38611b);_0x396d2d['length']&&_0x30c469['getAllAdjacentSuggestions']()[_0x54cc('0x92')]!=_0x396d2d[_0x54cc('0x92')]&&_0x396d2d['reduce']((_0x4e341e,_0x10e384)=>(_0x4e341e[_0x54cc('0x3')]=_0x10e384,_0x10e384['previous']=_0x4e341e,_0x10e384));};function _0x31cd45(_0xfd5e30,_0x1bdb1e=!0x0){const {id:_0x14ec86}=_0x2da8bc[_0x54cc('0xa1')](_0xfd5e30[_0x54cc('0x17')]),_0x15a862=['ck-suggestion-marker',_0x54cc('0x6d')],_0x3ba1d8=_0x2da8bc[_0x54cc('0x2f')]['includes'](_0xfd5e30[_0x54cc('0x17')]);return _0x3ba1d8&&_0x15a862[_0x54cc('0x6a')](_0x54cc('0xa3')),{'classes':_0x15a862,'attributes':{'data-suggestion':_0x14ec86},'priority':_0x3ba1d8&&_0x1bdb1e?0xbc2:0xbb8};}_0x2da8bc['on']('suggestionLoaded',_0x51c4bb,{'priority':'high'}),_0x2da8bc['on']('suggestionUnloaded',_0x51c4bb,{'priority':_0x54cc('0x85')}),_0x2614e2[_0x54cc('0x91')][_0x54cc('0xb')][_0x54cc('0x4a')](()=>{let _0x2cedee=!0x1;const _0xffd3d1=Array['from'](_0x2614e2[_0x54cc('0x91')][_0x54cc('0xb')]['differ'][_0x54cc('0x55')]());for(const {name:_0x4e6745,data:_0x9d3875}of _0xffd3d1){const {group:_0x491d8e,type:_0x4efac8,id:_0x508804}=_0x2da8bc[_0x54cc('0xa1')](_0x4e6745);if('suggestion'!=_0x491d8e||_0x54cc('0xa4')!=_0x4efac8||_0x9d3875[_0x54cc('0x8b')])continue;if(!_0x2da8bc['hasSuggestion'](_0x508804))continue;const _0x4d0780=_0x2da8bc[_0x54cc('0x1e')](_0x508804)[_0x54cc('0x57')](),_0x25fc5=_0x2614e2[_0x54cc('0x83')][_0x54cc('0x3b')](_0x54cc('0x24'))['me'];for(const _0x493728 of _0x2da8bc['getSuggestions']()){if(!_0x493728['isInContent']||_0x493728[_0x54cc('0x43')]!=_0x25fc5)continue;if(_0x54cc('0x3a')!=_0x493728['type']||_0x54cc('0x64')!=_0x493728[_0x54cc('0xa')])continue;if(_0x493728[_0x54cc('0x57')]()[_0x54cc('0x53')](_0x2170c5=>_0x4d0780['some'](_0x5ac81e=>_0x5ac81e[_0x54cc('0x2')](_0x2170c5,!0x0))))for(const _0x178969 of _0x493728[_0x54cc('0x4')]())_0x178969[_0x54cc('0x69')]&&(_0x178969[_0x54cc('0x46')](),_0x2cedee=!0x0);}}return _0x2cedee;}),_0x2614e2[_0x54cc('0x91')]['document'][_0x54cc('0x4a')](_0x2c4773=>{const _0x14e0e4=_0x2614e2[_0x54cc('0x9f')][_0x54cc('0x3b')](_0x54cc('0x84'));if(!_0x14e0e4||!_0x14e0e4[_0x54cc('0x96')][_0x54cc('0x60')](_0x2c4773[_0x54cc('0x76')]))return!0x1;let _0x51e75f=!0x1;const _0xe60e34=_0x2614e2['plugins'][_0x54cc('0x3b')](_0x54cc('0x24'))['me'],_0x44ee89=_0x2614e2[_0x54cc('0x91')][_0x54cc('0xb')][_0x54cc('0x13')][_0x54cc('0x5f')](),_0x39ac51=Array['from'](_0x2614e2['model'][_0x54cc('0xb')][_0x54cc('0x13')][_0x54cc('0x55')]())['filter'](({name:_0x5aa2d7,data:_0x4a2e77})=>{const {group:_0x104b4a,subType:_0x2f1bdc,authorId:_0x257f27}=_0x2da8bc['_splitMarkerName'](_0x5aa2d7);return'suggestion'==_0x104b4a&&_0x54cc('0x20')==_0x2f1bdc&&_0x257f27==_0xe60e34['id']&&!_0x4a2e77['oldRange'];});for(const _0x23468b of _0x44ee89){if(_0x54cc('0x71')!=_0x23468b[_0x54cc('0x7f')]||_0x54cc('0xa2')!=_0x23468b[_0x54cc('0x5a')]||0x1!=_0x23468b[_0x54cc('0x92')])continue;const _0x1a63d6=_0x2c4773[_0x54cc('0x6f')](_0x23468b['position'],_0x23468b[_0x54cc('0x14')][_0x54cc('0x34')](0x1));if(!_0x39ac51[_0x54cc('0x70')](({data:_0x292d09})=>_0x292d09['newRange'][_0x54cc('0x38')](_0x1a63d6)))for(const {name:_0x5b661e,data:_0x29d03a}of _0x39ac51)if(_0x1a63d6[_0x54cc('0x2')](_0x29d03a[_0x54cc('0xe')])){_0x2c4773[_0x54cc('0x9b')](_0x5b661e,{'range':_0x1a63d6}),_0x51e75f=!0x0;break;}}return _0x51e75f;}),_0x2614e2[_0x54cc('0x91')][_0x54cc('0xb')][_0x54cc('0x4a')](_0x4e0a78=>{let _0x53892e=!0x1;const _0x1ea35a=_0x2614e2[_0x54cc('0x83')][_0x54cc('0x3b')](_0x54cc('0x24'))['me'],_0x43aacf=_0x2da8bc[_0x54cc('0x67')]()['filter'](_0x2b4682=>_0x2b4682[_0x54cc('0x69')]&&_0x2b4682[_0x54cc('0x43')]==_0x1ea35a),_0x2c7566=new Set(),_0x5d342a=new Set();for(const _0x198b44 of _0x43aacf)if(_0x54cc('0x20')==_0x198b44[_0x54cc('0xa')])for(const _0x58da4 of _0x198b44[_0x54cc('0x98')]()){const _0x3bea3f=_0x58da4[_0x54cc('0x8f')]()[_0x54cc('0x25')]();if(_0x3bea3f){if(_0x3bea3f['is'](_0x54cc('0x89'),_0x54cc('0xa2'))&&ce(_0x3bea3f)){_0x198b44[_0x54cc('0x35')](_0x58da4[_0x54cc('0x5a')]),_0x2c7566['add'](_0x3bea3f),_0x53892e=!0x0;const _0x2221ac=_0x3bea3f[_0x54cc('0xa0')],_0x752ded=_0x3bea3f[_0x54cc('0x41')],_0x46422d=_0x2221ac&&_0x2221ac['is'](_0x54cc('0x89'),_0x54cc('0xa2')),_0x185504=_0x752ded&&_0x752ded['is'](_0x54cc('0x89'),_0x54cc('0xa2'));_0x46422d&&!_0x2c7566['has'](_0x2221ac)&&_0x5d342a[_0x54cc('0x49')](_0x2221ac),_0x185504&&!_0x2c7566['has'](_0x752ded)&&_0x5d342a[_0x54cc('0x49')](_0x752ded);}else _0x3bea3f['is'](_0x54cc('0x89'),'paragraph')&&_0x3bea3f[_0x54cc('0x8d')]&&(_0x198b44['removeMarker'](_0x58da4[_0x54cc('0x5a')]),_0x53892e=!0x0);}}else{if(_0x54cc('0x64')==_0x198b44[_0x54cc('0xa')]){if(!_0x198b44[_0x54cc('0x8a')]||!_0x198b44[_0x54cc('0x8a')]['tablePasteChainId'])continue;const _0x160984=_0x198b44[_0x54cc('0x8a')][_0x54cc('0x8')];if(_0x160984&&Object['keys'](_0x160984)[_0x54cc('0x92')])continue;const _0x128a3c=_0x198b44[_0x54cc('0x8a')]['tablePasteChainId'];let _0x376942=!0x0,_0x4297bf=!0x0;for(const _0x2c3448 of _0x43aacf)if(_0x2c3448[_0x54cc('0xa')]&&_0x2c3448[_0x54cc('0xa')][_0x54cc('0x62')](_0x54cc('0x20'))){if(!_0x2c3448[_0x54cc('0x8a')]['tablePasteChainId']){_0x4297bf=!0x1;break;}if(_0x2c3448['id']!=_0x198b44['id']&&_0x2c3448['attributes']['tablePasteChainId']==_0x128a3c){_0x376942=!0x1;break;}}_0x4297bf&&_0x376942&&(_0x198b44['removeMarkers'](),_0x53892e=!0x0);}}for(const _0x4a7e90 of _0x2c7566)_0x4e0a78['remove'](_0x4a7e90);for(const _0x57f01b of _0x5d342a)_0x4e0a78['unwrap'](_0x57f01b);return _0x53892e;}),_0x2614e2[_0x54cc('0x27')]['for'](_0x54cc('0x2e'))[_0x54cc('0x4e')]({'model':_0x54cc('0x33'),'view':(_0x915ed7,_0xa15f61)=>_0x31cd45(_0x915ed7),'converterPriority':'high'}),_0x2614e2[_0x54cc('0x27')][_0x54cc('0x74')](_0x54cc('0x15'))['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e9138,_0xa8d568)=>_0xa8d568[_0x54cc('0xd')][_0x54cc('0x5')]?_0x31cd45(_0x5e9138,!0x1):null,'converterPriority':_0x54cc('0x85')});const _0x484cfa=_0x2614e2[_0x54cc('0x30')]['view'];this[_0x54cc('0x77')](_0x484cfa['document'],_0x54cc('0x28'),(_0x2d9534,_0x36b74e)=>{const _0x3fa478=[];for(const _0xa8b041 of _0x484cfa[_0x54cc('0x45')](_0x36b74e[_0x54cc('0x12')])[_0x54cc('0x19')]())_0xa8b041['is']('element',_0x54cc('0x88'))&&_0x3fa478[_0x54cc('0x6a')](_0xa8b041);_0x484cfa[_0x54cc('0x4f')](_0x3b0c7d=>{for(const _0x48a061 of _0x3fa478)_0x3b0c7d[_0x54cc('0x5c')](_0x3b0c7d[_0x54cc('0x45')](_0x48a061),_0x3b0c7d['createPositionBefore'](_0x48a061)),_0x3b0c7d[_0x54cc('0x47')](_0x48a061);});});}}function ce(_0x297408){if(_0x297408[_0x54cc('0x8d')])return!0x0;const _0x411f90=_0x297408['getChild'](0x0);return _0x411f90['is'](_0x54cc('0x89'),_0x54cc('0x39'))&&_0x411f90[_0x54cc('0x8d')];}function fe(_0x2214f6,_0x4d23eb={},_0x3b5c35){for(const {isAnchor:_0x124fda,cellHeight:_0x3dfe37,cellWidth:_0x590b40}of _0x3b5c35[_0x54cc('0x0')](_0x2214f6,{'includeAllSlots':!0x0,..._0x4d23eb}))if(!_0x124fda||0x1!=_0x3dfe37||0x1!=_0x590b40)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ebc=['*Format:*\x20resize\x20table','TableColumnResizeEditing','afterInit','formatInline','plugins','discard','getContainedElement','commandParams','registerDescriptionCallback','resizeTable','formatBlock','format','registerCustomCallback','has','formatGroupId','bind','Users','subType','type','change','getColumnGroupElement','accept','getSuggestionCallback','markBlockFormat','editor','tableWidth','data','resizeTableWidth','getTableColumnsWidths','columnWidths','table','get','selection','handleResizeTableWidthCommand','_suggestionFactory','getSelectedElement','enableCommand','document','_descriptionFactory'];(function(_0x1458ff,_0x1ebc5f){const _0x31f051=function(_0x7e5f33){while(--_0x7e5f33){_0x1458ff['push'](_0x1458ff['shift']());}};_0x31f051(++_0x1ebc5f);}(_0x1ebc,0xb9));const _0x31f0=function(_0x1458ff,_0x1ebc5f){_0x1458ff=_0x1458ff-0x0;let _0x31f051=_0x1ebc[_0x1458ff];return _0x31f051;};import{Plugin as _0x3d02a9}from'ckeditor5/src/core';import{getTranslation as _0x82d1d6}from'../utils/common-translations';export default class It extends _0x3d02a9{[_0x31f0('0xc')](){if(!this[_0x31f0('0x22')][_0x31f0('0xe')][_0x31f0('0x17')](_0x31f0('0xb')))return;const _0x1f77b4=this[_0x31f0('0x22')][_0x31f0('0xe')][_0x31f0('0x2')]('TrackChangesEditing');_0x1f77b4[_0x31f0('0x7')](_0x31f0('0x25'),this[_0x31f0('0x4')][_0x31f0('0x19')](this)),_0x1f77b4[_0x31f0('0x5')][_0x31f0('0x16')]('formatBlock','resizeTable',_0x31f0('0x1f'),_0x1f77b4['_suggestionFactory'][_0x31f0('0x20')](_0x31f0('0x14'),null,_0x31f0('0xf'))),_0x1f77b4[_0x31f0('0x5')][_0x31f0('0x16')](_0x31f0('0x14'),_0x31f0('0x13'),_0x31f0('0xf'),_0x1f77b4['_suggestionFactory']['getSuggestionCallback'](_0x31f0('0x14'),null,_0x31f0('0x1f'))),_0x1f77b4[_0x31f0('0x9')][_0x31f0('0x12')](this['handleSuggestionDescription'][_0x31f0('0x19')](this));}[_0x31f0('0x4')](_0x4b6d62,_0x19b592){const _0x177a16=this['editor'][_0x31f0('0xe')][_0x31f0('0x2')]('TrackChangesEditing'),_0x5abdf6=this[_0x31f0('0x22')][_0x31f0('0xe')][_0x31f0('0x2')](_0x31f0('0xb')),_0x1262e2=_0x19b592[_0x31f0('0x1')]||this[_0x31f0('0x22')]['model'][_0x31f0('0x8')][_0x31f0('0x3')][_0x31f0('0x6')]();this[_0x31f0('0x22')]['model'][_0x31f0('0x1d')](()=>{const _0x54b6c2=_0x5abdf6[_0x31f0('0x1e')](_0x1262e2);let _0x13f897=_0x54b6c2?_0x5abdf6[_0x31f0('0x26')](_0x54b6c2):null,_0x2914c8=_0x1262e2['getAttribute']('tableWidth')||null;const _0x54bfe0=_0x19b592[_0x31f0('0x23')]||_0x2914c8,_0x213557=_0x19b592[_0x31f0('0x0')]||_0x13f897,_0x40514d=this[_0x31f0('0x22')][_0x31f0('0xe')][_0x31f0('0x2')](_0x31f0('0x1a'))['me'];for(const _0x87eae of _0x177a16['getSuggestions']()){const _0xdae96c=_0x87eae[_0x31f0('0x10')]();if(_0x31f0('0x13')===_0x87eae[_0x31f0('0x1b')]&&_0xdae96c===_0x1262e2){_0x87eae['author']!==_0x40514d&&_0x87eae['discard']();const _0x103c0a=_0x87eae[_0x31f0('0x24')][_0x31f0('0x11')];_0x2914c8=_0x103c0a[0x0][_0x31f0('0x23')],_0x13f897=_0x103c0a[0x0][_0x31f0('0x0')];break;}}_0x4b6d62({'table':_0x1262e2,'tableWidth':_0x54bfe0,'columnWidths':_0x213557}),_0x177a16[_0x31f0('0x21')](_0x1262e2,{'commandName':_0x31f0('0x25'),'commandParams':[{'tableWidth':_0x2914c8,'columnWidths':_0x13f897}],'formatGroupId':'resizeTable'},[],_0x31f0('0x13'));});}['handleSuggestionDescription'](_0x32bdf7){if('formatBlock'!=_0x32bdf7['type']&&_0x31f0('0xd')!=_0x32bdf7[_0x31f0('0x1c')])return;const {data:_0x4c0aaf}=_0x32bdf7;if(_0x4c0aaf&&_0x31f0('0x13')===_0x4c0aaf[_0x31f0('0x18')]){const _0x47dd85=_0x31f0('0xa');return{'type':_0x31f0('0x15'),'content':_0x82d1d6(this[_0x31f0('0x22')]['locale'],_0x47dd85)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa548=['activeMarkers','setTableColumnHeader','mapper','parent','forceValue','_splitMarkerName','markerRange','headingRows','editor','data','showSuggestionHighlights','registerCustomCallback','createTableWalker','setAttribute','TableUtils','get','data-suggestion','ck-suggestion-marker-','nodeBefore','editing','requires','locale','downcastDispatcher','name','unbindElementFromMarkerName','writer','headingColumns','removeMarker:suggestion','getCellLocation','consumable','markerName','registerDescriptionCallback','setTableRowHeader','addMarker:suggestion','bindElementToMarker','accept','removeClass','start','options','FORMAT_REGULAR_ROW','consume','format','toViewElement','has','type','formatBlock','_suggestionFactory','FORMAT_HEADER_ROW','_handleLegacySuggestions','addClass','commandParams','item','_acceptFormatSuggestionCallbackFactory','includes','*Format:*\x20%0','ck-suggestion-marker--active','registerAttributeLabel','_registerLegacyDescription','afterInit','markerNameToElements','_descriptionFactory','TrackChangesEditing','plugins','_enableDefaultAttributesIntegration','getSuggestion','FORMAT_HEADER_COLUMN','end','highest','removeAttribute'];(function(_0x352504,_0xa5483b){const _0x28833f=function(_0x34878f){while(--_0x34878f){_0x352504['push'](_0x352504['shift']());}};_0x28833f(++_0xa5483b);}(_0xa548,0x143));const _0x2883=function(_0x352504,_0xa5483b){_0x352504=_0x352504-0x0;let _0x28833f=_0xa548[_0x352504];return _0x28833f;};import{Plugin as _0x64ef60}from'ckeditor5/src/core';import _0x335096 from'./table';import{getTranslation as _0xd55c5f}from'../utils/common-translations';export default class St extends _0x64ef60{static get[_0x2883('0x2a')](){return[_0x335096];}[_0x2883('0xb')](){const _0x3010b2=this[_0x2883('0x1e')];if(!_0x3010b2[_0x2883('0xf')][_0x2883('0x41')]('TableEditing'))return;const _0x49592e=_0x3010b2[_0x2883('0x2b')],_0x244bb3=_0x3010b2['plugins']['get']('TrackChangesEditing');_0x244bb3[_0x2883('0x10')](_0x2883('0x36'),[],[_0x2883('0x1d')]),_0x244bb3[_0x2883('0x10')](_0x2883('0x17'),[],[_0x2883('0x30')]),_0x244bb3[_0x2883('0xd')][_0x2883('0x9')](_0x2883('0x1d'),_0xd55c5f(_0x49592e,'FORMAT_HEADER_ROW')),_0x244bb3[_0x2883('0xd')][_0x2883('0x9')](_0x2883('0x30'),_0xd55c5f(_0x49592e,_0x2883('0x12'))),this[_0x2883('0x1')]();}[_0x2883('0x1')](){const _0x53ea86=this[_0x2883('0x1e')][_0x2883('0xf')][_0x2883('0x25')](_0x2883('0xe')),_0x519632=this['editor'][_0x2883('0xf')][_0x2883('0x25')](_0x2883('0x24')),_0x42ad0a=this['editor'][_0x2883('0xf')][_0x2883('0x25')](_0x335096)[_0x2883('0x5')]();function _0x16fd5b({showActiveMarker:_0x3a491c=!0x0,setDataAttribute:_0x1f2bd9=!0x0}={}){return(_0x231516,_0xe78679,_0x3aac24)=>{const {type:_0x446657,id:_0x217c30}=_0x53ea86['_splitMarkerName'](_0xe78679['markerName']),_0x4b1ee7=_0x53ea86[_0x2883('0x11')](_0x217c30),_0x397955=_0x4b1ee7[_0x2883('0x1f')];if(_0x2883('0x43')!=_0x4b1ee7[_0x2883('0x42')]||!_0x397955||_0x2883('0x17')!=_0x397955['commandName'])return;if(_0xe78679[_0x2883('0x4')])return void _0x231516['stop']();if(!_0x3aac24[_0x2883('0x33')][_0x2883('0x3e')](_0xe78679[_0x2883('0x1c')],_0x231516[_0x2883('0x2d')]))return;const _0x25a4be=_0xe78679[_0x2883('0x1c')][_0x2883('0x3b')]['nodeAfter'],_0x951f10=_0xe78679['markerRange'][_0x2883('0x13')][_0x2883('0x28')],_0x2ff54f=_0x25a4be[_0x2883('0x19')]['parent'],{column:_0x442808}=_0x519632[_0x2883('0x32')](_0x25a4be),{column:_0x509a07}=_0x519632[_0x2883('0x32')](_0x951f10);for(let _0x1d6c0f=_0x442808;_0x1d6c0f<=_0x509a07;_0x1d6c0f++){const _0x28c581=_0x519632[_0x2883('0x22')](_0x2ff54f,{'column':_0x1d6c0f,'includeAllSlots':!0x1});for(const _0x5562a0 of _0x28c581){const _0xa7b258=_0x5562a0['cell'],_0x3c9854=_0x3aac24[_0x2883('0x18')][_0x2883('0x40')](_0xa7b258);_0x3aac24['writer']['addClass'](_0x2883('0x27')+_0x446657,_0x3c9854),_0x1f2bd9&&_0x3aac24[_0x2883('0x2f')][_0x2883('0x23')](_0x2883('0x26'),_0x217c30,_0x3c9854),_0x3aac24[_0x2883('0x18')][_0x2883('0x38')](_0x3c9854,_0xe78679['markerName']),_0x3a491c&&(_0x53ea86[_0x2883('0x16')][_0x2883('0x6')](_0xe78679[_0x2883('0x34')])?_0x3aac24[_0x2883('0x2f')][_0x2883('0x2')](_0x2883('0x8'),_0x3c9854):_0x3aac24['writer'][_0x2883('0x3a')](_0x2883('0x8'),_0x3c9854));}}};}_0x53ea86[_0x2883('0x44')]['registerCustomCallback']('formatBlock',_0x2883('0x36'),_0x2883('0x39'),_0x42ad0a),_0x53ea86[_0x2883('0x44')][_0x2883('0x21')](_0x2883('0x43'),_0x2883('0x17'),_0x2883('0x39'),_0x42ad0a),this[_0x2883('0x1e')]['editing'][_0x2883('0x2c')]['on'](_0x2883('0x37'),_0x16fd5b(),{'priority':_0x2883('0x14')}),this[_0x2883('0x1e')][_0x2883('0x1f')][_0x2883('0x2c')]['on'](_0x2883('0x37'),(_0x38c447,_0x43ee1d,_0x85ab24)=>{_0x85ab24[_0x2883('0x3c')][_0x2883('0x20')]&&_0x16fd5b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38c447,_0x43ee1d,_0x85ab24);},{'priority':'highest'}),this[_0x2883('0x1e')][_0x2883('0x29')][_0x2883('0x2c')]['on'](_0x2883('0x31'),(_0x20f081,_0x25ba08,_0x47fafa)=>{const {type:_0x4e53b0,id:_0x4335bf}=_0x53ea86[_0x2883('0x1b')](_0x25ba08[_0x2883('0x34')]),_0x188978=_0x53ea86['getSuggestion'](_0x4335bf),_0x276a1f=_0x188978['data'];if(_0x2883('0x43')!=_0x188978[_0x2883('0x42')]||!_0x276a1f||_0x2883('0x17')!=_0x276a1f['commandName'])return;const _0x200fa5=_0x47fafa[_0x2883('0x18')][_0x2883('0xc')](_0x25ba08[_0x2883('0x34')]);if(_0x200fa5)for(const _0x2fd9a1 of _0x200fa5)_0x47fafa[_0x2883('0x2f')][_0x2883('0x3a')](_0x2883('0x27')+_0x4e53b0,_0x2fd9a1),_0x47fafa[_0x2883('0x2f')][_0x2883('0x3a')](_0x2883('0x8'),_0x2fd9a1),_0x47fafa[_0x2883('0x2f')][_0x2883('0x15')](_0x2883('0x26'),_0x2fd9a1),_0x47fafa['mapper'][_0x2883('0x2e')](_0x2fd9a1,_0x25ba08[_0x2883('0x34')]);},{'priority':_0x2883('0x14')}),this[_0x2883('0xa')]();}[_0x2883('0xa')](){const _0x8e1a46=this[_0x2883('0x1e')],_0x4bd4b8=_0x8e1a46[_0x2883('0x2b')];function _0x4ed379(_0xbe1c67){return{'type':_0x2883('0x3f'),'content':_0xd55c5f(_0x4bd4b8,_0x2883('0x7'),_0xbe1c67)};}_0x8e1a46[_0x2883('0xf')][_0x2883('0x25')](_0x2883('0xe'))[_0x2883('0xd')][_0x2883('0x35')](_0x45537a=>{if('formatBlock'!=_0x45537a['type'])return;const {data:_0x2a9576}=_0x45537a;if(_0x2a9576){if(_0x2883('0x36')==_0x2a9576['commandName']){const _0x4c25c4=_0x2a9576[_0x2883('0x3')][0x0]['forceValue'];return _0x4ed379(_0xd55c5f(_0x4bd4b8,_0x4c25c4?_0x2883('0x0'):_0x2883('0x3d')));}if(_0x2883('0x17')==_0x2a9576['commandName']){const _0x44530c=_0x2a9576['commandParams'][0x0][_0x2883('0x1a')];return _0x4ed379(_0xd55c5f(_0x4bd4b8,_0x44530c?_0x2883('0x12'):'FORMAT_REGULAR_COLUMN'));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11b9=['cell','splitTableCellHorizontally','getRanges','tableCell','formatInline','getAncestors','accept','from','_acceptFormatSuggestionCallbackFactory','_descriptionFactory','find','getCellLocation','getFirstPosition','has','enableCommand','mergeTableCellUp','*Split\x20cell:*\x20horizontally','*Merge\x20cells*','length','isEnabled','stop','splitTableCellVertically','formatBlock','findAncestor','commandName','commands','refresh','size','insertion','detach','createRangeOn','registerCustomCallback','mergeTableCells','horizontally','model','highest','TableUtils','markMultiRangeBlockFormat','document','_suggestionFactory','*Split\x20cell:*\x20vertically','containsRange','element','trackChanges','locale','low','mergeTableCellDown','format','getSuggestions','subType','value','getSelectionAffectedTableCells','author','mergeTableCellRight','TableEditing','selection','afterInit','direction','add','push','createTableWalker','return','isInContent','registerDescriptionCallback','_areSelectedCellsMergable','change','rootName','plugins','deletion','TrackChangesEditing','_areMergableCells','editor','requires','get','forceDefaultExecution','filter','type','setSelection','fromRange','map','mergeTableCellLeft'];(function(_0x20b41c,_0x11b917){const _0x47a78e=function(_0x53111c){while(--_0x53111c){_0x20b41c['push'](_0x20b41c['shift']());}};_0x47a78e(++_0x11b917);}(_0x11b9,0xed));const _0x47a7=function(_0x20b41c,_0x11b917){_0x20b41c=_0x20b41c-0x0;let _0x47a78e=_0x11b9[_0x20b41c];return _0x47a78e;};import{Plugin as _0x20e229}from'ckeditor5/src/core';import _0x334ecf from'./table';import{LiveRange as _0xb4c111}from'ckeditor5/src/engine';import{getTranslation as _0x4986ba}from'../utils/common-translations';export default class yt extends _0x20e229{static get[_0x47a7('0x4e')](){return[_0x334ecf];}[_0x47a7('0x3e')](){const _0x39f8d7=this[_0x47a7('0x4d')],_0x34797e=_0x39f8d7[_0x47a7('0x28')][_0x47a7('0x2c')][_0x47a7('0x3d')],_0x11e16f=_0x39f8d7[_0x47a7('0x32')];if(!_0x39f8d7[_0x47a7('0x49')][_0x47a7('0x13')](_0x47a7('0x3c')))return;const _0x307428=_0x39f8d7[_0x47a7('0x49')]['get'](_0x47a7('0x4b')),_0xe4033f=_0x39f8d7[_0x47a7('0x49')]['get'](_0x47a7('0x2a')),_0xa4008e=_0x39f8d7[_0x47a7('0x49')][_0x47a7('0x4f')](_0x334ecf);_0xa4008e['_tablePostFixingSubtypes'][_0x47a7('0x41')](_0x47a7('0x26')),_0x307428[_0x47a7('0x14')](_0x47a7('0x26'),()=>{const _0x7c03e5=_0xe4033f[_0x47a7('0x39')](_0x39f8d7[_0x47a7('0x28')][_0x47a7('0x2c')][_0x47a7('0x3d')]);_0x39f8d7['model'][_0x47a7('0x47')](()=>{_0x307428[_0x47a7('0x2b')](_0x7c03e5,{'commandName':_0x47a7('0x26'),'commandParams':[]},[],_0x47a7('0x26'));});}),_0x39f8d7[_0x47a7('0x1f')][_0x47a7('0x4f')]('mergeTableCells')['on']('execute',(_0x265380,_0x4ff7dd)=>{_0x39f8d7[_0x47a7('0x1f')][_0x47a7('0x4f')](_0x47a7('0x31'))[_0x47a7('0x38')]&&(_0x4ff7dd[_0x47a7('0x18')]>0x0&&_0x4ff7dd[_0x4ff7dd[_0x47a7('0x18')]-0x1]&&_0x4ff7dd[_0x4ff7dd[_0x47a7('0x18')]-0x1][_0x47a7('0x50')]||_0x307428['_isForcedDefaultExecutionBlock']||this[_0x47a7('0x46')]()||_0x265380[_0x47a7('0x1a')]());},{'priority':_0x47a7('0x29')});for(const _0x294def of[_0x47a7('0x15'),_0x47a7('0x3b'),_0x47a7('0x34'),_0x47a7('0x5')]){const _0x4902a4=_0x39f8d7['commands'][_0x47a7('0x4f')](_0x294def);_0x307428[_0x47a7('0x14')](_0x294def,()=>{const _0x1bbf3c=_0x39f8d7['model'][_0x47a7('0x2c')][_0x47a7('0x3d')]['getFirstPosition']()[_0x47a7('0xb')]()[_0x47a7('0x10')](_0x88540e=>_0x88540e['is'](_0x47a7('0x30'),_0x47a7('0x9'))),_0x5e934e=_0x4902a4['value'];_0x39f8d7[_0x47a7('0x28')][_0x47a7('0x47')](()=>{_0x307428[_0x47a7('0x2b')]([_0x1bbf3c,_0x5e934e],{'commandName':_0x47a7('0x26'),'commandParams':[]},[],_0x47a7('0x26'));});});}for(const _0x4ad8c3 of['splitTableCellVertically',_0x47a7('0x7')]){const _0x21fbd9=_0x39f8d7[_0x47a7('0x1f')][_0x47a7('0x4f')](_0x4ad8c3);_0x307428[_0x47a7('0x14')](_0x4ad8c3,()=>{const _0x2e6a24=_0xe4033f[_0x47a7('0x39')](_0x39f8d7[_0x47a7('0x28')][_0x47a7('0x2c')]['selection'])[0x0],_0x158f64=_0x2e6a24[_0x47a7('0x1d')]('table'),{column:_0x461f7a,row:_0xbb14d5}=_0xe4033f[_0x47a7('0x11')](_0x2e6a24);let _0x27c7ba=[];if(_0x47a7('0x27')==_0x21fbd9[_0x47a7('0x3f')]){const _0x1df059=_0xe4033f['createTableWalker'](_0x158f64,{'startRow':_0xbb14d5,'endRow':_0xbb14d5,'includeAllSlots':!0x0});_0x27c7ba=Array[_0x47a7('0xd')](_0x1df059)[_0x47a7('0x4')](_0x1a8b7d=>_0x1a8b7d['cell']);}else{const _0x43741e=_0xe4033f[_0x47a7('0x42')](_0x158f64,{'column':_0x461f7a,'includeAllSlots':!0x0});_0x27c7ba=Array[_0x47a7('0xd')](_0x43741e)['map'](_0x38ed24=>_0x38ed24[_0x47a7('0x6')]);}_0x39f8d7[_0x47a7('0x28')][_0x47a7('0x47')](_0xea14e5=>{_0x307428['markBlockFormat'](_0xea14e5[_0x47a7('0x24')](_0x2e6a24),{'commandName':_0x4ad8c3,'commandParams':[]},_0x27c7ba,_0x4ad8c3);});});}_0x307428[_0x47a7('0xf')][_0x47a7('0x45')](_0x3e5203=>{if(_0x47a7('0x1c')!=_0x3e5203['type']&&_0x47a7('0xa')!=_0x3e5203[_0x47a7('0x1')])return;const {data:_0x3d385a}=_0x3e5203;return _0x3d385a&&_0x47a7('0x26')==_0x3d385a['commandName']?{'type':'format','content':_0x4986ba(_0x11e16f,_0x47a7('0x17'))}:void 0x0;}),_0x307428[_0x47a7('0xf')][_0x47a7('0x45')](_0x52138e=>{if(_0x47a7('0x1c')!=_0x52138e['type']&&_0x47a7('0xa')!=_0x52138e['type'])return;const {data:_0x320b1b}=_0x52138e;return _0x320b1b?_0x47a7('0x1b')==_0x320b1b['commandName']?{'type':'format','content':_0x4986ba(_0x11e16f,_0x47a7('0x2e'))}:'splitTableCellHorizontally'==_0x320b1b[_0x47a7('0x1e')]?{'type':_0x47a7('0x35'),'content':_0x4986ba(_0x11e16f,_0x47a7('0x16'))}:void 0x0:void 0x0;});const _0x5ce343=_0xa4008e[_0x47a7('0xe')]();for(const _0xdf807d of[_0x47a7('0x15'),_0x47a7('0x3b'),'mergeTableCellDown',_0x47a7('0x5')])_0x307428[_0x47a7('0x2d')][_0x47a7('0x25')](_0x47a7('0x1c'),_0xdf807d,_0x47a7('0xc'),_0x5ce343);for(const _0x3d6e31 of[_0x47a7('0x1b'),_0x47a7('0x7')])_0x307428[_0x47a7('0x2d')][_0x47a7('0x25')](_0x47a7('0x1c'),_0x3d6e31,_0x47a7('0xc'),_0x5ce343);_0x307428[_0x47a7('0x2d')]['registerCustomCallback']('formatBlock',_0x47a7('0x26'),_0x47a7('0xc'),_0x110395=>{_0x39f8d7[_0x47a7('0x28')]['change'](_0x13c0e5=>{const _0x50f2b0=Array[_0x47a7('0xd')](_0x34797e[_0x47a7('0x8')]())[_0x47a7('0x4')](_0x3eaf3d=>_0xb4c111[_0x47a7('0x3')](_0x3eaf3d));_0x13c0e5[_0x47a7('0x2')](_0x110395),_0x39f8d7['commands'][_0x47a7('0x4f')](_0x47a7('0x26'))[_0x47a7('0x20')](),_0x39f8d7['execute'](_0x47a7('0x26'),{'forceDefaultExecution':!0x0});const _0xf4202b=_0x50f2b0[_0x47a7('0x0')](_0x50294c=>'$graveyard'!=_0x50294c['root'][_0x47a7('0x48')]);_0xf4202b[_0x47a7('0x18')]>0x0&&_0x13c0e5['setSelection'](_0xf4202b);for(const _0x321128 of _0x50f2b0)_0x321128[_0x47a7('0x23')]();});});for(const _0x2823b1 of[_0x47a7('0x15'),_0x47a7('0x34'),_0x47a7('0x5'),_0x47a7('0x3b')]){const _0x5d0758=_0x39f8d7[_0x47a7('0x1f')][_0x47a7('0x4f')](_0x2823b1);_0x5d0758['on']('set:isEnabled',(_0x417de2,_0x2a1350,_0x10c3ca)=>{if(_0x10c3ca){const _0x42c3e8=_0x39f8d7['model'][_0x47a7('0x2c')][_0x47a7('0x3d')][_0x47a7('0x12')]()[_0x47a7('0xb')]()['find'](_0x2edf13=>_0x2edf13['is'](_0x47a7('0x30'),_0x47a7('0x9')));this[_0x47a7('0x4c')](_0x5d0758['value'],_0x42c3e8)||(_0x417de2[_0x47a7('0x43')]=!0x1,_0x417de2['stop']());}},{'priority':_0x47a7('0x33')});}}['_areSelectedCellsMergable'](){const _0x435396=this[_0x47a7('0x4d')][_0x47a7('0x1f')][_0x47a7('0x4f')](_0x47a7('0x26')),_0x21021d=this['editor'][_0x47a7('0x49')][_0x47a7('0x4f')]('TableUtils');if(!_0x435396[_0x47a7('0x19')])return!0x1;const _0x481c13=_0x21021d[_0x47a7('0x39')](this[_0x47a7('0x4d')][_0x47a7('0x28')][_0x47a7('0x2c')]['selection']);for(const _0x4cde55 of _0x481c13)for(const _0x3cd196 of _0x481c13)if(_0x4cde55!=_0x3cd196&&!this[_0x47a7('0x4c')](_0x4cde55,_0x3cd196))return!0x1;return!0x0;}[_0x47a7('0x4c')](_0x24f242,_0x4d029c){const _0x2acd7e=this[_0x47a7('0x4d')][_0x47a7('0x49')][_0x47a7('0x4f')](_0x47a7('0x4b')),_0x186d96=this[_0x47a7('0x4d')][_0x47a7('0x28')][_0x47a7('0x24')](_0x24f242),_0x9db080=this['editor'][_0x47a7('0x28')][_0x47a7('0x24')](_0x4d029c),_0x40f3b1=new Set(),_0x4879be=new Set();for(const _0x46488 of _0x2acd7e[_0x47a7('0x36')]())if((_0x47a7('0x22')==_0x46488[_0x47a7('0x1')]||_0x47a7('0x4a')==_0x46488['type']||_0x47a7('0x26')==_0x46488[_0x47a7('0x37')])&&_0x46488[_0x47a7('0x44')])for(const _0x2d79a8 of _0x46488['getRanges']())_0x2d79a8[_0x47a7('0x2f')](_0x186d96,!0x0)&&_0x40f3b1[_0x47a7('0x40')](_0x46488[_0x47a7('0x1')]+':'+_0x46488['author']['id']),_0x2d79a8[_0x47a7('0x2f')](_0x9db080,!0x0)&&_0x4879be[_0x47a7('0x40')](_0x46488['type']+':'+_0x46488[_0x47a7('0x3a')]['id']);if(_0x40f3b1[_0x47a7('0x21')]!=_0x4879be['size'])return!0x1;for(const _0x25fbdd of _0x40f3b1)if(!_0x4879be[_0x47a7('0x13')](_0x25fbdd))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x136f=['tableOfContents','enableCommand','locale','registerElementLabel','afterInit','commands','TrackChangesEditing','get','insertTableOfContents'];(function(_0x42409d,_0x136f68){const _0x35b097=function(_0x224775){while(--_0x224775){_0x42409d['push'](_0x42409d['shift']());}};_0x35b097(++_0x136f68);}(_0x136f,0x17a));const _0x35b0=function(_0x42409d,_0x136f68){_0x42409d=_0x42409d-0x0;let _0x35b097=_0x136f[_0x42409d];return _0x35b097;};import{Plugin as _0x222497}from'ckeditor5/src/core';import{getTranslation as _0xf5c81a}from'../utils/common-translations';export default class _t extends _0x222497{[_0x35b0('0x4')](){const _0x384981=this['editor'];if(!_0x384981[_0x35b0('0x5')][_0x35b0('0x7')](_0x35b0('0x8')))return;_0x384981['plugins'][_0x35b0('0x7')]('TrackChangesEditing')[_0x35b0('0x1')](_0x35b0('0x8'));const _0x13cbaf=_0x384981['plugins']['get'](_0x35b0('0x6')),_0x32ee5=_0x384981[_0x35b0('0x2')];_0x13cbaf['_descriptionFactory'][_0x35b0('0x3')](_0x35b0('0x0'),_0x126597=>_0xf5c81a(_0x32ee5,'ELEMENT_TABLE_OF_CONTENTS',_0x126597));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a07=['has','TablePropertiesEditing','getContainedElement','TableCellPropertiesEditing','editor','setAttribute','selection','getSelectionAffectedTableCells','*Format:*\x20change\x20table\x20cell\x20properties','TrackChangesEditing','afterInit','registerDescriptionCallback','getSuggestionCallback','subType','tableHeight','join','registerCustomCallback','markBlockFormat','tableCellHorizontalAlignment','plugins','commandParams','nodeAfter','enableCommand','tableCellBorderWidth','format','model','handleSuggestionDescription','discard','tableBackgroundColor','tableCellHeight','formatBlock','batch','get','_getSuggestion','tableWidth','*Format:*\x20change\x20table\x20properties','tableProperties','tableBorderWidth','table','_suggestionFactory','tableBorderColor','tableCellBorderColor','handleDiscardAction','TrackChangesTableProperties','_handlePropertyChange','data','TableUtils','enqueueChange','locale','accept','tableCellWidth','findAncestor','tableAlignment','tableBorderStyle','tableCellBackgroundColor','tableCellPadding','tableCellProperties'];(function(_0x1f7400,_0x1a0785){const _0x2589dd=function(_0x1e2cf1){while(--_0x1e2cf1){_0x1f7400['push'](_0x1f7400['shift']());}};_0x2589dd(++_0x1a0785);}(_0x1a07,0x6c));const _0x2589=function(_0x1f7400,_0x1a0785){_0x1f7400=_0x1f7400-0x0;let _0x2589dd=_0x1a07[_0x1f7400];return _0x2589dd;};import{Plugin as _0x306e4e}from'ckeditor5/src/core';import{getTranslation as _0x55f999}from'../utils/common-translations';export default class Mt extends _0x306e4e{constructor(_0x154e4a){super(_0x154e4a),this[_0x2589('0x2a')]=[_0x2589('0x2e'),_0x2589('0x2'),_0x2589('0x2b'),_0x2589('0x1'),_0x2589('0x28'),_0x2589('0x14'),_0x2589('0x22')],this[_0x2589('0x5')]=[_0x2589('0x2f'),'tableCellBorderStyle',_0x2589('0x1d'),_0x2589('0x4'),_0x2589('0x38'),_0x2589('0x23'),_0x2589('0x3'),_0x2589('0x18'),'tableCellVerticalAlignment'];}static get['pluginName'](){return _0x2589('0x31');}[_0x2589('0x10')](){const _0x4ea752=this[_0x2589('0xa')][_0x2589('0x19')][_0x2589('0x26')](_0x2589('0xf'));if(this[_0x2589('0xa')]['plugins'][_0x2589('0x6')](_0x2589('0x7'))){for(const _0x12d04a of this[_0x2589('0x2a')])_0x4ea752[_0x2589('0x1c')](_0x12d04a,(_0x3ac7e0,_0x294f56)=>{const _0x324cdd=this[_0x2589('0xa')]['model']['document']['selection']['getFirstPosition']()[_0x2589('0x0')](_0x2589('0x2c'));this[_0x2589('0x32')](_0x12d04a,[_0x324cdd],this[_0x2589('0x2a')],_0x2589('0x2a'),_0x3ac7e0,_0x294f56);});_0x4ea752['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2589('0x2a'),_0x2589('0x37'),_0x4ea752['_suggestionFactory'][_0x2589('0x12')](_0x2589('0x24'),null,_0x2589('0x21'))),_0x4ea752['_suggestionFactory'][_0x2589('0x16')](_0x2589('0x24'),_0x2589('0x2a'),_0x2589('0x21'),(_0x4266e8,_0x484bc4)=>this[_0x2589('0x30')](this[_0x2589('0x2a')],_0x4266e8,_0x484bc4)),_0x4ea752[_0x2589('0x2d')]['registerCustomCallback'](_0x2589('0x24'),_0x2589('0x2a'),_0x2589('0x15'),()=>!0x1);}if(this[_0x2589('0xa')]['plugins'][_0x2589('0x6')](_0x2589('0x9'))){for(const _0x6db1ba of this[_0x2589('0x5')])_0x4ea752[_0x2589('0x1c')](_0x6db1ba,(_0x1064de,_0x472ece)=>{const _0x459e71=this[_0x2589('0xa')][_0x2589('0x19')]['get'](_0x2589('0x34'))[_0x2589('0xd')](this[_0x2589('0xa')][_0x2589('0x1f')]['document'][_0x2589('0xc')]);this[_0x2589('0x32')](_0x6db1ba,_0x459e71,this[_0x2589('0x5')],_0x2589('0x5'),_0x1064de,_0x472ece);});_0x4ea752[_0x2589('0x2d')][_0x2589('0x16')](_0x2589('0x24'),_0x2589('0x5'),_0x2589('0x37'),_0x4ea752[_0x2589('0x2d')][_0x2589('0x12')](_0x2589('0x24'),null,'discard')),_0x4ea752[_0x2589('0x2d')][_0x2589('0x16')](_0x2589('0x24'),_0x2589('0x5'),_0x2589('0x21'),(_0x2bca32,_0x673062)=>this[_0x2589('0x30')](this[_0x2589('0x5')],_0x2bca32,_0x673062)),_0x4ea752[_0x2589('0x2d')][_0x2589('0x16')](_0x2589('0x24'),'tableCellProperties',_0x2589('0x15'),()=>!0x1);}_0x4ea752['_descriptionFactory'][_0x2589('0x11')](_0x4e7d2e=>this[_0x2589('0x20')](_0x4e7d2e));}['_handlePropertyChange'](_0xeb3b18,_0x49dc53,_0x5d82df,_0x3ccad4,_0x25482b,_0x5be816){const _0x2b1249=this[_0x2589('0xa')][_0x2589('0x19')][_0x2589('0x26')](_0x2589('0xf'));this[_0x2589('0xa')][_0x2589('0x1f')][_0x2589('0x35')](_0x5be816[_0x2589('0x25')],()=>{for(const _0x1fc9bf of _0x49dc53){if(this[_0x2589('0x27')](_0x1fc9bf,_0x3ccad4))_0x25482b(_0x5be816);else{const _0x234d6d={};for(const _0x10d566 of _0x5d82df){const _0x4b7851=_0x1fc9bf['getAttribute'](_0x10d566);void 0x0!==_0x4b7851&&(_0x234d6d[_0x10d566]=_0x4b7851);}_0x25482b(_0x5be816),_0x2b1249[_0x2589('0x17')](_0x1fc9bf,{'commandParams':[_0x234d6d]},[],_0x3ccad4);}}});}['handleDiscardAction'](_0x26e0cb,_0x1f5b7e,_0x309a82){const _0x3f1df3=_0x1f5b7e[0x0]['start'][_0x2589('0x1b')],_0xeba96f=_0x309a82[_0x2589('0x1a')][0x0];this[_0x2589('0xa')][_0x2589('0x1f')]['change'](_0x551e15=>{for(const _0x123fbe of _0x26e0cb)void 0x0!==_0xeba96f[_0x123fbe]?_0x551e15[_0x2589('0xb')](_0x123fbe,_0xeba96f[_0x123fbe],_0x3f1df3):_0x551e15['removeAttribute'](_0x123fbe,_0x3f1df3);});}['handleSuggestionDescription'](_0x173714){if(_0x173714[_0x2589('0x33')])switch(_0x173714[_0x2589('0x13')]){case _0x2589('0x2a'):return{'type':_0x2589('0x1e'),'content':_0x55f999(this[_0x2589('0xa')][_0x2589('0x36')],_0x2589('0x29'))};case _0x2589('0x5'):return{'type':'format','content':_0x55f999(this[_0x2589('0xa')]['locale'],_0x2589('0xe'))};}}[_0x2589('0x27')](_0x3518a5,_0x992870){const _0x6aeeec=this[_0x2589('0xa')][_0x2589('0x19')][_0x2589('0x26')](_0x2589('0xf'));for(const _0x4de28c of _0x6aeeec['getSuggestions']({'skipNotAttached':!0x0})){const _0x2af9b6=_0x4de28c[_0x2589('0x8')]();if(_0x4de28c[_0x2589('0x13')]===_0x992870&&_0x2af9b6===_0x3518a5)return _0x4de28c;}return null;}}
|