@ckeditor/ckeditor5-track-changes 35.3.2 → 36.0.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 +3 -2
- package/build/translations/ar.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/tt.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/contexts.json +16 -0
- package/lang/translations/ar.po +68 -4
- package/lang/translations/az.po +65 -1
- package/lang/translations/bg.po +68 -4
- package/lang/translations/bn.po +68 -4
- package/lang/translations/ca.po +68 -4
- package/lang/translations/cs.po +68 -4
- package/lang/translations/da.po +68 -4
- package/lang/translations/de.po +68 -4
- package/lang/translations/el.po +68 -4
- package/lang/translations/en-au.po +65 -1
- package/lang/translations/en.po +65 -1
- package/lang/translations/es.po +68 -4
- package/lang/translations/et.po +68 -4
- package/lang/translations/fi.po +68 -4
- package/lang/translations/fr.po +68 -4
- package/lang/translations/gl.po +65 -1
- package/lang/translations/he.po +68 -4
- package/lang/translations/hi.po +68 -4
- package/lang/translations/hr.po +65 -1
- package/lang/translations/hu.po +68 -4
- package/lang/translations/id.po +68 -4
- package/lang/translations/it.po +68 -4
- package/lang/translations/ja.po +68 -4
- package/lang/translations/ko.po +68 -4
- package/lang/translations/lt.po +68 -4
- package/lang/translations/lv.po +68 -4
- package/lang/translations/ms.po +68 -4
- package/lang/translations/nl.po +68 -4
- package/lang/translations/no.po +68 -4
- package/lang/translations/pl.po +68 -4
- package/lang/translations/pt-br.po +68 -4
- package/lang/translations/pt.po +68 -4
- package/lang/translations/ro.po +68 -4
- package/lang/translations/ru.po +68 -4
- package/lang/translations/sk.po +68 -4
- package/lang/translations/sr-latn.po +68 -4
- package/lang/translations/sr.po +69 -5
- package/lang/translations/sv.po +68 -4
- package/lang/translations/th.po +68 -4
- package/lang/translations/tk.po +65 -1
- package/lang/translations/tr.po +68 -4
- package/lang/translations/tt.po +65 -1
- package/lang/translations/uk.po +68 -4
- package/lang/translations/ur.po +65 -1
- package/lang/translations/vi.po +68 -4
- package/lang/translations/zh-cn.po +68 -4
- package/lang/translations/zh.po +68 -4
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.js +1 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.js +23 -0
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.js +23 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.js +23 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.js +23 -0
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +23 -0
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableproperties.js +23 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.js +2 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x454a=['enableCommand','get','goToNextRestrictedEditingException','RestrictedEditingModeEditing','editor','acceptSuggestion','acceptAllSuggestions','discardAllSuggestions','discardSelectedSuggestions','discardSuggestion','TrackChangesEditing','afterInit','plugins'];(function(_0x3121a3,_0x454a6c){const _0x49e920=function(_0x425ac3){while(--_0x425ac3){_0x3121a3['push'](_0x3121a3['shift']());}};_0x49e920(++_0x454a6c);}(_0x454a,0x132));const _0x49e9=function(_0x3121a3,_0x454a6c){_0x3121a3=_0x3121a3-0x0;let _0x49e920=_0x454a[_0x3121a3];return _0x49e920;};import{Plugin as _0x1d44b4}from'ckeditor5/src/core';export default class ft extends _0x1d44b4{[_0x49e9('0x4')](){const _0x40ba97=this[_0x49e9('0xa')];if(!_0x40ba97[_0x49e9('0x5')]['has'](_0x49e9('0x9')))return;const _0xfbd728=_0x40ba97[_0x49e9('0x5')]['get'](_0x49e9('0x3'));_0xfbd728[_0x49e9('0x6')]('goToPreviousRestrictedEditingException'),_0xfbd728['enableCommand'](_0x49e9('0x8'));const _0x2461cc=_0x40ba97[_0x49e9('0x5')][_0x49e9('0x7')](_0x49e9('0x9'));_0x2461cc[_0x49e9('0x6')]('trackChanges'),_0x2461cc[_0x49e9('0x6')](_0x49e9('0xb')),_0x2461cc['enableCommand'](_0x49e9('0x2')),_0x2461cc[_0x49e9('0x6')](_0x49e9('0xc')),_0x2461cc[_0x49e9('0x6')](_0x49e9('0x0')),_0x2461cc[_0x49e9('0x6')]('acceptSelectedSuggestions'),_0x2461cc['enableCommand'](_0x49e9('0x1'));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x95a0=['data','mapper','markerName','get','addClass','plugins','merge','high','name','markerRange','downcastDispatcher','softBreak','editing','toViewPosition','test','includes','span','locale','element','editor','model','_descriptionFactory','deletion','ck-suggestion-marker-','enableCommand','consumable','writer','activeMarkers','showSuggestionHighlights','TrackChangesEditing','ck-suggestion-marker--active','split','createUIElement','init','options','getItems'];(function(_0x551d52,_0x95a082){const _0x3f6589=function(_0x5d7f5c){while(--_0x5d7f5c){_0x551d52['push'](_0x551d52['shift']());}};_0x3f6589(++_0x95a082);}(_0x95a0,0x1c9));const _0x3f65=function(_0x551d52,_0x95a082){_0x551d52=_0x551d52-0x0;let _0x3f6589=_0x95a0[_0x551d52];return _0x3f6589;};import{Plugin as _0x20456d}from'ckeditor5/src/core';import{ShiftEnter as _0x51103a}from'ckeditor5/src/enter';import{getTranslation as _0x114bd0}from'../utils/common-translations';export default class gt extends _0x20456d{static get['requires'](){return[_0x51103a];}[_0x3f65('0x8')](){const _0x2f858f=this[_0x3f65('0x1e')],_0x535837=_0x2f858f['plugins'][_0x3f65('0xe')](_0x3f65('0x4'));_0x535837[_0x3f65('0x23')]('shiftEnter'),_0x2f858f['editing'][_0x3f65('0x15')]['on']('addMarker:suggestion:insertion',re(_0x2f858f),{'priority':_0x3f65('0x12')}),_0x2f858f[_0x3f65('0x17')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',re(_0x2f858f),{'priority':'high'}),_0x2f858f[_0x3f65('0xb')][_0x3f65('0x15')]['on']('addMarker:suggestion',(_0x145053,_0x420514,_0x39909d)=>{_0x39909d[_0x3f65('0x9')][_0x3f65('0x3')]&&re(_0x2f858f,{'showActiveMarker':!0x1})(_0x145053,_0x420514,_0x39909d);}),_0x535837[_0x3f65('0x20')]['registerElementLabel'](_0x3f65('0x16'),_0x1619c1=>_0x114bd0(_0x2f858f[_0x3f65('0x1c')],'ELEMENT_LINE_BREAK',_0x1619c1));}}function re(_0x48d206,{showActiveMarker:_0x3e9233=!0x0}={}){return(_0x43a64f,_0x48965c,_0x66e9fb)=>{const _0x31f5c9=_0x48d206[_0x3f65('0x10')][_0x3f65('0xe')]('TrackChangesEditing');if(!_0x66e9fb[_0x3f65('0x0')][_0x3f65('0x19')](_0x48965c[_0x3f65('0x14')],_0x43a64f[_0x3f65('0x13')]))return;const _0xf6e76c=_0x48d206[_0x3f65('0x1f')];for(const _0x46849a of _0x48965c[_0x3f65('0x14')][_0x3f65('0xa')]()){if(!_0x46849a['is'](_0x3f65('0x1d'),_0x3f65('0x16')))continue;const _0x429ef3=_0x3f65('0x21')==_0x48965c['markerName'][_0x3f65('0x6')](':')[0x1]?_0x3f65('0x11'):_0x3f65('0x6'),_0x1a7791=_0x66e9fb[_0x3f65('0x1')][_0x3f65('0x7')](_0x3f65('0x1b'),{'class':_0x3f65('0x22')+_0x429ef3}),_0x338019=_0x66e9fb[_0x3f65('0xc')][_0x3f65('0x18')](_0xf6e76c['createPositionBefore'](_0x46849a));_0x3e9233&&_0x31f5c9[_0x3f65('0x2')][_0x3f65('0x1a')](_0x48965c['markerName'])&&_0x66e9fb[_0x3f65('0x1')][_0x3f65('0xf')](_0x3f65('0x5'),_0x1a7791),_0x66e9fb[_0x3f65('0x1')]['insert'](_0x338019,_0x1a7791),_0x66e9fb[_0x3f65('0xc')]['bindElementToMarker'](_0x1a7791,_0x48965c[_0x3f65('0xd')]);}};}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18b5=['commandName','model','StandardEditingModeEditing','registerDescriptionCallback','_descriptionFactory','isCollapsed','getRanges','commandParams','get','document','format','locale','has','enableCommand','selection','FORMAT_RESTRICTED_DISABLED','markInlineFormat','plugins','commands','from','value','change','TrackChangesEditing','afterInit','forceValue'];(function(_0x1fcb56,_0x18b582){const _0x125772=function(_0x103a35){while(--_0x103a35){_0x1fcb56['push'](_0x1fcb56['shift']());}};_0x125772(++_0x18b582);}(_0x18b5,0xe9));const _0x1257=function(_0x1fcb56,_0x18b582){_0x1fcb56=_0x1fcb56-0x0;let _0x125772=_0x18b5[_0x1fcb56];return _0x125772;};import{Plugin as _0x3d8527}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x3653b0}from'./utils';import{getTranslation as _0x47ff82}from'../utils/common-translations';export default class lt extends _0x3d8527{[_0x1257('0xf')](){const _0xb02031=this['editor'],_0x5820f5=_0xb02031[_0x1257('0x12')],_0x336b8e=_0xb02031[_0x1257('0x3')];if(!_0xb02031[_0x1257('0x9')][_0x1257('0x4')](_0x1257('0x13')))return;const _0x20fa58=_0xb02031[_0x1257('0x9')][_0x1257('0x0')](_0x1257('0xe')),_0x5cdda8='restrictedEditingException',_0x4c6f23=_0xb02031[_0x1257('0xa')][_0x1257('0x0')](_0x5cdda8);_0x20fa58[_0x1257('0x5')](_0x5cdda8,(_0x53bbb9,_0x1c9453={})=>{const _0x37491f=_0x5820f5[_0x1257('0x1')][_0x1257('0x6')];if(_0x37491f[_0x1257('0x16')])return void _0x53bbb9(_0x1c9453);const _0x15fd0a=void 0x0!==_0x1c9453[_0x1257('0x10')]?_0x1c9453[_0x1257('0x10')]:!_0x4c6f23[_0x1257('0xc')];_0x5820f5[_0x1257('0xd')](()=>{const _0x9c3f07=Array[_0x1257('0xb')](_0x37491f[_0x1257('0x17')]());for(const _0x1a12dd of _0x9c3f07){const _0x56e2ef=_0x15fd0a?[_0x1a12dd]:_0x3653b0(_0x5cdda8,_0x1a12dd,_0x5820f5);for(const _0x45a9a6 of _0x56e2ef)_0x20fa58[_0x1257('0x8')](_0x45a9a6,{'commandName':_0x5cdda8,'commandParams':[{'forceValue':_0x15fd0a}]});}});}),_0x20fa58[_0x1257('0x15')][_0x1257('0x14')](_0x477ddf=>{const {data:_0x11696e}=_0x477ddf;if(_0x11696e&&_0x11696e[_0x1257('0x11')]==_0x5cdda8)return _0x11696e[_0x1257('0x18')][0x0][_0x1257('0x10')]?{'type':_0x1257('0x2'),'content':_0x47ff82(_0x336b8e,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x1257('0x2'),'content':_0x47ff82(_0x336b8e,_0x1257('0x7'))};});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d15=['getStyleDefinition','block','enableCommand','*Remove\x20format:*\x20%0','toLowerCase','includes','commandParams','style:','markInlineFormat','getAncestors','createRangeOn','format','model','modelElements','push','plugins','getRanges','enabledStyles','getRangesWithClasses','find','getDefinitionsForView','style','classes','*Format:*\x20%0','commands','inline','registerDescriptionCallback','TrackChangesEditing','afterInit','style.definitions','add','getItems','every','selection','change','get','getAttribute','markBlockFormat','styleName','name','from','DataSchema','commandName','getSelectedBlocks','isCollapsed'];(function(_0x28b57c,_0x1d1531){const _0x321b14=function(_0x2a35d1){while(--_0x2a35d1){_0x28b57c['push'](_0x28b57c['shift']());}};_0x321b14(++_0x1d1531);}(_0x1d15,0x10f));const _0x321b=function(_0x28b57c,_0x1d1531){_0x28b57c=_0x28b57c-0x0;let _0x321b14=_0x1d15[_0x28b57c];return _0x321b14;};import{Plugin as _0x5512d4}from'ckeditor5/src/core';import{normalizeConfig as _0x518c85}from'@ckeditor/ckeditor5-style/src/utils';import{getTranslation as _0x39fafc}from'../utils/common-translations';export default class mt extends _0x5512d4{[_0x321b('0x1b')](){const _0x1faa37=this['editor'];if(!_0x1faa37['plugins']['has']('Style'))return;const _0x4afa2c=_0x1faa37[_0x321b('0x17')]['get'](_0x321b('0x14')),_0x297cb1=_0x1faa37[_0x321b('0xe')][_0x321b('0x22')](_0x321b('0x1a')),_0x2b44fa=_0x1faa37['locale'],_0x4598ef=_0x1faa37['plugins'][_0x321b('0x22')](_0x321b('0x28')),_0x20baee=_0x518c85(_0x4598ef,_0x1faa37['config'][_0x321b('0x22')](_0x321b('0x1c')));_0x297cb1[_0x321b('0x1')]('style',(_0x515a7f,{styleName:_0x15013e})=>{const _0x4a1a2f=_0x1faa37['model']['document'][_0x321b('0x20')],_0x56c765=this[_0x321b('0x2c')](_0x15013e,_0x20baee);if(!_0x56c765)return;if(!_0x4afa2c[_0x321b('0x10')][_0x321b('0x4')](_0x15013e))return;if(_0x4a1a2f[_0x321b('0x2b')]&&!_0x56c765['isBlock'])return void _0x515a7f({'styleName':_0x15013e});const _0x4be148=!_0x4afa2c['value'][_0x321b('0x4')](_0x56c765['name']);if(_0x56c765['isBlock']){const _0xb6e08a=function(_0x432a46,_0x14c6b6){const _0x262ca1=new Set();for(const _0x5ba0ae of _0x432a46){const _0x1643fa=_0x5ba0ae[_0x321b('0x8')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x36c000 of _0x1643fa)if(_0x14c6b6[_0x321b('0x4')](_0x36c000[_0x321b('0x26')])){_0x262ca1[_0x321b('0x1d')](_0x36c000);break;}}return _0x262ca1;}(_0x4a1a2f[_0x321b('0x2a')](),_0x56c765[_0x321b('0xc')]);_0x1faa37[_0x321b('0xb')][_0x321b('0x21')](()=>{for(const _0x208f5f of _0xb6e08a)_0x297cb1[_0x321b('0x24')](_0x208f5f,{'commandName':_0x321b('0x14'),'commandParams':[{'styleName':_0x15013e,'forceValue':_0x4be148}],'formatGroupId':_0x321b('0x6')+_0x15013e});});}else{let _0x6aacee=Array[_0x321b('0x27')](_0x4a1a2f[_0x321b('0xf')]());if(!_0x4be148){const _0x3dc02a=Array[_0x321b('0x27')](_0x4598ef[_0x321b('0x13')](_0x56c765['element'],!0x1))[0x0][_0x321b('0xb')],_0x42e4f5=[];for(const _0x17c70d of _0x6aacee){const _0xc9ee9b=this[_0x321b('0x11')](_0x1faa37[_0x321b('0xb')],_0x17c70d,_0x56c765[_0x321b('0x15')],_0x3dc02a);_0x42e4f5['push'](..._0xc9ee9b);}_0x6aacee=_0x42e4f5;}_0x1faa37[_0x321b('0xb')]['change'](()=>{for(const _0x5ec70d of _0x6aacee)_0x297cb1[_0x321b('0x7')](_0x5ec70d,{'commandName':'style','commandParams':[{'styleName':_0x15013e,'forceValue':_0x4be148}]});});}}),_0x297cb1['_descriptionFactory'][_0x321b('0x19')](_0x2cb5e1=>{const {data:_0x3d94e4}=_0x2cb5e1;if(_0x3d94e4&&_0x321b('0x14')===_0x3d94e4[_0x321b('0x29')])return _0x3d94e4[_0x321b('0x5')][0x0]['forceValue']?{'type':_0x321b('0xa'),'content':_0x39fafc(_0x2b44fa,_0x321b('0x16'),_0x3d94e4[_0x321b('0x5')][0x0]['styleName'][_0x321b('0x3')]())}:{'type':_0x321b('0xa'),'content':_0x39fafc(_0x2b44fa,_0x321b('0x2'),_0x3d94e4[_0x321b('0x5')][0x0][_0x321b('0x25')][_0x321b('0x3')]())};});}[_0x321b('0x2c')](_0xf2d1c2,_0x3aef75){let _0x400452=_0x3aef75[_0x321b('0x0')][_0x321b('0x12')](_0x4be6a2=>_0x4be6a2[_0x321b('0x26')]===_0xf2d1c2);return _0x400452||(_0x400452=_0x3aef75[_0x321b('0x18')][_0x321b('0x12')](_0x5eaaa6=>_0x5eaaa6[_0x321b('0x26')]===_0xf2d1c2)),_0x400452;}['getRangesWithClasses'](_0x360d1d,_0x9efcfe,_0x325512,_0x3f5609){const _0x120ca8=[];for(const _0x43be42 of _0x9efcfe[_0x321b('0x1e')]()){const _0x2eafb9=_0x43be42[_0x321b('0x23')](_0x3f5609);_0x2eafb9&&(_0x325512[_0x321b('0x1f')](_0x2eb7e1=>_0x2eafb9['classes']['includes'](_0x2eb7e1))&&_0x120ca8[_0x321b('0xd')](_0x360d1d[_0x321b('0x9')](_0x43be42)));}return _0x120ca8;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5864=['showSuggestionHighlights','getRanges','_acceptFormatSuggestionCallbackFactory','min','selectTableColumn','insertion','afterInit','insertTableRowBelow','registerCustomCallback','getItems','getColumnIndexes','commands','root','end','join','createRangeOn','data','tableCell','rowspan','$graveyard','element','MIN_SAFE_INTEGER','enableCommand','selection','insertTableColumnRight','*Remove:*\x20%0','nodeBefore','name','batch','ELEMENT_TABLE_WITH_TEXT','createTableWalker','execute','createPositionAt','addMarker:suggestion','maxRow','length','cell','ELEMENT_TABLE_ROW_WITH_TEXT','getContainedElement','deletion','getAttribute','change:data','ELEMENT_TABLE_COLUMN_WITH_TEXT','first','markMultiRangeInsertion','classes','getRowIndexes','getChangedMarkers','tableRow','accept','plugins','type','selectTableRow','get','registerPostFixer','values','_splitMarkerName','toLowerCase','removeTableColumn','start','insertTableRowAbove','options','getChanges','addRange','position','textProxy','discard','isIntersectingWithRange','TableEditing','insertTableColumnLeft','isArray','_getSuggestionCoords','ELEMENT_TABLE_ROW','_suggestionFactory','createRangeIn','above','model','colspan','fromRange','max','_setupColumnsRowsFixing','insert','findAncestor','oldRange','from','getSelectionAffectedTableCells','substr','markMultiRangeDeletion','differ','has','rootName','maxColumn','nodeAfter','ELEMENT_TABLE_COLUMN','some','change','locale','table','forceValue','addClass','getCellLocation','isInContent','_tableSuggestions','suggestion','MAX_SAFE_INTEGER','setSelection','add','_descriptionFactory','filter','writer','subType','order','detach','includes','refresh','toViewElement','removeTableRow','isEqual','enqueueChange','getChildren','_getCoordsForCells','last','map','TrackChangesEditing','_tablePostFixingSubtypes','*Insert:*\x20%0','editor','highest','span','minColumn','hasAttribute','minRow','getSuggestion','document','tableColumn','left','removeClass'];(function(_0x20a10e,_0x5864d7){const _0x51223a=function(_0xa908d8){while(--_0xa908d8){_0x20a10e['push'](_0x20a10e['shift']());}};_0x51223a(++_0x5864d7);}(_0x5864,0xed));const _0x5122=function(_0x20a10e,_0x5864d7){_0x20a10e=_0x20a10e-0x0;let _0x51223a=_0x5864[_0x20a10e];return _0x51223a;};import{Plugin as _0x208c04}from'ckeditor5/src/core';import{LiveRange as _0x2f294c}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3ca9e5}from'ckeditor5/src/widget';import{getTranslation as _0x5a6c0f}from'../utils/common-translations';export default class ft extends _0x208c04{constructor(_0xa5de45){super(_0xa5de45),this[_0x5122('0x18')]=[_0x5122('0x55'),_0x5122('0x22')];}[_0x5122('0x2b')](){const _0x505e0b=this[_0x5122('0x1a')],_0x407a9f=_0x505e0b[_0x5122('0x71')][_0x5122('0x21')][_0x5122('0x3c')];if(!_0x505e0b[_0x5122('0x57')][_0x5122('0x7e')](_0x5122('0x69')))return;const _0x720761=_0x505e0b[_0x5122('0x85')],_0x54d845=_0x505e0b[_0x5122('0x57')]['get'](_0x5122('0x17')),_0x568726=_0x505e0b['plugins'][_0x5122('0x5a')]('TableUtils');_0x54d845[_0x5122('0x7')]['registerElementLabel']('table',_0x1194a3=>_0x5a6c0f(_0x720761,'ELEMENT_TABLE',_0x1194a3)),this['_setupColumnsRowsFixing'](),_0x54d845['enableCommand']('insertTable'),_0x54d845[_0x5122('0x3b')](_0x5122('0x59')),_0x54d845[_0x5122('0x3b')](_0x5122('0x29'));for(const _0x4b0885 of[_0x5122('0x61'),_0x5122('0x2c')]){const _0x2832eb=_0x505e0b[_0x5122('0x30')]['get'](_0x4b0885);_0x54d845[_0x5122('0x3b')](_0x4b0885,_0x39c120=>{_0x505e0b[_0x5122('0x71')][_0x5122('0x84')](_0xc874b=>{_0x39c120();const _0x180737=_0x5122('0x70')===_0x2832eb[_0x5122('0xb')],_0x5d5113=_0x568726[_0x5122('0x7a')](_0x407a9f),_0x24fa66=_0x568726[_0x5122('0x53')](_0x5d5113),_0x1b8fcf=_0x180737?_0x24fa66[_0x5122('0x50')]-0x1:_0x24fa66['last']+0x1,_0x47345e=_0x5d5113[0x0]['findAncestor'](_0x5122('0x86')),_0x216455=_0x568726['createTableWalker'](_0x47345e,{'startRow':_0x1b8fcf,'endRow':_0x1b8fcf}),_0xe8ab34=Array[_0x5122('0x79')](_0x216455)['map'](_0xd619c5=>_0xc874b[_0x5122('0x34')](_0xd619c5[_0x5122('0x49')]));_0x54d845[_0x5122('0x51')](_0xe8ab34,_0x5122('0x55'));});});}for(const _0x3dfae6 of[_0x5122('0x6a'),_0x5122('0x3d')]){const _0x17b126=_0x505e0b['commands'][_0x5122('0x5a')](_0x3dfae6);_0x54d845['enableCommand'](_0x3dfae6,_0x41b734=>{_0x505e0b['model']['change'](_0x180a8f=>{_0x41b734();const _0x12f6cf=_0x5122('0x23')===_0x17b126[_0x5122('0xb')],_0x34de81=_0x568726['getSelectionAffectedTableCells'](_0x407a9f),_0x5a6eab=_0x568726[_0x5122('0x2f')](_0x34de81),_0x481c02=_0x12f6cf?_0x5a6eab['first']-0x1:_0x5a6eab[_0x5122('0x15')]+0x1,_0x321978=_0x34de81[0x0][_0x5122('0x77')](_0x5122('0x86')),_0x1d1997=_0x568726[_0x5122('0x43')](_0x321978,{'startRow':0x0,'column':_0x481c02,'includeAllSlots':!0x1}),_0x34b682=Array['from'](_0x1d1997)[_0x5122('0x16')](_0x118cef=>_0x180a8f[_0x5122('0x34')](_0x118cef['cell']));_0x54d845[_0x5122('0x51')](_0x34b682,_0x5122('0x22'));});});}for(const _0x324b4f of[_0x5122('0x10'),'removeTableColumn']){const _0x5894f4=_0x324b4f['substr'](0xb),_0x1eceb6=_0x5894f4['toLowerCase'](),_0x2f5940=_0x1eceb6[_0x5122('0x7b')](0x0,0x3)+_0x5122('0x1c'),_0xac7cec='table'+_0x5894f4,_0x3a1808=_0x5122('0x28')+_0x5894f4,_0xbeaf9f=_0x5122('0x74')+_0x5894f4;_0x54d845[_0x5122('0x3b')](_0x324b4f,()=>{_0x505e0b['model'][_0x5122('0x84')](_0x4dc7d4=>{const _0x314ef3=_0x568726[_0x5122('0x7a')](_0x407a9f),_0x51988e=_0x314ef3[0x0][_0x5122('0x77')](_0x5122('0x86'));let _0x526bbd;if(_0x5122('0x10')==_0x324b4f){const _0x4f26ca=_0x568726[_0x5122('0x53')](_0x314ef3);_0x526bbd={'startRow':_0x4f26ca[_0x5122('0x50')],'endRow':_0x4f26ca[_0x5122('0x15')],'includeAllSlots':!0x0};}else{const _0x25e103=_0x568726['getColumnIndexes'](_0x314ef3);_0x526bbd={'startColumn':_0x25e103[_0x5122('0x50')],'endColumn':_0x25e103[_0x5122('0x15')],'includeAllSlots':!0x0};}const _0x36c6c1=_0x568726[_0x5122('0x43')](_0x51988e,_0x526bbd),_0x23bfa6=Array[_0x5122('0x79')](_0x36c6c1)['map'](({cell:_0x15621b})=>_0x15621b),_0x447fb0=oe(_0x23bfa6['filter'](_0x146157=>_0x146157['hasAttribute'](_0x2f5940))),_0x4ab0f1=oe(_0x23bfa6['filter'](_0x49ea5b=>!_0x49ea5b['hasAttribute'](_0x2f5940)))[_0x5122('0x16')](_0xc6239e=>_0x4dc7d4['createRangeOn'](_0xc6239e)),_0x8d84fa=_0x54d845[_0x5122('0x7c')](_0x4ab0f1,_0xac7cec);if(_0x8d84fa&&(_0x5122('0x55')==_0x8d84fa[_0x5122('0xa')]||'tableColumn'==_0x8d84fa[_0x5122('0xa')])){const _0x1ee52e=this['_getSuggestionCoords'](_0x8d84fa);for(const _0xfc5fc1 of _0x447fb0){const _0x3e4043=_0x4dc7d4[_0x5122('0x34')](_0xfc5fc1),_0xe921d1=_0x568726['getCellLocation'](_0xfc5fc1),_0x41189e=_0xfc5fc1['getAttribute'](_0x2f5940)-0x1,_0x143a8e=_0x1ee52e[_0x3a1808],_0x5dc162=_0x1ee52e[_0xbeaf9f];_0x143a8e<=_0xe921d1[_0x1eceb6]&&_0xe921d1[_0x1eceb6]+_0x41189e<=_0x5dc162&&_0x8d84fa[_0x5122('0x64')](_0x3e4043);}}});});}function _0x13a5dc(_0x237626){const _0x2ffd03=Array['from'](_0x407a9f['getRanges']())[_0x5122('0x16')](_0x1d225a=>_0x2f294c[_0x5122('0x73')](_0x1d225a));_0x505e0b[_0x5122('0x71')][_0x5122('0x84')](_0x2ffd45=>{const _0x281c52=_0x2ffd45[_0x5122('0x41')];_0x237626=_0x237626[_0x5122('0x8')](_0x314e07=>_0x5122('0x38')!=_0x314e07[_0x5122('0x31')][_0x5122('0x7f')]),_0x2ffd45[_0x5122('0x5')](_0x237626),_0x505e0b['commands'][_0x5122('0x5a')](_0x5122('0x10'))['refresh'](),_0x505e0b[_0x5122('0x44')](_0x5122('0x10'),{'forceDefaultExecution':!0x0}),_0x505e0b[_0x5122('0x71')]['enqueueChange'](()=>{_0x505e0b['model'][_0x5122('0x12')](_0x281c52,_0xc4c2a=>{const _0x288f90=_0x2ffd03['filter'](_0x914dbb=>_0x5122('0x38')!=_0x914dbb[_0x5122('0x31')][_0x5122('0x7f')]);_0x288f90[_0x5122('0x48')]>0x0&&_0xc4c2a[_0x5122('0x5')](_0x288f90);for(const _0x4844e6 of _0x2ffd03)_0x4844e6[_0x5122('0xc')]();});});});}function _0x1b11dd(_0x24650f){_0x505e0b[_0x5122('0x71')][_0x5122('0x84')](_0x134416=>{const _0x5721c5=Array[_0x5122('0x79')](_0x407a9f[_0x5122('0x26')]())[_0x5122('0x16')](_0x1ebd6b=>_0x2f294c[_0x5122('0x73')](_0x1ebd6b)),_0x4fe07e=[];for(const _0x9a64c1 of _0x24650f)for(const _0x13dd6c of _0x9a64c1['getItems']({'shallow':!0x0}))_0x4fe07e['push'](_0x13dd6c);for(const _0x51e17d of _0x4fe07e)_0x5122('0x38')!=_0x51e17d[_0x5122('0x31')][_0x5122('0x7f')]&&(_0x134416['setSelection'](_0x134416[_0x5122('0x45')](_0x51e17d,0x0)),_0x505e0b[_0x5122('0x30')][_0x5122('0x5a')](_0x5122('0x5f'))[_0x5122('0xe')](),_0x505e0b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4d6a83=_0x5721c5[_0x5122('0x8')](_0x9ddf16=>_0x5122('0x38')!=_0x9ddf16[_0x5122('0x31')]['rootName']);_0x4d6a83['length']>0x0&&_0x134416[_0x5122('0x5')](_0x4d6a83);for(const _0x5dff35 of _0x5721c5)_0x5dff35['detach']();});}function _0x2e21ae(_0x73be21,_0x4f40bb){return _0x4f40bb['every'](_0x6a8b3=>_0x73be21['some'](_0x1069bb=>_0x1069bb[_0x5122('0x32')][_0x5122('0x11')](_0x6a8b3[_0x5122('0x60')])||_0x6a8b3['end'][_0x5122('0x11')](_0x1069bb[_0x5122('0x60')])));}function _0xbf2ecb(_0x24ad88,_0xe18ea9){return _0x24ad88[_0x5122('0x83')](_0x33d20e=>_0xe18ea9[_0x5122('0x83')](_0x270bb8=>_0x33d20e[_0x5122('0x32')]['isTouching'](_0x270bb8[_0x5122('0x60')])));}_0x505e0b[_0x5122('0x35')]['downcastDispatcher']['on'](_0x5122('0x46'),(_0x50a1ae,_0xe7c5e2,_0x210ad7)=>{if(!_0x210ad7[_0x5122('0x62')][_0x5122('0x25')])return;const _0x3eb079=_0xe7c5e2['item'];if(!_0x3eb079)return;const _0x1322ad=_0x210ad7['mapper'][_0x5122('0xf')](_0x3eb079);function _0x465a48(_0xbdb571){return Array[_0x5122('0x6b')](_0xbdb571)?_0xbdb571:[_0xbdb571];}_0x1322ad&&'tableCell'===_0x3eb079[_0x5122('0x40')]&&_0x3ca9e5(_0x1322ad,_0x210ad7[_0x5122('0x9')],(_0x441709,_0x164a1e,_0x4ad64a)=>_0x4ad64a[_0x5122('0x88')](_0x465a48(_0x164a1e['classes']),_0x441709),(_0x1df8a7,_0x30a744,_0x3cbcb1)=>_0x3cbcb1[_0x5122('0x24')](_0x465a48(_0x30a744[_0x5122('0x52')]),_0x1df8a7));},{'priority':_0x5122('0x1b')}),_0x54d845[_0x5122('0x7')]['registerDescriptionCallback'](_0x8de01b=>{if('insertion'!=_0x8de01b[_0x5122('0x58')]&&_0x5122('0x4c')!=_0x8de01b[_0x5122('0x58')])return;const _0x5a0efa=_0x8de01b[_0x5122('0x4b')]();if(null!=_0x5a0efa&&_0x5a0efa['is'](_0x5122('0x39'),_0x5122('0x86'))){if('insertion'==_0x8de01b[_0x5122('0x58')]){const _0x43cc90=_0x8de01b[_0x5122('0x2e')]()[_0x5122('0x8')](_0x1dd729=>_0x1dd729['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x5945f9=>_0x5945f9[_0x5122('0x35')]);if(_0x43cc90[_0x5122('0x48')])return{'type':_0x5122('0x2a'),'content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x42'),'\x22'+_0x43cc90[_0x5122('0x33')]('\x20')+'\x22'))};}if(_0x5122('0x4c')==_0x8de01b[_0x5122('0x58')]){const _0x52abe2=_0x8de01b[_0x5122('0x2e')]()['filter'](_0x3b397b=>_0x3b397b['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x19e670=>_0x19e670[_0x5122('0x35')]);if(_0x52abe2[_0x5122('0x48')])return{'type':_0x5122('0x4c'),'content':_0x5a6c0f(_0x720761,_0x5122('0x3e'),_0x5a6c0f(_0x720761,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x52abe2[_0x5122('0x33')]('\x20')+'\x22'))};}}}),_0x54d845[_0x5122('0x7')]['registerDescriptionCallback'](_0x369517=>{if(_0x5122('0x55')==_0x369517[_0x5122('0xa')]){const _0x7378de=_0x369517[_0x5122('0x2e')]()[_0x5122('0x8')](_0x49229b=>_0x49229b['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x5b7ffe=>_0x5b7ffe['data']),_0x4c347a=this[_0x5122('0x6c')](_0x369517),_0x7d8f21=_0x4c347a[_0x5122('0x47')]-_0x4c347a[_0x5122('0x1f')]+0x1;if(_0x5122('0x2a')==_0x369517[_0x5122('0x58')])return _0x7378de[_0x5122('0x48')]?{'type':_0x5122('0x2a'),'content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x4a'),[_0x7d8f21,'\x22'+_0x7378de[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x6d'),_0x7d8f21))};if(_0x5122('0x4c')==_0x369517[_0x5122('0x58')])return _0x7378de[_0x5122('0x48')]?{'type':_0x5122('0x4c'),'content':_0x5a6c0f(_0x720761,_0x5122('0x3e'),_0x5a6c0f(_0x720761,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7d8f21,'\x22'+_0x7378de[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x5a6c0f(_0x720761,'*Remove:*\x20%0',_0x5a6c0f(_0x720761,_0x5122('0x6d'),_0x7d8f21))};}if(_0x5122('0x22')==_0x369517[_0x5122('0xa')]){const _0x4b4948=_0x369517[_0x5122('0x2e')]()['filter'](_0x24901a=>_0x24901a['is'](_0x5122('0x66')))[_0x5122('0x16')](_0x4e57f3=>_0x4e57f3[_0x5122('0x35')]),_0x1c64c1=this[_0x5122('0x6c')](_0x369517),_0x35d952=_0x1c64c1[_0x5122('0x80')]-_0x1c64c1[_0x5122('0x1d')]+0x1;if('insertion'==_0x369517[_0x5122('0x58')])return _0x4b4948[_0x5122('0x48')]?{'type':'insertion','content':_0x5a6c0f(_0x720761,_0x5122('0x19'),_0x5a6c0f(_0x720761,_0x5122('0x4f'),[_0x35d952,'\x22'+_0x4b4948[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':_0x5122('0x2a'),'content':_0x5a6c0f(_0x720761,'*Insert:*\x20%0',_0x5a6c0f(_0x720761,_0x5122('0x82'),_0x35d952))};if(_0x5122('0x4c')==_0x369517[_0x5122('0x58')])return _0x4b4948[_0x5122('0x48')]?{'type':_0x5122('0x4c'),'content':_0x5a6c0f(_0x720761,'*Remove:*\x20%0',_0x5a6c0f(_0x720761,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35d952,'\x22'+_0x4b4948[_0x5122('0x33')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x5a6c0f(_0x720761,'*Remove:*\x20%0',_0x5a6c0f(_0x720761,_0x5122('0x82'),_0x35d952))};}}),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x2a'),_0x5122('0x55'),_0x5122('0x67'),_0x13a5dc),_0x54d845['_suggestionFactory']['registerCustomCallback'](_0x5122('0x4c'),_0x5122('0x55'),_0x5122('0x56'),_0x13a5dc),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x2a'),_0x5122('0x22'),_0x5122('0x67'),_0x1b11dd),_0x54d845['_suggestionFactory']['registerCustomCallback']('deletion',_0x5122('0x22'),'accept',_0x1b11dd),_0x54d845[_0x5122('0x6e')]['registerCustomCallback'](_0x5122('0x2a'),_0x5122('0x22'),'join',_0x2e21ae),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x4c'),_0x5122('0x22'),'join',_0x2e21ae),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')]('insertion','tableRow',_0x5122('0x33'),_0xbf2ecb),_0x54d845[_0x5122('0x6e')][_0x5122('0x2d')](_0x5122('0x4c'),'tableRow','join',_0xbf2ecb);}[_0x5122('0x27')](){const _0x36bc76=this[_0x5122('0x1a')],_0x26a64f=_0x36bc76[_0x5122('0x71')][_0x5122('0x21')]['selection'];return(_0xc2d5bc,_0x1cb86b)=>{_0x36bc76[_0x5122('0x71')]['change'](_0x50f705=>{const {commandName:_0x2bb597,commandParams:_0x563e1d}=_0x1cb86b;let _0x12deae=_0xc2d5bc[0x0][_0x5122('0x32')][_0x5122('0x3f')];_0x563e1d&&_0x563e1d[0x0]&&!0x1===_0x563e1d[0x0][_0x5122('0x87')]&&(_0x12deae=_0xc2d5bc[0x0][_0x5122('0x60')][_0x5122('0x81')]);const _0x29f14d=_0x50f705[_0x5122('0x6f')](_0x12deae);if('$graveyard'==_0x29f14d[_0x5122('0x31')][_0x5122('0x7f')])return;const _0x3aeddb=Array[_0x5122('0x79')](_0x26a64f['getRanges']())[_0x5122('0x16')](_0x5c8ab5=>_0x2f294c[_0x5122('0x73')](_0x5c8ab5));_0x50f705[_0x5122('0x5')](_0x29f14d),_0x36bc76[_0x5122('0x30')][_0x5122('0x5a')](_0x2bb597)[_0x5122('0xe')](),_0x563e1d['push']({'forceDefaultExecution':!0x0}),_0x36bc76[_0x5122('0x44')](_0x2bb597,..._0x563e1d);const _0x488876=_0x3aeddb['filter'](_0x280e75=>_0x5122('0x38')!=_0x280e75[_0x5122('0x31')][_0x5122('0x7f')]);_0x488876[_0x5122('0x48')]>0x0&&_0x50f705['setSelection'](_0x488876);for(const _0x169f62 of _0x3aeddb)_0x169f62['detach']();});};}['_getCoordsForCells'](_0x471ff5){const _0x22d1f6=this[_0x5122('0x1a')]['plugins'][_0x5122('0x5a')]('TableUtils');let _0x4d5e20=Number[_0x5122('0x4')],_0x32b8ac=Number['MIN_SAFE_INTEGER'],_0x1c50d3=Number[_0x5122('0x4')],_0x37fe7e=Number[_0x5122('0x3a')];for(const _0x5b819c of _0x471ff5){if('$graveyard'==_0x5b819c[_0x5122('0x31')][_0x5122('0x7f')])continue;const {row:_0x22be42,column:_0x3b01d1}=_0x22d1f6[_0x5122('0x0')](_0x5b819c),_0x2e26d3=_0x5b819c['hasAttribute'](_0x5122('0x37'))?_0x5b819c[_0x5122('0x4d')](_0x5122('0x37'))-0x1:0x0,_0x1c9853=_0x5b819c[_0x5122('0x1e')](_0x5122('0x72'))?_0x5b819c[_0x5122('0x4d')](_0x5122('0x72'))-0x1:0x0;_0x4d5e20=_0x22be42<_0x4d5e20?_0x22be42:_0x4d5e20,_0x32b8ac=_0x22be42+_0x2e26d3>_0x32b8ac?_0x22be42+_0x2e26d3:_0x32b8ac,_0x1c50d3=_0x3b01d1<_0x1c50d3?_0x3b01d1:_0x1c50d3,_0x37fe7e=_0x3b01d1+_0x1c9853>_0x37fe7e?_0x3b01d1+_0x1c9853:_0x37fe7e;}return{'minRow':_0x4d5e20,'maxRow':_0x32b8ac,'minColumn':_0x1c50d3,'maxColumn':_0x37fe7e};}[_0x5122('0x75')](){const _0x3b53dd=this[_0x5122('0x1a')],_0x348af8=_0x3b53dd[_0x5122('0x57')][_0x5122('0x5a')](_0x5122('0x17')),_0x2719fb=_0x3b53dd['plugins'][_0x5122('0x5a')]('TableUtils');this[_0x5122('0x2')]=new Set(),_0x3b53dd[_0x5122('0x71')][_0x5122('0x21')]['on'](_0x5122('0x4e'),()=>{const _0xfc194b=Array[_0x5122('0x79')](_0x3b53dd[_0x5122('0x71')]['document']['differ'][_0x5122('0x54')]());for(const {name:_0x19523e,data:_0x4c8785}of _0xfc194b){const {group:_0x50e927,id:_0x149be4,subType:_0x4e76d8}=_0x348af8[_0x5122('0x5d')](_0x19523e);if(_0x5122('0x3')!=_0x50e927)continue;if(null!=_0x4c8785[_0x5122('0x78')])continue;const _0x517868=_0x348af8[_0x5122('0x20')](_0x149be4);this[_0x5122('0x18')][_0x5122('0xd')](_0x4e76d8)&&this[_0x5122('0x2')][_0x5122('0x6')](_0x517868);}},{'priority':'low'});const _0x23206a=(_0x261749,_0x25ab4a)=>{let _0x5307f3=!0x1;const _0x530351=_0x25ab4a['createRangeOn'](_0x261749),_0x44d717=_0x261749['findAncestor'](_0x5122('0x86')),_0x47dba8=_0x2719fb[_0x5122('0x0')](_0x261749);for(const _0x312dd3 of this[_0x5122('0x2')]){const _0x50856e=_0x312dd3[_0x5122('0xa')],_0x5bbb87=_0x50856e['startsWith']('tablePaste'),_0x5881e0=_0x50856e[_0x5122('0x7b')](_0x5bbb87?0xa:0x5),_0x10aea1=_0x5881e0[_0x5122('0x5e')](),_0x23c0b2=_0x10aea1['substr'](0x0,0x3)+'span',_0x1d033e=_0x5122('0x28')+_0x5881e0,_0x4cf195='max'+_0x5881e0;if(!_0x312dd3[_0x5122('0x1')])continue;if(_0x44d717!=_0x312dd3['getFirstRange']()[_0x5122('0x60')]['findAncestor'](_0x5122('0x86')))continue;if(_0x312dd3[_0x5122('0x68')](_0x530351))continue;const _0x5bfa33=_0x261749['hasAttribute'](_0x23c0b2)?_0x261749[_0x5122('0x4d')](_0x23c0b2)-0x1:0x0,_0x1cba5a=this[_0x5122('0x6c')](_0x312dd3),_0x220f04=_0x1cba5a[_0x1d033e],_0x1e2343=_0x1cba5a[_0x4cf195];_0x220f04<=_0x47dba8[_0x10aea1]&&_0x47dba8[_0x10aea1]+_0x5bfa33<=_0x1e2343&&(_0x312dd3[_0x5122('0x64')](_0x530351),_0x5307f3=!0x0);}return _0x5307f3;};_0x3b53dd[_0x5122('0x71')][_0x5122('0x21')][_0x5122('0x5b')](_0x1e340b=>{let _0x1309e8=!0x1;for(const _0x3cba40 of _0x3b53dd[_0x5122('0x71')][_0x5122('0x21')][_0x5122('0x7d')][_0x5122('0x63')]())if(_0x5122('0x76')==_0x3cba40['type']){if(_0x5122('0x55')==_0x3cba40[_0x5122('0x40')])for(const _0x550bfe of _0x3cba40[_0x5122('0x65')]['nodeAfter'][_0x5122('0x13')]())_0x1309e8=_0x1309e8||_0x23206a(_0x550bfe,_0x1e340b);else _0x5122('0x36')==_0x3cba40[_0x5122('0x40')]&&(_0x1309e8=_0x1309e8||_0x23206a(_0x3cba40[_0x5122('0x65')][_0x5122('0x81')],_0x1e340b));}return _0x1309e8;});}[_0x5122('0x6c')](_0x29a8c3){return this[_0x5122('0x14')](_0x29a8c3[_0x5122('0x26')]()[_0x5122('0x16')](_0x385686=>_0x385686[_0x5122('0x60')][_0x5122('0x81')]));}}function oe(_0x1299a8){return Array[_0x5122('0x79')](new Set(_0x1299a8)[_0x5122('0x5c')]());}
|
|
23
|
+
const _0x3ecc=['minRow','suggestion','plugins','length','get','accept','getRanges','nodeAfter','getSuggestion','getAttribute','registerElementLabel','getCellLocation','rootName','isTouching','getChildren','writer','root','options','start','insert','showSuggestionHighlights','toViewElement','cell','downcastDispatcher','from','rowspan','insertTableColumnRight','first','subType','tablePaste','getChanges','createRangeIn','TableEditing','MIN_SAFE_INTEGER','ELEMENT_TABLE_COLUMN','change:data','markMultiRangeDeletion','textProxy','findAncestor','createTableWalker','insertTableRowBelow','above','_tablePostFixingSubtypes','getSelectionAffectedTableCells','batch','TrackChangesEditing','colspan','_tableSuggestions','map','includes','document','refresh','*Insert:*\x20%0','oldRange','substr','createRangeOn','insertTableColumnLeft','has','maxRow','isArray','_setupColumnsRowsFixing','end','_getCoordsForCells','model','_splitMarkerName','commands','ELEMENT_TABLE','join','position','removeTableColumn','registerCustomCallback','startsWith','hasAttribute','addRange','push','ELEMENT_TABLE_COLUMN_WITH_TEXT','add','getItems','_getSuggestionCoords','ELEMENT_TABLE_WITH_TEXT','execute','classes','editor','every','*Remove:*\x20%0','table','isIntersectingWithRange','enqueueChange','nodeBefore','getContainedElement','registerPostFixer','type','toLowerCase','isInContent','_descriptionFactory','fromRange','removeTableRow','getColumnIndexes','max','createPositionAt','removeClass','insertTable','left','last','ELEMENT_TABLE_ROW_WITH_TEXT','some','insertion','min','tableRow','setSelection','isEqual','change','order','ELEMENT_TABLE_ROW','detach','selectTableColumn','enableCommand','addClass','tableCell','filter','data','selection','registerDescriptionCallback','differ','TableUtils','name','forceValue','maxColumn','_suggestionFactory','$graveyard','tableColumn','afterInit','mapper','span','getRowIndexes','getChangedMarkers','MAX_SAFE_INTEGER','deletion','markMultiRangeInsertion'];(function(_0xdf81e2,_0x3eccb5){const _0xe0247=function(_0x247da8){while(--_0x247da8){_0xdf81e2['push'](_0xdf81e2['shift']());}};_0xe0247(++_0x3eccb5);}(_0x3ecc,0x9e));const _0xe024=function(_0xdf81e2,_0x3eccb5){_0xdf81e2=_0xdf81e2-0x0;let _0xe0247=_0x3ecc[_0xdf81e2];return _0xe0247;};import{Plugin as _0x225fb5}from'ckeditor5/src/core';import{LiveRange as _0x455a87}from'ckeditor5/src/engine';import{setHighlightHandling as _0x29112c}from'ckeditor5/src/widget';import{getTranslation as _0x590e85}from'../utils/common-translations';export default class dt extends _0x225fb5{constructor(_0x539bcf){super(_0x539bcf),this['_tablePostFixingSubtypes']=[_0xe024('0x59'),_0xe024('0x6f')];}[_0xe024('0x70')](){const _0xa08c75=this[_0xe024('0x3f')],_0x58898c=_0xa08c75[_0xe024('0x2c')][_0xe024('0x1f')]['selection'];if(!_0xa08c75[_0xe024('0x7a')][_0xe024('0x26')](_0xe024('0xd')))return;const _0x20dcd4=_0xa08c75['locale'],_0x326517=_0xa08c75[_0xe024('0x7a')]['get'](_0xe024('0x1a')),_0x31e079=_0xa08c75[_0xe024('0x7a')]['get'](_0xe024('0x69'));_0x326517[_0xe024('0x4b')][_0xe024('0x82')](_0xe024('0x42'),_0x59f657=>_0x590e85(_0x20dcd4,_0xe024('0x2f'),_0x59f657)),this[_0xe024('0x29')](),_0x326517[_0xe024('0x61')](_0xe024('0x52')),_0x326517[_0xe024('0x61')]('selectTableRow'),_0x326517[_0xe024('0x61')](_0xe024('0x60'));for(const _0x144bd5 of['insertTableRowAbove',_0xe024('0x15')]){const _0xadc1af=_0xa08c75[_0xe024('0x2e')][_0xe024('0x7c')](_0x144bd5);_0x326517[_0xe024('0x61')](_0x144bd5,_0x10b15b=>{_0xa08c75['model'][_0xe024('0x5c')](_0x439085=>{_0x10b15b();const _0x9b7495=_0xe024('0x16')===_0xadc1af[_0xe024('0x5d')],_0x1677ae=_0x31e079[_0xe024('0x18')](_0x58898c),_0x3af9cc=_0x31e079['getRowIndexes'](_0x1677ae),_0x17536c=_0x9b7495?_0x3af9cc['first']-0x1:_0x3af9cc[_0xe024('0x54')]+0x1,_0x583585=_0x1677ae[0x0][_0xe024('0x13')](_0xe024('0x42')),_0x9e5c8a=_0x31e079[_0xe024('0x14')](_0x583585,{'startRow':_0x17536c,'endRow':_0x17536c}),_0x2c1752=Array[_0xe024('0x5')](_0x9e5c8a)['map'](_0x4aa2d3=>_0x439085[_0xe024('0x24')](_0x4aa2d3[_0xe024('0x3')]));_0x326517[_0xe024('0x77')](_0x2c1752,'tableRow');});});}for(const _0x72775c of[_0xe024('0x25'),_0xe024('0x7')]){const _0x395914=_0xa08c75[_0xe024('0x2e')]['get'](_0x72775c);_0x326517[_0xe024('0x61')](_0x72775c,_0x101387=>{_0xa08c75[_0xe024('0x2c')]['change'](_0x1cd7eb=>{_0x101387();const _0x3dbf9d=_0xe024('0x53')===_0x395914[_0xe024('0x5d')],_0x328fce=_0x31e079[_0xe024('0x18')](_0x58898c),_0x55fd66=_0x31e079[_0xe024('0x4e')](_0x328fce),_0x368047=_0x3dbf9d?_0x55fd66[_0xe024('0x8')]-0x1:_0x55fd66[_0xe024('0x54')]+0x1,_0x20b94d=_0x328fce[0x0][_0xe024('0x13')](_0xe024('0x42')),_0x2d9938=_0x31e079['createTableWalker'](_0x20b94d,{'startRow':0x0,'column':_0x368047,'includeAllSlots':!0x1}),_0x558896=Array[_0xe024('0x5')](_0x2d9938)['map'](_0x1610f8=>_0x1cd7eb[_0xe024('0x24')](_0x1610f8['cell']));_0x326517[_0xe024('0x77')](_0x558896,'tableColumn');});});}for(const _0x4dd8c5 of[_0xe024('0x4d'),_0xe024('0x32')]){const _0x464c65=_0x4dd8c5['substr'](0xb),_0x2afb97=_0x464c65[_0xe024('0x49')](),_0x1cbc31=_0x2afb97[_0xe024('0x23')](0x0,0x3)+_0xe024('0x72'),_0x4a487b=_0xe024('0x42')+_0x464c65,_0x3e47c2=_0xe024('0x58')+_0x464c65,_0x1b85da=_0xe024('0x4f')+_0x464c65;_0x326517[_0xe024('0x61')](_0x4dd8c5,()=>{_0xa08c75[_0xe024('0x2c')][_0xe024('0x5c')](_0x3d3952=>{const _0x3d3fac=_0x31e079[_0xe024('0x18')](_0x58898c),_0x54beaf=_0x3d3fac[0x0]['findAncestor'](_0xe024('0x42'));let _0x31cafe;if(_0xe024('0x4d')==_0x4dd8c5){const _0xa022f6=_0x31e079[_0xe024('0x73')](_0x3d3fac);_0x31cafe={'startRow':_0xa022f6[_0xe024('0x8')],'endRow':_0xa022f6[_0xe024('0x54')],'includeAllSlots':!0x0};}else{const _0x1091ab=_0x31e079['getColumnIndexes'](_0x3d3fac);_0x31cafe={'startColumn':_0x1091ab[_0xe024('0x8')],'endColumn':_0x1091ab[_0xe024('0x54')],'includeAllSlots':!0x0};}const _0x4c7c05=_0x31e079[_0xe024('0x14')](_0x54beaf,_0x31cafe),_0x448dd8=Array[_0xe024('0x5')](_0x4c7c05)[_0xe024('0x1d')](({cell:_0x11fb76})=>_0x11fb76),_0x84ba24=le(_0x448dd8['filter'](_0x257fbc=>_0x257fbc[_0xe024('0x35')](_0x1cbc31))),_0x261a87=le(_0x448dd8[_0xe024('0x64')](_0x4894fe=>!_0x4894fe['hasAttribute'](_0x1cbc31)))[_0xe024('0x1d')](_0x4c7f41=>_0x3d3952['createRangeOn'](_0x4c7f41)),_0x52e6fb=_0x326517[_0xe024('0x11')](_0x261a87,_0x4a487b);if(_0x52e6fb&&(_0xe024('0x59')==_0x52e6fb[_0xe024('0x9')]||_0xe024('0x6f')==_0x52e6fb['subType'])){const _0x5e303f=this[_0xe024('0x3b')](_0x52e6fb);for(const _0x1e131e of _0x84ba24){const _0x331ab5=_0x3d3952[_0xe024('0x24')](_0x1e131e),_0x548551=_0x31e079['getCellLocation'](_0x1e131e),_0x16f874=_0x1e131e[_0xe024('0x81')](_0x1cbc31)-0x1,_0x144ab5=_0x5e303f[_0x3e47c2],_0x4af4f7=_0x5e303f[_0x1b85da];_0x144ab5<=_0x548551[_0x2afb97]&&_0x548551[_0x2afb97]+_0x16f874<=_0x4af4f7&&_0x52e6fb['addRange'](_0x331ab5);}}});});}function _0x31e932(_0x167ba6){const _0x84a4d3=Array[_0xe024('0x5')](_0x58898c[_0xe024('0x7e')]())[_0xe024('0x1d')](_0x26671b=>_0x455a87[_0xe024('0x4c')](_0x26671b));_0xa08c75[_0xe024('0x2c')][_0xe024('0x5c')](_0x1b2e03=>{const _0x44db1f=_0x1b2e03[_0xe024('0x19')];_0x167ba6=_0x167ba6[_0xe024('0x64')](_0x4c8ccc=>_0xe024('0x6e')!=_0x4c8ccc[_0xe024('0x88')][_0xe024('0x84')]),_0x1b2e03['setSelection'](_0x167ba6),_0xa08c75[_0xe024('0x2e')][_0xe024('0x7c')]('removeTableRow')[_0xe024('0x20')](),_0xa08c75[_0xe024('0x3d')](_0xe024('0x4d'),{'forceDefaultExecution':!0x0}),_0xa08c75[_0xe024('0x2c')][_0xe024('0x44')](()=>{_0xa08c75[_0xe024('0x2c')]['enqueueChange'](_0x44db1f,_0x13707c=>{const _0x4f4a8b=_0x84a4d3[_0xe024('0x64')](_0x437dcb=>_0xe024('0x6e')!=_0x437dcb[_0xe024('0x88')][_0xe024('0x84')]);_0x4f4a8b[_0xe024('0x7b')]>0x0&&_0x13707c['setSelection'](_0x4f4a8b);for(const _0x2a2a0 of _0x84a4d3)_0x2a2a0['detach']();});});});}function _0x5353cf(_0x14d8dc){_0xa08c75[_0xe024('0x2c')][_0xe024('0x5c')](_0x51694b=>{const _0x5c3206=Array['from'](_0x58898c['getRanges']())[_0xe024('0x1d')](_0x26cf7e=>_0x455a87[_0xe024('0x4c')](_0x26cf7e)),_0x86fdcf=[];for(const _0x1ca02d of _0x14d8dc)for(const _0x509895 of _0x1ca02d[_0xe024('0x3a')]({'shallow':!0x0}))_0x86fdcf[_0xe024('0x37')](_0x509895);for(const _0x3e5960 of _0x86fdcf)_0xe024('0x6e')!=_0x3e5960[_0xe024('0x88')]['rootName']&&(_0x51694b[_0xe024('0x5a')](_0x51694b[_0xe024('0x50')](_0x3e5960,0x0)),_0xa08c75[_0xe024('0x2e')][_0xe024('0x7c')](_0xe024('0x32'))[_0xe024('0x20')](),_0xa08c75[_0xe024('0x3d')](_0xe024('0x32'),{'forceDefaultExecution':!0x0}));const _0x37ea6c=_0x5c3206[_0xe024('0x64')](_0x5dc66c=>_0xe024('0x6e')!=_0x5dc66c[_0xe024('0x88')][_0xe024('0x84')]);_0x37ea6c[_0xe024('0x7b')]>0x0&&_0x51694b[_0xe024('0x5a')](_0x37ea6c);for(const _0x341392 of _0x5c3206)_0x341392[_0xe024('0x5f')]();});}function _0x1ea9fa(_0x5f022e,_0x48e4ff){return _0x48e4ff[_0xe024('0x40')](_0x160399=>_0x5f022e['some'](_0x59718d=>_0x59718d[_0xe024('0x2a')][_0xe024('0x5b')](_0x160399[_0xe024('0x8a')])||_0x160399[_0xe024('0x2a')]['isEqual'](_0x59718d[_0xe024('0x8a')])));}function _0x1d6802(_0x12b236,_0x511ac8){return _0x12b236[_0xe024('0x56')](_0x2f0144=>_0x511ac8[_0xe024('0x56')](_0x343b06=>_0x2f0144[_0xe024('0x2a')][_0xe024('0x85')](_0x343b06[_0xe024('0x8a')])));}_0xa08c75[_0xe024('0x65')][_0xe024('0x4')]['on']('addMarker:suggestion',(_0x58657d,_0x1e011c,_0x238823)=>{if(!_0x238823[_0xe024('0x89')][_0xe024('0x1')])return;const _0x4c0b04=_0x1e011c['item'];if(!_0x4c0b04)return;const _0x196764=_0x238823[_0xe024('0x71')][_0xe024('0x2')](_0x4c0b04);function _0x3bfd4a(_0xc1e449){return Array[_0xe024('0x28')](_0xc1e449)?_0xc1e449:[_0xc1e449];}_0x196764&&_0xe024('0x63')===_0x4c0b04[_0xe024('0x6a')]&&_0x29112c(_0x196764,_0x238823[_0xe024('0x87')],(_0x4cac31,_0x2a6bb8,_0x1b84aa)=>_0x1b84aa[_0xe024('0x62')](_0x3bfd4a(_0x2a6bb8['classes']),_0x4cac31),(_0x3a9096,_0x802f03,_0x2d3184)=>_0x2d3184[_0xe024('0x51')](_0x3bfd4a(_0x802f03[_0xe024('0x3e')]),_0x3a9096));},{'priority':'highest'}),_0x326517[_0xe024('0x4b')][_0xe024('0x67')](_0x2ef3eb=>{if('insertion'!=_0x2ef3eb['type']&&_0xe024('0x76')!=_0x2ef3eb[_0xe024('0x48')])return;const _0x29860c=_0x2ef3eb[_0xe024('0x46')]();if(null!=_0x29860c&&_0x29860c['is']('element',_0xe024('0x42'))){if(_0xe024('0x57')==_0x2ef3eb['type']){const _0x2b8b9b=_0x2ef3eb[_0xe024('0x3a')]()[_0xe024('0x64')](_0x557c75=>_0x557c75['is']('textProxy'))['map'](_0x5d6d8c=>_0x5d6d8c[_0xe024('0x65')]);if(_0x2b8b9b[_0xe024('0x7b')])return{'type':_0xe024('0x57'),'content':_0x590e85(_0x20dcd4,'*Insert:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x3c'),'\x22'+_0x2b8b9b[_0xe024('0x30')]('\x20')+'\x22'))};}if('deletion'==_0x2ef3eb[_0xe024('0x48')]){const _0x155948=_0x2ef3eb['getItems']()[_0xe024('0x64')](_0x3abf45=>_0x3abf45['is'](_0xe024('0x12')))[_0xe024('0x1d')](_0x4025a6=>_0x4025a6['data']);if(_0x155948[_0xe024('0x7b')])return{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,_0xe024('0x3c'),'\x22'+_0x155948['join']('\x20')+'\x22'))};}}}),_0x326517[_0xe024('0x4b')][_0xe024('0x67')](_0xa64c68=>{if(_0xe024('0x59')==_0xa64c68[_0xe024('0x9')]){const _0x97ea15=_0xa64c68[_0xe024('0x3a')]()[_0xe024('0x64')](_0x4f474f=>_0x4f474f['is'](_0xe024('0x12')))[_0xe024('0x1d')](_0x5d787e=>_0x5d787e[_0xe024('0x65')]),_0x855e77=this[_0xe024('0x3b')](_0xa64c68),_0x38c796=_0x855e77[_0xe024('0x27')]-_0x855e77[_0xe024('0x78')]+0x1;if(_0xe024('0x57')==_0xa64c68[_0xe024('0x48')])return _0x97ea15[_0xe024('0x7b')]?{'type':'insertion','content':_0x590e85(_0x20dcd4,'*Insert:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x55'),[_0x38c796,'\x22'+_0x97ea15[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':_0xe024('0x57'),'content':_0x590e85(_0x20dcd4,'*Insert:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x5e'),_0x38c796))};if(_0xe024('0x76')==_0xa64c68[_0xe024('0x48')])return _0x97ea15[_0xe024('0x7b')]?{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38c796,'\x22'+_0x97ea15[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,_0xe024('0x5e'),_0x38c796))};}if(_0xe024('0x6f')==_0xa64c68[_0xe024('0x9')]){const _0x5a189a=_0xa64c68[_0xe024('0x3a')]()[_0xe024('0x64')](_0x2edf44=>_0x2edf44['is'](_0xe024('0x12')))[_0xe024('0x1d')](_0x1564b3=>_0x1564b3['data']),_0x4e9ebc=this[_0xe024('0x3b')](_0xa64c68),_0x1f7b61=_0x4e9ebc[_0xe024('0x6c')]-_0x4e9ebc['minColumn']+0x1;if(_0xe024('0x57')==_0xa64c68[_0xe024('0x48')])return _0x5a189a['length']?{'type':'insertion','content':_0x590e85(_0x20dcd4,_0xe024('0x21'),_0x590e85(_0x20dcd4,_0xe024('0x38'),[_0x1f7b61,'\x22'+_0x5a189a[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x590e85(_0x20dcd4,_0xe024('0x21'),_0x590e85(_0x20dcd4,_0xe024('0xf'),_0x1f7b61))};if(_0xe024('0x76')==_0xa64c68[_0xe024('0x48')])return _0x5a189a['length']?{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,'*Remove:*\x20%0',_0x590e85(_0x20dcd4,_0xe024('0x38'),[_0x1f7b61,'\x22'+_0x5a189a[_0xe024('0x30')]('\x20')+'\x22']))}:{'type':_0xe024('0x76'),'content':_0x590e85(_0x20dcd4,_0xe024('0x41'),_0x590e85(_0x20dcd4,_0xe024('0xf'),_0x1f7b61))};}}),_0x326517[_0xe024('0x6d')]['registerCustomCallback']('insertion',_0xe024('0x59'),'discard',_0x31e932),_0x326517['_suggestionFactory'][_0xe024('0x33')](_0xe024('0x76'),_0xe024('0x59'),_0xe024('0x7d'),_0x31e932),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x57'),_0xe024('0x6f'),'discard',_0x5353cf),_0x326517[_0xe024('0x6d')][_0xe024('0x33')]('deletion',_0xe024('0x6f'),'accept',_0x5353cf),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x57'),_0xe024('0x6f'),_0xe024('0x30'),_0x1ea9fa),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x76'),'tableColumn','join',_0x1ea9fa),_0x326517[_0xe024('0x6d')][_0xe024('0x33')](_0xe024('0x57'),_0xe024('0x59'),_0xe024('0x30'),_0x1d6802),_0x326517['_suggestionFactory'][_0xe024('0x33')](_0xe024('0x76'),'tableRow',_0xe024('0x30'),_0x1d6802);}['_acceptFormatSuggestionCallbackFactory'](){const _0x477c8f=this[_0xe024('0x3f')],_0x51add5=_0x477c8f[_0xe024('0x2c')][_0xe024('0x1f')][_0xe024('0x66')];return(_0x1d4b29,_0x1e2dff)=>{_0x477c8f[_0xe024('0x2c')]['change'](_0x209b43=>{const {commandName:_0x26c4dc,commandParams:_0x45bc75}=_0x1e2dff;let _0x416c23=_0x1d4b29[0x0][_0xe024('0x2a')][_0xe024('0x45')];_0x45bc75&&_0x45bc75[0x0]&&!0x1===_0x45bc75[0x0][_0xe024('0x6b')]&&(_0x416c23=_0x1d4b29[0x0][_0xe024('0x8a')][_0xe024('0x7f')]);const _0x4b4ca5=_0x209b43[_0xe024('0xc')](_0x416c23);if(_0xe024('0x6e')==_0x4b4ca5[_0xe024('0x88')][_0xe024('0x84')])return;const _0x44116f=Array[_0xe024('0x5')](_0x51add5[_0xe024('0x7e')]())[_0xe024('0x1d')](_0x4f85fb=>_0x455a87[_0xe024('0x4c')](_0x4f85fb));_0x209b43[_0xe024('0x5a')](_0x4b4ca5),_0x477c8f[_0xe024('0x2e')][_0xe024('0x7c')](_0x26c4dc)['refresh'](),_0x45bc75[_0xe024('0x37')]({'forceDefaultExecution':!0x0}),_0x477c8f[_0xe024('0x3d')](_0x26c4dc,..._0x45bc75);const _0x539895=_0x44116f['filter'](_0xdde904=>_0xe024('0x6e')!=_0xdde904[_0xe024('0x88')]['rootName']);_0x539895['length']>0x0&&_0x209b43['setSelection'](_0x539895);for(const _0x2a04b2 of _0x44116f)_0x2a04b2[_0xe024('0x5f')]();});};}[_0xe024('0x2b')](_0x2d2686){const _0x4a3d4f=this[_0xe024('0x3f')][_0xe024('0x7a')][_0xe024('0x7c')](_0xe024('0x69'));let _0x354d01=Number[_0xe024('0x75')],_0x5aa349=Number[_0xe024('0xe')],_0x542cd9=Number['MAX_SAFE_INTEGER'],_0x1ef829=Number[_0xe024('0xe')];for(const _0x5be040 of _0x2d2686){if(_0xe024('0x6e')==_0x5be040[_0xe024('0x88')][_0xe024('0x84')])continue;const {row:_0x300836,column:_0x413f70}=_0x4a3d4f['getCellLocation'](_0x5be040),_0x38855b=_0x5be040[_0xe024('0x35')](_0xe024('0x6'))?_0x5be040['getAttribute'](_0xe024('0x6'))-0x1:0x0,_0xc2dfcc=_0x5be040['hasAttribute']('colspan')?_0x5be040[_0xe024('0x81')](_0xe024('0x1b'))-0x1:0x0;_0x354d01=_0x300836<_0x354d01?_0x300836:_0x354d01,_0x5aa349=_0x300836+_0x38855b>_0x5aa349?_0x300836+_0x38855b:_0x5aa349,_0x542cd9=_0x413f70<_0x542cd9?_0x413f70:_0x542cd9,_0x1ef829=_0x413f70+_0xc2dfcc>_0x1ef829?_0x413f70+_0xc2dfcc:_0x1ef829;}return{'minRow':_0x354d01,'maxRow':_0x5aa349,'minColumn':_0x542cd9,'maxColumn':_0x1ef829};}['_setupColumnsRowsFixing'](){const _0x227154=this[_0xe024('0x3f')],_0x23bf9e=_0x227154[_0xe024('0x7a')]['get'](_0xe024('0x1a')),_0x5a40f6=_0x227154[_0xe024('0x7a')][_0xe024('0x7c')](_0xe024('0x69'));this[_0xe024('0x1c')]=new Set(),_0x227154[_0xe024('0x2c')][_0xe024('0x1f')]['on'](_0xe024('0x10'),()=>{const _0x2cf80e=Array[_0xe024('0x5')](_0x227154[_0xe024('0x2c')]['document'][_0xe024('0x68')][_0xe024('0x74')]());for(const {name:_0x1cb7a2,data:_0x1ccf9a}of _0x2cf80e){const {group:_0x27b7a7,id:_0x3fd8d6,subType:_0xa1ee6e}=_0x23bf9e[_0xe024('0x2d')](_0x1cb7a2);if(_0xe024('0x79')!=_0x27b7a7)continue;if(null!=_0x1ccf9a[_0xe024('0x22')])continue;const _0xb1495b=_0x23bf9e[_0xe024('0x80')](_0x3fd8d6);this[_0xe024('0x17')][_0xe024('0x1e')](_0xa1ee6e)&&this[_0xe024('0x1c')][_0xe024('0x39')](_0xb1495b);}},{'priority':'low'});const _0x6b3ffb=(_0x1540a2,_0x590db1)=>{let _0x24eb5f=!0x1;const _0x132af0=_0x590db1[_0xe024('0x24')](_0x1540a2),_0x99febe=_0x1540a2[_0xe024('0x13')](_0xe024('0x42')),_0x3b4ab4=_0x5a40f6[_0xe024('0x83')](_0x1540a2);for(const _0x248a62 of this[_0xe024('0x1c')]){const _0xd7297a=_0x248a62[_0xe024('0x9')],_0x35ad61=_0xd7297a[_0xe024('0x34')](_0xe024('0xa')),_0x13a30c=_0xd7297a['substr'](_0x35ad61?0xa:0x5),_0x5bb7cc=_0x13a30c[_0xe024('0x49')](),_0x3ef4b5=_0x5bb7cc[_0xe024('0x23')](0x0,0x3)+_0xe024('0x72'),_0x69a950=_0xe024('0x58')+_0x13a30c,_0xa6ac79=_0xe024('0x4f')+_0x13a30c;if(!_0x248a62[_0xe024('0x4a')])continue;if(_0x99febe!=_0x248a62['getFirstRange']()[_0xe024('0x8a')][_0xe024('0x13')]('table'))continue;if(_0x248a62[_0xe024('0x43')](_0x132af0))continue;const _0x173a17=_0x1540a2[_0xe024('0x35')](_0x3ef4b5)?_0x1540a2[_0xe024('0x81')](_0x3ef4b5)-0x1:0x0,_0x49f94f=this[_0xe024('0x3b')](_0x248a62),_0x2ebc16=_0x49f94f[_0x69a950],_0x4662d2=_0x49f94f[_0xa6ac79];_0x2ebc16<=_0x3b4ab4[_0x5bb7cc]&&_0x3b4ab4[_0x5bb7cc]+_0x173a17<=_0x4662d2&&(_0x248a62[_0xe024('0x36')](_0x132af0),_0x24eb5f=!0x0);}return _0x24eb5f;};_0x227154[_0xe024('0x2c')][_0xe024('0x1f')][_0xe024('0x47')](_0x3e3c4a=>{let _0x5c36a0=!0x1;for(const _0x287d53 of _0x227154[_0xe024('0x2c')][_0xe024('0x1f')][_0xe024('0x68')][_0xe024('0xb')]())if(_0xe024('0x0')==_0x287d53[_0xe024('0x48')]){if(_0xe024('0x59')==_0x287d53[_0xe024('0x6a')])for(const _0x2b805b of _0x287d53[_0xe024('0x31')][_0xe024('0x7f')][_0xe024('0x86')]())_0x5c36a0=_0x5c36a0||_0x6b3ffb(_0x2b805b,_0x3e3c4a);else'tableCell'==_0x287d53['name']&&(_0x5c36a0=_0x5c36a0||_0x6b3ffb(_0x287d53[_0xe024('0x31')][_0xe024('0x7f')],_0x3e3c4a));}return _0x5c36a0;});}[_0xe024('0x3b')](_0x3700d9){return this[_0xe024('0x2b')](_0x3700d9[_0xe024('0x7e')]()[_0xe024('0x1d')](_0x47b196=>_0x47b196[_0xe024('0x8a')][_0xe024('0x7f')]));}}function le(_0x2a87d7){return Array['from'](new Set(_0x2a87d7)['values']());}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c1d=['toggleTableCaption','has','plugins','enableCommand','TableCaptionEditing','afterInit','TrackChangesEditing'];(function(_0x551c79,_0x3c1de7){const _0x1bb791=function(_0x382166){while(--_0x382166){_0x551c79['push'](_0x551c79['shift']());}};_0x1bb791(++_0x3c1de7);}(_0x3c1d,0x1c9));const _0x1bb7=function(_0x551c79,_0x3c1de7){_0x551c79=_0x551c79-0x0;let _0x1bb791=_0x3c1d[_0x551c79];return _0x1bb791;};import{Plugin as _0x29ffa9}from'ckeditor5/src/core';import _0x3f2340 from'./table';export default class It extends _0x29ffa9{static get['requires'](){return[_0x3f2340];}[_0x1bb7('0x3')](){const _0x49a2fc=this['editor'];if(!_0x49a2fc[_0x1bb7('0x0')][_0x1bb7('0x6')](_0x1bb7('0x2')))return;_0x49a2fc[_0x1bb7('0x0')]['get'](_0x1bb7('0x4'))[_0x1bb7('0x1')](_0x1bb7('0x5'));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4b03=['nodeAfter','*Replace\x20table\x20cells*','isEmpty','tablePasteChainId','insertionRanges','createTableWalker','element','row','removeMarker','deletion','_suggestionFactory','removeColumns','ck-suggestion-marker--active','getRanges','trackChanges','name','tableCellBorderStyle','suggestion','getItems','getColumns','clipboardOutput','markerName','documentSelection','set','registerDescriptionCallback','registerPostFixer','change','getChangedMarkers','getSelectionAffectedTableCells','getRowIndexes','end','some','type','_createdBatches','insert','paragraph','differ','getContainedElement','markerAttributes','subType','return','first','document','discard','endRow','tablePasteCell','tableCellBorderColor','TrackChangesEditing','rowInsertionIndexes','listenTo','view','plugins','containsRange','markerToHighlight','previousSibling','nextSibling','schema','getChanges','start','suggestionLoaded','getRange','redo','requires','updateMarker','showSuggestionHighlights','removeMarkers','getShiftedBy','formatBlock','accept','$graveyard','rowInsertionRanges','getSuggestions','stop','cell','oldRange','attributes','low','previous','forceDefaultExecution','getChildren','tableCell','last','wrap','tableCellVerticalAlignment','tableCellSuggestion','tablePasteRow','tablePaste','filter','high','rows','tablePasteColumn','suggestion-td','reduce','includes','_descriptionFactory','insertRows','position','_isForcedDefaultExecutionBlock','getTableIfOnlyTableInContent','commands','map','_replaceTableSlotCell','createRangeIn','getChild','table','push','root','tableCellHorizontalAlignment','get','newRange','markMultiRangeDeletion','elementToElement','move','fill','getRows','startsWith','createPositionBefore','Users','fromEntries','isInContent','rootName','columnInsertionRanges','from','hasSuggestion','author','_splitMarkerName','columnInsertionIndexes','removeRows','TableUtils','deletionRanges','find','suggestion:formatBlock:tablePasteCell','insertColumns','getAttributes','has','register','markMultiRangeInsertion','getAllAdjacentSuggestions','tableCellBorderWidth','options','createRange','findAncestor','remove','getSuggestionCallback','createElement','columns','createRangeOn','getColumnIndexes','length','keys','for','cells','tableCellPadding','dataDowncast','registerCustomCallback','getMarkers','insertion','insertContent','markMultiRangeBlockFormat','editor','TableClipboard','unwrap','add','content','join','isEqual','setAttributes','value','model','conversion'];(function(_0x56a170,_0x4b0376){const _0x34b1c2=function(_0xd499d2){while(--_0xd499d2){_0x56a170['push'](_0x56a170['shift']());}};_0x34b1c2(++_0x4b0376);}(_0x4b03,0x1d0));const _0x34b1=function(_0x56a170,_0x4b0376){_0x56a170=_0x56a170-0x0;let _0x34b1c2=_0x4b03[_0x56a170];return _0x34b1c2;};import{getTranslation as _0x224e57}from'../utils/common-translations';import{Plugin as _0xa3052f}from'ckeditor5/src/core';import _0x3dac4d from'./table';import{uid as _0x27d298,priorities as _0x14a098}from'ckeditor5/src/utils';const ne=[_0x34b1('0xe'),_0x34b1('0x5c'),_0x34b1('0x3e'),_0x34b1('0x99'),_0x34b1('0x81'),'tableCellBackgroundColor',_0x34b1('0x1c')],le=Object[_0x34b1('0xa4')](ne[_0x34b1('0x92')](_0x3d9584=>[_0x3d9584,null]));export default class mt extends _0xa3052f{static get[_0x34b1('0x6c')](){return[_0x3dac4d];}['afterInit'](){const _0x1a2db5=this[_0x34b1('0x23')];if(!_0x1a2db5[_0x34b1('0x61')][_0x34b1('0xa')](_0x34b1('0x24')))return;const _0x5ce15c=_0x1a2db5[_0x34b1('0x61')]['get'](_0x34b1('0x5d')),_0xaeac72=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0x4')),_0x33a721=_0x1a2db5['plugins'][_0x34b1('0x9a')](_0x3dac4d),_0x5af848=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0x24'));_0x33a721['_tablePostFixingSubtypes'][_0x34b1('0x97')]('tablePasteRow',_0x34b1('0x88')),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x66')][_0x34b1('0xb')](_0x34b1('0x82'),{'allowIn':_0x34b1('0x7e'),'allowContentOf':_0x34b1('0x7e'),'isLimit':!0x0}),_0x1a2db5[_0x34b1('0x2d')][_0x34b1('0x9d')]({'model':_0x34b1('0x82'),'view':_0x34b1('0x89')});let _0x1508b3=null;_0x1a2db5['model']['on'](_0x34b1('0x21'),(_0xb3a8ec,_0x26d01a)=>{const [_0x2d7e33,_0x26a530]=_0x26d01a,_0x3fa77d=_0x26d01a[_0x26d01a[_0x34b1('0x18')]-0x1];_0x3fa77d&&_0x3fa77d[_0x34b1('0x7c')]||_0x5ce15c[_0x34b1('0x8f')]||this[_0x34b1('0x23')][_0x34b1('0x91')]['get'](_0x34b1('0x3c'))[_0x34b1('0x2b')]&&function(_0x2de4c5,_0x21ddd9,_0x57cb00,_0x509381,_0x50e655){if(_0x21ddd9&&!_0x21ddd9['is'](_0x34b1('0x44')))return!0x1;const _0x2e7cd6=_0x50e655[_0x34b1('0x90')](_0x2de4c5,_0x57cb00);if(!_0x2e7cd6||!ae(_0x2e7cd6,null,_0x509381))return!0x1;const _0x39687c=_0x509381[_0x34b1('0x4a')](_0x57cb00[_0x34b1('0x58')]['selection']);if(!_0x39687c[_0x34b1('0x18')])return!0x1;const _0x7ae198=_0x39687c[0x0][_0x34b1('0x11')](_0x34b1('0x96')),_0xfce058=_0x509381[_0x34b1('0x4b')](_0x39687c),_0x118557=_0x509381[_0x34b1('0x17')](_0x39687c),_0x29b6b1={'startRow':_0xfce058[_0x34b1('0x57')],'endRow':_0xfce058[_0x34b1('0x7f')],'startColumn':_0x118557[_0x34b1('0x57')],'endColumn':_0x118557[_0x34b1('0x7f')]};return 0x1==_0x39687c[_0x34b1('0x18')]&&(_0x29b6b1[_0x34b1('0x5a')]+=_0x509381[_0x34b1('0xa0')](_0x2e7cd6)-0x1,_0x29b6b1['endColumn']+=_0x509381[_0x34b1('0x41')](_0x2e7cd6)-0x1),ae(_0x7ae198,_0x29b6b1,_0x509381);}(_0x2d7e33,_0x26a530,_0x1a2db5[_0x34b1('0x2c')],_0xaeac72,_0x5af848)&&(_0xb3a8ec['stop'](),_0x1508b3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1a2db5['model'][_0x34b1('0x48')](()=>{_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x21')](_0x26d01a[0x0],_0x26d01a[0x1],_0x26d01a[0x2],_0x26d01a[0x3],{'forceDefaultExecution':!0x0});const _0x3d34f5=_0x27d298(),{rowInsertionRanges:_0x15761a,columnInsertionRanges:_0x1a952f,insertionRanges:_0x12b284,deletionRanges:_0x4993ee,cells:_0x228af0}=_0x1508b3;_0x15761a[_0x34b1('0x18')]&&_0x5ce15c[_0x34b1('0xc')](_0x15761a,_0x34b1('0x83'),{'tablePasteChainId':_0x3d34f5}),_0x1a952f[_0x34b1('0x18')]&&_0x5ce15c[_0x34b1('0xc')](_0x1a952f,_0x34b1('0x88'),{'tablePasteChainId':_0x3d34f5}),_0x12b284['length']&&_0x5ce15c[_0x34b1('0xc')](_0x12b284,'tablePaste',{'tablePasteChainId':_0x3d34f5,'skipNestingCheck':!0x0}),_0x4993ee[_0x34b1('0x18')]&&_0x5ce15c[_0x34b1('0x9c')](_0x4993ee,'tablePaste',{'tablePasteChainId':_0x3d34f5,'skipNestingCheck':!0x0});const _0x5dd8cd=_0x5ce15c[_0x34b1('0x22')](_0x228af0['map'](({element:_0x4878a7})=>_0x4878a7),{'formatGroupId':_0x27d298()},[],_0x34b1('0x5b'),{'tablePasteChainId':_0x3d34f5});if(_0x5dd8cd){const _0x3d475e=_0x5dd8cd[_0x34b1('0x1f')](),_0x5928e2=[];for(const {element:_0x56908b,attributes:_0x184555}of _0x228af0){if(!_0x184555)continue;const _0x4d36ec=_0x1a2db5['model'][_0x34b1('0x16')](_0x56908b),_0xa7dd22=_0x3d475e['find'](_0x131d35=>_0x131d35[_0x34b1('0x6a')]()[_0x34b1('0x29')](_0x4d36ec));_0xa7dd22&&_0x5928e2['push']([_0xa7dd22[_0x34b1('0x3d')],_0x184555]);}_0x5928e2['length']&&_0x5dd8cd['setAttribute'](_0x34b1('0x54'),Object[_0x34b1('0xa4')](_0x5928e2));}_0x1508b3=null;}));},{'priority':_0x14a098[_0x34b1('0x86')]+0xa}),_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0x24'))['on'](_0x34b1('0x93'),(_0x1559ba,_0x105870)=>{const [_0x2de128,_0x1c6ec6,,_0x3581fa]=_0x105870;if(!_0x1508b3)return;_0x1559ba[_0x34b1('0x76')]();const _0x1fb37a=_0x2de128[_0x34b1('0x77')],_0x4f8e2e=_0x1c6ec6,_0x5cff53=se(_0x1fb37a),_0x7e6d7f=se(_0x4f8e2e);_0x1559ba[_0x34b1('0x56')]=_0x1fb37a;let _0x53f802=null,_0x4f8107=null;if(_0x7e6d7f||_0x5cff53){if(_0x5cff53&&!_0x7e6d7f){_0x3581fa['remove'](_0x1fb37a['getChild'](0x0));for(const _0x5a2957 of Array[_0x34b1('0xa8')](_0x4f8e2e[_0x34b1('0x7d')]()))_0x3581fa[_0x34b1('0x50')](_0x5a2957,_0x1fb37a,'end');const _0x40e56e=_0x1508b3[_0x34b1('0x5e')]['includes'](_0x2de128[_0x34b1('0x35')]),_0x3c0322=_0x1508b3[_0x34b1('0x2')][_0x34b1('0x8b')](_0x2de128['column']);_0x40e56e||_0x3c0322||(_0x53f802=_0x3581fa[_0x34b1('0x94')](_0x1fb37a));}else _0x7e6d7f&&!_0x5cff53&&(_0x4f8107=_0x3581fa[_0x34b1('0x94')](_0x1fb37a));}else{const _0x42a8ed=_0x3581fa[_0x34b1('0x14')]('tableCellSuggestion'),_0x5c0372=_0x3581fa['createElement'](_0x34b1('0x82'));_0x3581fa[_0x34b1('0x80')](_0x3581fa[_0x34b1('0x94')](_0x1fb37a),_0x5c0372),_0x3581fa['insert'](_0x42a8ed,_0x1fb37a,0x0);for(const _0xc7d27 of Array[_0x34b1('0xa8')](_0x4f8e2e[_0x34b1('0x7d')]()))_0x3581fa[_0x34b1('0x50')](_0xc7d27,_0x42a8ed,_0x34b1('0x4c'));_0x53f802=_0x3581fa[_0x34b1('0x16')](_0x42a8ed),_0x4f8107=_0x3581fa['createRangeOn'](_0x5c0372);}const _0x68318f=Array[_0x34b1('0xa8')](_0x4f8e2e[_0x34b1('0x9')]())[_0x34b1('0x85')](([_0x4242e0])=>ne[_0x34b1('0x8b')](_0x4242e0));_0x1508b3[_0x34b1('0x1b')][_0x34b1('0x97')]({'element':_0x1fb37a,'attributes':_0x68318f[_0x34b1('0x18')]?Object[_0x34b1('0xa4')](_0x68318f):null}),_0x53f802&&_0x1508b3[_0x34b1('0x32')][_0x34b1('0x97')](_0x53f802),_0x4f8107&&_0x1508b3[_0x34b1('0x5')][_0x34b1('0x97')](_0x4f8107);},{'priority':_0x34b1('0x86')}),_0xaeac72['on'](_0x34b1('0x8'),(_0x34ce12,_0x13e536)=>{const [_0x11195e,_0x5cdd33={}]=_0x13e536;if(!_0x1508b3)return;const _0x34a920=_0x5cdd33['at']||0x0,_0x5be945=_0x5cdd33[_0x34b1('0x15')]||0x1;_0x1508b3[_0x34b1('0x2')]=new Array(_0x5be945)[_0x34b1('0x9f')](_0x34a920)[_0x34b1('0x92')]((_0x29a551,_0x322fbd)=>_0x29a551+_0x322fbd);for(const {cell:_0x562fb1}of _0xaeac72['createTableWalker'](_0x11195e,{'startColumn':_0x34a920,'endColumn':_0x34a920+_0x5be945-0x1}))_0x1508b3[_0x34b1('0xa7')][_0x34b1('0x97')](_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x16')](_0x562fb1));},{'priority':_0x34b1('0x7a')}),_0xaeac72['on'](_0x34b1('0x8d'),(_0x12001c,_0x53522e)=>{const [_0x56b2a3,_0x1b398d={}]=_0x53522e;if(!_0x1508b3)return;const _0x52a775=_0x1b398d['at']||0x0,_0x1b4f4d=_0x1b398d[_0x34b1('0x87')]||0x1;_0x1508b3[_0x34b1('0x5e')]=new Array(_0x1b4f4d)[_0x34b1('0x9f')](_0x52a775)[_0x34b1('0x92')]((_0x5714b6,_0x542a49)=>_0x5714b6+_0x542a49);for(const {cell:_0x2b7263}of _0xaeac72[_0x34b1('0x33')](_0x56b2a3,{'startRow':_0x52a775,'endRow':_0x52a775+_0x1b4f4d-0x1}))_0x1508b3[_0x34b1('0x74')][_0x34b1('0x97')](_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x16')](_0x2b7263));},{'priority':_0x34b1('0x7a')}),_0x5ce15c[_0x34b1('0x8c')][_0x34b1('0x46')](_0x314ea2=>{if(_0x314ea2['subType']&&_0x314ea2[_0x34b1('0x55')]['startsWith'](_0x34b1('0x84')))return _0x314ea2['previous']?{}:{'type':_0x34b1('0x20'),'content':_0x224e57(_0x1a2db5['locale'],_0x34b1('0x2f'))};});const _0x210324=()=>{};for(const _0x2879c9 of['tablePaste',_0x34b1('0x88'),_0x34b1('0x83'),'tablePasteCell'])_0x5ce15c['_suggestionFactory'][_0x34b1('0x1e')](_0x34b1('0x20'),_0x2879c9,_0x34b1('0x28'),_0x210324),_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')]('deletion',_0x2879c9,'join',_0x210324);_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')]('formatBlock','tablePasteCell',_0x34b1('0x59'),_0x210324),_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')](_0x34b1('0x71'),_0x34b1('0x5b'),_0x34b1('0x72'),(_0x406f1a,_0x477505,_0x26b9ec)=>{const _0x1bb5a6=_0x406f1a[_0x34b1('0x92')](_0x2d30d5=>_0x2d30d5[_0x34b1('0x53')]())[_0x34b1('0x85')](_0x3b54e8=>_0x3b54e8),_0x2528fb=new Map(_0x1bb5a6['map'](_0x3a364d=>[_0x3a364d,null]));if(_0x1508b3)for(const {element:_0x2a3a1d,attributes:_0x1b98d8}of _0x1508b3[_0x34b1('0x1b')])_0x1b98d8&&_0x2528fb[_0x34b1('0x45')](_0x2a3a1d,_0x1b98d8);else{if(_0x26b9ec&&_0x26b9ec['markerAttributes'])for(const [_0xac8a10,_0x4a7550]of Object['entries'](_0x26b9ec[_0x34b1('0x54')])){const _0x30571c=_0x1a2db5['model']['markers'][_0x34b1('0x9a')](_0xac8a10),_0x2882f1=_0x30571c?_0x30571c['getRange']()[_0x34b1('0x53')]():null;_0x2882f1&&_0x2528fb[_0x34b1('0x45')](_0x2882f1,_0x4a7550);}}_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x48')](_0x572ae2=>{for(const [_0x2bba89,_0xef5825]of _0x2528fb)_0x572ae2[_0x34b1('0x2a')]({...le,..._0xef5825},_0x2bba89);});});const _0x51544e=(_0x228933,_0x4aa192)=>{_0x5ce15c[_0x34b1('0x38')]['registerCustomCallback'](_0x228933,'tablePaste',_0x4aa192,(_0x4ab897,_0xc3ca8d,_0x2ddb28)=>{_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x48')](_0x302a05=>{const _0x4f52c5=[];for(const _0x51ff3e of _0x4ab897){const _0x394f9f=_0x51ff3e[_0x34b1('0x68')][_0x34b1('0x2e')];_0x394f9f['is']('element','tableCellSuggestion')&&_0x4f52c5['push'](_0x394f9f);}_0x5ce15c['_suggestionFactory'][_0x34b1('0x13')](_0x228933,null,_0x4aa192)(_0x4ab897,_0xc3ca8d,_0x2ddb28);for(const _0xb2b877 of _0x4f52c5)_0x34b1('0x73')!=_0xb2b877[_0x34b1('0x98')][_0x34b1('0xa6')]&&_0x302a05[_0x34b1('0x25')](_0xb2b877);});});};_0x51544e(_0x34b1('0x20'),_0x34b1('0x72')),_0x51544e(_0x34b1('0x20'),'discard'),_0x51544e('deletion',_0x34b1('0x72')),_0x51544e(_0x34b1('0x37'),_0x34b1('0x59')),_0x5ce15c[_0x34b1('0x38')][_0x34b1('0x1e')](_0x34b1('0x20'),_0x34b1('0x83'),_0x34b1('0x59'),_0x1c50a9=>{const _0x3af8d0=_0x1c50a9[_0x34b1('0x92')](_0x19e832=>_0x19e832[_0x34b1('0x53')]()),_0x2b0e19=_0x3af8d0[0x0]['findAncestor'](_0x34b1('0x96')),{minRow:_0x5c03fa,maxRow:_0x5134e0}=_0x33a721['_getCoordsForCells'](_0x3af8d0);_0xaeac72[_0x34b1('0x3')](_0x2b0e19,{'at':_0x5c03fa,'rows':_0x5134e0-_0x5c03fa+0x1});}),_0x5ce15c['_suggestionFactory'][_0x34b1('0x1e')]('insertion',_0x34b1('0x88'),_0x34b1('0x59'),_0x277ef3=>{const _0x4fe0c5=_0x277ef3[_0x34b1('0x92')](_0x48710d=>_0x48710d[_0x34b1('0x53')]()),_0x586137=_0x4fe0c5[0x0][_0x34b1('0x11')](_0x34b1('0x96')),{minColumn:_0x13a5f6,maxColumn:_0x529267}=_0x33a721['_getCoordsForCells'](_0x4fe0c5);_0xaeac72[_0x34b1('0x39')](_0x586137,{'at':_0x13a5f6,'columns':_0x529267-_0x13a5f6+0x1});});const _0x31c0d4=(_0x19abde,_0x59cb01)=>{if(!_0x59cb01[_0x34b1('0x55')]||!_0x59cb01[_0x34b1('0x55')]['startsWith']('tablePaste'))return;const _0x32416e=_0x59cb01[_0x34b1('0x79')]['tablePasteChainId'],_0xc77285=_0x5ce15c[_0x34b1('0x75')]()[_0x34b1('0x85')](_0x1171ff=>_0x1171ff[_0x34b1('0xa5')]&&_0x1171ff[_0x34b1('0x79')]&&_0x1171ff[_0x34b1('0x79')]['tablePasteChainId']==_0x32416e);_0xc77285['length']&&_0x59cb01[_0x34b1('0xd')]()[_0x34b1('0x18')]!=_0xc77285[_0x34b1('0x18')]&&_0xc77285[_0x34b1('0x8a')]((_0x1fc5be,_0x1ebf1a)=>(_0x1fc5be['next']=_0x1ebf1a,_0x1ebf1a[_0x34b1('0x7b')]=_0x1fc5be,_0x1ebf1a));};function _0x311b80(_0x145cce,{showActiveMarker:_0x31d76=!0x0}={}){const {id:_0x5c3509}=_0x5ce15c['_splitMarkerName'](_0x145cce[_0x34b1('0x43')]),_0x5d8010=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x32086e=_0x5ce15c['activeMarkers'][_0x34b1('0x8b')](_0x145cce[_0x34b1('0x43')]);return _0x32086e&&_0x5d8010[_0x34b1('0x97')](_0x34b1('0x3a')),{'classes':_0x5d8010,'attributes':{'data-suggestion':_0x5c3509},'priority':_0x32086e&&_0x31d76?0xbc2:0xbb8};}_0x5ce15c['on'](_0x34b1('0x69'),_0x31c0d4,{'priority':_0x34b1('0x86')}),_0x5ce15c['on']('suggestionUnloaded',_0x31c0d4,{'priority':_0x34b1('0x86')}),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')]['registerPostFixer'](()=>{let _0x485393=!0x1;const _0x5e522a=Array[_0x34b1('0xa8')](_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')][_0x34b1('0x52')][_0x34b1('0x49')]());for(const {name:_0x3b0fb0,data:_0x42d58f}of _0x5e522a){const {group:_0x3b7585,type:_0x52df8e,id:_0x5adf52}=_0x5ce15c[_0x34b1('0x1')](_0x3b0fb0);if(_0x34b1('0x3f')!=_0x3b7585||_0x34b1('0x37')!=_0x52df8e||_0x42d58f['oldRange'])continue;if(!_0x5ce15c[_0x34b1('0xa9')](_0x5adf52))continue;const _0xdcf5a=_0x5ce15c['getSuggestion'](_0x5adf52)[_0x34b1('0x3b')](),_0x12c3f6=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0xa3'))['me'];for(const _0xa37f87 of _0x5ce15c[_0x34b1('0x75')]()){if(!_0xa37f87[_0x34b1('0xa5')]||_0xa37f87['author']!=_0x12c3f6)continue;if('formatBlock'!=_0xa37f87[_0x34b1('0x4e')]||_0x34b1('0x5b')!=_0xa37f87[_0x34b1('0x55')])continue;if(_0xa37f87['getRanges']()['every'](_0x480560=>_0xdcf5a[_0x34b1('0x4d')](_0x77e562=>_0x77e562['containsRange'](_0x480560,!0x0))))for(const _0xb76e72 of _0xa37f87[_0x34b1('0xd')]())_0xb76e72[_0x34b1('0xa5')]&&(_0xb76e72['discard'](),_0x485393=!0x0);}}return _0x485393;}),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')][_0x34b1('0x47')](_0x53b311=>{const _0x4d7e0c=_0x1a2db5[_0x34b1('0x91')]['get'](_0x34b1('0x6b'));if(!_0x4d7e0c||!_0x4d7e0c[_0x34b1('0x4f')]['has'](_0x53b311['batch']))return!0x1;let _0x1cffc7=!0x1;const _0xd44fc4=_0x1a2db5['plugins'][_0x34b1('0x9a')](_0x34b1('0xa3'))['me'],_0x28b985=_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')]['differ'][_0x34b1('0x67')](),_0x4c3a19=Array[_0x34b1('0xa8')](_0x1a2db5[_0x34b1('0x2c')]['document'][_0x34b1('0x52')][_0x34b1('0x49')]())[_0x34b1('0x85')](({name:_0x5eb327,data:_0x25f8d6})=>{const {group:_0x394501,subType:_0x185ff2,authorId:_0x1fd069}=_0x5ce15c[_0x34b1('0x1')](_0x5eb327);return'suggestion'==_0x394501&&_0x34b1('0x84')==_0x185ff2&&_0x1fd069==_0xd44fc4['id']&&!_0x25f8d6[_0x34b1('0x78')];});for(const _0x2804a0 of _0x28b985){if(_0x34b1('0x50')!=_0x2804a0[_0x34b1('0x4e')]||_0x34b1('0x82')!=_0x2804a0[_0x34b1('0x3d')]||0x1!=_0x2804a0[_0x34b1('0x18')])continue;const _0x1e1c1c=_0x53b311[_0x34b1('0x10')](_0x2804a0['position'],_0x2804a0[_0x34b1('0x8e')][_0x34b1('0x70')](0x1));if(!_0x4c3a19[_0x34b1('0x6')](({data:_0x514646})=>_0x514646[_0x34b1('0x9b')][_0x34b1('0x29')](_0x1e1c1c)))for(const {name:_0x43b4e7,data:_0x3e1fc3}of _0x4c3a19)if(_0x1e1c1c[_0x34b1('0x62')](_0x3e1fc3[_0x34b1('0x9b')])){_0x53b311[_0x34b1('0x6d')](_0x43b4e7,{'range':_0x1e1c1c}),_0x1cffc7=!0x0;break;}}return _0x1cffc7;}),_0x1a2db5[_0x34b1('0x2c')][_0x34b1('0x58')]['registerPostFixer'](_0x556f51=>{let _0x5ed4cf=!0x1;const _0x1ba57a=_0x1a2db5[_0x34b1('0x61')][_0x34b1('0x9a')](_0x34b1('0xa3'))['me'],_0x295d17=_0x5ce15c['getSuggestions']()[_0x34b1('0x85')](_0x46a9f6=>_0x46a9f6[_0x34b1('0xa5')]&&_0x46a9f6[_0x34b1('0x0')]==_0x1ba57a),_0x589141=new Set(),_0x2d8887=new Set();for(const _0x598e48 of _0x295d17)if(_0x34b1('0x84')==_0x598e48[_0x34b1('0x55')])for(const _0xaf15f2 of _0x598e48[_0x34b1('0x1f')]()){const _0x2cf568=_0xaf15f2['getRange']()[_0x34b1('0x53')]();if(_0x2cf568){if(_0x2cf568['is'](_0x34b1('0x34'),_0x34b1('0x82'))&&se(_0x2cf568)){_0x598e48[_0x34b1('0x36')](_0xaf15f2['name']),_0x589141[_0x34b1('0x26')](_0x2cf568),_0x5ed4cf=!0x0;const _0x438b32=_0x2cf568[_0x34b1('0x65')],_0x54ea5d=_0x2cf568[_0x34b1('0x64')],_0x4fab5b=_0x438b32&&_0x438b32['is'](_0x34b1('0x34'),_0x34b1('0x82')),_0x2d4efe=_0x54ea5d&&_0x54ea5d['is'](_0x34b1('0x34'),_0x34b1('0x82'));_0x4fab5b&&!_0x589141['has'](_0x438b32)&&_0x2d8887['add'](_0x438b32),_0x2d4efe&&!_0x589141[_0x34b1('0xa')](_0x54ea5d)&&_0x2d8887[_0x34b1('0x26')](_0x54ea5d);}else _0x2cf568['is']('element','paragraph')&&_0x2cf568[_0x34b1('0x30')]&&(_0x598e48['removeMarker'](_0xaf15f2[_0x34b1('0x3d')]),_0x5ed4cf=!0x0);}}else{if(_0x34b1('0x5b')==_0x598e48[_0x34b1('0x55')]){if(!_0x598e48[_0x34b1('0x79')]||!_0x598e48[_0x34b1('0x79')][_0x34b1('0x31')])continue;const _0x2bf9be=_0x598e48[_0x34b1('0x79')][_0x34b1('0x54')];if(_0x2bf9be&&Object[_0x34b1('0x19')](_0x2bf9be)[_0x34b1('0x18')])continue;const _0x52497d=_0x598e48[_0x34b1('0x79')][_0x34b1('0x31')];let _0x3d26a7=!0x0,_0x361805=!0x0;for(const _0x4b0280 of _0x295d17)if(_0x4b0280[_0x34b1('0x55')]&&_0x4b0280['subType'][_0x34b1('0xa1')](_0x34b1('0x84'))){if(!_0x4b0280[_0x34b1('0x79')]['tablePasteChainId']){_0x361805=!0x1;break;}if(_0x4b0280['id']!=_0x598e48['id']&&_0x4b0280[_0x34b1('0x79')][_0x34b1('0x31')]==_0x52497d){_0x3d26a7=!0x1;break;}}_0x361805&&_0x3d26a7&&(_0x598e48[_0x34b1('0x6f')](),_0x5ed4cf=!0x0);}}for(const _0x2fc8c2 of _0x589141)_0x556f51[_0x34b1('0x12')](_0x2fc8c2);for(const _0x119c5f of _0x2d8887)_0x556f51[_0x34b1('0x25')](_0x119c5f);return _0x5ed4cf;}),_0x1a2db5[_0x34b1('0x2d')]['for']('editingDowncast')[_0x34b1('0x63')]({'model':_0x34b1('0x7'),'view':_0x311b80,'converterPriority':'high'}),_0x1a2db5['conversion'][_0x34b1('0x1a')](_0x34b1('0x1d'))[_0x34b1('0x63')]({'model':_0x34b1('0x7'),'view':(_0x3b05da,_0x153708)=>{if(_0x153708[_0x34b1('0xf')][_0x34b1('0x6e')])return _0x311b80(_0x3b05da,{'showActiveMarker':!0x1});},'converterPriority':_0x34b1('0x86')});const _0x226789=_0x1a2db5['editing'][_0x34b1('0x60')];this[_0x34b1('0x5f')](_0x226789[_0x34b1('0x58')],_0x34b1('0x42'),(_0x4c37a4,_0x3aea1c)=>{const _0x4f25ff=[];for(const _0x565cd6 of _0x226789['createRangeIn'](_0x3aea1c[_0x34b1('0x27')])[_0x34b1('0x40')]())_0x565cd6['is'](_0x34b1('0x34'),_0x34b1('0x89'))&&_0x4f25ff[_0x34b1('0x97')](_0x565cd6);_0x226789[_0x34b1('0x48')](_0x41bfa0=>{for(const _0x5112fb of _0x4f25ff)_0x41bfa0[_0x34b1('0x9e')](_0x41bfa0['createRangeIn'](_0x5112fb),_0x41bfa0[_0x34b1('0xa2')](_0x5112fb)),_0x41bfa0['remove'](_0x5112fb);});});}}function se(_0x1cddaa){if(_0x1cddaa[_0x34b1('0x30')])return!0x0;const _0x427475=_0x1cddaa[_0x34b1('0x95')](0x0);return _0x427475['is'](_0x34b1('0x34'),_0x34b1('0x51'))&&_0x427475[_0x34b1('0x30')];}function ae(_0x1cc8b6,_0x212e9a={},_0x45beee){for(const {isAnchor:_0xa4faf,cellHeight:_0x1aa8e6,cellWidth:_0xa713d7}of _0x45beee[_0x34b1('0x33')](_0x1cc8b6,{'includeAllSlots':!0x0,..._0x212e9a}))if(!_0xa4faf||0x1!=_0x1aa8e6||0x1!=_0xa713d7)return!0x1;return!0x0;}
|
|
23
|
+
const _0x592c=['tableCellBackgroundColor','TableClipboard','getSelectionAffectedTableCells','position','createTableWalker','every','showSuggestionHighlights','activeMarkers','TableUtils','suggestion-td','updateMarker','getRows','registerCustomCallback','fromEntries','containsRange','removeMarkers','move','_isForcedDefaultExecutionBlock','columnInsertionRanges','name','locale','markerAttributes','getAllAdjacentSuggestions','unwrap','Users','endColumn','element','previousSibling','isEmpty','tableCellBorderWidth','some','tableCellBorderColor','elementToElement','suggestionUnloaded','tablePasteCell','suggestion','_tablePostFixingSubtypes','author','getSuggestion','createElement','getChangedMarkers','editing','tableCellVerticalAlignment','insertion','removeMarker','tablePaste','createRangeIn','filter','getChanges','createRange','model','newRange','has','setAttributes','next','tableCell','getContainedElement','nextSibling','root','includes','join','createRangeOn','tablePasteColumn','getRange','forceDefaultExecution','rowInsertionIndexes','dataDowncast','rows','isEqual','insertRows','_suggestionFactory','length','isInContent','getTableIfOnlyTableInContent','tableCellSuggestion','discard','getItems','tableCellHorizontalAlignment','accept','getColumns','getMarkers','clipboardOutput','getChild','return','high','tablePasteChainId','registerDescriptionCallback','createPositionBefore','requires','suggestion:formatBlock:tablePasteCell','editor','tableCellPadding','oldRange','get','tablePasteRow','ck-suggestion-marker','options','table','selection','suggestionLoaded','attributes','map','previous','_splitMarkerName','trackChanges','commands','nodeAfter','find','view','TrackChangesEditing','_replaceTableSlotCell','for','add','insertionRanges','registerPostFixer','type','getChildren','stop','remove','column','paragraph','markerName','removeColumns','change','ck-suggestion-marker--active','register','deletion','documentSelection','_getCoordsForCells','end','insertColumns','startsWith','listenTo','getSuggestions','removeRows','content','last','reduce','insertContent','getShiftedBy','subType','getAttributes','value','cells','set','getRowIndexes','conversion','findAncestor','rowInsertionRanges','markMultiRangeBlockFormat','wrap','tableCellBorderStyle','schema','markers','plugins','markMultiRangeDeletion','from','low','markerToHighlight','insert','getRanges','setAttribute','getSuggestionCallback','markMultiRangeInsertion','entries','push','fill','first','differ','keys','document','cell','endRow','batch','redo','formatBlock'];(function(_0x46cbd9,_0x592c49){const _0x3e9042=function(_0x10ff7c){while(--_0x10ff7c){_0x46cbd9['push'](_0x46cbd9['shift']());}};_0x3e9042(++_0x592c49);}(_0x592c,0x18d));const _0x3e90=function(_0x46cbd9,_0x592c49){_0x46cbd9=_0x46cbd9-0x0;let _0x3e9042=_0x592c[_0x46cbd9];return _0x3e9042;};import{getTranslation as _0x1d2b3a}from'../utils/common-translations';import{Plugin as _0x5d9221}from'ckeditor5/src/core';import _0x14929f from'./table';import{uid as _0xe111f2,priorities as _0x29e003}from'ckeditor5/src/utils';const ae=[_0x3e90('0xa0'),_0x3e90('0xa2'),_0x3e90('0x6a'),_0x3e90('0x20'),_0x3e90('0xad'),_0x3e90('0x83'),_0x3e90('0x2e')],ce=Object[_0x3e90('0x90')](ae[_0x3e90('0x38')](_0x5cefa3=>[_0x5cefa3,null]));export default class wt extends _0x5d9221{static get[_0x3e90('0x2b')](){return[_0x14929f];}['afterInit'](){const _0x382e5e=this['editor'];if(!_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x7')](_0x3e90('0x84')))return;const _0x4cf150=_0x382e5e['plugins'][_0x3e90('0x30')](_0x3e90('0x40')),_0x5cf5e7=_0x382e5e['plugins'][_0x3e90('0x30')](_0x3e90('0x8b')),_0x42d719=_0x382e5e[_0x3e90('0x6d')]['get'](_0x14929f),_0x2b3ace=_0x382e5e['plugins']['get'](_0x3e90('0x84'));_0x42d719[_0x3e90('0xa7')][_0x3e90('0x78')](_0x3e90('0x31'),'tablePasteColumn'),_0x382e5e[_0x3e90('0x5')][_0x3e90('0x6b')][_0x3e90('0x50')](_0x3e90('0x1d'),{'allowIn':_0x3e90('0xa'),'allowContentOf':_0x3e90('0xa'),'isLimit':!0x0}),_0x382e5e[_0x3e90('0x65')][_0x3e90('0xa3')]({'model':'tableCellSuggestion','view':_0x3e90('0x8c')});let _0x5d3d43=null;_0x382e5e[_0x3e90('0x5')]['on'](_0x3e90('0x5d'),(_0x7abd2d,_0x2e5597)=>{const [_0x30a1f9,_0x69f654]=_0x2e5597,_0x3317cc=_0x2e5597[_0x2e5597[_0x3e90('0x1a')]-0x1];_0x3317cc&&_0x3317cc[_0x3e90('0x13')]||_0x4cf150[_0x3e90('0x94')]||this[_0x3e90('0x2d')][_0x3e90('0x3c')]['get'](_0x3e90('0x3b'))[_0x3e90('0x61')]&&function(_0x166f38,_0x5df4c8,_0x4d2bd7,_0x4438a2,_0x389f0b){if(_0x5df4c8&&!_0x5df4c8['is'](_0x3e90('0x52')))return!0x1;const _0xfdb8b9=_0x389f0b[_0x3e90('0x1c')](_0x166f38,_0x4d2bd7);if(!_0xfdb8b9||!ue(_0xfdb8b9,null,_0x4438a2))return!0x1;const _0x19e898=_0x4438a2[_0x3e90('0x85')](_0x4d2bd7[_0x3e90('0x7d')][_0x3e90('0x35')]);if(!_0x19e898[_0x3e90('0x1a')])return!0x1;const _0xcff16=_0x19e898[0x0][_0x3e90('0x66')](_0x3e90('0x34')),_0x1729af=_0x4438a2[_0x3e90('0x64')](_0x19e898),_0x165aa9=_0x4438a2['getColumnIndexes'](_0x19e898),_0x4beb24={'startRow':_0x1729af[_0x3e90('0x7a')],'endRow':_0x1729af[_0x3e90('0x5b')],'startColumn':_0x165aa9[_0x3e90('0x7a')],'endColumn':_0x165aa9[_0x3e90('0x5b')]};return 0x1==_0x19e898[_0x3e90('0x1a')]&&(_0x4beb24[_0x3e90('0x7f')]+=_0x4438a2[_0x3e90('0x8e')](_0xfdb8b9)-0x1,_0x4beb24[_0x3e90('0x9c')]+=_0x4438a2[_0x3e90('0x22')](_0xfdb8b9)-0x1),ue(_0xcff16,_0x4beb24,_0x4438a2);}(_0x30a1f9,_0x69f654,_0x382e5e[_0x3e90('0x5')],_0x5cf5e7,_0x2b3ace)&&(_0x7abd2d['stop'](),_0x5d3d43={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x382e5e[_0x3e90('0x5')]['change'](()=>{_0x382e5e[_0x3e90('0x5')][_0x3e90('0x5d')](_0x2e5597[0x0],_0x2e5597[0x1],_0x2e5597[0x2],_0x2e5597[0x3],{'forceDefaultExecution':!0x0});const _0x336bb9=_0xe111f2(),{rowInsertionRanges:_0xab9bc2,columnInsertionRanges:_0x13b3f5,insertionRanges:_0x276bb1,deletionRanges:_0x343c8f,cells:_0x5272df}=_0x5d3d43;_0xab9bc2[_0x3e90('0x1a')]&&_0x4cf150[_0x3e90('0x76')](_0xab9bc2,'tablePasteRow',{'tablePasteChainId':_0x336bb9}),_0x13b3f5[_0x3e90('0x1a')]&&_0x4cf150[_0x3e90('0x76')](_0x13b3f5,_0x3e90('0x11'),{'tablePasteChainId':_0x336bb9}),_0x276bb1[_0x3e90('0x1a')]&&_0x4cf150['markMultiRangeInsertion'](_0x276bb1,_0x3e90('0x0'),{'tablePasteChainId':_0x336bb9,'skipNestingCheck':!0x0}),_0x343c8f['length']&&_0x4cf150[_0x3e90('0x6e')](_0x343c8f,_0x3e90('0x0'),{'tablePasteChainId':_0x336bb9,'skipNestingCheck':!0x0});const _0x1d8fdd=_0x4cf150[_0x3e90('0x68')](_0x5272df[_0x3e90('0x38')](({element:_0x2c74d8})=>_0x2c74d8),{'formatGroupId':_0xe111f2()},[],'tablePasteCell',{'tablePasteChainId':_0x336bb9});if(_0x1d8fdd){const _0x42baa5=_0x1d8fdd[_0x3e90('0x23')](),_0x58d623=[];for(const {element:_0x8a4faf,attributes:_0x5156e1}of _0x5272df){if(!_0x5156e1)continue;const _0x4b8988=_0x382e5e[_0x3e90('0x5')][_0x3e90('0x10')](_0x8a4faf),_0x3d1527=_0x42baa5[_0x3e90('0x3e')](_0x265b45=>_0x265b45[_0x3e90('0x12')]()[_0x3e90('0x17')](_0x4b8988));_0x3d1527&&_0x58d623[_0x3e90('0x78')]([_0x3d1527['name'],_0x5156e1]);}_0x58d623['length']&&_0x1d8fdd[_0x3e90('0x74')](_0x3e90('0x98'),Object[_0x3e90('0x90')](_0x58d623));}_0x5d3d43=null;}));},{'priority':_0x29e003[_0x3e90('0x27')]+0xa}),_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x30')](_0x3e90('0x84'))['on'](_0x3e90('0x41'),(_0x140bf1,_0x112c89)=>{const [_0x1734a4,_0x440d37,,_0x19e2a4]=_0x112c89;if(!_0x5d3d43)return;_0x140bf1[_0x3e90('0x48')]();const _0x39d94c=_0x1734a4[_0x3e90('0x7e')],_0x2b4378=_0x440d37,_0x3cfe3d=fe(_0x39d94c),_0x4debf2=fe(_0x2b4378);_0x140bf1[_0x3e90('0x26')]=_0x39d94c;let _0x509b24=null,_0x398508=null;if(_0x4debf2||_0x3cfe3d){if(_0x3cfe3d&&!_0x4debf2){_0x19e2a4[_0x3e90('0x49')](_0x39d94c[_0x3e90('0x25')](0x0));for(const _0x49e42d of Array[_0x3e90('0x6f')](_0x2b4378[_0x3e90('0x47')]()))_0x19e2a4['insert'](_0x49e42d,_0x39d94c,'end');const _0xc85fad=_0x5d3d43[_0x3e90('0x14')][_0x3e90('0xe')](_0x1734a4['row']),_0x565443=_0x5d3d43['columnInsertionIndexes'][_0x3e90('0xe')](_0x1734a4[_0x3e90('0x4a')]);_0xc85fad||_0x565443||(_0x509b24=_0x19e2a4[_0x3e90('0x1')](_0x39d94c));}else _0x4debf2&&!_0x3cfe3d&&(_0x398508=_0x19e2a4[_0x3e90('0x1')](_0x39d94c));}else{const _0x6280ab=_0x19e2a4[_0x3e90('0xaa')](_0x3e90('0x1d')),_0x20523b=_0x19e2a4[_0x3e90('0xaa')](_0x3e90('0x1d'));_0x19e2a4[_0x3e90('0x69')](_0x19e2a4[_0x3e90('0x1')](_0x39d94c),_0x20523b),_0x19e2a4[_0x3e90('0x72')](_0x6280ab,_0x39d94c,0x0);for(const _0x57314d of Array[_0x3e90('0x6f')](_0x2b4378[_0x3e90('0x47')]()))_0x19e2a4['insert'](_0x57314d,_0x6280ab,_0x3e90('0x54'));_0x509b24=_0x19e2a4[_0x3e90('0x10')](_0x6280ab),_0x398508=_0x19e2a4[_0x3e90('0x10')](_0x20523b);}const _0x428d87=Array[_0x3e90('0x6f')](_0x2b4378[_0x3e90('0x60')]())[_0x3e90('0x2')](([_0xdb6d32])=>ae[_0x3e90('0xe')](_0xdb6d32));_0x5d3d43[_0x3e90('0x62')][_0x3e90('0x78')]({'element':_0x39d94c,'attributes':_0x428d87[_0x3e90('0x1a')]?Object[_0x3e90('0x90')](_0x428d87):null}),_0x509b24&&_0x5d3d43[_0x3e90('0x44')]['push'](_0x509b24),_0x398508&&_0x5d3d43['deletionRanges'][_0x3e90('0x78')](_0x398508);},{'priority':'high'}),_0x5cf5e7['on'](_0x3e90('0x55'),(_0x2c3815,_0x37de26)=>{const [_0x5cf13a,_0x3ac037={}]=_0x37de26;if(!_0x5d3d43)return;const _0xd490f=_0x3ac037['at']||0x0,_0x25158e=_0x3ac037['columns']||0x1;_0x5d3d43['columnInsertionIndexes']=new Array(_0x25158e)['fill'](_0xd490f)[_0x3e90('0x38')]((_0x22aba2,_0x18af35)=>_0x22aba2+_0x18af35);for(const {cell:_0xfe9e3d}of _0x5cf5e7[_0x3e90('0x87')](_0x5cf13a,{'startColumn':_0xd490f,'endColumn':_0xd490f+_0x25158e-0x1}))_0x5d3d43[_0x3e90('0x95')][_0x3e90('0x78')](_0x382e5e[_0x3e90('0x5')][_0x3e90('0x10')](_0xfe9e3d));},{'priority':'low'}),_0x5cf5e7['on'](_0x3e90('0x18'),(_0xafa2f6,_0x54dc99)=>{const [_0x9cb254,_0x1ad14d={}]=_0x54dc99;if(!_0x5d3d43)return;const _0x42371d=_0x1ad14d['at']||0x0,_0x2c39ab=_0x1ad14d[_0x3e90('0x16')]||0x1;_0x5d3d43[_0x3e90('0x14')]=new Array(_0x2c39ab)[_0x3e90('0x79')](_0x42371d)[_0x3e90('0x38')]((_0x3b1a74,_0x8b74d9)=>_0x3b1a74+_0x8b74d9);for(const {cell:_0x5ee2ac}of _0x5cf5e7[_0x3e90('0x87')](_0x9cb254,{'startRow':_0x42371d,'endRow':_0x42371d+_0x2c39ab-0x1}))_0x5d3d43[_0x3e90('0x67')][_0x3e90('0x78')](_0x382e5e['model']['createRangeOn'](_0x5ee2ac));},{'priority':_0x3e90('0x70')}),_0x4cf150['_descriptionFactory'][_0x3e90('0x29')](_0x598eec=>{if(_0x598eec[_0x3e90('0x5f')]&&_0x598eec[_0x3e90('0x5f')][_0x3e90('0x56')](_0x3e90('0x0')))return _0x598eec[_0x3e90('0x39')]?{}:{'type':_0x3e90('0xae'),'content':_0x1d2b3a(_0x382e5e[_0x3e90('0x97')],'*Replace\x20table\x20cells*')};});const _0xb3b576=()=>{};for(const _0x3390d1 of['tablePaste',_0x3e90('0x11'),_0x3e90('0x31'),_0x3e90('0xa5')])_0x4cf150[_0x3e90('0x19')]['registerCustomCallback'](_0x3e90('0xae'),_0x3390d1,_0x3e90('0xf'),_0xb3b576),_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')](_0x3e90('0x51'),_0x3390d1,_0x3e90('0xf'),_0xb3b576);_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')]('formatBlock',_0x3e90('0xa5'),'discard',_0xb3b576),_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')](_0x3e90('0x82'),_0x3e90('0xa5'),_0x3e90('0x21'),(_0x21b6f2,_0x1f98c6,_0x36c4ef)=>{const _0x31ee47=_0x21b6f2[_0x3e90('0x38')](_0x4360f0=>_0x4360f0[_0x3e90('0xb')]())['filter'](_0x17bf6c=>_0x17bf6c),_0x21d981=new Map(_0x31ee47[_0x3e90('0x38')](_0x1c646a=>[_0x1c646a,null]));if(_0x5d3d43)for(const {element:_0x10ba7e,attributes:_0x46f9cc}of _0x5d3d43['cells'])_0x46f9cc&&_0x21d981[_0x3e90('0x63')](_0x10ba7e,_0x46f9cc);else{if(_0x36c4ef&&_0x36c4ef[_0x3e90('0x98')])for(const [_0x2763af,_0x4b6be4]of Object[_0x3e90('0x77')](_0x36c4ef[_0x3e90('0x98')])){const _0x48d385=_0x382e5e['model'][_0x3e90('0x6c')][_0x3e90('0x30')](_0x2763af),_0x5aac71=_0x48d385?_0x48d385[_0x3e90('0x12')]()[_0x3e90('0xb')]():null;_0x5aac71&&_0x21d981[_0x3e90('0x63')](_0x5aac71,_0x4b6be4);}}_0x382e5e[_0x3e90('0x5')]['change'](_0x453753=>{for(const [_0x3f706d,_0x251500]of _0x21d981)_0x453753[_0x3e90('0x8')]({...ce,..._0x251500},_0x3f706d);});});const _0x29ea74=(_0x39347f,_0x2cf81a)=>{_0x4cf150[_0x3e90('0x19')]['registerCustomCallback'](_0x39347f,'tablePaste',_0x2cf81a,(_0x5596b8,_0x44e05c,_0x592235)=>{_0x382e5e[_0x3e90('0x5')][_0x3e90('0x4e')](_0x1c8744=>{const _0x3ae630=[];for(const _0x1dee50 of _0x5596b8){const _0x3c4747=_0x1dee50['start'][_0x3e90('0x3d')];_0x3c4747['is']('element',_0x3e90('0x1d'))&&_0x3ae630['push'](_0x3c4747);}_0x4cf150[_0x3e90('0x19')][_0x3e90('0x75')](_0x39347f,null,_0x2cf81a)(_0x5596b8,_0x44e05c,_0x592235);for(const _0x36ced5 of _0x3ae630)'$graveyard'!=_0x36ced5[_0x3e90('0xd')]['rootName']&&_0x1c8744[_0x3e90('0x9a')](_0x36ced5);});});};_0x29ea74(_0x3e90('0xae'),_0x3e90('0x21')),_0x29ea74(_0x3e90('0xae'),_0x3e90('0x1e')),_0x29ea74('deletion','accept'),_0x29ea74('deletion','discard'),_0x4cf150['_suggestionFactory'][_0x3e90('0x8f')](_0x3e90('0xae'),_0x3e90('0x31'),'discard',_0x4efd21=>{const _0xc132ea=_0x4efd21[_0x3e90('0x38')](_0x1ab891=>_0x1ab891[_0x3e90('0xb')]()),_0x3dc462=_0xc132ea[0x0][_0x3e90('0x66')](_0x3e90('0x34')),{minRow:_0x43a861,maxRow:_0xf8aee8}=_0x42d719['_getCoordsForCells'](_0xc132ea);_0x5cf5e7[_0x3e90('0x59')](_0x3dc462,{'at':_0x43a861,'rows':_0xf8aee8-_0x43a861+0x1});}),_0x4cf150[_0x3e90('0x19')][_0x3e90('0x8f')](_0x3e90('0xae'),'tablePasteColumn','discard',_0xbab31=>{const _0x25d8f7=_0xbab31['map'](_0x4df1cc=>_0x4df1cc[_0x3e90('0xb')]()),_0x140702=_0x25d8f7[0x0][_0x3e90('0x66')](_0x3e90('0x34')),{minColumn:_0x1e4465,maxColumn:_0x5cf9c7}=_0x42d719[_0x3e90('0x53')](_0x25d8f7);_0x5cf5e7[_0x3e90('0x4d')](_0x140702,{'at':_0x1e4465,'columns':_0x5cf9c7-_0x1e4465+0x1});});const _0xd53eb5=(_0x22470f,_0x334cf8)=>{if(!_0x334cf8[_0x3e90('0x5f')]||!_0x334cf8[_0x3e90('0x5f')][_0x3e90('0x56')](_0x3e90('0x0')))return;const _0xa95a12=_0x334cf8[_0x3e90('0x37')]['tablePasteChainId'],_0x4588d4=_0x4cf150['getSuggestions']()[_0x3e90('0x2')](_0x4f0f00=>_0x4f0f00[_0x3e90('0x1b')]&&_0x4f0f00[_0x3e90('0x37')]&&_0x4f0f00['attributes'][_0x3e90('0x28')]==_0xa95a12);_0x4588d4[_0x3e90('0x1a')]&&_0x334cf8[_0x3e90('0x99')]()[_0x3e90('0x1a')]!=_0x4588d4[_0x3e90('0x1a')]&&_0x4588d4[_0x3e90('0x5c')]((_0x56e887,_0x3da199)=>(_0x56e887[_0x3e90('0x9')]=_0x3da199,_0x3da199['previous']=_0x56e887,_0x3da199));};function _0x4e37e0(_0x1efdc1,{showActiveMarker:_0x3ddbca=!0x0}={}){const {id:_0x1e0693}=_0x4cf150[_0x3e90('0x3a')](_0x1efdc1[_0x3e90('0x4c')]),_0x535398=[_0x3e90('0x32'),'ck-suggestion-marker-insertion'],_0x39f0cc=_0x4cf150[_0x3e90('0x8a')][_0x3e90('0xe')](_0x1efdc1[_0x3e90('0x4c')]);return _0x39f0cc&&_0x535398[_0x3e90('0x78')](_0x3e90('0x4f')),{'classes':_0x535398,'attributes':{'data-suggestion':_0x1e0693},'priority':_0x39f0cc&&_0x3ddbca?0xbc2:0xbb8};}_0x4cf150['on'](_0x3e90('0x36'),_0xd53eb5,{'priority':_0x3e90('0x27')}),_0x4cf150['on'](_0x3e90('0xa4'),_0xd53eb5,{'priority':'high'}),_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x45')](()=>{let _0x3612d6=!0x1;const _0x2d00d=Array['from'](_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x7b')][_0x3e90('0xab')]());for(const {name:_0x17b4d8,data:_0x146c62}of _0x2d00d){const {group:_0x4d2471,type:_0x9450e8,id:_0x395767}=_0x4cf150[_0x3e90('0x3a')](_0x17b4d8);if('suggestion'!=_0x4d2471||'deletion'!=_0x9450e8||_0x146c62[_0x3e90('0x2f')])continue;if(!_0x4cf150['hasSuggestion'](_0x395767))continue;const _0x437725=_0x4cf150[_0x3e90('0xa9')](_0x395767)[_0x3e90('0x73')](),_0x5cdd76=_0x382e5e[_0x3e90('0x6d')]['get']('Users')['me'];for(const _0x467630 of _0x4cf150[_0x3e90('0x58')]()){if(!_0x467630['isInContent']||_0x467630['author']!=_0x5cdd76)continue;if(_0x3e90('0x82')!=_0x467630[_0x3e90('0x46')]||_0x3e90('0xa5')!=_0x467630[_0x3e90('0x5f')])continue;if(_0x467630[_0x3e90('0x73')]()[_0x3e90('0x88')](_0x44c4f5=>_0x437725[_0x3e90('0xa1')](_0xd0198c=>_0xd0198c[_0x3e90('0x91')](_0x44c4f5,!0x0))))for(const _0x15147b of _0x467630[_0x3e90('0x99')]())_0x15147b[_0x3e90('0x1b')]&&(_0x15147b[_0x3e90('0x1e')](),_0x3612d6=!0x0);}}return _0x3612d6;}),_0x382e5e['model'][_0x3e90('0x7d')][_0x3e90('0x45')](_0x398b63=>{const _0x3890a6=_0x382e5e['commands']['get'](_0x3e90('0x81'));if(!_0x3890a6||!_0x3890a6['_createdBatches'][_0x3e90('0x7')](_0x398b63[_0x3e90('0x80')]))return!0x1;let _0x4e642f=!0x1;const _0x3b1529=_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x30')](_0x3e90('0x9b'))['me'],_0x10670e=_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x7b')][_0x3e90('0x3')](),_0x215d11=Array[_0x3e90('0x6f')](_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')]['differ'][_0x3e90('0xab')]())[_0x3e90('0x2')](({name:_0x5ee7e1,data:_0x3c035a})=>{const {group:_0x2197bc,subType:_0x51945a,authorId:_0x4be037}=_0x4cf150[_0x3e90('0x3a')](_0x5ee7e1);return _0x3e90('0xa6')==_0x2197bc&&'tablePaste'==_0x51945a&&_0x4be037==_0x3b1529['id']&&!_0x3c035a[_0x3e90('0x2f')];});for(const _0x474292 of _0x10670e){if(_0x3e90('0x72')!=_0x474292[_0x3e90('0x46')]||_0x3e90('0x1d')!=_0x474292[_0x3e90('0x96')]||0x1!=_0x474292[_0x3e90('0x1a')])continue;const _0x4609c6=_0x398b63[_0x3e90('0x4')](_0x474292[_0x3e90('0x86')],_0x474292[_0x3e90('0x86')][_0x3e90('0x5e')](0x1));if(!_0x215d11['find'](({data:_0x25b067})=>_0x25b067['newRange'][_0x3e90('0x17')](_0x4609c6)))for(const {name:_0x579e6b,data:_0x202b25}of _0x215d11)if(_0x4609c6[_0x3e90('0x91')](_0x202b25[_0x3e90('0x6')])){_0x398b63[_0x3e90('0x8d')](_0x579e6b,{'range':_0x4609c6}),_0x4e642f=!0x0;break;}}return _0x4e642f;}),_0x382e5e[_0x3e90('0x5')][_0x3e90('0x7d')][_0x3e90('0x45')](_0x3e0a17=>{let _0x19b9d9=!0x1;const _0x28ee50=_0x382e5e[_0x3e90('0x6d')][_0x3e90('0x30')](_0x3e90('0x9b'))['me'],_0x47205c=_0x4cf150['getSuggestions']()[_0x3e90('0x2')](_0xf18e7c=>_0xf18e7c['isInContent']&&_0xf18e7c[_0x3e90('0xa8')]==_0x28ee50),_0x5a752e=new Set(),_0x2aef2d=new Set();for(const _0x25cb41 of _0x47205c)if('tablePaste'==_0x25cb41['subType'])for(const _0x2e0058 of _0x25cb41['getMarkers']()){const _0x5645c7=_0x2e0058[_0x3e90('0x12')]()[_0x3e90('0xb')]();if(_0x5645c7){if(_0x5645c7['is'](_0x3e90('0x9d'),_0x3e90('0x1d'))&&fe(_0x5645c7)){_0x25cb41[_0x3e90('0xaf')](_0x2e0058[_0x3e90('0x96')]),_0x5a752e['add'](_0x5645c7),_0x19b9d9=!0x0;const _0x1210b4=_0x5645c7[_0x3e90('0xc')],_0x5d7637=_0x5645c7[_0x3e90('0x9e')],_0x38cc51=_0x1210b4&&_0x1210b4['is'](_0x3e90('0x9d'),_0x3e90('0x1d')),_0x35715c=_0x5d7637&&_0x5d7637['is'](_0x3e90('0x9d'),_0x3e90('0x1d'));_0x38cc51&&!_0x5a752e['has'](_0x1210b4)&&_0x2aef2d[_0x3e90('0x43')](_0x1210b4),_0x35715c&&!_0x5a752e[_0x3e90('0x7')](_0x5d7637)&&_0x2aef2d[_0x3e90('0x43')](_0x5d7637);}else _0x5645c7['is']('element',_0x3e90('0x4b'))&&_0x5645c7[_0x3e90('0x9f')]&&(_0x25cb41[_0x3e90('0xaf')](_0x2e0058[_0x3e90('0x96')]),_0x19b9d9=!0x0);}}else{if(_0x3e90('0xa5')==_0x25cb41[_0x3e90('0x5f')]){if(!_0x25cb41['attributes']||!_0x25cb41[_0x3e90('0x37')][_0x3e90('0x28')])continue;const _0x46f25e=_0x25cb41[_0x3e90('0x37')][_0x3e90('0x98')];if(_0x46f25e&&Object[_0x3e90('0x7c')](_0x46f25e)[_0x3e90('0x1a')])continue;const _0x44645f=_0x25cb41[_0x3e90('0x37')]['tablePasteChainId'];let _0x5b7bc7=!0x0,_0x4ee267=!0x0;for(const _0x353ddc of _0x47205c)if(_0x353ddc[_0x3e90('0x5f')]&&_0x353ddc[_0x3e90('0x5f')][_0x3e90('0x56')](_0x3e90('0x0'))){if(!_0x353ddc[_0x3e90('0x37')]['tablePasteChainId']){_0x4ee267=!0x1;break;}if(_0x353ddc['id']!=_0x25cb41['id']&&_0x353ddc[_0x3e90('0x37')][_0x3e90('0x28')]==_0x44645f){_0x5b7bc7=!0x1;break;}}_0x4ee267&&_0x5b7bc7&&(_0x25cb41[_0x3e90('0x92')](),_0x19b9d9=!0x0);}}for(const _0x4cd696 of _0x5a752e)_0x3e0a17[_0x3e90('0x49')](_0x4cd696);for(const _0x1b694b of _0x2aef2d)_0x3e0a17[_0x3e90('0x9a')](_0x1b694b);return _0x19b9d9;}),_0x382e5e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':_0x3e90('0x2c'),'view':_0x4e37e0,'converterPriority':_0x3e90('0x27')}),_0x382e5e[_0x3e90('0x65')][_0x3e90('0x42')](_0x3e90('0x15'))[_0x3e90('0x71')]({'model':_0x3e90('0x2c'),'view':(_0x2865ee,_0x32c13c)=>{if(_0x32c13c[_0x3e90('0x33')][_0x3e90('0x89')])return _0x4e37e0(_0x2865ee,{'showActiveMarker':!0x1});},'converterPriority':_0x3e90('0x27')});const _0x5b5041=_0x382e5e[_0x3e90('0xac')][_0x3e90('0x3f')];this[_0x3e90('0x57')](_0x5b5041[_0x3e90('0x7d')],_0x3e90('0x24'),(_0x248cac,_0x21fd2c)=>{const _0x45f3fc=[];for(const _0x8ab0e5 of _0x5b5041[_0x3e90('0x1')](_0x21fd2c[_0x3e90('0x5a')])[_0x3e90('0x1f')]())_0x8ab0e5['is']('element',_0x3e90('0x8c'))&&_0x45f3fc[_0x3e90('0x78')](_0x8ab0e5);_0x5b5041[_0x3e90('0x4e')](_0x44078b=>{for(const _0x18e057 of _0x45f3fc)_0x44078b[_0x3e90('0x93')](_0x44078b[_0x3e90('0x1')](_0x18e057),_0x44078b[_0x3e90('0x2a')](_0x18e057)),_0x44078b[_0x3e90('0x49')](_0x18e057);});});}}function fe(_0x39c8cd){if(_0x39c8cd[_0x3e90('0x9f')])return!0x0;const _0x45afb2=_0x39c8cd[_0x3e90('0x25')](0x0);return _0x45afb2['is'](_0x3e90('0x9d'),_0x3e90('0x4b'))&&_0x45afb2['isEmpty'];}function ue(_0x22aa2c,_0x804adf={},_0x51b4c8){for(const {isAnchor:_0x22c4b6,cellHeight:_0x4fc79b,cellWidth:_0x4c3a5e}of _0x51b4c8[_0x3e90('0x87')](_0x22aa2c,{'includeAllSlots':!0x0,..._0x804adf}))if(!_0x22c4b6||0x1!=_0x4fc79b||0x1!=_0x4c3a5e)return!0x1;return!0x0;}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x46b6=['columnWidths','commandParams','getContainedElement','formatGroupId','TrackChangesEditing','subType','change','data','Users','getAttribute','TableColumnResizeEditing','accept','registerCustomCallback','model','tableWidth','discard','formatBlock','locale','markBlockFormat','table','afterInit','handleSuggestionDescription','getSuggestions','getSelectedElement','editor','_descriptionFactory','getSuggestionCallback','get','enableCommand','format','*Format:*\x20resize\x20table','registerDescriptionCallback','resizeTable','setAttribute','handleResizeTableWidthCommand','plugins','_suggestionFactory','bind','selection','resizeTableWidth'];(function(_0x28db23,_0x46b642){const _0x8479d8=function(_0x1ed34a){while(--_0x1ed34a){_0x28db23['push'](_0x28db23['shift']());}};_0x8479d8(++_0x46b642);}(_0x46b6,0x10f));const _0x8479=function(_0x28db23,_0x46b642){_0x28db23=_0x28db23-0x0;let _0x8479d8=_0x46b6[_0x28db23];return _0x8479d8;};import{Plugin as _0x12405a}from'ckeditor5/src/core';import{getTranslation as _0x5a093d}from'../utils/common-translations';export default class yt extends _0x12405a{[_0x8479('0x1d')](){if(!this[_0x8479('0x21')][_0x8479('0x4')]['has'](_0x8479('0x13')))return;const _0x5d236f=this[_0x8479('0x21')]['plugins'][_0x8479('0x24')](_0x8479('0xd'));_0x5d236f[_0x8479('0x25')](_0x8479('0x8'),this[_0x8479('0x3')][_0x8479('0x6')](this)),_0x5d236f[_0x8479('0x25')]('resizeColumnWidths',this['handleResizeTableWidthCommand'][_0x8479('0x6')](this)),_0x5d236f[_0x8479('0x5')][_0x8479('0x15')](_0x8479('0x19'),_0x8479('0x1'),_0x8479('0x14'),_0x5d236f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,_0x8479('0x18'))),_0x5d236f['_suggestionFactory']['registerCustomCallback'](_0x8479('0x19'),_0x8479('0x1'),_0x8479('0x18'),_0x5d236f[_0x8479('0x5')][_0x8479('0x23')](_0x8479('0x19'),null,_0x8479('0x14'))),_0x5d236f[_0x8479('0x22')][_0x8479('0x0')](this[_0x8479('0x1e')][_0x8479('0x6')](this));}[_0x8479('0x3')](_0x2e9343,_0x44bf3a){const _0x439fff=this[_0x8479('0x21')][_0x8479('0x4')][_0x8479('0x24')](_0x8479('0xd')),_0x565361=_0x44bf3a[_0x8479('0x1c')]||this[_0x8479('0x21')][_0x8479('0x16')]['document'][_0x8479('0x7')][_0x8479('0x20')]();this[_0x8479('0x21')][_0x8479('0x16')][_0x8479('0xf')](_0x5e487d=>{let _0x2a8679=_0x565361[_0x8479('0x12')](_0x8479('0x17'))||null,_0x3b4a3a=_0x565361[_0x8479('0x12')](_0x8479('0x9'))||null;const _0x38c011=_0x44bf3a[_0x8479('0x17')]||_0x2a8679,_0x1f7fc8=_0x44bf3a[_0x8479('0x9')]||_0x3b4a3a,_0x1afe85=this[_0x8479('0x21')][_0x8479('0x4')]['get'](_0x8479('0x11'))['me'];for(const _0x45af1c of _0x439fff[_0x8479('0x1f')]()){const _0x2fbfcc=_0x45af1c[_0x8479('0xb')]();if(_0x8479('0x1')===_0x45af1c[_0x8479('0xe')]&&_0x2fbfcc===_0x565361){_0x45af1c['author']!==_0x1afe85&&_0x45af1c[_0x8479('0x18')](),_0x2a8679=_0x45af1c[_0x8479('0x10')][_0x8479('0xa')][0x0]['tableWidth'],_0x3b4a3a=_0x45af1c['data'][_0x8479('0xa')][0x0][_0x8479('0x9')];break;}}_0x5e487d[_0x8479('0x2')](_0x8479('0x17'),_0x38c011,_0x565361),_0x5e487d[_0x8479('0x2')](_0x8479('0x9'),_0x1f7fc8,_0x565361),_0x439fff[_0x8479('0x1b')](_0x565361,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a8679,'columnWidths':_0x3b4a3a}],'formatGroupId':'resizeTable'},[],_0x8479('0x1'));});}[_0x8479('0x1e')](_0x135eaa){const {data:_0x4ab723}=_0x135eaa;if(_0x4ab723&&'resizeTable'===_0x4ab723[_0x8479('0xc')]){const _0x4f2c13=_0x8479('0x27');return{'type':_0x8479('0x26'),'content':_0x5a093d(this[_0x8479('0x21')][_0x8479('0x1a')],_0x4f2c13)};}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x259d=['getChild','removeClass','mapper','headingColumns','markerNameToElements','change','commands','requires','data-suggestion','includes','markerRange','FORMAT_HEADER_COLUMN','model','consume','selection','_splitMarkerName','nodeAfter','commandName','commandParams','FORMAT_REGULAR_COLUMN','index','highest','last','activeMarkers','showSuggestionHighlights','table','headingRows','TrackChangesEditing','unbindElementFromMarkerName','editing','document','get','ck-suggestion-marker--active','createRange','getSuggestion','registerCustomCallback','accept','data','findAncestor','editor','addClass','consumable','afterInit','bindElementToMarker','getAttribute','*Format:*\x20%0','name','getSelectionAffectedTableCells','first','TableUtils','formatBlock','createPositionAfter','downcastDispatcher','options','_suggestionFactory','getColumnIndexes','getRowIndexes','setTableRowHeader','FORMAT_HEADER_ROW','setAttribute','cell','createPositionBefore','parent','_acceptFormatSuggestionCallbackFactory','markerName','_descriptionFactory','forceValue','getCellLocation','item','locale','ck-suggestion-marker-','TableEditing','toViewElement','childCount','writer','has','plugins','removeAttribute','enableCommand','createTableWalker','value','nodeBefore','setTableColumnHeader','markBlockFormat'];(function(_0x51758e,_0x259d30){const _0x125f77=function(_0x5d2fce){while(--_0x5d2fce){_0x51758e['push'](_0x51758e['shift']());}};_0x125f77(++_0x259d30);}(_0x259d,0x79));const _0x125f=function(_0x51758e,_0x259d30){_0x51758e=_0x51758e-0x0;let _0x125f77=_0x259d[_0x51758e];return _0x125f77;};import{Plugin as _0x582a8b}from'ckeditor5/src/core';import _0x1d9b61 from'./table';import{getTranslation as _0x374d0c}from'../utils/common-translations';export default class kt extends _0x582a8b{static get[_0x125f('0x36')](){return[_0x1d9b61];}[_0x125f('0x5')](){const _0xbd761c=this[_0x125f('0x2')];if(!_0xbd761c['plugins'][_0x125f('0x26')](_0x125f('0x22')))return;const _0x121eb2=_0xbd761c[_0x125f('0x20')],_0x51d0f8=_0xbd761c[_0x125f('0x27')][_0x125f('0x4e')](_0x125f('0x4a')),_0x3f09ca=_0xbd761c['plugins'][_0x125f('0x4e')](_0x125f('0xc')),_0x545404=_0xbd761c[_0x125f('0x27')][_0x125f('0x4e')](_0x1d9b61);function _0x51c04e({showActiveMarker:_0xbf7ffd=!0x0,setDataAttribute:_0xd1b463=!0x0}={}){return(_0xd9bfbe,_0x42ff0b,_0x14265f)=>{const {type:_0x21d292,id:_0x19ffa1}=_0x51d0f8['_splitMarkerName'](_0x42ff0b[_0x125f('0x1b')]),_0x886276=_0x51d0f8[_0x125f('0x51')](_0x19ffa1);if(!_0x886276[_0x125f('0x0')]||_0x125f('0x2d')!=_0x886276[_0x125f('0x0')]['commandName'])return;if(_0x42ff0b[_0x125f('0x1f')])return void _0xd9bfbe['stop']();if(!_0x14265f[_0x125f('0x4')][_0x125f('0x3c')](_0x42ff0b[_0x125f('0x39')],_0xd9bfbe[_0x125f('0x9')]))return;const _0x4b6e17=_0x42ff0b[_0x125f('0x39')]['start'][_0x125f('0x3f')],_0x2789cd=_0x42ff0b['markerRange']['end'][_0x125f('0x2c')],_0xe1ffe3=_0x4b6e17[_0x125f('0x19')][_0x125f('0x19')],{column:_0x4efcdf}=_0x3f09ca[_0x125f('0x1e')](_0x4b6e17),{column:_0x4b3011}=_0x3f09ca[_0x125f('0x1e')](_0x2789cd);for(let _0x2988f3=_0x4efcdf;_0x2988f3<=_0x4b3011;_0x2988f3++){const _0x398f77=_0x3f09ca[_0x125f('0x2a')](_0xe1ffe3,{'column':_0x2988f3,'includeAllSlots':!0x1});for(const _0x394420 of _0x398f77){const _0x5c850d=_0x394420[_0x125f('0x17')],_0x59f76a=_0x14265f['mapper'][_0x125f('0x23')](_0x5c850d);_0x14265f['writer']['addClass'](_0x125f('0x21')+_0x21d292,_0x59f76a),_0xd1b463&&_0x14265f['writer'][_0x125f('0x16')](_0x125f('0x37'),_0x19ffa1,_0x59f76a),_0x14265f['mapper'][_0x125f('0x6')](_0x59f76a,_0x42ff0b[_0x125f('0x1b')]),_0xbf7ffd&&(_0x51d0f8[_0x125f('0x46')][_0x125f('0x38')](_0x42ff0b['markerName'])?_0x14265f[_0x125f('0x25')][_0x125f('0x3')](_0x125f('0x4f'),_0x59f76a):_0x14265f[_0x125f('0x25')][_0x125f('0x30')](_0x125f('0x4f'),_0x59f76a));}}};}_0x51d0f8[_0x125f('0x29')](_0x125f('0x14'),(_0x1e980d,_0x3e4733)=>{const _0x5221f5=_0x3f09ca['getSelectionAffectedTableCells'](_0xbd761c[_0x125f('0x3b')]['document'][_0x125f('0x3d')]),_0x4f720c=_0x3f09ca[_0x125f('0x13')](_0x5221f5),_0x57045f=_0x5221f5[0x0][_0x125f('0x1')](_0x125f('0x48')),_0x292a9e=_0x57045f[_0x125f('0x7')](_0x125f('0x49'))||0x0,_0x8235c9=_0x3e4733&&null!==_0x3e4733['forceValue']?_0x3e4733['forceValue']:!_0xbd761c[_0x125f('0x35')]['get'](_0x125f('0x14'))[_0x125f('0x2b')],_0x32ff80=_0x8235c9?_0x4f720c[_0x125f('0x45')]:_0x4f720c[_0x125f('0xb')],_0x2ac05f=_0x57045f[_0x125f('0x2f')](_0x32ff80);let _0x333aa0;if(_0x8235c9){const _0x301744=_0x57045f['getChild'](_0x292a9e);if(_0x2ac05f['index']<_0x301744[_0x125f('0x43')])return;_0x333aa0=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x301744['getChild'](0x0)),_0xbd761c[_0x125f('0x3b')][_0x125f('0xe')](_0x2ac05f[_0x125f('0x2f')](_0x2ac05f[_0x125f('0x24')]-0x1)));}else{const _0x2eb5f8=_0x57045f[_0x125f('0x2f')](_0x292a9e-0x1);if(!_0x2eb5f8)return;_0x333aa0=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c['model'][_0x125f('0x18')](_0x2ac05f[_0x125f('0x2f')](0x0)),_0xbd761c[_0x125f('0x3b')][_0x125f('0xe')](_0x2eb5f8[_0x125f('0x2f')](_0x2eb5f8[_0x125f('0x24')]-0x1)));}_0xbd761c[_0x125f('0x3b')][_0x125f('0x34')](()=>{_0x51d0f8['markBlockFormat'](_0x333aa0,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x8235c9}]},[],_0x125f('0x14'));});}),_0x51d0f8[_0x125f('0x29')](_0x125f('0x2d'),(_0x327c78,_0x394169)=>{const _0x46afab=_0xbd761c['plugins'][_0x125f('0x4e')](_0x125f('0xc')),_0x5c2c08=_0x46afab[_0x125f('0xa')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x4d')][_0x125f('0x3d')]),_0x4ca9ce=_0x46afab[_0x125f('0x12')](_0x5c2c08),_0x40ec77=_0x5c2c08[0x0]['findAncestor'](_0x125f('0x48')),_0x2c3d3c=_0x40ec77[_0x125f('0x7')](_0x125f('0x32'))||0x0,_0x5bd6b8=_0x394169&&null!==_0x394169[_0x125f('0x1d')]?_0x394169['forceValue']:!_0xbd761c[_0x125f('0x35')]['get'](_0x125f('0x2d'))[_0x125f('0x2b')];let _0x2115aa;const _0x2adf6e=_0x40ec77['getChild'](0x0),_0x579f9d=_0x5bd6b8?_0x4ca9ce[_0x125f('0x45')]:_0x4ca9ce[_0x125f('0xb')],_0x958a7d=_0x46afab['createTableWalker'](_0x40ec77,{'startRow':0x0,'column':_0x579f9d,'includeAllSlots':!0x1}),_0x32d3dc=Array['from'](_0x958a7d)[0x0][_0x125f('0x17')];if(_0x5bd6b8){const _0x26a755=_0x2adf6e[_0x125f('0x2f')](_0x2c3d3c);if(_0x32d3dc['isBefore'](_0x26a755))return;_0x2115aa=_0xbd761c[_0x125f('0x3b')]['createRange'](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x26a755),_0xbd761c['model'][_0x125f('0xe')](_0x32d3dc));}else{const _0x4db355=_0x2adf6e['getChild'](_0x2c3d3c-0x1);if(!_0x4db355)return;_0x2115aa=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x32d3dc),_0xbd761c['model'][_0x125f('0xe')](_0x4db355));}_0xbd761c[_0x125f('0x3b')][_0x125f('0x34')](()=>{_0x51d0f8[_0x125f('0x2e')](_0x2115aa,{'commandName':_0x125f('0x2d'),'commandParams':[{'forceValue':_0x5bd6b8}]},[],'setTableColumnHeader');});}),_0xbd761c[_0x125f('0x4c')][_0x125f('0xf')]['on']('addMarker:suggestion',_0x51c04e(),{'priority':_0x125f('0x44')}),_0xbd761c[_0x125f('0x0')][_0x125f('0xf')]['on']('addMarker:suggestion',(_0x5ad84b,_0x50c037,_0x235847)=>{_0x235847[_0x125f('0x10')][_0x125f('0x47')]&&_0x51c04e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ad84b,_0x50c037,_0x235847);},{'priority':_0x125f('0x44')}),_0xbd761c[_0x125f('0x4c')][_0x125f('0xf')]['on']('removeMarker:suggestion',(_0x1f8ddd,_0xd0ab76,_0x2fc09b)=>{const {type:_0x5d2d4d,id:_0x267637}=_0x51d0f8[_0x125f('0x3e')](_0xd0ab76[_0x125f('0x1b')]),_0x254172=_0x51d0f8['getSuggestion'](_0x267637);if(!_0x254172['data']||_0x125f('0x2d')!=_0x254172[_0x125f('0x0')][_0x125f('0x40')])return;const _0x28f326=_0x2fc09b[_0x125f('0x31')][_0x125f('0x33')](_0xd0ab76['markerName']);if(_0x28f326)for(const _0x513e6d of _0x28f326)_0x2fc09b[_0x125f('0x25')][_0x125f('0x30')](_0x125f('0x21')+_0x5d2d4d,_0x513e6d),_0x2fc09b[_0x125f('0x25')]['removeClass']('ck-suggestion-marker--active',_0x513e6d),_0x2fc09b[_0x125f('0x25')][_0x125f('0x28')](_0x125f('0x37'),_0x513e6d),_0x2fc09b['mapper'][_0x125f('0x4b')](_0x513e6d,_0xd0ab76[_0x125f('0x1b')]);},{'priority':'highest'}),_0x51d0f8[_0x125f('0x1c')]['registerDescriptionCallback'](_0x358b4d=>{const {data:_0x59b34d}=_0x358b4d;if(_0x59b34d){if('setTableRowHeader'==_0x59b34d[_0x125f('0x40')]){const _0x54e086=_0x59b34d[_0x125f('0x41')][0x0][_0x125f('0x1d')];return _0x22d163(_0x374d0c(_0x121eb2,_0x54e086?_0x125f('0x15'):'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x59b34d[_0x125f('0x40')]){const _0x305f36=_0x59b34d[_0x125f('0x41')][0x0][_0x125f('0x1d')];return _0x22d163(_0x374d0c(_0x121eb2,_0x305f36?_0x125f('0x3a'):_0x125f('0x42')));}}function _0x22d163(_0xa178b3){return{'type':'format','content':_0x374d0c(_0x121eb2,_0x125f('0x8'),_0xa178b3)};}});const _0xb70182=_0x545404[_0x125f('0x1a')]();_0x51d0f8[_0x125f('0x11')]['registerCustomCallback'](_0x125f('0xd'),'setTableRowHeader',_0x125f('0x53'),_0xb70182),_0x51d0f8[_0x125f('0x11')][_0x125f('0x52')](_0x125f('0xd'),_0x125f('0x2d'),'accept',_0xb70182);}}
|