@ckeditor/ckeditor5-track-changes 35.3.0 → 35.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -2
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.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/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/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x292b=['style:','change','model','plugins','getRanges','getStyleDefinition','forceValue','getSelectedBlocks','createRangeOn','get','push','value','includes','*Remove\x20format:*\x20%0','TrackChangesEditing','markInlineFormat','commandName','styleName','registerDescriptionCallback','find','name','document','DataSchema','config','toLowerCase','from','editor','isBlock','format','element','getItems','getDefinitionsForView','classes','*Format:*\x20%0','selection','_descriptionFactory','add','commandParams','Style','inline','getAttribute','enableCommand','isCollapsed','style','block','commands','enabledStyles','markBlockFormat'];(function(_0x223f58,_0x292bab){const _0x2a9d60=function(_0x11f5ec){while(--_0x11f5ec){_0x223f58['push'](_0x223f58['shift']());}};_0x2a9d60(++_0x292bab);}(_0x292b,0xf3));const _0x2a9d=function(_0x223f58,_0x292bab){_0x223f58=_0x223f58-0x0;let _0x2a9d60=_0x292b[_0x223f58];return _0x2a9d60;};import{Plugin as _0xd214eb}from'ckeditor5/src/core';import{normalizeConfig as _0x301a63}from'@ckeditor/ckeditor5-style/src/utils';import{getTranslation as _0x11b322}from'../utils/common-translations';export default class ut extends _0xd214eb{['afterInit'](){const _0x358444=this[_0x2a9d('0x17')];if(!_0x358444[_0x2a9d('0x0')]['has'](_0x2a9d('0x23')))return;const _0x1e4ee1=_0x358444[_0x2a9d('0x2a')][_0x2a9d('0x6')](_0x2a9d('0x28')),_0x1e0d54=_0x358444[_0x2a9d('0x0')][_0x2a9d('0x6')](_0x2a9d('0xb')),_0x1cd76a=_0x358444['locale'],_0x2eb8cd=_0x358444[_0x2a9d('0x0')]['get'](_0x2a9d('0x13')),_0x3fddb5=_0x301a63(_0x2eb8cd,_0x358444[_0x2a9d('0x14')]['get']('style.definitions'));_0x1e0d54[_0x2a9d('0x26')](_0x2a9d('0x28'),(_0x113bcb,{styleName:_0x4baf94})=>{const _0x58be2f=_0x358444[_0x2a9d('0x2f')][_0x2a9d('0x12')][_0x2a9d('0x1f')],_0x20c55e=this[_0x2a9d('0x2')](_0x4baf94,_0x3fddb5);if(!_0x20c55e)return;if(!_0x1e4ee1[_0x2a9d('0x2b')][_0x2a9d('0x9')](_0x4baf94))return;if(_0x58be2f[_0x2a9d('0x27')]&&!_0x20c55e[_0x2a9d('0x18')])return void _0x113bcb({'styleName':_0x4baf94});const _0x506eb4=!_0x1e4ee1[_0x2a9d('0x8')][_0x2a9d('0x9')](_0x20c55e[_0x2a9d('0x11')]);if(_0x20c55e[_0x2a9d('0x18')]){const _0x5cca67=function(_0x2db124,_0x3f46d7){const _0x5cd1b4=new Set();for(const _0xb02ae7 of _0x2db124){const _0x4681d6=_0xb02ae7['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0xe407b3 of _0x4681d6)if(_0x3f46d7[_0x2a9d('0x9')](_0xe407b3[_0x2a9d('0x11')])){_0x5cd1b4[_0x2a9d('0x21')](_0xe407b3);break;}}return _0x5cd1b4;}(_0x58be2f[_0x2a9d('0x4')](),_0x20c55e['modelElements']);_0x358444[_0x2a9d('0x2f')][_0x2a9d('0x2e')](()=>{for(const _0x1ff5be of _0x5cca67)_0x1e0d54[_0x2a9d('0x2c')](_0x1ff5be,{'commandName':_0x2a9d('0x28'),'commandParams':[{'styleName':_0x4baf94,'forceValue':_0x506eb4}],'formatGroupId':_0x2a9d('0x2d')+_0x4baf94});});}else{let _0x435bd1=Array[_0x2a9d('0x16')](_0x58be2f[_0x2a9d('0x1')]());if(!_0x506eb4){const _0x160b56=Array[_0x2a9d('0x16')](_0x2eb8cd[_0x2a9d('0x1c')](_0x20c55e[_0x2a9d('0x1a')],!0x1))[0x0][_0x2a9d('0x2f')],_0xe915d0=[];for(const _0x5b7f4a of _0x435bd1){const _0x4a3b31=this['getRangesWithClasses'](_0x358444[_0x2a9d('0x2f')],_0x5b7f4a,_0x20c55e[_0x2a9d('0x1d')],_0x160b56);_0xe915d0['push'](..._0x4a3b31);}_0x435bd1=_0xe915d0;}_0x358444[_0x2a9d('0x2f')][_0x2a9d('0x2e')](()=>{for(const _0x3caf53 of _0x435bd1)_0x1e0d54[_0x2a9d('0xc')](_0x3caf53,{'commandName':_0x2a9d('0x28'),'commandParams':[{'styleName':_0x4baf94,'forceValue':_0x506eb4}]});});}}),_0x1e0d54[_0x2a9d('0x20')][_0x2a9d('0xf')](_0xefbc0a=>{const {data:_0x1608b7}=_0xefbc0a;if(_0x1608b7&&_0x2a9d('0x28')===_0x1608b7[_0x2a9d('0xd')])return _0x1608b7[_0x2a9d('0x22')][0x0][_0x2a9d('0x3')]?{'type':_0x2a9d('0x19'),'content':_0x11b322(_0x1cd76a,_0x2a9d('0x1e'),_0x1608b7['commandParams'][0x0][_0x2a9d('0xe')][_0x2a9d('0x15')]())}:{'type':_0x2a9d('0x19'),'content':_0x11b322(_0x1cd76a,_0x2a9d('0xa'),_0x1608b7[_0x2a9d('0x22')][0x0][_0x2a9d('0xe')]['toLowerCase']())};});}['getStyleDefinition'](_0x5ee351,_0x3975d2){let _0x192d10=_0x3975d2[_0x2a9d('0x29')][_0x2a9d('0x10')](_0x5175e9=>_0x5175e9[_0x2a9d('0x11')]===_0x5ee351);return _0x192d10||(_0x192d10=_0x3975d2[_0x2a9d('0x24')][_0x2a9d('0x10')](_0x1e8811=>_0x1e8811[_0x2a9d('0x11')]===_0x5ee351)),_0x192d10;}['getRangesWithClasses'](_0x47f46a,_0x273a8d,_0x1c42c0,_0x39dd16){const _0x4ef32a=[];for(const _0x2bf8f7 of _0x273a8d[_0x2a9d('0x1b')]()){const _0x309ea9=_0x2bf8f7[_0x2a9d('0x25')](_0x39dd16);_0x309ea9&&(_0x1c42c0['every'](_0x1a952d=>_0x309ea9[_0x2a9d('0x1d')]['includes'](_0x1a952d))&&_0x4ef32a[_0x2a9d('0x7')](_0x47f46a[_0x2a9d('0x5')](_0x2bf8f7)));}return _0x4ef32a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3cf7=['_tableSuggestions','MIN_SAFE_INTEGER','end','MAX_SAFE_INTEGER','startsWith','removeTableColumn','ELEMENT_TABLE_ROW_WITH_TEXT','ELEMENT_TABLE_ROW','ELEMENT_TABLE_COLUMN_WITH_TEXT','writer','registerPostFixer','refresh','fromRange','add','rowspan','subType','deletion','min','_acceptFormatSuggestionCallbackFactory','name','detach','textProxy','downcastDispatcher','$graveyard','ELEMENT_TABLE','*Remove:*\x20%0','maxRow','forceValue','every','_tablePostFixingSubtypes','hasAttribute','ELEMENT_TABLE_WITH_TEXT','type','highest','locale','commands','_getCoordsForCells','enqueueChange','getAttribute','enableCommand','low','execute','insertion','insertTable','getRowIndexes','createRangeOn','tablePaste','isEqual','change','table','max','join','*Insert:*\x20%0','left','oldRange','findAncestor','TrackChangesEditing','TableUtils','discard','accept','getRanges','model','addRange','afterInit','getCellLocation','editor','getContainedElement','tableCell','TableEditing','maxColumn','classes','removeTableRow','insertTableColumnRight','_getSuggestionCoords','map','colspan','getColumnIndexes','minRow','setSelection','some','insert','getChanges','length','selection','get','last','tableRow','start','getItems','push','registerElementLabel','_suggestionFactory','rootName','registerCustomCallback','position','ELEMENT_TABLE_COLUMN','getSelectionAffectedTableCells','first','registerDescriptionCallback','getSuggestion','insertTableRowBelow','document','_descriptionFactory','_setupColumnsRowsFixing','createTableWalker','differ','removeClass','values','filter','from','mapper','showSuggestionHighlights','order','has','batch','substr','tableColumn','plugins','item','data','toViewElement','isInContent','markMultiRangeDeletion','addMarker:suggestion','cell','toLowerCase','root','nodeAfter','selectTableColumn'];(function(_0x3598cb,_0x3cf718){const _0xbc8156=function(_0x424a9c){while(--_0x424a9c){_0x3598cb['push'](_0x3598cb['shift']());}};_0xbc8156(++_0x3cf718);}(_0x3cf7,0x145));const _0xbc81=function(_0x3598cb,_0x3cf718){_0x3598cb=_0x3598cb-0x0;let _0xbc8156=_0x3cf7[_0x3598cb];return _0xbc8156;};import{Plugin as _0x171cd7}from'ckeditor5/src/core';import{LiveRange as _0x4101ba}from'ckeditor5/src/engine';import{setHighlightHandling as _0xc491b6}from'ckeditor5/src/widget';import{getTranslation as _0x38c0d5}from'../utils/common-translations';export default class ft extends _0x171cd7{constructor(_0x1a2bac){super(_0x1a2bac),this[_0xbc81('0x5b')]=['tableRow',_0xbc81('0x31')];}[_0xbc81('0x7d')](){const _0x309e5b=this[_0xbc81('0x7f')],_0x43508e=_0x309e5b[_0xbc81('0x7b')][_0xbc81('0x22')][_0xbc81('0x10')];if(!_0x309e5b[_0xbc81('0x32')][_0xbc81('0x2e')](_0xbc81('0x1')))return;const _0x415168=_0x309e5b[_0xbc81('0x60')],_0x190462=_0x309e5b[_0xbc81('0x32')][_0xbc81('0x11')]('TrackChangesEditing'),_0x501efd=_0x309e5b[_0xbc81('0x32')][_0xbc81('0x11')](_0xbc81('0x77'));_0x190462[_0xbc81('0x23')][_0xbc81('0x17')](_0xbc81('0x6f'),_0x2f322=>_0x38c0d5(_0x415168,_0xbc81('0x56'),_0x2f322)),this[_0xbc81('0x24')](),_0x190462[_0xbc81('0x65')](_0xbc81('0x69')),_0x190462[_0xbc81('0x65')]('selectTableRow'),_0x190462[_0xbc81('0x65')](_0xbc81('0x3d'));for(const _0x4862b4 of['insertTableRowAbove',_0xbc81('0x21')]){const _0x27de73=_0x309e5b['commands'][_0xbc81('0x11')](_0x4862b4);_0x190462[_0xbc81('0x65')](_0x4862b4,_0x2180b7=>{_0x309e5b[_0xbc81('0x7b')][_0xbc81('0x6e')](_0x48c1cd=>{_0x2180b7();const _0x3eba05='above'===_0x27de73[_0xbc81('0x2d')],_0x25f421=_0x501efd[_0xbc81('0x1d')](_0x43508e),_0x2895a4=_0x501efd[_0xbc81('0x6a')](_0x25f421),_0x200a45=_0x3eba05?_0x2895a4[_0xbc81('0x1e')]-0x1:_0x2895a4[_0xbc81('0x12')]+0x1,_0x2e6688=_0x25f421[0x0][_0xbc81('0x75')]('table'),_0xbc764d=_0x501efd[_0xbc81('0x25')](_0x2e6688,{'startRow':_0x200a45,'endRow':_0x200a45}),_0x2fbc69=Array[_0xbc81('0x2a')](_0xbc764d)[_0xbc81('0x7')](_0x182566=>_0x48c1cd[_0xbc81('0x6b')](_0x182566[_0xbc81('0x39')]));_0x190462['markMultiRangeInsertion'](_0x2fbc69,_0xbc81('0x13'));});});}for(const _0x1901d4 of['insertTableColumnLeft',_0xbc81('0x5')]){const _0x4b7fb1=_0x309e5b[_0xbc81('0x61')][_0xbc81('0x11')](_0x1901d4);_0x190462['enableCommand'](_0x1901d4,_0x21252b=>{_0x309e5b['model'][_0xbc81('0x6e')](_0x50b81a=>{_0x21252b();const _0x4b4877=_0xbc81('0x73')===_0x4b7fb1[_0xbc81('0x2d')],_0x3c20b3=_0x501efd[_0xbc81('0x1d')](_0x43508e),_0x1b6f33=_0x501efd[_0xbc81('0x9')](_0x3c20b3),_0xc640fe=_0x4b4877?_0x1b6f33[_0xbc81('0x1e')]-0x1:_0x1b6f33['last']+0x1,_0x4f9fe0=_0x3c20b3[0x0]['findAncestor'](_0xbc81('0x6f')),_0x222e39=_0x501efd[_0xbc81('0x25')](_0x4f9fe0,{'startRow':0x0,'column':_0xc640fe,'includeAllSlots':!0x1}),_0x1e509b=Array['from'](_0x222e39)[_0xbc81('0x7')](_0x177f53=>_0x50b81a[_0xbc81('0x6b')](_0x177f53[_0xbc81('0x39')]));_0x190462['markMultiRangeInsertion'](_0x1e509b,_0xbc81('0x31'));});});}for(const _0xa69c0e of['removeTableRow','removeTableColumn']){const _0x4194c6=_0xa69c0e[_0xbc81('0x30')](0xb),_0x4446a1=_0x4194c6[_0xbc81('0x3a')](),_0x439e2a=_0x4446a1[_0xbc81('0x30')](0x0,0x3)+'span',_0x34dbf3=_0xbc81('0x6f')+_0x4194c6,_0x1ec536=_0xbc81('0x4f')+_0x4194c6,_0x59b13e=_0xbc81('0x70')+_0x4194c6;_0x190462[_0xbc81('0x65')](_0xa69c0e,()=>{_0x309e5b[_0xbc81('0x7b')][_0xbc81('0x6e')](_0x294390=>{const _0x441574=_0x501efd[_0xbc81('0x1d')](_0x43508e),_0x469ae6=_0x441574[0x0]['findAncestor'](_0xbc81('0x6f'));let _0x12d578;if(_0xbc81('0x4')==_0xa69c0e){const _0x42134d=_0x501efd[_0xbc81('0x6a')](_0x441574);_0x12d578={'startRow':_0x42134d['first'],'endRow':_0x42134d[_0xbc81('0x12')],'includeAllSlots':!0x0};}else{const _0x1fd9f8=_0x501efd['getColumnIndexes'](_0x441574);_0x12d578={'startColumn':_0x1fd9f8[_0xbc81('0x1e')],'endColumn':_0x1fd9f8[_0xbc81('0x12')],'includeAllSlots':!0x0};}const _0x19bd2b=_0x501efd[_0xbc81('0x25')](_0x469ae6,_0x12d578),_0x5d32cd=Array[_0xbc81('0x2a')](_0x19bd2b)[_0xbc81('0x7')](({cell:_0x1bfb4d})=>_0x1bfb4d),_0x52c0f6=oe(_0x5d32cd['filter'](_0x23ae0f=>_0x23ae0f[_0xbc81('0x5c')](_0x439e2a))),_0x11247e=oe(_0x5d32cd[_0xbc81('0x29')](_0x421eeb=>!_0x421eeb[_0xbc81('0x5c')](_0x439e2a)))['map'](_0x16bb92=>_0x294390[_0xbc81('0x6b')](_0x16bb92)),_0x380f06=_0x190462[_0xbc81('0x37')](_0x11247e,_0x34dbf3);if(_0x380f06&&(_0xbc81('0x13')==_0x380f06[_0xbc81('0x4d')]||_0xbc81('0x31')==_0x380f06[_0xbc81('0x4d')])){const _0x63fb27=this[_0xbc81('0x6')](_0x380f06);for(const _0x3de018 of _0x52c0f6){const _0x9724f1=_0x294390[_0xbc81('0x6b')](_0x3de018),_0x420ddf=_0x501efd[_0xbc81('0x7e')](_0x3de018),_0x539e7d=_0x3de018['getAttribute'](_0x439e2a)-0x1,_0x448954=_0x63fb27[_0x1ec536],_0x152c43=_0x63fb27[_0x59b13e];_0x448954<=_0x420ddf[_0x4446a1]&&_0x420ddf[_0x4446a1]+_0x539e7d<=_0x152c43&&_0x380f06[_0xbc81('0x7c')](_0x9724f1);}}});});}function _0x421270(_0x12e48d){const _0x5af9ef=Array[_0xbc81('0x2a')](_0x43508e[_0xbc81('0x7a')]())[_0xbc81('0x7')](_0x33c736=>_0x4101ba['fromRange'](_0x33c736));_0x309e5b[_0xbc81('0x7b')][_0xbc81('0x6e')](_0x12b9e7=>{const _0xbfb30c=_0x12b9e7[_0xbc81('0x2f')];_0x12e48d=_0x12e48d['filter'](_0x423e73=>_0xbc81('0x55')!=_0x423e73[_0xbc81('0x3b')][_0xbc81('0x19')]),_0x12b9e7[_0xbc81('0xb')](_0x12e48d),_0x309e5b['commands'][_0xbc81('0x11')](_0xbc81('0x4'))[_0xbc81('0x49')](),_0x309e5b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x309e5b[_0xbc81('0x7b')]['enqueueChange'](()=>{_0x309e5b['model'][_0xbc81('0x63')](_0xbfb30c,_0x12ce3c=>{const _0x5458a2=_0x5af9ef[_0xbc81('0x29')](_0x52ce54=>'$graveyard'!=_0x52ce54[_0xbc81('0x3b')][_0xbc81('0x19')]);_0x5458a2['length']>0x0&&_0x12ce3c['setSelection'](_0x5458a2);for(const _0x5863f8 of _0x5af9ef)_0x5863f8[_0xbc81('0x52')]();});});});}function _0x1b8c88(_0x3c00f1){_0x309e5b[_0xbc81('0x7b')][_0xbc81('0x6e')](_0x5a9fd4=>{const _0x429a6f=Array[_0xbc81('0x2a')](_0x43508e[_0xbc81('0x7a')]())[_0xbc81('0x7')](_0x27480b=>_0x4101ba[_0xbc81('0x4a')](_0x27480b)),_0x5065eb=[];for(const _0x4b5686 of _0x3c00f1)for(const _0x47efba of _0x4b5686['getItems']({'shallow':!0x0}))_0x5065eb['push'](_0x47efba);for(const _0x4b97c5 of _0x5065eb)_0xbc81('0x55')!=_0x4b97c5[_0xbc81('0x3b')]['rootName']&&(_0x5a9fd4[_0xbc81('0xb')](_0x5a9fd4['createPositionAt'](_0x4b97c5,0x0)),_0x309e5b[_0xbc81('0x61')][_0xbc81('0x11')]('removeTableColumn')['refresh'](),_0x309e5b[_0xbc81('0x67')](_0xbc81('0x43'),{'forceDefaultExecution':!0x0}));const _0x33dcd8=_0x429a6f[_0xbc81('0x29')](_0x23367c=>_0xbc81('0x55')!=_0x23367c[_0xbc81('0x3b')][_0xbc81('0x19')]);_0x33dcd8['length']>0x0&&_0x5a9fd4[_0xbc81('0xb')](_0x33dcd8);for(const _0x311b9a of _0x429a6f)_0x311b9a[_0xbc81('0x52')]();});}function _0x1b4c65(_0x4cc41e,_0x33ce21){return _0x33ce21[_0xbc81('0x5a')](_0x1aeec3=>_0x4cc41e[_0xbc81('0xc')](_0x5b1307=>_0x5b1307['end'][_0xbc81('0x6d')](_0x1aeec3[_0xbc81('0x14')])||_0x1aeec3['end']['isEqual'](_0x5b1307[_0xbc81('0x14')])));}function _0x48c446(_0x5a1329,_0x50bca3){return _0x5a1329[_0xbc81('0xc')](_0x539d1f=>_0x50bca3['some'](_0x4c833e=>_0x539d1f[_0xbc81('0x40')]['isTouching'](_0x4c833e[_0xbc81('0x14')])));}_0x309e5b[_0xbc81('0x34')][_0xbc81('0x54')]['on'](_0xbc81('0x38'),(_0x7a39e4,_0x44f597,_0xff8b6b)=>{if(!_0xff8b6b['options'][_0xbc81('0x2c')])return;const _0x13f428=_0x44f597[_0xbc81('0x33')];if(!_0x13f428)return;const _0x3dcf53=_0xff8b6b[_0xbc81('0x2b')][_0xbc81('0x35')](_0x13f428);function _0x39c697(_0x43ee3a){return Array['isArray'](_0x43ee3a)?_0x43ee3a:[_0x43ee3a];}_0x3dcf53&&_0xbc81('0x0')===_0x13f428['name']&&_0xc491b6(_0x3dcf53,_0xff8b6b[_0xbc81('0x47')],(_0x27bc62,_0x4d61f9,_0x180d5e)=>_0x180d5e['addClass'](_0x39c697(_0x4d61f9[_0xbc81('0x3')]),_0x27bc62),(_0x566c0a,_0x40bf21,_0x5d79c6)=>_0x5d79c6[_0xbc81('0x27')](_0x39c697(_0x40bf21[_0xbc81('0x3')]),_0x566c0a));},{'priority':_0xbc81('0x5f')}),_0x190462[_0xbc81('0x23')][_0xbc81('0x1f')](_0x1d34bd=>{if(_0xbc81('0x68')!=_0x1d34bd[_0xbc81('0x5e')]&&_0xbc81('0x4e')!=_0x1d34bd['type'])return;const _0x4ce240=_0x1d34bd[_0xbc81('0x80')]();if(null!=_0x4ce240&&_0x4ce240['is']('element',_0xbc81('0x6f'))){if('insertion'==_0x1d34bd[_0xbc81('0x5e')]){const _0x595456=_0x1d34bd[_0xbc81('0x15')]()[_0xbc81('0x29')](_0x3a1474=>_0x3a1474['is'](_0xbc81('0x53')))[_0xbc81('0x7')](_0x225cfa=>_0x225cfa['data']);if(_0x595456['length'])return{'type':_0xbc81('0x68'),'content':_0x38c0d5(_0x415168,_0xbc81('0x72'),_0x38c0d5(_0x415168,_0xbc81('0x5d'),'\x22'+_0x595456[_0xbc81('0x71')]('\x20')+'\x22'))};}if('deletion'==_0x1d34bd[_0xbc81('0x5e')]){const _0x283a7d=_0x1d34bd[_0xbc81('0x15')]()[_0xbc81('0x29')](_0xf65b69=>_0xf65b69['is'](_0xbc81('0x53')))[_0xbc81('0x7')](_0x4d5278=>_0x4d5278['data']);if(_0x283a7d[_0xbc81('0xf')])return{'type':'deletion','content':_0x38c0d5(_0x415168,'*Remove:*\x20%0',_0x38c0d5(_0x415168,_0xbc81('0x5d'),'\x22'+_0x283a7d['join']('\x20')+'\x22'))};}}}),_0x190462[_0xbc81('0x23')][_0xbc81('0x1f')](_0x234fac=>{if(_0xbc81('0x13')==_0x234fac['subType']){const _0x5ec7e5=_0x234fac[_0xbc81('0x15')]()[_0xbc81('0x29')](_0x43545e=>_0x43545e['is'](_0xbc81('0x53')))[_0xbc81('0x7')](_0x3ff325=>_0x3ff325['data']),_0xd945f3=this[_0xbc81('0x6')](_0x234fac),_0x4de3b4=_0xd945f3[_0xbc81('0x58')]-_0xd945f3[_0xbc81('0xa')]+0x1;if(_0xbc81('0x68')==_0x234fac[_0xbc81('0x5e')])return _0x5ec7e5['length']?{'type':_0xbc81('0x68'),'content':_0x38c0d5(_0x415168,_0xbc81('0x72'),_0x38c0d5(_0x415168,_0xbc81('0x44'),[_0x4de3b4,'\x22'+_0x5ec7e5[_0xbc81('0x71')]('\x20')+'\x22']))}:{'type':_0xbc81('0x68'),'content':_0x38c0d5(_0x415168,_0xbc81('0x72'),_0x38c0d5(_0x415168,_0xbc81('0x45'),_0x4de3b4))};if(_0xbc81('0x4e')==_0x234fac[_0xbc81('0x5e')])return _0x5ec7e5[_0xbc81('0xf')]?{'type':'deletion','content':_0x38c0d5(_0x415168,_0xbc81('0x57'),_0x38c0d5(_0x415168,_0xbc81('0x44'),[_0x4de3b4,'\x22'+_0x5ec7e5['join']('\x20')+'\x22']))}:{'type':_0xbc81('0x4e'),'content':_0x38c0d5(_0x415168,_0xbc81('0x57'),_0x38c0d5(_0x415168,'ELEMENT_TABLE_ROW',_0x4de3b4))};}if('tableColumn'==_0x234fac[_0xbc81('0x4d')]){const _0x1e2c0e=_0x234fac[_0xbc81('0x15')]()[_0xbc81('0x29')](_0x3d9fc8=>_0x3d9fc8['is']('textProxy'))[_0xbc81('0x7')](_0x58a35c=>_0x58a35c[_0xbc81('0x34')]),_0x4809e6=this[_0xbc81('0x6')](_0x234fac),_0x1b66c6=_0x4809e6[_0xbc81('0x2')]-_0x4809e6['minColumn']+0x1;if(_0xbc81('0x68')==_0x234fac[_0xbc81('0x5e')])return _0x1e2c0e['length']?{'type':_0xbc81('0x68'),'content':_0x38c0d5(_0x415168,_0xbc81('0x72'),_0x38c0d5(_0x415168,_0xbc81('0x46'),[_0x1b66c6,'\x22'+_0x1e2c0e['join']('\x20')+'\x22']))}:{'type':_0xbc81('0x68'),'content':_0x38c0d5(_0x415168,_0xbc81('0x72'),_0x38c0d5(_0x415168,_0xbc81('0x1c'),_0x1b66c6))};if('deletion'==_0x234fac['type'])return _0x1e2c0e[_0xbc81('0xf')]?{'type':'deletion','content':_0x38c0d5(_0x415168,_0xbc81('0x57'),_0x38c0d5(_0x415168,_0xbc81('0x46'),[_0x1b66c6,'\x22'+_0x1e2c0e[_0xbc81('0x71')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x38c0d5(_0x415168,_0xbc81('0x57'),_0x38c0d5(_0x415168,_0xbc81('0x1c'),_0x1b66c6))};}}),_0x190462[_0xbc81('0x18')][_0xbc81('0x1a')](_0xbc81('0x68'),'tableRow',_0xbc81('0x78'),_0x421270),_0x190462[_0xbc81('0x18')]['registerCustomCallback']('deletion',_0xbc81('0x13'),'accept',_0x421270),_0x190462[_0xbc81('0x18')]['registerCustomCallback'](_0xbc81('0x68'),_0xbc81('0x31'),_0xbc81('0x78'),_0x1b8c88),_0x190462['_suggestionFactory'][_0xbc81('0x1a')](_0xbc81('0x4e'),'tableColumn',_0xbc81('0x79'),_0x1b8c88),_0x190462['_suggestionFactory'][_0xbc81('0x1a')](_0xbc81('0x68'),_0xbc81('0x31'),_0xbc81('0x71'),_0x1b4c65),_0x190462['_suggestionFactory'][_0xbc81('0x1a')](_0xbc81('0x4e'),_0xbc81('0x31'),_0xbc81('0x71'),_0x1b4c65),_0x190462[_0xbc81('0x18')][_0xbc81('0x1a')](_0xbc81('0x68'),_0xbc81('0x13'),'join',_0x48c446),_0x190462[_0xbc81('0x18')][_0xbc81('0x1a')](_0xbc81('0x4e'),_0xbc81('0x13'),_0xbc81('0x71'),_0x48c446);}[_0xbc81('0x50')](){const _0x3092d8=this[_0xbc81('0x7f')],_0x592943=_0x3092d8[_0xbc81('0x7b')][_0xbc81('0x22')][_0xbc81('0x10')];return(_0x32f821,_0x1595b7)=>{_0x3092d8[_0xbc81('0x7b')][_0xbc81('0x6e')](_0x5e372e=>{const {commandName:_0x153ae5,commandParams:_0x47a1b5}=_0x1595b7;let _0x126505=_0x32f821[0x0][_0xbc81('0x40')]['nodeBefore'];_0x47a1b5&&_0x47a1b5[0x0]&&!0x1===_0x47a1b5[0x0][_0xbc81('0x59')]&&(_0x126505=_0x32f821[0x0][_0xbc81('0x14')][_0xbc81('0x3c')]);const _0x55684b=_0x5e372e['createRangeIn'](_0x126505);if('$graveyard'==_0x55684b['root']['rootName'])return;const _0x222b18=Array[_0xbc81('0x2a')](_0x592943[_0xbc81('0x7a')]())[_0xbc81('0x7')](_0xc4f73f=>_0x4101ba['fromRange'](_0xc4f73f));_0x5e372e[_0xbc81('0xb')](_0x55684b),_0x3092d8[_0xbc81('0x61')][_0xbc81('0x11')](_0x153ae5)['refresh'](),_0x47a1b5[_0xbc81('0x16')]({'forceDefaultExecution':!0x0}),_0x3092d8[_0xbc81('0x67')](_0x153ae5,..._0x47a1b5);const _0x27c4ec=_0x222b18['filter'](_0x1caa05=>_0xbc81('0x55')!=_0x1caa05[_0xbc81('0x3b')]['rootName']);_0x27c4ec[_0xbc81('0xf')]>0x0&&_0x5e372e[_0xbc81('0xb')](_0x27c4ec);for(const _0x3e4bc7 of _0x222b18)_0x3e4bc7[_0xbc81('0x52')]();});};}[_0xbc81('0x62')](_0x1c2055){const _0x20a317=this[_0xbc81('0x7f')][_0xbc81('0x32')][_0xbc81('0x11')](_0xbc81('0x77'));let _0x2534b4=Number[_0xbc81('0x41')],_0x5b2237=Number[_0xbc81('0x3f')],_0x19c935=Number['MAX_SAFE_INTEGER'],_0x2750a1=Number[_0xbc81('0x3f')];for(const _0x185ed9 of _0x1c2055){if('$graveyard'==_0x185ed9[_0xbc81('0x3b')]['rootName'])continue;const {row:_0xa0df7f,column:_0x29b201}=_0x20a317[_0xbc81('0x7e')](_0x185ed9),_0x5b96e1=_0x185ed9[_0xbc81('0x5c')](_0xbc81('0x4c'))?_0x185ed9[_0xbc81('0x64')]('rowspan')-0x1:0x0,_0x7af4f0=_0x185ed9[_0xbc81('0x5c')](_0xbc81('0x8'))?_0x185ed9[_0xbc81('0x64')](_0xbc81('0x8'))-0x1:0x0;_0x2534b4=_0xa0df7f<_0x2534b4?_0xa0df7f:_0x2534b4,_0x5b2237=_0xa0df7f+_0x5b96e1>_0x5b2237?_0xa0df7f+_0x5b96e1:_0x5b2237,_0x19c935=_0x29b201<_0x19c935?_0x29b201:_0x19c935,_0x2750a1=_0x29b201+_0x7af4f0>_0x2750a1?_0x29b201+_0x7af4f0:_0x2750a1;}return{'minRow':_0x2534b4,'maxRow':_0x5b2237,'minColumn':_0x19c935,'maxColumn':_0x2750a1};}[_0xbc81('0x24')](){const _0x39bf67=this[_0xbc81('0x7f')],_0x55295a=_0x39bf67['plugins'][_0xbc81('0x11')](_0xbc81('0x76')),_0x399983=_0x39bf67[_0xbc81('0x32')]['get']('TableUtils');this[_0xbc81('0x3e')]=new Set(),_0x39bf67[_0xbc81('0x7b')]['document']['on']('change:data',()=>{const _0x59b569=Array[_0xbc81('0x2a')](_0x39bf67[_0xbc81('0x7b')][_0xbc81('0x22')][_0xbc81('0x26')]['getChangedMarkers']());for(const {name:_0x3e7ff2,data:_0x59f51e}of _0x59b569){const {group:_0x1a8bad,id:_0x2138ab,subType:_0x183272}=_0x55295a['_splitMarkerName'](_0x3e7ff2);if('suggestion'!=_0x1a8bad)continue;if(null!=_0x59f51e[_0xbc81('0x74')])continue;const _0x5e941b=_0x55295a[_0xbc81('0x20')](_0x2138ab);this[_0xbc81('0x5b')]['includes'](_0x183272)&&this[_0xbc81('0x3e')][_0xbc81('0x4b')](_0x5e941b);}},{'priority':_0xbc81('0x66')});const _0x1da3ee=(_0x439884,_0x5c0f0f)=>{let _0x2cee63=!0x1;const _0x43a508=_0x5c0f0f['createRangeOn'](_0x439884),_0x11c8fe=_0x439884['findAncestor']('table'),_0x2b38a2=_0x399983[_0xbc81('0x7e')](_0x439884);for(const _0x5c09b9 of this[_0xbc81('0x3e')]){const _0x3aec21=_0x5c09b9['subType'],_0xa8c8d=_0x3aec21[_0xbc81('0x42')](_0xbc81('0x6c')),_0xe34a3f=_0x3aec21['substr'](_0xa8c8d?0xa:0x5),_0x59500e=_0xe34a3f['toLowerCase'](),_0x592571=_0x59500e['substr'](0x0,0x3)+'span',_0x5ad6b1=_0xbc81('0x4f')+_0xe34a3f,_0x549b47=_0xbc81('0x70')+_0xe34a3f;if(!_0x5c09b9[_0xbc81('0x36')])continue;if(_0x11c8fe!=_0x5c09b9['getFirstRange']()[_0xbc81('0x14')][_0xbc81('0x75')]('table'))continue;if(_0x5c09b9['isIntersectingWithRange'](_0x43a508))continue;const _0x3954c3=_0x439884[_0xbc81('0x5c')](_0x592571)?_0x439884[_0xbc81('0x64')](_0x592571)-0x1:0x0,_0x464160=this[_0xbc81('0x6')](_0x5c09b9),_0x1fac0e=_0x464160[_0x5ad6b1],_0x1a7f82=_0x464160[_0x549b47];_0x1fac0e<=_0x2b38a2[_0x59500e]&&_0x2b38a2[_0x59500e]+_0x3954c3<=_0x1a7f82&&(_0x5c09b9[_0xbc81('0x7c')](_0x43a508),_0x2cee63=!0x0);}return _0x2cee63;};_0x39bf67[_0xbc81('0x7b')]['document'][_0xbc81('0x48')](_0x3f88f2=>{let _0x5c5b56=!0x1;for(const _0x43982f of _0x39bf67[_0xbc81('0x7b')]['document'][_0xbc81('0x26')][_0xbc81('0xe')]())if(_0xbc81('0xd')==_0x43982f[_0xbc81('0x5e')]){if('tableRow'==_0x43982f[_0xbc81('0x51')])for(const _0xf9362f of _0x43982f[_0xbc81('0x1b')]['nodeAfter']['getChildren']())_0x5c5b56=_0x5c5b56||_0x1da3ee(_0xf9362f,_0x3f88f2);else _0xbc81('0x0')==_0x43982f['name']&&(_0x5c5b56=_0x5c5b56||_0x1da3ee(_0x43982f[_0xbc81('0x1b')]['nodeAfter'],_0x3f88f2));}return _0x5c5b56;});}['_getSuggestionCoords'](_0x526bcd){return this[_0xbc81('0x62')](_0x526bcd[_0xbc81('0x7a')]()[_0xbc81('0x7')](_0x19ee4d=>_0x19ee4d[_0xbc81('0x14')][_0xbc81('0x3c')]));}}function oe(_0x59f8e0){return Array[_0xbc81('0x2a')](new Set(_0x59f8e0)[_0xbc81('0x28')]());}
|
|
23
|
+
const _0x5864=['showSuggestionHighlights','getRanges','_acceptFormatSuggestionCallbackFactory','min','selectTableColumn','insertion','afterInit','insertTableRowBelow','registerCustomCallback','getItems','getColumnIndexes','commands','root','end','join','createRangeOn','data','tableCell','rowspan','$graveyard','element','MIN_SAFE_INTEGER','enableCommand','selection','insertTableColumnRight','*Remove:*\x20%0','nodeBefore','name','batch','ELEMENT_TABLE_WITH_TEXT','createTableWalker','execute','createPositionAt','addMarker:suggestion','maxRow','length','cell','ELEMENT_TABLE_ROW_WITH_TEXT','getContainedElement','deletion','getAttribute','change:data','ELEMENT_TABLE_COLUMN_WITH_TEXT','first','markMultiRangeInsertion','classes','getRowIndexes','getChangedMarkers','tableRow','accept','plugins','type','selectTableRow','get','registerPostFixer','values','_splitMarkerName','toLowerCase','removeTableColumn','start','insertTableRowAbove','options','getChanges','addRange','position','textProxy','discard','isIntersectingWithRange','TableEditing','insertTableColumnLeft','isArray','_getSuggestionCoords','ELEMENT_TABLE_ROW','_suggestionFactory','createRangeIn','above','model','colspan','fromRange','max','_setupColumnsRowsFixing','insert','findAncestor','oldRange','from','getSelectionAffectedTableCells','substr','markMultiRangeDeletion','differ','has','rootName','maxColumn','nodeAfter','ELEMENT_TABLE_COLUMN','some','change','locale','table','forceValue','addClass','getCellLocation','isInContent','_tableSuggestions','suggestion','MAX_SAFE_INTEGER','setSelection','add','_descriptionFactory','filter','writer','subType','order','detach','includes','refresh','toViewElement','removeTableRow','isEqual','enqueueChange','getChildren','_getCoordsForCells','last','map','TrackChangesEditing','_tablePostFixingSubtypes','*Insert:*\x20%0','editor','highest','span','minColumn','hasAttribute','minRow','getSuggestion','document','tableColumn','left','removeClass'];(function(_0x20a10e,_0x5864d7){const _0x51223a=function(_0xa908d8){while(--_0xa908d8){_0x20a10e['push'](_0x20a10e['shift']());}};_0x51223a(++_0x5864d7);}(_0x5864,0xed));const _0x5122=function(_0x20a10e,_0x5864d7){_0x20a10e=_0x20a10e-0x0;let _0x51223a=_0x5864[_0x20a10e];return _0x51223a;};import{Plugin as _0x208c04}from'ckeditor5/src/core';import{LiveRange as _0x2f294c}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3ca9e5}from'ckeditor5/src/widget';import{getTranslation as _0x5a6c0f}from'../utils/common-translations';export default class ft extends _0x208c04{constructor(_0xa5de45){super(_0xa5de45),this[_0x5122('0x18')]=[_0x5122('0x55'),_0x5122('0x22')];}[_0x5122('0x2b')](){const _0x505e0b=this[_0x5122('0x1a')],_0x407a9f=_0x505e0b[_0x5122('0x71')][_0x5122('0x21')][_0x5122('0x3c')];if(!_0x505e0b[_0x5122('0x57')][_0x5122('0x7e')](_0x5122('0x69')))return;const _0x720761=_0x505e0b[_0x5122('0x85')],_0x54d845=_0x505e0b[_0x5122('0x57')]['get'](_0x5122('0x17')),_0x568726=_0x505e0b['plugins'][_0x5122('0x5a')]('TableUtils');_0x54d845[_0x5122('0x7')]['registerElementLabel']('table',_0x1194a3=>_0x5a6c0f(_0x720761,'ELEMENT_TABLE',_0x1194a3)),this['_setupColumnsRowsFixing'](),_0x54d845['enableCommand']('insertTable'),_0x54d845[_0x5122('0x3b')](_0x5122('0x59')),_0x54d845[_0x5122('0x3b')](_0x5122('0x29'));for(const _0x4b0885 of[_0x5122('0x61'),_0x5122('0x2c')]){const _0x2832eb=_0x505e0b[_0x5122('0x30')]['get'](_0x4b0885);_0x54d845[_0x5122('0x3b')](_0x4b0885,_0x39c120=>{_0x505e0b[_0x5122('0x71')][_0x5122('0x84')](_0xc874b=>{_0x39c120();const _0x180737=_0x5122('0x70')===_0x2832eb[_0x5122('0xb')],_0x5d5113=_0x568726[_0x5122('0x7a')](_0x407a9f),_0x24fa66=_0x568726[_0x5122('0x53')](_0x5d5113),_0x1b8fcf=_0x180737?_0x24fa66[_0x5122('0x50')]-0x1:_0x24fa66['last']+0x1,_0x47345e=_0x5d5113[0x0]['findAncestor'](_0x5122('0x86')),_0x216455=_0x568726['createTableWalker'](_0x47345e,{'startRow':_0x1b8fcf,'endRow':_0x1b8fcf}),_0xe8ab34=Array[_0x5122('0x79')](_0x216455)['map'](_0xd619c5=>_0xc874b[_0x5122('0x34')](_0xd619c5[_0x5122('0x49')]));_0x54d845[_0x5122('0x51')](_0xe8ab34,_0x5122('0x55'));});});}for(const _0x3dfae6 of[_0x5122('0x6a'),_0x5122('0x3d')]){const _0x17b126=_0x505e0b['commands'][_0x5122('0x5a')](_0x3dfae6);_0x54d845['enableCommand'](_0x3dfae6,_0x41b734=>{_0x505e0b['model']['change'](_0x180a8f=>{_0x41b734();const _0x12f6cf=_0x5122('0x23')===_0x17b126[_0x5122('0xb')],_0x34de81=_0x568726['getSelectionAffectedTableCells'](_0x407a9f),_0x5a6eab=_0x568726[_0x5122('0x2f')](_0x34de81),_0x481c02=_0x12f6cf?_0x5a6eab['first']-0x1:_0x5a6eab[_0x5122('0x15')]+0x1,_0x321978=_0x34de81[0x0][_0x5122('0x77')](_0x5122('0x86')),_0x1d1997=_0x568726[_0x5122('0x43')](_0x321978,{'startRow':0x0,'column':_0x481c02,'includeAllSlots':!0x1}),_0x34b682=Array['from'](_0x1d1997)[_0x5122('0x16')](_0x118cef=>_0x180a8f[_0x5122('0x34')](_0x118cef['cell']));_0x54d845[_0x5122('0x51')](_0x34b682,_0x5122('0x22'));});});}for(const _0x324b4f of[_0x5122('0x10'),'removeTableColumn']){const _0x5894f4=_0x324b4f['substr'](0xb),_0x1eceb6=_0x5894f4['toLowerCase'](),_0x2f5940=_0x1eceb6[_0x5122('0x7b')](0x0,0x3)+_0x5122('0x1c'),_0xac7cec='table'+_0x5894f4,_0x3a1808=_0x5122('0x28')+_0x5894f4,_0xbeaf9f=_0x5122('0x74')+_0x5894f4;_0x54d845[_0x5122('0x3b')](_0x324b4f,()=>{_0x505e0b['model'][_0x5122('0x84')](_0x4dc7d4=>{const _0x314ef3=_0x568726[_0x5122('0x7a')](_0x407a9f),_0x51988e=_0x314ef3[0x0][_0x5122('0x77')](_0x5122('0x86'));let _0x526bbd;if(_0x5122('0x10')==_0x324b4f){const _0x4f26ca=_0x568726[_0x5122('0x53')](_0x314ef3);_0x526bbd={'startRow':_0x4f26ca[_0x5122('0x50')],'endRow':_0x4f26ca[_0x5122('0x15')],'includeAllSlots':!0x0};}else{const _0x25e103=_0x568726['getColumnIndexes'](_0x314ef3);_0x526bbd={'startColumn':_0x25e103[_0x5122('0x50')],'endColumn':_0x25e103[_0x5122('0x15')],'includeAllSlots':!0x0};}const _0x36c6c1=_0x568726[_0x5122('0x43')](_0x51988e,_0x526bbd),_0x23bfa6=Array[_0x5122('0x79')](_0x36c6c1)['map'](({cell:_0x15621b})=>_0x15621b),_0x447fb0=oe(_0x23bfa6['filter'](_0x146157=>_0x146157['hasAttribute'](_0x2f5940))),_0x4ab0f1=oe(_0x23bfa6['filter'](_0x49ea5b=>!_0x49ea5b['hasAttribute'](_0x2f5940)))[_0x5122('0x16')](_0xc6239e=>_0x4dc7d4['createRangeOn'](_0xc6239e)),_0x8d84fa=_0x54d845[_0x5122('0x7c')](_0x4ab0f1,_0xac7cec);if(_0x8d84fa&&(_0x5122('0x55')==_0x8d84fa[_0x5122('0xa')]||'tableColumn'==_0x8d84fa[_0x5122('0xa')])){const _0x1ee52e=this['_getSuggestionCoords'](_0x8d84fa);for(const _0xfc5fc1 of _0x447fb0){const _0x3e4043=_0x4dc7d4[_0x5122('0x34')](_0xfc5fc1),_0xe921d1=_0x568726['getCellLocation'](_0xfc5fc1),_0x41189e=_0xfc5fc1['getAttribute'](_0x2f5940)-0x1,_0x143a8e=_0x1ee52e[_0x3a1808],_0x5dc162=_0x1ee52e[_0xbeaf9f];_0x143a8e<=_0xe921d1[_0x1eceb6]&&_0xe921d1[_0x1eceb6]+_0x41189e<=_0x5dc162&&_0x8d84fa[_0x5122('0x64')](_0x3e4043);}}});});}function _0x13a5dc(_0x237626){const _0x2ffd03=Array['from'](_0x407a9f['getRanges']())[_0x5122('0x16')](_0x1d225a=>_0x2f294c[_0x5122('0x73')](_0x1d225a));_0x505e0b[_0x5122('0x71')][_0x5122('0x84')](_0x2ffd45=>{const _0x281c52=_0x2ffd45[_0x5122('0x41')];_0x237626=_0x237626[_0x5122('0x8')](_0x314e07=>_0x5122('0x38')!=_0x314e07[_0x5122('0x31')][_0x5122('0x7f')]),_0x2ffd45[_0x5122('0x5')](_0x237626),_0x505e0b['commands'][_0x5122('0x5a')](_0x5122('0x10'))['refresh'](),_0x505e0b[_0x5122('0x44')](_0x5122('0x10'),{'forceDefaultExecution':!0x0}),_0x505e0b[_0x5122('0x71')]['enqueueChange'](()=>{_0x505e0b['model'][_0x5122('0x12')](_0x281c52,_0xc4c2a=>{const _0x288f90=_0x2ffd03['filter'](_0x914dbb=>_0x5122('0x38')!=_0x914dbb[_0x5122('0x31')][_0x5122('0x7f')]);_0x288f90[_0x5122('0x48')]>0x0&&_0xc4c2a[_0x5122('0x5')](_0x288f90);for(const _0x4844e6 of _0x2ffd03)_0x4844e6[_0x5122('0xc')]();});});});}function _0x1b11dd(_0x24650f){_0x505e0b[_0x5122('0x71')][_0x5122('0x84')](_0x134416=>{const _0x5721c5=Array[_0x5122('0x79')](_0x407a9f[_0x5122('0x26')]())[_0x5122('0x16')](_0x1ebd6b=>_0x2f294c[_0x5122('0x73')](_0x1ebd6b)),_0x4fe07e=[];for(const _0x9a64c1 of _0x24650f)for(const _0x13dd6c of _0x9a64c1['getItems']({'shallow':!0x0}))_0x4fe07e['push'](_0x13dd6c);for(const _0x51e17d of _0x4fe07e)_0x5122('0x38')!=_0x51e17d[_0x5122('0x31')][_0x5122('0x7f')]&&(_0x134416['setSelection'](_0x134416[_0x5122('0x45')](_0x51e17d,0x0)),_0x505e0b[_0x5122('0x30')][_0x5122('0x5a')](_0x5122('0x5f'))[_0x5122('0xe')](),_0x505e0b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4d6a83=_0x5721c5[_0x5122('0x8')](_0x9ddf16=>_0x5122('0x38')!=_0x9ddf16[_0x5122('0x31')]['rootName']);_0x4d6a83['length']>0x0&&_0x134416[_0x5122('0x5')](_0x4d6a83);for(const _0x5dff35 of _0x5721c5)_0x5dff35['detach']();});}function _0x2e21ae(_0x73be21,_0x4f40bb){return _0x4f40bb['every'](_0x6a8b3=>_0x73be21['some'](_0x1069bb=>_0x1069bb[_0x5122('0x32')][_0x5122('0x11')](_0x6a8b3[_0x5122('0x60')])||_0x6a8b3['end'][_0x5122('0x11')](_0x1069bb[_0x5122('0x60')])));}function _0xbf2ecb(_0x24ad88,_0xe18ea9){return _0x24ad88[_0x5122('0x83')](_0x33d20e=>_0xe18ea9[_0x5122('0x83')](_0x270bb8=>_0x33d20e[_0x5122('0x32')]['isTouching'](_0x270bb8[_0x5122('0x60')])));}_0x505e0b[_0x5122('0x35')]['downcastDispatcher']['on'](_0x5122('0x46'),(_0x50a1ae,_0xe7c5e2,_0x210ad7)=>{if(!_0x210ad7[_0x5122('0x62')][_0x5122('0x25')])return;const _0x3eb079=_0xe7c5e2['item'];if(!_0x3eb079)return;const _0x1322ad=_0x210ad7['mapper'][_0x5122('0xf')](_0x3eb079);function _0x465a48(_0xbdb571){return Array[_0x5122('0x6b')](_0xbdb571)?_0xbdb571:[_0xbdb571];}_0x1322ad&&'tableCell'===_0x3eb079[_0x5122('0x40')]&&_0x3ca9e5(_0x1322ad,_0x210ad7[_0x5122('0x9')],(_0x441709,_0x164a1e,_0x4ad64a)=>_0x4ad64a[_0x5122('0x88')](_0x465a48(_0x164a1e['classes']),_0x441709),(_0x1df8a7,_0x30a744,_0x3cbcb1)=>_0x3cbcb1[_0x5122('0x24')](_0x465a48(_0x30a744[_0x5122('0x52')]),_0x1df8a7));},{'priority':_0x5122('0x1b')}),_0x54d845[_0x5122('0x7')]['registerDescriptionCallback'](_0x8de01b=>{if('insertion'!=_0x8de01b[_0x5122('0x58')]&&_0x5122('0x4c')!=_0x8de01b[_0x5122('0x58')])return;const _0x5a0efa=_0x8de01b[_0x5122('0x4b')]();if(null!=_0x5a0efa&&_0x5a0efa['is'](_0x5122('0x39'),_0x5122('0x86'))){if('insertion'==_0x8de01b[_0x5122('0x58')]){const _0x43cc90=_0x8de01b[_0x5122('0x2e')]()[_0x5122('0x8')](_0x1dd729=>_0x1dd729['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x5945f9=>_0x5945f9[_0x5122('0x35')]);if(_0x43cc90[_0x5122('0x48')])return{'type':_0x5122('0x2a'),'content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x42'),'\x22'+_0x43cc90[_0x5122('0x33')]('\x20')+'\x22'))};}if(_0x5122('0x4c')==_0x8de01b[_0x5122('0x58')]){const _0x52abe2=_0x8de01b[_0x5122('0x2e')]()['filter'](_0x3b397b=>_0x3b397b['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x19e670=>_0x19e670[_0x5122('0x35')]);if(_0x52abe2[_0x5122('0x48')])return{'type':_0x5122('0x4c'),'content':_0x5a6c0f(_0x720761,_0x5122('0x3e'),_0x5a6c0f(_0x720761,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x52abe2[_0x5122('0x33')]('\x20')+'\x22'))};}}}),_0x54d845[_0x5122('0x7')]['registerDescriptionCallback'](_0x369517=>{if(_0x5122('0x55')==_0x369517[_0x5122('0xa')]){const _0x7378de=_0x369517[_0x5122('0x2e')]()[_0x5122('0x8')](_0x49229b=>_0x49229b['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x5b7ffe=>_0x5b7ffe['data']),_0x4c347a=this[_0x5122('0x6c')](_0x369517),_0x7d8f21=_0x4c347a[_0x5122('0x47')]-_0x4c347a[_0x5122('0x1f')]+0x1;if(_0x5122('0x2a')==_0x369517[_0x5122('0x58')])return _0x7378de[_0x5122('0x48')]?{'type':_0x5122('0x2a'),'content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x4a'),[_0x7d8f21,'\x22'+_0x7378de[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x6d'),_0x7d8f21))};if(_0x5122('0x4c')==_0x369517[_0x5122('0x58')])return _0x7378de[_0x5122('0x48')]?{'type':_0x5122('0x4c'),'content':_0x5a6c0f(_0x720761,_0x5122('0x3e'),_0x5a6c0f(_0x720761,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7d8f21,'\x22'+_0x7378de[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x5a6c0f(_0x720761,'*Remove:*\x20%0',_0x5a6c0f(_0x720761,_0x5122('0x6d'),_0x7d8f21))};}if(_0x5122('0x22')==_0x369517[_0x5122('0xa')]){const _0x4b4948=_0x369517[_0x5122('0x2e')]()['filter'](_0x24901a=>_0x24901a['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x4e57f3=>_0x4e57f3[_0x5122('0x35')]),_0x1c64c1=this[_0x5122('0x6c')](_0x369517),_0x35d952=_0x1c64c1[_0x5122('0x80')]-_0x1c64c1[_0x5122('0x1d')]+0x1;if('insertion'==_0x369517[_0x5122('0x58')])return _0x4b4948[_0x5122('0x48')]?{'type':'insertion','content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x4f'),[_0x35d952,'\x22'+_0x4b4948[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':_0x5122('0x2a'),'content':_0x5a6c0f(_0x720761,'*Insert:*\x20%0',_0x5a6c0f(_0x720761,_0x5122('0x82'),_0x35d952))};if(_0x5122('0x4c')==_0x369517[_0x5122('0x58')])return _0x4b4948[_0x5122('0x48')]?{'type':_0x5122('0x4c'),'content':_0x5a6c0f(_0x720761,'*Remove:*\x20%0',_0x5a6c0f(_0x720761,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35d952,'\x22'+_0x4b4948[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x5a6c0f(_0x720761,'*Remove:*\x20%0',_0x5a6c0f(_0x720761,_0x5122('0x82'),_0x35d952))};}}),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x2a'),_0x5122('0x55'),_0x5122('0x67'),_0x13a5dc),_0x54d845['_suggestionFactory']['registerCustomCallback'](_0x5122('0x4c'),_0x5122('0x55'),_0x5122('0x56'),_0x13a5dc),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x2a'),_0x5122('0x22'),_0x5122('0x67'),_0x1b11dd),_0x54d845['_suggestionFactory']['registerCustomCallback']('deletion',_0x5122('0x22'),'accept',_0x1b11dd),_0x54d845[_0x5122('0x6e')]['registerCustomCallback'](_0x5122('0x2a'),_0x5122('0x22'),'join',_0x2e21ae),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x4c'),_0x5122('0x22'),'join',_0x2e21ae),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')]('insertion','tableRow',_0x5122('0x33'),_0xbf2ecb),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x4c'),'tableRow','join',_0xbf2ecb);}[_0x5122('0x27')](){const _0x36bc76=this[_0x5122('0x1a')],_0x26a64f=_0x36bc76[_0x5122('0x71')][_0x5122('0x21')]['selection'];return(_0xc2d5bc,_0x1cb86b)=>{_0x36bc76[_0x5122('0x71')]['change'](_0x50f705=>{const {commandName:_0x2bb597,commandParams:_0x563e1d}=_0x1cb86b;let _0x12deae=_0xc2d5bc[0x0][_0x5122('0x32')][_0x5122('0x3f')];_0x563e1d&&_0x563e1d[0x0]&&!0x1===_0x563e1d[0x0][_0x5122('0x87')]&&(_0x12deae=_0xc2d5bc[0x0][_0x5122('0x60')][_0x5122('0x81')]);const _0x29f14d=_0x50f705[_0x5122('0x6f')](_0x12deae);if('$graveyard'==_0x29f14d[_0x5122('0x31')][_0x5122('0x7f')])return;const _0x3aeddb=Array[_0x5122('0x79')](_0x26a64f['getRanges']())[_0x5122('0x16')](_0x5c8ab5=>_0x2f294c[_0x5122('0x73')](_0x5c8ab5));_0x50f705[_0x5122('0x5')](_0x29f14d),_0x36bc76[_0x5122('0x30')][_0x5122('0x5a')](_0x2bb597)[_0x5122('0xe')](),_0x563e1d['push']({'forceDefaultExecution':!0x0}),_0x36bc76[_0x5122('0x44')](_0x2bb597,..._0x563e1d);const _0x488876=_0x3aeddb['filter'](_0x280e75=>_0x5122('0x38')!=_0x280e75[_0x5122('0x31')][_0x5122('0x7f')]);_0x488876[_0x5122('0x48')]>0x0&&_0x50f705['setSelection'](_0x488876);for(const _0x169f62 of _0x3aeddb)_0x169f62['detach']();});};}['_getCoordsForCells'](_0x471ff5){const _0x22d1f6=this[_0x5122('0x1a')]['plugins'][_0x5122('0x5a')]('TableUtils');let _0x4d5e20=Number[_0x5122('0x4')],_0x32b8ac=Number['MIN_SAFE_INTEGER'],_0x1c50d3=Number[_0x5122('0x4')],_0x37fe7e=Number[_0x5122('0x3a')];for(const _0x5b819c of _0x471ff5){if('$graveyard'==_0x5b819c[_0x5122('0x31')][_0x5122('0x7f')])continue;const {row:_0x22be42,column:_0x3b01d1}=_0x22d1f6[_0x5122('0x0')](_0x5b819c),_0x2e26d3=_0x5b819c['hasAttribute'](_0x5122('0x37'))?_0x5b819c[_0x5122('0x4d')](_0x5122('0x37'))-0x1:0x0,_0x1c9853=_0x5b819c[_0x5122('0x1e')](_0x5122('0x72'))?_0x5b819c[_0x5122('0x4d')](_0x5122('0x72'))-0x1:0x0;_0x4d5e20=_0x22be42<_0x4d5e20?_0x22be42:_0x4d5e20,_0x32b8ac=_0x22be42+_0x2e26d3>_0x32b8ac?_0x22be42+_0x2e26d3:_0x32b8ac,_0x1c50d3=_0x3b01d1<_0x1c50d3?_0x3b01d1:_0x1c50d3,_0x37fe7e=_0x3b01d1+_0x1c9853>_0x37fe7e?_0x3b01d1+_0x1c9853:_0x37fe7e;}return{'minRow':_0x4d5e20,'maxRow':_0x32b8ac,'minColumn':_0x1c50d3,'maxColumn':_0x37fe7e};}[_0x5122('0x75')](){const _0x3b53dd=this[_0x5122('0x1a')],_0x348af8=_0x3b53dd[_0x5122('0x57')][_0x5122('0x5a')](_0x5122('0x17')),_0x2719fb=_0x3b53dd['plugins'][_0x5122('0x5a')]('TableUtils');this[_0x5122('0x2')]=new Set(),_0x3b53dd[_0x5122('0x71')][_0x5122('0x21')]['on'](_0x5122('0x4e'),()=>{const _0xfc194b=Array[_0x5122('0x79')](_0x3b53dd[_0x5122('0x71')]['document']['differ'][_0x5122('0x54')]());for(const {name:_0x19523e,data:_0x4c8785}of _0xfc194b){const {group:_0x50e927,id:_0x149be4,subType:_0x4e76d8}=_0x348af8[_0x5122('0x5d')](_0x19523e);if(_0x5122('0x3')!=_0x50e927)continue;if(null!=_0x4c8785[_0x5122('0x78')])continue;const _0x517868=_0x348af8[_0x5122('0x20')](_0x149be4);this[_0x5122('0x18')][_0x5122('0xd')](_0x4e76d8)&&this[_0x5122('0x2')][_0x5122('0x6')](_0x517868);}},{'priority':'low'});const _0x23206a=(_0x261749,_0x25ab4a)=>{let _0x5307f3=!0x1;const _0x530351=_0x25ab4a['createRangeOn'](_0x261749),_0x44d717=_0x261749['findAncestor'](_0x5122('0x86')),_0x47dba8=_0x2719fb[_0x5122('0x0')](_0x261749);for(const _0x312dd3 of this[_0x5122('0x2')]){const _0x50856e=_0x312dd3[_0x5122('0xa')],_0x5bbb87=_0x50856e['startsWith']('tablePaste'),_0x5881e0=_0x50856e[_0x5122('0x7b')](_0x5bbb87?0xa:0x5),_0x10aea1=_0x5881e0[_0x5122('0x5e')](),_0x23c0b2=_0x10aea1['substr'](0x0,0x3)+'span',_0x1d033e=_0x5122('0x28')+_0x5881e0,_0x4cf195='max'+_0x5881e0;if(!_0x312dd3[_0x5122('0x1')])continue;if(_0x44d717!=_0x312dd3['getFirstRange']()[_0x5122('0x60')]['findAncestor'](_0x5122('0x86')))continue;if(_0x312dd3[_0x5122('0x68')](_0x530351))continue;const _0x5bfa33=_0x261749['hasAttribute'](_0x23c0b2)?_0x261749[_0x5122('0x4d')](_0x23c0b2)-0x1:0x0,_0x1cba5a=this[_0x5122('0x6c')](_0x312dd3),_0x220f04=_0x1cba5a[_0x1d033e],_0x1e2343=_0x1cba5a[_0x4cf195];_0x220f04<=_0x47dba8[_0x10aea1]&&_0x47dba8[_0x10aea1]+_0x5bfa33<=_0x1e2343&&(_0x312dd3[_0x5122('0x64')](_0x530351),_0x5307f3=!0x0);}return _0x5307f3;};_0x3b53dd[_0x5122('0x71')][_0x5122('0x21')][_0x5122('0x5b')](_0x1e340b=>{let _0x1309e8=!0x1;for(const _0x3cba40 of _0x3b53dd[_0x5122('0x71')][_0x5122('0x21')][_0x5122('0x7d')][_0x5122('0x63')]())if(_0x5122('0x76')==_0x3cba40['type']){if(_0x5122('0x55')==_0x3cba40[_0x5122('0x40')])for(const _0x550bfe of _0x3cba40[_0x5122('0x65')]['nodeAfter'][_0x5122('0x13')]())_0x1309e8=_0x1309e8||_0x23206a(_0x550bfe,_0x1e340b);else _0x5122('0x36')==_0x3cba40[_0x5122('0x40')]&&(_0x1309e8=_0x1309e8||_0x23206a(_0x3cba40[_0x5122('0x65')][_0x5122('0x81')],_0x1e340b));}return _0x1309e8;});}[_0x5122('0x6c')](_0x29a8c3){return this[_0x5122('0x14')](_0x29a8c3[_0x5122('0x26')]()[_0x5122('0x16')](_0x385686=>_0x385686[_0x5122('0x60')][_0x5122('0x81')]));}}function oe(_0x1299a8){return Array[_0x5122('0x79')](new Set(_0x1299a8)[_0x5122('0x5c')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x481b=['enableCommand','toggleTableCaption','plugins','editor','get','TableCaptionEditing','TrackChangesEditing','requires'];(function(_0x205824,_0x481b03){const _0x2fd044=function(_0x3e1fee){while(--_0x3e1fee){_0x205824['push'](_0x205824['shift']());}};_0x2fd044(++_0x481b03);}(_0x481b,0xeb));const _0x2fd0=function(_0x205824,_0x481b03){_0x205824=_0x205824-0x0;let _0x2fd044=_0x481b[_0x205824];return _0x2fd044;};import{Plugin as _0x31ab1e}from'ckeditor5/src/core';import _0xd7d6d0 from'./table';export default class wt extends _0x31ab1e{static get[_0x2fd0('0x4')](){return[_0xd7d6d0];}['afterInit'](){const _0x30b824=this[_0x2fd0('0x0')];if(!_0x30b824[_0x2fd0('0x7')]['has'](_0x2fd0('0x2')))return;_0x30b824[_0x2fd0('0x7')][_0x2fd0('0x1')](_0x2fd0('0x3'))[_0x2fd0('0x5')](_0x2fd0('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4eba=['suggestion:formatBlock:tablePasteCell','newRange','content','previousSibling','model','TableClipboard','TableUtils','ck-suggestion-marker','documentSelection','reduce','filter','element','end','_splitMarkerName','some','afterInit','suggestion-td','markerAttributes','value','start','showSuggestionHighlights','commands','endRow','endColumn','dataDowncast','keys','getChild','push','from','get','subType','findAncestor','document','nextSibling','createRangeOn','tableCellBorderColor','tableCell','_tablePostFixingSubtypes','getMarkers','plugins','editingDowncast','getSelectionAffectedTableCells','removeMarkers','high','insertColumns','containsRange','tablePaste','columnInsertionIndexes','set','tableCellBackgroundColor','unwrap','deletion','fromEntries','requires','for','options','batch','getRanges','insertionRanges','tableCellVerticalAlignment','$graveyard','first','tablePasteCell','return','ck-suggestion-marker--active','isEqual','setAttributes','name','_getCoordsForCells','fill','getContainedElement','removeMarker','cell','getRows','removeRows','tableCellSuggestion','markMultiRangeInsertion','_replaceTableSlotCell','conversion','editing','getAttributes','createElement','wrap','tableCellHorizontalAlignment','ck-suggestion-marker-insertion','createRangeIn','trackChanges','hasSuggestion','column','_isForcedDefaultExecutionBlock','registerCustomCallback','remove','isEmpty','tablePasteColumn','createTableWalker','add','low','position','insertContent','insertion','tablePasteChainId','tableCellBorderStyle','getChanges','accept','forceDefaultExecution','tablePasteRow','insertRows','getSuggestions','tableCellPadding','columns','change','map','getItems','suggestionUnloaded','*Replace\x20table\x20cells*','getAllAdjacentSuggestions','_descriptionFactory','differ','register','isInContent','cells','attributes','Users','getShiftedBy','oldRange','table','registerDescriptionCallback','TrackChangesEditing','type','discard','getChildren','author','next','registerPostFixer','length','getChangedMarkers','last','markerName','markers','suggestionLoaded','deletionRanges','has','_createdBatches','selection','entries','find','markerToHighlight','elementToElement','formatBlock','suggestion','getColumns','startsWith','columnInsertionRanges','stop','editor','paragraph','includes','markMultiRangeBlockFormat','_suggestionFactory','insert','previous'];(function(_0x3a58bf,_0x4eba1d){const _0x2d3f62=function(_0x10cf0f){while(--_0x10cf0f){_0x3a58bf['push'](_0x3a58bf['shift']());}};_0x2d3f62(++_0x4eba1d);}(_0x4eba,0x159));const _0x2d3f=function(_0x3a58bf,_0x4eba1d){_0x3a58bf=_0x3a58bf-0x0;let _0x2d3f62=_0x4eba[_0x3a58bf];return _0x2d3f62;};import{getTranslation as _0xb94d73}from'../utils/common-translations';import{Plugin as _0x451d74}from'ckeditor5/src/core';import _0x4f29a5 from'./table';import{uid as _0x18f921,priorities as _0x48994d}from'ckeditor5/src/utils';const ne=['tableCellBorderWidth',_0x2d3f('0xc'),_0x2d3f('0x4e'),_0x2d3f('0x3c'),_0x2d3f('0x24'),_0x2d3f('0x1a'),_0x2d3f('0x55')],le=Object['fromEntries'](ne['map'](_0x2d4968=>[_0x2d4968,null]));export default class mt extends _0x451d74{static get[_0x2d3f('0x1e')](){return[_0x4f29a5];}[_0x2d3f('0x99')](){const _0x4ff5b8=this[_0x2d3f('0x83')];if(!_0x4ff5b8['plugins']['has']('TableClipboard'))return;const _0x3c2e1a=_0x4ff5b8[_0x2d3f('0x10')][_0x2d3f('0x6')](_0x2d3f('0x68')),_0x421ec8=_0x4ff5b8[_0x2d3f('0x10')][_0x2d3f('0x6')](_0x2d3f('0x90')),_0x26fa83=_0x4ff5b8[_0x2d3f('0x10')][_0x2d3f('0x6')](_0x4f29a5),_0xfb62dd=_0x4ff5b8[_0x2d3f('0x10')][_0x2d3f('0x6')](_0x2d3f('0x8f'));_0x26fa83[_0x2d3f('0xe')][_0x2d3f('0x4')](_0x2d3f('0x52'),'tablePasteColumn'),_0x4ff5b8[_0x2d3f('0x8e')]['schema'][_0x2d3f('0x5f')](_0x2d3f('0x34'),{'allowIn':_0x2d3f('0xd'),'allowContentOf':_0x2d3f('0xd'),'isLimit':!0x0}),_0x4ff5b8['conversion'][_0x2d3f('0x7c')]({'model':_0x2d3f('0x34'),'view':'suggestion-td'});let _0x777b71=null;_0x4ff5b8[_0x2d3f('0x8e')]['on']('insertContent',(_0x42db94,_0x126f44)=>{const [_0x42b3f3,_0x5d9f36]=_0x126f44,_0x1c6c1d=_0x126f44[_0x126f44[_0x2d3f('0x6f')]-0x1];_0x1c6c1d&&_0x1c6c1d[_0x2d3f('0x51')]||_0x3c2e1a[_0x2d3f('0x42')]||this[_0x2d3f('0x83')][_0x2d3f('0x9f')][_0x2d3f('0x6')](_0x2d3f('0x3f'))[_0x2d3f('0x9c')]&&function(_0x1f1422,_0x582822,_0x41b681,_0x480443,_0x5101ee){if(_0x582822&&!_0x582822['is'](_0x2d3f('0x92')))return!0x1;const _0x59b2a2=_0x5101ee['getTableIfOnlyTableInContent'](_0x1f1422,_0x41b681);if(!_0x59b2a2||!ae(_0x59b2a2,null,_0x480443))return!0x1;const _0x16699b=_0x480443[_0x2d3f('0x12')](_0x41b681['document'][_0x2d3f('0x78')]);if(!_0x16699b[_0x2d3f('0x6f')])return!0x1;const _0x20a70b=_0x16699b[0x0]['findAncestor'](_0x2d3f('0x66')),_0x2dd0e5=_0x480443['getRowIndexes'](_0x16699b),_0x5a4944=_0x480443['getColumnIndexes'](_0x16699b),_0x2ed2c2={'startRow':_0x2dd0e5[_0x2d3f('0x26')],'endRow':_0x2dd0e5['last'],'startColumn':_0x5a4944['first'],'endColumn':_0x5a4944[_0x2d3f('0x71')]};return 0x1==_0x16699b[_0x2d3f('0x6f')]&&(_0x2ed2c2[_0x2d3f('0xa0')]+=_0x480443[_0x2d3f('0x32')](_0x59b2a2)-0x1,_0x2ed2c2[_0x2d3f('0x0')]+=_0x480443[_0x2d3f('0x7f')](_0x59b2a2)-0x1),ae(_0x20a70b,_0x2ed2c2,_0x480443);}(_0x42b3f3,_0x5d9f36,_0x4ff5b8['model'],_0x421ec8,_0xfb62dd)&&(_0x42db94[_0x2d3f('0x82')](),_0x777b71={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4ff5b8['model']['change'](()=>{_0x4ff5b8[_0x2d3f('0x8e')][_0x2d3f('0x4b')](_0x126f44[0x0],_0x126f44[0x1],_0x126f44[0x2],_0x126f44[0x3],{'forceDefaultExecution':!0x0});const _0x334e98=_0x18f921(),{rowInsertionRanges:_0x1f6ac1,columnInsertionRanges:_0x39d33e,insertionRanges:_0x4173a5,deletionRanges:_0x4d558d,cells:_0x3aa5be}=_0x777b71;_0x1f6ac1['length']&&_0x3c2e1a[_0x2d3f('0x35')](_0x1f6ac1,_0x2d3f('0x52'),{'tablePasteChainId':_0x334e98}),_0x39d33e['length']&&_0x3c2e1a[_0x2d3f('0x35')](_0x39d33e,_0x2d3f('0x46'),{'tablePasteChainId':_0x334e98}),_0x4173a5[_0x2d3f('0x6f')]&&_0x3c2e1a[_0x2d3f('0x35')](_0x4173a5,'tablePaste',{'tablePasteChainId':_0x334e98,'skipNestingCheck':!0x0}),_0x4d558d['length']&&_0x3c2e1a['markMultiRangeDeletion'](_0x4d558d,_0x2d3f('0x17'),{'tablePasteChainId':_0x334e98,'skipNestingCheck':!0x0});const _0x7d9848=_0x3c2e1a[_0x2d3f('0x86')](_0x3aa5be[_0x2d3f('0x58')](({element:_0x16528e})=>_0x16528e),{'formatGroupId':_0x18f921()},[],_0x2d3f('0x27'),{'tablePasteChainId':_0x334e98});if(_0x7d9848){const _0x35bf04=_0x7d9848[_0x2d3f('0xf')](),_0x201e42=[];for(const {element:_0x4e0a87,attributes:_0x3cd3de}of _0x3aa5be){if(!_0x3cd3de)continue;const _0x28e7ee=_0x4ff5b8[_0x2d3f('0x8e')][_0x2d3f('0xb')](_0x4e0a87),_0x83f4a9=_0x35bf04['find'](_0x27cc96=>_0x27cc96['getRange']()[_0x2d3f('0x2a')](_0x28e7ee));_0x83f4a9&&_0x201e42[_0x2d3f('0x4')]([_0x83f4a9['name'],_0x3cd3de]);}_0x201e42[_0x2d3f('0x6f')]&&_0x7d9848['setAttribute'](_0x2d3f('0x9b'),Object[_0x2d3f('0x1d')](_0x201e42));}_0x777b71=null;}));},{'priority':_0x48994d[_0x2d3f('0x14')]+0xa}),_0x4ff5b8[_0x2d3f('0x10')][_0x2d3f('0x6')](_0x2d3f('0x8f'))['on'](_0x2d3f('0x36'),(_0x5cf7d4,_0x185d1d)=>{const [_0x484b75,_0x41d389,,_0x234823]=_0x185d1d;if(!_0x777b71)return;_0x5cf7d4[_0x2d3f('0x82')]();const _0x1704e3=_0x484b75[_0x2d3f('0x31')],_0x4da620=_0x41d389,_0x3d1313=se(_0x1704e3),_0x44f46d=se(_0x4da620);_0x5cf7d4[_0x2d3f('0x28')]=_0x1704e3;let _0x313a5e=null,_0x3d9886=null;if(_0x44f46d||_0x3d1313){if(_0x3d1313&&!_0x44f46d){_0x234823[_0x2d3f('0x44')](_0x1704e3[_0x2d3f('0x3')](0x0));for(const _0x230fc8 of Array[_0x2d3f('0x5')](_0x4da620[_0x2d3f('0x6b')]()))_0x234823[_0x2d3f('0x88')](_0x230fc8,_0x1704e3,_0x2d3f('0x96'));const _0xe0b218=_0x777b71['rowInsertionIndexes']['includes'](_0x484b75['row']),_0x23a1c3=_0x777b71[_0x2d3f('0x18')][_0x2d3f('0x85')](_0x484b75[_0x2d3f('0x41')]);_0xe0b218||_0x23a1c3||(_0x313a5e=_0x234823[_0x2d3f('0x3e')](_0x1704e3));}else _0x44f46d&&!_0x3d1313&&(_0x3d9886=_0x234823[_0x2d3f('0x3e')](_0x1704e3));}else{const _0x2c533f=_0x234823[_0x2d3f('0x3a')](_0x2d3f('0x34')),_0x4a4573=_0x234823[_0x2d3f('0x3a')](_0x2d3f('0x34'));_0x234823[_0x2d3f('0x3b')](_0x234823[_0x2d3f('0x3e')](_0x1704e3),_0x4a4573),_0x234823['insert'](_0x2c533f,_0x1704e3,0x0);for(const _0xa8e8b4 of Array['from'](_0x4da620['getChildren']()))_0x234823[_0x2d3f('0x88')](_0xa8e8b4,_0x2c533f,'end');_0x313a5e=_0x234823[_0x2d3f('0xb')](_0x2c533f),_0x3d9886=_0x234823[_0x2d3f('0xb')](_0x4a4573);}const _0x4cd034=Array['from'](_0x4da620[_0x2d3f('0x39')]())[_0x2d3f('0x94')](([_0x4f28cf])=>ne[_0x2d3f('0x85')](_0x4f28cf));_0x777b71[_0x2d3f('0x61')][_0x2d3f('0x4')]({'element':_0x1704e3,'attributes':_0x4cd034['length']?Object['fromEntries'](_0x4cd034):null}),_0x313a5e&&_0x777b71[_0x2d3f('0x23')]['push'](_0x313a5e),_0x3d9886&&_0x777b71[_0x2d3f('0x75')]['push'](_0x3d9886);},{'priority':_0x2d3f('0x14')}),_0x421ec8['on'](_0x2d3f('0x15'),(_0x409651,_0x5bf0c0)=>{const [_0xc7c406,_0x7ee417={}]=_0x5bf0c0;if(!_0x777b71)return;const _0x9fcb06=_0x7ee417['at']||0x0,_0x12d64b=_0x7ee417[_0x2d3f('0x56')]||0x1;_0x777b71[_0x2d3f('0x18')]=new Array(_0x12d64b)[_0x2d3f('0x2e')](_0x9fcb06)[_0x2d3f('0x58')]((_0x2dfbd6,_0x1b03e5)=>_0x2dfbd6+_0x1b03e5);for(const {cell:_0xcb6c2}of _0x421ec8[_0x2d3f('0x47')](_0xc7c406,{'startColumn':_0x9fcb06,'endColumn':_0x9fcb06+_0x12d64b-0x1}))_0x777b71[_0x2d3f('0x81')]['push'](_0x4ff5b8['model'][_0x2d3f('0xb')](_0xcb6c2));},{'priority':_0x2d3f('0x49')}),_0x421ec8['on'](_0x2d3f('0x53'),(_0x3256b3,_0x76e0eb)=>{const [_0x3a2d6b,_0x242255={}]=_0x76e0eb;if(!_0x777b71)return;const _0x486a98=_0x242255['at']||0x0,_0x168204=_0x242255['rows']||0x1;_0x777b71['rowInsertionIndexes']=new Array(_0x168204)[_0x2d3f('0x2e')](_0x486a98)[_0x2d3f('0x58')]((_0x23c34a,_0x4984f6)=>_0x23c34a+_0x4984f6);for(const {cell:_0x197097}of _0x421ec8['createTableWalker'](_0x3a2d6b,{'startRow':_0x486a98,'endRow':_0x486a98+_0x168204-0x1}))_0x777b71['rowInsertionRanges'][_0x2d3f('0x4')](_0x4ff5b8[_0x2d3f('0x8e')][_0x2d3f('0xb')](_0x197097));},{'priority':_0x2d3f('0x49')}),_0x3c2e1a[_0x2d3f('0x5d')][_0x2d3f('0x67')](_0x4c30b6=>{if(_0x4c30b6[_0x2d3f('0x7')]&&_0x4c30b6['subType'][_0x2d3f('0x80')]('tablePaste'))return _0x4c30b6[_0x2d3f('0x89')]?{}:{'type':_0x2d3f('0x4c'),'content':_0xb94d73(_0x4ff5b8['locale'],_0x2d3f('0x5b'))};});const _0x12dedc=()=>{};for(const _0x20ac82 of[_0x2d3f('0x17'),_0x2d3f('0x46'),_0x2d3f('0x52'),'tablePasteCell'])_0x3c2e1a['_suggestionFactory'][_0x2d3f('0x43')](_0x2d3f('0x4c'),_0x20ac82,'join',_0x12dedc),_0x3c2e1a[_0x2d3f('0x87')][_0x2d3f('0x43')](_0x2d3f('0x1c'),_0x20ac82,'join',_0x12dedc);_0x3c2e1a[_0x2d3f('0x87')][_0x2d3f('0x43')](_0x2d3f('0x7d'),_0x2d3f('0x27'),_0x2d3f('0x6a'),_0x12dedc),_0x3c2e1a[_0x2d3f('0x87')]['registerCustomCallback'](_0x2d3f('0x7d'),_0x2d3f('0x27'),_0x2d3f('0x50'),(_0x56c192,_0x2ef1d5,_0x35aea9)=>{const _0x53292e=_0x56c192[_0x2d3f('0x58')](_0xcb6ca4=>_0xcb6ca4[_0x2d3f('0x2f')]())[_0x2d3f('0x94')](_0x578226=>_0x578226),_0x131da6=new Map(_0x53292e['map'](_0xdef2ab=>[_0xdef2ab,null]));if(_0x777b71)for(const {element:_0x25ea23,attributes:_0xcce065}of _0x777b71['cells'])_0xcce065&&_0x131da6['set'](_0x25ea23,_0xcce065);else{if(_0x35aea9&&_0x35aea9[_0x2d3f('0x9b')])for(const [_0x4ed494,_0x473e63]of Object[_0x2d3f('0x79')](_0x35aea9[_0x2d3f('0x9b')])){const _0x2db737=_0x4ff5b8[_0x2d3f('0x8e')][_0x2d3f('0x73')]['get'](_0x4ed494),_0x36a2cb=_0x2db737?_0x2db737['getRange']()[_0x2d3f('0x2f')]():null;_0x36a2cb&&_0x131da6[_0x2d3f('0x19')](_0x36a2cb,_0x473e63);}}_0x4ff5b8[_0x2d3f('0x8e')]['change'](_0x2644d1=>{for(const [_0x36bf89,_0x3e82f2]of _0x131da6)_0x2644d1[_0x2d3f('0x2b')]({...le,..._0x3e82f2},_0x36bf89);});});const _0x3d242b=(_0x242985,_0x5ad08c)=>{_0x3c2e1a[_0x2d3f('0x87')][_0x2d3f('0x43')](_0x242985,_0x2d3f('0x17'),_0x5ad08c,(_0x35e6d7,_0x5a02cb,_0x3869e1)=>{_0x4ff5b8['model'][_0x2d3f('0x57')](_0x5dfd12=>{const _0x5e7e76=[];for(const _0xa89d7d of _0x35e6d7){const _0x99ff19=_0xa89d7d[_0x2d3f('0x9d')]['nodeAfter'];_0x99ff19['is'](_0x2d3f('0x95'),_0x2d3f('0x34'))&&_0x5e7e76[_0x2d3f('0x4')](_0x99ff19);}_0x3c2e1a[_0x2d3f('0x87')]['getSuggestionCallback'](_0x242985,null,_0x5ad08c)(_0x35e6d7,_0x5a02cb,_0x3869e1);for(const _0x225890 of _0x5e7e76)_0x2d3f('0x25')!=_0x225890['root']['rootName']&&_0x5dfd12[_0x2d3f('0x1b')](_0x225890);});});};_0x3d242b(_0x2d3f('0x4c'),_0x2d3f('0x50')),_0x3d242b(_0x2d3f('0x4c'),_0x2d3f('0x6a')),_0x3d242b(_0x2d3f('0x1c'),_0x2d3f('0x50')),_0x3d242b(_0x2d3f('0x1c'),'discard'),_0x3c2e1a[_0x2d3f('0x87')]['registerCustomCallback'](_0x2d3f('0x4c'),_0x2d3f('0x52'),_0x2d3f('0x6a'),_0x7c041e=>{const _0x1c8712=_0x7c041e[_0x2d3f('0x58')](_0x37b083=>_0x37b083[_0x2d3f('0x2f')]()),_0x1c0f35=_0x1c8712[0x0][_0x2d3f('0x8')](_0x2d3f('0x66')),{minRow:_0x460d55,maxRow:_0x31f384}=_0x26fa83[_0x2d3f('0x2d')](_0x1c8712);_0x421ec8[_0x2d3f('0x33')](_0x1c0f35,{'at':_0x460d55,'rows':_0x31f384-_0x460d55+0x1});}),_0x3c2e1a['_suggestionFactory']['registerCustomCallback'](_0x2d3f('0x4c'),_0x2d3f('0x46'),_0x2d3f('0x6a'),_0x14fbff=>{const _0x3361e1=_0x14fbff['map'](_0x281216=>_0x281216[_0x2d3f('0x2f')]()),_0x1bf270=_0x3361e1[0x0][_0x2d3f('0x8')](_0x2d3f('0x66')),{minColumn:_0x3319ca,maxColumn:_0x4a640a}=_0x26fa83['_getCoordsForCells'](_0x3361e1);_0x421ec8['removeColumns'](_0x1bf270,{'at':_0x3319ca,'columns':_0x4a640a-_0x3319ca+0x1});});const _0x1e19e7=(_0x5275b2,_0x6ed1f1)=>{if(!_0x6ed1f1['subType']||!_0x6ed1f1[_0x2d3f('0x7')]['startsWith'](_0x2d3f('0x17')))return;const _0x5c3b8e=_0x6ed1f1['attributes'][_0x2d3f('0x4d')],_0x527565=_0x3c2e1a[_0x2d3f('0x54')]()[_0x2d3f('0x94')](_0x34f08e=>_0x34f08e[_0x2d3f('0x60')]&&_0x34f08e[_0x2d3f('0x62')]&&_0x34f08e[_0x2d3f('0x62')][_0x2d3f('0x4d')]==_0x5c3b8e);_0x527565['length']&&_0x6ed1f1[_0x2d3f('0x5c')]()['length']!=_0x527565['length']&&_0x527565[_0x2d3f('0x93')]((_0x3559cc,_0x19d2d2)=>(_0x3559cc[_0x2d3f('0x6d')]=_0x19d2d2,_0x19d2d2[_0x2d3f('0x89')]=_0x3559cc,_0x19d2d2));};function _0x449864(_0x852590,{showActiveMarker:_0xc632de=!0x0}={}){const {id:_0x5da1ad}=_0x3c2e1a[_0x2d3f('0x97')](_0x852590[_0x2d3f('0x72')]),_0x57d181=[_0x2d3f('0x91'),_0x2d3f('0x3d')],_0x5ded0b=_0x3c2e1a['activeMarkers'][_0x2d3f('0x85')](_0x852590['markerName']);return _0x5ded0b&&_0x57d181['push'](_0x2d3f('0x29')),{'classes':_0x57d181,'attributes':{'data-suggestion':_0x5da1ad},'priority':_0x5ded0b&&_0xc632de?0xbc2:0xbb8};}_0x3c2e1a['on'](_0x2d3f('0x74'),_0x1e19e7,{'priority':_0x2d3f('0x14')}),_0x3c2e1a['on'](_0x2d3f('0x5a'),_0x1e19e7,{'priority':_0x2d3f('0x14')}),_0x4ff5b8['model'][_0x2d3f('0x9')][_0x2d3f('0x6e')](()=>{let _0x397212=!0x1;const _0x4aa5e5=Array['from'](_0x4ff5b8[_0x2d3f('0x8e')][_0x2d3f('0x9')][_0x2d3f('0x5e')]['getChangedMarkers']());for(const {name:_0x10476f,data:_0x57f883}of _0x4aa5e5){const {group:_0x13960c,type:_0x2b96b7,id:_0x36ba4a}=_0x3c2e1a[_0x2d3f('0x97')](_0x10476f);if(_0x2d3f('0x7e')!=_0x13960c||_0x2d3f('0x1c')!=_0x2b96b7||_0x57f883[_0x2d3f('0x65')])continue;if(!_0x3c2e1a[_0x2d3f('0x40')](_0x36ba4a))continue;const _0x37d9f0=_0x3c2e1a['getSuggestion'](_0x36ba4a)[_0x2d3f('0x22')](),_0x20b002=_0x4ff5b8[_0x2d3f('0x10')][_0x2d3f('0x6')](_0x2d3f('0x63'))['me'];for(const _0x3326e0 of _0x3c2e1a[_0x2d3f('0x54')]()){if(!_0x3326e0[_0x2d3f('0x60')]||_0x3326e0['author']!=_0x20b002)continue;if(_0x2d3f('0x7d')!=_0x3326e0[_0x2d3f('0x69')]||_0x2d3f('0x27')!=_0x3326e0['subType'])continue;if(_0x3326e0[_0x2d3f('0x22')]()['every'](_0x9ef108=>_0x37d9f0[_0x2d3f('0x98')](_0x1847e7=>_0x1847e7[_0x2d3f('0x16')](_0x9ef108,!0x0))))for(const _0x42cc7a of _0x3326e0['getAllAdjacentSuggestions']())_0x42cc7a[_0x2d3f('0x60')]&&(_0x42cc7a[_0x2d3f('0x6a')](),_0x397212=!0x0);}}return _0x397212;}),_0x4ff5b8['model']['document']['registerPostFixer'](_0x375d9e=>{const _0x473a4c=_0x4ff5b8[_0x2d3f('0x9f')][_0x2d3f('0x6')]('redo');if(!_0x473a4c||!_0x473a4c[_0x2d3f('0x77')][_0x2d3f('0x76')](_0x375d9e[_0x2d3f('0x21')]))return!0x1;let _0x2ee6cd=!0x1;const _0x1912eb=_0x4ff5b8[_0x2d3f('0x10')]['get']('Users')['me'],_0x17ede9=_0x4ff5b8['model']['document'][_0x2d3f('0x5e')][_0x2d3f('0x4f')](),_0x588ab5=Array[_0x2d3f('0x5')](_0x4ff5b8[_0x2d3f('0x8e')][_0x2d3f('0x9')][_0x2d3f('0x5e')][_0x2d3f('0x70')]())[_0x2d3f('0x94')](({name:_0x1f14e8,data:_0x4e3e92})=>{const {group:_0x5c9671,subType:_0x5e9259,authorId:_0x145d13}=_0x3c2e1a['_splitMarkerName'](_0x1f14e8);return _0x2d3f('0x7e')==_0x5c9671&&_0x2d3f('0x17')==_0x5e9259&&_0x145d13==_0x1912eb['id']&&!_0x4e3e92[_0x2d3f('0x65')];});for(const _0x55d462 of _0x17ede9){if('insert'!=_0x55d462[_0x2d3f('0x69')]||_0x2d3f('0x34')!=_0x55d462[_0x2d3f('0x2c')]||0x1!=_0x55d462[_0x2d3f('0x6f')])continue;const _0xb86a94=_0x375d9e['createRange'](_0x55d462['position'],_0x55d462[_0x2d3f('0x4a')][_0x2d3f('0x64')](0x1));if(!_0x588ab5[_0x2d3f('0x7a')](({data:_0xf35d9d})=>_0xf35d9d[_0x2d3f('0x8b')][_0x2d3f('0x2a')](_0xb86a94)))for(const {name:_0x34eda9,data:_0x471be5}of _0x588ab5)if(_0xb86a94[_0x2d3f('0x16')](_0x471be5[_0x2d3f('0x8b')])){_0x375d9e['updateMarker'](_0x34eda9,{'range':_0xb86a94}),_0x2ee6cd=!0x0;break;}}return _0x2ee6cd;}),_0x4ff5b8['model'][_0x2d3f('0x9')][_0x2d3f('0x6e')](_0x58aba3=>{let _0xb5a992=!0x1;const _0x3e7f41=_0x4ff5b8[_0x2d3f('0x10')]['get'](_0x2d3f('0x63'))['me'],_0xb0c997=_0x3c2e1a[_0x2d3f('0x54')]()[_0x2d3f('0x94')](_0x16f019=>_0x16f019['isInContent']&&_0x16f019[_0x2d3f('0x6c')]==_0x3e7f41),_0x1995ef=new Set(),_0x172fcf=new Set();for(const _0x148673 of _0xb0c997)if(_0x2d3f('0x17')==_0x148673['subType'])for(const _0x56cc0e of _0x148673[_0x2d3f('0xf')]()){const _0x4d99f1=_0x56cc0e['getRange']()[_0x2d3f('0x2f')]();if(_0x4d99f1){if(_0x4d99f1['is']('element',_0x2d3f('0x34'))&&se(_0x4d99f1)){_0x148673[_0x2d3f('0x30')](_0x56cc0e[_0x2d3f('0x2c')]),_0x1995ef[_0x2d3f('0x48')](_0x4d99f1),_0xb5a992=!0x0;const _0x56e0c4=_0x4d99f1[_0x2d3f('0xa')],_0x4d18f5=_0x4d99f1[_0x2d3f('0x8d')],_0x4253c1=_0x56e0c4&&_0x56e0c4['is']('element',_0x2d3f('0x34')),_0x4b7a3=_0x4d18f5&&_0x4d18f5['is']('element',_0x2d3f('0x34'));_0x4253c1&&!_0x1995ef['has'](_0x56e0c4)&&_0x172fcf[_0x2d3f('0x48')](_0x56e0c4),_0x4b7a3&&!_0x1995ef[_0x2d3f('0x76')](_0x4d18f5)&&_0x172fcf[_0x2d3f('0x48')](_0x4d18f5);}else _0x4d99f1['is'](_0x2d3f('0x95'),'paragraph')&&_0x4d99f1[_0x2d3f('0x45')]&&(_0x148673[_0x2d3f('0x30')](_0x56cc0e[_0x2d3f('0x2c')]),_0xb5a992=!0x0);}}else{if(_0x2d3f('0x27')==_0x148673[_0x2d3f('0x7')]){if(!_0x148673[_0x2d3f('0x62')]||!_0x148673[_0x2d3f('0x62')][_0x2d3f('0x4d')])continue;const _0x3cf2e9=_0x148673[_0x2d3f('0x62')][_0x2d3f('0x9b')];if(_0x3cf2e9&&Object[_0x2d3f('0x2')](_0x3cf2e9)['length'])continue;const _0x419164=_0x148673[_0x2d3f('0x62')][_0x2d3f('0x4d')];let _0x909e41=!0x0,_0x327e9e=!0x0;for(const _0x2ccda5 of _0xb0c997)if(_0x2ccda5[_0x2d3f('0x7')]&&_0x2ccda5[_0x2d3f('0x7')][_0x2d3f('0x80')]('tablePaste')){if(!_0x2ccda5['attributes'][_0x2d3f('0x4d')]){_0x327e9e=!0x1;break;}if(_0x2ccda5['id']!=_0x148673['id']&&_0x2ccda5[_0x2d3f('0x62')]['tablePasteChainId']==_0x419164){_0x909e41=!0x1;break;}}_0x327e9e&&_0x909e41&&(_0x148673[_0x2d3f('0x13')](),_0xb5a992=!0x0);}}for(const _0x37713d of _0x1995ef)_0x58aba3['remove'](_0x37713d);for(const _0x177f82 of _0x172fcf)_0x58aba3[_0x2d3f('0x1b')](_0x177f82);return _0xb5a992;}),_0x4ff5b8[_0x2d3f('0x37')][_0x2d3f('0x1f')](_0x2d3f('0x11'))[_0x2d3f('0x7b')]({'model':'suggestion:formatBlock:tablePasteCell','view':_0x449864,'converterPriority':'high'}),_0x4ff5b8[_0x2d3f('0x37')][_0x2d3f('0x1f')](_0x2d3f('0x1'))[_0x2d3f('0x7b')]({'model':_0x2d3f('0x8a'),'view':(_0x3adcfb,_0x13d71b)=>{if(_0x13d71b[_0x2d3f('0x20')][_0x2d3f('0x9e')])return _0x449864(_0x3adcfb,{'showActiveMarker':!0x1});},'converterPriority':_0x2d3f('0x14')});const _0x475d43=_0x4ff5b8[_0x2d3f('0x38')]['view'];this['listenTo'](_0x475d43[_0x2d3f('0x9')],'clipboardOutput',(_0x5781a5,_0x157525)=>{const _0x78949f=[];for(const _0x2790bb of _0x475d43[_0x2d3f('0x3e')](_0x157525[_0x2d3f('0x8c')])[_0x2d3f('0x59')]())_0x2790bb['is']('element',_0x2d3f('0x9a'))&&_0x78949f[_0x2d3f('0x4')](_0x2790bb);_0x475d43[_0x2d3f('0x57')](_0x521738=>{for(const _0x571231 of _0x78949f)_0x521738['move'](_0x521738[_0x2d3f('0x3e')](_0x571231),_0x521738['createPositionBefore'](_0x571231)),_0x521738['remove'](_0x571231);});});}}function se(_0x55d642){if(_0x55d642[_0x2d3f('0x45')])return!0x0;const _0x468e2b=_0x55d642['getChild'](0x0);return _0x468e2b['is'](_0x2d3f('0x95'),_0x2d3f('0x84'))&&_0x468e2b[_0x2d3f('0x45')];}function ae(_0x2cfcf0,_0x4e49f5={},_0x5cd868){for(const {isAnchor:_0x476b6a,cellHeight:_0x5a3189,cellWidth:_0x55e3fc}of _0x5cd868[_0x2d3f('0x47')](_0x2cfcf0,{'includeAllSlots':!0x0,..._0x4e49f5}))if(!_0x476b6a||0x1!=_0x5a3189||0x1!=_0x55e3fc)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4b03=['nodeAfter','*Replace\x20table\x20cells*','isEmpty','tablePasteChainId','insertionRanges','createTableWalker','element','row','removeMarker','deletion','_suggestionFactory','removeColumns','ck-suggestion-marker--active','getRanges','trackChanges','name','tableCellBorderStyle','suggestion','getItems','getColumns','clipboardOutput','markerName','documentSelection','set','registerDescriptionCallback','registerPostFixer','change','getChangedMarkers','getSelectionAffectedTableCells','getRowIndexes','end','some','type','_createdBatches','insert','paragraph','differ','getContainedElement','markerAttributes','subType','return','first','document','discard','endRow','tablePasteCell','tableCellBorderColor','TrackChangesEditing','rowInsertionIndexes','listenTo','view','plugins','containsRange','markerToHighlight','previousSibling','nextSibling','schema','getChanges','start','suggestionLoaded','getRange','redo','requires','updateMarker','showSuggestionHighlights','removeMarkers','getShiftedBy','formatBlock','accept','$graveyard','rowInsertionRanges','getSuggestions','stop','cell','oldRange','attributes','low','previous','forceDefaultExecution','getChildren','tableCell','last','wrap','tableCellVerticalAlignment','tableCellSuggestion','tablePasteRow','tablePaste','filter','high','rows','tablePasteColumn','suggestion-td','reduce','includes','_descriptionFactory','insertRows','position','_isForcedDefaultExecutionBlock','getTableIfOnlyTableInContent','commands','map','_replaceTableSlotCell','createRangeIn','getChild','table','push','root','tableCellHorizontalAlignment','get','newRange','markMultiRangeDeletion','elementToElement','move','fill','getRows','startsWith','createPositionBefore','Users','fromEntries','isInContent','rootName','columnInsertionRanges','from','hasSuggestion','author','_splitMarkerName','columnInsertionIndexes','removeRows','TableUtils','deletionRanges','find','suggestion:formatBlock:tablePasteCell','insertColumns','getAttributes','has','register','markMultiRangeInsertion','getAllAdjacentSuggestions','tableCellBorderWidth','options','createRange','findAncestor','remove','getSuggestionCallback','createElement','columns','createRangeOn','getColumnIndexes','length','keys','for','cells','tableCellPadding','dataDowncast','registerCustomCallback','getMarkers','insertion','insertContent','markMultiRangeBlockFormat','editor','TableClipboard','unwrap','add','content','join','isEqual','setAttributes','value','model','conversion'];(function(_0x56a170,_0x4b0376){const _0x34b1c2=function(_0xd499d2){while(--_0xd499d2){_0x56a170['push'](_0x56a170['shift']());}};_0x34b1c2(++_0x4b0376);}(_0x4b03,0x1d0));const _0x34b1=function(_0x56a170,_0x4b0376){_0x56a170=_0x56a170-0x0;let _0x34b1c2=_0x4b03[_0x56a170];return _0x34b1c2;};import{getTranslation as _0x224e57}from'../utils/common-translations';import{Plugin as _0xa3052f}from'ckeditor5/src/core';import _0x3dac4d from'./table';import{uid as _0x27d298,priorities as _0x14a098}from'ckeditor5/src/utils';const ne=[_0x34b1('0xe'),_0x34b1('0x5c'),_0x34b1('0x3e'),_0x34b1('0x99'),_0x34b1('0x81'),'tableCellBackgroundColor',_0x34b1('0x1c')],le=Object[_0x34b1('0xa4')](ne[_0x34b1('0x92')](_0x3d9584=>[_0x3d9584,null]));export default class mt extends _0xa3052f{static get[_0x34b1('0x6c')](){return[_0x3dac4d];}['afterInit'](){const _0x1a2db5=this[_0x34b1('0x23')];if(!_0x1a2db5[_0x34b1('0x61')][_0x34b1('0xa')](_0x34b1('0x24')))return;const _0x5ce15c=_0x1a2db5[_0x34b1('0x61')]['get'](_0x34b1('0x5d')),_0xaeac72=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0x4')),_0x33a721=_0x1a2db5['plugins'][_0x34b1('0x9a')](_0x3dac4d),_0x5af848=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0x24'));_0x33a721['_tablePostFixingSubtypes'][_0x34b1('0x97')]('tablePasteRow',_0x34b1('0x88')),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x66')][_0x34b1('0xb')](_0x34b1('0x82'),{'allowIn':_0x34b1('0x7e'),'allowContentOf':_0x34b1('0x7e'),'isLimit':!0x0}),_0x1a2db5[_0x34b1('0x2d')][_0x34b1('0x9d')]({'model':_0x34b1('0x82'),'view':_0x34b1('0x89')});let _0x1508b3=null;_0x1a2db5['model']['on'](_0x34b1('0x21'),(_0xb3a8ec,_0x26d01a)=>{const [_0x2d7e33,_0x26a530]=_0x26d01a,_0x3fa77d=_0x26d01a[_0x26d01a[_0x34b1('0x18')]-0x1];_0x3fa77d&&_0x3fa77d[_0x34b1('0x7c')]||_0x5ce15c[_0x34b1('0x8f')]||this[_0x34b1('0x23')][_0x34b1('0x91')]['get'](_0x34b1('0x3c'))[_0x34b1('0x2b')]&&function(_0x2de4c5,_0x21ddd9,_0x57cb00,_0x509381,_0x50e655){if(_0x21ddd9&&!_0x21ddd9['is'](_0x34b1('0x44')))return!0x1;const _0x2e7cd6=_0x50e655[_0x34b1('0x90')](_0x2de4c5,_0x57cb00);if(!_0x2e7cd6||!ae(_0x2e7cd6,null,_0x509381))return!0x1;const _0x39687c=_0x509381[_0x34b1('0x4a')](_0x57cb00[_0x34b1('0x58')]['selection']);if(!_0x39687c[_0x34b1('0x18')])return!0x1;const _0x7ae198=_0x39687c[0x0][_0x34b1('0x11')](_0x34b1('0x96')),_0xfce058=_0x509381[_0x34b1('0x4b')](_0x39687c),_0x118557=_0x509381[_0x34b1('0x17')](_0x39687c),_0x29b6b1={'startRow':_0xfce058[_0x34b1('0x57')],'endRow':_0xfce058[_0x34b1('0x7f')],'startColumn':_0x118557[_0x34b1('0x57')],'endColumn':_0x118557[_0x34b1('0x7f')]};return 0x1==_0x39687c[_0x34b1('0x18')]&&(_0x29b6b1[_0x34b1('0x5a')]+=_0x509381[_0x34b1('0xa0')](_0x2e7cd6)-0x1,_0x29b6b1['endColumn']+=_0x509381[_0x34b1('0x41')](_0x2e7cd6)-0x1),ae(_0x7ae198,_0x29b6b1,_0x509381);}(_0x2d7e33,_0x26a530,_0x1a2db5[_0x34b1('0x2c')],_0xaeac72,_0x5af848)&&(_0xb3a8ec['stop'](),_0x1508b3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1a2db5['model'][_0x34b1('0x48')](()=>{_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x21')](_0x26d01a[0x0],_0x26d01a[0x1],_0x26d01a[0x2],_0x26d01a[0x3],{'forceDefaultExecution':!0x0});const _0x3d34f5=_0x27d298(),{rowInsertionRanges:_0x15761a,columnInsertionRanges:_0x1a952f,insertionRanges:_0x12b284,deletionRanges:_0x4993ee,cells:_0x228af0}=_0x1508b3;_0x15761a[_0x34b1('0x18')]&&_0x5ce15c[_0x34b1('0xc')](_0x15761a,_0x34b1('0x83'),{'tablePasteChainId':_0x3d34f5}),_0x1a952f[_0x34b1('0x18')]&&_0x5ce15c[_0x34b1('0xc')](_0x1a952f,_0x34b1('0x88'),{'tablePasteChainId':_0x3d34f5}),_0x12b284['length']&&_0x5ce15c[_0x34b1('0xc')](_0x12b284,'tablePaste',{'tablePasteChainId':_0x3d34f5,'skipNestingCheck':!0x0}),_0x4993ee[_0x34b1('0x18')]&&_0x5ce15c[_0x34b1('0x9c')](_0x4993ee,'tablePaste',{'tablePasteChainId':_0x3d34f5,'skipNestingCheck':!0x0});const _0x5dd8cd=_0x5ce15c[_0x34b1('0x22')](_0x228af0['map'](({element:_0x4878a7})=>_0x4878a7),{'formatGroupId':_0x27d298()},[],_0x34b1('0x5b'),{'tablePasteChainId':_0x3d34f5});if(_0x5dd8cd){const _0x3d475e=_0x5dd8cd[_0x34b1('0x1f')](),_0x5928e2=[];for(const {element:_0x56908b,attributes:_0x184555}of _0x228af0){if(!_0x184555)continue;const _0x4d36ec=_0x1a2db5['model'][_0x34b1('0x16')](_0x56908b),_0xa7dd22=_0x3d475e['find'](_0x131d35=>_0x131d35[_0x34b1('0x6a')]()[_0x34b1('0x29')](_0x4d36ec));_0xa7dd22&&_0x5928e2['push']([_0xa7dd22[_0x34b1('0x3d')],_0x184555]);}_0x5928e2['length']&&_0x5dd8cd['setAttribute'](_0x34b1('0x54'),Object[_0x34b1('0xa4')](_0x5928e2));}_0x1508b3=null;}));},{'priority':_0x14a098[_0x34b1('0x86')]+0xa}),_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0x24'))['on'](_0x34b1('0x93'),(_0x1559ba,_0x105870)=>{const [_0x2de128,_0x1c6ec6,,_0x3581fa]=_0x105870;if(!_0x1508b3)return;_0x1559ba[_0x34b1('0x76')]();const _0x1fb37a=_0x2de128[_0x34b1('0x77')],_0x4f8e2e=_0x1c6ec6,_0x5cff53=se(_0x1fb37a),_0x7e6d7f=se(_0x4f8e2e);_0x1559ba[_0x34b1('0x56')]=_0x1fb37a;let _0x53f802=null,_0x4f8107=null;if(_0x7e6d7f||_0x5cff53){if(_0x5cff53&&!_0x7e6d7f){_0x3581fa['remove'](_0x1fb37a['getChild'](0x0));for(const _0x5a2957 of Array[_0x34b1('0xa8')](_0x4f8e2e[_0x34b1('0x7d')]()))_0x3581fa[_0x34b1('0x50')](_0x5a2957,_0x1fb37a,'end');const _0x40e56e=_0x1508b3[_0x34b1('0x5e')]['includes'](_0x2de128[_0x34b1('0x35')]),_0x3c0322=_0x1508b3[_0x34b1('0x2')][_0x34b1('0x8b')](_0x2de128['column']);_0x40e56e||_0x3c0322||(_0x53f802=_0x3581fa[_0x34b1('0x94')](_0x1fb37a));}else _0x7e6d7f&&!_0x5cff53&&(_0x4f8107=_0x3581fa[_0x34b1('0x94')](_0x1fb37a));}else{const _0x42a8ed=_0x3581fa[_0x34b1('0x14')]('tableCellSuggestion'),_0x5c0372=_0x3581fa['createElement'](_0x34b1('0x82'));_0x3581fa[_0x34b1('0x80')](_0x3581fa[_0x34b1('0x94')](_0x1fb37a),_0x5c0372),_0x3581fa['insert'](_0x42a8ed,_0x1fb37a,0x0);for(const _0xc7d27 of Array[_0x34b1('0xa8')](_0x4f8e2e[_0x34b1('0x7d')]()))_0x3581fa[_0x34b1('0x50')](_0xc7d27,_0x42a8ed,_0x34b1('0x4c'));_0x53f802=_0x3581fa[_0x34b1('0x16')](_0x42a8ed),_0x4f8107=_0x3581fa['createRangeOn'](_0x5c0372);}const _0x68318f=Array[_0x34b1('0xa8')](_0x4f8e2e[_0x34b1('0x9')]())[_0x34b1('0x85')](([_0x4242e0])=>ne[_0x34b1('0x8b')](_0x4242e0));_0x1508b3[_0x34b1('0x1b')][_0x34b1('0x97')]({'element':_0x1fb37a,'attributes':_0x68318f[_0x34b1('0x18')]?Object[_0x34b1('0xa4')](_0x68318f):null}),_0x53f802&&_0x1508b3[_0x34b1('0x32')][_0x34b1('0x97')](_0x53f802),_0x4f8107&&_0x1508b3[_0x34b1('0x5')][_0x34b1('0x97')](_0x4f8107);},{'priority':_0x34b1('0x86')}),_0xaeac72['on'](_0x34b1('0x8'),(_0x34ce12,_0x13e536)=>{const [_0x11195e,_0x5cdd33={}]=_0x13e536;if(!_0x1508b3)return;const _0x34a920=_0x5cdd33['at']||0x0,_0x5be945=_0x5cdd33[_0x34b1('0x15')]||0x1;_0x1508b3[_0x34b1('0x2')]=new Array(_0x5be945)[_0x34b1('0x9f')](_0x34a920)[_0x34b1('0x92')]((_0x29a551,_0x322fbd)=>_0x29a551+_0x322fbd);for(const {cell:_0x562fb1}of _0xaeac72['createTableWalker'](_0x11195e,{'startColumn':_0x34a920,'endColumn':_0x34a920+_0x5be945-0x1}))_0x1508b3[_0x34b1('0xa7')][_0x34b1('0x97')](_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x16')](_0x562fb1));},{'priority':_0x34b1('0x7a')}),_0xaeac72['on'](_0x34b1('0x8d'),(_0x12001c,_0x53522e)=>{const [_0x56b2a3,_0x1b398d={}]=_0x53522e;if(!_0x1508b3)return;const _0x52a775=_0x1b398d['at']||0x0,_0x1b4f4d=_0x1b398d[_0x34b1('0x87')]||0x1;_0x1508b3[_0x34b1('0x5e')]=new Array(_0x1b4f4d)[_0x34b1('0x9f')](_0x52a775)[_0x34b1('0x92')]((_0x5714b6,_0x542a49)=>_0x5714b6+_0x542a49);for(const {cell:_0x2b7263}of _0xaeac72[_0x34b1('0x33')](_0x56b2a3,{'startRow':_0x52a775,'endRow':_0x52a775+_0x1b4f4d-0x1}))_0x1508b3[_0x34b1('0x74')][_0x34b1('0x97')](_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x16')](_0x2b7263));},{'priority':_0x34b1('0x7a')}),_0x5ce15c[_0x34b1('0x8c')][_0x34b1('0x46')](_0x314ea2=>{if(_0x314ea2['subType']&&_0x314ea2[_0x34b1('0x55')]['startsWith'](_0x34b1('0x84')))return _0x314ea2['previous']?{}:{'type':_0x34b1('0x20'),'content':_0x224e57(_0x1a2db5['locale'],_0x34b1('0x2f'))};});const _0x210324=()=>{};for(const _0x2879c9 of['tablePaste',_0x34b1('0x88'),_0x34b1('0x83'),'tablePasteCell'])_0x5ce15c['_suggestionFactory'][_0x34b1('0x1e')](_0x34b1('0x20'),_0x2879c9,_0x34b1('0x28'),_0x210324),_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')]('deletion',_0x2879c9,'join',_0x210324);_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')]('formatBlock','tablePasteCell',_0x34b1('0x59'),_0x210324),_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')](_0x34b1('0x71'),_0x34b1('0x5b'),_0x34b1('0x72'),(_0x406f1a,_0x477505,_0x26b9ec)=>{const _0x1bb5a6=_0x406f1a[_0x34b1('0x92')](_0x2d30d5=>_0x2d30d5[_0x34b1('0x53')]())[_0x34b1('0x85')](_0x3b54e8=>_0x3b54e8),_0x2528fb=new Map(_0x1bb5a6['map'](_0x3a364d=>[_0x3a364d,null]));if(_0x1508b3)for(const {element:_0x2a3a1d,attributes:_0x1b98d8}of _0x1508b3[_0x34b1('0x1b')])_0x1b98d8&&_0x2528fb[_0x34b1('0x45')](_0x2a3a1d,_0x1b98d8);else{if(_0x26b9ec&&_0x26b9ec['markerAttributes'])for(const [_0xac8a10,_0x4a7550]of Object['entries'](_0x26b9ec[_0x34b1('0x54')])){const _0x30571c=_0x1a2db5['model']['markers'][_0x34b1('0x9a')](_0xac8a10),_0x2882f1=_0x30571c?_0x30571c['getRange']()[_0x34b1('0x53')]():null;_0x2882f1&&_0x2528fb[_0x34b1('0x45')](_0x2882f1,_0x4a7550);}}_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x48')](_0x572ae2=>{for(const [_0x2bba89,_0xef5825]of _0x2528fb)_0x572ae2[_0x34b1('0x2a')]({...le,..._0xef5825},_0x2bba89);});});const _0x51544e=(_0x228933,_0x4aa192)=>{_0x5ce15c[_0x34b1('0x38')]['registerCustomCallback'](_0x228933,'tablePaste',_0x4aa192,(_0x4ab897,_0xc3ca8d,_0x2ddb28)=>{_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x48')](_0x302a05=>{const _0x4f52c5=[];for(const _0x51ff3e of _0x4ab897){const _0x394f9f=_0x51ff3e[_0x34b1('0x68')][_0x34b1('0x2e')];_0x394f9f['is']('element','tableCellSuggestion')&&_0x4f52c5['push'](_0x394f9f);}_0x5ce15c['_suggestionFactory'][_0x34b1('0x13')](_0x228933,null,_0x4aa192)(_0x4ab897,_0xc3ca8d,_0x2ddb28);for(const _0xb2b877 of _0x4f52c5)_0x34b1('0x73')!=_0xb2b877[_0x34b1('0x98')][_0x34b1('0xa6')]&&_0x302a05[_0x34b1('0x25')](_0xb2b877);});});};_0x51544e(_0x34b1('0x20'),_0x34b1('0x72')),_0x51544e(_0x34b1('0x20'),'discard'),_0x51544e('deletion',_0x34b1('0x72')),_0x51544e(_0x34b1('0x37'),_0x34b1('0x59')),_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')](_0x34b1('0x20'),_0x34b1('0x83'),_0x34b1('0x59'),_0x1c50a9=>{const _0x3af8d0=_0x1c50a9[_0x34b1('0x92')](_0x19e832=>_0x19e832[_0x34b1('0x53')]()),_0x2b0e19=_0x3af8d0[0x0]['findAncestor'](_0x34b1('0x96')),{minRow:_0x5c03fa,maxRow:_0x5134e0}=_0x33a721['_getCoordsForCells'](_0x3af8d0);_0xaeac72[_0x34b1('0x3')](_0x2b0e19,{'at':_0x5c03fa,'rows':_0x5134e0-_0x5c03fa+0x1});}),_0x5ce15c['_suggestionFactory'][_0x34b1('0x1e')]('insertion',_0x34b1('0x88'),_0x34b1('0x59'),_0x277ef3=>{const _0x4fe0c5=_0x277ef3[_0x34b1('0x92')](_0x48710d=>_0x48710d[_0x34b1('0x53')]()),_0x586137=_0x4fe0c5[0x0][_0x34b1('0x11')](_0x34b1('0x96')),{minColumn:_0x13a5f6,maxColumn:_0x529267}=_0x33a721['_getCoordsForCells'](_0x4fe0c5);_0xaeac72[_0x34b1('0x39')](_0x586137,{'at':_0x13a5f6,'columns':_0x529267-_0x13a5f6+0x1});});const _0x31c0d4=(_0x19abde,_0x59cb01)=>{if(!_0x59cb01[_0x34b1('0x55')]||!_0x59cb01[_0x34b1('0x55')]['startsWith']('tablePaste'))return;const _0x32416e=_0x59cb01[_0x34b1('0x79')]['tablePasteChainId'],_0xc77285=_0x5ce15c[_0x34b1('0x75')]()[_0x34b1('0x85')](_0x1171ff=>_0x1171ff[_0x34b1('0xa5')]&&_0x1171ff[_0x34b1('0x79')]&&_0x1171ff[_0x34b1('0x79')]['tablePasteChainId']==_0x32416e);_0xc77285['length']&&_0x59cb01[_0x34b1('0xd')]()[_0x34b1('0x18')]!=_0xc77285[_0x34b1('0x18')]&&_0xc77285[_0x34b1('0x8a')]((_0x1fc5be,_0x1ebf1a)=>(_0x1fc5be['next']=_0x1ebf1a,_0x1ebf1a[_0x34b1('0x7b')]=_0x1fc5be,_0x1ebf1a));};function _0x311b80(_0x145cce,{showActiveMarker:_0x31d76=!0x0}={}){const {id:_0x5c3509}=_0x5ce15c['_splitMarkerName'](_0x145cce[_0x34b1('0x43')]),_0x5d8010=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x32086e=_0x5ce15c['activeMarkers'][_0x34b1('0x8b')](_0x145cce[_0x34b1('0x43')]);return _0x32086e&&_0x5d8010[_0x34b1('0x97')](_0x34b1('0x3a')),{'classes':_0x5d8010,'attributes':{'data-suggestion':_0x5c3509},'priority':_0x32086e&&_0x31d76?0xbc2:0xbb8};}_0x5ce15c['on'](_0x34b1('0x69'),_0x31c0d4,{'priority':_0x34b1('0x86')}),_0x5ce15c['on']('suggestionUnloaded',_0x31c0d4,{'priority':_0x34b1('0x86')}),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')]['registerPostFixer'](()=>{let _0x485393=!0x1;const _0x5e522a=Array[_0x34b1('0xa8')](_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')][_0x34b1('0x52')][_0x34b1('0x49')]());for(const {name:_0x3b0fb0,data:_0x42d58f}of _0x5e522a){const {group:_0x3b7585,type:_0x52df8e,id:_0x5adf52}=_0x5ce15c[_0x34b1('0x1')](_0x3b0fb0);if(_0x34b1('0x3f')!=_0x3b7585||_0x34b1('0x37')!=_0x52df8e||_0x42d58f['oldRange'])continue;if(!_0x5ce15c[_0x34b1('0xa9')](_0x5adf52))continue;const _0xdcf5a=_0x5ce15c['getSuggestion'](_0x5adf52)[_0x34b1('0x3b')](),_0x12c3f6=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0xa3'))['me'];for(const _0xa37f87 of _0x5ce15c[_0x34b1('0x75')]()){if(!_0xa37f87[_0x34b1('0xa5')]||_0xa37f87['author']!=_0x12c3f6)continue;if('formatBlock'!=_0xa37f87[_0x34b1('0x4e')]||_0x34b1('0x5b')!=_0xa37f87[_0x34b1('0x55')])continue;if(_0xa37f87['getRanges']()['every'](_0x480560=>_0xdcf5a[_0x34b1('0x4d')](_0x77e562=>_0x77e562['containsRange'](_0x480560,!0x0))))for(const _0xb76e72 of _0xa37f87[_0x34b1('0xd')]())_0xb76e72[_0x34b1('0xa5')]&&(_0xb76e72['discard'](),_0x485393=!0x0);}}return _0x485393;}),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')][_0x34b1('0x47')](_0x53b311=>{const _0x4d7e0c=_0x1a2db5[_0x34b1('0x91')]['get'](_0x34b1('0x6b'));if(!_0x4d7e0c||!_0x4d7e0c[_0x34b1('0x4f')]['has'](_0x53b311['batch']))return!0x1;let _0x1cffc7=!0x1;const _0xd44fc4=_0x1a2db5['plugins'][_0x34b1('0x9a')](_0x34b1('0xa3'))['me'],_0x28b985=_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')]['differ'][_0x34b1('0x67')](),_0x4c3a19=Array[_0x34b1('0xa8')](_0x1a2db5[_0x34b1('0x2c')]['document'][_0x34b1('0x52')][_0x34b1('0x49')]())[_0x34b1('0x85')](({name:_0x5eb327,data:_0x25f8d6})=>{const {group:_0x394501,subType:_0x185ff2,authorId:_0x1fd069}=_0x5ce15c[_0x34b1('0x1')](_0x5eb327);return'suggestion'==_0x394501&&_0x34b1('0x84')==_0x185ff2&&_0x1fd069==_0xd44fc4['id']&&!_0x25f8d6[_0x34b1('0x78')];});for(const _0x2804a0 of _0x28b985){if(_0x34b1('0x50')!=_0x2804a0[_0x34b1('0x4e')]||_0x34b1('0x82')!=_0x2804a0[_0x34b1('0x3d')]||0x1!=_0x2804a0[_0x34b1('0x18')])continue;const _0x1e1c1c=_0x53b311[_0x34b1('0x10')](_0x2804a0['position'],_0x2804a0[_0x34b1('0x8e')][_0x34b1('0x70')](0x1));if(!_0x4c3a19[_0x34b1('0x6')](({data:_0x514646})=>_0x514646[_0x34b1('0x9b')][_0x34b1('0x29')](_0x1e1c1c)))for(const {name:_0x43b4e7,data:_0x3e1fc3}of _0x4c3a19)if(_0x1e1c1c[_0x34b1('0x62')](_0x3e1fc3[_0x34b1('0x9b')])){_0x53b311[_0x34b1('0x6d')](_0x43b4e7,{'range':_0x1e1c1c}),_0x1cffc7=!0x0;break;}}return _0x1cffc7;}),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')]['registerPostFixer'](_0x556f51=>{let _0x5ed4cf=!0x1;const _0x1ba57a=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0xa3'))['me'],_0x295d17=_0x5ce15c['getSuggestions']()[_0x34b1('0x85')](_0x46a9f6=>_0x46a9f6[_0x34b1('0xa5')]&&_0x46a9f6[_0x34b1('0x0')]==_0x1ba57a),_0x589141=new Set(),_0x2d8887=new Set();for(const _0x598e48 of _0x295d17)if(_0x34b1('0x84')==_0x598e48[_0x34b1('0x55')])for(const _0xaf15f2 of _0x598e48[_0x34b1('0x1f')]()){const _0x2cf568=_0xaf15f2['getRange']()[_0x34b1('0x53')]();if(_0x2cf568){if(_0x2cf568['is'](_0x34b1('0x34'),_0x34b1('0x82'))&&se(_0x2cf568)){_0x598e48[_0x34b1('0x36')](_0xaf15f2['name']),_0x589141[_0x34b1('0x26')](_0x2cf568),_0x5ed4cf=!0x0;const _0x438b32=_0x2cf568[_0x34b1('0x65')],_0x54ea5d=_0x2cf568[_0x34b1('0x64')],_0x4fab5b=_0x438b32&&_0x438b32['is'](_0x34b1('0x34'),_0x34b1('0x82')),_0x2d4efe=_0x54ea5d&&_0x54ea5d['is'](_0x34b1('0x34'),_0x34b1('0x82'));_0x4fab5b&&!_0x589141['has'](_0x438b32)&&_0x2d8887['add'](_0x438b32),_0x2d4efe&&!_0x589141[_0x34b1('0xa')](_0x54ea5d)&&_0x2d8887[_0x34b1('0x26')](_0x54ea5d);}else _0x2cf568['is']('element','paragraph')&&_0x2cf568[_0x34b1('0x30')]&&(_0x598e48['removeMarker'](_0xaf15f2[_0x34b1('0x3d')]),_0x5ed4cf=!0x0);}}else{if(_0x34b1('0x5b')==_0x598e48[_0x34b1('0x55')]){if(!_0x598e48[_0x34b1('0x79')]||!_0x598e48[_0x34b1('0x79')][_0x34b1('0x31')])continue;const _0x2bf9be=_0x598e48[_0x34b1('0x79')][_0x34b1('0x54')];if(_0x2bf9be&&Object[_0x34b1('0x19')](_0x2bf9be)[_0x34b1('0x18')])continue;const _0x52497d=_0x598e48[_0x34b1('0x79')][_0x34b1('0x31')];let _0x3d26a7=!0x0,_0x361805=!0x0;for(const _0x4b0280 of _0x295d17)if(_0x4b0280[_0x34b1('0x55')]&&_0x4b0280['subType'][_0x34b1('0xa1')](_0x34b1('0x84'))){if(!_0x4b0280[_0x34b1('0x79')]['tablePasteChainId']){_0x361805=!0x1;break;}if(_0x4b0280['id']!=_0x598e48['id']&&_0x4b0280[_0x34b1('0x79')][_0x34b1('0x31')]==_0x52497d){_0x3d26a7=!0x1;break;}}_0x361805&&_0x3d26a7&&(_0x598e48[_0x34b1('0x6f')](),_0x5ed4cf=!0x0);}}for(const _0x2fc8c2 of _0x589141)_0x556f51[_0x34b1('0x12')](_0x2fc8c2);for(const _0x119c5f of _0x2d8887)_0x556f51[_0x34b1('0x25')](_0x119c5f);return _0x5ed4cf;}),_0x1a2db5[_0x34b1('0x2d')]['for']('editingDowncast')[_0x34b1('0x63')]({'model':_0x34b1('0x7'),'view':_0x311b80,'converterPriority':'high'}),_0x1a2db5['conversion'][_0x34b1('0x1a')](_0x34b1('0x1d'))[_0x34b1('0x63')]({'model':_0x34b1('0x7'),'view':(_0x3b05da,_0x153708)=>{if(_0x153708[_0x34b1('0xf')][_0x34b1('0x6e')])return _0x311b80(_0x3b05da,{'showActiveMarker':!0x1});},'converterPriority':_0x34b1('0x86')});const _0x226789=_0x1a2db5['editing'][_0x34b1('0x60')];this[_0x34b1('0x5f')](_0x226789[_0x34b1('0x58')],_0x34b1('0x42'),(_0x4c37a4,_0x3aea1c)=>{const _0x4f25ff=[];for(const _0x565cd6 of _0x226789['createRangeIn'](_0x3aea1c[_0x34b1('0x27')])[_0x34b1('0x40')]())_0x565cd6['is'](_0x34b1('0x34'),_0x34b1('0x89'))&&_0x4f25ff[_0x34b1('0x97')](_0x565cd6);_0x226789[_0x34b1('0x48')](_0x41bfa0=>{for(const _0x5112fb of _0x4f25ff)_0x41bfa0[_0x34b1('0x9e')](_0x41bfa0['createRangeIn'](_0x5112fb),_0x41bfa0[_0x34b1('0xa2')](_0x5112fb)),_0x41bfa0['remove'](_0x5112fb);});});}}function se(_0x1cddaa){if(_0x1cddaa[_0x34b1('0x30')])return!0x0;const _0x427475=_0x1cddaa[_0x34b1('0x95')](0x0);return _0x427475['is'](_0x34b1('0x34'),_0x34b1('0x51'))&&_0x427475[_0x34b1('0x30')];}function ae(_0x1cc8b6,_0x212e9a={},_0x45beee){for(const {isAnchor:_0xa4faf,cellHeight:_0x1aa8e6,cellWidth:_0xa713d7}of _0x45beee[_0x34b1('0x33')](_0x1cc8b6,{'includeAllSlots':!0x0,..._0x212e9a}))if(!_0xa4faf||0x1!=_0x1aa8e6||0x1!=_0xa713d7)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b33=['createPositionAfter','document','FORMAT_HEADER_ROW','getRowIndexes','item','includes','showSuggestionHighlights','commandParams','getCellLocation','markerName','highest','parent','commands','removeClass','markerRange','findAncestor','commandName','_splitMarkerName','formatBlock','nodeAfter','index','ck-suggestion-marker--active','setTableColumnHeader','childCount','model','has','unbindElementFromMarkerName','getColumnIndexes','forceValue','last','bindElementToMarker','cell','writer','_descriptionFactory','selection','removeMarker:suggestion','markerNameToElements','from','consume','removeAttribute','TrackChangesEditing','plugins','headingRows','getSuggestion','change','mapper','isBefore','consumable','afterInit','markBlockFormat','setTableRowHeader','editor','getAttribute','FORMAT_REGULAR_COLUMN','accept','getSelectionAffectedTableCells','getChild','ck-suggestion-marker-','FORMAT_REGULAR_ROW','data','nodeBefore','value','get','registerDescriptionCallback','end','createPositionBefore','editing','FORMAT_HEADER_COLUMN','registerCustomCallback','name','table','downcastDispatcher','setAttribute','toViewElement','createTableWalker','TableUtils','format','TableEditing','headingColumns','_suggestionFactory','addMarker:suggestion','first','data-suggestion','createRange'];(function(_0x392a7a,_0x2b3383){const _0x5ab863=function(_0xecdf78){while(--_0xecdf78){_0x392a7a['push'](_0x392a7a['shift']());}};_0x5ab863(++_0x2b3383);}(_0x2b33,0x154));const _0x5ab8=function(_0x392a7a,_0x2b3383){_0x392a7a=_0x392a7a-0x0;let _0x5ab863=_0x2b33[_0x392a7a];return _0x5ab863;};import{Plugin as _0x2367d6}from'ckeditor5/src/core';import _0x459239 from'./table';import{getTranslation as _0x53723f}from'../utils/common-translations';export default class lt extends _0x2367d6{static get['requires'](){return[_0x459239];}[_0x5ab8('0x2c')](){const _0x8de842=this[_0x5ab8('0x2f')];if(!_0x8de842[_0x5ab8('0x25')][_0x5ab8('0x15')](_0x5ab8('0x49')))return;const _0x4862a4=_0x8de842['locale'],_0xadc9f8=_0x8de842[_0x5ab8('0x25')][_0x5ab8('0x3a')](_0x5ab8('0x24')),_0x250678=_0x8de842[_0x5ab8('0x25')][_0x5ab8('0x3a')](_0x5ab8('0x47')),_0x1b232f=_0x8de842[_0x5ab8('0x25')][_0x5ab8('0x3a')](_0x459239);function _0x449cce({showActiveMarker:_0x373968=!0x0,setDataAttribute:_0x288ce5=!0x0}={}){return(_0x10e18b,_0x1503aa,_0x479807)=>{const {type:_0x18efa3,id:_0x30ce1c}=_0xadc9f8[_0x5ab8('0xd')](_0x1503aa[_0x5ab8('0x5')]),_0x5e38af=_0xadc9f8[_0x5ab8('0x27')](_0x30ce1c);if(!_0x5e38af[_0x5ab8('0x37')]||_0x5ab8('0x12')!=_0x5e38af[_0x5ab8('0x37')][_0x5ab8('0xc')])return;if(_0x1503aa[_0x5ab8('0x0')])return void _0x10e18b['stop']();if(!_0x479807[_0x5ab8('0x2b')][_0x5ab8('0x22')](_0x1503aa[_0x5ab8('0xa')],_0x10e18b[_0x5ab8('0x41')]))return;const _0x5baa16=_0x1503aa[_0x5ab8('0xa')]['start'][_0x5ab8('0xf')],_0x48fa45=_0x1503aa[_0x5ab8('0xa')][_0x5ab8('0x3c')][_0x5ab8('0x38')],_0x559fa6=_0x5baa16[_0x5ab8('0x7')][_0x5ab8('0x7')],{column:_0x3987ff}=_0x250678['getCellLocation'](_0x5baa16),{column:_0x25828d}=_0x250678[_0x5ab8('0x4')](_0x48fa45);for(let _0x5a6e9a=_0x3987ff;_0x5a6e9a<=_0x25828d;_0x5a6e9a++){const _0x35d88c=_0x250678[_0x5ab8('0x46')](_0x559fa6,{'column':_0x5a6e9a,'includeAllSlots':!0x1});for(const _0x519737 of _0x35d88c){const _0x4ce3cf=_0x519737[_0x5ab8('0x1b')],_0x45d821=_0x479807[_0x5ab8('0x29')][_0x5ab8('0x45')](_0x4ce3cf);_0x479807[_0x5ab8('0x1c')]['addClass'](_0x5ab8('0x35')+_0x18efa3,_0x45d821),_0x288ce5&&_0x479807[_0x5ab8('0x1c')][_0x5ab8('0x44')](_0x5ab8('0x4e'),_0x30ce1c,_0x45d821),_0x479807[_0x5ab8('0x29')][_0x5ab8('0x1a')](_0x45d821,_0x1503aa[_0x5ab8('0x5')]),_0x373968&&(_0xadc9f8['activeMarkers'][_0x5ab8('0x1')](_0x1503aa[_0x5ab8('0x5')])?_0x479807['writer']['addClass'](_0x5ab8('0x11'),_0x45d821):_0x479807[_0x5ab8('0x1c')][_0x5ab8('0x9')](_0x5ab8('0x11'),_0x45d821));}}};}_0xadc9f8['enableCommand'](_0x5ab8('0x2e'),(_0x246574,_0x5e337c)=>{const _0x41e855=_0x250678['getSelectionAffectedTableCells'](_0x8de842['model'][_0x5ab8('0x51')][_0x5ab8('0x1e')]),_0x28fe64=_0x250678[_0x5ab8('0x53')](_0x41e855),_0x33f04d=_0x41e855[0x0][_0x5ab8('0xb')]('table'),_0xab57ca=_0x33f04d[_0x5ab8('0x30')](_0x5ab8('0x26'))||0x0,_0xe4ff35=_0x5e337c&&null!==_0x5e337c[_0x5ab8('0x18')]?_0x5e337c[_0x5ab8('0x18')]:!_0x8de842[_0x5ab8('0x8')][_0x5ab8('0x3a')](_0x5ab8('0x2e'))[_0x5ab8('0x39')],_0x2f99ae=_0xe4ff35?_0x28fe64[_0x5ab8('0x19')]:_0x28fe64[_0x5ab8('0x4d')],_0xd0aa05=_0x33f04d[_0x5ab8('0x34')](_0x2f99ae);let _0x129b66;if(_0xe4ff35){const _0x1ecdd8=_0x33f04d[_0x5ab8('0x34')](_0xab57ca);if(_0xd0aa05[_0x5ab8('0x10')]<_0x1ecdd8[_0x5ab8('0x10')])return;_0x129b66=_0x8de842['model'][_0x5ab8('0x4f')](_0x8de842[_0x5ab8('0x14')][_0x5ab8('0x3d')](_0x1ecdd8['getChild'](0x0)),_0x8de842[_0x5ab8('0x14')][_0x5ab8('0x50')](_0xd0aa05[_0x5ab8('0x34')](_0xd0aa05[_0x5ab8('0x13')]-0x1)));}else{const _0x364f2e=_0x33f04d[_0x5ab8('0x34')](_0xab57ca-0x1);if(!_0x364f2e)return;_0x129b66=_0x8de842['model'][_0x5ab8('0x4f')](_0x8de842[_0x5ab8('0x14')][_0x5ab8('0x3d')](_0xd0aa05['getChild'](0x0)),_0x8de842[_0x5ab8('0x14')][_0x5ab8('0x50')](_0x364f2e[_0x5ab8('0x34')](_0x364f2e[_0x5ab8('0x13')]-0x1)));}_0x8de842['model'][_0x5ab8('0x28')](()=>{_0xadc9f8[_0x5ab8('0x2d')](_0x129b66,{'commandName':_0x5ab8('0x2e'),'commandParams':[{'forceValue':_0xe4ff35}]},[],_0x5ab8('0x2e'));});}),_0xadc9f8['enableCommand']('setTableColumnHeader',(_0x478c92,_0x100ad9)=>{const _0x5bc45e=_0x8de842['plugins'][_0x5ab8('0x3a')](_0x5ab8('0x47')),_0x1c1866=_0x5bc45e[_0x5ab8('0x33')](_0x8de842['model']['document'][_0x5ab8('0x1e')]),_0x167ac6=_0x5bc45e[_0x5ab8('0x17')](_0x1c1866),_0x1f5812=_0x1c1866[0x0][_0x5ab8('0xb')](_0x5ab8('0x42')),_0x5970cd=_0x1f5812[_0x5ab8('0x30')](_0x5ab8('0x4a'))||0x0,_0x422195=_0x100ad9&&null!==_0x100ad9['forceValue']?_0x100ad9[_0x5ab8('0x18')]:!_0x8de842[_0x5ab8('0x8')][_0x5ab8('0x3a')](_0x5ab8('0x12'))[_0x5ab8('0x39')];let _0xd7bbe;const _0x20161f=_0x1f5812[_0x5ab8('0x34')](0x0),_0x243700=_0x422195?_0x167ac6[_0x5ab8('0x19')]:_0x167ac6[_0x5ab8('0x4d')],_0x1358a5=_0x5bc45e[_0x5ab8('0x46')](_0x1f5812,{'startRow':0x0,'column':_0x243700,'includeAllSlots':!0x1}),_0x234a9f=Array[_0x5ab8('0x21')](_0x1358a5)[0x0]['cell'];if(_0x422195){const _0x2295ec=_0x20161f[_0x5ab8('0x34')](_0x5970cd);if(_0x234a9f[_0x5ab8('0x2a')](_0x2295ec))return;_0xd7bbe=_0x8de842[_0x5ab8('0x14')]['createRange'](_0x8de842[_0x5ab8('0x14')][_0x5ab8('0x3d')](_0x2295ec),_0x8de842['model'][_0x5ab8('0x50')](_0x234a9f));}else{const _0xbd1a80=_0x20161f['getChild'](_0x5970cd-0x1);if(!_0xbd1a80)return;_0xd7bbe=_0x8de842[_0x5ab8('0x14')][_0x5ab8('0x4f')](_0x8de842[_0x5ab8('0x14')]['createPositionBefore'](_0x234a9f),_0x8de842[_0x5ab8('0x14')][_0x5ab8('0x50')](_0xbd1a80));}_0x8de842[_0x5ab8('0x14')][_0x5ab8('0x28')](()=>{_0xadc9f8[_0x5ab8('0x2d')](_0xd7bbe,{'commandName':_0x5ab8('0x12'),'commandParams':[{'forceValue':_0x422195}]},[],_0x5ab8('0x12'));});}),_0x8de842[_0x5ab8('0x3e')]['downcastDispatcher']['on'](_0x5ab8('0x4c'),_0x449cce(),{'priority':_0x5ab8('0x6')}),_0x8de842[_0x5ab8('0x37')][_0x5ab8('0x43')]['on']('addMarker:suggestion',(_0xb2457c,_0x298bf6,_0x3c511e)=>{_0x3c511e['options'][_0x5ab8('0x2')]&&_0x449cce({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xb2457c,_0x298bf6,_0x3c511e);},{'priority':_0x5ab8('0x6')}),_0x8de842[_0x5ab8('0x3e')]['downcastDispatcher']['on'](_0x5ab8('0x1f'),(_0x6b8d25,_0x57d00b,_0x3c2dca)=>{const {type:_0x21f25f,id:_0x530e35}=_0xadc9f8[_0x5ab8('0xd')](_0x57d00b['markerName']),_0x352628=_0xadc9f8[_0x5ab8('0x27')](_0x530e35);if(!_0x352628[_0x5ab8('0x37')]||_0x5ab8('0x12')!=_0x352628[_0x5ab8('0x37')]['commandName'])return;const _0x206744=_0x3c2dca[_0x5ab8('0x29')][_0x5ab8('0x20')](_0x57d00b[_0x5ab8('0x5')]);if(_0x206744)for(const _0x2779c6 of _0x206744)_0x3c2dca[_0x5ab8('0x1c')]['removeClass'](_0x5ab8('0x35')+_0x21f25f,_0x2779c6),_0x3c2dca[_0x5ab8('0x1c')][_0x5ab8('0x9')](_0x5ab8('0x11'),_0x2779c6),_0x3c2dca[_0x5ab8('0x1c')][_0x5ab8('0x23')](_0x5ab8('0x4e'),_0x2779c6),_0x3c2dca[_0x5ab8('0x29')][_0x5ab8('0x16')](_0x2779c6,_0x57d00b[_0x5ab8('0x5')]);},{'priority':'highest'}),_0xadc9f8[_0x5ab8('0x1d')][_0x5ab8('0x3b')](_0x57bff8=>{const {data:_0x568cc1}=_0x57bff8;if(_0x568cc1){if('setTableRowHeader'==_0x568cc1[_0x5ab8('0xc')]){const _0xb30fb4=_0x568cc1[_0x5ab8('0x3')][0x0][_0x5ab8('0x18')];return _0x13b21e(_0x53723f(_0x4862a4,_0xb30fb4?_0x5ab8('0x52'):_0x5ab8('0x36')));}if(_0x5ab8('0x12')==_0x568cc1[_0x5ab8('0xc')]){const _0x115b1b=_0x568cc1['commandParams'][0x0][_0x5ab8('0x18')];return _0x13b21e(_0x53723f(_0x4862a4,_0x115b1b?_0x5ab8('0x3f'):_0x5ab8('0x31')));}}function _0x13b21e(_0x5c7401){return{'type':_0x5ab8('0x48'),'content':_0x53723f(_0x4862a4,'*Format:*\x20%0',_0x5c7401)};}});const _0x55bd69=_0x1b232f['_acceptFormatSuggestionCallbackFactory']();_0xadc9f8[_0x5ab8('0x4b')]['registerCustomCallback']('formatBlock',_0x5ab8('0x2e'),_0x5ab8('0x32'),_0x55bd69),_0xadc9f8['_suggestionFactory'][_0x5ab8('0x40')](_0x5ab8('0xe'),_0x5ab8('0x12'),_0x5ab8('0x32'),_0x55bd69);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2124=['map','get','TableEditing','*Split\x20cell:*\x20vertically','refresh','has','document','element','commandName','_areSelectedCellsMergable','commands','TrackChangesEditing','splitTableCellHorizontally','format','isInContent','*Split\x20cell:*\x20horizontally','length','fromRange','tableCell','mergeTableCellRight','mergeTableCells','*Merge\x20cells*','author','enableCommand','registerCustomCallback','change','$graveyard','add','mergeTableCellDown','model','getFirstPosition','rootName','selection','TableUtils','createRangeOn','push','value','markMultiRangeBlockFormat','isEnabled','formatBlock','horizontally','markBlockFormat','_areMergableCells','set:isEnabled','locale','_suggestionFactory','createTableWalker','getRanges','registerDescriptionCallback','trackChanges','getSuggestions','splitTableCellVertically','mergeTableCellLeft','type','find','execute','forceDefaultExecution','_descriptionFactory','_tablePostFixingSubtypes','low','subType','table','from','getAncestors','cell','stop','size','getCellLocation','accept','detach','editor','_acceptFormatSuggestionCallbackFactory','getSelectionAffectedTableCells','insertion','mergeTableCellUp','plugins','highest','return'];(function(_0x2339df,_0x212434){const _0xf0a72d=function(_0x291390){while(--_0x291390){_0x2339df['push'](_0x2339df['shift']());}};_0xf0a72d(++_0x212434);}(_0x2124,0xf8));const _0xf0a7=function(_0x2339df,_0x212434){_0x2339df=_0x2339df-0x0;let _0xf0a72d=_0x2124[_0x2339df];return _0xf0a72d;};import{Plugin as _0x340686}from'ckeditor5/src/core';import _0x55a5a5 from'./table';import{LiveRange as _0x1a2760}from'ckeditor5/src/engine';import{getTranslation as _0x32056a}from'../utils/common-translations';export default class gt extends _0x340686{static get['requires'](){return[_0x55a5a5];}['afterInit'](){const _0x5a9a1b=this[_0xf0a7('0x38')],_0x9aec2f=_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0x46')][_0xf0a7('0x12')],_0x54c674=_0x5a9a1b[_0xf0a7('0x1e')];if(!_0x5a9a1b[_0xf0a7('0x3d')][_0xf0a7('0x45')](_0xf0a7('0x42')))return;const _0x2fb56c=_0x5a9a1b['plugins'][_0xf0a7('0x41')](_0xf0a7('0x4b')),_0x420cbc=_0x5a9a1b[_0xf0a7('0x3d')]['get'](_0xf0a7('0x13')),_0x3e40a5=_0x5a9a1b[_0xf0a7('0x3d')][_0xf0a7('0x41')](_0x55a5a5);_0x3e40a5[_0xf0a7('0x2c')][_0xf0a7('0x15')](_0xf0a7('0x6')),_0x2fb56c['enableCommand'](_0xf0a7('0x6'),()=>{const _0x5ee058=_0x420cbc[_0xf0a7('0x3a')](_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0x46')]['selection']);_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0xb')](()=>{_0x2fb56c[_0xf0a7('0x17')](_0x5ee058,{'commandName':_0xf0a7('0x6'),'commandParams':[]},[],_0xf0a7('0x6'));});}),_0x5a9a1b[_0xf0a7('0x4a')]['get'](_0xf0a7('0x6'))['on'](_0xf0a7('0x29'),(_0x392ec1,_0x155e33)=>{_0x5a9a1b[_0xf0a7('0x4a')][_0xf0a7('0x41')](_0xf0a7('0x23'))[_0xf0a7('0x16')]&&(_0x155e33[_0xf0a7('0x2')]>0x0&&_0x155e33[_0x155e33['length']-0x1]&&_0x155e33[_0x155e33[_0xf0a7('0x2')]-0x1][_0xf0a7('0x2a')]||_0x2fb56c['_isForcedDefaultExecutionBlock']||this[_0xf0a7('0x49')]()||_0x392ec1['stop']());},{'priority':_0xf0a7('0x3e')});for(const _0x59a076 of[_0xf0a7('0x3c'),'mergeTableCellRight',_0xf0a7('0xe'),_0xf0a7('0x26')]){const _0x125bb0=_0x5a9a1b[_0xf0a7('0x4a')][_0xf0a7('0x41')](_0x59a076);_0x2fb56c[_0xf0a7('0x9')](_0x59a076,()=>{const _0x4b59e2=_0x5a9a1b['model'][_0xf0a7('0x46')][_0xf0a7('0x12')][_0xf0a7('0x10')]()[_0xf0a7('0x31')]()[_0xf0a7('0x28')](_0x527dbf=>_0x527dbf['is'](_0xf0a7('0x47'),_0xf0a7('0x4'))),_0x900bbe=_0x125bb0['value'];_0x5a9a1b['model'][_0xf0a7('0xb')](()=>{_0x2fb56c['markMultiRangeBlockFormat']([_0x4b59e2,_0x900bbe],{'commandName':_0xf0a7('0x6'),'commandParams':[]},[],_0xf0a7('0x6'));});});}for(const _0x20bc7f of[_0xf0a7('0x25'),_0xf0a7('0x4c')]){const _0x352489=_0x5a9a1b[_0xf0a7('0x4a')][_0xf0a7('0x41')](_0x20bc7f);_0x2fb56c[_0xf0a7('0x9')](_0x20bc7f,()=>{const _0x3abd0b=_0x420cbc[_0xf0a7('0x3a')](_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0x46')][_0xf0a7('0x12')])[0x0],_0x46967e=_0x3abd0b['findAncestor'](_0xf0a7('0x2f')),{column:_0x572c70,row:_0x40199d}=_0x420cbc[_0xf0a7('0x35')](_0x3abd0b);let _0x2a8e97=[];if(_0xf0a7('0x1a')==_0x352489['direction']){const _0x5a27ba=_0x420cbc[_0xf0a7('0x20')](_0x46967e,{'startRow':_0x40199d,'endRow':_0x40199d,'includeAllSlots':!0x0});_0x2a8e97=Array[_0xf0a7('0x30')](_0x5a27ba)[_0xf0a7('0x40')](_0x216dc6=>_0x216dc6[_0xf0a7('0x32')]);}else{const _0x7c9a0c=_0x420cbc[_0xf0a7('0x20')](_0x46967e,{'column':_0x572c70,'includeAllSlots':!0x0});_0x2a8e97=Array[_0xf0a7('0x30')](_0x7c9a0c)[_0xf0a7('0x40')](_0x4ad4e7=>_0x4ad4e7[_0xf0a7('0x32')]);}_0x5a9a1b['model'][_0xf0a7('0xb')](_0x32e3d0=>{_0x2fb56c[_0xf0a7('0x1b')](_0x32e3d0[_0xf0a7('0x14')](_0x3abd0b),{'commandName':_0x20bc7f,'commandParams':[]},_0x2a8e97,_0x20bc7f);});});}_0x2fb56c['_descriptionFactory'][_0xf0a7('0x22')](_0x321daf=>{const {data:_0x144108}=_0x321daf;if(_0x144108)return _0xf0a7('0x6')==_0x144108[_0xf0a7('0x48')]?{'type':_0xf0a7('0x4d'),'content':_0x32056a(_0x54c674,_0xf0a7('0x7'))}:void 0x0;}),_0x2fb56c[_0xf0a7('0x2b')][_0xf0a7('0x22')](_0x44fb81=>{const {data:_0x4cf0ea}=_0x44fb81;if(_0x4cf0ea)return _0xf0a7('0x25')==_0x4cf0ea['commandName']?{'type':'format','content':_0x32056a(_0x54c674,_0xf0a7('0x43'))}:'splitTableCellHorizontally'==_0x4cf0ea[_0xf0a7('0x48')]?{'type':'format','content':_0x32056a(_0x54c674,_0xf0a7('0x1'))}:void 0x0;});const _0x3ab6dc=_0x3e40a5[_0xf0a7('0x39')]();for(const _0x4784a2 of['mergeTableCellUp',_0xf0a7('0x5'),_0xf0a7('0xe'),_0xf0a7('0x26')])_0x2fb56c[_0xf0a7('0x1f')]['registerCustomCallback'](_0xf0a7('0x19'),_0x4784a2,_0xf0a7('0x36'),_0x3ab6dc);for(const _0x4d8259 of[_0xf0a7('0x25'),_0xf0a7('0x4c')])_0x2fb56c[_0xf0a7('0x1f')]['registerCustomCallback']('formatBlock',_0x4d8259,_0xf0a7('0x36'),_0x3ab6dc);_0x2fb56c[_0xf0a7('0x1f')][_0xf0a7('0xa')](_0xf0a7('0x19'),_0xf0a7('0x6'),'accept',_0x50a118=>{_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0xb')](_0x436591=>{const _0xe2fd05=Array['from'](_0x9aec2f[_0xf0a7('0x21')]())[_0xf0a7('0x40')](_0xfdfcca=>_0x1a2760[_0xf0a7('0x3')](_0xfdfcca));_0x436591['setSelection'](_0x50a118),_0x5a9a1b[_0xf0a7('0x4a')]['get'](_0xf0a7('0x6'))[_0xf0a7('0x44')](),_0x5a9a1b[_0xf0a7('0x29')](_0xf0a7('0x6'),{'forceDefaultExecution':!0x0});const _0x4ae2bf=_0xe2fd05['filter'](_0x4e16ff=>_0xf0a7('0xc')!=_0x4e16ff['root'][_0xf0a7('0x11')]);_0x4ae2bf['length']>0x0&&_0x436591['setSelection'](_0x4ae2bf);for(const _0x145779 of _0xe2fd05)_0x145779[_0xf0a7('0x37')]();});});for(const _0x29d51b of[_0xf0a7('0x3c'),'mergeTableCellDown',_0xf0a7('0x26'),_0xf0a7('0x5')]){const _0x29b14f=_0x5a9a1b[_0xf0a7('0x4a')][_0xf0a7('0x41')](_0x29d51b);_0x29b14f['on'](_0xf0a7('0x1d'),(_0x10875c,_0x4e2665,_0x2180f5)=>{if(_0x2180f5){const _0x557a23=_0x5a9a1b[_0xf0a7('0xf')][_0xf0a7('0x46')][_0xf0a7('0x12')][_0xf0a7('0x10')]()[_0xf0a7('0x31')]()[_0xf0a7('0x28')](_0x20ca3b=>_0x20ca3b['is'](_0xf0a7('0x47'),_0xf0a7('0x4')));this[_0xf0a7('0x1c')](_0x29b14f[_0xf0a7('0x16')],_0x557a23)||(_0x10875c[_0xf0a7('0x3f')]=!0x1,_0x10875c[_0xf0a7('0x33')]());}},{'priority':_0xf0a7('0x2d')});}}[_0xf0a7('0x49')](){const _0x43340b=this['editor']['commands']['get'](_0xf0a7('0x6')),_0x1fa5b5=this[_0xf0a7('0x38')][_0xf0a7('0x3d')][_0xf0a7('0x41')](_0xf0a7('0x13'));if(!_0x43340b[_0xf0a7('0x18')])return!0x1;const _0x37f6d7=_0x1fa5b5[_0xf0a7('0x3a')](this['editor'][_0xf0a7('0xf')]['document'][_0xf0a7('0x12')]);for(const _0x40375b of _0x37f6d7)for(const _0x2e9b0f of _0x37f6d7)if(_0x40375b!=_0x2e9b0f&&!this[_0xf0a7('0x1c')](_0x40375b,_0x2e9b0f))return!0x1;return!0x0;}[_0xf0a7('0x1c')](_0x50d3f5,_0x5c2a7b){const _0x15eaf3=this['editor'][_0xf0a7('0x3d')][_0xf0a7('0x41')](_0xf0a7('0x4b')),_0x49e271=this['editor'][_0xf0a7('0xf')]['createRangeOn'](_0x50d3f5),_0x2fa16c=this[_0xf0a7('0x38')]['model'][_0xf0a7('0x14')](_0x5c2a7b),_0x4a80a8=new Set(),_0x328dd6=new Set();for(const _0x4641e9 of _0x15eaf3[_0xf0a7('0x24')]())if((_0xf0a7('0x3b')==_0x4641e9[_0xf0a7('0x27')]||'deletion'==_0x4641e9[_0xf0a7('0x27')]||_0xf0a7('0x6')==_0x4641e9[_0xf0a7('0x2e')])&&_0x4641e9[_0xf0a7('0x0')])for(const _0x465fe1 of _0x4641e9['getRanges']())_0x465fe1['containsRange'](_0x49e271,!0x0)&&_0x4a80a8['add'](_0x4641e9[_0xf0a7('0x27')]+':'+_0x4641e9[_0xf0a7('0x8')]['id']),_0x465fe1['containsRange'](_0x2fa16c,!0x0)&&_0x328dd6[_0xf0a7('0xd')](_0x4641e9[_0xf0a7('0x27')]+':'+_0x4641e9[_0xf0a7('0x8')]['id']);if(_0x4a80a8[_0xf0a7('0x34')]!=_0x328dd6[_0xf0a7('0x34')])return!0x1;for(const _0x568e56 of _0x4a80a8)if(!_0x328dd6[_0xf0a7('0x45')](_0x568e56))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31cb=['newRange','differ','afterInit','from','end','_descriptionFactory','get','ELEMENT_TITLE','locale','isTouching','title-content','plugins','model','isEqual','nodeBefore','getChangedMarkers','removeMarker','isCollapsed','document','forward','registerElementLabel','schema','Title','suggestion','start','element','TrackChangesEditing'];(function(_0x23a213,_0x31cb41){const _0x10c383=function(_0x486505){while(--_0x486505){_0x23a213['push'](_0x23a213['shift']());}};_0x10c383(++_0x31cb41);}(_0x31cb,0xf9));const _0x10c3=function(_0x23a213,_0x31cb41){_0x23a213=_0x23a213-0x0;let _0x10c383=_0x31cb[_0x23a213];return _0x10c383;};import{Plugin as _0x33de1c}from'ckeditor5/src/core';import{getTranslation as _0xb90678}from'../utils/common-translations';export default class dt extends _0x33de1c{[_0x10c3('0x17')](){const _0x154702=this['editor'];if(!_0x154702['plugins']['has'](_0x10c3('0x10')))return;const _0x307d1c=_0x154702[_0x10c3('0x5')][_0x10c3('0x0')](_0x10c3('0x14'));_0x307d1c[_0x10c3('0x1a')][_0x10c3('0xe')](_0x10c3('0x4'),()=>_0xb90678(_0x154702[_0x10c3('0x2')],_0x10c3('0x1'))),_0x154702[_0x10c3('0x6')][_0x10c3('0xc')]['registerPostFixer'](_0x16c4e9=>{let _0x298e77=!0x1;const _0x49442b=Array[_0x10c3('0x18')](_0x154702[_0x10c3('0x6')][_0x10c3('0xc')][_0x10c3('0x16')][_0x10c3('0x9')]());for(const {name:_0x298da2,data:_0x2a01fa}of _0x49442b){const {group:_0x49620e}=_0x307d1c['_splitMarkerName'](_0x298da2);if(_0x10c3('0x11')!==_0x49620e||!_0x2a01fa[_0x10c3('0x15')])continue;const _0x5bc934=_0x2a01fa[_0x10c3('0x15')],_0x5be08e=_0x5bc934[_0x10c3('0x19')][_0x10c3('0x8')];if(!_0x5be08e||!_0x5be08e['is'](_0x10c3('0x13'),_0x10c3('0x4')))continue;if(!_0x5bc934[_0x10c3('0x12')][_0x10c3('0x3')](_0x5bc934['end']))continue;const _0x4bde98=_0x154702[_0x10c3('0x6')][_0x10c3('0xf')]['getNearestSelectionRange'](_0x5bc934[_0x10c3('0x19')],_0x10c3('0xd'));if(_0x4bde98&&_0x4bde98[_0x10c3('0xb')]){const _0x5458f3=_0x16c4e9['createRange'](_0x5bc934['start'],_0x4bde98[_0x10c3('0x12')]);_0x5458f3[_0x10c3('0x7')](_0x5bc934)||(_0x16c4e9['updateMarker'](_0x298da2,{'range':_0x5458f3}),_0x298e77=!0x0);}_0x298e77||(_0x16c4e9[_0x10c3('0xa')](_0x298da2),_0x298e77=!0x0);}return _0x298e77;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43ca=['UndoEditing','has','redo','editor','plugins','enableCommand','get','afterInit','undo'];(function(_0x7e077e,_0x43caf6){const _0x22de5c=function(_0x15bdee){while(--_0x15bdee){_0x7e077e['push'](_0x7e077e['shift']());}};_0x22de5c(++_0x43caf6);}(_0x43ca,0x85));const _0x22de=function(_0x7e077e,_0x43caf6){_0x7e077e=_0x7e077e-0x0;let _0x22de5c=_0x43ca[_0x7e077e];return _0x22de5c;};import{Plugin as _0x12e87f}from'ckeditor5/src/core';export default class pt extends _0x12e87f{[_0x22de('0x0')](){const _0x1a9d69=this[_0x22de('0x5')],_0x851338=_0x1a9d69['plugins'][_0x22de('0x8')]('TrackChangesEditing');_0x1a9d69[_0x22de('0x6')][_0x22de('0x3')](_0x22de('0x2'))&&(_0x851338[_0x22de('0x7')](_0x22de('0x1')),_0x851338['enableCommand'](_0x22de('0x4')));}}
|