@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231018.0 → 0.0.0-nightly-20231020.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25ca=['format','handleListStartCommand','getFirstPosition','handleListReversedCommand','filter','handleDescriptions','change','listReversed','listType','ListPropertiesEditing','config','commandName','from','markMultiRangeBlockFormat','*Format:*\x20set\x20order\x20to\x20regular','startIndex','bind','_descriptionFactory','type','has','model','TrackChangesEditing','element','getSiblingNodes','ELEMENT_','unshift','handleListStyleCommand','map','reversed','selection','forward','_getSuggestionBlocksForListStyle','parent','createPositionAt','getLastPosition','numbered','locale','afterInit','toUpperCase','list.properties','enableCommand','backward','_getTranslationKeyForListStyle','listStyle','length','styles','commandParams','listStart','before','push','plugins','createRange','_LIST_','editor','get','*Change\x20to:*\x20%0','*Format:*\x20set\x20start\x20index\x20to\x20%0','listItem','getAttribute','ListUtils','replace','_getSuggestionBlocks','document'];(function(_0x12874e,_0x25cab2){const _0x29cd6=function(_0x53cdde){while(--_0x53cdde){_0x12874e['push'](_0x12874e['shift']());}};_0x29cd6(++_0x25cab2);}(_0x25ca,0xb1));const _0x29cd=function(_0x12874e,_0x25cab2){_0x12874e=_0x12874e-0x0;let _0x29cd6=_0x25ca[_0x12874e];return _0x29cd6;};import{Plugin as _0x1a499b}from'ckeditor5/src/core';import{getTranslation as _0x37ec14}from'../utils/common-translations';export default class ot extends _0x1a499b{[_0x29cd('0x31')](){if(!this['editor'][_0x29cd('0x3e')][_0x29cd('0x1f')](_0x29cd('0x15')))return;const _0x88d334=this[_0x29cd('0x2')][_0x29cd('0x16')][_0x29cd('0x3')](_0x29cd('0x33')),_0x3bdc67=this['editor'][_0x29cd('0x3e')][_0x29cd('0x3')]('TrackChangesEditing');_0x88d334[_0x29cd('0x39')]&&_0x3bdc67[_0x29cd('0x34')](_0x29cd('0x37'),this[_0x29cd('0x26')][_0x29cd('0x1c')](this)),_0x88d334['reversed']&&_0x3bdc67[_0x29cd('0x34')](_0x29cd('0x13'),this[_0x29cd('0xf')]['bind'](this)),_0x88d334[_0x29cd('0x1b')]&&_0x3bdc67[_0x29cd('0x34')](_0x29cd('0x3b'),this[_0x29cd('0xd')][_0x29cd('0x1c')](this)),_0x3bdc67[_0x29cd('0x1d')]['registerDescriptionCallback'](this[_0x29cd('0x11')]['bind'](this));}[_0x29cd('0x26')](_0x1d9bd2,_0x2ae6ca={}){const _0x3eb13a=this[_0x29cd('0x2')][_0x29cd('0x3e')][_0x29cd('0x3')](_0x29cd('0x21')),_0x3e2eaf=this[_0x29cd('0x2b')]();this[_0x29cd('0x2')][_0x29cd('0x20')][_0x29cd('0x12')](()=>{_0x3eb13a[_0x29cd('0x19')](_0x3e2eaf,{'commandName':_0x29cd('0x37'),'commandParams':[{'type':_0x2ae6ca[_0x29cd('0x1e')]}],'formatGroupId':'listStyle'});});}[_0x29cd('0xf')](_0x395fe6,_0x234a88={}){const _0x37d9d7=this[_0x29cd('0x2')][_0x29cd('0x3e')][_0x29cd('0x3')](_0x29cd('0x21')),_0x534c3a=this[_0x29cd('0xa')](_0x5c82d9=>_0x5c82d9['is'](_0x29cd('0x22'),'listItem')&&'numbered'===_0x5c82d9[_0x29cd('0x7')](_0x29cd('0x14')));if(_0x534c3a[_0x29cd('0x38')]<0x1)return;const _0x53a857=_0x534c3a[_0x29cd('0x27')](_0x592cd7=>this[_0x29cd('0x2')][_0x29cd('0x20')][_0x29cd('0x0')](this[_0x29cd('0x2')]['model']['createPositionAt'](_0x592cd7,_0x29cd('0x3c')),this[_0x29cd('0x2')][_0x29cd('0x20')]['createPositionAt'](_0x592cd7,0x0)));this[_0x29cd('0x2')][_0x29cd('0x20')][_0x29cd('0x12')](()=>{_0x37d9d7[_0x29cd('0x19')](_0x53a857,{'commandName':_0x29cd('0x13'),'commandParams':[{'reversed':_0x234a88[_0x29cd('0x28')]}],'formatGroupId':_0x29cd('0x13')});});}[_0x29cd('0xd')](_0x465f4b,_0x2b2b1d={}){const _0x3f80bd=this[_0x29cd('0x2')][_0x29cd('0x3e')][_0x29cd('0x3')](_0x29cd('0x21')),_0x3a397a=this[_0x29cd('0xa')](_0x536ccc=>_0x536ccc['is']('element',_0x29cd('0x6'))&&_0x29cd('0x2f')===_0x536ccc[_0x29cd('0x7')](_0x29cd('0x14')));if(_0x3a397a[_0x29cd('0x38')]<0x1)return;const _0x348bd4=_0x3a397a[_0x29cd('0x27')](_0xd6f228=>this[_0x29cd('0x2')][_0x29cd('0x20')]['createRange'](this[_0x29cd('0x2')][_0x29cd('0x20')][_0x29cd('0x2d')](_0xd6f228,_0x29cd('0x3c')),this[_0x29cd('0x2')][_0x29cd('0x20')][_0x29cd('0x2d')](_0xd6f228,0x0)));this[_0x29cd('0x2')][_0x29cd('0x20')]['change'](()=>{_0x3f80bd[_0x29cd('0x19')](_0x348bd4,{'commandName':'listStart','commandParams':[{'startIndex':_0x2b2b1d[_0x29cd('0x1b')]}],'formatGroupId':_0x29cd('0x3b')});});}[_0x29cd('0x11')](_0x33288c){const _0x36eeef=this[_0x29cd('0x2')][_0x29cd('0x30')],{data:_0x5464e5}=_0x33288c;if(!_0x5464e5)return;let _0xde805b,_0x3e743d;switch(_0x5464e5[_0x29cd('0x17')]){case'listStyle':_0xde805b=_0x29cd('0x4'),_0x3e743d={'type':'format','content':_0x37ec14(_0x36eeef,_0xde805b,_0x37ec14(_0x36eeef,this[_0x29cd('0x36')](_0x5464e5[_0x29cd('0x3a')][0x0]['type'])))};break;case'listReversed':_0xde805b=_0x5464e5[_0x29cd('0x3a')][0x0][_0x29cd('0x28')]?'*Format:*\x20set\x20order\x20to\x20reversed':_0x29cd('0x1a'),_0x3e743d={'type':_0x29cd('0xc'),'content':_0x37ec14(_0x36eeef,_0xde805b)};break;case _0x29cd('0x3b'):_0xde805b=_0x29cd('0x5'),_0x3e743d={'type':_0x29cd('0xc'),'content':_0x37ec14(_0x36eeef,_0xde805b,_0x5464e5['commandParams'][0x0][_0x29cd('0x1b')])};}return _0x3e743d;}[_0x29cd('0x2b')](){var _0x4e8355,_0x5b0b7a,_0x33f58e,_0x51dc8b;const _0xdb4dbb=this[_0x29cd('0x2')][_0x29cd('0x3e')][_0x29cd('0x3')](_0x29cd('0x8'));let _0x46315c=Array['from'](this[_0x29cd('0x2')][_0x29cd('0x20')]['document'][_0x29cd('0x29')]['getSelectedBlocks']());return(null===(_0x4e8355=_0x46315c[0x0])||void 0x0===_0x4e8355?void 0x0:_0x4e8355['is'](_0x29cd('0x22'),_0x29cd('0x6')))&&_0x46315c[_0x29cd('0x25')](..._0xdb4dbb[_0x29cd('0x23')](this[_0x29cd('0x2')]['model'][_0x29cd('0xb')][_0x29cd('0x29')][_0x29cd('0xe')](),_0x29cd('0x35'))),(null===(_0x5b0b7a=_0x46315c[_0x46315c[_0x29cd('0x38')]-0x1])||void 0x0===_0x5b0b7a?void 0x0:_0x5b0b7a['is'](_0x29cd('0x22'),_0x29cd('0x6')))&&_0x46315c[_0x29cd('0x3d')](..._0xdb4dbb[_0x29cd('0x23')](this[_0x29cd('0x2')][_0x29cd('0x20')][_0x29cd('0xb')][_0x29cd('0x29')][_0x29cd('0x2e')](),_0x29cd('0x2a'))),_0x46315c=[...new Set(_0x46315c)],(null===(_0x51dc8b=null===(_0x33f58e=this[_0x29cd('0x2')][_0x29cd('0x20')]['document'][_0x29cd('0x29')][_0x29cd('0xe')]())||void 0x0===_0x33f58e?void 0x0:_0x33f58e[_0x29cd('0x2c')])||void 0x0===_0x51dc8b?void 0x0:_0x51dc8b['is'](_0x29cd('0x22'),'listItem'))&&(_0x46315c=_0x46315c[_0x29cd('0x10')](_0x3900f0=>_0x3900f0['is'](_0x29cd('0x22'),_0x29cd('0x6')))),_0x46315c;}[_0x29cd('0xa')](_0x17e98b){const _0x3212c6=this['editor'][_0x29cd('0x3e')][_0x29cd('0x3')](_0x29cd('0x8'));let _0x123ea7=Array[_0x29cd('0x18')](this[_0x29cd('0x2')][_0x29cd('0x20')][_0x29cd('0xb')][_0x29cd('0x29')]['getSelectedBlocks']())[_0x29cd('0x10')](_0x17e98b)[_0x29cd('0x27')](_0x54f2b6=>{const _0x479b17=this[_0x29cd('0x2')]['model'][_0x29cd('0x2d')](_0x54f2b6,0x0);return[..._0x3212c6[_0x29cd('0x23')](_0x479b17,_0x29cd('0x35')),..._0x3212c6['getSiblingNodes'](_0x479b17,_0x29cd('0x2a'))];})['flat']();return _0x123ea7=[...new Set(_0x123ea7)],_0x123ea7;}[_0x29cd('0x36')](_0x1bd60b){return _0x29cd('0x24')+this['editor'][_0x29cd('0x3e')][_0x29cd('0x3')]('ListUtils')['getListTypeFromListStyleType'](_0x1bd60b)[_0x29cd('0x32')]()+_0x29cd('0x1')+_0x1bd60b[_0x29cd('0x32')]()[_0x29cd('0x9')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1705=['TrackChangesEditing','createEmptyElement','div','ELEMENT_MEDIA','dataDowncast','downcastDispatcher','editor','mediaEmbed','options','plugins','showSuggestionHighlights','media','high','_descriptionFactory','afterInit','stop','attribute:url:media','has'];(function(_0x21597,_0x170561){const _0x557308=function(_0x27fb9b){while(--_0x27fb9b){_0x21597['push'](_0x21597['shift']());}};_0x557308(++_0x170561);}(_0x1705,0x64));const _0x5573=function(_0x21597,_0x170561){_0x21597=_0x21597-0x0;let _0x557308=_0x1705[_0x21597];return _0x557308;};import{Plugin as _0x4a69b0}from'ckeditor5/src/core';import{getTranslation as _0x554da3}from'../utils/common-translations';export default class rt extends _0x4a69b0{[_0x5573('0x4')](){const _0x5be1d9=this[_0x5573('0xe')];if(!_0x5be1d9[_0x5573('0x11')][_0x5573('0x7')]('MediaEmbedEditing'))return;const _0x590a25=_0x5be1d9[_0x5573('0x11')]['get'](_0x5573('0x8')),_0x1f55a7=_0x5be1d9['locale'];_0x590a25['enableCommand'](_0x5573('0xf')),_0x590a25[_0x5573('0x3')]['registerElementLabel']('media',_0x262381=>_0x554da3(_0x1f55a7,_0x5573('0xb'),_0x262381)),_0x5be1d9['conversion']['for'](_0x5573('0xc'))['elementToElement']({'model':_0x5573('0x1'),'view':(_0x27230c,{writer:_0x56bbfd,options:_0x152473})=>{if(_0x152473[_0x5573('0x0')])return _0x56bbfd[_0x5573('0x9')](_0x5573('0xa'));},'converterPriority':'high'}),_0x5be1d9['data'][_0x5573('0xd')]['on'](_0x5573('0x6'),(_0x5a01b0,_0x50fe59,_0x50e515)=>{_0x50e515[_0x5573('0x10')][_0x5573('0x0')]&&_0x5a01b0[_0x5573('0x5')]();},{'priority':_0x5573('0x2')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x445b=['afterInit','has','TrackChangesEditing','plugins','MentionEditing'];(function(_0x4a91be,_0x445bde){const _0x5524c0=function(_0x1d9f09){while(--_0x1d9f09){_0x4a91be['push'](_0x4a91be['shift']());}};_0x5524c0(++_0x445bde);}(_0x445b,0x19d));const _0x5524=function(_0x4a91be,_0x445bde){_0x4a91be=_0x4a91be-0x0;let _0x5524c0=_0x445b[_0x4a91be];return _0x5524c0;};import{Plugin as _0x4c1e04}from'ckeditor5/src/core';export default class at extends _0x4c1e04{[_0x5524('0x2')](){const _0x3c05f6=this['editor'];_0x3c05f6['plugins'][_0x5524('0x3')](_0x5524('0x1'))&&_0x3c05f6[_0x5524('0x0')]['get'](_0x5524('0x4'))['enableCommand']('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1114=['get','afterInit','_descriptionFactory','ELEMENT_PAGE_BREAK','plugins','TrackChangesEditing','PageBreakEditing','editor','locale','pageBreak','registerElementLabel','has'];(function(_0x4909fc,_0x1114c1){const _0x1b98c7=function(_0x31e0f8){while(--_0x31e0f8){_0x4909fc['push'](_0x4909fc['shift']());}};_0x1b98c7(++_0x1114c1);}(_0x1114,0x197));const _0x1b98=function(_0x4909fc,_0x1114c1){_0x4909fc=_0x4909fc-0x0;let _0x1b98c7=_0x1114[_0x4909fc];return _0x1b98c7;};import{Plugin as _0x2c48e5}from'ckeditor5/src/core';import{getTranslation as _0x5a51c3}from'../utils/common-translations';export default class ct extends _0x2c48e5{[_0x1b98('0x2')](){const _0x418324=this[_0x1b98('0x8')];if(!_0x418324[_0x1b98('0x5')][_0x1b98('0x0')](_0x1b98('0x7')))return;_0x418324[_0x1b98('0x5')][_0x1b98('0x1')](_0x1b98('0x6'))['enableCommand'](_0x1b98('0xa'));const _0x5e9e6e=_0x418324['plugins']['get'](_0x1b98('0x6')),_0x50bc23=_0x418324[_0x1b98('0x9')];_0x5e9e6e[_0x1b98('0x3')][_0x1b98('0xb')](_0x1b98('0xa'),_0x1143ea=>_0x5a51c3(_0x50bc23,_0x1b98('0x4'),_0x1143ea));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x574d=['nodeAfter','paragraph','consumable','registerElementLabel','insertParagraph','isBlock','has','name','insert','includes','format','$text','highest','TrackChangesEditing','data','writer','options','plugins','getFirstRange','downcastDispatcher','checkChild','start','span','ck-suggestion-marker--active','enableCommand','selection','_descriptionFactory','blockName','mapper','getItemLabel','ELEMENT_PARAGRAPH','registerDescriptionCallback','editor','isLimit','document','markerRange','from','type','insertion','getSelectedBlocks','schema','locale','editing','activeMarkers','ck-suggestion-marker-split','addMarker:suggestion:insertion','toViewPosition','end','isTouching','addClass','get','createUIElement','markerName','model','isObject'];(function(_0x61a33e,_0x574da0){const _0x3d5b54=function(_0x23d93d){while(--_0x23d93d){_0x61a33e['push'](_0x61a33e['shift']());}};_0x3d5b54(++_0x574da0);}(_0x574d,0x7d));const _0x3d5b=function(_0x61a33e,_0x574da0){_0x61a33e=_0x61a33e-0x0;let _0x3d5b54=_0x574d[_0x61a33e];return _0x3d5b54;};import{Plugin as _0x5f568c}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2307a4}from'./utils';import{getTranslation as _0x1dcaaf}from'../utils/common-translations';export default class ht extends _0x5f568c{['afterInit'](){const _0x170869=this['editor'];if(!_0x170869[_0x3d5b('0x2')][_0x3d5b('0x2e')]('Paragraph'))return;const _0x3e30b0=_0x170869[_0x3d5b('0x1a')],_0x5d210d=_0x170869[_0x3d5b('0x2')]['get'](_0x3d5b('0x35'));_0x5d210d[_0x3d5b('0xb')][_0x3d5b('0x2b')](_0x3d5b('0x29'),_0x275345=>_0x1dcaaf(_0x3e30b0,_0x3d5b('0xf'),_0x275345)),_0x5d210d[_0x3d5b('0x9')]('paragraph',(_0x185941,_0x2d746c={})=>{const _0x20ae0d=_0x170869[_0x3d5b('0x26')][_0x3d5b('0x13')],_0x31b169=_0x2d746c[_0x3d5b('0xa')]||_0x20ae0d['selection'],_0x58e808=Array[_0x3d5b('0x15')](_0x31b169[_0x3d5b('0x18')]())['filter'](_0x206a0b=>function(_0x19dc4e,_0x4016b3){return _0x4016b3[_0x3d5b('0x5')](_0x19dc4e['parent'],_0x3d5b('0x29'))&&!_0x4016b3[_0x3d5b('0x27')](_0x19dc4e)&&_0x3d5b('0x29')!=_0x19dc4e[_0x3d5b('0x2f')];}(_0x206a0b,this[_0x3d5b('0x11')][_0x3d5b('0x26')][_0x3d5b('0x19')]));_0x170869[_0x3d5b('0x26')]['change'](()=>{for(const _0x3401d7 of _0x58e808)_0x5d210d['markBlockFormat'](_0x3401d7,{'commandName':_0x3d5b('0x29'),'commandParams':[],'formatGroupId':_0x3d5b('0xc')},_0x2307a4(_0x3401d7));});}),_0x5d210d[_0x3d5b('0xb')]['registerDescriptionCallback'](_0x4386b=>{const {data:_0x2adc90}=_0x4386b;if(_0x2adc90&&_0x3d5b('0x29')==_0x2adc90['commandName'])return{'type':_0x3d5b('0x32'),'content':_0x1dcaaf(_0x3e30b0,'*Change\x20to:*\x20%0',_0x1dcaaf(_0x3e30b0,_0x3d5b('0xf')))};}),_0x5d210d['enableCommand'](_0x3d5b('0x2c')),_0x170869[_0x3d5b('0x1b')][_0x3d5b('0x4')]['on'](_0x3d5b('0x1e'),ar(_0x170869),{'priority':_0x3d5b('0x34')}),_0x170869[_0x3d5b('0x36')][_0x3d5b('0x4')]['on'](_0x3d5b('0x1e'),(_0x433d66,_0x5f06c1,_0x25f867)=>{_0x25f867[_0x3d5b('0x1')]['showSuggestionHighlights']&&ar(_0x170869,{'showActiveMarker':!0x1})(_0x433d66,_0x5f06c1,_0x25f867);},{'priority':'highest'});const _0x513b9f=_0x5d210d[_0x3d5b('0xb')];_0x513b9f[_0x3d5b('0x10')](_0x2ea014=>{if(_0x3d5b('0x17')!==_0x2ea014[_0x3d5b('0x16')])return;const {start:_0x1c8f71,end:_0x421306}=_0x2ea014[_0x3d5b('0x3')]();if(!_0x1c8f71[_0x3d5b('0x21')](_0x421306)||!_0x1c8f71['nodeAfter'])return;const _0xf77339=_0x170869['model'][_0x3d5b('0x19')],_0x104039=_0x1c8f71[_0x3d5b('0x28')];return _0xf77339[_0x3d5b('0x2d')](_0x104039)&&!_0xf77339[_0x3d5b('0x12')](_0x104039)&&_0xf77339['checkChild'](_0x104039,_0x3d5b('0x33'))?{'type':_0x3d5b('0x17'),'content':_0x1dcaaf(_0x3e30b0,'*Insert:*\x20%0',_0x513b9f[_0x3d5b('0xe')](_0x104039,0x1))}:void 0x0;});}}function ar(_0x5e26ec,{showActiveMarker:_0x2b9cec=!0x0}={}){return(_0x4b5a66,_0x11ea32,_0x164da4)=>{const _0x43815d=_0x5e26ec[_0x3d5b('0x2')][_0x3d5b('0x23')](_0x3d5b('0x35')),_0x29753f=_0x11ea32[_0x3d5b('0x14')][_0x3d5b('0x6')],_0x2d7be3=_0x11ea32[_0x3d5b('0x14')][_0x3d5b('0x20')],_0x1f2297=_0x5e26ec[_0x3d5b('0x26')][_0x3d5b('0x19')];if(!_0x29753f[_0x3d5b('0x21')](_0x2d7be3)||!_0x29753f['nodeAfter'])return;const _0x4f5d76=_0x29753f[_0x3d5b('0x28')];if(_0x1f2297['isBlock'](_0x4f5d76)&&!_0x1f2297[_0x3d5b('0x12')](_0x4f5d76)&&_0x1f2297[_0x3d5b('0x5')](_0x4f5d76,_0x3d5b('0x33'))){if(!_0x164da4[_0x3d5b('0x2a')]['consume'](_0x11ea32[_0x3d5b('0x14')],_0x4b5a66['name']))return;const _0x10344a=_0x164da4[_0x3d5b('0x0')][_0x3d5b('0x24')](_0x3d5b('0x7'),{'class':_0x3d5b('0x1d')}),_0x5b6d17=_0x164da4[_0x3d5b('0xd')][_0x3d5b('0x1f')](_0x2d7be3);_0x2b9cec&&_0x43815d[_0x3d5b('0x1c')][_0x3d5b('0x31')](_0x11ea32[_0x3d5b('0x25')])&&_0x164da4['writer'][_0x3d5b('0x22')](_0x3d5b('0x8'),_0x10344a),_0x164da4[_0x3d5b('0x0')][_0x3d5b('0x30')](_0x5b6d17,_0x10344a),_0x164da4[_0x3d5b('0xd')]['bindElementToMarker'](_0x10344a,_0x11ea32[_0x3d5b('0x25')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2254=['schema','isCollapsed','markInlineFormat','TrackChangesEditing','model','editor','getAttributes','getRanges','*Remove\x20all\x20formatting*','removeFormat','getAttributeProperties','RemoveFormatEditing','commandName','selection','format','document','from','_descriptionFactory','getItems','plugins','get','registerDescriptionCallback','createRangeOn'];(function(_0xbc4034,_0x2254d9){const _0x1bad75=function(_0x25eedc){while(--_0x25eedc){_0xbc4034['push'](_0xbc4034['shift']());}};_0x1bad75(++_0x2254d9);}(_0x2254,0x95));const _0x1bad=function(_0xbc4034,_0x2254d9){_0xbc4034=_0xbc4034-0x0;let _0x1bad75=_0x2254[_0xbc4034];return _0x1bad75;};import{Plugin as _0x3d1095}from'ckeditor5/src/core';import{getTranslation as _0x47fb58}from'../utils/common-translations';export default class ut extends _0x3d1095{['afterInit'](){const _0x184c17=this[_0x1bad('0x11')];if(!_0x184c17[_0x1bad('0x8')]['has'](_0x1bad('0x0')))return;const _0x5d7c05=_0x184c17[_0x1bad('0x8')][_0x1bad('0x9')](_0x1bad('0xf'));_0x5d7c05['enableCommand'](_0x1bad('0x15'),_0x3743eb=>{const _0x47efad=_0x184c17[_0x1bad('0x10')][_0x1bad('0x4')][_0x1bad('0x2')];_0x47efad[_0x1bad('0xd')]?_0x3743eb():_0x184c17[_0x1bad('0x10')]['change'](()=>{const _0x131232=Array[_0x1bad('0x5')](_0x47efad[_0x1bad('0x13')]());for(const _0x2f67c9 of _0x131232)for(const _0x5b5e60 of _0x2f67c9[_0x1bad('0x7')]())mo(_0x5b5e60,_0x184c17['model'][_0x1bad('0xc')])&&_0x5d7c05[_0x1bad('0xe')](_0x184c17[_0x1bad('0x10')][_0x1bad('0xb')](_0x5b5e60),{'commandName':'removeFormat','commandParams':[]});});}),_0x5d7c05[_0x1bad('0x6')][_0x1bad('0xa')](_0x10101b=>{const {data:_0x13cdb5}=_0x10101b;if(_0x13cdb5&&_0x1bad('0x15')==_0x13cdb5[_0x1bad('0x1')])return{'type':_0x1bad('0x3'),'content':_0x47fb58(_0x184c17['locale'],_0x1bad('0x14'))};});}}function mo(_0x857250,_0xbc1dd5){for(const [_0x483ba9]of _0x857250[_0x1bad('0x12')]()){const _0x306b41=_0xbc1dd5[_0x1bad('0x16')](_0x483ba9);if(_0x306b41&&_0x306b41['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd094=['acceptSuggestion','acceptSelectedSuggestions','goToPreviousRestrictedEditingException','RestrictedEditingModeEditing','editor','get','enableCommand','TrackChangesEditing','discardAllSuggestions','afterInit','discardSuggestion','plugins','has'];(function(_0x3232f4,_0xd094c8){const _0x17fc4c=function(_0x54a17a){while(--_0x54a17a){_0x3232f4['push'](_0x3232f4['shift']());}};_0x17fc4c(++_0xd094c8);}(_0xd094,0x137));const _0x17fc=function(_0x3232f4,_0xd094c8){_0x3232f4=_0x3232f4-0x0;let _0x17fc4c=_0xd094[_0x3232f4];return _0x17fc4c;};import{Plugin as _0x1965d8}from'ckeditor5/src/core';export default class ft extends _0x1965d8{[_0x17fc('0xa')](){const _0x3a0c85=this[_0x17fc('0x5')];if(!_0x3a0c85[_0x17fc('0xc')][_0x17fc('0x0')]('RestrictedEditingModeEditing'))return;const _0x4b0e91=_0x3a0c85[_0x17fc('0xc')][_0x17fc('0x6')](_0x17fc('0x8'));_0x4b0e91[_0x17fc('0x7')](_0x17fc('0x3')),_0x4b0e91[_0x17fc('0x7')]('goToNextRestrictedEditingException');const _0x20b8f9=_0x3a0c85[_0x17fc('0xc')]['get'](_0x17fc('0x4'));_0x20b8f9[_0x17fc('0x7')]('trackChanges'),_0x20b8f9['enableCommand'](_0x17fc('0x1')),_0x20b8f9[_0x17fc('0x7')](_0x17fc('0xb')),_0x20b8f9[_0x17fc('0x7')]('acceptAllSuggestions'),_0x20b8f9[_0x17fc('0x7')](_0x17fc('0x9')),_0x20b8f9['enableCommand'](_0x17fc('0x2')),_0x20b8f9[_0x17fc('0x7')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18a4=['shiftEnter','name','ck-suggestion-marker--active','ck-suggestion-marker-','locale','model','plugins','enableCommand','addMarker:suggestion:deletion','high','_descriptionFactory','consumable','markerRange','TrackChangesEditing','downcastDispatcher','mapper','activeMarkers','options','includes','get','editing','registerElementLabel','bindElementToMarker','markerName','test','addMarker:suggestion:insertion','data','element','split','insert','addMarker:suggestion','createUIElement','merge','requires','softBreak','writer','init'];(function(_0x1ebe00,_0x18a4ed){const _0x34e277=function(_0xd2bea3){while(--_0xd2bea3){_0x1ebe00['push'](_0x1ebe00['shift']());}};_0x34e277(++_0x18a4ed);}(_0x18a4,0xe5));const _0x34e2=function(_0x1ebe00,_0x18a4ed){_0x1ebe00=_0x1ebe00-0x0;let _0x34e277=_0x18a4[_0x1ebe00];return _0x34e277;};import{Plugin as _0x33467f}from'ckeditor5/src/core';import{ShiftEnter as _0x6ebbff}from'ckeditor5/src/enter';import{getTranslation as _0x1c69f8}from'../utils/common-translations';export default class lt extends _0x33467f{static get[_0x34e2('0x1a')](){return[_0x6ebbff];}[_0x34e2('0x1d')](){const _0x5bf616=this['editor'],_0x29fa40=_0x5bf616[_0x34e2('0x24')][_0x34e2('0xc')](_0x34e2('0x6'));_0x29fa40[_0x34e2('0x0')](_0x34e2('0x1e')),_0x5bf616[_0x34e2('0xd')][_0x34e2('0x7')]['on'](_0x34e2('0x12'),re(_0x5bf616),{'priority':_0x34e2('0x2')}),_0x5bf616[_0x34e2('0xd')][_0x34e2('0x7')]['on'](_0x34e2('0x1'),re(_0x5bf616),{'priority':_0x34e2('0x2')}),_0x5bf616[_0x34e2('0x13')][_0x34e2('0x7')]['on'](_0x34e2('0x17'),(_0x20eff0,_0x17fde9,_0x58ed54)=>{_0x58ed54[_0x34e2('0xa')]['showSuggestionHighlights']&&re(_0x5bf616,{'showActiveMarker':!0x1})(_0x20eff0,_0x17fde9,_0x58ed54);}),_0x29fa40[_0x34e2('0x3')][_0x34e2('0xe')]('softBreak',_0x214b7e=>_0x1c69f8(_0x5bf616[_0x34e2('0x22')],'ELEMENT_LINE_BREAK',_0x214b7e));}}function re(_0x31b3fa,{showActiveMarker:_0x2e77e9=!0x0}={}){return(_0x913f66,_0x592631,_0x24fe14)=>{const _0x989ba5=_0x31b3fa['plugins'][_0x34e2('0xc')](_0x34e2('0x6'));if(!_0x24fe14[_0x34e2('0x4')][_0x34e2('0x11')](_0x592631[_0x34e2('0x5')],_0x913f66[_0x34e2('0x1f')]))return;const _0x74e6fb=_0x31b3fa[_0x34e2('0x23')];for(const _0x1d3585 of _0x592631['markerRange']['getItems']()){if(!_0x1d3585['is'](_0x34e2('0x14'),_0x34e2('0x1b')))continue;const _0x3cb2ba='deletion'==_0x592631[_0x34e2('0x10')][_0x34e2('0x15')](':')[0x1]?_0x34e2('0x19'):_0x34e2('0x15'),_0xb95471=_0x24fe14[_0x34e2('0x1c')][_0x34e2('0x18')]('span',{'class':_0x34e2('0x21')+_0x3cb2ba}),_0x1becfb=_0x24fe14['mapper']['toViewPosition'](_0x74e6fb['createPositionBefore'](_0x1d3585));_0x2e77e9&&_0x989ba5[_0x34e2('0x9')][_0x34e2('0xb')](_0x592631[_0x34e2('0x10')])&&_0x24fe14[_0x34e2('0x1c')]['addClass'](_0x34e2('0x20'),_0xb95471),_0x24fe14['writer'][_0x34e2('0x16')](_0x1becfb,_0xb95471),_0x24fe14[_0x34e2('0x8')][_0x34e2('0xf')](_0xb95471,_0x592631[_0x34e2('0x10')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e86=['format','document','locale','TrackChangesEditing','restrictedEditingException','enableCommand','value','afterInit','isCollapsed','from','_descriptionFactory','change','model','plugins','StandardEditingModeEditing','get','registerDescriptionCallback','commands','getRanges','selection','markInlineFormat','has','forceValue'];(function(_0x44757f,_0x4e868c){const _0x4c98ff=function(_0x71eb90){while(--_0x71eb90){_0x44757f['push'](_0x44757f['shift']());}};_0x4c98ff(++_0x4e868c);}(_0x4e86,0x183));const _0x4c98=function(_0x44757f,_0x4e868c){_0x44757f=_0x44757f-0x0;let _0x4c98ff=_0x4e86[_0x44757f];return _0x4c98ff;};import{Plugin as _0x191f1a}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x129112}from'./utils';import{getTranslation as _0x135510}from'../utils/common-translations';export default class gt extends _0x191f1a{[_0x4c98('0xb')](){const _0x2be730=this['editor'],_0x61335c=_0x2be730[_0x4c98('0x10')],_0xdbc624=_0x2be730[_0x4c98('0x6')];if(!_0x2be730[_0x4c98('0x11')][_0x4c98('0x2')](_0x4c98('0x12')))return;const _0x1dacfd=_0x2be730[_0x4c98('0x11')][_0x4c98('0x13')](_0x4c98('0x7')),_0x56469e=_0x4c98('0x8'),_0x58ba73=_0x2be730[_0x4c98('0x15')][_0x4c98('0x13')](_0x56469e);_0x1dacfd[_0x4c98('0x9')](_0x56469e,(_0x78115d,_0x3946ff={})=>{const _0x56e180=_0x61335c[_0x4c98('0x5')][_0x4c98('0x0')];if(_0x56e180[_0x4c98('0xc')])return void _0x78115d(_0x3946ff);const _0x40bc09=void 0x0!==_0x3946ff['forceValue']?_0x3946ff[_0x4c98('0x3')]:!_0x58ba73[_0x4c98('0xa')];_0x61335c[_0x4c98('0xf')](()=>{const _0x13b88f=Array[_0x4c98('0xd')](_0x56e180[_0x4c98('0x16')]());for(const _0x5d413c of _0x13b88f){const _0x3cc5bb=_0x40bc09?[_0x5d413c]:_0x129112(_0x56469e,_0x5d413c,_0x61335c);for(const _0x1e7641 of _0x3cc5bb)_0x1dacfd[_0x4c98('0x1')](_0x1e7641,{'commandName':_0x56469e,'commandParams':[{'forceValue':_0x40bc09}]});}});}),_0x1dacfd[_0x4c98('0xe')][_0x4c98('0x14')](_0x5a9fdb=>{const {data:_0x18085b}=_0x5a9fdb;if(_0x18085b&&_0x18085b['commandName']==_0x56469e)return _0x18085b['commandParams'][0x0][_0x4c98('0x3')]?{'type':_0x4c98('0x4'),'content':_0x135510(_0xdbc624,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x4c98('0x4'),'content':_0x135510(_0xdbc624,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1aa1=['change','modelElements','getSelectedBlocks','includes','markBlockFormat','style.definitions','normalizeConfig','*Remove\x20format:*\x20%0','find','StyleUtils','locale','getDefinitionsForView','editor','_getRangesWithClasses','styleName','from','inline','registerDescriptionCallback','model','_getStyleDefinition','style','push','getAncestors','*Format:*\x20%0','selection','commandParams','style:','createRangeOn','TrackChangesEditing','Style','commandName','getRanges','plugins','toLowerCase','config','classes','enabledStyles','get','enableCommand','name','afterInit','isCollapsed','document'];(function(_0x535566,_0x1aa17d){const _0x547eaf=function(_0x533c85){while(--_0x533c85){_0x535566['push'](_0x535566['shift']());}};_0x547eaf(++_0x1aa17d);}(_0x1aa1,0x1c2));const _0x547e=function(_0x535566,_0x1aa17d){_0x535566=_0x535566-0x0;let _0x547eaf=_0x1aa1[_0x535566];return _0x547eaf;};import{Plugin as _0x4b00d9}from'ckeditor5/src/core';import{getTranslation as _0x392978}from'../utils/common-translations';export default class mt extends _0x4b00d9{[_0x547e('0x14')](){const _0x27ca57=this[_0x547e('0x23')];if(!_0x27ca57[_0x547e('0xc')]['has'](_0x547e('0x9')))return;const _0x293520=_0x27ca57['commands'][_0x547e('0x11')](_0x547e('0x0')),_0x54813b=_0x27ca57[_0x547e('0xc')][_0x547e('0x11')](_0x547e('0x8')),_0x481bad=_0x27ca57[_0x547e('0x21')],_0x12ee6a=_0x27ca57['plugins']['get']('DataSchema'),_0x42edd0=_0x27ca57[_0x547e('0xc')][_0x547e('0x11')](_0x547e('0x20'))[_0x547e('0x1d')](_0x12ee6a,_0x27ca57[_0x547e('0xe')][_0x547e('0x11')](_0x547e('0x1c')));_0x54813b[_0x547e('0x12')](_0x547e('0x0'),(_0x5106d5,{styleName:_0x48e552})=>{const _0x2166a4=_0x27ca57[_0x547e('0x29')][_0x547e('0x16')][_0x547e('0x4')],_0xe5fef4=this[_0x547e('0x2a')](_0x48e552,_0x42edd0);if(!_0xe5fef4)return;if(!_0x293520[_0x547e('0x10')][_0x547e('0x1a')](_0x48e552))return;if(_0x2166a4[_0x547e('0x15')]&&!_0xe5fef4['isBlock'])return void _0x5106d5({'styleName':_0x48e552});const _0x24dee1=!_0x293520['value'][_0x547e('0x1a')](_0xe5fef4['name']);if(_0xe5fef4['isBlock']){const _0xf024=function(_0x2e2319,_0x58eb45){const _0x5442a1=new Set();for(const _0x436aa1 of _0x2e2319){const _0x3a9345=_0x436aa1[_0x547e('0x2')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x49eaef of _0x3a9345)if(_0x58eb45['includes'](_0x49eaef[_0x547e('0x13')])){_0x5442a1['add'](_0x49eaef);break;}}return _0x5442a1;}(_0x2166a4[_0x547e('0x19')](),_0xe5fef4[_0x547e('0x18')]);_0x27ca57['model'][_0x547e('0x17')](()=>{for(const _0x461699 of _0xf024)_0x54813b[_0x547e('0x1b')](_0x461699,{'commandName':_0x547e('0x0'),'commandParams':[{'styleName':_0x48e552,'forceValue':_0x24dee1}],'formatGroupId':_0x547e('0x6')+_0x48e552});});}else{let _0x401774=Array[_0x547e('0x26')](_0x2166a4[_0x547e('0xb')]());if(!_0x24dee1){const _0xdf807c=Array['from'](_0x12ee6a[_0x547e('0x22')](_0xe5fef4['element'],!0x1))[0x0][_0x547e('0x29')],_0x3aa3bd=[];for(const _0x25fcab of _0x401774){const _0x1b3f42=this[_0x547e('0x24')](_0x27ca57['model'],_0x25fcab,_0xe5fef4[_0x547e('0xf')],_0xdf807c);_0x3aa3bd[_0x547e('0x1')](..._0x1b3f42);}_0x401774=_0x3aa3bd;}_0x27ca57[_0x547e('0x29')][_0x547e('0x17')](()=>{for(const _0x44b5f8 of _0x401774)_0x54813b['markInlineFormat'](_0x44b5f8,{'commandName':_0x547e('0x0'),'commandParams':[{'styleName':_0x48e552,'forceValue':_0x24dee1}]});});}}),_0x54813b['_descriptionFactory'][_0x547e('0x28')](_0x1ac5f4=>{const {data:_0x2edd69}=_0x1ac5f4;if(_0x2edd69&&_0x547e('0x0')===_0x2edd69[_0x547e('0xa')])return _0x2edd69['commandParams'][0x0]['forceValue']?{'type':'format','content':_0x392978(_0x481bad,_0x547e('0x3'),_0x2edd69[_0x547e('0x5')][0x0][_0x547e('0x25')][_0x547e('0xd')]())}:{'type':'format','content':_0x392978(_0x481bad,_0x547e('0x1e'),_0x2edd69['commandParams'][0x0][_0x547e('0x25')][_0x547e('0xd')]())};});}[_0x547e('0x2a')](_0x1cdb81,_0x1c7e0c){let _0x2e87af=_0x1c7e0c['block']['find'](_0x30faf3=>_0x30faf3[_0x547e('0x13')]===_0x1cdb81);return _0x2e87af||(_0x2e87af=_0x1c7e0c[_0x547e('0x27')][_0x547e('0x1f')](_0x128dca=>_0x128dca['name']===_0x1cdb81)),_0x2e87af;}['_getRangesWithClasses'](_0x3c2f86,_0xb1f931,_0x3a24fa,_0x246ee2){const _0x4eace5=[];for(const _0x5007d0 of _0xb1f931['getItems']()){const _0x23effc=_0x5007d0['getAttribute'](_0x246ee2);_0x23effc&&(_0x3a24fa['every'](_0xb823c5=>_0x23effc[_0x547e('0xf')][_0x547e('0x1a')](_0xb823c5))&&_0x4eace5[_0x547e('0x1')](_0x3c2f86[_0x547e('0x7')](_0x5007d0)));}return _0x4eace5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x359f=['push','map','markMultiRangeInsertion','insertTableRowAbove','colspan','get','ELEMENT_TABLE_COLUMN_WITH_TEXT','writer','downcastDispatcher','element','registerDescriptionCallback','add','insertTableColumnLeft','accept','ELEMENT_TABLE_ROW','discard','minRow','has','span','removeTableColumn','cell','createRangeOn','$graveyard','getAttribute','first','length','ELEMENT_TABLE_ROW_WITH_TEXT','document','mapper','tableCell','getCellLocation','isInContent','last','findAncestor','name','TableUtils','root','isEqual','filter','getRowIndexes','nodeAfter','from','getRanges','_tableSuggestions','suggestion','some','join','commands','selection','*Remove:*\x20%0','*Insert:*\x20%0','rootName','setSelection','isArray','position','table','data','editor','insert','change:data','values','min','_descriptionFactory','getChanges','insertTableRowBelow','enableCommand','ELEMENT_TABLE_WITH_TEXT','_getCoordsForCells','type','_splitMarkerName','getFirstRange','getChildren','minColumn','getColumnIndexes','$textProxy','hasAttribute','batch','_acceptFormatSuggestionCallbackFactory','plugins','insertion','_tablePostFixingSubtypes','getSelectionAffectedTableCells','createTableWalker','toLowerCase','differ','fromRange','tablePaste','order','item','afterInit','enqueueChange','tableColumn','_suggestionFactory','toViewElement','insertTableColumnRight','deletion','addClass','registerElementLabel','TrackChangesEditing','above','refresh','substr','ELEMENT_TABLE_COLUMN','startsWith','createPositionAt','execute','every','subType','tableRow','removeTableRow','isTouching','maxRow','_setupColumnsRowsFixing','removeClass','low','registerPostFixer','start','getItems','end','max','getChangedMarkers','ELEMENT_TABLE','forceValue','rowspan','addRange','MIN_SAFE_INTEGER','model','registerCustomCallback','change','_getSuggestionCoords','detach','markMultiRangeDeletion','MAX_SAFE_INTEGER','isIntersectingWithRange','selectTableColumn','insertTable','addMarker:suggestion','locale'];(function(_0x45b540,_0x359f06){const _0x1710f2=function(_0x1a3bc6){while(--_0x1a3bc6){_0x45b540['push'](_0x45b540['shift']());}};_0x1710f2(++_0x359f06);}(_0x359f,0x189));const _0x1710=function(_0x45b540,_0x359f06){_0x45b540=_0x45b540-0x0;let _0x1710f2=_0x359f[_0x45b540];return _0x1710f2;};import{Plugin as _0x42e900}from'ckeditor5/src/core';import{LiveRange as _0x55e96b}from'ckeditor5/src/engine';import{setHighlightHandling as _0x32c9a1}from'ckeditor5/src/widget';import{getTranslation as _0x470002}from'../utils/common-translations';export default class dt extends _0x42e900{constructor(_0x34b54f){super(_0x34b54f),this[_0x1710('0x65')]=[_0x1710('0x81'),'tableColumn'],this[_0x1710('0x40')]=new Set();}[_0x1710('0x6e')](){const _0x429a44=this['editor'],_0xbb53a7=_0x429a44[_0x1710('0x9')][_0x1710('0x30')]['selection'];if(!_0x429a44[_0x1710('0x63')][_0x1710('0x26')]('TableEditing'))return;const _0xa533de=_0x429a44[_0x1710('0x14')],_0x2b94db=_0x429a44['plugins'][_0x1710('0x1a')](_0x1710('0x77')),_0x4440d3=_0x429a44[_0x1710('0x63')][_0x1710('0x1a')](_0x1710('0x38'));_0x2b94db['_descriptionFactory'][_0x1710('0x76')](_0x1710('0x4c'),_0x595f9c=>_0x470002(_0xa533de,_0x1710('0x4'),_0x595f9c)),this[_0x1710('0x85')](),_0x2b94db[_0x1710('0x56')](_0x1710('0x12')),_0x2b94db[_0x1710('0x56')]('selectTableRow'),_0x2b94db[_0x1710('0x56')](_0x1710('0x11'));for(const _0x38fd7e of[_0x1710('0x18'),_0x1710('0x55')]){const _0x4bff8a=_0x429a44[_0x1710('0x44')]['get'](_0x38fd7e);_0x2b94db[_0x1710('0x56')](_0x38fd7e,_0x5cc943=>{_0x429a44[_0x1710('0x9')][_0x1710('0xb')](_0x12969d=>{_0x5cc943();const _0x520b87=_0x1710('0x78')===_0x4bff8a[_0x1710('0x6c')],_0x195578=_0x4440d3[_0x1710('0x66')](_0xbb53a7),_0x27a8f8=_0x4440d3[_0x1710('0x3c')](_0x195578),_0x1687b4=_0x520b87?_0x27a8f8[_0x1710('0x2d')]-0x1:_0x27a8f8['last']+0x1,_0x31e55f=_0x195578[0x0][_0x1710('0x36')](_0x1710('0x4c')),_0x1a7a61=_0x4440d3[_0x1710('0x67')](_0x31e55f,{'startRow':_0x1687b4,'endRow':_0x1687b4}),_0x2ab84e=Array['from'](_0x1a7a61)[_0x1710('0x16')](_0x44cfbf=>_0x12969d[_0x1710('0x2a')](_0x44cfbf[_0x1710('0x29')]));_0x2b94db[_0x1710('0x17')](_0x2ab84e,'tableRow');});});}for(const _0x1168bc of[_0x1710('0x21'),_0x1710('0x73')]){const _0x55f09e=_0x429a44[_0x1710('0x44')][_0x1710('0x1a')](_0x1168bc);_0x2b94db[_0x1710('0x56')](_0x1168bc,_0xce1dd4=>{_0x429a44[_0x1710('0x9')][_0x1710('0xb')](_0x1f2247=>{_0xce1dd4();const _0x544c25='left'===_0x55f09e[_0x1710('0x6c')],_0x39d7bc=_0x4440d3['getSelectionAffectedTableCells'](_0xbb53a7),_0x565cd5=_0x4440d3[_0x1710('0x5e')](_0x39d7bc),_0x451134=_0x544c25?_0x565cd5[_0x1710('0x2d')]-0x1:_0x565cd5[_0x1710('0x35')]+0x1,_0x316f6f=_0x39d7bc[0x0]['findAncestor'](_0x1710('0x4c')),_0x55c0c0=_0x4440d3['createTableWalker'](_0x316f6f,{'startRow':0x0,'column':_0x451134,'includeAllSlots':!0x1}),_0x36707a=Array[_0x1710('0x3e')](_0x55c0c0)[_0x1710('0x16')](_0x8cf5fc=>_0x1f2247[_0x1710('0x2a')](_0x8cf5fc[_0x1710('0x29')]));_0x2b94db[_0x1710('0x17')](_0x36707a,_0x1710('0x70'));});});}for(const _0x132b07 of['removeTableRow',_0x1710('0x28')]){const _0x456dd3=_0x132b07[_0x1710('0x7a')](0xb),_0x4653b8=_0x456dd3[_0x1710('0x68')](),_0x157809=_0x4653b8[_0x1710('0x7a')](0x0,0x3)+_0x1710('0x27'),_0x2ff64e=_0x1710('0x4c')+_0x456dd3,_0x35e2e1='min'+_0x456dd3,_0x12d9c9=_0x1710('0x2')+_0x456dd3;_0x2b94db[_0x1710('0x56')](_0x132b07,()=>{_0x429a44[_0x1710('0x9')][_0x1710('0xb')](_0x21ed43=>{const _0x5b26b2=_0x4440d3['getSelectionAffectedTableCells'](_0xbb53a7),_0x1b6bbf=_0x5b26b2[0x0]['findAncestor'](_0x1710('0x4c'));let _0x1c5bda;if(_0x1710('0x82')==_0x132b07){const _0x1aba0b=_0x4440d3[_0x1710('0x3c')](_0x5b26b2);_0x1c5bda={'startRow':_0x1aba0b[_0x1710('0x2d')],'endRow':_0x1aba0b['last'],'includeAllSlots':!0x0};}else{const _0x196ff3=_0x4440d3['getColumnIndexes'](_0x5b26b2);_0x1c5bda={'startColumn':_0x196ff3[_0x1710('0x2d')],'endColumn':_0x196ff3['last'],'includeAllSlots':!0x0};}const _0x4f11ce=_0x4440d3[_0x1710('0x67')](_0x1b6bbf,_0x1c5bda),_0x234069=Array[_0x1710('0x3e')](_0x4f11ce)[_0x1710('0x16')](({cell:_0x54b7ee})=>_0x54b7ee),_0x9f11af=se(_0x234069[_0x1710('0x3b')](_0x1ebfc5=>_0x1ebfc5[_0x1710('0x60')](_0x157809))),_0x162159=se(_0x234069[_0x1710('0x3b')](_0x27ebbf=>!_0x27ebbf['hasAttribute'](_0x157809)))[_0x1710('0x16')](_0x288164=>_0x21ed43[_0x1710('0x2a')](_0x288164)),_0x377d81=_0x2b94db[_0x1710('0xe')](_0x162159,_0x2ff64e);if(_0x377d81&&('tableRow'==_0x377d81[_0x1710('0x80')]||'tableColumn'==_0x377d81[_0x1710('0x80')])){const _0x41d44f=this['_getSuggestionCoords'](_0x377d81);for(const _0x2ccb2f of _0x9f11af){const _0x3fe706=_0x21ed43['createRangeOn'](_0x2ccb2f),_0x22e5e5=_0x4440d3[_0x1710('0x33')](_0x2ccb2f),_0x4d0580=_0x2ccb2f[_0x1710('0x2c')](_0x157809)-0x1,_0x2758bc=_0x41d44f[_0x35e2e1],_0x1ec184=_0x41d44f[_0x12d9c9];_0x2758bc<=_0x22e5e5[_0x4653b8]&&_0x22e5e5[_0x4653b8]+_0x4d0580<=_0x1ec184&&_0x377d81[_0x1710('0x7')](_0x3fe706);}}});});}function _0x5a6cb5(_0x2c3f91){const _0x533931=Array['from'](_0xbb53a7[_0x1710('0x3f')]())[_0x1710('0x16')](_0xae36fd=>_0x55e96b['fromRange'](_0xae36fd));_0x429a44['model']['change'](_0x1f8168=>{const _0x28d0b5=_0x1f8168[_0x1710('0x61')];_0x2c3f91=_0x2c3f91['filter'](_0xb7de98=>_0x1710('0x2b')!=_0xb7de98[_0x1710('0x39')]['rootName']),_0x1f8168[_0x1710('0x49')](_0x2c3f91),_0x429a44[_0x1710('0x44')][_0x1710('0x1a')](_0x1710('0x82'))[_0x1710('0x79')](),_0x429a44[_0x1710('0x7e')](_0x1710('0x82'),{'forceDefaultExecution':!0x0}),_0x429a44[_0x1710('0x9')][_0x1710('0x6f')](()=>{_0x429a44[_0x1710('0x9')][_0x1710('0x6f')](_0x28d0b5,_0x242a7e=>{const _0x5af33e=_0x533931['filter'](_0x5b74f0=>_0x1710('0x2b')!=_0x5b74f0[_0x1710('0x39')][_0x1710('0x48')]);_0x5af33e[_0x1710('0x2e')]>0x0&&_0x242a7e[_0x1710('0x49')](_0x5af33e);for(const _0x12500c of _0x533931)_0x12500c[_0x1710('0xd')]();});});});}function _0x1be025(_0x220deb){_0x429a44[_0x1710('0x9')][_0x1710('0xb')](_0x5daf54=>{const _0x55f931=Array['from'](_0xbb53a7[_0x1710('0x3f')]())[_0x1710('0x16')](_0x3d2de5=>_0x55e96b[_0x1710('0x6a')](_0x3d2de5)),_0x3fc3ef=[];for(const _0xf0e0f5 of _0x220deb)for(const _0x4d54a9 of _0xf0e0f5[_0x1710('0x0')]({'shallow':!0x0}))_0x3fc3ef['push'](_0x4d54a9);for(const _0x5c4923 of _0x3fc3ef)_0x1710('0x2b')!=_0x5c4923[_0x1710('0x39')][_0x1710('0x48')]&&(_0x5daf54[_0x1710('0x49')](_0x5daf54[_0x1710('0x7d')](_0x5c4923,0x0)),_0x429a44['commands'][_0x1710('0x1a')](_0x1710('0x28'))[_0x1710('0x79')](),_0x429a44['execute'](_0x1710('0x28'),{'forceDefaultExecution':!0x0}));const _0x40f5c9=_0x55f931[_0x1710('0x3b')](_0x2075d5=>'$graveyard'!=_0x2075d5['root'][_0x1710('0x48')]);_0x40f5c9[_0x1710('0x2e')]>0x0&&_0x5daf54[_0x1710('0x49')](_0x40f5c9);for(const _0x4a1893 of _0x55f931)_0x4a1893[_0x1710('0xd')]();});}function _0x85d58f(_0x278fe8,_0x18d57e){return _0x18d57e[_0x1710('0x7f')](_0x477d8b=>_0x278fe8[_0x1710('0x42')](_0x2de8df=>_0x2de8df[_0x1710('0x1')][_0x1710('0x3a')](_0x477d8b['start'])||_0x477d8b[_0x1710('0x1')][_0x1710('0x3a')](_0x2de8df[_0x1710('0x89')])));}function _0x407160(_0x15ec24,_0xc61bfe){return _0x15ec24[_0x1710('0x42')](_0x5cc0d8=>_0xc61bfe[_0x1710('0x42')](_0x13bef9=>_0x5cc0d8[_0x1710('0x1')][_0x1710('0x83')](_0x13bef9['start'])));}_0x429a44['data'][_0x1710('0x1d')]['on'](_0x1710('0x13'),(_0x65f089,_0x5c7675,_0x9342d3)=>{if(!_0x9342d3['options']['showSuggestionHighlights'])return;const _0x45435f=_0x5c7675[_0x1710('0x6d')];if(!_0x45435f)return;const _0x5a4c38=_0x9342d3[_0x1710('0x31')][_0x1710('0x72')](_0x45435f);function _0x5ed3fd(_0x16bb96){return Array[_0x1710('0x4a')](_0x16bb96)?_0x16bb96:[_0x16bb96];}_0x5a4c38&&'tableCell'===_0x45435f[_0x1710('0x37')]&&_0x32c9a1(_0x5a4c38,_0x9342d3[_0x1710('0x1c')],(_0x49dfe2,_0x5ead97,_0x2ae482)=>_0x2ae482[_0x1710('0x75')](_0x5ed3fd(_0x5ead97['classes']),_0x49dfe2),(_0x38e497,_0x2377aa,_0x2271ea)=>_0x2271ea[_0x1710('0x86')](_0x5ed3fd(_0x2377aa['classes']),_0x38e497));},{'priority':'highest'}),_0x2b94db[_0x1710('0x53')][_0x1710('0x1f')](_0x3da2cc=>{if(_0x1710('0x64')!=_0x3da2cc[_0x1710('0x59')]&&_0x1710('0x74')!=_0x3da2cc[_0x1710('0x59')])return;const _0x5d7595=_0x3da2cc['getContainedElement']();if(null!=_0x5d7595&&_0x5d7595['is'](_0x1710('0x1e'),_0x1710('0x4c'))){if(_0x1710('0x64')==_0x3da2cc[_0x1710('0x59')]){const _0x1fa00a=_0x3da2cc[_0x1710('0x0')]()[_0x1710('0x3b')](_0x409d05=>_0x409d05['is'](_0x1710('0x5f')))[_0x1710('0x16')](_0x39103f=>_0x39103f[_0x1710('0x4d')]);if(_0x1fa00a['length'])return{'type':_0x1710('0x64'),'content':_0x470002(_0xa533de,_0x1710('0x47'),_0x470002(_0xa533de,_0x1710('0x57'),'\x22'+_0x1fa00a[_0x1710('0x43')]('\x20')+'\x22'))};}if(_0x1710('0x74')==_0x3da2cc[_0x1710('0x59')]){const _0x34e96a=_0x3da2cc[_0x1710('0x0')]()[_0x1710('0x3b')](_0x31c352=>_0x31c352['is']('$textProxy'))[_0x1710('0x16')](_0x21a781=>_0x21a781[_0x1710('0x4d')]);if(_0x34e96a[_0x1710('0x2e')])return{'type':_0x1710('0x74'),'content':_0x470002(_0xa533de,_0x1710('0x46'),_0x470002(_0xa533de,_0x1710('0x57'),'\x22'+_0x34e96a[_0x1710('0x43')]('\x20')+'\x22'))};}}}),_0x2b94db['_descriptionFactory']['registerDescriptionCallback'](_0x371739=>{if('tableRow'==_0x371739['subType']){const _0x315150=_0x371739[_0x1710('0x0')]()[_0x1710('0x3b')](_0x541eb4=>_0x541eb4['is'](_0x1710('0x5f')))[_0x1710('0x16')](_0x17b935=>_0x17b935[_0x1710('0x4d')]),_0x451002=this[_0x1710('0xc')](_0x371739),_0x2a0ca2=_0x451002[_0x1710('0x84')]-_0x451002[_0x1710('0x25')]+0x1;if(_0x1710('0x64')==_0x371739[_0x1710('0x59')])return _0x315150[_0x1710('0x2e')]?{'type':_0x1710('0x64'),'content':_0x470002(_0xa533de,_0x1710('0x47'),_0x470002(_0xa533de,_0x1710('0x2f'),[_0x2a0ca2,'\x22'+_0x315150[_0x1710('0x43')]('\x20')+'\x22']))}:{'type':_0x1710('0x64'),'content':_0x470002(_0xa533de,_0x1710('0x47'),_0x470002(_0xa533de,_0x1710('0x23'),_0x2a0ca2))};if('deletion'==_0x371739[_0x1710('0x59')])return _0x315150['length']?{'type':_0x1710('0x74'),'content':_0x470002(_0xa533de,_0x1710('0x46'),_0x470002(_0xa533de,_0x1710('0x2f'),[_0x2a0ca2,'\x22'+_0x315150['join']('\x20')+'\x22']))}:{'type':_0x1710('0x74'),'content':_0x470002(_0xa533de,_0x1710('0x46'),_0x470002(_0xa533de,_0x1710('0x23'),_0x2a0ca2))};}if(_0x1710('0x70')==_0x371739[_0x1710('0x80')]){const _0x38fb75=_0x371739[_0x1710('0x0')]()[_0x1710('0x3b')](_0x2173ca=>_0x2173ca['is'](_0x1710('0x5f')))[_0x1710('0x16')](_0x4d186b=>_0x4d186b['data']),_0x3077f3=this[_0x1710('0xc')](_0x371739),_0x5bc6c0=_0x3077f3['maxColumn']-_0x3077f3[_0x1710('0x5d')]+0x1;if(_0x1710('0x64')==_0x371739[_0x1710('0x59')])return _0x38fb75[_0x1710('0x2e')]?{'type':_0x1710('0x64'),'content':_0x470002(_0xa533de,_0x1710('0x47'),_0x470002(_0xa533de,_0x1710('0x1b'),[_0x5bc6c0,'\x22'+_0x38fb75[_0x1710('0x43')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x470002(_0xa533de,_0x1710('0x47'),_0x470002(_0xa533de,_0x1710('0x7b'),_0x5bc6c0))};if(_0x1710('0x74')==_0x371739['type'])return _0x38fb75['length']?{'type':_0x1710('0x74'),'content':_0x470002(_0xa533de,_0x1710('0x46'),_0x470002(_0xa533de,_0x1710('0x1b'),[_0x5bc6c0,'\x22'+_0x38fb75[_0x1710('0x43')]('\x20')+'\x22']))}:{'type':_0x1710('0x74'),'content':_0x470002(_0xa533de,'*Remove:*\x20%0',_0x470002(_0xa533de,'ELEMENT_TABLE_COLUMN',_0x5bc6c0))};}}),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x64'),_0x1710('0x81'),_0x1710('0x24'),_0x5a6cb5),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x74'),_0x1710('0x81'),'accept',_0x5a6cb5),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x64'),_0x1710('0x70'),_0x1710('0x24'),_0x1be025),_0x2b94db['_suggestionFactory']['registerCustomCallback'](_0x1710('0x74'),_0x1710('0x70'),_0x1710('0x22'),_0x1be025),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x64'),_0x1710('0x70'),'join',_0x85d58f),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x74'),_0x1710('0x70'),_0x1710('0x43'),_0x85d58f),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x64'),_0x1710('0x81'),_0x1710('0x43'),_0x407160),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x74'),_0x1710('0x81'),_0x1710('0x43'),_0x407160);}[_0x1710('0x62')](){const _0x2c7d0f=this['editor'],_0x1e78b1=_0x2c7d0f[_0x1710('0x9')][_0x1710('0x30')][_0x1710('0x45')];return(_0x129a44,_0x5a7dc0)=>{_0x2c7d0f[_0x1710('0x9')][_0x1710('0xb')](_0x3bfdb7=>{const {commandName:_0x10f960,commandParams:_0x2b0fc9}=_0x5a7dc0;let _0x5ebd75=_0x129a44[0x0][_0x1710('0x1')]['nodeBefore'];_0x2b0fc9&&_0x2b0fc9[0x0]&&!0x1===_0x2b0fc9[0x0][_0x1710('0x5')]&&(_0x5ebd75=_0x129a44[0x0][_0x1710('0x89')][_0x1710('0x3d')]);const _0x56114f=_0x3bfdb7['createRangeIn'](_0x5ebd75);if(_0x1710('0x2b')==_0x56114f[_0x1710('0x39')][_0x1710('0x48')])return;const _0x2dd549=Array[_0x1710('0x3e')](_0x1e78b1[_0x1710('0x3f')]())[_0x1710('0x16')](_0x54d5b9=>_0x55e96b['fromRange'](_0x54d5b9));_0x3bfdb7['setSelection'](_0x56114f),_0x2c7d0f['commands'][_0x1710('0x1a')](_0x10f960)[_0x1710('0x79')](),_0x2b0fc9[_0x1710('0x15')]({'forceDefaultExecution':!0x0}),_0x2c7d0f['execute'](_0x10f960,..._0x2b0fc9);const _0x2629db=_0x2dd549['filter'](_0x397ebc=>_0x1710('0x2b')!=_0x397ebc[_0x1710('0x39')][_0x1710('0x48')]);_0x2629db[_0x1710('0x2e')]>0x0&&_0x3bfdb7[_0x1710('0x49')](_0x2629db);for(const _0x94e529 of _0x2dd549)_0x94e529['detach']();});};}[_0x1710('0x58')](_0x29dcd6){const _0x5dd053=this['editor'][_0x1710('0x63')][_0x1710('0x1a')](_0x1710('0x38'));let _0x51fcc4=Number[_0x1710('0xf')],_0x67427c=Number['MIN_SAFE_INTEGER'],_0x14bd4a=Number[_0x1710('0xf')],_0x1d2225=Number[_0x1710('0x8')];for(const _0x4cfc26 of _0x29dcd6){if(_0x1710('0x2b')==_0x4cfc26['root'][_0x1710('0x48')])continue;const {row:_0x3e25f9,column:_0x42d743}=_0x5dd053[_0x1710('0x33')](_0x4cfc26),_0x590b56=_0x4cfc26[_0x1710('0x60')]('rowspan')?_0x4cfc26['getAttribute'](_0x1710('0x6'))-0x1:0x0,_0x53a501=_0x4cfc26[_0x1710('0x60')](_0x1710('0x19'))?_0x4cfc26[_0x1710('0x2c')](_0x1710('0x19'))-0x1:0x0;_0x51fcc4=_0x3e25f9<_0x51fcc4?_0x3e25f9:_0x51fcc4,_0x67427c=_0x3e25f9+_0x590b56>_0x67427c?_0x3e25f9+_0x590b56:_0x67427c,_0x14bd4a=_0x42d743<_0x14bd4a?_0x42d743:_0x14bd4a,_0x1d2225=_0x42d743+_0x53a501>_0x1d2225?_0x42d743+_0x53a501:_0x1d2225;}return{'minRow':_0x51fcc4,'maxRow':_0x67427c,'minColumn':_0x14bd4a,'maxColumn':_0x1d2225};}[_0x1710('0x85')](){const _0x4f7c86=this[_0x1710('0x4e')],_0x116a3f=_0x4f7c86['plugins'][_0x1710('0x1a')]('TrackChangesEditing'),_0x2873a5=_0x4f7c86['plugins'][_0x1710('0x1a')](_0x1710('0x38'));_0x4f7c86[_0x1710('0x9')][_0x1710('0x30')]['on'](_0x1710('0x50'),()=>{const _0xa18260=Array[_0x1710('0x3e')](_0x4f7c86['model'][_0x1710('0x30')]['differ'][_0x1710('0x3')]());for(const {name:_0x3f394f,data:_0x5c3f57}of _0xa18260){const {group:_0x306850,id:_0x4d30f7,subType:_0x51d1f0}=_0x116a3f[_0x1710('0x5a')](_0x3f394f);if(_0x1710('0x41')!=_0x306850)continue;if(null!=_0x5c3f57['oldRange'])continue;const _0x8c677b=_0x116a3f['getSuggestion'](_0x4d30f7);this[_0x1710('0x65')]['includes'](_0x51d1f0)&&this[_0x1710('0x40')][_0x1710('0x20')](_0x8c677b);}},{'priority':_0x1710('0x87')});const _0x49c0a6=(_0x20110e,_0x45b9c2)=>{let _0x3c53ff=!0x1;const _0x17d9f3=_0x45b9c2[_0x1710('0x2a')](_0x20110e),_0x371030=_0x20110e[_0x1710('0x36')](_0x1710('0x4c')),_0x5199a2=_0x2873a5[_0x1710('0x33')](_0x20110e);for(const _0xd5fcc8 of this[_0x1710('0x40')]){const _0x1416c0=_0xd5fcc8['subType'],_0x105b9c=_0x1416c0[_0x1710('0x7c')](_0x1710('0x6b')),_0x1a7e4e=_0x1416c0[_0x1710('0x7a')](_0x105b9c?0xa:0x5),_0x1f6ffb=_0x1a7e4e[_0x1710('0x68')](),_0x822f62=_0x1f6ffb['substr'](0x0,0x3)+_0x1710('0x27'),_0x21ce48=_0x1710('0x52')+_0x1a7e4e,_0x44e4bf='max'+_0x1a7e4e;if(!_0xd5fcc8[_0x1710('0x34')])continue;if(_0x371030!=_0xd5fcc8[_0x1710('0x5b')]()[_0x1710('0x89')][_0x1710('0x36')](_0x1710('0x4c')))continue;if(_0xd5fcc8[_0x1710('0x10')](_0x17d9f3))continue;const _0x4cc739=_0x20110e[_0x1710('0x60')](_0x822f62)?_0x20110e['getAttribute'](_0x822f62)-0x1:0x0,_0x1ffd16=this[_0x1710('0xc')](_0xd5fcc8),_0x1b232e=_0x1ffd16[_0x21ce48],_0x4ca1fd=_0x1ffd16[_0x44e4bf];_0x1b232e<=_0x5199a2[_0x1f6ffb]&&_0x5199a2[_0x1f6ffb]+_0x4cc739<=_0x4ca1fd&&(_0xd5fcc8['addRange'](_0x17d9f3),_0x3c53ff=!0x0);}return _0x3c53ff;};_0x4f7c86[_0x1710('0x9')][_0x1710('0x30')][_0x1710('0x88')](_0x3e6e36=>{let _0x33194c=!0x1;for(const _0x16927a of _0x4f7c86[_0x1710('0x9')][_0x1710('0x30')][_0x1710('0x69')][_0x1710('0x54')]())if(_0x1710('0x4f')==_0x16927a[_0x1710('0x59')]){if(_0x1710('0x81')==_0x16927a[_0x1710('0x37')])for(const _0x2c9b26 of _0x16927a['position'][_0x1710('0x3d')][_0x1710('0x5c')]())_0x33194c=_0x33194c||_0x49c0a6(_0x2c9b26,_0x3e6e36);else _0x1710('0x32')==_0x16927a[_0x1710('0x37')]&&(_0x33194c=_0x33194c||_0x49c0a6(_0x16927a[_0x1710('0x4b')][_0x1710('0x3d')],_0x3e6e36));}return _0x33194c;});}[_0x1710('0xc')](_0xf3d876){return this['_getCoordsForCells'](_0xf3d876[_0x1710('0x3f')]()[_0x1710('0x16')](_0x4051a0=>_0x4051a0[_0x1710('0x89')]['nodeAfter']));}}function se(_0x51f46b){return Array[_0x1710('0x3e')](new Set(_0x51f46b)[_0x1710('0x51')]());}
|
|
23
|
+
const _0x4c85=['*Insert:*\x20%0','model','toViewElement','insertTable','change','suggestion','*Remove:*\x20%0','_tableSuggestions','locale','root','createTableWalker','getRowIndexes','element','selectTableColumn','span','ELEMENT_TABLE','cell','isTouching','getChildren','subType','discard','mapper','getSelectionAffectedTableCells','getContainedElement','classes','findAncestor','_suggestionFactory','_splitMarkerName','ELEMENT_TABLE_COLUMN','join','has','highest','enqueueChange','registerElementLabel','MIN_SAFE_INTEGER','colspan','getItems','addClass','differ','maxColumn','insertion','markMultiRangeInsertion','minColumn','addRange','TableUtils','getCellLocation','forceValue','getSuggestion','registerCustomCallback','length','document','push','tableRow','get','_setupColumnsRowsFixing','getChangedMarkers','isEqual','rowspan','_getCoordsForCells','some','maxRow','end','selectTableRow','plugins','ELEMENT_TABLE_ROW','_getSuggestionCoords','fromRange','hasAttribute','$graveyard','above','markMultiRangeDeletion','registerDescriptionCallback','type','getAttribute','oldRange','ELEMENT_TABLE_COLUMN_WITH_TEXT','setSelection','last','selection','_tablePostFixingSubtypes','nodeAfter','ELEMENT_TABLE_WITH_TEXT','max','insert','position','ELEMENT_TABLE_ROW_WITH_TEXT','start','map','data','getRanges','detach','insertTableRowAbove','table','writer','createRangeOn','enableCommand','minRow','$textProxy','from','removeTableRow','rootName','_descriptionFactory','order','name','tablePaste','addMarker:suggestion','add','removeClass','tableCell','getColumnIndexes','nodeBefore','tableColumn','getFirstRange','removeTableColumn','refresh','TrackChangesEditing','options','first','downcastDispatcher','substr','TableEditing','_acceptFormatSuggestionCallbackFactory','afterInit','execute','deletion','startsWith','editor','commands','filter','insertTableRowBelow','min','batch','toLowerCase'];(function(_0x463223,_0x4c85cc){const _0x4187e1=function(_0x54fe95){while(--_0x54fe95){_0x463223['push'](_0x463223['shift']());}};_0x4187e1(++_0x4c85cc);}(_0x4c85,0x18b));const _0x4187=function(_0x463223,_0x4c85cc){_0x463223=_0x463223-0x0;let _0x4187e1=_0x4c85[_0x463223];return _0x4187e1;};import{Plugin as _0x17e6dd}from'ckeditor5/src/core';import{LiveRange as _0x5dbb76}from'ckeditor5/src/engine';import{setHighlightHandling as _0x675bc1}from'ckeditor5/src/widget';import{getTranslation as _0x22e587}from'../utils/common-translations';export default class dt extends _0x17e6dd{constructor(_0x29da4b){super(_0x29da4b),this[_0x4187('0x53')]=[_0x4187('0x38'),_0x4187('0x73')],this[_0x4187('0xb')]=new Set();}[_0x4187('0x7e')](){const _0x538ac6=this[_0x4187('0x82')],_0x2ff22f=_0x538ac6[_0x4187('0x5')]['document'][_0x4187('0x52')];if(!_0x538ac6['plugins'][_0x4187('0x22')](_0x4187('0x7c')))return;const _0x4a2753=_0x538ac6[_0x4187('0xc')],_0x5cf251=_0x538ac6[_0x4187('0x43')]['get'](_0x4187('0x77')),_0x39cf7a=_0x538ac6[_0x4187('0x43')][_0x4187('0x39')](_0x4187('0x30'));_0x5cf251[_0x4187('0x69')][_0x4187('0x25')](_0x4187('0x60'),_0x3d1cef=>_0x22e587(_0x4a2753,_0x4187('0x13'),_0x3d1cef)),this[_0x4187('0x3a')](),_0x5cf251[_0x4187('0x63')](_0x4187('0x7')),_0x5cf251['enableCommand'](_0x4187('0x42')),_0x5cf251[_0x4187('0x63')](_0x4187('0x11'));for(const _0xe85c3a of[_0x4187('0x5f'),_0x4187('0x0')]){const _0xe33bbe=_0x538ac6[_0x4187('0x83')][_0x4187('0x39')](_0xe85c3a);_0x5cf251[_0x4187('0x63')](_0xe85c3a,_0x30d6f7=>{_0x538ac6[_0x4187('0x5')][_0x4187('0x8')](_0x3a1cd2=>{_0x30d6f7();const _0x15b487=_0x4187('0x49')===_0xe33bbe[_0x4187('0x6a')],_0x4b29e2=_0x39cf7a[_0x4187('0x1a')](_0x2ff22f),_0x3e89ae=_0x39cf7a[_0x4187('0xf')](_0x4b29e2),_0x22b699=_0x15b487?_0x3e89ae['first']-0x1:_0x3e89ae['last']+0x1,_0x30821f=_0x4b29e2[0x0][_0x4187('0x1d')](_0x4187('0x60')),_0x196181=_0x39cf7a['createTableWalker'](_0x30821f,{'startRow':_0x22b699,'endRow':_0x22b699}),_0x1dbf6c=Array[_0x4187('0x66')](_0x196181)[_0x4187('0x5b')](_0x48588d=>_0x3a1cd2[_0x4187('0x62')](_0x48588d[_0x4187('0x14')]));_0x5cf251['markMultiRangeInsertion'](_0x1dbf6c,'tableRow');});});}for(const _0x5952d2 of['insertTableColumnLeft','insertTableColumnRight']){const _0x256cde=_0x538ac6['commands'][_0x4187('0x39')](_0x5952d2);_0x5cf251[_0x4187('0x63')](_0x5952d2,_0x46c762=>{_0x538ac6[_0x4187('0x5')][_0x4187('0x8')](_0x885121=>{_0x46c762();const _0x2b84eb='left'===_0x256cde[_0x4187('0x6a')],_0x45d227=_0x39cf7a[_0x4187('0x1a')](_0x2ff22f),_0x25903b=_0x39cf7a['getColumnIndexes'](_0x45d227),_0x43c395=_0x2b84eb?_0x25903b['first']-0x1:_0x25903b[_0x4187('0x51')]+0x1,_0x594d0b=_0x45d227[0x0][_0x4187('0x1d')](_0x4187('0x60')),_0x972b17=_0x39cf7a[_0x4187('0xe')](_0x594d0b,{'startRow':0x0,'column':_0x43c395,'includeAllSlots':!0x1}),_0x2a7f01=Array[_0x4187('0x66')](_0x972b17)[_0x4187('0x5b')](_0x9f2cc2=>_0x885121[_0x4187('0x62')](_0x9f2cc2['cell']));_0x5cf251[_0x4187('0x2d')](_0x2a7f01,_0x4187('0x73'));});});}for(const _0xd2d029 of[_0x4187('0x67'),_0x4187('0x75')]){const _0x34946a=_0xd2d029['substr'](0xb),_0x4fa703=_0x34946a[_0x4187('0x3')](),_0x532590=_0x4fa703[_0x4187('0x7b')](0x0,0x3)+_0x4187('0x12'),_0x5ec803=_0x4187('0x60')+_0x34946a,_0x549a77=_0x4187('0x1')+_0x34946a,_0x3605fe='max'+_0x34946a;_0x5cf251[_0x4187('0x63')](_0xd2d029,()=>{_0x538ac6[_0x4187('0x5')]['change'](_0x5719c8=>{const _0x4423a9=_0x39cf7a[_0x4187('0x1a')](_0x2ff22f),_0x512442=_0x4423a9[0x0]['findAncestor'](_0x4187('0x60'));let _0x437a92;if(_0x4187('0x67')==_0xd2d029){const _0x1af7a6=_0x39cf7a[_0x4187('0xf')](_0x4423a9);_0x437a92={'startRow':_0x1af7a6[_0x4187('0x79')],'endRow':_0x1af7a6[_0x4187('0x51')],'includeAllSlots':!0x0};}else{const _0x5d1a2e=_0x39cf7a[_0x4187('0x71')](_0x4423a9);_0x437a92={'startColumn':_0x5d1a2e[_0x4187('0x79')],'endColumn':_0x5d1a2e['last'],'includeAllSlots':!0x0};}const _0x2b051e=_0x39cf7a[_0x4187('0xe')](_0x512442,_0x437a92),_0x14ac28=Array[_0x4187('0x66')](_0x2b051e)[_0x4187('0x5b')](({cell:_0x33dbc4})=>_0x33dbc4),_0x35659b=se(_0x14ac28[_0x4187('0x84')](_0x540475=>_0x540475[_0x4187('0x47')](_0x532590))),_0x5d34d9=se(_0x14ac28['filter'](_0x52dccb=>!_0x52dccb[_0x4187('0x47')](_0x532590)))[_0x4187('0x5b')](_0x43bd9a=>_0x5719c8[_0x4187('0x62')](_0x43bd9a)),_0x4aab6a=_0x5cf251[_0x4187('0x4a')](_0x5d34d9,_0x5ec803);if(_0x4aab6a&&(_0x4187('0x38')==_0x4aab6a[_0x4187('0x17')]||'tableColumn'==_0x4aab6a[_0x4187('0x17')])){const _0x208d48=this[_0x4187('0x45')](_0x4aab6a);for(const _0x351bd4 of _0x35659b){const _0x235e56=_0x5719c8[_0x4187('0x62')](_0x351bd4),_0x4053b0=_0x39cf7a[_0x4187('0x31')](_0x351bd4),_0x1cbf2a=_0x351bd4[_0x4187('0x4d')](_0x532590)-0x1,_0x1a7ba6=_0x208d48[_0x549a77],_0x182679=_0x208d48[_0x3605fe];_0x1a7ba6<=_0x4053b0[_0x4fa703]&&_0x4053b0[_0x4fa703]+_0x1cbf2a<=_0x182679&&_0x4aab6a[_0x4187('0x2f')](_0x235e56);}}});});}function _0x392761(_0x3903bb){const _0x56b697=Array[_0x4187('0x66')](_0x2ff22f[_0x4187('0x5d')]())[_0x4187('0x5b')](_0x3209ab=>_0x5dbb76[_0x4187('0x46')](_0x3209ab));_0x538ac6[_0x4187('0x5')][_0x4187('0x8')](_0x5c780e=>{const _0x5000f8=_0x5c780e[_0x4187('0x2')];_0x3903bb=_0x3903bb[_0x4187('0x84')](_0x5bb1c3=>'$graveyard'!=_0x5bb1c3[_0x4187('0xd')][_0x4187('0x68')]),_0x5c780e[_0x4187('0x50')](_0x3903bb),_0x538ac6[_0x4187('0x83')][_0x4187('0x39')](_0x4187('0x67'))[_0x4187('0x76')](),_0x538ac6['execute'](_0x4187('0x67'),{'forceDefaultExecution':!0x0}),_0x538ac6['model'][_0x4187('0x24')](()=>{_0x538ac6[_0x4187('0x5')][_0x4187('0x24')](_0x5000f8,_0x22051c=>{const _0x2daa30=_0x56b697[_0x4187('0x84')](_0x5f4d79=>_0x4187('0x48')!=_0x5f4d79['root']['rootName']);_0x2daa30['length']>0x0&&_0x22051c[_0x4187('0x50')](_0x2daa30);for(const _0x4dfbfb of _0x56b697)_0x4dfbfb['detach']();});});});}function _0xe09a23(_0x4dfb73){_0x538ac6[_0x4187('0x5')][_0x4187('0x8')](_0x4c573a=>{const _0x2036de=Array[_0x4187('0x66')](_0x2ff22f[_0x4187('0x5d')]())[_0x4187('0x5b')](_0x3afca4=>_0x5dbb76['fromRange'](_0x3afca4)),_0x3df131=[];for(const _0x5968d8 of _0x4dfb73)for(const _0x2258ec of _0x5968d8['getItems']({'shallow':!0x0}))_0x3df131[_0x4187('0x37')](_0x2258ec);for(const _0xb352ac of _0x3df131)'$graveyard'!=_0xb352ac[_0x4187('0xd')][_0x4187('0x68')]&&(_0x4c573a[_0x4187('0x50')](_0x4c573a['createPositionAt'](_0xb352ac,0x0)),_0x538ac6['commands'][_0x4187('0x39')]('removeTableColumn')[_0x4187('0x76')](),_0x538ac6['execute'](_0x4187('0x75'),{'forceDefaultExecution':!0x0}));const _0x1b8054=_0x2036de['filter'](_0x28bb37=>'$graveyard'!=_0x28bb37['root'][_0x4187('0x68')]);_0x1b8054[_0x4187('0x35')]>0x0&&_0x4c573a[_0x4187('0x50')](_0x1b8054);for(const _0x35cf0e of _0x2036de)_0x35cf0e[_0x4187('0x5e')]();});}function _0x39d682(_0x137022,_0x2a7e20){return _0x2a7e20['every'](_0x32222d=>_0x137022[_0x4187('0x3f')](_0x5375ce=>_0x5375ce[_0x4187('0x41')][_0x4187('0x3c')](_0x32222d[_0x4187('0x5a')])||_0x32222d[_0x4187('0x41')][_0x4187('0x3c')](_0x5375ce['start'])));}function _0x2d6b8b(_0x5109fe,_0x16316b){return _0x5109fe[_0x4187('0x3f')](_0x448ef7=>_0x16316b['some'](_0x2c8c3e=>_0x448ef7[_0x4187('0x41')][_0x4187('0x15')](_0x2c8c3e[_0x4187('0x5a')])));}_0x538ac6[_0x4187('0x5c')][_0x4187('0x7a')]['on'](_0x4187('0x6d'),(_0x1228b6,_0x5d3cbe,_0x255ea1)=>{if(!_0x255ea1[_0x4187('0x78')]['showSuggestionHighlights'])return;const _0x45da7e=_0x5d3cbe['item'];if(!_0x45da7e)return;const _0x1b021f=_0x255ea1[_0x4187('0x19')][_0x4187('0x6')](_0x45da7e);function _0x2829a6(_0x4e5c20){return Array['isArray'](_0x4e5c20)?_0x4e5c20:[_0x4e5c20];}_0x1b021f&&_0x4187('0x70')===_0x45da7e[_0x4187('0x6b')]&&_0x675bc1(_0x1b021f,_0x255ea1[_0x4187('0x61')],(_0x28c63d,_0x1c8331,_0x139c2f)=>_0x139c2f[_0x4187('0x29')](_0x2829a6(_0x1c8331[_0x4187('0x1c')]),_0x28c63d),(_0x37451e,_0x12067e,_0x21c823)=>_0x21c823[_0x4187('0x6f')](_0x2829a6(_0x12067e[_0x4187('0x1c')]),_0x37451e));},{'priority':_0x4187('0x23')}),_0x5cf251[_0x4187('0x69')][_0x4187('0x4b')](_0x11f68e=>{if('insertion'!=_0x11f68e[_0x4187('0x4c')]&&_0x4187('0x80')!=_0x11f68e[_0x4187('0x4c')])return;const _0x57417b=_0x11f68e[_0x4187('0x1b')]();if(null!=_0x57417b&&_0x57417b['is'](_0x4187('0x10'),_0x4187('0x60'))){if(_0x4187('0x2c')==_0x11f68e[_0x4187('0x4c')]){const _0xd271af=_0x11f68e['getItems']()[_0x4187('0x84')](_0x7bae73=>_0x7bae73['is'](_0x4187('0x65')))[_0x4187('0x5b')](_0x4c332e=>_0x4c332e[_0x4187('0x5c')]);if(_0xd271af['length'])return{'type':_0x4187('0x2c'),'content':_0x22e587(_0x4a2753,'*Insert:*\x20%0',_0x22e587(_0x4a2753,_0x4187('0x55'),'\x22'+_0xd271af['join']('\x20')+'\x22'))};}if('deletion'==_0x11f68e[_0x4187('0x4c')]){const _0x4afc5b=_0x11f68e['getItems']()[_0x4187('0x84')](_0x5d203c=>_0x5d203c['is'](_0x4187('0x65')))[_0x4187('0x5b')](_0x931c31=>_0x931c31[_0x4187('0x5c')]);if(_0x4afc5b['length'])return{'type':_0x4187('0x80'),'content':_0x22e587(_0x4a2753,_0x4187('0xa'),_0x22e587(_0x4a2753,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4afc5b[_0x4187('0x21')]('\x20')+'\x22'))};}}}),_0x5cf251['_descriptionFactory'][_0x4187('0x4b')](_0x85ed19=>{if(_0x4187('0x38')==_0x85ed19[_0x4187('0x17')]){const _0x5e3ab2=_0x85ed19['getItems']()[_0x4187('0x84')](_0x387d9d=>_0x387d9d['is'](_0x4187('0x65')))[_0x4187('0x5b')](_0x39e3cc=>_0x39e3cc[_0x4187('0x5c')]),_0xb14e86=this[_0x4187('0x45')](_0x85ed19),_0x2df61f=_0xb14e86[_0x4187('0x40')]-_0xb14e86[_0x4187('0x64')]+0x1;if('insertion'==_0x85ed19[_0x4187('0x4c')])return _0x5e3ab2[_0x4187('0x35')]?{'type':_0x4187('0x2c'),'content':_0x22e587(_0x4a2753,_0x4187('0x4'),_0x22e587(_0x4a2753,_0x4187('0x59'),[_0x2df61f,'\x22'+_0x5e3ab2['join']('\x20')+'\x22']))}:{'type':_0x4187('0x2c'),'content':_0x22e587(_0x4a2753,_0x4187('0x4'),_0x22e587(_0x4a2753,_0x4187('0x44'),_0x2df61f))};if(_0x4187('0x80')==_0x85ed19[_0x4187('0x4c')])return _0x5e3ab2[_0x4187('0x35')]?{'type':'deletion','content':_0x22e587(_0x4a2753,_0x4187('0xa'),_0x22e587(_0x4a2753,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2df61f,'\x22'+_0x5e3ab2[_0x4187('0x21')]('\x20')+'\x22']))}:{'type':_0x4187('0x80'),'content':_0x22e587(_0x4a2753,_0x4187('0xa'),_0x22e587(_0x4a2753,_0x4187('0x44'),_0x2df61f))};}if('tableColumn'==_0x85ed19[_0x4187('0x17')]){const _0x1aeb8c=_0x85ed19[_0x4187('0x28')]()[_0x4187('0x84')](_0x27065e=>_0x27065e['is']('$textProxy'))['map'](_0x293815=>_0x293815['data']),_0x42b344=this[_0x4187('0x45')](_0x85ed19),_0x13d7f4=_0x42b344[_0x4187('0x2b')]-_0x42b344[_0x4187('0x2e')]+0x1;if(_0x4187('0x2c')==_0x85ed19[_0x4187('0x4c')])return _0x1aeb8c[_0x4187('0x35')]?{'type':_0x4187('0x2c'),'content':_0x22e587(_0x4a2753,'*Insert:*\x20%0',_0x22e587(_0x4a2753,_0x4187('0x4f'),[_0x13d7f4,'\x22'+_0x1aeb8c[_0x4187('0x21')]('\x20')+'\x22']))}:{'type':_0x4187('0x2c'),'content':_0x22e587(_0x4a2753,_0x4187('0x4'),_0x22e587(_0x4a2753,_0x4187('0x20'),_0x13d7f4))};if('deletion'==_0x85ed19[_0x4187('0x4c')])return _0x1aeb8c[_0x4187('0x35')]?{'type':_0x4187('0x80'),'content':_0x22e587(_0x4a2753,_0x4187('0xa'),_0x22e587(_0x4a2753,_0x4187('0x4f'),[_0x13d7f4,'\x22'+_0x1aeb8c[_0x4187('0x21')]('\x20')+'\x22']))}:{'type':_0x4187('0x80'),'content':_0x22e587(_0x4a2753,_0x4187('0xa'),_0x22e587(_0x4a2753,_0x4187('0x20'),_0x13d7f4))};}}),_0x5cf251[_0x4187('0x1e')]['registerCustomCallback'](_0x4187('0x2c'),_0x4187('0x38'),_0x4187('0x18'),_0x392761),_0x5cf251[_0x4187('0x1e')][_0x4187('0x34')](_0x4187('0x80'),_0x4187('0x38'),'accept',_0x392761),_0x5cf251[_0x4187('0x1e')]['registerCustomCallback'](_0x4187('0x2c'),'tableColumn',_0x4187('0x18'),_0xe09a23),_0x5cf251[_0x4187('0x1e')]['registerCustomCallback'](_0x4187('0x80'),'tableColumn','accept',_0xe09a23),_0x5cf251['_suggestionFactory'][_0x4187('0x34')](_0x4187('0x2c'),_0x4187('0x73'),'join',_0x39d682),_0x5cf251[_0x4187('0x1e')][_0x4187('0x34')](_0x4187('0x80'),_0x4187('0x73'),_0x4187('0x21'),_0x39d682),_0x5cf251[_0x4187('0x1e')]['registerCustomCallback'](_0x4187('0x2c'),_0x4187('0x38'),_0x4187('0x21'),_0x2d6b8b),_0x5cf251[_0x4187('0x1e')][_0x4187('0x34')](_0x4187('0x80'),'tableRow',_0x4187('0x21'),_0x2d6b8b);}[_0x4187('0x7d')](){const _0x459ea4=this[_0x4187('0x82')],_0x30a185=_0x459ea4[_0x4187('0x5')][_0x4187('0x36')][_0x4187('0x52')];return(_0x9b7756,_0x4e6bcd)=>{_0x459ea4[_0x4187('0x5')]['change'](_0x4361fa=>{const {commandName:_0x54b1ca,commandParams:_0x3766ce}=_0x4e6bcd;let _0x41939d=_0x9b7756[0x0][_0x4187('0x41')][_0x4187('0x72')];_0x3766ce&&_0x3766ce[0x0]&&!0x1===_0x3766ce[0x0][_0x4187('0x32')]&&(_0x41939d=_0x9b7756[0x0]['start'][_0x4187('0x54')]);const _0x49b8d8=_0x4361fa['createRangeIn'](_0x41939d);if(_0x4187('0x48')==_0x49b8d8[_0x4187('0xd')][_0x4187('0x68')])return;const _0x5a1c30=Array[_0x4187('0x66')](_0x30a185['getRanges']())[_0x4187('0x5b')](_0x35214c=>_0x5dbb76[_0x4187('0x46')](_0x35214c));_0x4361fa[_0x4187('0x50')](_0x49b8d8),_0x459ea4[_0x4187('0x83')]['get'](_0x54b1ca)[_0x4187('0x76')](),_0x3766ce[_0x4187('0x37')]({'forceDefaultExecution':!0x0}),_0x459ea4[_0x4187('0x7f')](_0x54b1ca,..._0x3766ce);const _0x55ee8e=_0x5a1c30[_0x4187('0x84')](_0x12b791=>'$graveyard'!=_0x12b791['root'][_0x4187('0x68')]);_0x55ee8e[_0x4187('0x35')]>0x0&&_0x4361fa[_0x4187('0x50')](_0x55ee8e);for(const _0x24b2d5 of _0x5a1c30)_0x24b2d5[_0x4187('0x5e')]();});};}[_0x4187('0x3e')](_0x277cf6){const _0x126609=this['editor'][_0x4187('0x43')][_0x4187('0x39')](_0x4187('0x30'));let _0x59d377=Number['MAX_SAFE_INTEGER'],_0x3b660c=Number[_0x4187('0x26')],_0x1935f5=Number['MAX_SAFE_INTEGER'],_0x29c89b=Number[_0x4187('0x26')];for(const _0x1043b6 of _0x277cf6){if(_0x4187('0x48')==_0x1043b6[_0x4187('0xd')][_0x4187('0x68')])continue;const {row:_0x19455f,column:_0xba20d}=_0x126609[_0x4187('0x31')](_0x1043b6),_0x27d3d1=_0x1043b6[_0x4187('0x47')](_0x4187('0x3d'))?_0x1043b6[_0x4187('0x4d')](_0x4187('0x3d'))-0x1:0x0,_0x44a255=_0x1043b6[_0x4187('0x47')](_0x4187('0x27'))?_0x1043b6['getAttribute']('colspan')-0x1:0x0;_0x59d377=_0x19455f<_0x59d377?_0x19455f:_0x59d377,_0x3b660c=_0x19455f+_0x27d3d1>_0x3b660c?_0x19455f+_0x27d3d1:_0x3b660c,_0x1935f5=_0xba20d<_0x1935f5?_0xba20d:_0x1935f5,_0x29c89b=_0xba20d+_0x44a255>_0x29c89b?_0xba20d+_0x44a255:_0x29c89b;}return{'minRow':_0x59d377,'maxRow':_0x3b660c,'minColumn':_0x1935f5,'maxColumn':_0x29c89b};}[_0x4187('0x3a')](){const _0x2cd843=this[_0x4187('0x82')],_0x2eb917=_0x2cd843[_0x4187('0x43')]['get'](_0x4187('0x77')),_0x2c50b3=_0x2cd843[_0x4187('0x43')]['get'](_0x4187('0x30'));_0x2cd843[_0x4187('0x5')][_0x4187('0x36')]['on']('change:data',()=>{const _0x1027f5=Array[_0x4187('0x66')](_0x2cd843[_0x4187('0x5')][_0x4187('0x36')][_0x4187('0x2a')][_0x4187('0x3b')]());for(const {name:_0x12572f,data:_0x258d4f}of _0x1027f5){const {group:_0x47f6c5,id:_0x2fa603,subType:_0x47cb3d}=_0x2eb917[_0x4187('0x1f')](_0x12572f);if(_0x4187('0x9')!=_0x47f6c5)continue;if(null!=_0x258d4f[_0x4187('0x4e')])continue;const _0x323942=_0x2eb917[_0x4187('0x33')](_0x2fa603);this[_0x4187('0x53')]['includes'](_0x47cb3d)&&this[_0x4187('0xb')][_0x4187('0x6e')](_0x323942);}},{'priority':'low'});const _0x402625=(_0x5e44e7,_0x4a306b)=>{let _0x24c32e=!0x1;const _0x51f19c=_0x4a306b[_0x4187('0x62')](_0x5e44e7),_0x846eb5=_0x5e44e7['findAncestor']('table'),_0x417035=_0x2c50b3[_0x4187('0x31')](_0x5e44e7);for(const _0x56bb58 of this[_0x4187('0xb')]){const _0x372ab2=_0x56bb58[_0x4187('0x17')],_0x359a23=_0x372ab2[_0x4187('0x81')](_0x4187('0x6c')),_0x3e2d9a=_0x372ab2[_0x4187('0x7b')](_0x359a23?0xa:0x5),_0x4d532f=_0x3e2d9a[_0x4187('0x3')](),_0x3f05ad=_0x4d532f['substr'](0x0,0x3)+_0x4187('0x12'),_0x57669d='min'+_0x3e2d9a,_0x39f874=_0x4187('0x56')+_0x3e2d9a;if(!_0x56bb58['isInContent'])continue;if(_0x846eb5!=_0x56bb58[_0x4187('0x74')]()[_0x4187('0x5a')]['findAncestor'](_0x4187('0x60')))continue;if(_0x56bb58['isIntersectingWithRange'](_0x51f19c))continue;const _0x249eb9=_0x5e44e7[_0x4187('0x47')](_0x3f05ad)?_0x5e44e7['getAttribute'](_0x3f05ad)-0x1:0x0,_0x19b606=this[_0x4187('0x45')](_0x56bb58),_0xefbfee=_0x19b606[_0x57669d],_0x341e59=_0x19b606[_0x39f874];_0xefbfee<=_0x417035[_0x4d532f]&&_0x417035[_0x4d532f]+_0x249eb9<=_0x341e59&&(_0x56bb58[_0x4187('0x2f')](_0x51f19c),_0x24c32e=!0x0);}return _0x24c32e;};_0x2cd843['model'][_0x4187('0x36')]['registerPostFixer'](_0x3fa73c=>{let _0x1fed88=!0x1;for(const _0x1641e2 of _0x2cd843[_0x4187('0x5')][_0x4187('0x36')][_0x4187('0x2a')]['getChanges']())if(_0x4187('0x57')==_0x1641e2['type']){if(_0x4187('0x38')==_0x1641e2['name'])for(const _0x5aa283 of _0x1641e2[_0x4187('0x58')][_0x4187('0x54')][_0x4187('0x16')]())_0x1fed88=_0x1fed88||_0x402625(_0x5aa283,_0x3fa73c);else'tableCell'==_0x1641e2['name']&&(_0x1fed88=_0x1fed88||_0x402625(_0x1641e2[_0x4187('0x58')][_0x4187('0x54')],_0x3fa73c));}return _0x1fed88;});}['_getSuggestionCoords'](_0x577af4){return this['_getCoordsForCells'](_0x577af4[_0x4187('0x5d')]()[_0x4187('0x5b')](_0x31f2e8=>_0x31f2e8[_0x4187('0x5a')][_0x4187('0x54')]));}}function se(_0x53f01c){return Array[_0x4187('0x66')](new Set(_0x53f01c)['values']());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x452b=['enableCommand','has','toggleTableCaption','get','afterInit','TableCaptionEditing','TrackChangesEditing','plugins'];(function(_0x294c55,_0x452bd3){const _0x19aeff=function(_0x5bce66){while(--_0x5bce66){_0x294c55['push'](_0x294c55['shift']());}};_0x19aeff(++_0x452bd3);}(_0x452b,0x111));const _0x19ae=function(_0x294c55,_0x452bd3){_0x294c55=_0x294c55-0x0;let _0x19aeff=_0x452b[_0x294c55];return _0x19aeff;};import{Plugin as _0x2e9dbf}from'ckeditor5/src/core';import _0x428741 from'./table';export default class At extends _0x2e9dbf{static get['requires'](){return[_0x428741];}[_0x19ae('0x3')](){const _0x3a1952=this['editor'];if(!_0x3a1952[_0x19ae('0x6')][_0x19ae('0x0')](_0x19ae('0x4')))return;_0x3a1952[_0x19ae('0x6')][_0x19ae('0x2')](_0x19ae('0x5'))[_0x19ae('0x7')](_0x19ae('0x1'));}}
|