@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231123.0 → 0.0.0-nightly-20231125.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/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 _0x57b7=['insertContent','afterInit','endRow','add','author','batch','newRange','differ','getContainedElement','keys','find','createPositionBefore','fromEntries','registerCustomCallback','markMultiRangeDeletion','deletion','has','oldRange','_replaceTableSlotCell','isInContent','register','model','subType','every','value','next','tableCellBorderWidth','tablePaste','setAttributes','start','startsWith','insertion','position','tableCellBorderColor','entries','getColumns','unwrap','dataDowncast','tablePasteRow','rowInsertionRanges','getAllAdjacentSuggestions','_tablePostFixingSubtypes','markerToHighlight','_descriptionFactory','cells','getChild','createRangeOn','isEqual','activeMarkers','removeColumns','getTableIfOnlyTableInContent','removeRows','table','rows','listenTo','tableCellHorizontalAlignment','content','insertRows','tableCellPadding','rootName','createTableWalker','deletionRanges','attributes','markers','length','createRangeIn','accept','columnInsertionIndexes','elementToElement','some','tablePasteChainId','join','tableCellVerticalAlignment','*Replace\x20table\x20cells*','tableCell','locale','plugins','editor','suggestion','getItems','stop','fill','previous','remove','getRange','tableCellBorderStyle','columnInsertionRanges','Users','getChildren','getMarkers','createElement','get','editingDowncast','change','high','insert','type','columns','containsRange','conversion','return','last','findAncestor','getSuggestion','removeMarkers','$graveyard','ck-suggestion-marker-insertion','suggestion:formatBlock:tablePasteCell','set','suggestionUnloaded','options','markerAttributes','element','wrap','removeMarker','tablePasteCell','map','isEmpty','ck-suggestion-marker','getSuggestionCallback','filter','discard','insertionRanges','_createdBatches','TableClipboard','trackChanges','includes','ck-suggestion-marker--active','requires','endColumn','tableCellSuggestion','cell','_suggestionFactory','low','getColumnIndexes','tableCellBackgroundColor','first','name','from','move','forceDefaultExecution','for','createRange','editing','end','document','view','registerDescriptionCallback','tablePasteColumn','_splitMarkerName','paragraph','nextSibling','getSelectionAffectedTableCells','getRanges','getSuggestions','formatBlock','getChangedMarkers','push','registerPostFixer','markMultiRangeInsertion','markerName'];(function(_0x381ebd,_0x57b7f0){const _0x37a44b=function(_0x163d08){while(--_0x163d08){_0x381ebd['push'](_0x381ebd['shift']());}};_0x37a44b(++_0x57b7f0);}(_0x57b7,0x14f));const _0x37a4=function(_0x381ebd,_0x57b7f0){_0x381ebd=_0x381ebd-0x0;let _0x37a44b=_0x57b7[_0x381ebd];return _0x37a44b;};import{getTranslation as _0x2e43ca}from'../utils/common-translations';import{Plugin as _0x2ac6e4}from'ckeditor5/src/core';import{uid as _0x20e5b6,priorities as _0x22d3c7}from'ckeditor5/src/utils';import _0x4d668e from'./table';const le=[_0x37a4('0xd'),_0x37a4('0x14'),_0x37a4('0x48'),_0x37a4('0x2a'),_0x37a4('0x3b'),_0x37a4('0x7a'),_0x37a4('0x2d')],ae=Object[_0x37a4('0xa0')](le[_0x37a4('0x67')](_0x20e610=>[_0x20e610,null]));export default class At extends _0x2ac6e4{static get[_0x37a4('0x73')](){return[_0x4d668e];}[_0x37a4('0x95')](){const _0x303dd6=this[_0x37a4('0x40')];if(!_0x303dd6['plugins'][_0x37a4('0x3')](_0x37a4('0x6f')))return;const _0x277b72=_0x303dd6['plugins'][_0x37a4('0x4e')]('TrackChangesEditing'),_0x2c045d=_0x303dd6[_0x37a4('0x3f')]['get']('TableUtils'),_0x3c5dc5=_0x303dd6[_0x37a4('0x3f')]['get'](_0x4d668e),_0x316bc2=_0x303dd6[_0x37a4('0x3f')][_0x37a4('0x4e')](_0x37a4('0x6f'));_0x3c5dc5[_0x37a4('0x1c')][_0x37a4('0x90')](_0x37a4('0x19'),'tablePasteColumn'),_0x303dd6[_0x37a4('0x8')]['schema'][_0x37a4('0x7')]('tableCellSuggestion',{'allowIn':_0x37a4('0x3d'),'allowContentOf':_0x37a4('0x3d'),'isLimit':!0x0}),_0x303dd6[_0x37a4('0x56')][_0x37a4('0x37')]({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x446065=null;_0x303dd6[_0x37a4('0x8')]['on'](_0x37a4('0x94'),(_0x557f34,_0x25f877)=>{const [_0xf679d0,_0x3093c7]=_0x25f877,_0x36a277=_0x25f877[_0x25f877[_0x37a4('0x33')]-0x1];_0x36a277&&_0x36a277[_0x37a4('0x7f')]||_0x277b72['_isForcedDefaultExecutionBlock']||this[_0x37a4('0x40')]['commands'][_0x37a4('0x4e')](_0x37a4('0x70'))[_0x37a4('0xb')]&&function(_0xb410e3,_0x2abe78,_0x1254de,_0x12533b,_0x2ad44f){if(_0x2abe78&&!_0x2abe78['is']('documentSelection'))return!0x1;const _0x5e8fc7=_0x2ad44f[_0x37a4('0x25')](_0xb410e3,_0x1254de);if(!_0x5e8fc7||!fe(_0x5e8fc7,void 0x0,_0x12533b))return!0x1;const _0xaf90d2=_0x12533b[_0x37a4('0x8b')](_0x1254de[_0x37a4('0x84')]['selection']);if(!_0xaf90d2['length'])return!0x1;const _0x3ae941=_0xaf90d2[0x0]['findAncestor'](_0x37a4('0x27')),_0x158faf=_0x12533b['getRowIndexes'](_0xaf90d2),_0x1aa855=_0x12533b[_0x37a4('0x79')](_0xaf90d2),_0x4e7500={'startRow':_0x158faf[_0x37a4('0x7b')],'endRow':_0x158faf['last'],'startColumn':_0x1aa855[_0x37a4('0x7b')],'endColumn':_0x1aa855[_0x37a4('0x58')]};return 0x1==_0xaf90d2['length']&&(_0x4e7500[_0x37a4('0x96')]+=_0x12533b['getRows'](_0x5e8fc7)-0x1,_0x4e7500[_0x37a4('0x74')]+=_0x12533b[_0x37a4('0x16')](_0x5e8fc7)-0x1),fe(_0x3ae941,_0x4e7500,_0x12533b);}(_0xf679d0,_0x3093c7,_0x303dd6[_0x37a4('0x8')],_0x2c045d,_0x316bc2)&&(_0x557f34[_0x37a4('0x43')](),_0x446065={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x303dd6[_0x37a4('0x8')][_0x37a4('0x50')](()=>{_0x303dd6[_0x37a4('0x8')]['insertContent'](_0x25f877[0x0],_0x25f877[0x1],_0x25f877[0x2],{'forceDefaultExecution':!0x0});const _0x45809f=_0x20e5b6(),{rowInsertionRanges:_0x3dc883,columnInsertionRanges:_0x519677,insertionRanges:_0x4c1cdc,deletionRanges:_0x53fd0a,cells:_0x384a88}=_0x446065;_0x3dc883[_0x37a4('0x33')]&&_0x277b72[_0x37a4('0x92')](_0x3dc883,'tablePasteRow',{'tablePasteChainId':_0x45809f}),_0x519677[_0x37a4('0x33')]&&_0x277b72[_0x37a4('0x92')](_0x519677,_0x37a4('0x87'),{'tablePasteChainId':_0x45809f}),_0x4c1cdc[_0x37a4('0x33')]&&_0x277b72[_0x37a4('0x92')](_0x4c1cdc,_0x37a4('0xe'),{'tablePasteChainId':_0x45809f,'skipNestingCheck':!0x0}),_0x53fd0a['length']&&_0x277b72[_0x37a4('0x1')](_0x53fd0a,_0x37a4('0xe'),{'tablePasteChainId':_0x45809f,'skipNestingCheck':!0x0});const _0x17d409=_0x277b72['markMultiRangeBlockFormat'](_0x384a88['map'](({element:_0x27be3b})=>_0x27be3b),{'formatGroupId':_0x20e5b6()},[],_0x37a4('0x66'),{'tablePasteChainId':_0x45809f});if(_0x17d409){const _0x5add3b=_0x17d409[_0x37a4('0x4c')](),_0x4ad57d=[];for(const {element:_0x28cf30,attributes:_0x2f65fe}of _0x384a88){if(!_0x2f65fe)continue;const _0x10da8e=_0x303dd6[_0x37a4('0x8')][_0x37a4('0x21')](_0x28cf30),_0x4eafe7=_0x5add3b[_0x37a4('0x9e')](_0x4bbf44=>_0x4bbf44[_0x37a4('0x47')]()[_0x37a4('0x22')](_0x10da8e));_0x4eafe7&&_0x4ad57d[_0x37a4('0x90')]([_0x4eafe7[_0x37a4('0x7c')],_0x2f65fe]);}_0x4ad57d[_0x37a4('0x33')]&&_0x17d409['setAttribute'](_0x37a4('0x62'),Object['fromEntries'](_0x4ad57d));}_0x446065=null;}));},{'priority':_0x22d3c7[_0x37a4('0x51')]+0xa}),_0x303dd6[_0x37a4('0x3f')][_0x37a4('0x4e')]('TableClipboard')['on'](_0x37a4('0x5'),(_0x31ae4c,_0x15d4b1)=>{const [_0x21a1a4,_0xc80b75,,_0x3ca908]=_0x15d4b1;if(!_0x446065)return;_0x31ae4c[_0x37a4('0x43')]();const _0xd95f97=_0x21a1a4[_0x37a4('0x76')],_0x222be6=_0xc80b75,_0x37d722=ce(_0xd95f97),_0xb5a51f=ce(_0x222be6);_0x31ae4c[_0x37a4('0x57')]=_0xd95f97;let _0x4f7d40=null,_0x54be31=null;if(_0xb5a51f||_0x37d722){if(_0x37d722&&!_0xb5a51f){_0x3ca908[_0x37a4('0x46')](_0xd95f97[_0x37a4('0x20')](0x0));for(const _0x49714a of Array[_0x37a4('0x7d')](_0x222be6[_0x37a4('0x4b')]()))_0x3ca908[_0x37a4('0x52')](_0x49714a,_0xd95f97,_0x37a4('0x83'));const _0x474067=_0x446065['rowInsertionIndexes'][_0x37a4('0x71')](_0x21a1a4['row']),_0x20d0e6=_0x446065[_0x37a4('0x36')][_0x37a4('0x71')](_0x21a1a4['column']);_0x474067||_0x20d0e6||(_0x4f7d40=_0x3ca908[_0x37a4('0x34')](_0xd95f97));}else _0xb5a51f&&!_0x37d722&&(_0x54be31=_0x3ca908[_0x37a4('0x34')](_0xd95f97));}else{const _0x45dafa=_0x3ca908[_0x37a4('0x4d')](_0x37a4('0x75')),_0x2060d2=_0x3ca908['createElement'](_0x37a4('0x75'));_0x3ca908[_0x37a4('0x64')](_0x3ca908[_0x37a4('0x34')](_0xd95f97),_0x2060d2),_0x3ca908[_0x37a4('0x52')](_0x45dafa,_0xd95f97,0x0);for(const _0x251436 of Array[_0x37a4('0x7d')](_0x222be6['getChildren']()))_0x3ca908[_0x37a4('0x52')](_0x251436,_0x45dafa,'end');_0x4f7d40=_0x3ca908[_0x37a4('0x21')](_0x45dafa),_0x54be31=_0x3ca908['createRangeOn'](_0x2060d2);}const _0xd7bf1f=Array['from'](_0x222be6['getAttributes']())[_0x37a4('0x6b')](([_0x26aa3a])=>le[_0x37a4('0x71')](_0x26aa3a));_0x446065[_0x37a4('0x1f')][_0x37a4('0x90')]({'element':_0xd95f97,'attributes':_0xd7bf1f[_0x37a4('0x33')]?Object[_0x37a4('0xa0')](_0xd7bf1f):null}),_0x4f7d40&&_0x446065[_0x37a4('0x6d')][_0x37a4('0x90')](_0x4f7d40),_0x54be31&&_0x446065[_0x37a4('0x30')][_0x37a4('0x90')](_0x54be31);},{'priority':'high'}),_0x2c045d['on']('insertColumns',(_0x5b5373,_0x17817b)=>{const [_0x400b48,_0x3aca84={}]=_0x17817b;if(!_0x446065)return;const _0x4af710=_0x3aca84['at']||0x0,_0x177464=_0x3aca84[_0x37a4('0x54')]||0x1;_0x446065[_0x37a4('0x36')]=new Array(_0x177464)[_0x37a4('0x44')](_0x4af710)['map']((_0x161a5f,_0x59a2ea)=>_0x161a5f+_0x59a2ea);for(const {cell:_0x5b5c1d}of _0x2c045d[_0x37a4('0x2f')](_0x400b48,{'startColumn':_0x4af710,'endColumn':_0x4af710+_0x177464-0x1}))_0x446065[_0x37a4('0x49')]['push'](_0x303dd6[_0x37a4('0x8')][_0x37a4('0x21')](_0x5b5c1d));},{'priority':_0x37a4('0x78')}),_0x2c045d['on'](_0x37a4('0x2c'),(_0x506b31,_0x1f6321)=>{const [_0x2c75aa,_0x42caae={}]=_0x1f6321;if(!_0x446065)return;const _0x1c0c0f=_0x42caae['at']||0x0,_0xa119b7=_0x42caae[_0x37a4('0x28')]||0x1;_0x446065['rowInsertionIndexes']=new Array(_0xa119b7)['fill'](_0x1c0c0f)['map']((_0x1a9ef3,_0x5465d0)=>_0x1a9ef3+_0x5465d0);for(const {cell:_0x5bc740}of _0x2c045d[_0x37a4('0x2f')](_0x2c75aa,{'startRow':_0x1c0c0f,'endRow':_0x1c0c0f+_0xa119b7-0x1}))_0x446065[_0x37a4('0x1a')]['push'](_0x303dd6[_0x37a4('0x8')]['createRangeOn'](_0x5bc740));},{'priority':_0x37a4('0x78')}),_0x277b72[_0x37a4('0x1e')][_0x37a4('0x86')](_0x3bd4c2=>{if(_0x3bd4c2[_0x37a4('0x9')]&&_0x3bd4c2[_0x37a4('0x9')][_0x37a4('0x11')](_0x37a4('0xe')))return _0x3bd4c2['previous']?{}:{'type':_0x37a4('0x12'),'content':_0x2e43ca(_0x303dd6[_0x37a4('0x3e')],_0x37a4('0x3c'))};});const _0x5669bc=()=>!0x1;for(const _0x3316a4 of[_0x37a4('0xe'),_0x37a4('0x87'),_0x37a4('0x19'),_0x37a4('0x66')])_0x277b72['_suggestionFactory'][_0x37a4('0x0')](_0x37a4('0x12'),_0x3316a4,_0x37a4('0x3a'),_0x5669bc),_0x277b72['_suggestionFactory'][_0x37a4('0x0')]('deletion',_0x3316a4,'join',_0x5669bc),_0x277b72[_0x37a4('0x77')][_0x37a4('0x0')](_0x37a4('0x8e'),_0x3316a4,_0x37a4('0x3a'),_0x5669bc);_0x277b72['_suggestionFactory'][_0x37a4('0x0')](_0x37a4('0x8e'),'tablePasteCell',_0x37a4('0x6c'),_0x5669bc),_0x277b72[_0x37a4('0x77')]['registerCustomCallback'](_0x37a4('0x8e'),_0x37a4('0x66'),_0x37a4('0x35'),(_0x18156b,_0x1915ba,_0x417a6c)=>{const _0x221107=_0x18156b[_0x37a4('0x67')](_0x180151=>_0x180151[_0x37a4('0x9c')]())[_0x37a4('0x6b')](_0x43815e=>_0x43815e),_0x8444ae=new Map(_0x221107[_0x37a4('0x67')](_0x452fe9=>[_0x452fe9,null]));if(_0x446065)for(const {element:_0x1925ba,attributes:_0x2348c1}of _0x446065[_0x37a4('0x1f')])_0x2348c1&&_0x8444ae[_0x37a4('0x5f')](_0x1925ba,_0x2348c1);else{if(_0x417a6c&&_0x417a6c[_0x37a4('0x62')])for(const [_0x23b948,_0x5634ab]of Object[_0x37a4('0x15')](_0x417a6c['markerAttributes'])){const _0x17fd63=_0x303dd6['model'][_0x37a4('0x32')]['get'](_0x23b948),_0x38e766=_0x17fd63?_0x17fd63['getRange']()[_0x37a4('0x9c')]():null;_0x38e766&&_0x8444ae[_0x37a4('0x5f')](_0x38e766,_0x5634ab);}}_0x303dd6[_0x37a4('0x8')]['change'](_0x3877f1=>{for(const [_0x451d30,_0x2701dc]of _0x8444ae)_0x3877f1[_0x37a4('0xf')]({...ae,..._0x2701dc},_0x451d30);});});const _0x2c2000=(_0x4fb607,_0x1a5fb7)=>{_0x277b72[_0x37a4('0x77')][_0x37a4('0x0')](_0x4fb607,'tablePaste',_0x1a5fb7,(_0x2f8927,_0x1859f5,_0x2c7709)=>{_0x303dd6[_0x37a4('0x8')][_0x37a4('0x50')](_0x31d318=>{const _0x2c749e=[];for(const _0xb04213 of _0x2f8927){const _0x4ee225=_0xb04213[_0x37a4('0x10')]['nodeAfter'];_0x4ee225['is'](_0x37a4('0x63'),_0x37a4('0x75'))&&_0x2c749e[_0x37a4('0x90')](_0x4ee225);}_0x277b72[_0x37a4('0x77')][_0x37a4('0x6a')](_0x4fb607,null,_0x1a5fb7)(_0x2f8927,_0x1859f5,_0x2c7709);for(const _0x2f438c of _0x2c749e)_0x37a4('0x5c')!=_0x2f438c['root'][_0x37a4('0x2e')]&&_0x31d318[_0x37a4('0x17')](_0x2f438c);});});};_0x2c2000('insertion','accept'),_0x2c2000('insertion',_0x37a4('0x6c')),_0x2c2000('deletion',_0x37a4('0x35')),_0x2c2000(_0x37a4('0x2'),'discard'),_0x277b72[_0x37a4('0x77')][_0x37a4('0x0')](_0x37a4('0x12'),'tablePasteRow',_0x37a4('0x6c'),_0xec8588=>{const _0x260380=_0xec8588[_0x37a4('0x67')](_0x2ccf44=>_0x2ccf44[_0x37a4('0x9c')]()),_0x141ec0=_0x260380[0x0][_0x37a4('0x59')](_0x37a4('0x27')),{minRow:_0xf182e6,maxRow:_0xa35a7c}=_0x3c5dc5['_getCoordsForCells'](_0x260380);_0x2c045d[_0x37a4('0x26')](_0x141ec0,{'at':_0xf182e6,'rows':_0xa35a7c-_0xf182e6+0x1});}),_0x277b72['_suggestionFactory'][_0x37a4('0x0')](_0x37a4('0x12'),_0x37a4('0x87'),'discard',_0x5732f2=>{const _0x392337=_0x5732f2['map'](_0x13a30a=>_0x13a30a[_0x37a4('0x9c')]()),_0x1c5687=_0x392337[0x0][_0x37a4('0x59')](_0x37a4('0x27')),{minColumn:_0x4a21bd,maxColumn:_0x4dccd7}=_0x3c5dc5['_getCoordsForCells'](_0x392337);_0x2c045d[_0x37a4('0x24')](_0x1c5687,{'at':_0x4a21bd,'columns':_0x4dccd7-_0x4a21bd+0x1});});const _0x29eaec=(_0x866951,_0x580a80)=>{if(!_0x580a80[_0x37a4('0x9')]||!_0x580a80[_0x37a4('0x9')][_0x37a4('0x11')]('tablePaste'))return;const _0x16b529=_0x580a80[_0x37a4('0x31')][_0x37a4('0x39')],_0x2b4934=_0x277b72[_0x37a4('0x8d')]()['filter'](_0x464d72=>_0x464d72[_0x37a4('0x6')]&&_0x464d72[_0x37a4('0x31')]&&_0x464d72['attributes'][_0x37a4('0x39')]==_0x16b529);_0x2b4934['length']&&_0x580a80[_0x37a4('0x1b')]()[_0x37a4('0x33')]!=_0x2b4934[_0x37a4('0x33')]&&_0x2b4934['reduce']((_0x248e56,_0x3e60f6)=>(_0x248e56[_0x37a4('0xc')]=_0x3e60f6,_0x3e60f6[_0x37a4('0x45')]=_0x248e56,_0x3e60f6));};function _0x5ea1ac(_0x18cddf,_0x35f6aa=!0x0){const {id:_0x2fc82b}=_0x277b72[_0x37a4('0x88')](_0x18cddf[_0x37a4('0x93')]),_0x572aa7=[_0x37a4('0x69'),_0x37a4('0x5d')],_0x365ebf=_0x277b72[_0x37a4('0x23')][_0x37a4('0x71')](_0x18cddf['markerName']);return _0x365ebf&&_0x572aa7['push'](_0x37a4('0x72')),{'classes':_0x572aa7,'attributes':{'data-suggestion':_0x2fc82b},'priority':_0x365ebf&&_0x35f6aa?0xbc2:0xbb8};}_0x277b72['on']('suggestionLoaded',_0x29eaec,{'priority':_0x37a4('0x51')}),_0x277b72['on'](_0x37a4('0x60'),_0x29eaec,{'priority':_0x37a4('0x51')}),_0x303dd6[_0x37a4('0x8')][_0x37a4('0x84')][_0x37a4('0x91')](()=>{let _0x3aee8d=!0x1;const _0x201269=Array['from'](_0x303dd6['model'][_0x37a4('0x84')]['differ'][_0x37a4('0x8f')]());for(const {name:_0x40259b,data:_0x164993}of _0x201269){const {group:_0x49b076,type:_0x3bf63c,id:_0x1c5cfb}=_0x277b72[_0x37a4('0x88')](_0x40259b);if(_0x37a4('0x41')!=_0x49b076||'deletion'!=_0x3bf63c||_0x164993['oldRange'])continue;if(!_0x277b72['hasSuggestion'](_0x1c5cfb))continue;const _0x27cab2=_0x277b72[_0x37a4('0x5a')](_0x1c5cfb)[_0x37a4('0x8c')](),_0x15ee67=_0x303dd6[_0x37a4('0x3f')]['get']('Users')['me'];for(const _0x94c5c5 of _0x277b72[_0x37a4('0x8d')]()){if(!_0x94c5c5[_0x37a4('0x6')]||_0x94c5c5[_0x37a4('0x98')]!=_0x15ee67)continue;if(_0x37a4('0x8e')!=_0x94c5c5[_0x37a4('0x53')]||_0x37a4('0x66')!=_0x94c5c5[_0x37a4('0x9')])continue;if(_0x94c5c5['getRanges']()[_0x37a4('0xa')](_0x24e500=>_0x27cab2[_0x37a4('0x38')](_0x1c7c78=>_0x1c7c78[_0x37a4('0x55')](_0x24e500,!0x0))))for(const _0x36307f of _0x94c5c5[_0x37a4('0x1b')]())_0x36307f[_0x37a4('0x6')]&&(_0x36307f[_0x37a4('0x6c')](),_0x3aee8d=!0x0);}}return _0x3aee8d;}),_0x303dd6[_0x37a4('0x8')][_0x37a4('0x84')]['registerPostFixer'](_0x3f1907=>{const _0x4da7cc=_0x303dd6['commands'][_0x37a4('0x4e')]('redo');if(!_0x4da7cc||!_0x4da7cc[_0x37a4('0x6e')][_0x37a4('0x3')](_0x3f1907[_0x37a4('0x99')]))return!0x1;let _0x23b03f=!0x1;const _0x3868e5=_0x303dd6[_0x37a4('0x3f')][_0x37a4('0x4e')](_0x37a4('0x4a'))['me'],_0x1559cf=_0x303dd6[_0x37a4('0x8')]['document'][_0x37a4('0x9b')]['getChanges'](),_0x3495ba=Array[_0x37a4('0x7d')](_0x303dd6['model']['document'][_0x37a4('0x9b')][_0x37a4('0x8f')]())[_0x37a4('0x6b')](({name:_0x531094,data:_0x3efd48})=>{const {group:_0x37bacd,subType:_0x45ff92,authorId:_0xd77975}=_0x277b72[_0x37a4('0x88')](_0x531094);return _0x37a4('0x41')==_0x37bacd&&_0x37a4('0xe')==_0x45ff92&&_0xd77975==_0x3868e5['id']&&!_0x3efd48[_0x37a4('0x4')];});for(const _0x4f95d2 of _0x1559cf){if(_0x37a4('0x52')!=_0x4f95d2[_0x37a4('0x53')]||_0x37a4('0x75')!=_0x4f95d2[_0x37a4('0x7c')]||0x1!=_0x4f95d2[_0x37a4('0x33')])continue;const _0x333663=_0x3f1907[_0x37a4('0x81')](_0x4f95d2[_0x37a4('0x13')],_0x4f95d2[_0x37a4('0x13')]['getShiftedBy'](0x1));if(!_0x3495ba[_0x37a4('0x9e')](({data:_0x510630})=>_0x510630['newRange']['isEqual'](_0x333663)))for(const {name:_0x267484,data:_0x16fb11}of _0x3495ba)if(_0x333663['containsRange'](_0x16fb11[_0x37a4('0x9a')])){_0x3f1907['updateMarker'](_0x267484,{'range':_0x333663}),_0x23b03f=!0x0;break;}}return _0x23b03f;}),_0x303dd6[_0x37a4('0x8')][_0x37a4('0x84')]['registerPostFixer'](_0x3ce4e2=>{let _0x291239=!0x1;const _0x470431=_0x303dd6[_0x37a4('0x3f')][_0x37a4('0x4e')](_0x37a4('0x4a'))['me'],_0x2a5e73=_0x277b72['getSuggestions']()[_0x37a4('0x6b')](_0x1ea22b=>_0x1ea22b[_0x37a4('0x6')]&&_0x1ea22b[_0x37a4('0x98')]==_0x470431),_0x2ac1e6=new Set(),_0x34b0ff=new Set();for(const _0x3b8063 of _0x2a5e73)if(_0x37a4('0xe')==_0x3b8063[_0x37a4('0x9')])for(const _0x53c255 of _0x3b8063['getMarkers']()){const _0x5b8872=_0x53c255['getRange']()[_0x37a4('0x9c')]();if(_0x5b8872){if(_0x5b8872['is'](_0x37a4('0x63'),_0x37a4('0x75'))&&ce(_0x5b8872)){_0x3b8063[_0x37a4('0x65')](_0x53c255[_0x37a4('0x7c')]),_0x2ac1e6[_0x37a4('0x97')](_0x5b8872),_0x291239=!0x0;const _0x33d29d=_0x5b8872[_0x37a4('0x8a')],_0x3818d9=_0x5b8872['previousSibling'],_0x27033e=_0x33d29d&&_0x33d29d['is'](_0x37a4('0x63'),_0x37a4('0x75')),_0x1a6528=_0x3818d9&&_0x3818d9['is'](_0x37a4('0x63'),_0x37a4('0x75'));_0x27033e&&!_0x2ac1e6[_0x37a4('0x3')](_0x33d29d)&&_0x34b0ff[_0x37a4('0x97')](_0x33d29d),_0x1a6528&&!_0x2ac1e6[_0x37a4('0x3')](_0x3818d9)&&_0x34b0ff[_0x37a4('0x97')](_0x3818d9);}else _0x5b8872['is'](_0x37a4('0x63'),_0x37a4('0x89'))&&_0x5b8872[_0x37a4('0x68')]&&(_0x3b8063[_0x37a4('0x65')](_0x53c255['name']),_0x291239=!0x0);}}else{if(_0x37a4('0x66')==_0x3b8063[_0x37a4('0x9')]){if(!_0x3b8063[_0x37a4('0x31')]||!_0x3b8063[_0x37a4('0x31')]['tablePasteChainId'])continue;const _0x405c08=_0x3b8063[_0x37a4('0x31')][_0x37a4('0x62')];if(_0x405c08&&Object[_0x37a4('0x9d')](_0x405c08)[_0x37a4('0x33')])continue;const _0x29c761=_0x3b8063[_0x37a4('0x31')][_0x37a4('0x39')];let _0x24f8bf=!0x0,_0x1bcd5d=!0x0;for(const _0x5436dd of _0x2a5e73)if(_0x5436dd[_0x37a4('0x9')]&&_0x5436dd[_0x37a4('0x9')]['startsWith'](_0x37a4('0xe'))){if(!_0x5436dd[_0x37a4('0x31')][_0x37a4('0x39')]){_0x1bcd5d=!0x1;break;}if(_0x5436dd['id']!=_0x3b8063['id']&&_0x5436dd[_0x37a4('0x31')][_0x37a4('0x39')]==_0x29c761){_0x24f8bf=!0x1;break;}}_0x1bcd5d&&_0x24f8bf&&(_0x3b8063[_0x37a4('0x5b')](),_0x291239=!0x0);}}for(const _0x44d8c9 of _0x2ac1e6)_0x3ce4e2[_0x37a4('0x46')](_0x44d8c9);for(const _0x42b7a3 of _0x34b0ff)_0x3ce4e2['unwrap'](_0x42b7a3);return _0x291239;}),_0x303dd6[_0x37a4('0x56')][_0x37a4('0x80')](_0x37a4('0x4f'))[_0x37a4('0x1d')]({'model':_0x37a4('0x5e'),'view':(_0x2dabba,_0x253c22)=>_0x5ea1ac(_0x2dabba),'converterPriority':_0x37a4('0x51')}),_0x303dd6[_0x37a4('0x56')][_0x37a4('0x80')](_0x37a4('0x18'))[_0x37a4('0x1d')]({'model':_0x37a4('0x5e'),'view':(_0x2e6d0a,_0x1303ab)=>_0x1303ab[_0x37a4('0x61')]['showSuggestionHighlights']?_0x5ea1ac(_0x2e6d0a,!0x1):null,'converterPriority':_0x37a4('0x51')});const _0x15d185=_0x303dd6[_0x37a4('0x82')][_0x37a4('0x85')];this[_0x37a4('0x29')](_0x15d185[_0x37a4('0x84')],'clipboardOutput',(_0x31adf2,_0x395459)=>{const _0x3a1ae1=[];for(const _0xee1670 of _0x15d185[_0x37a4('0x34')](_0x395459[_0x37a4('0x2b')])[_0x37a4('0x42')]())_0xee1670['is'](_0x37a4('0x63'),'suggestion-td')&&_0x3a1ae1[_0x37a4('0x90')](_0xee1670);_0x15d185[_0x37a4('0x50')](_0x5e8e2f=>{for(const _0x16d578 of _0x3a1ae1)_0x5e8e2f[_0x37a4('0x7e')](_0x5e8e2f[_0x37a4('0x34')](_0x16d578),_0x5e8e2f[_0x37a4('0x9f')](_0x16d578)),_0x5e8e2f[_0x37a4('0x46')](_0x16d578);});});}}function ce(_0x3e54f1){if(_0x3e54f1[_0x37a4('0x68')])return!0x0;const _0x3d2385=_0x3e54f1[_0x37a4('0x20')](0x0);return _0x3d2385['is'](_0x37a4('0x63'),_0x37a4('0x89'))&&_0x3d2385[_0x37a4('0x68')];}function fe(_0x558056,_0x29da87={},_0x1d087d){for(const {isAnchor:_0x19ccc8,cellHeight:_0x3b1a8b,cellWidth:_0x3e482f}of _0x1d087d['createTableWalker'](_0x558056,{'includeAllSlots':!0x0,..._0x29da87}))if(!_0x19ccc8||0x1!=_0x3b1a8b||0x1!=_0x3e482f)return!0x1;return!0x0;}
|
|
23
|
+
const _0x4c69=['forceDefaultExecution','cells','deletionRanges','get','isEmpty','editingDowncast','markMultiRangeInsertion','insert','tableCell','some','insertion','elementToElement','suggestionLoaded','markerToHighlight','columnInsertionIndexes','markerName','filter','suggestion','activeMarkers','dataDowncast','getAttributes','attributes','push','getColumnIndexes','columns','createRangeIn','getSuggestion','from','registerCustomCallback','_createdBatches','keys','for','batch','last','first','removeMarkers','remove','tableCellSuggestion','next','markMultiRangeDeletion','conversion','tablePaste','type','high','Users','start','setAttributes','paragraph','discard','isInContent','commands','markers','TrackChangesEditing','insertColumns','registerPostFixer','find','deletion','position','value','column','length','table','end','fill','getChild','model','nextSibling','getSuggestionCallback','includes','_suggestionFactory','rowInsertionIndexes','register','_isForcedDefaultExecutionBlock','element','tablePasteRow','set','redo','getChangedMarkers','schema','tableCellVerticalAlignment','updateMarker','tableCellHorizontalAlignment','showSuggestionHighlights','wrap','entries','return','document','tablePasteCell','TableClipboard','documentSelection','getMarkers','oldRange','change','nodeAfter','selection','stop','low','tableCellBorderColor','getAllAdjacentSuggestions','_replaceTableSlotCell','root','getContainedElement','containsRange','getSuggestions','map','view','$graveyard','registerDescriptionCallback','previous','getChanges','afterInit','previousSibling','plugins','join','removeRows','options','ck-suggestion-marker--active','tableCellPadding','suggestion-td','getRows','createTableWalker','content','rows','markMultiRangeBlockFormat','listenTo','newRange','getChildren','editing','removeColumns','requires','_getCoordsForCells','createRangeOn','TableUtils','suggestionUnloaded','reduce','tablePasteChainId','getRange','every','cell','markerAttributes','setAttribute','add','has','getRanges','author','differ','*Replace\x20table\x20cells*','columnInsertionRanges','fromEntries','getSelectionAffectedTableCells','getTableIfOnlyTableInContent','getColumns','insertRows','insertContent','rowInsertionRanges','findAncestor','suggestion:formatBlock:tablePasteCell','endRow','isEqual','locale','formatBlock','endColumn','accept','createElement','move','_tablePostFixingSubtypes','name','subType','startsWith','tablePasteColumn','editor'];(function(_0x8a5474,_0x4c6937){const _0x4f9912=function(_0x77c3a8){while(--_0x77c3a8){_0x8a5474['push'](_0x8a5474['shift']());}};_0x4f9912(++_0x4c6937);}(_0x4c69,0x88));const _0x4f99=function(_0x8a5474,_0x4c6937){_0x8a5474=_0x8a5474-0x0;let _0x4f9912=_0x4c69[_0x8a5474];return _0x4f9912;};import{getTranslation as _0x4d2670}from'../utils/common-translations';import{Plugin as _0x1620c4}from'ckeditor5/src/core';import{uid as _0x512848,priorities as _0x166a5d}from'ckeditor5/src/utils';import _0x59f70a from'./table';const le=['tableCellBorderWidth',_0x4f99('0x84'),'tableCellBorderStyle',_0x4f99('0x74'),_0x4f99('0x72'),'tableCellBackgroundColor',_0x4f99('0x98')],ae=Object[_0x4f99('0xc')](le[_0x4f99('0x8b')](_0x4ccb0a=>[_0x4ccb0a,null]));export default class At extends _0x1620c4{static get[_0x4f99('0xa4')](){return[_0x59f70a];}[_0x4f99('0x91')](){const _0xa1f1f1=this[_0x4f99('0x22')];if(!_0xa1f1f1['plugins'][_0x4f99('0x6')]('TableClipboard'))return;const _0xd25c8=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x57')),_0x57fafb=_0xa1f1f1['plugins'][_0x4f99('0x26')](_0x4f99('0xa7')),_0x1f03cf=_0xa1f1f1[_0x4f99('0x93')]['get'](_0x59f70a),_0x39288d=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')]('TableClipboard');_0x1f03cf[_0x4f99('0x1d')][_0x4f99('0x39')](_0x4f99('0x6d'),_0x4f99('0x21')),_0xa1f1f1['model'][_0x4f99('0x71')][_0x4f99('0x6a')](_0x4f99('0x48'),{'allowIn':_0x4f99('0x2b'),'allowContentOf':_0x4f99('0x2b'),'isLimit':!0x0}),_0xa1f1f1[_0x4f99('0x4b')][_0x4f99('0x2e')]({'model':_0x4f99('0x48'),'view':'suggestion-td'});let _0x4f1d9e=null;_0xa1f1f1[_0x4f99('0x64')]['on'](_0x4f99('0x11'),(_0x17d297,_0xcba97f)=>{const [_0x33e2e9,_0x2225f7]=_0xcba97f,_0x4c1a93=_0xcba97f[_0xcba97f['length']-0x1];_0x4c1a93&&_0x4c1a93[_0x4f99('0x23')]||_0xd25c8[_0x4f99('0x6b')]||this[_0x4f99('0x22')][_0x4f99('0x55')][_0x4f99('0x26')]('trackChanges')[_0x4f99('0x5d')]&&function(_0x5447e6,_0x1bb5e0,_0x433549,_0x25d341,_0x4b7944){if(_0x1bb5e0&&!_0x1bb5e0['is'](_0x4f99('0x7c')))return!0x1;const _0x55bd33=_0x4b7944[_0x4f99('0xe')](_0x5447e6,_0x433549);if(!_0x55bd33||!fe(_0x55bd33,void 0x0,_0x25d341))return!0x1;const _0x482522=_0x25d341[_0x4f99('0xd')](_0x433549['document'][_0x4f99('0x81')]);if(!_0x482522[_0x4f99('0x5f')])return!0x1;const _0x123a88=_0x482522[0x0]['findAncestor']('table'),_0x466d1f=_0x25d341['getRowIndexes'](_0x482522),_0x4d4840=_0x25d341[_0x4f99('0x3a')](_0x482522),_0x38cf16={'startRow':_0x466d1f[_0x4f99('0x45')],'endRow':_0x466d1f[_0x4f99('0x44')],'startColumn':_0x4d4840[_0x4f99('0x45')],'endColumn':_0x4d4840[_0x4f99('0x44')]};return 0x1==_0x482522[_0x4f99('0x5f')]&&(_0x38cf16[_0x4f99('0x15')]+=_0x25d341[_0x4f99('0x9a')](_0x55bd33)-0x1,_0x38cf16[_0x4f99('0x19')]+=_0x25d341[_0x4f99('0xf')](_0x55bd33)-0x1),fe(_0x123a88,_0x38cf16,_0x25d341);}(_0x33e2e9,_0x2225f7,_0xa1f1f1['model'],_0x57fafb,_0x39288d)&&(_0x17d297[_0x4f99('0x82')](),_0x4f1d9e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x7f')](()=>{_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x11')](_0xcba97f[0x0],_0xcba97f[0x1],_0xcba97f[0x2],{'forceDefaultExecution':!0x0});const _0x323e6f=_0x512848(),{rowInsertionRanges:_0x5832cb,columnInsertionRanges:_0x5a1fec,insertionRanges:_0xef8f52,deletionRanges:_0x2630df,cells:_0x4e8e65}=_0x4f1d9e;_0x5832cb['length']&&_0xd25c8[_0x4f99('0x29')](_0x5832cb,_0x4f99('0x6d'),{'tablePasteChainId':_0x323e6f}),_0x5a1fec[_0x4f99('0x5f')]&&_0xd25c8['markMultiRangeInsertion'](_0x5a1fec,_0x4f99('0x21'),{'tablePasteChainId':_0x323e6f}),_0xef8f52[_0x4f99('0x5f')]&&_0xd25c8['markMultiRangeInsertion'](_0xef8f52,'tablePaste',{'tablePasteChainId':_0x323e6f,'skipNestingCheck':!0x0}),_0x2630df[_0x4f99('0x5f')]&&_0xd25c8[_0x4f99('0x4a')](_0x2630df,'tablePaste',{'tablePasteChainId':_0x323e6f,'skipNestingCheck':!0x0});const _0x65a75b=_0xd25c8[_0x4f99('0x9e')](_0x4e8e65[_0x4f99('0x8b')](({element:_0x1ba09e})=>_0x1ba09e),{'formatGroupId':_0x512848()},[],'tablePasteCell',{'tablePasteChainId':_0x323e6f});if(_0x65a75b){const _0x34bb9b=_0x65a75b[_0x4f99('0x7d')](),_0x4c68e2=[];for(const {element:_0x2b88e7,attributes:_0x15654f}of _0x4e8e65){if(!_0x15654f)continue;const _0xb33373=_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0xa6')](_0x2b88e7),_0x4ea5ed=_0x34bb9b[_0x4f99('0x5a')](_0xe67f70=>_0xe67f70['getRange']()[_0x4f99('0x16')](_0xb33373));_0x4ea5ed&&_0x4c68e2[_0x4f99('0x39')]([_0x4ea5ed[_0x4f99('0x1e')],_0x15654f]);}_0x4c68e2[_0x4f99('0x5f')]&&_0x65a75b[_0x4f99('0x4')](_0x4f99('0x3'),Object['fromEntries'](_0x4c68e2));}_0x4f1d9e=null;}));},{'priority':_0x166a5d[_0x4f99('0x4e')]+0xa}),_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x7b'))['on'](_0x4f99('0x86'),(_0x5c5009,_0x3aa0ac)=>{const [_0x30a08c,_0x2ff3e5,,_0x51c233]=_0x3aa0ac;if(!_0x4f1d9e)return;_0x5c5009['stop']();const _0x3b374e=_0x30a08c[_0x4f99('0x2')],_0x236ca=_0x2ff3e5,_0x2a4c94=ce(_0x3b374e),_0x1a4845=ce(_0x236ca);_0x5c5009[_0x4f99('0x78')]=_0x3b374e;let _0x11855b=null,_0x4a43fd=null;if(_0x1a4845||_0x2a4c94){if(_0x2a4c94&&!_0x1a4845){_0x51c233[_0x4f99('0x47')](_0x3b374e[_0x4f99('0x63')](0x0));for(const _0xd0c8c9 of Array[_0x4f99('0x3e')](_0x236ca[_0x4f99('0xa1')]()))_0x51c233[_0x4f99('0x2a')](_0xd0c8c9,_0x3b374e,_0x4f99('0x61'));const _0x3fd893=_0x4f1d9e['rowInsertionIndexes']['includes'](_0x30a08c['row']),_0x1d4291=_0x4f1d9e[_0x4f99('0x31')][_0x4f99('0x67')](_0x30a08c[_0x4f99('0x5e')]);_0x3fd893||_0x1d4291||(_0x11855b=_0x51c233[_0x4f99('0x3c')](_0x3b374e));}else _0x1a4845&&!_0x2a4c94&&(_0x4a43fd=_0x51c233['createRangeIn'](_0x3b374e));}else{const _0x2cae53=_0x51c233['createElement']('tableCellSuggestion'),_0x58a82e=_0x51c233[_0x4f99('0x1b')](_0x4f99('0x48'));_0x51c233[_0x4f99('0x76')](_0x51c233[_0x4f99('0x3c')](_0x3b374e),_0x58a82e),_0x51c233['insert'](_0x2cae53,_0x3b374e,0x0);for(const _0x55c9ec of Array[_0x4f99('0x3e')](_0x236ca[_0x4f99('0xa1')]()))_0x51c233[_0x4f99('0x2a')](_0x55c9ec,_0x2cae53,'end');_0x11855b=_0x51c233[_0x4f99('0xa6')](_0x2cae53),_0x4a43fd=_0x51c233[_0x4f99('0xa6')](_0x58a82e);}const _0x10932b=Array[_0x4f99('0x3e')](_0x236ca[_0x4f99('0x37')]())['filter'](([_0x3a23b7])=>le[_0x4f99('0x67')](_0x3a23b7));_0x4f1d9e[_0x4f99('0x24')][_0x4f99('0x39')]({'element':_0x3b374e,'attributes':_0x10932b[_0x4f99('0x5f')]?Object['fromEntries'](_0x10932b):null}),_0x11855b&&_0x4f1d9e['insertionRanges'][_0x4f99('0x39')](_0x11855b),_0x4a43fd&&_0x4f1d9e[_0x4f99('0x25')]['push'](_0x4a43fd);},{'priority':'high'}),_0x57fafb['on'](_0x4f99('0x58'),(_0x19ebb6,_0x4aa01b)=>{const [_0x555c79,_0x52193b={}]=_0x4aa01b;if(!_0x4f1d9e)return;const _0x9f2633=_0x52193b['at']||0x0,_0x4fb3d0=_0x52193b[_0x4f99('0x3b')]||0x1;_0x4f1d9e[_0x4f99('0x31')]=new Array(_0x4fb3d0)['fill'](_0x9f2633)[_0x4f99('0x8b')]((_0x31cce7,_0x48f8d4)=>_0x31cce7+_0x48f8d4);for(const {cell:_0x42235e}of _0x57fafb['createTableWalker'](_0x555c79,{'startColumn':_0x9f2633,'endColumn':_0x9f2633+_0x4fb3d0-0x1}))_0x4f1d9e[_0x4f99('0xb')][_0x4f99('0x39')](_0xa1f1f1[_0x4f99('0x64')]['createRangeOn'](_0x42235e));},{'priority':_0x4f99('0x83')}),_0x57fafb['on'](_0x4f99('0x10'),(_0x3ee51f,_0x12074)=>{const [_0x204e59,_0x24410b={}]=_0x12074;if(!_0x4f1d9e)return;const _0x2d0524=_0x24410b['at']||0x0,_0x4564f7=_0x24410b[_0x4f99('0x9d')]||0x1;_0x4f1d9e[_0x4f99('0x69')]=new Array(_0x4564f7)[_0x4f99('0x62')](_0x2d0524)[_0x4f99('0x8b')]((_0x23615,_0x2a5b7d)=>_0x23615+_0x2a5b7d);for(const {cell:_0x35cdde}of _0x57fafb[_0x4f99('0x9b')](_0x204e59,{'startRow':_0x2d0524,'endRow':_0x2d0524+_0x4564f7-0x1}))_0x4f1d9e[_0x4f99('0x12')]['push'](_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0xa6')](_0x35cdde));},{'priority':'low'}),_0xd25c8['_descriptionFactory'][_0x4f99('0x8e')](_0x120b62=>{if(_0x120b62[_0x4f99('0x1f')]&&_0x120b62[_0x4f99('0x1f')][_0x4f99('0x20')](_0x4f99('0x4c')))return _0x120b62[_0x4f99('0x8f')]?{}:{'type':_0x4f99('0x2d'),'content':_0x4d2670(_0xa1f1f1[_0x4f99('0x17')],_0x4f99('0xa'))};});const _0x39b92f=()=>!0x1;for(const _0x3f468a of[_0x4f99('0x4c'),_0x4f99('0x21'),_0x4f99('0x6d'),_0x4f99('0x7a')])_0xd25c8['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f468a,_0x4f99('0x94'),_0x39b92f),_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x4f99('0x5b'),_0x3f468a,_0x4f99('0x94'),_0x39b92f),_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')]('formatBlock',_0x3f468a,_0x4f99('0x94'),_0x39b92f);_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x4f99('0x18'),_0x4f99('0x7a'),_0x4f99('0x53'),_0x39b92f),_0xd25c8['_suggestionFactory'][_0x4f99('0x3f')](_0x4f99('0x18'),_0x4f99('0x7a'),'accept',(_0x40fc4c,_0x533d4d,_0x540fb6)=>{const _0x100de4=_0x40fc4c[_0x4f99('0x8b')](_0x48675a=>_0x48675a[_0x4f99('0x88')]())[_0x4f99('0x33')](_0x29664f=>_0x29664f),_0x43aa8e=new Map(_0x100de4['map'](_0x3eefea=>[_0x3eefea,null]));if(_0x4f1d9e)for(const {element:_0x145fb2,attributes:_0x337220}of _0x4f1d9e[_0x4f99('0x24')])_0x337220&&_0x43aa8e[_0x4f99('0x6e')](_0x145fb2,_0x337220);else{if(_0x540fb6&&_0x540fb6['markerAttributes'])for(const [_0x45b4f9,_0x522d14]of Object[_0x4f99('0x77')](_0x540fb6['markerAttributes'])){const _0x4113cf=_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x56')]['get'](_0x45b4f9),_0x17a299=_0x4113cf?_0x4113cf[_0x4f99('0x0')]()['getContainedElement']():null;_0x17a299&&_0x43aa8e[_0x4f99('0x6e')](_0x17a299,_0x522d14);}}_0xa1f1f1['model']['change'](_0x18e1d5=>{for(const [_0x3520b3,_0x360a9f]of _0x43aa8e)_0x18e1d5[_0x4f99('0x51')]({...ae,..._0x360a9f},_0x3520b3);});});const _0x32421e=(_0x2f45c0,_0xf2078f)=>{_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x2f45c0,_0x4f99('0x4c'),_0xf2078f,(_0x3a3c54,_0x28b864,_0x258871)=>{_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x7f')](_0x1bc6ba=>{const _0x2add97=[];for(const _0x3f36ab of _0x3a3c54){const _0x216d38=_0x3f36ab[_0x4f99('0x50')][_0x4f99('0x80')];_0x216d38['is']('element',_0x4f99('0x48'))&&_0x2add97[_0x4f99('0x39')](_0x216d38);}_0xd25c8[_0x4f99('0x68')][_0x4f99('0x66')](_0x2f45c0,null,_0xf2078f)(_0x3a3c54,_0x28b864,_0x258871);for(const _0x1fd7cc of _0x2add97)_0x4f99('0x8d')!=_0x1fd7cc[_0x4f99('0x87')]['rootName']&&_0x1bc6ba['unwrap'](_0x1fd7cc);});});};_0x32421e(_0x4f99('0x2d'),_0x4f99('0x1a')),_0x32421e(_0x4f99('0x2d'),_0x4f99('0x53')),_0x32421e(_0x4f99('0x5b'),'accept'),_0x32421e(_0x4f99('0x5b'),_0x4f99('0x53')),_0xd25c8[_0x4f99('0x68')]['registerCustomCallback'](_0x4f99('0x2d'),_0x4f99('0x6d'),_0x4f99('0x53'),_0x32de24=>{const _0x509b05=_0x32de24[_0x4f99('0x8b')](_0x5054c8=>_0x5054c8[_0x4f99('0x88')]()),_0x3c32dd=_0x509b05[0x0][_0x4f99('0x13')](_0x4f99('0x60')),{minRow:_0x532477,maxRow:_0x43f22a}=_0x1f03cf[_0x4f99('0xa5')](_0x509b05);_0x57fafb[_0x4f99('0x95')](_0x3c32dd,{'at':_0x532477,'rows':_0x43f22a-_0x532477+0x1});}),_0xd25c8[_0x4f99('0x68')][_0x4f99('0x3f')](_0x4f99('0x2d'),_0x4f99('0x21'),_0x4f99('0x53'),_0x2d1a29=>{const _0x168a9d=_0x2d1a29[_0x4f99('0x8b')](_0x39ec09=>_0x39ec09[_0x4f99('0x88')]()),_0x2e14ad=_0x168a9d[0x0]['findAncestor'](_0x4f99('0x60')),{minColumn:_0x2dce6d,maxColumn:_0xd310b2}=_0x1f03cf[_0x4f99('0xa5')](_0x168a9d);_0x57fafb[_0x4f99('0xa3')](_0x2e14ad,{'at':_0x2dce6d,'columns':_0xd310b2-_0x2dce6d+0x1});});const _0x4c5d2a=(_0x42a23e,_0x4c8f63)=>{if(!_0x4c8f63[_0x4f99('0x1f')]||!_0x4c8f63['subType']['startsWith']('tablePaste'))return;const _0x4fc890=_0x4c8f63[_0x4f99('0x38')]['tablePasteChainId'],_0x3d0608=_0xd25c8[_0x4f99('0x8a')]()[_0x4f99('0x33')](_0x28a021=>_0x28a021[_0x4f99('0x54')]&&_0x28a021[_0x4f99('0x38')]&&_0x28a021[_0x4f99('0x38')][_0x4f99('0xaa')]==_0x4fc890);_0x3d0608['length']&&_0x4c8f63[_0x4f99('0x85')]()['length']!=_0x3d0608[_0x4f99('0x5f')]&&_0x3d0608[_0x4f99('0xa9')]((_0xb65b0f,_0x5e2c0f)=>(_0xb65b0f[_0x4f99('0x49')]=_0x5e2c0f,_0x5e2c0f[_0x4f99('0x8f')]=_0xb65b0f,_0x5e2c0f));};function _0x998cbe(_0x249994,_0x28d5e7=!0x0){const {id:_0x2474e7}=_0xd25c8['_splitMarkerName'](_0x249994[_0x4f99('0x32')]),_0x504da3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f5230=_0xd25c8[_0x4f99('0x35')][_0x4f99('0x67')](_0x249994[_0x4f99('0x32')]);return _0x5f5230&&_0x504da3[_0x4f99('0x39')](_0x4f99('0x97')),{'classes':_0x504da3,'attributes':{'data-suggestion':_0x2474e7},'priority':_0x5f5230&&_0x28d5e7?0xbc2:0xbb8};}_0xd25c8['on'](_0x4f99('0x2f'),_0x4c5d2a,{'priority':_0x4f99('0x4e')}),_0xd25c8['on'](_0x4f99('0xa8'),_0x4c5d2a,{'priority':_0x4f99('0x4e')}),_0xa1f1f1['model'][_0x4f99('0x79')][_0x4f99('0x59')](()=>{let _0x1b7b63=!0x1;const _0x3948d1=Array[_0x4f99('0x3e')](_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')]['differ'][_0x4f99('0x70')]());for(const {name:_0x209206,data:_0x3b67b1}of _0x3948d1){const {group:_0x431d22,type:_0x797235,id:_0x3e2236}=_0xd25c8['_splitMarkerName'](_0x209206);if(_0x4f99('0x34')!=_0x431d22||_0x4f99('0x5b')!=_0x797235||_0x3b67b1[_0x4f99('0x7e')])continue;if(!_0xd25c8['hasSuggestion'](_0x3e2236))continue;const _0x18df34=_0xd25c8[_0x4f99('0x3d')](_0x3e2236)[_0x4f99('0x7')](),_0x456b84=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x4f'))['me'];for(const _0x96f06b of _0xd25c8[_0x4f99('0x8a')]()){if(!_0x96f06b[_0x4f99('0x54')]||_0x96f06b[_0x4f99('0x8')]!=_0x456b84)continue;if(_0x4f99('0x18')!=_0x96f06b[_0x4f99('0x4d')]||_0x4f99('0x7a')!=_0x96f06b[_0x4f99('0x1f')])continue;if(_0x96f06b[_0x4f99('0x7')]()[_0x4f99('0x1')](_0xcf47b6=>_0x18df34[_0x4f99('0x2c')](_0x5d615e=>_0x5d615e[_0x4f99('0x89')](_0xcf47b6,!0x0))))for(const _0x27ce09 of _0x96f06b[_0x4f99('0x85')]())_0x27ce09[_0x4f99('0x54')]&&(_0x27ce09[_0x4f99('0x53')](),_0x1b7b63=!0x0);}}return _0x1b7b63;}),_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')]['registerPostFixer'](_0xdb295c=>{const _0x2560d6=_0xa1f1f1[_0x4f99('0x55')][_0x4f99('0x26')](_0x4f99('0x6f'));if(!_0x2560d6||!_0x2560d6[_0x4f99('0x40')][_0x4f99('0x6')](_0xdb295c[_0x4f99('0x43')]))return!0x1;let _0x1e0662=!0x1;const _0x463ac6=_0xa1f1f1[_0x4f99('0x93')][_0x4f99('0x26')](_0x4f99('0x4f'))['me'],_0x4fea66=_0xa1f1f1['model']['document'][_0x4f99('0x9')][_0x4f99('0x90')](),_0x260dcd=Array[_0x4f99('0x3e')](_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')][_0x4f99('0x9')][_0x4f99('0x70')]())['filter'](({name:_0x3ad1a5,data:_0x2b242a})=>{const {group:_0x59db0f,subType:_0x2ea739,authorId:_0x3470f7}=_0xd25c8['_splitMarkerName'](_0x3ad1a5);return _0x4f99('0x34')==_0x59db0f&&_0x4f99('0x4c')==_0x2ea739&&_0x3470f7==_0x463ac6['id']&&!_0x2b242a['oldRange'];});for(const _0x1ebdc6 of _0x4fea66){if(_0x4f99('0x2a')!=_0x1ebdc6['type']||_0x4f99('0x48')!=_0x1ebdc6[_0x4f99('0x1e')]||0x1!=_0x1ebdc6[_0x4f99('0x5f')])continue;const _0x3dc0b4=_0xdb295c['createRange'](_0x1ebdc6[_0x4f99('0x5c')],_0x1ebdc6[_0x4f99('0x5c')]['getShiftedBy'](0x1));if(!_0x260dcd[_0x4f99('0x5a')](({data:_0x1b240f})=>_0x1b240f[_0x4f99('0xa0')][_0x4f99('0x16')](_0x3dc0b4)))for(const {name:_0xc781e7,data:_0x29a2b5}of _0x260dcd)if(_0x3dc0b4['containsRange'](_0x29a2b5[_0x4f99('0xa0')])){_0xdb295c[_0x4f99('0x73')](_0xc781e7,{'range':_0x3dc0b4}),_0x1e0662=!0x0;break;}}return _0x1e0662;}),_0xa1f1f1[_0x4f99('0x64')][_0x4f99('0x79')][_0x4f99('0x59')](_0x23f611=>{let _0x2aceec=!0x1;const _0x28bb4f=_0xa1f1f1['plugins'][_0x4f99('0x26')](_0x4f99('0x4f'))['me'],_0x5f3742=_0xd25c8[_0x4f99('0x8a')]()[_0x4f99('0x33')](_0x23dc35=>_0x23dc35[_0x4f99('0x54')]&&_0x23dc35['author']==_0x28bb4f),_0x5b42e8=new Set(),_0x38d924=new Set();for(const _0x25c49c of _0x5f3742)if('tablePaste'==_0x25c49c[_0x4f99('0x1f')])for(const _0x43f912 of _0x25c49c[_0x4f99('0x7d')]()){const _0x6d5ac8=_0x43f912[_0x4f99('0x0')]()['getContainedElement']();if(_0x6d5ac8){if(_0x6d5ac8['is'](_0x4f99('0x6c'),_0x4f99('0x48'))&&ce(_0x6d5ac8)){_0x25c49c['removeMarker'](_0x43f912[_0x4f99('0x1e')]),_0x5b42e8['add'](_0x6d5ac8),_0x2aceec=!0x0;const _0x2249ef=_0x6d5ac8[_0x4f99('0x65')],_0x152bf3=_0x6d5ac8[_0x4f99('0x92')],_0x2a03df=_0x2249ef&&_0x2249ef['is'](_0x4f99('0x6c'),_0x4f99('0x48')),_0x5e949f=_0x152bf3&&_0x152bf3['is'](_0x4f99('0x6c'),_0x4f99('0x48'));_0x2a03df&&!_0x5b42e8[_0x4f99('0x6')](_0x2249ef)&&_0x38d924[_0x4f99('0x5')](_0x2249ef),_0x5e949f&&!_0x5b42e8['has'](_0x152bf3)&&_0x38d924[_0x4f99('0x5')](_0x152bf3);}else _0x6d5ac8['is']('element',_0x4f99('0x52'))&&_0x6d5ac8[_0x4f99('0x27')]&&(_0x25c49c['removeMarker'](_0x43f912[_0x4f99('0x1e')]),_0x2aceec=!0x0);}}else{if(_0x4f99('0x7a')==_0x25c49c[_0x4f99('0x1f')]){if(!_0x25c49c[_0x4f99('0x38')]||!_0x25c49c[_0x4f99('0x38')][_0x4f99('0xaa')])continue;const _0xf413b8=_0x25c49c[_0x4f99('0x38')][_0x4f99('0x3')];if(_0xf413b8&&Object[_0x4f99('0x41')](_0xf413b8)['length'])continue;const _0x304391=_0x25c49c[_0x4f99('0x38')][_0x4f99('0xaa')];let _0x2c22a4=!0x0,_0x379fc3=!0x0;for(const _0x58e180 of _0x5f3742)if(_0x58e180['subType']&&_0x58e180[_0x4f99('0x1f')][_0x4f99('0x20')](_0x4f99('0x4c'))){if(!_0x58e180['attributes'][_0x4f99('0xaa')]){_0x379fc3=!0x1;break;}if(_0x58e180['id']!=_0x25c49c['id']&&_0x58e180['attributes']['tablePasteChainId']==_0x304391){_0x2c22a4=!0x1;break;}}_0x379fc3&&_0x2c22a4&&(_0x25c49c[_0x4f99('0x46')](),_0x2aceec=!0x0);}}for(const _0x474c57 of _0x5b42e8)_0x23f611[_0x4f99('0x47')](_0x474c57);for(const _0x22b7a1 of _0x38d924)_0x23f611['unwrap'](_0x22b7a1);return _0x2aceec;}),_0xa1f1f1[_0x4f99('0x4b')]['for'](_0x4f99('0x28'))[_0x4f99('0x30')]({'model':_0x4f99('0x14'),'view':(_0x1cba60,_0x1e2528)=>_0x998cbe(_0x1cba60),'converterPriority':'high'}),_0xa1f1f1[_0x4f99('0x4b')][_0x4f99('0x42')](_0x4f99('0x36'))[_0x4f99('0x30')]({'model':_0x4f99('0x14'),'view':(_0x24852d,_0xabb78a)=>_0xabb78a[_0x4f99('0x96')][_0x4f99('0x75')]?_0x998cbe(_0x24852d,!0x1):null,'converterPriority':_0x4f99('0x4e')});const _0x170794=_0xa1f1f1[_0x4f99('0xa2')][_0x4f99('0x8c')];this[_0x4f99('0x9f')](_0x170794['document'],'clipboardOutput',(_0xdc3193,_0x2a378c)=>{const _0x57926e=[];for(const _0x7d66 of _0x170794[_0x4f99('0x3c')](_0x2a378c[_0x4f99('0x9c')])['getItems']())_0x7d66['is'](_0x4f99('0x6c'),_0x4f99('0x99'))&&_0x57926e['push'](_0x7d66);_0x170794[_0x4f99('0x7f')](_0x1b12f8=>{for(const _0x172130 of _0x57926e)_0x1b12f8[_0x4f99('0x1c')](_0x1b12f8[_0x4f99('0x3c')](_0x172130),_0x1b12f8['createPositionBefore'](_0x172130)),_0x1b12f8['remove'](_0x172130);});});}}function ce(_0x2a60c6){if(_0x2a60c6[_0x4f99('0x27')])return!0x0;const _0x4e6371=_0x2a60c6[_0x4f99('0x63')](0x0);return _0x4e6371['is'](_0x4f99('0x6c'),_0x4f99('0x52'))&&_0x4e6371[_0x4f99('0x27')];}function fe(_0xba22c7,_0x2b2571={},_0x2c4317){for(const {isAnchor:_0x538644,cellHeight:_0x367b84,cellWidth:_0x3cd1c0}of _0x2c4317[_0x4f99('0x9b')](_0xba22c7,{'includeAllSlots':!0x0,..._0x2b2571}))if(!_0x538644||0x1!=_0x367b84||0x1!=_0x3cd1c0)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a8c=['editor','data','table','get','afterInit','bind','getColumnGroupElement','subType','resizeTableWidth','registerDescriptionCallback','*Format:*\x20resize\x20table','getSelectedElement','has','handleSuggestionDescription','_suggestionFactory','markBlockFormat','registerCustomCallback','selection','change','enableCommand','getTableColumnsWidths','TableColumnResizeEditing','document','discard','formatGroupId','tableWidth','getContainedElement','formatBlock','formatInline','type','handleResizeTableWidthCommand','getSuggestionCallback','commandParams','accept','resizeTable','TrackChangesEditing','columnWidths','getSuggestions','plugins','Users'];(function(_0x305d2e,_0x1a8ce8){const _0x2ff887=function(_0x591778){while(--_0x591778){_0x305d2e['push'](_0x305d2e['shift']());}};_0x2ff887(++_0x1a8ce8);}(_0x1a8c,0x12f));const _0x2ff8=function(_0x305d2e,_0x1a8ce8){_0x305d2e=_0x305d2e-0x0;let _0x2ff887=_0x1a8c[_0x305d2e];return _0x2ff887;};import{Plugin as _0x5cd4b5}from'ckeditor5/src/core';import{getTranslation as _0x207a2b}from'../utils/common-translations';export default class It extends _0x5cd4b5{[_0x2ff8('0x15')](){if(!this['editor'][_0x2ff8('0xf')][_0x2ff8('0x1d')](_0x2ff8('0x26')))return;const _0x562f60=this['editor'][_0x2ff8('0xf')][_0x2ff8('0x14')]('TrackChangesEditing');_0x562f60[_0x2ff8('0x24')](_0x2ff8('0x19'),this[_0x2ff8('0x7')]['bind'](this)),_0x562f60[_0x2ff8('0x1f')]['registerCustomCallback'](_0x2ff8('0x4'),_0x2ff8('0xb'),'accept',_0x562f60[_0x2ff8('0x1f')][_0x2ff8('0x8')](_0x2ff8('0x4'),null,_0x2ff8('0x0'))),_0x562f60['_suggestionFactory'][_0x2ff8('0x21')](_0x2ff8('0x4'),_0x2ff8('0xb'),'discard',_0x562f60[_0x2ff8('0x1f')][_0x2ff8('0x8')](_0x2ff8('0x4'),null,_0x2ff8('0xa'))),_0x562f60['_descriptionFactory'][_0x2ff8('0x1a')](this[_0x2ff8('0x1e')][_0x2ff8('0x16')](this));}[_0x2ff8('0x7')](_0x46a550,_0x46f6a9){const _0x433f04=this[_0x2ff8('0x11')][_0x2ff8('0xf')][_0x2ff8('0x14')](_0x2ff8('0xc')),_0x422d12=this['editor'][_0x2ff8('0xf')][_0x2ff8('0x14')]('TableColumnResizeEditing'),_0x46d639=_0x46f6a9[_0x2ff8('0x13')]||this[_0x2ff8('0x11')]['model'][_0x2ff8('0x27')][_0x2ff8('0x22')][_0x2ff8('0x1c')]();this[_0x2ff8('0x11')]['model'][_0x2ff8('0x23')](()=>{const _0x1bcc83=_0x422d12[_0x2ff8('0x17')](_0x46d639);let _0x595073=_0x1bcc83?_0x422d12[_0x2ff8('0x25')](_0x1bcc83):null,_0x16d4e2=_0x46d639['getAttribute']('tableWidth')||null;const _0x2216d9=_0x46f6a9[_0x2ff8('0x2')]||_0x16d4e2,_0x544dd2=_0x46f6a9[_0x2ff8('0xd')]||_0x595073,_0x1e8e22=this['editor'][_0x2ff8('0xf')][_0x2ff8('0x14')](_0x2ff8('0x10'))['me'];for(const _0x3ebc51 of _0x433f04[_0x2ff8('0xe')]()){const _0x399c10=_0x3ebc51[_0x2ff8('0x3')]();if('resizeTable'===_0x3ebc51[_0x2ff8('0x18')]&&_0x399c10===_0x46d639){_0x3ebc51['author']!==_0x1e8e22&&_0x3ebc51['discard']();const _0x130fbe=_0x3ebc51[_0x2ff8('0x12')][_0x2ff8('0x9')];_0x16d4e2=_0x130fbe[0x0]['tableWidth'],_0x595073=_0x130fbe[0x0][_0x2ff8('0xd')];break;}}_0x46a550({'table':_0x46d639,'tableWidth':_0x2216d9,'columnWidths':_0x544dd2}),_0x433f04[_0x2ff8('0x20')](_0x46d639,{'commandName':_0x2ff8('0x19'),'commandParams':[{'tableWidth':_0x16d4e2,'columnWidths':_0x595073}],'formatGroupId':_0x2ff8('0xb')},[],_0x2ff8('0xb'));});}[_0x2ff8('0x1e')](_0x1d3cb4){if(_0x2ff8('0x4')!=_0x1d3cb4[_0x2ff8('0x6')]&&_0x2ff8('0x5')!=_0x1d3cb4['type'])return;const {data:_0x3ba25e}=_0x1d3cb4;if(_0x3ba25e&&'resizeTable'===_0x3ba25e[_0x2ff8('0x1')]){const _0x56aae0=_0x2ff8('0x1b');return{'type':'format','content':_0x207a2b(this[_0x2ff8('0x11')]['locale'],_0x56aae0)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f67=['writer','registerCustomCallback','ck-suggestion-marker--active','registerDescriptionCallback','FORMAT_REGULAR_COLUMN','toViewElement','createTableWalker','removeMarker:suggestion','editor','getCellLocation','ck-suggestion-marker-','forceValue','setAttribute','accept','markerRange','get','consume','_descriptionFactory','*Format:*\x20%0','name','markerName','commandName','type','headingRows','parent','nodeAfter','unbindElementFromMarkerName','_enableDefaultAttributesIntegration','afterInit','headingColumns','data','plugins','registerAttributeLabel','addMarker:suggestion','FORMAT_REGULAR_ROW','_suggestionFactory','cell','removeClass','downcastDispatcher','setTableRowHeader','addClass','options','FORMAT_HEADER_COLUMN','bindElementToMarker','mapper','getSuggestion','TableEditing','consumable','start','FORMAT_HEADER_ROW','TrackChangesEditing','editing','_splitMarkerName','markerNameToElements','TableUtils','_handleLegacySuggestions','includes','highest','requires','locale','setTableColumnHeader','formatBlock'];(function(_0x428293,_0x4f67b7){const _0x2b63d7=function(_0x58f1a1){while(--_0x58f1a1){_0x428293['push'](_0x428293['shift']());}};_0x2b63d7(++_0x4f67b7);}(_0x4f67,0x17b));const _0x2b63=function(_0x428293,_0x4f67b7){_0x428293=_0x428293-0x0;let _0x2b63d7=_0x4f67[_0x428293];return _0x2b63d7;};import{Plugin as _0x105667}from'ckeditor5/src/core';import _0x1b8d5b from'./table';import{getTranslation as _0x562606}from'../utils/common-translations';export default class St extends _0x105667{static get[_0x2b63('0x33')](){return[_0x1b8d5b];}[_0x2b63('0x15')](){const _0x45c894=this[_0x2b63('0x1')];if(!_0x45c894[_0x2b63('0x18')]['has'](_0x2b63('0x27')))return;const _0x329b27=_0x45c894[_0x2b63('0x34')],_0x2f5074=_0x45c894[_0x2b63('0x18')][_0x2b63('0x8')]('TrackChangesEditing');_0x2f5074[_0x2b63('0x14')](_0x2b63('0x20'),[],[_0x2b63('0x10')]),_0x2f5074[_0x2b63('0x14')](_0x2b63('0x35'),[],[_0x2b63('0x16')]),_0x2f5074[_0x2b63('0xa')][_0x2b63('0x19')](_0x2b63('0x10'),_0x562606(_0x329b27,_0x2b63('0x2a'))),_0x2f5074[_0x2b63('0xa')][_0x2b63('0x19')](_0x2b63('0x16'),_0x562606(_0x329b27,_0x2b63('0x23'))),this['_handleLegacySuggestions']();}[_0x2b63('0x30')](){const _0x29bcc1=this[_0x2b63('0x1')]['plugins'][_0x2b63('0x8')]('TrackChangesEditing'),_0x3ad445=this[_0x2b63('0x1')][_0x2b63('0x18')][_0x2b63('0x8')](_0x2b63('0x2f')),_0x20328a=this[_0x2b63('0x1')]['plugins']['get'](_0x1b8d5b)['_acceptFormatSuggestionCallbackFactory']();function _0x188237({showActiveMarker:_0x6e0a91=!0x0,setDataAttribute:_0x5173bd=!0x0}={}){return(_0x54541c,_0xa12b2b,_0xe4b7f3)=>{const {type:_0xe9c511,id:_0x2da383}=_0x29bcc1[_0x2b63('0x2d')](_0xa12b2b[_0x2b63('0xd')]),_0x1caa94=_0x29bcc1[_0x2b63('0x26')](_0x2da383),_0x4942bb=_0x1caa94[_0x2b63('0x17')];if(_0x2b63('0x36')!=_0x1caa94[_0x2b63('0xf')]||!_0x4942bb||'setTableColumnHeader'!=_0x4942bb[_0x2b63('0xe')])return;if(_0xa12b2b['item'])return void _0x54541c['stop']();if(!_0xe4b7f3[_0x2b63('0x28')][_0x2b63('0x9')](_0xa12b2b[_0x2b63('0x7')],_0x54541c[_0x2b63('0xc')]))return;const _0x56dac0=_0xa12b2b[_0x2b63('0x7')][_0x2b63('0x29')][_0x2b63('0x12')],_0x22dd65=_0xa12b2b[_0x2b63('0x7')]['end']['nodeBefore'],_0x476583=_0x56dac0[_0x2b63('0x11')][_0x2b63('0x11')],{column:_0x18aaf7}=_0x3ad445[_0x2b63('0x2')](_0x56dac0),{column:_0x100da5}=_0x3ad445['getCellLocation'](_0x22dd65);for(let _0x25ea4f=_0x18aaf7;_0x25ea4f<=_0x100da5;_0x25ea4f++){const _0x19e7b6=_0x3ad445[_0x2b63('0x3d')](_0x476583,{'column':_0x25ea4f,'includeAllSlots':!0x1});for(const _0x45cd5b of _0x19e7b6){const _0x5768a5=_0x45cd5b[_0x2b63('0x1d')],_0x4248ea=_0xe4b7f3[_0x2b63('0x25')][_0x2b63('0x3c')](_0x5768a5);_0xe4b7f3[_0x2b63('0x37')][_0x2b63('0x21')](_0x2b63('0x3')+_0xe9c511,_0x4248ea),_0x5173bd&&_0xe4b7f3[_0x2b63('0x37')][_0x2b63('0x5')]('data-suggestion',_0x2da383,_0x4248ea),_0xe4b7f3[_0x2b63('0x25')][_0x2b63('0x24')](_0x4248ea,_0xa12b2b[_0x2b63('0xd')]),_0x6e0a91&&(_0x29bcc1['activeMarkers'][_0x2b63('0x31')](_0xa12b2b['markerName'])?_0xe4b7f3['writer'][_0x2b63('0x21')](_0x2b63('0x39'),_0x4248ea):_0xe4b7f3[_0x2b63('0x37')][_0x2b63('0x1e')](_0x2b63('0x39'),_0x4248ea));}}};}_0x29bcc1[_0x2b63('0x1c')][_0x2b63('0x38')](_0x2b63('0x36'),_0x2b63('0x20'),'accept',_0x20328a),_0x29bcc1[_0x2b63('0x1c')]['registerCustomCallback'](_0x2b63('0x36'),'setTableColumnHeader',_0x2b63('0x6'),_0x20328a),this['editor'][_0x2b63('0x2c')][_0x2b63('0x1f')]['on'](_0x2b63('0x1a'),_0x188237(),{'priority':_0x2b63('0x32')}),this[_0x2b63('0x1')][_0x2b63('0x17')][_0x2b63('0x1f')]['on'](_0x2b63('0x1a'),(_0x5d9ade,_0x25b28c,_0x408f56)=>{_0x408f56[_0x2b63('0x22')]['showSuggestionHighlights']&&_0x188237({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5d9ade,_0x25b28c,_0x408f56);},{'priority':'highest'}),this['editor'][_0x2b63('0x2c')]['downcastDispatcher']['on'](_0x2b63('0x0'),(_0x2f2afb,_0x122371,_0x3f1501)=>{const {type:_0xf18a01,id:_0x3085ed}=_0x29bcc1[_0x2b63('0x2d')](_0x122371[_0x2b63('0xd')]),_0x1ab906=_0x29bcc1['getSuggestion'](_0x3085ed),_0x2193e4=_0x1ab906[_0x2b63('0x17')];if(_0x2b63('0x36')!=_0x1ab906[_0x2b63('0xf')]||!_0x2193e4||_0x2b63('0x35')!=_0x2193e4[_0x2b63('0xe')])return;const _0x579303=_0x3f1501[_0x2b63('0x25')][_0x2b63('0x2e')](_0x122371[_0x2b63('0xd')]);if(_0x579303)for(const _0x33cff3 of _0x579303)_0x3f1501[_0x2b63('0x37')]['removeClass'](_0x2b63('0x3')+_0xf18a01,_0x33cff3),_0x3f1501[_0x2b63('0x37')][_0x2b63('0x1e')](_0x2b63('0x39'),_0x33cff3),_0x3f1501['writer']['removeAttribute']('data-suggestion',_0x33cff3),_0x3f1501[_0x2b63('0x25')][_0x2b63('0x13')](_0x33cff3,_0x122371[_0x2b63('0xd')]);},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10686f=this[_0x2b63('0x1')],_0x50ffc1=_0x10686f[_0x2b63('0x34')];function _0xc4fb33(_0x3c3708){return{'type':'format','content':_0x562606(_0x50ffc1,_0x2b63('0xb'),_0x3c3708)};}_0x10686f[_0x2b63('0x18')][_0x2b63('0x8')](_0x2b63('0x2b'))[_0x2b63('0xa')][_0x2b63('0x3a')](_0x39b94e=>{if(_0x2b63('0x36')!=_0x39b94e[_0x2b63('0xf')])return;const {data:_0x65b362}=_0x39b94e;if(_0x65b362){if(_0x2b63('0x20')==_0x65b362[_0x2b63('0xe')]){const _0x1695e6=_0x65b362['commandParams'][0x0][_0x2b63('0x4')];return _0xc4fb33(_0x562606(_0x50ffc1,_0x1695e6?_0x2b63('0x2a'):_0x2b63('0x1b')));}if(_0x2b63('0x35')==_0x65b362[_0x2b63('0xe')]){const _0x527ddc=_0x65b362['commandParams'][0x0][_0x2b63('0x4')];return _0xc4fb33(_0x562606(_0x50ffc1,_0x527ddc?_0x2b63('0x23'):_0x2b63('0x3b')));}}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd5a9=['add','stop','low','getSuggestions','accept','getFirstPosition','getCellLocation','isEnabled','refresh','return','model','type','isInContent','selection','afterInit','mergeTableCellDown','get','execute','insertion','map','_tablePostFixingSubtypes','TableUtils','subType','rootName','detach','formatInline','markMultiRangeBlockFormat','$graveyard','highest','createRangeOn','format','tableCell','length','markBlockFormat','getSelectionAffectedTableCells','set:isEnabled','setSelection','_areMergableCells','from','mergeTableCellRight','getAncestors','registerDescriptionCallback','_areSelectedCellsMergable','TrackChangesEditing','value','commands','find','author','direction','cell','plugins','findAncestor','splitTableCellVertically','trackChanges','mergeTableCellLeft','*Split\x20cell:*\x20vertically','editor','change','push','formatBlock','table','getRanges','requires','element','mergeTableCellUp','mergeTableCells','registerCustomCallback','_descriptionFactory','document','containsRange','_acceptFormatSuggestionCallbackFactory','size','enableCommand','commandName','*Merge\x20cells*','createTableWalker','splitTableCellHorizontally','_suggestionFactory','fromRange','TableEditing'];(function(_0x11a6fd,_0xd5a9b1){const _0x5be758=function(_0x32a021){while(--_0x32a021){_0x11a6fd['push'](_0x11a6fd['shift']());}};_0x5be758(++_0xd5a9b1);}(_0xd5a9,0xae));const _0x5be7=function(_0x11a6fd,_0xd5a9b1){_0x11a6fd=_0x11a6fd-0x0;let _0x5be758=_0xd5a9[_0x11a6fd];return _0x5be758;};import{Plugin as _0x289fc3}from'ckeditor5/src/core';import _0x2f5fde from'./table';import{LiveRange as _0x436bb2}from'ckeditor5/src/engine';import{getTranslation as _0x4de55b}from'../utils/common-translations';export default class yt extends _0x289fc3{static get[_0x5be7('0x30')](){return[_0x2f5fde];}[_0x5be7('0x0')](){const _0x1c1126=this[_0x5be7('0x2a')],_0x52b138=_0x1c1126[_0x5be7('0x4c')][_0x5be7('0x36')][_0x5be7('0x4f')],_0x544bef=_0x1c1126['locale'];if(!_0x1c1126[_0x5be7('0x24')]['has'](_0x5be7('0x41')))return;const _0x203099=_0x1c1126[_0x5be7('0x24')][_0x5be7('0x2')](_0x5be7('0x1d')),_0x112c18=_0x1c1126[_0x5be7('0x24')][_0x5be7('0x2')](_0x5be7('0x7')),_0x14c60c=_0x1c1126[_0x5be7('0x24')][_0x5be7('0x2')](_0x2f5fde);_0x14c60c[_0x5be7('0x6')][_0x5be7('0x2c')](_0x5be7('0x33')),_0x203099[_0x5be7('0x3a')](_0x5be7('0x33'),()=>{const _0x2aa492=_0x112c18['getSelectionAffectedTableCells'](_0x1c1126['model'][_0x5be7('0x36')]['selection']);_0x1c1126['model']['change'](()=>{_0x203099[_0x5be7('0xc')](_0x2aa492,{'commandName':_0x5be7('0x33'),'commandParams':[]},[],'mergeTableCells');});}),_0x1c1126['commands']['get'](_0x5be7('0x33'))['on'](_0x5be7('0x3'),(_0xc049ee,_0x20ebe0)=>{_0x1c1126['commands']['get'](_0x5be7('0x27'))['value']&&(_0x20ebe0[_0x5be7('0x12')]>0x0&&_0x20ebe0[_0x20ebe0[_0x5be7('0x12')]-0x1]&&_0x20ebe0[_0x20ebe0[_0x5be7('0x12')]-0x1]['forceDefaultExecution']||_0x203099['_isForcedDefaultExecutionBlock']||this[_0x5be7('0x1c')]()||_0xc049ee[_0x5be7('0x43')]());},{'priority':_0x5be7('0xe')});for(const _0x29a590 of[_0x5be7('0x32'),_0x5be7('0x19'),'mergeTableCellDown','mergeTableCellLeft']){const _0x3ed0ee=_0x1c1126[_0x5be7('0x1f')]['get'](_0x29a590);_0x203099[_0x5be7('0x3a')](_0x29a590,()=>{const _0x544582=_0x1c1126['model']['document']['selection']['getFirstPosition']()[_0x5be7('0x1a')]()[_0x5be7('0x20')](_0x55047b=>_0x55047b['is'](_0x5be7('0x31'),_0x5be7('0x11'))),_0xe89972=_0x3ed0ee[_0x5be7('0x1e')];_0x1c1126[_0x5be7('0x4c')]['change'](()=>{_0x203099[_0x5be7('0xc')]([_0x544582,_0xe89972],{'commandName':_0x5be7('0x33'),'commandParams':[]},[],_0x5be7('0x33'));});});}for(const _0x1c383c of['splitTableCellVertically',_0x5be7('0x3e')]){const _0x42d1e7=_0x1c1126[_0x5be7('0x1f')][_0x5be7('0x2')](_0x1c383c);_0x203099[_0x5be7('0x3a')](_0x1c383c,()=>{const _0x418d3e=_0x112c18[_0x5be7('0x14')](_0x1c1126[_0x5be7('0x4c')]['document'][_0x5be7('0x4f')])[0x0],_0x323a73=_0x418d3e[_0x5be7('0x25')](_0x5be7('0x2e')),{column:_0x1528e6,row:_0x3f7cad}=_0x112c18[_0x5be7('0x48')](_0x418d3e);let _0x450e9c=[];if('horizontally'==_0x42d1e7[_0x5be7('0x22')]){const _0x5dc1c9=_0x112c18[_0x5be7('0x3d')](_0x323a73,{'startRow':_0x3f7cad,'endRow':_0x3f7cad,'includeAllSlots':!0x0});_0x450e9c=Array['from'](_0x5dc1c9)['map'](_0x11a89f=>_0x11a89f[_0x5be7('0x23')]);}else{const _0x1d70f1=_0x112c18['createTableWalker'](_0x323a73,{'column':_0x1528e6,'includeAllSlots':!0x0});_0x450e9c=Array[_0x5be7('0x18')](_0x1d70f1)[_0x5be7('0x5')](_0x43b79d=>_0x43b79d[_0x5be7('0x23')]);}_0x1c1126[_0x5be7('0x4c')][_0x5be7('0x2b')](_0xd7a5b2=>{_0x203099[_0x5be7('0x13')](_0xd7a5b2[_0x5be7('0xf')](_0x418d3e),{'commandName':_0x1c383c,'commandParams':[]},_0x450e9c,_0x1c383c);});});}_0x203099[_0x5be7('0x35')][_0x5be7('0x1b')](_0x380ddb=>{if(_0x5be7('0x2d')!=_0x380ddb[_0x5be7('0x4d')]&&_0x5be7('0xb')!=_0x380ddb[_0x5be7('0x4d')])return;const {data:_0x5738d9}=_0x380ddb;return _0x5738d9&&_0x5be7('0x33')==_0x5738d9[_0x5be7('0x3b')]?{'type':'format','content':_0x4de55b(_0x544bef,_0x5be7('0x3c'))}:void 0x0;}),_0x203099['_descriptionFactory']['registerDescriptionCallback'](_0x17db1f=>{if('formatBlock'!=_0x17db1f[_0x5be7('0x4d')]&&_0x5be7('0xb')!=_0x17db1f[_0x5be7('0x4d')])return;const {data:_0x358b2a}=_0x17db1f;return _0x358b2a?_0x5be7('0x26')==_0x358b2a['commandName']?{'type':'format','content':_0x4de55b(_0x544bef,_0x5be7('0x29'))}:_0x5be7('0x3e')==_0x358b2a[_0x5be7('0x3b')]?{'type':_0x5be7('0x10'),'content':_0x4de55b(_0x544bef,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x205f90=_0x14c60c[_0x5be7('0x38')]();for(const _0x399939 of[_0x5be7('0x32'),_0x5be7('0x19'),_0x5be7('0x1'),_0x5be7('0x28')])_0x203099[_0x5be7('0x3f')][_0x5be7('0x34')](_0x5be7('0x2d'),_0x399939,'accept',_0x205f90);for(const _0x5206f3 of['splitTableCellVertically',_0x5be7('0x3e')])_0x203099[_0x5be7('0x3f')][_0x5be7('0x34')]('formatBlock',_0x5206f3,_0x5be7('0x46'),_0x205f90);_0x203099[_0x5be7('0x3f')][_0x5be7('0x34')](_0x5be7('0x2d'),_0x5be7('0x33'),_0x5be7('0x46'),_0x1cd749=>{_0x1c1126[_0x5be7('0x4c')][_0x5be7('0x2b')](_0x5d222d=>{const _0x9db23e=Array[_0x5be7('0x18')](_0x52b138[_0x5be7('0x2f')]())[_0x5be7('0x5')](_0x357598=>_0x436bb2[_0x5be7('0x40')](_0x357598));_0x5d222d[_0x5be7('0x16')](_0x1cd749),_0x1c1126[_0x5be7('0x1f')]['get'](_0x5be7('0x33'))[_0x5be7('0x4a')](),_0x1c1126[_0x5be7('0x3')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x38da69=_0x9db23e['filter'](_0x541b3c=>_0x5be7('0xd')!=_0x541b3c['root'][_0x5be7('0x9')]);_0x38da69[_0x5be7('0x12')]>0x0&&_0x5d222d[_0x5be7('0x16')](_0x38da69);for(const _0x192355 of _0x9db23e)_0x192355[_0x5be7('0xa')]();});});for(const _0x46d0ec of[_0x5be7('0x32'),_0x5be7('0x1'),'mergeTableCellLeft',_0x5be7('0x19')]){const _0x28ad3e=_0x1c1126[_0x5be7('0x1f')][_0x5be7('0x2')](_0x46d0ec);_0x28ad3e['on'](_0x5be7('0x15'),(_0x53e7f3,_0x1a5206,_0x1685c5)=>{if(_0x1685c5){const _0x410e17=_0x1c1126[_0x5be7('0x4c')][_0x5be7('0x36')][_0x5be7('0x4f')][_0x5be7('0x47')]()[_0x5be7('0x1a')]()[_0x5be7('0x20')](_0x2db2bb=>_0x2db2bb['is'](_0x5be7('0x31'),_0x5be7('0x11')));this['_areMergableCells'](_0x28ad3e[_0x5be7('0x1e')],_0x410e17)||(_0x53e7f3[_0x5be7('0x4b')]=!0x1,_0x53e7f3[_0x5be7('0x43')]());}},{'priority':_0x5be7('0x44')});}}[_0x5be7('0x1c')](){const _0x2f37eb=this['editor'][_0x5be7('0x1f')]['get'](_0x5be7('0x33')),_0x23379e=this[_0x5be7('0x2a')][_0x5be7('0x24')][_0x5be7('0x2')]('TableUtils');if(!_0x2f37eb[_0x5be7('0x49')])return!0x1;const _0x49f548=_0x23379e['getSelectionAffectedTableCells'](this[_0x5be7('0x2a')][_0x5be7('0x4c')]['document'][_0x5be7('0x4f')]);for(const _0x15feab of _0x49f548)for(const _0x81b20d of _0x49f548)if(_0x15feab!=_0x81b20d&&!this[_0x5be7('0x17')](_0x15feab,_0x81b20d))return!0x1;return!0x0;}['_areMergableCells'](_0x54cf5f,_0x1ef7a7){const _0x5018d3=this['editor'][_0x5be7('0x24')][_0x5be7('0x2')](_0x5be7('0x1d')),_0x8bc151=this[_0x5be7('0x2a')]['model'][_0x5be7('0xf')](_0x54cf5f),_0x4e78fe=this['editor'][_0x5be7('0x4c')][_0x5be7('0xf')](_0x1ef7a7),_0x268f5d=new Set(),_0x58732b=new Set();for(const _0x5d5e18 of _0x5018d3[_0x5be7('0x45')]())if((_0x5be7('0x4')==_0x5d5e18[_0x5be7('0x4d')]||'deletion'==_0x5d5e18['type']||_0x5be7('0x33')==_0x5d5e18[_0x5be7('0x8')])&&_0x5d5e18[_0x5be7('0x4e')])for(const _0x21f83f of _0x5d5e18['getRanges']())_0x21f83f[_0x5be7('0x37')](_0x8bc151,!0x0)&&_0x268f5d[_0x5be7('0x42')](_0x5d5e18[_0x5be7('0x4d')]+':'+_0x5d5e18[_0x5be7('0x21')]['id']),_0x21f83f['containsRange'](_0x4e78fe,!0x0)&&_0x58732b[_0x5be7('0x42')](_0x5d5e18[_0x5be7('0x4d')]+':'+_0x5d5e18[_0x5be7('0x21')]['id']);if(_0x268f5d[_0x5be7('0x39')]!=_0x58732b[_0x5be7('0x39')])return!0x1;for(const _0x1bb4f9 of _0x268f5d)if(!_0x58732b['has'](_0x1bb4f9))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e83=['insertTableOfContents','TrackChangesEditing','get','enableCommand','plugins','tableOfContents','afterInit','editor','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS','locale'];(function(_0x1e35ea,_0x5e8359){const _0x41fbe8=function(_0x2ea19b){while(--_0x2ea19b){_0x1e35ea['push'](_0x1e35ea['shift']());}};_0x41fbe8(++_0x5e8359);}(_0x5e83,0xe3));const _0x41fb=function(_0x1e35ea,_0x5e8359){_0x1e35ea=_0x1e35ea-0x0;let _0x41fbe8=_0x5e83[_0x1e35ea];return _0x41fbe8;};import{Plugin as _0x2b081a}from'ckeditor5/src/core';import{getTranslation as _0x406117}from'../utils/common-translations';export default class _t extends _0x2b081a{[_0x41fb('0xa')](){const _0x219884=this[_0x41fb('0x0')];if(!_0x219884['commands'][_0x41fb('0x6')](_0x41fb('0x4')))return;_0x219884[_0x41fb('0x8')][_0x41fb('0x6')](_0x41fb('0x5'))[_0x41fb('0x7')]('insertTableOfContents');const _0x9c66cd=_0x219884[_0x41fb('0x8')][_0x41fb('0x6')]('TrackChangesEditing'),_0x12b1c7=_0x219884[_0x41fb('0x3')];_0x9c66cd['_descriptionFactory'][_0x41fb('0x1')](_0x41fb('0x9'),_0x589b40=>_0x406117(_0x12b1c7,_0x41fb('0x2'),_0x589b40));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ef0=['formatBlock','enableCommand','_handlePropertyChange','findAncestor','*Format:*\x20change\x20table\x20cell\x20properties','tableBackgroundColor','tableAlignment','tableBorderStyle','_suggestionFactory','join','discard','enqueueChange','get','selection','table','markBlockFormat','removeAttribute','getSelectionAffectedTableCells','handleDiscardAction','tableCellBorderWidth','getSuggestionCallback','model','tableCellPadding','TableCellPropertiesEditing','tableCellBorderStyle','_getSuggestion','plugins','tableCellProperties','format','afterInit','tableBorderWidth','editor','tableWidth','tableCellVerticalAlignment','batch','data','has','TablePropertiesEditing','TableUtils','accept','tableProperties','TrackChangesEditing','tableCellHeight','subType','setAttribute','TrackChangesTableProperties','*Format:*\x20change\x20table\x20properties','pluginName','nodeAfter','commandParams','handleSuggestionDescription','locale','getAttribute','getFirstPosition','change','tableCellHorizontalAlignment','tableCellWidth','registerCustomCallback','registerDescriptionCallback','document'];(function(_0x14e80d,_0x5ef0c8){const _0xa40a0d=function(_0x3505ba){while(--_0x3505ba){_0x14e80d['push'](_0x14e80d['shift']());}};_0xa40a0d(++_0x5ef0c8);}(_0x5ef0,0xbb));const _0xa40a=function(_0x14e80d,_0x5ef0c8){_0x14e80d=_0x14e80d-0x0;let _0xa40a0d=_0x5ef0[_0x14e80d];return _0xa40a0d;};import{Plugin as _0x3fbf59}from'ckeditor5/src/core';import{getTranslation as _0x3b6e85}from'../utils/common-translations';export default class Mt extends _0x3fbf59{constructor(_0x16ff38){super(_0x16ff38),this[_0xa40a('0x21')]=['tableBorderColor',_0xa40a('0x0'),_0xa40a('0x17'),_0xa40a('0x3b'),_0xa40a('0x19'),'tableHeight',_0xa40a('0x3a')],this[_0xa40a('0x14')]=['tableCellBorderColor',_0xa40a('0x11'),_0xa40a('0xc'),_0xa40a('0xf'),_0xa40a('0x31'),_0xa40a('0x23'),'tableCellBackgroundColor',_0xa40a('0x30'),_0xa40a('0x1a')];}static get[_0xa40a('0x28')](){return _0xa40a('0x26');}[_0xa40a('0x16')](){const _0x4ae67c=this[_0xa40a('0x18')][_0xa40a('0x13')][_0xa40a('0x5')](_0xa40a('0x22'));if(this[_0xa40a('0x18')][_0xa40a('0x13')][_0xa40a('0x1d')](_0xa40a('0x1e'))){for(const _0x2a55fa of this[_0xa40a('0x21')])_0x4ae67c[_0xa40a('0x36')](_0x2a55fa,(_0x1123dd,_0x4ef929)=>{const _0x139855=this[_0xa40a('0x18')][_0xa40a('0xe')]['document'][_0xa40a('0x6')][_0xa40a('0x2e')]()[_0xa40a('0x38')](_0xa40a('0x7'));this[_0xa40a('0x37')](_0x2a55fa,[_0x139855],this['tableProperties'],_0xa40a('0x21'),_0x1123dd,_0x4ef929);});_0x4ae67c[_0xa40a('0x1')][_0xa40a('0x32')](_0xa40a('0x35'),_0xa40a('0x21'),_0xa40a('0x20'),_0x4ae67c[_0xa40a('0x1')][_0xa40a('0xd')](_0xa40a('0x35'),null,_0xa40a('0x3'))),_0x4ae67c[_0xa40a('0x1')][_0xa40a('0x32')](_0xa40a('0x35'),_0xa40a('0x21'),'discard',(_0x300f88,_0x12a2a0)=>this[_0xa40a('0xb')](this[_0xa40a('0x21')],_0x300f88,_0x12a2a0)),_0x4ae67c[_0xa40a('0x1')][_0xa40a('0x32')](_0xa40a('0x35'),'tableProperties','join',()=>!0x1);}if(this[_0xa40a('0x18')][_0xa40a('0x13')][_0xa40a('0x1d')](_0xa40a('0x10'))){for(const _0x310c7b of this[_0xa40a('0x14')])_0x4ae67c[_0xa40a('0x36')](_0x310c7b,(_0x14eb70,_0x40a811)=>{const _0x3c8f5f=this['editor'][_0xa40a('0x13')]['get'](_0xa40a('0x1f'))[_0xa40a('0xa')](this['editor'][_0xa40a('0xe')][_0xa40a('0x34')][_0xa40a('0x6')]);this[_0xa40a('0x37')](_0x310c7b,_0x3c8f5f,this[_0xa40a('0x14')],'tableCellProperties',_0x14eb70,_0x40a811);});_0x4ae67c['_suggestionFactory'][_0xa40a('0x32')](_0xa40a('0x35'),_0xa40a('0x14'),_0xa40a('0x20'),_0x4ae67c[_0xa40a('0x1')][_0xa40a('0xd')](_0xa40a('0x35'),null,'discard')),_0x4ae67c[_0xa40a('0x1')][_0xa40a('0x32')](_0xa40a('0x35'),_0xa40a('0x14'),'discard',(_0x40e78b,_0x578b7d)=>this['handleDiscardAction'](this[_0xa40a('0x14')],_0x40e78b,_0x578b7d)),_0x4ae67c[_0xa40a('0x1')][_0xa40a('0x32')](_0xa40a('0x35'),'tableCellProperties',_0xa40a('0x2'),()=>!0x1);}_0x4ae67c['_descriptionFactory'][_0xa40a('0x33')](_0x19a6b2=>this[_0xa40a('0x2b')](_0x19a6b2));}['_handlePropertyChange'](_0x3376c5,_0x3c5428,_0x2431d5,_0x27753e,_0x39cce1,_0x109de2){const _0x110e7c=this[_0xa40a('0x18')][_0xa40a('0x13')][_0xa40a('0x5')](_0xa40a('0x22'));this[_0xa40a('0x18')][_0xa40a('0xe')][_0xa40a('0x4')](_0x109de2[_0xa40a('0x1b')],()=>{for(const _0x3254e of _0x3c5428){if(this[_0xa40a('0x12')](_0x3254e,_0x27753e))_0x39cce1(_0x109de2);else{const _0x4849e2={};for(const _0x26621d of _0x2431d5){const _0xdbf1e4=_0x3254e[_0xa40a('0x2d')](_0x26621d);void 0x0!==_0xdbf1e4&&(_0x4849e2[_0x26621d]=_0xdbf1e4);}_0x39cce1(_0x109de2),_0x110e7c[_0xa40a('0x8')](_0x3254e,{'commandParams':[_0x4849e2]},[],_0x27753e);}}});}[_0xa40a('0xb')](_0x4d26c5,_0x4a49eb,_0x5b6fc8){const _0x41afb8=_0x4a49eb[0x0]['start'][_0xa40a('0x29')],_0x4a4426=_0x5b6fc8[_0xa40a('0x2a')][0x0];this[_0xa40a('0x18')][_0xa40a('0xe')][_0xa40a('0x2f')](_0x34aa06=>{for(const _0x5607ab of _0x4d26c5)void 0x0!==_0x4a4426[_0x5607ab]?_0x34aa06[_0xa40a('0x25')](_0x5607ab,_0x4a4426[_0x5607ab],_0x41afb8):_0x34aa06[_0xa40a('0x9')](_0x5607ab,_0x41afb8);});}[_0xa40a('0x2b')](_0x1ce0de){if(_0x1ce0de[_0xa40a('0x1c')])switch(_0x1ce0de[_0xa40a('0x24')]){case'tableProperties':return{'type':'format','content':_0x3b6e85(this['editor'][_0xa40a('0x2c')],_0xa40a('0x27'))};case _0xa40a('0x14'):return{'type':_0xa40a('0x15'),'content':_0x3b6e85(this[_0xa40a('0x18')][_0xa40a('0x2c')],_0xa40a('0x39'))};}}[_0xa40a('0x12')](_0xa8f667,_0xfecf6f){const _0x4e1f41=this[_0xa40a('0x18')][_0xa40a('0x13')]['get'](_0xa40a('0x22'));for(const _0x1510b9 of _0x4e1f41['getSuggestions']({'skipNotAttached':!0x0})){const _0x2e5b27=_0x1510b9['getContainedElement']();if(_0x1510b9['subType']===_0xfecf6f&&_0x2e5b27===_0xa8f667)return _0x1510b9;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2003=['enableCommand','has','editor','afterInit','plugins','Template'];(function(_0x41a7bd,_0x200347){const _0x5914d6=function(_0x207349){while(--_0x207349){_0x41a7bd['push'](_0x41a7bd['shift']());}};_0x5914d6(++_0x200347);}(_0x2003,0x178));const _0x5914=function(_0x41a7bd,_0x200347){_0x41a7bd=_0x41a7bd-0x0;let _0x5914d6=_0x2003[_0x41a7bd];return _0x5914d6;};import{Plugin as _0x23551a}from'ckeditor5/src/core';export default class vt extends _0x23551a{[_0x5914('0x5')](){const _0x434174=this[_0x5914('0x4')];_0x434174[_0x5914('0x0')][_0x5914('0x3')](_0x5914('0x1'))&&_0x434174['plugins']['get']('TrackChangesEditing')[_0x5914('0x2')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x354b=['getChangedMarkers','updateMarker','getNearestSelectionRange','differ','locale','title-content','document','has','ELEMENT_TITLE','_splitMarkerName','TrackChangesEditing','isEqual','_descriptionFactory','plugins','createRange','start','isTouching','registerPostFixer','nodeBefore','isCollapsed','newRange','end','forward','schema','get'];(function(_0x52fe22,_0x354b9d){const _0x58ce1b=function(_0x23facd){while(--_0x23facd){_0x52fe22['push'](_0x52fe22['shift']());}};_0x58ce1b(++_0x354b9d);}(_0x354b,0x1c0));const _0x58ce=function(_0x52fe22,_0x354b9d){_0x52fe22=_0x52fe22-0x0;let _0x58ce1b=_0x354b[_0x52fe22];return _0x58ce1b;};import{Plugin as _0x4e9edf}from'ckeditor5/src/core';import{getTranslation as _0x2bd8dd}from'../utils/common-translations';export default class Ct extends _0x4e9edf{['afterInit'](){const _0x434c23=this['editor'];if(!_0x434c23['plugins'][_0x58ce('0x9')]('Title'))return;const _0x1ea551=_0x434c23[_0x58ce('0xf')][_0x58ce('0x1')](_0x58ce('0xc'));_0x1ea551[_0x58ce('0xe')]['registerElementLabel'](_0x58ce('0x7'),()=>_0x2bd8dd(_0x434c23[_0x58ce('0x6')],_0x58ce('0xa'))),_0x434c23['model'][_0x58ce('0x8')][_0x58ce('0x13')](_0x4c7cfc=>{let _0xd1686f=!0x1;const _0x2b0634=Array['from'](_0x434c23['model'][_0x58ce('0x8')][_0x58ce('0x5')][_0x58ce('0x2')]());for(const {name:_0x4da069,data:_0x1915f2}of _0x2b0634){const {group:_0x5cd8f3}=_0x1ea551[_0x58ce('0xb')](_0x4da069);if('suggestion'!==_0x5cd8f3||!_0x1915f2['newRange'])continue;const _0xee032b=_0x1915f2[_0x58ce('0x16')],_0x4d0abc=_0xee032b[_0x58ce('0x17')][_0x58ce('0x14')];if(!_0x4d0abc||!_0x4d0abc['is']('element',_0x58ce('0x7')))continue;if(!_0xee032b['start'][_0x58ce('0x12')](_0xee032b['end']))continue;const _0xb8253c=_0x434c23['model'][_0x58ce('0x0')][_0x58ce('0x4')](_0xee032b['end'],_0x58ce('0x18'));if(_0xb8253c&&_0xb8253c[_0x58ce('0x15')]){const _0x27ee87=_0x4c7cfc[_0x58ce('0x10')](_0xee032b[_0x58ce('0x11')],_0xb8253c[_0x58ce('0x11')]);_0x27ee87[_0x58ce('0xd')](_0xee032b)||(_0x4c7cfc[_0x58ce('0x3')](_0x4da069,{'range':_0x27ee87}),_0xd1686f=!0x0);}_0xd1686f||(_0x4c7cfc['removeMarker'](_0x4da069),_0xd1686f=!0x0);}return _0xd1686f;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9dad=['enableCommand','plugins','UndoEditing','afterInit','TrackChangesEditing','get','editor','has'];(function(_0x10259d,_0x9dada3){const _0x370f02=function(_0x40a023){while(--_0x40a023){_0x10259d['push'](_0x10259d['shift']());}};_0x370f02(++_0x9dada3);}(_0x9dad,0xa7));const _0x370f=function(_0x10259d,_0x9dada3){_0x10259d=_0x10259d-0x0;let _0x370f02=_0x9dad[_0x10259d];return _0x370f02;};import{Plugin as _0x4a4821}from'ckeditor5/src/core';export default class Dt extends _0x4a4821{[_0x370f('0x4')](){const _0x2c0af3=this[_0x370f('0x7')],_0x312672=_0x2c0af3['plugins'][_0x370f('0x6')](_0x370f('0x5'));_0x2c0af3[_0x370f('0x2')][_0x370f('0x0')](_0x370f('0x3'))&&(_0x312672[_0x370f('0x1')]('undo'),_0x312672[_0x370f('0x1')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e5d=['ck-suggestion-marker-','addHighlight','TrackChangesEditing','hasAttribute','plugins','createUIElement','test','listItem','createRangeOn','markerName','getAttribute','elementEnd','getCustomProperty','bindElementToMarker','schema','get','push','span','markerRange','isAtEnd','isLimit','consumable','previousPosition','ck-suggestion-marker--active','addClass','getWalker','element','includes','isBlock','model','writer','nextSibling'];(function(_0x4af421,_0x1e5d2){const _0x41e29a=function(_0x152e2b){while(--_0x152e2b){_0x4af421['push'](_0x4af421['shift']());}};_0x41e29a(++_0x1e5d2);}(_0x1e5d,0x19f));const _0x41e2=function(_0x4af421,_0x1e5d2){_0x4af421=_0x4af421-0x0;let _0x41e29a=_0x1e5d[_0x4af421];return _0x41e29a;};export function getRangesWithAttribute(_0x134ee2,_0x210e9f,_0xa5a37a){const _0x214d71=[];for(const _0x515c96 of _0x210e9f['getItems']())_0x515c96[_0x41e2('0x4')](_0x134ee2)&&_0x214d71[_0x41e2('0x11')](_0xa5a37a[_0x41e2('0x9')](_0x515c96));return _0x214d71;}export function getElementsAffectedByListItemRename(_0x524661){const _0x18ee1b=[];if(_0x524661['is'](_0x41e2('0x1b'),_0x41e2('0x8'))){let _0x1b4e98=_0x524661[_0x41e2('0x0')];for(;_0x1b4e98&&_0x1b4e98['is'](_0x41e2('0x1b'),_0x41e2('0x8'))&&_0x1b4e98[_0x41e2('0xb')]('listIndent')>0x0;)_0x18ee1b[_0x41e2('0x11')](_0x1b4e98),_0x1b4e98=_0x1b4e98[_0x41e2('0x0')];}return _0x18ee1b;}export function downcastSplitMergeMarker(_0x19ae4e,_0x2f8806,{showActiveMarker:_0x11d535=!0x0}={}){const _0x1fcbc9=_0x19ae4e[_0x41e2('0x5')][_0x41e2('0x10')](_0x41e2('0x3'));return(_0x2a5fb3,_0x58bb19,_0x172eb9)=>{if(!_0x172eb9[_0x41e2('0x16')][_0x41e2('0x7')](_0x58bb19['markerRange'],_0x2a5fb3['name']))return;const _0x290755=_0x58bb19[_0x41e2('0x13')][_0x41e2('0x1a')](),_0x16986c=_0x58bb19[_0x41e2('0x13')]['start'],_0x1d5f22=_0x19ae4e[_0x41e2('0x1e')][_0x41e2('0xf')];let _0x4f7143=null,_0x554e7e=null,_0x26f25b=!0x1,_0x1394bd=!0x1;for(const _0x3209ff of _0x290755){const _0x9898fb=_0x3209ff['item'];_0x26f25b=_0x26f25b||_0x1d5f22['isContent'](_0x9898fb);const _0x2e130f=_0x172eb9['mapper']['toViewElement'](_0x9898fb);if(_0x2e130f&&_0x2e130f[_0x41e2('0xd')](_0x41e2('0x2')))return;_0x41e2('0xc')==_0x3209ff['type']&&(_0x1d5f22[_0x41e2('0x1d')](_0x9898fb)&&!_0x1d5f22[_0x41e2('0x15')](_0x9898fb)&&(_0x9898fb[_0x41e2('0x0')]||_0x16986c[_0x41e2('0x14')]?_0x4f7143&&_0x4f7143['parent']==_0x9898fb||(_0x4f7143=_0x9898fb,_0x478ed1(_0x3209ff[_0x41e2('0x17')]),_0x1394bd=!0x0):_0x554e7e=_0x554e7e||_0x3209ff['previousPosition']));}function _0x478ed1(_0x115466){const _0x4fa497=_0x172eb9['writer'][_0x41e2('0x6')](_0x41e2('0x12'),{'class':_0x41e2('0x1')+_0x2f8806}),_0x25413c=_0x172eb9['mapper']['toViewPosition'](_0x115466);_0x11d535&&_0x1fcbc9['activeMarkers'][_0x41e2('0x1c')](_0x58bb19[_0x41e2('0xa')])&&_0x172eb9['writer'][_0x41e2('0x19')](_0x41e2('0x18'),_0x4fa497),_0x172eb9[_0x41e2('0x1f')]['insert'](_0x25413c,_0x4fa497),_0x172eb9['mapper'][_0x41e2('0xe')](_0x4fa497,_0x58bb19[_0x41e2('0xa')]);}_0x26f25b||_0x1394bd||!_0x554e7e||_0x478ed1(_0x554e7e);};}
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd9ef=['onAccept','onDiscard','substr','creator','data','nodeAfter','getRange','getMarkers','discard','getAllAdjacentSuggestions','size','from','getMarkerNames','add','attributes','previous','isIntersecting','getContainedElement','start','addMarkerName','hasComments','getFirstMarker','split','_onDiscard','decorate','createdAt','filter','suggestion:','set','end','onAttributesChange','commentThread','_markerNames','clear','nodeBefore','toJSON','push','change','removeMarkers','_model','delete','type','subType','length','removeMarker','getRanges','isExternal','isInContent','author','authoredAt','next','_onAccept','map','accept','@external','head','getItems','_onAttributesChange','markers'];(function(_0x224dc7,_0xd9efca){const _0x5f5196=function(_0xd92f66){while(--_0xd92f66){_0x224dc7['push'](_0x224dc7['shift']());}};_0x5f5196(++_0xd9efca);}(_0xd9ef,0xf4));const _0x5f51=function(_0x224dc7,_0xd9efca){_0x224dc7=_0x224dc7-0x0;let _0x5f5196=_0xd9ef[_0x224dc7];return _0x5f5196;};import{Element as _0x41e6d3}from'ckeditor5/src/engine';import{ObservableMixin as _0x3429a6,uid as _0x7be28d}from'ckeditor5/src/utils';import{cloneDeep as _0x31917f,isEqual as _0x50ac6b,set as _0x341cbb,unset as _0x5badb2}from'lodash-es';export default class u extends _0x3429a6(){constructor(_0x784589,_0x326a02){super(),this['_isDataLoaded']=!0x1,this['id']=_0x326a02['id'],this[_0x5f51('0x21')]=_0x326a02[_0x5f51('0x21')],this[_0x5f51('0x22')]=_0x326a02[_0x5f51('0x22')]||null,this['author']=_0x326a02[_0x5f51('0x28')],this[_0x5f51('0x36')]=_0x326a02[_0x5f51('0x36')]||_0x326a02['author'],this[_0x5f51('0x26')]=Boolean(_0x326a02['attributes']&&_0x326a02[_0x5f51('0x6')][_0x5f51('0x2e')]),this[_0x5f51('0x37')]=null,this[_0x5f51('0x1f')]=_0x784589,this[_0x5f51('0x2b')]=_0x326a02[_0x5f51('0x33')],this[_0x5f51('0xf')]=_0x326a02[_0x5f51('0x34')],this[_0x5f51('0x31')]=_0x326a02[_0x5f51('0x16')],this[_0x5f51('0x18')]=new Set(),this[_0x5f51('0x11')]=null,this[_0x5f51('0x14')](_0x5f51('0x29'),null),this[_0x5f51('0x14')](_0x5f51('0x6'),_0x326a02[_0x5f51('0x6')]||{}),this[_0x5f51('0x14')](_0x5f51('0x7'),null),this[_0x5f51('0x14')](_0x5f51('0x2a'),null),this[_0x5f51('0x14')]('commentThread',null),this[_0x5f51('0x14')]('_saved',!0x1),this[_0x5f51('0x10')](_0x5f51('0x2d')),this[_0x5f51('0x10')]('discard');}get[_0x5f51('0x2f')](){let _0x4a1ef3=this;for(;_0x4a1ef3['previous'];)_0x4a1ef3=_0x4a1ef3[_0x5f51('0x7')];return _0x4a1ef3;}get[_0x5f51('0xc')](){return!!this[_0x5f51('0x17')]&&this[_0x5f51('0x17')][_0x5f51('0x23')]>0x0;}get['isMultiRange'](){if(0x0==this[_0x5f51('0x18')][_0x5f51('0x2')])return!0x1;return 0x6==Array['from'](this[_0x5f51('0x18')])[0x0][_0x5f51('0xe')](':')[_0x5f51('0x23')];}get[_0x5f51('0x27')](){return null!==this[_0x5f51('0xd')]();}['addMarkerName'](_0x301b67){this[_0x5f51('0x18')][_0x5f51('0x5')](_0x301b67);}[_0x5f51('0x4')](){return Array[_0x5f51('0x3')](this[_0x5f51('0x18')]);}[_0x5f51('0x3a')](){return this[_0x5f51('0x4')]()[_0x5f51('0x2c')](_0x451244=>this['_model'][_0x5f51('0x32')]['get'](_0x451244))[_0x5f51('0x12')](_0x5425cb=>_0x5425cb);}['getFirstMarker'](){return this[_0x5f51('0x3a')]()[0x0]||null;}[_0x5f51('0x1e')](){this[_0x5f51('0x1f')]['change'](_0xe69f39=>{for(const _0x370281 of this[_0x5f51('0x3a')]())_0xe69f39[_0x5f51('0x24')](_0x370281);}),this[_0x5f51('0x18')][_0x5f51('0x19')]();}[_0x5f51('0x24')](_0x3c2622){this[_0x5f51('0x1f')]['change'](_0x274731=>{_0x274731[_0x5f51('0x24')](_0x3c2622);}),this[_0x5f51('0x18')][_0x5f51('0x20')](_0x3c2622);}['addRange'](_0x20a333){const _0x45c4cd=_0x5f51('0x13')+this[_0x5f51('0x21')]+':'+this['subType']+':'+this['id']+':'+this[_0x5f51('0x36')]['id']+':'+u['getMultiRangeId']();this[_0x5f51('0xb')](_0x45c4cd),this[_0x5f51('0x1f')][_0x5f51('0x1d')](_0xd75b2b=>{_0xd75b2b['addMarker'](_0x45c4cd,{'range':_0x20a333,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x47c8d3){for(const _0x50a763 of this[_0x5f51('0x25')]())if(_0x50a763[_0x5f51('0x8')](_0x47c8d3))return!0x0;return!0x1;}[_0x5f51('0x25')](){return this['getMarkers']()[_0x5f51('0x2c')](_0x276bd2=>_0x276bd2[_0x5f51('0x39')]());}['getItems'](){return this[_0x5f51('0x25')]()['reduce']((_0x2ae8fb,_0x2e58a4)=>[..._0x2ae8fb,..._0x2e58a4[_0x5f51('0x30')]()],[]);}['getFirstRange'](){var _0x156972;return(null===(_0x156972=this[_0x5f51('0xd')]())||void 0x0===_0x156972?void 0x0:_0x156972[_0x5f51('0x39')]())||null;}[_0x5f51('0x9')](){const _0x4df86c=this[_0x5f51('0x25')]();if(0x1!=_0x4df86c[_0x5f51('0x23')])return null;const _0x350a4f=_0x4df86c[0x0],_0x1f004a=_0x350a4f[_0x5f51('0xa')][_0x5f51('0x38')],_0x3d1766=_0x350a4f[_0x5f51('0x15')][_0x5f51('0x1a')];return _0x1f004a instanceof _0x41e6d3?_0x1f004a!=_0x3d1766?null:_0x1f004a:null;}[_0x5f51('0x2d')](){this[_0x5f51('0x2b')](this['getRanges'](),this[_0x5f51('0x37')],this[_0x5f51('0x6')]),this[_0x5f51('0x1e')]();}[_0x5f51('0x0')](){this[_0x5f51('0xf')](this[_0x5f51('0x25')](),this[_0x5f51('0x37')],this[_0x5f51('0x6')]),this[_0x5f51('0x1e')]();}[_0x5f51('0x1')](){const _0x4502d3=[];let _0x1aef7b=this[_0x5f51('0x2f')];for(;_0x1aef7b;)_0x4502d3[_0x5f51('0x1c')](_0x1aef7b),_0x1aef7b=_0x1aef7b['next'];return _0x4502d3;}['setAttribute'](_0x2bb75e,_0x41956f){const _0x345944=_0x31917f(this['attributes']);_0x341cbb(_0x345944,_0x2bb75e,_0x41956f),_0x50ac6b(_0x345944,this[_0x5f51('0x6')])||(this['attributes']=_0x345944,this['_onAttributesChange'](_0x345944));}['removeAttribute'](_0x204000){const _0x3016d6=_0x31917f(this['attributes']);_0x5badb2(_0x3016d6,_0x204000),_0x50ac6b(_0x3016d6,this[_0x5f51('0x6')])||(this['attributes']=_0x3016d6,this[_0x5f51('0x31')](this[_0x5f51('0x6')]));}[_0x5f51('0x1b')](){return{'id':this['id'],'type':this[_0x5f51('0x22')]?this[_0x5f51('0x21')]+':'+this[_0x5f51('0x22')]:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this[_0x5f51('0xc')],'data':this[_0x5f51('0x37')],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x7be28d()[_0x5f51('0x35')](0x1,0x5);}}
|