@ckeditor/ckeditor5-track-changes 37.0.1 → 38.0.0-rc.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/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/ar.po +15 -1
- package/lang/translations/az.po +11 -1
- package/lang/translations/bg.po +11 -1
- package/lang/translations/bn.po +11 -1
- package/lang/translations/ca.po +11 -1
- package/lang/translations/cs.po +13 -1
- package/lang/translations/da.po +11 -1
- package/lang/translations/de.po +11 -1
- package/lang/translations/el.po +11 -1
- package/lang/translations/en-au.po +31 -21
- package/lang/translations/en.po +10 -0
- package/lang/translations/es.po +12 -1
- package/lang/translations/et.po +11 -1
- package/lang/translations/fi.po +11 -1
- package/lang/translations/fr.po +12 -1
- package/lang/translations/gl.po +11 -1
- package/lang/translations/he.po +13 -1
- package/lang/translations/hi.po +11 -1
- package/lang/translations/hr.po +34 -23
- package/lang/translations/hu.po +11 -1
- package/lang/translations/id.po +10 -1
- package/lang/translations/it.po +12 -1
- package/lang/translations/ja.po +10 -1
- package/lang/translations/ko.po +10 -1
- package/lang/translations/lt.po +13 -1
- package/lang/translations/lv.po +12 -1
- package/lang/translations/ms.po +10 -1
- package/lang/translations/nl.po +11 -1
- package/lang/translations/no.po +11 -1
- package/lang/translations/pl.po +13 -1
- package/lang/translations/pt-br.po +12 -1
- package/lang/translations/pt.po +12 -1
- package/lang/translations/ro.po +12 -1
- package/lang/translations/ru.po +13 -1
- package/lang/translations/sk.po +13 -1
- package/lang/translations/sr-latn.po +15 -4
- package/lang/translations/sr.po +33 -22
- package/lang/translations/sv.po +11 -1
- package/lang/translations/th.po +10 -1
- package/lang/translations/tk.po +11 -1
- package/lang/translations/tr.po +11 -1
- package/lang/translations/tt.po +10 -1
- package/lang/translations/uk.po +13 -1
- package/lang/translations/ur.po +11 -1
- package/lang/translations/vi.po +10 -1
- package/lang/translations/zh-cn.po +10 -1
- package/lang/translations/zh.po +10 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +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.d.ts +13 -0
- package/src/integrations/formatpainter.js +23 -0
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +13 -0
- package/src/integrations/tableofcontents.js +23 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -0
- package/src/integrations/template.js +23 -0
- 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.d.ts +23 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +23 -5
- 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 _0x2c55=['model','afterInit','createRangeIn','_suggestionFactory','createTableWalker','enqueueChange','commands','nodeBefore','$graveyard','max','tablePaste','end','removeTableRow','isArray','setSelection','values','minColumn','type','ELEMENT_TABLE_ROW','*Remove:*\x20%0','add','toViewElement','tableCell','markMultiRangeInsertion','addClass','TableUtils','hasAttribute','map','from','ELEMENT_TABLE_ROW_WITH_TEXT','_tablePostFixingSubtypes','forceValue','plugins','enableCommand','_acceptFormatSuggestionCallbackFactory','_tableSuggestions','selection','editor','getChangedMarkers','length','_getCoordsForCells','insertTableRowBelow','change','deletion','writer','get','$textProxy','isTouching','position','getCellLocation','getRanges','rowspan','getFirstRange','document','accept','minRow','ELEMENT_TABLE_WITH_TEXT','getSuggestion','subType','insert','insertTableColumnLeft','colspan','item','span','discard','MIN_SAFE_INTEGER','filter','tableRow','has','ELEMENT_TABLE_COLUMN_WITH_TEXT','suggestion','MAX_SAFE_INTEGER','classes','first','name','removeTableColumn','toLowerCase','includes','getChildren','addRange','fromRange','order','TrackChangesEditing','cell','findAncestor','push','registerCustomCallback','_getSuggestionCoords','oldRange','rootName','createRangeOn','root','*Insert:*\x20%0','getSelectionAffectedTableCells','differ','maxColumn','start','getRowIndexes','options','substr','nodeAfter','min','_setupColumnsRowsFixing','refresh','detach','batch','_splitMarkerName','registerDescriptionCallback','join','ELEMENT_TABLE_COLUMN','maxRow','getColumnIndexes','_descriptionFactory','getChanges','last','createPositionAt','registerElementLabel','data','showSuggestionHighlights','getContainedElement','registerPostFixer','element','getItems','table','tableColumn','addMarker:suggestion','insertion','insertTableRowAbove','some','getAttribute','execute'];(function(_0x1556a0,_0x2c550e){const _0x51a3ca=function(_0x23515c){while(--_0x23515c){_0x1556a0['push'](_0x1556a0['shift']());}};_0x51a3ca(++_0x2c550e);}(_0x2c55,0xbd));const _0x51a3=function(_0x1556a0,_0x2c550e){_0x1556a0=_0x1556a0-0x0;let _0x51a3ca=_0x2c55[_0x1556a0];return _0x51a3ca;};import{Plugin as _0x354667}from'ckeditor5/src/core';import{LiveRange as _0xd98c59}from'ckeditor5/src/engine';import{setHighlightHandling as _0x4c2c99}from'ckeditor5/src/widget';import{getTranslation as _0x387039}from'../utils/common-translations';export default class gt extends _0x354667{constructor(_0x151c11){super(_0x151c11),this['_tablePostFixingSubtypes']=[_0x51a3('0x9'),_0x51a3('0x42')],this[_0x51a3('0x6c')]=new Set();}[_0x51a3('0x4a')](){const _0xabbc5a=this[_0x51a3('0x6e')],_0x40a803=_0xabbc5a[_0x51a3('0x49')]['document'][_0x51a3('0x6d')];if(!_0xabbc5a['plugins'][_0x51a3('0xa')]('TableEditing'))return;const _0x48c194=_0xabbc5a['locale'],_0x37a492=_0xabbc5a[_0x51a3('0x69')]['get'](_0x51a3('0x18')),_0x1ecab5=_0xabbc5a[_0x51a3('0x69')][_0x51a3('0x76')](_0x51a3('0x62'));_0x37a492['_descriptionFactory'][_0x51a3('0x3a')](_0x51a3('0x41'),_0x272d1a=>_0x387039(_0x48c194,'ELEMENT_TABLE',_0x272d1a)),this[_0x51a3('0x2c')](),_0x37a492[_0x51a3('0x6a')]('insertTable'),_0x37a492[_0x51a3('0x6a')]('selectTableRow'),_0x37a492[_0x51a3('0x6a')]('selectTableColumn');for(const _0xf9e45 of[_0x51a3('0x45'),_0x51a3('0x72')]){const _0x49930e=_0xabbc5a[_0x51a3('0x4f')][_0x51a3('0x76')](_0xf9e45);_0x37a492['enableCommand'](_0xf9e45,_0x52eeb8=>{_0xabbc5a[_0x51a3('0x49')][_0x51a3('0x73')](_0x4b85b3=>{_0x52eeb8();const _0x2a793e='above'===_0x49930e[_0x51a3('0x17')],_0xcdbe6c=_0x1ecab5[_0x51a3('0x23')](_0x40a803),_0x2c4628=_0x1ecab5[_0x51a3('0x27')](_0xcdbe6c),_0x4bb558=_0x2a793e?_0x2c4628[_0x51a3('0xf')]-0x1:_0x2c4628[_0x51a3('0x38')]+0x1,_0x530594=_0xcdbe6c[0x0][_0x51a3('0x1a')]('table'),_0x1bd736=_0x1ecab5[_0x51a3('0x4d')](_0x530594,{'startRow':_0x4bb558,'endRow':_0x4bb558}),_0x4621b4=Array[_0x51a3('0x65')](_0x1bd736)[_0x51a3('0x64')](_0x5c3541=>_0x4b85b3['createRangeOn'](_0x5c3541[_0x51a3('0x19')]));_0x37a492[_0x51a3('0x60')](_0x4621b4,'tableRow');});});}for(const _0x59f54d of[_0x51a3('0x2'),'insertTableColumnRight']){const _0x5291a1=_0xabbc5a['commands'][_0x51a3('0x76')](_0x59f54d);_0x37a492[_0x51a3('0x6a')](_0x59f54d,_0x4007a1=>{_0xabbc5a[_0x51a3('0x49')][_0x51a3('0x73')](_0xb69b60=>{_0x4007a1();const _0x19a226='left'===_0x5291a1[_0x51a3('0x17')],_0x343bc0=_0x1ecab5[_0x51a3('0x23')](_0x40a803),_0x1ef8f4=_0x1ecab5[_0x51a3('0x35')](_0x343bc0),_0x3c2404=_0x19a226?_0x1ef8f4[_0x51a3('0xf')]-0x1:_0x1ef8f4['last']+0x1,_0x4ee63d=_0x343bc0[0x0]['findAncestor']('table'),_0x151d4d=_0x1ecab5[_0x51a3('0x4d')](_0x4ee63d,{'startRow':0x0,'column':_0x3c2404,'includeAllSlots':!0x1}),_0x32999b=Array[_0x51a3('0x65')](_0x151d4d)[_0x51a3('0x64')](_0x15e4d6=>_0xb69b60[_0x51a3('0x20')](_0x15e4d6[_0x51a3('0x19')]));_0x37a492[_0x51a3('0x60')](_0x32999b,'tableColumn');});});}for(const _0xe48f90 of[_0x51a3('0x55'),_0x51a3('0x11')]){const _0x2ddc50=_0xe48f90[_0x51a3('0x29')](0xb),_0x3753f1=_0x2ddc50[_0x51a3('0x12')](),_0x145e80=_0x3753f1['substr'](0x0,0x3)+_0x51a3('0x5'),_0x1bc5f1=_0x51a3('0x41')+_0x2ddc50,_0x4fba6c=_0x51a3('0x2b')+_0x2ddc50,_0x30ddf4=_0x51a3('0x52')+_0x2ddc50;_0x37a492[_0x51a3('0x6a')](_0xe48f90,()=>{_0xabbc5a[_0x51a3('0x49')][_0x51a3('0x73')](_0x365ff6=>{const _0x1aafeb=_0x1ecab5[_0x51a3('0x23')](_0x40a803),_0x534d5b=_0x1aafeb[0x0][_0x51a3('0x1a')]('table');let _0xa1a8cd;if(_0x51a3('0x55')==_0xe48f90){const _0x3f0aaf=_0x1ecab5[_0x51a3('0x27')](_0x1aafeb);_0xa1a8cd={'startRow':_0x3f0aaf[_0x51a3('0xf')],'endRow':_0x3f0aaf[_0x51a3('0x38')],'includeAllSlots':!0x0};}else{const _0x346f80=_0x1ecab5['getColumnIndexes'](_0x1aafeb);_0xa1a8cd={'startColumn':_0x346f80[_0x51a3('0xf')],'endColumn':_0x346f80[_0x51a3('0x38')],'includeAllSlots':!0x0};}const _0x225ee0=_0x1ecab5['createTableWalker'](_0x534d5b,_0xa1a8cd),_0x400ed3=Array[_0x51a3('0x65')](_0x225ee0)[_0x51a3('0x64')](({cell:_0x2aee67})=>_0x2aee67),_0x5524f5=se(_0x400ed3[_0x51a3('0x8')](_0x36d3b8=>_0x36d3b8[_0x51a3('0x63')](_0x145e80))),_0x4ca4ac=se(_0x400ed3[_0x51a3('0x8')](_0x22b167=>!_0x22b167[_0x51a3('0x63')](_0x145e80)))[_0x51a3('0x64')](_0x499d3d=>_0x365ff6['createRangeOn'](_0x499d3d)),_0x3abfc2=_0x37a492['markMultiRangeDeletion'](_0x4ca4ac,_0x1bc5f1);if(_0x3abfc2&&('tableRow'==_0x3abfc2[_0x51a3('0x0')]||'tableColumn'==_0x3abfc2[_0x51a3('0x0')])){const _0x1f6931=this[_0x51a3('0x1d')](_0x3abfc2);for(const _0x3e445c of _0x5524f5){const _0x13aa4f=_0x365ff6['createRangeOn'](_0x3e445c),_0x5b8b43=_0x1ecab5[_0x51a3('0x7a')](_0x3e445c),_0x12897a=_0x3e445c[_0x51a3('0x47')](_0x145e80)-0x1,_0x316b70=_0x1f6931[_0x4fba6c],_0x35ecdb=_0x1f6931[_0x30ddf4];_0x316b70<=_0x5b8b43[_0x3753f1]&&_0x5b8b43[_0x3753f1]+_0x12897a<=_0x35ecdb&&_0x3abfc2[_0x51a3('0x15')](_0x13aa4f);}}});});}function _0x4393bc(_0x2c8a46){const _0x4f1478=Array[_0x51a3('0x65')](_0x40a803[_0x51a3('0x7b')]())[_0x51a3('0x64')](_0x490944=>_0xd98c59[_0x51a3('0x16')](_0x490944));_0xabbc5a[_0x51a3('0x49')][_0x51a3('0x73')](_0x345132=>{const _0x1d6715=_0x345132[_0x51a3('0x2f')];_0x2c8a46=_0x2c8a46[_0x51a3('0x8')](_0xfb5fa1=>_0x51a3('0x51')!=_0xfb5fa1['root']['rootName']),_0x345132[_0x51a3('0x57')](_0x2c8a46),_0xabbc5a[_0x51a3('0x4f')][_0x51a3('0x76')](_0x51a3('0x55'))[_0x51a3('0x2d')](),_0xabbc5a[_0x51a3('0x48')](_0x51a3('0x55'),{'forceDefaultExecution':!0x0}),_0xabbc5a['model'][_0x51a3('0x4e')](()=>{_0xabbc5a[_0x51a3('0x49')][_0x51a3('0x4e')](_0x1d6715,_0x4f7c1f=>{const _0x41039d=_0x4f1478[_0x51a3('0x8')](_0x545c7c=>_0x51a3('0x51')!=_0x545c7c[_0x51a3('0x21')]['rootName']);_0x41039d[_0x51a3('0x70')]>0x0&&_0x4f7c1f[_0x51a3('0x57')](_0x41039d);for(const _0x46ed72 of _0x4f1478)_0x46ed72[_0x51a3('0x2e')]();});});});}function _0x563241(_0x2d1a89){_0xabbc5a['model'][_0x51a3('0x73')](_0x44674b=>{const _0x5d75be=Array[_0x51a3('0x65')](_0x40a803[_0x51a3('0x7b')]())['map'](_0xf1f909=>_0xd98c59[_0x51a3('0x16')](_0xf1f909)),_0x5c83e0=[];for(const _0x182a1f of _0x2d1a89)for(const _0x594183 of _0x182a1f['getItems']({'shallow':!0x0}))_0x5c83e0[_0x51a3('0x1b')](_0x594183);for(const _0x321bf8 of _0x5c83e0)_0x51a3('0x51')!=_0x321bf8[_0x51a3('0x21')][_0x51a3('0x1f')]&&(_0x44674b[_0x51a3('0x57')](_0x44674b[_0x51a3('0x39')](_0x321bf8,0x0)),_0xabbc5a['commands'][_0x51a3('0x76')](_0x51a3('0x11'))['refresh'](),_0xabbc5a[_0x51a3('0x48')](_0x51a3('0x11'),{'forceDefaultExecution':!0x0}));const _0x16ac01=_0x5d75be[_0x51a3('0x8')](_0xe01d65=>_0x51a3('0x51')!=_0xe01d65[_0x51a3('0x21')][_0x51a3('0x1f')]);_0x16ac01[_0x51a3('0x70')]>0x0&&_0x44674b[_0x51a3('0x57')](_0x16ac01);for(const _0x1647bf of _0x5d75be)_0x1647bf[_0x51a3('0x2e')]();});}function _0xa8809d(_0x3f7fbc,_0x4623f9){return _0x4623f9['every'](_0x518541=>_0x3f7fbc['some'](_0x3b7163=>_0x3b7163['end']['isEqual'](_0x518541[_0x51a3('0x26')])||_0x518541['end']['isEqual'](_0x3b7163[_0x51a3('0x26')])));}function _0x17a67b(_0x4bb80d,_0x4257e1){return _0x4bb80d[_0x51a3('0x46')](_0x1894ce=>_0x4257e1[_0x51a3('0x46')](_0x499bf9=>_0x1894ce['end'][_0x51a3('0x78')](_0x499bf9[_0x51a3('0x26')])));}_0xabbc5a[_0x51a3('0x3b')]['downcastDispatcher']['on'](_0x51a3('0x43'),(_0x551499,_0x22d988,_0x19d8f4)=>{if(!_0x19d8f4[_0x51a3('0x28')][_0x51a3('0x3c')])return;const _0xa1348e=_0x22d988[_0x51a3('0x4')];if(!_0xa1348e)return;const _0x2d44df=_0x19d8f4['mapper'][_0x51a3('0x5e')](_0xa1348e);function _0x3819cc(_0x3901f1){return Array[_0x51a3('0x56')](_0x3901f1)?_0x3901f1:[_0x3901f1];}_0x2d44df&&_0x51a3('0x5f')===_0xa1348e['name']&&_0x4c2c99(_0x2d44df,_0x19d8f4[_0x51a3('0x75')],(_0x378e0a,_0x21eda0,_0xc1291d)=>_0xc1291d[_0x51a3('0x61')](_0x3819cc(_0x21eda0[_0x51a3('0xe')]),_0x378e0a),(_0x4c73fb,_0x34ae63,_0x5eddb4)=>_0x5eddb4['removeClass'](_0x3819cc(_0x34ae63[_0x51a3('0xe')]),_0x4c73fb));},{'priority':'highest'}),_0x37a492[_0x51a3('0x36')][_0x51a3('0x31')](_0x63363e=>{if(_0x51a3('0x44')!=_0x63363e[_0x51a3('0x5a')]&&'deletion'!=_0x63363e[_0x51a3('0x5a')])return;const _0x698d30=_0x63363e[_0x51a3('0x3d')]();if(null!=_0x698d30&&_0x698d30['is'](_0x51a3('0x3f'),_0x51a3('0x41'))){if(_0x51a3('0x44')==_0x63363e[_0x51a3('0x5a')]){const _0xdc6f8=_0x63363e[_0x51a3('0x40')]()['filter'](_0x57d122=>_0x57d122['is'](_0x51a3('0x77')))[_0x51a3('0x64')](_0x53a1cd=>_0x53a1cd[_0x51a3('0x3b')]);if(_0xdc6f8['length'])return{'type':_0x51a3('0x44'),'content':_0x387039(_0x48c194,_0x51a3('0x22'),_0x387039(_0x48c194,_0x51a3('0x81'),'\x22'+_0xdc6f8[_0x51a3('0x32')]('\x20')+'\x22'))};}if(_0x51a3('0x74')==_0x63363e[_0x51a3('0x5a')]){const _0x426d9b=_0x63363e[_0x51a3('0x40')]()[_0x51a3('0x8')](_0x25e6c5=>_0x25e6c5['is'](_0x51a3('0x77')))[_0x51a3('0x64')](_0x399abe=>_0x399abe['data']);if(_0x426d9b[_0x51a3('0x70')])return{'type':_0x51a3('0x74'),'content':_0x387039(_0x48c194,'*Remove:*\x20%0',_0x387039(_0x48c194,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x426d9b[_0x51a3('0x32')]('\x20')+'\x22'))};}}}),_0x37a492[_0x51a3('0x36')][_0x51a3('0x31')](_0x187ad7=>{if('tableRow'==_0x187ad7[_0x51a3('0x0')]){const _0x331912=_0x187ad7[_0x51a3('0x40')]()[_0x51a3('0x8')](_0x559246=>_0x559246['is'](_0x51a3('0x77')))['map'](_0xf15f2b=>_0xf15f2b['data']),_0x2a964c=this[_0x51a3('0x1d')](_0x187ad7),_0x5358e4=_0x2a964c[_0x51a3('0x34')]-_0x2a964c[_0x51a3('0x80')]+0x1;if(_0x51a3('0x44')==_0x187ad7[_0x51a3('0x5a')])return _0x331912[_0x51a3('0x70')]?{'type':_0x51a3('0x44'),'content':_0x387039(_0x48c194,_0x51a3('0x22'),_0x387039(_0x48c194,_0x51a3('0x66'),[_0x5358e4,'\x22'+_0x331912['join']('\x20')+'\x22']))}:{'type':_0x51a3('0x44'),'content':_0x387039(_0x48c194,_0x51a3('0x22'),_0x387039(_0x48c194,'ELEMENT_TABLE_ROW',_0x5358e4))};if('deletion'==_0x187ad7['type'])return _0x331912[_0x51a3('0x70')]?{'type':_0x51a3('0x74'),'content':_0x387039(_0x48c194,_0x51a3('0x5c'),_0x387039(_0x48c194,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5358e4,'\x22'+_0x331912[_0x51a3('0x32')]('\x20')+'\x22']))}:{'type':_0x51a3('0x74'),'content':_0x387039(_0x48c194,_0x51a3('0x5c'),_0x387039(_0x48c194,_0x51a3('0x5b'),_0x5358e4))};}if(_0x51a3('0x42')==_0x187ad7[_0x51a3('0x0')]){const _0x4951a8=_0x187ad7[_0x51a3('0x40')]()[_0x51a3('0x8')](_0x326ea0=>_0x326ea0['is'](_0x51a3('0x77')))['map'](_0x5de6fb=>_0x5de6fb['data']),_0x103316=this[_0x51a3('0x1d')](_0x187ad7),_0x4045dd=_0x103316[_0x51a3('0x25')]-_0x103316[_0x51a3('0x59')]+0x1;if(_0x51a3('0x44')==_0x187ad7[_0x51a3('0x5a')])return _0x4951a8[_0x51a3('0x70')]?{'type':_0x51a3('0x44'),'content':_0x387039(_0x48c194,_0x51a3('0x22'),_0x387039(_0x48c194,_0x51a3('0xb'),[_0x4045dd,'\x22'+_0x4951a8[_0x51a3('0x32')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x387039(_0x48c194,_0x51a3('0x22'),_0x387039(_0x48c194,'ELEMENT_TABLE_COLUMN',_0x4045dd))};if(_0x51a3('0x74')==_0x187ad7[_0x51a3('0x5a')])return _0x4951a8[_0x51a3('0x70')]?{'type':_0x51a3('0x74'),'content':_0x387039(_0x48c194,_0x51a3('0x5c'),_0x387039(_0x48c194,_0x51a3('0xb'),[_0x4045dd,'\x22'+_0x4951a8[_0x51a3('0x32')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x387039(_0x48c194,'*Remove:*\x20%0',_0x387039(_0x48c194,_0x51a3('0x33'),_0x4045dd))};}}),_0x37a492[_0x51a3('0x4c')][_0x51a3('0x1c')](_0x51a3('0x44'),_0x51a3('0x9'),'discard',_0x4393bc),_0x37a492[_0x51a3('0x4c')][_0x51a3('0x1c')](_0x51a3('0x74'),_0x51a3('0x9'),_0x51a3('0x7f'),_0x4393bc),_0x37a492[_0x51a3('0x4c')]['registerCustomCallback']('insertion','tableColumn',_0x51a3('0x6'),_0x563241),_0x37a492[_0x51a3('0x4c')][_0x51a3('0x1c')]('deletion',_0x51a3('0x42'),'accept',_0x563241),_0x37a492[_0x51a3('0x4c')]['registerCustomCallback'](_0x51a3('0x44'),_0x51a3('0x42'),_0x51a3('0x32'),_0xa8809d),_0x37a492[_0x51a3('0x4c')]['registerCustomCallback']('deletion',_0x51a3('0x42'),_0x51a3('0x32'),_0xa8809d),_0x37a492[_0x51a3('0x4c')][_0x51a3('0x1c')](_0x51a3('0x44'),'tableRow',_0x51a3('0x32'),_0x17a67b),_0x37a492[_0x51a3('0x4c')]['registerCustomCallback']('deletion',_0x51a3('0x9'),_0x51a3('0x32'),_0x17a67b);}[_0x51a3('0x6b')](){const _0x48befe=this[_0x51a3('0x6e')],_0x1170cf=_0x48befe['model'][_0x51a3('0x7e')][_0x51a3('0x6d')];return(_0x3d8748,_0x29b66d)=>{_0x48befe['model'][_0x51a3('0x73')](_0x21db20=>{const {commandName:_0x3afbf0,commandParams:_0x10c8fe}=_0x29b66d;let _0x46f0ed=_0x3d8748[0x0][_0x51a3('0x54')][_0x51a3('0x50')];_0x10c8fe&&_0x10c8fe[0x0]&&!0x1===_0x10c8fe[0x0][_0x51a3('0x68')]&&(_0x46f0ed=_0x3d8748[0x0]['start'][_0x51a3('0x2a')]);const _0x3caedf=_0x21db20[_0x51a3('0x4b')](_0x46f0ed);if(_0x51a3('0x51')==_0x3caedf[_0x51a3('0x21')][_0x51a3('0x1f')])return;const _0x54ace4=Array[_0x51a3('0x65')](_0x1170cf[_0x51a3('0x7b')]())[_0x51a3('0x64')](_0x3c46d6=>_0xd98c59[_0x51a3('0x16')](_0x3c46d6));_0x21db20['setSelection'](_0x3caedf),_0x48befe[_0x51a3('0x4f')][_0x51a3('0x76')](_0x3afbf0)['refresh'](),_0x10c8fe['push']({'forceDefaultExecution':!0x0}),_0x48befe[_0x51a3('0x48')](_0x3afbf0,..._0x10c8fe);const _0x5ea912=_0x54ace4[_0x51a3('0x8')](_0x54f576=>'$graveyard'!=_0x54f576[_0x51a3('0x21')][_0x51a3('0x1f')]);_0x5ea912[_0x51a3('0x70')]>0x0&&_0x21db20[_0x51a3('0x57')](_0x5ea912);for(const _0x3468fe of _0x54ace4)_0x3468fe[_0x51a3('0x2e')]();});};}[_0x51a3('0x71')](_0x2fdf67){const _0x1ea380=this[_0x51a3('0x6e')]['plugins'][_0x51a3('0x76')](_0x51a3('0x62'));let _0x389567=Number[_0x51a3('0xd')],_0x2c6eda=Number[_0x51a3('0x7')],_0x3aa12f=Number[_0x51a3('0xd')],_0x3deb=Number[_0x51a3('0x7')];for(const _0x528777 of _0x2fdf67){if(_0x51a3('0x51')==_0x528777[_0x51a3('0x21')][_0x51a3('0x1f')])continue;const {row:_0x395abe,column:_0xd91595}=_0x1ea380['getCellLocation'](_0x528777),_0x5798b3=_0x528777[_0x51a3('0x63')](_0x51a3('0x7c'))?_0x528777[_0x51a3('0x47')]('rowspan')-0x1:0x0,_0xf9f115=_0x528777[_0x51a3('0x63')](_0x51a3('0x3'))?_0x528777['getAttribute'](_0x51a3('0x3'))-0x1:0x0;_0x389567=_0x395abe<_0x389567?_0x395abe:_0x389567,_0x2c6eda=_0x395abe+_0x5798b3>_0x2c6eda?_0x395abe+_0x5798b3:_0x2c6eda,_0x3aa12f=_0xd91595<_0x3aa12f?_0xd91595:_0x3aa12f,_0x3deb=_0xd91595+_0xf9f115>_0x3deb?_0xd91595+_0xf9f115:_0x3deb;}return{'minRow':_0x389567,'maxRow':_0x2c6eda,'minColumn':_0x3aa12f,'maxColumn':_0x3deb};}[_0x51a3('0x2c')](){const _0x1fdec4=this[_0x51a3('0x6e')],_0x270bbc=_0x1fdec4[_0x51a3('0x69')][_0x51a3('0x76')]('TrackChangesEditing'),_0x83e218=_0x1fdec4[_0x51a3('0x69')][_0x51a3('0x76')]('TableUtils');_0x1fdec4[_0x51a3('0x49')][_0x51a3('0x7e')]['on']('change:data',()=>{const _0x11e054=Array[_0x51a3('0x65')](_0x1fdec4[_0x51a3('0x49')][_0x51a3('0x7e')][_0x51a3('0x24')][_0x51a3('0x6f')]());for(const {name:_0x378923,data:_0x4b4350}of _0x11e054){const {group:_0x5545ae,id:_0x4a3ec3,subType:_0x35cb12}=_0x270bbc[_0x51a3('0x30')](_0x378923);if(_0x51a3('0xc')!=_0x5545ae)continue;if(null!=_0x4b4350[_0x51a3('0x1e')])continue;const _0x5726c0=_0x270bbc[_0x51a3('0x82')](_0x4a3ec3);this[_0x51a3('0x67')][_0x51a3('0x13')](_0x35cb12)&&this['_tableSuggestions'][_0x51a3('0x5d')](_0x5726c0);}},{'priority':'low'});const _0x3154c2=(_0x44f6aa,_0x24316a)=>{let _0x544d0d=!0x1;const _0x21d2c8=_0x24316a[_0x51a3('0x20')](_0x44f6aa),_0x3b95ec=_0x44f6aa['findAncestor'](_0x51a3('0x41')),_0x5f50c3=_0x83e218[_0x51a3('0x7a')](_0x44f6aa);for(const _0x330830 of this[_0x51a3('0x6c')]){const _0x491240=_0x330830[_0x51a3('0x0')],_0x256748=_0x491240['startsWith'](_0x51a3('0x53')),_0x20a892=_0x491240['substr'](_0x256748?0xa:0x5),_0x47457a=_0x20a892['toLowerCase'](),_0x11ffe7=_0x47457a[_0x51a3('0x29')](0x0,0x3)+_0x51a3('0x5'),_0x5e4a8d=_0x51a3('0x2b')+_0x20a892,_0x23149a=_0x51a3('0x52')+_0x20a892;if(!_0x330830['isInContent'])continue;if(_0x3b95ec!=_0x330830[_0x51a3('0x7d')]()[_0x51a3('0x26')]['findAncestor'](_0x51a3('0x41')))continue;if(_0x330830['isIntersectingWithRange'](_0x21d2c8))continue;const _0x533fa0=_0x44f6aa['hasAttribute'](_0x11ffe7)?_0x44f6aa[_0x51a3('0x47')](_0x11ffe7)-0x1:0x0,_0x30fffa=this[_0x51a3('0x1d')](_0x330830),_0x2d1921=_0x30fffa[_0x5e4a8d],_0x351905=_0x30fffa[_0x23149a];_0x2d1921<=_0x5f50c3[_0x47457a]&&_0x5f50c3[_0x47457a]+_0x533fa0<=_0x351905&&(_0x330830[_0x51a3('0x15')](_0x21d2c8),_0x544d0d=!0x0);}return _0x544d0d;};_0x1fdec4[_0x51a3('0x49')][_0x51a3('0x7e')][_0x51a3('0x3e')](_0x12a7e9=>{let _0x1a4b04=!0x1;for(const _0xca1900 of _0x1fdec4['model'][_0x51a3('0x7e')][_0x51a3('0x24')][_0x51a3('0x37')]())if(_0x51a3('0x1')==_0xca1900[_0x51a3('0x5a')]){if('tableRow'==_0xca1900[_0x51a3('0x10')])for(const _0x113dc2 of _0xca1900[_0x51a3('0x79')][_0x51a3('0x2a')][_0x51a3('0x14')]())_0x1a4b04=_0x1a4b04||_0x3154c2(_0x113dc2,_0x12a7e9);else'tableCell'==_0xca1900[_0x51a3('0x10')]&&(_0x1a4b04=_0x1a4b04||_0x3154c2(_0xca1900[_0x51a3('0x79')][_0x51a3('0x2a')],_0x12a7e9));}return _0x1a4b04;});}['_getSuggestionCoords'](_0xfd166c){return this['_getCoordsForCells'](_0xfd166c[_0x51a3('0x7b')]()[_0x51a3('0x64')](_0x17954d=>_0x17954d['start'][_0x51a3('0x2a')]));}}function se(_0xa962dc){return Array[_0x51a3('0x65')](new Set(_0xa962dc)[_0x51a3('0x58')]());}
|
|
23
|
+
const _0x2fa0=['minRow','TableUtils','addMarker:suggestion','name','_tableSuggestions','TableEditing','setSelection','subType','mapper','addRange','change:data','createPositionAt','selection','insertTableColumnRight','_suggestionFactory','_splitMarkerName','createRangeIn','hasAttribute','$graveyard','getItems','has','add','item','isArray','filter','map','$textProxy','insertTable','classes','createRangeOn','ELEMENT_TABLE_COLUMN','join','change','insert','tablePaste','addClass','suggestion','removeTableColumn','last','_getCoordsForCells','detach','findAncestor','commands','first','position','toViewElement','getRowIndexes','length','nodeAfter','every','colspan','insertTableColumnLeft','toLowerCase','MIN_SAFE_INTEGER','insertTableRowAbove','document','getSelectionAffectedTableCells','data','accept','differ','getColumnIndexes','table','_descriptionFactory','afterInit','options','minColumn','_getSuggestionCoords','low','model','enqueueChange','tableCell','min','registerPostFixer','_acceptFormatSuggestionCallbackFactory','getAttribute','includes','registerDescriptionCallback','values','getChangedMarkers','ELEMENT_TABLE','plugins','highest','above','isIntersectingWithRange','editor','get','insertion','selectTableRow','isTouching','fromRange','removeTableRow','end','rowspan','getContainedElement','MAX_SAFE_INTEGER','*Insert:*\x20%0','registerCustomCallback','root','refresh','nodeBefore','batch','start','_tablePostFixingSubtypes','span','rootName','tableRow','max','element','execute','ELEMENT_TABLE_COLUMN_WITH_TEXT','isEqual','createTableWalker','push','downcastDispatcher','type','maxRow','markMultiRangeInsertion','getSuggestion','substr','selectTableColumn','ELEMENT_TABLE_ROW','cell','discard','enableCommand','maxColumn','*Remove:*\x20%0','oldRange','getCellLocation','TrackChangesEditing','_setupColumnsRowsFixing','tableColumn','some','getFirstRange','deletion','from','left','ELEMENT_TABLE_ROW_WITH_TEXT','getChildren','getRanges'];(function(_0x3a7768,_0x2fa03c){const _0x5561fa=function(_0x3ca168){while(--_0x3ca168){_0x3a7768['push'](_0x3a7768['shift']());}};_0x5561fa(++_0x2fa03c);}(_0x2fa0,0x159));const _0x5561=function(_0x3a7768,_0x2fa03c){_0x3a7768=_0x3a7768-0x0;let _0x5561fa=_0x2fa0[_0x3a7768];return _0x5561fa;};import{Plugin as _0x214e5b}from'ckeditor5/src/core';import{LiveRange as _0x14e5c6}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2c7f49}from'ckeditor5/src/widget';import{getTranslation as _0xea22e6}from'../utils/common-translations';export default class mt extends _0x214e5b{constructor(_0x344073){super(_0x344073),this[_0x5561('0x23')]=[_0x5561('0x26'),_0x5561('0x3f')],this['_tableSuggestions']=new Set();}[_0x5561('0x87')](){const _0x5a74d0=this[_0x5561('0x11')],_0x1b315f=_0x5a74d0[_0x5561('0x1')]['document'][_0x5561('0x54')];if(!_0x5a74d0[_0x5561('0xd')][_0x5561('0x5c')](_0x5561('0x4d')))return;const _0x57cccc=_0x5a74d0['locale'],_0x179274=_0x5a74d0[_0x5561('0xd')][_0x5561('0x12')](_0x5561('0x3d')),_0x1dad51=_0x5a74d0[_0x5561('0xd')][_0x5561('0x12')]('TableUtils');_0x179274['_descriptionFactory']['registerElementLabel'](_0x5561('0x85'),_0x4352c6=>_0xea22e6(_0x57cccc,_0x5561('0xc'),_0x4352c6)),this['_setupColumnsRowsFixing'](),_0x179274[_0x5561('0x38')](_0x5561('0x63')),_0x179274[_0x5561('0x38')](_0x5561('0x14')),_0x179274[_0x5561('0x38')](_0x5561('0x34'));for(const _0x51e0bb of[_0x5561('0x7e'),'insertTableRowBelow']){const _0x5644f6=_0x5a74d0[_0x5561('0x72')][_0x5561('0x12')](_0x51e0bb);_0x179274[_0x5561('0x38')](_0x51e0bb,_0x3dd2d7=>{_0x5a74d0[_0x5561('0x1')][_0x5561('0x68')](_0x1c6325=>{_0x3dd2d7();const _0x20aa19=_0x5561('0xf')===_0x5644f6['order'],_0x185d3f=_0x1dad51[_0x5561('0x80')](_0x1b315f),_0x37a9ce=_0x1dad51[_0x5561('0x76')](_0x185d3f),_0x1c04a9=_0x20aa19?_0x37a9ce[_0x5561('0x73')]-0x1:_0x37a9ce[_0x5561('0x6e')]+0x1,_0x24702f=_0x185d3f[0x0][_0x5561('0x71')](_0x5561('0x85')),_0x269916=_0x1dad51[_0x5561('0x2c')](_0x24702f,{'startRow':_0x1c04a9,'endRow':_0x1c04a9}),_0x3a73a1=Array[_0x5561('0x43')](_0x269916)[_0x5561('0x61')](_0x275542=>_0x1c6325[_0x5561('0x65')](_0x275542['cell']));_0x179274[_0x5561('0x31')](_0x3a73a1,_0x5561('0x26'));});});}for(const _0x43558f of[_0x5561('0x7b'),_0x5561('0x55')]){const _0x447106=_0x5a74d0[_0x5561('0x72')]['get'](_0x43558f);_0x179274[_0x5561('0x38')](_0x43558f,_0x2d808d=>{_0x5a74d0['model'][_0x5561('0x68')](_0x2f141a=>{_0x2d808d();const _0x2fba88=_0x5561('0x44')===_0x447106['order'],_0x4ba2d5=_0x1dad51[_0x5561('0x80')](_0x1b315f),_0x27fcf6=_0x1dad51[_0x5561('0x84')](_0x4ba2d5),_0x3a5ba1=_0x2fba88?_0x27fcf6[_0x5561('0x73')]-0x1:_0x27fcf6['last']+0x1,_0x260349=_0x4ba2d5[0x0][_0x5561('0x71')](_0x5561('0x85')),_0x16a9a2=_0x1dad51[_0x5561('0x2c')](_0x260349,{'startRow':0x0,'column':_0x3a5ba1,'includeAllSlots':!0x1}),_0x25afc3=Array[_0x5561('0x43')](_0x16a9a2)[_0x5561('0x61')](_0x3cea05=>_0x2f141a[_0x5561('0x65')](_0x3cea05[_0x5561('0x36')]));_0x179274[_0x5561('0x31')](_0x25afc3,_0x5561('0x3f'));});});}for(const _0x39d281 of[_0x5561('0x17'),_0x5561('0x6d')]){const _0x5496da=_0x39d281[_0x5561('0x33')](0xb),_0x3fd474=_0x5496da[_0x5561('0x7c')](),_0x513dba=_0x3fd474[_0x5561('0x33')](0x0,0x3)+'span',_0x323145=_0x5561('0x85')+_0x5496da,_0x4303b3=_0x5561('0x4')+_0x5496da,_0x47df52=_0x5561('0x27')+_0x5496da;_0x179274[_0x5561('0x38')](_0x39d281,()=>{_0x5a74d0[_0x5561('0x1')]['change'](_0x30d240=>{const _0x35fc4f=_0x1dad51[_0x5561('0x80')](_0x1b315f),_0x311c29=_0x35fc4f[0x0]['findAncestor'](_0x5561('0x85'));let _0x42149f;if('removeTableRow'==_0x39d281){const _0x20b437=_0x1dad51[_0x5561('0x76')](_0x35fc4f);_0x42149f={'startRow':_0x20b437[_0x5561('0x73')],'endRow':_0x20b437['last'],'includeAllSlots':!0x0};}else{const _0x2b7a3f=_0x1dad51['getColumnIndexes'](_0x35fc4f);_0x42149f={'startColumn':_0x2b7a3f[_0x5561('0x73')],'endColumn':_0x2b7a3f[_0x5561('0x6e')],'includeAllSlots':!0x0};}const _0x25e5c3=_0x1dad51['createTableWalker'](_0x311c29,_0x42149f),_0x42148a=Array['from'](_0x25e5c3)[_0x5561('0x61')](({cell:_0x3eb994})=>_0x3eb994),_0x4482db=se(_0x42148a['filter'](_0x4a1089=>_0x4a1089['hasAttribute'](_0x513dba))),_0xcc29e6=se(_0x42148a[_0x5561('0x60')](_0x80146a=>!_0x80146a[_0x5561('0x59')](_0x513dba)))[_0x5561('0x61')](_0x1c4f1e=>_0x30d240[_0x5561('0x65')](_0x1c4f1e)),_0x41152a=_0x179274['markMultiRangeDeletion'](_0xcc29e6,_0x323145);if(_0x41152a&&(_0x5561('0x26')==_0x41152a[_0x5561('0x4f')]||_0x5561('0x3f')==_0x41152a[_0x5561('0x4f')])){const _0x358c23=this[_0x5561('0x8a')](_0x41152a);for(const _0x2c2dce of _0x4482db){const _0x41fe84=_0x30d240[_0x5561('0x65')](_0x2c2dce),_0x54a25a=_0x1dad51[_0x5561('0x3c')](_0x2c2dce),_0x21517b=_0x2c2dce[_0x5561('0x7')](_0x513dba)-0x1,_0xfd21f6=_0x358c23[_0x4303b3],_0x2647f0=_0x358c23[_0x47df52];_0xfd21f6<=_0x54a25a[_0x3fd474]&&_0x54a25a[_0x3fd474]+_0x21517b<=_0x2647f0&&_0x41152a[_0x5561('0x51')](_0x41fe84);}}});});}function _0x61474e(_0x3c65a4){const _0x3017d7=Array[_0x5561('0x43')](_0x1b315f['getRanges']())[_0x5561('0x61')](_0x4facb4=>_0x14e5c6[_0x5561('0x16')](_0x4facb4));_0x5a74d0[_0x5561('0x1')][_0x5561('0x68')](_0x24cc97=>{const _0x2525db=_0x24cc97[_0x5561('0x21')];_0x3c65a4=_0x3c65a4[_0x5561('0x60')](_0x2fb72e=>_0x5561('0x5a')!=_0x2fb72e[_0x5561('0x1e')][_0x5561('0x25')]),_0x24cc97[_0x5561('0x4e')](_0x3c65a4),_0x5a74d0['commands'][_0x5561('0x12')]('removeTableRow')[_0x5561('0x1f')](),_0x5a74d0[_0x5561('0x29')](_0x5561('0x17'),{'forceDefaultExecution':!0x0}),_0x5a74d0[_0x5561('0x1')]['enqueueChange'](()=>{_0x5a74d0['model'][_0x5561('0x2')](_0x2525db,_0x3cd232=>{const _0x3b6a27=_0x3017d7['filter'](_0x2f7dbe=>_0x5561('0x5a')!=_0x2f7dbe[_0x5561('0x1e')][_0x5561('0x25')]);_0x3b6a27['length']>0x0&&_0x3cd232[_0x5561('0x4e')](_0x3b6a27);for(const _0x183444 of _0x3017d7)_0x183444[_0x5561('0x70')]();});});});}function _0x49e1a7(_0x272c24){_0x5a74d0['model'][_0x5561('0x68')](_0x50709f=>{const _0x53eb61=Array[_0x5561('0x43')](_0x1b315f[_0x5561('0x47')]())[_0x5561('0x61')](_0x4788cd=>_0x14e5c6['fromRange'](_0x4788cd)),_0x3b586f=[];for(const _0x3b5505 of _0x272c24)for(const _0xc4b78b of _0x3b5505[_0x5561('0x5b')]({'shallow':!0x0}))_0x3b586f[_0x5561('0x2d')](_0xc4b78b);for(const _0x18b608 of _0x3b586f)'$graveyard'!=_0x18b608[_0x5561('0x1e')][_0x5561('0x25')]&&(_0x50709f[_0x5561('0x4e')](_0x50709f[_0x5561('0x53')](_0x18b608,0x0)),_0x5a74d0['commands'][_0x5561('0x12')](_0x5561('0x6d'))[_0x5561('0x1f')](),_0x5a74d0[_0x5561('0x29')](_0x5561('0x6d'),{'forceDefaultExecution':!0x0}));const _0x513766=_0x53eb61[_0x5561('0x60')](_0x39856e=>_0x5561('0x5a')!=_0x39856e[_0x5561('0x1e')][_0x5561('0x25')]);_0x513766[_0x5561('0x77')]>0x0&&_0x50709f[_0x5561('0x4e')](_0x513766);for(const _0x353049 of _0x53eb61)_0x353049['detach']();});}function _0x433209(_0x21edfd,_0x1fb67f){return _0x1fb67f[_0x5561('0x79')](_0x257ea0=>_0x21edfd[_0x5561('0x40')](_0x276efb=>_0x276efb[_0x5561('0x18')][_0x5561('0x2b')](_0x257ea0[_0x5561('0x22')])||_0x257ea0['end'][_0x5561('0x2b')](_0x276efb[_0x5561('0x22')])));}function _0x589c5d(_0x23ac34,_0x256b8b){return _0x23ac34['some'](_0x4a8307=>_0x256b8b['some'](_0x2eca3c=>_0x4a8307[_0x5561('0x18')][_0x5561('0x15')](_0x2eca3c[_0x5561('0x22')])));}_0x5a74d0[_0x5561('0x81')][_0x5561('0x2e')]['on'](_0x5561('0x4a'),(_0x7248fd,_0x5d97e5,_0x3f9439)=>{if(!_0x3f9439[_0x5561('0x88')]['showSuggestionHighlights'])return;const _0x276a07=_0x5d97e5[_0x5561('0x5e')];if(!_0x276a07)return;const _0x261ada=_0x3f9439[_0x5561('0x50')][_0x5561('0x75')](_0x276a07);function _0x3184cf(_0x19cd23){return Array[_0x5561('0x5f')](_0x19cd23)?_0x19cd23:[_0x19cd23];}_0x261ada&&_0x5561('0x3')===_0x276a07[_0x5561('0x4b')]&&_0x2c7f49(_0x261ada,_0x3f9439['writer'],(_0x504046,_0xa9f656,_0x491606)=>_0x491606[_0x5561('0x6b')](_0x3184cf(_0xa9f656[_0x5561('0x64')]),_0x504046),(_0x430095,_0x2fec9b,_0x2758e7)=>_0x2758e7['removeClass'](_0x3184cf(_0x2fec9b[_0x5561('0x64')]),_0x430095));},{'priority':_0x5561('0xe')}),_0x179274['_descriptionFactory'][_0x5561('0x9')](_0x4fe080=>{if(_0x5561('0x13')!=_0x4fe080[_0x5561('0x2f')]&&'deletion'!=_0x4fe080[_0x5561('0x2f')])return;const _0x37b312=_0x4fe080[_0x5561('0x1a')]();if(null!=_0x37b312&&_0x37b312['is'](_0x5561('0x28'),_0x5561('0x85'))){if('insertion'==_0x4fe080[_0x5561('0x2f')]){const _0xc8b52b=_0x4fe080[_0x5561('0x5b')]()[_0x5561('0x60')](_0x5206dc=>_0x5206dc['is'](_0x5561('0x62')))[_0x5561('0x61')](_0x2b27e9=>_0x2b27e9[_0x5561('0x81')]);if(_0xc8b52b[_0x5561('0x77')])return{'type':'insertion','content':_0xea22e6(_0x57cccc,_0x5561('0x1c'),_0xea22e6(_0x57cccc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc8b52b[_0x5561('0x67')]('\x20')+'\x22'))};}if(_0x5561('0x42')==_0x4fe080[_0x5561('0x2f')]){const _0x4cfcd0=_0x4fe080['getItems']()[_0x5561('0x60')](_0x3ba8d3=>_0x3ba8d3['is'](_0x5561('0x62')))[_0x5561('0x61')](_0x52c9c8=>_0x52c9c8['data']);if(_0x4cfcd0[_0x5561('0x77')])return{'type':_0x5561('0x42'),'content':_0xea22e6(_0x57cccc,_0x5561('0x3a'),_0xea22e6(_0x57cccc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cfcd0['join']('\x20')+'\x22'))};}}}),_0x179274[_0x5561('0x86')][_0x5561('0x9')](_0x2dec56=>{if(_0x5561('0x26')==_0x2dec56[_0x5561('0x4f')]){const _0x300dfe=_0x2dec56[_0x5561('0x5b')]()['filter'](_0x5d7834=>_0x5d7834['is'](_0x5561('0x62')))[_0x5561('0x61')](_0x20bec9=>_0x20bec9[_0x5561('0x81')]),_0x2a6d48=this['_getSuggestionCoords'](_0x2dec56),_0x374e9=_0x2a6d48[_0x5561('0x30')]-_0x2a6d48[_0x5561('0x48')]+0x1;if('insertion'==_0x2dec56[_0x5561('0x2f')])return _0x300dfe[_0x5561('0x77')]?{'type':_0x5561('0x13'),'content':_0xea22e6(_0x57cccc,_0x5561('0x1c'),_0xea22e6(_0x57cccc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x374e9,'\x22'+_0x300dfe[_0x5561('0x67')]('\x20')+'\x22']))}:{'type':_0x5561('0x13'),'content':_0xea22e6(_0x57cccc,_0x5561('0x1c'),_0xea22e6(_0x57cccc,_0x5561('0x35'),_0x374e9))};if(_0x5561('0x42')==_0x2dec56[_0x5561('0x2f')])return _0x300dfe[_0x5561('0x77')]?{'type':_0x5561('0x42'),'content':_0xea22e6(_0x57cccc,'*Remove:*\x20%0',_0xea22e6(_0x57cccc,_0x5561('0x45'),[_0x374e9,'\x22'+_0x300dfe[_0x5561('0x67')]('\x20')+'\x22']))}:{'type':'deletion','content':_0xea22e6(_0x57cccc,_0x5561('0x3a'),_0xea22e6(_0x57cccc,'ELEMENT_TABLE_ROW',_0x374e9))};}if(_0x5561('0x3f')==_0x2dec56[_0x5561('0x4f')]){const _0xb2f569=_0x2dec56['getItems']()[_0x5561('0x60')](_0x311cc9=>_0x311cc9['is']('$textProxy'))[_0x5561('0x61')](_0x2afa94=>_0x2afa94['data']),_0x262add=this[_0x5561('0x8a')](_0x2dec56),_0x2d8b0d=_0x262add[_0x5561('0x39')]-_0x262add[_0x5561('0x89')]+0x1;if(_0x5561('0x13')==_0x2dec56['type'])return _0xb2f569['length']?{'type':_0x5561('0x13'),'content':_0xea22e6(_0x57cccc,_0x5561('0x1c'),_0xea22e6(_0x57cccc,_0x5561('0x2a'),[_0x2d8b0d,'\x22'+_0xb2f569[_0x5561('0x67')]('\x20')+'\x22']))}:{'type':'insertion','content':_0xea22e6(_0x57cccc,_0x5561('0x1c'),_0xea22e6(_0x57cccc,_0x5561('0x66'),_0x2d8b0d))};if(_0x5561('0x42')==_0x2dec56[_0x5561('0x2f')])return _0xb2f569[_0x5561('0x77')]?{'type':'deletion','content':_0xea22e6(_0x57cccc,_0x5561('0x3a'),_0xea22e6(_0x57cccc,_0x5561('0x2a'),[_0x2d8b0d,'\x22'+_0xb2f569[_0x5561('0x67')]('\x20')+'\x22']))}:{'type':_0x5561('0x42'),'content':_0xea22e6(_0x57cccc,_0x5561('0x3a'),_0xea22e6(_0x57cccc,'ELEMENT_TABLE_COLUMN',_0x2d8b0d))};}}),_0x179274[_0x5561('0x56')][_0x5561('0x1d')](_0x5561('0x13'),'tableRow','discard',_0x61474e),_0x179274[_0x5561('0x56')]['registerCustomCallback'](_0x5561('0x42'),_0x5561('0x26'),_0x5561('0x82'),_0x61474e),_0x179274['_suggestionFactory'][_0x5561('0x1d')](_0x5561('0x13'),_0x5561('0x3f'),_0x5561('0x37'),_0x49e1a7),_0x179274[_0x5561('0x56')][_0x5561('0x1d')](_0x5561('0x42'),_0x5561('0x3f'),_0x5561('0x82'),_0x49e1a7),_0x179274[_0x5561('0x56')][_0x5561('0x1d')](_0x5561('0x13'),'tableColumn',_0x5561('0x67'),_0x433209),_0x179274[_0x5561('0x56')]['registerCustomCallback'](_0x5561('0x42'),_0x5561('0x3f'),_0x5561('0x67'),_0x433209),_0x179274[_0x5561('0x56')][_0x5561('0x1d')](_0x5561('0x13'),_0x5561('0x26'),'join',_0x589c5d),_0x179274[_0x5561('0x56')][_0x5561('0x1d')](_0x5561('0x42'),_0x5561('0x26'),_0x5561('0x67'),_0x589c5d);}[_0x5561('0x6')](){const _0x599759=this[_0x5561('0x11')],_0x599b27=_0x599759['model'][_0x5561('0x7f')][_0x5561('0x54')];return(_0xd4ecb6,_0x3e3b34)=>{_0x599759['model'][_0x5561('0x68')](_0x2e1766=>{const {commandName:_0x1f03a7,commandParams:_0x18cf16}=_0x3e3b34;let _0x3512a3=_0xd4ecb6[0x0]['end'][_0x5561('0x20')];_0x18cf16&&_0x18cf16[0x0]&&!0x1===_0x18cf16[0x0]['forceValue']&&(_0x3512a3=_0xd4ecb6[0x0][_0x5561('0x22')][_0x5561('0x78')]);const _0x47b631=_0x2e1766[_0x5561('0x58')](_0x3512a3);if('$graveyard'==_0x47b631[_0x5561('0x1e')][_0x5561('0x25')])return;const _0x47ec2d=Array[_0x5561('0x43')](_0x599b27[_0x5561('0x47')]())['map'](_0x5bcda4=>_0x14e5c6['fromRange'](_0x5bcda4));_0x2e1766[_0x5561('0x4e')](_0x47b631),_0x599759[_0x5561('0x72')][_0x5561('0x12')](_0x1f03a7)[_0x5561('0x1f')](),_0x18cf16[_0x5561('0x2d')]({'forceDefaultExecution':!0x0}),_0x599759['execute'](_0x1f03a7,..._0x18cf16);const _0x129703=_0x47ec2d['filter'](_0x11df96=>_0x5561('0x5a')!=_0x11df96[_0x5561('0x1e')][_0x5561('0x25')]);_0x129703['length']>0x0&&_0x2e1766['setSelection'](_0x129703);for(const _0x205d75 of _0x47ec2d)_0x205d75[_0x5561('0x70')]();});};}[_0x5561('0x6f')](_0x5cee37){const _0x4418d1=this[_0x5561('0x11')][_0x5561('0xd')]['get'](_0x5561('0x49'));let _0x5caedd=Number[_0x5561('0x1b')],_0x70a238=Number[_0x5561('0x7d')],_0xe0139e=Number[_0x5561('0x1b')],_0x31b5a2=Number[_0x5561('0x7d')];for(const _0x264f73 of _0x5cee37){if(_0x5561('0x5a')==_0x264f73[_0x5561('0x1e')][_0x5561('0x25')])continue;const {row:_0x23b1bf,column:_0x2b944c}=_0x4418d1[_0x5561('0x3c')](_0x264f73),_0x519776=_0x264f73[_0x5561('0x59')](_0x5561('0x19'))?_0x264f73[_0x5561('0x7')](_0x5561('0x19'))-0x1:0x0,_0x3dd1d4=_0x264f73['hasAttribute'](_0x5561('0x7a'))?_0x264f73[_0x5561('0x7')](_0x5561('0x7a'))-0x1:0x0;_0x5caedd=_0x23b1bf<_0x5caedd?_0x23b1bf:_0x5caedd,_0x70a238=_0x23b1bf+_0x519776>_0x70a238?_0x23b1bf+_0x519776:_0x70a238,_0xe0139e=_0x2b944c<_0xe0139e?_0x2b944c:_0xe0139e,_0x31b5a2=_0x2b944c+_0x3dd1d4>_0x31b5a2?_0x2b944c+_0x3dd1d4:_0x31b5a2;}return{'minRow':_0x5caedd,'maxRow':_0x70a238,'minColumn':_0xe0139e,'maxColumn':_0x31b5a2};}[_0x5561('0x3e')](){const _0x4b88ea=this['editor'],_0x1e954b=_0x4b88ea['plugins'][_0x5561('0x12')](_0x5561('0x3d')),_0x323ae9=_0x4b88ea['plugins'][_0x5561('0x12')](_0x5561('0x49'));_0x4b88ea[_0x5561('0x1')][_0x5561('0x7f')]['on'](_0x5561('0x52'),()=>{const _0x4800e0=Array['from'](_0x4b88ea['model'][_0x5561('0x7f')][_0x5561('0x83')][_0x5561('0xb')]());for(const {name:_0x3b2714,data:_0x4e3154}of _0x4800e0){const {group:_0x2e6c54,id:_0x5addbd,subType:_0x1264e0}=_0x1e954b[_0x5561('0x57')](_0x3b2714);if(_0x5561('0x6c')!=_0x2e6c54)continue;if(null!=_0x4e3154[_0x5561('0x3b')])continue;const _0xf71900=_0x1e954b[_0x5561('0x32')](_0x5addbd);this['_tablePostFixingSubtypes'][_0x5561('0x8')](_0x1264e0)&&this['_tableSuggestions'][_0x5561('0x5d')](_0xf71900);}},{'priority':_0x5561('0x0')});const _0x93635c=(_0x5c66e1,_0x1e0f16)=>{let _0x1a372d=!0x1;const _0x401a25=_0x1e0f16['createRangeOn'](_0x5c66e1),_0x1f5c6b=_0x5c66e1[_0x5561('0x71')]('table'),_0x744b67=_0x323ae9[_0x5561('0x3c')](_0x5c66e1);for(const _0x238549 of this[_0x5561('0x4c')]){const _0x5ec77c=_0x238549[_0x5561('0x4f')],_0x1cfe25=_0x5ec77c['startsWith'](_0x5561('0x6a')),_0x40a0b1=_0x5ec77c[_0x5561('0x33')](_0x1cfe25?0xa:0x5),_0x526fa0=_0x40a0b1['toLowerCase'](),_0x495a7c=_0x526fa0[_0x5561('0x33')](0x0,0x3)+_0x5561('0x24'),_0xf721c3=_0x5561('0x4')+_0x40a0b1,_0x3b2b89='max'+_0x40a0b1;if(!_0x238549['isInContent'])continue;if(_0x1f5c6b!=_0x238549[_0x5561('0x41')]()['start'][_0x5561('0x71')](_0x5561('0x85')))continue;if(_0x238549[_0x5561('0x10')](_0x401a25))continue;const _0x31bcf3=_0x5c66e1['hasAttribute'](_0x495a7c)?_0x5c66e1[_0x5561('0x7')](_0x495a7c)-0x1:0x0,_0x14b4b7=this[_0x5561('0x8a')](_0x238549),_0x214eea=_0x14b4b7[_0xf721c3],_0x553339=_0x14b4b7[_0x3b2b89];_0x214eea<=_0x744b67[_0x526fa0]&&_0x744b67[_0x526fa0]+_0x31bcf3<=_0x553339&&(_0x238549[_0x5561('0x51')](_0x401a25),_0x1a372d=!0x0);}return _0x1a372d;};_0x4b88ea[_0x5561('0x1')]['document'][_0x5561('0x5')](_0x241d94=>{let _0x523a5c=!0x1;for(const _0x15216f of _0x4b88ea[_0x5561('0x1')][_0x5561('0x7f')][_0x5561('0x83')]['getChanges']())if(_0x5561('0x69')==_0x15216f[_0x5561('0x2f')]){if('tableRow'==_0x15216f[_0x5561('0x4b')])for(const _0x2f37c2 of _0x15216f[_0x5561('0x74')][_0x5561('0x78')][_0x5561('0x46')]())_0x523a5c=_0x523a5c||_0x93635c(_0x2f37c2,_0x241d94);else _0x5561('0x3')==_0x15216f[_0x5561('0x4b')]&&(_0x523a5c=_0x523a5c||_0x93635c(_0x15216f['position'][_0x5561('0x78')],_0x241d94));}return _0x523a5c;});}[_0x5561('0x8a')](_0x73d83f){return this[_0x5561('0x6f')](_0x73d83f['getRanges']()['map'](_0x23ffe0=>_0x23ffe0[_0x5561('0x22')]['nodeAfter']));}}function se(_0xe1deea){return Array[_0x5561('0x43')](new Set(_0xe1deea)[_0x5561('0xa')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xed1f=['has','get','TableCaptionEditing','TrackChangesEditing','toggleTableCaption','requires','enableCommand'];(function(_0x4a0134,_0xed1f76){const _0x3de90f=function(_0x3ef1c5){while(--_0x3ef1c5){_0x4a0134['push'](_0x4a0134['shift']());}};_0x3de90f(++_0xed1f76);}(_0xed1f,0x19b));const _0x3de9=function(_0x4a0134,_0xed1f76){_0x4a0134=_0x4a0134-0x0;let _0x3de90f=_0xed1f[_0x4a0134];return _0x3de90f;};import{Plugin as _0x2a1d4c}from'ckeditor5/src/core';import _0x257636 from'./table';export default class vt extends _0x2a1d4c{static get[_0x3de9('0x0')](){return[_0x257636];}['afterInit'](){const _0x3d1200=this['editor'];if(!_0x3d1200['plugins'][_0x3de9('0x2')](_0x3de9('0x4')))return;_0x3d1200['plugins'][_0x3de9('0x3')](_0x3de9('0x5'))[_0x3de9('0x1')](_0x3de9('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x71c6=['getChildren','has','tablePasteRow','low','_createdBatches','markerToHighlight','tableCellBorderColor','schema','insertContent','markerAttributes','discard','showSuggestionHighlights','getContainedElement','isEmpty','_suggestionFactory','_splitMarkerName','accept','createTableWalker','includes','removeColumns','createRangeIn','tablePasteCell','plugins','conversion','some','removeMarkers','getRange','root','selection','getChangedMarkers','columnInsertionIndexes','length','column','getRanges','getChild','endColumn','markers','getColumnIndexes','differ','markMultiRangeInsertion','element','suggestionLoaded','view','for','keys','getAllAdjacentSuggestions','stop','remove','cell','suggestionUnloaded','documentSelection','Users','push','TrackChangesEditing','every','setAttributes','markMultiRangeDeletion','batch','insertColumns','change','get','locale','registerDescriptionCallback','first','editing','createElement','getRowIndexes','tablePasteChainId','$graveyard','getSelectionAffectedTableCells','_getCoordsForCells','insertionRanges','paragraph','getTableIfOnlyTableInContent','subType','end','map','_tablePostFixingSubtypes','add','containsRange','suggestion','tableCell','getSuggestions','newRange','insertRows','listenTo','set','next','table','row','registerCustomCallback','afterInit','TableUtils','removeMarker','activeMarkers','formatBlock','ck-suggestion-marker','clipboardOutput','reduce','unwrap','value','join','rowInsertionRanges','suggestion:formatBlock:tablePasteCell','registerPostFixer','document','getAttributes','getMarkers','isEqual','elementToElement','from','insertion','deletion','startsWith','nodeAfter','oldRange','options','name','position','*Replace\x20table\x20cells*','hasSuggestion','tableCellSuggestion','_descriptionFactory','register','tablePasteColumn','find','markerName','isInContent','ck-suggestion-marker--active','getColumns','author','editor','filter','dataDowncast','model','markMultiRangeBlockFormat','commands','forceDefaultExecution','last','createRangeOn','insert','nextSibling','tableCellVerticalAlignment','fromEntries','removeRows','findAncestor','previous','type','columnInsertionRanges','rowInsertionIndexes','high','move','endRow','tablePaste','attributes','entries','cells','_replaceTableSlotCell','deletionRanges'];(function(_0x4b4bb2,_0x71c65c){const _0x2cca3d=function(_0x5793a2){while(--_0x5793a2){_0x4b4bb2['push'](_0x4b4bb2['shift']());}};_0x2cca3d(++_0x71c65c);}(_0x71c6,0x1a0));const _0x2cca=function(_0x4b4bb2,_0x71c65c){_0x4b4bb2=_0x4b4bb2-0x0;let _0x2cca3d=_0x71c6[_0x4b4bb2];return _0x2cca3d;};import{getTranslation as _0x5e8ed6}from'../utils/common-translations';import{Plugin as _0x4256b1}from'ckeditor5/src/core';import{uid as _0x235762,priorities as _0x1a16dd}from'ckeditor5/src/utils';import _0x58f7e0 from'./table';const le=['tableCellBorderWidth',_0x2cca('0x43'),'tableCellBorderStyle','tableCellHorizontalAlignment',_0x2cca('0x2c'),'tableCellBackgroundColor','tableCellPadding'],ae=Object['fromEntries'](le[_0x2cca('0x89')](_0x39c83=>[_0x39c83,null]));export default class pt extends _0x4256b1{static get['requires'](){return[_0x58f7e0];}[_0x2cca('0x98')](){const _0x14ab16=this[_0x2cca('0x21')];if(!_0x14ab16[_0x2cca('0x53')][_0x2cca('0x3e')]('TableClipboard'))return;const _0x5dd593=_0x14ab16['plugins']['get'](_0x2cca('0x72')),_0x2817a7=_0x14ab16[_0x2cca('0x53')]['get'](_0x2cca('0x99')),_0x20a9ee=_0x14ab16[_0x2cca('0x53')][_0x2cca('0x79')](_0x58f7e0),_0x2416b1=_0x14ab16[_0x2cca('0x53')][_0x2cca('0x79')]('TableClipboard');_0x20a9ee[_0x2cca('0x8a')][_0x2cca('0x71')](_0x2cca('0x3f'),_0x2cca('0x1a')),_0x14ab16[_0x2cca('0x24')][_0x2cca('0x44')][_0x2cca('0x19')](_0x2cca('0x17'),{'allowIn':_0x2cca('0x8e'),'allowContentOf':'tableCell','isLimit':!0x0}),_0x14ab16[_0x2cca('0x54')][_0x2cca('0xb')]({'model':_0x2cca('0x17'),'view':'suggestion-td'});let _0x26319c=null;_0x14ab16[_0x2cca('0x24')]['on'](_0x2cca('0x45'),(_0x5dd413,_0x305c58)=>{const [_0xcae8aa,_0x480192]=_0x305c58,_0x52423d=_0x305c58[_0x305c58[_0x2cca('0x5c')]-0x1];_0x52423d&&_0x52423d[_0x2cca('0x27')]||_0x5dd593['_isForcedDefaultExecutionBlock']||this['editor'][_0x2cca('0x26')][_0x2cca('0x79')]('trackChanges')[_0x2cca('0x2')]&&function(_0x5e8ccc,_0x4c6453,_0x241646,_0x4a83c9,_0x30731f){if(_0x4c6453&&!_0x4c6453['is'](_0x2cca('0x6f')))return!0x1;const _0x28329d=_0x30731f[_0x2cca('0x86')](_0x5e8ccc,_0x241646);if(!_0x28329d||!fe(_0x28329d,void 0x0,_0x4a83c9))return!0x1;const _0x124553=_0x4a83c9[_0x2cca('0x82')](_0x241646[_0x2cca('0x7')][_0x2cca('0x59')]);if(!_0x124553[_0x2cca('0x5c')])return!0x1;const _0x1ce07d=_0x124553[0x0][_0x2cca('0x2f')](_0x2cca('0x95')),_0x2b03ba=_0x4a83c9[_0x2cca('0x7f')](_0x124553),_0x25064d=_0x4a83c9[_0x2cca('0x62')](_0x124553),_0x433654={'startRow':_0x2b03ba[_0x2cca('0x7c')],'endRow':_0x2b03ba[_0x2cca('0x28')],'startColumn':_0x25064d['first'],'endColumn':_0x25064d[_0x2cca('0x28')]};return 0x1==_0x124553['length']&&(_0x433654[_0x2cca('0x36')]+=_0x4a83c9['getRows'](_0x28329d)-0x1,_0x433654[_0x2cca('0x60')]+=_0x4a83c9[_0x2cca('0x1f')](_0x28329d)-0x1),fe(_0x1ce07d,_0x433654,_0x4a83c9);}(_0xcae8aa,_0x480192,_0x14ab16[_0x2cca('0x24')],_0x2817a7,_0x2416b1)&&(_0x5dd413[_0x2cca('0x6b')](),_0x26319c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x14ab16[_0x2cca('0x24')]['change'](()=>{_0x14ab16['model']['insertContent'](_0x305c58[0x0],_0x305c58[0x1],_0x305c58[0x2],{'forceDefaultExecution':!0x0});const _0x1e44fc=_0x235762(),{rowInsertionRanges:_0xacf4f5,columnInsertionRanges:_0x242805,insertionRanges:_0x2325f2,deletionRanges:_0x43afec,cells:_0x20dafa}=_0x26319c;_0xacf4f5[_0x2cca('0x5c')]&&_0x5dd593[_0x2cca('0x64')](_0xacf4f5,_0x2cca('0x3f'),{'tablePasteChainId':_0x1e44fc}),_0x242805['length']&&_0x5dd593[_0x2cca('0x64')](_0x242805,_0x2cca('0x1a'),{'tablePasteChainId':_0x1e44fc}),_0x2325f2[_0x2cca('0x5c')]&&_0x5dd593[_0x2cca('0x64')](_0x2325f2,_0x2cca('0x37'),{'tablePasteChainId':_0x1e44fc,'skipNestingCheck':!0x0}),_0x43afec[_0x2cca('0x5c')]&&_0x5dd593[_0x2cca('0x75')](_0x43afec,_0x2cca('0x37'),{'tablePasteChainId':_0x1e44fc,'skipNestingCheck':!0x0});const _0x3aa859=_0x5dd593[_0x2cca('0x25')](_0x20dafa['map'](({element:_0x5355c8})=>_0x5355c8),{'formatGroupId':_0x235762()},[],_0x2cca('0x52'),{'tablePasteChainId':_0x1e44fc});if(_0x3aa859){const _0x3358fc=_0x3aa859[_0x2cca('0x9')](),_0xf3b906=[];for(const {element:_0x21deed,attributes:_0x4b0c71}of _0x20dafa){if(!_0x4b0c71)continue;const _0x52e31b=_0x14ab16['model'][_0x2cca('0x29')](_0x21deed),_0x77b342=_0x3358fc[_0x2cca('0x1b')](_0x209b27=>_0x209b27['getRange']()[_0x2cca('0xa')](_0x52e31b));_0x77b342&&_0xf3b906['push']([_0x77b342[_0x2cca('0x13')],_0x4b0c71]);}_0xf3b906[_0x2cca('0x5c')]&&_0x3aa859['setAttribute'](_0x2cca('0x46'),Object[_0x2cca('0x2d')](_0xf3b906));}_0x26319c=null;}));},{'priority':_0x1a16dd['high']+0xa}),_0x14ab16[_0x2cca('0x53')]['get']('TableClipboard')['on'](_0x2cca('0x3b'),(_0xa69d,_0x5d0c1f)=>{const [_0x1018aa,_0x534af5,,_0x1f1707]=_0x5d0c1f;if(!_0x26319c)return;_0xa69d[_0x2cca('0x6b')]();const _0xa4e658=_0x1018aa[_0x2cca('0x6d')],_0xdbe847=_0x534af5,_0x3fa720=ce(_0xa4e658),_0x57f7a2=ce(_0xdbe847);_0xa69d['return']=_0xa4e658;let _0x20e8a9=null,_0x5874ca=null;if(_0x57f7a2||_0x3fa720){if(_0x3fa720&&!_0x57f7a2){_0x1f1707[_0x2cca('0x6c')](_0xa4e658[_0x2cca('0x5f')](0x0));for(const _0x251e93 of Array[_0x2cca('0xc')](_0xdbe847[_0x2cca('0x3d')]()))_0x1f1707[_0x2cca('0x2a')](_0x251e93,_0xa4e658,_0x2cca('0x88'));const _0x4cab78=_0x26319c[_0x2cca('0x33')]['includes'](_0x1018aa[_0x2cca('0x96')]),_0x2b802d=_0x26319c[_0x2cca('0x5b')]['includes'](_0x1018aa[_0x2cca('0x5d')]);_0x4cab78||_0x2b802d||(_0x20e8a9=_0x1f1707[_0x2cca('0x51')](_0xa4e658));}else _0x57f7a2&&!_0x3fa720&&(_0x5874ca=_0x1f1707[_0x2cca('0x51')](_0xa4e658));}else{const _0x1086fe=_0x1f1707[_0x2cca('0x7e')](_0x2cca('0x17')),_0x40c217=_0x1f1707[_0x2cca('0x7e')](_0x2cca('0x17'));_0x1f1707['wrap'](_0x1f1707['createRangeIn'](_0xa4e658),_0x40c217),_0x1f1707['insert'](_0x1086fe,_0xa4e658,0x0);for(const _0x40a09d of Array[_0x2cca('0xc')](_0xdbe847[_0x2cca('0x3d')]()))_0x1f1707[_0x2cca('0x2a')](_0x40a09d,_0x1086fe,_0x2cca('0x88'));_0x20e8a9=_0x1f1707[_0x2cca('0x29')](_0x1086fe),_0x5874ca=_0x1f1707[_0x2cca('0x29')](_0x40c217);}const _0x13f665=Array[_0x2cca('0xc')](_0xdbe847[_0x2cca('0x8')]())[_0x2cca('0x22')](([_0x221f68])=>le['includes'](_0x221f68));_0x26319c[_0x2cca('0x3a')][_0x2cca('0x71')]({'element':_0xa4e658,'attributes':_0x13f665['length']?Object['fromEntries'](_0x13f665):null}),_0x20e8a9&&_0x26319c[_0x2cca('0x84')][_0x2cca('0x71')](_0x20e8a9),_0x5874ca&&_0x26319c[_0x2cca('0x3c')][_0x2cca('0x71')](_0x5874ca);},{'priority':_0x2cca('0x34')}),_0x2817a7['on'](_0x2cca('0x77'),(_0x351d5f,_0x36160b)=>{const [_0x23f38b,_0xc0209b={}]=_0x36160b;if(!_0x26319c)return;const _0x394ade=_0xc0209b['at']||0x0,_0x5a5764=_0xc0209b['columns']||0x1;_0x26319c['columnInsertionIndexes']=new Array(_0x5a5764)['fill'](_0x394ade)[_0x2cca('0x89')]((_0x1a9cce,_0x5dd2ba)=>_0x1a9cce+_0x5dd2ba);for(const {cell:_0x17a929}of _0x2817a7[_0x2cca('0x4e')](_0x23f38b,{'startColumn':_0x394ade,'endColumn':_0x394ade+_0x5a5764-0x1}))_0x26319c[_0x2cca('0x32')][_0x2cca('0x71')](_0x14ab16[_0x2cca('0x24')][_0x2cca('0x29')](_0x17a929));},{'priority':_0x2cca('0x40')}),_0x2817a7['on'](_0x2cca('0x91'),(_0x196612,_0x4601cc)=>{const [_0x43b498,_0x307c24={}]=_0x4601cc;if(!_0x26319c)return;const _0x560b90=_0x307c24['at']||0x0,_0x2f479d=_0x307c24['rows']||0x1;_0x26319c[_0x2cca('0x33')]=new Array(_0x2f479d)['fill'](_0x560b90)[_0x2cca('0x89')]((_0x54b9da,_0x458825)=>_0x54b9da+_0x458825);for(const {cell:_0x358c07}of _0x2817a7['createTableWalker'](_0x43b498,{'startRow':_0x560b90,'endRow':_0x560b90+_0x2f479d-0x1}))_0x26319c[_0x2cca('0x4')][_0x2cca('0x71')](_0x14ab16[_0x2cca('0x24')][_0x2cca('0x29')](_0x358c07));},{'priority':'low'}),_0x5dd593[_0x2cca('0x18')][_0x2cca('0x7b')](_0x349a8e=>{if(_0x349a8e['subType']&&_0x349a8e['subType'][_0x2cca('0xf')](_0x2cca('0x37')))return _0x349a8e[_0x2cca('0x30')]?{}:{'type':_0x2cca('0xd'),'content':_0x5e8ed6(_0x14ab16[_0x2cca('0x7a')],_0x2cca('0x15'))};});const _0x43855f=()=>{};for(const _0x51f0f6 of[_0x2cca('0x37'),_0x2cca('0x1a'),_0x2cca('0x3f'),_0x2cca('0x52')])_0x5dd593[_0x2cca('0x4b')][_0x2cca('0x97')]('insertion',_0x51f0f6,_0x2cca('0x3'),_0x43855f),_0x5dd593[_0x2cca('0x4b')]['registerCustomCallback'](_0x2cca('0xe'),_0x51f0f6,'join',_0x43855f);_0x5dd593['_suggestionFactory'][_0x2cca('0x97')](_0x2cca('0x9c'),_0x2cca('0x52'),'discard',_0x43855f),_0x5dd593['_suggestionFactory'][_0x2cca('0x97')](_0x2cca('0x9c'),_0x2cca('0x52'),_0x2cca('0x4d'),(_0xb2e020,_0x2e42de,_0x23e8a9)=>{const _0x2cf659=_0xb2e020[_0x2cca('0x89')](_0x409798=>_0x409798[_0x2cca('0x49')]())[_0x2cca('0x22')](_0x43b858=>_0x43b858),_0x197f8c=new Map(_0x2cf659[_0x2cca('0x89')](_0x39300f=>[_0x39300f,null]));if(_0x26319c)for(const {element:_0x2c84f2,attributes:_0x361870}of _0x26319c[_0x2cca('0x3a')])_0x361870&&_0x197f8c[_0x2cca('0x93')](_0x2c84f2,_0x361870);else{if(_0x23e8a9&&_0x23e8a9['markerAttributes'])for(const [_0x1f4378,_0x4a0128]of Object[_0x2cca('0x39')](_0x23e8a9[_0x2cca('0x46')])){const _0xd1e4e=_0x14ab16[_0x2cca('0x24')][_0x2cca('0x61')]['get'](_0x1f4378),_0x196fa6=_0xd1e4e?_0xd1e4e[_0x2cca('0x57')]()[_0x2cca('0x49')]():null;_0x196fa6&&_0x197f8c[_0x2cca('0x93')](_0x196fa6,_0x4a0128);}}_0x14ab16['model'][_0x2cca('0x78')](_0x3546db=>{for(const [_0x33b6b3,_0x4d6c09]of _0x197f8c)_0x3546db[_0x2cca('0x74')]({...ae,..._0x4d6c09},_0x33b6b3);});});const _0xd06ea8=(_0x3aeb04,_0x3ca02f)=>{_0x5dd593['_suggestionFactory'][_0x2cca('0x97')](_0x3aeb04,_0x2cca('0x37'),_0x3ca02f,(_0x1657ce,_0x40036d,_0x72c4d7)=>{_0x14ab16[_0x2cca('0x24')]['change'](_0x2d6789=>{const _0x53d35b=[];for(const _0x1d4f5c of _0x1657ce){const _0x7ede1=_0x1d4f5c['start'][_0x2cca('0x10')];_0x7ede1['is'](_0x2cca('0x65'),'tableCellSuggestion')&&_0x53d35b[_0x2cca('0x71')](_0x7ede1);}_0x5dd593[_0x2cca('0x4b')]['getSuggestionCallback'](_0x3aeb04,null,_0x3ca02f)(_0x1657ce,_0x40036d,_0x72c4d7);for(const _0x492a58 of _0x53d35b)_0x2cca('0x81')!=_0x492a58[_0x2cca('0x58')]['rootName']&&_0x2d6789['unwrap'](_0x492a58);});});};_0xd06ea8('insertion',_0x2cca('0x4d')),_0xd06ea8(_0x2cca('0xd'),_0x2cca('0x47')),_0xd06ea8(_0x2cca('0xe'),_0x2cca('0x4d')),_0xd06ea8(_0x2cca('0xe'),'discard'),_0x5dd593[_0x2cca('0x4b')][_0x2cca('0x97')]('insertion',_0x2cca('0x3f'),_0x2cca('0x47'),_0x22752b=>{const _0x26dd18=_0x22752b[_0x2cca('0x89')](_0x29ede8=>_0x29ede8[_0x2cca('0x49')]()),_0x3a232c=_0x26dd18[0x0][_0x2cca('0x2f')](_0x2cca('0x95')),{minRow:_0x31e6e5,maxRow:_0x1e1f48}=_0x20a9ee[_0x2cca('0x83')](_0x26dd18);_0x2817a7[_0x2cca('0x2e')](_0x3a232c,{'at':_0x31e6e5,'rows':_0x1e1f48-_0x31e6e5+0x1});}),_0x5dd593[_0x2cca('0x4b')]['registerCustomCallback'](_0x2cca('0xd'),_0x2cca('0x1a'),_0x2cca('0x47'),_0x7c5758=>{const _0x24c87d=_0x7c5758[_0x2cca('0x89')](_0x13f264=>_0x13f264[_0x2cca('0x49')]()),_0x2c0686=_0x24c87d[0x0]['findAncestor'](_0x2cca('0x95')),{minColumn:_0x265c4a,maxColumn:_0x3e554a}=_0x20a9ee[_0x2cca('0x83')](_0x24c87d);_0x2817a7[_0x2cca('0x50')](_0x2c0686,{'at':_0x265c4a,'columns':_0x3e554a-_0x265c4a+0x1});});const _0x40d4f1=(_0x18062d,_0x258635)=>{if(!_0x258635[_0x2cca('0x87')]||!_0x258635[_0x2cca('0x87')]['startsWith'](_0x2cca('0x37')))return;const _0x20c337=_0x258635[_0x2cca('0x38')]['tablePasteChainId'],_0x12c18e=_0x5dd593[_0x2cca('0x8f')]()[_0x2cca('0x22')](_0x1c42c9=>_0x1c42c9[_0x2cca('0x1d')]&&_0x1c42c9[_0x2cca('0x38')]&&_0x1c42c9[_0x2cca('0x38')][_0x2cca('0x80')]==_0x20c337);_0x12c18e[_0x2cca('0x5c')]&&_0x258635[_0x2cca('0x6a')]()['length']!=_0x12c18e['length']&&_0x12c18e[_0x2cca('0x0')]((_0x2dd034,_0x5370cc)=>(_0x2dd034[_0x2cca('0x94')]=_0x5370cc,_0x5370cc['previous']=_0x2dd034,_0x5370cc));};function _0x5df43d(_0x332c37,_0x2e01ca=!0x0){const {id:_0x4ebeca}=_0x5dd593[_0x2cca('0x4c')](_0x332c37[_0x2cca('0x1c')]),_0x36aa23=[_0x2cca('0x9d'),'ck-suggestion-marker-insertion'],_0x564af2=_0x5dd593[_0x2cca('0x9b')][_0x2cca('0x4f')](_0x332c37['markerName']);return _0x564af2&&_0x36aa23[_0x2cca('0x71')](_0x2cca('0x1e')),{'classes':_0x36aa23,'attributes':{'data-suggestion':_0x4ebeca},'priority':_0x564af2&&_0x2e01ca?0xbc2:0xbb8};}_0x5dd593['on'](_0x2cca('0x66'),_0x40d4f1,{'priority':_0x2cca('0x34')}),_0x5dd593['on'](_0x2cca('0x6e'),_0x40d4f1,{'priority':_0x2cca('0x34')}),_0x14ab16[_0x2cca('0x24')][_0x2cca('0x7')]['registerPostFixer'](()=>{let _0x3e831b=!0x1;const _0x22dd1d=Array[_0x2cca('0xc')](_0x14ab16[_0x2cca('0x24')]['document'][_0x2cca('0x63')][_0x2cca('0x5a')]());for(const {name:_0x301838,data:_0x24d0ab}of _0x22dd1d){const {group:_0x2c6ffa,type:_0x1b6336,id:_0xd8b0ef}=_0x5dd593[_0x2cca('0x4c')](_0x301838);if('suggestion'!=_0x2c6ffa||_0x2cca('0xe')!=_0x1b6336||_0x24d0ab[_0x2cca('0x11')])continue;if(!_0x5dd593[_0x2cca('0x16')](_0xd8b0ef))continue;const _0x143ce8=_0x5dd593['getSuggestion'](_0xd8b0ef)[_0x2cca('0x5e')](),_0x12a607=_0x14ab16[_0x2cca('0x53')][_0x2cca('0x79')](_0x2cca('0x70'))['me'];for(const _0x308051 of _0x5dd593[_0x2cca('0x8f')]()){if(!_0x308051[_0x2cca('0x1d')]||_0x308051['author']!=_0x12a607)continue;if(_0x2cca('0x9c')!=_0x308051['type']||_0x2cca('0x52')!=_0x308051['subType'])continue;if(_0x308051[_0x2cca('0x5e')]()[_0x2cca('0x73')](_0x1e3e6c=>_0x143ce8[_0x2cca('0x55')](_0x2b2a51=>_0x2b2a51[_0x2cca('0x8c')](_0x1e3e6c,!0x0))))for(const _0x3a5dc5 of _0x308051[_0x2cca('0x6a')]())_0x3a5dc5[_0x2cca('0x1d')]&&(_0x3a5dc5[_0x2cca('0x47')](),_0x3e831b=!0x0);}}return _0x3e831b;}),_0x14ab16['model'][_0x2cca('0x7')][_0x2cca('0x6')](_0xbc79c5=>{const _0x26da86=_0x14ab16['commands'][_0x2cca('0x79')]('redo');if(!_0x26da86||!_0x26da86[_0x2cca('0x41')]['has'](_0xbc79c5[_0x2cca('0x76')]))return!0x1;let _0x1c42cc=!0x1;const _0x2cf7c8=_0x14ab16['plugins']['get']('Users')['me'],_0x3c8add=_0x14ab16[_0x2cca('0x24')][_0x2cca('0x7')][_0x2cca('0x63')]['getChanges'](),_0x4b58e5=Array[_0x2cca('0xc')](_0x14ab16[_0x2cca('0x24')][_0x2cca('0x7')]['differ'][_0x2cca('0x5a')]())['filter'](({name:_0x5d288b,data:_0xf0f4e})=>{const {group:_0xe1d5ce,subType:_0x30cd31,authorId:_0x53a167}=_0x5dd593[_0x2cca('0x4c')](_0x5d288b);return _0x2cca('0x8d')==_0xe1d5ce&&_0x2cca('0x37')==_0x30cd31&&_0x53a167==_0x2cf7c8['id']&&!_0xf0f4e[_0x2cca('0x11')];});for(const _0x4c7d56 of _0x3c8add){if(_0x2cca('0x2a')!=_0x4c7d56[_0x2cca('0x31')]||_0x2cca('0x17')!=_0x4c7d56[_0x2cca('0x13')]||0x1!=_0x4c7d56[_0x2cca('0x5c')])continue;const _0xccb815=_0xbc79c5['createRange'](_0x4c7d56['position'],_0x4c7d56[_0x2cca('0x14')]['getShiftedBy'](0x1));if(!_0x4b58e5[_0x2cca('0x1b')](({data:_0x2a7b7d})=>_0x2a7b7d[_0x2cca('0x90')]['isEqual'](_0xccb815)))for(const {name:_0x9cc94a,data:_0x443f67}of _0x4b58e5)if(_0xccb815['containsRange'](_0x443f67[_0x2cca('0x90')])){_0xbc79c5['updateMarker'](_0x9cc94a,{'range':_0xccb815}),_0x1c42cc=!0x0;break;}}return _0x1c42cc;}),_0x14ab16[_0x2cca('0x24')][_0x2cca('0x7')][_0x2cca('0x6')](_0x522923=>{let _0x390736=!0x1;const _0xf95f3e=_0x14ab16[_0x2cca('0x53')][_0x2cca('0x79')]('Users')['me'],_0x285bae=_0x5dd593[_0x2cca('0x8f')]()[_0x2cca('0x22')](_0x4d0d9f=>_0x4d0d9f[_0x2cca('0x1d')]&&_0x4d0d9f[_0x2cca('0x20')]==_0xf95f3e),_0x3f3f8a=new Set(),_0x155b52=new Set();for(const _0x3156fc of _0x285bae)if('tablePaste'==_0x3156fc[_0x2cca('0x87')])for(const _0x53abc5 of _0x3156fc[_0x2cca('0x9')]()){const _0x2bb0a=_0x53abc5[_0x2cca('0x57')]()[_0x2cca('0x49')]();if(_0x2bb0a){if(_0x2bb0a['is'](_0x2cca('0x65'),'tableCellSuggestion')&&ce(_0x2bb0a)){_0x3156fc['removeMarker'](_0x53abc5['name']),_0x3f3f8a[_0x2cca('0x8b')](_0x2bb0a),_0x390736=!0x0;const _0x15e109=_0x2bb0a[_0x2cca('0x2b')],_0x48df0f=_0x2bb0a['previousSibling'],_0x26394c=_0x15e109&&_0x15e109['is'](_0x2cca('0x65'),_0x2cca('0x17')),_0x398df4=_0x48df0f&&_0x48df0f['is']('element','tableCellSuggestion');_0x26394c&&!_0x3f3f8a[_0x2cca('0x3e')](_0x15e109)&&_0x155b52['add'](_0x15e109),_0x398df4&&!_0x3f3f8a['has'](_0x48df0f)&&_0x155b52[_0x2cca('0x8b')](_0x48df0f);}else _0x2bb0a['is']('element',_0x2cca('0x85'))&&_0x2bb0a[_0x2cca('0x4a')]&&(_0x3156fc[_0x2cca('0x9a')](_0x53abc5[_0x2cca('0x13')]),_0x390736=!0x0);}}else{if('tablePasteCell'==_0x3156fc['subType']){if(!_0x3156fc[_0x2cca('0x38')]||!_0x3156fc['attributes'][_0x2cca('0x80')])continue;const _0x534f6e=_0x3156fc['attributes']['markerAttributes'];if(_0x534f6e&&Object[_0x2cca('0x69')](_0x534f6e)[_0x2cca('0x5c')])continue;const _0x4ef22f=_0x3156fc[_0x2cca('0x38')]['tablePasteChainId'];let _0x3e5dfb=!0x0,_0x681467=!0x0;for(const _0x1ac1a6 of _0x285bae)if(_0x1ac1a6[_0x2cca('0x87')]&&_0x1ac1a6['subType']['startsWith'](_0x2cca('0x37'))){if(!_0x1ac1a6[_0x2cca('0x38')][_0x2cca('0x80')]){_0x681467=!0x1;break;}if(_0x1ac1a6['id']!=_0x3156fc['id']&&_0x1ac1a6['attributes'][_0x2cca('0x80')]==_0x4ef22f){_0x3e5dfb=!0x1;break;}}_0x681467&&_0x3e5dfb&&(_0x3156fc[_0x2cca('0x56')](),_0x390736=!0x0);}}for(const _0x402466 of _0x3f3f8a)_0x522923['remove'](_0x402466);for(const _0x2ba257 of _0x155b52)_0x522923[_0x2cca('0x1')](_0x2ba257);return _0x390736;}),_0x14ab16[_0x2cca('0x54')]['for']('editingDowncast')[_0x2cca('0x42')]({'model':_0x2cca('0x5'),'view':(_0x3defbd,_0x2d0ae7)=>_0x5df43d(_0x3defbd),'converterPriority':_0x2cca('0x34')}),_0x14ab16['conversion'][_0x2cca('0x68')](_0x2cca('0x23'))['markerToHighlight']({'model':_0x2cca('0x5'),'view':(_0x464948,_0x138874)=>_0x138874[_0x2cca('0x12')][_0x2cca('0x48')]?_0x5df43d(_0x464948,!0x1):null,'converterPriority':'high'});const _0x2b7f4f=_0x14ab16[_0x2cca('0x7d')][_0x2cca('0x67')];this[_0x2cca('0x92')](_0x2b7f4f[_0x2cca('0x7')],_0x2cca('0x9e'),(_0x4c9418,_0x1a5367)=>{const _0x34b6ad=[];for(const _0x252e0b of _0x2b7f4f[_0x2cca('0x51')](_0x1a5367['content'])['getItems']())_0x252e0b['is'](_0x2cca('0x65'),'suggestion-td')&&_0x34b6ad[_0x2cca('0x71')](_0x252e0b);_0x2b7f4f[_0x2cca('0x78')](_0x314849=>{for(const _0x1bc8f5 of _0x34b6ad)_0x314849[_0x2cca('0x35')](_0x314849[_0x2cca('0x51')](_0x1bc8f5),_0x314849['createPositionBefore'](_0x1bc8f5)),_0x314849[_0x2cca('0x6c')](_0x1bc8f5);});});}}function ce(_0x5245c6){if(_0x5245c6[_0x2cca('0x4a')])return!0x0;const _0x370e17=_0x5245c6['getChild'](0x0);return _0x370e17['is'](_0x2cca('0x65'),_0x2cca('0x85'))&&_0x370e17['isEmpty'];}function fe(_0x267355,_0x1ba51e={},_0x333b7c){for(const {isAnchor:_0x338207,cellHeight:_0x5287e4,cellWidth:_0x20286f}of _0x333b7c[_0x2cca('0x4e')](_0x267355,{'includeAllSlots':!0x0,..._0x1ba51e}))if(!_0x338207||0x1!=_0x5287e4||0x1!=_0x20286f)return!0x1;return!0x0;}
|
|
23
|
+
const _0xf61b=['rows','insert','removeRows','conversion','register','high','tableCellSuggestion','unwrap','rowInsertionRanges','every','getChanges','tablePasteRow','ck-suggestion-marker','markers','_suggestionFactory','elementToElement','TableClipboard','name','paragraph','locale','tableCellPadding','markerToHighlight','has','previous','model','tablePaste','getChangedMarkers','attributes','isEmpty','includes','hasSuggestion','registerPostFixer','insertContent','getColumnIndexes','getSelectionAffectedTableCells','keys','for','containsRange','push','schema','set','createPositionBefore','getItems','registerDescriptionCallback','formatBlock','newRange','_createdBatches','createElement','tableCell','rowInsertionIndexes','ck-suggestion-marker-insertion','filter','tablePasteCell','removeMarkers','createRange','getContainedElement','documentSelection','length','move','_replaceTableSlotCell','first','element','*Replace\x20table\x20cells*','add','_isForcedDefaultExecutionBlock','wrap','tableCellHorizontalAlignment','from','isInContent','tablePasteChainId','redo','accept','row','ck-suggestion-marker--active','join','showSuggestionHighlights','value','getMarkers','markMultiRangeBlockFormat','low','tablePasteColumn','columns','createTableWalker','return','suggestion:formatBlock:tablePasteCell','forceDefaultExecution','listenTo','getRows','suggestionUnloaded','createRangeOn','endColumn','markMultiRangeDeletion','isEqual','view','_descriptionFactory','insertionRanges','nodeAfter','discard','deletion','subType','setAttributes','getAllAdjacentSuggestions','position','markerAttributes','_getCoordsForCells','removeMarker','createRangeIn','findAncestor','columnInsertionIndexes','requires','$graveyard','startsWith','change','getSuggestions','table','fromEntries','dataDowncast','registerCustomCallback','getRange','suggestionLoaded','differ','remove','getRowIndexes','activeMarkers','map','suggestion','Users','clipboardOutput','editor','_splitMarkerName','getChildren','type','find','afterInit','endRow','plugins','insertion','getShiftedBy','document','previousSibling','editing','insertRows','removeColumns','markMultiRangeInsertion','tableCellBorderStyle','end','fill','options','suggestion-td','entries','stop','commands','tableCellBorderColor','get','oldRange','cells','tableCellBackgroundColor','some','getChild'];(function(_0x246c35,_0xf61bfd){const _0x1ef870=function(_0x21b8cb){while(--_0x21b8cb){_0x246c35['push'](_0x246c35['shift']());}};_0x1ef870(++_0xf61bfd);}(_0xf61b,0xfd));const _0x1ef8=function(_0x246c35,_0xf61bfd){_0x246c35=_0x246c35-0x0;let _0x1ef870=_0xf61b[_0x246c35];return _0x1ef870;};import{getTranslation as _0x1b0df3}from'../utils/common-translations';import{Plugin as _0xee9ef}from'ckeditor5/src/core';import{uid as _0xd67029,priorities as _0x14a207}from'ckeditor5/src/utils';import _0x2b175b from'./table';const le=['tableCellBorderWidth',_0x1ef8('0x3a'),_0x1ef8('0x32'),_0x1ef8('0x83'),'tableCellVerticalAlignment',_0x1ef8('0x3e'),_0x1ef8('0x55')],ae=Object[_0x1ef8('0x15')](le['map'](_0x9159a6=>[_0x9159a6,null]));export default class kt extends _0xee9ef{static get[_0x1ef8('0xf')](){return[_0x2b175b];}[_0x1ef8('0x27')](){const _0x534f05=this[_0x1ef8('0x22')];if(!_0x534f05[_0x1ef8('0x29')][_0x1ef8('0x57')](_0x1ef8('0x51')))return;const _0x30fc89=_0x534f05['plugins'][_0x1ef8('0x3b')]('TrackChangesEditing'),_0x44a9a5=_0x534f05[_0x1ef8('0x29')]['get']('TableUtils'),_0x5d3f4d=_0x534f05[_0x1ef8('0x29')]['get'](_0x2b175b),_0x1d3123=_0x534f05['plugins']['get'](_0x1ef8('0x51'));_0x5d3f4d['_tablePostFixingSubtypes']['push'](_0x1ef8('0x4c'),_0x1ef8('0x91')),_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x68')][_0x1ef8('0x45')](_0x1ef8('0x47'),{'allowIn':'tableCell','allowContentOf':_0x1ef8('0x71'),'isLimit':!0x0}),_0x534f05[_0x1ef8('0x44')][_0x1ef8('0x50')]({'model':'tableCellSuggestion','view':_0x1ef8('0x36')});let _0x1da94d=null;_0x534f05['model']['on']('insertContent',(_0x373ab0,_0x1cf446)=>{const [_0x43227e,_0x12607f]=_0x1cf446,_0x3a1b47=_0x1cf446[_0x1cf446[_0x1ef8('0x7a')]-0x1];_0x3a1b47&&_0x3a1b47[_0x1ef8('0x96')]||_0x30fc89[_0x1ef8('0x81')]||this[_0x1ef8('0x22')][_0x1ef8('0x39')][_0x1ef8('0x3b')]('trackChanges')[_0x1ef8('0x8d')]&&function(_0x2b7c9a,_0x4de179,_0x2b5512,_0x2897ce,_0x4702af){if(_0x4de179&&!_0x4de179['is'](_0x1ef8('0x79')))return!0x1;const _0x319fd0=_0x4702af['getTableIfOnlyTableInContent'](_0x2b7c9a,_0x2b5512);if(!_0x319fd0||!fe(_0x319fd0,void 0x0,_0x2897ce))return!0x1;const _0x186c00=_0x2897ce[_0x1ef8('0x63')](_0x2b5512['document']['selection']);if(!_0x186c00[_0x1ef8('0x7a')])return!0x1;const _0x492529=_0x186c00[0x0][_0x1ef8('0xd')](_0x1ef8('0x14')),_0x221d75=_0x2897ce[_0x1ef8('0x1c')](_0x186c00),_0x358dce=_0x2897ce[_0x1ef8('0x62')](_0x186c00),_0x14378a={'startRow':_0x221d75[_0x1ef8('0x7d')],'endRow':_0x221d75['last'],'startColumn':_0x358dce[_0x1ef8('0x7d')],'endColumn':_0x358dce['last']};return 0x1==_0x186c00['length']&&(_0x14378a[_0x1ef8('0x28')]+=_0x2897ce[_0x1ef8('0x98')](_0x319fd0)-0x1,_0x14378a[_0x1ef8('0x9b')]+=_0x2897ce['getColumns'](_0x319fd0)-0x1),fe(_0x492529,_0x14378a,_0x2897ce);}(_0x43227e,_0x12607f,_0x534f05[_0x1ef8('0x59')],_0x44a9a5,_0x1d3123)&&(_0x373ab0[_0x1ef8('0x38')](),_0x1da94d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x12')](()=>{_0x534f05['model'][_0x1ef8('0x61')](_0x1cf446[0x0],_0x1cf446[0x1],_0x1cf446[0x2],{'forceDefaultExecution':!0x0});const _0xf06ff4=_0xd67029(),{rowInsertionRanges:_0x7f4123,columnInsertionRanges:_0x113eed,insertionRanges:_0x407ffc,deletionRanges:_0x201c37,cells:_0x39310c}=_0x1da94d;_0x7f4123[_0x1ef8('0x7a')]&&_0x30fc89[_0x1ef8('0x31')](_0x7f4123,_0x1ef8('0x4c'),{'tablePasteChainId':_0xf06ff4}),_0x113eed[_0x1ef8('0x7a')]&&_0x30fc89['markMultiRangeInsertion'](_0x113eed,_0x1ef8('0x91'),{'tablePasteChainId':_0xf06ff4}),_0x407ffc[_0x1ef8('0x7a')]&&_0x30fc89[_0x1ef8('0x31')](_0x407ffc,_0x1ef8('0x5a'),{'tablePasteChainId':_0xf06ff4,'skipNestingCheck':!0x0}),_0x201c37[_0x1ef8('0x7a')]&&_0x30fc89[_0x1ef8('0x9c')](_0x201c37,_0x1ef8('0x5a'),{'tablePasteChainId':_0xf06ff4,'skipNestingCheck':!0x0});const _0x3a5185=_0x30fc89[_0x1ef8('0x8f')](_0x39310c[_0x1ef8('0x1e')](({element:_0x301c7e})=>_0x301c7e),{'formatGroupId':_0xd67029()},[],_0x1ef8('0x75'),{'tablePasteChainId':_0xf06ff4});if(_0x3a5185){const _0x28b102=_0x3a5185[_0x1ef8('0x8e')](),_0x3c4fb4=[];for(const {element:_0x3bb05f,attributes:_0x2b3c62}of _0x39310c){if(!_0x2b3c62)continue;const _0x37b5f0=_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x9a')](_0x3bb05f),_0x68d44b=_0x28b102[_0x1ef8('0x26')](_0x40082d=>_0x40082d[_0x1ef8('0x18')]()['isEqual'](_0x37b5f0));_0x68d44b&&_0x3c4fb4['push']([_0x68d44b[_0x1ef8('0x52')],_0x2b3c62]);}_0x3c4fb4[_0x1ef8('0x7a')]&&_0x3a5185['setAttribute'](_0x1ef8('0x9'),Object[_0x1ef8('0x15')](_0x3c4fb4));}_0x1da94d=null;}));},{'priority':_0x14a207[_0x1ef8('0x46')]+0xa}),_0x534f05['plugins'][_0x1ef8('0x3b')](_0x1ef8('0x51'))['on'](_0x1ef8('0x7c'),(_0x31f225,_0xc7c30f)=>{const [_0x1fa301,_0x6495ad,,_0x29d1a2]=_0xc7c30f;if(!_0x1da94d)return;_0x31f225[_0x1ef8('0x38')]();const _0x39ce9e=_0x1fa301['cell'],_0x532d9f=_0x6495ad,_0x59c268=ce(_0x39ce9e),_0x4213e2=ce(_0x532d9f);_0x31f225[_0x1ef8('0x94')]=_0x39ce9e;let _0x58057d=null,_0x5b733d=null;if(_0x4213e2||_0x59c268){if(_0x59c268&&!_0x4213e2){_0x29d1a2['remove'](_0x39ce9e[_0x1ef8('0x40')](0x0));for(const _0x340b35 of Array[_0x1ef8('0x84')](_0x532d9f[_0x1ef8('0x24')]()))_0x29d1a2['insert'](_0x340b35,_0x39ce9e,_0x1ef8('0x33'));const _0x59b6dc=_0x1da94d[_0x1ef8('0x72')][_0x1ef8('0x5e')](_0x1fa301[_0x1ef8('0x89')]),_0x248fbd=_0x1da94d[_0x1ef8('0xe')][_0x1ef8('0x5e')](_0x1fa301['column']);_0x59b6dc||_0x248fbd||(_0x58057d=_0x29d1a2[_0x1ef8('0xc')](_0x39ce9e));}else _0x4213e2&&!_0x59c268&&(_0x5b733d=_0x29d1a2[_0x1ef8('0xc')](_0x39ce9e));}else{const _0x21a83d=_0x29d1a2[_0x1ef8('0x70')](_0x1ef8('0x47')),_0x12a066=_0x29d1a2[_0x1ef8('0x70')](_0x1ef8('0x47'));_0x29d1a2[_0x1ef8('0x82')](_0x29d1a2[_0x1ef8('0xc')](_0x39ce9e),_0x12a066),_0x29d1a2[_0x1ef8('0x42')](_0x21a83d,_0x39ce9e,0x0);for(const _0x27e167 of Array[_0x1ef8('0x84')](_0x532d9f[_0x1ef8('0x24')]()))_0x29d1a2[_0x1ef8('0x42')](_0x27e167,_0x21a83d,'end');_0x58057d=_0x29d1a2[_0x1ef8('0x9a')](_0x21a83d),_0x5b733d=_0x29d1a2['createRangeOn'](_0x12a066);}const _0x415401=Array[_0x1ef8('0x84')](_0x532d9f['getAttributes']())[_0x1ef8('0x74')](([_0x2f5c00])=>le['includes'](_0x2f5c00));_0x1da94d[_0x1ef8('0x3d')][_0x1ef8('0x67')]({'element':_0x39ce9e,'attributes':_0x415401['length']?Object[_0x1ef8('0x15')](_0x415401):null}),_0x58057d&&_0x1da94d[_0x1ef8('0x1')][_0x1ef8('0x67')](_0x58057d),_0x5b733d&&_0x1da94d['deletionRanges'][_0x1ef8('0x67')](_0x5b733d);},{'priority':'high'}),_0x44a9a5['on']('insertColumns',(_0x36c114,_0x6630f7)=>{const [_0x86cebf,_0x1df8d5={}]=_0x6630f7;if(!_0x1da94d)return;const _0x3f0f9f=_0x1df8d5['at']||0x0,_0x5ddc44=_0x1df8d5[_0x1ef8('0x92')]||0x1;_0x1da94d[_0x1ef8('0xe')]=new Array(_0x5ddc44)[_0x1ef8('0x34')](_0x3f0f9f)[_0x1ef8('0x1e')]((_0xffb7e2,_0x317a0f)=>_0xffb7e2+_0x317a0f);for(const {cell:_0x5a86e4}of _0x44a9a5[_0x1ef8('0x93')](_0x86cebf,{'startColumn':_0x3f0f9f,'endColumn':_0x3f0f9f+_0x5ddc44-0x1}))_0x1da94d['columnInsertionRanges']['push'](_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x9a')](_0x5a86e4));},{'priority':_0x1ef8('0x90')}),_0x44a9a5['on'](_0x1ef8('0x2f'),(_0x330263,_0x3393d2)=>{const [_0x137def,_0x4e2b7b={}]=_0x3393d2;if(!_0x1da94d)return;const _0x59d86b=_0x4e2b7b['at']||0x0,_0x416499=_0x4e2b7b[_0x1ef8('0x41')]||0x1;_0x1da94d[_0x1ef8('0x72')]=new Array(_0x416499)[_0x1ef8('0x34')](_0x59d86b)['map']((_0x31ef35,_0x280a15)=>_0x31ef35+_0x280a15);for(const {cell:_0x50af48}of _0x44a9a5[_0x1ef8('0x93')](_0x137def,{'startRow':_0x59d86b,'endRow':_0x59d86b+_0x416499-0x1}))_0x1da94d[_0x1ef8('0x49')][_0x1ef8('0x67')](_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x9a')](_0x50af48));},{'priority':'low'}),_0x30fc89[_0x1ef8('0x0')][_0x1ef8('0x6c')](_0x55b8f4=>{if(_0x55b8f4[_0x1ef8('0x5')]&&_0x55b8f4[_0x1ef8('0x5')][_0x1ef8('0x11')](_0x1ef8('0x5a')))return _0x55b8f4[_0x1ef8('0x58')]?{}:{'type':'insertion','content':_0x1b0df3(_0x534f05[_0x1ef8('0x54')],_0x1ef8('0x7f'))};});const _0x25508c=()=>{};for(const _0x526a4d of[_0x1ef8('0x5a'),_0x1ef8('0x91'),_0x1ef8('0x4c'),_0x1ef8('0x75')])_0x30fc89[_0x1ef8('0x4f')][_0x1ef8('0x17')]('insertion',_0x526a4d,_0x1ef8('0x8b'),_0x25508c),_0x30fc89[_0x1ef8('0x4f')]['registerCustomCallback'](_0x1ef8('0x4'),_0x526a4d,_0x1ef8('0x8b'),_0x25508c);_0x30fc89['_suggestionFactory'][_0x1ef8('0x17')]('formatBlock','tablePasteCell','discard',_0x25508c),_0x30fc89[_0x1ef8('0x4f')][_0x1ef8('0x17')](_0x1ef8('0x6d'),_0x1ef8('0x75'),_0x1ef8('0x88'),(_0x21b122,_0x243985,_0x118536)=>{const _0x28b83d=_0x21b122[_0x1ef8('0x1e')](_0x27f229=>_0x27f229['getContainedElement']())[_0x1ef8('0x74')](_0xbbe05b=>_0xbbe05b),_0x5f3df4=new Map(_0x28b83d[_0x1ef8('0x1e')](_0x59d817=>[_0x59d817,null]));if(_0x1da94d)for(const {element:_0x1aa7e8,attributes:_0x5df42f}of _0x1da94d[_0x1ef8('0x3d')])_0x5df42f&&_0x5f3df4[_0x1ef8('0x69')](_0x1aa7e8,_0x5df42f);else{if(_0x118536&&_0x118536['markerAttributes'])for(const [_0x49efbc,_0x796e8f]of Object[_0x1ef8('0x37')](_0x118536[_0x1ef8('0x9')])){const _0x1381a8=_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x4e')][_0x1ef8('0x3b')](_0x49efbc),_0x205e1d=_0x1381a8?_0x1381a8[_0x1ef8('0x18')]()[_0x1ef8('0x78')]():null;_0x205e1d&&_0x5f3df4[_0x1ef8('0x69')](_0x205e1d,_0x796e8f);}}_0x534f05['model'][_0x1ef8('0x12')](_0x458849=>{for(const [_0x3e7846,_0x4c56c7]of _0x5f3df4)_0x458849[_0x1ef8('0x6')]({...ae,..._0x4c56c7},_0x3e7846);});});const _0x4b185b=(_0x53fcd1,_0x5e9497)=>{_0x30fc89['_suggestionFactory'][_0x1ef8('0x17')](_0x53fcd1,_0x1ef8('0x5a'),_0x5e9497,(_0x347bdf,_0x293a85,_0x2d8309)=>{_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x12')](_0x37bcf2=>{const _0x22c185=[];for(const _0x4b69fc of _0x347bdf){const _0x689bb7=_0x4b69fc['start'][_0x1ef8('0x2')];_0x689bb7['is']('element','tableCellSuggestion')&&_0x22c185[_0x1ef8('0x67')](_0x689bb7);}_0x30fc89[_0x1ef8('0x4f')]['getSuggestionCallback'](_0x53fcd1,null,_0x5e9497)(_0x347bdf,_0x293a85,_0x2d8309);for(const _0x11b987 of _0x22c185)_0x1ef8('0x10')!=_0x11b987['root']['rootName']&&_0x37bcf2[_0x1ef8('0x48')](_0x11b987);});});};_0x4b185b(_0x1ef8('0x2a'),_0x1ef8('0x88')),_0x4b185b(_0x1ef8('0x2a'),_0x1ef8('0x3')),_0x4b185b(_0x1ef8('0x4'),_0x1ef8('0x88')),_0x4b185b(_0x1ef8('0x4'),_0x1ef8('0x3')),_0x30fc89[_0x1ef8('0x4f')][_0x1ef8('0x17')]('insertion','tablePasteRow',_0x1ef8('0x3'),_0x4880fa=>{const _0x69f99a=_0x4880fa[_0x1ef8('0x1e')](_0x9e184f=>_0x9e184f[_0x1ef8('0x78')]()),_0x60e47d=_0x69f99a[0x0][_0x1ef8('0xd')](_0x1ef8('0x14')),{minRow:_0x4f0fb6,maxRow:_0x2d0366}=_0x5d3f4d[_0x1ef8('0xa')](_0x69f99a);_0x44a9a5[_0x1ef8('0x43')](_0x60e47d,{'at':_0x4f0fb6,'rows':_0x2d0366-_0x4f0fb6+0x1});}),_0x30fc89['_suggestionFactory'][_0x1ef8('0x17')](_0x1ef8('0x2a'),'tablePasteColumn',_0x1ef8('0x3'),_0x32ef87=>{const _0x12c8ef=_0x32ef87[_0x1ef8('0x1e')](_0x45abc3=>_0x45abc3[_0x1ef8('0x78')]()),_0x5b62b0=_0x12c8ef[0x0]['findAncestor'](_0x1ef8('0x14')),{minColumn:_0x270962,maxColumn:_0x4db155}=_0x5d3f4d['_getCoordsForCells'](_0x12c8ef);_0x44a9a5[_0x1ef8('0x30')](_0x5b62b0,{'at':_0x270962,'columns':_0x4db155-_0x270962+0x1});});const _0x5e64fa=(_0x2be65c,_0x37ca1c)=>{if(!_0x37ca1c[_0x1ef8('0x5')]||!_0x37ca1c[_0x1ef8('0x5')][_0x1ef8('0x11')](_0x1ef8('0x5a')))return;const _0x5e814f=_0x37ca1c[_0x1ef8('0x5c')]['tablePasteChainId'],_0x30052e=_0x30fc89[_0x1ef8('0x13')]()[_0x1ef8('0x74')](_0x42c83f=>_0x42c83f['isInContent']&&_0x42c83f['attributes']&&_0x42c83f[_0x1ef8('0x5c')][_0x1ef8('0x86')]==_0x5e814f);_0x30052e[_0x1ef8('0x7a')]&&_0x37ca1c[_0x1ef8('0x7')]()['length']!=_0x30052e[_0x1ef8('0x7a')]&&_0x30052e['reduce']((_0xe029ff,_0x3ff7dc)=>(_0xe029ff['next']=_0x3ff7dc,_0x3ff7dc['previous']=_0xe029ff,_0x3ff7dc));};function _0x20d24f(_0xf45406,_0x556fd2=!0x0){const {id:_0x361210}=_0x30fc89['_splitMarkerName'](_0xf45406['markerName']),_0x336b08=[_0x1ef8('0x4d'),_0x1ef8('0x73')],_0x390af3=_0x30fc89[_0x1ef8('0x1d')][_0x1ef8('0x5e')](_0xf45406['markerName']);return _0x390af3&&_0x336b08[_0x1ef8('0x67')](_0x1ef8('0x8a')),{'classes':_0x336b08,'attributes':{'data-suggestion':_0x361210},'priority':_0x390af3&&_0x556fd2?0xbc2:0xbb8};}_0x30fc89['on'](_0x1ef8('0x19'),_0x5e64fa,{'priority':_0x1ef8('0x46')}),_0x30fc89['on'](_0x1ef8('0x99'),_0x5e64fa,{'priority':_0x1ef8('0x46')}),_0x534f05[_0x1ef8('0x59')]['document'][_0x1ef8('0x60')](()=>{let _0x5afe58=!0x1;const _0x58009d=Array[_0x1ef8('0x84')](_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x2c')]['differ'][_0x1ef8('0x5b')]());for(const {name:_0x4b2e3d,data:_0x579485}of _0x58009d){const {group:_0x15adc4,type:_0x1b48c9,id:_0x3bae06}=_0x30fc89[_0x1ef8('0x23')](_0x4b2e3d);if(_0x1ef8('0x1f')!=_0x15adc4||'deletion'!=_0x1b48c9||_0x579485['oldRange'])continue;if(!_0x30fc89[_0x1ef8('0x5f')](_0x3bae06))continue;const _0x2e7063=_0x30fc89['getSuggestion'](_0x3bae06)['getRanges'](),_0x3528e4=_0x534f05[_0x1ef8('0x29')]['get'](_0x1ef8('0x20'))['me'];for(const _0x2ffca9 of _0x30fc89['getSuggestions']()){if(!_0x2ffca9[_0x1ef8('0x85')]||_0x2ffca9['author']!=_0x3528e4)continue;if(_0x1ef8('0x6d')!=_0x2ffca9[_0x1ef8('0x25')]||'tablePasteCell'!=_0x2ffca9[_0x1ef8('0x5')])continue;if(_0x2ffca9['getRanges']()[_0x1ef8('0x4a')](_0x15c20a=>_0x2e7063[_0x1ef8('0x3f')](_0x3786db=>_0x3786db[_0x1ef8('0x66')](_0x15c20a,!0x0))))for(const _0x30c268 of _0x2ffca9[_0x1ef8('0x7')]())_0x30c268[_0x1ef8('0x85')]&&(_0x30c268[_0x1ef8('0x3')](),_0x5afe58=!0x0);}}return _0x5afe58;}),_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x2c')]['registerPostFixer'](_0x59eb6a=>{const _0x227c79=_0x534f05[_0x1ef8('0x39')][_0x1ef8('0x3b')](_0x1ef8('0x87'));if(!_0x227c79||!_0x227c79[_0x1ef8('0x6f')]['has'](_0x59eb6a['batch']))return!0x1;let _0x613f44=!0x1;const _0x558963=_0x534f05[_0x1ef8('0x29')][_0x1ef8('0x3b')](_0x1ef8('0x20'))['me'],_0x1d7c6e=_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x2c')][_0x1ef8('0x1a')][_0x1ef8('0x4b')](),_0x21bba0=Array[_0x1ef8('0x84')](_0x534f05[_0x1ef8('0x59')]['document'][_0x1ef8('0x1a')][_0x1ef8('0x5b')]())['filter'](({name:_0x20e60b,data:_0x324af3})=>{const {group:_0x4839d9,subType:_0x529f5d,authorId:_0x216a98}=_0x30fc89[_0x1ef8('0x23')](_0x20e60b);return _0x1ef8('0x1f')==_0x4839d9&&_0x1ef8('0x5a')==_0x529f5d&&_0x216a98==_0x558963['id']&&!_0x324af3[_0x1ef8('0x3c')];});for(const _0x4b4beb of _0x1d7c6e){if(_0x1ef8('0x42')!=_0x4b4beb[_0x1ef8('0x25')]||_0x1ef8('0x47')!=_0x4b4beb[_0x1ef8('0x52')]||0x1!=_0x4b4beb[_0x1ef8('0x7a')])continue;const _0x28a965=_0x59eb6a[_0x1ef8('0x77')](_0x4b4beb[_0x1ef8('0x8')],_0x4b4beb[_0x1ef8('0x8')][_0x1ef8('0x2b')](0x1));if(!_0x21bba0[_0x1ef8('0x26')](({data:_0x52200d})=>_0x52200d['newRange'][_0x1ef8('0x9d')](_0x28a965)))for(const {name:_0x102a92,data:_0x28abfa}of _0x21bba0)if(_0x28a965[_0x1ef8('0x66')](_0x28abfa[_0x1ef8('0x6e')])){_0x59eb6a['updateMarker'](_0x102a92,{'range':_0x28a965}),_0x613f44=!0x0;break;}}return _0x613f44;}),_0x534f05[_0x1ef8('0x59')][_0x1ef8('0x2c')][_0x1ef8('0x60')](_0x2fea74=>{let _0x3114e7=!0x1;const _0x401f60=_0x534f05[_0x1ef8('0x29')][_0x1ef8('0x3b')]('Users')['me'],_0x18d647=_0x30fc89[_0x1ef8('0x13')]()[_0x1ef8('0x74')](_0x4d9ac1=>_0x4d9ac1[_0x1ef8('0x85')]&&_0x4d9ac1['author']==_0x401f60),_0x48fa25=new Set(),_0x23fec7=new Set();for(const _0x31117d of _0x18d647)if(_0x1ef8('0x5a')==_0x31117d[_0x1ef8('0x5')])for(const _0x3f5d5d of _0x31117d[_0x1ef8('0x8e')]()){const _0x223858=_0x3f5d5d[_0x1ef8('0x18')]()[_0x1ef8('0x78')]();if(_0x223858){if(_0x223858['is'](_0x1ef8('0x7e'),_0x1ef8('0x47'))&&ce(_0x223858)){_0x31117d[_0x1ef8('0xb')](_0x3f5d5d[_0x1ef8('0x52')]),_0x48fa25[_0x1ef8('0x80')](_0x223858),_0x3114e7=!0x0;const _0x1bf589=_0x223858['nextSibling'],_0x76f99d=_0x223858[_0x1ef8('0x2d')],_0x5a78b0=_0x1bf589&&_0x1bf589['is'](_0x1ef8('0x7e'),_0x1ef8('0x47')),_0x27e541=_0x76f99d&&_0x76f99d['is']('element',_0x1ef8('0x47'));_0x5a78b0&&!_0x48fa25[_0x1ef8('0x57')](_0x1bf589)&&_0x23fec7[_0x1ef8('0x80')](_0x1bf589),_0x27e541&&!_0x48fa25[_0x1ef8('0x57')](_0x76f99d)&&_0x23fec7[_0x1ef8('0x80')](_0x76f99d);}else _0x223858['is']('element',_0x1ef8('0x53'))&&_0x223858[_0x1ef8('0x5d')]&&(_0x31117d[_0x1ef8('0xb')](_0x3f5d5d['name']),_0x3114e7=!0x0);}}else{if(_0x1ef8('0x75')==_0x31117d[_0x1ef8('0x5')]){if(!_0x31117d[_0x1ef8('0x5c')]||!_0x31117d[_0x1ef8('0x5c')]['tablePasteChainId'])continue;const _0x539812=_0x31117d[_0x1ef8('0x5c')]['markerAttributes'];if(_0x539812&&Object[_0x1ef8('0x64')](_0x539812)[_0x1ef8('0x7a')])continue;const _0x49e050=_0x31117d[_0x1ef8('0x5c')][_0x1ef8('0x86')];let _0x168e59=!0x0,_0x2593b4=!0x0;for(const _0x129132 of _0x18d647)if(_0x129132[_0x1ef8('0x5')]&&_0x129132['subType']['startsWith']('tablePaste')){if(!_0x129132[_0x1ef8('0x5c')][_0x1ef8('0x86')]){_0x2593b4=!0x1;break;}if(_0x129132['id']!=_0x31117d['id']&&_0x129132[_0x1ef8('0x5c')][_0x1ef8('0x86')]==_0x49e050){_0x168e59=!0x1;break;}}_0x2593b4&&_0x168e59&&(_0x31117d[_0x1ef8('0x76')](),_0x3114e7=!0x0);}}for(const _0xad581d of _0x48fa25)_0x2fea74[_0x1ef8('0x1b')](_0xad581d);for(const _0x162bd0 of _0x23fec7)_0x2fea74['unwrap'](_0x162bd0);return _0x3114e7;}),_0x534f05[_0x1ef8('0x44')][_0x1ef8('0x65')]('editingDowncast')[_0x1ef8('0x56')]({'model':_0x1ef8('0x95'),'view':(_0x3c9675,_0x5cef1a)=>_0x20d24f(_0x3c9675),'converterPriority':_0x1ef8('0x46')}),_0x534f05[_0x1ef8('0x44')][_0x1ef8('0x65')](_0x1ef8('0x16'))[_0x1ef8('0x56')]({'model':_0x1ef8('0x95'),'view':(_0x2c1de4,_0x5550fe)=>_0x5550fe[_0x1ef8('0x35')][_0x1ef8('0x8c')]?_0x20d24f(_0x2c1de4,!0x1):null,'converterPriority':_0x1ef8('0x46')});const _0x332c6e=_0x534f05[_0x1ef8('0x2e')][_0x1ef8('0x9e')];this[_0x1ef8('0x97')](_0x332c6e[_0x1ef8('0x2c')],_0x1ef8('0x21'),(_0xf199b,_0x187973)=>{const _0xcd0482=[];for(const _0x509187 of _0x332c6e['createRangeIn'](_0x187973['content'])[_0x1ef8('0x6b')]())_0x509187['is'](_0x1ef8('0x7e'),_0x1ef8('0x36'))&&_0xcd0482[_0x1ef8('0x67')](_0x509187);_0x332c6e[_0x1ef8('0x12')](_0x3e8326=>{for(const _0x3f7a18 of _0xcd0482)_0x3e8326[_0x1ef8('0x7b')](_0x3e8326[_0x1ef8('0xc')](_0x3f7a18),_0x3e8326[_0x1ef8('0x6a')](_0x3f7a18)),_0x3e8326[_0x1ef8('0x1b')](_0x3f7a18);});});}}function ce(_0x2eb61e){if(_0x2eb61e['isEmpty'])return!0x0;const _0x528a56=_0x2eb61e[_0x1ef8('0x40')](0x0);return _0x528a56['is'](_0x1ef8('0x7e'),_0x1ef8('0x53'))&&_0x528a56[_0x1ef8('0x5d')];}function fe(_0x50319c,_0x50a501={},_0x3b1360){for(const {isAnchor:_0x2abd5b,cellHeight:_0x722a4a,cellWidth:_0x5ee67f}of _0x3b1360[_0x1ef8('0x93')](_0x50319c,{'includeAllSlots':!0x0,..._0x50a501}))if(!_0x2abd5b||0x1!=_0x722a4a||0x1!=_0x5ee67f)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25e6=['editor','author','columnWidths','handleResizeTableWidthCommand','_suggestionFactory','getSelectedElement','accept','selection','registerCustomCallback','getTableColumnsWidths','handleSuggestionDescription','getSuggestions','TrackChangesEditing','formatBlock','table','_descriptionFactory','model','has','tableWidth','Users','get','formatGroupId','discard','TableColumnResizeEditing','resizeTable','format','afterInit','plugins','bind','registerDescriptionCallback','enableCommand','document','commandParams','resizeColumnWidths','resizeTableWidth','getContainedElement','subType','getSuggestionCallback'];(function(_0x26f049,_0x25e672){const _0x5d1edd=function(_0x1c274e){while(--_0x1c274e){_0x26f049['push'](_0x26f049['shift']());}};_0x5d1edd(++_0x25e672);}(_0x25e6,0x107));const _0x5d1e=function(_0x26f049,_0x25e672){_0x26f049=_0x26f049-0x0;let _0x5d1edd=_0x25e6[_0x26f049];return _0x5d1edd;};import{Plugin as _0x40ac2b}from'ckeditor5/src/core';import{getTranslation as _0x58a740}from'../utils/common-translations';export default class wt extends _0x40ac2b{[_0x5d1e('0x1d')](){if(!this[_0x5d1e('0x3')]['plugins'][_0x5d1e('0x14')]('TableColumnResizeEditing'))return;const _0x3d9bda=this['editor'][_0x5d1e('0x1e')][_0x5d1e('0x17')](_0x5d1e('0xf'));_0x3d9bda[_0x5d1e('0x21')](_0x5d1e('0x25'),this[_0x5d1e('0x6')][_0x5d1e('0x1f')](this)),_0x3d9bda[_0x5d1e('0x21')](_0x5d1e('0x24'),this['handleResizeTableWidthCommand'][_0x5d1e('0x1f')](this)),_0x3d9bda[_0x5d1e('0x7')][_0x5d1e('0xb')](_0x5d1e('0x10'),_0x5d1e('0x1b'),_0x5d1e('0x9'),_0x3d9bda[_0x5d1e('0x7')]['getSuggestionCallback'](_0x5d1e('0x10'),null,_0x5d1e('0x19'))),_0x3d9bda[_0x5d1e('0x7')]['registerCustomCallback'](_0x5d1e('0x10'),_0x5d1e('0x1b'),_0x5d1e('0x19'),_0x3d9bda[_0x5d1e('0x7')][_0x5d1e('0x2')](_0x5d1e('0x10'),null,_0x5d1e('0x9'))),_0x3d9bda[_0x5d1e('0x12')][_0x5d1e('0x20')](this[_0x5d1e('0xd')]['bind'](this));}['handleResizeTableWidthCommand'](_0x2c8439,_0x256a4b){const _0x14312d=this[_0x5d1e('0x3')][_0x5d1e('0x1e')][_0x5d1e('0x17')](_0x5d1e('0xf')),_0x2c1bc9=this[_0x5d1e('0x3')]['plugins'][_0x5d1e('0x17')](_0x5d1e('0x1a')),_0x1c053d=_0x256a4b[_0x5d1e('0x11')]||this[_0x5d1e('0x3')][_0x5d1e('0x13')][_0x5d1e('0x22')][_0x5d1e('0xa')][_0x5d1e('0x8')]();this[_0x5d1e('0x3')][_0x5d1e('0x13')]['change'](()=>{const _0x4c9c9c=_0x2c1bc9['getColumnGroupElement'](_0x1c053d);let _0x38da80=_0x4c9c9c?_0x2c1bc9[_0x5d1e('0xc')](_0x4c9c9c):null,_0x43b5d3=_0x1c053d['getAttribute'](_0x5d1e('0x15'))||null;const _0x3d4b59=_0x256a4b[_0x5d1e('0x15')]||_0x43b5d3,_0x194ce6=_0x256a4b[_0x5d1e('0x5')]||_0x38da80,_0x2ef297=this[_0x5d1e('0x3')][_0x5d1e('0x1e')][_0x5d1e('0x17')](_0x5d1e('0x16'))['me'];for(const _0x3aa3b9 of _0x14312d[_0x5d1e('0xe')]()){const _0x3eb558=_0x3aa3b9[_0x5d1e('0x0')]();if(_0x5d1e('0x1b')===_0x3aa3b9[_0x5d1e('0x1')]&&_0x3eb558===_0x1c053d){_0x3aa3b9[_0x5d1e('0x4')]!==_0x2ef297&&_0x3aa3b9['discard']();const _0x4c0407=_0x3aa3b9['data'][_0x5d1e('0x23')];_0x43b5d3=_0x4c0407[0x0][_0x5d1e('0x15')],_0x38da80=_0x4c0407[0x0][_0x5d1e('0x5')];break;}}_0x2c8439({'table':_0x1c053d,'tableWidth':_0x3d4b59,'columnWidths':_0x194ce6}),_0x14312d['markBlockFormat'](_0x1c053d,{'commandName':_0x5d1e('0x25'),'commandParams':[{'tableWidth':_0x43b5d3,'columnWidths':_0x38da80}],'formatGroupId':'resizeTable'},[],_0x5d1e('0x1b'));});}['handleSuggestionDescription'](_0xabd562){const {data:_0x3b394c}=_0xabd562;if(_0x3b394c&&'resizeTable'===_0x3b394c[_0x5d1e('0x18')]){const _0x3b220e='*Format:*\x20resize\x20table';return{'type':_0x5d1e('0x1c'),'content':_0x58a740(this[_0x5d1e('0x3')]['locale'],_0x3b220e)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5257=['getCellLocation','FORMAT_HEADER_COLUMN','table','forceValue','first','_suggestionFactory','_acceptFormatSuggestionCallbackFactory','createPositionBefore','highest','getAttribute','toViewElement','writer','data','TrackChangesEditing','getSelectionAffectedTableCells','createPositionAfter','removeMarker:suggestion','format','formatBlock','includes','ck-suggestion-marker-','showSuggestionHighlights','headingRows','findAncestor','options','setTableRowHeader','getSuggestion','nodeBefore','getRowIndexes','FORMAT_HEADER_ROW','commandName','markBlockFormat','has','requires','from','FORMAT_REGULAR_ROW','enableCommand','locale','ck-suggestion-marker--active','start','cell','removeAttribute','*Format:*\x20%0','end','change','value','markerName','accept','_splitMarkerName','afterInit','bindElementToMarker','createTableWalker','TableUtils','model','index','mapper','setAttribute','createRange','_descriptionFactory','get','selection','commands','editing','getChild','parent','last','childCount','FORMAT_REGULAR_COLUMN','markerRange','plugins','addClass','markerNameToElements','registerCustomCallback','commandParams','document','removeClass','downcastDispatcher','addMarker:suggestion','setTableColumnHeader','item'];(function(_0x29fd52,_0x525778){const _0x13bb11=function(_0x5c59f5){while(--_0x5c59f5){_0x29fd52['push'](_0x29fd52['shift']());}};_0x13bb11(++_0x525778);}(_0x5257,0x114));const _0x13bb=function(_0x29fd52,_0x525778){_0x29fd52=_0x29fd52-0x0;let _0x13bb11=_0x5257[_0x29fd52];return _0x13bb11;};import{Plugin as _0x159f1c}from'ckeditor5/src/core';import _0xf559b7 from'./table';import{getTranslation as _0x5527f0}from'../utils/common-translations';export default class pt extends _0x159f1c{static get[_0x13bb('0x4d')](){return[_0xf559b7];}[_0x13bb('0xd')](){const _0xc4b456=this['editor'];if(!_0xc4b456[_0x13bb('0x21')][_0x13bb('0x4c')]('TableEditing'))return;const _0x2bfe8f=_0xc4b456[_0x13bb('0x1')],_0x2347e0=_0xc4b456[_0x13bb('0x21')][_0x13bb('0x17')](_0x13bb('0x39')),_0x5dcce6=_0xc4b456[_0x13bb('0x21')]['get'](_0x13bb('0x10')),_0x5d83bc=_0xc4b456[_0x13bb('0x21')]['get'](_0xf559b7);function _0x165a02({showActiveMarker:_0x79aad1=!0x0,setDataAttribute:_0x1d7486=!0x0}={}){return(_0x5050fb,_0x17056f,_0x4b8002)=>{const {type:_0x4b9754,id:_0x5a968a}=_0x2347e0[_0x13bb('0xc')](_0x17056f[_0x13bb('0xa')]),_0x57b6ee=_0x2347e0['getSuggestion'](_0x5a968a);if(!_0x57b6ee['data']||'setTableColumnHeader'!=_0x57b6ee[_0x13bb('0x38')][_0x13bb('0x4a')])return;if(_0x17056f[_0x13bb('0x2b')])return void _0x5050fb['stop']();if(!_0x4b8002['consumable']['consume'](_0x17056f[_0x13bb('0x20')],_0x5050fb['name']))return;const _0x312557=_0x17056f[_0x13bb('0x20')][_0x13bb('0x3')]['nodeAfter'],_0x464874=_0x17056f[_0x13bb('0x20')][_0x13bb('0x7')][_0x13bb('0x47')],_0x367db3=_0x312557['parent'][_0x13bb('0x1c')],{column:_0x495344}=_0x5dcce6[_0x13bb('0x2c')](_0x312557),{column:_0x246d6d}=_0x5dcce6[_0x13bb('0x2c')](_0x464874);for(let _0x5b08d1=_0x495344;_0x5b08d1<=_0x246d6d;_0x5b08d1++){const _0x174804=_0x5dcce6[_0x13bb('0xf')](_0x367db3,{'column':_0x5b08d1,'includeAllSlots':!0x1});for(const _0x6b764e of _0x174804){const _0x74be4e=_0x6b764e['cell'],_0x4dd8be=_0x4b8002[_0x13bb('0x13')][_0x13bb('0x36')](_0x74be4e);_0x4b8002[_0x13bb('0x37')][_0x13bb('0x22')](_0x13bb('0x40')+_0x4b9754,_0x4dd8be),_0x1d7486&&_0x4b8002['writer'][_0x13bb('0x14')]('data-suggestion',_0x5a968a,_0x4dd8be),_0x4b8002['mapper'][_0x13bb('0xe')](_0x4dd8be,_0x17056f[_0x13bb('0xa')]),_0x79aad1&&(_0x2347e0['activeMarkers'][_0x13bb('0x3f')](_0x17056f[_0x13bb('0xa')])?_0x4b8002[_0x13bb('0x37')][_0x13bb('0x22')](_0x13bb('0x2'),_0x4dd8be):_0x4b8002[_0x13bb('0x37')][_0x13bb('0x27')](_0x13bb('0x2'),_0x4dd8be));}}};}_0x2347e0[_0x13bb('0x0')](_0x13bb('0x45'),(_0x33065f,_0x528629)=>{const _0x2054c7=_0x5dcce6['getSelectionAffectedTableCells'](_0xc4b456['model'][_0x13bb('0x26')][_0x13bb('0x18')]),_0x4b9ebd=_0x5dcce6[_0x13bb('0x48')](_0x2054c7),_0x23d7d0=_0x2054c7[0x0][_0x13bb('0x43')](_0x13bb('0x2e')),_0x85e55d=_0x23d7d0[_0x13bb('0x35')](_0x13bb('0x42'))||0x0,_0x4cc074=_0x528629&&null!==_0x528629['forceValue']?_0x528629[_0x13bb('0x2f')]:!_0xc4b456[_0x13bb('0x19')]['get'](_0x13bb('0x45'))[_0x13bb('0x9')],_0x1ae212=_0x4cc074?_0x4b9ebd[_0x13bb('0x1d')]:_0x4b9ebd[_0x13bb('0x30')],_0x50ea68=_0x23d7d0[_0x13bb('0x1b')](_0x1ae212);let _0x49bbe5;if(_0x4cc074){const _0x4e4b3e=_0x23d7d0[_0x13bb('0x1b')](_0x85e55d);if(_0x50ea68[_0x13bb('0x12')]<_0x4e4b3e[_0x13bb('0x12')])return;_0x49bbe5=_0xc4b456[_0x13bb('0x11')][_0x13bb('0x15')](_0xc4b456['model'][_0x13bb('0x33')](_0x4e4b3e[_0x13bb('0x1b')](0x0)),_0xc4b456[_0x13bb('0x11')][_0x13bb('0x3b')](_0x50ea68[_0x13bb('0x1b')](_0x50ea68[_0x13bb('0x1e')]-0x1)));}else{const _0x359a90=_0x23d7d0[_0x13bb('0x1b')](_0x85e55d-0x1);if(!_0x359a90)return;_0x49bbe5=_0xc4b456[_0x13bb('0x11')][_0x13bb('0x15')](_0xc4b456['model'][_0x13bb('0x33')](_0x50ea68[_0x13bb('0x1b')](0x0)),_0xc4b456[_0x13bb('0x11')]['createPositionAfter'](_0x359a90[_0x13bb('0x1b')](_0x359a90[_0x13bb('0x1e')]-0x1)));}_0xc4b456['model'][_0x13bb('0x8')](()=>{_0x2347e0[_0x13bb('0x4b')](_0x49bbe5,{'commandName':_0x13bb('0x45'),'commandParams':[{'forceValue':_0x4cc074}]},[],_0x13bb('0x45'));});}),_0x2347e0[_0x13bb('0x0')]('setTableColumnHeader',(_0x4d2d03,_0x11b532)=>{const _0x40f4d4=_0xc4b456[_0x13bb('0x21')]['get'](_0x13bb('0x10')),_0x23b494=_0x40f4d4[_0x13bb('0x3a')](_0xc4b456['model']['document'][_0x13bb('0x18')]),_0x17e52c=_0x40f4d4['getColumnIndexes'](_0x23b494),_0x1242ce=_0x23b494[0x0][_0x13bb('0x43')](_0x13bb('0x2e')),_0x275a0c=_0x1242ce['getAttribute']('headingColumns')||0x0,_0xa1475e=_0x11b532&&null!==_0x11b532['forceValue']?_0x11b532[_0x13bb('0x2f')]:!_0xc4b456[_0x13bb('0x19')]['get'](_0x13bb('0x2a'))[_0x13bb('0x9')];let _0x1434fb;const _0x2930a5=_0x1242ce['getChild'](0x0),_0x236e8e=_0xa1475e?_0x17e52c[_0x13bb('0x1d')]:_0x17e52c[_0x13bb('0x30')],_0x42959f=_0x40f4d4[_0x13bb('0xf')](_0x1242ce,{'startRow':0x0,'column':_0x236e8e,'includeAllSlots':!0x1}),_0x33ee82=Array[_0x13bb('0x4e')](_0x42959f)[0x0][_0x13bb('0x4')];if(_0xa1475e){const _0x3555a9=_0x2930a5[_0x13bb('0x1b')](_0x275a0c);if(_0x33ee82['isBefore'](_0x3555a9))return;_0x1434fb=_0xc4b456[_0x13bb('0x11')][_0x13bb('0x15')](_0xc4b456['model'][_0x13bb('0x33')](_0x3555a9),_0xc4b456[_0x13bb('0x11')][_0x13bb('0x3b')](_0x33ee82));}else{const _0x3d188b=_0x2930a5[_0x13bb('0x1b')](_0x275a0c-0x1);if(!_0x3d188b)return;_0x1434fb=_0xc4b456[_0x13bb('0x11')][_0x13bb('0x15')](_0xc4b456[_0x13bb('0x11')][_0x13bb('0x33')](_0x33ee82),_0xc4b456[_0x13bb('0x11')]['createPositionAfter'](_0x3d188b));}_0xc4b456[_0x13bb('0x11')][_0x13bb('0x8')](()=>{_0x2347e0['markBlockFormat'](_0x1434fb,{'commandName':_0x13bb('0x2a'),'commandParams':[{'forceValue':_0xa1475e}]},[],'setTableColumnHeader');});}),_0xc4b456[_0x13bb('0x1a')][_0x13bb('0x28')]['on'](_0x13bb('0x29'),_0x165a02(),{'priority':_0x13bb('0x34')}),_0xc4b456[_0x13bb('0x38')]['downcastDispatcher']['on'](_0x13bb('0x29'),(_0x2c84d0,_0xa1869b,_0x248022)=>{_0x248022[_0x13bb('0x44')][_0x13bb('0x41')]&&_0x165a02({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2c84d0,_0xa1869b,_0x248022);},{'priority':'highest'}),_0xc4b456[_0x13bb('0x1a')][_0x13bb('0x28')]['on'](_0x13bb('0x3c'),(_0x26eba4,_0x43f554,_0x16de57)=>{const {type:_0x1b9514,id:_0x5108a}=_0x2347e0[_0x13bb('0xc')](_0x43f554[_0x13bb('0xa')]),_0x3002ae=_0x2347e0[_0x13bb('0x46')](_0x5108a);if(!_0x3002ae[_0x13bb('0x38')]||'setTableColumnHeader'!=_0x3002ae[_0x13bb('0x38')]['commandName'])return;const _0x23c0ee=_0x16de57[_0x13bb('0x13')][_0x13bb('0x23')](_0x43f554[_0x13bb('0xa')]);if(_0x23c0ee)for(const _0x325ffe of _0x23c0ee)_0x16de57['writer']['removeClass'](_0x13bb('0x40')+_0x1b9514,_0x325ffe),_0x16de57['writer'][_0x13bb('0x27')]('ck-suggestion-marker--active',_0x325ffe),_0x16de57[_0x13bb('0x37')][_0x13bb('0x5')]('data-suggestion',_0x325ffe),_0x16de57['mapper']['unbindElementFromMarkerName'](_0x325ffe,_0x43f554[_0x13bb('0xa')]);},{'priority':_0x13bb('0x34')}),_0x2347e0[_0x13bb('0x16')]['registerDescriptionCallback'](_0x10f43d=>{const {data:_0x1e7d3e}=_0x10f43d;if(_0x1e7d3e){if('setTableRowHeader'==_0x1e7d3e[_0x13bb('0x4a')]){const _0x3a4d80=_0x1e7d3e[_0x13bb('0x25')][0x0][_0x13bb('0x2f')];return _0x11874a(_0x5527f0(_0x2bfe8f,_0x3a4d80?_0x13bb('0x49'):_0x13bb('0x4f')));}if(_0x13bb('0x2a')==_0x1e7d3e[_0x13bb('0x4a')]){const _0x3ddd9f=_0x1e7d3e[_0x13bb('0x25')][0x0][_0x13bb('0x2f')];return _0x11874a(_0x5527f0(_0x2bfe8f,_0x3ddd9f?_0x13bb('0x2d'):_0x13bb('0x1f')));}}function _0x11874a(_0x2d9683){return{'type':_0x13bb('0x3d'),'content':_0x5527f0(_0x2bfe8f,_0x13bb('0x6'),_0x2d9683)};}});const _0x2f6b98=_0x5d83bc[_0x13bb('0x32')]();_0x2347e0[_0x13bb('0x31')][_0x13bb('0x24')](_0x13bb('0x3e'),_0x13bb('0x45'),_0x13bb('0xb'),_0x2f6b98),_0x2347e0[_0x13bb('0x31')]['registerCustomCallback'](_0x13bb('0x3e'),_0x13bb('0x2a'),'accept',_0x2f6b98);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c67=['mergeTableCellLeft','type','model','add','getRanges','commands','change','formatBlock','locale','set:isEnabled','has','author','setSelection','low','map','format','$graveyard','element','rootName','deletion','document','enableCommand','createRangeOn','TrackChangesEditing','mergeTableCellDown','_isForcedDefaultExecutionBlock','length','_descriptionFactory','mergeTableCells','_suggestionFactory','TableEditing','root','get','afterInit','mergeTableCellRight','cell','table','find','direction','insertion','registerCustomCallback','registerDescriptionCallback','value','splitTableCellVertically','return','from','execute','TableUtils','requires','*Split\x20cell:*\x20horizontally','isEnabled','getFirstPosition','fromRange','isInContent','getSelectionAffectedTableCells','refresh','accept','editor','commandName','trackChanges','tableCell','stop','containsRange','mergeTableCellUp','filter','_acceptFormatSuggestionCallbackFactory','splitTableCellHorizontally','horizontally','size','_areMergableCells','plugins','forceDefaultExecution','_tablePostFixingSubtypes','_areSelectedCellsMergable','markMultiRangeBlockFormat','push','*Merge\x20cells*','getAncestors','selection','createTableWalker'];(function(_0x4749fe,_0x3c67c3){const _0x55b445=function(_0x589348){while(--_0x589348){_0x4749fe['push'](_0x4749fe['shift']());}};_0x55b445(++_0x3c67c3);}(_0x3c67,0x18f));const _0x55b4=function(_0x4749fe,_0x3c67c3){_0x4749fe=_0x4749fe-0x0;let _0x55b445=_0x3c67[_0x4749fe];return _0x55b445;};import{Plugin as _0x43b779}from'ckeditor5/src/core';import _0x169e88 from'./table';import{LiveRange as _0x4ba47f}from'ckeditor5/src/engine';import{getTranslation as _0xfe9362}from'../utils/common-translations';export default class dt extends _0x43b779{static get[_0x55b4('0x31')](){return[_0x169e88];}[_0x55b4('0x22')](){const _0x2632f6=this[_0x55b4('0x3a')],_0x165447=_0x2632f6['model'][_0x55b4('0x15')]['selection'],_0x55ef19=_0x2632f6[_0x55b4('0x9')];if(!_0x2632f6['plugins'][_0x55b4('0xb')](_0x55b4('0x1f')))return;const _0x207ae8=_0x2632f6['plugins']['get']('TrackChangesEditing'),_0x528089=_0x2632f6[_0x55b4('0x47')][_0x55b4('0x21')](_0x55b4('0x30')),_0x326827=_0x2632f6['plugins']['get'](_0x169e88);_0x326827[_0x55b4('0x49')][_0x55b4('0x4c')]('mergeTableCells'),_0x207ae8['enableCommand'](_0x55b4('0x1d'),()=>{const _0x244684=_0x528089[_0x55b4('0x37')](_0x2632f6[_0x55b4('0x3')][_0x55b4('0x15')]['selection']);_0x2632f6[_0x55b4('0x3')][_0x55b4('0x7')](()=>{_0x207ae8[_0x55b4('0x4b')](_0x244684,{'commandName':_0x55b4('0x1d'),'commandParams':[]},[],_0x55b4('0x1d'));});}),_0x2632f6['commands'][_0x55b4('0x21')]('mergeTableCells')['on'](_0x55b4('0x2f'),(_0x5423c4,_0x5b2664)=>{_0x2632f6[_0x55b4('0x6')]['get'](_0x55b4('0x3c'))[_0x55b4('0x2b')]&&(_0x5b2664[_0x55b4('0x1b')]>0x0&&_0x5b2664[_0x5b2664['length']-0x1]&&_0x5b2664[_0x5b2664[_0x55b4('0x1b')]-0x1][_0x55b4('0x48')]||_0x207ae8[_0x55b4('0x1a')]||this[_0x55b4('0x4a')]()||_0x5423c4[_0x55b4('0x3e')]());},{'priority':'highest'});for(const _0x495e5f of[_0x55b4('0x40'),_0x55b4('0x23'),_0x55b4('0x19'),'mergeTableCellLeft']){const _0x4e6212=_0x2632f6[_0x55b4('0x6')][_0x55b4('0x21')](_0x495e5f);_0x207ae8[_0x55b4('0x16')](_0x495e5f,()=>{const _0x3723d7=_0x2632f6[_0x55b4('0x3')][_0x55b4('0x15')][_0x55b4('0x4f')][_0x55b4('0x34')]()[_0x55b4('0x4e')]()[_0x55b4('0x26')](_0x7f9806=>_0x7f9806['is'](_0x55b4('0x12'),_0x55b4('0x3d'))),_0x38ff57=_0x4e6212[_0x55b4('0x2b')];_0x2632f6[_0x55b4('0x3')][_0x55b4('0x7')](()=>{_0x207ae8['markMultiRangeBlockFormat']([_0x3723d7,_0x38ff57],{'commandName':'mergeTableCells','commandParams':[]},[],_0x55b4('0x1d'));});});}for(const _0x5beb9e of[_0x55b4('0x2c'),_0x55b4('0x43')]){const _0x265541=_0x2632f6[_0x55b4('0x6')][_0x55b4('0x21')](_0x5beb9e);_0x207ae8['enableCommand'](_0x5beb9e,()=>{const _0x563f04=_0x528089[_0x55b4('0x37')](_0x2632f6[_0x55b4('0x3')][_0x55b4('0x15')]['selection'])[0x0],_0xe47732=_0x563f04['findAncestor'](_0x55b4('0x25')),{column:_0x506923,row:_0x516648}=_0x528089['getCellLocation'](_0x563f04);let _0x493bd9=[];if(_0x55b4('0x44')==_0x265541[_0x55b4('0x27')]){const _0x55b6da=_0x528089[_0x55b4('0x0')](_0xe47732,{'startRow':_0x516648,'endRow':_0x516648,'includeAllSlots':!0x0});_0x493bd9=Array[_0x55b4('0x2e')](_0x55b6da)[_0x55b4('0xf')](_0x3f090a=>_0x3f090a[_0x55b4('0x24')]);}else{const _0x397d20=_0x528089[_0x55b4('0x0')](_0xe47732,{'column':_0x506923,'includeAllSlots':!0x0});_0x493bd9=Array[_0x55b4('0x2e')](_0x397d20)[_0x55b4('0xf')](_0xd8f970=>_0xd8f970[_0x55b4('0x24')]);}_0x2632f6['model'][_0x55b4('0x7')](_0x512f27=>{_0x207ae8['markBlockFormat'](_0x512f27[_0x55b4('0x17')](_0x563f04),{'commandName':_0x5beb9e,'commandParams':[]},_0x493bd9,_0x5beb9e);});});}_0x207ae8[_0x55b4('0x1c')][_0x55b4('0x2a')](_0x21e9f9=>{const {data:_0x1497ef}=_0x21e9f9;if(_0x1497ef)return _0x55b4('0x1d')==_0x1497ef[_0x55b4('0x3b')]?{'type':_0x55b4('0x10'),'content':_0xfe9362(_0x55ef19,_0x55b4('0x4d'))}:void 0x0;}),_0x207ae8['_descriptionFactory'][_0x55b4('0x2a')](_0x231379=>{const {data:_0x17f19d}=_0x231379;if(_0x17f19d)return'splitTableCellVertically'==_0x17f19d[_0x55b4('0x3b')]?{'type':_0x55b4('0x10'),'content':_0xfe9362(_0x55ef19,'*Split\x20cell:*\x20vertically')}:_0x55b4('0x43')==_0x17f19d[_0x55b4('0x3b')]?{'type':_0x55b4('0x10'),'content':_0xfe9362(_0x55ef19,_0x55b4('0x32'))}:void 0x0;});const _0x2abfd3=_0x326827[_0x55b4('0x42')]();for(const _0xc02afb of[_0x55b4('0x40'),_0x55b4('0x23'),'mergeTableCellDown',_0x55b4('0x1')])_0x207ae8[_0x55b4('0x1e')][_0x55b4('0x29')](_0x55b4('0x8'),_0xc02afb,_0x55b4('0x39'),_0x2abfd3);for(const _0x584ea6 of[_0x55b4('0x2c'),_0x55b4('0x43')])_0x207ae8['_suggestionFactory']['registerCustomCallback'](_0x55b4('0x8'),_0x584ea6,_0x55b4('0x39'),_0x2abfd3);_0x207ae8[_0x55b4('0x1e')][_0x55b4('0x29')]('formatBlock',_0x55b4('0x1d'),_0x55b4('0x39'),_0x24b3d4=>{_0x2632f6[_0x55b4('0x3')][_0x55b4('0x7')](_0x1dd6f1=>{const _0x52c1f5=Array[_0x55b4('0x2e')](_0x165447['getRanges']())[_0x55b4('0xf')](_0x480d34=>_0x4ba47f[_0x55b4('0x35')](_0x480d34));_0x1dd6f1[_0x55b4('0xd')](_0x24b3d4),_0x2632f6[_0x55b4('0x6')][_0x55b4('0x21')](_0x55b4('0x1d'))[_0x55b4('0x38')](),_0x2632f6[_0x55b4('0x2f')](_0x55b4('0x1d'),{'forceDefaultExecution':!0x0});const _0x3f28fb=_0x52c1f5[_0x55b4('0x41')](_0xd5e4dc=>_0x55b4('0x11')!=_0xd5e4dc[_0x55b4('0x20')][_0x55b4('0x13')]);_0x3f28fb['length']>0x0&&_0x1dd6f1['setSelection'](_0x3f28fb);for(const _0x15b70c of _0x52c1f5)_0x15b70c['detach']();});});for(const _0x7f9f42 of['mergeTableCellUp',_0x55b4('0x19'),_0x55b4('0x1'),_0x55b4('0x23')]){const _0x5f33d5=_0x2632f6[_0x55b4('0x6')]['get'](_0x7f9f42);_0x5f33d5['on'](_0x55b4('0xa'),(_0x2b1a28,_0x1319df,_0x7c8718)=>{if(_0x7c8718){const _0x206001=_0x2632f6[_0x55b4('0x3')]['document'][_0x55b4('0x4f')]['getFirstPosition']()[_0x55b4('0x4e')]()[_0x55b4('0x26')](_0x3d7939=>_0x3d7939['is'](_0x55b4('0x12'),'tableCell'));this[_0x55b4('0x46')](_0x5f33d5[_0x55b4('0x2b')],_0x206001)||(_0x2b1a28[_0x55b4('0x2d')]=!0x1,_0x2b1a28[_0x55b4('0x3e')]());}},{'priority':_0x55b4('0xe')});}}[_0x55b4('0x4a')](){const _0xbbaf83=this[_0x55b4('0x3a')][_0x55b4('0x6')][_0x55b4('0x21')](_0x55b4('0x1d')),_0xe4df0d=this[_0x55b4('0x3a')][_0x55b4('0x47')][_0x55b4('0x21')](_0x55b4('0x30'));if(!_0xbbaf83[_0x55b4('0x33')])return!0x1;const _0x2913ee=_0xe4df0d[_0x55b4('0x37')](this[_0x55b4('0x3a')][_0x55b4('0x3')][_0x55b4('0x15')][_0x55b4('0x4f')]);for(const _0x1e9903 of _0x2913ee)for(const _0x255863 of _0x2913ee)if(_0x1e9903!=_0x255863&&!this[_0x55b4('0x46')](_0x1e9903,_0x255863))return!0x1;return!0x0;}[_0x55b4('0x46')](_0x144011,_0x2934b4){const _0x431fd1=this[_0x55b4('0x3a')][_0x55b4('0x47')][_0x55b4('0x21')](_0x55b4('0x18')),_0xb9c5a=this[_0x55b4('0x3a')]['model'][_0x55b4('0x17')](_0x144011),_0x936066=this['editor'][_0x55b4('0x3')][_0x55b4('0x17')](_0x2934b4),_0x1260de=new Set(),_0x1b1c84=new Set();for(const _0x5ba1a7 of _0x431fd1['getSuggestions']())if((_0x55b4('0x28')==_0x5ba1a7[_0x55b4('0x2')]||_0x55b4('0x14')==_0x5ba1a7[_0x55b4('0x2')]||'mergeTableCells'==_0x5ba1a7['subType'])&&_0x5ba1a7[_0x55b4('0x36')])for(const _0x7d6576 of _0x5ba1a7[_0x55b4('0x5')]())_0x7d6576['containsRange'](_0xb9c5a,!0x0)&&_0x1260de[_0x55b4('0x4')](_0x5ba1a7[_0x55b4('0x2')]+':'+_0x5ba1a7[_0x55b4('0xc')]['id']),_0x7d6576[_0x55b4('0x3f')](_0x936066,!0x0)&&_0x1b1c84[_0x55b4('0x4')](_0x5ba1a7['type']+':'+_0x5ba1a7[_0x55b4('0xc')]['id']);if(_0x1260de[_0x55b4('0x45')]!=_0x1b1c84['size'])return!0x1;for(const _0x52bd11 of _0x1260de)if(!_0x1b1c84['has'](_0x52bd11))return!0x1;return!0x0;}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module track-changes/integrations/tableofcontents
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
+
/**
|
|
6
|
+
* Provides track changes plugin integration for the Table of contents feature.
|
|
7
|
+
*/
|
|
8
|
+
export default class TrackChangesTableOfContents extends Plugin {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
afterInit(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x16db=['afterInit','_descriptionFactory','enableCommand','commands','ELEMENT_TABLE_OF_CONTENTS','get','tableOfContents','plugins','registerElementLabel','TrackChangesEditing','insertTableOfContents'];(function(_0x161288,_0x16db5e){const _0xd5516d=function(_0x6d14f6){while(--_0x6d14f6){_0x161288['push'](_0x161288['shift']());}};_0xd5516d(++_0x16db5e);}(_0x16db,0xc0));const _0xd551=function(_0x161288,_0x16db5e){_0x161288=_0x161288-0x0;let _0xd5516d=_0x16db[_0x161288];return _0xd5516d;};import{Plugin as _0x3e8d84}from'ckeditor5/src/core';import{getTranslation as _0x3aea13}from'../utils/common-translations';export default class bt extends _0x3e8d84{[_0xd551('0x6')](){const _0x182872=this['editor'];if(!_0x182872[_0xd551('0x9')][_0xd551('0x0')](_0xd551('0x5')))return;_0x182872[_0xd551('0x2')][_0xd551('0x0')]('TrackChangesEditing')[_0xd551('0x8')](_0xd551('0x5'));const _0x2c103f=_0x182872['plugins'][_0xd551('0x0')](_0xd551('0x4')),_0x1114b5=_0x182872['locale'];_0x2c103f[_0xd551('0x7')][_0xd551('0x3')](_0xd551('0x1'),_0x5db3a0=>_0x3aea13(_0x1114b5,_0xd551('0xa'),_0x5db3a0));}}
|