@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231205.0 → 0.0.0-nightly-20231207.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +5 -5
- package/lang/translations/az.po +4 -4
- package/lang/translations/bg.po +5 -5
- package/lang/translations/bn.po +5 -5
- package/lang/translations/ca.po +5 -5
- package/lang/translations/cs.po +5 -5
- package/lang/translations/da.po +5 -5
- package/lang/translations/de.po +5 -5
- package/lang/translations/el.po +5 -5
- package/lang/translations/en-au.po +5 -5
- package/lang/translations/en.po +5 -5
- package/lang/translations/es.po +5 -5
- package/lang/translations/et.po +5 -5
- package/lang/translations/fi.po +5 -5
- package/lang/translations/fr.po +5 -5
- package/lang/translations/gl.po +36 -36
- package/lang/translations/he.po +5 -5
- package/lang/translations/hi.po +5 -5
- package/lang/translations/hr.po +5 -5
- package/lang/translations/hu.po +5 -5
- package/lang/translations/id.po +5 -5
- package/lang/translations/it.po +5 -5
- package/lang/translations/ja.po +5 -5
- package/lang/translations/ko.po +5 -5
- package/lang/translations/lt.po +5 -5
- package/lang/translations/lv.po +5 -5
- package/lang/translations/ms.po +5 -5
- package/lang/translations/nl.po +5 -5
- package/lang/translations/no.po +5 -5
- package/lang/translations/pl.po +5 -5
- package/lang/translations/pt-br.po +5 -5
- package/lang/translations/pt.po +5 -5
- package/lang/translations/ro.po +5 -5
- package/lang/translations/ru.po +5 -5
- package/lang/translations/sk.po +5 -5
- package/lang/translations/sq.po +4 -4
- package/lang/translations/sr-latn.po +24 -24
- package/lang/translations/sr.po +5 -5
- package/lang/translations/sv.po +5 -5
- package/lang/translations/th.po +5 -5
- package/lang/translations/tk.po +4 -4
- package/lang/translations/tr.po +5 -5
- package/lang/translations/tt.po +4 -4
- package/lang/translations/uk.po +5 -5
- package/lang/translations/ur.po +4 -4
- package/lang/translations/vi.po +5 -5
- package/lang/translations/zh-cn.po +5 -5
- package/lang/translations/zh.po +5 -5
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x263d=['_registerLegacyDescription','*Set\x20format:*\x20%0','*Remove\x20format:*\x20%0','forceValue','editor','format','has','normalizeConfig','_registerBlockAttribute','ghsAttributes','StyleUtils','commandParams','registerDescriptionCallback','_registerInlineAttribute','get','FORMAT_STYLE','toLowerCase','GeneralHtmlSupport','locale','_descriptionFactory','style','type','plugins','styleName','getGhsAttributeNameForElement','inline','TrackChangesEditing','config','formatInline','commandName','_enableDefaultAttributesIntegration','add','registerAttributeLabel','block','definitions'];(function(_0x4cd614,_0x263d21){const _0x53ae4b=function(_0x59e4c3){while(--_0x59e4c3){_0x4cd614['push'](_0x4cd614['shift']());}};_0x53ae4b(++_0x263d21);}(_0x263d,0x1a7));const _0x53ae=function(_0x4cd614,_0x263d21){_0x4cd614=_0x4cd614-0x0;let _0x53ae4b=_0x263d[_0x4cd614];return _0x53ae4b;};import{Plugin as _0x3fc098}from'ckeditor5/src/core';import{getTranslation as _0x18fdde}from'../utils/common-translations';export default class bt extends _0x3fc098{['afterInit'](){const _0x199621=this[_0x53ae('0x1')];if(!_0x199621[_0x53ae('0x13')][_0x53ae('0x3')]('Style')||!_0x199621[_0x53ae('0x13')]['has']('DataSchema'))return;const _0x1aa68c=_0x199621['plugins']['get'](_0x53ae('0x17')),_0x2f649a=_0x199621[_0x53ae('0xf')],_0x1877c0=_0x199621[_0x53ae('0x18')]['get']('style'),_0x318896=_0x199621[_0x53ae('0x13')][_0x53ae('0xb')](_0x53ae('0xe')),_0x5247f3=_0x199621[_0x53ae('0x13')][_0x53ae('0xb')](_0x53ae('0x7'))[_0x53ae('0x4')](_0x199621[_0x53ae('0x13')]['get']('DataSchema'),_0x1877c0[_0x53ae('0x1f')]);_0x1aa68c[_0x53ae('0x1b')]('style');const _0x2a4fe4=new Set();for(const _0xa02381 of _0x5247f3[_0x53ae('0x1e')]){const _0xa873a9=_0x318896[_0x53ae('0x15')](_0xa02381['element']);_0x2a4fe4[_0x53ae('0x1c')](_0xa873a9);}const _0x1ff0fd=new Set();for(const _0x542b70 of _0x5247f3[_0x53ae('0x16')]){const _0x582c76=_0x318896[_0x53ae('0x15')](_0x542b70['element']);_0x1ff0fd[_0x53ae('0x1c')](_0x582c76);for(const _0x3fdc8d of _0x542b70[_0x53ae('0x6')])_0x1ff0fd[_0x53ae('0x1c')](_0x3fdc8d);}for(const _0x25e97a of _0x2a4fe4)_0x1aa68c[_0x53ae('0x5')](_0x25e97a),_0x1aa68c[_0x53ae('0x10')][_0x53ae('0x1d')](_0x25e97a,_0x18fdde(_0x2f649a,_0x53ae('0xc')));for(const _0x2b1977 of _0x1ff0fd)_0x1aa68c[_0x53ae('0xa')](_0x2b1977),_0x1aa68c['_descriptionFactory'][_0x53ae('0x1d')](_0x2b1977,_0x18fdde(_0x2f649a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}[_0x53ae('0x20')](){const _0x4e6041=this[_0x53ae('0x1')],_0x53900d=_0x4e6041[_0x53ae('0xf')];_0x4e6041[_0x53ae('0x13')][_0x53ae('0xb')](_0x53ae('0x17'))[_0x53ae('0x10')][_0x53ae('0x9')](_0x5928c6=>{if('formatBlock'!=_0x5928c6['type']&&_0x53ae('0x19')!=_0x5928c6[_0x53ae('0x12')])return;const {data:_0x206816}=_0x5928c6;return _0x206816&&_0x53ae('0x11')===_0x206816[_0x53ae('0x1a')]?_0x206816[_0x53ae('0x8')][0x0][_0x53ae('0x0')]?{'type':_0x53ae('0x2'),'content':_0x18fdde(_0x53900d,_0x53ae('0x21'),_0x206816[_0x53ae('0x8')][0x0][_0x53ae('0x14')][_0x53ae('0xd')]())}:{'type':_0x53ae('0x2'),'content':_0x18fdde(_0x53900d,_0x53ae('0x22'),_0x206816[_0x53ae('0x8')][0x0][_0x53ae('0x14')][_0x53ae('0xd')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4d43=['model','$graveyard','forceValue','suggestion','registerPostFixer','tableColumn','min','showSuggestionHighlights','insertTableRowBelow','ELEMENT_TABLE_COLUMN_WITH_TEXT','getColumnIndexes','detach','change:data','join','isTouching','get','data','editor','low','toViewElement','last','first','nodeAfter','item','maxRow','includes','removeTableRow','rootName','findAncestor','rowspan','isArray','addClass','push','substr','registerElementLabel','order','getChangedMarkers','isInContent','insertTableColumnLeft','insertTable','TableEditing','insertion','_suggestionFactory','start','commands','table','minRow','end','minColumn','batch','fromRange','tableRow','element','*Insert:*\x20%0','writer','isIntersectingWithRange','tableCell','options','differ','createRangeIn','registerCustomCallback','add','deletion','_splitMarkerName','hasAttribute','some','type','execute','insertTableRowAbove','_tableSuggestions','cell','enableCommand','getSelectionAffectedTableCells','filter','ELEMENT_TABLE_COLUMN','map','selection','selectTableRow','from','max','selectTableColumn','insert','_setupColumnsRowsFixing','span','getContainedElement','oldRange','accept','length','mapper','document','TableUtils','downcastDispatcher','_acceptFormatSuggestionCallbackFactory','colspan','ELEMENT_TABLE_ROW','addRange','plugins','startsWith','getSuggestion','locale','getAttribute','_getCoordsForCells','toLowerCase','getRanges','subType','removeTableColumn','refresh','getFirstRange','registerDescriptionCallback','$textProxy','highest','change','has','setSelection','afterInit','markMultiRangeInsertion','_descriptionFactory','enqueueChange','isEqual','createRangeOn','classes','values','*Remove:*\x20%0','left','MAX_SAFE_INTEGER','createTableWalker','name','TrackChangesEditing','getRowIndexes','getCellLocation','getItems','_getSuggestionCoords','maxColumn','above','markMultiRangeDeletion','position','root','MIN_SAFE_INTEGER'];(function(_0x4ed2a0,_0x4d435c){const _0x201122=function(_0x47b186){while(--_0x47b186){_0x4ed2a0['push'](_0x4ed2a0['shift']());}};_0x201122(++_0x4d435c);}(_0x4d43,0x1af));const _0x2011=function(_0x4ed2a0,_0x4d435c){_0x4ed2a0=_0x4ed2a0-0x0;let _0x201122=_0x4d43[_0x4ed2a0];return _0x201122;};import{Plugin as _0x41fd3e}from'ckeditor5/src/core';import{LiveRange as _0x34e9b0}from'ckeditor5/src/engine';import{setHighlightHandling as _0x42f190}from'ckeditor5/src/widget';import{getTranslation as _0x39ce34}from'../utils/common-translations';export default class wt extends _0x41fd3e{constructor(_0x120959){super(_0x120959),this['_tablePostFixingSubtypes']=[_0x2011('0x22'),_0x2011('0x7e')],this['_tableSuggestions']=new Set();}[_0x2011('0x61')](){const _0x33216e=this[_0x2011('0x0')],_0x3e05d5=_0x33216e[_0x2011('0x79')][_0x2011('0x48')][_0x2011('0x3b')];if(!_0x33216e[_0x2011('0x4f')][_0x2011('0x5f')](_0x2011('0x17')))return;const _0x25c7c1=_0x33216e[_0x2011('0x52')],_0x399402=_0x33216e[_0x2011('0x4f')]['get'](_0x2011('0x6e')),_0x2e7304=_0x33216e[_0x2011('0x4f')][_0x2011('0x88')]('TableUtils');_0x399402['_descriptionFactory'][_0x2011('0x11')](_0x2011('0x1c'),_0x5bb11a=>_0x39ce34(_0x25c7c1,'ELEMENT_TABLE',_0x5bb11a)),this[_0x2011('0x41')](),_0x399402[_0x2011('0x36')](_0x2011('0x16')),_0x399402['enableCommand'](_0x2011('0x3c')),_0x399402[_0x2011('0x36')](_0x2011('0x3f'));for(const _0x55d3f8 of[_0x2011('0x33'),_0x2011('0x81')]){const _0xee8471=_0x33216e[_0x2011('0x1b')]['get'](_0x55d3f8);_0x399402['enableCommand'](_0x55d3f8,_0x30d5ae=>{_0x33216e[_0x2011('0x79')][_0x2011('0x5e')](_0x118283=>{_0x30d5ae();const _0x9cbc9=_0x2011('0x74')===_0xee8471[_0x2011('0x12')],_0x2daa32=_0x2e7304[_0x2011('0x37')](_0x3e05d5),_0x25fe4f=_0x2e7304['getRowIndexes'](_0x2daa32),_0x3923ee=_0x9cbc9?_0x25fe4f[_0x2011('0x4')]-0x1:_0x25fe4f[_0x2011('0x3')]+0x1,_0x12d733=_0x2daa32[0x0]['findAncestor'](_0x2011('0x1c')),_0x415750=_0x2e7304['createTableWalker'](_0x12d733,{'startRow':_0x3923ee,'endRow':_0x3923ee}),_0x5cf504=Array[_0x2011('0x3d')](_0x415750)[_0x2011('0x3a')](_0x102f36=>_0x118283[_0x2011('0x66')](_0x102f36['cell']));_0x399402[_0x2011('0x62')](_0x5cf504,_0x2011('0x22'));});});}for(const _0x229080 of[_0x2011('0x15'),'insertTableColumnRight']){const _0x369fde=_0x33216e[_0x2011('0x1b')][_0x2011('0x88')](_0x229080);_0x399402['enableCommand'](_0x229080,_0x7896d8=>{_0x33216e['model'][_0x2011('0x5e')](_0x24ded7=>{_0x7896d8();const _0x320cd3=_0x2011('0x6a')===_0x369fde[_0x2011('0x12')],_0x4c12e8=_0x2e7304[_0x2011('0x37')](_0x3e05d5),_0xdcacea=_0x2e7304[_0x2011('0x83')](_0x4c12e8),_0x218840=_0x320cd3?_0xdcacea[_0x2011('0x4')]-0x1:_0xdcacea[_0x2011('0x3')]+0x1,_0x56be7b=_0x4c12e8[0x0][_0x2011('0xb')]('table'),_0x25da80=_0x2e7304[_0x2011('0x6c')](_0x56be7b,{'startRow':0x0,'column':_0x218840,'includeAllSlots':!0x1}),_0x554108=Array[_0x2011('0x3d')](_0x25da80)[_0x2011('0x3a')](_0x262e54=>_0x24ded7[_0x2011('0x66')](_0x262e54[_0x2011('0x35')]));_0x399402['markMultiRangeInsertion'](_0x554108,'tableColumn');});});}for(const _0x41243d of[_0x2011('0x9'),_0x2011('0x58')]){const _0x4a668f=_0x41243d[_0x2011('0x10')](0xb),_0x5d1155=_0x4a668f['toLowerCase'](),_0x53f60d=_0x5d1155[_0x2011('0x10')](0x0,0x3)+_0x2011('0x42'),_0xc30569=_0x2011('0x1c')+_0x4a668f,_0x397b80=_0x2011('0x7f')+_0x4a668f,_0x3d564d=_0x2011('0x3e')+_0x4a668f;_0x399402[_0x2011('0x36')](_0x41243d,()=>{_0x33216e[_0x2011('0x79')][_0x2011('0x5e')](_0x77a3a5=>{const _0x1060bb=_0x2e7304[_0x2011('0x37')](_0x3e05d5),_0x40c0c3=_0x1060bb[0x0][_0x2011('0xb')](_0x2011('0x1c'));let _0x14bf95;if(_0x2011('0x9')==_0x41243d){const _0x5c39b1=_0x2e7304[_0x2011('0x6f')](_0x1060bb);_0x14bf95={'startRow':_0x5c39b1[_0x2011('0x4')],'endRow':_0x5c39b1[_0x2011('0x3')],'includeAllSlots':!0x0};}else{const _0xa51e33=_0x2e7304['getColumnIndexes'](_0x1060bb);_0x14bf95={'startColumn':_0xa51e33[_0x2011('0x4')],'endColumn':_0xa51e33[_0x2011('0x3')],'includeAllSlots':!0x0};}const _0x49b28f=_0x2e7304['createTableWalker'](_0x40c0c3,_0x14bf95),_0x39ea1a=Array[_0x2011('0x3d')](_0x49b28f)[_0x2011('0x3a')](({cell:_0x57d83d})=>_0x57d83d),_0x1a2aa5=se(_0x39ea1a[_0x2011('0x38')](_0x3c37e4=>_0x3c37e4[_0x2011('0x2f')](_0x53f60d))),_0x302a35=se(_0x39ea1a[_0x2011('0x38')](_0x1baccd=>!_0x1baccd[_0x2011('0x2f')](_0x53f60d)))[_0x2011('0x3a')](_0x3b70d6=>_0x77a3a5[_0x2011('0x66')](_0x3b70d6)),_0x54291a=_0x399402[_0x2011('0x75')](_0x302a35,_0xc30569);if(_0x54291a&&('tableRow'==_0x54291a[_0x2011('0x57')]||_0x2011('0x7e')==_0x54291a[_0x2011('0x57')])){const _0x77804b=this[_0x2011('0x72')](_0x54291a);for(const _0x5f2933 of _0x1a2aa5){const _0x3f335e=_0x77a3a5[_0x2011('0x66')](_0x5f2933),_0x49d458=_0x2e7304[_0x2011('0x70')](_0x5f2933),_0x3ea983=_0x5f2933['getAttribute'](_0x53f60d)-0x1,_0x4135a9=_0x77804b[_0x397b80],_0x3f9dad=_0x77804b[_0x3d564d];_0x4135a9<=_0x49d458[_0x5d1155]&&_0x49d458[_0x5d1155]+_0x3ea983<=_0x3f9dad&&_0x54291a[_0x2011('0x4e')](_0x3f335e);}}});});}function _0x475845(_0x3caf59){const _0x28d0cf=Array['from'](_0x3e05d5['getRanges']())[_0x2011('0x3a')](_0xa1e1e=>_0x34e9b0[_0x2011('0x21')](_0xa1e1e));_0x33216e[_0x2011('0x79')][_0x2011('0x5e')](_0x5a8943=>{const _0x62a7cd=_0x5a8943[_0x2011('0x20')];_0x3caf59=_0x3caf59[_0x2011('0x38')](_0x59b5ea=>_0x2011('0x7a')!=_0x59b5ea[_0x2011('0x77')][_0x2011('0xa')]),_0x5a8943[_0x2011('0x60')](_0x3caf59),_0x33216e[_0x2011('0x1b')][_0x2011('0x88')](_0x2011('0x9'))[_0x2011('0x59')](),_0x33216e[_0x2011('0x32')](_0x2011('0x9'),{'forceDefaultExecution':!0x0}),_0x33216e[_0x2011('0x79')][_0x2011('0x64')](()=>{_0x33216e[_0x2011('0x79')]['enqueueChange'](_0x62a7cd,_0x431b06=>{const _0x2428eb=_0x28d0cf['filter'](_0x3483c0=>_0x2011('0x7a')!=_0x3483c0[_0x2011('0x77')][_0x2011('0xa')]);_0x2428eb[_0x2011('0x46')]>0x0&&_0x431b06[_0x2011('0x60')](_0x2428eb);for(const _0x4e0b00 of _0x28d0cf)_0x4e0b00[_0x2011('0x84')]();});});});}function _0x53084e(_0x395a0b){_0x33216e[_0x2011('0x79')][_0x2011('0x5e')](_0x5fddb8=>{const _0x40433a=Array[_0x2011('0x3d')](_0x3e05d5['getRanges']())[_0x2011('0x3a')](_0x1db16c=>_0x34e9b0['fromRange'](_0x1db16c)),_0x1e6b61=[];for(const _0x43f071 of _0x395a0b)for(const _0x303ecd of _0x43f071[_0x2011('0x71')]({'shallow':!0x0}))_0x1e6b61[_0x2011('0xf')](_0x303ecd);for(const _0x229d93 of _0x1e6b61)_0x2011('0x7a')!=_0x229d93[_0x2011('0x77')][_0x2011('0xa')]&&(_0x5fddb8[_0x2011('0x60')](_0x5fddb8['createPositionAt'](_0x229d93,0x0)),_0x33216e[_0x2011('0x1b')][_0x2011('0x88')](_0x2011('0x58'))[_0x2011('0x59')](),_0x33216e[_0x2011('0x32')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x40437d=_0x40433a[_0x2011('0x38')](_0x4d93e9=>_0x2011('0x7a')!=_0x4d93e9['root'][_0x2011('0xa')]);_0x40437d[_0x2011('0x46')]>0x0&&_0x5fddb8[_0x2011('0x60')](_0x40437d);for(const _0x27c386 of _0x40433a)_0x27c386['detach']();});}function _0x395373(_0x349778,_0x5abc38){return _0x5abc38['every'](_0x4e2600=>_0x349778[_0x2011('0x30')](_0x13d8c8=>_0x13d8c8[_0x2011('0x1e')]['isEqual'](_0x4e2600[_0x2011('0x1a')])||_0x4e2600[_0x2011('0x1e')][_0x2011('0x65')](_0x13d8c8[_0x2011('0x1a')])));}function _0x12187f(_0x33fd39,_0x151a8b){return _0x33fd39[_0x2011('0x30')](_0x12f6ef=>_0x151a8b[_0x2011('0x30')](_0x5b0c9a=>_0x12f6ef[_0x2011('0x1e')][_0x2011('0x87')](_0x5b0c9a[_0x2011('0x1a')])));}_0x33216e[_0x2011('0x89')][_0x2011('0x4a')]['on']('addMarker:suggestion',(_0x3b403c,_0x5552b2,_0x1c052e)=>{if(!_0x1c052e[_0x2011('0x28')][_0x2011('0x80')])return;const _0x3253b2=_0x5552b2[_0x2011('0x6')];if(!_0x3253b2)return;const _0x3fccde=_0x1c052e[_0x2011('0x47')][_0x2011('0x2')](_0x3253b2);function _0xc8ce7f(_0x4dba77){return Array[_0x2011('0xd')](_0x4dba77)?_0x4dba77:[_0x4dba77];}_0x3fccde&&_0x2011('0x27')===_0x3253b2[_0x2011('0x6d')]&&_0x42f190(_0x3fccde,_0x1c052e[_0x2011('0x25')],(_0x58d6f5,_0x35fa29,_0x4c574c)=>_0x4c574c[_0x2011('0xe')](_0xc8ce7f(_0x35fa29[_0x2011('0x67')]),_0x58d6f5),(_0x40c89e,_0x3b0076,_0x226e51)=>_0x226e51['removeClass'](_0xc8ce7f(_0x3b0076[_0x2011('0x67')]),_0x40c89e));},{'priority':_0x2011('0x5d')}),_0x399402[_0x2011('0x63')]['registerDescriptionCallback'](_0x232350=>{if(_0x2011('0x18')!=_0x232350[_0x2011('0x31')]&&'deletion'!=_0x232350['type'])return;const _0x49a448=_0x232350[_0x2011('0x43')]();if(null!=_0x49a448&&_0x49a448['is'](_0x2011('0x23'),_0x2011('0x1c'))){if(_0x2011('0x18')==_0x232350['type']){const _0x4e8829=_0x232350[_0x2011('0x71')]()['filter'](_0x3534e6=>_0x3534e6['is'](_0x2011('0x5c')))[_0x2011('0x3a')](_0xbe5ede=>_0xbe5ede[_0x2011('0x89')]);if(_0x4e8829[_0x2011('0x46')])return{'type':'insertion','content':_0x39ce34(_0x25c7c1,_0x2011('0x24'),_0x39ce34(_0x25c7c1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e8829[_0x2011('0x86')]('\x20')+'\x22'))};}if(_0x2011('0x2d')==_0x232350['type']){const _0x4c992e=_0x232350['getItems']()['filter'](_0x24a07a=>_0x24a07a['is'](_0x2011('0x5c')))['map'](_0x24b085=>_0x24b085['data']);if(_0x4c992e[_0x2011('0x46')])return{'type':_0x2011('0x2d'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x69'),_0x39ce34(_0x25c7c1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c992e[_0x2011('0x86')]('\x20')+'\x22'))};}}}),_0x399402[_0x2011('0x63')][_0x2011('0x5b')](_0x3c9b27=>{if(_0x2011('0x22')==_0x3c9b27[_0x2011('0x57')]){const _0x582de7=_0x3c9b27[_0x2011('0x71')]()['filter'](_0x14c569=>_0x14c569['is'](_0x2011('0x5c')))['map'](_0x2c667a=>_0x2c667a[_0x2011('0x89')]),_0x44f315=this[_0x2011('0x72')](_0x3c9b27),_0x15ec69=_0x44f315[_0x2011('0x7')]-_0x44f315[_0x2011('0x1d')]+0x1;if(_0x2011('0x18')==_0x3c9b27['type'])return _0x582de7['length']?{'type':_0x2011('0x18'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x24'),_0x39ce34(_0x25c7c1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x15ec69,'\x22'+_0x582de7[_0x2011('0x86')]('\x20')+'\x22']))}:{'type':_0x2011('0x18'),'content':_0x39ce34(_0x25c7c1,'*Insert:*\x20%0',_0x39ce34(_0x25c7c1,_0x2011('0x4d'),_0x15ec69))};if('deletion'==_0x3c9b27[_0x2011('0x31')])return _0x582de7[_0x2011('0x46')]?{'type':_0x2011('0x2d'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x69'),_0x39ce34(_0x25c7c1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x15ec69,'\x22'+_0x582de7[_0x2011('0x86')]('\x20')+'\x22']))}:{'type':_0x2011('0x2d'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x69'),_0x39ce34(_0x25c7c1,_0x2011('0x4d'),_0x15ec69))};}if(_0x2011('0x7e')==_0x3c9b27['subType']){const _0x5c9225=_0x3c9b27[_0x2011('0x71')]()[_0x2011('0x38')](_0x3abc5c=>_0x3abc5c['is'](_0x2011('0x5c')))[_0x2011('0x3a')](_0x2c0afa=>_0x2c0afa[_0x2011('0x89')]),_0x156f6f=this[_0x2011('0x72')](_0x3c9b27),_0x4dded0=_0x156f6f[_0x2011('0x73')]-_0x156f6f[_0x2011('0x1f')]+0x1;if(_0x2011('0x18')==_0x3c9b27['type'])return _0x5c9225[_0x2011('0x46')]?{'type':_0x2011('0x18'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x24'),_0x39ce34(_0x25c7c1,_0x2011('0x82'),[_0x4dded0,'\x22'+_0x5c9225['join']('\x20')+'\x22']))}:{'type':_0x2011('0x18'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x24'),_0x39ce34(_0x25c7c1,_0x2011('0x39'),_0x4dded0))};if(_0x2011('0x2d')==_0x3c9b27['type'])return _0x5c9225[_0x2011('0x46')]?{'type':_0x2011('0x2d'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x69'),_0x39ce34(_0x25c7c1,_0x2011('0x82'),[_0x4dded0,'\x22'+_0x5c9225[_0x2011('0x86')]('\x20')+'\x22']))}:{'type':_0x2011('0x2d'),'content':_0x39ce34(_0x25c7c1,_0x2011('0x69'),_0x39ce34(_0x25c7c1,_0x2011('0x39'),_0x4dded0))};}}),_0x399402[_0x2011('0x19')][_0x2011('0x2b')]('insertion',_0x2011('0x22'),'discard',_0x475845),_0x399402[_0x2011('0x19')][_0x2011('0x2b')](_0x2011('0x2d'),_0x2011('0x22'),_0x2011('0x45'),_0x475845),_0x399402[_0x2011('0x19')][_0x2011('0x2b')](_0x2011('0x18'),_0x2011('0x7e'),'discard',_0x53084e),_0x399402['_suggestionFactory'][_0x2011('0x2b')](_0x2011('0x2d'),_0x2011('0x7e'),_0x2011('0x45'),_0x53084e),_0x399402[_0x2011('0x19')][_0x2011('0x2b')](_0x2011('0x18'),_0x2011('0x7e'),_0x2011('0x86'),_0x395373),_0x399402[_0x2011('0x19')][_0x2011('0x2b')](_0x2011('0x2d'),_0x2011('0x7e'),_0x2011('0x86'),_0x395373),_0x399402[_0x2011('0x19')][_0x2011('0x2b')](_0x2011('0x18'),'tableRow',_0x2011('0x86'),_0x12187f),_0x399402[_0x2011('0x19')][_0x2011('0x2b')]('deletion',_0x2011('0x22'),_0x2011('0x86'),_0x12187f);}[_0x2011('0x4b')](){const _0x125565=this['editor'],_0x18346a=_0x125565['model']['document']['selection'];return(_0x198749,_0x3df47f)=>{_0x125565[_0x2011('0x79')][_0x2011('0x5e')](_0x2a5f94=>{const {commandName:_0x4959b4,commandParams:_0x38bd70}=_0x3df47f;let _0x405f2c=_0x198749[0x0][_0x2011('0x1e')]['nodeBefore'];_0x38bd70&&_0x38bd70[0x0]&&!0x1===_0x38bd70[0x0][_0x2011('0x7b')]&&(_0x405f2c=_0x198749[0x0]['start'][_0x2011('0x5')]);const _0x560177=_0x2a5f94[_0x2011('0x2a')](_0x405f2c);if(_0x2011('0x7a')==_0x560177[_0x2011('0x77')][_0x2011('0xa')])return;const _0x1a9439=Array[_0x2011('0x3d')](_0x18346a[_0x2011('0x56')]())[_0x2011('0x3a')](_0x521165=>_0x34e9b0[_0x2011('0x21')](_0x521165));_0x2a5f94[_0x2011('0x60')](_0x560177),_0x125565[_0x2011('0x1b')][_0x2011('0x88')](_0x4959b4)[_0x2011('0x59')](),_0x38bd70['push']({'forceDefaultExecution':!0x0}),_0x125565[_0x2011('0x32')](_0x4959b4,..._0x38bd70);const _0x131eff=_0x1a9439[_0x2011('0x38')](_0x1ae663=>_0x2011('0x7a')!=_0x1ae663[_0x2011('0x77')][_0x2011('0xa')]);_0x131eff[_0x2011('0x46')]>0x0&&_0x2a5f94['setSelection'](_0x131eff);for(const _0x51fdc1 of _0x1a9439)_0x51fdc1[_0x2011('0x84')]();});};}[_0x2011('0x54')](_0x4db794){const _0x3004b6=this[_0x2011('0x0')]['plugins'][_0x2011('0x88')](_0x2011('0x49'));let _0x58ece2=Number[_0x2011('0x6b')],_0xb891a=Number[_0x2011('0x78')],_0xa84266=Number['MAX_SAFE_INTEGER'],_0x3e7230=Number['MIN_SAFE_INTEGER'];for(const _0x4eb90f of _0x4db794){if(_0x2011('0x7a')==_0x4eb90f['root'][_0x2011('0xa')])continue;const {row:_0x4db5cf,column:_0x38acc8}=_0x3004b6[_0x2011('0x70')](_0x4eb90f),_0x189a23=_0x4eb90f[_0x2011('0x2f')](_0x2011('0xc'))?_0x4eb90f[_0x2011('0x53')](_0x2011('0xc'))-0x1:0x0,_0xc33b89=_0x4eb90f['hasAttribute'](_0x2011('0x4c'))?_0x4eb90f[_0x2011('0x53')]('colspan')-0x1:0x0;_0x58ece2=_0x4db5cf<_0x58ece2?_0x4db5cf:_0x58ece2,_0xb891a=_0x4db5cf+_0x189a23>_0xb891a?_0x4db5cf+_0x189a23:_0xb891a,_0xa84266=_0x38acc8<_0xa84266?_0x38acc8:_0xa84266,_0x3e7230=_0x38acc8+_0xc33b89>_0x3e7230?_0x38acc8+_0xc33b89:_0x3e7230;}return{'minRow':_0x58ece2,'maxRow':_0xb891a,'minColumn':_0xa84266,'maxColumn':_0x3e7230};}['_setupColumnsRowsFixing'](){const _0x51bc67=this[_0x2011('0x0')],_0x30384a=_0x51bc67['plugins'][_0x2011('0x88')](_0x2011('0x6e')),_0x1d768c=_0x51bc67[_0x2011('0x4f')][_0x2011('0x88')](_0x2011('0x49'));_0x51bc67[_0x2011('0x79')][_0x2011('0x48')]['on'](_0x2011('0x85'),()=>{const _0x40c4f3=Array[_0x2011('0x3d')](_0x51bc67[_0x2011('0x79')][_0x2011('0x48')]['differ'][_0x2011('0x13')]());for(const {name:_0x1254f7,data:_0x3cc402}of _0x40c4f3){const {group:_0x378490,id:_0x574024,subType:_0x5a0864}=_0x30384a[_0x2011('0x2e')](_0x1254f7);if(_0x2011('0x7c')!=_0x378490)continue;if(null!=_0x3cc402[_0x2011('0x44')])continue;const _0x2fd2af=_0x30384a[_0x2011('0x51')](_0x574024);this['_tablePostFixingSubtypes'][_0x2011('0x8')](_0x5a0864)&&this[_0x2011('0x34')][_0x2011('0x2c')](_0x2fd2af);}},{'priority':_0x2011('0x1')});const _0x32d9a3=(_0xdc7489,_0x15ccb0)=>{let _0x5e908d=!0x1;const _0x2dd019=_0x15ccb0[_0x2011('0x66')](_0xdc7489),_0xa68dd3=_0xdc7489[_0x2011('0xb')](_0x2011('0x1c')),_0x5d90fe=_0x1d768c[_0x2011('0x70')](_0xdc7489);for(const _0x392dd5 of this[_0x2011('0x34')]){const _0x3f23ed=_0x392dd5[_0x2011('0x57')],_0x348f2e=_0x3f23ed[_0x2011('0x50')]('tablePaste'),_0x4825c8=_0x3f23ed['substr'](_0x348f2e?0xa:0x5),_0x1a2aaf=_0x4825c8[_0x2011('0x55')](),_0x6fec06=_0x1a2aaf[_0x2011('0x10')](0x0,0x3)+_0x2011('0x42'),_0x1b0acd=_0x2011('0x7f')+_0x4825c8,_0x4cfa42='max'+_0x4825c8;if(!_0x392dd5[_0x2011('0x14')])continue;if(_0xa68dd3!=_0x392dd5[_0x2011('0x5a')]()[_0x2011('0x1a')][_0x2011('0xb')](_0x2011('0x1c')))continue;if(_0x392dd5[_0x2011('0x26')](_0x2dd019))continue;const _0x33f433=_0xdc7489[_0x2011('0x2f')](_0x6fec06)?_0xdc7489[_0x2011('0x53')](_0x6fec06)-0x1:0x0,_0x4e1af8=this[_0x2011('0x72')](_0x392dd5),_0x38312b=_0x4e1af8[_0x1b0acd],_0xaea2fc=_0x4e1af8[_0x4cfa42];_0x38312b<=_0x5d90fe[_0x1a2aaf]&&_0x5d90fe[_0x1a2aaf]+_0x33f433<=_0xaea2fc&&(_0x392dd5[_0x2011('0x4e')](_0x2dd019),_0x5e908d=!0x0);}return _0x5e908d;};_0x51bc67[_0x2011('0x79')]['document'][_0x2011('0x7d')](_0x8c3158=>{let _0x16d985=!0x1;for(const _0x211bca of _0x51bc67[_0x2011('0x79')]['document'][_0x2011('0x29')]['getChanges']())if(_0x2011('0x40')==_0x211bca['type']){if(_0x2011('0x22')==_0x211bca[_0x2011('0x6d')])for(const _0xcff5c5 of _0x211bca[_0x2011('0x76')]['nodeAfter']['getChildren']())_0x16d985=_0x16d985||_0x32d9a3(_0xcff5c5,_0x8c3158);else _0x2011('0x27')==_0x211bca['name']&&(_0x16d985=_0x16d985||_0x32d9a3(_0x211bca['position'][_0x2011('0x5')],_0x8c3158));}return _0x16d985;});}[_0x2011('0x72')](_0x20446b){return this[_0x2011('0x54')](_0x20446b[_0x2011('0x56')]()[_0x2011('0x3a')](_0x5687f5=>_0x5687f5[_0x2011('0x1a')][_0x2011('0x5')]));}}function se(_0x49d61a){return Array['from'](new Set(_0x49d61a)[_0x2011('0x68')]());}
|
|
23
|
+
const _0x4fd1=['has','subType','registerElementLabel','registerCustomCallback','tableRow','getChangedMarkers','selection','some','removeTableRow','plugins','mapper','get','MAX_SAFE_INTEGER','rootName','toViewElement','root','options','ELEMENT_TABLE_ROW_WITH_TEXT','addClass','values','document','isInContent','colspan','refresh','getItems','last','substr','change','type','toLowerCase','removeTableColumn','$graveyard','cell','insertTableRowBelow','selectTableColumn','insert','getCellLocation','nodeBefore','name','change:data','tableColumn','isTouching','registerPostFixer','_getSuggestionCoords','model','differ','from','_descriptionFactory','fromRange','tableCell','registerDescriptionCallback','createTableWalker','getColumnIndexes','removeClass','element','maxColumn','includes','createPositionAt','map','_tableSuggestions','editor','ELEMENT_TABLE_WITH_TEXT','table','order','start','oldRange','getChanges','first','findAncestor','rowspan','highest','addRange','markMultiRangeInsertion','span','_suggestionFactory','suggestion','_getCoordsForCells','isIntersectingWithRange','TableUtils','forceValue','_splitMarkerName','discard','_setupColumnsRowsFixing','TableEditing','tablePaste','execute','data','MIN_SAFE_INTEGER','$textProxy','_acceptFormatSuggestionCallbackFactory','enqueueChange','nodeAfter','isArray','join','left','getSelectionAffectedTableCells','max','insertTableColumnLeft','length','filter','detach','accept','maxRow','createRangeOn','createRangeIn','writer','every','minRow','enableCommand','insertTableRowAbove','_tablePostFixingSubtypes','above','getAttribute','locale','ELEMENT_TABLE_COLUMN_WITH_TEXT','ELEMENT_TABLE_COLUMN','hasAttribute','getFirstRange','getChildren','getRowIndexes','TrackChangesEditing','*Insert:*\x20%0','getRanges','commands','*Remove:*\x20%0','deletion','isEqual','end','setSelection','addMarker:suggestion','item','getSuggestion','classes','markMultiRangeDeletion','insertTableColumnRight','ELEMENT_TABLE_ROW','insertion'];(function(_0x302fe4,_0x4fd1db){const _0x507608=function(_0xb315c9){while(--_0xb315c9){_0x302fe4['push'](_0x302fe4['shift']());}};_0x507608(++_0x4fd1db);}(_0x4fd1,0x12e));const _0x5076=function(_0x302fe4,_0x4fd1db){_0x302fe4=_0x302fe4-0x0;let _0x507608=_0x4fd1[_0x302fe4];return _0x507608;};import{Plugin as _0x58eec9}from'ckeditor5/src/core';import{LiveRange as _0x187abe}from'ckeditor5/src/engine';import{setHighlightHandling as _0x571d9b}from'ckeditor5/src/widget';import{getTranslation as _0x4a70e5}from'../utils/common-translations';export default class wt extends _0x58eec9{constructor(_0x5160c4){super(_0x5160c4),this['_tablePostFixingSubtypes']=['tableRow',_0x5076('0xc')],this[_0x5076('0x1f')]=new Set();}['afterInit'](){const _0x2299a2=this[_0x5076('0x20')],_0x200bf1=_0x2299a2[_0x5076('0x10')][_0x5076('0x81')][_0x5076('0x73')];if(!_0x2299a2[_0x5076('0x76')][_0x5076('0x6d')](_0x5076('0x37')))return;const _0x1255fb=_0x2299a2[_0x5076('0x55')],_0x4b0edb=_0x2299a2['plugins'][_0x5076('0x78')](_0x5076('0x5c')),_0x20d4d6=_0x2299a2[_0x5076('0x76')][_0x5076('0x78')](_0x5076('0x32'));_0x4b0edb[_0x5076('0x13')][_0x5076('0x6f')](_0x5076('0x22'),_0x1b6979=>_0x4a70e5(_0x1255fb,'ELEMENT_TABLE',_0x1b6979)),this[_0x5076('0x36')](),_0x4b0edb[_0x5076('0x50')]('insertTable'),_0x4b0edb['enableCommand']('selectTableRow'),_0x4b0edb[_0x5076('0x50')](_0x5076('0x6'));for(const _0x3084f8 of[_0x5076('0x51'),_0x5076('0x5')]){const _0x358699=_0x2299a2[_0x5076('0x5f')]['get'](_0x3084f8);_0x4b0edb['enableCommand'](_0x3084f8,_0x263223=>{_0x2299a2[_0x5076('0x10')]['change'](_0x20c612=>{_0x263223();const _0x589f63=_0x5076('0x53')===_0x358699['order'],_0x9767ae=_0x20d4d6[_0x5076('0x43')](_0x200bf1),_0x15ee5f=_0x20d4d6['getRowIndexes'](_0x9767ae),_0x4a3071=_0x589f63?_0x15ee5f[_0x5076('0x27')]-0x1:_0x15ee5f['last']+0x1,_0x438ea3=_0x9767ae[0x0][_0x5076('0x28')](_0x5076('0x22')),_0x37f3f0=_0x20d4d6[_0x5076('0x17')](_0x438ea3,{'startRow':_0x4a3071,'endRow':_0x4a3071}),_0x4f85bf=Array[_0x5076('0x12')](_0x37f3f0)[_0x5076('0x1e')](_0x504e9a=>_0x20c612[_0x5076('0x4b')](_0x504e9a[_0x5076('0x4')]));_0x4b0edb[_0x5076('0x2c')](_0x4f85bf,_0x5076('0x71'));});});}for(const _0x3e46f5 of[_0x5076('0x45'),_0x5076('0x6a')]){const _0x4bc6ff=_0x2299a2[_0x5076('0x5f')][_0x5076('0x78')](_0x3e46f5);_0x4b0edb['enableCommand'](_0x3e46f5,_0x11e4a7=>{_0x2299a2['model'][_0x5076('0x88')](_0x42de54=>{_0x11e4a7();const _0x359b01=_0x5076('0x42')===_0x4bc6ff[_0x5076('0x23')],_0xd2eca6=_0x20d4d6[_0x5076('0x43')](_0x200bf1),_0x2fea31=_0x20d4d6[_0x5076('0x18')](_0xd2eca6),_0x362efc=_0x359b01?_0x2fea31[_0x5076('0x27')]-0x1:_0x2fea31[_0x5076('0x86')]+0x1,_0x9b28a2=_0xd2eca6[0x0][_0x5076('0x28')]('table'),_0x2f0d4a=_0x20d4d6[_0x5076('0x17')](_0x9b28a2,{'startRow':0x0,'column':_0x362efc,'includeAllSlots':!0x1}),_0x8d4d72=Array[_0x5076('0x12')](_0x2f0d4a)['map'](_0x1a8ef1=>_0x42de54[_0x5076('0x4b')](_0x1a8ef1[_0x5076('0x4')]));_0x4b0edb[_0x5076('0x2c')](_0x8d4d72,_0x5076('0xc'));});});}for(const _0x27461c of['removeTableRow',_0x5076('0x2')]){const _0x20d48c=_0x27461c[_0x5076('0x87')](0xb),_0x29e689=_0x20d48c[_0x5076('0x1')](),_0x1a29f0=_0x29e689['substr'](0x0,0x3)+_0x5076('0x2d'),_0xc25ca4=_0x5076('0x22')+_0x20d48c,_0x286912='min'+_0x20d48c,_0x715e66='max'+_0x20d48c;_0x4b0edb[_0x5076('0x50')](_0x27461c,()=>{_0x2299a2['model'][_0x5076('0x88')](_0x1b80e2=>{const _0x59d78a=_0x20d4d6[_0x5076('0x43')](_0x200bf1),_0x2d4133=_0x59d78a[0x0][_0x5076('0x28')]('table');let _0x36d5e2;if(_0x5076('0x75')==_0x27461c){const _0x272723=_0x20d4d6[_0x5076('0x5b')](_0x59d78a);_0x36d5e2={'startRow':_0x272723[_0x5076('0x27')],'endRow':_0x272723[_0x5076('0x86')],'includeAllSlots':!0x0};}else{const _0x481b91=_0x20d4d6['getColumnIndexes'](_0x59d78a);_0x36d5e2={'startColumn':_0x481b91[_0x5076('0x27')],'endColumn':_0x481b91[_0x5076('0x86')],'includeAllSlots':!0x0};}const _0x5cc61d=_0x20d4d6['createTableWalker'](_0x2d4133,_0x36d5e2),_0x2e79d9=Array[_0x5076('0x12')](_0x5cc61d)[_0x5076('0x1e')](({cell:_0x58daa0})=>_0x58daa0),_0x1c8cae=se(_0x2e79d9[_0x5076('0x47')](_0xa74811=>_0xa74811[_0x5076('0x58')](_0x1a29f0))),_0x2003b4=se(_0x2e79d9[_0x5076('0x47')](_0x3929a4=>!_0x3929a4[_0x5076('0x58')](_0x1a29f0)))[_0x5076('0x1e')](_0x16bc18=>_0x1b80e2[_0x5076('0x4b')](_0x16bc18)),_0x396e7c=_0x4b0edb[_0x5076('0x69')](_0x2003b4,_0xc25ca4);if(_0x396e7c&&(_0x5076('0x71')==_0x396e7c['subType']||_0x5076('0xc')==_0x396e7c['subType'])){const _0x22d119=this['_getSuggestionCoords'](_0x396e7c);for(const _0x340a25 of _0x1c8cae){const _0x3a208a=_0x1b80e2[_0x5076('0x4b')](_0x340a25),_0xb7b4d5=_0x20d4d6[_0x5076('0x8')](_0x340a25),_0x3cc7e0=_0x340a25['getAttribute'](_0x1a29f0)-0x1,_0x23e260=_0x22d119[_0x286912],_0xbd35b6=_0x22d119[_0x715e66];_0x23e260<=_0xb7b4d5[_0x29e689]&&_0xb7b4d5[_0x29e689]+_0x3cc7e0<=_0xbd35b6&&_0x396e7c[_0x5076('0x2b')](_0x3a208a);}}});});}function _0xf6366e(_0x509ddf){const _0x1f9fe1=Array['from'](_0x200bf1[_0x5076('0x5e')]())[_0x5076('0x1e')](_0x23989d=>_0x187abe[_0x5076('0x14')](_0x23989d));_0x2299a2['model'][_0x5076('0x88')](_0x1566db=>{const _0x536921=_0x1566db['batch'];_0x509ddf=_0x509ddf[_0x5076('0x47')](_0x19683c=>_0x5076('0x3')!=_0x19683c[_0x5076('0x7c')]['rootName']),_0x1566db['setSelection'](_0x509ddf),_0x2299a2[_0x5076('0x5f')][_0x5076('0x78')](_0x5076('0x75'))[_0x5076('0x84')](),_0x2299a2[_0x5076('0x39')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2299a2[_0x5076('0x10')][_0x5076('0x3e')](()=>{_0x2299a2[_0x5076('0x10')][_0x5076('0x3e')](_0x536921,_0x578124=>{const _0x2c85c2=_0x1f9fe1['filter'](_0x1d4658=>_0x5076('0x3')!=_0x1d4658[_0x5076('0x7c')][_0x5076('0x7a')]);_0x2c85c2[_0x5076('0x46')]>0x0&&_0x578124[_0x5076('0x64')](_0x2c85c2);for(const _0x59204f of _0x1f9fe1)_0x59204f[_0x5076('0x48')]();});});});}function _0x1552e1(_0x61766a){_0x2299a2[_0x5076('0x10')]['change'](_0x470aa3=>{const _0x35f335=Array['from'](_0x200bf1[_0x5076('0x5e')]())[_0x5076('0x1e')](_0x376481=>_0x187abe[_0x5076('0x14')](_0x376481)),_0x55a620=[];for(const _0x1e7b1d of _0x61766a)for(const _0xc16f38 of _0x1e7b1d['getItems']({'shallow':!0x0}))_0x55a620['push'](_0xc16f38);for(const _0x2e5659 of _0x55a620)_0x5076('0x3')!=_0x2e5659[_0x5076('0x7c')][_0x5076('0x7a')]&&(_0x470aa3[_0x5076('0x64')](_0x470aa3[_0x5076('0x1d')](_0x2e5659,0x0)),_0x2299a2[_0x5076('0x5f')]['get'](_0x5076('0x2'))[_0x5076('0x84')](),_0x2299a2['execute'](_0x5076('0x2'),{'forceDefaultExecution':!0x0}));const _0x3c5a42=_0x35f335[_0x5076('0x47')](_0x21ec5a=>'$graveyard'!=_0x21ec5a['root'][_0x5076('0x7a')]);_0x3c5a42[_0x5076('0x46')]>0x0&&_0x470aa3[_0x5076('0x64')](_0x3c5a42);for(const _0x459fc8 of _0x35f335)_0x459fc8[_0x5076('0x48')]();});}function _0xd24f97(_0x19c850,_0x445081){return _0x445081[_0x5076('0x4e')](_0x315f70=>_0x19c850[_0x5076('0x74')](_0x5939c7=>_0x5939c7[_0x5076('0x63')][_0x5076('0x62')](_0x315f70[_0x5076('0x24')])||_0x315f70['end'][_0x5076('0x62')](_0x5939c7[_0x5076('0x24')])));}function _0x3eb459(_0x2a334b,_0x27a0e0){return _0x2a334b[_0x5076('0x74')](_0x4c9882=>_0x27a0e0[_0x5076('0x74')](_0x2d2327=>_0x4c9882[_0x5076('0x63')][_0x5076('0xd')](_0x2d2327[_0x5076('0x24')])));}_0x2299a2[_0x5076('0x3a')]['downcastDispatcher']['on'](_0x5076('0x65'),(_0x529040,_0x43bc0f,_0x1fed23)=>{if(!_0x1fed23[_0x5076('0x7d')]['showSuggestionHighlights'])return;const _0x2d1cfb=_0x43bc0f[_0x5076('0x66')];if(!_0x2d1cfb)return;const _0x24dee4=_0x1fed23[_0x5076('0x77')][_0x5076('0x7b')](_0x2d1cfb);function _0x2751fa(_0x91890){return Array[_0x5076('0x40')](_0x91890)?_0x91890:[_0x91890];}_0x24dee4&&_0x5076('0x15')===_0x2d1cfb[_0x5076('0xa')]&&_0x571d9b(_0x24dee4,_0x1fed23[_0x5076('0x4d')],(_0x4c3f5a,_0x50020d,_0x448953)=>_0x448953[_0x5076('0x7f')](_0x2751fa(_0x50020d[_0x5076('0x68')]),_0x4c3f5a),(_0x44b5dd,_0x5b90b4,_0x1b8122)=>_0x1b8122[_0x5076('0x19')](_0x2751fa(_0x5b90b4[_0x5076('0x68')]),_0x44b5dd));},{'priority':_0x5076('0x2a')}),_0x4b0edb[_0x5076('0x13')][_0x5076('0x16')](_0x812dfd=>{if('insertion'!=_0x812dfd[_0x5076('0x0')]&&_0x5076('0x61')!=_0x812dfd['type'])return;const _0x45fcd0=_0x812dfd['getContainedElement']();if(null!=_0x45fcd0&&_0x45fcd0['is'](_0x5076('0x1a'),'table')){if(_0x5076('0x6c')==_0x812dfd[_0x5076('0x0')]){const _0x2ac9ef=_0x812dfd[_0x5076('0x85')]()[_0x5076('0x47')](_0x239fc1=>_0x239fc1['is'](_0x5076('0x3c')))['map'](_0x87f2cb=>_0x87f2cb[_0x5076('0x3a')]);if(_0x2ac9ef[_0x5076('0x46')])return{'type':'insertion','content':_0x4a70e5(_0x1255fb,_0x5076('0x5d'),_0x4a70e5(_0x1255fb,_0x5076('0x21'),'\x22'+_0x2ac9ef['join']('\x20')+'\x22'))};}if(_0x5076('0x61')==_0x812dfd[_0x5076('0x0')]){const _0x18c26d=_0x812dfd[_0x5076('0x85')]()[_0x5076('0x47')](_0x577328=>_0x577328['is']('$textProxy'))[_0x5076('0x1e')](_0x25ce5c=>_0x25ce5c['data']);if(_0x18c26d[_0x5076('0x46')])return{'type':_0x5076('0x61'),'content':_0x4a70e5(_0x1255fb,'*Remove:*\x20%0',_0x4a70e5(_0x1255fb,_0x5076('0x21'),'\x22'+_0x18c26d[_0x5076('0x41')]('\x20')+'\x22'))};}}}),_0x4b0edb['_descriptionFactory'][_0x5076('0x16')](_0x78beca=>{if(_0x5076('0x71')==_0x78beca[_0x5076('0x6e')]){const _0x4180e0=_0x78beca[_0x5076('0x85')]()[_0x5076('0x47')](_0x1ad391=>_0x1ad391['is']('$textProxy'))[_0x5076('0x1e')](_0x2df006=>_0x2df006[_0x5076('0x3a')]),_0x48610d=this[_0x5076('0xf')](_0x78beca),_0x285a29=_0x48610d[_0x5076('0x4a')]-_0x48610d[_0x5076('0x4f')]+0x1;if('insertion'==_0x78beca[_0x5076('0x0')])return _0x4180e0[_0x5076('0x46')]?{'type':_0x5076('0x6c'),'content':_0x4a70e5(_0x1255fb,_0x5076('0x5d'),_0x4a70e5(_0x1255fb,_0x5076('0x7e'),[_0x285a29,'\x22'+_0x4180e0[_0x5076('0x41')]('\x20')+'\x22']))}:{'type':_0x5076('0x6c'),'content':_0x4a70e5(_0x1255fb,'*Insert:*\x20%0',_0x4a70e5(_0x1255fb,_0x5076('0x6b'),_0x285a29))};if('deletion'==_0x78beca[_0x5076('0x0')])return _0x4180e0[_0x5076('0x46')]?{'type':'deletion','content':_0x4a70e5(_0x1255fb,'*Remove:*\x20%0',_0x4a70e5(_0x1255fb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x285a29,'\x22'+_0x4180e0[_0x5076('0x41')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x4a70e5(_0x1255fb,_0x5076('0x60'),_0x4a70e5(_0x1255fb,_0x5076('0x6b'),_0x285a29))};}if(_0x5076('0xc')==_0x78beca['subType']){const _0x5cb64d=_0x78beca[_0x5076('0x85')]()[_0x5076('0x47')](_0x4056b4=>_0x4056b4['is'](_0x5076('0x3c')))[_0x5076('0x1e')](_0xaa029=>_0xaa029[_0x5076('0x3a')]),_0x9f0911=this['_getSuggestionCoords'](_0x78beca),_0x125d88=_0x9f0911[_0x5076('0x1b')]-_0x9f0911['minColumn']+0x1;if(_0x5076('0x6c')==_0x78beca[_0x5076('0x0')])return _0x5cb64d[_0x5076('0x46')]?{'type':_0x5076('0x6c'),'content':_0x4a70e5(_0x1255fb,_0x5076('0x5d'),_0x4a70e5(_0x1255fb,_0x5076('0x56'),[_0x125d88,'\x22'+_0x5cb64d['join']('\x20')+'\x22']))}:{'type':_0x5076('0x6c'),'content':_0x4a70e5(_0x1255fb,_0x5076('0x5d'),_0x4a70e5(_0x1255fb,_0x5076('0x57'),_0x125d88))};if(_0x5076('0x61')==_0x78beca['type'])return _0x5cb64d[_0x5076('0x46')]?{'type':_0x5076('0x61'),'content':_0x4a70e5(_0x1255fb,'*Remove:*\x20%0',_0x4a70e5(_0x1255fb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x125d88,'\x22'+_0x5cb64d['join']('\x20')+'\x22']))}:{'type':_0x5076('0x61'),'content':_0x4a70e5(_0x1255fb,_0x5076('0x60'),_0x4a70e5(_0x1255fb,_0x5076('0x57'),_0x125d88))};}}),_0x4b0edb[_0x5076('0x2e')]['registerCustomCallback'](_0x5076('0x6c'),'tableRow',_0x5076('0x35'),_0xf6366e),_0x4b0edb[_0x5076('0x2e')][_0x5076('0x70')](_0x5076('0x61'),_0x5076('0x71'),_0x5076('0x49'),_0xf6366e),_0x4b0edb['_suggestionFactory'][_0x5076('0x70')](_0x5076('0x6c'),_0x5076('0xc'),_0x5076('0x35'),_0x1552e1),_0x4b0edb[_0x5076('0x2e')]['registerCustomCallback'](_0x5076('0x61'),'tableColumn',_0x5076('0x49'),_0x1552e1),_0x4b0edb[_0x5076('0x2e')]['registerCustomCallback'](_0x5076('0x6c'),_0x5076('0xc'),'join',_0xd24f97),_0x4b0edb[_0x5076('0x2e')][_0x5076('0x70')](_0x5076('0x61'),_0x5076('0xc'),_0x5076('0x41'),_0xd24f97),_0x4b0edb[_0x5076('0x2e')]['registerCustomCallback'](_0x5076('0x6c'),_0x5076('0x71'),_0x5076('0x41'),_0x3eb459),_0x4b0edb[_0x5076('0x2e')][_0x5076('0x70')](_0x5076('0x61'),_0x5076('0x71'),_0x5076('0x41'),_0x3eb459);}[_0x5076('0x3d')](){const _0x4ef5d5=this[_0x5076('0x20')],_0x56741a=_0x4ef5d5[_0x5076('0x10')][_0x5076('0x81')][_0x5076('0x73')];return(_0x332780,_0xbd803f)=>{_0x4ef5d5['model'][_0x5076('0x88')](_0x2a3b40=>{const {commandName:_0x328098,commandParams:_0x36e933}=_0xbd803f;let _0x137bc3=_0x332780[0x0][_0x5076('0x63')][_0x5076('0x9')];_0x36e933&&_0x36e933[0x0]&&!0x1===_0x36e933[0x0][_0x5076('0x33')]&&(_0x137bc3=_0x332780[0x0][_0x5076('0x24')][_0x5076('0x3f')]);const _0x4664ce=_0x2a3b40[_0x5076('0x4c')](_0x137bc3);if('$graveyard'==_0x4664ce[_0x5076('0x7c')][_0x5076('0x7a')])return;const _0x34476f=Array[_0x5076('0x12')](_0x56741a['getRanges']())[_0x5076('0x1e')](_0x52ae58=>_0x187abe['fromRange'](_0x52ae58));_0x2a3b40[_0x5076('0x64')](_0x4664ce),_0x4ef5d5[_0x5076('0x5f')]['get'](_0x328098)['refresh'](),_0x36e933['push']({'forceDefaultExecution':!0x0}),_0x4ef5d5['execute'](_0x328098,..._0x36e933);const _0x297946=_0x34476f[_0x5076('0x47')](_0x40b98c=>'$graveyard'!=_0x40b98c[_0x5076('0x7c')][_0x5076('0x7a')]);_0x297946[_0x5076('0x46')]>0x0&&_0x2a3b40[_0x5076('0x64')](_0x297946);for(const _0x9078a2 of _0x34476f)_0x9078a2[_0x5076('0x48')]();});};}[_0x5076('0x30')](_0x8d4b30){const _0x428953=this[_0x5076('0x20')][_0x5076('0x76')]['get']('TableUtils');let _0x3314be=Number[_0x5076('0x79')],_0x16ffaf=Number[_0x5076('0x3b')],_0x5df434=Number[_0x5076('0x79')],_0x308554=Number[_0x5076('0x3b')];for(const _0x709fec of _0x8d4b30){if(_0x5076('0x3')==_0x709fec[_0x5076('0x7c')][_0x5076('0x7a')])continue;const {row:_0x152559,column:_0x197ba2}=_0x428953[_0x5076('0x8')](_0x709fec),_0x361b00=_0x709fec['hasAttribute'](_0x5076('0x29'))?_0x709fec['getAttribute']('rowspan')-0x1:0x0,_0x23acba=_0x709fec[_0x5076('0x58')](_0x5076('0x83'))?_0x709fec[_0x5076('0x54')](_0x5076('0x83'))-0x1:0x0;_0x3314be=_0x152559<_0x3314be?_0x152559:_0x3314be,_0x16ffaf=_0x152559+_0x361b00>_0x16ffaf?_0x152559+_0x361b00:_0x16ffaf,_0x5df434=_0x197ba2<_0x5df434?_0x197ba2:_0x5df434,_0x308554=_0x197ba2+_0x23acba>_0x308554?_0x197ba2+_0x23acba:_0x308554;}return{'minRow':_0x3314be,'maxRow':_0x16ffaf,'minColumn':_0x5df434,'maxColumn':_0x308554};}['_setupColumnsRowsFixing'](){const _0x154583=this[_0x5076('0x20')],_0x44078b=_0x154583[_0x5076('0x76')][_0x5076('0x78')](_0x5076('0x5c')),_0x3939ca=_0x154583[_0x5076('0x76')]['get'](_0x5076('0x32'));_0x154583[_0x5076('0x10')][_0x5076('0x81')]['on'](_0x5076('0xb'),()=>{const _0x11b566=Array[_0x5076('0x12')](_0x154583['model'][_0x5076('0x81')]['differ'][_0x5076('0x72')]());for(const {name:_0x2263ca,data:_0x2d3c4a}of _0x11b566){const {group:_0x35f296,id:_0x1ce3c3,subType:_0x267334}=_0x44078b[_0x5076('0x34')](_0x2263ca);if(_0x5076('0x2f')!=_0x35f296)continue;if(null!=_0x2d3c4a[_0x5076('0x25')])continue;const _0x52adb2=_0x44078b[_0x5076('0x67')](_0x1ce3c3);this[_0x5076('0x52')][_0x5076('0x1c')](_0x267334)&&this[_0x5076('0x1f')]['add'](_0x52adb2);}},{'priority':'low'});const _0x4c305e=(_0x4d7a50,_0x54867c)=>{let _0x4dd32a=!0x1;const _0x772d0e=_0x54867c[_0x5076('0x4b')](_0x4d7a50),_0x1b76b3=_0x4d7a50[_0x5076('0x28')](_0x5076('0x22')),_0x3f9296=_0x3939ca[_0x5076('0x8')](_0x4d7a50);for(const _0x4e3f38 of this[_0x5076('0x1f')]){const _0x46d56f=_0x4e3f38[_0x5076('0x6e')],_0x4ee39d=_0x46d56f['startsWith'](_0x5076('0x38')),_0x54833d=_0x46d56f[_0x5076('0x87')](_0x4ee39d?0xa:0x5),_0x478f05=_0x54833d['toLowerCase'](),_0x256b65=_0x478f05[_0x5076('0x87')](0x0,0x3)+'span',_0x1ddc46='min'+_0x54833d,_0x1e6e71=_0x5076('0x44')+_0x54833d;if(!_0x4e3f38[_0x5076('0x82')])continue;if(_0x1b76b3!=_0x4e3f38[_0x5076('0x59')]()[_0x5076('0x24')][_0x5076('0x28')](_0x5076('0x22')))continue;if(_0x4e3f38[_0x5076('0x31')](_0x772d0e))continue;const _0x5eec14=_0x4d7a50[_0x5076('0x58')](_0x256b65)?_0x4d7a50[_0x5076('0x54')](_0x256b65)-0x1:0x0,_0x4489af=this[_0x5076('0xf')](_0x4e3f38),_0x1528a3=_0x4489af[_0x1ddc46],_0x7041=_0x4489af[_0x1e6e71];_0x1528a3<=_0x3f9296[_0x478f05]&&_0x3f9296[_0x478f05]+_0x5eec14<=_0x7041&&(_0x4e3f38[_0x5076('0x2b')](_0x772d0e),_0x4dd32a=!0x0);}return _0x4dd32a;};_0x154583[_0x5076('0x10')][_0x5076('0x81')][_0x5076('0xe')](_0xf582ff=>{let _0x395d1b=!0x1;for(const _0x240229 of _0x154583[_0x5076('0x10')][_0x5076('0x81')][_0x5076('0x11')][_0x5076('0x26')]())if(_0x5076('0x7')==_0x240229[_0x5076('0x0')]){if(_0x5076('0x71')==_0x240229[_0x5076('0xa')])for(const _0x404a13 of _0x240229['position'][_0x5076('0x3f')][_0x5076('0x5a')]())_0x395d1b=_0x395d1b||_0x4c305e(_0x404a13,_0xf582ff);else'tableCell'==_0x240229[_0x5076('0xa')]&&(_0x395d1b=_0x395d1b||_0x4c305e(_0x240229['position'][_0x5076('0x3f')],_0xf582ff));}return _0x395d1b;});}[_0x5076('0xf')](_0x481315){return this[_0x5076('0x30')](_0x481315[_0x5076('0x5e')]()[_0x5076('0x1e')](_0x1baa58=>_0x1baa58[_0x5076('0x24')][_0x5076('0x3f')]));}}function se(_0x44a0d0){return Array[_0x5076('0x12')](new Set(_0x44a0d0)[_0x5076('0x80')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27d8=['TableCaptionEditing','get','editor','requires','TrackChangesEditing','plugins','enableCommand','has'];(function(_0x2cb3db,_0x27d8e8){const _0x146e7e=function(_0x272376){while(--_0x272376){_0x2cb3db['push'](_0x2cb3db['shift']());}};_0x146e7e(++_0x27d8e8);}(_0x27d8,0x11f));const _0x146e=function(_0x2cb3db,_0x27d8e8){_0x2cb3db=_0x2cb3db-0x0;let _0x146e7e=_0x27d8[_0x2cb3db];return _0x146e7e;};import{Plugin as _0x4ab4d9}from'ckeditor5/src/core';import _0x98eb01 from'./table';export default class Nt extends _0x4ab4d9{static get[_0x146e('0x4')](){return[_0x98eb01];}['afterInit'](){const _0x22790a=this[_0x146e('0x3')];if(!_0x22790a[_0x146e('0x6')][_0x146e('0x0')](_0x146e('0x1')))return;_0x22790a['plugins'][_0x146e('0x2')](_0x146e('0x5'))[_0x146e('0x7')]('toggleTableCaption');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3606=['commands','fill','deletion','includes','registerDescriptionCallback','$graveyard','*Replace\x20table\x20cells*','nextSibling','tableCellPadding','suggestion','getChanges','getRowIndexes','high','has','nodeAfter','discard','find','getRanges','suggestion:formatBlock:tablePasteCell','get','getAllAdjacentSuggestions','some','createPositionBefore','markMultiRangeInsertion','markMultiRangeBlockFormat','showSuggestionHighlights','getChildren','TableClipboard','getSelectionAffectedTableCells','TableUtils','isInContent','hasSuggestion','attributes','_splitMarkerName','editor','_descriptionFactory','columnInsertionIndexes','insertion','schema','previousSibling','getRange','view','isEmpty','getRows','remove','keys','tableCellHorizontalAlignment','subType','conversion','tablePasteChainId','insertContent','removeRows','createTableWalker','every','map','row','ck-suggestion-marker','getMarkers','startsWith','document','first','tableCellBorderColor','createRangeIn','redo','getAttributes','suggestion-td','getSuggestion','previous','plugins','_suggestionFactory','oldRange','tablePasteColumn','tablePasteRow','getChild','tableCellBackgroundColor','getSuggestions','TrackChangesEditing','requires','suggestionLoaded','last','position','tablePaste','isEqual','unwrap','setAttributes','tableCellSuggestion','cells','selection','formatBlock','markerName','accept','getTableIfOnlyTableInContent','tableCellBorderStyle','filter','batch','getContainedElement','model','getItems','root','updateMarker','for','length','getShiftedBy','push','next','activeMarkers','table','markerToHighlight','rootName','newRange','stop','registerCustomCallback','type','set','column','element','paragraph','end','createElement','tablePasteCell','tableCellVerticalAlignment','options','add','rowInsertionRanges','registerPostFixer','editingDowncast','createRange','change','insert','_getCoordsForCells','getColumns','documentSelection','removeMarkers','name','clipboardOutput','_createdBatches','endRow','listenTo','from','wrap','return','removeColumns','removeMarker','createRangeOn','author','Users','getColumnIndexes','markerAttributes','cell','fromEntries','containsRange','join','tableCell','deletionRanges'];(function(_0x3fa054,_0x360625){const _0x4ba851=function(_0x136a01){while(--_0x136a01){_0x3fa054['push'](_0x3fa054['shift']());}};_0x4ba851(++_0x360625);}(_0x3606,0x16f));const _0x4ba8=function(_0x3fa054,_0x360625){_0x3fa054=_0x3fa054-0x0;let _0x4ba851=_0x3606[_0x3fa054];return _0x4ba851;};import{getTranslation as _0x343a6e}from'../utils/common-translations';import{Plugin as _0x55f1cc}from'ckeditor5/src/core';import{uid as _0x1e3b05,priorities as _0x3425d1}from'ckeditor5/src/utils';import _0x148cfe from'./table';const le=['tableCellBorderWidth',_0x4ba8('0x2'),_0x4ba8('0x21'),_0x4ba8('0x8d'),_0x4ba8('0x3d'),_0x4ba8('0xf'),_0x4ba8('0x67')],ae=Object[_0x4ba8('0x5a')](le[_0x4ba8('0x95')](_0x3fb5df=>[_0x3fb5df,null]));export default class At extends _0x55f1cc{static get[_0x4ba8('0x12')](){return[_0x148cfe];}['afterInit'](){const _0x2830c0=this[_0x4ba8('0x81')];if(!_0x2830c0[_0x4ba8('0x9')][_0x4ba8('0x6c')]('TableClipboard'))return;const _0x3897b6=_0x2830c0[_0x4ba8('0x9')][_0x4ba8('0x72')](_0x4ba8('0x11')),_0x28e430=_0x2830c0[_0x4ba8('0x9')][_0x4ba8('0x72')](_0x4ba8('0x7c')),_0x41ea16=_0x2830c0[_0x4ba8('0x9')][_0x4ba8('0x72')](_0x148cfe),_0x30fff5=_0x2830c0[_0x4ba8('0x9')][_0x4ba8('0x72')](_0x4ba8('0x7a'));_0x41ea16['_tablePostFixingSubtypes']['push'](_0x4ba8('0xd'),_0x4ba8('0xc')),_0x2830c0[_0x4ba8('0x25')][_0x4ba8('0x85')]['register'](_0x4ba8('0x1a'),{'allowIn':'tableCell','allowContentOf':_0x4ba8('0x5d'),'isLimit':!0x0}),_0x2830c0[_0x4ba8('0x8f')]['elementToElement']({'model':_0x4ba8('0x1a'),'view':_0x4ba8('0x6')});let _0x11632d=null;_0x2830c0[_0x4ba8('0x25')]['on']('insertContent',(_0x8d3a17,_0x2f9cdf)=>{const [_0x2427ef,_0x4dfefe]=_0x2f9cdf,_0x2ab23e=_0x2f9cdf[_0x2f9cdf['length']-0x1];_0x2ab23e&&_0x2ab23e['forceDefaultExecution']||_0x3897b6['_isForcedDefaultExecutionBlock']||this[_0x4ba8('0x81')][_0x4ba8('0x5f')][_0x4ba8('0x72')]('trackChanges')['value']&&function(_0x144721,_0x18458b,_0x10b96d,_0x1cda43,_0x28f964){if(_0x18458b&&!_0x18458b['is'](_0x4ba8('0x48')))return!0x1;const _0x18d8cf=_0x28f964[_0x4ba8('0x20')](_0x144721,_0x10b96d);if(!_0x18d8cf||!fe(_0x18d8cf,void 0x0,_0x1cda43))return!0x1;const _0x2f5c01=_0x1cda43[_0x4ba8('0x7b')](_0x10b96d[_0x4ba8('0x0')][_0x4ba8('0x1c')]);if(!_0x2f5c01[_0x4ba8('0x2a')])return!0x1;const _0x32db41=_0x2f5c01[0x0]['findAncestor'](_0x4ba8('0x2f')),_0x54e0fc=_0x1cda43[_0x4ba8('0x6a')](_0x2f5c01),_0x3d34c8=_0x1cda43[_0x4ba8('0x57')](_0x2f5c01),_0x3e3492={'startRow':_0x54e0fc[_0x4ba8('0x1')],'endRow':_0x54e0fc[_0x4ba8('0x14')],'startColumn':_0x3d34c8[_0x4ba8('0x1')],'endColumn':_0x3d34c8[_0x4ba8('0x14')]};return 0x1==_0x2f5c01[_0x4ba8('0x2a')]&&(_0x3e3492[_0x4ba8('0x4d')]+=_0x1cda43[_0x4ba8('0x8a')](_0x18d8cf)-0x1,_0x3e3492['endColumn']+=_0x1cda43[_0x4ba8('0x47')](_0x18d8cf)-0x1),fe(_0x32db41,_0x3e3492,_0x1cda43);}(_0x2427ef,_0x4dfefe,_0x2830c0[_0x4ba8('0x25')],_0x28e430,_0x30fff5)&&(_0x8d3a17[_0x4ba8('0x33')](),_0x11632d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2830c0[_0x4ba8('0x25')][_0x4ba8('0x44')](()=>{_0x2830c0['model'][_0x4ba8('0x91')](_0x2f9cdf[0x0],_0x2f9cdf[0x1],_0x2f9cdf[0x2],{'forceDefaultExecution':!0x0});const _0x532262=_0x1e3b05(),{rowInsertionRanges:_0x135ff0,columnInsertionRanges:_0x32a19d,insertionRanges:_0x53124a,deletionRanges:_0x93a9ad,cells:_0x400a45}=_0x11632d;_0x135ff0[_0x4ba8('0x2a')]&&_0x3897b6[_0x4ba8('0x76')](_0x135ff0,_0x4ba8('0xd'),{'tablePasteChainId':_0x532262}),_0x32a19d[_0x4ba8('0x2a')]&&_0x3897b6[_0x4ba8('0x76')](_0x32a19d,_0x4ba8('0xc'),{'tablePasteChainId':_0x532262}),_0x53124a[_0x4ba8('0x2a')]&&_0x3897b6[_0x4ba8('0x76')](_0x53124a,'tablePaste',{'tablePasteChainId':_0x532262,'skipNestingCheck':!0x0}),_0x93a9ad[_0x4ba8('0x2a')]&&_0x3897b6['markMultiRangeDeletion'](_0x93a9ad,_0x4ba8('0x16'),{'tablePasteChainId':_0x532262,'skipNestingCheck':!0x0});const _0x56d228=_0x3897b6[_0x4ba8('0x77')](_0x400a45[_0x4ba8('0x95')](({element:_0xb9e325})=>_0xb9e325),{'formatGroupId':_0x1e3b05()},[],_0x4ba8('0x3c'),{'tablePasteChainId':_0x532262});if(_0x56d228){const _0x51df0d=_0x56d228[_0x4ba8('0x98')](),_0x540553=[];for(const {element:_0x459fbd,attributes:_0x181233}of _0x400a45){if(!_0x181233)continue;const _0x1e2b94=_0x2830c0[_0x4ba8('0x25')]['createRangeOn'](_0x459fbd),_0x58454a=_0x51df0d[_0x4ba8('0x6f')](_0x1da0a0=>_0x1da0a0[_0x4ba8('0x87')]()[_0x4ba8('0x17')](_0x1e2b94));_0x58454a&&_0x540553['push']([_0x58454a[_0x4ba8('0x4a')],_0x181233]);}_0x540553['length']&&_0x56d228['setAttribute'](_0x4ba8('0x58'),Object['fromEntries'](_0x540553));}_0x11632d=null;}));},{'priority':_0x3425d1[_0x4ba8('0x6b')]+0xa}),_0x2830c0['plugins'][_0x4ba8('0x72')](_0x4ba8('0x7a'))['on']('_replaceTableSlotCell',(_0x2aaadb,_0x5c3d78)=>{const [_0x4e879e,_0x59430f,,_0x285127]=_0x5c3d78;if(!_0x11632d)return;_0x2aaadb[_0x4ba8('0x33')]();const _0x2ef4cd=_0x4e879e[_0x4ba8('0x59')],_0x2922fb=_0x59430f,_0x1e570a=ce(_0x2ef4cd),_0x14d606=ce(_0x2922fb);_0x2aaadb[_0x4ba8('0x51')]=_0x2ef4cd;let _0x387782=null,_0x3c83e5=null;if(_0x14d606||_0x1e570a){if(_0x1e570a&&!_0x14d606){_0x285127[_0x4ba8('0x8b')](_0x2ef4cd['getChild'](0x0));for(const _0x202050 of Array[_0x4ba8('0x4f')](_0x2922fb[_0x4ba8('0x79')]()))_0x285127[_0x4ba8('0x45')](_0x202050,_0x2ef4cd,'end');const _0x3efd8d=_0x11632d['rowInsertionIndexes']['includes'](_0x4e879e[_0x4ba8('0x96')]),_0x41251f=_0x11632d[_0x4ba8('0x83')]['includes'](_0x4e879e[_0x4ba8('0x37')]);_0x3efd8d||_0x41251f||(_0x387782=_0x285127[_0x4ba8('0x3')](_0x2ef4cd));}else _0x14d606&&!_0x1e570a&&(_0x3c83e5=_0x285127['createRangeIn'](_0x2ef4cd));}else{const _0x5380e9=_0x285127['createElement'](_0x4ba8('0x1a')),_0x1fe4db=_0x285127[_0x4ba8('0x3b')]('tableCellSuggestion');_0x285127[_0x4ba8('0x50')](_0x285127[_0x4ba8('0x3')](_0x2ef4cd),_0x1fe4db),_0x285127[_0x4ba8('0x45')](_0x5380e9,_0x2ef4cd,0x0);for(const _0x1558c4 of Array['from'](_0x2922fb[_0x4ba8('0x79')]()))_0x285127[_0x4ba8('0x45')](_0x1558c4,_0x5380e9,_0x4ba8('0x3a'));_0x387782=_0x285127[_0x4ba8('0x54')](_0x5380e9),_0x3c83e5=_0x285127['createRangeOn'](_0x1fe4db);}const _0x326896=Array[_0x4ba8('0x4f')](_0x2922fb[_0x4ba8('0x5')]())[_0x4ba8('0x22')](([_0x18030e])=>le[_0x4ba8('0x62')](_0x18030e));_0x11632d[_0x4ba8('0x1b')][_0x4ba8('0x2c')]({'element':_0x2ef4cd,'attributes':_0x326896[_0x4ba8('0x2a')]?Object['fromEntries'](_0x326896):null}),_0x387782&&_0x11632d['insertionRanges'][_0x4ba8('0x2c')](_0x387782),_0x3c83e5&&_0x11632d[_0x4ba8('0x5e')]['push'](_0x3c83e5);},{'priority':_0x4ba8('0x6b')}),_0x28e430['on']('insertColumns',(_0x41f9ed,_0x209c92)=>{const [_0x461c4a,_0x103c94={}]=_0x209c92;if(!_0x11632d)return;const _0x3d0b16=_0x103c94['at']||0x0,_0x70b5d1=_0x103c94['columns']||0x1;_0x11632d[_0x4ba8('0x83')]=new Array(_0x70b5d1)[_0x4ba8('0x60')](_0x3d0b16)[_0x4ba8('0x95')]((_0x50e5d3,_0x4b8de8)=>_0x50e5d3+_0x4b8de8);for(const {cell:_0xf7a6fc}of _0x28e430[_0x4ba8('0x93')](_0x461c4a,{'startColumn':_0x3d0b16,'endColumn':_0x3d0b16+_0x70b5d1-0x1}))_0x11632d['columnInsertionRanges']['push'](_0x2830c0[_0x4ba8('0x25')][_0x4ba8('0x54')](_0xf7a6fc));},{'priority':'low'}),_0x28e430['on']('insertRows',(_0x5747ab,_0x53e4b7)=>{const [_0x2129ad,_0x483a90={}]=_0x53e4b7;if(!_0x11632d)return;const _0x303a21=_0x483a90['at']||0x0,_0x3b244b=_0x483a90['rows']||0x1;_0x11632d['rowInsertionIndexes']=new Array(_0x3b244b)[_0x4ba8('0x60')](_0x303a21)[_0x4ba8('0x95')]((_0x3d0fc9,_0x669ba7)=>_0x3d0fc9+_0x669ba7);for(const {cell:_0x29899d}of _0x28e430['createTableWalker'](_0x2129ad,{'startRow':_0x303a21,'endRow':_0x303a21+_0x3b244b-0x1}))_0x11632d[_0x4ba8('0x40')][_0x4ba8('0x2c')](_0x2830c0[_0x4ba8('0x25')]['createRangeOn'](_0x29899d));},{'priority':'low'}),_0x3897b6[_0x4ba8('0x82')][_0x4ba8('0x63')](_0x2091aa=>{if(_0x2091aa[_0x4ba8('0x8e')]&&_0x2091aa[_0x4ba8('0x8e')][_0x4ba8('0x99')](_0x4ba8('0x16')))return _0x2091aa[_0x4ba8('0x8')]?{}:{'type':_0x4ba8('0x84'),'content':_0x343a6e(_0x2830c0['locale'],_0x4ba8('0x65'))};});const _0x2390f0=()=>!0x1;for(const _0x55569e of[_0x4ba8('0x16'),_0x4ba8('0xc'),_0x4ba8('0xd'),_0x4ba8('0x3c')])_0x3897b6['_suggestionFactory'][_0x4ba8('0x34')]('insertion',_0x55569e,_0x4ba8('0x5c'),_0x2390f0),_0x3897b6[_0x4ba8('0xa')]['registerCustomCallback'](_0x4ba8('0x61'),_0x55569e,_0x4ba8('0x5c'),_0x2390f0),_0x3897b6['_suggestionFactory']['registerCustomCallback'](_0x4ba8('0x1d'),_0x55569e,_0x4ba8('0x5c'),_0x2390f0);_0x3897b6[_0x4ba8('0xa')]['registerCustomCallback'](_0x4ba8('0x1d'),_0x4ba8('0x3c'),_0x4ba8('0x6e'),_0x2390f0),_0x3897b6['_suggestionFactory'][_0x4ba8('0x34')](_0x4ba8('0x1d'),_0x4ba8('0x3c'),_0x4ba8('0x1f'),(_0x359e2c,_0x35fdd0,_0x42a140)=>{const _0x2a3e48=_0x359e2c[_0x4ba8('0x95')](_0x3fb446=>_0x3fb446[_0x4ba8('0x24')]())[_0x4ba8('0x22')](_0xf482d2=>_0xf482d2),_0x342030=new Map(_0x2a3e48['map'](_0xa0c0cb=>[_0xa0c0cb,null]));if(_0x11632d)for(const {element:_0x4919db,attributes:_0x13e7e7}of _0x11632d[_0x4ba8('0x1b')])_0x13e7e7&&_0x342030[_0x4ba8('0x36')](_0x4919db,_0x13e7e7);else{if(_0x42a140&&_0x42a140[_0x4ba8('0x58')])for(const [_0x1866c9,_0x4654c7]of Object['entries'](_0x42a140['markerAttributes'])){const _0x38d3fa=_0x2830c0['model']['markers'][_0x4ba8('0x72')](_0x1866c9),_0x30efc9=_0x38d3fa?_0x38d3fa['getRange']()[_0x4ba8('0x24')]():null;_0x30efc9&&_0x342030[_0x4ba8('0x36')](_0x30efc9,_0x4654c7);}}_0x2830c0[_0x4ba8('0x25')][_0x4ba8('0x44')](_0x5d7eff=>{for(const [_0x285fe1,_0x28612]of _0x342030)_0x5d7eff[_0x4ba8('0x19')]({...ae,..._0x28612},_0x285fe1);});});const _0x1faeb4=(_0x1fb290,_0x2bd406)=>{_0x3897b6['_suggestionFactory'][_0x4ba8('0x34')](_0x1fb290,_0x4ba8('0x16'),_0x2bd406,(_0x4b3a48,_0x55f96a,_0x117786)=>{_0x2830c0[_0x4ba8('0x25')][_0x4ba8('0x44')](_0x39dd48=>{const _0x13e011=[];for(const _0x20a305 of _0x4b3a48){const _0x18d53f=_0x20a305['start'][_0x4ba8('0x6d')];_0x18d53f['is'](_0x4ba8('0x38'),_0x4ba8('0x1a'))&&_0x13e011[_0x4ba8('0x2c')](_0x18d53f);}_0x3897b6['_suggestionFactory']['getSuggestionCallback'](_0x1fb290,null,_0x2bd406)(_0x4b3a48,_0x55f96a,_0x117786);for(const _0x4348c8 of _0x13e011)_0x4ba8('0x64')!=_0x4348c8[_0x4ba8('0x27')][_0x4ba8('0x31')]&&_0x39dd48['unwrap'](_0x4348c8);});});};_0x1faeb4('insertion',_0x4ba8('0x1f')),_0x1faeb4(_0x4ba8('0x84'),_0x4ba8('0x6e')),_0x1faeb4(_0x4ba8('0x61'),'accept'),_0x1faeb4(_0x4ba8('0x61'),'discard'),_0x3897b6['_suggestionFactory'][_0x4ba8('0x34')]('insertion',_0x4ba8('0xd'),_0x4ba8('0x6e'),_0x418817=>{const _0x496c53=_0x418817[_0x4ba8('0x95')](_0x35d8f5=>_0x35d8f5[_0x4ba8('0x24')]()),_0x3979ad=_0x496c53[0x0]['findAncestor'](_0x4ba8('0x2f')),{minRow:_0x265bea,maxRow:_0x27a497}=_0x41ea16[_0x4ba8('0x46')](_0x496c53);_0x28e430[_0x4ba8('0x92')](_0x3979ad,{'at':_0x265bea,'rows':_0x27a497-_0x265bea+0x1});}),_0x3897b6[_0x4ba8('0xa')][_0x4ba8('0x34')](_0x4ba8('0x84'),_0x4ba8('0xc'),'discard',_0x2f57c3=>{const _0x5e9d1c=_0x2f57c3[_0x4ba8('0x95')](_0x21bf09=>_0x21bf09[_0x4ba8('0x24')]()),_0x3ac92d=_0x5e9d1c[0x0]['findAncestor'](_0x4ba8('0x2f')),{minColumn:_0x1fb359,maxColumn:_0x38bd8d}=_0x41ea16[_0x4ba8('0x46')](_0x5e9d1c);_0x28e430[_0x4ba8('0x52')](_0x3ac92d,{'at':_0x1fb359,'columns':_0x38bd8d-_0x1fb359+0x1});});const _0x5159c6=(_0x1b92e1,_0x59b117)=>{if(!_0x59b117[_0x4ba8('0x8e')]||!_0x59b117[_0x4ba8('0x8e')][_0x4ba8('0x99')](_0x4ba8('0x16')))return;const _0x3c3ea8=_0x59b117['attributes']['tablePasteChainId'],_0x15c808=_0x3897b6[_0x4ba8('0x10')]()[_0x4ba8('0x22')](_0x44c660=>_0x44c660[_0x4ba8('0x7d')]&&_0x44c660[_0x4ba8('0x7f')]&&_0x44c660[_0x4ba8('0x7f')][_0x4ba8('0x90')]==_0x3c3ea8);_0x15c808[_0x4ba8('0x2a')]&&_0x59b117[_0x4ba8('0x73')]()[_0x4ba8('0x2a')]!=_0x15c808['length']&&_0x15c808['reduce']((_0x30d6af,_0x125d72)=>(_0x30d6af[_0x4ba8('0x2d')]=_0x125d72,_0x125d72['previous']=_0x30d6af,_0x125d72));};function _0x3cc174(_0x326100,_0x51eac6=!0x0){const {id:_0x522d7b}=_0x3897b6[_0x4ba8('0x80')](_0x326100[_0x4ba8('0x1e')]),_0x30656d=[_0x4ba8('0x97'),'ck-suggestion-marker-insertion'],_0x692319=_0x3897b6[_0x4ba8('0x2e')][_0x4ba8('0x62')](_0x326100[_0x4ba8('0x1e')]);return _0x692319&&_0x30656d[_0x4ba8('0x2c')]('ck-suggestion-marker--active'),{'classes':_0x30656d,'attributes':{'data-suggestion':_0x522d7b},'priority':_0x692319&&_0x51eac6?0xbc2:0xbb8};}_0x3897b6['on'](_0x4ba8('0x13'),_0x5159c6,{'priority':_0x4ba8('0x6b')}),_0x3897b6['on']('suggestionUnloaded',_0x5159c6,{'priority':_0x4ba8('0x6b')}),_0x2830c0[_0x4ba8('0x25')]['document'][_0x4ba8('0x41')](()=>{let _0x31ccf3=!0x1;const _0x392af0=Array['from'](_0x2830c0['model'][_0x4ba8('0x0')]['differ']['getChangedMarkers']());for(const {name:_0x22c93f,data:_0x5d7eb5}of _0x392af0){const {group:_0x58bd0b,type:_0x3a6960,id:_0x407bf6}=_0x3897b6[_0x4ba8('0x80')](_0x22c93f);if(_0x4ba8('0x68')!=_0x58bd0b||_0x4ba8('0x61')!=_0x3a6960||_0x5d7eb5[_0x4ba8('0xb')])continue;if(!_0x3897b6[_0x4ba8('0x7e')](_0x407bf6))continue;const _0x297664=_0x3897b6[_0x4ba8('0x7')](_0x407bf6)[_0x4ba8('0x70')](),_0x28981e=_0x2830c0[_0x4ba8('0x9')][_0x4ba8('0x72')](_0x4ba8('0x56'))['me'];for(const _0x4b1cdd of _0x3897b6[_0x4ba8('0x10')]()){if(!_0x4b1cdd['isInContent']||_0x4b1cdd[_0x4ba8('0x55')]!=_0x28981e)continue;if(_0x4ba8('0x1d')!=_0x4b1cdd[_0x4ba8('0x35')]||_0x4ba8('0x3c')!=_0x4b1cdd[_0x4ba8('0x8e')])continue;if(_0x4b1cdd['getRanges']()[_0x4ba8('0x94')](_0x5ddea3=>_0x297664[_0x4ba8('0x74')](_0x27ee78=>_0x27ee78[_0x4ba8('0x5b')](_0x5ddea3,!0x0))))for(const _0x296ab7 of _0x4b1cdd[_0x4ba8('0x73')]())_0x296ab7[_0x4ba8('0x7d')]&&(_0x296ab7[_0x4ba8('0x6e')](),_0x31ccf3=!0x0);}}return _0x31ccf3;}),_0x2830c0['model'][_0x4ba8('0x0')][_0x4ba8('0x41')](_0x2e2585=>{const _0x23d87a=_0x2830c0[_0x4ba8('0x5f')][_0x4ba8('0x72')](_0x4ba8('0x4'));if(!_0x23d87a||!_0x23d87a[_0x4ba8('0x4c')][_0x4ba8('0x6c')](_0x2e2585[_0x4ba8('0x23')]))return!0x1;let _0x4afe2c=!0x1;const _0xf92761=_0x2830c0[_0x4ba8('0x9')][_0x4ba8('0x72')]('Users')['me'],_0x1acb39=_0x2830c0[_0x4ba8('0x25')][_0x4ba8('0x0')]['differ'][_0x4ba8('0x69')](),_0x200ebe=Array['from'](_0x2830c0[_0x4ba8('0x25')][_0x4ba8('0x0')]['differ']['getChangedMarkers']())['filter'](({name:_0x7b2a68,data:_0x321413})=>{const {group:_0x360d5b,subType:_0x53c7e3,authorId:_0x30fff1}=_0x3897b6[_0x4ba8('0x80')](_0x7b2a68);return _0x4ba8('0x68')==_0x360d5b&&'tablePaste'==_0x53c7e3&&_0x30fff1==_0xf92761['id']&&!_0x321413[_0x4ba8('0xb')];});for(const _0x5bcec3 of _0x1acb39){if(_0x4ba8('0x45')!=_0x5bcec3[_0x4ba8('0x35')]||'tableCellSuggestion'!=_0x5bcec3[_0x4ba8('0x4a')]||0x1!=_0x5bcec3[_0x4ba8('0x2a')])continue;const _0x566e90=_0x2e2585[_0x4ba8('0x43')](_0x5bcec3[_0x4ba8('0x15')],_0x5bcec3[_0x4ba8('0x15')][_0x4ba8('0x2b')](0x1));if(!_0x200ebe[_0x4ba8('0x6f')](({data:_0x146761})=>_0x146761[_0x4ba8('0x32')][_0x4ba8('0x17')](_0x566e90)))for(const {name:_0x446f57,data:_0xf9ce31}of _0x200ebe)if(_0x566e90[_0x4ba8('0x5b')](_0xf9ce31[_0x4ba8('0x32')])){_0x2e2585[_0x4ba8('0x28')](_0x446f57,{'range':_0x566e90}),_0x4afe2c=!0x0;break;}}return _0x4afe2c;}),_0x2830c0[_0x4ba8('0x25')][_0x4ba8('0x0')][_0x4ba8('0x41')](_0x294430=>{let _0x3d54d5=!0x1;const _0x4ce10d=_0x2830c0[_0x4ba8('0x9')][_0x4ba8('0x72')](_0x4ba8('0x56'))['me'],_0x108de0=_0x3897b6[_0x4ba8('0x10')]()[_0x4ba8('0x22')](_0x53ba11=>_0x53ba11['isInContent']&&_0x53ba11['author']==_0x4ce10d),_0x4ac933=new Set(),_0xc072d3=new Set();for(const _0x5ce364 of _0x108de0)if(_0x4ba8('0x16')==_0x5ce364[_0x4ba8('0x8e')])for(const _0xd0e255 of _0x5ce364[_0x4ba8('0x98')]()){const _0x284627=_0xd0e255[_0x4ba8('0x87')]()[_0x4ba8('0x24')]();if(_0x284627){if(_0x284627['is'](_0x4ba8('0x38'),_0x4ba8('0x1a'))&&ce(_0x284627)){_0x5ce364[_0x4ba8('0x53')](_0xd0e255[_0x4ba8('0x4a')]),_0x4ac933[_0x4ba8('0x3f')](_0x284627),_0x3d54d5=!0x0;const _0x22320a=_0x284627[_0x4ba8('0x66')],_0x160314=_0x284627[_0x4ba8('0x86')],_0x100d53=_0x22320a&&_0x22320a['is']('element',_0x4ba8('0x1a')),_0x3a6abb=_0x160314&&_0x160314['is']('element','tableCellSuggestion');_0x100d53&&!_0x4ac933[_0x4ba8('0x6c')](_0x22320a)&&_0xc072d3['add'](_0x22320a),_0x3a6abb&&!_0x4ac933['has'](_0x160314)&&_0xc072d3[_0x4ba8('0x3f')](_0x160314);}else _0x284627['is'](_0x4ba8('0x38'),_0x4ba8('0x39'))&&_0x284627[_0x4ba8('0x89')]&&(_0x5ce364[_0x4ba8('0x53')](_0xd0e255[_0x4ba8('0x4a')]),_0x3d54d5=!0x0);}}else{if(_0x4ba8('0x3c')==_0x5ce364[_0x4ba8('0x8e')]){if(!_0x5ce364[_0x4ba8('0x7f')]||!_0x5ce364[_0x4ba8('0x7f')][_0x4ba8('0x90')])continue;const _0x27f3e8=_0x5ce364[_0x4ba8('0x7f')]['markerAttributes'];if(_0x27f3e8&&Object[_0x4ba8('0x8c')](_0x27f3e8)[_0x4ba8('0x2a')])continue;const _0xa0564f=_0x5ce364[_0x4ba8('0x7f')][_0x4ba8('0x90')];let _0x277881=!0x0,_0xfd3d6f=!0x0;for(const _0xdac3d5 of _0x108de0)if(_0xdac3d5[_0x4ba8('0x8e')]&&_0xdac3d5['subType'][_0x4ba8('0x99')](_0x4ba8('0x16'))){if(!_0xdac3d5[_0x4ba8('0x7f')][_0x4ba8('0x90')]){_0xfd3d6f=!0x1;break;}if(_0xdac3d5['id']!=_0x5ce364['id']&&_0xdac3d5[_0x4ba8('0x7f')][_0x4ba8('0x90')]==_0xa0564f){_0x277881=!0x1;break;}}_0xfd3d6f&&_0x277881&&(_0x5ce364[_0x4ba8('0x49')](),_0x3d54d5=!0x0);}}for(const _0x52052b of _0x4ac933)_0x294430[_0x4ba8('0x8b')](_0x52052b);for(const _0x5a0994 of _0xc072d3)_0x294430[_0x4ba8('0x18')](_0x5a0994);return _0x3d54d5;}),_0x2830c0[_0x4ba8('0x8f')][_0x4ba8('0x29')](_0x4ba8('0x42'))[_0x4ba8('0x30')]({'model':_0x4ba8('0x71'),'view':(_0x2e393a,_0x3c351e)=>_0x3cc174(_0x2e393a),'converterPriority':_0x4ba8('0x6b')}),_0x2830c0[_0x4ba8('0x8f')][_0x4ba8('0x29')]('dataDowncast')[_0x4ba8('0x30')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b318c,_0x474aa1)=>_0x474aa1[_0x4ba8('0x3e')][_0x4ba8('0x78')]?_0x3cc174(_0x5b318c,!0x1):null,'converterPriority':_0x4ba8('0x6b')});const _0x32db33=_0x2830c0['editing'][_0x4ba8('0x88')];this[_0x4ba8('0x4e')](_0x32db33[_0x4ba8('0x0')],_0x4ba8('0x4b'),(_0x5ea771,_0x473fbf)=>{const _0x31d4ac=[];for(const _0x19e35f of _0x32db33[_0x4ba8('0x3')](_0x473fbf['content'])[_0x4ba8('0x26')]())_0x19e35f['is'](_0x4ba8('0x38'),_0x4ba8('0x6'))&&_0x31d4ac['push'](_0x19e35f);_0x32db33['change'](_0x535733=>{for(const _0x372d7f of _0x31d4ac)_0x535733['move'](_0x535733[_0x4ba8('0x3')](_0x372d7f),_0x535733[_0x4ba8('0x75')](_0x372d7f)),_0x535733[_0x4ba8('0x8b')](_0x372d7f);});});}}function ce(_0x460896){if(_0x460896[_0x4ba8('0x89')])return!0x0;const _0xd751a0=_0x460896[_0x4ba8('0xe')](0x0);return _0xd751a0['is']('element','paragraph')&&_0xd751a0[_0x4ba8('0x89')];}function fe(_0x5bba47,_0x4e8e84={},_0x26e657){for(const {isAnchor:_0x3248fd,cellHeight:_0x3e76e3,cellWidth:_0x5e112b}of _0x26e657['createTableWalker'](_0x5bba47,{'includeAllSlots':!0x0,..._0x4e8e84}))if(!_0x3248fd||0x1!=_0x3e76e3||0x1!=_0x5e112b)return!0x1;return!0x0;}
|
|
23
|
+
const _0x45d6=['afterInit','rowInsertionIndexes','deletion','some','createElement','getRanges','rows','paragraph','getChangedMarkers','removeMarker','tablePasteChainId','return','name','first','schema','unwrap','suggestion','getColumns','deletionRanges','*Replace\x20table\x20cells*','plugins','suggestion:formatBlock:tablePasteCell','startsWith','forceDefaultExecution','tableCellHorizontalAlignment','removeColumns','activeMarkers','subType','insertRows','tableCellPadding','high','ck-suggestion-marker','differ','Users','suggestionLoaded','accept','endColumn','editing','suggestionUnloaded','ck-suggestion-marker-insertion','getAttributes','set','editingDowncast','getTableIfOnlyTableInContent','type','registerCustomCallback','cell','markMultiRangeBlockFormat','join','model','setAttributes','change','getShiftedBy','registerDescriptionCallback','content','_isForcedDefaultExecutionBlock','locale','entries','removeMarkers','map','createTableWalker','insertColumns','createRange','element','row','oldRange','tableCell','remove','start','containsRange','registerPostFixer','move','insertion','low','getRowIndexes','_getCoordsForCells','conversion','tableCellBorderWidth','columnInsertionIndexes','getSuggestions','createPositionBefore','stop','isInContent','tableCellSuggestion','previousSibling','insert','push','commands','getMarkers','markerToHighlight','getSuggestion','dataDowncast','discard','register','documentSelection','getContainedElement','findAncestor','markerAttributes','ck-suggestion-marker--active','insertContent','suggestion-td','keys','tablePasteRow','getRows','cells','nodeAfter','_splitMarkerName','isEqual','fromEntries','_replaceTableSlotCell','add','formatBlock','endRow','getAllAdjacentSuggestions','getRange','author','get','from','includes','tableCellBackgroundColor','setAttribute','removeRows','fill','has','document','length','columns','markMultiRangeInsertion','table','createRangeIn','tableCellVerticalAlignment','column','root','last','previous','attributes','tablePaste','markMultiRangeDeletion','hasSuggestion','getSelectionAffectedTableCells','next','newRange','createRangeOn','tableCellBorderStyle','_descriptionFactory','getChild','trackChanges','tablePasteColumn','filter','requires','isEmpty','editor','_suggestionFactory','wrap','getSuggestionCallback','_createdBatches','nextSibling','getChildren','TrackChangesEditing','elementToElement','tablePasteCell','find'];(function(_0x1e6dbe,_0x45d672){const _0x288c9f=function(_0x136f6b){while(--_0x136f6b){_0x1e6dbe['push'](_0x1e6dbe['shift']());}};_0x288c9f(++_0x45d672);}(_0x45d6,0xe3));const _0x288c=function(_0x1e6dbe,_0x45d672){_0x1e6dbe=_0x1e6dbe-0x0;let _0x288c9f=_0x45d6[_0x1e6dbe];return _0x288c9f;};import{getTranslation as _0x5b0105}from'../utils/common-translations';import{Plugin as _0xcde7e9}from'ckeditor5/src/core';import{uid as _0x5b05f8,priorities as _0x4ae691}from'ckeditor5/src/utils';import _0x4821cd from'./table';const le=[_0x288c('0xc'),'tableCellBorderColor',_0x288c('0x4e'),_0x288c('0x79'),_0x288c('0x41'),_0x288c('0x36'),_0x288c('0x7e')],ae=Object[_0x288c('0x2b')](le[_0x288c('0x9c')](_0x11f52a=>[_0x11f52a,null]));export default class At extends _0xcde7e9{static get[_0x288c('0x54')](){return[_0x4821cd];}[_0x288c('0x61')](){const _0x243c05=this[_0x288c('0x56')];if(!_0x243c05[_0x288c('0x75')][_0x288c('0x3a')]('TableClipboard'))return;const _0x3e757e=_0x243c05[_0x288c('0x75')][_0x288c('0x33')](_0x288c('0x5d')),_0x4c1de4=_0x243c05[_0x288c('0x75')][_0x288c('0x33')]('TableUtils'),_0x375e73=_0x243c05['plugins'][_0x288c('0x33')](_0x4821cd),_0x1bd276=_0x243c05[_0x288c('0x75')][_0x288c('0x33')]('TableClipboard');_0x375e73['_tablePostFixingSubtypes'][_0x288c('0x15')]('tablePasteRow',_0x288c('0x52')),_0x243c05[_0x288c('0x92')][_0x288c('0x6f')][_0x288c('0x1c')](_0x288c('0x12'),{'allowIn':'tableCell','allowContentOf':_0x288c('0x1'),'isLimit':!0x0}),_0x243c05[_0x288c('0xb')][_0x288c('0x5e')]({'model':_0x288c('0x12'),'view':_0x288c('0x23')});let _0x21ebb8=null;_0x243c05[_0x288c('0x92')]['on'](_0x288c('0x22'),(_0x4257a5,_0x2fcb6e)=>{const [_0x6ad663,_0xa0c672]=_0x2fcb6e,_0x401c89=_0x2fcb6e[_0x2fcb6e[_0x288c('0x3c')]-0x1];_0x401c89&&_0x401c89[_0x288c('0x78')]||_0x3e757e[_0x288c('0x98')]||this['editor'][_0x288c('0x16')][_0x288c('0x33')](_0x288c('0x51'))['value']&&function(_0x57698f,_0x46329d,_0x2c2a40,_0x9aac43,_0xf45173){if(_0x46329d&&!_0x46329d['is'](_0x288c('0x1d')))return!0x1;const _0x2bf749=_0xf45173[_0x288c('0x8c')](_0x57698f,_0x2c2a40);if(!_0x2bf749||!fe(_0x2bf749,void 0x0,_0x9aac43))return!0x1;const _0x502f76=_0x9aac43[_0x288c('0x4a')](_0x2c2a40['document']['selection']);if(!_0x502f76['length'])return!0x1;const _0xafccd3=_0x502f76[0x0][_0x288c('0x1f')]('table'),_0x3aa429=_0x9aac43[_0x288c('0x9')](_0x502f76),_0xfb4597=_0x9aac43['getColumnIndexes'](_0x502f76),_0x250054={'startRow':_0x3aa429[_0x288c('0x6e')],'endRow':_0x3aa429[_0x288c('0x44')],'startColumn':_0xfb4597[_0x288c('0x6e')],'endColumn':_0xfb4597[_0x288c('0x44')]};return 0x1==_0x502f76[_0x288c('0x3c')]&&(_0x250054[_0x288c('0x2f')]+=_0x9aac43[_0x288c('0x26')](_0x2bf749)-0x1,_0x250054[_0x288c('0x85')]+=_0x9aac43[_0x288c('0x72')](_0x2bf749)-0x1),fe(_0xafccd3,_0x250054,_0x9aac43);}(_0x6ad663,_0xa0c672,_0x243c05[_0x288c('0x92')],_0x4c1de4,_0x1bd276)&&(_0x4257a5[_0x288c('0x10')](),_0x21ebb8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x243c05[_0x288c('0x92')][_0x288c('0x94')](()=>{_0x243c05['model'][_0x288c('0x22')](_0x2fcb6e[0x0],_0x2fcb6e[0x1],_0x2fcb6e[0x2],{'forceDefaultExecution':!0x0});const _0x4580ce=_0x5b05f8(),{rowInsertionRanges:_0x1cb6ed,columnInsertionRanges:_0x208fb0,insertionRanges:_0x5480a6,deletionRanges:_0x1abf10,cells:_0x5f426d}=_0x21ebb8;_0x1cb6ed[_0x288c('0x3c')]&&_0x3e757e[_0x288c('0x3e')](_0x1cb6ed,_0x288c('0x25'),{'tablePasteChainId':_0x4580ce}),_0x208fb0[_0x288c('0x3c')]&&_0x3e757e[_0x288c('0x3e')](_0x208fb0,_0x288c('0x52'),{'tablePasteChainId':_0x4580ce}),_0x5480a6[_0x288c('0x3c')]&&_0x3e757e[_0x288c('0x3e')](_0x5480a6,_0x288c('0x47'),{'tablePasteChainId':_0x4580ce,'skipNestingCheck':!0x0}),_0x1abf10[_0x288c('0x3c')]&&_0x3e757e[_0x288c('0x48')](_0x1abf10,_0x288c('0x47'),{'tablePasteChainId':_0x4580ce,'skipNestingCheck':!0x0});const _0x52bf9f=_0x3e757e[_0x288c('0x90')](_0x5f426d[_0x288c('0x9c')](({element:_0x2ac63e})=>_0x2ac63e),{'formatGroupId':_0x5b05f8()},[],_0x288c('0x5f'),{'tablePasteChainId':_0x4580ce});if(_0x52bf9f){const _0x4e66bc=_0x52bf9f[_0x288c('0x17')](),_0x57a1cc=[];for(const {element:_0x374126,attributes:_0x31e921}of _0x5f426d){if(!_0x31e921)continue;const _0x2193f4=_0x243c05[_0x288c('0x92')]['createRangeOn'](_0x374126),_0x5f1d18=_0x4e66bc[_0x288c('0x60')](_0x2f9b4e=>_0x2f9b4e[_0x288c('0x31')]()['isEqual'](_0x2193f4));_0x5f1d18&&_0x57a1cc['push']([_0x5f1d18['name'],_0x31e921]);}_0x57a1cc[_0x288c('0x3c')]&&_0x52bf9f[_0x288c('0x37')](_0x288c('0x20'),Object[_0x288c('0x2b')](_0x57a1cc));}_0x21ebb8=null;}));},{'priority':_0x4ae691['high']+0xa}),_0x243c05[_0x288c('0x75')][_0x288c('0x33')]('TableClipboard')['on'](_0x288c('0x2c'),(_0x5d7675,_0x46ddd0)=>{const [_0x5a51f8,_0x1f7505,,_0x1332b9]=_0x46ddd0;if(!_0x21ebb8)return;_0x5d7675[_0x288c('0x10')]();const _0x35f8f2=_0x5a51f8[_0x288c('0x8f')],_0x4834c4=_0x1f7505,_0x1a1e36=ce(_0x35f8f2),_0x1b27a9=ce(_0x4834c4);_0x5d7675[_0x288c('0x6c')]=_0x35f8f2;let _0xca7a74=null,_0x2ba1c1=null;if(_0x1b27a9||_0x1a1e36){if(_0x1a1e36&&!_0x1b27a9){_0x1332b9[_0x288c('0x2')](_0x35f8f2[_0x288c('0x50')](0x0));for(const _0x59ea82 of Array['from'](_0x4834c4['getChildren']()))_0x1332b9['insert'](_0x59ea82,_0x35f8f2,'end');const _0x300a9b=_0x21ebb8[_0x288c('0x62')][_0x288c('0x35')](_0x5a51f8[_0x288c('0xa1')]),_0x3cfa17=_0x21ebb8[_0x288c('0xd')][_0x288c('0x35')](_0x5a51f8[_0x288c('0x42')]);_0x300a9b||_0x3cfa17||(_0xca7a74=_0x1332b9[_0x288c('0x40')](_0x35f8f2));}else _0x1b27a9&&!_0x1a1e36&&(_0x2ba1c1=_0x1332b9[_0x288c('0x40')](_0x35f8f2));}else{const _0x557829=_0x1332b9['createElement'](_0x288c('0x12')),_0x5defa8=_0x1332b9[_0x288c('0x65')](_0x288c('0x12'));_0x1332b9[_0x288c('0x58')](_0x1332b9[_0x288c('0x40')](_0x35f8f2),_0x5defa8),_0x1332b9[_0x288c('0x14')](_0x557829,_0x35f8f2,0x0);for(const _0x27057c of Array[_0x288c('0x34')](_0x4834c4[_0x288c('0x5c')]()))_0x1332b9['insert'](_0x27057c,_0x557829,'end');_0xca7a74=_0x1332b9[_0x288c('0x4d')](_0x557829),_0x2ba1c1=_0x1332b9[_0x288c('0x4d')](_0x5defa8);}const _0x47f688=Array[_0x288c('0x34')](_0x4834c4[_0x288c('0x89')]())[_0x288c('0x53')](([_0x4974d9])=>le[_0x288c('0x35')](_0x4974d9));_0x21ebb8[_0x288c('0x27')][_0x288c('0x15')]({'element':_0x35f8f2,'attributes':_0x47f688[_0x288c('0x3c')]?Object['fromEntries'](_0x47f688):null}),_0xca7a74&&_0x21ebb8['insertionRanges']['push'](_0xca7a74),_0x2ba1c1&&_0x21ebb8[_0x288c('0x73')][_0x288c('0x15')](_0x2ba1c1);},{'priority':_0x288c('0x7f')}),_0x4c1de4['on'](_0x288c('0x9e'),(_0x416e80,_0x4b4ebb)=>{const [_0x1f6320,_0xfd38a1={}]=_0x4b4ebb;if(!_0x21ebb8)return;const _0xe7ccc0=_0xfd38a1['at']||0x0,_0x33853b=_0xfd38a1[_0x288c('0x3d')]||0x1;_0x21ebb8[_0x288c('0xd')]=new Array(_0x33853b)[_0x288c('0x39')](_0xe7ccc0)['map']((_0x3d6c00,_0xd8b9d3)=>_0x3d6c00+_0xd8b9d3);for(const {cell:_0x444d1f}of _0x4c1de4['createTableWalker'](_0x1f6320,{'startColumn':_0xe7ccc0,'endColumn':_0xe7ccc0+_0x33853b-0x1}))_0x21ebb8['columnInsertionRanges'][_0x288c('0x15')](_0x243c05[_0x288c('0x92')][_0x288c('0x4d')](_0x444d1f));},{'priority':_0x288c('0x8')}),_0x4c1de4['on'](_0x288c('0x7d'),(_0x4c4e8a,_0xb9f1ab)=>{const [_0x1571c2,_0x5b48a2={}]=_0xb9f1ab;if(!_0x21ebb8)return;const _0x1308c1=_0x5b48a2['at']||0x0,_0xd0462d=_0x5b48a2[_0x288c('0x67')]||0x1;_0x21ebb8[_0x288c('0x62')]=new Array(_0xd0462d)[_0x288c('0x39')](_0x1308c1)['map']((_0x328072,_0xe647ac)=>_0x328072+_0xe647ac);for(const {cell:_0x3746ae}of _0x4c1de4[_0x288c('0x9d')](_0x1571c2,{'startRow':_0x1308c1,'endRow':_0x1308c1+_0xd0462d-0x1}))_0x21ebb8['rowInsertionRanges'][_0x288c('0x15')](_0x243c05['model'][_0x288c('0x4d')](_0x3746ae));},{'priority':_0x288c('0x8')}),_0x3e757e[_0x288c('0x4f')][_0x288c('0x96')](_0x43688d=>{if(_0x43688d['subType']&&_0x43688d[_0x288c('0x7c')]['startsWith'](_0x288c('0x47')))return _0x43688d[_0x288c('0x45')]?{}:{'type':_0x288c('0x7'),'content':_0x5b0105(_0x243c05[_0x288c('0x99')],_0x288c('0x74'))};});const _0xe54d3b=()=>!0x1;for(const _0x464124 of['tablePaste',_0x288c('0x52'),'tablePasteRow',_0x288c('0x5f')])_0x3e757e['_suggestionFactory'][_0x288c('0x8e')](_0x288c('0x7'),_0x464124,'join',_0xe54d3b),_0x3e757e[_0x288c('0x57')]['registerCustomCallback'](_0x288c('0x63'),_0x464124,'join',_0xe54d3b),_0x3e757e[_0x288c('0x57')][_0x288c('0x8e')](_0x288c('0x2e'),_0x464124,_0x288c('0x91'),_0xe54d3b);_0x3e757e[_0x288c('0x57')][_0x288c('0x8e')](_0x288c('0x2e'),'tablePasteCell',_0x288c('0x1b'),_0xe54d3b),_0x3e757e[_0x288c('0x57')]['registerCustomCallback'](_0x288c('0x2e'),_0x288c('0x5f'),_0x288c('0x84'),(_0x51e6de,_0x51358b,_0x2f0388)=>{const _0x48d6d8=_0x51e6de['map'](_0x441421=>_0x441421['getContainedElement']())[_0x288c('0x53')](_0x40b813=>_0x40b813),_0x4bff3c=new Map(_0x48d6d8[_0x288c('0x9c')](_0x1dcea9=>[_0x1dcea9,null]));if(_0x21ebb8)for(const {element:_0x507c3c,attributes:_0x48dcfb}of _0x21ebb8[_0x288c('0x27')])_0x48dcfb&&_0x4bff3c[_0x288c('0x8a')](_0x507c3c,_0x48dcfb);else{if(_0x2f0388&&_0x2f0388[_0x288c('0x20')])for(const [_0x41c4fa,_0x1f0273]of Object[_0x288c('0x9a')](_0x2f0388[_0x288c('0x20')])){const _0x17455b=_0x243c05['model']['markers'][_0x288c('0x33')](_0x41c4fa),_0x20bd4f=_0x17455b?_0x17455b['getRange']()[_0x288c('0x1e')]():null;_0x20bd4f&&_0x4bff3c[_0x288c('0x8a')](_0x20bd4f,_0x1f0273);}}_0x243c05[_0x288c('0x92')][_0x288c('0x94')](_0x1a30c0=>{for(const [_0xf6a32b,_0x137f99]of _0x4bff3c)_0x1a30c0[_0x288c('0x93')]({...ae,..._0x137f99},_0xf6a32b);});});const _0x47f820=(_0x46da7a,_0x143984)=>{_0x3e757e[_0x288c('0x57')]['registerCustomCallback'](_0x46da7a,_0x288c('0x47'),_0x143984,(_0x5ce3f5,_0x150e39,_0xa8799c)=>{_0x243c05[_0x288c('0x92')]['change'](_0x53d86c=>{const _0x51b8a4=[];for(const _0x26b2f0 of _0x5ce3f5){const _0x1acd02=_0x26b2f0[_0x288c('0x3')][_0x288c('0x28')];_0x1acd02['is'](_0x288c('0xa0'),'tableCellSuggestion')&&_0x51b8a4[_0x288c('0x15')](_0x1acd02);}_0x3e757e[_0x288c('0x57')][_0x288c('0x59')](_0x46da7a,null,_0x143984)(_0x5ce3f5,_0x150e39,_0xa8799c);for(const _0x525ba3 of _0x51b8a4)'$graveyard'!=_0x525ba3[_0x288c('0x43')]['rootName']&&_0x53d86c['unwrap'](_0x525ba3);});});};_0x47f820(_0x288c('0x7'),_0x288c('0x84')),_0x47f820(_0x288c('0x7'),_0x288c('0x1b')),_0x47f820(_0x288c('0x63'),_0x288c('0x84')),_0x47f820(_0x288c('0x63'),'discard'),_0x3e757e[_0x288c('0x57')][_0x288c('0x8e')]('insertion',_0x288c('0x25'),_0x288c('0x1b'),_0x8e6411=>{const _0x336fec=_0x8e6411[_0x288c('0x9c')](_0x38005f=>_0x38005f[_0x288c('0x1e')]()),_0x5d197e=_0x336fec[0x0][_0x288c('0x1f')](_0x288c('0x3f')),{minRow:_0x2547a7,maxRow:_0xbc96ae}=_0x375e73[_0x288c('0xa')](_0x336fec);_0x4c1de4[_0x288c('0x38')](_0x5d197e,{'at':_0x2547a7,'rows':_0xbc96ae-_0x2547a7+0x1});}),_0x3e757e[_0x288c('0x57')][_0x288c('0x8e')](_0x288c('0x7'),_0x288c('0x52'),_0x288c('0x1b'),_0x374248=>{const _0xa743f2=_0x374248[_0x288c('0x9c')](_0x30daa8=>_0x30daa8['getContainedElement']()),_0x3f581a=_0xa743f2[0x0][_0x288c('0x1f')](_0x288c('0x3f')),{minColumn:_0x4d0b26,maxColumn:_0x297bee}=_0x375e73[_0x288c('0xa')](_0xa743f2);_0x4c1de4[_0x288c('0x7a')](_0x3f581a,{'at':_0x4d0b26,'columns':_0x297bee-_0x4d0b26+0x1});});const _0x3947b0=(_0x2208cc,_0x2820dd)=>{if(!_0x2820dd[_0x288c('0x7c')]||!_0x2820dd[_0x288c('0x7c')][_0x288c('0x77')](_0x288c('0x47')))return;const _0x40e691=_0x2820dd[_0x288c('0x46')][_0x288c('0x6b')],_0x3dfdd7=_0x3e757e[_0x288c('0xe')]()[_0x288c('0x53')](_0x1b00cc=>_0x1b00cc[_0x288c('0x11')]&&_0x1b00cc['attributes']&&_0x1b00cc[_0x288c('0x46')][_0x288c('0x6b')]==_0x40e691);_0x3dfdd7[_0x288c('0x3c')]&&_0x2820dd[_0x288c('0x30')]()['length']!=_0x3dfdd7[_0x288c('0x3c')]&&_0x3dfdd7['reduce']((_0x1da742,_0x439736)=>(_0x1da742[_0x288c('0x4b')]=_0x439736,_0x439736[_0x288c('0x45')]=_0x1da742,_0x439736));};function _0x5bb49a(_0x49dfd4,_0x3993bc=!0x0){const {id:_0x21f34d}=_0x3e757e[_0x288c('0x29')](_0x49dfd4['markerName']),_0x2a5676=[_0x288c('0x80'),_0x288c('0x88')],_0x591a7d=_0x3e757e[_0x288c('0x7b')]['includes'](_0x49dfd4['markerName']);return _0x591a7d&&_0x2a5676['push'](_0x288c('0x21')),{'classes':_0x2a5676,'attributes':{'data-suggestion':_0x21f34d},'priority':_0x591a7d&&_0x3993bc?0xbc2:0xbb8};}_0x3e757e['on'](_0x288c('0x83'),_0x3947b0,{'priority':_0x288c('0x7f')}),_0x3e757e['on'](_0x288c('0x87'),_0x3947b0,{'priority':_0x288c('0x7f')}),_0x243c05[_0x288c('0x92')][_0x288c('0x3b')][_0x288c('0x5')](()=>{let _0x3dfaca=!0x1;const _0x1e8e2a=Array[_0x288c('0x34')](_0x243c05['model'][_0x288c('0x3b')][_0x288c('0x81')][_0x288c('0x69')]());for(const {name:_0xb55bec,data:_0x3f757e}of _0x1e8e2a){const {group:_0x1813ca,type:_0x5ad217,id:_0x4bbcf0}=_0x3e757e['_splitMarkerName'](_0xb55bec);if(_0x288c('0x71')!=_0x1813ca||_0x288c('0x63')!=_0x5ad217||_0x3f757e[_0x288c('0x0')])continue;if(!_0x3e757e[_0x288c('0x49')](_0x4bbcf0))continue;const _0x72b903=_0x3e757e[_0x288c('0x19')](_0x4bbcf0)[_0x288c('0x66')](),_0x5d5079=_0x243c05[_0x288c('0x75')]['get'](_0x288c('0x82'))['me'];for(const _0x1319ce of _0x3e757e[_0x288c('0xe')]()){if(!_0x1319ce[_0x288c('0x11')]||_0x1319ce[_0x288c('0x32')]!=_0x5d5079)continue;if('formatBlock'!=_0x1319ce[_0x288c('0x8d')]||'tablePasteCell'!=_0x1319ce[_0x288c('0x7c')])continue;if(_0x1319ce[_0x288c('0x66')]()['every'](_0x5d6cb6=>_0x72b903[_0x288c('0x64')](_0x3fe6ad=>_0x3fe6ad[_0x288c('0x4')](_0x5d6cb6,!0x0))))for(const _0x511a5b of _0x1319ce[_0x288c('0x30')]())_0x511a5b['isInContent']&&(_0x511a5b[_0x288c('0x1b')](),_0x3dfaca=!0x0);}}return _0x3dfaca;}),_0x243c05[_0x288c('0x92')][_0x288c('0x3b')][_0x288c('0x5')](_0x29401c=>{const _0x4ff584=_0x243c05['commands']['get']('redo');if(!_0x4ff584||!_0x4ff584[_0x288c('0x5a')]['has'](_0x29401c['batch']))return!0x1;let _0x2fdef1=!0x1;const _0x136772=_0x243c05['plugins'][_0x288c('0x33')](_0x288c('0x82'))['me'],_0x45fdbe=_0x243c05[_0x288c('0x92')][_0x288c('0x3b')]['differ']['getChanges'](),_0x1e0831=Array[_0x288c('0x34')](_0x243c05[_0x288c('0x92')][_0x288c('0x3b')][_0x288c('0x81')][_0x288c('0x69')]())[_0x288c('0x53')](({name:_0x6ebf40,data:_0x3e85ba})=>{const {group:_0x2f7fe2,subType:_0x500791,authorId:_0x8e9938}=_0x3e757e[_0x288c('0x29')](_0x6ebf40);return _0x288c('0x71')==_0x2f7fe2&&_0x288c('0x47')==_0x500791&&_0x8e9938==_0x136772['id']&&!_0x3e85ba['oldRange'];});for(const _0x39b3f5 of _0x45fdbe){if(_0x288c('0x14')!=_0x39b3f5['type']||_0x288c('0x12')!=_0x39b3f5[_0x288c('0x6d')]||0x1!=_0x39b3f5[_0x288c('0x3c')])continue;const _0x4e8f31=_0x29401c[_0x288c('0x9f')](_0x39b3f5['position'],_0x39b3f5['position'][_0x288c('0x95')](0x1));if(!_0x1e0831[_0x288c('0x60')](({data:_0x2fe013})=>_0x2fe013[_0x288c('0x4c')][_0x288c('0x2a')](_0x4e8f31)))for(const {name:_0x192214,data:_0x1f889a}of _0x1e0831)if(_0x4e8f31['containsRange'](_0x1f889a['newRange'])){_0x29401c['updateMarker'](_0x192214,{'range':_0x4e8f31}),_0x2fdef1=!0x0;break;}}return _0x2fdef1;}),_0x243c05[_0x288c('0x92')][_0x288c('0x3b')]['registerPostFixer'](_0x24ea72=>{let _0x14c3f1=!0x1;const _0x176410=_0x243c05[_0x288c('0x75')][_0x288c('0x33')](_0x288c('0x82'))['me'],_0x677cf5=_0x3e757e[_0x288c('0xe')]()[_0x288c('0x53')](_0x127e00=>_0x127e00['isInContent']&&_0x127e00[_0x288c('0x32')]==_0x176410),_0x29ae04=new Set(),_0x4d0376=new Set();for(const _0x45c9bc of _0x677cf5)if('tablePaste'==_0x45c9bc[_0x288c('0x7c')])for(const _0xc2430b of _0x45c9bc['getMarkers']()){const _0x5adf7f=_0xc2430b[_0x288c('0x31')]()[_0x288c('0x1e')]();if(_0x5adf7f){if(_0x5adf7f['is']('element',_0x288c('0x12'))&&ce(_0x5adf7f)){_0x45c9bc[_0x288c('0x6a')](_0xc2430b[_0x288c('0x6d')]),_0x29ae04[_0x288c('0x2d')](_0x5adf7f),_0x14c3f1=!0x0;const _0x30a8cd=_0x5adf7f[_0x288c('0x5b')],_0x411ff0=_0x5adf7f[_0x288c('0x13')],_0x2ec4ef=_0x30a8cd&&_0x30a8cd['is']('element',_0x288c('0x12')),_0x281375=_0x411ff0&&_0x411ff0['is']('element',_0x288c('0x12'));_0x2ec4ef&&!_0x29ae04['has'](_0x30a8cd)&&_0x4d0376[_0x288c('0x2d')](_0x30a8cd),_0x281375&&!_0x29ae04[_0x288c('0x3a')](_0x411ff0)&&_0x4d0376['add'](_0x411ff0);}else _0x5adf7f['is']('element',_0x288c('0x68'))&&_0x5adf7f['isEmpty']&&(_0x45c9bc['removeMarker'](_0xc2430b[_0x288c('0x6d')]),_0x14c3f1=!0x0);}}else{if('tablePasteCell'==_0x45c9bc[_0x288c('0x7c')]){if(!_0x45c9bc[_0x288c('0x46')]||!_0x45c9bc[_0x288c('0x46')][_0x288c('0x6b')])continue;const _0x475619=_0x45c9bc['attributes'][_0x288c('0x20')];if(_0x475619&&Object[_0x288c('0x24')](_0x475619)[_0x288c('0x3c')])continue;const _0xfd0c6c=_0x45c9bc[_0x288c('0x46')][_0x288c('0x6b')];let _0x131730=!0x0,_0x59725c=!0x0;for(const _0x6ffe8a of _0x677cf5)if(_0x6ffe8a[_0x288c('0x7c')]&&_0x6ffe8a[_0x288c('0x7c')][_0x288c('0x77')]('tablePaste')){if(!_0x6ffe8a[_0x288c('0x46')][_0x288c('0x6b')]){_0x59725c=!0x1;break;}if(_0x6ffe8a['id']!=_0x45c9bc['id']&&_0x6ffe8a[_0x288c('0x46')]['tablePasteChainId']==_0xfd0c6c){_0x131730=!0x1;break;}}_0x59725c&&_0x131730&&(_0x45c9bc[_0x288c('0x9b')](),_0x14c3f1=!0x0);}}for(const _0x5ea877 of _0x29ae04)_0x24ea72[_0x288c('0x2')](_0x5ea877);for(const _0x5426a2 of _0x4d0376)_0x24ea72[_0x288c('0x70')](_0x5426a2);return _0x14c3f1;}),_0x243c05['conversion']['for'](_0x288c('0x8b'))[_0x288c('0x18')]({'model':_0x288c('0x76'),'view':(_0x1a1250,_0xa7e5d2)=>_0x5bb49a(_0x1a1250),'converterPriority':_0x288c('0x7f')}),_0x243c05[_0x288c('0xb')]['for'](_0x288c('0x1a'))[_0x288c('0x18')]({'model':_0x288c('0x76'),'view':(_0x501212,_0x54f024)=>_0x54f024['options']['showSuggestionHighlights']?_0x5bb49a(_0x501212,!0x1):null,'converterPriority':_0x288c('0x7f')});const _0x478071=_0x243c05[_0x288c('0x86')]['view'];this['listenTo'](_0x478071['document'],'clipboardOutput',(_0x3c6a2a,_0x1773c7)=>{const _0x409018=[];for(const _0x31cd94 of _0x478071[_0x288c('0x40')](_0x1773c7[_0x288c('0x97')])['getItems']())_0x31cd94['is']('element',_0x288c('0x23'))&&_0x409018[_0x288c('0x15')](_0x31cd94);_0x478071[_0x288c('0x94')](_0x1ba1bd=>{for(const _0x16c883 of _0x409018)_0x1ba1bd[_0x288c('0x6')](_0x1ba1bd[_0x288c('0x40')](_0x16c883),_0x1ba1bd[_0x288c('0xf')](_0x16c883)),_0x1ba1bd[_0x288c('0x2')](_0x16c883);});});}}function ce(_0x4b3764){if(_0x4b3764[_0x288c('0x55')])return!0x0;const _0x503e5d=_0x4b3764[_0x288c('0x50')](0x0);return _0x503e5d['is'](_0x288c('0xa0'),_0x288c('0x68'))&&_0x503e5d[_0x288c('0x55')];}function fe(_0x850d73,_0x57046d={},_0x5619de){for(const {isAnchor:_0x4e621f,cellHeight:_0x9e47e,cellWidth:_0x25d43c}of _0x5619de[_0x288c('0x9d')](_0x850d73,{'includeAllSlots':!0x0,..._0x57046d}))if(!_0x4e621f||0x1!=_0x9e47e||0x1!=_0x25d43c)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d4d=['subType','accept','formatInline','afterInit','TableColumnResizeEditing','change','editor','type','handleResizeTableWidthCommand','_suggestionFactory','getColumnGroupElement','columnWidths','model','*Format:*\x20resize\x20table','TrackChangesEditing','formatGroupId','getTableColumnsWidths','resizeTable','handleSuggestionDescription','discard','document','formatBlock','get','Users','plugins','bind','locale','registerCustomCallback','has','_descriptionFactory','getSuggestions','getSuggestionCallback','tableWidth','table','resizeTableWidth','data','registerDescriptionCallback','format'];(function(_0x1c09fe,_0x3d4da6){const _0x49180c=function(_0x4ef515){while(--_0x4ef515){_0x1c09fe['push'](_0x1c09fe['shift']());}};_0x49180c(++_0x3d4da6);}(_0x3d4d,0xd9));const _0x4918=function(_0x1c09fe,_0x3d4da6){_0x1c09fe=_0x1c09fe-0x0;let _0x49180c=_0x3d4d[_0x1c09fe];return _0x49180c;};import{Plugin as _0x1f78cf}from'ckeditor5/src/core';import{getTranslation as _0x36e12d}from'../utils/common-translations';export default class It extends _0x1f78cf{[_0x4918('0xe')](){if(!this[_0x4918('0x11')][_0x4918('0x23')][_0x4918('0x1')](_0x4918('0xf')))return;const _0x4cd9a1=this[_0x4918('0x11')]['plugins'][_0x4918('0x21')](_0x4918('0x19'));_0x4cd9a1['enableCommand']('resizeTableWidth',this[_0x4918('0x13')][_0x4918('0x24')](this)),_0x4cd9a1[_0x4918('0x14')][_0x4918('0x0')](_0x4918('0x20'),_0x4918('0x1c'),_0x4918('0xc'),_0x4cd9a1[_0x4918('0x14')][_0x4918('0x4')](_0x4918('0x20'),null,_0x4918('0x1e'))),_0x4cd9a1[_0x4918('0x14')][_0x4918('0x0')](_0x4918('0x20'),_0x4918('0x1c'),_0x4918('0x1e'),_0x4cd9a1[_0x4918('0x14')][_0x4918('0x4')]('formatBlock',null,'accept')),_0x4cd9a1[_0x4918('0x2')][_0x4918('0x9')](this[_0x4918('0x1d')][_0x4918('0x24')](this));}[_0x4918('0x13')](_0x2b1f7a,_0x272af1){const _0x4805d4=this[_0x4918('0x11')]['plugins'][_0x4918('0x21')](_0x4918('0x19')),_0x484557=this[_0x4918('0x11')][_0x4918('0x23')]['get'](_0x4918('0xf')),_0xf6d7ce=_0x272af1[_0x4918('0x6')]||this[_0x4918('0x11')][_0x4918('0x17')][_0x4918('0x1f')]['selection']['getSelectedElement']();this[_0x4918('0x11')][_0x4918('0x17')][_0x4918('0x10')](()=>{const _0xf01ed3=_0x484557[_0x4918('0x15')](_0xf6d7ce);let _0x443812=_0xf01ed3?_0x484557[_0x4918('0x1b')](_0xf01ed3):null,_0x3d0577=_0xf6d7ce['getAttribute'](_0x4918('0x5'))||null;const _0x536354=_0x272af1['tableWidth']||_0x3d0577,_0x2060d4=_0x272af1[_0x4918('0x16')]||_0x443812,_0x2e65c9=this[_0x4918('0x11')][_0x4918('0x23')][_0x4918('0x21')](_0x4918('0x22'))['me'];for(const _0x473394 of _0x4805d4[_0x4918('0x3')]()){const _0x5d514c=_0x473394['getContainedElement']();if(_0x4918('0x1c')===_0x473394[_0x4918('0xb')]&&_0x5d514c===_0xf6d7ce){_0x473394['author']!==_0x2e65c9&&_0x473394['discard']();const _0x25b612=_0x473394[_0x4918('0x8')]['commandParams'];_0x3d0577=_0x25b612[0x0][_0x4918('0x5')],_0x443812=_0x25b612[0x0][_0x4918('0x16')];break;}}_0x2b1f7a({'table':_0xf6d7ce,'tableWidth':_0x536354,'columnWidths':_0x2060d4}),_0x4805d4['markBlockFormat'](_0xf6d7ce,{'commandName':_0x4918('0x7'),'commandParams':[{'tableWidth':_0x3d0577,'columnWidths':_0x443812}],'formatGroupId':_0x4918('0x1c')},[],'resizeTable');});}['handleSuggestionDescription'](_0x2cba35){if(_0x4918('0x20')!=_0x2cba35[_0x4918('0x12')]&&_0x4918('0xd')!=_0x2cba35[_0x4918('0x12')])return;const {data:_0xdcb850}=_0x2cba35;if(_0xdcb850&&_0x4918('0x1c')===_0xdcb850[_0x4918('0x1a')]){const _0x59c47d=_0x4918('0x18');return{'type':_0x4918('0xa'),'content':_0x36e12d(this['editor'][_0x4918('0x25')],_0x59c47d)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a0c=['markerName','removeMarker:suggestion','start','requires','TableEditing','format','highest','get','registerAttributeLabel','addMarker:suggestion','data-suggestion','locale','setAttribute','removeClass','ck-suggestion-marker-','markerRange','TableUtils','getSuggestion','plugins','*Format:*\x20%0','headingRows','end','_enableDefaultAttributesIntegration','removeAttribute','name','nodeBefore','TrackChangesEditing','consumable','editing','addClass','setTableRowHeader','parent','FORMAT_REGULAR_COLUMN','mapper','formatBlock','forceValue','data','_suggestionFactory','unbindElementFromMarkerName','activeMarkers','commandName','options','registerCustomCallback','afterInit','includes','_acceptFormatSuggestionCallbackFactory','FORMAT_HEADER_COLUMN','_handleLegacySuggestions','nodeAfter','editor','showSuggestionHighlights','markerNameToElements','ck-suggestion-marker--active','has','_registerLegacyDescription','downcastDispatcher','writer','accept','setTableColumnHeader','item','createTableWalker','toViewElement','type','FORMAT_HEADER_ROW','consume','getCellLocation'];(function(_0x2ceaad,_0x3a0c84){const _0x25558f=function(_0x50b660){while(--_0x50b660){_0x2ceaad['push'](_0x2ceaad['shift']());}};_0x25558f(++_0x3a0c84);}(_0x3a0c,0x120));const _0x2555=function(_0x2ceaad,_0x3a0c84){_0x2ceaad=_0x2ceaad-0x0;let _0x25558f=_0x3a0c[_0x2ceaad];return _0x25558f;};import{Plugin as _0x40f77f}from'ckeditor5/src/core';import _0x184d9d from'./table';import{getTranslation as _0x555813}from'../utils/common-translations';export default class St extends _0x40f77f{static get[_0x2555('0x2d')](){return[_0x184d9d];}[_0x2555('0x13')](){const _0x27b043=this[_0x2555('0x19')];if(!_0x27b043['plugins'][_0x2555('0x1d')](_0x2555('0x2e')))return;const _0x17ccb0=_0x27b043[_0x2555('0x35')],_0x1d33eb=_0x27b043[_0x2555('0x3c')][_0x2555('0x31')](_0x2555('0x2'));_0x1d33eb[_0x2555('0x40')]('setTableRowHeader',[],['headingRows']),_0x1d33eb[_0x2555('0x40')](_0x2555('0x22'),[],['headingColumns']),_0x1d33eb['_descriptionFactory'][_0x2555('0x32')](_0x2555('0x3e'),_0x555813(_0x17ccb0,_0x2555('0x27'))),_0x1d33eb['_descriptionFactory'][_0x2555('0x32')]('headingColumns',_0x555813(_0x17ccb0,_0x2555('0x16'))),this[_0x2555('0x17')]();}[_0x2555('0x17')](){const _0x3d6a02=this[_0x2555('0x19')][_0x2555('0x3c')][_0x2555('0x31')](_0x2555('0x2')),_0x4d831d=this[_0x2555('0x19')][_0x2555('0x3c')][_0x2555('0x31')](_0x2555('0x3a')),_0xeb3e69=this['editor']['plugins'][_0x2555('0x31')](_0x184d9d)[_0x2555('0x15')]();function _0x3719d5({showActiveMarker:_0x2c3c74=!0x0,setDataAttribute:_0x140a2f=!0x0}={}){return(_0x1965e0,_0x17bb13,_0x354706)=>{const {type:_0x2944ba,id:_0x49086c}=_0x3d6a02['_splitMarkerName'](_0x17bb13[_0x2555('0x2a')]),_0x2a8b45=_0x3d6a02[_0x2555('0x3b')](_0x49086c),_0x3e19c9=_0x2a8b45[_0x2555('0xc')];if(_0x2555('0xa')!=_0x2a8b45['type']||!_0x3e19c9||_0x2555('0x22')!=_0x3e19c9[_0x2555('0x10')])return;if(_0x17bb13[_0x2555('0x23')])return void _0x1965e0['stop']();if(!_0x354706[_0x2555('0x3')][_0x2555('0x28')](_0x17bb13[_0x2555('0x39')],_0x1965e0[_0x2555('0x0')]))return;const _0x30fdb8=_0x17bb13[_0x2555('0x39')][_0x2555('0x2c')][_0x2555('0x18')],_0x4b870a=_0x17bb13[_0x2555('0x39')][_0x2555('0x3f')][_0x2555('0x1')],_0x3011df=_0x30fdb8[_0x2555('0x7')][_0x2555('0x7')],{column:_0x35530e}=_0x4d831d['getCellLocation'](_0x30fdb8),{column:_0x1753ac}=_0x4d831d[_0x2555('0x29')](_0x4b870a);for(let _0x4fe812=_0x35530e;_0x4fe812<=_0x1753ac;_0x4fe812++){const _0x145c67=_0x4d831d[_0x2555('0x24')](_0x3011df,{'column':_0x4fe812,'includeAllSlots':!0x1});for(const _0x1dfc93 of _0x145c67){const _0x58262e=_0x1dfc93['cell'],_0x5b7ab1=_0x354706[_0x2555('0x9')][_0x2555('0x25')](_0x58262e);_0x354706[_0x2555('0x20')][_0x2555('0x5')](_0x2555('0x38')+_0x2944ba,_0x5b7ab1),_0x140a2f&&_0x354706[_0x2555('0x20')][_0x2555('0x36')](_0x2555('0x34'),_0x49086c,_0x5b7ab1),_0x354706[_0x2555('0x9')]['bindElementToMarker'](_0x5b7ab1,_0x17bb13['markerName']),_0x2c3c74&&(_0x3d6a02[_0x2555('0xf')][_0x2555('0x14')](_0x17bb13[_0x2555('0x2a')])?_0x354706[_0x2555('0x20')][_0x2555('0x5')](_0x2555('0x1c'),_0x5b7ab1):_0x354706['writer'][_0x2555('0x37')](_0x2555('0x1c'),_0x5b7ab1));}}};}_0x3d6a02['_suggestionFactory']['registerCustomCallback'](_0x2555('0xa'),'setTableRowHeader',_0x2555('0x21'),_0xeb3e69),_0x3d6a02[_0x2555('0xd')][_0x2555('0x12')](_0x2555('0xa'),_0x2555('0x22'),_0x2555('0x21'),_0xeb3e69),this[_0x2555('0x19')][_0x2555('0x4')][_0x2555('0x1f')]['on'](_0x2555('0x33'),_0x3719d5(),{'priority':_0x2555('0x30')}),this['editor'][_0x2555('0xc')][_0x2555('0x1f')]['on']('addMarker:suggestion',(_0x3b7561,_0x5bd341,_0x1bdb87)=>{_0x1bdb87[_0x2555('0x11')][_0x2555('0x1a')]&&_0x3719d5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3b7561,_0x5bd341,_0x1bdb87);},{'priority':_0x2555('0x30')}),this[_0x2555('0x19')][_0x2555('0x4')][_0x2555('0x1f')]['on'](_0x2555('0x2b'),(_0x416928,_0x12c97e,_0x5609e9)=>{const {type:_0x22fe44,id:_0xe159a3}=_0x3d6a02['_splitMarkerName'](_0x12c97e[_0x2555('0x2a')]),_0x3361c8=_0x3d6a02[_0x2555('0x3b')](_0xe159a3),_0x5c215=_0x3361c8[_0x2555('0xc')];if('formatBlock'!=_0x3361c8[_0x2555('0x26')]||!_0x5c215||_0x2555('0x22')!=_0x5c215['commandName'])return;const _0x459cc4=_0x5609e9[_0x2555('0x9')][_0x2555('0x1b')](_0x12c97e['markerName']);if(_0x459cc4)for(const _0x33b526 of _0x459cc4)_0x5609e9['writer']['removeClass'](_0x2555('0x38')+_0x22fe44,_0x33b526),_0x5609e9[_0x2555('0x20')]['removeClass'](_0x2555('0x1c'),_0x33b526),_0x5609e9['writer'][_0x2555('0x41')](_0x2555('0x34'),_0x33b526),_0x5609e9[_0x2555('0x9')][_0x2555('0xe')](_0x33b526,_0x12c97e[_0x2555('0x2a')]);},{'priority':_0x2555('0x30')}),this[_0x2555('0x1e')]();}[_0x2555('0x1e')](){const _0x146184=this[_0x2555('0x19')],_0x4a6622=_0x146184['locale'];function _0x1e939c(_0x403c23){return{'type':_0x2555('0x2f'),'content':_0x555813(_0x4a6622,_0x2555('0x3d'),_0x403c23)};}_0x146184[_0x2555('0x3c')]['get'](_0x2555('0x2'))['_descriptionFactory']['registerDescriptionCallback'](_0x4099a6=>{if(_0x2555('0xa')!=_0x4099a6['type'])return;const {data:_0x33fa46}=_0x4099a6;if(_0x33fa46){if(_0x2555('0x6')==_0x33fa46[_0x2555('0x10')]){const _0x59a084=_0x33fa46['commandParams'][0x0][_0x2555('0xb')];return _0x1e939c(_0x555813(_0x4a6622,_0x59a084?_0x2555('0x27'):'FORMAT_REGULAR_ROW'));}if(_0x2555('0x22')==_0x33fa46[_0x2555('0x10')]){const _0x25961a=_0x33fa46['commandParams'][0x0]['forceValue'];return _0x1e939c(_0x555813(_0x4a6622,_0x25961a?_0x2555('0x16'):_0x2555('0x8')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3276=['locale','element','fromRange','getAncestors','author','insertion','enableCommand','document','add','TableEditing','format','getCellLocation','formatBlock','tableCell','selection','getSelectionAffectedTableCells','containsRange','low','formatInline','detach','execute','forceDefaultExecution','refresh','afterInit','registerCustomCallback','*Split\x20cell:*\x20horizontally','size','getSuggestions','TableUtils','markBlockFormat','$graveyard','createTableWalker','_tablePostFixingSubtypes','set:isEnabled','has','from','horizontally','mergeTableCellDown','type','change','stop','accept','splitTableCellHorizontally','splitTableCellVertically','value','get','commandName','commands','setSelection','filter','map','createRangeOn','requires','_areMergableCells','root','find','push','_descriptionFactory','model','cell','*Split\x20cell:*\x20vertically','return','table','plugins','mergeTableCellUp','registerDescriptionCallback','TrackChangesEditing','deletion','_acceptFormatSuggestionCallbackFactory','isEnabled','mergeTableCellLeft','editor','direction','getRanges','mergeTableCellRight','mergeTableCells','highest','_suggestionFactory','isInContent','getFirstPosition','subType'];(function(_0x1d1f31,_0x32762f){const _0x1e7245=function(_0x3afee2){while(--_0x3afee2){_0x1d1f31['push'](_0x1d1f31['shift']());}};_0x1e7245(++_0x32762f);}(_0x3276,0xde));const _0x1e72=function(_0x1d1f31,_0x32762f){_0x1d1f31=_0x1d1f31-0x0;let _0x1e7245=_0x3276[_0x1d1f31];return _0x1e7245;};import{Plugin as _0x26bdbe}from'ckeditor5/src/core';import _0x54a3cc from'./table';import{LiveRange as _0x182bb2}from'ckeditor5/src/engine';import{getTranslation as _0x387f7e}from'../utils/common-translations';export default class yt extends _0x26bdbe{static get[_0x1e72('0x49')](){return[_0x54a3cc];}[_0x1e72('0x2c')](){const _0x4112be=this['editor'],_0x37b996=_0x4112be[_0x1e72('0x4f')][_0x1e72('0x1c')]['selection'],_0x519e06=_0x4112be[_0x1e72('0x15')];if(!_0x4112be[_0x1e72('0x3')]['has'](_0x1e72('0x1e')))return;const _0x8bf5a1=_0x4112be[_0x1e72('0x3')][_0x1e72('0x42')](_0x1e72('0x6')),_0x108907=_0x4112be[_0x1e72('0x3')][_0x1e72('0x42')]('TableUtils'),_0x33e693=_0x4112be[_0x1e72('0x3')][_0x1e72('0x42')](_0x54a3cc);_0x33e693[_0x1e72('0x35')][_0x1e72('0x4d')](_0x1e72('0xf')),_0x8bf5a1[_0x1e72('0x1b')](_0x1e72('0xf'),()=>{const _0x40483c=_0x108907[_0x1e72('0x24')](_0x4112be['model']['document'][_0x1e72('0x23')]);_0x4112be[_0x1e72('0x4f')][_0x1e72('0x3c')](()=>{_0x8bf5a1['markMultiRangeBlockFormat'](_0x40483c,{'commandName':'mergeTableCells','commandParams':[]},[],_0x1e72('0xf'));});}),_0x4112be[_0x1e72('0x44')][_0x1e72('0x42')](_0x1e72('0xf'))['on'](_0x1e72('0x29'),(_0x5e5403,_0x25cf33)=>{_0x4112be[_0x1e72('0x44')][_0x1e72('0x42')]('trackChanges')[_0x1e72('0x41')]&&(_0x25cf33['length']>0x0&&_0x25cf33[_0x25cf33['length']-0x1]&&_0x25cf33[_0x25cf33['length']-0x1][_0x1e72('0x2a')]||_0x8bf5a1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5e5403['stop']());},{'priority':_0x1e72('0x10')});for(const _0x3c7bdd of[_0x1e72('0x4'),_0x1e72('0xe'),_0x1e72('0x3a'),_0x1e72('0xa')]){const _0x11fec8=_0x4112be['commands'][_0x1e72('0x42')](_0x3c7bdd);_0x8bf5a1[_0x1e72('0x1b')](_0x3c7bdd,()=>{const _0x42ea0c=_0x4112be['model']['document'][_0x1e72('0x23')][_0x1e72('0x13')]()[_0x1e72('0x18')]()['find'](_0x8488ba=>_0x8488ba['is'](_0x1e72('0x16'),_0x1e72('0x22'))),_0x1f0dcf=_0x11fec8[_0x1e72('0x41')];_0x4112be['model'][_0x1e72('0x3c')](()=>{_0x8bf5a1['markMultiRangeBlockFormat']([_0x42ea0c,_0x1f0dcf],{'commandName':_0x1e72('0xf'),'commandParams':[]},[],_0x1e72('0xf'));});});}for(const _0x2b2852 of[_0x1e72('0x40'),_0x1e72('0x3f')]){const _0x4a9aae=_0x4112be[_0x1e72('0x44')]['get'](_0x2b2852);_0x8bf5a1[_0x1e72('0x1b')](_0x2b2852,()=>{const _0x5bbc58=_0x108907['getSelectionAffectedTableCells'](_0x4112be[_0x1e72('0x4f')][_0x1e72('0x1c')][_0x1e72('0x23')])[0x0],_0x4a3043=_0x5bbc58['findAncestor'](_0x1e72('0x2')),{column:_0x32c83e,row:_0x8ed260}=_0x108907[_0x1e72('0x20')](_0x5bbc58);let _0x22f17d=[];if(_0x1e72('0x39')==_0x4a9aae[_0x1e72('0xc')]){const _0x3f069d=_0x108907[_0x1e72('0x34')](_0x4a3043,{'startRow':_0x8ed260,'endRow':_0x8ed260,'includeAllSlots':!0x0});_0x22f17d=Array[_0x1e72('0x38')](_0x3f069d)[_0x1e72('0x47')](_0x4ee192=>_0x4ee192[_0x1e72('0x50')]);}else{const _0x5544a7=_0x108907['createTableWalker'](_0x4a3043,{'column':_0x32c83e,'includeAllSlots':!0x0});_0x22f17d=Array[_0x1e72('0x38')](_0x5544a7)[_0x1e72('0x47')](_0x41e571=>_0x41e571['cell']);}_0x4112be[_0x1e72('0x4f')][_0x1e72('0x3c')](_0x8f694a=>{_0x8bf5a1[_0x1e72('0x32')](_0x8f694a[_0x1e72('0x48')](_0x5bbc58),{'commandName':_0x2b2852,'commandParams':[]},_0x22f17d,_0x2b2852);});});}_0x8bf5a1['_descriptionFactory'][_0x1e72('0x5')](_0x2c33e4=>{if('formatBlock'!=_0x2c33e4[_0x1e72('0x3b')]&&_0x1e72('0x27')!=_0x2c33e4['type'])return;const {data:_0x40f5c8}=_0x2c33e4;return _0x40f5c8&&'mergeTableCells'==_0x40f5c8['commandName']?{'type':_0x1e72('0x1f'),'content':_0x387f7e(_0x519e06,'*Merge\x20cells*')}:void 0x0;}),_0x8bf5a1[_0x1e72('0x4e')]['registerDescriptionCallback'](_0x3c2c8a=>{if(_0x1e72('0x21')!=_0x3c2c8a['type']&&_0x1e72('0x27')!=_0x3c2c8a[_0x1e72('0x3b')])return;const {data:_0x53422b}=_0x3c2c8a;return _0x53422b?_0x1e72('0x40')==_0x53422b[_0x1e72('0x43')]?{'type':'format','content':_0x387f7e(_0x519e06,_0x1e72('0x0'))}:_0x1e72('0x3f')==_0x53422b[_0x1e72('0x43')]?{'type':'format','content':_0x387f7e(_0x519e06,_0x1e72('0x2e'))}:void 0x0:void 0x0;});const _0x53f0f3=_0x33e693[_0x1e72('0x8')]();for(const _0x437df0 of[_0x1e72('0x4'),_0x1e72('0xe'),_0x1e72('0x3a'),'mergeTableCellLeft'])_0x8bf5a1['_suggestionFactory']['registerCustomCallback'](_0x1e72('0x21'),_0x437df0,_0x1e72('0x3e'),_0x53f0f3);for(const _0x3d1d48 of[_0x1e72('0x40'),'splitTableCellHorizontally'])_0x8bf5a1['_suggestionFactory'][_0x1e72('0x2d')](_0x1e72('0x21'),_0x3d1d48,_0x1e72('0x3e'),_0x53f0f3);_0x8bf5a1[_0x1e72('0x11')][_0x1e72('0x2d')]('formatBlock','mergeTableCells','accept',_0x290cec=>{_0x4112be[_0x1e72('0x4f')][_0x1e72('0x3c')](_0x12c4bf=>{const _0x590e38=Array[_0x1e72('0x38')](_0x37b996[_0x1e72('0xd')]())[_0x1e72('0x47')](_0x1fa065=>_0x182bb2[_0x1e72('0x17')](_0x1fa065));_0x12c4bf[_0x1e72('0x45')](_0x290cec),_0x4112be['commands'][_0x1e72('0x42')](_0x1e72('0xf'))[_0x1e72('0x2b')](),_0x4112be[_0x1e72('0x29')](_0x1e72('0xf'),{'forceDefaultExecution':!0x0});const _0x1fb38e=_0x590e38[_0x1e72('0x46')](_0x2d9742=>_0x1e72('0x33')!=_0x2d9742[_0x1e72('0x4b')]['rootName']);_0x1fb38e['length']>0x0&&_0x12c4bf[_0x1e72('0x45')](_0x1fb38e);for(const _0x855dd5 of _0x590e38)_0x855dd5[_0x1e72('0x28')]();});});for(const _0x28e3e7 of['mergeTableCellUp','mergeTableCellDown',_0x1e72('0xa'),_0x1e72('0xe')]){const _0x2c5a9b=_0x4112be[_0x1e72('0x44')][_0x1e72('0x42')](_0x28e3e7);_0x2c5a9b['on'](_0x1e72('0x36'),(_0x58c6e4,_0x43e8b4,_0x18352d)=>{if(_0x18352d){const _0x5c5133=_0x4112be[_0x1e72('0x4f')][_0x1e72('0x1c')][_0x1e72('0x23')]['getFirstPosition']()['getAncestors']()[_0x1e72('0x4c')](_0x4266b1=>_0x4266b1['is'](_0x1e72('0x16'),'tableCell'));this['_areMergableCells'](_0x2c5a9b['value'],_0x5c5133)||(_0x58c6e4[_0x1e72('0x1')]=!0x1,_0x58c6e4[_0x1e72('0x3d')]());}},{'priority':_0x1e72('0x26')});}}['_areSelectedCellsMergable'](){const _0x33f6d2=this[_0x1e72('0xb')]['commands'][_0x1e72('0x42')]('mergeTableCells'),_0x556ce3=this[_0x1e72('0xb')]['plugins']['get'](_0x1e72('0x31'));if(!_0x33f6d2[_0x1e72('0x9')])return!0x1;const _0x4e9a6f=_0x556ce3[_0x1e72('0x24')](this['editor'][_0x1e72('0x4f')]['document'][_0x1e72('0x23')]);for(const _0x3f5fc0 of _0x4e9a6f)for(const _0x385161 of _0x4e9a6f)if(_0x3f5fc0!=_0x385161&&!this[_0x1e72('0x4a')](_0x3f5fc0,_0x385161))return!0x1;return!0x0;}['_areMergableCells'](_0xdaffb0,_0xe4a265){const _0x59ca50=this[_0x1e72('0xb')][_0x1e72('0x3')][_0x1e72('0x42')](_0x1e72('0x6')),_0x44dcd1=this[_0x1e72('0xb')][_0x1e72('0x4f')][_0x1e72('0x48')](_0xdaffb0),_0x425fd8=this['editor'][_0x1e72('0x4f')]['createRangeOn'](_0xe4a265),_0x437b24=new Set(),_0x336185=new Set();for(const _0x4796a3 of _0x59ca50[_0x1e72('0x30')]())if((_0x1e72('0x1a')==_0x4796a3[_0x1e72('0x3b')]||_0x1e72('0x7')==_0x4796a3['type']||'mergeTableCells'==_0x4796a3[_0x1e72('0x14')])&&_0x4796a3[_0x1e72('0x12')])for(const _0x32f312 of _0x4796a3[_0x1e72('0xd')]())_0x32f312[_0x1e72('0x25')](_0x44dcd1,!0x0)&&_0x437b24['add'](_0x4796a3[_0x1e72('0x3b')]+':'+_0x4796a3['author']['id']),_0x32f312['containsRange'](_0x425fd8,!0x0)&&_0x336185[_0x1e72('0x1d')](_0x4796a3[_0x1e72('0x3b')]+':'+_0x4796a3[_0x1e72('0x19')]['id']);if(_0x437b24['size']!=_0x336185[_0x1e72('0x2f')])return!0x1;for(const _0x406707 of _0x437b24)if(!_0x336185[_0x1e72('0x37')](_0x406707))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x151b=['locale','insertTableOfContents','ELEMENT_TABLE_OF_CONTENTS','enableCommand','editor','TrackChangesEditing','afterInit','get','_descriptionFactory','plugins'];(function(_0x41c5a7,_0x151bbd){const _0x18e8a5=function(_0x2291ac){while(--_0x2291ac){_0x41c5a7['push'](_0x41c5a7['shift']());}};_0x18e8a5(++_0x151bbd);}(_0x151b,0x178));const _0x18e8=function(_0x41c5a7,_0x151bbd){_0x41c5a7=_0x41c5a7-0x0;let _0x18e8a5=_0x151b[_0x41c5a7];return _0x18e8a5;};import{Plugin as _0x5072ec}from'ckeditor5/src/core';import{getTranslation as _0x27dfda}from'../utils/common-translations';export default class Ct extends _0x5072ec{[_0x18e8('0x0')](){const _0x51b770=this[_0x18e8('0x8')];if(!_0x51b770['commands'][_0x18e8('0x1')]('insertTableOfContents'))return;_0x51b770[_0x18e8('0x3')]['get'](_0x18e8('0x9'))[_0x18e8('0x7')](_0x18e8('0x5'));const _0x84bc4=_0x51b770['plugins'][_0x18e8('0x1')]('TrackChangesEditing'),_0x10f33c=_0x51b770[_0x18e8('0x4')];_0x84bc4[_0x18e8('0x2')]['registerElementLabel']('tableOfContents',_0x2e8367=>_0x27dfda(_0x10f33c,_0x18e8('0x6'),_0x2e8367));}}
|