@ckeditor/ckeditor5-track-changes 35.1.0 → 35.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -1
- package/lang/translations/ar.po +4 -0
- package/lang/translations/az.po +4 -0
- package/lang/translations/bg.po +4 -0
- package/lang/translations/bn.po +4 -0
- package/lang/translations/ca.po +4 -0
- package/lang/translations/cs.po +4 -0
- package/lang/translations/da.po +4 -0
- package/lang/translations/de.po +4 -0
- package/lang/translations/el.po +4 -0
- package/lang/translations/en-au.po +4 -0
- package/lang/translations/en.po +4 -0
- package/lang/translations/es.po +4 -0
- package/lang/translations/et.po +4 -0
- package/lang/translations/fi.po +4 -0
- package/lang/translations/fr.po +4 -0
- package/lang/translations/gl.po +4 -0
- package/lang/translations/he.po +4 -0
- package/lang/translations/hi.po +4 -0
- package/lang/translations/hr.po +4 -0
- package/lang/translations/hu.po +4 -0
- package/lang/translations/id.po +4 -0
- package/lang/translations/it.po +4 -0
- package/lang/translations/ja.po +4 -0
- package/lang/translations/ko.po +27 -23
- package/lang/translations/lt.po +4 -0
- package/lang/translations/lv.po +4 -0
- package/lang/translations/ms.po +4 -0
- package/lang/translations/nl.po +4 -0
- package/lang/translations/no.po +4 -0
- package/lang/translations/pl.po +4 -0
- package/lang/translations/pt-br.po +4 -0
- package/lang/translations/pt.po +4 -0
- package/lang/translations/ro.po +4 -0
- package/lang/translations/ru.po +4 -0
- package/lang/translations/sk.po +4 -0
- package/lang/translations/sr-latn.po +4 -0
- package/lang/translations/sr.po +4 -0
- package/lang/translations/sv.po +4 -0
- package/lang/translations/th.po +4 -0
- package/lang/translations/tk.po +4 -0
- package/lang/translations/tr.po +4 -0
- package/lang/translations/tt.po +6 -2
- package/lang/translations/uk.po +4 -0
- package/lang/translations/ur.po +4 -0
- package/lang/translations/vi.po +4 -0
- package/lang/translations/zh-cn.po +4 -0
- package/lang/translations/zh.po +4 -0
- package/package.json +4 -4
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/importword.js +23 -0
- 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/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/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.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/getrangesofblockgroups.js +1 -1
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x248c=['editing','ck-suggestion-marker','push','tablePasteColumn','deletionRanges','getSuggestions','wrap','createRange','tablePasteCell','registerCustomCallback','suggestion-td','markerToHighlight','from','removeMarker','columnInsertionIndexes','dataDowncast','has','document','add','some','remove','createPositionBefore','tableCellBorderColor','getAttributes','low','getChild','reduce','redo','deletion','_splitMarkerName','end','selection','isEqual','clipboardOutput','high','_createdBatches','stop','map','updateMarker','*Replace\x20table\x20cells*','differ','suggestionUnloaded','model','schema','ck-suggestion-marker--active','options','root','length','getRange','tableCellSuggestion','element','every','removeRows','getAllAdjacentSuggestions','getContainedElement','set','tableCell','insertion','nextSibling','entries','for','return','TableClipboard','discard','locale','_getCoordsForCells','get','next','fromEntries','requires','join','start','getChildren','register','move','endColumn','plugins','includes','author','getColumns','getSelectionAffectedTableCells','filter','fill','attributes','type','oldRange','activeMarkers','getColumnIndexes','rowInsertionIndexes','cells','isInContent','first','name','formatBlock','hasSuggestion','createRangeOn','tablePaste','_tablePostFixingSubtypes','findAncestor','value','createRangeIn','suggestion:formatBlock:tablePasteCell','_isForcedDefaultExecutionBlock','markerName','tablePasteRow','removeColumns','getRanges','accept','getChangedMarkers','forceDefaultExecution','insertContent','getMarkers','cell','getChanges','listenTo','previousSibling','insert','tableCellHorizontalAlignment','tableCellPadding','tableCellBackgroundColor','keys','startsWith','editor','Users','insertColumns','containsRange','tablePasteChainId','getSuggestionCallback','_suggestionFactory','find','row','createTableWalker','afterInit','nodeAfter','rows','commands','ck-suggestion-marker-insertion','createElement','suggestion','previous','last','registerDescriptionCallback','insertionRanges','getItems','isEmpty','tableCellBorderWidth','$graveyard','markMultiRangeInsertion','trackChanges','unwrap','table','change','columns','position','registerPostFixer','getRows','_replaceTableSlotCell','getRowIndexes','markerAttributes','setAttribute','conversion','editingDowncast','newRange','subType','setAttributes'];(function(_0x3b84d2,_0x248ca2){const _0x591f38=function(_0x6d9624){while(--_0x6d9624){_0x3b84d2['push'](_0x3b84d2['shift']());}};_0x591f38(++_0x248ca2);}(_0x248c,0x15e));const _0x591f=function(_0x3b84d2,_0x248ca2){_0x3b84d2=_0x3b84d2-0x0;let _0x591f38=_0x248c[_0x3b84d2];return _0x591f38;};import{getTranslation as _0x12b938}from'../utils/common-translations';import{Plugin as _0x29f0b1}from'ckeditor5/src/core';import _0x5e4f7b from'./table';import{uid as _0xe3e488,priorities as _0x550201}from'ckeditor5/src/utils';const oe=[_0x591f('0x7d'),_0x591f('0x2'),'tableCellBorderStyle',_0x591f('0x61'),'tableCellVerticalAlignment',_0x591f('0x63'),_0x591f('0x62')],ne=Object[_0x591f('0x30')](oe['map'](_0x28f6dc=>[_0x28f6dc,null]));export default class lt extends _0x29f0b1{static get[_0x591f('0x31')](){return[_0x5e4f7b];}[_0x591f('0x70')](){const _0x1eb6a0=this[_0x591f('0x66')];if(!_0x1eb6a0[_0x591f('0x38')][_0x591f('0xa1')]('TableClipboard'))return;const _0x552750=_0x1eb6a0['plugins'][_0x591f('0x2e')]('TrackChangesEditing'),_0x3efc54=_0x1eb6a0[_0x591f('0x38')][_0x591f('0x2e')]('TableUtils'),_0x33f279=_0x1eb6a0['plugins'][_0x591f('0x2e')](_0x5e4f7b),_0x531494=_0x1eb6a0[_0x591f('0x38')][_0x591f('0x2e')](_0x591f('0x2a'));_0x33f279[_0x591f('0x4d')]['push'](_0x591f('0x54'),'tablePasteColumn'),_0x1eb6a0['model'][_0x591f('0x17')][_0x591f('0x35')](_0x591f('0x1d'),{'allowIn':'tableCell','allowContentOf':_0x591f('0x24'),'isLimit':!0x0}),_0x1eb6a0[_0x591f('0x8c')]['elementToElement']({'model':_0x591f('0x1d'),'view':_0x591f('0x9b')});let _0xfe0770=null;_0x1eb6a0[_0x591f('0x16')]['on'](_0x591f('0x5a'),(_0x11e7b7,_0x4261fb)=>{const [_0x93026c,_0x57c001]=_0x4261fb,_0x459b50=_0x4261fb[_0x4261fb['length']-0x1];_0x459b50&&_0x459b50[_0x591f('0x59')]||_0x552750[_0x591f('0x52')]||this[_0x591f('0x66')][_0x591f('0x73')]['get'](_0x591f('0x80'))[_0x591f('0x4f')]&&function(_0x798638,_0x583773,_0xe8de6e,_0x5f5878,_0x30595b){if(_0x583773&&!_0x583773['is']('documentSelection'))return!0x1;const _0x2307cb=_0x30595b['getTableIfOnlyTableInContent'](_0x798638,_0xe8de6e);if(!_0x2307cb||!se(_0x2307cb,null,_0x5f5878))return!0x1;const _0x43c22d=_0x5f5878[_0x591f('0x3c')](_0xe8de6e[_0x591f('0xa2')][_0x591f('0xb')]);if(!_0x43c22d[_0x591f('0x1b')])return!0x1;const _0x409d71=_0x43c22d[0x0][_0x591f('0x4e')](_0x591f('0x82')),_0x297745=_0x5f5878[_0x591f('0x89')](_0x43c22d),_0x56bec9=_0x5f5878[_0x591f('0x43')](_0x43c22d),_0x370d41={'startRow':_0x297745[_0x591f('0x47')],'endRow':_0x297745[_0x591f('0x78')],'startColumn':_0x56bec9[_0x591f('0x47')],'endColumn':_0x56bec9[_0x591f('0x78')]};return 0x1==_0x43c22d[_0x591f('0x1b')]&&(_0x370d41['endRow']+=_0x5f5878[_0x591f('0x87')](_0x2307cb)-0x1,_0x370d41[_0x591f('0x37')]+=_0x5f5878[_0x591f('0x3b')](_0x2307cb)-0x1),se(_0x409d71,_0x370d41,_0x5f5878);}(_0x93026c,_0x57c001,_0x1eb6a0[_0x591f('0x16')],_0x3efc54,_0x531494)&&(_0x11e7b7[_0x591f('0x10')](),_0xfe0770={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1eb6a0['model'][_0x591f('0x83')](()=>{_0x1eb6a0[_0x591f('0x16')][_0x591f('0x5a')](_0x4261fb[0x0],_0x4261fb[0x1],_0x4261fb[0x2],_0x4261fb[0x3],{'forceDefaultExecution':!0x0});const _0x566a0f=_0xe3e488(),{rowInsertionRanges:_0x17f918,columnInsertionRanges:_0x4788da,insertionRanges:_0x1bdb2e,deletionRanges:_0x36eaa0,cells:_0x151c55}=_0xfe0770;_0x17f918['length']&&_0x552750[_0x591f('0x7f')](_0x17f918,_0x591f('0x54'),{'tablePasteChainId':_0x566a0f}),_0x4788da['length']&&_0x552750['markMultiRangeInsertion'](_0x4788da,_0x591f('0x94'),{'tablePasteChainId':_0x566a0f}),_0x1bdb2e[_0x591f('0x1b')]&&_0x552750[_0x591f('0x7f')](_0x1bdb2e,_0x591f('0x4c'),{'tablePasteChainId':_0x566a0f,'skipNestingCheck':!0x0}),_0x36eaa0[_0x591f('0x1b')]&&_0x552750['markMultiRangeDeletion'](_0x36eaa0,_0x591f('0x4c'),{'tablePasteChainId':_0x566a0f,'skipNestingCheck':!0x0});const _0x256507=_0x552750['markMultiRangeBlockFormat'](_0x151c55[_0x591f('0x11')](({element:_0x531c17})=>_0x531c17),{'formatGroupId':_0xe3e488()},[],_0x591f('0x99'),{'tablePasteChainId':_0x566a0f});if(_0x256507){const _0x950231=_0x256507[_0x591f('0x5b')](),_0x592da7=[];for(const {element:_0x1032a2,attributes:_0xf945bc}of _0x151c55){if(!_0xf945bc)continue;const _0xaa4ae5=_0x1eb6a0[_0x591f('0x16')][_0x591f('0x4b')](_0x1032a2),_0x3c0d00=_0x950231[_0x591f('0x6d')](_0x40e610=>_0x40e610[_0x591f('0x1c')]()[_0x591f('0xc')](_0xaa4ae5));_0x3c0d00&&_0x592da7['push']([_0x3c0d00[_0x591f('0x48')],_0xf945bc]);}_0x592da7[_0x591f('0x1b')]&&_0x256507[_0x591f('0x8b')]('markerAttributes',Object[_0x591f('0x30')](_0x592da7));}_0xfe0770=null;}));},{'priority':_0x550201['high']+0xa}),_0x1eb6a0[_0x591f('0x38')][_0x591f('0x2e')](_0x591f('0x2a'))['on'](_0x591f('0x88'),(_0x489223,_0x1ed45f)=>{const [_0x19631f,_0x5952b4,,_0x2b586e]=_0x1ed45f;if(!_0xfe0770)return;_0x489223[_0x591f('0x10')]();const _0x13e551=_0x19631f[_0x591f('0x5c')],_0x2296ba=_0x5952b4,_0xdb453f=le(_0x13e551),_0x3793dd=le(_0x2296ba);_0x489223[_0x591f('0x29')]=_0x13e551;let _0xbeea0f=null,_0x5869f2=null;if(_0x3793dd||_0xdb453f){if(_0xdb453f&&!_0x3793dd){_0x2b586e[_0x591f('0x0')](_0x13e551[_0x591f('0x5')](0x0));for(const _0x331a7b of Array[_0x591f('0x9d')](_0x2296ba['getChildren']()))_0x2b586e[_0x591f('0x60')](_0x331a7b,_0x13e551,_0x591f('0xa'));const _0x51273c=_0xfe0770[_0x591f('0x44')][_0x591f('0x39')](_0x19631f[_0x591f('0x6e')]),_0x283ac9=_0xfe0770[_0x591f('0x9f')]['includes'](_0x19631f['column']);_0x51273c||_0x283ac9||(_0xbeea0f=_0x2b586e[_0x591f('0x50')](_0x13e551));}else _0x3793dd&&!_0xdb453f&&(_0x5869f2=_0x2b586e[_0x591f('0x50')](_0x13e551));}else{const _0x24da61=_0x2b586e['createElement'](_0x591f('0x1d')),_0x1864c0=_0x2b586e[_0x591f('0x75')](_0x591f('0x1d'));_0x2b586e[_0x591f('0x97')](_0x2b586e[_0x591f('0x50')](_0x13e551),_0x1864c0),_0x2b586e[_0x591f('0x60')](_0x24da61,_0x13e551,0x0);for(const _0x38f149 of Array[_0x591f('0x9d')](_0x2296ba[_0x591f('0x34')]()))_0x2b586e[_0x591f('0x60')](_0x38f149,_0x24da61,_0x591f('0xa'));_0xbeea0f=_0x2b586e[_0x591f('0x4b')](_0x24da61),_0x5869f2=_0x2b586e[_0x591f('0x4b')](_0x1864c0);}const _0x228cd9=Array[_0x591f('0x9d')](_0x2296ba[_0x591f('0x3')]())[_0x591f('0x3d')](([_0x4048f5])=>oe[_0x591f('0x39')](_0x4048f5));_0xfe0770[_0x591f('0x45')]['push']({'element':_0x13e551,'attributes':_0x228cd9[_0x591f('0x1b')]?Object[_0x591f('0x30')](_0x228cd9):null}),_0xbeea0f&&_0xfe0770[_0x591f('0x7a')]['push'](_0xbeea0f),_0x5869f2&&_0xfe0770[_0x591f('0x95')][_0x591f('0x93')](_0x5869f2);},{'priority':_0x591f('0xe')}),_0x3efc54['on'](_0x591f('0x68'),(_0x5d624a,_0x58dba2)=>{const [_0x430292,_0x395b62={}]=_0x58dba2;if(!_0xfe0770)return;const _0x1163ff=_0x395b62['at']||0x0,_0x57361d=_0x395b62[_0x591f('0x84')]||0x1;_0xfe0770[_0x591f('0x9f')]=new Array(_0x57361d)[_0x591f('0x3e')](_0x1163ff)[_0x591f('0x11')]((_0x5d461c,_0x4d03d3)=>_0x5d461c+_0x4d03d3);for(const {cell:_0x44cea4}of _0x3efc54['createTableWalker'](_0x430292,{'startColumn':_0x1163ff,'endColumn':_0x1163ff+_0x57361d-0x1}))_0xfe0770['columnInsertionRanges']['push'](_0x1eb6a0['model']['createRangeOn'](_0x44cea4));},{'priority':_0x591f('0x4')}),_0x3efc54['on']('insertRows',(_0x57b313,_0x4f4f3b)=>{const [_0x2f8ece,_0x4483cb={}]=_0x4f4f3b;if(!_0xfe0770)return;const _0x2abcea=_0x4483cb['at']||0x0,_0x2d9b45=_0x4483cb[_0x591f('0x72')]||0x1;_0xfe0770[_0x591f('0x44')]=new Array(_0x2d9b45)[_0x591f('0x3e')](_0x2abcea)['map']((_0x4f12f3,_0x3bd55a)=>_0x4f12f3+_0x3bd55a);for(const {cell:_0xb5f29c}of _0x3efc54[_0x591f('0x6f')](_0x2f8ece,{'startRow':_0x2abcea,'endRow':_0x2abcea+_0x2d9b45-0x1}))_0xfe0770['rowInsertionRanges'][_0x591f('0x93')](_0x1eb6a0[_0x591f('0x16')][_0x591f('0x4b')](_0xb5f29c));},{'priority':_0x591f('0x4')}),_0x552750['_descriptionFactory'][_0x591f('0x79')](_0x3c550e=>{if(_0x3c550e[_0x591f('0x8f')]&&_0x3c550e[_0x591f('0x8f')][_0x591f('0x65')](_0x591f('0x4c')))return _0x3c550e['previous']?{}:{'type':'insertion','content':_0x12b938(_0x1eb6a0[_0x591f('0x2c')],_0x591f('0x13'))};});const _0x43a301=()=>{};for(const _0x2682d6 of['tablePaste',_0x591f('0x94'),'tablePasteRow',_0x591f('0x99')])_0x552750['_suggestionFactory'][_0x591f('0x9a')](_0x591f('0x25'),_0x2682d6,_0x591f('0x32'),_0x43a301),_0x552750[_0x591f('0x6c')][_0x591f('0x9a')](_0x591f('0x8'),_0x2682d6,'join',_0x43a301);_0x552750[_0x591f('0x6c')]['registerCustomCallback'](_0x591f('0x49'),_0x591f('0x99'),_0x591f('0x2b'),_0x43a301),_0x552750[_0x591f('0x6c')][_0x591f('0x9a')](_0x591f('0x49'),'tablePasteCell','accept',(_0x49a36a,_0x19c635,_0x5be9f4)=>{const _0x87e493=_0x49a36a[_0x591f('0x11')](_0x4f9ff2=>_0x4f9ff2['getContainedElement']())[_0x591f('0x3d')](_0x4bfd13=>_0x4bfd13),_0x162918=new Map(_0x87e493[_0x591f('0x11')](_0x4a1681=>[_0x4a1681,null]));if(_0xfe0770)for(const {element:_0x2e9f5b,attributes:_0x39608}of _0xfe0770[_0x591f('0x45')])_0x39608&&_0x162918['set'](_0x2e9f5b,_0x39608);else{if(_0x5be9f4&&_0x5be9f4[_0x591f('0x8a')])for(const [_0x419df4,_0x1044ab]of Object[_0x591f('0x27')](_0x5be9f4['markerAttributes'])){const _0x23b32e=_0x1eb6a0['model']['markers'][_0x591f('0x2e')](_0x419df4),_0x2b5815=_0x23b32e?_0x23b32e[_0x591f('0x1c')]()['getContainedElement']():null;_0x2b5815&&_0x162918[_0x591f('0x23')](_0x2b5815,_0x1044ab);}}_0x1eb6a0[_0x591f('0x16')][_0x591f('0x83')](_0x128772=>{for(const [_0x472cd2,_0x49740e]of _0x162918)_0x128772[_0x591f('0x90')]({...ne,..._0x49740e},_0x472cd2);});});const _0x329902=(_0x5c06c9,_0x19a0c6)=>{_0x552750[_0x591f('0x6c')][_0x591f('0x9a')](_0x5c06c9,_0x591f('0x4c'),_0x19a0c6,(_0x921c0b,_0x47919f,_0x455475)=>{_0x1eb6a0[_0x591f('0x16')][_0x591f('0x83')](_0x5d031b=>{const _0x1dadc5=[];for(const _0x25aea2 of _0x921c0b){const _0x133a72=_0x25aea2[_0x591f('0x33')][_0x591f('0x71')];_0x133a72['is'](_0x591f('0x1e'),_0x591f('0x1d'))&&_0x1dadc5['push'](_0x133a72);}_0x552750[_0x591f('0x6c')][_0x591f('0x6b')](_0x5c06c9,null,_0x19a0c6)(_0x921c0b,_0x47919f,_0x455475);for(const _0x3d1fec of _0x1dadc5)_0x591f('0x7e')!=_0x3d1fec[_0x591f('0x1a')]['rootName']&&_0x5d031b[_0x591f('0x81')](_0x3d1fec);});});};_0x329902(_0x591f('0x25'),'accept'),_0x329902(_0x591f('0x25'),_0x591f('0x2b')),_0x329902(_0x591f('0x8'),_0x591f('0x57')),_0x329902('deletion','discard'),_0x552750[_0x591f('0x6c')]['registerCustomCallback'](_0x591f('0x25'),_0x591f('0x54'),_0x591f('0x2b'),_0x55fd76=>{const _0x3720ad=_0x55fd76['map'](_0xa91ffa=>_0xa91ffa[_0x591f('0x22')]()),_0x42ea47=_0x3720ad[0x0][_0x591f('0x4e')]('table'),{minRow:_0x9e86fc,maxRow:_0x5f4161}=_0x33f279[_0x591f('0x2d')](_0x3720ad);_0x3efc54[_0x591f('0x20')](_0x42ea47,{'at':_0x9e86fc,'rows':_0x5f4161-_0x9e86fc+0x1});}),_0x552750['_suggestionFactory'][_0x591f('0x9a')](_0x591f('0x25'),_0x591f('0x94'),_0x591f('0x2b'),_0x1d8176=>{const _0x550120=_0x1d8176[_0x591f('0x11')](_0x253d11=>_0x253d11[_0x591f('0x22')]()),_0x26ff6b=_0x550120[0x0]['findAncestor'](_0x591f('0x82')),{minColumn:_0x2fd80d,maxColumn:_0x5ae055}=_0x33f279[_0x591f('0x2d')](_0x550120);_0x3efc54[_0x591f('0x55')](_0x26ff6b,{'at':_0x2fd80d,'columns':_0x5ae055-_0x2fd80d+0x1});});const _0xe65957=(_0x1ad402,_0x467669)=>{if(!_0x467669[_0x591f('0x8f')]||!_0x467669['subType'][_0x591f('0x65')](_0x591f('0x4c')))return;const _0x1e7244=_0x467669[_0x591f('0x3f')][_0x591f('0x6a')],_0x154762=_0x552750[_0x591f('0x96')]()[_0x591f('0x3d')](_0x17400c=>_0x17400c[_0x591f('0x46')]&&_0x17400c[_0x591f('0x3f')]&&_0x17400c[_0x591f('0x3f')][_0x591f('0x6a')]==_0x1e7244);_0x154762[_0x591f('0x1b')]&&_0x467669[_0x591f('0x21')]()['length']!=_0x154762[_0x591f('0x1b')]&&_0x154762[_0x591f('0x6')]((_0x3318c1,_0x4591ea)=>(_0x3318c1[_0x591f('0x2f')]=_0x4591ea,_0x4591ea[_0x591f('0x77')]=_0x3318c1,_0x4591ea));};function _0x56eab2(_0x84d4a2,{showActiveMarker:_0x121ad7=!0x0}={}){const {id:_0x27e554}=_0x552750[_0x591f('0x9')](_0x84d4a2[_0x591f('0x53')]),_0x3fd6a5=[_0x591f('0x92'),_0x591f('0x74')],_0x24db52=_0x552750[_0x591f('0x42')][_0x591f('0x39')](_0x84d4a2[_0x591f('0x53')]);return _0x24db52&&_0x3fd6a5['push'](_0x591f('0x18')),{'classes':_0x3fd6a5,'attributes':{'data-suggestion':_0x27e554},'priority':_0x24db52&&_0x121ad7?0xbc2:0xbb8};}_0x552750['on']('suggestionLoaded',_0xe65957,{'priority':'high'}),_0x552750['on'](_0x591f('0x15'),_0xe65957,{'priority':_0x591f('0xe')}),_0x1eb6a0[_0x591f('0x16')][_0x591f('0xa2')][_0x591f('0x86')](()=>{let _0x4fd931=!0x1;const _0x5387ae=Array[_0x591f('0x9d')](_0x1eb6a0[_0x591f('0x16')][_0x591f('0xa2')][_0x591f('0x14')][_0x591f('0x58')]());for(const {name:_0x490b76,data:_0x3e5395}of _0x5387ae){const {group:_0x5b23f3,type:_0x202cb3,id:_0x465ed1}=_0x552750[_0x591f('0x9')](_0x490b76);if(_0x591f('0x76')!=_0x5b23f3||_0x591f('0x8')!=_0x202cb3||_0x3e5395[_0x591f('0x41')])continue;if(!_0x552750[_0x591f('0x4a')](_0x465ed1))continue;const _0x3cb96c=_0x552750['getSuggestion'](_0x465ed1)[_0x591f('0x56')](),_0xa9a961=_0x1eb6a0[_0x591f('0x38')]['get'](_0x591f('0x67'))['me'];for(const _0x38f5ce of _0x552750[_0x591f('0x96')]()){if(!_0x38f5ce[_0x591f('0x46')]||_0x38f5ce[_0x591f('0x3a')]!=_0xa9a961)continue;if(_0x591f('0x49')!=_0x38f5ce[_0x591f('0x40')]||'tablePasteCell'!=_0x38f5ce[_0x591f('0x8f')])continue;if(_0x38f5ce[_0x591f('0x56')]()[_0x591f('0x1f')](_0x3cafcb=>_0x3cb96c[_0x591f('0xa4')](_0x4f1735=>_0x4f1735[_0x591f('0x69')](_0x3cafcb,!0x0))))for(const _0x187a19 of _0x38f5ce['getAllAdjacentSuggestions']())_0x187a19[_0x591f('0x46')]&&(_0x187a19[_0x591f('0x2b')](),_0x4fd931=!0x0);}}return _0x4fd931;}),_0x1eb6a0['model'][_0x591f('0xa2')]['registerPostFixer'](_0x7d9674=>{const _0x73547c=_0x1eb6a0['commands'][_0x591f('0x2e')](_0x591f('0x7'));if(!_0x73547c||!_0x73547c[_0x591f('0xf')][_0x591f('0xa1')](_0x7d9674['batch']))return!0x1;let _0x33bcde=!0x1;const _0x434168=_0x1eb6a0['plugins'][_0x591f('0x2e')]('Users')['me'],_0x10cb0d=_0x1eb6a0['model'][_0x591f('0xa2')][_0x591f('0x14')][_0x591f('0x5d')](),_0xeb7848=Array['from'](_0x1eb6a0[_0x591f('0x16')][_0x591f('0xa2')][_0x591f('0x14')][_0x591f('0x58')]())[_0x591f('0x3d')](({name:_0x31ce05,data:_0x25e848})=>{const {group:_0x59a1da,subType:_0x4bb704,authorId:_0x446e6e}=_0x552750['_splitMarkerName'](_0x31ce05);return _0x591f('0x76')==_0x59a1da&&'tablePaste'==_0x4bb704&&_0x446e6e==_0x434168['id']&&!_0x25e848[_0x591f('0x41')];});for(const _0x4db6c1 of _0x10cb0d){if('insert'!=_0x4db6c1[_0x591f('0x40')]||_0x591f('0x1d')!=_0x4db6c1['name']||0x1!=_0x4db6c1[_0x591f('0x1b')])continue;const _0x3ce5ec=_0x7d9674[_0x591f('0x98')](_0x4db6c1[_0x591f('0x85')],_0x4db6c1[_0x591f('0x85')]['getShiftedBy'](0x1));if(!_0xeb7848[_0x591f('0x6d')](({data:_0x424d17})=>_0x424d17[_0x591f('0x8e')][_0x591f('0xc')](_0x3ce5ec)))for(const {name:_0x2db0e7,data:_0x560fe9}of _0xeb7848)if(_0x3ce5ec[_0x591f('0x69')](_0x560fe9[_0x591f('0x8e')])){_0x7d9674[_0x591f('0x12')](_0x2db0e7,{'range':_0x3ce5ec}),_0x33bcde=!0x0;break;}}return _0x33bcde;}),_0x1eb6a0[_0x591f('0x16')]['document'][_0x591f('0x86')](_0xd35451=>{let _0x45e933=!0x1;const _0x45f864=_0x1eb6a0[_0x591f('0x38')]['get'](_0x591f('0x67'))['me'],_0x35adda=_0x552750[_0x591f('0x96')]()['filter'](_0x15b719=>_0x15b719[_0x591f('0x46')]&&_0x15b719[_0x591f('0x3a')]==_0x45f864),_0x5b0b49=new Set(),_0x55786c=new Set();for(const _0xb87d42 of _0x35adda)if('tablePaste'==_0xb87d42[_0x591f('0x8f')])for(const _0x1ae4ac of _0xb87d42['getMarkers']()){const _0x184806=_0x1ae4ac[_0x591f('0x1c')]()['getContainedElement']();if(_0x184806){if(_0x184806['is']('element','tableCellSuggestion')&&le(_0x184806)){_0xb87d42['removeMarker'](_0x1ae4ac[_0x591f('0x48')]),_0x5b0b49[_0x591f('0xa3')](_0x184806),_0x45e933=!0x0;const _0x403807=_0x184806[_0x591f('0x26')],_0x17738a=_0x184806[_0x591f('0x5f')],_0x528d3e=_0x403807&&_0x403807['is'](_0x591f('0x1e'),_0x591f('0x1d')),_0x1ca085=_0x17738a&&_0x17738a['is'](_0x591f('0x1e'),'tableCellSuggestion');_0x528d3e&&!_0x5b0b49[_0x591f('0xa1')](_0x403807)&&_0x55786c[_0x591f('0xa3')](_0x403807),_0x1ca085&&!_0x5b0b49[_0x591f('0xa1')](_0x17738a)&&_0x55786c['add'](_0x17738a);}else _0x184806['is'](_0x591f('0x1e'),'paragraph')&&_0x184806[_0x591f('0x7c')]&&(_0xb87d42[_0x591f('0x9e')](_0x1ae4ac[_0x591f('0x48')]),_0x45e933=!0x0);}}else{if(_0x591f('0x99')==_0xb87d42[_0x591f('0x8f')]){if(!_0xb87d42['attributes']||!_0xb87d42[_0x591f('0x3f')][_0x591f('0x6a')])continue;const _0x522a23=_0xb87d42[_0x591f('0x3f')][_0x591f('0x8a')];if(_0x522a23&&Object[_0x591f('0x64')](_0x522a23)[_0x591f('0x1b')])continue;const _0x3f4ce7=_0xb87d42['attributes'][_0x591f('0x6a')];let _0x215f12=!0x0,_0x186df3=!0x0;for(const _0x24836f of _0x35adda)if(_0x24836f['subType']&&_0x24836f[_0x591f('0x8f')][_0x591f('0x65')](_0x591f('0x4c'))){if(!_0x24836f[_0x591f('0x3f')]['tablePasteChainId']){_0x186df3=!0x1;break;}if(_0x24836f['id']!=_0xb87d42['id']&&_0x24836f[_0x591f('0x3f')][_0x591f('0x6a')]==_0x3f4ce7){_0x215f12=!0x1;break;}}_0x186df3&&_0x215f12&&(_0xb87d42['removeMarkers'](),_0x45e933=!0x0);}}for(const _0x3db823 of _0x5b0b49)_0xd35451[_0x591f('0x0')](_0x3db823);for(const _0x589a80 of _0x55786c)_0xd35451['unwrap'](_0x589a80);return _0x45e933;}),_0x1eb6a0[_0x591f('0x8c')][_0x591f('0x28')](_0x591f('0x8d'))['markerToHighlight']({'model':_0x591f('0x51'),'view':_0x56eab2,'converterPriority':_0x591f('0xe')}),_0x1eb6a0[_0x591f('0x8c')]['for'](_0x591f('0xa0'))[_0x591f('0x9c')]({'model':_0x591f('0x51'),'view':(_0x2bff7e,_0x4209a3)=>{if(_0x4209a3[_0x591f('0x19')]['showSuggestionHighlights'])return _0x56eab2(_0x2bff7e,{'showActiveMarker':!0x1});},'converterPriority':_0x591f('0xe')});const _0x3476b3=_0x1eb6a0[_0x591f('0x91')]['view'];this[_0x591f('0x5e')](_0x3476b3[_0x591f('0xa2')],_0x591f('0xd'),(_0x4848a9,_0x27af41)=>{const _0x1207cd=[];for(const _0x534664 of _0x3476b3[_0x591f('0x50')](_0x27af41['content'])[_0x591f('0x7b')]())_0x534664['is'](_0x591f('0x1e'),_0x591f('0x9b'))&&_0x1207cd[_0x591f('0x93')](_0x534664);_0x3476b3[_0x591f('0x83')](_0x3278cd=>{for(const _0x97f29b of _0x1207cd)_0x3278cd[_0x591f('0x36')](_0x3278cd[_0x591f('0x50')](_0x97f29b),_0x3278cd[_0x591f('0x1')](_0x97f29b)),_0x3278cd[_0x591f('0x0')](_0x97f29b);});});}}function le(_0x5cf0f9){if(_0x5cf0f9[_0x591f('0x7c')])return!0x0;const _0x132e39=_0x5cf0f9['getChild'](0x0);return _0x132e39['is'](_0x591f('0x1e'),'paragraph')&&_0x132e39[_0x591f('0x7c')];}function se(_0x407b1a,_0x15a325={},_0x2338da){for(const {isAnchor:_0x30ab71,cellHeight:_0x446ef0,cellWidth:_0x1c4342}of _0x2338da[_0x591f('0x6f')](_0x407b1a,{'includeAllSlots':!0x0,..._0x15a325}))if(!_0x30ab71||0x1!=_0x446ef0||0x1!=_0x1c4342)return!0x1;return!0x0;}
|
|
23
|
+
const _0x9fc0=['from','view','name','get','column','deletion','isEmpty','filter','nextSibling','getAttributes','editor','fromEntries','fill','keys','next','for','editing','author','ck-suggestion-marker--active','clipboardOutput','locale','insertContent','has','columnInsertionIndexes','getContainedElement','discard','containsRange','newRange','accept','updateMarker','removeMarker','getRange','subType','getMarkers','afterInit','end','tableCellPadding','getRowIndexes','type','getRanges','createRangeOn','high','insertRows','Users','isEqual','ck-suggestion-marker','tableCellBackgroundColor','setAttribute','getChanges','length','tableCellVerticalAlignment','requires','selection','deletionRanges','stop','activeMarkers','formatBlock','push','registerDescriptionCallback','suggestionLoaded','hasSuggestion','some','paragraph','endRow','markerName','elementToElement','columnInsertionRanges','root','getShiftedBy','previous','insert','tableCellBorderColor','getItems','*Replace\x20table\x20cells*','add','_descriptionFactory','tablePaste','unwrap','getTableIfOnlyTableInContent','suggestionUnloaded','tablePasteColumn','register','tablePasteRow','insertion','ck-suggestion-marker-insertion','nodeAfter','markMultiRangeBlockFormat','_isForcedDefaultExecutionBlock','insertColumns','getSuggestion','suggestion','markerToHighlight','_tablePostFixingSubtypes','cells','getChildren','tableCellBorderStyle','TableClipboard','isInContent','first','tableCell','suggestion-td','markMultiRangeInsertion','suggestion:formatBlock:tablePasteCell','map','showSuggestionHighlights','markMultiRangeDeletion','tablePasteChainId','getColumns','registerPostFixer','getSelectionAffectedTableCells','cell','batch','endColumn','previousSibling','differ','row','getChild','reduce','tableCellHorizontalAlignment','rowInsertionIndexes','find','conversion','remove','commands','join','_splitMarkerName','last','getRows','move','TableUtils','createTableWalker','wrap','attributes','_suggestionFactory','createElement','getChangedMarkers','columns','element','tablePasteCell','removeColumns','low','model','document','$graveyard','dataDowncast','includes','getSuggestions','listenTo','change','plugins','findAncestor','set','_getCoordsForCells','startsWith','rowInsertionRanges','entries','oldRange','table','trackChanges','markerAttributes','createRangeIn','tableCellSuggestion','registerCustomCallback'];(function(_0x5c5274,_0x9fc0f4){const _0x20d97c=function(_0xb3a076){while(--_0xb3a076){_0x5c5274['push'](_0x5c5274['shift']());}};_0x20d97c(++_0x9fc0f4);}(_0x9fc0,0x1e8));const _0x20d9=function(_0x5c5274,_0x9fc0f4){_0x5c5274=_0x5c5274-0x0;let _0x20d97c=_0x9fc0[_0x5c5274];return _0x20d97c;};import{getTranslation as _0xd94375}from'../utils/common-translations';import{Plugin as _0x47398c}from'ckeditor5/src/core';import _0x5d24b5 from'./table';import{uid as _0x1b9d9a,priorities as _0x10bd24}from'ckeditor5/src/utils';const oe=['tableCellBorderWidth',_0x20d9('0x48'),_0x20d9('0x60'),_0x20d9('0x77'),_0x20d9('0x33'),_0x20d9('0x2f'),_0x20d9('0x25')],ne=Object[_0x20d9('0xc')](oe['map'](_0x5a6267=>[_0x5a6267,null]));export default class mt extends _0x47398c{static get[_0x20d9('0x34')](){return[_0x5d24b5];}[_0x20d9('0x23')](){const _0x39d662=this[_0x20d9('0xb')];if(!_0x39d662[_0x20d9('0x96')][_0x20d9('0x17')]('TableClipboard'))return;const _0x40d706=_0x39d662['plugins'][_0x20d9('0x4')]('TrackChangesEditing'),_0x5e8d58=_0x39d662['plugins'][_0x20d9('0x4')](_0x20d9('0x82')),_0x153a22=_0x39d662[_0x20d9('0x96')][_0x20d9('0x4')](_0x5d24b5),_0x4a20c9=_0x39d662[_0x20d9('0x96')][_0x20d9('0x4')](_0x20d9('0x61'));_0x153a22[_0x20d9('0x5d')][_0x20d9('0x3a')]('tablePasteRow',_0x20d9('0x51')),_0x39d662[_0x20d9('0x8e')]['schema'][_0x20d9('0x52')](_0x20d9('0xa2'),{'allowIn':_0x20d9('0x64'),'allowContentOf':_0x20d9('0x64'),'isLimit':!0x0}),_0x39d662['conversion'][_0x20d9('0x42')]({'model':_0x20d9('0xa2'),'view':_0x20d9('0x65')});let _0x55335b=null;_0x39d662[_0x20d9('0x8e')]['on'](_0x20d9('0x16'),(_0x140698,_0xa2ea36)=>{const [_0x31b108,_0x1d24f7]=_0xa2ea36,_0x431406=_0xa2ea36[_0xa2ea36[_0x20d9('0x32')]-0x1];_0x431406&&_0x431406['forceDefaultExecution']||_0x40d706[_0x20d9('0x58')]||this['editor'][_0x20d9('0x7c')][_0x20d9('0x4')](_0x20d9('0x9f'))['value']&&function(_0xbae967,_0x5c5ab7,_0x40359d,_0x34605a,_0x1fb9c0){if(_0x5c5ab7&&!_0x5c5ab7['is']('documentSelection'))return!0x1;const _0x2f9ed6=_0x1fb9c0[_0x20d9('0x4f')](_0xbae967,_0x40359d);if(!_0x2f9ed6||!se(_0x2f9ed6,null,_0x34605a))return!0x1;const _0x5eee15=_0x34605a[_0x20d9('0x6e')](_0x40359d[_0x20d9('0x8f')][_0x20d9('0x35')]);if(!_0x5eee15['length'])return!0x1;const _0x1f059d=_0x5eee15[0x0][_0x20d9('0x97')]('table'),_0x90e701=_0x34605a[_0x20d9('0x26')](_0x5eee15),_0xdeb34d=_0x34605a['getColumnIndexes'](_0x5eee15),_0x531515={'startRow':_0x90e701[_0x20d9('0x63')],'endRow':_0x90e701[_0x20d9('0x7f')],'startColumn':_0xdeb34d[_0x20d9('0x63')],'endColumn':_0xdeb34d[_0x20d9('0x7f')]};return 0x1==_0x5eee15[_0x20d9('0x32')]&&(_0x531515[_0x20d9('0x40')]+=_0x34605a[_0x20d9('0x80')](_0x2f9ed6)-0x1,_0x531515[_0x20d9('0x71')]+=_0x34605a[_0x20d9('0x6c')](_0x2f9ed6)-0x1),se(_0x1f059d,_0x531515,_0x34605a);}(_0x31b108,_0x1d24f7,_0x39d662[_0x20d9('0x8e')],_0x5e8d58,_0x4a20c9)&&(_0x140698[_0x20d9('0x37')](),_0x55335b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x39d662[_0x20d9('0x8e')][_0x20d9('0x95')](()=>{_0x39d662[_0x20d9('0x8e')][_0x20d9('0x16')](_0xa2ea36[0x0],_0xa2ea36[0x1],_0xa2ea36[0x2],_0xa2ea36[0x3],{'forceDefaultExecution':!0x0});const _0x5a6d99=_0x1b9d9a(),{rowInsertionRanges:_0x4d5aee,columnInsertionRanges:_0x2f9d3c,insertionRanges:_0x15a79b,deletionRanges:_0x4bf867,cells:_0x58dce1}=_0x55335b;_0x4d5aee[_0x20d9('0x32')]&&_0x40d706[_0x20d9('0x66')](_0x4d5aee,'tablePasteRow',{'tablePasteChainId':_0x5a6d99}),_0x2f9d3c[_0x20d9('0x32')]&&_0x40d706[_0x20d9('0x66')](_0x2f9d3c,'tablePasteColumn',{'tablePasteChainId':_0x5a6d99}),_0x15a79b['length']&&_0x40d706['markMultiRangeInsertion'](_0x15a79b,_0x20d9('0x4d'),{'tablePasteChainId':_0x5a6d99,'skipNestingCheck':!0x0}),_0x4bf867[_0x20d9('0x32')]&&_0x40d706[_0x20d9('0x6a')](_0x4bf867,'tablePaste',{'tablePasteChainId':_0x5a6d99,'skipNestingCheck':!0x0});const _0x2fff08=_0x40d706[_0x20d9('0x57')](_0x58dce1['map'](({element:_0x4a6b39})=>_0x4a6b39),{'formatGroupId':_0x1b9d9a()},[],'tablePasteCell',{'tablePasteChainId':_0x5a6d99});if(_0x2fff08){const _0x5200de=_0x2fff08[_0x20d9('0x22')](),_0x24935e=[];for(const {element:_0x41962e,attributes:_0x43ffbc}of _0x58dce1){if(!_0x43ffbc)continue;const _0x5195a0=_0x39d662[_0x20d9('0x8e')][_0x20d9('0x29')](_0x41962e),_0x48086f=_0x5200de['find'](_0x1f3233=>_0x1f3233[_0x20d9('0x20')]()[_0x20d9('0x2d')](_0x5195a0));_0x48086f&&_0x24935e[_0x20d9('0x3a')]([_0x48086f[_0x20d9('0x3')],_0x43ffbc]);}_0x24935e[_0x20d9('0x32')]&&_0x2fff08[_0x20d9('0x30')](_0x20d9('0xa0'),Object[_0x20d9('0xc')](_0x24935e));}_0x55335b=null;}));},{'priority':_0x10bd24[_0x20d9('0x2a')]+0xa}),_0x39d662['plugins'][_0x20d9('0x4')]('TableClipboard')['on']('_replaceTableSlotCell',(_0x358b64,_0x2d6631)=>{const [_0x120e0a,_0x35e86e,,_0x1c73d7]=_0x2d6631;if(!_0x55335b)return;_0x358b64['stop']();const _0x5200f4=_0x120e0a[_0x20d9('0x6f')],_0x3b8b42=_0x35e86e,_0x2b01a2=le(_0x5200f4),_0x72afe8=le(_0x3b8b42);_0x358b64['return']=_0x5200f4;let _0x2a6721=null,_0x15c6a1=null;if(_0x72afe8||_0x2b01a2){if(_0x2b01a2&&!_0x72afe8){_0x1c73d7[_0x20d9('0x7b')](_0x5200f4[_0x20d9('0x75')](0x0));for(const _0x3ccf8e of Array[_0x20d9('0x1')](_0x3b8b42[_0x20d9('0x5f')]()))_0x1c73d7[_0x20d9('0x47')](_0x3ccf8e,_0x5200f4,_0x20d9('0x24'));const _0x32d7fc=_0x55335b[_0x20d9('0x78')][_0x20d9('0x92')](_0x120e0a[_0x20d9('0x74')]),_0x4bec0c=_0x55335b['columnInsertionIndexes'][_0x20d9('0x92')](_0x120e0a[_0x20d9('0x5')]);_0x32d7fc||_0x4bec0c||(_0x2a6721=_0x1c73d7[_0x20d9('0xa1')](_0x5200f4));}else _0x72afe8&&!_0x2b01a2&&(_0x15c6a1=_0x1c73d7['createRangeIn'](_0x5200f4));}else{const _0x26e070=_0x1c73d7['createElement'](_0x20d9('0xa2')),_0x3624e5=_0x1c73d7[_0x20d9('0x87')]('tableCellSuggestion');_0x1c73d7[_0x20d9('0x84')](_0x1c73d7['createRangeIn'](_0x5200f4),_0x3624e5),_0x1c73d7[_0x20d9('0x47')](_0x26e070,_0x5200f4,0x0);for(const _0x46b462 of Array[_0x20d9('0x1')](_0x3b8b42[_0x20d9('0x5f')]()))_0x1c73d7[_0x20d9('0x47')](_0x46b462,_0x26e070,'end');_0x2a6721=_0x1c73d7[_0x20d9('0x29')](_0x26e070),_0x15c6a1=_0x1c73d7[_0x20d9('0x29')](_0x3624e5);}const _0x43c7f4=Array['from'](_0x3b8b42[_0x20d9('0xa')]())[_0x20d9('0x8')](([_0xb31709])=>oe[_0x20d9('0x92')](_0xb31709));_0x55335b[_0x20d9('0x5e')][_0x20d9('0x3a')]({'element':_0x5200f4,'attributes':_0x43c7f4[_0x20d9('0x32')]?Object[_0x20d9('0xc')](_0x43c7f4):null}),_0x2a6721&&_0x55335b['insertionRanges']['push'](_0x2a6721),_0x15c6a1&&_0x55335b[_0x20d9('0x36')]['push'](_0x15c6a1);},{'priority':'high'}),_0x5e8d58['on'](_0x20d9('0x59'),(_0x388627,_0x220987)=>{const [_0x4c42e8,_0x2c5c67={}]=_0x220987;if(!_0x55335b)return;const _0x5ccd18=_0x2c5c67['at']||0x0,_0x14f847=_0x2c5c67[_0x20d9('0x89')]||0x1;_0x55335b[_0x20d9('0x18')]=new Array(_0x14f847)[_0x20d9('0xd')](_0x5ccd18)['map']((_0x2360e6,_0x4cef94)=>_0x2360e6+_0x4cef94);for(const {cell:_0x23ed23}of _0x5e8d58[_0x20d9('0x83')](_0x4c42e8,{'startColumn':_0x5ccd18,'endColumn':_0x5ccd18+_0x14f847-0x1}))_0x55335b[_0x20d9('0x43')][_0x20d9('0x3a')](_0x39d662[_0x20d9('0x8e')][_0x20d9('0x29')](_0x23ed23));},{'priority':_0x20d9('0x8d')}),_0x5e8d58['on'](_0x20d9('0x2b'),(_0x59eb1b,_0x33ab8c)=>{const [_0x3bfff7,_0x54a919={}]=_0x33ab8c;if(!_0x55335b)return;const _0x53cd4c=_0x54a919['at']||0x0,_0x47265f=_0x54a919['rows']||0x1;_0x55335b['rowInsertionIndexes']=new Array(_0x47265f)[_0x20d9('0xd')](_0x53cd4c)[_0x20d9('0x68')]((_0x1ba322,_0x5a7cef)=>_0x1ba322+_0x5a7cef);for(const {cell:_0x2c7c7d}of _0x5e8d58['createTableWalker'](_0x3bfff7,{'startRow':_0x53cd4c,'endRow':_0x53cd4c+_0x47265f-0x1}))_0x55335b[_0x20d9('0x9b')][_0x20d9('0x3a')](_0x39d662[_0x20d9('0x8e')]['createRangeOn'](_0x2c7c7d));},{'priority':_0x20d9('0x8d')}),_0x40d706[_0x20d9('0x4c')][_0x20d9('0x3b')](_0x336063=>{if(_0x336063[_0x20d9('0x21')]&&_0x336063['subType'][_0x20d9('0x9a')]('tablePaste'))return _0x336063[_0x20d9('0x46')]?{}:{'type':_0x20d9('0x54'),'content':_0xd94375(_0x39d662[_0x20d9('0x15')],_0x20d9('0x4a'))};});const _0x27a96a=()=>{};for(const _0x29a3fc of[_0x20d9('0x4d'),'tablePasteColumn',_0x20d9('0x53'),_0x20d9('0x8b')])_0x40d706[_0x20d9('0x86')]['registerCustomCallback'](_0x20d9('0x54'),_0x29a3fc,'join',_0x27a96a),_0x40d706['_suggestionFactory'][_0x20d9('0x0')](_0x20d9('0x6'),_0x29a3fc,_0x20d9('0x7d'),_0x27a96a);_0x40d706[_0x20d9('0x86')][_0x20d9('0x0')](_0x20d9('0x39'),_0x20d9('0x8b'),_0x20d9('0x1a'),_0x27a96a),_0x40d706[_0x20d9('0x86')][_0x20d9('0x0')]('formatBlock',_0x20d9('0x8b'),_0x20d9('0x1d'),(_0x227f19,_0x496d2b,_0x1739a5)=>{const _0x3caefb=_0x227f19[_0x20d9('0x68')](_0x1f5306=>_0x1f5306[_0x20d9('0x19')]())[_0x20d9('0x8')](_0x321f3d=>_0x321f3d),_0x45f1f4=new Map(_0x3caefb[_0x20d9('0x68')](_0x3e494a=>[_0x3e494a,null]));if(_0x55335b)for(const {element:_0x542a7a,attributes:_0xc72f31}of _0x55335b[_0x20d9('0x5e')])_0xc72f31&&_0x45f1f4['set'](_0x542a7a,_0xc72f31);else{if(_0x1739a5&&_0x1739a5[_0x20d9('0xa0')])for(const [_0x2f2173,_0x2ac722]of Object[_0x20d9('0x9c')](_0x1739a5['markerAttributes'])){const _0x3b6e48=_0x39d662[_0x20d9('0x8e')]['markers'][_0x20d9('0x4')](_0x2f2173),_0x5da37e=_0x3b6e48?_0x3b6e48[_0x20d9('0x20')]()[_0x20d9('0x19')]():null;_0x5da37e&&_0x45f1f4[_0x20d9('0x98')](_0x5da37e,_0x2ac722);}}_0x39d662[_0x20d9('0x8e')][_0x20d9('0x95')](_0x439963=>{for(const [_0x4c9c08,_0x1f544b]of _0x45f1f4)_0x439963['setAttributes']({...ne,..._0x1f544b},_0x4c9c08);});});const _0x1f5d32=(_0x4d14d6,_0x560494)=>{_0x40d706[_0x20d9('0x86')]['registerCustomCallback'](_0x4d14d6,_0x20d9('0x4d'),_0x560494,(_0x4f2960,_0x575156,_0x220e47)=>{_0x39d662[_0x20d9('0x8e')]['change'](_0x4f3262=>{const _0x3ce091=[];for(const _0x5eab6e of _0x4f2960){const _0x2f9013=_0x5eab6e['start'][_0x20d9('0x56')];_0x2f9013['is'](_0x20d9('0x8a'),_0x20d9('0xa2'))&&_0x3ce091['push'](_0x2f9013);}_0x40d706['_suggestionFactory']['getSuggestionCallback'](_0x4d14d6,null,_0x560494)(_0x4f2960,_0x575156,_0x220e47);for(const _0x3879b3 of _0x3ce091)_0x20d9('0x90')!=_0x3879b3[_0x20d9('0x44')]['rootName']&&_0x4f3262['unwrap'](_0x3879b3);});});};_0x1f5d32(_0x20d9('0x54'),_0x20d9('0x1d')),_0x1f5d32(_0x20d9('0x54'),'discard'),_0x1f5d32(_0x20d9('0x6'),_0x20d9('0x1d')),_0x1f5d32(_0x20d9('0x6'),_0x20d9('0x1a')),_0x40d706[_0x20d9('0x86')][_0x20d9('0x0')](_0x20d9('0x54'),_0x20d9('0x53'),_0x20d9('0x1a'),_0x56f2aa=>{const _0x3eb355=_0x56f2aa[_0x20d9('0x68')](_0x3429f3=>_0x3429f3['getContainedElement']()),_0x4365a1=_0x3eb355[0x0][_0x20d9('0x97')](_0x20d9('0x9e')),{minRow:_0x3d55fe,maxRow:_0x574494}=_0x153a22[_0x20d9('0x99')](_0x3eb355);_0x5e8d58['removeRows'](_0x4365a1,{'at':_0x3d55fe,'rows':_0x574494-_0x3d55fe+0x1});}),_0x40d706[_0x20d9('0x86')][_0x20d9('0x0')](_0x20d9('0x54'),'tablePasteColumn',_0x20d9('0x1a'),_0xa5753f=>{const _0x2268fc=_0xa5753f[_0x20d9('0x68')](_0x4bac35=>_0x4bac35[_0x20d9('0x19')]()),_0x447ef7=_0x2268fc[0x0][_0x20d9('0x97')](_0x20d9('0x9e')),{minColumn:_0x15cb3f,maxColumn:_0x17cbb2}=_0x153a22[_0x20d9('0x99')](_0x2268fc);_0x5e8d58[_0x20d9('0x8c')](_0x447ef7,{'at':_0x15cb3f,'columns':_0x17cbb2-_0x15cb3f+0x1});});const _0x251ef9=(_0x4a2564,_0x2fbc29)=>{if(!_0x2fbc29[_0x20d9('0x21')]||!_0x2fbc29['subType'][_0x20d9('0x9a')](_0x20d9('0x4d')))return;const _0x3055ef=_0x2fbc29[_0x20d9('0x85')][_0x20d9('0x6b')],_0x4a1088=_0x40d706['getSuggestions']()[_0x20d9('0x8')](_0x1f3ae8=>_0x1f3ae8[_0x20d9('0x62')]&&_0x1f3ae8['attributes']&&_0x1f3ae8[_0x20d9('0x85')][_0x20d9('0x6b')]==_0x3055ef);_0x4a1088[_0x20d9('0x32')]&&_0x2fbc29['getAllAdjacentSuggestions']()[_0x20d9('0x32')]!=_0x4a1088['length']&&_0x4a1088[_0x20d9('0x76')]((_0x1544bb,_0x491318)=>(_0x1544bb[_0x20d9('0xf')]=_0x491318,_0x491318[_0x20d9('0x46')]=_0x1544bb,_0x491318));};function _0x467c66(_0xeac254,{showActiveMarker:_0x84ea63=!0x0}={}){const {id:_0x406f6f}=_0x40d706[_0x20d9('0x7e')](_0xeac254[_0x20d9('0x41')]),_0x2bf3b0=[_0x20d9('0x2e'),_0x20d9('0x55')],_0x4ab6ad=_0x40d706[_0x20d9('0x38')]['includes'](_0xeac254['markerName']);return _0x4ab6ad&&_0x2bf3b0[_0x20d9('0x3a')](_0x20d9('0x13')),{'classes':_0x2bf3b0,'attributes':{'data-suggestion':_0x406f6f},'priority':_0x4ab6ad&&_0x84ea63?0xbc2:0xbb8};}_0x40d706['on'](_0x20d9('0x3c'),_0x251ef9,{'priority':_0x20d9('0x2a')}),_0x40d706['on'](_0x20d9('0x50'),_0x251ef9,{'priority':_0x20d9('0x2a')}),_0x39d662['model'][_0x20d9('0x8f')][_0x20d9('0x6d')](()=>{let _0x51fb59=!0x1;const _0x4733dc=Array['from'](_0x39d662[_0x20d9('0x8e')]['document'][_0x20d9('0x73')][_0x20d9('0x88')]());for(const {name:_0x211a13,data:_0x2ee97b}of _0x4733dc){const {group:_0x3e9b01,type:_0x44ec58,id:_0x7c4fc7}=_0x40d706[_0x20d9('0x7e')](_0x211a13);if(_0x20d9('0x5b')!=_0x3e9b01||_0x20d9('0x6')!=_0x44ec58||_0x2ee97b[_0x20d9('0x9d')])continue;if(!_0x40d706[_0x20d9('0x3d')](_0x7c4fc7))continue;const _0x30a1a8=_0x40d706[_0x20d9('0x5a')](_0x7c4fc7)[_0x20d9('0x28')](),_0x1759dd=_0x39d662['plugins'][_0x20d9('0x4')](_0x20d9('0x2c'))['me'];for(const _0x419dbf of _0x40d706[_0x20d9('0x93')]()){if(!_0x419dbf[_0x20d9('0x62')]||_0x419dbf['author']!=_0x1759dd)continue;if('formatBlock'!=_0x419dbf[_0x20d9('0x27')]||'tablePasteCell'!=_0x419dbf['subType'])continue;if(_0x419dbf[_0x20d9('0x28')]()['every'](_0x1e5db0=>_0x30a1a8[_0x20d9('0x3e')](_0x4f7fed=>_0x4f7fed['containsRange'](_0x1e5db0,!0x0))))for(const _0x2905bc of _0x419dbf['getAllAdjacentSuggestions']())_0x2905bc[_0x20d9('0x62')]&&(_0x2905bc[_0x20d9('0x1a')](),_0x51fb59=!0x0);}}return _0x51fb59;}),_0x39d662[_0x20d9('0x8e')][_0x20d9('0x8f')][_0x20d9('0x6d')](_0x489c88=>{const _0x39a5a5=_0x39d662[_0x20d9('0x7c')][_0x20d9('0x4')]('redo');if(!_0x39a5a5||!_0x39a5a5['_createdBatches'][_0x20d9('0x17')](_0x489c88[_0x20d9('0x70')]))return!0x1;let _0x26b1c5=!0x1;const _0x3089ae=_0x39d662[_0x20d9('0x96')][_0x20d9('0x4')](_0x20d9('0x2c'))['me'],_0x3e270d=_0x39d662[_0x20d9('0x8e')]['document']['differ'][_0x20d9('0x31')](),_0x116064=Array[_0x20d9('0x1')](_0x39d662[_0x20d9('0x8e')]['document'][_0x20d9('0x73')]['getChangedMarkers']())[_0x20d9('0x8')](({name:_0x427529,data:_0x12a356})=>{const {group:_0x110821,subType:_0x223e67,authorId:_0x50ffa3}=_0x40d706[_0x20d9('0x7e')](_0x427529);return'suggestion'==_0x110821&&_0x20d9('0x4d')==_0x223e67&&_0x50ffa3==_0x3089ae['id']&&!_0x12a356['oldRange'];});for(const _0x383e62 of _0x3e270d){if(_0x20d9('0x47')!=_0x383e62[_0x20d9('0x27')]||_0x20d9('0xa2')!=_0x383e62['name']||0x1!=_0x383e62[_0x20d9('0x32')])continue;const _0x17905d=_0x489c88['createRange'](_0x383e62['position'],_0x383e62['position'][_0x20d9('0x45')](0x1));if(!_0x116064[_0x20d9('0x79')](({data:_0x1f8b95})=>_0x1f8b95['newRange'][_0x20d9('0x2d')](_0x17905d)))for(const {name:_0x2eba55,data:_0x189b66}of _0x116064)if(_0x17905d[_0x20d9('0x1b')](_0x189b66[_0x20d9('0x1c')])){_0x489c88[_0x20d9('0x1e')](_0x2eba55,{'range':_0x17905d}),_0x26b1c5=!0x0;break;}}return _0x26b1c5;}),_0x39d662['model'][_0x20d9('0x8f')][_0x20d9('0x6d')](_0x4f6646=>{let _0x1e3e90=!0x1;const _0x708c88=_0x39d662[_0x20d9('0x96')][_0x20d9('0x4')](_0x20d9('0x2c'))['me'],_0x7da18e=_0x40d706[_0x20d9('0x93')]()[_0x20d9('0x8')](_0x34ec4d=>_0x34ec4d[_0x20d9('0x62')]&&_0x34ec4d[_0x20d9('0x12')]==_0x708c88),_0x9c20a8=new Set(),_0x4c368e=new Set();for(const _0x43f332 of _0x7da18e)if(_0x20d9('0x4d')==_0x43f332[_0x20d9('0x21')])for(const _0x4af5ff of _0x43f332[_0x20d9('0x22')]()){const _0xd6ea28=_0x4af5ff[_0x20d9('0x20')]()['getContainedElement']();if(_0xd6ea28){if(_0xd6ea28['is'](_0x20d9('0x8a'),_0x20d9('0xa2'))&&le(_0xd6ea28)){_0x43f332[_0x20d9('0x1f')](_0x4af5ff['name']),_0x9c20a8[_0x20d9('0x4b')](_0xd6ea28),_0x1e3e90=!0x0;const _0xa72317=_0xd6ea28[_0x20d9('0x9')],_0x13c4fd=_0xd6ea28[_0x20d9('0x72')],_0x1660b7=_0xa72317&&_0xa72317['is'](_0x20d9('0x8a'),_0x20d9('0xa2')),_0x1b0956=_0x13c4fd&&_0x13c4fd['is'](_0x20d9('0x8a'),'tableCellSuggestion');_0x1660b7&&!_0x9c20a8[_0x20d9('0x17')](_0xa72317)&&_0x4c368e[_0x20d9('0x4b')](_0xa72317),_0x1b0956&&!_0x9c20a8['has'](_0x13c4fd)&&_0x4c368e['add'](_0x13c4fd);}else _0xd6ea28['is']('element',_0x20d9('0x3f'))&&_0xd6ea28[_0x20d9('0x7')]&&(_0x43f332[_0x20d9('0x1f')](_0x4af5ff[_0x20d9('0x3')]),_0x1e3e90=!0x0);}}else{if(_0x20d9('0x8b')==_0x43f332[_0x20d9('0x21')]){if(!_0x43f332[_0x20d9('0x85')]||!_0x43f332[_0x20d9('0x85')]['tablePasteChainId'])continue;const _0x2add78=_0x43f332[_0x20d9('0x85')][_0x20d9('0xa0')];if(_0x2add78&&Object[_0x20d9('0xe')](_0x2add78)[_0x20d9('0x32')])continue;const _0x59d035=_0x43f332[_0x20d9('0x85')]['tablePasteChainId'];let _0x6beaee=!0x0,_0x3a0ff0=!0x0;for(const _0xde4086 of _0x7da18e)if(_0xde4086[_0x20d9('0x21')]&&_0xde4086['subType'][_0x20d9('0x9a')](_0x20d9('0x4d'))){if(!_0xde4086['attributes'][_0x20d9('0x6b')]){_0x3a0ff0=!0x1;break;}if(_0xde4086['id']!=_0x43f332['id']&&_0xde4086[_0x20d9('0x85')][_0x20d9('0x6b')]==_0x59d035){_0x6beaee=!0x1;break;}}_0x3a0ff0&&_0x6beaee&&(_0x43f332['removeMarkers'](),_0x1e3e90=!0x0);}}for(const _0x53d5c1 of _0x9c20a8)_0x4f6646[_0x20d9('0x7b')](_0x53d5c1);for(const _0x20d419 of _0x4c368e)_0x4f6646[_0x20d9('0x4e')](_0x20d419);return _0x1e3e90;}),_0x39d662[_0x20d9('0x7a')][_0x20d9('0x10')]('editingDowncast')[_0x20d9('0x5c')]({'model':_0x20d9('0x67'),'view':_0x467c66,'converterPriority':'high'}),_0x39d662['conversion'][_0x20d9('0x10')](_0x20d9('0x91'))['markerToHighlight']({'model':_0x20d9('0x67'),'view':(_0x3bcb4f,_0x1cc487)=>{if(_0x1cc487['options'][_0x20d9('0x69')])return _0x467c66(_0x3bcb4f,{'showActiveMarker':!0x1});},'converterPriority':_0x20d9('0x2a')});const _0xf7e1ed=_0x39d662[_0x20d9('0x11')][_0x20d9('0x2')];this[_0x20d9('0x94')](_0xf7e1ed[_0x20d9('0x8f')],_0x20d9('0x14'),(_0x55db53,_0x3d8eb4)=>{const _0x3bc2e7=[];for(const _0x1d1113 of _0xf7e1ed['createRangeIn'](_0x3d8eb4['content'])[_0x20d9('0x49')]())_0x1d1113['is'](_0x20d9('0x8a'),_0x20d9('0x65'))&&_0x3bc2e7['push'](_0x1d1113);_0xf7e1ed[_0x20d9('0x95')](_0x140b82=>{for(const _0x3f4de6 of _0x3bc2e7)_0x140b82[_0x20d9('0x81')](_0x140b82[_0x20d9('0xa1')](_0x3f4de6),_0x140b82['createPositionBefore'](_0x3f4de6)),_0x140b82[_0x20d9('0x7b')](_0x3f4de6);});});}}function le(_0x2052c0){if(_0x2052c0['isEmpty'])return!0x0;const _0x538235=_0x2052c0[_0x20d9('0x75')](0x0);return _0x538235['is'](_0x20d9('0x8a'),_0x20d9('0x3f'))&&_0x538235['isEmpty'];}function se(_0x29ab70,_0x2d0119={},_0x5884af){for(const {isAnchor:_0x4c1e20,cellHeight:_0x5604aa,cellWidth:_0x18944d}of _0x5884af['createTableWalker'](_0x29ab70,{'includeAllSlots':!0x0,..._0x2d0119}))if(!_0x4c1e20||0x1!=_0x5604aa||0x1!=_0x18944d)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3054=['first','_suggestionFactory','ck-suggestion-marker-','childCount','_splitMarkerName','addMarker:suggestion','plugins','getSuggestion','selection','end','index','model','data','document','locale','setTableRowHeader','registerDescriptionCallback','item','table','toViewElement','ck-suggestion-marker--active','TableUtils','getColumnIndexes','get','highest','removeClass','bindElementToMarker','change','accept','cell','value','stop','markBlockFormat','unbindElementFromMarkerName','createPositionBefore','requires','afterInit','mapper','getSelectionAffectedTableCells','nodeAfter','markerRange','findAncestor','activeMarkers','setAttribute','commandParams','data-suggestion','options','includes','FORMAT_HEADER_ROW','TrackChangesEditing','commandName','editor','nodeBefore','from','parent','start','setTableColumnHeader','createPositionAfter','markerName','forceValue','addClass','enableCommand','consumable','getCellLocation','showSuggestionHighlights','last','commands','formatBlock','createRange','getRowIndexes','format','consume','getAttribute','writer','headingRows','getChild','createTableWalker','downcastDispatcher','removeMarker:suggestion','_descriptionFactory','removeAttribute'];(function(_0x4b6cd8,_0x3054eb){const _0x41dbee=function(_0xd33e79){while(--_0xd33e79){_0x4b6cd8['push'](_0x4b6cd8['shift']());}};_0x41dbee(++_0x3054eb);}(_0x3054,0x1a1));const _0x41db=function(_0x4b6cd8,_0x3054eb){_0x4b6cd8=_0x4b6cd8-0x0;let _0x41dbee=_0x3054[_0x4b6cd8];return _0x41dbee;};import{Plugin as _0x40208a}from'ckeditor5/src/core';import _0x4974ce from'./table';import{getTranslation as _0x340498}from'../utils/common-translations';export default class lt extends _0x40208a{static get[_0x41db('0x17')](){return[_0x4974ce];}[_0x41db('0x18')](){const _0x112dff=this[_0x41db('0x27')];if(!_0x112dff[_0x41db('0x4b')]['has']('TableEditing'))return;const _0x7bf1e9=_0x112dff[_0x41db('0x2')],_0x314625=_0x112dff[_0x41db('0x4b')][_0x41db('0xb')](_0x41db('0x25')),_0x460f1b=_0x112dff[_0x41db('0x4b')][_0x41db('0xb')](_0x41db('0x9')),_0x30a682=_0x112dff[_0x41db('0x4b')]['get'](_0x4974ce);function _0x5cf6d9({showActiveMarker:_0x2fdcf2=!0x0,setDataAttribute:_0x41be27=!0x0}={}){return(_0x39d4fc,_0x35db53,_0x455fac)=>{const {type:_0x3d7214,id:_0x471e70}=_0x314625[_0x41db('0x49')](_0x35db53[_0x41db('0x2e')]),_0x3d8c2a=_0x314625[_0x41db('0x4c')](_0x471e70);if(!_0x3d8c2a[_0x41db('0x0')]||_0x41db('0x2c')!=_0x3d8c2a['data'][_0x41db('0x26')])return;if(_0x35db53[_0x41db('0x5')])return void _0x39d4fc[_0x41db('0x13')]();if(!_0x455fac[_0x41db('0x32')][_0x41db('0x3b')](_0x35db53[_0x41db('0x1c')],_0x39d4fc['name']))return;const _0x44c377=_0x35db53[_0x41db('0x1c')][_0x41db('0x2b')][_0x41db('0x1b')],_0xcd90db=_0x35db53[_0x41db('0x1c')][_0x41db('0x4e')][_0x41db('0x28')],_0x33e9ba=_0x44c377[_0x41db('0x2a')][_0x41db('0x2a')],{column:_0x4517cb}=_0x460f1b[_0x41db('0x33')](_0x44c377),{column:_0x4e33a9}=_0x460f1b[_0x41db('0x33')](_0xcd90db);for(let _0x5b238c=_0x4517cb;_0x5b238c<=_0x4e33a9;_0x5b238c++){const _0x57a273=_0x460f1b[_0x41db('0x40')](_0x33e9ba,{'column':_0x5b238c,'includeAllSlots':!0x1});for(const _0x5d6f7d of _0x57a273){const _0x48b256=_0x5d6f7d[_0x41db('0x11')],_0x5128d0=_0x455fac[_0x41db('0x19')][_0x41db('0x7')](_0x48b256);_0x455fac[_0x41db('0x3d')]['addClass'](_0x41db('0x47')+_0x3d7214,_0x5128d0),_0x41be27&&_0x455fac[_0x41db('0x3d')][_0x41db('0x1f')]('data-suggestion',_0x471e70,_0x5128d0),_0x455fac[_0x41db('0x19')][_0x41db('0xe')](_0x5128d0,_0x35db53['markerName']),_0x2fdcf2&&(_0x314625[_0x41db('0x1e')][_0x41db('0x23')](_0x35db53[_0x41db('0x2e')])?_0x455fac['writer'][_0x41db('0x30')](_0x41db('0x8'),_0x5128d0):_0x455fac[_0x41db('0x3d')][_0x41db('0xd')]('ck-suggestion-marker--active',_0x5128d0));}}};}_0x314625[_0x41db('0x31')]('setTableRowHeader',(_0x3592d8,_0x333586)=>{const _0x1a1b95=_0x460f1b[_0x41db('0x1a')](_0x112dff['model'][_0x41db('0x1')][_0x41db('0x4d')]),_0x47be1d=_0x460f1b[_0x41db('0x39')](_0x1a1b95),_0x59e4d6=_0x1a1b95[0x0][_0x41db('0x1d')](_0x41db('0x6')),_0x34ce2e=_0x59e4d6[_0x41db('0x3c')](_0x41db('0x3e'))||0x0,_0x244379=_0x333586&&null!==_0x333586['forceValue']?_0x333586[_0x41db('0x2f')]:!_0x112dff['commands'][_0x41db('0xb')](_0x41db('0x3'))[_0x41db('0x12')],_0x5e7827=_0x244379?_0x47be1d[_0x41db('0x35')]:_0x47be1d['first'],_0x349927=_0x59e4d6[_0x41db('0x3f')](_0x5e7827);let _0x4ecd6b;if(_0x244379){const _0x2ee4c6=_0x59e4d6[_0x41db('0x3f')](_0x34ce2e);if(_0x349927[_0x41db('0x4f')]<_0x2ee4c6[_0x41db('0x4f')])return;_0x4ecd6b=_0x112dff[_0x41db('0x50')][_0x41db('0x38')](_0x112dff[_0x41db('0x50')]['createPositionBefore'](_0x2ee4c6[_0x41db('0x3f')](0x0)),_0x112dff[_0x41db('0x50')]['createPositionAfter'](_0x349927[_0x41db('0x3f')](_0x349927[_0x41db('0x48')]-0x1)));}else{const _0x597879=_0x59e4d6[_0x41db('0x3f')](_0x34ce2e-0x1);if(!_0x597879)return;_0x4ecd6b=_0x112dff['model'][_0x41db('0x38')](_0x112dff[_0x41db('0x50')]['createPositionBefore'](_0x349927['getChild'](0x0)),_0x112dff[_0x41db('0x50')][_0x41db('0x2d')](_0x597879['getChild'](_0x597879['childCount']-0x1)));}_0x112dff['model'][_0x41db('0xf')](()=>{_0x314625[_0x41db('0x14')](_0x4ecd6b,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x244379}]},[],_0x41db('0x3'));});}),_0x314625[_0x41db('0x31')](_0x41db('0x2c'),(_0x54a149,_0x2ee291)=>{const _0x56e8bf=_0x112dff[_0x41db('0x4b')][_0x41db('0xb')](_0x41db('0x9')),_0x53d314=_0x56e8bf[_0x41db('0x1a')](_0x112dff['model'][_0x41db('0x1')]['selection']),_0x234ddd=_0x56e8bf[_0x41db('0xa')](_0x53d314),_0x11a44a=_0x53d314[0x0]['findAncestor'](_0x41db('0x6')),_0x130759=_0x11a44a[_0x41db('0x3c')]('headingColumns')||0x0,_0x168895=_0x2ee291&&null!==_0x2ee291[_0x41db('0x2f')]?_0x2ee291['forceValue']:!_0x112dff[_0x41db('0x36')][_0x41db('0xb')](_0x41db('0x2c'))[_0x41db('0x12')];let _0x4738b7;const _0x1f7ee9=_0x11a44a[_0x41db('0x3f')](0x0),_0x4b5f71=_0x168895?_0x234ddd[_0x41db('0x35')]:_0x234ddd[_0x41db('0x45')],_0x337b50=_0x56e8bf[_0x41db('0x40')](_0x11a44a,{'startRow':0x0,'column':_0x4b5f71,'includeAllSlots':!0x1}),_0x559ca8=Array[_0x41db('0x29')](_0x337b50)[0x0][_0x41db('0x11')];if(_0x168895){const _0x1d6296=_0x1f7ee9[_0x41db('0x3f')](_0x130759);if(_0x559ca8['isBefore'](_0x1d6296))return;_0x4738b7=_0x112dff[_0x41db('0x50')][_0x41db('0x38')](_0x112dff['model'][_0x41db('0x16')](_0x1d6296),_0x112dff[_0x41db('0x50')][_0x41db('0x2d')](_0x559ca8));}else{const _0x18486c=_0x1f7ee9[_0x41db('0x3f')](_0x130759-0x1);if(!_0x18486c)return;_0x4738b7=_0x112dff['model'][_0x41db('0x38')](_0x112dff[_0x41db('0x50')][_0x41db('0x16')](_0x559ca8),_0x112dff['model'][_0x41db('0x2d')](_0x18486c));}_0x112dff[_0x41db('0x50')][_0x41db('0xf')](()=>{_0x314625[_0x41db('0x14')](_0x4738b7,{'commandName':_0x41db('0x2c'),'commandParams':[{'forceValue':_0x168895}]},[],_0x41db('0x2c'));});}),_0x112dff['editing']['downcastDispatcher']['on'](_0x41db('0x4a'),_0x5cf6d9(),{'priority':_0x41db('0xc')}),_0x112dff[_0x41db('0x0')][_0x41db('0x41')]['on'](_0x41db('0x4a'),(_0x312b2c,_0x20b4da,_0x3945a3)=>{_0x3945a3[_0x41db('0x22')][_0x41db('0x34')]&&_0x5cf6d9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x312b2c,_0x20b4da,_0x3945a3);},{'priority':_0x41db('0xc')}),_0x112dff['editing']['downcastDispatcher']['on'](_0x41db('0x42'),(_0x504b10,_0x38a7ec,_0x83ab50)=>{const {type:_0x5f13e3,id:_0x32bbb5}=_0x314625[_0x41db('0x49')](_0x38a7ec[_0x41db('0x2e')]),_0x375b82=_0x314625[_0x41db('0x4c')](_0x32bbb5);if(!_0x375b82[_0x41db('0x0')]||_0x41db('0x2c')!=_0x375b82['data'][_0x41db('0x26')])return;const _0x182e5f=_0x83ab50[_0x41db('0x19')]['markerNameToElements'](_0x38a7ec[_0x41db('0x2e')]);if(_0x182e5f)for(const _0x4447b8 of _0x182e5f)_0x83ab50[_0x41db('0x3d')]['removeClass'](_0x41db('0x47')+_0x5f13e3,_0x4447b8),_0x83ab50[_0x41db('0x3d')]['removeClass'](_0x41db('0x8'),_0x4447b8),_0x83ab50['writer'][_0x41db('0x44')](_0x41db('0x21'),_0x4447b8),_0x83ab50[_0x41db('0x19')][_0x41db('0x15')](_0x4447b8,_0x38a7ec['markerName']);},{'priority':'highest'}),_0x314625[_0x41db('0x43')][_0x41db('0x4')](_0x5bcc59=>{const {data:_0x43d3c2}=_0x5bcc59;if(_0x43d3c2){if(_0x41db('0x3')==_0x43d3c2['commandName']){const _0x24c122=_0x43d3c2[_0x41db('0x20')][0x0]['forceValue'];return _0x460f20(_0x340498(_0x7bf1e9,_0x24c122?_0x41db('0x24'):'FORMAT_REGULAR_ROW'));}if(_0x41db('0x2c')==_0x43d3c2[_0x41db('0x26')]){const _0x256353=_0x43d3c2[_0x41db('0x20')][0x0][_0x41db('0x2f')];return _0x460f20(_0x340498(_0x7bf1e9,_0x256353?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}function _0x460f20(_0x1efd0c){return{'type':_0x41db('0x3a'),'content':_0x340498(_0x7bf1e9,'*Format:*\x20%0',_0x1efd0c)};}});const _0x1e5b3b=_0x30a682['_acceptFormatSuggestionCallbackFactory']();_0x314625[_0x41db('0x46')]['registerCustomCallback'](_0x41db('0x37'),_0x41db('0x3'),_0x41db('0x10'),_0x1e5b3b),_0x314625[_0x41db('0x46')]['registerCustomCallback'](_0x41db('0x37'),'setTableColumnHeader',_0x41db('0x10'),_0x1e5b3b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f99=['getSelectionAffectedTableCells','element','horizontally','createRangeOn','selection','change','length','table','has','getSuggestions','add','detach','map','*Split\x20cell:*\x20horizontally','getRanges','formatBlock','splitTableCellHorizontally','markBlockFormat','subType','commandName','mergeTableCellLeft','return','afterInit','enableCommand','_areMergableCells','get','accept','find','findAncestor','filter','commands','_suggestionFactory','_areSelectedCellsMergable','*Merge\x20cells*','size','mergeTableCellUp','plugins','low','_tablePostFixingSubtypes','_descriptionFactory','getCellLocation','$graveyard','TrackChangesEditing','mergeTableCellDown','model','document','format','set:isEnabled','type','_isForcedDefaultExecutionBlock','rootName','*Split\x20cell:*\x20vertically','from','setSelection','mergeTableCellRight','highest','tableCell','refresh','getAncestors','registerDescriptionCallback','registerCustomCallback','execute','TableUtils','cell','splitTableCellVertically','mergeTableCells','TableEditing','_acceptFormatSuggestionCallbackFactory','value','stop','push','insertion','containsRange','getFirstPosition','editor','createTableWalker','markMultiRangeBlockFormat','author','fromRange','isInContent'];(function(_0x23c460,_0x3f99fe){const _0x12e006=function(_0x17030a){while(--_0x17030a){_0x23c460['push'](_0x23c460['shift']());}};_0x12e006(++_0x3f99fe);}(_0x3f99,0xfa));const _0x12e0=function(_0x23c460,_0x3f99fe){_0x23c460=_0x23c460-0x0;let _0x12e006=_0x3f99[_0x23c460];return _0x12e006;};import{Plugin as _0x24aa03}from'ckeditor5/src/core';import _0x5f3b6c from'./table';import{LiveRange as _0x5caeaf}from'ckeditor5/src/engine';import{getTranslation as _0x2bfece}from'../utils/common-translations';export default class gt extends _0x24aa03{static get['requires'](){return[_0x5f3b6c];}[_0x12e0('0xc')](){const _0x55826c=this[_0x12e0('0x40')],_0x21b20f=_0x55826c[_0x12e0('0x22')][_0x12e0('0x23')][_0x12e0('0x4a')],_0x3f4e8a=_0x55826c['locale'];if(!_0x55826c[_0x12e0('0x1a')][_0x12e0('0x4e')](_0x12e0('0x38')))return;const _0x4540f5=_0x55826c['plugins'][_0x12e0('0xf')](_0x12e0('0x20')),_0x3a5ea3=_0x55826c['plugins'][_0x12e0('0xf')]('TableUtils'),_0x523d7a=_0x55826c[_0x12e0('0x1a')][_0x12e0('0xf')](_0x5f3b6c);_0x523d7a[_0x12e0('0x1c')][_0x12e0('0x3c')](_0x12e0('0x37')),_0x4540f5[_0x12e0('0xd')](_0x12e0('0x37'),()=>{const _0x5a2e11=_0x3a5ea3['getSelectionAffectedTableCells'](_0x55826c[_0x12e0('0x22')]['document'][_0x12e0('0x4a')]);_0x55826c[_0x12e0('0x22')][_0x12e0('0x4b')](()=>{_0x4540f5[_0x12e0('0x42')](_0x5a2e11,{'commandName':'mergeTableCells','commandParams':[]},[],_0x12e0('0x37'));});}),_0x55826c[_0x12e0('0x14')]['get'](_0x12e0('0x37'))['on'](_0x12e0('0x33'),(_0x5accbf,_0x338b3a)=>{_0x55826c[_0x12e0('0x14')][_0x12e0('0xf')]('trackChanges')[_0x12e0('0x3a')]&&(_0x338b3a[_0x12e0('0x4c')]>0x0&&_0x338b3a[_0x338b3a[_0x12e0('0x4c')]-0x1]&&_0x338b3a[_0x338b3a[_0x12e0('0x4c')]-0x1]['forceDefaultExecution']||_0x4540f5[_0x12e0('0x27')]||this[_0x12e0('0x16')]()||_0x5accbf['stop']());},{'priority':_0x12e0('0x2d')});for(const _0x56fa30 of[_0x12e0('0x19'),'mergeTableCellRight',_0x12e0('0x21'),_0x12e0('0xa')]){const _0xb3fde8=_0x55826c[_0x12e0('0x14')]['get'](_0x56fa30);_0x4540f5[_0x12e0('0xd')](_0x56fa30,()=>{const _0xcbd2aa=_0x55826c['model']['document'][_0x12e0('0x4a')][_0x12e0('0x3f')]()[_0x12e0('0x30')]()[_0x12e0('0x11')](_0x1cf5db=>_0x1cf5db['is'](_0x12e0('0x47'),_0x12e0('0x2e'))),_0x5a1280=_0xb3fde8[_0x12e0('0x3a')];_0x55826c[_0x12e0('0x22')]['change'](()=>{_0x4540f5[_0x12e0('0x42')]([_0xcbd2aa,_0x5a1280],{'commandName':_0x12e0('0x37'),'commandParams':[]},[],_0x12e0('0x37'));});});}for(const _0x59092f of[_0x12e0('0x36'),_0x12e0('0x6')]){const _0xe64c6=_0x55826c[_0x12e0('0x14')][_0x12e0('0xf')](_0x59092f);_0x4540f5[_0x12e0('0xd')](_0x59092f,()=>{const _0x560804=_0x3a5ea3[_0x12e0('0x46')](_0x55826c[_0x12e0('0x22')][_0x12e0('0x23')][_0x12e0('0x4a')])[0x0],_0x439c1c=_0x560804[_0x12e0('0x12')](_0x12e0('0x4d')),{column:_0x3073b4,row:_0x450aa8}=_0x3a5ea3[_0x12e0('0x1e')](_0x560804);let _0x44ec55=[];if(_0x12e0('0x48')==_0xe64c6['direction']){const _0x4b4269=_0x3a5ea3[_0x12e0('0x41')](_0x439c1c,{'startRow':_0x450aa8,'endRow':_0x450aa8,'includeAllSlots':!0x0});_0x44ec55=Array[_0x12e0('0x2a')](_0x4b4269)[_0x12e0('0x2')](_0x25552d=>_0x25552d[_0x12e0('0x35')]);}else{const _0x46054d=_0x3a5ea3['createTableWalker'](_0x439c1c,{'column':_0x3073b4,'includeAllSlots':!0x0});_0x44ec55=Array[_0x12e0('0x2a')](_0x46054d)[_0x12e0('0x2')](_0x17a719=>_0x17a719[_0x12e0('0x35')]);}_0x55826c['model']['change'](_0x2a7e6b=>{_0x4540f5[_0x12e0('0x7')](_0x2a7e6b[_0x12e0('0x49')](_0x560804),{'commandName':_0x59092f,'commandParams':[]},_0x44ec55,_0x59092f);});});}_0x4540f5[_0x12e0('0x1d')]['registerDescriptionCallback'](_0x57470e=>{const {data:_0x386aba}=_0x57470e;if(_0x386aba)return _0x12e0('0x37')==_0x386aba[_0x12e0('0x9')]?{'type':_0x12e0('0x24'),'content':_0x2bfece(_0x3f4e8a,_0x12e0('0x17'))}:void 0x0;}),_0x4540f5[_0x12e0('0x1d')][_0x12e0('0x31')](_0x2b018d=>{const {data:_0x1875ff}=_0x2b018d;if(_0x1875ff)return'splitTableCellVertically'==_0x1875ff[_0x12e0('0x9')]?{'type':_0x12e0('0x24'),'content':_0x2bfece(_0x3f4e8a,_0x12e0('0x29'))}:'splitTableCellHorizontally'==_0x1875ff[_0x12e0('0x9')]?{'type':_0x12e0('0x24'),'content':_0x2bfece(_0x3f4e8a,_0x12e0('0x3'))}:void 0x0;});const _0x14d29c=_0x523d7a[_0x12e0('0x39')]();for(const _0x31d21f of[_0x12e0('0x19'),_0x12e0('0x2c'),'mergeTableCellDown',_0x12e0('0xa')])_0x4540f5[_0x12e0('0x15')][_0x12e0('0x32')](_0x12e0('0x5'),_0x31d21f,_0x12e0('0x10'),_0x14d29c);for(const _0x303a5f of['splitTableCellVertically',_0x12e0('0x6')])_0x4540f5['_suggestionFactory'][_0x12e0('0x32')]('formatBlock',_0x303a5f,_0x12e0('0x10'),_0x14d29c);_0x4540f5[_0x12e0('0x15')][_0x12e0('0x32')](_0x12e0('0x5'),_0x12e0('0x37'),_0x12e0('0x10'),_0x5d7f1e=>{_0x55826c[_0x12e0('0x22')][_0x12e0('0x4b')](_0x199517=>{const _0x21f8a1=Array[_0x12e0('0x2a')](_0x21b20f[_0x12e0('0x4')]())['map'](_0x4cf436=>_0x5caeaf[_0x12e0('0x44')](_0x4cf436));_0x199517['setSelection'](_0x5d7f1e),_0x55826c[_0x12e0('0x14')][_0x12e0('0xf')](_0x12e0('0x37'))[_0x12e0('0x2f')](),_0x55826c[_0x12e0('0x33')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x283199=_0x21f8a1[_0x12e0('0x13')](_0x2e0a0c=>_0x12e0('0x1f')!=_0x2e0a0c['root'][_0x12e0('0x28')]);_0x283199['length']>0x0&&_0x199517[_0x12e0('0x2b')](_0x283199);for(const _0x2a6d39 of _0x21f8a1)_0x2a6d39[_0x12e0('0x1')]();});});for(const _0xa605bd of[_0x12e0('0x19'),_0x12e0('0x21'),_0x12e0('0xa'),_0x12e0('0x2c')]){const _0xb3f584=_0x55826c[_0x12e0('0x14')][_0x12e0('0xf')](_0xa605bd);_0xb3f584['on'](_0x12e0('0x25'),(_0x54cad5,_0x28adaf,_0x258168)=>{if(_0x258168){const _0x4acbdc=_0x55826c[_0x12e0('0x22')]['document'][_0x12e0('0x4a')][_0x12e0('0x3f')]()[_0x12e0('0x30')]()[_0x12e0('0x11')](_0x1ef1b3=>_0x1ef1b3['is'](_0x12e0('0x47'),_0x12e0('0x2e')));this[_0x12e0('0xe')](_0xb3f584[_0x12e0('0x3a')],_0x4acbdc)||(_0x54cad5[_0x12e0('0xb')]=!0x1,_0x54cad5[_0x12e0('0x3b')]());}},{'priority':_0x12e0('0x1b')});}}['_areSelectedCellsMergable'](){const _0x4fbe43=this['editor']['commands']['get'](_0x12e0('0x37')),_0x7ed700=this['editor']['plugins']['get'](_0x12e0('0x34'));if(!_0x4fbe43['isEnabled'])return!0x1;const _0x2902be=_0x7ed700[_0x12e0('0x46')](this[_0x12e0('0x40')]['model'][_0x12e0('0x23')]['selection']);for(const _0x58fbfc of _0x2902be)for(const _0x187dc7 of _0x2902be)if(_0x58fbfc!=_0x187dc7&&!this[_0x12e0('0xe')](_0x58fbfc,_0x187dc7))return!0x1;return!0x0;}[_0x12e0('0xe')](_0x3e0d63,_0xea2f7c){const _0x310e91=this[_0x12e0('0x40')][_0x12e0('0x1a')][_0x12e0('0xf')](_0x12e0('0x20')),_0x1bfaab=this['editor'][_0x12e0('0x22')][_0x12e0('0x49')](_0x3e0d63),_0x38098b=this[_0x12e0('0x40')]['model'][_0x12e0('0x49')](_0xea2f7c),_0x52a8ae=new Set(),_0x1172d1=new Set();for(const _0x186b7c of _0x310e91[_0x12e0('0x4f')]())if((_0x12e0('0x3d')==_0x186b7c[_0x12e0('0x26')]||'deletion'==_0x186b7c['type']||_0x12e0('0x37')==_0x186b7c[_0x12e0('0x8')])&&_0x186b7c[_0x12e0('0x45')])for(const _0x59f1aa of _0x186b7c['getRanges']())_0x59f1aa[_0x12e0('0x3e')](_0x1bfaab,!0x0)&&_0x52a8ae[_0x12e0('0x0')](_0x186b7c['type']+':'+_0x186b7c[_0x12e0('0x43')]['id']),_0x59f1aa['containsRange'](_0x38098b,!0x0)&&_0x1172d1['add'](_0x186b7c[_0x12e0('0x26')]+':'+_0x186b7c[_0x12e0('0x43')]['id']);if(_0x52a8ae[_0x12e0('0x18')]!=_0x1172d1[_0x12e0('0x18')])return!0x1;for(const _0x469c9b of _0x52a8ae)if(!_0x1172d1[_0x12e0('0x4e')](_0x469c9b))return!0x1;return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e32=['get','isCollapsed','document','plugins','forward','locale','registerPostFixer','schema','afterInit','end','_descriptionFactory','TrackChangesEditing','updateMarker','Title','nodeBefore','getChangedMarkers','title-content','differ','newRange','editor','model','ELEMENT_TITLE','isEqual','isTouching','_splitMarkerName','has','element','start','suggestion'];(function(_0x34c489,_0x3e3283){const _0x4f3f25=function(_0x15d44f){while(--_0x15d44f){_0x34c489['push'](_0x34c489['shift']());}};_0x4f3f25(++_0x3e3283);}(_0x3e32,0x141));const _0x4f3f=function(_0x34c489,_0x3e3283){_0x34c489=_0x34c489-0x0;let _0x4f3f25=_0x3e32[_0x34c489];return _0x4f3f25;};import{Plugin as _0x1cf716}from'ckeditor5/src/core';import{getTranslation as _0x465935}from'../utils/common-translations';export default class dt extends _0x1cf716{[_0x4f3f('0x6')](){const _0xb42c1c=this[_0x4f3f('0x11')];if(!_0xb42c1c[_0x4f3f('0x1')][_0x4f3f('0x17')](_0x4f3f('0xb')))return;const _0x5dd47f=_0xb42c1c[_0x4f3f('0x1')][_0x4f3f('0x1b')](_0x4f3f('0x9'));_0x5dd47f[_0x4f3f('0x8')]['registerElementLabel'](_0x4f3f('0xe'),()=>_0x465935(_0xb42c1c[_0x4f3f('0x3')],_0x4f3f('0x13'))),_0xb42c1c[_0x4f3f('0x12')]['document'][_0x4f3f('0x4')](_0x2d0b7b=>{let _0x8be040=!0x1;const _0x1c90b1=Array['from'](_0xb42c1c[_0x4f3f('0x12')][_0x4f3f('0x0')][_0x4f3f('0xf')][_0x4f3f('0xd')]());for(const {name:_0xc6e5cc,data:_0x596a05}of _0x1c90b1){const {group:_0x11cd40}=_0x5dd47f[_0x4f3f('0x16')](_0xc6e5cc);if(_0x4f3f('0x1a')!==_0x11cd40||!_0x596a05[_0x4f3f('0x10')])continue;const _0x6be15c=_0x596a05[_0x4f3f('0x10')],_0x487ed0=_0x6be15c[_0x4f3f('0x7')][_0x4f3f('0xc')];if(!_0x487ed0||!_0x487ed0['is'](_0x4f3f('0x18'),_0x4f3f('0xe')))continue;if(!_0x6be15c[_0x4f3f('0x19')][_0x4f3f('0x15')](_0x6be15c['end']))continue;const _0x23a537=_0xb42c1c[_0x4f3f('0x12')][_0x4f3f('0x5')]['getNearestSelectionRange'](_0x6be15c[_0x4f3f('0x7')],_0x4f3f('0x2'));if(_0x23a537&&_0x23a537[_0x4f3f('0x1c')]){const _0x1ba174=_0x2d0b7b['createRange'](_0x6be15c[_0x4f3f('0x19')],_0x23a537[_0x4f3f('0x19')]);_0x1ba174[_0x4f3f('0x14')](_0x6be15c)||(_0x2d0b7b[_0x4f3f('0xa')](_0xc6e5cc,{'range':_0x1ba174}),_0x8be040=!0x0);}_0x8be040||(_0x2d0b7b['removeMarker'](_0xc6e5cc),_0x8be040=!0x0);}return _0x8be040;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x74ca=['editor','enableCommand','plugins','TrackChangesEditing','undo','afterInit','redo','get','has'];(function(_0xa987be,_0x74ca8b){const _0x3e8ac6=function(_0x1f6df9){while(--_0x1f6df9){_0xa987be['push'](_0xa987be['shift']());}};_0x3e8ac6(++_0x74ca8b);}(_0x74ca,0x90));const _0x3e8a=function(_0xa987be,_0x74ca8b){_0xa987be=_0xa987be-0x0;let _0x3e8ac6=_0x74ca[_0xa987be];return _0x3e8ac6;};import{Plugin as _0x570c6c}from'ckeditor5/src/core';export default class pt extends _0x570c6c{[_0x3e8a('0x5')](){const _0x10ca65=this[_0x3e8a('0x0')],_0x50b379=_0x10ca65[_0x3e8a('0x2')][_0x3e8a('0x7')](_0x3e8a('0x3'));_0x10ca65['plugins'][_0x3e8a('0x8')]('UndoEditing')&&(_0x50b379[_0x3e8a('0x1')](_0x3e8a('0x4')),_0x50b379[_0x3e8a('0x1')](_0x3e8a('0x6')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1309=['ck-suggestion-marker--active','listIndent','plugins','writer','toViewPosition','insert','markerRange','schema','mapper','addClass','push','element','ck-suggestion-marker-','getCustomProperty','elementEnd','isContent','addHighlight','markerName','createUIElement','previousPosition','item','type','TrackChangesEditing','includes','getAttribute','isLimit','get','toViewElement','bindElementToMarker','model','isBlock','listItem','consumable','start','nextSibling','span','test','name','hasAttribute'];(function(_0x297084,_0x130949){const _0x309d78=function(_0x225730){while(--_0x225730){_0x297084['push'](_0x297084['shift']());}};_0x309d78(++_0x130949);}(_0x1309,0x112));const _0x309d=function(_0x297084,_0x130949){_0x297084=_0x297084-0x0;let _0x309d78=_0x1309[_0x297084];return _0x309d78;};export function getRangesWithAttribute(_0xdefdfa,_0x2bdaff,_0x4b0e85){const _0x55ea6c=[];for(const _0x1dd6f7 of _0x2bdaff['getItems']())_0x1dd6f7[_0x309d('0x25')](_0xdefdfa)&&_0x55ea6c['push'](_0x4b0e85['createRangeOn'](_0x1dd6f7));return _0x55ea6c;}export function getElementsAffectedByListItemRename(_0x40a683){const _0x245107=[];if(_0x40a683['is'](_0x309d('0xa'),'listItem')){let _0x1ea82d=_0x40a683[_0x309d('0x21')];for(;_0x1ea82d&&_0x1ea82d['is']('element',_0x309d('0x1e'))&&_0x1ea82d[_0x309d('0x17')](_0x309d('0x0'))>0x0;)_0x245107[_0x309d('0x9')](_0x1ea82d),_0x1ea82d=_0x1ea82d[_0x309d('0x21')];}return _0x245107;}export function downcastSplitMergeMarker(_0x53b210,_0x1f8acd,{showActiveMarker:_0x45dfc6=!0x0}={}){const _0x1d0525=_0x53b210[_0x309d('0x1')][_0x309d('0x19')](_0x309d('0x15'));return(_0x1d3910,_0xbd73bb,_0x39951b)=>{if(!_0x39951b[_0x309d('0x1f')][_0x309d('0x23')](_0xbd73bb[_0x309d('0x5')],_0x1d3910[_0x309d('0x24')]))return;const _0x212ef8=_0xbd73bb[_0x309d('0x5')]['getWalker'](),_0x303291=_0xbd73bb[_0x309d('0x5')][_0x309d('0x20')],_0x213b7e=_0x53b210[_0x309d('0x1c')][_0x309d('0x6')];let _0x27c4a8=null,_0x578496=null,_0xc15b08=!0x1,_0x10655e=!0x1;for(const _0x4ba0df of _0x212ef8){const _0x1ce1be=_0x4ba0df[_0x309d('0x13')];_0xc15b08=_0xc15b08||_0x213b7e[_0x309d('0xe')](_0x1ce1be);const _0x35c9bf=_0x39951b[_0x309d('0x7')][_0x309d('0x1a')](_0x1ce1be);if(_0x35c9bf&&_0x35c9bf[_0x309d('0xc')](_0x309d('0xf')))return;_0x309d('0xd')==_0x4ba0df[_0x309d('0x14')]&&(_0x213b7e[_0x309d('0x1d')](_0x1ce1be)&&!_0x213b7e[_0x309d('0x18')](_0x1ce1be)&&(_0x1ce1be[_0x309d('0x21')]||_0x303291['isAtEnd']?_0x27c4a8&&_0x27c4a8['parent']==_0x1ce1be||(_0x27c4a8=_0x1ce1be,_0x4d79ae(_0x4ba0df[_0x309d('0x12')]),_0x10655e=!0x0):_0x578496=_0x578496||_0x4ba0df['previousPosition']));}function _0x4d79ae(_0x40ef4d){const _0x5265c4=_0x39951b[_0x309d('0x2')][_0x309d('0x11')](_0x309d('0x22'),{'class':_0x309d('0xb')+_0x1f8acd}),_0x4d910f=_0x39951b[_0x309d('0x7')][_0x309d('0x3')](_0x40ef4d);_0x45dfc6&&_0x1d0525['activeMarkers'][_0x309d('0x16')](_0xbd73bb[_0x309d('0x10')])&&_0x39951b[_0x309d('0x2')][_0x309d('0x8')](_0x309d('0x26'),_0x5265c4),_0x39951b[_0x309d('0x2')][_0x309d('0x4')](_0x4d910f,_0x5265c4),_0x39951b[_0x309d('0x7')][_0x309d('0x1b')](_0x5265c4,_0xbd73bb[_0x309d('0x10')]);}_0xc15b08||_0x10655e||!_0x578496||_0x4d79ae(_0x578496);};}
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33d0=['onAttributesChange','filter','size','getMultiRangeId','removeMarkers','getMarkers','map','type','nodeBefore','addRange','onAccept','accept','author','getAllAdjacentSuggestions','get','_onDiscard','_onAttributesChange','nodeAfter','markers','_saved','next','hasComments','from','reduce','head','set','getRange','getFirstMarker','clear','toJSON','onDiscard','substr','suggestion:','removeMarker','data','isInContent','attributes','start','push','createdAt','discard','subType','_markerNames','getContainedElement','getItems','getMarkerNames','_model','add','_onAccept','isMultiRange','delete','isIntersecting','length','end','commentThread','getRanges','change','previous','decorate','addMarkerName'];(function(_0x5c09ae,_0x33d05d){const _0x1f76e1=function(_0x11bc4b){while(--_0x11bc4b){_0x5c09ae['push'](_0x5c09ae['shift']());}};_0x1f76e1(++_0x33d05d);}(_0x33d0,0x1e6));const _0x1f76=function(_0x5c09ae,_0x33d05d){_0x5c09ae=_0x5c09ae-0x0;let _0x1f76e1=_0x33d0[_0x5c09ae];return _0x1f76e1;};import{Element as _0x59bce1}from'ckeditor5/src/engine';import{ObservableMixin as _0xba55fc,mix as _0x24f273,uid as _0x8dd5c7}from'ckeditor5/src/utils';import{cloneDeep as _0x5973aa,isEqual as _0x14e8a7,set as _0x32294f,unset as _0x3bd18e}from'lodash-es';export default class o{constructor(_0x4ce0e0,_0x4811c1){this['id']=_0x4811c1['id'],this[_0x1f76('0x1')]=_0x4811c1[_0x1f76('0x1')],this['subType']=_0x4811c1[_0x1f76('0x23')]||null,this[_0x1f76('0x6')]=_0x4811c1['author'],this['externalAuthor']=_0x4811c1['externalAuthor'],this['data']=null,this[_0x1f76('0x28')]=_0x4ce0e0,this[_0x1f76('0x2a')]=_0x4811c1[_0x1f76('0x4')],this[_0x1f76('0x9')]=_0x4811c1[_0x1f76('0x18')],this[_0x1f76('0xa')]=_0x4811c1[_0x1f76('0x36')],this[_0x1f76('0x24')]=new Set(),this[_0x1f76('0x13')](_0x1f76('0x21'),null),this[_0x1f76('0x13')](_0x1f76('0x1e'),_0x4811c1[_0x1f76('0x1e')]||{}),this[_0x1f76('0x13')](_0x1f76('0x33'),null),this[_0x1f76('0x13')]('next',null),this[_0x1f76('0x13')](_0x1f76('0x30'),null),this[_0x1f76('0x13')](_0x1f76('0xd'),!0x1),this[_0x1f76('0x34')](_0x1f76('0x5')),this[_0x1f76('0x34')]('discard');}get['head'](){let _0x18ec00=this;for(;_0x18ec00['previous'];)_0x18ec00=_0x18ec00[_0x1f76('0x33')];return _0x18ec00;}get[_0x1f76('0xf')](){return!!this[_0x1f76('0x30')]&&this[_0x1f76('0x30')][_0x1f76('0x2e')]>0x0;}get[_0x1f76('0x2b')](){if(0x0==this['_markerNames'][_0x1f76('0x38')])return!0x1;return 0x6==Array[_0x1f76('0x10')](this[_0x1f76('0x24')])[0x0]['split'](':')['length'];}get[_0x1f76('0x1d')](){return null!==this[_0x1f76('0x15')]();}[_0x1f76('0x35')](_0x90ba48){this[_0x1f76('0x24')][_0x1f76('0x29')](_0x90ba48);}[_0x1f76('0x27')](){return Array[_0x1f76('0x10')](this[_0x1f76('0x24')]);}[_0x1f76('0x3b')](){return this[_0x1f76('0x27')]()[_0x1f76('0x0')](_0x1bc72e=>this[_0x1f76('0x28')][_0x1f76('0xc')][_0x1f76('0x8')](_0x1bc72e))[_0x1f76('0x37')](_0x5becb2=>_0x5becb2);}[_0x1f76('0x15')](){return this[_0x1f76('0x3b')]()[0x0]||null;}[_0x1f76('0x3a')](){this['_model']['change'](_0x22485d=>{for(const _0x1773b of this[_0x1f76('0x3b')]())_0x22485d[_0x1f76('0x1b')](_0x1773b);}),this['_markerNames'][_0x1f76('0x16')]();}[_0x1f76('0x1b')](_0x285b11){this[_0x1f76('0x28')]['change'](_0x5b9fbd=>{_0x5b9fbd[_0x1f76('0x1b')](_0x285b11);}),this[_0x1f76('0x24')][_0x1f76('0x2c')](_0x285b11);}[_0x1f76('0x3')](_0x278516){const _0x35471b=_0x1f76('0x1a')+this[_0x1f76('0x1')]+':'+this['subType']+':'+this['id']+':'+this[_0x1f76('0x6')]['id']+':'+o['getMultiRangeId']();this[_0x1f76('0x35')](_0x35471b),this[_0x1f76('0x28')][_0x1f76('0x32')](_0x2d8005=>{_0x2d8005['addMarker'](_0x35471b,{'range':_0x278516,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3d7414){for(const _0x22182e of this[_0x1f76('0x31')]())if(_0x22182e[_0x1f76('0x2d')](_0x3d7414))return!0x0;return!0x1;}[_0x1f76('0x31')](){return this[_0x1f76('0x3b')]()[_0x1f76('0x0')](_0x5bfdcd=>_0x5bfdcd[_0x1f76('0x14')]());}[_0x1f76('0x26')](){return this[_0x1f76('0x31')]()[_0x1f76('0x11')]((_0x595264,_0xa77b25)=>[..._0x595264,..._0xa77b25[_0x1f76('0x26')]()],[]);}['getFirstRange'](){return this[_0x1f76('0x15')]()[_0x1f76('0x14')]();}[_0x1f76('0x25')](){const _0x2336ac=this[_0x1f76('0x31')]();if(0x1!=_0x2336ac[_0x1f76('0x2e')])return null;const _0x3339ba=_0x2336ac[0x0],_0x367ca0=_0x3339ba[_0x1f76('0x1f')][_0x1f76('0xb')],_0x2ea147=_0x3339ba[_0x1f76('0x2f')][_0x1f76('0x2')];return _0x367ca0 instanceof _0x59bce1?_0x367ca0!=_0x2ea147?null:_0x367ca0:null;}[_0x1f76('0x5')](){this[_0x1f76('0x2a')](this[_0x1f76('0x31')](),this[_0x1f76('0x1c')],this[_0x1f76('0x1e')]),this['removeMarkers']();}[_0x1f76('0x22')](){this[_0x1f76('0x9')](this['getRanges'](),this[_0x1f76('0x1c')],this[_0x1f76('0x1e')]),this['removeMarkers']();}[_0x1f76('0x7')](){const _0x30401b=[];let _0x14ccf9=this[_0x1f76('0x12')];for(;_0x14ccf9;)_0x30401b[_0x1f76('0x20')](_0x14ccf9),_0x14ccf9=_0x14ccf9[_0x1f76('0xe')];return _0x30401b;}['setAttribute'](_0x22ab4c,_0x3b29f3){const _0x1d2d50=_0x5973aa(this[_0x1f76('0x1e')]);_0x32294f(_0x1d2d50,_0x22ab4c,_0x3b29f3),_0x14e8a7(_0x1d2d50,this[_0x1f76('0x1e')])||(this[_0x1f76('0x1e')]=_0x1d2d50,this['_onAttributesChange'](_0x1d2d50));}['removeAttribute'](_0x1447b8){const _0x382e17=_0x5973aa(this[_0x1f76('0x1e')]);_0x3bd18e(_0x382e17,_0x1447b8),_0x14e8a7(_0x382e17,this[_0x1f76('0x1e')])||(this[_0x1f76('0x1e')]=_0x382e17,this['_onAttributesChange'](this[_0x1f76('0x1e')]));}[_0x1f76('0x17')](){return{'id':this['id'],'type':this['subType']?this[_0x1f76('0x1')]+':'+this[_0x1f76('0x23')]:this['type'],'authorId':this[_0x1f76('0x6')]['id'],'createdAt':this[_0x1f76('0x21')],'hasComments':this['hasComments'],'data':this[_0x1f76('0x1c')],'attributes':this[_0x1f76('0x1e')]};}static[_0x1f76('0x39')](){return _0x8dd5c7()[_0x1f76('0x19')](0x1,0x5);}}_0x24f273(o,_0xba55fc);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12a3=['length','function','isEmpty','isObject','_addDescriptionItems','element','registerElementLabel','name','isEqual','indexOf','_customCallbacks','remove','Object','REPLACE_TEXT','*Remove:*\x20%0','getDescriptions','get','_resolveDescriptionItems','pop','skip','checkChild','getFirstRange','Container','*Split:*\x20%0','_locale','match','type','_schema','start','$text','deletion','quantity','$1\x20$2','getWalker','data','removeObject','*Insert:*\x20%0','textProxy','nextSibling','_itemLabels','insertion','addContainer','set','replace','*Merge:*\x20%0','getItemLabel','addObject','add','item','elementEnd','removeContainer','previousSibling','EmptyContainer','text','push','ELEMENT_SPACE'];(function(_0x179ad,_0x12a389){const _0x1a297b=function(_0x307f81){while(--_0x307f81){_0x179ad['push'](_0x179ad['shift']());}};_0x1a297b(++_0x12a389);}(_0x12a3,0x64));const _0x1a29=function(_0x179ad,_0x12a389){_0x179ad=_0x179ad-0x0;let _0x1a297b=_0x12a3[_0x179ad];return _0x1a297b;};import{getTranslation as _0x481a89}from'./utils/common-translations';export default class l{constructor(_0x209f01,_0x217d31){this[_0x1a29('0x16')]=[],this[_0x1a29('0x33')]=new Map(),this[_0x1a29('0x27')]=_0x209f01,this[_0x1a29('0x24')]=_0x217d31;}[_0x1a29('0x1b')](_0x43014b){const _0x5ef2a2=[];for(let _0x3ef025=0x0;_0x3ef025<_0x43014b[_0x1a29('0xc')];_0x3ef025++){const _0x187c3a=_0x43014b[_0x3ef025];if(!_0x187c3a['isInContent'])continue;let _0x47d282=!0x1;for(const _0x219d6c of this['_customCallbacks']){const _0x3ff5b8=_0x219d6c(_0x187c3a);if(_0x3ff5b8){_0x3ff5b8[_0x1a29('0x26')]&&_0x5ef2a2[_0x1a29('0xa')](_0x3ff5b8),_0x47d282=!0x0;break;}}if(!_0x47d282){this[_0x1a29('0x10')](_0x5ef2a2,_0x187c3a);const _0x1dd887=_0x43014b[_0x3ef025+0x1];if(_0x1dd887&&!_0x187c3a['getFirstRange']()['end'][_0x1a29('0x14')](_0x1dd887[_0x1a29('0x21')]()[_0x1a29('0x28')])){const _0x217cfb=_0x5ef2a2[_0x5ef2a2[_0x1a29('0xc')]-0x1],_0x219bd3='insertion'==_0x187c3a['type']?_0x1a29('0x3'):'remove';_0x217cfb&&_0x1a29('0x9')==_0x217cfb[_0x1a29('0x26')]&&(_0x217cfb[_0x219bd3]+='\x0a');}}}return this[_0x1a29('0x1d')](_0x5ef2a2);}['registerDescriptionCallback'](_0x51d80c){this[_0x1a29('0x16')][_0x1a29('0xa')](_0x51d80c);}[_0x1a29('0x12')](_0x234b85,_0x467095){this[_0x1a29('0x33')][_0x1a29('0x36')](_0x234b85,_0x467095);}[_0x1a29('0x1')](_0x5dab79,_0x21ef5a=0x1){const _0x472efd=this[_0x1a29('0x33')][_0x1a29('0x1c')](_0x5dab79)||_0x5dab79;return _0x1a29('0xd')==typeof _0x472efd?_0x472efd(_0x21ef5a):0x1!==_0x21ef5a?_0x21ef5a+'\x20'+_0x472efd+'s':''+_0x472efd;}[_0x1a29('0x10')](_0x39a0b7,_0xbda8e9){const _0x39eacd=_0xbda8e9[_0x1a29('0x21')]()[_0x1a29('0x2d')](),_0x5e6095=_0x1a29('0x34')==_0xbda8e9['type']?'add':'remove';for(const _0x421783 of _0x39eacd){const _0x4489cf=_0x421783[_0x1a29('0x4')],_0x38bdd2=_0x39a0b7[_0x39a0b7[_0x1a29('0xc')]-0x1];if(_0x4489cf['is'](_0x1a29('0x31')))_0x38bdd2&&_0x38bdd2['type'][_0x1a29('0x15')](_0x1a29('0x22'))>-0x1&&_0x39a0b7[_0x1a29('0x1e')](),_0x38bdd2&&'text'==_0x38bdd2[_0x1a29('0x26')]?_0x38bdd2[_0x5e6095]+=_0x4489cf[_0x1a29('0x2e')]:_0x39a0b7['push']({'type':_0x1a29('0x9'),'add':'add'==_0x5e6095?_0x4489cf[_0x1a29('0x2e')]:'','remove':_0x1a29('0x17')==_0x5e6095?_0x4489cf[_0x1a29('0x2e')]:''});else{if(this[_0x1a29('0x27')][_0x1a29('0xf')](_0x4489cf)){if(_0x38bdd2&&_0x38bdd2[_0x1a29('0x26')][_0x1a29('0x15')](_0x1a29('0x22'))>-0x1&&_0x39a0b7['pop'](),_0x1a29('0x5')==_0x421783[_0x1a29('0x26')])continue;_0x38bdd2&&_0x38bdd2[_0x1a29('0x26')]==_0x5e6095+_0x1a29('0x18')&&_0x38bdd2[_0x1a29('0x13')]==_0x4489cf[_0x1a29('0x13')]?_0x38bdd2[_0x1a29('0x2b')]++:_0x39a0b7[_0x1a29('0xa')]({'type':_0x5e6095+_0x1a29('0x18'),'name':_0x4489cf['name'],'quantity':0x1}),_0x39eacd[_0x1a29('0x1f')](_0x3b9a7e=>!(_0x1a29('0x5')==_0x3b9a7e['type']&&_0x3b9a7e[_0x1a29('0x4')]==_0x4489cf));}else{if(this[_0x1a29('0x27')][_0x1a29('0x20')](_0x4489cf,_0x1a29('0x29'))||_0x4489cf['is'](_0x1a29('0x11'),'softBreak')){if(_0x1a29('0x3')==_0x5e6095&&'elementStart'==_0x421783[_0x1a29('0x26')]||'remove'==_0x5e6095&&_0x1a29('0x5')==_0x421783[_0x1a29('0x26')])continue;if(_0x38bdd2&&-0x1==_0x38bdd2[_0x1a29('0x26')][_0x1a29('0x15')]('Container')){_0x1a29('0x9')==_0x38bdd2[_0x1a29('0x26')]&&(_0x38bdd2[_0x5e6095]+='\x0a');continue;}let _0x5708cf;if(_0x5708cf=_0x1a29('0x3')==_0x5e6095?_0x4489cf[_0x1a29('0x32')]&&!this[_0x1a29('0x27')][_0x1a29('0xf')](_0x4489cf['nextSibling'])?_0x4489cf['nextSibling']:null:_0x4489cf[_0x1a29('0x7')]&&!this[_0x1a29('0x27')][_0x1a29('0xf')](_0x4489cf['previousSibling'])?_0x4489cf[_0x1a29('0x7')]:null,_0x4489cf[_0x1a29('0xe')]||_0x5708cf&&_0x5708cf['isEmpty']){const _0x1d84d8=_0x5708cf&&_0x5708cf['isEmpty']?_0x5708cf[_0x1a29('0x13')]:_0x4489cf[_0x1a29('0x13')];_0x38bdd2&&_0x38bdd2[_0x1a29('0x26')]==_0x5e6095+'EmptyContainer'&&_0x38bdd2[_0x1a29('0x13')]==_0x1d84d8?_0x38bdd2[_0x1a29('0x2b')]++:_0x39a0b7[_0x1a29('0xa')]({'type':_0x5e6095+_0x1a29('0x8'),'name':_0x1d84d8,'quantity':0x1});}else _0x39a0b7[_0x1a29('0xa')]({'type':_0x5e6095+_0x1a29('0x22'),'name':_0x4489cf[_0x1a29('0x13')]});}}}}}[_0x1a29('0x1d')](_0x3bee44){const _0x225539=this[_0x1a29('0x24')],_0x53deac=[];for(const _0x338a1d of _0x3bee44){switch(_0x338a1d['type']){case _0x1a29('0x9'):if(_0x338a1d['add']=_0x338a1d[_0x1a29('0x3')][_0x1a29('0x37')](/(\S)\u000A+(\S)/g,_0x1a29('0x2c'))[_0x1a29('0x37')](/\u000A/g,''),_0x338a1d[_0x1a29('0x17')]=_0x338a1d[_0x1a29('0x17')][_0x1a29('0x37')](/(\S)\u000A+(\S)/g,_0x1a29('0x2c'))['replace'](/\u000A/g,''),''!=_0x338a1d[_0x1a29('0x3')]&&''!=_0x338a1d[_0x1a29('0x17')]){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x37'),'content':_0x481a89(_0x225539,_0x1a29('0x19'),['\x22'+_0x338a1d[_0x1a29('0x17')]+'\x22','\x22'+_0x338a1d[_0x1a29('0x3')]+'\x22'])});continue;}if(null!=_0x338a1d[_0x1a29('0x3')][_0x1a29('0x25')](/^ +$/)){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x34'),'content':_0x481a89(_0x225539,'*Insert:*\x20%0',_0x481a89(_0x225539,_0x1a29('0xb'),_0x338a1d[_0x1a29('0x3')][_0x1a29('0xc')]))});continue;}if(null!=_0x338a1d[_0x1a29('0x17')][_0x1a29('0x25')](/^ +$/)){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,_0x1a29('0x1a'),_0x481a89(_0x225539,_0x1a29('0xb'),_0x338a1d[_0x1a29('0x17')]['length']))});continue;}if(''!=_0x338a1d[_0x1a29('0x3')]){_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x34'),'content':_0x481a89(_0x225539,_0x1a29('0x30'),'\x22'+_0x338a1d['add']+'\x22')});continue;}_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,'*Remove:*\x20%0','\x22'+_0x338a1d[_0x1a29('0x17')]+'\x22')});continue;case'addEmptyContainer':case _0x1a29('0x2'):_0x53deac['push']({'type':_0x1a29('0x34'),'content':_0x481a89(_0x225539,_0x1a29('0x30'),this[_0x1a29('0x1')](_0x338a1d[_0x1a29('0x13')],_0x338a1d[_0x1a29('0x2b')]))});continue;case'removeEmptyContainer':case _0x1a29('0x2f'):_0x53deac['push']({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,_0x1a29('0x1a'),this['getItemLabel'](_0x338a1d[_0x1a29('0x13')],_0x338a1d[_0x1a29('0x2b')]))});continue;case _0x1a29('0x35'):_0x53deac[_0x1a29('0xa')]({'type':'insertion','content':_0x481a89(_0x225539,_0x1a29('0x23'),this[_0x1a29('0x1')](_0x338a1d[_0x1a29('0x13')],_0x338a1d['quantity']))});continue;case _0x1a29('0x6'):_0x53deac[_0x1a29('0xa')]({'type':_0x1a29('0x2a'),'content':_0x481a89(_0x225539,_0x1a29('0x0'),this[_0x1a29('0x1')](_0x338a1d[_0x1a29('0x13')],_0x338a1d['quantity']))});continue;}_0x53deac['push'](_0x338a1d);}return _0x53deac;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5b3f=['getSuggestion','getSuggestions','get','adapter','addSuggestionData','plugins','addSuggestion','editor'];(function(_0x5290c3,_0x5b3ff9){var _0x422991=function(_0x43d640){while(--_0x43d640){_0x5290c3['push'](_0x5290c3['shift']());}};_0x422991(++_0x5b3ff9);}(_0x5b3f,0x79));var _0x4229=function(_0x5290c3,_0x5b3ff9){_0x5290c3=_0x5290c3-0x0;var _0x422991=_0x5b3f[_0x5290c3];return _0x422991;};import{Plugin as _0x43b2a2}from'ckeditor5/src/core';import _0x16906c from'./trackchangesui';import _0x1acb2a from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0x43b2a2{static get['requires'](){return[_0x1acb2a,_0x16906c,'Comments'];}static get['pluginName'](){return'TrackChanges';}set[_0x4229('0x2')](_0x55311f){this[_0x4229('0x6')][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x2')]=_0x55311f;}get[_0x4229('0x2')](){return this[_0x4229('0x6')][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x2')];}[_0x4229('0x5')](_0x4d61cf){return this[_0x4229('0x6')][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x3')](_0x4d61cf);}[_0x4229('0x0')](_0x4b7d24){return this['editor'][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)[_0x4229('0x0')](_0x4b7d24);}[_0x4229('0x7')](_0x7fc3e7){return this['editor'][_0x4229('0x4')][_0x4229('0x1')](_0x1acb2a)['getSuggestion'](_0x7fc3e7);}}
|