@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231212.0 → 0.0.0-nightly-20231214.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 +1 -1
- package/build/translations/ar.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/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/he.js +1 -1
- package/build/translations/hi.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.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +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/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4739=['author','wrap','TableClipboard','registerCustomCallback','documentSelection','getAttributes','subType','tablePaste','accept','paragraph','from','insertContent','commands','clipboardOutput','end','differ','*Replace\x20table\x20cells*','getChanges','unwrap','markMultiRangeBlockFormat','removeMarker','getChangedMarkers','nodeAfter','discard','name','document','getRange','_replaceTableSlotCell','getSuggestionCallback','set','join','batch','low','createRangeOn','editingDowncast','tablePasteChainId','last','insertRows','add','tableCell','register','insertion','afterInit','createTableWalker','createElement','registerPostFixer','tableCellBorderColor','oldRange','getSelectionAffectedTableCells','has','rootName','fromEntries','getShiftedBy','nextSibling','insertionRanges','columnInsertionRanges','markMultiRangeDeletion','rowInsertionRanges','tablePasteCell','listenTo','conversion','registerDescriptionCallback','_splitMarkerName','tablePasteColumn','suggestionUnloaded','containsRange','get','root','hasSuggestion','deletionRanges','filter','TrackChangesEditing','suggestion','markers','rows','change','markerToHighlight','type','tableCellHorizontalAlignment','cells','getColumnIndexes','find','columnInsertionIndexes','length','options','previous','getRows','push','createRangeIn','requires','content','findAncestor','first','deletion','getItems','map','includes','isEqual','$graveyard','getMarkers','keys','reduce','value','tableCellPadding','getTableIfOnlyTableInContent','createRange','endRow','insert','editor','suggestion:formatBlock:tablePasteCell','entries','startsWith','stop','isEmpty','plugins','tablePasteRow','getSuggestion','elementToElement','getRanges','position','formatBlock','isInContent','getSuggestions','column','remove','locale','for','attributes','activeMarkers','markerName','trackChanges','setAttribute','table','removeColumns','_isForcedDefaultExecutionBlock','markMultiRangeInsertion','newRange','tableCellBorderWidth','selection','view','_suggestionFactory','high','editing','model','Users','tableCellSuggestion','suggestion-td','markerAttributes','updateMarker','getContainedElement','rowInsertionIndexes','element','start','setAttributes','_getCoordsForCells'];(function(_0x482b39,_0x4739fc){const _0x52ccd3=function(_0x268e51){while(--_0x268e51){_0x482b39['push'](_0x482b39['shift']());}};_0x52ccd3(++_0x4739fc);}(_0x4739,0x193));const _0x52cc=function(_0x482b39,_0x4739fc){_0x482b39=_0x482b39-0x0;let _0x52ccd3=_0x4739[_0x482b39];return _0x52ccd3;};import{getTranslation as _0x5b4a3d}from'../utils/common-translations';import{Plugin as _0x5469f2}from'ckeditor5/src/core';import{uid as _0x20d95b,priorities as _0x221b97}from'ckeditor5/src/utils';import _0x54e6bd from'./table';const le=[_0x52cc('0x2c'),_0x52cc('0x6c'),'tableCellBorderStyle',_0x52cc('0x8c'),'tableCellVerticalAlignment','tableCellBackgroundColor',_0x52cc('0xa')],ae=Object[_0x52cc('0x71')](le[_0x52cc('0x2')](_0x439b16=>[_0x439b16,null]));export default class At extends _0x5469f2{static get[_0x52cc('0x97')](){return[_0x54e6bd];}[_0x52cc('0x68')](){const _0x167f8c=this[_0x52cc('0xf')];if(!_0x167f8c[_0x52cc('0x15')]['has'](_0x52cc('0x40')))return;const _0x29954c=_0x167f8c[_0x52cc('0x15')]['get'](_0x52cc('0x85')),_0x41c9e2=_0x167f8c['plugins']['get']('TableUtils'),_0x21721d=_0x167f8c[_0x52cc('0x15')]['get'](_0x54e6bd),_0x1877fc=_0x167f8c[_0x52cc('0x15')][_0x52cc('0x80')]('TableClipboard');_0x21721d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x167f8c[_0x52cc('0x32')]['schema'][_0x52cc('0x66')](_0x52cc('0x34'),{'allowIn':_0x52cc('0x65'),'allowContentOf':_0x52cc('0x65'),'isLimit':!0x0}),_0x167f8c[_0x52cc('0x7a')][_0x52cc('0x18')]({'model':_0x52cc('0x34'),'view':_0x52cc('0x35')});let _0x32ffb2=null;_0x167f8c[_0x52cc('0x32')]['on']('insertContent',(_0x1b1a79,_0x4f92fa)=>{const [_0x4e0218,_0xa65370]=_0x4f92fa,_0x444877=_0x4f92fa[_0x4f92fa[_0x52cc('0x91')]-0x1];_0x444877&&_0x444877['forceDefaultExecution']||_0x29954c[_0x52cc('0x29')]||this[_0x52cc('0xf')][_0x52cc('0x4a')][_0x52cc('0x80')](_0x52cc('0x25'))[_0x52cc('0x9')]&&function(_0x1ccd70,_0x28a21f,_0x1339c9,_0x16b768,_0x337fdf){if(_0x28a21f&&!_0x28a21f['is'](_0x52cc('0x42')))return!0x1;const _0xacb27a=_0x337fdf[_0x52cc('0xb')](_0x1ccd70,_0x1339c9);if(!_0xacb27a||!fe(_0xacb27a,void 0x0,_0x16b768))return!0x1;const _0x16c154=_0x16b768[_0x52cc('0x6e')](_0x1339c9[_0x52cc('0x57')][_0x52cc('0x2d')]);if(!_0x16c154[_0x52cc('0x91')])return!0x1;const _0x13ea3b=_0x16c154[0x0][_0x52cc('0x99')](_0x52cc('0x27')),_0x3ac8d8=_0x16b768['getRowIndexes'](_0x16c154),_0x88f7fc=_0x16b768[_0x52cc('0x8e')](_0x16c154),_0x2ec5d0={'startRow':_0x3ac8d8[_0x52cc('0x9a')],'endRow':_0x3ac8d8[_0x52cc('0x62')],'startColumn':_0x88f7fc['first'],'endColumn':_0x88f7fc['last']};return 0x1==_0x16c154[_0x52cc('0x91')]&&(_0x2ec5d0[_0x52cc('0xd')]+=_0x16b768[_0x52cc('0x94')](_0xacb27a)-0x1,_0x2ec5d0['endColumn']+=_0x16b768['getColumns'](_0xacb27a)-0x1),fe(_0x13ea3b,_0x2ec5d0,_0x16b768);}(_0x4e0218,_0xa65370,_0x167f8c[_0x52cc('0x32')],_0x41c9e2,_0x1877fc)&&(_0x1b1a79[_0x52cc('0x13')](),_0x32ffb2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x167f8c[_0x52cc('0x32')][_0x52cc('0x89')](()=>{_0x167f8c['model'][_0x52cc('0x49')](_0x4f92fa[0x0],_0x4f92fa[0x1],_0x4f92fa[0x2],{'forceDefaultExecution':!0x0});const _0x50a28e=_0x20d95b(),{rowInsertionRanges:_0x4e4ee5,columnInsertionRanges:_0x3e55a0,insertionRanges:_0xa5583e,deletionRanges:_0x28063f,cells:_0x55b157}=_0x32ffb2;_0x4e4ee5[_0x52cc('0x91')]&&_0x29954c['markMultiRangeInsertion'](_0x4e4ee5,_0x52cc('0x16'),{'tablePasteChainId':_0x50a28e}),_0x3e55a0[_0x52cc('0x91')]&&_0x29954c[_0x52cc('0x2a')](_0x3e55a0,_0x52cc('0x7d'),{'tablePasteChainId':_0x50a28e}),_0xa5583e['length']&&_0x29954c[_0x52cc('0x2a')](_0xa5583e,_0x52cc('0x45'),{'tablePasteChainId':_0x50a28e,'skipNestingCheck':!0x0}),_0x28063f['length']&&_0x29954c[_0x52cc('0x76')](_0x28063f,_0x52cc('0x45'),{'tablePasteChainId':_0x50a28e,'skipNestingCheck':!0x0});const _0x404d6b=_0x29954c[_0x52cc('0x51')](_0x55b157[_0x52cc('0x2')](({element:_0xe7925a})=>_0xe7925a),{'formatGroupId':_0x20d95b()},[],'tablePasteCell',{'tablePasteChainId':_0x50a28e});if(_0x404d6b){const _0x1c3075=_0x404d6b[_0x52cc('0x6')](),_0x2f8251=[];for(const {element:_0x3e91ae,attributes:_0x4a4b5c}of _0x55b157){if(!_0x4a4b5c)continue;const _0x3f8508=_0x167f8c[_0x52cc('0x32')][_0x52cc('0x5f')](_0x3e91ae),_0x4ed09b=_0x1c3075[_0x52cc('0x8f')](_0x4aa5e0=>_0x4aa5e0[_0x52cc('0x58')]()[_0x52cc('0x4')](_0x3f8508));_0x4ed09b&&_0x2f8251[_0x52cc('0x95')]([_0x4ed09b[_0x52cc('0x56')],_0x4a4b5c]);}_0x2f8251[_0x52cc('0x91')]&&_0x404d6b[_0x52cc('0x26')](_0x52cc('0x36'),Object[_0x52cc('0x71')](_0x2f8251));}_0x32ffb2=null;}));},{'priority':_0x221b97[_0x52cc('0x30')]+0xa}),_0x167f8c[_0x52cc('0x15')][_0x52cc('0x80')]('TableClipboard')['on'](_0x52cc('0x59'),(_0x57c31c,_0x5179b6)=>{const [_0x113e7d,_0x93f9e9,,_0xf91234]=_0x5179b6;if(!_0x32ffb2)return;_0x57c31c[_0x52cc('0x13')]();const _0x18b43d=_0x113e7d['cell'],_0x168b49=_0x93f9e9,_0x1ffb88=ce(_0x18b43d),_0x237706=ce(_0x168b49);_0x57c31c['return']=_0x18b43d;let _0x89f2ef=null,_0x1f5d1e=null;if(_0x237706||_0x1ffb88){if(_0x1ffb88&&!_0x237706){_0xf91234['remove'](_0x18b43d['getChild'](0x0));for(const _0x40d1ff of Array['from'](_0x168b49['getChildren']()))_0xf91234[_0x52cc('0xe')](_0x40d1ff,_0x18b43d,_0x52cc('0x4c'));const _0xd8573a=_0x32ffb2[_0x52cc('0x39')][_0x52cc('0x3')](_0x113e7d['row']),_0x544d5c=_0x32ffb2[_0x52cc('0x90')]['includes'](_0x113e7d[_0x52cc('0x1e')]);_0xd8573a||_0x544d5c||(_0x89f2ef=_0xf91234[_0x52cc('0x96')](_0x18b43d));}else _0x237706&&!_0x1ffb88&&(_0x1f5d1e=_0xf91234['createRangeIn'](_0x18b43d));}else{const _0x4cac11=_0xf91234[_0x52cc('0x6a')](_0x52cc('0x34')),_0x442b75=_0xf91234[_0x52cc('0x6a')](_0x52cc('0x34'));_0xf91234[_0x52cc('0x3f')](_0xf91234[_0x52cc('0x96')](_0x18b43d),_0x442b75),_0xf91234[_0x52cc('0xe')](_0x4cac11,_0x18b43d,0x0);for(const _0x158f35 of Array[_0x52cc('0x48')](_0x168b49['getChildren']()))_0xf91234['insert'](_0x158f35,_0x4cac11,_0x52cc('0x4c'));_0x89f2ef=_0xf91234[_0x52cc('0x5f')](_0x4cac11),_0x1f5d1e=_0xf91234[_0x52cc('0x5f')](_0x442b75);}const _0x2f76aa=Array[_0x52cc('0x48')](_0x168b49[_0x52cc('0x43')]())[_0x52cc('0x84')](([_0x42dd40])=>le[_0x52cc('0x3')](_0x42dd40));_0x32ffb2[_0x52cc('0x8d')][_0x52cc('0x95')]({'element':_0x18b43d,'attributes':_0x2f76aa[_0x52cc('0x91')]?Object[_0x52cc('0x71')](_0x2f76aa):null}),_0x89f2ef&&_0x32ffb2[_0x52cc('0x74')][_0x52cc('0x95')](_0x89f2ef),_0x1f5d1e&&_0x32ffb2[_0x52cc('0x83')][_0x52cc('0x95')](_0x1f5d1e);},{'priority':_0x52cc('0x30')}),_0x41c9e2['on']('insertColumns',(_0x28c6cc,_0x3a34eb)=>{const [_0x15f365,_0xd6376={}]=_0x3a34eb;if(!_0x32ffb2)return;const _0x16dc2d=_0xd6376['at']||0x0,_0x11d1f6=_0xd6376['columns']||0x1;_0x32ffb2['columnInsertionIndexes']=new Array(_0x11d1f6)['fill'](_0x16dc2d)[_0x52cc('0x2')]((_0x9f6bde,_0xcdbb3)=>_0x9f6bde+_0xcdbb3);for(const {cell:_0x522557}of _0x41c9e2['createTableWalker'](_0x15f365,{'startColumn':_0x16dc2d,'endColumn':_0x16dc2d+_0x11d1f6-0x1}))_0x32ffb2[_0x52cc('0x75')][_0x52cc('0x95')](_0x167f8c[_0x52cc('0x32')][_0x52cc('0x5f')](_0x522557));},{'priority':_0x52cc('0x5e')}),_0x41c9e2['on'](_0x52cc('0x63'),(_0x151037,_0x39b1d0)=>{const [_0x266c85,_0x24ce71={}]=_0x39b1d0;if(!_0x32ffb2)return;const _0x145eb9=_0x24ce71['at']||0x0,_0x471d8a=_0x24ce71[_0x52cc('0x88')]||0x1;_0x32ffb2[_0x52cc('0x39')]=new Array(_0x471d8a)['fill'](_0x145eb9)[_0x52cc('0x2')]((_0x17db42,_0x1fa961)=>_0x17db42+_0x1fa961);for(const {cell:_0x2912c7}of _0x41c9e2[_0x52cc('0x69')](_0x266c85,{'startRow':_0x145eb9,'endRow':_0x145eb9+_0x471d8a-0x1}))_0x32ffb2[_0x52cc('0x77')][_0x52cc('0x95')](_0x167f8c[_0x52cc('0x32')]['createRangeOn'](_0x2912c7));},{'priority':_0x52cc('0x5e')}),_0x29954c['_descriptionFactory'][_0x52cc('0x7b')](_0x1d40fc=>{if(_0x1d40fc[_0x52cc('0x44')]&&_0x1d40fc['subType'][_0x52cc('0x12')](_0x52cc('0x45')))return _0x1d40fc['previous']?{}:{'type':_0x52cc('0x67'),'content':_0x5b4a3d(_0x167f8c[_0x52cc('0x20')],_0x52cc('0x4e'))};});const _0x341d4f=()=>!0x1;for(const _0x338851 of['tablePaste',_0x52cc('0x7d'),_0x52cc('0x16'),'tablePasteCell'])_0x29954c[_0x52cc('0x2f')][_0x52cc('0x41')](_0x52cc('0x67'),_0x338851,_0x52cc('0x5c'),_0x341d4f),_0x29954c[_0x52cc('0x2f')]['registerCustomCallback']('deletion',_0x338851,_0x52cc('0x5c'),_0x341d4f),_0x29954c['_suggestionFactory'][_0x52cc('0x41')](_0x52cc('0x1b'),_0x338851,_0x52cc('0x5c'),_0x341d4f);_0x29954c[_0x52cc('0x2f')][_0x52cc('0x41')](_0x52cc('0x1b'),_0x52cc('0x78'),_0x52cc('0x55'),_0x341d4f),_0x29954c[_0x52cc('0x2f')][_0x52cc('0x41')](_0x52cc('0x1b'),'tablePasteCell','accept',(_0x1783a2,_0x5238a8,_0xea226f)=>{const _0x591871=_0x1783a2[_0x52cc('0x2')](_0x1f165b=>_0x1f165b[_0x52cc('0x38')]())[_0x52cc('0x84')](_0x2180a4=>_0x2180a4),_0x8340db=new Map(_0x591871[_0x52cc('0x2')](_0x21d3c2=>[_0x21d3c2,null]));if(_0x32ffb2)for(const {element:_0x1e3977,attributes:_0x344d38}of _0x32ffb2['cells'])_0x344d38&&_0x8340db[_0x52cc('0x5b')](_0x1e3977,_0x344d38);else{if(_0xea226f&&_0xea226f[_0x52cc('0x36')])for(const [_0x2ad7e2,_0x6e685e]of Object[_0x52cc('0x11')](_0xea226f[_0x52cc('0x36')])){const _0x38dc62=_0x167f8c[_0x52cc('0x32')][_0x52cc('0x87')][_0x52cc('0x80')](_0x2ad7e2),_0x1d2381=_0x38dc62?_0x38dc62[_0x52cc('0x58')]()[_0x52cc('0x38')]():null;_0x1d2381&&_0x8340db[_0x52cc('0x5b')](_0x1d2381,_0x6e685e);}}_0x167f8c['model'][_0x52cc('0x89')](_0x2e3203=>{for(const [_0x480812,_0x268c01]of _0x8340db)_0x2e3203[_0x52cc('0x3c')]({...ae,..._0x268c01},_0x480812);});});const _0x4246db=(_0x4e07bc,_0x30f84a)=>{_0x29954c[_0x52cc('0x2f')][_0x52cc('0x41')](_0x4e07bc,_0x52cc('0x45'),_0x30f84a,(_0xe21422,_0x1a440e,_0x3bfa1e)=>{_0x167f8c[_0x52cc('0x32')]['change'](_0x49c939=>{const _0x16e7b9=[];for(const _0x3f825f of _0xe21422){const _0x14642f=_0x3f825f[_0x52cc('0x3b')][_0x52cc('0x54')];_0x14642f['is'](_0x52cc('0x3a'),_0x52cc('0x34'))&&_0x16e7b9[_0x52cc('0x95')](_0x14642f);}_0x29954c[_0x52cc('0x2f')][_0x52cc('0x5a')](_0x4e07bc,null,_0x30f84a)(_0xe21422,_0x1a440e,_0x3bfa1e);for(const _0x428b44 of _0x16e7b9)_0x52cc('0x5')!=_0x428b44[_0x52cc('0x81')][_0x52cc('0x70')]&&_0x49c939[_0x52cc('0x50')](_0x428b44);});});};_0x4246db(_0x52cc('0x67'),_0x52cc('0x46')),_0x4246db(_0x52cc('0x67'),_0x52cc('0x55')),_0x4246db(_0x52cc('0x0'),_0x52cc('0x46')),_0x4246db(_0x52cc('0x0'),_0x52cc('0x55')),_0x29954c[_0x52cc('0x2f')][_0x52cc('0x41')]('insertion',_0x52cc('0x16'),'discard',_0x1e03aa=>{const _0x3311be=_0x1e03aa[_0x52cc('0x2')](_0x575e27=>_0x575e27[_0x52cc('0x38')]()),_0x333c06=_0x3311be[0x0]['findAncestor']('table'),{minRow:_0x4260d1,maxRow:_0x273863}=_0x21721d['_getCoordsForCells'](_0x3311be);_0x41c9e2['removeRows'](_0x333c06,{'at':_0x4260d1,'rows':_0x273863-_0x4260d1+0x1});}),_0x29954c['_suggestionFactory'][_0x52cc('0x41')](_0x52cc('0x67'),'tablePasteColumn','discard',_0x611cdd=>{const _0x9ce072=_0x611cdd['map'](_0x40a89b=>_0x40a89b['getContainedElement']()),_0x18a4fa=_0x9ce072[0x0][_0x52cc('0x99')](_0x52cc('0x27')),{minColumn:_0x8caf62,maxColumn:_0x323c62}=_0x21721d[_0x52cc('0x3d')](_0x9ce072);_0x41c9e2[_0x52cc('0x28')](_0x18a4fa,{'at':_0x8caf62,'columns':_0x323c62-_0x8caf62+0x1});});const _0x2d6195=(_0x4e0a46,_0x300f78)=>{if(!_0x300f78[_0x52cc('0x44')]||!_0x300f78['subType']['startsWith'](_0x52cc('0x45')))return;const _0xb5baa9=_0x300f78[_0x52cc('0x22')][_0x52cc('0x61')],_0x19ef6d=_0x29954c[_0x52cc('0x1d')]()['filter'](_0x1abe6b=>_0x1abe6b['isInContent']&&_0x1abe6b[_0x52cc('0x22')]&&_0x1abe6b[_0x52cc('0x22')][_0x52cc('0x61')]==_0xb5baa9);_0x19ef6d[_0x52cc('0x91')]&&_0x300f78['getAllAdjacentSuggestions']()[_0x52cc('0x91')]!=_0x19ef6d[_0x52cc('0x91')]&&_0x19ef6d[_0x52cc('0x8')]((_0x10f6eb,_0x285dac)=>(_0x10f6eb['next']=_0x285dac,_0x285dac[_0x52cc('0x93')]=_0x10f6eb,_0x285dac));};function _0x5e063b(_0x579941,_0x2429f2=!0x0){const {id:_0x1dc35b}=_0x29954c['_splitMarkerName'](_0x579941[_0x52cc('0x24')]),_0x288f76=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4493fb=_0x29954c[_0x52cc('0x23')][_0x52cc('0x3')](_0x579941[_0x52cc('0x24')]);return _0x4493fb&&_0x288f76[_0x52cc('0x95')]('ck-suggestion-marker--active'),{'classes':_0x288f76,'attributes':{'data-suggestion':_0x1dc35b},'priority':_0x4493fb&&_0x2429f2?0xbc2:0xbb8};}_0x29954c['on']('suggestionLoaded',_0x2d6195,{'priority':_0x52cc('0x30')}),_0x29954c['on'](_0x52cc('0x7e'),_0x2d6195,{'priority':'high'}),_0x167f8c['model'][_0x52cc('0x57')][_0x52cc('0x6b')](()=>{let _0xe79e70=!0x1;const _0x392116=Array['from'](_0x167f8c['model'][_0x52cc('0x57')][_0x52cc('0x4d')][_0x52cc('0x53')]());for(const {name:_0x3180c5,data:_0x324ee2}of _0x392116){const {group:_0x5153c0,type:_0x26e221,id:_0x2a8dbf}=_0x29954c['_splitMarkerName'](_0x3180c5);if(_0x52cc('0x86')!=_0x5153c0||'deletion'!=_0x26e221||_0x324ee2['oldRange'])continue;if(!_0x29954c[_0x52cc('0x82')](_0x2a8dbf))continue;const _0x51d645=_0x29954c[_0x52cc('0x17')](_0x2a8dbf)[_0x52cc('0x19')](),_0x17ed2f=_0x167f8c['plugins'][_0x52cc('0x80')]('Users')['me'];for(const _0x14fa24 of _0x29954c['getSuggestions']()){if(!_0x14fa24[_0x52cc('0x1c')]||_0x14fa24[_0x52cc('0x3e')]!=_0x17ed2f)continue;if(_0x52cc('0x1b')!=_0x14fa24[_0x52cc('0x8b')]||_0x52cc('0x78')!=_0x14fa24[_0x52cc('0x44')])continue;if(_0x14fa24['getRanges']()['every'](_0xccb460=>_0x51d645['some'](_0x5e4ba2=>_0x5e4ba2[_0x52cc('0x7f')](_0xccb460,!0x0))))for(const _0x56e1d6 of _0x14fa24['getAllAdjacentSuggestions']())_0x56e1d6[_0x52cc('0x1c')]&&(_0x56e1d6[_0x52cc('0x55')](),_0xe79e70=!0x0);}}return _0xe79e70;}),_0x167f8c[_0x52cc('0x32')][_0x52cc('0x57')][_0x52cc('0x6b')](_0xcbe33c=>{const _0x278122=_0x167f8c[_0x52cc('0x4a')][_0x52cc('0x80')]('redo');if(!_0x278122||!_0x278122['_createdBatches'][_0x52cc('0x6f')](_0xcbe33c[_0x52cc('0x5d')]))return!0x1;let _0x16fdb9=!0x1;const _0x323a3a=_0x167f8c[_0x52cc('0x15')][_0x52cc('0x80')](_0x52cc('0x33'))['me'],_0x1d1012=_0x167f8c[_0x52cc('0x32')][_0x52cc('0x57')][_0x52cc('0x4d')][_0x52cc('0x4f')](),_0x42f548=Array[_0x52cc('0x48')](_0x167f8c[_0x52cc('0x32')]['document'][_0x52cc('0x4d')]['getChangedMarkers']())[_0x52cc('0x84')](({name:_0x13d00d,data:_0x29f904})=>{const {group:_0x4385a5,subType:_0xb9db6b,authorId:_0x134401}=_0x29954c[_0x52cc('0x7c')](_0x13d00d);return'suggestion'==_0x4385a5&&_0x52cc('0x45')==_0xb9db6b&&_0x134401==_0x323a3a['id']&&!_0x29f904[_0x52cc('0x6d')];});for(const _0x5e0be1 of _0x1d1012){if(_0x52cc('0xe')!=_0x5e0be1[_0x52cc('0x8b')]||_0x52cc('0x34')!=_0x5e0be1[_0x52cc('0x56')]||0x1!=_0x5e0be1[_0x52cc('0x91')])continue;const _0x51ef55=_0xcbe33c[_0x52cc('0xc')](_0x5e0be1[_0x52cc('0x1a')],_0x5e0be1[_0x52cc('0x1a')][_0x52cc('0x72')](0x1));if(!_0x42f548[_0x52cc('0x8f')](({data:_0x387abd})=>_0x387abd[_0x52cc('0x2b')][_0x52cc('0x4')](_0x51ef55)))for(const {name:_0x5900ab,data:_0x487673}of _0x42f548)if(_0x51ef55[_0x52cc('0x7f')](_0x487673[_0x52cc('0x2b')])){_0xcbe33c[_0x52cc('0x37')](_0x5900ab,{'range':_0x51ef55}),_0x16fdb9=!0x0;break;}}return _0x16fdb9;}),_0x167f8c[_0x52cc('0x32')][_0x52cc('0x57')][_0x52cc('0x6b')](_0x425c5a=>{let _0x26136c=!0x1;const _0x4253a4=_0x167f8c[_0x52cc('0x15')][_0x52cc('0x80')](_0x52cc('0x33'))['me'],_0x2f500c=_0x29954c[_0x52cc('0x1d')]()[_0x52cc('0x84')](_0x3f3cea=>_0x3f3cea[_0x52cc('0x1c')]&&_0x3f3cea[_0x52cc('0x3e')]==_0x4253a4),_0x31769f=new Set(),_0x3ec9e1=new Set();for(const _0x2ab2aa of _0x2f500c)if(_0x52cc('0x45')==_0x2ab2aa['subType'])for(const _0x2d140d of _0x2ab2aa['getMarkers']()){const _0x516763=_0x2d140d[_0x52cc('0x58')]()[_0x52cc('0x38')]();if(_0x516763){if(_0x516763['is'](_0x52cc('0x3a'),_0x52cc('0x34'))&&ce(_0x516763)){_0x2ab2aa[_0x52cc('0x52')](_0x2d140d['name']),_0x31769f['add'](_0x516763),_0x26136c=!0x0;const _0x14b471=_0x516763[_0x52cc('0x73')],_0x26f1be=_0x516763['previousSibling'],_0x47eab8=_0x14b471&&_0x14b471['is'](_0x52cc('0x3a'),_0x52cc('0x34')),_0x1baf46=_0x26f1be&&_0x26f1be['is'](_0x52cc('0x3a'),_0x52cc('0x34'));_0x47eab8&&!_0x31769f[_0x52cc('0x6f')](_0x14b471)&&_0x3ec9e1['add'](_0x14b471),_0x1baf46&&!_0x31769f[_0x52cc('0x6f')](_0x26f1be)&&_0x3ec9e1[_0x52cc('0x64')](_0x26f1be);}else _0x516763['is'](_0x52cc('0x3a'),_0x52cc('0x47'))&&_0x516763[_0x52cc('0x14')]&&(_0x2ab2aa[_0x52cc('0x52')](_0x2d140d[_0x52cc('0x56')]),_0x26136c=!0x0);}}else{if(_0x52cc('0x78')==_0x2ab2aa[_0x52cc('0x44')]){if(!_0x2ab2aa[_0x52cc('0x22')]||!_0x2ab2aa[_0x52cc('0x22')][_0x52cc('0x61')])continue;const _0x32e855=_0x2ab2aa[_0x52cc('0x22')][_0x52cc('0x36')];if(_0x32e855&&Object[_0x52cc('0x7')](_0x32e855)[_0x52cc('0x91')])continue;const _0x583d27=_0x2ab2aa[_0x52cc('0x22')][_0x52cc('0x61')];let _0x364de4=!0x0,_0x2b538c=!0x0;for(const _0x7c5c61 of _0x2f500c)if(_0x7c5c61[_0x52cc('0x44')]&&_0x7c5c61[_0x52cc('0x44')][_0x52cc('0x12')](_0x52cc('0x45'))){if(!_0x7c5c61[_0x52cc('0x22')]['tablePasteChainId']){_0x2b538c=!0x1;break;}if(_0x7c5c61['id']!=_0x2ab2aa['id']&&_0x7c5c61[_0x52cc('0x22')]['tablePasteChainId']==_0x583d27){_0x364de4=!0x1;break;}}_0x2b538c&&_0x364de4&&(_0x2ab2aa['removeMarkers'](),_0x26136c=!0x0);}}for(const _0x287fde of _0x31769f)_0x425c5a[_0x52cc('0x1f')](_0x287fde);for(const _0x5c2a92 of _0x3ec9e1)_0x425c5a[_0x52cc('0x50')](_0x5c2a92);return _0x26136c;}),_0x167f8c[_0x52cc('0x7a')][_0x52cc('0x21')](_0x52cc('0x60'))[_0x52cc('0x8a')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b46a0,_0x5cbd86)=>_0x5e063b(_0x3b46a0),'converterPriority':_0x52cc('0x30')}),_0x167f8c['conversion']['for']('dataDowncast')[_0x52cc('0x8a')]({'model':_0x52cc('0x10'),'view':(_0x410dc2,_0x1abb91)=>_0x1abb91[_0x52cc('0x92')]['showSuggestionHighlights']?_0x5e063b(_0x410dc2,!0x1):null,'converterPriority':_0x52cc('0x30')});const _0x808aa9=_0x167f8c[_0x52cc('0x31')][_0x52cc('0x2e')];this[_0x52cc('0x79')](_0x808aa9[_0x52cc('0x57')],_0x52cc('0x4b'),(_0x1e49cc,_0x5eb7f2)=>{const _0x4b0ad0=[];for(const _0x35f56f of _0x808aa9['createRangeIn'](_0x5eb7f2[_0x52cc('0x98')])[_0x52cc('0x1')]())_0x35f56f['is']('element','suggestion-td')&&_0x4b0ad0['push'](_0x35f56f);_0x808aa9[_0x52cc('0x89')](_0x2e5ecf=>{for(const _0x1a75a8 of _0x4b0ad0)_0x2e5ecf['move'](_0x2e5ecf[_0x52cc('0x96')](_0x1a75a8),_0x2e5ecf['createPositionBefore'](_0x1a75a8)),_0x2e5ecf[_0x52cc('0x1f')](_0x1a75a8);});});}}function ce(_0x49ff1c){if(_0x49ff1c[_0x52cc('0x14')])return!0x0;const _0x3f3f25=_0x49ff1c['getChild'](0x0);return _0x3f3f25['is'](_0x52cc('0x3a'),_0x52cc('0x47'))&&_0x3f3f25[_0x52cc('0x14')];}function fe(_0x2f682f,_0xdb2dc9={},_0x18486c){for(const {isAnchor:_0x1a2bec,cellHeight:_0x33d9a5,cellWidth:_0xe2db9e}of _0x18486c[_0x52cc('0x69')](_0x2f682f,{'includeAllSlots':!0x0,..._0xdb2dc9}))if(!_0x1a2bec||0x1!=_0x33d9a5||0x1!=_0xe2db9e)return!0x1;return!0x0;}
|
|
23
|
+
const _0xc4ec=['suggestionLoaded','join','suggestionUnloaded','commands','removeMarker','add','getAllAdjacentSuggestions','newRange','cell','columnInsertionRanges','createRangeIn','move','tableCellHorizontalAlignment','*Replace\x20table\x20cells*','endRow','stop','containsRange','markerName','tablePasteCell','differ','has','nodeAfter','discard','registerPostFixer','includes','markerAttributes','some','end','deletionRanges','showSuggestionHighlights','map','editor','getMarkers','markMultiRangeBlockFormat','_getCoordsForCells','document','suggestion','_isForcedDefaultExecutionBlock','unwrap','conversion','element','insertRows','getContainedElement','findAncestor','subType','next','selection','registerDescriptionCallback','ck-suggestion-marker-insertion','plugins','removeMarkers','wrap','_suggestionFactory','createTableWalker','removeColumns','editingDowncast','insertColumns','Users','getSuggestions','markMultiRangeInsertion','getColumns','tableCellBorderStyle','get','TableClipboard','author','tablePasteChainId','tableCellSuggestion','insertion','isInContent','_createdBatches','find','markMultiRangeDeletion','name','paragraph','for','activeMarkers','tablePasteRow','markerToHighlight','high','createElement','tableCellBackgroundColor','getItems','isEqual','getTableIfOnlyTableInContent','isEmpty','last','every','register','getSuggestionCallback','getRange','cells','reduce','columns','value','insertionRanges','registerCustomCallback','oldRange','getChild','model','type','return','set','push','$graveyard','locale','setAttributes','_descriptionFactory','_tablePostFixingSubtypes','suggestion:formatBlock:tablePasteCell','_splitMarkerName','previousSibling','schema','getRows','ck-suggestion-marker--active','getChangedMarkers','ck-suggestion-marker','fill','content','from','TableUtils','insert','createPositionBefore','trackChanges','elementToElement','position','keys','redo','table','_replaceTableSlotCell','getRanges','dataDowncast','markers','insertContent','previous','rowInsertionIndexes','row','formatBlock','tableCellVerticalAlignment','getSuggestion','createRangeOn','forceDefaultExecution','tablePasteColumn','tableCellBorderWidth','deletion','start','view','removeRows','length','updateMarker','tablePaste','hasSuggestion','accept','remove','getChildren','columnInsertionIndexes','rowInsertionRanges','tableCell','fromEntries','getRowIndexes','tableCellPadding','attributes','first','batch','startsWith','requires','change','filter'];(function(_0x10f7eb,_0xc4ec75){const _0x16ae4f=function(_0x57d0b3){while(--_0x57d0b3){_0x10f7eb['push'](_0x10f7eb['shift']());}};_0x16ae4f(++_0xc4ec75);}(_0xc4ec,0xab));const _0x16ae=function(_0x10f7eb,_0xc4ec75){_0x10f7eb=_0x10f7eb-0x0;let _0x16ae4f=_0xc4ec[_0x10f7eb];return _0x16ae4f;};import{getTranslation as _0x53f94}from'../utils/common-translations';import{Plugin as _0x5baecc}from'ckeditor5/src/core';import{uid as _0x179fd7,priorities as _0x57fde8}from'ckeditor5/src/utils';import _0x4f44a5 from'./table';const le=[_0x16ae('0x8a'),'tableCellBorderColor',_0x16ae('0x39'),_0x16ae('0x8'),_0x16ae('0x85'),_0x16ae('0x4c'),_0x16ae('0x9b')],ae=Object[_0x16ae('0x99')](le['map'](_0x4b4612=>[_0x4b4612,null]));export default class At extends _0x5baecc{static get[_0x16ae('0xa0')](){return[_0x4f44a5];}['afterInit'](){const _0x230f52=this[_0x16ae('0x1b')];if(!_0x230f52[_0x16ae('0x2d')]['has'](_0x16ae('0x3b')))return;const _0x54c99a=_0x230f52['plugins']['get']('TrackChangesEditing'),_0x110d6f=_0x230f52[_0x16ae('0x2d')][_0x16ae('0x3a')](_0x16ae('0x73')),_0x57349d=_0x230f52['plugins'][_0x16ae('0x3a')](_0x4f44a5),_0x416e33=_0x230f52['plugins'][_0x16ae('0x3a')](_0x16ae('0x3b'));_0x57349d[_0x16ae('0x67')]['push'](_0x16ae('0x48'),_0x16ae('0x89')),_0x230f52[_0x16ae('0x5e')][_0x16ae('0x6b')][_0x16ae('0x53')](_0x16ae('0x3e'),{'allowIn':_0x16ae('0x98'),'allowContentOf':_0x16ae('0x98'),'isLimit':!0x0}),_0x230f52[_0x16ae('0x23')][_0x16ae('0x77')]({'model':_0x16ae('0x3e'),'view':'suggestion-td'});let _0x158d48=null;_0x230f52[_0x16ae('0x5e')]['on'](_0x16ae('0x80'),(_0xe1bfe5,_0x4c2242)=>{const [_0x2b4afc,_0x47746c]=_0x4c2242,_0x3ba99b=_0x4c2242[_0x4c2242[_0x16ae('0x8f')]-0x1];_0x3ba99b&&_0x3ba99b[_0x16ae('0x88')]||_0x54c99a[_0x16ae('0x21')]||this[_0x16ae('0x1b')][_0x16ae('0xa6')][_0x16ae('0x3a')](_0x16ae('0x76'))[_0x16ae('0x59')]&&function(_0x400dcb,_0x6bab5c,_0x2b2a28,_0xf0866c,_0x91a55f){if(_0x6bab5c&&!_0x6bab5c['is']('documentSelection'))return!0x1;const _0x29dff6=_0x91a55f[_0x16ae('0x4f')](_0x400dcb,_0x2b2a28);if(!_0x29dff6||!fe(_0x29dff6,void 0x0,_0xf0866c))return!0x1;const _0x21a6c0=_0xf0866c['getSelectionAffectedTableCells'](_0x2b2a28[_0x16ae('0x1f')][_0x16ae('0x2a')]);if(!_0x21a6c0[_0x16ae('0x8f')])return!0x1;const _0x3c1082=_0x21a6c0[0x0][_0x16ae('0x27')](_0x16ae('0x7b')),_0x50b155=_0xf0866c[_0x16ae('0x9a')](_0x21a6c0),_0x8a656b=_0xf0866c['getColumnIndexes'](_0x21a6c0),_0x515a45={'startRow':_0x50b155[_0x16ae('0x9d')],'endRow':_0x50b155[_0x16ae('0x51')],'startColumn':_0x8a656b[_0x16ae('0x9d')],'endColumn':_0x8a656b[_0x16ae('0x51')]};return 0x1==_0x21a6c0[_0x16ae('0x8f')]&&(_0x515a45[_0x16ae('0xa')]+=_0xf0866c[_0x16ae('0x6c')](_0x29dff6)-0x1,_0x515a45['endColumn']+=_0xf0866c[_0x16ae('0x38')](_0x29dff6)-0x1),fe(_0x3c1082,_0x515a45,_0xf0866c);}(_0x2b4afc,_0x47746c,_0x230f52['model'],_0x110d6f,_0x416e33)&&(_0xe1bfe5[_0x16ae('0xb')](),_0x158d48={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x230f52['model'][_0x16ae('0xa1')](()=>{_0x230f52['model'][_0x16ae('0x80')](_0x4c2242[0x0],_0x4c2242[0x1],_0x4c2242[0x2],{'forceDefaultExecution':!0x0});const _0x4521f8=_0x179fd7(),{rowInsertionRanges:_0x580639,columnInsertionRanges:_0x1edfde,insertionRanges:_0x464288,deletionRanges:_0x38393d,cells:_0x590a05}=_0x158d48;_0x580639[_0x16ae('0x8f')]&&_0x54c99a[_0x16ae('0x37')](_0x580639,'tablePasteRow',{'tablePasteChainId':_0x4521f8}),_0x1edfde['length']&&_0x54c99a[_0x16ae('0x37')](_0x1edfde,_0x16ae('0x89'),{'tablePasteChainId':_0x4521f8}),_0x464288[_0x16ae('0x8f')]&&_0x54c99a[_0x16ae('0x37')](_0x464288,_0x16ae('0x91'),{'tablePasteChainId':_0x4521f8,'skipNestingCheck':!0x0}),_0x38393d[_0x16ae('0x8f')]&&_0x54c99a[_0x16ae('0x43')](_0x38393d,_0x16ae('0x91'),{'tablePasteChainId':_0x4521f8,'skipNestingCheck':!0x0});const _0x39ec68=_0x54c99a[_0x16ae('0x1d')](_0x590a05[_0x16ae('0x1a')](({element:_0xc6afd3})=>_0xc6afd3),{'formatGroupId':_0x179fd7()},[],_0x16ae('0xe'),{'tablePasteChainId':_0x4521f8});if(_0x39ec68){const _0x591e2e=_0x39ec68[_0x16ae('0x1c')](),_0x4aa1b0=[];for(const {element:_0x54073b,attributes:_0x2dcd96}of _0x590a05){if(!_0x2dcd96)continue;const _0x16370d=_0x230f52[_0x16ae('0x5e')][_0x16ae('0x87')](_0x54073b),_0xae3c45=_0x591e2e[_0x16ae('0x42')](_0x14b0e5=>_0x14b0e5['getRange']()[_0x16ae('0x4e')](_0x16370d));_0xae3c45&&_0x4aa1b0[_0x16ae('0x62')]([_0xae3c45[_0x16ae('0x44')],_0x2dcd96]);}_0x4aa1b0['length']&&_0x39ec68['setAttribute']('markerAttributes',Object[_0x16ae('0x99')](_0x4aa1b0));}_0x158d48=null;}));},{'priority':_0x57fde8[_0x16ae('0x4a')]+0xa}),_0x230f52[_0x16ae('0x2d')][_0x16ae('0x3a')](_0x16ae('0x3b'))['on'](_0x16ae('0x7c'),(_0x4d298a,_0x1df5d4)=>{const [_0xb58a14,_0x3ad70d,,_0x535283]=_0x1df5d4;if(!_0x158d48)return;_0x4d298a['stop']();const _0x171393=_0xb58a14[_0x16ae('0x4')],_0x18f7a1=_0x3ad70d,_0x5ed6fd=ce(_0x171393),_0x391c8f=ce(_0x18f7a1);_0x4d298a[_0x16ae('0x60')]=_0x171393;let _0x490672=null,_0x5a3fa1=null;if(_0x391c8f||_0x5ed6fd){if(_0x5ed6fd&&!_0x391c8f){_0x535283[_0x16ae('0x94')](_0x171393[_0x16ae('0x5d')](0x0));for(const _0x1663ff of Array[_0x16ae('0x72')](_0x18f7a1[_0x16ae('0x95')]()))_0x535283[_0x16ae('0x74')](_0x1663ff,_0x171393,_0x16ae('0x17'));const _0x212e43=_0x158d48[_0x16ae('0x82')][_0x16ae('0x14')](_0xb58a14[_0x16ae('0x83')]),_0x7acfe8=_0x158d48['columnInsertionIndexes'][_0x16ae('0x14')](_0xb58a14['column']);_0x212e43||_0x7acfe8||(_0x490672=_0x535283[_0x16ae('0x6')](_0x171393));}else _0x391c8f&&!_0x5ed6fd&&(_0x5a3fa1=_0x535283[_0x16ae('0x6')](_0x171393));}else{const _0x25e9d8=_0x535283['createElement'](_0x16ae('0x3e')),_0x368f82=_0x535283[_0x16ae('0x4b')](_0x16ae('0x3e'));_0x535283[_0x16ae('0x2f')](_0x535283[_0x16ae('0x6')](_0x171393),_0x368f82),_0x535283[_0x16ae('0x74')](_0x25e9d8,_0x171393,0x0);for(const _0x47d3eb of Array[_0x16ae('0x72')](_0x18f7a1[_0x16ae('0x95')]()))_0x535283[_0x16ae('0x74')](_0x47d3eb,_0x25e9d8,'end');_0x490672=_0x535283[_0x16ae('0x87')](_0x25e9d8),_0x5a3fa1=_0x535283[_0x16ae('0x87')](_0x368f82);}const _0x294d68=Array[_0x16ae('0x72')](_0x18f7a1['getAttributes']())[_0x16ae('0xa2')](([_0x22f9e7])=>le[_0x16ae('0x14')](_0x22f9e7));_0x158d48[_0x16ae('0x56')][_0x16ae('0x62')]({'element':_0x171393,'attributes':_0x294d68['length']?Object[_0x16ae('0x99')](_0x294d68):null}),_0x490672&&_0x158d48[_0x16ae('0x5a')][_0x16ae('0x62')](_0x490672),_0x5a3fa1&&_0x158d48[_0x16ae('0x18')][_0x16ae('0x62')](_0x5a3fa1);},{'priority':_0x16ae('0x4a')}),_0x110d6f['on'](_0x16ae('0x34'),(_0x2076bf,_0x5c4058)=>{const [_0x3c3660,_0x234b48={}]=_0x5c4058;if(!_0x158d48)return;const _0x45c317=_0x234b48['at']||0x0,_0x32e45f=_0x234b48[_0x16ae('0x58')]||0x1;_0x158d48[_0x16ae('0x96')]=new Array(_0x32e45f)[_0x16ae('0x70')](_0x45c317)[_0x16ae('0x1a')]((_0x5aaaa0,_0x15b7bb)=>_0x5aaaa0+_0x15b7bb);for(const {cell:_0x1b9cc9}of _0x110d6f[_0x16ae('0x31')](_0x3c3660,{'startColumn':_0x45c317,'endColumn':_0x45c317+_0x32e45f-0x1}))_0x158d48[_0x16ae('0x5')][_0x16ae('0x62')](_0x230f52[_0x16ae('0x5e')]['createRangeOn'](_0x1b9cc9));},{'priority':'low'}),_0x110d6f['on'](_0x16ae('0x25'),(_0x3a9620,_0x4a374e)=>{const [_0x2c599b,_0x40a65a={}]=_0x4a374e;if(!_0x158d48)return;const _0x5783bd=_0x40a65a['at']||0x0,_0x497a26=_0x40a65a['rows']||0x1;_0x158d48[_0x16ae('0x82')]=new Array(_0x497a26)[_0x16ae('0x70')](_0x5783bd)['map']((_0x137cf5,_0x211d11)=>_0x137cf5+_0x211d11);for(const {cell:_0x572e69}of _0x110d6f[_0x16ae('0x31')](_0x2c599b,{'startRow':_0x5783bd,'endRow':_0x5783bd+_0x497a26-0x1}))_0x158d48[_0x16ae('0x97')][_0x16ae('0x62')](_0x230f52[_0x16ae('0x5e')][_0x16ae('0x87')](_0x572e69));},{'priority':'low'}),_0x54c99a[_0x16ae('0x66')][_0x16ae('0x2b')](_0x21075c=>{if(_0x21075c[_0x16ae('0x28')]&&_0x21075c['subType'][_0x16ae('0x9f')](_0x16ae('0x91')))return _0x21075c[_0x16ae('0x81')]?{}:{'type':_0x16ae('0x3f'),'content':_0x53f94(_0x230f52[_0x16ae('0x64')],_0x16ae('0x9'))};});const _0x3c4a90=()=>!0x1;for(const _0x3504c6 of[_0x16ae('0x91'),_0x16ae('0x89'),'tablePasteRow',_0x16ae('0xe')])_0x54c99a[_0x16ae('0x30')][_0x16ae('0x5b')](_0x16ae('0x3f'),_0x3504c6,'join',_0x3c4a90),_0x54c99a[_0x16ae('0x30')]['registerCustomCallback'](_0x16ae('0x8b'),_0x3504c6,_0x16ae('0xa4'),_0x3c4a90),_0x54c99a['_suggestionFactory'][_0x16ae('0x5b')](_0x16ae('0x84'),_0x3504c6,'join',_0x3c4a90);_0x54c99a[_0x16ae('0x30')][_0x16ae('0x5b')]('formatBlock',_0x16ae('0xe'),_0x16ae('0x12'),_0x3c4a90),_0x54c99a[_0x16ae('0x30')]['registerCustomCallback']('formatBlock',_0x16ae('0xe'),_0x16ae('0x93'),(_0x3f2e3a,_0x3d7d3f,_0x2fed8e)=>{const _0x3f2213=_0x3f2e3a[_0x16ae('0x1a')](_0x2f6616=>_0x2f6616[_0x16ae('0x26')]())['filter'](_0xfaa9c2=>_0xfaa9c2),_0x2ee665=new Map(_0x3f2213[_0x16ae('0x1a')](_0x24211e=>[_0x24211e,null]));if(_0x158d48)for(const {element:_0x22824a,attributes:_0x3d2a1e}of _0x158d48['cells'])_0x3d2a1e&&_0x2ee665[_0x16ae('0x61')](_0x22824a,_0x3d2a1e);else{if(_0x2fed8e&&_0x2fed8e['markerAttributes'])for(const [_0x1ef53f,_0x2748dc]of Object['entries'](_0x2fed8e[_0x16ae('0x15')])){const _0x4877cf=_0x230f52[_0x16ae('0x5e')][_0x16ae('0x7f')]['get'](_0x1ef53f),_0x5071fe=_0x4877cf?_0x4877cf[_0x16ae('0x55')]()[_0x16ae('0x26')]():null;_0x5071fe&&_0x2ee665['set'](_0x5071fe,_0x2748dc);}}_0x230f52[_0x16ae('0x5e')][_0x16ae('0xa1')](_0x29e1c9=>{for(const [_0x307bbf,_0x160346]of _0x2ee665)_0x29e1c9[_0x16ae('0x65')]({...ae,..._0x160346},_0x307bbf);});});const _0x3dd8af=(_0x110dfe,_0x572499)=>{_0x54c99a[_0x16ae('0x30')]['registerCustomCallback'](_0x110dfe,_0x16ae('0x91'),_0x572499,(_0x28713d,_0x227762,_0x154d28)=>{_0x230f52['model'][_0x16ae('0xa1')](_0x42f413=>{const _0x1b1bfe=[];for(const _0x1968e3 of _0x28713d){const _0x5dfd97=_0x1968e3[_0x16ae('0x8c')][_0x16ae('0x11')];_0x5dfd97['is']('element',_0x16ae('0x3e'))&&_0x1b1bfe['push'](_0x5dfd97);}_0x54c99a[_0x16ae('0x30')][_0x16ae('0x54')](_0x110dfe,null,_0x572499)(_0x28713d,_0x227762,_0x154d28);for(const _0x307c03 of _0x1b1bfe)_0x16ae('0x63')!=_0x307c03['root']['rootName']&&_0x42f413['unwrap'](_0x307c03);});});};_0x3dd8af(_0x16ae('0x3f'),_0x16ae('0x93')),_0x3dd8af(_0x16ae('0x3f'),_0x16ae('0x12')),_0x3dd8af('deletion',_0x16ae('0x93')),_0x3dd8af(_0x16ae('0x8b'),'discard'),_0x54c99a[_0x16ae('0x30')][_0x16ae('0x5b')](_0x16ae('0x3f'),_0x16ae('0x48'),_0x16ae('0x12'),_0x22d23f=>{const _0x51f9e3=_0x22d23f[_0x16ae('0x1a')](_0x70d179=>_0x70d179['getContainedElement']()),_0x58273a=_0x51f9e3[0x0][_0x16ae('0x27')](_0x16ae('0x7b')),{minRow:_0x215095,maxRow:_0x541d0f}=_0x57349d[_0x16ae('0x1e')](_0x51f9e3);_0x110d6f[_0x16ae('0x8e')](_0x58273a,{'at':_0x215095,'rows':_0x541d0f-_0x215095+0x1});}),_0x54c99a[_0x16ae('0x30')]['registerCustomCallback'](_0x16ae('0x3f'),_0x16ae('0x89'),_0x16ae('0x12'),_0x397f52=>{const _0x4068fd=_0x397f52[_0x16ae('0x1a')](_0x4abdba=>_0x4abdba[_0x16ae('0x26')]()),_0x521561=_0x4068fd[0x0]['findAncestor'](_0x16ae('0x7b')),{minColumn:_0x40a2da,maxColumn:_0x1a46cc}=_0x57349d['_getCoordsForCells'](_0x4068fd);_0x110d6f[_0x16ae('0x32')](_0x521561,{'at':_0x40a2da,'columns':_0x1a46cc-_0x40a2da+0x1});});const _0x58414c=(_0x2988bf,_0x7ecd99)=>{if(!_0x7ecd99[_0x16ae('0x28')]||!_0x7ecd99[_0x16ae('0x28')]['startsWith'](_0x16ae('0x91')))return;const _0x413841=_0x7ecd99['attributes'][_0x16ae('0x3d')],_0x246a23=_0x54c99a[_0x16ae('0x36')]()[_0x16ae('0xa2')](_0xb076c=>_0xb076c[_0x16ae('0x40')]&&_0xb076c[_0x16ae('0x9c')]&&_0xb076c[_0x16ae('0x9c')][_0x16ae('0x3d')]==_0x413841);_0x246a23[_0x16ae('0x8f')]&&_0x7ecd99[_0x16ae('0x2')]()[_0x16ae('0x8f')]!=_0x246a23[_0x16ae('0x8f')]&&_0x246a23[_0x16ae('0x57')]((_0x336143,_0x2e9ca7)=>(_0x336143[_0x16ae('0x29')]=_0x2e9ca7,_0x2e9ca7['previous']=_0x336143,_0x2e9ca7));};function _0x16fa38(_0x11230c,_0x24376d=!0x0){const {id:_0x3a40f7}=_0x54c99a[_0x16ae('0x69')](_0x11230c[_0x16ae('0xd')]),_0x4a3909=[_0x16ae('0x6f'),_0x16ae('0x2c')],_0x4e9899=_0x54c99a[_0x16ae('0x47')]['includes'](_0x11230c['markerName']);return _0x4e9899&&_0x4a3909[_0x16ae('0x62')](_0x16ae('0x6d')),{'classes':_0x4a3909,'attributes':{'data-suggestion':_0x3a40f7},'priority':_0x4e9899&&_0x24376d?0xbc2:0xbb8};}_0x54c99a['on'](_0x16ae('0xa3'),_0x58414c,{'priority':'high'}),_0x54c99a['on'](_0x16ae('0xa5'),_0x58414c,{'priority':_0x16ae('0x4a')}),_0x230f52[_0x16ae('0x5e')]['document']['registerPostFixer'](()=>{let _0x22dcfe=!0x1;const _0x234333=Array[_0x16ae('0x72')](_0x230f52[_0x16ae('0x5e')][_0x16ae('0x1f')][_0x16ae('0xf')][_0x16ae('0x6e')]());for(const {name:_0x2d0d6b,data:_0x150b8e}of _0x234333){const {group:_0x297755,type:_0x161951,id:_0x4e028c}=_0x54c99a['_splitMarkerName'](_0x2d0d6b);if(_0x16ae('0x20')!=_0x297755||_0x16ae('0x8b')!=_0x161951||_0x150b8e[_0x16ae('0x5c')])continue;if(!_0x54c99a[_0x16ae('0x92')](_0x4e028c))continue;const _0x59f78f=_0x54c99a[_0x16ae('0x86')](_0x4e028c)['getRanges'](),_0x17fbcd=_0x230f52[_0x16ae('0x2d')]['get'](_0x16ae('0x35'))['me'];for(const _0x37ccd3 of _0x54c99a['getSuggestions']()){if(!_0x37ccd3['isInContent']||_0x37ccd3['author']!=_0x17fbcd)continue;if(_0x16ae('0x84')!=_0x37ccd3[_0x16ae('0x5f')]||_0x16ae('0xe')!=_0x37ccd3[_0x16ae('0x28')])continue;if(_0x37ccd3[_0x16ae('0x7d')]()[_0x16ae('0x52')](_0x52d66a=>_0x59f78f[_0x16ae('0x16')](_0x59f0c6=>_0x59f0c6[_0x16ae('0xc')](_0x52d66a,!0x0))))for(const _0x381e10 of _0x37ccd3[_0x16ae('0x2')]())_0x381e10[_0x16ae('0x40')]&&(_0x381e10[_0x16ae('0x12')](),_0x22dcfe=!0x0);}}return _0x22dcfe;}),_0x230f52['model'][_0x16ae('0x1f')]['registerPostFixer'](_0x1c4647=>{const _0x153819=_0x230f52[_0x16ae('0xa6')][_0x16ae('0x3a')](_0x16ae('0x7a'));if(!_0x153819||!_0x153819[_0x16ae('0x41')][_0x16ae('0x10')](_0x1c4647[_0x16ae('0x9e')]))return!0x1;let _0x210f42=!0x1;const _0x32490a=_0x230f52[_0x16ae('0x2d')]['get'](_0x16ae('0x35'))['me'],_0x197213=_0x230f52['model'][_0x16ae('0x1f')][_0x16ae('0xf')]['getChanges'](),_0x5671ad=Array[_0x16ae('0x72')](_0x230f52[_0x16ae('0x5e')]['document'][_0x16ae('0xf')][_0x16ae('0x6e')]())['filter'](({name:_0x344166,data:_0x1b176b})=>{const {group:_0x1f9e26,subType:_0x445e84,authorId:_0x1c2f3a}=_0x54c99a[_0x16ae('0x69')](_0x344166);return _0x16ae('0x20')==_0x1f9e26&&'tablePaste'==_0x445e84&&_0x1c2f3a==_0x32490a['id']&&!_0x1b176b[_0x16ae('0x5c')];});for(const _0x2f2206 of _0x197213){if(_0x16ae('0x74')!=_0x2f2206[_0x16ae('0x5f')]||'tableCellSuggestion'!=_0x2f2206['name']||0x1!=_0x2f2206[_0x16ae('0x8f')])continue;const _0x428088=_0x1c4647['createRange'](_0x2f2206['position'],_0x2f2206[_0x16ae('0x78')]['getShiftedBy'](0x1));if(!_0x5671ad[_0x16ae('0x42')](({data:_0x533078})=>_0x533078['newRange'][_0x16ae('0x4e')](_0x428088)))for(const {name:_0x4e2c88,data:_0x53dbde}of _0x5671ad)if(_0x428088[_0x16ae('0xc')](_0x53dbde[_0x16ae('0x3')])){_0x1c4647[_0x16ae('0x90')](_0x4e2c88,{'range':_0x428088}),_0x210f42=!0x0;break;}}return _0x210f42;}),_0x230f52[_0x16ae('0x5e')]['document'][_0x16ae('0x13')](_0x16d904=>{let _0x5e2e45=!0x1;const _0x58ef81=_0x230f52[_0x16ae('0x2d')][_0x16ae('0x3a')](_0x16ae('0x35'))['me'],_0x46d6de=_0x54c99a[_0x16ae('0x36')]()[_0x16ae('0xa2')](_0xf38796=>_0xf38796[_0x16ae('0x40')]&&_0xf38796[_0x16ae('0x3c')]==_0x58ef81),_0x318a60=new Set(),_0x515ff6=new Set();for(const _0x49fbe4 of _0x46d6de)if(_0x16ae('0x91')==_0x49fbe4[_0x16ae('0x28')])for(const _0x55ae79 of _0x49fbe4['getMarkers']()){const _0x44a25c=_0x55ae79[_0x16ae('0x55')]()['getContainedElement']();if(_0x44a25c){if(_0x44a25c['is']('element',_0x16ae('0x3e'))&&ce(_0x44a25c)){_0x49fbe4[_0x16ae('0x0')](_0x55ae79[_0x16ae('0x44')]),_0x318a60[_0x16ae('0x1')](_0x44a25c),_0x5e2e45=!0x0;const _0x1a4f59=_0x44a25c['nextSibling'],_0x1e5344=_0x44a25c[_0x16ae('0x6a')],_0x3441fc=_0x1a4f59&&_0x1a4f59['is']('element',_0x16ae('0x3e')),_0x4f4a21=_0x1e5344&&_0x1e5344['is']('element',_0x16ae('0x3e'));_0x3441fc&&!_0x318a60[_0x16ae('0x10')](_0x1a4f59)&&_0x515ff6['add'](_0x1a4f59),_0x4f4a21&&!_0x318a60[_0x16ae('0x10')](_0x1e5344)&&_0x515ff6[_0x16ae('0x1')](_0x1e5344);}else _0x44a25c['is'](_0x16ae('0x24'),_0x16ae('0x45'))&&_0x44a25c['isEmpty']&&(_0x49fbe4['removeMarker'](_0x55ae79[_0x16ae('0x44')]),_0x5e2e45=!0x0);}}else{if('tablePasteCell'==_0x49fbe4[_0x16ae('0x28')]){if(!_0x49fbe4['attributes']||!_0x49fbe4[_0x16ae('0x9c')][_0x16ae('0x3d')])continue;const _0x4ce3d1=_0x49fbe4[_0x16ae('0x9c')][_0x16ae('0x15')];if(_0x4ce3d1&&Object[_0x16ae('0x79')](_0x4ce3d1)[_0x16ae('0x8f')])continue;const _0x40dbaf=_0x49fbe4[_0x16ae('0x9c')][_0x16ae('0x3d')];let _0x2746fb=!0x0,_0x5e235b=!0x0;for(const _0x17c981 of _0x46d6de)if(_0x17c981[_0x16ae('0x28')]&&_0x17c981['subType'][_0x16ae('0x9f')](_0x16ae('0x91'))){if(!_0x17c981['attributes'][_0x16ae('0x3d')]){_0x5e235b=!0x1;break;}if(_0x17c981['id']!=_0x49fbe4['id']&&_0x17c981[_0x16ae('0x9c')][_0x16ae('0x3d')]==_0x40dbaf){_0x2746fb=!0x1;break;}}_0x5e235b&&_0x2746fb&&(_0x49fbe4[_0x16ae('0x2e')](),_0x5e2e45=!0x0);}}for(const _0x435a6d of _0x318a60)_0x16d904['remove'](_0x435a6d);for(const _0x45c254 of _0x515ff6)_0x16d904[_0x16ae('0x22')](_0x45c254);return _0x5e2e45;}),_0x230f52[_0x16ae('0x23')][_0x16ae('0x46')](_0x16ae('0x33'))[_0x16ae('0x49')]({'model':_0x16ae('0x68'),'view':(_0x5c9a21,_0x31e596)=>_0x16fa38(_0x5c9a21),'converterPriority':_0x16ae('0x4a')}),_0x230f52['conversion']['for'](_0x16ae('0x7e'))[_0x16ae('0x49')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4e0e8d,_0x4b51da)=>_0x4b51da['options'][_0x16ae('0x19')]?_0x16fa38(_0x4e0e8d,!0x1):null,'converterPriority':_0x16ae('0x4a')});const _0x2641d0=_0x230f52['editing'][_0x16ae('0x8d')];this['listenTo'](_0x2641d0[_0x16ae('0x1f')],'clipboardOutput',(_0x568354,_0x271a61)=>{const _0x13d948=[];for(const _0x5d1967 of _0x2641d0[_0x16ae('0x6')](_0x271a61[_0x16ae('0x71')])[_0x16ae('0x4d')]())_0x5d1967['is'](_0x16ae('0x24'),'suggestion-td')&&_0x13d948['push'](_0x5d1967);_0x2641d0['change'](_0x453055=>{for(const _0x254a56 of _0x13d948)_0x453055[_0x16ae('0x7')](_0x453055[_0x16ae('0x6')](_0x254a56),_0x453055[_0x16ae('0x75')](_0x254a56)),_0x453055['remove'](_0x254a56);});});}}function ce(_0x28e3f0){if(_0x28e3f0[_0x16ae('0x50')])return!0x0;const _0x52762b=_0x28e3f0[_0x16ae('0x5d')](0x0);return _0x52762b['is']('element',_0x16ae('0x45'))&&_0x52762b[_0x16ae('0x50')];}function fe(_0xb86d80,_0x4f6f05={},_0x264405){for(const {isAnchor:_0x5d8278,cellHeight:_0x485dcc,cellWidth:_0x3acb52}of _0x264405[_0x16ae('0x31')](_0xb86d80,{'includeAllSlots':!0x0,..._0x4f6f05}))if(!_0x5d8278||0x1!=_0x485dcc||0x1!=_0x3acb52)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1df8=['getContainedElement','TableColumnResizeEditing','bind','change','has','locale','Users','formatInline','resizeTableWidth','editor','formatGroupId','model','accept','subType','registerCustomCallback','plugins','getColumnGroupElement','selection','getTableColumnsWidths','get','columnWidths','document','formatBlock','discard','resizeTable','TrackChangesEditing','tableWidth','data','markBlockFormat','type','getSuggestions','*Format:*\x20resize\x20table','author','_suggestionFactory','enableCommand','getSelectedElement','getSuggestionCallback'];(function(_0x3f2c32,_0x1df825){const _0x1d39f7=function(_0x24b8dc){while(--_0x24b8dc){_0x3f2c32['push'](_0x3f2c32['shift']());}};_0x1d39f7(++_0x1df825);}(_0x1df8,0x16d));const _0x1d39=function(_0x3f2c32,_0x1df825){_0x3f2c32=_0x3f2c32-0x0;let _0x1d39f7=_0x1df8[_0x3f2c32];return _0x1d39f7;};import{Plugin as _0x112791}from'ckeditor5/src/core';import{getTranslation as _0x5a90fa}from'../utils/common-translations';export default class It extends _0x112791{['afterInit'](){if(!this['editor'][_0x1d39('0x14')][_0x1d39('0x9')](_0x1d39('0x6')))return;const _0x288dc7=this[_0x1d39('0xe')][_0x1d39('0x14')][_0x1d39('0x18')](_0x1d39('0x1e'));_0x288dc7[_0x1d39('0x2')](_0x1d39('0xd'),this['handleResizeTableWidthCommand'][_0x1d39('0x7')](this)),_0x288dc7[_0x1d39('0x1')][_0x1d39('0x13')]('formatBlock',_0x1d39('0x1d'),_0x1d39('0x11'),_0x288dc7[_0x1d39('0x1')]['getSuggestionCallback']('formatBlock',null,_0x1d39('0x1c'))),_0x288dc7[_0x1d39('0x1')]['registerCustomCallback'](_0x1d39('0x1b'),_0x1d39('0x1d'),_0x1d39('0x1c'),_0x288dc7[_0x1d39('0x1')][_0x1d39('0x4')](_0x1d39('0x1b'),null,_0x1d39('0x11'))),_0x288dc7['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x231de2,_0xf482d1){const _0x3536c0=this[_0x1d39('0xe')][_0x1d39('0x14')]['get'](_0x1d39('0x1e')),_0x2e4354=this[_0x1d39('0xe')][_0x1d39('0x14')]['get']('TableColumnResizeEditing'),_0x56aeb6=_0xf482d1['table']||this[_0x1d39('0xe')][_0x1d39('0x10')][_0x1d39('0x1a')][_0x1d39('0x16')][_0x1d39('0x3')]();this[_0x1d39('0xe')]['model'][_0x1d39('0x8')](()=>{const _0x15e82b=_0x2e4354[_0x1d39('0x15')](_0x56aeb6);let _0x29620a=_0x15e82b?_0x2e4354[_0x1d39('0x17')](_0x15e82b):null,_0x3c8332=_0x56aeb6['getAttribute']('tableWidth')||null;const _0x61872e=_0xf482d1['tableWidth']||_0x3c8332,_0x575a45=_0xf482d1[_0x1d39('0x19')]||_0x29620a,_0x381dbc=this[_0x1d39('0xe')][_0x1d39('0x14')][_0x1d39('0x18')](_0x1d39('0xb'))['me'];for(const _0x398e9d of _0x3536c0[_0x1d39('0x23')]()){const _0x5055ae=_0x398e9d[_0x1d39('0x5')]();if(_0x1d39('0x1d')===_0x398e9d[_0x1d39('0x12')]&&_0x5055ae===_0x56aeb6){_0x398e9d[_0x1d39('0x0')]!==_0x381dbc&&_0x398e9d[_0x1d39('0x1c')]();const _0x4a599a=_0x398e9d[_0x1d39('0x20')]['commandParams'];_0x3c8332=_0x4a599a[0x0][_0x1d39('0x1f')],_0x29620a=_0x4a599a[0x0][_0x1d39('0x19')];break;}}_0x231de2({'table':_0x56aeb6,'tableWidth':_0x61872e,'columnWidths':_0x575a45}),_0x3536c0[_0x1d39('0x21')](_0x56aeb6,{'commandName':_0x1d39('0xd'),'commandParams':[{'tableWidth':_0x3c8332,'columnWidths':_0x29620a}],'formatGroupId':_0x1d39('0x1d')},[],'resizeTable');});}['handleSuggestionDescription'](_0x2494c3){if(_0x1d39('0x1b')!=_0x2494c3[_0x1d39('0x22')]&&_0x1d39('0xc')!=_0x2494c3[_0x1d39('0x22')])return;const {data:_0x1942cf}=_0x2494c3;if(_0x1942cf&&'resizeTable'===_0x1942cf[_0x1d39('0xf')]){const _0x2a31ce=_0x1d39('0x24');return{'type':'format','content':_0x5a90fa(this['editor'][_0x1d39('0xa')],_0x2a31ce)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6691=['highest','bindElementToMarker','parent','createTableWalker','item','addMarker:suggestion','afterInit','ck-suggestion-marker-','headingRows','FORMAT_HEADER_ROW','editing','removeMarker:suggestion','FORMAT_REGULAR_ROW','locale','removeAttribute','consumable','options','markerNameToElements','removeClass','markerRange','format','addClass','consume','setTableRowHeader','TrackChangesEditing','_suggestionFactory','data-suggestion','ck-suggestion-marker--active','writer','has','getCellLocation','data','mapper','requires','FORMAT_HEADER_COLUMN','TableEditing','_descriptionFactory','end','registerCustomCallback','forceValue','start','cell','editor','nodeBefore','setAttribute','_handleLegacySuggestions','*Format:*\x20%0','get','_acceptFormatSuggestionCallbackFactory','downcastDispatcher','registerAttributeLabel','includes','toViewElement','_enableDefaultAttributesIntegration','plugins','type','getSuggestion','markerName','formatBlock','setTableColumnHeader','name','commandName','commandParams','accept','FORMAT_REGULAR_COLUMN','_splitMarkerName'];(function(_0x2c8a9f,_0x2fe332){const _0x100a28=function(_0x5ba5e2){while(--_0x5ba5e2){_0x2c8a9f['push'](_0x2c8a9f['shift']());}};_0x100a28(++_0x2fe332);}(_0x6691,0x11f));const _0x2fe3=function(_0x2c8a9f,_0x2fe332){_0x2c8a9f=_0x2c8a9f-0x0;let _0x100a28=_0x6691[_0x2c8a9f];return _0x100a28;};import{Plugin as _0x52f896}from'ckeditor5/src/core';import _0x93d7e6 from'./table';import{getTranslation as _0x4a1564}from'../utils/common-translations';export default class St extends _0x52f896{static get[_0x2fe3('0xa')](){return[_0x93d7e6];}[_0x2fe3('0x31')](){const _0x359fa6=this['editor'];if(!_0x359fa6[_0x2fe3('0x1f')][_0x2fe3('0x6')](_0x2fe3('0xc')))return;const _0x5a2f24=_0x359fa6['locale'],_0xe2e791=_0x359fa6[_0x2fe3('0x1f')][_0x2fe3('0x18')](_0x2fe3('0x1'));_0xe2e791[_0x2fe3('0x1e')]('setTableRowHeader',[],[_0x2fe3('0x33')]),_0xe2e791['_enableDefaultAttributesIntegration'](_0x2fe3('0x24'),[],['headingColumns']),_0xe2e791[_0x2fe3('0xd')][_0x2fe3('0x1b')](_0x2fe3('0x33'),_0x4a1564(_0x5a2f24,'FORMAT_HEADER_ROW')),_0xe2e791[_0x2fe3('0xd')]['registerAttributeLabel']('headingColumns',_0x4a1564(_0x5a2f24,_0x2fe3('0xb'))),this[_0x2fe3('0x16')]();}[_0x2fe3('0x16')](){const _0x2c6e3e=this['editor']['plugins']['get'](_0x2fe3('0x1')),_0x386891=this[_0x2fe3('0x13')]['plugins'][_0x2fe3('0x18')]('TableUtils'),_0x477da7=this['editor'][_0x2fe3('0x1f')]['get'](_0x93d7e6)[_0x2fe3('0x19')]();function _0x1cbb31({showActiveMarker:_0x2be660=!0x0,setDataAttribute:_0x33dca0=!0x0}={}){return(_0x201c55,_0x20c74a,_0x5a7966)=>{const {type:_0x33bcac,id:_0x274c9a}=_0x2c6e3e[_0x2fe3('0x2a')](_0x20c74a[_0x2fe3('0x22')]),_0x389631=_0x2c6e3e[_0x2fe3('0x21')](_0x274c9a),_0xc46945=_0x389631[_0x2fe3('0x8')];if('formatBlock'!=_0x389631[_0x2fe3('0x20')]||!_0xc46945||_0x2fe3('0x24')!=_0xc46945['commandName'])return;if(_0x20c74a[_0x2fe3('0x2f')])return void _0x201c55['stop']();if(!_0x5a7966[_0x2fe3('0x3a')][_0x2fe3('0x41')](_0x20c74a[_0x2fe3('0x3e')],_0x201c55[_0x2fe3('0x25')]))return;const _0x30580d=_0x20c74a[_0x2fe3('0x3e')][_0x2fe3('0x11')]['nodeAfter'],_0x479525=_0x20c74a[_0x2fe3('0x3e')][_0x2fe3('0xe')][_0x2fe3('0x14')],_0xdf17e9=_0x30580d[_0x2fe3('0x2d')][_0x2fe3('0x2d')],{column:_0x44e665}=_0x386891[_0x2fe3('0x7')](_0x30580d),{column:_0x596d91}=_0x386891['getCellLocation'](_0x479525);for(let _0x346cd4=_0x44e665;_0x346cd4<=_0x596d91;_0x346cd4++){const _0x267f46=_0x386891[_0x2fe3('0x2e')](_0xdf17e9,{'column':_0x346cd4,'includeAllSlots':!0x1});for(const _0xe43939 of _0x267f46){const _0xeef324=_0xe43939[_0x2fe3('0x12')],_0x9b590b=_0x5a7966[_0x2fe3('0x9')][_0x2fe3('0x1d')](_0xeef324);_0x5a7966[_0x2fe3('0x5')]['addClass'](_0x2fe3('0x32')+_0x33bcac,_0x9b590b),_0x33dca0&&_0x5a7966[_0x2fe3('0x5')][_0x2fe3('0x15')](_0x2fe3('0x3'),_0x274c9a,_0x9b590b),_0x5a7966[_0x2fe3('0x9')][_0x2fe3('0x2c')](_0x9b590b,_0x20c74a[_0x2fe3('0x22')]),_0x2be660&&(_0x2c6e3e['activeMarkers'][_0x2fe3('0x1c')](_0x20c74a[_0x2fe3('0x22')])?_0x5a7966['writer'][_0x2fe3('0x40')](_0x2fe3('0x4'),_0x9b590b):_0x5a7966[_0x2fe3('0x5')][_0x2fe3('0x3d')](_0x2fe3('0x4'),_0x9b590b));}}};}_0x2c6e3e[_0x2fe3('0x2')][_0x2fe3('0xf')](_0x2fe3('0x23'),_0x2fe3('0x0'),_0x2fe3('0x28'),_0x477da7),_0x2c6e3e[_0x2fe3('0x2')]['registerCustomCallback'](_0x2fe3('0x23'),_0x2fe3('0x24'),_0x2fe3('0x28'),_0x477da7),this['editor'][_0x2fe3('0x35')][_0x2fe3('0x1a')]['on'](_0x2fe3('0x30'),_0x1cbb31(),{'priority':_0x2fe3('0x2b')}),this[_0x2fe3('0x13')][_0x2fe3('0x8')][_0x2fe3('0x1a')]['on'](_0x2fe3('0x30'),(_0xb0bb94,_0x2efb9a,_0x4c30e8)=>{_0x4c30e8[_0x2fe3('0x3b')]['showSuggestionHighlights']&&_0x1cbb31({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xb0bb94,_0x2efb9a,_0x4c30e8);},{'priority':'highest'}),this[_0x2fe3('0x13')][_0x2fe3('0x35')]['downcastDispatcher']['on'](_0x2fe3('0x36'),(_0x4a450f,_0x2148e3,_0x134e0c)=>{const {type:_0x3b203f,id:_0xf61738}=_0x2c6e3e[_0x2fe3('0x2a')](_0x2148e3[_0x2fe3('0x22')]),_0x1a906f=_0x2c6e3e[_0x2fe3('0x21')](_0xf61738),_0x43a748=_0x1a906f[_0x2fe3('0x8')];if(_0x2fe3('0x23')!=_0x1a906f[_0x2fe3('0x20')]||!_0x43a748||'setTableColumnHeader'!=_0x43a748[_0x2fe3('0x26')])return;const _0x28bed3=_0x134e0c[_0x2fe3('0x9')][_0x2fe3('0x3c')](_0x2148e3[_0x2fe3('0x22')]);if(_0x28bed3)for(const _0x5899b7 of _0x28bed3)_0x134e0c['writer'][_0x2fe3('0x3d')](_0x2fe3('0x32')+_0x3b203f,_0x5899b7),_0x134e0c[_0x2fe3('0x5')][_0x2fe3('0x3d')](_0x2fe3('0x4'),_0x5899b7),_0x134e0c[_0x2fe3('0x5')][_0x2fe3('0x39')](_0x2fe3('0x3'),_0x5899b7),_0x134e0c[_0x2fe3('0x9')]['unbindElementFromMarkerName'](_0x5899b7,_0x2148e3[_0x2fe3('0x22')]);},{'priority':_0x2fe3('0x2b')}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b032c=this[_0x2fe3('0x13')],_0x4b29b5=_0x3b032c[_0x2fe3('0x38')];function _0x569da5(_0x2dbc8e){return{'type':_0x2fe3('0x3f'),'content':_0x4a1564(_0x4b29b5,_0x2fe3('0x17'),_0x2dbc8e)};}_0x3b032c[_0x2fe3('0x1f')]['get'](_0x2fe3('0x1'))[_0x2fe3('0xd')]['registerDescriptionCallback'](_0x49e81b=>{if(_0x2fe3('0x23')!=_0x49e81b[_0x2fe3('0x20')])return;const {data:_0x3855ab}=_0x49e81b;if(_0x3855ab){if(_0x2fe3('0x0')==_0x3855ab[_0x2fe3('0x26')]){const _0x5122da=_0x3855ab['commandParams'][0x0][_0x2fe3('0x10')];return _0x569da5(_0x4a1564(_0x4b29b5,_0x5122da?_0x2fe3('0x34'):_0x2fe3('0x37')));}if(_0x2fe3('0x24')==_0x3855ab[_0x2fe3('0x26')]){const _0x28494a=_0x3855ab[_0x2fe3('0x27')][0x0][_0x2fe3('0x10')];return _0x569da5(_0x4a1564(_0x4b29b5,_0x28494a?_0x2fe3('0xb'):_0x2fe3('0x29')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x123b=['formatInline','type','model','fromRange','markBlockFormat','requires','createRangeOn','trackChanges','createTableWalker','low','format','findAncestor','value','push','detach','getSelectionAffectedTableCells','isInContent','set:isEnabled','getAncestors','insertion','add','*Split\x20cell:*\x20vertically','mergeTableCellRight','subType','formatBlock','author','selection','mergeTableCellDown','size','mergeTableCellUp','table','*Merge\x20cells*','registerDescriptionCallback','TableUtils','horizontally','find','plugins','execute','refresh','_suggestionFactory','_descriptionFactory','_areMergableCells','splitTableCellVertically','getFirstPosition','splitTableCellHorizontally','mergeTableCells','setSelection','registerCustomCallback','mergeTableCellLeft','filter','map','document','cell','commandName','root','_tablePostFixingSubtypes','commands','_areSelectedCellsMergable','change','TrackChangesEditing','rootName','getRanges','enableCommand','length','get','_isForcedDefaultExecutionBlock','markMultiRangeBlockFormat','editor','TableEditing','from','stop','has','accept','tableCell','getCellLocation','isEnabled'];(function(_0xd977c5,_0x123bc3){const _0x5de75f=function(_0x283ccf){while(--_0x283ccf){_0xd977c5['push'](_0xd977c5['shift']());}};_0x5de75f(++_0x123bc3);}(_0x123b,0x9d));const _0x5de7=function(_0xd977c5,_0x123bc3){_0xd977c5=_0xd977c5-0x0;let _0x5de75f=_0x123b[_0xd977c5];return _0x5de75f;};import{Plugin as _0x122121}from'ckeditor5/src/core';import _0x30b1d6 from'./table';import{LiveRange as _0x4fe6d2}from'ckeditor5/src/engine';import{getTranslation as _0x22ad50}from'../utils/common-translations';export default class yt extends _0x122121{static get[_0x5de7('0x0')](){return[_0x30b1d6];}['afterInit'](){const _0x1a32a6=this[_0x5de7('0x3e')],_0x50bdbf=_0x1a32a6['model'][_0x5de7('0x2e')]['selection'],_0x2b2fe6=_0x1a32a6['locale'];if(!_0x1a32a6['plugins']['has'](_0x5de7('0x3f')))return;const _0x473801=_0x1a32a6['plugins']['get'](_0x5de7('0x36')),_0x43ff7b=_0x1a32a6[_0x5de7('0x1f')][_0x5de7('0x3b')](_0x5de7('0x1c')),_0x585bf7=_0x1a32a6['plugins'][_0x5de7('0x3b')](_0x30b1d6);_0x585bf7[_0x5de7('0x32')][_0x5de7('0x8')](_0x5de7('0x28')),_0x473801['enableCommand'](_0x5de7('0x28'),()=>{const _0x2a176d=_0x43ff7b[_0x5de7('0xa')](_0x1a32a6[_0x5de7('0x49')][_0x5de7('0x2e')][_0x5de7('0x15')]);_0x1a32a6['model'][_0x5de7('0x35')](()=>{_0x473801[_0x5de7('0x3d')](_0x2a176d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1a32a6[_0x5de7('0x33')][_0x5de7('0x3b')](_0x5de7('0x28'))['on'](_0x5de7('0x20'),(_0x33564a,_0x2ae217)=>{_0x1a32a6[_0x5de7('0x33')][_0x5de7('0x3b')](_0x5de7('0x2'))[_0x5de7('0x7')]&&(_0x2ae217[_0x5de7('0x3a')]>0x0&&_0x2ae217[_0x2ae217[_0x5de7('0x3a')]-0x1]&&_0x2ae217[_0x2ae217[_0x5de7('0x3a')]-0x1]['forceDefaultExecution']||_0x473801[_0x5de7('0x3c')]||this[_0x5de7('0x34')]()||_0x33564a['stop']());},{'priority':'highest'});for(const _0x262d56 of[_0x5de7('0x18'),_0x5de7('0x11'),_0x5de7('0x16'),_0x5de7('0x2b')]){const _0x5b981b=_0x1a32a6[_0x5de7('0x33')][_0x5de7('0x3b')](_0x262d56);_0x473801['enableCommand'](_0x262d56,()=>{const _0x151af8=_0x1a32a6[_0x5de7('0x49')][_0x5de7('0x2e')]['selection'][_0x5de7('0x26')]()[_0x5de7('0xd')]()['find'](_0x2d8bc6=>_0x2d8bc6['is']('element',_0x5de7('0x44'))),_0x26bf0e=_0x5b981b[_0x5de7('0x7')];_0x1a32a6[_0x5de7('0x49')]['change'](()=>{_0x473801[_0x5de7('0x3d')]([_0x151af8,_0x26bf0e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1f850e of[_0x5de7('0x25'),_0x5de7('0x27')]){const _0x3530ee=_0x1a32a6[_0x5de7('0x33')][_0x5de7('0x3b')](_0x1f850e);_0x473801[_0x5de7('0x39')](_0x1f850e,()=>{const _0x1ba1bc=_0x43ff7b[_0x5de7('0xa')](_0x1a32a6[_0x5de7('0x49')][_0x5de7('0x2e')]['selection'])[0x0],_0x2653e0=_0x1ba1bc[_0x5de7('0x6')](_0x5de7('0x19')),{column:_0x5dfed2,row:_0x4eac6f}=_0x43ff7b[_0x5de7('0x45')](_0x1ba1bc);let _0x836d9b=[];if(_0x5de7('0x1d')==_0x3530ee['direction']){const _0xddf2d0=_0x43ff7b[_0x5de7('0x3')](_0x2653e0,{'startRow':_0x4eac6f,'endRow':_0x4eac6f,'includeAllSlots':!0x0});_0x836d9b=Array[_0x5de7('0x40')](_0xddf2d0)['map'](_0x57a1c4=>_0x57a1c4[_0x5de7('0x2f')]);}else{const _0x599d19=_0x43ff7b[_0x5de7('0x3')](_0x2653e0,{'column':_0x5dfed2,'includeAllSlots':!0x0});_0x836d9b=Array[_0x5de7('0x40')](_0x599d19)[_0x5de7('0x2d')](_0x174b69=>_0x174b69['cell']);}_0x1a32a6[_0x5de7('0x49')][_0x5de7('0x35')](_0x1f1d72=>{_0x473801[_0x5de7('0x4b')](_0x1f1d72[_0x5de7('0x1')](_0x1ba1bc),{'commandName':_0x1f850e,'commandParams':[]},_0x836d9b,_0x1f850e);});});}_0x473801[_0x5de7('0x23')]['registerDescriptionCallback'](_0x2c036e=>{if(_0x5de7('0x13')!=_0x2c036e[_0x5de7('0x48')]&&_0x5de7('0x47')!=_0x2c036e[_0x5de7('0x48')])return;const {data:_0x133b59}=_0x2c036e;return _0x133b59&&'mergeTableCells'==_0x133b59['commandName']?{'type':_0x5de7('0x5'),'content':_0x22ad50(_0x2b2fe6,_0x5de7('0x1a'))}:void 0x0;}),_0x473801['_descriptionFactory'][_0x5de7('0x1b')](_0x37ee8d=>{if(_0x5de7('0x13')!=_0x37ee8d[_0x5de7('0x48')]&&_0x5de7('0x47')!=_0x37ee8d['type'])return;const {data:_0x14cc19}=_0x37ee8d;return _0x14cc19?'splitTableCellVertically'==_0x14cc19[_0x5de7('0x30')]?{'type':_0x5de7('0x5'),'content':_0x22ad50(_0x2b2fe6,_0x5de7('0x10'))}:'splitTableCellHorizontally'==_0x14cc19[_0x5de7('0x30')]?{'type':_0x5de7('0x5'),'content':_0x22ad50(_0x2b2fe6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1510f1=_0x585bf7['_acceptFormatSuggestionCallbackFactory']();for(const _0x5b98eb of['mergeTableCellUp',_0x5de7('0x11'),_0x5de7('0x16'),_0x5de7('0x2b')])_0x473801[_0x5de7('0x22')][_0x5de7('0x2a')](_0x5de7('0x13'),_0x5b98eb,_0x5de7('0x43'),_0x1510f1);for(const _0x31da9a of[_0x5de7('0x25'),'splitTableCellHorizontally'])_0x473801[_0x5de7('0x22')][_0x5de7('0x2a')]('formatBlock',_0x31da9a,_0x5de7('0x43'),_0x1510f1);_0x473801[_0x5de7('0x22')]['registerCustomCallback'](_0x5de7('0x13'),_0x5de7('0x28'),_0x5de7('0x43'),_0x21dab1=>{_0x1a32a6[_0x5de7('0x49')][_0x5de7('0x35')](_0x52d710=>{const _0x107510=Array['from'](_0x50bdbf[_0x5de7('0x38')]())['map'](_0x46e5e2=>_0x4fe6d2[_0x5de7('0x4a')](_0x46e5e2));_0x52d710['setSelection'](_0x21dab1),_0x1a32a6[_0x5de7('0x33')][_0x5de7('0x3b')](_0x5de7('0x28'))[_0x5de7('0x21')](),_0x1a32a6[_0x5de7('0x20')](_0x5de7('0x28'),{'forceDefaultExecution':!0x0});const _0x330b95=_0x107510[_0x5de7('0x2c')](_0x470698=>'$graveyard'!=_0x470698[_0x5de7('0x31')][_0x5de7('0x37')]);_0x330b95[_0x5de7('0x3a')]>0x0&&_0x52d710[_0x5de7('0x29')](_0x330b95);for(const _0x2ac69a of _0x107510)_0x2ac69a[_0x5de7('0x9')]();});});for(const _0xbc31bd of['mergeTableCellUp',_0x5de7('0x16'),_0x5de7('0x2b'),_0x5de7('0x11')]){const _0x50f283=_0x1a32a6[_0x5de7('0x33')][_0x5de7('0x3b')](_0xbc31bd);_0x50f283['on'](_0x5de7('0xc'),(_0x57cf76,_0x535836,_0xb5aeeb)=>{if(_0xb5aeeb){const _0x3f6c7d=_0x1a32a6[_0x5de7('0x49')][_0x5de7('0x2e')][_0x5de7('0x15')]['getFirstPosition']()[_0x5de7('0xd')]()[_0x5de7('0x1e')](_0x20dcaf=>_0x20dcaf['is']('element',_0x5de7('0x44')));this[_0x5de7('0x24')](_0x50f283['value'],_0x3f6c7d)||(_0x57cf76['return']=!0x1,_0x57cf76[_0x5de7('0x41')]());}},{'priority':_0x5de7('0x4')});}}[_0x5de7('0x34')](){const _0x4016e1=this['editor']['commands'][_0x5de7('0x3b')]('mergeTableCells'),_0x3cb6a9=this[_0x5de7('0x3e')][_0x5de7('0x1f')][_0x5de7('0x3b')](_0x5de7('0x1c'));if(!_0x4016e1[_0x5de7('0x46')])return!0x1;const _0x2cbdc9=_0x3cb6a9[_0x5de7('0xa')](this[_0x5de7('0x3e')][_0x5de7('0x49')]['document'][_0x5de7('0x15')]);for(const _0x27ebd7 of _0x2cbdc9)for(const _0x4a9478 of _0x2cbdc9)if(_0x27ebd7!=_0x4a9478&&!this[_0x5de7('0x24')](_0x27ebd7,_0x4a9478))return!0x1;return!0x0;}[_0x5de7('0x24')](_0x5b70a4,_0x56e6ab){const _0x57128a=this[_0x5de7('0x3e')][_0x5de7('0x1f')][_0x5de7('0x3b')](_0x5de7('0x36')),_0x284322=this[_0x5de7('0x3e')]['model'][_0x5de7('0x1')](_0x5b70a4),_0x2498b7=this['editor'][_0x5de7('0x49')][_0x5de7('0x1')](_0x56e6ab),_0x2c5d69=new Set(),_0x5909b2=new Set();for(const _0xf46d50 of _0x57128a['getSuggestions']())if((_0x5de7('0xe')==_0xf46d50[_0x5de7('0x48')]||'deletion'==_0xf46d50[_0x5de7('0x48')]||_0x5de7('0x28')==_0xf46d50[_0x5de7('0x12')])&&_0xf46d50[_0x5de7('0xb')])for(const _0xa38efe of _0xf46d50['getRanges']())_0xa38efe['containsRange'](_0x284322,!0x0)&&_0x2c5d69['add'](_0xf46d50['type']+':'+_0xf46d50[_0x5de7('0x14')]['id']),_0xa38efe['containsRange'](_0x2498b7,!0x0)&&_0x5909b2[_0x5de7('0xf')](_0xf46d50[_0x5de7('0x48')]+':'+_0xf46d50[_0x5de7('0x14')]['id']);if(_0x2c5d69[_0x5de7('0x17')]!=_0x5909b2['size'])return!0x1;for(const _0x2632c0 of _0x2c5d69)if(!_0x5909b2[_0x5de7('0x42')](_0x2632c0))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32ab=['insertTableOfContents','enableCommand','plugins','registerElementLabel','commands','_descriptionFactory','locale','get','TrackChangesEditing','afterInit'];(function(_0x1a55c6,_0x32ab20){const _0x3f8860=function(_0x20d6d5){while(--_0x20d6d5){_0x1a55c6['push'](_0x1a55c6['shift']());}};_0x3f8860(++_0x32ab20);}(_0x32ab,0xd2));const _0x3f88=function(_0x1a55c6,_0x32ab20){_0x1a55c6=_0x1a55c6-0x0;let _0x3f8860=_0x32ab[_0x1a55c6];return _0x3f8860;};import{Plugin as _0x3b03b4}from'ckeditor5/src/core';import{getTranslation as _0x3bf9e9}from'../utils/common-translations';export default class Ct extends _0x3b03b4{[_0x3f88('0x9')](){const _0x67f39e=this['editor'];if(!_0x67f39e[_0x3f88('0x4')]['get'](_0x3f88('0x0')))return;_0x67f39e[_0x3f88('0x2')][_0x3f88('0x7')](_0x3f88('0x8'))[_0x3f88('0x1')](_0x3f88('0x0'));const _0x317ef2=_0x67f39e[_0x3f88('0x2')][_0x3f88('0x7')](_0x3f88('0x8')),_0x472a5b=_0x67f39e[_0x3f88('0x6')];_0x317ef2[_0x3f88('0x5')][_0x3f88('0x3')]('tableOfContents',_0x17d0f3=>_0x3bf9e9(_0x472a5b,'ELEMENT_TABLE_OF_CONTENTS',_0x17d0f3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33ee=['TableCellPropertiesEditing','getSuggestionCallback','registerDescriptionCallback','_suggestionFactory','document','tableAlignment','plugins','tableCellBorderWidth','TablePropertiesEditing','selection','*Format:*\x20change\x20table\x20cell\x20properties','join','handleSuggestionDescription','getContainedElement','getSelectionAffectedTableCells','tableBorderWidth','enqueueChange','editor','formatBlock','nodeAfter','handleDiscardAction','tableCellBorderColor','TrackChangesTableProperties','tableBackgroundColor','has','_descriptionFactory','change','_handlePropertyChange','tableCellPadding','enableCommand','getSuggestions','commandParams','tableCellWidth','start','discard','tableCellHeight','locale','findAncestor','tableCellProperties','format','table','_getSuggestion','TableUtils','registerCustomCallback','accept','tableBorderColor','tableProperties','subType','pluginName','tableCellVerticalAlignment','tableCellBorderStyle','get','model','tableCellHorizontalAlignment','getFirstPosition','TrackChangesEditing','*Format:*\x20change\x20table\x20properties'];(function(_0x4fc654,_0x33eedd){const _0x41e723=function(_0x1e6067){while(--_0x1e6067){_0x4fc654['push'](_0x4fc654['shift']());}};_0x41e723(++_0x33eedd);}(_0x33ee,0x1b3));const _0x41e7=function(_0x4fc654,_0x33eedd){_0x4fc654=_0x4fc654-0x0;let _0x41e723=_0x33ee[_0x4fc654];return _0x41e723;};import{Plugin as _0x1dc800}from'ckeditor5/src/core';import{getTranslation as _0x50f909}from'../utils/common-translations';export default class Mt extends _0x1dc800{constructor(_0x2990f0){super(_0x2990f0),this['tableProperties']=[_0x41e7('0x9'),'tableBorderStyle',_0x41e7('0x24'),_0x41e7('0x1a'),'tableWidth','tableHeight',_0x41e7('0x2c')],this[_0x41e7('0x2')]=[_0x41e7('0x2a'),_0x41e7('0xe'),_0x41e7('0x1c'),_0x41e7('0x31'),_0x41e7('0x35'),_0x41e7('0x38'),'tableCellBackgroundColor',_0x41e7('0x11'),_0x41e7('0xd')];}static get[_0x41e7('0xc')](){return _0x41e7('0x2b');}['afterInit'](){const _0x3095fd=this['editor'][_0x41e7('0x1b')]['get']('TrackChangesEditing');if(this['editor'][_0x41e7('0x1b')][_0x41e7('0x2d')](_0x41e7('0x1d'))){for(const _0x19d6a1 of this[_0x41e7('0xa')])_0x3095fd[_0x41e7('0x32')](_0x19d6a1,(_0x2df4f0,_0x568a07)=>{const _0x84067d=this[_0x41e7('0x26')][_0x41e7('0x10')][_0x41e7('0x19')][_0x41e7('0x1e')][_0x41e7('0x12')]()[_0x41e7('0x1')](_0x41e7('0x4'));this[_0x41e7('0x30')](_0x19d6a1,[_0x84067d],this[_0x41e7('0xa')],'tableProperties',_0x2df4f0,_0x568a07);});_0x3095fd[_0x41e7('0x18')][_0x41e7('0x7')]('formatBlock',_0x41e7('0xa'),_0x41e7('0x8'),_0x3095fd['_suggestionFactory']['getSuggestionCallback'](_0x41e7('0x27'),null,_0x41e7('0x37'))),_0x3095fd['_suggestionFactory'][_0x41e7('0x7')]('formatBlock',_0x41e7('0xa'),_0x41e7('0x37'),(_0x2d6bb3,_0x5e78c5)=>this[_0x41e7('0x29')](this['tableProperties'],_0x2d6bb3,_0x5e78c5)),_0x3095fd['_suggestionFactory'][_0x41e7('0x7')](_0x41e7('0x27'),_0x41e7('0xa'),_0x41e7('0x20'),()=>!0x1);}if(this[_0x41e7('0x26')][_0x41e7('0x1b')][_0x41e7('0x2d')](_0x41e7('0x15'))){for(const _0x24aec3 of this[_0x41e7('0x2')])_0x3095fd[_0x41e7('0x32')](_0x24aec3,(_0x1a5dd4,_0x59e638)=>{const _0x2614d4=this['editor']['plugins'][_0x41e7('0xf')](_0x41e7('0x6'))[_0x41e7('0x23')](this[_0x41e7('0x26')]['model'][_0x41e7('0x19')]['selection']);this['_handlePropertyChange'](_0x24aec3,_0x2614d4,this[_0x41e7('0x2')],_0x41e7('0x2'),_0x1a5dd4,_0x59e638);});_0x3095fd[_0x41e7('0x18')][_0x41e7('0x7')]('formatBlock',_0x41e7('0x2'),_0x41e7('0x8'),_0x3095fd[_0x41e7('0x18')][_0x41e7('0x16')](_0x41e7('0x27'),null,_0x41e7('0x37'))),_0x3095fd[_0x41e7('0x18')][_0x41e7('0x7')]('formatBlock',_0x41e7('0x2'),_0x41e7('0x37'),(_0x25bce7,_0x1f6403)=>this['handleDiscardAction'](this[_0x41e7('0x2')],_0x25bce7,_0x1f6403)),_0x3095fd['_suggestionFactory'][_0x41e7('0x7')](_0x41e7('0x27'),'tableCellProperties',_0x41e7('0x20'),()=>!0x1);}_0x3095fd[_0x41e7('0x2e')][_0x41e7('0x17')](_0x1b2b80=>this[_0x41e7('0x21')](_0x1b2b80));}['_handlePropertyChange'](_0x28e547,_0x34db0a,_0x525997,_0x9ca471,_0x137b6f,_0x4342cc){const _0x1b6414=this[_0x41e7('0x26')][_0x41e7('0x1b')]['get'](_0x41e7('0x13'));this['editor'][_0x41e7('0x10')][_0x41e7('0x25')](_0x4342cc['batch'],()=>{for(const _0x296f50 of _0x34db0a){if(this[_0x41e7('0x5')](_0x296f50,_0x9ca471))_0x137b6f(_0x4342cc);else{const _0x3aac9d={};for(const _0x5aac4e of _0x525997){const _0x31c1d5=_0x296f50['getAttribute'](_0x5aac4e);void 0x0!==_0x31c1d5&&(_0x3aac9d[_0x5aac4e]=_0x31c1d5);}_0x137b6f(_0x4342cc),_0x1b6414['markBlockFormat'](_0x296f50,{'commandParams':[_0x3aac9d]},[],_0x9ca471);}}});}[_0x41e7('0x29')](_0x4cbc8e,_0x152b02,_0x131572){const _0x3307b4=_0x152b02[0x0][_0x41e7('0x36')][_0x41e7('0x28')],_0x56a34a=_0x131572[_0x41e7('0x34')][0x0];this['editor'][_0x41e7('0x10')][_0x41e7('0x2f')](_0x2f6bf4=>{for(const _0x303f21 of _0x4cbc8e)void 0x0!==_0x56a34a[_0x303f21]?_0x2f6bf4['setAttribute'](_0x303f21,_0x56a34a[_0x303f21],_0x3307b4):_0x2f6bf4['removeAttribute'](_0x303f21,_0x3307b4);});}['handleSuggestionDescription'](_0x326552){if(_0x326552['data'])switch(_0x326552[_0x41e7('0xb')]){case _0x41e7('0xa'):return{'type':'format','content':_0x50f909(this[_0x41e7('0x26')][_0x41e7('0x0')],_0x41e7('0x14'))};case _0x41e7('0x2'):return{'type':_0x41e7('0x3'),'content':_0x50f909(this[_0x41e7('0x26')]['locale'],_0x41e7('0x1f'))};}}[_0x41e7('0x5')](_0x53586a,_0x57fbbd){const _0x53cf22=this[_0x41e7('0x26')][_0x41e7('0x1b')][_0x41e7('0xf')](_0x41e7('0x13'));for(const _0xccc5a9 of _0x53cf22[_0x41e7('0x33')]({'skipNotAttached':!0x0})){const _0x3b8d47=_0xccc5a9[_0x41e7('0x22')]();if(_0xccc5a9['subType']===_0x57fbbd&&_0x3b8d47===_0x53586a)return _0xccc5a9;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4915=['has','Template','insertTemplate','get','editor','enableCommand','plugins','afterInit'];(function(_0x852a80,_0x4915ea){const _0x87db2b=function(_0x13b1d8){while(--_0x13b1d8){_0x852a80['push'](_0x852a80['shift']());}};_0x87db2b(++_0x4915ea);}(_0x4915,0x86));const _0x87db=function(_0x852a80,_0x4915ea){_0x852a80=_0x852a80-0x0;let _0x87db2b=_0x4915[_0x852a80];return _0x87db2b;};import{Plugin as _0x3839d7}from'ckeditor5/src/core';export default class vt extends _0x3839d7{[_0x87db('0x1')](){const _0x4c5050=this[_0x87db('0x6')];_0x4c5050[_0x87db('0x0')][_0x87db('0x2')](_0x87db('0x3'))&&_0x4c5050[_0x87db('0x0')][_0x87db('0x5')]('TrackChangesEditing')[_0x87db('0x7')](_0x87db('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x158c=['Title','end','isCollapsed','TrackChangesEditing','document','get','isEqual','getNearestSelectionRange','updateMarker','has','start','createRange','locale','plugins','forward','getChangedMarkers','differ','ELEMENT_TITLE','newRange','schema','model','afterInit','title-content','suggestion','nodeBefore','_descriptionFactory','removeMarker','isTouching'];(function(_0x58bfdb,_0x158ce4){const _0x439629=function(_0x5849c4){while(--_0x5849c4){_0x58bfdb['push'](_0x58bfdb['shift']());}};_0x439629(++_0x158ce4);}(_0x158c,0x1d9));const _0x4396=function(_0x58bfdb,_0x158ce4){_0x58bfdb=_0x58bfdb-0x0;let _0x439629=_0x158c[_0x58bfdb];return _0x439629;};import{Plugin as _0x3f1e5c}from'ckeditor5/src/core';import{getTranslation as _0x360dd0}from'../utils/common-translations';export default class _t extends _0x3f1e5c{[_0x4396('0x18')](){const _0x4ce418=this['editor'];if(!_0x4ce418[_0x4396('0x10')][_0x4396('0xc')](_0x4396('0x3')))return;const _0x689a00=_0x4ce418[_0x4396('0x10')][_0x4396('0x8')](_0x4396('0x6'));_0x689a00[_0x4396('0x0')]['registerElementLabel'](_0x4396('0x19'),()=>_0x360dd0(_0x4ce418[_0x4396('0xf')],_0x4396('0x14'))),_0x4ce418[_0x4396('0x17')][_0x4396('0x7')]['registerPostFixer'](_0x56cd60=>{let _0x3e0eb4=!0x1;const _0x1657b3=Array['from'](_0x4ce418[_0x4396('0x17')][_0x4396('0x7')][_0x4396('0x13')][_0x4396('0x12')]());for(const {name:_0x2bb377,data:_0x18b3f6}of _0x1657b3){const {group:_0x495b0a}=_0x689a00['_splitMarkerName'](_0x2bb377);if(_0x4396('0x1a')!==_0x495b0a||!_0x18b3f6[_0x4396('0x15')])continue;const _0x1b7f90=_0x18b3f6[_0x4396('0x15')],_0x470c55=_0x1b7f90[_0x4396('0x4')][_0x4396('0x1b')];if(!_0x470c55||!_0x470c55['is']('element',_0x4396('0x19')))continue;if(!_0x1b7f90[_0x4396('0xd')][_0x4396('0x2')](_0x1b7f90[_0x4396('0x4')]))continue;const _0x4db9c0=_0x4ce418[_0x4396('0x17')][_0x4396('0x16')][_0x4396('0xa')](_0x1b7f90[_0x4396('0x4')],_0x4396('0x11'));if(_0x4db9c0&&_0x4db9c0[_0x4396('0x5')]){const _0x29fdbb=_0x56cd60[_0x4396('0xe')](_0x1b7f90['start'],_0x4db9c0[_0x4396('0xd')]);_0x29fdbb[_0x4396('0x9')](_0x1b7f90)||(_0x56cd60[_0x4396('0xb')](_0x2bb377,{'range':_0x29fdbb}),_0x3e0eb4=!0x0);}_0x3e0eb4||(_0x56cd60[_0x4396('0x1')](_0x2bb377),_0x3e0eb4=!0x0);}return _0x3e0eb4;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1990=['get','undo','afterInit','editor','enableCommand','UndoEditing','redo','plugins','TrackChangesEditing'];(function(_0x49538f,_0x1990b9){const _0x3f8073=function(_0x48842f){while(--_0x48842f){_0x49538f['push'](_0x49538f['shift']());}};_0x3f8073(++_0x1990b9);}(_0x1990,0x77));const _0x3f80=function(_0x49538f,_0x1990b9){_0x49538f=_0x49538f-0x0;let _0x3f8073=_0x1990[_0x49538f];return _0x3f8073;};import{Plugin as _0x4aaba0}from'ckeditor5/src/core';export default class Dt extends _0x4aaba0{[_0x3f80('0x0')](){const _0x2b1c93=this[_0x3f80('0x1')],_0x366dcf=_0x2b1c93[_0x3f80('0x5')][_0x3f80('0x7')](_0x3f80('0x6'));_0x2b1c93['plugins']['has'](_0x3f80('0x3'))&&(_0x366dcf[_0x3f80('0x2')](_0x3f80('0x8')),_0x366dcf['enableCommand'](_0x3f80('0x4')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3836=['includes','span','getAttribute','schema','ck-suggestion-marker--active','createUIElement','markerName','writer','ck-suggestion-marker-','previousPosition','name','activeMarkers','listIndent','isLimit','listItem','mapper','createRangeOn','start','getWalker','TrackChangesEditing','getCustomProperty','isAtEnd','parent','get','nextSibling','item','test','plugins','getItems','addHighlight','markerRange','push','element','hasAttribute','addClass'];(function(_0x706696,_0x3836f9){const _0x2ff98c=function(_0x8dfcba){while(--_0x8dfcba){_0x706696['push'](_0x706696['shift']());}};_0x2ff98c(++_0x3836f9);}(_0x3836,0x81));const _0x2ff9=function(_0x706696,_0x3836f9){_0x706696=_0x706696-0x0;let _0x2ff98c=_0x3836[_0x706696];return _0x2ff98c;};export function getRangesWithAttribute(_0x355cf0,_0xec9bb7,_0x425edb){const _0x5b3a6c=[];for(const _0x5c91e7 of _0xec9bb7[_0x2ff9('0x4')]())_0x5c91e7[_0x2ff9('0x9')](_0x355cf0)&&_0x5b3a6c['push'](_0x425edb[_0x2ff9('0x1b')](_0x5c91e7));return _0x5b3a6c;}export function getElementsAffectedByListItemRename(_0x3de1a5){const _0x4e17e2=[];if(_0x3de1a5['is'](_0x2ff9('0x8'),'listItem')){let _0x34d3fc=_0x3de1a5[_0x2ff9('0x0')];for(;_0x34d3fc&&_0x34d3fc['is'](_0x2ff9('0x8'),_0x2ff9('0x19'))&&_0x34d3fc[_0x2ff9('0xd')](_0x2ff9('0x17'))>0x0;)_0x4e17e2[_0x2ff9('0x7')](_0x34d3fc),_0x34d3fc=_0x34d3fc[_0x2ff9('0x0')];}return _0x4e17e2;}export function downcastSplitMergeMarker(_0x579cb8,_0x189ba0,{showActiveMarker:_0x984482=!0x0}={}){const _0x29c1eb=_0x579cb8[_0x2ff9('0x3')][_0x2ff9('0x22')](_0x2ff9('0x1e'));return(_0x1cf46a,_0x82d33c,_0x515521)=>{if(!_0x515521['consumable'][_0x2ff9('0x2')](_0x82d33c[_0x2ff9('0x6')],_0x1cf46a[_0x2ff9('0x15')]))return;const _0x3f2985=_0x82d33c[_0x2ff9('0x6')][_0x2ff9('0x1d')](),_0x598143=_0x82d33c[_0x2ff9('0x6')][_0x2ff9('0x1c')],_0x5de4da=_0x579cb8['model'][_0x2ff9('0xe')];let _0x1848bd=null,_0x10a0c4=null,_0x3d0803=!0x1,_0x4a49ff=!0x1;for(const _0x42f436 of _0x3f2985){const _0xc833e3=_0x42f436[_0x2ff9('0x1')];_0x3d0803=_0x3d0803||_0x5de4da['isContent'](_0xc833e3);const _0x5a918f=_0x515521[_0x2ff9('0x1a')]['toViewElement'](_0xc833e3);if(_0x5a918f&&_0x5a918f[_0x2ff9('0x1f')](_0x2ff9('0x5')))return;'elementEnd'==_0x42f436['type']&&(_0x5de4da['isBlock'](_0xc833e3)&&!_0x5de4da[_0x2ff9('0x18')](_0xc833e3)&&(_0xc833e3[_0x2ff9('0x0')]||_0x598143[_0x2ff9('0x20')]?_0x1848bd&&_0x1848bd[_0x2ff9('0x21')]==_0xc833e3||(_0x1848bd=_0xc833e3,_0x33badf(_0x42f436[_0x2ff9('0x14')]),_0x4a49ff=!0x0):_0x10a0c4=_0x10a0c4||_0x42f436[_0x2ff9('0x14')]));}function _0x33badf(_0x219f3b){const _0x3de775=_0x515521[_0x2ff9('0x12')][_0x2ff9('0x10')](_0x2ff9('0xc'),{'class':_0x2ff9('0x13')+_0x189ba0}),_0x16abc0=_0x515521['mapper']['toViewPosition'](_0x219f3b);_0x984482&&_0x29c1eb[_0x2ff9('0x16')][_0x2ff9('0xb')](_0x82d33c[_0x2ff9('0x11')])&&_0x515521[_0x2ff9('0x12')][_0x2ff9('0xa')](_0x2ff9('0xf'),_0x3de775),_0x515521[_0x2ff9('0x12')]['insert'](_0x16abc0,_0x3de775),_0x515521[_0x2ff9('0x1a')]['bindElementToMarker'](_0x3de775,_0x82d33c[_0x2ff9('0x11')]);}_0x3d0803||_0x4a49ff||!_0x10a0c4||_0x33badf(_0x10a0c4);};}
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x448e=['split','getContainedElement','length','onAccept','isExternal','setAttribute','end','addRange','commentThread','getItems','subType','decorate','addMarker','hasComments','set','nodeAfter','createdAt','_onAttributesChange','map','from','discard','_saved','addMarkerName','previous','type','data','_onAccept','getRange','next','removeMarker','_onDiscard','attributes','getMultiRangeId','getMarkerNames','nodeBefore','add','isIntersecting','_isDataLoaded','getFirstMarker','authoredAt','filter','_model','onDiscard','_markerNames','getMarkers','getRanges','push','size','@external','substr','reduce','change','creator','removeMarkers','accept','head','markers'];(function(_0x3d5873,_0x448eb6){const _0x5cbaab=function(_0x2137bd){while(--_0x2137bd){_0x3d5873['push'](_0x3d5873['shift']());}};_0x5cbaab(++_0x448eb6);}(_0x448e,0x165));const _0x5cba=function(_0x3d5873,_0x448eb6){_0x3d5873=_0x3d5873-0x0;let _0x5cbaab=_0x448e[_0x3d5873];return _0x5cbaab;};import{Element as _0x1ee249}from'ckeditor5/src/engine';import{ObservableMixin as _0x42372a,uid as _0x5a274f}from'ckeditor5/src/utils';import{cloneDeep as _0x1df435,isEqual as _0x8128f8,set as _0x5f50aa,unset as _0x13dbd3}from'lodash-es';export default class u extends _0x42372a(){constructor(_0x3fab66,_0x5182bf){super(),this[_0x5cba('0x16')]=!0x1,this['id']=_0x5182bf['id'],this['type']=_0x5182bf[_0x5cba('0x9')],this[_0x5cba('0x34')]=_0x5182bf[_0x5cba('0x34')]||null,this['author']=_0x5182bf['author'],this[_0x5cba('0x25')]=_0x5182bf[_0x5cba('0x25')]||_0x5182bf['author'],this[_0x5cba('0x2e')]=Boolean(_0x5182bf[_0x5cba('0x10')]&&_0x5182bf[_0x5cba('0x10')][_0x5cba('0x21')]),this[_0x5cba('0xa')]=null,this['_model']=_0x3fab66,this[_0x5cba('0xb')]=_0x5182bf[_0x5cba('0x2d')],this[_0x5cba('0xf')]=_0x5182bf[_0x5cba('0x1b')],this[_0x5cba('0x2')]=_0x5182bf['onAttributesChange'],this[_0x5cba('0x1c')]=new Set(),this[_0x5cba('0x1')]=null,this[_0x5cba('0x38')](_0x5cba('0x18'),null),this[_0x5cba('0x38')](_0x5cba('0x10'),_0x5182bf[_0x5cba('0x10')]||{}),this[_0x5cba('0x38')](_0x5cba('0x8'),null),this[_0x5cba('0x38')](_0x5cba('0xd'),null),this[_0x5cba('0x38')](_0x5cba('0x32'),null),this[_0x5cba('0x38')](_0x5cba('0x6'),!0x1),this[_0x5cba('0x35')]('accept'),this['decorate'](_0x5cba('0x5'));}get[_0x5cba('0x28')](){let _0x34bb3d=this;for(;_0x34bb3d[_0x5cba('0x8')];)_0x34bb3d=_0x34bb3d[_0x5cba('0x8')];return _0x34bb3d;}get[_0x5cba('0x37')](){return!!this[_0x5cba('0x32')]&&this[_0x5cba('0x32')]['length']>0x0;}get['isMultiRange'](){if(0x0==this[_0x5cba('0x1c')][_0x5cba('0x20')])return!0x1;return 0x6==Array[_0x5cba('0x4')](this['_markerNames'])[0x0][_0x5cba('0x2a')](':')[_0x5cba('0x2c')];}get['isInContent'](){return null!==this[_0x5cba('0x17')]();}[_0x5cba('0x7')](_0xe0f04c){this[_0x5cba('0x1c')][_0x5cba('0x14')](_0xe0f04c);}[_0x5cba('0x12')](){return Array['from'](this[_0x5cba('0x1c')]);}[_0x5cba('0x1d')](){return this[_0x5cba('0x12')]()[_0x5cba('0x3')](_0x2cf5bc=>this[_0x5cba('0x1a')][_0x5cba('0x29')]['get'](_0x2cf5bc))[_0x5cba('0x19')](_0x21bddd=>_0x21bddd);}[_0x5cba('0x17')](){return this[_0x5cba('0x1d')]()[0x0]||null;}[_0x5cba('0x26')](){this['_model']['change'](_0x5e720c=>{for(const _0x48d8c6 of this[_0x5cba('0x1d')]())_0x5e720c[_0x5cba('0xe')](_0x48d8c6);}),this[_0x5cba('0x1c')]['clear']();}[_0x5cba('0xe')](_0x3126c8){this['_model'][_0x5cba('0x24')](_0x293166=>{_0x293166[_0x5cba('0xe')](_0x3126c8);}),this[_0x5cba('0x1c')]['delete'](_0x3126c8);}[_0x5cba('0x31')](_0x3384ee){const _0x421162='suggestion:'+this[_0x5cba('0x9')]+':'+this[_0x5cba('0x34')]+':'+this['id']+':'+this[_0x5cba('0x25')]['id']+':'+u[_0x5cba('0x11')]();this[_0x5cba('0x7')](_0x421162),this[_0x5cba('0x1a')][_0x5cba('0x24')](_0x2c8199=>{_0x2c8199[_0x5cba('0x36')](_0x421162,{'range':_0x3384ee,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x12785b){for(const _0x512cb6 of this[_0x5cba('0x1e')]())if(_0x512cb6[_0x5cba('0x15')](_0x12785b))return!0x0;return!0x1;}[_0x5cba('0x1e')](){return this['getMarkers']()[_0x5cba('0x3')](_0x35c9ed=>_0x35c9ed[_0x5cba('0xc')]());}[_0x5cba('0x33')](){return this[_0x5cba('0x1e')]()[_0x5cba('0x23')]((_0x523ebf,_0x2b0e46)=>[..._0x523ebf,..._0x2b0e46['getItems']()],[]);}['getFirstRange'](){var _0x1bcc72;return(null===(_0x1bcc72=this[_0x5cba('0x17')]())||void 0x0===_0x1bcc72?void 0x0:_0x1bcc72[_0x5cba('0xc')]())||null;}[_0x5cba('0x2b')](){const _0x2dd660=this['getRanges']();if(0x1!=_0x2dd660[_0x5cba('0x2c')])return null;const _0x3bc028=_0x2dd660[0x0],_0x25ba42=_0x3bc028['start'][_0x5cba('0x0')],_0x5bb077=_0x3bc028[_0x5cba('0x30')][_0x5cba('0x13')];return _0x25ba42 instanceof _0x1ee249?_0x25ba42!=_0x5bb077?null:_0x25ba42:null;}[_0x5cba('0x27')](){this[_0x5cba('0xb')](this[_0x5cba('0x1e')](),this[_0x5cba('0xa')],this['attributes']),this[_0x5cba('0x26')]();}['discard'](){this[_0x5cba('0xf')](this[_0x5cba('0x1e')](),this[_0x5cba('0xa')],this[_0x5cba('0x10')]),this[_0x5cba('0x26')]();}['getAllAdjacentSuggestions'](){const _0x1f6ab5=[];let _0x144120=this[_0x5cba('0x28')];for(;_0x144120;)_0x1f6ab5[_0x5cba('0x1f')](_0x144120),_0x144120=_0x144120[_0x5cba('0xd')];return _0x1f6ab5;}[_0x5cba('0x2f')](_0x2626fc,_0x137c7d){const _0xaa3c2c=_0x1df435(this[_0x5cba('0x10')]);_0x5f50aa(_0xaa3c2c,_0x2626fc,_0x137c7d),_0x8128f8(_0xaa3c2c,this[_0x5cba('0x10')])||(this[_0x5cba('0x10')]=_0xaa3c2c,this[_0x5cba('0x2')](_0xaa3c2c));}['removeAttribute'](_0x4f168b){const _0x277a86=_0x1df435(this[_0x5cba('0x10')]);_0x13dbd3(_0x277a86,_0x4f168b),_0x8128f8(_0x277a86,this[_0x5cba('0x10')])||(this[_0x5cba('0x10')]=_0x277a86,this[_0x5cba('0x2')](this[_0x5cba('0x10')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x5cba('0x34')]?this[_0x5cba('0x9')]+':'+this[_0x5cba('0x34')]:this[_0x5cba('0x9')],'authorId':this[_0x5cba('0x25')]['id'],'createdAt':this[_0x5cba('0x1')],'hasComments':this[_0x5cba('0x37')],'data':this[_0x5cba('0xa')],'attributes':this[_0x5cba('0x10')]};}static[_0x5cba('0x11')](){return _0x5a274f()[_0x5cba('0x22')](0x1,0x5);}}
|