@ckeditor/ckeditor5-track-changes 37.0.0 → 37.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/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/tableproperties.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51dd=['last','findAncestor','next','getChanges','differ','_suggestionFactory','createPositionBefore','previous','endRow','deletionRanges','tableCellBorderStyle','tablePasteCell','options','model','markerToHighlight','content','discard','change','name','editingDowncast','author','getAllAdjacentSuggestions','getChild','includes','insertRows','editing','showSuggestionHighlights','return','insertion','getChangedMarkers','startsWith','markMultiRangeInsertion','insertColumns','some','*Replace\x20table\x20cells*','activeMarkers','nextSibling','registerCustomCallback','clipboardOutput','tablePasteColumn','markMultiRangeBlockFormat','selection','commands','TrackChangesEditing','registerDescriptionCallback','dataDowncast','columnInsertionIndexes','get','column','rowInsertionIndexes','getRanges','conversion','tableCell','insertionRanges','hasSuggestion','endColumn','getChildren','fill','unwrap','$graveyard','insertContent','getColumns','createTableWalker','insert','move','add','batch','tablePasteChainId','cell','from','createRangeOn','attributes','getSuggestion','_splitMarkerName','removeColumns','deletion','suggestion:formatBlock:tablePasteCell','containsRange','length','createRangeIn','type','remove','_isForcedDefaultExecutionBlock','tablePasteRow','isInContent','isEmpty','map','tableCellSuggestion','suggestion-td','plugins','getContainedElement','filter','cells','formatBlock','getSuggestions','trackChanges','listenTo','getSelectionAffectedTableCells','isEqual','_createdBatches','getSuggestionCallback','getMarkers','subType','schema','_descriptionFactory','stop','accept','tableCellHorizontalAlignment','afterInit','tableCellBorderWidth','for','set','markers','table','tablePaste','ck-suggestion-marker-insertion','document','getColumnIndexes','position','view','markMultiRangeDeletion','editor','push','_getCoordsForCells','columnInsertionRanges','element','tableCellBackgroundColor','newRange','forceDefaultExecution','entries','getRows','has','removeMarkers','TableClipboard','find','Users','high','redo','rootName','ck-suggestion-marker','columns','setAttribute','tableCellPadding','nodeAfter','markerAttributes','TableUtils','markerName','first','removeMarker','updateMarker','createElement','elementToElement','tableCellVerticalAlignment','oldRange','paragraph','every','setAttributes','fromEntries','reduce','ck-suggestion-marker--active','tableCellBorderColor','registerPostFixer','rows','documentSelection','low','getShiftedBy','getRange'];(function(_0x46355f,_0x51dd01){const _0x3d8bcc=function(_0x545add){while(--_0x545add){_0x46355f['push'](_0x46355f['shift']());}};_0x3d8bcc(++_0x51dd01);}(_0x51dd,0x18b));const _0x3d8b=function(_0x46355f,_0x51dd01){_0x46355f=_0x46355f-0x0;let _0x3d8bcc=_0x51dd[_0x46355f];return _0x3d8bcc;};import{getTranslation as _0x2b0b56}from'../utils/common-translations';import{Plugin as _0x5321c9}from'ckeditor5/src/core';import{uid as _0x202b12,priorities as _0x54b8ce}from'ckeditor5/src/utils';import _0x44700f from'./table';const le=[_0x3d8b('0x30'),_0x3d8b('0x63'),_0x3d8b('0x74'),_0x3d8b('0x2e'),_0x3d8b('0x5b'),_0x3d8b('0x41'),_0x3d8b('0x51')],ae=Object[_0x3d8b('0x60')](le['map'](_0x4afc5c=>[_0x4afc5c,null]));export default class pt extends _0x5321c9{static get['requires'](){return[_0x44700f];}[_0x3d8b('0x2f')](){const _0x545451=this[_0x3d8b('0x3c')];if(!_0x545451[_0x3d8b('0x1c')][_0x3d8b('0x46')](_0x3d8b('0x48')))return;const _0x1ef158=_0x545451[_0x3d8b('0x1c')][_0x3d8b('0x99')](_0x3d8b('0x95')),_0x5d21af=_0x545451[_0x3d8b('0x1c')][_0x3d8b('0x99')](_0x3d8b('0x54')),_0x3e4d9b=_0x545451['plugins'][_0x3d8b('0x99')](_0x44700f),_0x2dd167=_0x545451[_0x3d8b('0x1c')]['get']('TableClipboard');_0x3e4d9b['_tablePostFixingSubtypes'][_0x3d8b('0x3d')]('tablePasteRow','tablePasteColumn'),_0x545451[_0x3d8b('0x77')][_0x3d8b('0x2a')]['register'](_0x3d8b('0x1a'),{'allowIn':'tableCell','allowContentOf':_0x3d8b('0x9e'),'isLimit':!0x0}),_0x545451[_0x3d8b('0x9d')][_0x3d8b('0x5a')]({'model':_0x3d8b('0x1a'),'view':_0x3d8b('0x1b')});let _0x76d7ba=null;_0x545451[_0x3d8b('0x77')]['on'](_0x3d8b('0xa6'),(_0x1efb4c,_0x5e86e9)=>{const [_0x3258e8,_0x3c292d]=_0x5e86e9,_0x5932f8=_0x5e86e9[_0x5e86e9['length']-0x1];_0x5932f8&&_0x5932f8[_0x3d8b('0x43')]||_0x1ef158[_0x3d8b('0x15')]||this[_0x3d8b('0x3c')][_0x3d8b('0x94')]['get'](_0x3d8b('0x22'))['value']&&function(_0x2f0ada,_0x324989,_0x9d75c1,_0x43cf78,_0x2399c1){if(_0x324989&&!_0x324989['is'](_0x3d8b('0x66')))return!0x1;const _0x3ed80c=_0x2399c1['getTableIfOnlyTableInContent'](_0x2f0ada,_0x9d75c1);if(!_0x3ed80c||!fe(_0x3ed80c,void 0x0,_0x43cf78))return!0x1;const _0x19bfbb=_0x43cf78[_0x3d8b('0x24')](_0x9d75c1[_0x3d8b('0x37')][_0x3d8b('0x93')]);if(!_0x19bfbb[_0x3d8b('0x11')])return!0x1;const _0x13a6ec=_0x19bfbb[0x0]['findAncestor'](_0x3d8b('0x34')),_0x15b1a1=_0x43cf78['getRowIndexes'](_0x19bfbb),_0x4bee34=_0x43cf78[_0x3d8b('0x38')](_0x19bfbb),_0xc89fb1={'startRow':_0x15b1a1[_0x3d8b('0x56')],'endRow':_0x15b1a1[_0x3d8b('0x6a')],'startColumn':_0x4bee34['first'],'endColumn':_0x4bee34[_0x3d8b('0x6a')]};return 0x1==_0x19bfbb[_0x3d8b('0x11')]&&(_0xc89fb1[_0x3d8b('0x72')]+=_0x43cf78[_0x3d8b('0x45')](_0x3ed80c)-0x1,_0xc89fb1[_0x3d8b('0xa1')]+=_0x43cf78[_0x3d8b('0x0')](_0x3ed80c)-0x1),fe(_0x13a6ec,_0xc89fb1,_0x43cf78);}(_0x3258e8,_0x3c292d,_0x545451[_0x3d8b('0x77')],_0x5d21af,_0x2dd167)&&(_0x1efb4c['stop'](),_0x76d7ba={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x545451[_0x3d8b('0x77')][_0x3d8b('0x7b')](()=>{_0x545451[_0x3d8b('0x77')][_0x3d8b('0xa6')](_0x5e86e9[0x0],_0x5e86e9[0x1],_0x5e86e9[0x2],{'forceDefaultExecution':!0x0});const _0x32eee6=_0x202b12(),{rowInsertionRanges:_0x569209,columnInsertionRanges:_0x45eda1,insertionRanges:_0xea10df,deletionRanges:_0xc42e62,cells:_0x3ba6b5}=_0x76d7ba;_0x569209[_0x3d8b('0x11')]&&_0x1ef158[_0x3d8b('0x89')](_0x569209,_0x3d8b('0x16'),{'tablePasteChainId':_0x32eee6}),_0x45eda1[_0x3d8b('0x11')]&&_0x1ef158[_0x3d8b('0x89')](_0x45eda1,'tablePasteColumn',{'tablePasteChainId':_0x32eee6}),_0xea10df[_0x3d8b('0x11')]&&_0x1ef158['markMultiRangeInsertion'](_0xea10df,_0x3d8b('0x35'),{'tablePasteChainId':_0x32eee6,'skipNestingCheck':!0x0}),_0xc42e62[_0x3d8b('0x11')]&&_0x1ef158[_0x3d8b('0x3b')](_0xc42e62,'tablePaste',{'tablePasteChainId':_0x32eee6,'skipNestingCheck':!0x0});const _0x53083d=_0x1ef158[_0x3d8b('0x92')](_0x3ba6b5[_0x3d8b('0x19')](({element:_0x359743})=>_0x359743),{'formatGroupId':_0x202b12()},[],_0x3d8b('0x75'),{'tablePasteChainId':_0x32eee6});if(_0x53083d){const _0x108ea7=_0x53083d[_0x3d8b('0x28')](),_0x3fcaa9=[];for(const {element:_0x1e0d07,attributes:_0x2e6c51}of _0x3ba6b5){if(!_0x2e6c51)continue;const _0x49e39e=_0x545451[_0x3d8b('0x77')][_0x3d8b('0x9')](_0x1e0d07),_0x7a3ad0=_0x108ea7['find'](_0x191dea=>_0x191dea['getRange']()[_0x3d8b('0x25')](_0x49e39e));_0x7a3ad0&&_0x3fcaa9[_0x3d8b('0x3d')]([_0x7a3ad0[_0x3d8b('0x7c')],_0x2e6c51]);}_0x3fcaa9[_0x3d8b('0x11')]&&_0x53083d[_0x3d8b('0x50')](_0x3d8b('0x53'),Object['fromEntries'](_0x3fcaa9));}_0x76d7ba=null;}));},{'priority':_0x54b8ce[_0x3d8b('0x4b')]+0xa}),_0x545451['plugins'][_0x3d8b('0x99')](_0x3d8b('0x48'))['on']('_replaceTableSlotCell',(_0x5c7af0,_0x1da5a8)=>{const [_0x530734,_0x2bd23e,,_0x4486f8]=_0x1da5a8;if(!_0x76d7ba)return;_0x5c7af0[_0x3d8b('0x2c')]();const _0x3b7eb1=_0x530734[_0x3d8b('0x7')],_0xd07c12=_0x2bd23e,_0x2873a3=ce(_0x3b7eb1),_0xa3f698=ce(_0xd07c12);_0x5c7af0[_0x3d8b('0x85')]=_0x3b7eb1;let _0x1015c2=null,_0x726c94=null;if(_0xa3f698||_0x2873a3){if(_0x2873a3&&!_0xa3f698){_0x4486f8['remove'](_0x3b7eb1[_0x3d8b('0x80')](0x0));for(const _0x4b0af5 of Array[_0x3d8b('0x8')](_0xd07c12['getChildren']()))_0x4486f8[_0x3d8b('0x2')](_0x4b0af5,_0x3b7eb1,'end');const _0xcb9178=_0x76d7ba[_0x3d8b('0x9b')][_0x3d8b('0x81')](_0x530734['row']),_0x344fde=_0x76d7ba['columnInsertionIndexes']['includes'](_0x530734[_0x3d8b('0x9a')]);_0xcb9178||_0x344fde||(_0x1015c2=_0x4486f8[_0x3d8b('0x12')](_0x3b7eb1));}else _0xa3f698&&!_0x2873a3&&(_0x726c94=_0x4486f8['createRangeIn'](_0x3b7eb1));}else{const _0x1b2814=_0x4486f8[_0x3d8b('0x59')]('tableCellSuggestion'),_0x4a0eb1=_0x4486f8['createElement']('tableCellSuggestion');_0x4486f8['wrap'](_0x4486f8[_0x3d8b('0x12')](_0x3b7eb1),_0x4a0eb1),_0x4486f8[_0x3d8b('0x2')](_0x1b2814,_0x3b7eb1,0x0);for(const _0x1a4a30 of Array[_0x3d8b('0x8')](_0xd07c12[_0x3d8b('0xa2')]()))_0x4486f8[_0x3d8b('0x2')](_0x1a4a30,_0x1b2814,'end');_0x1015c2=_0x4486f8[_0x3d8b('0x9')](_0x1b2814),_0x726c94=_0x4486f8[_0x3d8b('0x9')](_0x4a0eb1);}const _0xecae24=Array[_0x3d8b('0x8')](_0xd07c12['getAttributes']())['filter'](([_0x333dc1])=>le[_0x3d8b('0x81')](_0x333dc1));_0x76d7ba[_0x3d8b('0x1f')]['push']({'element':_0x3b7eb1,'attributes':_0xecae24[_0x3d8b('0x11')]?Object['fromEntries'](_0xecae24):null}),_0x1015c2&&_0x76d7ba[_0x3d8b('0x9f')]['push'](_0x1015c2),_0x726c94&&_0x76d7ba[_0x3d8b('0x73')][_0x3d8b('0x3d')](_0x726c94);},{'priority':_0x3d8b('0x4b')}),_0x5d21af['on'](_0x3d8b('0x8a'),(_0x3a423e,_0x444e07)=>{const [_0x4d38e6,_0x300bca={}]=_0x444e07;if(!_0x76d7ba)return;const _0x10c04d=_0x300bca['at']||0x0,_0x5e37c9=_0x300bca[_0x3d8b('0x4f')]||0x1;_0x76d7ba[_0x3d8b('0x98')]=new Array(_0x5e37c9)[_0x3d8b('0xa3')](_0x10c04d)[_0x3d8b('0x19')]((_0x50359b,_0x1e3523)=>_0x50359b+_0x1e3523);for(const {cell:_0x513d61}of _0x5d21af['createTableWalker'](_0x4d38e6,{'startColumn':_0x10c04d,'endColumn':_0x10c04d+_0x5e37c9-0x1}))_0x76d7ba[_0x3d8b('0x3f')]['push'](_0x545451['model'][_0x3d8b('0x9')](_0x513d61));},{'priority':_0x3d8b('0x67')}),_0x5d21af['on'](_0x3d8b('0x82'),(_0x2ad09b,_0x30e07e)=>{const [_0x466e95,_0x1a1572={}]=_0x30e07e;if(!_0x76d7ba)return;const _0x41484b=_0x1a1572['at']||0x0,_0xf99f5d=_0x1a1572[_0x3d8b('0x65')]||0x1;_0x76d7ba[_0x3d8b('0x9b')]=new Array(_0xf99f5d)[_0x3d8b('0xa3')](_0x41484b)[_0x3d8b('0x19')]((_0x516fed,_0x18c58e)=>_0x516fed+_0x18c58e);for(const {cell:_0x593362}of _0x5d21af[_0x3d8b('0x1')](_0x466e95,{'startRow':_0x41484b,'endRow':_0x41484b+_0xf99f5d-0x1}))_0x76d7ba['rowInsertionRanges'][_0x3d8b('0x3d')](_0x545451[_0x3d8b('0x77')][_0x3d8b('0x9')](_0x593362));},{'priority':_0x3d8b('0x67')}),_0x1ef158[_0x3d8b('0x2b')][_0x3d8b('0x96')](_0x143e9a=>{if(_0x143e9a[_0x3d8b('0x29')]&&_0x143e9a[_0x3d8b('0x29')][_0x3d8b('0x88')](_0x3d8b('0x35')))return _0x143e9a[_0x3d8b('0x71')]?{}:{'type':_0x3d8b('0x86'),'content':_0x2b0b56(_0x545451['locale'],_0x3d8b('0x8c'))};});const _0x1a72fa=()=>{};for(const _0x1359bd of[_0x3d8b('0x35'),_0x3d8b('0x91'),_0x3d8b('0x16'),_0x3d8b('0x75')])_0x1ef158['_suggestionFactory'][_0x3d8b('0x8f')](_0x3d8b('0x86'),_0x1359bd,'join',_0x1a72fa),_0x1ef158['_suggestionFactory']['registerCustomCallback']('deletion',_0x1359bd,'join',_0x1a72fa);_0x1ef158[_0x3d8b('0x6f')][_0x3d8b('0x8f')](_0x3d8b('0x20'),_0x3d8b('0x75'),'discard',_0x1a72fa),_0x1ef158[_0x3d8b('0x6f')][_0x3d8b('0x8f')](_0x3d8b('0x20'),_0x3d8b('0x75'),_0x3d8b('0x2d'),(_0x3c0d37,_0x17d817,_0x1169a8)=>{const _0x19ba9d=_0x3c0d37[_0x3d8b('0x19')](_0x5e81a0=>_0x5e81a0[_0x3d8b('0x1d')]())[_0x3d8b('0x1e')](_0x2445dd=>_0x2445dd),_0x414bea=new Map(_0x19ba9d[_0x3d8b('0x19')](_0xf55482=>[_0xf55482,null]));if(_0x76d7ba)for(const {element:_0xc56740,attributes:_0x2cfcf4}of _0x76d7ba[_0x3d8b('0x1f')])_0x2cfcf4&&_0x414bea[_0x3d8b('0x32')](_0xc56740,_0x2cfcf4);else{if(_0x1169a8&&_0x1169a8[_0x3d8b('0x53')])for(const [_0x45a317,_0x2e4388]of Object[_0x3d8b('0x44')](_0x1169a8[_0x3d8b('0x53')])){const _0x4a5218=_0x545451[_0x3d8b('0x77')][_0x3d8b('0x33')][_0x3d8b('0x99')](_0x45a317),_0x38f440=_0x4a5218?_0x4a5218[_0x3d8b('0x69')]()[_0x3d8b('0x1d')]():null;_0x38f440&&_0x414bea[_0x3d8b('0x32')](_0x38f440,_0x2e4388);}}_0x545451[_0x3d8b('0x77')][_0x3d8b('0x7b')](_0x41137b=>{for(const [_0x292fa6,_0x1d73bc]of _0x414bea)_0x41137b[_0x3d8b('0x5f')]({...ae,..._0x1d73bc},_0x292fa6);});});const _0x1b27e1=(_0x3a3cbb,_0x1d8df9)=>{_0x1ef158[_0x3d8b('0x6f')]['registerCustomCallback'](_0x3a3cbb,_0x3d8b('0x35'),_0x1d8df9,(_0x524d1a,_0x3681aa,_0x51ccaf)=>{_0x545451[_0x3d8b('0x77')][_0x3d8b('0x7b')](_0x11eeb3=>{const _0x465b24=[];for(const _0x44cf34 of _0x524d1a){const _0x1e4a38=_0x44cf34['start'][_0x3d8b('0x52')];_0x1e4a38['is'](_0x3d8b('0x40'),'tableCellSuggestion')&&_0x465b24[_0x3d8b('0x3d')](_0x1e4a38);}_0x1ef158['_suggestionFactory'][_0x3d8b('0x27')](_0x3a3cbb,null,_0x1d8df9)(_0x524d1a,_0x3681aa,_0x51ccaf);for(const _0x475f0d of _0x465b24)_0x3d8b('0xa5')!=_0x475f0d['root'][_0x3d8b('0x4d')]&&_0x11eeb3[_0x3d8b('0xa4')](_0x475f0d);});});};_0x1b27e1(_0x3d8b('0x86'),'accept'),_0x1b27e1('insertion',_0x3d8b('0x7a')),_0x1b27e1(_0x3d8b('0xe'),_0x3d8b('0x2d')),_0x1b27e1(_0x3d8b('0xe'),'discard'),_0x1ef158[_0x3d8b('0x6f')][_0x3d8b('0x8f')](_0x3d8b('0x86'),_0x3d8b('0x16'),_0x3d8b('0x7a'),_0x31ed24=>{const _0x4cf758=_0x31ed24[_0x3d8b('0x19')](_0x48ec98=>_0x48ec98[_0x3d8b('0x1d')]()),_0x1de6db=_0x4cf758[0x0][_0x3d8b('0x6b')](_0x3d8b('0x34')),{minRow:_0x3477f0,maxRow:_0x45db3a}=_0x3e4d9b[_0x3d8b('0x3e')](_0x4cf758);_0x5d21af['removeRows'](_0x1de6db,{'at':_0x3477f0,'rows':_0x45db3a-_0x3477f0+0x1});}),_0x1ef158['_suggestionFactory'][_0x3d8b('0x8f')](_0x3d8b('0x86'),_0x3d8b('0x91'),_0x3d8b('0x7a'),_0x28429f=>{const _0x51535f=_0x28429f['map'](_0xddf78c=>_0xddf78c[_0x3d8b('0x1d')]()),_0x39e645=_0x51535f[0x0][_0x3d8b('0x6b')](_0x3d8b('0x34')),{minColumn:_0xc8436c,maxColumn:_0x309405}=_0x3e4d9b[_0x3d8b('0x3e')](_0x51535f);_0x5d21af[_0x3d8b('0xd')](_0x39e645,{'at':_0xc8436c,'columns':_0x309405-_0xc8436c+0x1});});const _0x219430=(_0x245e2c,_0x2ded47)=>{if(!_0x2ded47[_0x3d8b('0x29')]||!_0x2ded47[_0x3d8b('0x29')][_0x3d8b('0x88')]('tablePaste'))return;const _0x1757ea=_0x2ded47['attributes'][_0x3d8b('0x6')],_0x52f71c=_0x1ef158[_0x3d8b('0x21')]()[_0x3d8b('0x1e')](_0x2bd2d3=>_0x2bd2d3[_0x3d8b('0x17')]&&_0x2bd2d3[_0x3d8b('0xa')]&&_0x2bd2d3[_0x3d8b('0xa')][_0x3d8b('0x6')]==_0x1757ea);_0x52f71c[_0x3d8b('0x11')]&&_0x2ded47[_0x3d8b('0x7f')]()[_0x3d8b('0x11')]!=_0x52f71c['length']&&_0x52f71c[_0x3d8b('0x61')]((_0x35d8e4,_0x5a3f74)=>(_0x35d8e4[_0x3d8b('0x6c')]=_0x5a3f74,_0x5a3f74[_0x3d8b('0x71')]=_0x35d8e4,_0x5a3f74));};function _0x4d43b6(_0x4dc628,_0xbd21a8=!0x0){const {id:_0x8aa053}=_0x1ef158[_0x3d8b('0xc')](_0x4dc628[_0x3d8b('0x55')]),_0x52df95=[_0x3d8b('0x4e'),_0x3d8b('0x36')],_0x21fe38=_0x1ef158[_0x3d8b('0x8d')][_0x3d8b('0x81')](_0x4dc628['markerName']);return _0x21fe38&&_0x52df95[_0x3d8b('0x3d')](_0x3d8b('0x62')),{'classes':_0x52df95,'attributes':{'data-suggestion':_0x8aa053},'priority':_0x21fe38&&_0xbd21a8?0xbc2:0xbb8};}_0x1ef158['on']('suggestionLoaded',_0x219430,{'priority':'high'}),_0x1ef158['on']('suggestionUnloaded',_0x219430,{'priority':'high'}),_0x545451[_0x3d8b('0x77')][_0x3d8b('0x37')][_0x3d8b('0x64')](()=>{let _0x1a8f80=!0x1;const _0x90db1b=Array[_0x3d8b('0x8')](_0x545451[_0x3d8b('0x77')][_0x3d8b('0x37')][_0x3d8b('0x6e')][_0x3d8b('0x87')]());for(const {name:_0x2aa4c8,data:_0x5de847}of _0x90db1b){const {group:_0x53bfde,type:_0x58dbad,id:_0x5f4c12}=_0x1ef158['_splitMarkerName'](_0x2aa4c8);if('suggestion'!=_0x53bfde||_0x3d8b('0xe')!=_0x58dbad||_0x5de847['oldRange'])continue;if(!_0x1ef158[_0x3d8b('0xa0')](_0x5f4c12))continue;const _0x2b7d13=_0x1ef158[_0x3d8b('0xb')](_0x5f4c12)[_0x3d8b('0x9c')](),_0x1c8c9d=_0x545451[_0x3d8b('0x1c')][_0x3d8b('0x99')]('Users')['me'];for(const _0x3af540 of _0x1ef158['getSuggestions']()){if(!_0x3af540[_0x3d8b('0x17')]||_0x3af540[_0x3d8b('0x7e')]!=_0x1c8c9d)continue;if('formatBlock'!=_0x3af540[_0x3d8b('0x13')]||_0x3d8b('0x75')!=_0x3af540[_0x3d8b('0x29')])continue;if(_0x3af540['getRanges']()[_0x3d8b('0x5e')](_0x4e191c=>_0x2b7d13[_0x3d8b('0x8b')](_0x5157ae=>_0x5157ae['containsRange'](_0x4e191c,!0x0))))for(const _0x1be3f0 of _0x3af540[_0x3d8b('0x7f')]())_0x1be3f0[_0x3d8b('0x17')]&&(_0x1be3f0[_0x3d8b('0x7a')](),_0x1a8f80=!0x0);}}return _0x1a8f80;}),_0x545451[_0x3d8b('0x77')]['document']['registerPostFixer'](_0x266ba9=>{const _0x2f79b5=_0x545451[_0x3d8b('0x94')]['get'](_0x3d8b('0x4c'));if(!_0x2f79b5||!_0x2f79b5[_0x3d8b('0x26')][_0x3d8b('0x46')](_0x266ba9[_0x3d8b('0x5')]))return!0x1;let _0x3e0da0=!0x1;const _0x4c5d4f=_0x545451[_0x3d8b('0x1c')][_0x3d8b('0x99')](_0x3d8b('0x4a'))['me'],_0x136d6c=_0x545451[_0x3d8b('0x77')][_0x3d8b('0x37')][_0x3d8b('0x6e')][_0x3d8b('0x6d')](),_0x5f093c=Array[_0x3d8b('0x8')](_0x545451[_0x3d8b('0x77')][_0x3d8b('0x37')]['differ'][_0x3d8b('0x87')]())['filter'](({name:_0x192650,data:_0x158f1c})=>{const {group:_0x15fcba,subType:_0x445f43,authorId:_0x95b9c8}=_0x1ef158[_0x3d8b('0xc')](_0x192650);return'suggestion'==_0x15fcba&&_0x3d8b('0x35')==_0x445f43&&_0x95b9c8==_0x4c5d4f['id']&&!_0x158f1c[_0x3d8b('0x5c')];});for(const _0x1844d7 of _0x136d6c){if(_0x3d8b('0x2')!=_0x1844d7['type']||_0x3d8b('0x1a')!=_0x1844d7[_0x3d8b('0x7c')]||0x1!=_0x1844d7[_0x3d8b('0x11')])continue;const _0x158c94=_0x266ba9['createRange'](_0x1844d7[_0x3d8b('0x39')],_0x1844d7['position'][_0x3d8b('0x68')](0x1));if(!_0x5f093c[_0x3d8b('0x49')](({data:_0x4c9f8e})=>_0x4c9f8e[_0x3d8b('0x42')]['isEqual'](_0x158c94)))for(const {name:_0x1c5f3c,data:_0x54711b}of _0x5f093c)if(_0x158c94[_0x3d8b('0x10')](_0x54711b['newRange'])){_0x266ba9[_0x3d8b('0x58')](_0x1c5f3c,{'range':_0x158c94}),_0x3e0da0=!0x0;break;}}return _0x3e0da0;}),_0x545451['model'][_0x3d8b('0x37')][_0x3d8b('0x64')](_0x56fbb2=>{let _0x4a8a63=!0x1;const _0x3853a6=_0x545451['plugins']['get']('Users')['me'],_0x21dc82=_0x1ef158[_0x3d8b('0x21')]()[_0x3d8b('0x1e')](_0x4c3fc3=>_0x4c3fc3['isInContent']&&_0x4c3fc3[_0x3d8b('0x7e')]==_0x3853a6),_0x501712=new Set(),_0x310ce8=new Set();for(const _0x313c5f of _0x21dc82)if('tablePaste'==_0x313c5f['subType'])for(const _0x497e2c of _0x313c5f['getMarkers']()){const _0x3cc2d9=_0x497e2c[_0x3d8b('0x69')]()[_0x3d8b('0x1d')]();if(_0x3cc2d9){if(_0x3cc2d9['is']('element',_0x3d8b('0x1a'))&&ce(_0x3cc2d9)){_0x313c5f[_0x3d8b('0x57')](_0x497e2c[_0x3d8b('0x7c')]),_0x501712[_0x3d8b('0x4')](_0x3cc2d9),_0x4a8a63=!0x0;const _0x170be0=_0x3cc2d9[_0x3d8b('0x8e')],_0x59aa05=_0x3cc2d9['previousSibling'],_0x9f6a21=_0x170be0&&_0x170be0['is'](_0x3d8b('0x40'),'tableCellSuggestion'),_0x5bed8f=_0x59aa05&&_0x59aa05['is'](_0x3d8b('0x40'),_0x3d8b('0x1a'));_0x9f6a21&&!_0x501712['has'](_0x170be0)&&_0x310ce8[_0x3d8b('0x4')](_0x170be0),_0x5bed8f&&!_0x501712[_0x3d8b('0x46')](_0x59aa05)&&_0x310ce8['add'](_0x59aa05);}else _0x3cc2d9['is'](_0x3d8b('0x40'),_0x3d8b('0x5d'))&&_0x3cc2d9[_0x3d8b('0x18')]&&(_0x313c5f[_0x3d8b('0x57')](_0x497e2c[_0x3d8b('0x7c')]),_0x4a8a63=!0x0);}}else{if(_0x3d8b('0x75')==_0x313c5f[_0x3d8b('0x29')]){if(!_0x313c5f[_0x3d8b('0xa')]||!_0x313c5f[_0x3d8b('0xa')][_0x3d8b('0x6')])continue;const _0x4b09f3=_0x313c5f['attributes'][_0x3d8b('0x53')];if(_0x4b09f3&&Object['keys'](_0x4b09f3)[_0x3d8b('0x11')])continue;const _0x43d39f=_0x313c5f[_0x3d8b('0xa')][_0x3d8b('0x6')];let _0x7ff15f=!0x0,_0x3767d3=!0x0;for(const _0x1423a5 of _0x21dc82)if(_0x1423a5['subType']&&_0x1423a5[_0x3d8b('0x29')]['startsWith'](_0x3d8b('0x35'))){if(!_0x1423a5[_0x3d8b('0xa')][_0x3d8b('0x6')]){_0x3767d3=!0x1;break;}if(_0x1423a5['id']!=_0x313c5f['id']&&_0x1423a5[_0x3d8b('0xa')][_0x3d8b('0x6')]==_0x43d39f){_0x7ff15f=!0x1;break;}}_0x3767d3&&_0x7ff15f&&(_0x313c5f[_0x3d8b('0x47')](),_0x4a8a63=!0x0);}}for(const _0x37cbb8 of _0x501712)_0x56fbb2[_0x3d8b('0x14')](_0x37cbb8);for(const _0x3d4431 of _0x310ce8)_0x56fbb2[_0x3d8b('0xa4')](_0x3d4431);return _0x4a8a63;}),_0x545451[_0x3d8b('0x9d')][_0x3d8b('0x31')](_0x3d8b('0x7d'))['markerToHighlight']({'model':_0x3d8b('0xf'),'view':(_0xd584f,_0x372a1d)=>_0x4d43b6(_0xd584f),'converterPriority':_0x3d8b('0x4b')}),_0x545451['conversion']['for'](_0x3d8b('0x97'))[_0x3d8b('0x78')]({'model':_0x3d8b('0xf'),'view':(_0x56ba6e,_0x2d82c9)=>_0x2d82c9[_0x3d8b('0x76')][_0x3d8b('0x84')]?_0x4d43b6(_0x56ba6e,!0x1):null,'converterPriority':_0x3d8b('0x4b')});const _0x3f9394=_0x545451[_0x3d8b('0x83')][_0x3d8b('0x3a')];this[_0x3d8b('0x23')](_0x3f9394[_0x3d8b('0x37')],_0x3d8b('0x90'),(_0x5e2af4,_0x4f894f)=>{const _0x434d7f=[];for(const _0x2f7f80 of _0x3f9394[_0x3d8b('0x12')](_0x4f894f[_0x3d8b('0x79')])['getItems']())_0x2f7f80['is'](_0x3d8b('0x40'),_0x3d8b('0x1b'))&&_0x434d7f[_0x3d8b('0x3d')](_0x2f7f80);_0x3f9394[_0x3d8b('0x7b')](_0x2360bd=>{for(const _0x31540d of _0x434d7f)_0x2360bd[_0x3d8b('0x3')](_0x2360bd[_0x3d8b('0x12')](_0x31540d),_0x2360bd[_0x3d8b('0x70')](_0x31540d)),_0x2360bd[_0x3d8b('0x14')](_0x31540d);});});}}function ce(_0x1a2141){if(_0x1a2141[_0x3d8b('0x18')])return!0x0;const _0x4b70fd=_0x1a2141[_0x3d8b('0x80')](0x0);return _0x4b70fd['is']('element',_0x3d8b('0x5d'))&&_0x4b70fd[_0x3d8b('0x18')];}function fe(_0x120dd5,_0x395b23={},_0x337e48){for(const {isAnchor:_0x2f14a1,cellHeight:_0x275e5b,cellWidth:_0x3feee8}of _0x337e48['createTableWalker'](_0x120dd5,{'includeAllSlots':!0x0,..._0x395b23}))if(!_0x2f14a1||0x1!=_0x275e5b||0x1!=_0x3feee8)return!0x1;return!0x0;}
|
|
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;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x35f0=['*Format:*\x20resize\x20table','TableColumnResizeEditing','resizeTable','getSelectedElement','author','handleResizeTableWidthCommand','document','bind','enableCommand','model','registerCustomCallback','table','get','locale','tableWidth','commandParams','getTableColumnsWidths','discard','editor','getAttribute','getColumnGroupElement','_suggestionFactory','handleSuggestionDescription','TrackChangesEditing','resizeColumnWidths','subType','getContainedElement','columnWidths','resizeTableWidth','plugins','selection','registerDescriptionCallback','formatBlock','data','accept','Users','markBlockFormat','_descriptionFactory'];(function(_0x1d82ea,_0x35f0af){const _0x481814=function(_0x59636b){while(--_0x59636b){_0x1d82ea['push'](_0x1d82ea['shift']());}};_0x481814(++_0x35f0af);}(_0x35f0,0xe0));const _0x4818=function(_0x1d82ea,_0x35f0af){_0x1d82ea=_0x1d82ea-0x0;let _0x481814=_0x35f0[_0x1d82ea];return _0x481814;};import{Plugin as _0x4e792c}from'ckeditor5/src/core';import{getTranslation as _0x2e8317}from'../utils/common-translations';export default class kt extends _0x4e792c{['afterInit'](){if(!this['editor'][_0x4818('0x21')]['has']('TableColumnResizeEditing'))return;const _0x2afc3b=this[_0x4818('0x16')][_0x4818('0x21')][_0x4818('0x10')](_0x4818('0x1b'));_0x2afc3b[_0x4818('0xc')](_0x4818('0x20'),this[_0x4818('0x9')][_0x4818('0xb')](this)),_0x2afc3b[_0x4818('0xc')](_0x4818('0x1c'),this[_0x4818('0x9')][_0x4818('0xb')](this)),_0x2afc3b[_0x4818('0x19')][_0x4818('0xe')]('formatBlock',_0x4818('0x6'),_0x4818('0x0'),_0x2afc3b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2afc3b['_suggestionFactory'][_0x4818('0xe')]('formatBlock',_0x4818('0x6'),_0x4818('0x15'),_0x2afc3b[_0x4818('0x19')]['getSuggestionCallback'](_0x4818('0x24'),null,_0x4818('0x0'))),_0x2afc3b[_0x4818('0x3')][_0x4818('0x23')](this[_0x4818('0x1a')][_0x4818('0xb')](this));}['handleResizeTableWidthCommand'](_0x3ee7ad,_0x22fe1f){const _0x318c3c=this['editor'][_0x4818('0x21')][_0x4818('0x10')]('TrackChangesEditing'),_0x7d436b=this[_0x4818('0x16')][_0x4818('0x21')][_0x4818('0x10')](_0x4818('0x5')),_0xe3770=_0x22fe1f[_0x4818('0xf')]||this[_0x4818('0x16')][_0x4818('0xd')][_0x4818('0xa')][_0x4818('0x22')][_0x4818('0x7')]();this[_0x4818('0x16')][_0x4818('0xd')]['change'](()=>{const _0x2836db=_0x7d436b[_0x4818('0x18')](_0xe3770);let _0x4e9886=_0x2836db?_0x7d436b[_0x4818('0x14')](_0x2836db):null,_0x54431b=_0xe3770[_0x4818('0x17')](_0x4818('0x12'))||null;const _0x311085=_0x22fe1f['tableWidth']||_0x54431b,_0xe989c8=_0x22fe1f[_0x4818('0x1f')]||_0x4e9886,_0x11a020=this['editor']['plugins'][_0x4818('0x10')](_0x4818('0x1'))['me'];for(const _0x394b52 of _0x318c3c['getSuggestions']()){const _0x70fdab=_0x394b52[_0x4818('0x1e')]();if(_0x4818('0x6')===_0x394b52[_0x4818('0x1d')]&&_0x70fdab===_0xe3770){_0x394b52[_0x4818('0x8')]!==_0x11a020&&_0x394b52['discard']();const _0x3b60ac=_0x394b52[_0x4818('0x25')][_0x4818('0x13')];_0x54431b=_0x3b60ac[0x0][_0x4818('0x12')],_0x4e9886=_0x3b60ac[0x0]['columnWidths'];break;}}_0x3ee7ad({'table':_0xe3770,'tableWidth':_0x311085,'columnWidths':_0xe989c8}),_0x318c3c[_0x4818('0x2')](_0xe3770,{'commandName':_0x4818('0x20'),'commandParams':[{'tableWidth':_0x54431b,'columnWidths':_0x4e9886}],'formatGroupId':_0x4818('0x6')},[],_0x4818('0x6'));});}[_0x4818('0x1a')](_0x3b57b0){const {data:_0xc1a812}=_0x3b57b0;if(_0xc1a812&&_0x4818('0x6')===_0xc1a812['formatGroupId']){const _0x34b610=_0x4818('0x4');return{'type':'format','content':_0x2e8317(this['editor'][_0x4818('0x11')],_0x34b610)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a95=['mapper','showSuggestionHighlights','format','TableUtils','removeClass','highest','last','nodeBefore','ck-suggestion-marker-','forceValue','markerRange','getCellLocation','index','getRowIndexes','_acceptFormatSuggestionCallbackFactory','findAncestor','end','locale','getSuggestion','getSelectionAffectedTableCells','headingColumns','FORMAT_HEADER_COLUMN','enableCommand','createRange','setTableRowHeader','data','addClass','change','_splitMarkerName','setAttribute','FORMAT_REGULAR_COLUMN','writer','nodeAfter','document','consumable','accept','_descriptionFactory','markerName','commandName','ck-suggestion-marker--active','formatBlock','getAttribute','downcastDispatcher','_suggestionFactory','has','get','registerCustomCallback','from','includes','cell','parent','createPositionAfter','FORMAT_HEADER_ROW','first','markBlockFormat','options','childCount','getColumnIndexes','commands','data-suggestion','setTableColumnHeader','registerDescriptionCallback','name','headingRows','start','plugins','createTableWalker','table','addMarker:suggestion','getChild','createPositionBefore','afterInit','toViewElement','model','bindElementToMarker'];(function(_0x503d7f,_0x2a95aa){const _0x1ec934=function(_0x371d2c){while(--_0x371d2c){_0x503d7f['push'](_0x503d7f['shift']());}};_0x1ec934(++_0x2a95aa);}(_0x2a95,0x1b5));const _0x1ec9=function(_0x503d7f,_0x2a95aa){_0x503d7f=_0x503d7f-0x0;let _0x1ec934=_0x2a95[_0x503d7f];return _0x1ec934;};import{Plugin as _0x5157a6}from'ckeditor5/src/core';import _0x24100c from'./table';import{getTranslation as _0x473ff6}from'../utils/common-translations';export default class dt extends _0x5157a6{static get['requires'](){return[_0x24100c];}[_0x1ec9('0x9')](){const _0x11582c=this['editor'];if(!_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x39')]('TableEditing'))return;const _0x7365ba=_0x11582c[_0x1ec9('0x1e')],_0x2f8d48=_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x3a')]('TrackChangesEditing'),_0x2094e6=_0x11582c[_0x1ec9('0x3')]['get'](_0x1ec9('0x10')),_0x268af9=_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x3a')](_0x24100c);function _0x5adb04({showActiveMarker:_0x34f7ef=!0x0,setDataAttribute:_0x128cd8=!0x0}={}){return(_0x521ea1,_0x40d2e6,_0xf2d219)=>{const {type:_0x591ac9,id:_0x4a59a7}=_0x2f8d48[_0x1ec9('0x29')](_0x40d2e6['markerName']),_0x3e676b=_0x2f8d48[_0x1ec9('0x1f')](_0x4a59a7);if(!_0x3e676b[_0x1ec9('0x26')]||_0x1ec9('0x49')!=_0x3e676b[_0x1ec9('0x26')][_0x1ec9('0x33')])return;if(_0x40d2e6['item'])return void _0x521ea1['stop']();if(!_0xf2d219[_0x1ec9('0x2f')]['consume'](_0x40d2e6['markerRange'],_0x521ea1[_0x1ec9('0x0')]))return;const _0x19e7e9=_0x40d2e6['markerRange'][_0x1ec9('0x2')][_0x1ec9('0x2d')],_0x4a7e23=_0x40d2e6[_0x1ec9('0x17')][_0x1ec9('0x1d')][_0x1ec9('0x14')],_0x1d8adc=_0x19e7e9[_0x1ec9('0x3f')][_0x1ec9('0x3f')],{column:_0xd433a8}=_0x2094e6['getCellLocation'](_0x19e7e9),{column:_0x20c530}=_0x2094e6[_0x1ec9('0x18')](_0x4a7e23);for(let _0x4b3c07=_0xd433a8;_0x4b3c07<=_0x20c530;_0x4b3c07++){const _0x2b4bd8=_0x2094e6['createTableWalker'](_0x1d8adc,{'column':_0x4b3c07,'includeAllSlots':!0x1});for(const _0xa84f30 of _0x2b4bd8){const _0x392a08=_0xa84f30[_0x1ec9('0x3e')],_0x1a67e1=_0xf2d219['mapper'][_0x1ec9('0xa')](_0x392a08);_0xf2d219['writer']['addClass'](_0x1ec9('0x15')+_0x591ac9,_0x1a67e1),_0x128cd8&&_0xf2d219[_0x1ec9('0x2c')][_0x1ec9('0x2a')](_0x1ec9('0x48'),_0x4a59a7,_0x1a67e1),_0xf2d219[_0x1ec9('0xd')][_0x1ec9('0xc')](_0x1a67e1,_0x40d2e6[_0x1ec9('0x32')]),_0x34f7ef&&(_0x2f8d48['activeMarkers'][_0x1ec9('0x3d')](_0x40d2e6[_0x1ec9('0x32')])?_0xf2d219[_0x1ec9('0x2c')][_0x1ec9('0x27')](_0x1ec9('0x34'),_0x1a67e1):_0xf2d219['writer'][_0x1ec9('0x11')](_0x1ec9('0x34'),_0x1a67e1));}}};}_0x2f8d48[_0x1ec9('0x23')](_0x1ec9('0x25'),(_0x5bcf3f,_0x4abb59)=>{const _0x55dd22=_0x2094e6[_0x1ec9('0x20')](_0x11582c[_0x1ec9('0xb')]['document']['selection']),_0x200bd0=_0x2094e6[_0x1ec9('0x1a')](_0x55dd22),_0x5194ef=_0x55dd22[0x0][_0x1ec9('0x1c')](_0x1ec9('0x5')),_0x4d10fd=_0x5194ef['getAttribute'](_0x1ec9('0x1'))||0x0,_0x344bac=_0x4abb59&&null!==_0x4abb59['forceValue']?_0x4abb59['forceValue']:!_0x11582c[_0x1ec9('0x47')]['get'](_0x1ec9('0x25'))['value'],_0xb1a5d8=_0x344bac?_0x200bd0['last']:_0x200bd0[_0x1ec9('0x42')],_0x3f981e=_0x5194ef['getChild'](_0xb1a5d8);let _0xa60bd;if(_0x344bac){const _0x22eb32=_0x5194ef[_0x1ec9('0x7')](_0x4d10fd);if(_0x3f981e[_0x1ec9('0x19')]<_0x22eb32['index'])return;_0xa60bd=_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x24')](_0x11582c['model']['createPositionBefore'](_0x22eb32[_0x1ec9('0x7')](0x0)),_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x40')](_0x3f981e['getChild'](_0x3f981e['childCount']-0x1)));}else{const _0x593293=_0x5194ef[_0x1ec9('0x7')](_0x4d10fd-0x1);if(!_0x593293)return;_0xa60bd=_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x24')](_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x8')](_0x3f981e[_0x1ec9('0x7')](0x0)),_0x11582c['model']['createPositionAfter'](_0x593293[_0x1ec9('0x7')](_0x593293[_0x1ec9('0x45')]-0x1)));}_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x28')](()=>{_0x2f8d48[_0x1ec9('0x43')](_0xa60bd,{'commandName':_0x1ec9('0x25'),'commandParams':[{'forceValue':_0x344bac}]},[],_0x1ec9('0x25'));});}),_0x2f8d48[_0x1ec9('0x23')](_0x1ec9('0x49'),(_0x2eda07,_0x4151fc)=>{const _0x2b0d5a=_0x11582c[_0x1ec9('0x3')][_0x1ec9('0x3a')]('TableUtils'),_0x3eb882=_0x2b0d5a['getSelectionAffectedTableCells'](_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x2e')]['selection']),_0x1b5dd5=_0x2b0d5a[_0x1ec9('0x46')](_0x3eb882),_0x16db70=_0x3eb882[0x0][_0x1ec9('0x1c')](_0x1ec9('0x5')),_0x53e3ac=_0x16db70[_0x1ec9('0x36')](_0x1ec9('0x21'))||0x0,_0x295e1e=_0x4151fc&&null!==_0x4151fc[_0x1ec9('0x16')]?_0x4151fc[_0x1ec9('0x16')]:!_0x11582c[_0x1ec9('0x47')]['get'](_0x1ec9('0x49'))['value'];let _0x541396;const _0x3ef4e9=_0x16db70[_0x1ec9('0x7')](0x0),_0x105c8e=_0x295e1e?_0x1b5dd5[_0x1ec9('0x13')]:_0x1b5dd5[_0x1ec9('0x42')],_0x5dbe6e=_0x2b0d5a[_0x1ec9('0x4')](_0x16db70,{'startRow':0x0,'column':_0x105c8e,'includeAllSlots':!0x1}),_0x3590ca=Array[_0x1ec9('0x3c')](_0x5dbe6e)[0x0]['cell'];if(_0x295e1e){const _0x47a879=_0x3ef4e9[_0x1ec9('0x7')](_0x53e3ac);if(_0x3590ca['isBefore'](_0x47a879))return;_0x541396=_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x24')](_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x8')](_0x47a879),_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x40')](_0x3590ca));}else{const _0xa98ae8=_0x3ef4e9[_0x1ec9('0x7')](_0x53e3ac-0x1);if(!_0xa98ae8)return;_0x541396=_0x11582c['model']['createRange'](_0x11582c['model']['createPositionBefore'](_0x3590ca),_0x11582c['model'][_0x1ec9('0x40')](_0xa98ae8));}_0x11582c[_0x1ec9('0xb')][_0x1ec9('0x28')](()=>{_0x2f8d48[_0x1ec9('0x43')](_0x541396,{'commandName':_0x1ec9('0x49'),'commandParams':[{'forceValue':_0x295e1e}]},[],_0x1ec9('0x49'));});}),_0x11582c['editing'][_0x1ec9('0x37')]['on'](_0x1ec9('0x6'),_0x5adb04(),{'priority':_0x1ec9('0x12')}),_0x11582c['data'][_0x1ec9('0x37')]['on'](_0x1ec9('0x6'),(_0x70e72d,_0x212717,_0x2f4bde)=>{_0x2f4bde[_0x1ec9('0x44')][_0x1ec9('0xe')]&&_0x5adb04({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x70e72d,_0x212717,_0x2f4bde);},{'priority':_0x1ec9('0x12')}),_0x11582c['editing'][_0x1ec9('0x37')]['on']('removeMarker:suggestion',(_0x218f21,_0x5d92ff,_0x282e9b)=>{const {type:_0x212744,id:_0x5c012c}=_0x2f8d48[_0x1ec9('0x29')](_0x5d92ff['markerName']),_0x5cb573=_0x2f8d48[_0x1ec9('0x1f')](_0x5c012c);if(!_0x5cb573['data']||_0x1ec9('0x49')!=_0x5cb573[_0x1ec9('0x26')]['commandName'])return;const _0x2a332d=_0x282e9b[_0x1ec9('0xd')]['markerNameToElements'](_0x5d92ff['markerName']);if(_0x2a332d)for(const _0x1d9258 of _0x2a332d)_0x282e9b[_0x1ec9('0x2c')]['removeClass']('ck-suggestion-marker-'+_0x212744,_0x1d9258),_0x282e9b[_0x1ec9('0x2c')]['removeClass']('ck-suggestion-marker--active',_0x1d9258),_0x282e9b['writer']['removeAttribute'](_0x1ec9('0x48'),_0x1d9258),_0x282e9b[_0x1ec9('0xd')]['unbindElementFromMarkerName'](_0x1d9258,_0x5d92ff['markerName']);},{'priority':_0x1ec9('0x12')}),_0x2f8d48[_0x1ec9('0x31')][_0x1ec9('0x4a')](_0x4ab384=>{const {data:_0x3a4e89}=_0x4ab384;if(_0x3a4e89){if(_0x1ec9('0x25')==_0x3a4e89['commandName']){const _0x2f74e8=_0x3a4e89['commandParams'][0x0][_0x1ec9('0x16')];return _0x37fadc(_0x473ff6(_0x7365ba,_0x2f74e8?_0x1ec9('0x41'):'FORMAT_REGULAR_ROW'));}if(_0x1ec9('0x49')==_0x3a4e89[_0x1ec9('0x33')]){const _0x418849=_0x3a4e89['commandParams'][0x0]['forceValue'];return _0x37fadc(_0x473ff6(_0x7365ba,_0x418849?_0x1ec9('0x22'):_0x1ec9('0x2b')));}}function _0x37fadc(_0xa4d9b7){return{'type':_0x1ec9('0xf'),'content':_0x473ff6(_0x7365ba,'*Format:*\x20%0',_0xa4d9b7)};}});const _0x2a640f=_0x268af9[_0x1ec9('0x1b')]();_0x2f8d48[_0x1ec9('0x38')][_0x1ec9('0x3b')]('formatBlock',_0x1ec9('0x25'),_0x1ec9('0x30'),_0x2a640f),_0x2f8d48[_0x1ec9('0x38')][_0x1ec9('0x3b')](_0x1ec9('0x35'),_0x1ec9('0x49'),_0x1ec9('0x30'),_0x2a640f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5910=['_descriptionFactory','model','_tablePostFixingSubtypes','TableEditing','mergeTableCellRight','cell','createRangeOn','format','fromRange','registerDescriptionCallback','mergeTableCellUp','createTableWalker','push','insertion','document','splitTableCellVertically','editor','$graveyard','_areSelectedCellsMergable','map','find','direction','deletion','getFirstPosition','commandName','set:isEnabled','execute','TableUtils','plugins','*Split\x20cell:*\x20vertically','stop','*Merge\x20cells*','formatBlock','horizontally','element','value','detach','TrackChangesEditing','findAncestor','*Split\x20cell:*\x20horizontally','markMultiRangeBlockFormat','subType','mergeTableCellDown','length','forceDefaultExecution','mergeTableCells','getSuggestions','commands','has','markBlockFormat','from','filter','enableCommand','containsRange','accept','locale','_suggestionFactory','selection','rootName','isEnabled','registerCustomCallback','author','add','type','_acceptFormatSuggestionCallbackFactory','get','splitTableCellHorizontally','setSelection','change','table','getSelectionAffectedTableCells','tableCell','mergeTableCellLeft','size','getRanges','_isForcedDefaultExecutionBlock'];(function(_0x559458,_0x591095){const _0x13bb0f=function(_0x55760b){while(--_0x55760b){_0x559458['push'](_0x559458['shift']());}};_0x13bb0f(++_0x591095);}(_0x5910,0x1cb));const _0x13bb=function(_0x559458,_0x591095){_0x559458=_0x559458-0x0;let _0x13bb0f=_0x5910[_0x559458];return _0x13bb0f;};import{Plugin as _0x37ab41}from'ckeditor5/src/core';import _0x522c26 from'./table';import{LiveRange as _0x2ab4ee}from'ckeditor5/src/engine';import{getTranslation as _0x591b62}from'../utils/common-translations';export default class mt extends _0x37ab41{static get['requires'](){return[_0x522c26];}['afterInit'](){const _0x53673f=this[_0x13bb('0xd')],_0x427a4b=_0x53673f[_0x13bb('0x4a')]['document'][_0x13bb('0x36')],_0x576ca4=_0x53673f[_0x13bb('0x34')];if(!_0x53673f[_0x13bb('0x19')][_0x13bb('0x2d')](_0x13bb('0x0')))return;const _0x10f6e2=_0x53673f['plugins'][_0x13bb('0x3e')](_0x13bb('0x22')),_0x5c3367=_0x53673f[_0x13bb('0x19')]['get']('TableUtils'),_0x13f70f=_0x53673f[_0x13bb('0x19')]['get'](_0x522c26);_0x13f70f[_0x13bb('0x4b')][_0x13bb('0x9')](_0x13bb('0x2a')),_0x10f6e2['enableCommand'](_0x13bb('0x2a'),()=>{const _0x24983=_0x5c3367[_0x13bb('0x43')](_0x53673f[_0x13bb('0x4a')]['document'][_0x13bb('0x36')]);_0x53673f['model'][_0x13bb('0x41')](()=>{_0x10f6e2[_0x13bb('0x25')](_0x24983,{'commandName':_0x13bb('0x2a'),'commandParams':[]},[],_0x13bb('0x2a'));});}),_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')](_0x13bb('0x2a'))['on'](_0x13bb('0x17'),(_0x373ede,_0x5dfbdf)=>{_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')]('trackChanges')[_0x13bb('0x20')]&&(_0x5dfbdf[_0x13bb('0x28')]>0x0&&_0x5dfbdf[_0x5dfbdf[_0x13bb('0x28')]-0x1]&&_0x5dfbdf[_0x5dfbdf[_0x13bb('0x28')]-0x1][_0x13bb('0x29')]||_0x10f6e2[_0x13bb('0x48')]||this[_0x13bb('0xf')]()||_0x373ede[_0x13bb('0x1b')]());},{'priority':'highest'});for(const _0x59acfe of['mergeTableCellUp','mergeTableCellRight',_0x13bb('0x27'),_0x13bb('0x45')]){const _0x2a65fd=_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')](_0x59acfe);_0x10f6e2[_0x13bb('0x31')](_0x59acfe,()=>{const _0x1e584a=_0x53673f[_0x13bb('0x4a')]['document'][_0x13bb('0x36')]['getFirstPosition']()['getAncestors']()[_0x13bb('0x11')](_0x1e4850=>_0x1e4850['is'](_0x13bb('0x1f'),_0x13bb('0x44'))),_0x499e08=_0x2a65fd[_0x13bb('0x20')];_0x53673f['model'][_0x13bb('0x41')](()=>{_0x10f6e2[_0x13bb('0x25')]([_0x1e584a,_0x499e08],{'commandName':'mergeTableCells','commandParams':[]},[],_0x13bb('0x2a'));});});}for(const _0x58d6b4 of[_0x13bb('0xc'),_0x13bb('0x3f')]){const _0x19923c=_0x53673f[_0x13bb('0x2c')]['get'](_0x58d6b4);_0x10f6e2[_0x13bb('0x31')](_0x58d6b4,()=>{const _0x5d8578=_0x5c3367['getSelectionAffectedTableCells'](_0x53673f[_0x13bb('0x4a')]['document']['selection'])[0x0],_0x4a13a9=_0x5d8578[_0x13bb('0x23')](_0x13bb('0x42')),{column:_0x472c7d,row:_0x1634b2}=_0x5c3367['getCellLocation'](_0x5d8578);let _0x3c4da0=[];if(_0x13bb('0x1e')==_0x19923c[_0x13bb('0x12')]){const _0x3e8f00=_0x5c3367[_0x13bb('0x8')](_0x4a13a9,{'startRow':_0x1634b2,'endRow':_0x1634b2,'includeAllSlots':!0x0});_0x3c4da0=Array[_0x13bb('0x2f')](_0x3e8f00)[_0x13bb('0x10')](_0x5137b9=>_0x5137b9[_0x13bb('0x2')]);}else{const _0x544e97=_0x5c3367[_0x13bb('0x8')](_0x4a13a9,{'column':_0x472c7d,'includeAllSlots':!0x0});_0x3c4da0=Array[_0x13bb('0x2f')](_0x544e97)[_0x13bb('0x10')](_0x26120e=>_0x26120e['cell']);}_0x53673f[_0x13bb('0x4a')][_0x13bb('0x41')](_0x5ea129=>{_0x10f6e2[_0x13bb('0x2e')](_0x5ea129[_0x13bb('0x3')](_0x5d8578),{'commandName':_0x58d6b4,'commandParams':[]},_0x3c4da0,_0x58d6b4);});});}_0x10f6e2[_0x13bb('0x49')][_0x13bb('0x6')](_0x33dfcb=>{const {data:_0x25cf3e}=_0x33dfcb;if(_0x25cf3e)return _0x13bb('0x2a')==_0x25cf3e['commandName']?{'type':'format','content':_0x591b62(_0x576ca4,_0x13bb('0x1c'))}:void 0x0;}),_0x10f6e2[_0x13bb('0x49')][_0x13bb('0x6')](_0x52af98=>{const {data:_0x2c6b34}=_0x52af98;if(_0x2c6b34)return'splitTableCellVertically'==_0x2c6b34['commandName']?{'type':_0x13bb('0x4'),'content':_0x591b62(_0x576ca4,_0x13bb('0x1a'))}:_0x13bb('0x3f')==_0x2c6b34[_0x13bb('0x15')]?{'type':_0x13bb('0x4'),'content':_0x591b62(_0x576ca4,_0x13bb('0x24'))}:void 0x0;});const _0x1d0dab=_0x13f70f[_0x13bb('0x3d')]();for(const _0x37405b of[_0x13bb('0x7'),_0x13bb('0x1'),_0x13bb('0x27'),'mergeTableCellLeft'])_0x10f6e2[_0x13bb('0x35')][_0x13bb('0x39')](_0x13bb('0x1d'),_0x37405b,_0x13bb('0x33'),_0x1d0dab);for(const _0x2cc253 of[_0x13bb('0xc'),_0x13bb('0x3f')])_0x10f6e2[_0x13bb('0x35')][_0x13bb('0x39')](_0x13bb('0x1d'),_0x2cc253,'accept',_0x1d0dab);_0x10f6e2[_0x13bb('0x35')]['registerCustomCallback'](_0x13bb('0x1d'),_0x13bb('0x2a'),_0x13bb('0x33'),_0x2d89eb=>{_0x53673f[_0x13bb('0x4a')][_0x13bb('0x41')](_0x3d75f7=>{const _0x4214eb=Array['from'](_0x427a4b['getRanges']())['map'](_0x1a1056=>_0x2ab4ee[_0x13bb('0x5')](_0x1a1056));_0x3d75f7[_0x13bb('0x40')](_0x2d89eb),_0x53673f[_0x13bb('0x2c')][_0x13bb('0x3e')]('mergeTableCells')['refresh'](),_0x53673f[_0x13bb('0x17')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b50b2=_0x4214eb[_0x13bb('0x30')](_0x2207ab=>_0x13bb('0xe')!=_0x2207ab['root'][_0x13bb('0x37')]);_0x1b50b2[_0x13bb('0x28')]>0x0&&_0x3d75f7['setSelection'](_0x1b50b2);for(const _0x35a7f6 of _0x4214eb)_0x35a7f6[_0x13bb('0x21')]();});});for(const _0x27c90a of['mergeTableCellUp',_0x13bb('0x27'),_0x13bb('0x45'),_0x13bb('0x1')]){const _0x105ce=_0x53673f['commands'][_0x13bb('0x3e')](_0x27c90a);_0x105ce['on'](_0x13bb('0x16'),(_0x131c87,_0x20bd90,_0x5df123)=>{if(_0x5df123){const _0x117ed4=_0x53673f[_0x13bb('0x4a')][_0x13bb('0xb')]['selection'][_0x13bb('0x14')]()['getAncestors']()['find'](_0x21aea1=>_0x21aea1['is'](_0x13bb('0x1f'),'tableCell'));this['_areMergableCells'](_0x105ce[_0x13bb('0x20')],_0x117ed4)||(_0x131c87['return']=!0x1,_0x131c87[_0x13bb('0x1b')]());}},{'priority':'low'});}}[_0x13bb('0xf')](){const _0x3943ee=this['editor']['commands'][_0x13bb('0x3e')](_0x13bb('0x2a')),_0x322eb2=this['editor'][_0x13bb('0x19')][_0x13bb('0x3e')](_0x13bb('0x18'));if(!_0x3943ee[_0x13bb('0x38')])return!0x1;const _0x1f96e6=_0x322eb2['getSelectionAffectedTableCells'](this[_0x13bb('0xd')][_0x13bb('0x4a')][_0x13bb('0xb')][_0x13bb('0x36')]);for(const _0x46613f of _0x1f96e6)for(const _0x5a2070 of _0x1f96e6)if(_0x46613f!=_0x5a2070&&!this['_areMergableCells'](_0x46613f,_0x5a2070))return!0x1;return!0x0;}['_areMergableCells'](_0x22cf50,_0xc82f2e){const _0x27c6bd=this[_0x13bb('0xd')][_0x13bb('0x19')][_0x13bb('0x3e')](_0x13bb('0x22')),_0x8df74b=this[_0x13bb('0xd')]['model']['createRangeOn'](_0x22cf50),_0x3117e8=this[_0x13bb('0xd')][_0x13bb('0x4a')][_0x13bb('0x3')](_0xc82f2e),_0x31b477=new Set(),_0x2aa5f8=new Set();for(const _0x53e03d of _0x27c6bd[_0x13bb('0x2b')]())if((_0x13bb('0xa')==_0x53e03d[_0x13bb('0x3c')]||_0x13bb('0x13')==_0x53e03d[_0x13bb('0x3c')]||'mergeTableCells'==_0x53e03d[_0x13bb('0x26')])&&_0x53e03d['isInContent'])for(const _0x35bf7f of _0x53e03d[_0x13bb('0x47')]())_0x35bf7f[_0x13bb('0x32')](_0x8df74b,!0x0)&&_0x31b477[_0x13bb('0x3b')](_0x53e03d['type']+':'+_0x53e03d['author']['id']),_0x35bf7f[_0x13bb('0x32')](_0x3117e8,!0x0)&&_0x2aa5f8['add'](_0x53e03d[_0x13bb('0x3c')]+':'+_0x53e03d[_0x13bb('0x3a')]['id']);if(_0x31b477[_0x13bb('0x46')]!=_0x2aa5f8['size'])return!0x1;for(const _0x51567f of _0x31b477)if(!_0x2aa5f8['has'](_0x51567f))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ba7=['join','registerCustomCallback','tableCellProperties','enableCommand','_suggestionFactory','tableCellPadding','removeAttribute','tableCellVerticalAlignment','TableCellPropertiesEditing','_handlePropertyChange','tableHeight','tableBackgroundColor','handleDiscardAction','tableAlignment','TrackChangesTableProperties','tableCellBorderWidth','data','format','enqueueChange','editor','_getSuggestion','tableCellHorizontalAlignment','tableBorderColor','start','tableCellBorderColor','getAttribute','getSuggestionCallback','getContainedElement','pluginName','plugins','commandParams','getFirstPosition','discard','afterInit','table','*Format:*\x20change\x20table\x20cell\x20properties','setAttribute','handleSuggestionDescription','tableProperties','selection','getSelectionAffectedTableCells','TablePropertiesEditing','change','model','*Format:*\x20change\x20table\x20properties','findAncestor','tableBorderWidth','get','TableUtils','has','subType','TrackChangesEditing','getSuggestions','accept','registerDescriptionCallback','formatBlock','tableWidth','locale','tableCellHeight','tableCellWidth','document'];(function(_0x5063a4,_0x4ba720){const _0x4df3af=function(_0x4b051d){while(--_0x4b051d){_0x5063a4['push'](_0x5063a4['shift']());}};_0x4df3af(++_0x4ba720);}(_0x4ba7,0x1b6));const _0x4df3=function(_0x5063a4,_0x4ba720){_0x5063a4=_0x5063a4-0x0;let _0x4df3af=_0x4ba7[_0x5063a4];return _0x4df3af;};import{Plugin as _0x3e56b8}from'ckeditor5/src/core';import{getTranslation as _0x37477f}from'../utils/common-translations';export default class It extends _0x3e56b8{constructor(_0x2e3371){super(_0x2e3371),this[_0x4df3('0x1b')]=[_0x4df3('0xb'),'tableBorderStyle',_0x4df3('0x23'),_0x4df3('0x2'),_0x4df3('0x2d'),_0x4df3('0x3c'),_0x4df3('0x0')],this[_0x4df3('0x34')]=[_0x4df3('0xd'),'tableCellBorderStyle',_0x4df3('0x4'),_0x4df3('0x37'),_0x4df3('0x30'),_0x4df3('0x2f'),'tableCellBackgroundColor',_0x4df3('0xa'),_0x4df3('0x39')];}static get[_0x4df3('0x11')](){return _0x4df3('0x3');}[_0x4df3('0x16')](){const _0x203bfd=this[_0x4df3('0x8')][_0x4df3('0x12')][_0x4df3('0x24')](_0x4df3('0x28'));if(this[_0x4df3('0x8')][_0x4df3('0x12')]['has'](_0x4df3('0x1e'))){for(const _0x248990 of this[_0x4df3('0x1b')])_0x203bfd[_0x4df3('0x35')](_0x248990,(_0x11fd8c,_0x4a897a)=>{const _0x4fd53a=this[_0x4df3('0x8')][_0x4df3('0x20')][_0x4df3('0x31')][_0x4df3('0x1c')][_0x4df3('0x14')]()[_0x4df3('0x22')](_0x4df3('0x17'));this['_handlePropertyChange'](_0x248990,[_0x4fd53a],this['tableProperties'],_0x4df3('0x1b'),_0x11fd8c,_0x4a897a);});_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')](_0x4df3('0x2c'),_0x4df3('0x1b'),_0x4df3('0x2a'),_0x203bfd['_suggestionFactory']['getSuggestionCallback'](_0x4df3('0x2c'),null,_0x4df3('0x15'))),_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')]('formatBlock',_0x4df3('0x1b'),_0x4df3('0x15'),(_0xaf72a0,_0x355253)=>this[_0x4df3('0x1')](this[_0x4df3('0x1b')],_0xaf72a0,_0x355253)),_0x203bfd[_0x4df3('0x36')]['registerCustomCallback'](_0x4df3('0x2c'),_0x4df3('0x1b'),_0x4df3('0x32'),()=>!0x1);}if(this['editor'][_0x4df3('0x12')][_0x4df3('0x26')](_0x4df3('0x3a'))){for(const _0x33554e of this['tableCellProperties'])_0x203bfd[_0x4df3('0x35')](_0x33554e,(_0x4ca592,_0x5a7edb)=>{const _0x196404=this[_0x4df3('0x8')][_0x4df3('0x12')]['get'](_0x4df3('0x25'))[_0x4df3('0x1d')](this[_0x4df3('0x8')]['model']['document']['selection']);this[_0x4df3('0x3b')](_0x33554e,_0x196404,this['tableCellProperties'],_0x4df3('0x34'),_0x4ca592,_0x5a7edb);});_0x203bfd[_0x4df3('0x36')]['registerCustomCallback'](_0x4df3('0x2c'),_0x4df3('0x34'),_0x4df3('0x2a'),_0x203bfd[_0x4df3('0x36')][_0x4df3('0xf')](_0x4df3('0x2c'),null,_0x4df3('0x15'))),_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')](_0x4df3('0x2c'),'tableCellProperties',_0x4df3('0x15'),(_0x14414f,_0x472364)=>this[_0x4df3('0x1')](this[_0x4df3('0x34')],_0x14414f,_0x472364)),_0x203bfd['_suggestionFactory'][_0x4df3('0x33')](_0x4df3('0x2c'),'tableCellProperties','join',()=>!0x1);}_0x203bfd['_descriptionFactory'][_0x4df3('0x2b')](_0x597ca1=>this['handleSuggestionDescription'](_0x597ca1));}[_0x4df3('0x3b')](_0x1fc7b5,_0x5c65e2,_0x20b061,_0x4b97a4,_0x410588,_0x46c70b){const _0x2e06ed=this[_0x4df3('0x8')]['plugins'][_0x4df3('0x24')](_0x4df3('0x28'));this[_0x4df3('0x8')]['model'][_0x4df3('0x7')](_0x46c70b['batch'],()=>{for(const _0x20e304 of _0x5c65e2){if(this[_0x4df3('0x9')](_0x20e304,_0x4b97a4))_0x410588(_0x46c70b);else{const _0x24a8a0={};for(const _0x13fe9c of _0x20b061){const _0x1743c6=_0x20e304[_0x4df3('0xe')](_0x13fe9c);void 0x0!==_0x1743c6&&(_0x24a8a0[_0x13fe9c]=_0x1743c6);}_0x410588(_0x46c70b),_0x2e06ed['markBlockFormat'](_0x20e304,{'commandParams':[_0x24a8a0]},[],_0x4b97a4);}}});}['handleDiscardAction'](_0x30aa9b,_0x5f35a0,_0x401d37){const _0x325fba=_0x5f35a0[0x0][_0x4df3('0xc')]['nodeAfter'],_0x3df365=_0x401d37[_0x4df3('0x13')][0x0];this[_0x4df3('0x8')][_0x4df3('0x20')][_0x4df3('0x1f')](_0x4b545f=>{for(const _0x1c6a46 of _0x30aa9b)void 0x0!==_0x3df365[_0x1c6a46]?_0x4b545f[_0x4df3('0x19')](_0x1c6a46,_0x3df365[_0x1c6a46],_0x325fba):_0x4b545f[_0x4df3('0x38')](_0x1c6a46,_0x325fba);});}[_0x4df3('0x1a')](_0xdb6fdc){if(_0xdb6fdc[_0x4df3('0x5')])switch(_0xdb6fdc[_0x4df3('0x27')]){case _0x4df3('0x1b'):return{'type':_0x4df3('0x6'),'content':_0x37477f(this['editor'][_0x4df3('0x2e')],_0x4df3('0x21'))};case _0x4df3('0x34'):return{'type':_0x4df3('0x6'),'content':_0x37477f(this[_0x4df3('0x8')][_0x4df3('0x2e')],_0x4df3('0x18'))};}}['_getSuggestion'](_0x26dfc6,_0x153e98){const _0x4372bc=this[_0x4df3('0x8')]['plugins']['get']('TrackChangesEditing');for(const _0x113783 of _0x4372bc[_0x4df3('0x29')]({'skipNotAttached':!0x0})){const _0x1e58bf=_0x113783[_0x4df3('0x10')]();if(_0x113783[_0x4df3('0x27')]===_0x153e98&&_0x1e58bf===_0x26dfc6)return _0x113783;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d6c=['element','registerPostFixer','registerElementLabel','ELEMENT_TITLE','_splitMarkerName','get','differ','start','isTouching','TrackChangesEditing','nodeBefore','_descriptionFactory','document','locale','model','from','title-content','Title','removeMarker','isCollapsed','editor','getNearestSelectionRange','schema','getChangedMarkers','newRange','plugins','end','afterInit'];(function(_0x4a4851,_0x1d6cb4){const _0x5a0296=function(_0x29d626){while(--_0x29d626){_0x4a4851['push'](_0x4a4851['shift']());}};_0x5a0296(++_0x1d6cb4);}(_0x1d6c,0x77));const _0x5a02=function(_0x4a4851,_0x1d6cb4){_0x4a4851=_0x4a4851-0x0;let _0x5a0296=_0x1d6c[_0x4a4851];return _0x5a0296;};import{Plugin as _0x1148de}from'ckeditor5/src/core';import{getTranslation as _0x3b4727}from'../utils/common-translations';export default class wt extends _0x1148de{[_0x5a02('0x14')](){const _0x19c741=this[_0x5a02('0xd')];if(!_0x19c741[_0x5a02('0x12')]['has'](_0x5a02('0xa')))return;const _0x7b4f40=_0x19c741[_0x5a02('0x12')][_0x5a02('0x1a')](_0x5a02('0x2'));_0x7b4f40[_0x5a02('0x4')][_0x5a02('0x17')](_0x5a02('0x9'),()=>_0x3b4727(_0x19c741[_0x5a02('0x6')],_0x5a02('0x18'))),_0x19c741[_0x5a02('0x7')]['document'][_0x5a02('0x16')](_0x54995b=>{let _0x58018b=!0x1;const _0x35d0db=Array[_0x5a02('0x8')](_0x19c741[_0x5a02('0x7')][_0x5a02('0x5')][_0x5a02('0x1b')][_0x5a02('0x10')]());for(const {name:_0x62360d,data:_0x42e677}of _0x35d0db){const {group:_0x24d2d3}=_0x7b4f40[_0x5a02('0x19')](_0x62360d);if('suggestion'!==_0x24d2d3||!_0x42e677['newRange'])continue;const _0x22456e=_0x42e677[_0x5a02('0x11')],_0x148568=_0x22456e[_0x5a02('0x13')][_0x5a02('0x3')];if(!_0x148568||!_0x148568['is'](_0x5a02('0x15'),_0x5a02('0x9')))continue;if(!_0x22456e['start'][_0x5a02('0x1')](_0x22456e[_0x5a02('0x13')]))continue;const _0x4bf1d6=_0x19c741[_0x5a02('0x7')][_0x5a02('0xf')][_0x5a02('0xe')](_0x22456e[_0x5a02('0x13')],'forward');if(_0x4bf1d6&&_0x4bf1d6[_0x5a02('0xc')]){const _0x5e8162=_0x54995b['createRange'](_0x22456e[_0x5a02('0x0')],_0x4bf1d6[_0x5a02('0x0')]);_0x5e8162['isEqual'](_0x22456e)||(_0x54995b['updateMarker'](_0x62360d,{'range':_0x5e8162}),_0x58018b=!0x0);}_0x58018b||(_0x54995b[_0x5a02('0xb')](_0x62360d),_0x58018b=!0x0);}return _0x58018b;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa766=['enableCommand','plugins','TrackChangesEditing','UndoEditing','undo','afterInit','get','editor'];(function(_0x15f101,_0xa7663a){const _0x59889f=function(_0x3968e3){while(--_0x3968e3){_0x15f101['push'](_0x15f101['shift']());}};_0x59889f(++_0xa7663a);}(_0xa766,0xc0));const _0x5988=function(_0x15f101,_0xa7663a){_0x15f101=_0x15f101-0x0;let _0x59889f=_0xa766[_0x15f101];return _0x59889f;};import{Plugin as _0x5bddb8}from'ckeditor5/src/core';export default class yt extends _0x5bddb8{[_0x5988('0x5')](){const _0x24a53e=this[_0x5988('0x7')],_0x205917=_0x24a53e['plugins'][_0x5988('0x6')](_0x5988('0x2'));_0x24a53e[_0x5988('0x1')]['has'](_0x5988('0x3'))&&(_0x205917[_0x5988('0x0')](_0x5988('0x4')),_0x205917['enableCommand']('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1edc=['span','isBlock','listItem','createUIElement','getAttribute','ck-suggestion-marker-','markerName','TrackChangesEditing','get','includes','toViewElement','isLimit','insert','createRangeOn','previousPosition','listIndent','parent','writer','consumable','mapper','isContent','name','item','bindElementToMarker','nextSibling','push','ck-suggestion-marker--active','plugins','toViewPosition','test','markerRange','getItems','type','activeMarkers','element'];(function(_0x26e2a7,_0x1edc98){const _0x7b5ffe=function(_0x161ca6){while(--_0x161ca6){_0x26e2a7['push'](_0x26e2a7['shift']());}};_0x7b5ffe(++_0x1edc98);}(_0x1edc,0x107));const _0x7b5f=function(_0x26e2a7,_0x1edc98){_0x26e2a7=_0x26e2a7-0x0;let _0x7b5ffe=_0x1edc[_0x26e2a7];return _0x7b5ffe;};export function getRangesWithAttribute(_0x1deeaa,_0x169755,_0x374149){const _0x5dec77=[];for(const _0x378237 of _0x169755[_0x7b5f('0xd')]())_0x378237['hasAttribute'](_0x1deeaa)&&_0x5dec77[_0x7b5f('0x7')](_0x374149[_0x7b5f('0x1e')](_0x378237));return _0x5dec77;}export function getElementsAffectedByListItemRename(_0x219a86){const _0x184814=[];if(_0x219a86['is'](_0x7b5f('0x10'),_0x7b5f('0x13'))){let _0x4c68d5=_0x219a86['nextSibling'];for(;_0x4c68d5&&_0x4c68d5['is'](_0x7b5f('0x10'),'listItem')&&_0x4c68d5[_0x7b5f('0x15')](_0x7b5f('0x20'))>0x0;)_0x184814['push'](_0x4c68d5),_0x4c68d5=_0x4c68d5[_0x7b5f('0x6')];}return _0x184814;}export function downcastSplitMergeMarker(_0x1f5f2d,_0x4624b8,{showActiveMarker:_0x182060=!0x0}={}){const _0x39981c=_0x1f5f2d[_0x7b5f('0x9')][_0x7b5f('0x19')](_0x7b5f('0x18'));return(_0x28555b,_0x518706,_0x3a8a43)=>{if(!_0x3a8a43[_0x7b5f('0x0')][_0x7b5f('0xb')](_0x518706[_0x7b5f('0xc')],_0x28555b[_0x7b5f('0x3')]))return;const _0x1b1f83=_0x518706[_0x7b5f('0xc')]['getWalker'](),_0x3c7211=_0x518706[_0x7b5f('0xc')]['start'],_0x4fee0a=_0x1f5f2d['model']['schema'];let _0x1c6edb=null,_0x1608c6=null,_0x1aff7b=!0x1,_0x408d3a=!0x1;for(const _0x2aad85 of _0x1b1f83){const _0x4bb188=_0x2aad85[_0x7b5f('0x4')];_0x1aff7b=_0x1aff7b||_0x4fee0a[_0x7b5f('0x2')](_0x4bb188);const _0x4b0ea4=_0x3a8a43['mapper'][_0x7b5f('0x1b')](_0x4bb188);if(_0x4b0ea4&&_0x4b0ea4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2aad85[_0x7b5f('0xe')]&&(_0x4fee0a[_0x7b5f('0x12')](_0x4bb188)&&!_0x4fee0a[_0x7b5f('0x1c')](_0x4bb188)&&(_0x4bb188['nextSibling']||_0x3c7211['isAtEnd']?_0x1c6edb&&_0x1c6edb[_0x7b5f('0x21')]==_0x4bb188||(_0x1c6edb=_0x4bb188,_0x5444aa(_0x2aad85[_0x7b5f('0x1f')]),_0x408d3a=!0x0):_0x1608c6=_0x1608c6||_0x2aad85[_0x7b5f('0x1f')]));}function _0x5444aa(_0x25a46b){const _0x215bb7=_0x3a8a43[_0x7b5f('0x22')][_0x7b5f('0x14')](_0x7b5f('0x11'),{'class':_0x7b5f('0x16')+_0x4624b8}),_0x26e694=_0x3a8a43[_0x7b5f('0x1')][_0x7b5f('0xa')](_0x25a46b);_0x182060&&_0x39981c[_0x7b5f('0xf')][_0x7b5f('0x1a')](_0x518706[_0x7b5f('0x17')])&&_0x3a8a43[_0x7b5f('0x22')]['addClass'](_0x7b5f('0x8'),_0x215bb7),_0x3a8a43[_0x7b5f('0x22')][_0x7b5f('0x1d')](_0x26e694,_0x215bb7),_0x3a8a43[_0x7b5f('0x1')][_0x7b5f('0x5')](_0x215bb7,_0x518706[_0x7b5f('0x17')]);}_0x1aff7b||_0x408d3a||!_0x1608c6||_0x5444aa(_0x1608c6);};}
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f35=['push','accept','head','discard','createdAt','getMarkers','getMarkerNames','_saved','getContainedElement','onAccept','_onAccept','previous','isMultiRange','getAllAdjacentSuggestions','delete','nodeAfter','_onDiscard','removeAttribute','removeMarkers','author','attributes','clear','decorate','addMarker','removeMarker','creator','setAttribute','change','markers','authoredAt','size','getRanges','data','hasComments','reduce','subType','toJSON','map','filter','isInContent','add','getMultiRangeId','isIntersecting','addMarkerName','addRange','nodeBefore','getFirstMarker','set','onAttributesChange','getItems','_markerNames','length','getRange','commentThread','from','type','isIntersectingWithRange','_model','_onAttributesChange','onDiscard'];(function(_0x164fb6,_0x2f354a){const _0x3ff9b4=function(_0x5e25fc){while(--_0x5e25fc){_0x164fb6['push'](_0x164fb6['shift']());}};_0x3ff9b4(++_0x2f354a);}(_0x2f35,0xc1));const _0x3ff9=function(_0x164fb6,_0x2f354a){_0x164fb6=_0x164fb6-0x0;let _0x3ff9b4=_0x2f35[_0x164fb6];return _0x3ff9b4;};import{Element as _0x732472}from'ckeditor5/src/engine';import{ObservableMixin as _0x357297,uid as _0x43d692}from'ckeditor5/src/utils';import{cloneDeep as _0x30a10f,isEqual as _0x3c7654,set as _0x395f0d,unset as _0x313dce}from'lodash-es';export default class u extends _0x357297(){constructor(_0x339feb,_0x2f99f5){super(),this['id']=_0x2f99f5['id'],this[_0x3ff9('0x2a')]=_0x2f99f5[_0x3ff9('0x2a')],this[_0x3ff9('0x16')]=_0x2f99f5[_0x3ff9('0x16')]||null,this[_0x3ff9('0x6')]=_0x2f99f5['author'],this['creator']=_0x2f99f5['creator']||_0x2f99f5['author'],this['isExternal']=Boolean(_0x2f99f5[_0x3ff9('0x7')]&&_0x2f99f5[_0x3ff9('0x7')]['@external']),this[_0x3ff9('0x13')]=null,this['_model']=_0x339feb,this['_onAccept']=_0x2f99f5[_0x3ff9('0x38')],this[_0x3ff9('0x3')]=_0x2f99f5[_0x3ff9('0x2e')],this[_0x3ff9('0x2d')]=_0x2f99f5[_0x3ff9('0x23')],this['_markerNames']=new Set(),this['createdAt']=null,this['set'](_0x3ff9('0x10'),null),this[_0x3ff9('0x22')]('attributes',_0x2f99f5['attributes']||{}),this[_0x3ff9('0x22')](_0x3ff9('0x3a'),null),this[_0x3ff9('0x22')]('next',null),this[_0x3ff9('0x22')](_0x3ff9('0x28'),null),this[_0x3ff9('0x22')](_0x3ff9('0x36'),!0x1),this['decorate'](_0x3ff9('0x30')),this[_0x3ff9('0x9')](_0x3ff9('0x32'));}get['head'](){let _0x4d388b=this;for(;_0x4d388b[_0x3ff9('0x3a')];)_0x4d388b=_0x4d388b[_0x3ff9('0x3a')];return _0x4d388b;}get[_0x3ff9('0x14')](){return!!this[_0x3ff9('0x28')]&&this[_0x3ff9('0x28')][_0x3ff9('0x26')]>0x0;}get[_0x3ff9('0x3b')](){if(0x0==this[_0x3ff9('0x25')][_0x3ff9('0x11')])return!0x1;return 0x6==Array[_0x3ff9('0x29')](this[_0x3ff9('0x25')])[0x0]['split'](':')[_0x3ff9('0x26')];}get[_0x3ff9('0x1a')](){return null!==this['getFirstMarker']();}[_0x3ff9('0x1e')](_0x36ae12){this[_0x3ff9('0x25')][_0x3ff9('0x1b')](_0x36ae12);}[_0x3ff9('0x35')](){return Array[_0x3ff9('0x29')](this[_0x3ff9('0x25')]);}['getMarkers'](){return this[_0x3ff9('0x35')]()[_0x3ff9('0x18')](_0x401243=>this[_0x3ff9('0x2c')][_0x3ff9('0xf')]['get'](_0x401243))[_0x3ff9('0x19')](_0x419c8a=>_0x419c8a);}[_0x3ff9('0x21')](){return this[_0x3ff9('0x34')]()[0x0]||null;}[_0x3ff9('0x5')](){this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x2b2ac9=>{for(const _0x389dec of this['getMarkers']())_0x2b2ac9[_0x3ff9('0xb')](_0x389dec);}),this[_0x3ff9('0x25')][_0x3ff9('0x8')]();}[_0x3ff9('0xb')](_0x3f908b){this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x39e7d4=>{_0x39e7d4[_0x3ff9('0xb')](_0x3f908b);}),this['_markerNames'][_0x3ff9('0x1')](_0x3f908b);}[_0x3ff9('0x1f')](_0x1ac774){const _0x498f72='suggestion:'+this['type']+':'+this[_0x3ff9('0x16')]+':'+this['id']+':'+this[_0x3ff9('0xc')]['id']+':'+u[_0x3ff9('0x1c')]();this[_0x3ff9('0x1e')](_0x498f72),this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x513eb4=>{_0x513eb4[_0x3ff9('0xa')](_0x498f72,{'range':_0x1ac774,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3ff9('0x2b')](_0x237a89){for(const _0x4fc1af of this['getRanges']())if(_0x4fc1af[_0x3ff9('0x1d')](_0x237a89))return!0x0;return!0x1;}[_0x3ff9('0x12')](){return this[_0x3ff9('0x34')]()[_0x3ff9('0x18')](_0xd0683e=>_0xd0683e[_0x3ff9('0x27')]());}[_0x3ff9('0x24')](){return this[_0x3ff9('0x12')]()[_0x3ff9('0x15')]((_0x4d19ab,_0x47dc94)=>[..._0x4d19ab,..._0x47dc94[_0x3ff9('0x24')]()],[]);}['getFirstRange'](){var _0xcb7361;return(null===(_0xcb7361=this[_0x3ff9('0x21')]())||void 0x0===_0xcb7361?void 0x0:_0xcb7361[_0x3ff9('0x27')]())||null;}[_0x3ff9('0x37')](){const _0x5a26a0=this['getRanges']();if(0x1!=_0x5a26a0[_0x3ff9('0x26')])return null;const _0x31cf94=_0x5a26a0[0x0],_0x6b71bb=_0x31cf94['start'][_0x3ff9('0x2')],_0x377dec=_0x31cf94['end'][_0x3ff9('0x20')];return _0x6b71bb instanceof _0x732472?_0x6b71bb!=_0x377dec?null:_0x6b71bb:null;}['accept'](){this[_0x3ff9('0x39')](this['getRanges'](),this['data'],this[_0x3ff9('0x7')]),this[_0x3ff9('0x5')]();}['discard'](){this[_0x3ff9('0x3')](this['getRanges'](),this[_0x3ff9('0x13')],this[_0x3ff9('0x7')]),this['removeMarkers']();}[_0x3ff9('0x0')](){const _0x914010=[];let _0x55d5fa=this[_0x3ff9('0x31')];for(;_0x55d5fa;)_0x914010[_0x3ff9('0x2f')](_0x55d5fa),_0x55d5fa=_0x55d5fa['next'];return _0x914010;}[_0x3ff9('0xd')](_0x243493,_0x438179){const _0x5283dd=_0x30a10f(this[_0x3ff9('0x7')]);_0x395f0d(_0x5283dd,_0x243493,_0x438179),_0x3c7654(_0x5283dd,this[_0x3ff9('0x7')])||(this[_0x3ff9('0x7')]=_0x5283dd,this[_0x3ff9('0x2d')](_0x5283dd));}[_0x3ff9('0x4')](_0x461e56){const _0x27dc0a=_0x30a10f(this[_0x3ff9('0x7')]);_0x313dce(_0x27dc0a,_0x461e56),_0x3c7654(_0x27dc0a,this[_0x3ff9('0x7')])||(this['attributes']=_0x27dc0a,this[_0x3ff9('0x2d')](this[_0x3ff9('0x7')]));}[_0x3ff9('0x17')](){return{'id':this['id'],'type':this['subType']?this[_0x3ff9('0x2a')]+':'+this[_0x3ff9('0x16')]:this[_0x3ff9('0x2a')],'authorId':this[_0x3ff9('0xc')]['id'],'createdAt':this[_0x3ff9('0x33')],'hasComments':this[_0x3ff9('0x14')],'data':this[_0x3ff9('0x13')],'attributes':this[_0x3ff9('0x7')]};}static[_0x3ff9('0x1c')](){return _0x43d692()['substr'](0x1,0x5);}}
|