@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230723.0 → 0.0.0-nightly-20230725.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/README.md +0 -1
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/augmentation.d.ts +4 -0
- package/src/commands/acceptsuggestioncommand.d.ts +4 -0
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +4 -0
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +4 -0
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +4 -0
- package/src/integrations/alignment.d.ts +4 -0
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +4 -0
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +4 -0
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +4 -0
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +4 -0
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +4 -0
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +4 -0
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +4 -0
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +4 -0
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +4 -0
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +4 -0
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +4 -0
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +4 -0
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +4 -0
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +4 -0
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +4 -0
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +4 -0
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +4 -0
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +4 -0
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.d.ts +4 -0
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +4 -0
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +4 -0
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +4 -0
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +4 -0
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +4 -0
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +4 -0
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +4 -0
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +4 -0
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +4 -0
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +4 -0
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +4 -0
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +4 -0
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +4 -0
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +4 -0
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +4 -0
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +4 -0
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +4 -0
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +4 -0
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +4 -0
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +4 -0
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +4 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +4 -0
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +4 -0
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +4 -0
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +4 -0
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +11 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +4 -0
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +4 -0
- package/src/trackchangesdata.d.ts +4 -0
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +4 -0
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +4 -0
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +2 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +2 -2
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +4 -0
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +4 -0
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x586c=['downcastDispatcher','init','consumable','merge','requires','get','plugins','addMarker:suggestion:insertion','ck-suggestion-marker--active','registerElementLabel','shiftEnter','high','enableCommand','createUIElement','TrackChangesEditing','mapper','ELEMENT_LINE_BREAK','insert','locale','_descriptionFactory','writer','element','createPositionBefore','editor','addClass','markerName','activeMarkers','getItems','softBreak','options','addMarker:suggestion:deletion','deletion','split','markerRange','model','toViewPosition','span','editing'];(function(_0x53e399,_0x586c88){const _0x33488f=function(_0x4e2be9){while(--_0x4e2be9){_0x53e399['push'](_0x53e399['shift']());}};_0x33488f(++_0x586c88);}(_0x586c,0x1c4));const _0x3348=function(_0x53e399,_0x586c88){_0x53e399=_0x53e399-0x0;let _0x33488f=_0x586c[_0x53e399];return _0x33488f;};import{Plugin as _0x1cb3c8}from'ckeditor5/src/core';import{ShiftEnter as _0x2f0fe5}from'ckeditor5/src/enter';import{getTranslation as _0x4d2da7}from'../utils/common-translations';export default class ft extends _0x1cb3c8{static get[_0x3348('0x8')](){return[_0x2f0fe5];}[_0x3348('0x5')](){const _0x2e8055=this[_0x3348('0x1b')],_0x9822f6=_0x2e8055[_0x3348('0xa')]['get'](_0x3348('0x12'));_0x9822f6[_0x3348('0x10')](_0x3348('0xe')),_0x2e8055['editing'][_0x3348('0x4')]['on'](_0x3348('0xb'),re(_0x2e8055),{'priority':_0x3348('0xf')}),_0x2e8055[_0x3348('0x3')][_0x3348('0x4')]['on'](_0x3348('0x22'),re(_0x2e8055),{'priority':'high'}),_0x2e8055['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f4754,_0x1edeb0,_0x5e65dc)=>{_0x5e65dc[_0x3348('0x21')]['showSuggestionHighlights']&&re(_0x2e8055,{'showActiveMarker':!0x1})(_0x3f4754,_0x1edeb0,_0x5e65dc);}),_0x9822f6[_0x3348('0x17')][_0x3348('0xd')](_0x3348('0x20'),_0x40732a=>_0x4d2da7(_0x2e8055[_0x3348('0x16')],_0x3348('0x14'),_0x40732a));}}function re(_0x321ed8,{showActiveMarker:_0x137704=!0x0}={}){return(_0x14a553,_0x25adfd,_0x46ec00)=>{const _0xf77a50=_0x321ed8['plugins'][_0x3348('0x9')](_0x3348('0x12'));if(!_0x46ec00[_0x3348('0x6')]['test'](_0x25adfd[_0x3348('0x25')],_0x14a553['name']))return;const _0x5ce58a=_0x321ed8[_0x3348('0x0')];for(const _0x1a06e3 of _0x25adfd['markerRange'][_0x3348('0x1f')]()){if(!_0x1a06e3['is'](_0x3348('0x19'),_0x3348('0x20')))continue;const _0x218448=_0x3348('0x23')==_0x25adfd[_0x3348('0x1d')][_0x3348('0x24')](':')[0x1]?_0x3348('0x7'):'split',_0x2b72f5=_0x46ec00[_0x3348('0x18')][_0x3348('0x11')](_0x3348('0x2'),{'class':'ck-suggestion-marker-'+_0x218448}),_0x42ebcc=_0x46ec00[_0x3348('0x13')][_0x3348('0x1')](_0x5ce58a[_0x3348('0x1a')](_0x1a06e3));_0x137704&&_0xf77a50[_0x3348('0x1e')]['includes'](_0x25adfd[_0x3348('0x1d')])&&_0x46ec00[_0x3348('0x18')][_0x3348('0x1c')](_0x3348('0xc'),_0x2b72f5),_0x46ec00['writer'][_0x3348('0x15')](_0x42ebcc,_0x2b72f5),_0x46ec00[_0x3348('0x13')]['bindElementToMarker'](_0x2b72f5,_0x25adfd[_0x3348('0x1d')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x979d=['plugins','editor','FORMAT_RESTRICTED_DISABLED','has','format','get','restrictedEditingException','enableCommand','markInlineFormat','TrackChangesEditing','commandName','FORMAT_RESTRICTED_ENABLED','from','registerDescriptionCallback','change','_descriptionFactory','StandardEditingModeEditing','afterInit','value','forceValue'];(function(_0x55d186,_0x979dda){const _0x49a8ad=function(_0x5257eb){while(--_0x5257eb){_0x55d186['push'](_0x55d186['shift']());}};_0x49a8ad(++_0x979dda);}(_0x979d,0x1cc));const _0x49a8=function(_0x55d186,_0x979dda){_0x55d186=_0x55d186-0x0;let _0x49a8ad=_0x979d[_0x55d186];return _0x49a8ad;};import{Plugin as _0x85e909}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x157368}from'./utils';import{getTranslation as _0x1a5d24}from'../utils/common-translations';export default class lt extends _0x85e909{[_0x49a8('0x11')](){const _0xf6c04f=this[_0x49a8('0x1')],_0x53d392=_0xf6c04f['model'],_0x1e39b2=_0xf6c04f['locale'];if(!_0xf6c04f[_0x49a8('0x0')][_0x49a8('0x3')](_0x49a8('0x10')))return;const _0x23538e=_0xf6c04f[_0x49a8('0x0')][_0x49a8('0x5')](_0x49a8('0x9')),_0x3f8628=_0x49a8('0x6'),_0x53a936=_0xf6c04f['commands'][_0x49a8('0x5')](_0x3f8628);_0x23538e[_0x49a8('0x7')](_0x3f8628,(_0x5bb7fa,_0x4d9aa2={})=>{const _0x111b2f=_0x53d392['document']['selection'];if(_0x111b2f['isCollapsed'])return void _0x5bb7fa(_0x4d9aa2);const _0x22722f=void 0x0!==_0x4d9aa2['forceValue']?_0x4d9aa2['forceValue']:!_0x53a936[_0x49a8('0x12')];_0x53d392[_0x49a8('0xe')](()=>{const _0x26d985=Array[_0x49a8('0xc')](_0x111b2f['getRanges']());for(const _0x1cdac2 of _0x26d985){const _0x2ead55=_0x22722f?[_0x1cdac2]:_0x157368(_0x3f8628,_0x1cdac2,_0x53d392);for(const _0x3317bc of _0x2ead55)_0x23538e[_0x49a8('0x8')](_0x3317bc,{'commandName':_0x3f8628,'commandParams':[{'forceValue':_0x22722f}]});}});}),_0x23538e[_0x49a8('0xf')][_0x49a8('0xd')](_0x1feb4f=>{const {data:_0x350a19}=_0x1feb4f;if(_0x350a19&&_0x350a19[_0x49a8('0xa')]==_0x3f8628)return _0x350a19['commandParams'][0x0][_0x49a8('0x13')]?{'type':_0x49a8('0x4'),'content':_0x1a5d24(_0x1e39b2,_0x49a8('0xb'))}:{'type':_0x49a8('0x4'),'content':_0x1a5d24(_0x1e39b2,_0x49a8('0x2'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4275=['createRangeOn','commandName','element','includes','afterInit','_descriptionFactory','normalizeConfig','toLowerCase','_getRangesWithClasses','block','commandParams','change','every','getSelectedBlocks','selection','markBlockFormat','style','classes','model','markInlineFormat','add','registerDescriptionCallback','getAttribute','find','isCollapsed','has','styleName','getDefinitionsForView','forceValue','document','getItems','enabledStyles','name','*Remove\x20format:*\x20%0','DataSchema','TrackChangesEditing','get','plugins','value','from','commands','*Format:*\x20%0','push','style.definitions','editor','format','_getStyleDefinition','StyleUtils','Style','getAncestors','isBlock','enableCommand','locale'];(function(_0x4f2fa8,_0x427571){const _0x19670f=function(_0x39763c){while(--_0x39763c){_0x4f2fa8['push'](_0x4f2fa8['shift']());}};_0x19670f(++_0x427571);}(_0x4275,0x1b0));const _0x1967=function(_0x4f2fa8,_0x427571){_0x4f2fa8=_0x4f2fa8-0x0;let _0x19670f=_0x4275[_0x4f2fa8];return _0x19670f;};import{Plugin as _0x13e86e}from'ckeditor5/src/core';import{getTranslation as _0x3d68d7}from'../utils/common-translations';export default class gt extends _0x13e86e{[_0x1967('0x31')](){const _0x36a9bd=this[_0x1967('0x24')];if(!_0x36a9bd[_0x1967('0x1d')][_0x1967('0x11')](_0x1967('0x28')))return;const _0x2c4605=_0x36a9bd[_0x1967('0x20')]['get']('style'),_0x59c042=_0x36a9bd[_0x1967('0x1d')][_0x1967('0x1c')](_0x1967('0x1b')),_0x22bedc=_0x36a9bd[_0x1967('0x2c')],_0xd0be8c=_0x36a9bd['plugins'][_0x1967('0x1c')](_0x1967('0x1a')),_0xf6f3d6=_0x36a9bd[_0x1967('0x1d')][_0x1967('0x1c')](_0x1967('0x27'))[_0x1967('0x33')](_0xd0be8c,_0x36a9bd['config'][_0x1967('0x1c')](_0x1967('0x23')));_0x59c042[_0x1967('0x2b')](_0x1967('0x8'),(_0x5588d7,{styleName:_0x325748})=>{const _0x142378=_0x36a9bd[_0x1967('0xa')][_0x1967('0x15')][_0x1967('0x6')],_0x10be5d=this[_0x1967('0x26')](_0x325748,_0xf6f3d6);if(!_0x10be5d)return;if(!_0x2c4605[_0x1967('0x17')]['includes'](_0x325748))return;if(_0x142378[_0x1967('0x10')]&&!_0x10be5d[_0x1967('0x2a')])return void _0x5588d7({'styleName':_0x325748});const _0x579c1a=!_0x2c4605[_0x1967('0x1e')][_0x1967('0x30')](_0x10be5d[_0x1967('0x18')]);if(_0x10be5d[_0x1967('0x2a')]){const _0x5d15f0=function(_0x1b4e42,_0x2d8eee){const _0x22d3bf=new Set();for(const _0x54ad0d of _0x1b4e42){const _0x18e1b2=_0x54ad0d[_0x1967('0x29')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0xafdcb of _0x18e1b2)if(_0x2d8eee['includes'](_0xafdcb[_0x1967('0x18')])){_0x22d3bf[_0x1967('0xc')](_0xafdcb);break;}}return _0x22d3bf;}(_0x142378[_0x1967('0x5')](),_0x10be5d['modelElements']);_0x36a9bd[_0x1967('0xa')]['change'](()=>{for(const _0x1c616f of _0x5d15f0)_0x59c042[_0x1967('0x7')](_0x1c616f,{'commandName':'style','commandParams':[{'styleName':_0x325748,'forceValue':_0x579c1a}],'formatGroupId':'style:'+_0x325748});});}else{let _0x221519=Array[_0x1967('0x1f')](_0x142378['getRanges']());if(!_0x579c1a){const _0x1f8ee0=Array[_0x1967('0x1f')](_0xd0be8c[_0x1967('0x13')](_0x10be5d[_0x1967('0x2f')],!0x1))[0x0][_0x1967('0xa')],_0x699f63=[];for(const _0x159ca2 of _0x221519){const _0x2724c6=this['_getRangesWithClasses'](_0x36a9bd[_0x1967('0xa')],_0x159ca2,_0x10be5d[_0x1967('0x9')],_0x1f8ee0);_0x699f63['push'](..._0x2724c6);}_0x221519=_0x699f63;}_0x36a9bd[_0x1967('0xa')][_0x1967('0x3')](()=>{for(const _0x304863 of _0x221519)_0x59c042[_0x1967('0xb')](_0x304863,{'commandName':_0x1967('0x8'),'commandParams':[{'styleName':_0x325748,'forceValue':_0x579c1a}]});});}}),_0x59c042[_0x1967('0x32')][_0x1967('0xd')](_0x3fc407=>{const {data:_0x1a9165}=_0x3fc407;if(_0x1a9165&&_0x1967('0x8')===_0x1a9165[_0x1967('0x2e')])return _0x1a9165[_0x1967('0x2')][0x0][_0x1967('0x14')]?{'type':_0x1967('0x25'),'content':_0x3d68d7(_0x22bedc,_0x1967('0x21'),_0x1a9165[_0x1967('0x2')][0x0][_0x1967('0x12')][_0x1967('0x34')]())}:{'type':_0x1967('0x25'),'content':_0x3d68d7(_0x22bedc,_0x1967('0x19'),_0x1a9165[_0x1967('0x2')][0x0][_0x1967('0x12')][_0x1967('0x34')]())};});}[_0x1967('0x26')](_0x194a5f,_0x1d49a8){let _0x391cd4=_0x1d49a8[_0x1967('0x1')][_0x1967('0xf')](_0x32b1f6=>_0x32b1f6['name']===_0x194a5f);return _0x391cd4||(_0x391cd4=_0x1d49a8['inline'][_0x1967('0xf')](_0x442cda=>_0x442cda['name']===_0x194a5f)),_0x391cd4;}[_0x1967('0x0')](_0x2c8c2d,_0x5127f8,_0x162c87,_0x36f8a5){const _0x4e22b3=[];for(const _0x29d421 of _0x5127f8[_0x1967('0x16')]()){const _0x5c8fa4=_0x29d421[_0x1967('0xe')](_0x36f8a5);_0x5c8fa4&&(_0x162c87[_0x1967('0x4')](_0x4c3a76=>_0x5c8fa4[_0x1967('0x9')][_0x1967('0x30')](_0x4c3a76))&&_0x4e22b3[_0x1967('0x22')](_0x2c8c2d[_0x1967('0x2d')](_0x29d421)));}return _0x4e22b3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3689=['tableColumn','commands','refresh','registerDescriptionCallback','enqueueChange','options','substr','model','start','isEqual','isTouching','registerElementLabel','getChildren','maxColumn','cell','hasAttribute','above','detach','_getCoordsForCells','ELEMENT_TABLE_ROW_WITH_TEXT','change:data','getContainedElement','*Remove:*\x20%0','ELEMENT_TABLE','span','element','createRangeOn','ELEMENT_TABLE_WITH_TEXT','mapper','getCellLocation','insertion','some','first','rowspan','selectTableColumn','forceValue','getRowIndexes','_suggestionFactory','data','oldRange','name','suggestion','fromRange','every','length','addMarker:suggestion','registerCustomCallback','root','_tableSuggestions','*Insert:*\x20%0','insert','type','getItems','values','TableEditing','tablePaste','rootName','from','nodeAfter','writer','accept','getChangedMarkers','_tablePostFixingSubtypes','getRanges','order','insertTableRowBelow','removeTableColumn','tableCell','markMultiRangeInsertion','discard','setSelection','removeClass','ELEMENT_TABLE_ROW','max','ELEMENT_TABLE_COLUMN','push','item','differ','highest','subType','TableUtils','minRow','change','getAttribute','editor','execute','$graveyard','getSelectionAffectedTableCells','end','low','$textProxy','get','selection','ELEMENT_TABLE_COLUMN_WITH_TEXT','insertTableColumnRight','MAX_SAFE_INTEGER','join','removeTableRow','filter','getFirstRange','tableRow','createTableWalker','document','_getSuggestionCoords','TrackChangesEditing','_descriptionFactory','map','getColumnIndexes','locale','plugins','_acceptFormatSuggestionCallbackFactory','last','deletion','includes','registerPostFixer','enableCommand','position','toLowerCase','findAncestor','min','createRangeIn','maxRow','insertTableRowAbove','MIN_SAFE_INTEGER','colspan','table','nodeBefore','markMultiRangeDeletion','addRange','insertTableColumnLeft','isInContent','minColumn'];(function(_0x59ff47,_0x368942){const _0x1ad8fe=function(_0x4919fb){while(--_0x4919fb){_0x59ff47['push'](_0x59ff47['shift']());}};_0x1ad8fe(++_0x368942);}(_0x3689,0x1de));const _0x1ad8=function(_0x59ff47,_0x368942){_0x59ff47=_0x59ff47-0x0;let _0x1ad8fe=_0x3689[_0x59ff47];return _0x1ad8fe;};import{Plugin as _0x200495}from'ckeditor5/src/core';import{LiveRange as _0x4c518c}from'ckeditor5/src/engine';import{setHighlightHandling as _0x188268}from'ckeditor5/src/widget';import{getTranslation as _0xa8bed0}from'../utils/common-translations';export default class mt extends _0x200495{constructor(_0x1eb2ca){super(_0x1eb2ca),this[_0x1ad8('0x70')]=[_0x1ad8('0x12'),_0x1ad8('0x32')],this[_0x1ad8('0x62')]=new Set();}['afterInit'](){const _0x3c204a=this[_0x1ad8('0x2')],_0x2c32ef=_0x3c204a['model'][_0x1ad8('0x14')][_0x1ad8('0xa')];if(!_0x3c204a['plugins']['has'](_0x1ad8('0x68')))return;const _0x1b9dd2=_0x3c204a[_0x1ad8('0x1a')],_0x42a3e7=_0x3c204a[_0x1ad8('0x1b')][_0x1ad8('0x9')](_0x1ad8('0x16')),_0x109d1e=_0x3c204a[_0x1ad8('0x1b')][_0x1ad8('0x9')](_0x1ad8('0x82'));_0x42a3e7[_0x1ad8('0x17')][_0x1ad8('0x3d')](_0x1ad8('0x2b'),_0x31331b=>_0xa8bed0(_0x1b9dd2,_0x1ad8('0x49'),_0x31331b)),this['_setupColumnsRowsFixing'](),_0x42a3e7[_0x1ad8('0x21')]('insertTable'),_0x42a3e7['enableCommand']('selectTableRow'),_0x42a3e7[_0x1ad8('0x21')](_0x1ad8('0x54'));for(const _0x4bb0d1 of[_0x1ad8('0x28'),_0x1ad8('0x73')]){const _0xf1f5c0=_0x3c204a[_0x1ad8('0x33')][_0x1ad8('0x9')](_0x4bb0d1);_0x42a3e7['enableCommand'](_0x4bb0d1,_0x2be25c=>{_0x3c204a['model'][_0x1ad8('0x0')](_0x18f694=>{_0x2be25c();const _0x1dc189=_0x1ad8('0x42')===_0xf1f5c0[_0x1ad8('0x72')],_0x542cb1=_0x109d1e[_0x1ad8('0x5')](_0x2c32ef),_0x4a2822=_0x109d1e[_0x1ad8('0x56')](_0x542cb1),_0x52e4ea=_0x1dc189?_0x4a2822['first']-0x1:_0x4a2822['last']+0x1,_0x3f815f=_0x542cb1[0x0][_0x1ad8('0x24')](_0x1ad8('0x2b')),_0x1be42f=_0x109d1e[_0x1ad8('0x13')](_0x3f815f,{'startRow':_0x52e4ea,'endRow':_0x52e4ea}),_0x1c76f2=Array[_0x1ad8('0x6b')](_0x1be42f)[_0x1ad8('0x18')](_0x4750ad=>_0x18f694[_0x1ad8('0x4c')](_0x4750ad[_0x1ad8('0x40')]));_0x42a3e7[_0x1ad8('0x76')](_0x1c76f2,'tableRow');});});}for(const _0x1ae9ea of[_0x1ad8('0x2f'),_0x1ad8('0xc')]){const _0x22e0d1=_0x3c204a['commands'][_0x1ad8('0x9')](_0x1ae9ea);_0x42a3e7[_0x1ad8('0x21')](_0x1ae9ea,_0x3feed0=>{_0x3c204a[_0x1ad8('0x39')]['change'](_0x37f42d=>{_0x3feed0();const _0x443460='left'===_0x22e0d1['order'],_0x59a781=_0x109d1e[_0x1ad8('0x5')](_0x2c32ef),_0x50678e=_0x109d1e[_0x1ad8('0x19')](_0x59a781),_0x4a3413=_0x443460?_0x50678e[_0x1ad8('0x52')]-0x1:_0x50678e[_0x1ad8('0x1d')]+0x1,_0x5d477c=_0x59a781[0x0][_0x1ad8('0x24')](_0x1ad8('0x2b')),_0x510e63=_0x109d1e['createTableWalker'](_0x5d477c,{'startRow':0x0,'column':_0x4a3413,'includeAllSlots':!0x1}),_0x21b054=Array[_0x1ad8('0x6b')](_0x510e63)['map'](_0x3ebc8c=>_0x37f42d[_0x1ad8('0x4c')](_0x3ebc8c[_0x1ad8('0x40')]));_0x42a3e7[_0x1ad8('0x76')](_0x21b054,_0x1ad8('0x32'));});});}for(const _0x39ae87 of[_0x1ad8('0xf'),_0x1ad8('0x74')]){const _0x3fac01=_0x39ae87[_0x1ad8('0x38')](0xb),_0x577b4f=_0x3fac01[_0x1ad8('0x23')](),_0x491a8f=_0x577b4f[_0x1ad8('0x38')](0x0,0x3)+_0x1ad8('0x4a'),_0x2691ce='table'+_0x3fac01,_0x3b072d=_0x1ad8('0x25')+_0x3fac01,_0x122e7e=_0x1ad8('0x7b')+_0x3fac01;_0x42a3e7[_0x1ad8('0x21')](_0x39ae87,()=>{_0x3c204a[_0x1ad8('0x39')][_0x1ad8('0x0')](_0x4d283a=>{const _0x339546=_0x109d1e[_0x1ad8('0x5')](_0x2c32ef),_0x511044=_0x339546[0x0]['findAncestor']('table');let _0x5d070e;if(_0x1ad8('0xf')==_0x39ae87){const _0x53b9e9=_0x109d1e['getRowIndexes'](_0x339546);_0x5d070e={'startRow':_0x53b9e9[_0x1ad8('0x52')],'endRow':_0x53b9e9[_0x1ad8('0x1d')],'includeAllSlots':!0x0};}else{const _0x3663c8=_0x109d1e[_0x1ad8('0x19')](_0x339546);_0x5d070e={'startColumn':_0x3663c8['first'],'endColumn':_0x3663c8[_0x1ad8('0x1d')],'includeAllSlots':!0x0};}const _0x309616=_0x109d1e['createTableWalker'](_0x511044,_0x5d070e),_0x2ebdb6=Array[_0x1ad8('0x6b')](_0x309616)[_0x1ad8('0x18')](({cell:_0x302993})=>_0x302993),_0x51af2a=se(_0x2ebdb6['filter'](_0x1cf3cb=>_0x1cf3cb[_0x1ad8('0x41')](_0x491a8f))),_0x17fb85=se(_0x2ebdb6[_0x1ad8('0x10')](_0x4f0964=>!_0x4f0964[_0x1ad8('0x41')](_0x491a8f)))[_0x1ad8('0x18')](_0x1a6afa=>_0x4d283a['createRangeOn'](_0x1a6afa)),_0x420601=_0x42a3e7[_0x1ad8('0x2d')](_0x17fb85,_0x2691ce);if(_0x420601&&(_0x1ad8('0x12')==_0x420601[_0x1ad8('0x81')]||_0x1ad8('0x32')==_0x420601[_0x1ad8('0x81')])){const _0x4dd1de=this['_getSuggestionCoords'](_0x420601);for(const _0x3d22fc of _0x51af2a){const _0x3e8ef0=_0x4d283a['createRangeOn'](_0x3d22fc),_0x401baa=_0x109d1e['getCellLocation'](_0x3d22fc),_0x271581=_0x3d22fc[_0x1ad8('0x1')](_0x491a8f)-0x1,_0x456c67=_0x4dd1de[_0x3b072d],_0x394dd0=_0x4dd1de[_0x122e7e];_0x456c67<=_0x401baa[_0x577b4f]&&_0x401baa[_0x577b4f]+_0x271581<=_0x394dd0&&_0x420601['addRange'](_0x3e8ef0);}}});});}function _0x3e4842(_0x28e48a){const _0x32606e=Array['from'](_0x2c32ef[_0x1ad8('0x71')]())[_0x1ad8('0x18')](_0x226ebb=>_0x4c518c[_0x1ad8('0x5c')](_0x226ebb));_0x3c204a['model'][_0x1ad8('0x0')](_0x50f424=>{const _0x32dab8=_0x50f424['batch'];_0x28e48a=_0x28e48a['filter'](_0x4bc2ac=>_0x1ad8('0x4')!=_0x4bc2ac[_0x1ad8('0x61')][_0x1ad8('0x6a')]),_0x50f424[_0x1ad8('0x78')](_0x28e48a),_0x3c204a[_0x1ad8('0x33')][_0x1ad8('0x9')]('removeTableRow')[_0x1ad8('0x34')](),_0x3c204a[_0x1ad8('0x3')](_0x1ad8('0xf'),{'forceDefaultExecution':!0x0}),_0x3c204a['model'][_0x1ad8('0x36')](()=>{_0x3c204a[_0x1ad8('0x39')][_0x1ad8('0x36')](_0x32dab8,_0x19cbf2=>{const _0x1d3872=_0x32606e[_0x1ad8('0x10')](_0x22fde3=>_0x1ad8('0x4')!=_0x22fde3[_0x1ad8('0x61')][_0x1ad8('0x6a')]);_0x1d3872['length']>0x0&&_0x19cbf2['setSelection'](_0x1d3872);for(const _0x112862 of _0x32606e)_0x112862['detach']();});});});}function _0x38ee7e(_0x548d8c){_0x3c204a[_0x1ad8('0x39')][_0x1ad8('0x0')](_0x274b3a=>{const _0x3d407a=Array[_0x1ad8('0x6b')](_0x2c32ef[_0x1ad8('0x71')]())['map'](_0xfb2ef0=>_0x4c518c[_0x1ad8('0x5c')](_0xfb2ef0)),_0xe93ea=[];for(const _0x5289a0 of _0x548d8c)for(const _0x2f6a9a of _0x5289a0['getItems']({'shallow':!0x0}))_0xe93ea[_0x1ad8('0x7d')](_0x2f6a9a);for(const _0x59746f of _0xe93ea)_0x1ad8('0x4')!=_0x59746f[_0x1ad8('0x61')][_0x1ad8('0x6a')]&&(_0x274b3a[_0x1ad8('0x78')](_0x274b3a['createPositionAt'](_0x59746f,0x0)),_0x3c204a['commands'][_0x1ad8('0x9')](_0x1ad8('0x74'))[_0x1ad8('0x34')](),_0x3c204a[_0x1ad8('0x3')](_0x1ad8('0x74'),{'forceDefaultExecution':!0x0}));const _0x30758e=_0x3d407a[_0x1ad8('0x10')](_0x136ee1=>_0x1ad8('0x4')!=_0x136ee1[_0x1ad8('0x61')][_0x1ad8('0x6a')]);_0x30758e[_0x1ad8('0x5e')]>0x0&&_0x274b3a[_0x1ad8('0x78')](_0x30758e);for(const _0x1a1f43 of _0x3d407a)_0x1a1f43[_0x1ad8('0x43')]();});}function _0x44f3d9(_0x2bbf25,_0x8a492){return _0x8a492[_0x1ad8('0x5d')](_0x43ae40=>_0x2bbf25[_0x1ad8('0x51')](_0x2f401f=>_0x2f401f[_0x1ad8('0x6')]['isEqual'](_0x43ae40[_0x1ad8('0x3a')])||_0x43ae40[_0x1ad8('0x6')][_0x1ad8('0x3b')](_0x2f401f[_0x1ad8('0x3a')])));}function _0x94a608(_0x4cc282,_0x251e48){return _0x4cc282[_0x1ad8('0x51')](_0x4d9217=>_0x251e48['some'](_0x14bb40=>_0x4d9217[_0x1ad8('0x6')][_0x1ad8('0x3c')](_0x14bb40[_0x1ad8('0x3a')])));}_0x3c204a[_0x1ad8('0x58')]['downcastDispatcher']['on'](_0x1ad8('0x5f'),(_0x2f9cc5,_0x29c073,_0x463c3a)=>{if(!_0x463c3a[_0x1ad8('0x37')]['showSuggestionHighlights'])return;const _0x3a0221=_0x29c073[_0x1ad8('0x7e')];if(!_0x3a0221)return;const _0x17b5aa=_0x463c3a[_0x1ad8('0x4e')]['toViewElement'](_0x3a0221);function _0x4a37d1(_0x516b52){return Array['isArray'](_0x516b52)?_0x516b52:[_0x516b52];}_0x17b5aa&&_0x1ad8('0x75')===_0x3a0221[_0x1ad8('0x5a')]&&_0x188268(_0x17b5aa,_0x463c3a[_0x1ad8('0x6d')],(_0x1f9ef6,_0x57d6f9,_0x4d9bd8)=>_0x4d9bd8['addClass'](_0x4a37d1(_0x57d6f9['classes']),_0x1f9ef6),(_0x5f5632,_0x283a07,_0x5b8363)=>_0x5b8363[_0x1ad8('0x79')](_0x4a37d1(_0x283a07['classes']),_0x5f5632));},{'priority':_0x1ad8('0x80')}),_0x42a3e7['_descriptionFactory']['registerDescriptionCallback'](_0xed551c=>{if(_0x1ad8('0x50')!=_0xed551c['type']&&'deletion'!=_0xed551c[_0x1ad8('0x65')])return;const _0x12a978=_0xed551c[_0x1ad8('0x47')]();if(null!=_0x12a978&&_0x12a978['is'](_0x1ad8('0x4b'),_0x1ad8('0x2b'))){if(_0x1ad8('0x50')==_0xed551c[_0x1ad8('0x65')]){const _0x2b0948=_0xed551c[_0x1ad8('0x66')]()[_0x1ad8('0x10')](_0x234d5a=>_0x234d5a['is'](_0x1ad8('0x8')))['map'](_0x5b2aba=>_0x5b2aba[_0x1ad8('0x58')]);if(_0x2b0948[_0x1ad8('0x5e')])return{'type':_0x1ad8('0x50'),'content':_0xa8bed0(_0x1b9dd2,'*Insert:*\x20%0',_0xa8bed0(_0x1b9dd2,_0x1ad8('0x4d'),'\x22'+_0x2b0948['join']('\x20')+'\x22'))};}if(_0x1ad8('0x1e')==_0xed551c[_0x1ad8('0x65')]){const _0x4d79ce=_0xed551c[_0x1ad8('0x66')]()[_0x1ad8('0x10')](_0xca306=>_0xca306['is'](_0x1ad8('0x8')))['map'](_0x255868=>_0x255868[_0x1ad8('0x58')]);if(_0x4d79ce['length'])return{'type':'deletion','content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x48'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0x4d'),'\x22'+_0x4d79ce['join']('\x20')+'\x22'))};}}}),_0x42a3e7['_descriptionFactory'][_0x1ad8('0x35')](_0xb5c822=>{if(_0x1ad8('0x12')==_0xb5c822[_0x1ad8('0x81')]){const _0xdaaefb=_0xb5c822['getItems']()[_0x1ad8('0x10')](_0x821df5=>_0x821df5['is']('$textProxy'))[_0x1ad8('0x18')](_0x158508=>_0x158508[_0x1ad8('0x58')]),_0x56f832=this[_0x1ad8('0x15')](_0xb5c822),_0xaa4277=_0x56f832[_0x1ad8('0x27')]-_0x56f832[_0x1ad8('0x83')]+0x1;if(_0x1ad8('0x50')==_0xb5c822['type'])return _0xdaaefb[_0x1ad8('0x5e')]?{'type':'insertion','content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x63'),_0xa8bed0(_0x1b9dd2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xaa4277,'\x22'+_0xdaaefb['join']('\x20')+'\x22']))}:{'type':_0x1ad8('0x50'),'content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x63'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0x7a'),_0xaa4277))};if(_0x1ad8('0x1e')==_0xb5c822[_0x1ad8('0x65')])return _0xdaaefb[_0x1ad8('0x5e')]?{'type':_0x1ad8('0x1e'),'content':_0xa8bed0(_0x1b9dd2,'*Remove:*\x20%0',_0xa8bed0(_0x1b9dd2,_0x1ad8('0x45'),[_0xaa4277,'\x22'+_0xdaaefb['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x48'),_0xa8bed0(_0x1b9dd2,'ELEMENT_TABLE_ROW',_0xaa4277))};}if(_0x1ad8('0x32')==_0xb5c822['subType']){const _0x1891f7=_0xb5c822[_0x1ad8('0x66')]()[_0x1ad8('0x10')](_0x203e2e=>_0x203e2e['is'](_0x1ad8('0x8')))[_0x1ad8('0x18')](_0x3574da=>_0x3574da[_0x1ad8('0x58')]),_0x59ba4f=this[_0x1ad8('0x15')](_0xb5c822),_0x4a29ae=_0x59ba4f[_0x1ad8('0x3f')]-_0x59ba4f[_0x1ad8('0x31')]+0x1;if(_0x1ad8('0x50')==_0xb5c822[_0x1ad8('0x65')])return _0x1891f7[_0x1ad8('0x5e')]?{'type':_0x1ad8('0x50'),'content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x63'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0xb'),[_0x4a29ae,'\x22'+_0x1891f7[_0x1ad8('0xe')]('\x20')+'\x22']))}:{'type':_0x1ad8('0x50'),'content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x63'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0x7c'),_0x4a29ae))};if('deletion'==_0xb5c822[_0x1ad8('0x65')])return _0x1891f7[_0x1ad8('0x5e')]?{'type':_0x1ad8('0x1e'),'content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x48'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0xb'),[_0x4a29ae,'\x22'+_0x1891f7[_0x1ad8('0xe')]('\x20')+'\x22']))}:{'type':'deletion','content':_0xa8bed0(_0x1b9dd2,_0x1ad8('0x48'),_0xa8bed0(_0x1b9dd2,_0x1ad8('0x7c'),_0x4a29ae))};}}),_0x42a3e7[_0x1ad8('0x57')][_0x1ad8('0x60')]('insertion',_0x1ad8('0x12'),'discard',_0x3e4842),_0x42a3e7[_0x1ad8('0x57')]['registerCustomCallback'](_0x1ad8('0x1e'),'tableRow','accept',_0x3e4842),_0x42a3e7['_suggestionFactory'][_0x1ad8('0x60')](_0x1ad8('0x50'),_0x1ad8('0x32'),_0x1ad8('0x77'),_0x38ee7e),_0x42a3e7[_0x1ad8('0x57')]['registerCustomCallback'](_0x1ad8('0x1e'),_0x1ad8('0x32'),_0x1ad8('0x6e'),_0x38ee7e),_0x42a3e7[_0x1ad8('0x57')][_0x1ad8('0x60')](_0x1ad8('0x50'),'tableColumn','join',_0x44f3d9),_0x42a3e7[_0x1ad8('0x57')][_0x1ad8('0x60')](_0x1ad8('0x1e'),_0x1ad8('0x32'),_0x1ad8('0xe'),_0x44f3d9),_0x42a3e7[_0x1ad8('0x57')]['registerCustomCallback'](_0x1ad8('0x50'),_0x1ad8('0x12'),_0x1ad8('0xe'),_0x94a608),_0x42a3e7[_0x1ad8('0x57')]['registerCustomCallback'](_0x1ad8('0x1e'),_0x1ad8('0x12'),_0x1ad8('0xe'),_0x94a608);}[_0x1ad8('0x1c')](){const _0x27fc10=this['editor'],_0x514f8c=_0x27fc10[_0x1ad8('0x39')]['document'][_0x1ad8('0xa')];return(_0xa4e98,_0x10ccbe)=>{_0x27fc10[_0x1ad8('0x39')]['change'](_0xd39d20=>{const {commandName:_0x245aca,commandParams:_0x4f9415}=_0x10ccbe;let _0x38260d=_0xa4e98[0x0][_0x1ad8('0x6')][_0x1ad8('0x2c')];_0x4f9415&&_0x4f9415[0x0]&&!0x1===_0x4f9415[0x0][_0x1ad8('0x55')]&&(_0x38260d=_0xa4e98[0x0][_0x1ad8('0x3a')][_0x1ad8('0x6c')]);const _0xc07ae=_0xd39d20[_0x1ad8('0x26')](_0x38260d);if('$graveyard'==_0xc07ae[_0x1ad8('0x61')]['rootName'])return;const _0x122925=Array[_0x1ad8('0x6b')](_0x514f8c[_0x1ad8('0x71')]())[_0x1ad8('0x18')](_0x1e1d03=>_0x4c518c[_0x1ad8('0x5c')](_0x1e1d03));_0xd39d20[_0x1ad8('0x78')](_0xc07ae),_0x27fc10[_0x1ad8('0x33')][_0x1ad8('0x9')](_0x245aca)['refresh'](),_0x4f9415[_0x1ad8('0x7d')]({'forceDefaultExecution':!0x0}),_0x27fc10[_0x1ad8('0x3')](_0x245aca,..._0x4f9415);const _0xcbb27e=_0x122925[_0x1ad8('0x10')](_0x19942c=>_0x1ad8('0x4')!=_0x19942c['root'][_0x1ad8('0x6a')]);_0xcbb27e[_0x1ad8('0x5e')]>0x0&&_0xd39d20[_0x1ad8('0x78')](_0xcbb27e);for(const _0x2fd944 of _0x122925)_0x2fd944[_0x1ad8('0x43')]();});};}[_0x1ad8('0x44')](_0x5188da){const _0x526a0e=this['editor'][_0x1ad8('0x1b')][_0x1ad8('0x9')](_0x1ad8('0x82'));let _0xec9263=Number[_0x1ad8('0xd')],_0x1f9cd4=Number['MIN_SAFE_INTEGER'],_0x566c7b=Number[_0x1ad8('0xd')],_0x3c8f3c=Number[_0x1ad8('0x29')];for(const _0x2e1592 of _0x5188da){if('$graveyard'==_0x2e1592[_0x1ad8('0x61')][_0x1ad8('0x6a')])continue;const {row:_0x1e4127,column:_0xf0a033}=_0x526a0e[_0x1ad8('0x4f')](_0x2e1592),_0x35365d=_0x2e1592[_0x1ad8('0x41')](_0x1ad8('0x53'))?_0x2e1592[_0x1ad8('0x1')]('rowspan')-0x1:0x0,_0x5c5e3a=_0x2e1592[_0x1ad8('0x41')](_0x1ad8('0x2a'))?_0x2e1592['getAttribute'](_0x1ad8('0x2a'))-0x1:0x0;_0xec9263=_0x1e4127<_0xec9263?_0x1e4127:_0xec9263,_0x1f9cd4=_0x1e4127+_0x35365d>_0x1f9cd4?_0x1e4127+_0x35365d:_0x1f9cd4,_0x566c7b=_0xf0a033<_0x566c7b?_0xf0a033:_0x566c7b,_0x3c8f3c=_0xf0a033+_0x5c5e3a>_0x3c8f3c?_0xf0a033+_0x5c5e3a:_0x3c8f3c;}return{'minRow':_0xec9263,'maxRow':_0x1f9cd4,'minColumn':_0x566c7b,'maxColumn':_0x3c8f3c};}['_setupColumnsRowsFixing'](){const _0x4eff7a=this[_0x1ad8('0x2')],_0x5c8099=_0x4eff7a[_0x1ad8('0x1b')][_0x1ad8('0x9')](_0x1ad8('0x16')),_0x2fa37c=_0x4eff7a[_0x1ad8('0x1b')][_0x1ad8('0x9')](_0x1ad8('0x82'));_0x4eff7a[_0x1ad8('0x39')]['document']['on'](_0x1ad8('0x46'),()=>{const _0x27aad0=Array[_0x1ad8('0x6b')](_0x4eff7a[_0x1ad8('0x39')][_0x1ad8('0x14')][_0x1ad8('0x7f')][_0x1ad8('0x6f')]());for(const {name:_0x3a1e2d,data:_0x2c5783}of _0x27aad0){const {group:_0x448849,id:_0xffdde,subType:_0x58de60}=_0x5c8099['_splitMarkerName'](_0x3a1e2d);if(_0x1ad8('0x5b')!=_0x448849)continue;if(null!=_0x2c5783[_0x1ad8('0x59')])continue;const _0x38d303=_0x5c8099['getSuggestion'](_0xffdde);this['_tablePostFixingSubtypes'][_0x1ad8('0x1f')](_0x58de60)&&this[_0x1ad8('0x62')]['add'](_0x38d303);}},{'priority':_0x1ad8('0x7')});const _0x1c4faf=(_0x1c4afb,_0x54c8c9)=>{let _0x3eb991=!0x1;const _0x302936=_0x54c8c9['createRangeOn'](_0x1c4afb),_0x5abfcc=_0x1c4afb[_0x1ad8('0x24')](_0x1ad8('0x2b')),_0x357d3a=_0x2fa37c[_0x1ad8('0x4f')](_0x1c4afb);for(const _0x31563d of this[_0x1ad8('0x62')]){const _0x572a06=_0x31563d[_0x1ad8('0x81')],_0x3a24c2=_0x572a06['startsWith'](_0x1ad8('0x69')),_0x7e19da=_0x572a06[_0x1ad8('0x38')](_0x3a24c2?0xa:0x5),_0x589e66=_0x7e19da[_0x1ad8('0x23')](),_0x21504b=_0x589e66['substr'](0x0,0x3)+_0x1ad8('0x4a'),_0x4d5348='min'+_0x7e19da,_0x3f7719=_0x1ad8('0x7b')+_0x7e19da;if(!_0x31563d[_0x1ad8('0x30')])continue;if(_0x5abfcc!=_0x31563d[_0x1ad8('0x11')]()[_0x1ad8('0x3a')][_0x1ad8('0x24')](_0x1ad8('0x2b')))continue;if(_0x31563d['isIntersectingWithRange'](_0x302936))continue;const _0x2e23c6=_0x1c4afb[_0x1ad8('0x41')](_0x21504b)?_0x1c4afb[_0x1ad8('0x1')](_0x21504b)-0x1:0x0,_0x1eeba3=this['_getSuggestionCoords'](_0x31563d),_0x5896f5=_0x1eeba3[_0x4d5348],_0x1cfe66=_0x1eeba3[_0x3f7719];_0x5896f5<=_0x357d3a[_0x589e66]&&_0x357d3a[_0x589e66]+_0x2e23c6<=_0x1cfe66&&(_0x31563d[_0x1ad8('0x2e')](_0x302936),_0x3eb991=!0x0);}return _0x3eb991;};_0x4eff7a[_0x1ad8('0x39')]['document'][_0x1ad8('0x20')](_0x51980c=>{let _0x4f28be=!0x1;for(const _0x4872ff of _0x4eff7a[_0x1ad8('0x39')]['document']['differ']['getChanges']())if(_0x1ad8('0x64')==_0x4872ff[_0x1ad8('0x65')]){if('tableRow'==_0x4872ff[_0x1ad8('0x5a')])for(const _0x104e87 of _0x4872ff[_0x1ad8('0x22')]['nodeAfter'][_0x1ad8('0x3e')]())_0x4f28be=_0x4f28be||_0x1c4faf(_0x104e87,_0x51980c);else _0x1ad8('0x75')==_0x4872ff[_0x1ad8('0x5a')]&&(_0x4f28be=_0x4f28be||_0x1c4faf(_0x4872ff['position'][_0x1ad8('0x6c')],_0x51980c));}return _0x4f28be;});}[_0x1ad8('0x15')](_0x42d76b){return this['_getCoordsForCells'](_0x42d76b['getRanges']()[_0x1ad8('0x18')](_0x50be95=>_0x50be95[_0x1ad8('0x3a')]['nodeAfter']));}}function se(_0x286d20){return Array['from'](new Set(_0x286d20)[_0x1ad8('0x67')]());}
|
|
23
|
+
const _0xd210=['insertTableColumnLeft','change:data','enqueueChange','detach','removeTableColumn','substr','hasAttribute','ELEMENT_TABLE','selection','_descriptionFactory','_setupColumnsRowsFixing','nodeAfter','$graveyard','removeTableRow','*Insert:*\x20%0','isIntersectingWithRange','registerCustomCallback','_tableSuggestions','position','getChanges','getSelectionAffectedTableCells','rootName','insertTableColumnRight','has','type','createRangeOn','registerDescriptionCallback','showSuggestionHighlights','root','maxColumn','getRowIndexes','maxRow','subType','table','join','_acceptFormatSuggestionCallbackFactory','MIN_SAFE_INTEGER','document','name','_splitMarkerName','*Remove:*\x20%0','setSelection','createRangeIn','tableRow','add','execute','isInContent','last','model','markMultiRangeDeletion','suggestion','fromRange','colspan','deletion','TableUtils','insertTableRowAbove','addClass','start','getChildren','downcastDispatcher','batch','MAX_SAFE_INTEGER','isTouching','insert','filter','length','createPositionAt','plugins','findAncestor','differ','tablePaste','getCellLocation','get','end','addRange','markMultiRangeInsertion','cell','left','_getCoordsForCells','above','_tablePostFixingSubtypes','options','selectTableColumn','every','getColumnIndexes','toViewElement','push','min','enableCommand','order','classes','ELEMENT_TABLE_ROW_WITH_TEXT','registerElementLabel','tableCell','writer','max','refresh','ELEMENT_TABLE_WITH_TEXT','rowspan','nodeBefore','minColumn','tableColumn','from','getAttribute','first','$textProxy','afterInit','addMarker:suggestion','oldRange','getRanges','minRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','_getSuggestionCoords','removeClass','getItems','TrackChangesEditing','locale','data','editor','toLowerCase','ELEMENT_TABLE_ROW','insertTable','isEqual','ELEMENT_TABLE_COLUMN','includes','_suggestionFactory','getContainedElement','commands','insertion','span','insertTableRowBelow','discard','createTableWalker','change','values','map','TableEditing','getFirstRange','some'];(function(_0x248efb,_0xd2101c){const _0xf326cf=function(_0x3e7a50){while(--_0x3e7a50){_0x248efb['push'](_0x248efb['shift']());}};_0xf326cf(++_0xd2101c);}(_0xd210,0xfd));const _0xf326=function(_0x248efb,_0xd2101c){_0x248efb=_0x248efb-0x0;let _0xf326cf=_0xd210[_0x248efb];return _0xf326cf;};import{Plugin as _0x500636}from'ckeditor5/src/core';import{LiveRange as _0x62383e}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2b935e}from'ckeditor5/src/widget';import{getTranslation as _0x143fc6}from'../utils/common-translations';export default class mt extends _0x500636{constructor(_0x2e2aae){super(_0x2e2aae),this[_0xf326('0x69')]=[_0xf326('0x44'),_0xf326('0x7e')],this[_0xf326('0x2a')]=new Set();}[_0xf326('0x83')](){const _0x41537d=this[_0xf326('0x4')],_0x3c8887=_0x41537d[_0xf326('0x49')][_0xf326('0x3e')]['selection'];if(!_0x41537d[_0xf326('0x5c')][_0xf326('0x30')](_0xf326('0x16')))return;const _0x4cb8af=_0x41537d[_0xf326('0x2')],_0x4c23b2=_0x41537d[_0xf326('0x5c')][_0xf326('0x61')](_0xf326('0x1')),_0x39c7d9=_0x41537d['plugins'][_0xf326('0x61')](_0xf326('0x4f'));_0x4c23b2[_0xf326('0x22')][_0xf326('0x75')](_0xf326('0x3a'),_0x15f74a=>_0x143fc6(_0x4cb8af,_0xf326('0x20'),_0x15f74a)),this[_0xf326('0x23')](),_0x4c23b2[_0xf326('0x71')](_0xf326('0x7')),_0x4c23b2[_0xf326('0x71')]('selectTableRow'),_0x4c23b2[_0xf326('0x71')](_0xf326('0x6b'));for(const _0x8b8b42 of[_0xf326('0x50'),_0xf326('0x10')]){const _0xb2f299=_0x41537d[_0xf326('0xd')][_0xf326('0x61')](_0x8b8b42);_0x4c23b2[_0xf326('0x71')](_0x8b8b42,_0x404db7=>{_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0xe44db=>{_0x404db7();const _0x28064f=_0xf326('0x68')===_0xb2f299[_0xf326('0x72')],_0x453786=_0x39c7d9[_0xf326('0x2d')](_0x3c8887),_0x1b8305=_0x39c7d9[_0xf326('0x37')](_0x453786),_0x47515d=_0x28064f?_0x1b8305[_0xf326('0x81')]-0x1:_0x1b8305[_0xf326('0x48')]+0x1,_0x5305e0=_0x453786[0x0][_0xf326('0x5d')](_0xf326('0x3a')),_0x22dc7f=_0x39c7d9[_0xf326('0x12')](_0x5305e0,{'startRow':_0x47515d,'endRow':_0x47515d}),_0x16edb7=Array[_0xf326('0x7f')](_0x22dc7f)[_0xf326('0x15')](_0x59e01f=>_0xe44db[_0xf326('0x32')](_0x59e01f[_0xf326('0x65')]));_0x4c23b2['markMultiRangeInsertion'](_0x16edb7,_0xf326('0x44'));});});}for(const _0xee7e14 of[_0xf326('0x19'),_0xf326('0x2f')]){const _0x592f56=_0x41537d['commands']['get'](_0xee7e14);_0x4c23b2[_0xf326('0x71')](_0xee7e14,_0x5e8837=>{_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0x24195f=>{_0x5e8837();const _0x405e53=_0xf326('0x66')===_0x592f56[_0xf326('0x72')],_0x490f7a=_0x39c7d9[_0xf326('0x2d')](_0x3c8887),_0x35dc36=_0x39c7d9[_0xf326('0x6d')](_0x490f7a),_0x170c73=_0x405e53?_0x35dc36[_0xf326('0x81')]-0x1:_0x35dc36['last']+0x1,_0x1e9e15=_0x490f7a[0x0][_0xf326('0x5d')](_0xf326('0x3a')),_0x1471cd=_0x39c7d9[_0xf326('0x12')](_0x1e9e15,{'startRow':0x0,'column':_0x170c73,'includeAllSlots':!0x1}),_0x53eb06=Array[_0xf326('0x7f')](_0x1471cd)[_0xf326('0x15')](_0xe465a3=>_0x24195f[_0xf326('0x32')](_0xe465a3[_0xf326('0x65')]));_0x4c23b2[_0xf326('0x64')](_0x53eb06,_0xf326('0x7e'));});});}for(const _0x25df25 of[_0xf326('0x26'),_0xf326('0x1d')]){const _0x3c56fb=_0x25df25['substr'](0xb),_0x3456bf=_0x3c56fb[_0xf326('0x5')](),_0x5c80d9=_0x3456bf['substr'](0x0,0x3)+_0xf326('0xf'),_0x4be89b='table'+_0x3c56fb,_0x29a828=_0xf326('0x70')+_0x3c56fb,_0x46198a=_0xf326('0x78')+_0x3c56fb;_0x4c23b2[_0xf326('0x71')](_0x25df25,()=>{_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0x29a3b0=>{const _0x5d2442=_0x39c7d9[_0xf326('0x2d')](_0x3c8887),_0x5ef197=_0x5d2442[0x0][_0xf326('0x5d')](_0xf326('0x3a'));let _0x59a2e8;if(_0xf326('0x26')==_0x25df25){const _0x255482=_0x39c7d9[_0xf326('0x37')](_0x5d2442);_0x59a2e8={'startRow':_0x255482[_0xf326('0x81')],'endRow':_0x255482['last'],'includeAllSlots':!0x0};}else{const _0x374e24=_0x39c7d9['getColumnIndexes'](_0x5d2442);_0x59a2e8={'startColumn':_0x374e24['first'],'endColumn':_0x374e24[_0xf326('0x48')],'includeAllSlots':!0x0};}const _0x55d12e=_0x39c7d9[_0xf326('0x12')](_0x5ef197,_0x59a2e8),_0x458f5f=Array['from'](_0x55d12e)[_0xf326('0x15')](({cell:_0x459a46})=>_0x459a46),_0x4e4d87=se(_0x458f5f['filter'](_0x1b4476=>_0x1b4476['hasAttribute'](_0x5c80d9))),_0x33b553=se(_0x458f5f[_0xf326('0x59')](_0x3ae4d7=>!_0x3ae4d7['hasAttribute'](_0x5c80d9)))[_0xf326('0x15')](_0x56c94f=>_0x29a3b0['createRangeOn'](_0x56c94f)),_0x34f95c=_0x4c23b2[_0xf326('0x4a')](_0x33b553,_0x4be89b);if(_0x34f95c&&(_0xf326('0x44')==_0x34f95c[_0xf326('0x39')]||'tableColumn'==_0x34f95c[_0xf326('0x39')])){const _0x29e6ab=this[_0xf326('0x89')](_0x34f95c);for(const _0xfe2c2a of _0x4e4d87){const _0x3115ba=_0x29a3b0[_0xf326('0x32')](_0xfe2c2a),_0x43ed5b=_0x39c7d9['getCellLocation'](_0xfe2c2a),_0x347c6d=_0xfe2c2a[_0xf326('0x80')](_0x5c80d9)-0x1,_0x44098a=_0x29e6ab[_0x29a828],_0x190cbb=_0x29e6ab[_0x46198a];_0x44098a<=_0x43ed5b[_0x3456bf]&&_0x43ed5b[_0x3456bf]+_0x347c6d<=_0x190cbb&&_0x34f95c[_0xf326('0x63')](_0x3115ba);}}});});}function _0xc1579e(_0x3b33a2){const _0x4e9d69=Array['from'](_0x3c8887[_0xf326('0x86')]())[_0xf326('0x15')](_0x190d9e=>_0x62383e[_0xf326('0x4c')](_0x190d9e));_0x41537d[_0xf326('0x49')][_0xf326('0x13')](_0x565260=>{const _0x17135c=_0x565260[_0xf326('0x55')];_0x3b33a2=_0x3b33a2[_0xf326('0x59')](_0x3f1f9c=>_0xf326('0x25')!=_0x3f1f9c[_0xf326('0x35')]['rootName']),_0x565260[_0xf326('0x42')](_0x3b33a2),_0x41537d['commands']['get']('removeTableRow')[_0xf326('0x79')](),_0x41537d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41537d[_0xf326('0x49')][_0xf326('0x1b')](()=>{_0x41537d[_0xf326('0x49')]['enqueueChange'](_0x17135c,_0x568cfb=>{const _0x2107ec=_0x4e9d69[_0xf326('0x59')](_0x34efb6=>_0xf326('0x25')!=_0x34efb6[_0xf326('0x35')][_0xf326('0x2e')]);_0x2107ec['length']>0x0&&_0x568cfb[_0xf326('0x42')](_0x2107ec);for(const _0x32b328 of _0x4e9d69)_0x32b328[_0xf326('0x1c')]();});});});}function _0x129051(_0x148bd7){_0x41537d[_0xf326('0x49')]['change'](_0x53adae=>{const _0x1b298=Array[_0xf326('0x7f')](_0x3c8887[_0xf326('0x86')]())['map'](_0x3d8080=>_0x62383e['fromRange'](_0x3d8080)),_0x1d8438=[];for(const _0x1d3c00 of _0x148bd7)for(const _0x116025 of _0x1d3c00['getItems']({'shallow':!0x0}))_0x1d8438[_0xf326('0x6f')](_0x116025);for(const _0x33bf58 of _0x1d8438)_0xf326('0x25')!=_0x33bf58[_0xf326('0x35')][_0xf326('0x2e')]&&(_0x53adae[_0xf326('0x42')](_0x53adae[_0xf326('0x5b')](_0x33bf58,0x0)),_0x41537d[_0xf326('0xd')]['get'](_0xf326('0x1d'))[_0xf326('0x79')](),_0x41537d[_0xf326('0x46')](_0xf326('0x1d'),{'forceDefaultExecution':!0x0}));const _0x1cb8cc=_0x1b298[_0xf326('0x59')](_0x34344e=>_0xf326('0x25')!=_0x34344e[_0xf326('0x35')][_0xf326('0x2e')]);_0x1cb8cc[_0xf326('0x5a')]>0x0&&_0x53adae[_0xf326('0x42')](_0x1cb8cc);for(const _0x293f3c of _0x1b298)_0x293f3c['detach']();});}function _0x357f3e(_0x340b63,_0x4a47b4){return _0x4a47b4[_0xf326('0x6c')](_0x51a58e=>_0x340b63[_0xf326('0x18')](_0x28e503=>_0x28e503[_0xf326('0x62')]['isEqual'](_0x51a58e[_0xf326('0x52')])||_0x51a58e['end'][_0xf326('0x8')](_0x28e503[_0xf326('0x52')])));}function _0x54edcd(_0x34d229,_0x12f23a){return _0x34d229[_0xf326('0x18')](_0x162bbc=>_0x12f23a['some'](_0x546aa5=>_0x162bbc[_0xf326('0x62')][_0xf326('0x57')](_0x546aa5[_0xf326('0x52')])));}_0x41537d[_0xf326('0x3')][_0xf326('0x54')]['on'](_0xf326('0x84'),(_0x5f26f3,_0x14929e,_0x65d749)=>{if(!_0x65d749[_0xf326('0x6a')][_0xf326('0x34')])return;const _0x5b621f=_0x14929e['item'];if(!_0x5b621f)return;const _0x2874e6=_0x65d749['mapper'][_0xf326('0x6e')](_0x5b621f);function _0x39c1f7(_0x4e0e9f){return Array['isArray'](_0x4e0e9f)?_0x4e0e9f:[_0x4e0e9f];}_0x2874e6&&_0xf326('0x76')===_0x5b621f[_0xf326('0x3f')]&&_0x2b935e(_0x2874e6,_0x65d749[_0xf326('0x77')],(_0x598bc4,_0x51bee7,_0x443d1a)=>_0x443d1a[_0xf326('0x51')](_0x39c1f7(_0x51bee7[_0xf326('0x73')]),_0x598bc4),(_0x595e8d,_0x9660f1,_0xd02d91)=>_0xd02d91[_0xf326('0x8a')](_0x39c1f7(_0x9660f1[_0xf326('0x73')]),_0x595e8d));},{'priority':'highest'}),_0x4c23b2[_0xf326('0x22')]['registerDescriptionCallback'](_0x52f4f0=>{if(_0xf326('0xe')!=_0x52f4f0[_0xf326('0x31')]&&_0xf326('0x4e')!=_0x52f4f0[_0xf326('0x31')])return;const _0x11073d=_0x52f4f0[_0xf326('0xc')]();if(null!=_0x11073d&&_0x11073d['is']('element','table')){if(_0xf326('0xe')==_0x52f4f0[_0xf326('0x31')]){const _0x1f1f22=_0x52f4f0[_0xf326('0x0')]()['filter'](_0x4658b1=>_0x4658b1['is'](_0xf326('0x82')))[_0xf326('0x15')](_0x533f64=>_0x533f64[_0xf326('0x3')]);if(_0x1f1f22[_0xf326('0x5a')])return{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x7a'),'\x22'+_0x1f1f22[_0xf326('0x3b')]('\x20')+'\x22'))};}if(_0xf326('0x4e')==_0x52f4f0[_0xf326('0x31')]){const _0x32b437=_0x52f4f0[_0xf326('0x0')]()[_0xf326('0x59')](_0x50a962=>_0x50a962['is']('$textProxy'))[_0xf326('0x15')](_0x8d0846=>_0x8d0846['data']);if(_0x32b437['length'])return{'type':'deletion','content':_0x143fc6(_0x4cb8af,'*Remove:*\x20%0',_0x143fc6(_0x4cb8af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x32b437[_0xf326('0x3b')]('\x20')+'\x22'))};}}}),_0x4c23b2['_descriptionFactory'][_0xf326('0x33')](_0xf96240=>{if('tableRow'==_0xf96240[_0xf326('0x39')]){const _0x5ee059=_0xf96240[_0xf326('0x0')]()['filter'](_0x48d510=>_0x48d510['is']('$textProxy'))[_0xf326('0x15')](_0x2f1dbf=>_0x2f1dbf[_0xf326('0x3')]),_0x418f57=this[_0xf326('0x89')](_0xf96240),_0x12788b=_0x418f57[_0xf326('0x38')]-_0x418f57[_0xf326('0x87')]+0x1;if(_0xf326('0xe')==_0xf96240[_0xf326('0x31')])return _0x5ee059[_0xf326('0x5a')]?{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x74'),[_0x12788b,'\x22'+_0x5ee059[_0xf326('0x3b')]('\x20')+'\x22']))}:{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x6'),_0x12788b))};if(_0xf326('0x4e')==_0xf96240[_0xf326('0x31')])return _0x5ee059[_0xf326('0x5a')]?{'type':_0xf326('0x4e'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,_0xf326('0x74'),[_0x12788b,'\x22'+_0x5ee059['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,'ELEMENT_TABLE_ROW',_0x12788b))};}if('tableColumn'==_0xf96240[_0xf326('0x39')]){const _0x598573=_0xf96240['getItems']()['filter'](_0x44de1a=>_0x44de1a['is'](_0xf326('0x82')))['map'](_0x5dbb3c=>_0x5dbb3c[_0xf326('0x3')]),_0x1890cc=this[_0xf326('0x89')](_0xf96240),_0x3ed001=_0x1890cc[_0xf326('0x36')]-_0x1890cc[_0xf326('0x7d')]+0x1;if('insertion'==_0xf96240[_0xf326('0x31')])return _0x598573['length']?{'type':_0xf326('0xe'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x27'),_0x143fc6(_0x4cb8af,_0xf326('0x88'),[_0x3ed001,'\x22'+_0x598573['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x143fc6(_0x4cb8af,'*Insert:*\x20%0',_0x143fc6(_0x4cb8af,_0xf326('0x9'),_0x3ed001))};if(_0xf326('0x4e')==_0xf96240[_0xf326('0x31')])return _0x598573['length']?{'type':_0xf326('0x4e'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,_0xf326('0x88'),[_0x3ed001,'\x22'+_0x598573[_0xf326('0x3b')]('\x20')+'\x22']))}:{'type':_0xf326('0x4e'),'content':_0x143fc6(_0x4cb8af,_0xf326('0x41'),_0x143fc6(_0x4cb8af,_0xf326('0x9'),_0x3ed001))};}}),_0x4c23b2[_0xf326('0xb')]['registerCustomCallback'](_0xf326('0xe'),_0xf326('0x44'),_0xf326('0x11'),_0xc1579e),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')]('deletion',_0xf326('0x44'),'accept',_0xc1579e),_0x4c23b2[_0xf326('0xb')]['registerCustomCallback'](_0xf326('0xe'),_0xf326('0x7e'),'discard',_0x129051),_0x4c23b2[_0xf326('0xb')]['registerCustomCallback'](_0xf326('0x4e'),'tableColumn','accept',_0x129051),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')](_0xf326('0xe'),_0xf326('0x7e'),_0xf326('0x3b'),_0x357f3e),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')]('deletion',_0xf326('0x7e'),_0xf326('0x3b'),_0x357f3e),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')](_0xf326('0xe'),_0xf326('0x44'),_0xf326('0x3b'),_0x54edcd),_0x4c23b2[_0xf326('0xb')][_0xf326('0x29')](_0xf326('0x4e'),_0xf326('0x44'),'join',_0x54edcd);}[_0xf326('0x3c')](){const _0x3e5f27=this[_0xf326('0x4')],_0x4f9603=_0x3e5f27[_0xf326('0x49')][_0xf326('0x3e')][_0xf326('0x21')];return(_0x572c78,_0x3a8808)=>{_0x3e5f27[_0xf326('0x49')]['change'](_0x18f52d=>{const {commandName:_0x32ce16,commandParams:_0x23c043}=_0x3a8808;let _0x522ca0=_0x572c78[0x0][_0xf326('0x62')][_0xf326('0x7c')];_0x23c043&&_0x23c043[0x0]&&!0x1===_0x23c043[0x0]['forceValue']&&(_0x522ca0=_0x572c78[0x0][_0xf326('0x52')][_0xf326('0x24')]);const _0x17c04a=_0x18f52d[_0xf326('0x43')](_0x522ca0);if('$graveyard'==_0x17c04a[_0xf326('0x35')][_0xf326('0x2e')])return;const _0x2fe4ba=Array[_0xf326('0x7f')](_0x4f9603[_0xf326('0x86')]())[_0xf326('0x15')](_0x436f07=>_0x62383e['fromRange'](_0x436f07));_0x18f52d[_0xf326('0x42')](_0x17c04a),_0x3e5f27[_0xf326('0xd')][_0xf326('0x61')](_0x32ce16)[_0xf326('0x79')](),_0x23c043[_0xf326('0x6f')]({'forceDefaultExecution':!0x0}),_0x3e5f27[_0xf326('0x46')](_0x32ce16,..._0x23c043);const _0x354c7c=_0x2fe4ba[_0xf326('0x59')](_0x518f12=>_0xf326('0x25')!=_0x518f12[_0xf326('0x35')][_0xf326('0x2e')]);_0x354c7c[_0xf326('0x5a')]>0x0&&_0x18f52d[_0xf326('0x42')](_0x354c7c);for(const _0x58d6d1 of _0x2fe4ba)_0x58d6d1[_0xf326('0x1c')]();});};}['_getCoordsForCells'](_0x2a257b){const _0x4ae7ba=this[_0xf326('0x4')][_0xf326('0x5c')][_0xf326('0x61')](_0xf326('0x4f'));let _0x169a59=Number[_0xf326('0x56')],_0x28fa12=Number[_0xf326('0x3d')],_0x3b8504=Number[_0xf326('0x56')],_0x6b785=Number[_0xf326('0x3d')];for(const _0x562273 of _0x2a257b){if(_0xf326('0x25')==_0x562273['root'][_0xf326('0x2e')])continue;const {row:_0x57d770,column:_0xe561eb}=_0x4ae7ba[_0xf326('0x60')](_0x562273),_0x3c4515=_0x562273['hasAttribute'](_0xf326('0x7b'))?_0x562273[_0xf326('0x80')](_0xf326('0x7b'))-0x1:0x0,_0x5824e0=_0x562273[_0xf326('0x1f')](_0xf326('0x4d'))?_0x562273['getAttribute'](_0xf326('0x4d'))-0x1:0x0;_0x169a59=_0x57d770<_0x169a59?_0x57d770:_0x169a59,_0x28fa12=_0x57d770+_0x3c4515>_0x28fa12?_0x57d770+_0x3c4515:_0x28fa12,_0x3b8504=_0xe561eb<_0x3b8504?_0xe561eb:_0x3b8504,_0x6b785=_0xe561eb+_0x5824e0>_0x6b785?_0xe561eb+_0x5824e0:_0x6b785;}return{'minRow':_0x169a59,'maxRow':_0x28fa12,'minColumn':_0x3b8504,'maxColumn':_0x6b785};}[_0xf326('0x23')](){const _0x4d064e=this['editor'],_0x3c2577=_0x4d064e[_0xf326('0x5c')]['get']('TrackChangesEditing'),_0x52fa17=_0x4d064e[_0xf326('0x5c')][_0xf326('0x61')](_0xf326('0x4f'));_0x4d064e[_0xf326('0x49')]['document']['on'](_0xf326('0x1a'),()=>{const _0xd098c7=Array[_0xf326('0x7f')](_0x4d064e[_0xf326('0x49')][_0xf326('0x3e')][_0xf326('0x5e')]['getChangedMarkers']());for(const {name:_0x1adb84,data:_0x167e71}of _0xd098c7){const {group:_0x3462e5,id:_0x4f117c,subType:_0xddba1d}=_0x3c2577[_0xf326('0x40')](_0x1adb84);if(_0xf326('0x4b')!=_0x3462e5)continue;if(null!=_0x167e71[_0xf326('0x85')])continue;const _0x164703=_0x3c2577['getSuggestion'](_0x4f117c);this['_tablePostFixingSubtypes'][_0xf326('0xa')](_0xddba1d)&&this[_0xf326('0x2a')][_0xf326('0x45')](_0x164703);}},{'priority':'low'});const _0x125899=(_0x677497,_0x377d46)=>{let _0x4093ac=!0x1;const _0x230ee4=_0x377d46['createRangeOn'](_0x677497),_0xcc7320=_0x677497[_0xf326('0x5d')](_0xf326('0x3a')),_0x636972=_0x52fa17['getCellLocation'](_0x677497);for(const _0x2e37d8 of this[_0xf326('0x2a')]){const _0x1abb56=_0x2e37d8[_0xf326('0x39')],_0x48d337=_0x1abb56['startsWith'](_0xf326('0x5f')),_0xfd9c01=_0x1abb56[_0xf326('0x1e')](_0x48d337?0xa:0x5),_0x321256=_0xfd9c01[_0xf326('0x5')](),_0x65dd94=_0x321256[_0xf326('0x1e')](0x0,0x3)+_0xf326('0xf'),_0x1e6337=_0xf326('0x70')+_0xfd9c01,_0x3dc0ce=_0xf326('0x78')+_0xfd9c01;if(!_0x2e37d8[_0xf326('0x47')])continue;if(_0xcc7320!=_0x2e37d8[_0xf326('0x17')]()[_0xf326('0x52')][_0xf326('0x5d')](_0xf326('0x3a')))continue;if(_0x2e37d8[_0xf326('0x28')](_0x230ee4))continue;const _0x4db28a=_0x677497[_0xf326('0x1f')](_0x65dd94)?_0x677497[_0xf326('0x80')](_0x65dd94)-0x1:0x0,_0x37556c=this[_0xf326('0x89')](_0x2e37d8),_0x4592a3=_0x37556c[_0x1e6337],_0x5a9e3c=_0x37556c[_0x3dc0ce];_0x4592a3<=_0x636972[_0x321256]&&_0x636972[_0x321256]+_0x4db28a<=_0x5a9e3c&&(_0x2e37d8[_0xf326('0x63')](_0x230ee4),_0x4093ac=!0x0);}return _0x4093ac;};_0x4d064e[_0xf326('0x49')]['document']['registerPostFixer'](_0x267a16=>{let _0x4a7191=!0x1;for(const _0x55dd7e of _0x4d064e['model'][_0xf326('0x3e')][_0xf326('0x5e')][_0xf326('0x2c')]())if(_0xf326('0x58')==_0x55dd7e[_0xf326('0x31')]){if(_0xf326('0x44')==_0x55dd7e[_0xf326('0x3f')])for(const _0x59f105 of _0x55dd7e['position'][_0xf326('0x24')][_0xf326('0x53')]())_0x4a7191=_0x4a7191||_0x125899(_0x59f105,_0x267a16);else _0xf326('0x76')==_0x55dd7e['name']&&(_0x4a7191=_0x4a7191||_0x125899(_0x55dd7e[_0xf326('0x2b')][_0xf326('0x24')],_0x267a16));}return _0x4a7191;});}[_0xf326('0x89')](_0x11c5ca){return this[_0xf326('0x67')](_0x11c5ca['getRanges']()[_0xf326('0x15')](_0x10d3b3=>_0x10d3b3['start'][_0xf326('0x24')]));}}function se(_0x453ba2){return Array['from'](new Set(_0x453ba2)[_0xf326('0x14')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39de=['TableCaptionEditing','afterInit','get','plugins','toggleTableCaption'];(function(_0x379b43,_0x39de7d){const _0x427e29=function(_0x41a140){while(--_0x41a140){_0x379b43['push'](_0x379b43['shift']());}};_0x427e29(++_0x39de7d);}(_0x39de,0x72));const _0x427e=function(_0x379b43,_0x39de7d){_0x379b43=_0x379b43-0x0;let _0x427e29=_0x39de[_0x379b43];return _0x427e29;};import{Plugin as _0x116319}from'ckeditor5/src/core';import _0x3cc9dc from'./table';export default class vt extends _0x116319{static get['requires'](){return[_0x3cc9dc];}[_0x427e('0x2')](){const _0x17af50=this['editor'];if(!_0x17af50[_0x427e('0x4')]['has'](_0x427e('0x1')))return;_0x17af50[_0x427e('0x4')][_0x427e('0x3')]('TrackChangesEditing')['enableCommand'](_0x427e('0x0'));}}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3
4
|
*/
|
|
4
5
|
import { Plugin } from 'ckeditor5/src/core';
|
|
5
6
|
import TrackChangesTable from './table';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1d8c=['columns','from','insertionRanges','createRangeIn','afterInit','getMarkers','removeMarker','element','column','getChangedMarkers','markerAttributes','locale','keys','markMultiRangeDeletion','model','suggestion-td','getItems','getAllAdjacentSuggestions','getRows','tableCellSuggestion','tablePasteRow','Users','dataDowncast','ck-suggestion-marker','conversion','markMultiRangeBlockFormat','tablePaste','removeMarkers','getSelectionAffectedTableCells','findAncestor','subType','forceDefaultExecution','options','register','find','cell','tableCellBorderWidth','getRange','markMultiRangeInsertion','paragraph','tableCellVerticalAlignment','nodeAfter','isEqual','markerName','for','last','getAttributes','isEmpty','createTableWalker','getShiftedBy','batch','elementToElement','map','createElement','cells','getChanges','insertColumns','markerToHighlight','author','$graveyard','differ','table','redo','_descriptionFactory','deletionRanges','trackChanges','stop','suggestion','editing','getSuggestions','oldRange','value','previousSibling','tablePasteColumn','TableClipboard','end','name','commands','includes','add','discard','join','remove','filter','rows','_tablePostFixingSubtypes','fill','root','plugins','low','getChild','showSuggestionHighlights','setAttribute','isInContent','markers','get','_suggestionFactory','move','rowInsertionRanges','_getCoordsForCells','length','push','removeRows','accept','view','TableUtils','getRowIndexes','insertion','start','wrap','document','newRange','startsWith','formatBlock','listenTo','ck-suggestion-marker-insertion','tableCellBackgroundColor','tableCell','fromEntries','tablePasteChainId','tableCellBorderStyle','rowInsertionIndexes','insertRows','unwrap','ck-suggestion-marker--active','containsRange','selection','attributes','registerPostFixer','change','type','deletion','createRange','suggestionUnloaded','insert','registerCustomCallback','getColumns','getSuggestion','tableCellPadding','suggestion:formatBlock:tablePasteCell','_splitMarkerName','columnInsertionRanges','getColumnIndexes','tablePasteCell','getTableIfOnlyTableInContent','first','endColumn','clipboardOutput','columnInsertionIndexes','set','getContainedElement','insertContent','rootName','*Replace\x20table\x20cells*','high','createRangeOn','has','getChildren'];(function(_0x233fa3,_0x1d8c18){const _0x4ad7d2=function(_0x189811){while(--_0x189811){_0x233fa3['push'](_0x233fa3['shift']());}};_0x4ad7d2(++_0x1d8c18);}(_0x1d8c,0xf8));const _0x4ad7=function(_0x233fa3,_0x1d8c18){_0x233fa3=_0x233fa3-0x0;let _0x4ad7d2=_0x1d8c[_0x233fa3];return _0x4ad7d2;};import{getTranslation as _0xe53ce8}from'../utils/common-translations';import{Plugin as _0xee7be4}from'ckeditor5/src/core';import{uid as _0x333155,priorities as _0x361eba}from'ckeditor5/src/utils';import _0x5df75a from'./table';const le=[_0x4ad7('0x68'),'tableCellBorderColor',_0x4ad7('0x1e'),'tableCellHorizontalAlignment',_0x4ad7('0x6c'),_0x4ad7('0x1a'),_0x4ad7('0x30')],ae=Object[_0x4ad7('0x1c')](le['map'](_0x440bad=>[_0x440bad,null]));export default class kt extends _0xee7be4{static get['requires'](){return[_0x5df75a];}[_0x4ad7('0x48')](){const _0x4e14b0=this['editor'];if(!_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x42')](_0x4ad7('0x8e')))return;const _0x2889f9=_0x4e14b0[_0x4ad7('0x9c')]['get']('TrackChangesEditing'),_0x4f47b8=_0x4e14b0['plugins'][_0x4ad7('0x5')](_0x4ad7('0xf')),_0x1ee4d9=_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x5df75a),_0x21f6ca=_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x4ad7('0x8e'));_0x1ee4d9[_0x4ad7('0x99')]['push']('tablePasteRow',_0x4ad7('0x8d')),_0x4e14b0[_0x4ad7('0x52')]['schema'][_0x4ad7('0x65')](_0x4ad7('0x57'),{'allowIn':_0x4ad7('0x1b'),'allowContentOf':_0x4ad7('0x1b'),'isLimit':!0x0}),_0x4e14b0['conversion'][_0x4ad7('0x77')]({'model':_0x4ad7('0x57'),'view':_0x4ad7('0x53')});let _0x193160=null;_0x4e14b0[_0x4ad7('0x52')]['on'](_0x4ad7('0x3d'),(_0x41bd90,_0x2be24d)=>{const [_0x2479c4,_0x4762a9]=_0x2be24d,_0x2ff337=_0x2be24d[_0x2be24d[_0x4ad7('0xa')]-0x1];_0x2ff337&&_0x2ff337[_0x4ad7('0x63')]||_0x2889f9['_isForcedDefaultExecutionBlock']||this['editor']['commands'][_0x4ad7('0x5')](_0x4ad7('0x85'))[_0x4ad7('0x8b')]&&function(_0x132d3f,_0x2ff62a,_0x1845d0,_0x51e2b0,_0x1921f5){if(_0x2ff62a&&!_0x2ff62a['is']('documentSelection'))return!0x1;const _0x21ddba=_0x1921f5[_0x4ad7('0x36')](_0x132d3f,_0x1845d0);if(!_0x21ddba||!fe(_0x21ddba,void 0x0,_0x51e2b0))return!0x1;const _0x26157e=_0x51e2b0[_0x4ad7('0x60')](_0x1845d0['document'][_0x4ad7('0x24')]);if(!_0x26157e['length'])return!0x1;const _0x282418=_0x26157e[0x0][_0x4ad7('0x61')]('table'),_0x4de32c=_0x51e2b0[_0x4ad7('0x10')](_0x26157e),_0x110c98=_0x51e2b0[_0x4ad7('0x34')](_0x26157e),_0x12aa5c={'startRow':_0x4de32c[_0x4ad7('0x37')],'endRow':_0x4de32c[_0x4ad7('0x71')],'startColumn':_0x110c98[_0x4ad7('0x37')],'endColumn':_0x110c98[_0x4ad7('0x71')]};return 0x1==_0x26157e[_0x4ad7('0xa')]&&(_0x12aa5c['endRow']+=_0x51e2b0[_0x4ad7('0x56')](_0x21ddba)-0x1,_0x12aa5c[_0x4ad7('0x38')]+=_0x51e2b0[_0x4ad7('0x2e')](_0x21ddba)-0x1),fe(_0x282418,_0x12aa5c,_0x51e2b0);}(_0x2479c4,_0x4762a9,_0x4e14b0[_0x4ad7('0x52')],_0x4f47b8,_0x21f6ca)&&(_0x41bd90[_0x4ad7('0x86')](),_0x193160={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x27')](()=>{_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x3d')](_0x2be24d[0x0],_0x2be24d[0x1],_0x2be24d[0x2],{'forceDefaultExecution':!0x0});const _0x3081e0=_0x333155(),{rowInsertionRanges:_0x446f92,columnInsertionRanges:_0x4cd347,insertionRanges:_0x1b7b5e,deletionRanges:_0x270cda,cells:_0xc90257}=_0x193160;_0x446f92[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x6a')](_0x446f92,_0x4ad7('0x58'),{'tablePasteChainId':_0x3081e0}),_0x4cd347[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x6a')](_0x4cd347,_0x4ad7('0x8d'),{'tablePasteChainId':_0x3081e0}),_0x1b7b5e[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x6a')](_0x1b7b5e,_0x4ad7('0x5e'),{'tablePasteChainId':_0x3081e0,'skipNestingCheck':!0x0}),_0x270cda[_0x4ad7('0xa')]&&_0x2889f9[_0x4ad7('0x51')](_0x270cda,_0x4ad7('0x5e'),{'tablePasteChainId':_0x3081e0,'skipNestingCheck':!0x0});const _0x4f213f=_0x2889f9[_0x4ad7('0x5d')](_0xc90257[_0x4ad7('0x78')](({element:_0x5d92df})=>_0x5d92df),{'formatGroupId':_0x333155()},[],_0x4ad7('0x35'),{'tablePasteChainId':_0x3081e0});if(_0x4f213f){const _0x14ad36=_0x4f213f['getMarkers'](),_0x397b0a=[];for(const {element:_0x4ee25c,attributes:_0x5f1283}of _0xc90257){if(!_0x5f1283)continue;const _0x3ba897=_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x41')](_0x4ee25c),_0x27f9aa=_0x14ad36[_0x4ad7('0x66')](_0x7670cd=>_0x7670cd[_0x4ad7('0x69')]()[_0x4ad7('0x6e')](_0x3ba897));_0x27f9aa&&_0x397b0a[_0x4ad7('0xb')]([_0x27f9aa[_0x4ad7('0x90')],_0x5f1283]);}_0x397b0a[_0x4ad7('0xa')]&&_0x4f213f[_0x4ad7('0x2')]('markerAttributes',Object[_0x4ad7('0x1c')](_0x397b0a));}_0x193160=null;}));},{'priority':_0x361eba[_0x4ad7('0x40')]+0xa}),_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x4ad7('0x8e'))['on']('_replaceTableSlotCell',(_0x396d5b,_0x675e24)=>{const [_0x258d1e,_0x5aa390,,_0x361b4e]=_0x675e24;if(!_0x193160)return;_0x396d5b[_0x4ad7('0x86')]();const _0x46e9e5=_0x258d1e[_0x4ad7('0x67')],_0x3fb2aa=_0x5aa390,_0x1b62b4=ce(_0x46e9e5),_0xe4a83f=ce(_0x3fb2aa);_0x396d5b['return']=_0x46e9e5;let _0x3e0bfd=null,_0x546cb7=null;if(_0xe4a83f||_0x1b62b4){if(_0x1b62b4&&!_0xe4a83f){_0x361b4e['remove'](_0x46e9e5[_0x4ad7('0x0')](0x0));for(const _0x163946 of Array['from'](_0x3fb2aa[_0x4ad7('0x43')]()))_0x361b4e[_0x4ad7('0x2c')](_0x163946,_0x46e9e5,_0x4ad7('0x8f'));const _0x4fcd68=_0x193160[_0x4ad7('0x1f')][_0x4ad7('0x92')](_0x258d1e['row']),_0x2c112=_0x193160['columnInsertionIndexes'][_0x4ad7('0x92')](_0x258d1e[_0x4ad7('0x4c')]);_0x4fcd68||_0x2c112||(_0x3e0bfd=_0x361b4e['createRangeIn'](_0x46e9e5));}else _0xe4a83f&&!_0x1b62b4&&(_0x546cb7=_0x361b4e[_0x4ad7('0x47')](_0x46e9e5));}else{const _0xa470ec=_0x361b4e[_0x4ad7('0x79')]('tableCellSuggestion'),_0x46611b=_0x361b4e['createElement'](_0x4ad7('0x57'));_0x361b4e[_0x4ad7('0x13')](_0x361b4e[_0x4ad7('0x47')](_0x46e9e5),_0x46611b),_0x361b4e[_0x4ad7('0x2c')](_0xa470ec,_0x46e9e5,0x0);for(const _0x331a28 of Array['from'](_0x3fb2aa['getChildren']()))_0x361b4e['insert'](_0x331a28,_0xa470ec,'end');_0x3e0bfd=_0x361b4e[_0x4ad7('0x41')](_0xa470ec),_0x546cb7=_0x361b4e[_0x4ad7('0x41')](_0x46611b);}const _0x75bc18=Array[_0x4ad7('0x45')](_0x3fb2aa[_0x4ad7('0x72')]())[_0x4ad7('0x97')](([_0x261fa3])=>le[_0x4ad7('0x92')](_0x261fa3));_0x193160[_0x4ad7('0x7a')][_0x4ad7('0xb')]({'element':_0x46e9e5,'attributes':_0x75bc18[_0x4ad7('0xa')]?Object[_0x4ad7('0x1c')](_0x75bc18):null}),_0x3e0bfd&&_0x193160[_0x4ad7('0x46')][_0x4ad7('0xb')](_0x3e0bfd),_0x546cb7&&_0x193160[_0x4ad7('0x84')]['push'](_0x546cb7);},{'priority':_0x4ad7('0x40')}),_0x4f47b8['on'](_0x4ad7('0x7c'),(_0x1cca0e,_0x1fbbed)=>{const [_0xc67cf8,_0x3ded1f={}]=_0x1fbbed;if(!_0x193160)return;const _0x470842=_0x3ded1f['at']||0x0,_0x1c29dc=_0x3ded1f[_0x4ad7('0x44')]||0x1;_0x193160[_0x4ad7('0x3a')]=new Array(_0x1c29dc)['fill'](_0x470842)[_0x4ad7('0x78')]((_0x1b91e9,_0x2c69ae)=>_0x1b91e9+_0x2c69ae);for(const {cell:_0x54e880}of _0x4f47b8[_0x4ad7('0x74')](_0xc67cf8,{'startColumn':_0x470842,'endColumn':_0x470842+_0x1c29dc-0x1}))_0x193160[_0x4ad7('0x33')][_0x4ad7('0xb')](_0x4e14b0[_0x4ad7('0x52')]['createRangeOn'](_0x54e880));},{'priority':'low'}),_0x4f47b8['on'](_0x4ad7('0x20'),(_0x2b55da,_0xfaa75f)=>{const [_0x170cc5,_0x120d9c={}]=_0xfaa75f;if(!_0x193160)return;const _0x51bdab=_0x120d9c['at']||0x0,_0x2b2e7e=_0x120d9c[_0x4ad7('0x98')]||0x1;_0x193160[_0x4ad7('0x1f')]=new Array(_0x2b2e7e)[_0x4ad7('0x9a')](_0x51bdab)[_0x4ad7('0x78')]((_0x64afb5,_0x4379cc)=>_0x64afb5+_0x4379cc);for(const {cell:_0x428520}of _0x4f47b8[_0x4ad7('0x74')](_0x170cc5,{'startRow':_0x51bdab,'endRow':_0x51bdab+_0x2b2e7e-0x1}))_0x193160[_0x4ad7('0x8')][_0x4ad7('0xb')](_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x41')](_0x428520));},{'priority':_0x4ad7('0x9d')}),_0x2889f9[_0x4ad7('0x83')]['registerDescriptionCallback'](_0xcfb738=>{if(_0xcfb738['subType']&&_0xcfb738[_0x4ad7('0x62')][_0x4ad7('0x16')](_0x4ad7('0x5e')))return _0xcfb738['previous']?{}:{'type':_0x4ad7('0x11'),'content':_0xe53ce8(_0x4e14b0[_0x4ad7('0x4f')],_0x4ad7('0x3f'))};});const _0x1d867a=()=>{};for(const _0xacf9f9 of[_0x4ad7('0x5e'),'tablePasteColumn',_0x4ad7('0x58'),_0x4ad7('0x35')])_0x2889f9['_suggestionFactory']['registerCustomCallback'](_0x4ad7('0x11'),_0xacf9f9,_0x4ad7('0x95'),_0x1d867a),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x29'),_0xacf9f9,_0x4ad7('0x95'),_0x1d867a);_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x17'),_0x4ad7('0x35'),'discard',_0x1d867a),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x17'),_0x4ad7('0x35'),_0x4ad7('0xd'),(_0x37e8e8,_0x4316e7,_0x7f0b30)=>{const _0x30924f=_0x37e8e8[_0x4ad7('0x78')](_0x5095bd=>_0x5095bd[_0x4ad7('0x3c')]())[_0x4ad7('0x97')](_0x4abbc0=>_0x4abbc0),_0x5b1794=new Map(_0x30924f[_0x4ad7('0x78')](_0x1eeb16=>[_0x1eeb16,null]));if(_0x193160)for(const {element:_0x5c1234,attributes:_0x1c49cc}of _0x193160[_0x4ad7('0x7a')])_0x1c49cc&&_0x5b1794[_0x4ad7('0x3b')](_0x5c1234,_0x1c49cc);else{if(_0x7f0b30&&_0x7f0b30[_0x4ad7('0x4e')])for(const [_0x2aca3f,_0x1b0219]of Object['entries'](_0x7f0b30[_0x4ad7('0x4e')])){const _0x32c9a3=_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x4')][_0x4ad7('0x5')](_0x2aca3f),_0x2916c5=_0x32c9a3?_0x32c9a3[_0x4ad7('0x69')]()[_0x4ad7('0x3c')]():null;_0x2916c5&&_0x5b1794[_0x4ad7('0x3b')](_0x2916c5,_0x1b0219);}}_0x4e14b0[_0x4ad7('0x52')]['change'](_0x4c449f=>{for(const [_0x4533ba,_0x2337b3]of _0x5b1794)_0x4c449f['setAttributes']({...ae,..._0x2337b3},_0x4533ba);});});const _0x404f0a=(_0x2ac82d,_0x7301a1)=>{_0x2889f9[_0x4ad7('0x6')]['registerCustomCallback'](_0x2ac82d,_0x4ad7('0x5e'),_0x7301a1,(_0x4ef395,_0x55e293,_0x2b49ab)=>{_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x27')](_0x3a5268=>{const _0x601420=[];for(const _0x1aa45d of _0x4ef395){const _0x1063a4=_0x1aa45d[_0x4ad7('0x12')][_0x4ad7('0x6d')];_0x1063a4['is'](_0x4ad7('0x4b'),_0x4ad7('0x57'))&&_0x601420['push'](_0x1063a4);}_0x2889f9[_0x4ad7('0x6')]['getSuggestionCallback'](_0x2ac82d,null,_0x7301a1)(_0x4ef395,_0x55e293,_0x2b49ab);for(const _0x36df00 of _0x601420)_0x4ad7('0x7f')!=_0x36df00[_0x4ad7('0x9b')][_0x4ad7('0x3e')]&&_0x3a5268[_0x4ad7('0x21')](_0x36df00);});});};_0x404f0a(_0x4ad7('0x11'),_0x4ad7('0xd')),_0x404f0a(_0x4ad7('0x11'),_0x4ad7('0x94')),_0x404f0a(_0x4ad7('0x29'),_0x4ad7('0xd')),_0x404f0a(_0x4ad7('0x29'),_0x4ad7('0x94')),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')]('insertion',_0x4ad7('0x58'),_0x4ad7('0x94'),_0x15b682=>{const _0x5d93d0=_0x15b682[_0x4ad7('0x78')](_0x5ea574=>_0x5ea574[_0x4ad7('0x3c')]()),_0x461a5c=_0x5d93d0[0x0][_0x4ad7('0x61')](_0x4ad7('0x81')),{minRow:_0x48c1b5,maxRow:_0x36fbf8}=_0x1ee4d9['_getCoordsForCells'](_0x5d93d0);_0x4f47b8[_0x4ad7('0xc')](_0x461a5c,{'at':_0x48c1b5,'rows':_0x36fbf8-_0x48c1b5+0x1});}),_0x2889f9[_0x4ad7('0x6')][_0x4ad7('0x2d')](_0x4ad7('0x11'),_0x4ad7('0x8d'),_0x4ad7('0x94'),_0x3a8e97=>{const _0x4b3bd6=_0x3a8e97[_0x4ad7('0x78')](_0x181e2c=>_0x181e2c[_0x4ad7('0x3c')]()),_0xae142f=_0x4b3bd6[0x0][_0x4ad7('0x61')](_0x4ad7('0x81')),{minColumn:_0x1f2f22,maxColumn:_0x49b0a2}=_0x1ee4d9[_0x4ad7('0x9')](_0x4b3bd6);_0x4f47b8['removeColumns'](_0xae142f,{'at':_0x1f2f22,'columns':_0x49b0a2-_0x1f2f22+0x1});});const _0x1d472a=(_0x74df3b,_0x3c73af)=>{if(!_0x3c73af[_0x4ad7('0x62')]||!_0x3c73af['subType']['startsWith'](_0x4ad7('0x5e')))return;const _0x28b3e1=_0x3c73af[_0x4ad7('0x25')]['tablePasteChainId'],_0x32a647=_0x2889f9[_0x4ad7('0x89')]()[_0x4ad7('0x97')](_0x4ca7d1=>_0x4ca7d1['isInContent']&&_0x4ca7d1[_0x4ad7('0x25')]&&_0x4ca7d1[_0x4ad7('0x25')][_0x4ad7('0x1d')]==_0x28b3e1);_0x32a647['length']&&_0x3c73af[_0x4ad7('0x55')]()[_0x4ad7('0xa')]!=_0x32a647['length']&&_0x32a647['reduce']((_0x431f70,_0x12c3f5)=>(_0x431f70['next']=_0x12c3f5,_0x12c3f5['previous']=_0x431f70,_0x12c3f5));};function _0x1cbb9b(_0x1242e2,_0x38eb3f=!0x0){const {id:_0x46e604}=_0x2889f9['_splitMarkerName'](_0x1242e2[_0x4ad7('0x6f')]),_0x4228b6=[_0x4ad7('0x5b'),_0x4ad7('0x19')],_0x5bc8a5=_0x2889f9['activeMarkers'][_0x4ad7('0x92')](_0x1242e2['markerName']);return _0x5bc8a5&&_0x4228b6['push'](_0x4ad7('0x22')),{'classes':_0x4228b6,'attributes':{'data-suggestion':_0x46e604},'priority':_0x5bc8a5&&_0x38eb3f?0xbc2:0xbb8};}_0x2889f9['on']('suggestionLoaded',_0x1d472a,{'priority':'high'}),_0x2889f9['on'](_0x4ad7('0x2b'),_0x1d472a,{'priority':'high'}),_0x4e14b0['model'][_0x4ad7('0x14')]['registerPostFixer'](()=>{let _0x5137a2=!0x1;const _0x114c40=Array['from'](_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x14')][_0x4ad7('0x80')][_0x4ad7('0x4d')]());for(const {name:_0x4821c1,data:_0x2d10a1}of _0x114c40){const {group:_0xcf71b6,type:_0xa55bd,id:_0x15fc8c}=_0x2889f9[_0x4ad7('0x32')](_0x4821c1);if(_0x4ad7('0x87')!=_0xcf71b6||'deletion'!=_0xa55bd||_0x2d10a1[_0x4ad7('0x8a')])continue;if(!_0x2889f9['hasSuggestion'](_0x15fc8c))continue;const _0x3a30e9=_0x2889f9[_0x4ad7('0x2f')](_0x15fc8c)['getRanges'](),_0x5da57d=_0x4e14b0[_0x4ad7('0x9c')][_0x4ad7('0x5')](_0x4ad7('0x59'))['me'];for(const _0x5af0dc of _0x2889f9[_0x4ad7('0x89')]()){if(!_0x5af0dc[_0x4ad7('0x3')]||_0x5af0dc[_0x4ad7('0x7e')]!=_0x5da57d)continue;if(_0x4ad7('0x17')!=_0x5af0dc[_0x4ad7('0x28')]||_0x4ad7('0x35')!=_0x5af0dc[_0x4ad7('0x62')])continue;if(_0x5af0dc['getRanges']()['every'](_0x4c5ab6=>_0x3a30e9['some'](_0x5aa960=>_0x5aa960[_0x4ad7('0x23')](_0x4c5ab6,!0x0))))for(const _0x5f3190 of _0x5af0dc[_0x4ad7('0x55')]())_0x5f3190[_0x4ad7('0x3')]&&(_0x5f3190['discard'](),_0x5137a2=!0x0);}}return _0x5137a2;}),_0x4e14b0[_0x4ad7('0x52')]['document'][_0x4ad7('0x26')](_0x47f09e=>{const _0x1b271e=_0x4e14b0[_0x4ad7('0x91')][_0x4ad7('0x5')](_0x4ad7('0x82'));if(!_0x1b271e||!_0x1b271e['_createdBatches']['has'](_0x47f09e[_0x4ad7('0x76')]))return!0x1;let _0x578936=!0x1;const _0x519c25=_0x4e14b0[_0x4ad7('0x9c')]['get']('Users')['me'],_0x43d381=_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x14')][_0x4ad7('0x80')][_0x4ad7('0x7b')](),_0x18e43a=Array[_0x4ad7('0x45')](_0x4e14b0[_0x4ad7('0x52')][_0x4ad7('0x14')]['differ'][_0x4ad7('0x4d')]())[_0x4ad7('0x97')](({name:_0x3fdd80,data:_0x27e27f})=>{const {group:_0x4f64bf,subType:_0x37a6c8,authorId:_0xe55bc9}=_0x2889f9[_0x4ad7('0x32')](_0x3fdd80);return _0x4ad7('0x87')==_0x4f64bf&&_0x4ad7('0x5e')==_0x37a6c8&&_0xe55bc9==_0x519c25['id']&&!_0x27e27f['oldRange'];});for(const _0xb1ddb9 of _0x43d381){if(_0x4ad7('0x2c')!=_0xb1ddb9[_0x4ad7('0x28')]||_0x4ad7('0x57')!=_0xb1ddb9[_0x4ad7('0x90')]||0x1!=_0xb1ddb9['length'])continue;const _0x509ed3=_0x47f09e[_0x4ad7('0x2a')](_0xb1ddb9['position'],_0xb1ddb9['position'][_0x4ad7('0x75')](0x1));if(!_0x18e43a[_0x4ad7('0x66')](({data:_0xfc23db})=>_0xfc23db[_0x4ad7('0x15')][_0x4ad7('0x6e')](_0x509ed3)))for(const {name:_0x45e151,data:_0x58b07a}of _0x18e43a)if(_0x509ed3['containsRange'](_0x58b07a['newRange'])){_0x47f09e['updateMarker'](_0x45e151,{'range':_0x509ed3}),_0x578936=!0x0;break;}}return _0x578936;}),_0x4e14b0[_0x4ad7('0x52')]['document'][_0x4ad7('0x26')](_0x5d644b=>{let _0x28288e=!0x1;const _0x2f7ec9=_0x4e14b0[_0x4ad7('0x9c')]['get'](_0x4ad7('0x59'))['me'],_0x5db781=_0x2889f9[_0x4ad7('0x89')]()[_0x4ad7('0x97')](_0x32f17c=>_0x32f17c[_0x4ad7('0x3')]&&_0x32f17c['author']==_0x2f7ec9),_0xfc0dd3=new Set(),_0xdc1d41=new Set();for(const _0x10206f of _0x5db781)if(_0x4ad7('0x5e')==_0x10206f[_0x4ad7('0x62')])for(const _0x2cc033 of _0x10206f[_0x4ad7('0x49')]()){const _0x255207=_0x2cc033[_0x4ad7('0x69')]()[_0x4ad7('0x3c')]();if(_0x255207){if(_0x255207['is'](_0x4ad7('0x4b'),_0x4ad7('0x57'))&&ce(_0x255207)){_0x10206f[_0x4ad7('0x4a')](_0x2cc033[_0x4ad7('0x90')]),_0xfc0dd3[_0x4ad7('0x93')](_0x255207),_0x28288e=!0x0;const _0xcdd525=_0x255207['nextSibling'],_0x301329=_0x255207[_0x4ad7('0x8c')],_0x1c93b4=_0xcdd525&&_0xcdd525['is'](_0x4ad7('0x4b'),_0x4ad7('0x57')),_0x19bf95=_0x301329&&_0x301329['is']('element','tableCellSuggestion');_0x1c93b4&&!_0xfc0dd3[_0x4ad7('0x42')](_0xcdd525)&&_0xdc1d41['add'](_0xcdd525),_0x19bf95&&!_0xfc0dd3[_0x4ad7('0x42')](_0x301329)&&_0xdc1d41[_0x4ad7('0x93')](_0x301329);}else _0x255207['is'](_0x4ad7('0x4b'),_0x4ad7('0x6b'))&&_0x255207[_0x4ad7('0x73')]&&(_0x10206f['removeMarker'](_0x2cc033[_0x4ad7('0x90')]),_0x28288e=!0x0);}}else{if('tablePasteCell'==_0x10206f[_0x4ad7('0x62')]){if(!_0x10206f['attributes']||!_0x10206f[_0x4ad7('0x25')][_0x4ad7('0x1d')])continue;const _0x575b4b=_0x10206f['attributes'][_0x4ad7('0x4e')];if(_0x575b4b&&Object[_0x4ad7('0x50')](_0x575b4b)[_0x4ad7('0xa')])continue;const _0x75e653=_0x10206f[_0x4ad7('0x25')][_0x4ad7('0x1d')];let _0x2a741b=!0x0,_0x26c96f=!0x0;for(const _0x5be274 of _0x5db781)if(_0x5be274[_0x4ad7('0x62')]&&_0x5be274['subType']['startsWith'](_0x4ad7('0x5e'))){if(!_0x5be274[_0x4ad7('0x25')][_0x4ad7('0x1d')]){_0x26c96f=!0x1;break;}if(_0x5be274['id']!=_0x10206f['id']&&_0x5be274[_0x4ad7('0x25')][_0x4ad7('0x1d')]==_0x75e653){_0x2a741b=!0x1;break;}}_0x26c96f&&_0x2a741b&&(_0x10206f[_0x4ad7('0x5f')](),_0x28288e=!0x0);}}for(const _0x17c72e of _0xfc0dd3)_0x5d644b['remove'](_0x17c72e);for(const _0x55aad5 of _0xdc1d41)_0x5d644b[_0x4ad7('0x21')](_0x55aad5);return _0x28288e;}),_0x4e14b0[_0x4ad7('0x5c')][_0x4ad7('0x70')]('editingDowncast')[_0x4ad7('0x7d')]({'model':_0x4ad7('0x31'),'view':(_0x42dd1d,_0x4a4c69)=>_0x1cbb9b(_0x42dd1d),'converterPriority':_0x4ad7('0x40')}),_0x4e14b0[_0x4ad7('0x5c')]['for'](_0x4ad7('0x5a'))[_0x4ad7('0x7d')]({'model':_0x4ad7('0x31'),'view':(_0x293d89,_0x32bcdb)=>_0x32bcdb[_0x4ad7('0x64')][_0x4ad7('0x1')]?_0x1cbb9b(_0x293d89,!0x1):null,'converterPriority':_0x4ad7('0x40')});const _0x498a49=_0x4e14b0[_0x4ad7('0x88')][_0x4ad7('0xe')];this[_0x4ad7('0x18')](_0x498a49[_0x4ad7('0x14')],_0x4ad7('0x39'),(_0x1e14a4,_0x3f3efc)=>{const _0x339520=[];for(const _0x81627d of _0x498a49[_0x4ad7('0x47')](_0x3f3efc['content'])[_0x4ad7('0x54')]())_0x81627d['is'](_0x4ad7('0x4b'),_0x4ad7('0x53'))&&_0x339520[_0x4ad7('0xb')](_0x81627d);_0x498a49[_0x4ad7('0x27')](_0x3b794d=>{for(const _0x37d3d5 of _0x339520)_0x3b794d[_0x4ad7('0x7')](_0x3b794d['createRangeIn'](_0x37d3d5),_0x3b794d['createPositionBefore'](_0x37d3d5)),_0x3b794d[_0x4ad7('0x96')](_0x37d3d5);});});}}function ce(_0x194b4e){if(_0x194b4e[_0x4ad7('0x73')])return!0x0;const _0x57629e=_0x194b4e[_0x4ad7('0x0')](0x0);return _0x57629e['is'](_0x4ad7('0x4b'),'paragraph')&&_0x57629e['isEmpty'];}function fe(_0x593dc8,_0x23d44c={},_0x2917f0){for(const {isAnchor:_0x1f633f,cellHeight:_0xfe9030,cellWidth:_0x5416c6}of _0x2917f0[_0x4ad7('0x74')](_0x593dc8,{'includeAllSlots':!0x0,..._0x23d44c}))if(!_0x1f633f||0x1!=_0xfe9030||0x1!=_0x5416c6)return!0x1;return!0x0;}
|
|
23
|
+
const _0x3f06=['register','hasSuggestion','tableCellBorderStyle','previous','locale','cells','createRange','selection','markMultiRangeInsertion','getRanges','getRowIndexes','commands','suggestion-td','reduce','last','insertionRanges','isInContent','filter','includes','editing','insertColumns','getTableIfOnlyTableInContent','createTableWalker','_suggestionFactory','_getCoordsForCells','length','trackChanges','previousSibling','suggestionUnloaded','every','getRange','rows','discard','registerPostFixer','tablePasteCell','listenTo','updateMarker','startsWith','nodeAfter','*Replace\x20table\x20cells*','getMarkers','markerToHighlight','removeMarker','markerName','elementToElement','tableCellBackgroundColor','markers','type','set','registerDescriptionCallback','activeMarkers','fill','getShiftedBy','endColumn','has','_replaceTableSlotCell','_isForcedDefaultExecutionBlock','isEmpty','table','cell','getChildren','deletion','requires','high','tableCellPadding','removeMarkers','setAttribute','tableCellVerticalAlignment','containsRange','getChild','getSuggestion','push','tablePasteColumn','next','getSelectionAffectedTableCells','registerCustomCallback','tableCellSuggestion','low','subType','newRange','element','add','getRows','rowInsertionRanges','view','tableCellBorderWidth','from','_createdBatches','markMultiRangeDeletion','paragraph','oldRange','accept','insertion','editingDowncast','suggestion:formatBlock:tablePasteCell','clipboardOutput','get','plugins','suggestion','return','change','keys','content','position','stop','createElement','name','getColumnIndexes','getSuggestions','columnInsertionRanges','attributes','removeColumns','createRangeIn','setAttributes','createRangeOn','find','tablePasteChainId','showSuggestionHighlights','columnInsertionIndexes','insert','ck-suggestion-marker-insertion','tableCellBorderColor','findAncestor','createPositionBefore','TableClipboard','markerAttributes','getAttributes','afterInit','fromEntries','markMultiRangeBlockFormat','rowInsertionIndexes','value','_splitMarkerName','tablePasteRow','getChangedMarkers','$graveyard','row','differ','insertRows','map','insertContent','suggestionLoaded','end','documentSelection','remove','tablePaste','start','removeRows','move','forceDefaultExecution','editor','formatBlock','TableUtils','root','options','getItems','columns','isEqual','getChanges','getAllAdjacentSuggestions','document','getContainedElement','deletionRanges','conversion','Users','join','entries','tableCellHorizontalAlignment','ck-suggestion-marker--active','model','column','first'];(function(_0x4d6e01,_0x3f0635){const _0xafec9a=function(_0x17cb44){while(--_0x17cb44){_0x4d6e01['push'](_0x4d6e01['shift']());}};_0xafec9a(++_0x3f0635);}(_0x3f06,0x1a9));const _0xafec=function(_0x4d6e01,_0x3f0635){_0x4d6e01=_0x4d6e01-0x0;let _0xafec9a=_0x3f06[_0x4d6e01];return _0xafec9a;};import{getTranslation as _0x28e181}from'../utils/common-translations';import{Plugin as _0x13e915}from'ckeditor5/src/core';import{uid as _0x2ee87f,priorities as _0x332574}from'ckeditor5/src/utils';import _0x46f352 from'./table';const le=[_0xafec('0x4'),_0xafec('0x28'),_0xafec('0x5d'),_0xafec('0x56'),_0xafec('0x9e'),_0xafec('0x88'),_0xafec('0x9b')],ae=Object[_0xafec('0x2f')](le[_0xafec('0x3a')](_0x22195a=>[_0x22195a,null]));export default class kt extends _0x13e915{static get[_0xafec('0x99')](){return[_0x46f352];}[_0xafec('0x2e')](){const _0x1b1a16=this[_0xafec('0x45')];if(!_0x1b1a16[_0xafec('0x10')][_0xafec('0x91')](_0xafec('0x2b')))return;const _0x42167d=_0x1b1a16[_0xafec('0x10')][_0xafec('0xf')]('TrackChangesEditing'),_0x575a7d=_0x1b1a16[_0xafec('0x10')][_0xafec('0xf')](_0xafec('0x47')),_0x3dd7aa=_0x1b1a16[_0xafec('0x10')]['get'](_0x46f352),_0x1c527c=_0x1b1a16[_0xafec('0x10')]['get'](_0xafec('0x2b'));_0x3dd7aa['_tablePostFixingSubtypes'][_0xafec('0xa2')](_0xafec('0x34'),_0xafec('0xa3')),_0x1b1a16['model']['schema'][_0xafec('0x5b')](_0xafec('0xa7'),{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1b1a16[_0xafec('0x52')][_0xafec('0x87')]({'model':_0xafec('0xa7'),'view':_0xafec('0x67')});let _0x5b389f=null;_0x1b1a16[_0xafec('0x58')]['on'](_0xafec('0x3b'),(_0x36879c,_0x4ef131)=>{const [_0x329dc0,_0x2a556b]=_0x4ef131,_0x189167=_0x4ef131[_0x4ef131[_0xafec('0x74')]-0x1];_0x189167&&_0x189167[_0xafec('0x44')]||_0x42167d[_0xafec('0x93')]||this[_0xafec('0x45')][_0xafec('0x66')][_0xafec('0xf')](_0xafec('0x75'))[_0xafec('0x32')]&&function(_0x324c74,_0x22ac86,_0x4ac30e,_0x4f870e,_0x2e5b5c){if(_0x22ac86&&!_0x22ac86['is'](_0xafec('0x3e')))return!0x1;const _0x23ca8b=_0x2e5b5c[_0xafec('0x70')](_0x324c74,_0x4ac30e);if(!_0x23ca8b||!fe(_0x23ca8b,void 0x0,_0x4f870e))return!0x1;const _0x31eab5=_0x4f870e[_0xafec('0xa5')](_0x4ac30e['document'][_0xafec('0x62')]);if(!_0x31eab5[_0xafec('0x74')])return!0x1;const _0x233e25=_0x31eab5[0x0][_0xafec('0x29')](_0xafec('0x95')),_0x9b8e58=_0x4f870e[_0xafec('0x65')](_0x31eab5),_0x35dc0b=_0x4f870e[_0xafec('0x1a')](_0x31eab5),_0x3d4b2a={'startRow':_0x9b8e58[_0xafec('0x5a')],'endRow':_0x9b8e58[_0xafec('0x69')],'startColumn':_0x35dc0b[_0xafec('0x5a')],'endColumn':_0x35dc0b[_0xafec('0x69')]};return 0x1==_0x31eab5[_0xafec('0x74')]&&(_0x3d4b2a['endRow']+=_0x4f870e[_0xafec('0x1')](_0x23ca8b)-0x1,_0x3d4b2a[_0xafec('0x90')]+=_0x4f870e['getColumns'](_0x23ca8b)-0x1),fe(_0x233e25,_0x3d4b2a,_0x4f870e);}(_0x329dc0,_0x2a556b,_0x1b1a16[_0xafec('0x58')],_0x575a7d,_0x1c527c)&&(_0x36879c['stop'](),_0x5b389f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1b1a16['model']['change'](()=>{_0x1b1a16[_0xafec('0x58')][_0xafec('0x3b')](_0x4ef131[0x0],_0x4ef131[0x1],_0x4ef131[0x2],{'forceDefaultExecution':!0x0});const _0x43a11f=_0x2ee87f(),{rowInsertionRanges:_0x1dd475,columnInsertionRanges:_0x1a29e7,insertionRanges:_0x27d644,deletionRanges:_0x1734ff,cells:_0x452be9}=_0x5b389f;_0x1dd475['length']&&_0x42167d[_0xafec('0x63')](_0x1dd475,_0xafec('0x34'),{'tablePasteChainId':_0x43a11f}),_0x1a29e7['length']&&_0x42167d[_0xafec('0x63')](_0x1a29e7,_0xafec('0xa3'),{'tablePasteChainId':_0x43a11f}),_0x27d644[_0xafec('0x74')]&&_0x42167d[_0xafec('0x63')](_0x27d644,'tablePaste',{'tablePasteChainId':_0x43a11f,'skipNestingCheck':!0x0}),_0x1734ff['length']&&_0x42167d[_0xafec('0x7')](_0x1734ff,_0xafec('0x40'),{'tablePasteChainId':_0x43a11f,'skipNestingCheck':!0x0});const _0x2a0686=_0x42167d[_0xafec('0x30')](_0x452be9[_0xafec('0x3a')](({element:_0x4298cd})=>_0x4298cd),{'formatGroupId':_0x2ee87f()},[],_0xafec('0x7d'),{'tablePasteChainId':_0x43a11f});if(_0x2a0686){const _0xb104e1=_0x2a0686[_0xafec('0x83')](),_0x436df7=[];for(const {element:_0x4b8806,attributes:_0x4e8a88}of _0x452be9){if(!_0x4e8a88)continue;const _0x3e79ec=_0x1b1a16['model']['createRangeOn'](_0x4b8806),_0x323de7=_0xb104e1[_0xafec('0x22')](_0x525b56=>_0x525b56[_0xafec('0x79')]()[_0xafec('0x4c')](_0x3e79ec));_0x323de7&&_0x436df7[_0xafec('0xa2')]([_0x323de7[_0xafec('0x19')],_0x4e8a88]);}_0x436df7['length']&&_0x2a0686[_0xafec('0x9d')](_0xafec('0x2c'),Object[_0xafec('0x2f')](_0x436df7));}_0x5b389f=null;}));},{'priority':_0x332574[_0xafec('0x9a')]+0xa}),_0x1b1a16[_0xafec('0x10')][_0xafec('0xf')](_0xafec('0x2b'))['on'](_0xafec('0x92'),(_0x4757b0,_0x419e81)=>{const [_0x5342af,_0x3e4698,,_0x29ba79]=_0x419e81;if(!_0x5b389f)return;_0x4757b0[_0xafec('0x17')]();const _0xfedc72=_0x5342af[_0xafec('0x96')],_0x10a33a=_0x3e4698,_0x6132a6=ce(_0xfedc72),_0x3daf85=ce(_0x10a33a);_0x4757b0[_0xafec('0x12')]=_0xfedc72;let _0x510a1e=null,_0x39050a=null;if(_0x3daf85||_0x6132a6){if(_0x6132a6&&!_0x3daf85){_0x29ba79['remove'](_0xfedc72[_0xafec('0xa0')](0x0));for(const _0xbd4ad4 of Array[_0xafec('0x5')](_0x10a33a[_0xafec('0x97')]()))_0x29ba79[_0xafec('0x26')](_0xbd4ad4,_0xfedc72,_0xafec('0x3d'));const _0x570afe=_0x5b389f[_0xafec('0x31')][_0xafec('0x6d')](_0x5342af[_0xafec('0x37')]),_0x2768f9=_0x5b389f[_0xafec('0x25')]['includes'](_0x5342af[_0xafec('0x59')]);_0x570afe||_0x2768f9||(_0x510a1e=_0x29ba79[_0xafec('0x1f')](_0xfedc72));}else _0x3daf85&&!_0x6132a6&&(_0x39050a=_0x29ba79[_0xafec('0x1f')](_0xfedc72));}else{const _0x3d5e4a=_0x29ba79['createElement'](_0xafec('0xa7')),_0x3d39ae=_0x29ba79[_0xafec('0x18')](_0xafec('0xa7'));_0x29ba79['wrap'](_0x29ba79[_0xafec('0x1f')](_0xfedc72),_0x3d39ae),_0x29ba79['insert'](_0x3d5e4a,_0xfedc72,0x0);for(const _0x5134c5 of Array[_0xafec('0x5')](_0x10a33a[_0xafec('0x97')]()))_0x29ba79[_0xafec('0x26')](_0x5134c5,_0x3d5e4a,_0xafec('0x3d'));_0x510a1e=_0x29ba79[_0xafec('0x21')](_0x3d5e4a),_0x39050a=_0x29ba79[_0xafec('0x21')](_0x3d39ae);}const _0x104c26=Array[_0xafec('0x5')](_0x10a33a[_0xafec('0x2d')]())[_0xafec('0x6c')](([_0x42b7a5])=>le[_0xafec('0x6d')](_0x42b7a5));_0x5b389f[_0xafec('0x60')][_0xafec('0xa2')]({'element':_0xfedc72,'attributes':_0x104c26[_0xafec('0x74')]?Object[_0xafec('0x2f')](_0x104c26):null}),_0x510a1e&&_0x5b389f[_0xafec('0x6a')][_0xafec('0xa2')](_0x510a1e),_0x39050a&&_0x5b389f[_0xafec('0x51')][_0xafec('0xa2')](_0x39050a);},{'priority':_0xafec('0x9a')}),_0x575a7d['on'](_0xafec('0x6f'),(_0x5ee69b,_0x1f1f91)=>{const [_0xa25d07,_0x29cb1d={}]=_0x1f1f91;if(!_0x5b389f)return;const _0x5edfca=_0x29cb1d['at']||0x0,_0x92e4e3=_0x29cb1d[_0xafec('0x4b')]||0x1;_0x5b389f['columnInsertionIndexes']=new Array(_0x92e4e3)[_0xafec('0x8e')](_0x5edfca)[_0xafec('0x3a')]((_0x1a6ebb,_0x10f32c)=>_0x1a6ebb+_0x10f32c);for(const {cell:_0x4e10bd}of _0x575a7d[_0xafec('0x71')](_0xa25d07,{'startColumn':_0x5edfca,'endColumn':_0x5edfca+_0x92e4e3-0x1}))_0x5b389f[_0xafec('0x1c')][_0xafec('0xa2')](_0x1b1a16['model'][_0xafec('0x21')](_0x4e10bd));},{'priority':_0xafec('0xa8')}),_0x575a7d['on'](_0xafec('0x39'),(_0x54c18a,_0x52caf4)=>{const [_0x1a7377,_0x5194de={}]=_0x52caf4;if(!_0x5b389f)return;const _0x4db233=_0x5194de['at']||0x0,_0x35af15=_0x5194de[_0xafec('0x7a')]||0x1;_0x5b389f['rowInsertionIndexes']=new Array(_0x35af15)[_0xafec('0x8e')](_0x4db233)[_0xafec('0x3a')]((_0x5be09d,_0x3ec587)=>_0x5be09d+_0x3ec587);for(const {cell:_0x188f1b}of _0x575a7d[_0xafec('0x71')](_0x1a7377,{'startRow':_0x4db233,'endRow':_0x4db233+_0x35af15-0x1}))_0x5b389f[_0xafec('0x2')]['push'](_0x1b1a16[_0xafec('0x58')]['createRangeOn'](_0x188f1b));},{'priority':'low'}),_0x42167d['_descriptionFactory'][_0xafec('0x8c')](_0x59771c=>{if(_0x59771c['subType']&&_0x59771c['subType'][_0xafec('0x80')](_0xafec('0x40')))return _0x59771c[_0xafec('0x5e')]?{}:{'type':_0xafec('0xb'),'content':_0x28e181(_0x1b1a16[_0xafec('0x5f')],_0xafec('0x82'))};});const _0x249a2f=()=>{};for(const _0x58a65e of[_0xafec('0x40'),_0xafec('0xa3'),'tablePasteRow',_0xafec('0x7d')])_0x42167d[_0xafec('0x72')]['registerCustomCallback'](_0xafec('0xb'),_0x58a65e,_0xafec('0x54'),_0x249a2f),_0x42167d['_suggestionFactory']['registerCustomCallback'](_0xafec('0x98'),_0x58a65e,_0xafec('0x54'),_0x249a2f);_0x42167d[_0xafec('0x72')][_0xafec('0xa6')](_0xafec('0x46'),_0xafec('0x7d'),_0xafec('0x7b'),_0x249a2f),_0x42167d['_suggestionFactory']['registerCustomCallback'](_0xafec('0x46'),_0xafec('0x7d'),_0xafec('0xa'),(_0x3030d1,_0x33c2cd,_0xf00231)=>{const _0x40a4f6=_0x3030d1[_0xafec('0x3a')](_0x162711=>_0x162711['getContainedElement']())[_0xafec('0x6c')](_0x1dd07d=>_0x1dd07d),_0x475f2e=new Map(_0x40a4f6[_0xafec('0x3a')](_0x9e7a5b=>[_0x9e7a5b,null]));if(_0x5b389f)for(const {element:_0x49b54e,attributes:_0x1934be}of _0x5b389f[_0xafec('0x60')])_0x1934be&&_0x475f2e[_0xafec('0x8b')](_0x49b54e,_0x1934be);else{if(_0xf00231&&_0xf00231[_0xafec('0x2c')])for(const [_0x4f01a7,_0x5500a6]of Object[_0xafec('0x55')](_0xf00231['markerAttributes'])){const _0x59e14d=_0x1b1a16[_0xafec('0x58')][_0xafec('0x89')][_0xafec('0xf')](_0x4f01a7),_0x54d6c5=_0x59e14d?_0x59e14d[_0xafec('0x79')]()[_0xafec('0x50')]():null;_0x54d6c5&&_0x475f2e[_0xafec('0x8b')](_0x54d6c5,_0x5500a6);}}_0x1b1a16[_0xafec('0x58')]['change'](_0x427c46=>{for(const [_0xbc68f,_0x595a13]of _0x475f2e)_0x427c46[_0xafec('0x20')]({...ae,..._0x595a13},_0xbc68f);});});const _0xe31c78=(_0x49465b,_0x27e285)=>{_0x42167d[_0xafec('0x72')]['registerCustomCallback'](_0x49465b,_0xafec('0x40'),_0x27e285,(_0xd18e8f,_0x57e3b5,_0x2393b6)=>{_0x1b1a16[_0xafec('0x58')]['change'](_0x1345c7=>{const _0x5e9702=[];for(const _0x23bf29 of _0xd18e8f){const _0x18d8eb=_0x23bf29[_0xafec('0x41')][_0xafec('0x81')];_0x18d8eb['is'](_0xafec('0xab'),_0xafec('0xa7'))&&_0x5e9702[_0xafec('0xa2')](_0x18d8eb);}_0x42167d[_0xafec('0x72')]['getSuggestionCallback'](_0x49465b,null,_0x27e285)(_0xd18e8f,_0x57e3b5,_0x2393b6);for(const _0x495a7a of _0x5e9702)_0xafec('0x36')!=_0x495a7a[_0xafec('0x48')]['rootName']&&_0x1345c7['unwrap'](_0x495a7a);});});};_0xe31c78(_0xafec('0xb'),'accept'),_0xe31c78(_0xafec('0xb'),_0xafec('0x7b')),_0xe31c78(_0xafec('0x98'),_0xafec('0xa')),_0xe31c78('deletion',_0xafec('0x7b')),_0x42167d['_suggestionFactory'][_0xafec('0xa6')](_0xafec('0xb'),_0xafec('0x34'),_0xafec('0x7b'),_0x4b7909=>{const _0x4781c9=_0x4b7909['map'](_0x1c806e=>_0x1c806e[_0xafec('0x50')]()),_0x32a552=_0x4781c9[0x0]['findAncestor'](_0xafec('0x95')),{minRow:_0x242682,maxRow:_0x251d83}=_0x3dd7aa['_getCoordsForCells'](_0x4781c9);_0x575a7d[_0xafec('0x42')](_0x32a552,{'at':_0x242682,'rows':_0x251d83-_0x242682+0x1});}),_0x42167d['_suggestionFactory'][_0xafec('0xa6')](_0xafec('0xb'),_0xafec('0xa3'),_0xafec('0x7b'),_0x20e5df=>{const _0x3d881f=_0x20e5df[_0xafec('0x3a')](_0x1d8312=>_0x1d8312[_0xafec('0x50')]()),_0x4793c5=_0x3d881f[0x0]['findAncestor']('table'),{minColumn:_0x41d8da,maxColumn:_0x25ee0b}=_0x3dd7aa[_0xafec('0x73')](_0x3d881f);_0x575a7d[_0xafec('0x1e')](_0x4793c5,{'at':_0x41d8da,'columns':_0x25ee0b-_0x41d8da+0x1});});const _0x18fe87=(_0x502ebe,_0x41a804)=>{if(!_0x41a804[_0xafec('0xa9')]||!_0x41a804['subType'][_0xafec('0x80')](_0xafec('0x40')))return;const _0x1c04c2=_0x41a804[_0xafec('0x1d')][_0xafec('0x23')],_0x141fb5=_0x42167d[_0xafec('0x1b')]()['filter'](_0x3b0969=>_0x3b0969[_0xafec('0x6b')]&&_0x3b0969[_0xafec('0x1d')]&&_0x3b0969[_0xafec('0x1d')][_0xafec('0x23')]==_0x1c04c2);_0x141fb5[_0xafec('0x74')]&&_0x41a804[_0xafec('0x4e')]()[_0xafec('0x74')]!=_0x141fb5[_0xafec('0x74')]&&_0x141fb5[_0xafec('0x68')]((_0x32d3aa,_0x5b8899)=>(_0x32d3aa[_0xafec('0xa4')]=_0x5b8899,_0x5b8899[_0xafec('0x5e')]=_0x32d3aa,_0x5b8899));};function _0x4613cb(_0x5507bc,_0xa2a24f=!0x0){const {id:_0x5a53ba}=_0x42167d[_0xafec('0x33')](_0x5507bc['markerName']),_0x552114=['ck-suggestion-marker',_0xafec('0x27')],_0x4568d0=_0x42167d[_0xafec('0x8d')][_0xafec('0x6d')](_0x5507bc[_0xafec('0x86')]);return _0x4568d0&&_0x552114[_0xafec('0xa2')](_0xafec('0x57')),{'classes':_0x552114,'attributes':{'data-suggestion':_0x5a53ba},'priority':_0x4568d0&&_0xa2a24f?0xbc2:0xbb8};}_0x42167d['on'](_0xafec('0x3c'),_0x18fe87,{'priority':_0xafec('0x9a')}),_0x42167d['on'](_0xafec('0x77'),_0x18fe87,{'priority':_0xafec('0x9a')}),_0x1b1a16[_0xafec('0x58')][_0xafec('0x4f')]['registerPostFixer'](()=>{let _0x599587=!0x1;const _0x311712=Array[_0xafec('0x5')](_0x1b1a16[_0xafec('0x58')][_0xafec('0x4f')][_0xafec('0x38')][_0xafec('0x35')]());for(const {name:_0x291826,data:_0x1a6501}of _0x311712){const {group:_0x336427,type:_0x208f12,id:_0x4a25b0}=_0x42167d[_0xafec('0x33')](_0x291826);if(_0xafec('0x11')!=_0x336427||_0xafec('0x98')!=_0x208f12||_0x1a6501[_0xafec('0x9')])continue;if(!_0x42167d[_0xafec('0x5c')](_0x4a25b0))continue;const _0x56e0d9=_0x42167d[_0xafec('0xa1')](_0x4a25b0)['getRanges'](),_0x1147b8=_0x1b1a16[_0xafec('0x10')]['get']('Users')['me'];for(const _0x1abe6a of _0x42167d[_0xafec('0x1b')]()){if(!_0x1abe6a[_0xafec('0x6b')]||_0x1abe6a['author']!=_0x1147b8)continue;if(_0xafec('0x46')!=_0x1abe6a[_0xafec('0x8a')]||_0xafec('0x7d')!=_0x1abe6a[_0xafec('0xa9')])continue;if(_0x1abe6a[_0xafec('0x64')]()[_0xafec('0x78')](_0x9357da=>_0x56e0d9['some'](_0x5e7966=>_0x5e7966[_0xafec('0x9f')](_0x9357da,!0x0))))for(const _0x5f3743 of _0x1abe6a[_0xafec('0x4e')]())_0x5f3743['isInContent']&&(_0x5f3743['discard'](),_0x599587=!0x0);}}return _0x599587;}),_0x1b1a16[_0xafec('0x58')][_0xafec('0x4f')]['registerPostFixer'](_0x4300e0=>{const _0x262409=_0x1b1a16[_0xafec('0x66')][_0xafec('0xf')]('redo');if(!_0x262409||!_0x262409[_0xafec('0x6')]['has'](_0x4300e0['batch']))return!0x1;let _0x5244e0=!0x1;const _0x46ee83=_0x1b1a16[_0xafec('0x10')][_0xafec('0xf')](_0xafec('0x53'))['me'],_0x3ab5bf=_0x1b1a16[_0xafec('0x58')][_0xafec('0x4f')][_0xafec('0x38')][_0xafec('0x4d')](),_0x21a319=Array[_0xafec('0x5')](_0x1b1a16[_0xafec('0x58')][_0xafec('0x4f')]['differ'][_0xafec('0x35')]())['filter'](({name:_0xd0b577,data:_0x5346bf})=>{const {group:_0x5c5fb8,subType:_0xa07b3,authorId:_0x532c39}=_0x42167d[_0xafec('0x33')](_0xd0b577);return _0xafec('0x11')==_0x5c5fb8&&_0xafec('0x40')==_0xa07b3&&_0x532c39==_0x46ee83['id']&&!_0x5346bf[_0xafec('0x9')];});for(const _0x1abe00 of _0x3ab5bf){if('insert'!=_0x1abe00[_0xafec('0x8a')]||_0xafec('0xa7')!=_0x1abe00[_0xafec('0x19')]||0x1!=_0x1abe00[_0xafec('0x74')])continue;const _0x547534=_0x4300e0[_0xafec('0x61')](_0x1abe00[_0xafec('0x16')],_0x1abe00[_0xafec('0x16')][_0xafec('0x8f')](0x1));if(!_0x21a319[_0xafec('0x22')](({data:_0x42d249})=>_0x42d249[_0xafec('0xaa')][_0xafec('0x4c')](_0x547534)))for(const {name:_0x1bf451,data:_0xb18c7f}of _0x21a319)if(_0x547534[_0xafec('0x9f')](_0xb18c7f[_0xafec('0xaa')])){_0x4300e0[_0xafec('0x7f')](_0x1bf451,{'range':_0x547534}),_0x5244e0=!0x0;break;}}return _0x5244e0;}),_0x1b1a16['model'][_0xafec('0x4f')][_0xafec('0x7c')](_0x2a7661=>{let _0x537b15=!0x1;const _0x58c629=_0x1b1a16[_0xafec('0x10')][_0xafec('0xf')](_0xafec('0x53'))['me'],_0x4ebbfa=_0x42167d['getSuggestions']()['filter'](_0x327a89=>_0x327a89[_0xafec('0x6b')]&&_0x327a89['author']==_0x58c629),_0xa67954=new Set(),_0x46421b=new Set();for(const _0x29c3bc of _0x4ebbfa)if('tablePaste'==_0x29c3bc[_0xafec('0xa9')])for(const _0x4ae055 of _0x29c3bc[_0xafec('0x83')]()){const _0x2a47df=_0x4ae055[_0xafec('0x79')]()[_0xafec('0x50')]();if(_0x2a47df){if(_0x2a47df['is'](_0xafec('0xab'),_0xafec('0xa7'))&&ce(_0x2a47df)){_0x29c3bc[_0xafec('0x85')](_0x4ae055[_0xafec('0x19')]),_0xa67954[_0xafec('0x0')](_0x2a47df),_0x537b15=!0x0;const _0x599554=_0x2a47df['nextSibling'],_0x375192=_0x2a47df[_0xafec('0x76')],_0x458508=_0x599554&&_0x599554['is'](_0xafec('0xab'),_0xafec('0xa7')),_0x5f094=_0x375192&&_0x375192['is']('element',_0xafec('0xa7'));_0x458508&&!_0xa67954[_0xafec('0x91')](_0x599554)&&_0x46421b[_0xafec('0x0')](_0x599554),_0x5f094&&!_0xa67954[_0xafec('0x91')](_0x375192)&&_0x46421b[_0xafec('0x0')](_0x375192);}else _0x2a47df['is'](_0xafec('0xab'),_0xafec('0x8'))&&_0x2a47df[_0xafec('0x94')]&&(_0x29c3bc[_0xafec('0x85')](_0x4ae055[_0xafec('0x19')]),_0x537b15=!0x0);}}else{if(_0xafec('0x7d')==_0x29c3bc[_0xafec('0xa9')]){if(!_0x29c3bc['attributes']||!_0x29c3bc[_0xafec('0x1d')][_0xafec('0x23')])continue;const _0x380b58=_0x29c3bc[_0xafec('0x1d')][_0xafec('0x2c')];if(_0x380b58&&Object[_0xafec('0x14')](_0x380b58)[_0xafec('0x74')])continue;const _0x107ff4=_0x29c3bc['attributes']['tablePasteChainId'];let _0x466a9a=!0x0,_0x4ace72=!0x0;for(const _0x5eb163 of _0x4ebbfa)if(_0x5eb163['subType']&&_0x5eb163[_0xafec('0xa9')][_0xafec('0x80')](_0xafec('0x40'))){if(!_0x5eb163[_0xafec('0x1d')][_0xafec('0x23')]){_0x4ace72=!0x1;break;}if(_0x5eb163['id']!=_0x29c3bc['id']&&_0x5eb163[_0xafec('0x1d')][_0xafec('0x23')]==_0x107ff4){_0x466a9a=!0x1;break;}}_0x4ace72&&_0x466a9a&&(_0x29c3bc[_0xafec('0x9c')](),_0x537b15=!0x0);}}for(const _0x56789c of _0xa67954)_0x2a7661[_0xafec('0x3f')](_0x56789c);for(const _0x43dbcf of _0x46421b)_0x2a7661['unwrap'](_0x43dbcf);return _0x537b15;}),_0x1b1a16[_0xafec('0x52')]['for'](_0xafec('0xc'))[_0xafec('0x84')]({'model':_0xafec('0xd'),'view':(_0x25f47b,_0x520ef9)=>_0x4613cb(_0x25f47b),'converterPriority':_0xafec('0x9a')}),_0x1b1a16['conversion']['for']('dataDowncast')[_0xafec('0x84')]({'model':_0xafec('0xd'),'view':(_0x11dcc2,_0x1b93c6)=>_0x1b93c6[_0xafec('0x49')][_0xafec('0x24')]?_0x4613cb(_0x11dcc2,!0x1):null,'converterPriority':_0xafec('0x9a')});const _0x2d7885=_0x1b1a16[_0xafec('0x6e')][_0xafec('0x3')];this[_0xafec('0x7e')](_0x2d7885[_0xafec('0x4f')],_0xafec('0xe'),(_0x212f5d,_0x385e4b)=>{const _0x52972f=[];for(const _0x4e7ec9 of _0x2d7885[_0xafec('0x1f')](_0x385e4b[_0xafec('0x15')])[_0xafec('0x4a')]())_0x4e7ec9['is'](_0xafec('0xab'),_0xafec('0x67'))&&_0x52972f[_0xafec('0xa2')](_0x4e7ec9);_0x2d7885[_0xafec('0x13')](_0x57f7cd=>{for(const _0x55557d of _0x52972f)_0x57f7cd[_0xafec('0x43')](_0x57f7cd[_0xafec('0x1f')](_0x55557d),_0x57f7cd[_0xafec('0x2a')](_0x55557d)),_0x57f7cd['remove'](_0x55557d);});});}}function ce(_0x10b90f){if(_0x10b90f[_0xafec('0x94')])return!0x0;const _0x5d3388=_0x10b90f[_0xafec('0xa0')](0x0);return _0x5d3388['is'](_0xafec('0xab'),_0xafec('0x8'))&&_0x5d3388['isEmpty'];}function fe(_0x439ac1,_0x38a50d={},_0x42b963){for(const {isAnchor:_0x538097,cellHeight:_0x2ea908,cellWidth:_0x4e15f6}of _0x42b963[_0xafec('0x71')](_0x439ac1,{'includeAllSlots':!0x0,..._0x38a50d}))if(!_0x538097||0x1!=_0x2ea908||0x1!=_0x4e15f6)return!0x1;return!0x0;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d50=['commandParams','getSuggestions','TableColumnResizeEditing','*Format:*\x20resize\x20table','editor','columnWidths','change','formatBlock','model','tableWidth','has','enableCommand','get','_suggestionFactory','document','TrackChangesEditing','bind','discard','markBlockFormat','_descriptionFactory','subType','selection','plugins','table','resizeTableWidth','formatGroupId','author','handleSuggestionDescription','getTableColumnsWidths','afterInit','accept','resizeColumnWidths','getColumnGroupElement','getContainedElement','registerCustomCallback','getSuggestionCallback','format','resizeTable','locale','handleResizeTableWidthCommand','registerDescriptionCallback','getSelectedElement'];(function(_0x1fbfc8,_0x4d50ee){const _0x4588c4=function(_0x682407){while(--_0x682407){_0x1fbfc8['push'](_0x1fbfc8['shift']());}};_0x4588c4(++_0x4d50ee);}(_0x4d50,0xe9));const _0x4588=function(_0x1fbfc8,_0x4d50ee){_0x1fbfc8=_0x1fbfc8-0x0;let _0x4588c4=_0x4d50[_0x1fbfc8];return _0x4588c4;};import{Plugin as _0x5e7494}from'ckeditor5/src/core';import{getTranslation as _0x44fd7c}from'../utils/common-translations';export default class wt extends _0x5e7494{[_0x4588('0x6')](){if(!this[_0x4588('0x17')][_0x4588('0x29')][_0x4588('0x1d')](_0x4588('0x15')))return;const _0x4930cd=this['editor']['plugins'][_0x4588('0x1f')](_0x4588('0x22'));_0x4930cd[_0x4588('0x1e')]('resizeTableWidth',this[_0x4588('0x10')][_0x4588('0x23')](this)),_0x4930cd['enableCommand'](_0x4588('0x8'),this[_0x4588('0x10')]['bind'](this)),_0x4930cd[_0x4588('0x20')]['registerCustomCallback'](_0x4588('0x1a'),_0x4588('0xe'),_0x4588('0x7'),_0x4930cd[_0x4588('0x20')][_0x4588('0xc')](_0x4588('0x1a'),null,'discard')),_0x4930cd['_suggestionFactory'][_0x4588('0xb')](_0x4588('0x1a'),'resizeTable',_0x4588('0x24'),_0x4930cd[_0x4588('0x20')]['getSuggestionCallback'](_0x4588('0x1a'),null,'accept')),_0x4930cd[_0x4588('0x26')][_0x4588('0x11')](this[_0x4588('0x4')]['bind'](this));}[_0x4588('0x10')](_0x16251b,_0xe200f3){const _0x39e740=this[_0x4588('0x17')][_0x4588('0x29')]['get'](_0x4588('0x22')),_0x1838db=this['editor'][_0x4588('0x29')][_0x4588('0x1f')](_0x4588('0x15')),_0x18fec9=_0xe200f3[_0x4588('0x0')]||this[_0x4588('0x17')][_0x4588('0x1b')][_0x4588('0x21')][_0x4588('0x28')][_0x4588('0x12')]();this['editor'][_0x4588('0x1b')][_0x4588('0x19')](()=>{const _0x916cae=_0x1838db[_0x4588('0x9')](_0x18fec9);let _0x211c7e=_0x916cae?_0x1838db[_0x4588('0x5')](_0x916cae):null,_0x12e942=_0x18fec9['getAttribute']('tableWidth')||null;const _0x51c14e=_0xe200f3[_0x4588('0x1c')]||_0x12e942,_0x49aac5=_0xe200f3['columnWidths']||_0x211c7e,_0x15992d=this[_0x4588('0x17')][_0x4588('0x29')][_0x4588('0x1f')]('Users')['me'];for(const _0x35a222 of _0x39e740[_0x4588('0x14')]()){const _0x5cd7d8=_0x35a222[_0x4588('0xa')]();if(_0x4588('0xe')===_0x35a222[_0x4588('0x27')]&&_0x5cd7d8===_0x18fec9){_0x35a222[_0x4588('0x3')]!==_0x15992d&&_0x35a222[_0x4588('0x24')]();const _0x458e53=_0x35a222['data'][_0x4588('0x13')];_0x12e942=_0x458e53[0x0][_0x4588('0x1c')],_0x211c7e=_0x458e53[0x0][_0x4588('0x18')];break;}}_0x16251b({'table':_0x18fec9,'tableWidth':_0x51c14e,'columnWidths':_0x49aac5}),_0x39e740[_0x4588('0x25')](_0x18fec9,{'commandName':_0x4588('0x1'),'commandParams':[{'tableWidth':_0x12e942,'columnWidths':_0x211c7e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}[_0x4588('0x4')](_0x55bcc4){const {data:_0x392191}=_0x55bcc4;if(_0x392191&&'resizeTable'===_0x392191[_0x4588('0x2')]){const _0x38b72e=_0x4588('0x16');return{'type':_0x4588('0xd'),'content':_0x44fd7c(this[_0x4588('0x17')][_0x4588('0xf')],_0x38b72e)};}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdcea=['accept','activeMarkers','end','index','first','createPositionBefore','markerNameToElements','value','item','ck-suggestion-marker--active','forceValue','FORMAT_HEADER_ROW','consumable','_suggestionFactory','FORMAT_HEADER_COLUMN','editor','*Format:*\x20%0','format','parent','headingColumns','name','markerName','selection','cell','nodeBefore','registerCustomCallback','ck-suggestion-marker-','removeClass','addClass','toViewElement','commands','createPositionAfter','editing','highest','table','_splitMarkerName','removeMarker:suggestion','_acceptFormatSuggestionCallbackFactory','createTableWalker','start','from','last','formatBlock','markerRange','change','FORMAT_REGULAR_COLUMN','TableEditing','data-suggestion','data','model','getCellLocation','headingRows','commandParams','setTableRowHeader','showSuggestionHighlights','findAncestor','plugins','isBefore','getColumnIndexes','getAttribute','unbindElementFromMarkerName','has','TrackChangesEditing','commandName','includes','TableUtils','setAttribute','afterInit','addMarker:suggestion','downcastDispatcher','enableCommand','getSelectionAffectedTableCells','markBlockFormat','mapper','createRange','getChild','setTableColumnHeader','writer','getSuggestion','options','get','removeAttribute'];(function(_0x4729a7,_0xdceadd){const _0x76d679=function(_0x5b06a8){while(--_0x5b06a8){_0x4729a7['push'](_0x4729a7['shift']());}};_0x76d679(++_0xdceadd);}(_0xdcea,0x18f));const _0x76d6=function(_0x4729a7,_0xdceadd){_0x4729a7=_0x4729a7-0x0;let _0x76d679=_0xdcea[_0x4729a7];return _0x76d679;};import{Plugin as _0x567777}from'ckeditor5/src/core';import _0x5031f1 from'./table';import{getTranslation as _0x3153a5}from'../utils/common-translations';export default class pt extends _0x567777{static get['requires'](){return[_0x5031f1];}[_0x76d6('0x4e')](){const _0x4ff62a=this[_0x76d6('0x1a')];if(!_0x4ff62a[_0x76d6('0x43')][_0x76d6('0x48')](_0x76d6('0x39')))return;const _0x4e2b00=_0x4ff62a['locale'],_0x2e9134=_0x4ff62a['plugins'][_0x76d6('0x9')](_0x76d6('0x49')),_0x9ec2d=_0x4ff62a['plugins'][_0x76d6('0x9')](_0x76d6('0x4c')),_0x1f9f74=_0x4ff62a['plugins'][_0x76d6('0x9')](_0x5031f1);function _0x1fad40({showActiveMarker:_0x11fc56=!0x0,setDataAttribute:_0x26868e=!0x0}={}){return(_0x1a61be,_0x2381d0,_0xe86293)=>{const {type:_0x9f565a,id:_0x33496a}=_0x2e9134[_0x76d6('0x2e')](_0x2381d0[_0x76d6('0x20')]),_0x4367b7=_0x2e9134['getSuggestion'](_0x33496a);if(!_0x4367b7[_0x76d6('0x3b')]||_0x76d6('0x5')!=_0x4367b7[_0x76d6('0x3b')][_0x76d6('0x4a')])return;if(_0x2381d0[_0x76d6('0x13')])return void _0x1a61be['stop']();if(!_0xe86293[_0x76d6('0x17')]['consume'](_0x2381d0[_0x76d6('0x36')],_0x1a61be[_0x76d6('0x1f')]))return;const _0x58f9aa=_0x2381d0[_0x76d6('0x36')][_0x76d6('0x32')]['nodeAfter'],_0x5b28f5=_0x2381d0['markerRange'][_0x76d6('0xd')][_0x76d6('0x23')],_0x46e419=_0x58f9aa['parent'][_0x76d6('0x1d')],{column:_0x14e604}=_0x9ec2d[_0x76d6('0x3d')](_0x58f9aa),{column:_0x5b5aa5}=_0x9ec2d[_0x76d6('0x3d')](_0x5b28f5);for(let _0x132040=_0x14e604;_0x132040<=_0x5b5aa5;_0x132040++){const _0x2382a1=_0x9ec2d[_0x76d6('0x31')](_0x46e419,{'column':_0x132040,'includeAllSlots':!0x1});for(const _0x290814 of _0x2382a1){const _0x48e070=_0x290814[_0x76d6('0x22')],_0x12038f=_0xe86293['mapper'][_0x76d6('0x28')](_0x48e070);_0xe86293[_0x76d6('0x6')][_0x76d6('0x27')](_0x76d6('0x25')+_0x9f565a,_0x12038f),_0x26868e&&_0xe86293[_0x76d6('0x6')][_0x76d6('0x4d')](_0x76d6('0x3a'),_0x33496a,_0x12038f),_0xe86293[_0x76d6('0x2')]['bindElementToMarker'](_0x12038f,_0x2381d0['markerName']),_0x11fc56&&(_0x2e9134[_0x76d6('0xc')][_0x76d6('0x4b')](_0x2381d0[_0x76d6('0x20')])?_0xe86293['writer'][_0x76d6('0x27')](_0x76d6('0x14'),_0x12038f):_0xe86293['writer'][_0x76d6('0x26')](_0x76d6('0x14'),_0x12038f));}}};}_0x2e9134[_0x76d6('0x51')](_0x76d6('0x40'),(_0x3d34a4,_0x5dab20)=>{const _0x242599=_0x9ec2d[_0x76d6('0x0')](_0x4ff62a['model']['document'][_0x76d6('0x21')]),_0x54d156=_0x9ec2d['getRowIndexes'](_0x242599),_0x2fb2c1=_0x242599[0x0][_0x76d6('0x42')](_0x76d6('0x2d')),_0x125db4=_0x2fb2c1[_0x76d6('0x46')](_0x76d6('0x3e'))||0x0,_0x51086b=_0x5dab20&&null!==_0x5dab20['forceValue']?_0x5dab20['forceValue']:!_0x4ff62a[_0x76d6('0x29')][_0x76d6('0x9')](_0x76d6('0x40'))[_0x76d6('0x12')],_0x347045=_0x51086b?_0x54d156[_0x76d6('0x34')]:_0x54d156[_0x76d6('0xf')],_0x22194a=_0x2fb2c1[_0x76d6('0x4')](_0x347045);let _0x56821f;if(_0x51086b){const _0x1a42b0=_0x2fb2c1[_0x76d6('0x4')](_0x125db4);if(_0x22194a[_0x76d6('0xe')]<_0x1a42b0[_0x76d6('0xe')])return;_0x56821f=_0x4ff62a[_0x76d6('0x3c')][_0x76d6('0x3')](_0x4ff62a[_0x76d6('0x3c')][_0x76d6('0x10')](_0x1a42b0['getChild'](0x0)),_0x4ff62a[_0x76d6('0x3c')]['createPositionAfter'](_0x22194a['getChild'](_0x22194a['childCount']-0x1)));}else{const _0x477057=_0x2fb2c1[_0x76d6('0x4')](_0x125db4-0x1);if(!_0x477057)return;_0x56821f=_0x4ff62a['model'][_0x76d6('0x3')](_0x4ff62a[_0x76d6('0x3c')][_0x76d6('0x10')](_0x22194a[_0x76d6('0x4')](0x0)),_0x4ff62a[_0x76d6('0x3c')][_0x76d6('0x2a')](_0x477057[_0x76d6('0x4')](_0x477057['childCount']-0x1)));}_0x4ff62a[_0x76d6('0x3c')][_0x76d6('0x37')](()=>{_0x2e9134[_0x76d6('0x1')](_0x56821f,{'commandName':_0x76d6('0x40'),'commandParams':[{'forceValue':_0x51086b}]},[],_0x76d6('0x40'));});}),_0x2e9134['enableCommand'](_0x76d6('0x5'),(_0xf10a24,_0x22b4db)=>{const _0x152680=_0x4ff62a['plugins'][_0x76d6('0x9')](_0x76d6('0x4c')),_0xab113b=_0x152680[_0x76d6('0x0')](_0x4ff62a[_0x76d6('0x3c')]['document'][_0x76d6('0x21')]),_0x3a9ac9=_0x152680[_0x76d6('0x45')](_0xab113b),_0x1a9ca0=_0xab113b[0x0]['findAncestor'](_0x76d6('0x2d')),_0x19d639=_0x1a9ca0[_0x76d6('0x46')](_0x76d6('0x1e'))||0x0,_0x1db909=_0x22b4db&&null!==_0x22b4db[_0x76d6('0x15')]?_0x22b4db[_0x76d6('0x15')]:!_0x4ff62a[_0x76d6('0x29')][_0x76d6('0x9')]('setTableColumnHeader')[_0x76d6('0x12')];let _0x887cd9;const _0x34e428=_0x1a9ca0['getChild'](0x0),_0x442361=_0x1db909?_0x3a9ac9[_0x76d6('0x34')]:_0x3a9ac9[_0x76d6('0xf')],_0x347911=_0x152680[_0x76d6('0x31')](_0x1a9ca0,{'startRow':0x0,'column':_0x442361,'includeAllSlots':!0x1}),_0xca0424=Array[_0x76d6('0x33')](_0x347911)[0x0][_0x76d6('0x22')];if(_0x1db909){const _0x36988d=_0x34e428[_0x76d6('0x4')](_0x19d639);if(_0xca0424[_0x76d6('0x44')](_0x36988d))return;_0x887cd9=_0x4ff62a[_0x76d6('0x3c')]['createRange'](_0x4ff62a[_0x76d6('0x3c')][_0x76d6('0x10')](_0x36988d),_0x4ff62a[_0x76d6('0x3c')][_0x76d6('0x2a')](_0xca0424));}else{const _0x425d62=_0x34e428['getChild'](_0x19d639-0x1);if(!_0x425d62)return;_0x887cd9=_0x4ff62a[_0x76d6('0x3c')][_0x76d6('0x3')](_0x4ff62a['model']['createPositionBefore'](_0xca0424),_0x4ff62a[_0x76d6('0x3c')]['createPositionAfter'](_0x425d62));}_0x4ff62a[_0x76d6('0x3c')][_0x76d6('0x37')](()=>{_0x2e9134[_0x76d6('0x1')](_0x887cd9,{'commandName':_0x76d6('0x5'),'commandParams':[{'forceValue':_0x1db909}]},[],'setTableColumnHeader');});}),_0x4ff62a[_0x76d6('0x2b')][_0x76d6('0x50')]['on']('addMarker:suggestion',_0x1fad40(),{'priority':'highest'}),_0x4ff62a['data'][_0x76d6('0x50')]['on'](_0x76d6('0x4f'),(_0x4316b9,_0x4b41a7,_0x45b9ed)=>{_0x45b9ed[_0x76d6('0x8')][_0x76d6('0x41')]&&_0x1fad40({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4316b9,_0x4b41a7,_0x45b9ed);},{'priority':_0x76d6('0x2c')}),_0x4ff62a[_0x76d6('0x2b')][_0x76d6('0x50')]['on'](_0x76d6('0x2f'),(_0x1d41b5,_0x22df03,_0x2ea4cb)=>{const {type:_0x48316b,id:_0x4b88c5}=_0x2e9134[_0x76d6('0x2e')](_0x22df03[_0x76d6('0x20')]),_0x2701e8=_0x2e9134[_0x76d6('0x7')](_0x4b88c5);if(!_0x2701e8[_0x76d6('0x3b')]||_0x76d6('0x5')!=_0x2701e8[_0x76d6('0x3b')]['commandName'])return;const _0x1a4651=_0x2ea4cb[_0x76d6('0x2')][_0x76d6('0x11')](_0x22df03[_0x76d6('0x20')]);if(_0x1a4651)for(const _0x417df7 of _0x1a4651)_0x2ea4cb['writer'][_0x76d6('0x26')]('ck-suggestion-marker-'+_0x48316b,_0x417df7),_0x2ea4cb[_0x76d6('0x6')]['removeClass'](_0x76d6('0x14'),_0x417df7),_0x2ea4cb['writer'][_0x76d6('0xa')](_0x76d6('0x3a'),_0x417df7),_0x2ea4cb[_0x76d6('0x2')][_0x76d6('0x47')](_0x417df7,_0x22df03[_0x76d6('0x20')]);},{'priority':'highest'}),_0x2e9134['_descriptionFactory']['registerDescriptionCallback'](_0x3be984=>{const {data:_0x11dd13}=_0x3be984;if(_0x11dd13){if(_0x76d6('0x40')==_0x11dd13['commandName']){const _0x3dc608=_0x11dd13[_0x76d6('0x3f')][0x0]['forceValue'];return _0x305a43(_0x3153a5(_0x4e2b00,_0x3dc608?_0x76d6('0x16'):'FORMAT_REGULAR_ROW'));}if(_0x76d6('0x5')==_0x11dd13['commandName']){const _0x39e4b0=_0x11dd13[_0x76d6('0x3f')][0x0][_0x76d6('0x15')];return _0x305a43(_0x3153a5(_0x4e2b00,_0x39e4b0?_0x76d6('0x19'):_0x76d6('0x38')));}}function _0x305a43(_0x244e5f){return{'type':_0x76d6('0x1c'),'content':_0x3153a5(_0x4e2b00,_0x76d6('0x1b'),_0x244e5f)};}});const _0x8fb11e=_0x1f9f74[_0x76d6('0x30')]();_0x2e9134[_0x76d6('0x18')]['registerCustomCallback'](_0x76d6('0x35'),_0x76d6('0x40'),_0x76d6('0xb'),_0x8fb11e),_0x2e9134[_0x76d6('0x18')][_0x76d6('0x24')]('formatBlock',_0x76d6('0x5'),_0x76d6('0xb'),_0x8fb11e);}}
|