@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231212.0 → 0.0.0-nightly-20231214.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/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3074=['_getSuggestionBlocks','ListUtils','*Change\x20to:*\x20%0','enableCommand','markMultiRangeBlockFormat','map','listStart','afterInit','listType','styles','createPositionAt','filter','handleListStartCommand','handleListStyleCommand','flat','*Format:*\x20set\x20order\x20to\x20regular','handleListReversedCommand','backward','listReversed','change','ELEMENT_','listItem','handleDescriptions','TrackChangesEditing','from','reversed','unshift','selection','ListPropertiesEditing','getSelectedBlocks','locale','_LIST_','plugins','format','numbered','push','_descriptionFactory','config','before','startIndex','commandName','_getSuggestionBlocksForListStyle','_getTranslationKeyForListStyle','formatBlock','parent','getAttribute','document','listStyle','get','editor','commandParams','forward','length','getFirstPosition','registerDescriptionCallback','replace','bind','type','getSiblingNodes','element','formatInline','list.properties','createRange','model','*Format:*\x20set\x20order\x20to\x20reversed'];(function(_0x45f81b,_0x3074e7){const _0x5be3a7=function(_0x124dcd){while(--_0x124dcd){_0x45f81b['push'](_0x45f81b['shift']());}};_0x5be3a7(++_0x3074e7);}(_0x3074,0x18a));const _0x5be3=function(_0x45f81b,_0x3074e7){_0x45f81b=_0x45f81b-0x0;let _0x5be3a7=_0x3074[_0x45f81b];return _0x5be3a7;};import{Plugin as _0x4dc6ca}from'ckeditor5/src/core';import{getTranslation as _0x2127b6}from'../utils/common-translations';export default class ut extends _0x4dc6ca{[_0x5be3('0x3')](){if(!this['editor'][_0x5be3('0x1c')]['has'](_0x5be3('0x18')))return;const _0x3718e5=this[_0x5be3('0x2d')][_0x5be3('0x21')]['get'](_0x5be3('0x39')),_0x35ded7=this['editor'][_0x5be3('0x1c')]['get']('TrackChangesEditing');_0x3718e5[_0x5be3('0x5')]&&_0x35ded7[_0x5be3('0x40')](_0x5be3('0x2b'),this[_0x5be3('0x9')][_0x5be3('0x34')](this)),_0x3718e5['reversed']&&_0x35ded7[_0x5be3('0x40')](_0x5be3('0xe'),this[_0x5be3('0xc')][_0x5be3('0x34')](this)),_0x3718e5[_0x5be3('0x23')]&&_0x35ded7[_0x5be3('0x40')](_0x5be3('0x2'),this[_0x5be3('0x8')][_0x5be3('0x34')](this)),_0x35ded7[_0x5be3('0x20')][_0x5be3('0x32')](this[_0x5be3('0x12')][_0x5be3('0x34')](this));}['handleListStyleCommand'](_0x2b29d5,_0xccca49={}){const _0x108234=this['editor'][_0x5be3('0x1c')][_0x5be3('0x2c')](_0x5be3('0x13')),_0x45c58a=this[_0x5be3('0x25')]();this[_0x5be3('0x2d')][_0x5be3('0x3b')]['change'](()=>{_0x108234[_0x5be3('0x0')](_0x45c58a,{'commandName':'listStyle','commandParams':[{'type':_0xccca49['type']}],'formatGroupId':_0x5be3('0x2b')});});}[_0x5be3('0xc')](_0x126e59,_0x3d230c={}){const _0x5b9f2b=this[_0x5be3('0x2d')][_0x5be3('0x1c')][_0x5be3('0x2c')](_0x5be3('0x13')),_0xa4680=this[_0x5be3('0x3d')](_0x42eccc=>_0x42eccc['is'](_0x5be3('0x37'),'listItem')&&'numbered'===_0x42eccc['getAttribute'](_0x5be3('0x4')));if(_0xa4680[_0x5be3('0x30')]<0x1)return;const _0x1951ba=_0xa4680[_0x5be3('0x1')](_0x5105b0=>this[_0x5be3('0x2d')]['model'][_0x5be3('0x3a')](this['editor'][_0x5be3('0x3b')][_0x5be3('0x6')](_0x5105b0,_0x5be3('0x22')),this[_0x5be3('0x2d')][_0x5be3('0x3b')][_0x5be3('0x6')](_0x5105b0,0x0)));this[_0x5be3('0x2d')]['model']['change'](()=>{_0x5b9f2b[_0x5be3('0x0')](_0x1951ba,{'commandName':'listReversed','commandParams':[{'reversed':_0x3d230c[_0x5be3('0x15')]}],'formatGroupId':_0x5be3('0xe')});});}[_0x5be3('0x8')](_0x1b2fa7,_0x3b23c3={}){const _0x15b3bb=this[_0x5be3('0x2d')][_0x5be3('0x1c')][_0x5be3('0x2c')](_0x5be3('0x13')),_0x4a8b7a=this[_0x5be3('0x3d')](_0x92f80c=>_0x92f80c['is'](_0x5be3('0x37'),_0x5be3('0x11'))&&_0x5be3('0x1e')===_0x92f80c[_0x5be3('0x29')](_0x5be3('0x4')));if(_0x4a8b7a[_0x5be3('0x30')]<0x1)return;const _0x42dd60=_0x4a8b7a['map'](_0x517e98=>this[_0x5be3('0x2d')]['model'][_0x5be3('0x3a')](this[_0x5be3('0x2d')][_0x5be3('0x3b')][_0x5be3('0x6')](_0x517e98,'before'),this[_0x5be3('0x2d')][_0x5be3('0x3b')]['createPositionAt'](_0x517e98,0x0)));this['editor'][_0x5be3('0x3b')][_0x5be3('0xf')](()=>{_0x15b3bb[_0x5be3('0x0')](_0x42dd60,{'commandName':_0x5be3('0x2'),'commandParams':[{'startIndex':_0x3b23c3[_0x5be3('0x23')]}],'formatGroupId':_0x5be3('0x2')});});}['handleDescriptions'](_0x165224){if(_0x5be3('0x27')!=_0x165224[_0x5be3('0x35')]&&_0x5be3('0x38')!=_0x165224[_0x5be3('0x35')])return;const _0x2e1622=this[_0x5be3('0x2d')][_0x5be3('0x1a')],{data:_0x2e145e}=_0x165224;if(!_0x2e145e)return;let _0x3208df,_0x498258;switch(_0x2e145e[_0x5be3('0x24')]){case'listStyle':_0x3208df=_0x5be3('0x3f'),_0x498258={'type':_0x5be3('0x1d'),'content':_0x2127b6(_0x2e1622,_0x3208df,_0x2127b6(_0x2e1622,this[_0x5be3('0x26')](_0x2e145e[_0x5be3('0x2e')][0x0][_0x5be3('0x35')])))};break;case _0x5be3('0xe'):_0x3208df=_0x2e145e['commandParams'][0x0]['reversed']?_0x5be3('0x3c'):_0x5be3('0xb'),_0x498258={'type':_0x5be3('0x1d'),'content':_0x2127b6(_0x2e1622,_0x3208df)};break;case _0x5be3('0x2'):_0x3208df='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x498258={'type':_0x5be3('0x1d'),'content':_0x2127b6(_0x2e1622,_0x3208df,_0x2e145e['commandParams'][0x0][_0x5be3('0x23')])};}return _0x498258;}['_getSuggestionBlocksForListStyle'](){var _0xbe1df6,_0x58b7b0,_0x49d0e0,_0x22b322;const _0x4803f2=this[_0x5be3('0x2d')][_0x5be3('0x1c')][_0x5be3('0x2c')](_0x5be3('0x3e'));let _0x2a25e8=Array[_0x5be3('0x14')](this[_0x5be3('0x2d')][_0x5be3('0x3b')][_0x5be3('0x2a')][_0x5be3('0x17')][_0x5be3('0x19')]());return(null===(_0xbe1df6=_0x2a25e8[0x0])||void 0x0===_0xbe1df6?void 0x0:_0xbe1df6['is'](_0x5be3('0x37'),_0x5be3('0x11')))&&_0x2a25e8[_0x5be3('0x16')](..._0x4803f2[_0x5be3('0x36')](this[_0x5be3('0x2d')][_0x5be3('0x3b')][_0x5be3('0x2a')][_0x5be3('0x17')]['getFirstPosition'](),_0x5be3('0xd'))),(null===(_0x58b7b0=_0x2a25e8[_0x2a25e8[_0x5be3('0x30')]-0x1])||void 0x0===_0x58b7b0?void 0x0:_0x58b7b0['is']('element',_0x5be3('0x11')))&&_0x2a25e8[_0x5be3('0x1f')](..._0x4803f2[_0x5be3('0x36')](this[_0x5be3('0x2d')][_0x5be3('0x3b')]['document'][_0x5be3('0x17')]['getLastPosition'](),'forward')),_0x2a25e8=[...new Set(_0x2a25e8)],(null===(_0x22b322=null===(_0x49d0e0=this[_0x5be3('0x2d')][_0x5be3('0x3b')][_0x5be3('0x2a')][_0x5be3('0x17')][_0x5be3('0x31')]())||void 0x0===_0x49d0e0?void 0x0:_0x49d0e0[_0x5be3('0x28')])||void 0x0===_0x22b322?void 0x0:_0x22b322['is'](_0x5be3('0x37'),_0x5be3('0x11')))&&(_0x2a25e8=_0x2a25e8[_0x5be3('0x7')](_0x23b2fb=>_0x23b2fb['is'](_0x5be3('0x37'),_0x5be3('0x11')))),_0x2a25e8;}['_getSuggestionBlocks'](_0x2eb65e){const _0x1c7407=this[_0x5be3('0x2d')][_0x5be3('0x1c')]['get'](_0x5be3('0x3e'));let _0x2972a8=Array[_0x5be3('0x14')](this[_0x5be3('0x2d')][_0x5be3('0x3b')][_0x5be3('0x2a')][_0x5be3('0x17')][_0x5be3('0x19')]())[_0x5be3('0x7')](_0x2eb65e)['map'](_0x1e107f=>{const _0x577cfa=this['editor'][_0x5be3('0x3b')][_0x5be3('0x6')](_0x1e107f,0x0);return[..._0x1c7407[_0x5be3('0x36')](_0x577cfa,'backward'),..._0x1c7407[_0x5be3('0x36')](_0x577cfa,_0x5be3('0x2f'))];})[_0x5be3('0xa')]();return _0x2972a8=[...new Set(_0x2972a8)],_0x2972a8;}[_0x5be3('0x26')](_0x3d7af7){return _0x5be3('0x10')+this[_0x5be3('0x2d')][_0x5be3('0x1c')][_0x5be3('0x2c')](_0x5be3('0x3e'))['getListTypeFromListStyleType'](_0x3d7af7)['toUpperCase']()+_0x5be3('0x1b')+_0x3d7af7['toUpperCase']()[_0x5be3('0x33')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4326=['locale','showSuggestionHighlights','media','data','plugins','downcastDispatcher','editor','ELEMENT_MEDIA','TrackChangesEditing','for','MediaEmbedEditing','afterInit','get','mediaEmbed','stop','dataDowncast','options','conversion','createEmptyElement','div','enableCommand','has','_descriptionFactory','high'];(function(_0x2b71ce,_0x432609){const _0x118adb=function(_0x5a5eb5){while(--_0x5a5eb5){_0x2b71ce['push'](_0x2b71ce['shift']());}};_0x118adb(++_0x432609);}(_0x4326,0x11a));const _0x118a=function(_0x2b71ce,_0x432609){_0x2b71ce=_0x2b71ce-0x0;let _0x118adb=_0x4326[_0x2b71ce];return _0x118adb;};import{Plugin as _0x392e3e}from'ckeditor5/src/core';import{getTranslation as _0xa0aba}from'../utils/common-translations';export default class ht extends _0x392e3e{[_0x118a('0x11')](){const _0x39e01c=this[_0x118a('0xc')];if(!_0x39e01c[_0x118a('0xa')][_0x118a('0x3')](_0x118a('0x10')))return;const _0x4ca452=_0x39e01c[_0x118a('0xa')][_0x118a('0x12')](_0x118a('0xe')),_0x54d11e=_0x39e01c[_0x118a('0x6')];_0x4ca452[_0x118a('0x2')](_0x118a('0x13')),_0x4ca452[_0x118a('0x4')]['registerElementLabel'](_0x118a('0x8'),_0x13c5db=>_0xa0aba(_0x54d11e,_0x118a('0xd'),_0x13c5db)),_0x39e01c[_0x118a('0x17')][_0x118a('0xf')](_0x118a('0x15'))['elementToElement']({'model':_0x118a('0x8'),'view':(_0xcb88bc,{writer:_0x25ebe8,options:_0x1d60e7})=>{if(_0x1d60e7['showSuggestionHighlights'])return _0x25ebe8[_0x118a('0x0')](_0x118a('0x1'));},'converterPriority':_0x118a('0x5')}),_0x39e01c[_0x118a('0x9')][_0x118a('0xb')]['on']('attribute:url:media',(_0xbc824e,_0x45cca4,_0x1e2340)=>{_0x1e2340[_0x118a('0x16')][_0x118a('0x7')]&&_0xbc824e[_0x118a('0x14')]();},{'priority':_0x118a('0x5')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e9d=['editor','plugins','enableCommand','get','mention','TrackChangesEditing','afterInit','has'];(function(_0x3efe96,_0x3e9dc8){const _0x4dd16d=function(_0x4728da){while(--_0x4728da){_0x3efe96['push'](_0x3efe96['shift']());}};_0x4dd16d(++_0x3e9dc8);}(_0x3e9d,0x16c));const _0x4dd1=function(_0x3efe96,_0x3e9dc8){_0x3efe96=_0x3efe96-0x0;let _0x4dd16d=_0x3e9d[_0x3efe96];return _0x4dd16d;};import{Plugin as _0x2e334f}from'ckeditor5/src/core';export default class ft extends _0x2e334f{[_0x4dd1('0x2')](){const _0x11a214=this[_0x4dd1('0x4')];_0x11a214[_0x4dd1('0x5')][_0x4dd1('0x3')]('MentionEditing')&&_0x11a214[_0x4dd1('0x5')][_0x4dd1('0x7')](_0x4dd1('0x1'))[_0x4dd1('0x6')](_0x4dd1('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39e1=['pageBreak','plugins','get','TrackChangesEditing','has','enableCommand','ELEMENT_PAGE_BREAK','_descriptionFactory','PageBreakEditing','editor','registerElementLabel','afterInit'];(function(_0x5700ce,_0x39e12e){const _0x1da225=function(_0xd16083){while(--_0xd16083){_0x5700ce['push'](_0x5700ce['shift']());}};_0x1da225(++_0x39e12e);}(_0x39e1,0x1d1));const _0x1da2=function(_0x5700ce,_0x39e12e){_0x5700ce=_0x5700ce-0x0;let _0x1da225=_0x39e1[_0x5700ce];return _0x1da225;};import{Plugin as _0x52b600}from'ckeditor5/src/core';import{getTranslation as _0x34bde1}from'../utils/common-translations';export default class gt extends _0x52b600{[_0x1da2('0x2')](){const _0x341e8b=this[_0x1da2('0x0')];if(!_0x341e8b[_0x1da2('0x4')][_0x1da2('0x7')](_0x1da2('0xb')))return;_0x341e8b[_0x1da2('0x4')][_0x1da2('0x5')](_0x1da2('0x6'))[_0x1da2('0x8')](_0x1da2('0x3'));const _0x4d6347=_0x341e8b['plugins'][_0x1da2('0x5')]('TrackChangesEditing'),_0x454ae3=_0x341e8b['locale'];_0x4d6347[_0x1da2('0xa')][_0x1da2('0x1')](_0x1da2('0x3'),_0x2f93de=>_0x34bde1(_0x454ae3,_0x1da2('0x9'),_0x2f93de));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4373=['ck-suggestion-marker-split','_descriptionFactory','insertion','writer','checkChild','schema','editor','paragraph','highest','TrackChangesEditing','data','end','markerName','toViewPosition','commandName','plugins','addClass','insert','mapper','nodeAfter','insertParagraph','format','*Insert:*\x20%0','markerRange','isLimit','bindElementToMarker','enableCommand','afterInit','has','Paragraph','registerElementLabel','addMarker:suggestion:insertion','consume','createUIElement','downcastDispatcher','type','_registerLegacyDescription','getItemLabel','model','options','*Change\x20to:*\x20%0','includes','start','getFirstRange','locale','isTouching','get'];(function(_0x204474,_0x4373a9){const _0x77aec7=function(_0x46bf8e){while(--_0x46bf8e){_0x204474['push'](_0x204474['shift']());}};_0x77aec7(++_0x4373a9);}(_0x4373,0xeb));const _0x77ae=function(_0x204474,_0x4373a9){_0x204474=_0x204474-0x0;let _0x77aec7=_0x4373[_0x204474];return _0x77aec7;};import{Plugin as _0x2be0b2}from'ckeditor5/src/core';import{getTranslation as _0x4692c9}from'../utils/common-translations';export default class lt extends _0x2be0b2{[_0x77ae('0x1b')](){const _0x564054=this[_0x77ae('0x6')];if(!_0x564054[_0x77ae('0xf')][_0x77ae('0x1c')](_0x77ae('0x1d')))return;const _0x58156d=_0x564054[_0x77ae('0x2c')],_0x2a0bb3=_0x564054[_0x77ae('0xf')][_0x77ae('0x2e')]('TrackChangesEditing');_0x2a0bb3[_0x77ae('0x1')][_0x77ae('0x1e')](_0x77ae('0x7'),_0x1f29d5=>_0x4692c9(_0x58156d,'ELEMENT_PARAGRAPH',_0x1f29d5)),_0x2a0bb3['_enableDefaultAttributesIntegration'](_0x77ae('0x7')),_0x2a0bb3[_0x77ae('0x1a')](_0x77ae('0x14')),_0x564054['editing']['downcastDispatcher']['on'](_0x77ae('0x1f'),nr(_0x564054),{'priority':_0x77ae('0x8')}),_0x564054[_0x77ae('0xa')][_0x77ae('0x22')]['on']('addMarker:suggestion:insertion',(_0x3ea1d7,_0x349fa3,_0x4fd05c)=>{_0x4fd05c[_0x77ae('0x27')]['showSuggestionHighlights']&&nr(_0x564054,{'showActiveMarker':!0x1})(_0x3ea1d7,_0x349fa3,_0x4fd05c);},{'priority':'highest'});const _0x481aa9=_0x2a0bb3[_0x77ae('0x1')];_0x481aa9['registerDescriptionCallback'](_0x3f4d05=>{if(_0x77ae('0x2')!==_0x3f4d05[_0x77ae('0x23')])return;const {start:_0x1191ba,end:_0xf1d10e}=_0x3f4d05[_0x77ae('0x2b')]();if(!_0x1191ba[_0x77ae('0x2d')](_0xf1d10e)||!_0x1191ba[_0x77ae('0x13')])return;const _0x5a9e6e=_0x564054[_0x77ae('0x26')][_0x77ae('0x5')],_0x23b61f=_0x1191ba[_0x77ae('0x13')];return _0x5a9e6e['isBlock'](_0x23b61f)&&!_0x5a9e6e[_0x77ae('0x18')](_0x23b61f)&&_0x5a9e6e[_0x77ae('0x4')](_0x23b61f,'$text')?{'type':_0x77ae('0x2'),'content':_0x4692c9(_0x58156d,_0x77ae('0x16'),_0x481aa9[_0x77ae('0x25')](_0x23b61f,0x1))}:void 0x0;}),this[_0x77ae('0x24')]();}[_0x77ae('0x24')](){const _0x4cf1d0=this[_0x77ae('0x6')],_0x42b2ed=_0x4cf1d0[_0x77ae('0x2c')];_0x4cf1d0[_0x77ae('0xf')][_0x77ae('0x2e')]('TrackChangesEditing')[_0x77ae('0x1')]['registerDescriptionCallback'](_0x4f485c=>{if('formatBlock'!=_0x4f485c['type'])return;const {data:_0x417b6a}=_0x4f485c;return _0x417b6a&&_0x77ae('0x7')==_0x417b6a[_0x77ae('0xe')]?{'type':_0x77ae('0x15'),'content':_0x4692c9(_0x42b2ed,_0x77ae('0x28'),_0x4692c9(_0x42b2ed,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xa835da,{showActiveMarker:_0x4cd8f1=!0x0}={}){return(_0x2ef690,_0x30a108,_0x541762)=>{const _0x197938=_0xa835da['plugins'][_0x77ae('0x2e')](_0x77ae('0x9')),_0x6d0bc3=_0x30a108[_0x77ae('0x17')][_0x77ae('0x2a')],_0x765192=_0x30a108[_0x77ae('0x17')][_0x77ae('0xb')],_0x4fb3d4=_0xa835da['model'][_0x77ae('0x5')];if(!_0x6d0bc3['isTouching'](_0x765192)||!_0x6d0bc3[_0x77ae('0x13')])return;const _0x268a10=_0x6d0bc3[_0x77ae('0x13')];if(_0x4fb3d4['isBlock'](_0x268a10)&&!_0x4fb3d4['isLimit'](_0x268a10)&&_0x4fb3d4[_0x77ae('0x4')](_0x268a10,'$text')){if(!_0x541762['consumable'][_0x77ae('0x20')](_0x30a108[_0x77ae('0x17')],_0x2ef690['name']))return;const _0x57aeee=_0x541762[_0x77ae('0x3')][_0x77ae('0x21')]('span',{'class':_0x77ae('0x0')}),_0x1a0cb1=_0x541762[_0x77ae('0x12')][_0x77ae('0xd')](_0x765192);_0x4cd8f1&&_0x197938['activeMarkers'][_0x77ae('0x29')](_0x30a108[_0x77ae('0xc')])&&_0x541762[_0x77ae('0x3')][_0x77ae('0x10')]('ck-suggestion-marker--active',_0x57aeee),_0x541762['writer'][_0x77ae('0x11')](_0x1a0cb1,_0x57aeee),_0x541762[_0x77ae('0x12')][_0x77ae('0x19')](_0x57aeee,_0x30a108['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47a1=['locale','_descriptionFactory','plugins','TrackChangesEditing','afterInit','removeFormat','commandName','registerDescriptionCallback','format','get','has','type','_enableDefaultAttributesIntegration','_registerLegacyDescription','*Remove\x20all\x20formatting*'];(function(_0x332365,_0x47a129){const _0xa100e7=function(_0x5760fb){while(--_0x5760fb){_0x332365['push'](_0x332365['shift']());}};_0xa100e7(++_0x47a129);}(_0x47a1,0x13b));const _0xa100=function(_0x332365,_0x47a129){_0x332365=_0x332365-0x0;let _0xa100e7=_0x47a1[_0x332365];return _0xa100e7;};import{Plugin as _0x1707e9}from'ckeditor5/src/core';import{getTranslation as _0x3ea2ec}from'../utils/common-translations';export default class mt extends _0x1707e9{[_0xa100('0x4')](){const _0x5a456b=this['editor'];if(!_0x5a456b[_0xa100('0x2')][_0xa100('0xa')]('RemoveFormatEditing'))return;_0x5a456b['plugins'][_0xa100('0x9')](_0xa100('0x3'))[_0xa100('0xc')](_0xa100('0x5')),this[_0xa100('0xd')]();}['_registerLegacyDescription'](){const _0x43ad23=this['editor'];_0x43ad23[_0xa100('0x2')][_0xa100('0x9')](_0xa100('0x3'))[_0xa100('0x1')][_0xa100('0x7')](_0x5e956b=>{if('formatBlock'!=_0x5e956b[_0xa100('0xb')]&&'formatInline'!=_0x5e956b[_0xa100('0xb')])return;const {data:_0x250135}=_0x5e956b;return _0x250135&&_0xa100('0x5')==_0x250135[_0xa100('0x6')]?{'type':_0xa100('0x8'),'content':_0x3ea2ec(_0x43ad23[_0xa100('0x0')],_0xa100('0xe'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x462b=['afterInit','editor','has','goToPreviousRestrictedEditingException','enableCommand','discardSelectedSuggestions','goToNextRestrictedEditingException','TrackChangesEditing','acceptSuggestion','acceptSelectedSuggestions','trackChanges','get','discardSuggestion','RestrictedEditingModeEditing','plugins'];(function(_0x18ce2c,_0x462b27){const _0x30d50e=function(_0x1f7597){while(--_0x1f7597){_0x18ce2c['push'](_0x18ce2c['shift']());}};_0x30d50e(++_0x462b27);}(_0x462b,0xcc));const _0x30d5=function(_0x18ce2c,_0x462b27){_0x18ce2c=_0x18ce2c-0x0;let _0x30d50e=_0x462b[_0x18ce2c];return _0x30d50e;};import{Plugin as _0x23e8be}from'ckeditor5/src/core';export default class dt extends _0x23e8be{[_0x30d5('0x6')](){const _0x7cd5ed=this[_0x30d5('0x7')];if(!_0x7cd5ed[_0x30d5('0x5')][_0x30d5('0x8')]('RestrictedEditingModeEditing'))return;const _0x3e4d3e=_0x7cd5ed[_0x30d5('0x5')][_0x30d5('0x2')](_0x30d5('0xd'));_0x3e4d3e[_0x30d5('0xa')](_0x30d5('0x9')),_0x3e4d3e[_0x30d5('0xa')](_0x30d5('0xc'));const _0x2b7cfb=_0x7cd5ed[_0x30d5('0x5')][_0x30d5('0x2')](_0x30d5('0x4'));_0x2b7cfb[_0x30d5('0xa')](_0x30d5('0x1')),_0x2b7cfb[_0x30d5('0xa')](_0x30d5('0xe')),_0x2b7cfb[_0x30d5('0xa')](_0x30d5('0x3')),_0x2b7cfb[_0x30d5('0xa')]('acceptAllSuggestions'),_0x2b7cfb[_0x30d5('0xa')]('discardAllSuggestions'),_0x2b7cfb[_0x30d5('0xa')](_0x30d5('0x0')),_0x2b7cfb[_0x30d5('0xa')](_0x30d5('0xb'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55be=['plugins','mapper','locale','merge','registerElementLabel','init','data','requires','markerRange','TrackChangesEditing','high','name','markerName','softBreak','bindElementToMarker','element','downcastDispatcher','getItems','writer','options','split','addMarker:suggestion:insertion','span','includes','editing','shiftEnter','model','addMarker:suggestion','consumable','createPositionBefore','editor','enableCommand','deletion','test','toViewPosition','addClass','get'];(function(_0x48b36b,_0x55beb6){const _0x5ac10d=function(_0x4f90c9){while(--_0x4f90c9){_0x48b36b['push'](_0x48b36b['shift']());}};_0x5ac10d(++_0x55beb6);}(_0x55be,0x195));const _0x5ac1=function(_0x48b36b,_0x55beb6){_0x48b36b=_0x48b36b-0x0;let _0x5ac10d=_0x55be[_0x48b36b];return _0x5ac10d;};import{Plugin as _0x3ce30c}from'ckeditor5/src/core';import{ShiftEnter as _0x9ce39f}from'ckeditor5/src/enter';import{getTranslation as _0x779938}from'../utils/common-translations';export default class pt extends _0x3ce30c{static get[_0x5ac1('0x9')](){return[_0x9ce39f];}[_0x5ac1('0x7')](){const _0x3576f2=this[_0x5ac1('0x20')],_0x263fca=_0x3576f2[_0x5ac1('0x2')][_0x5ac1('0x1')](_0x5ac1('0xb'));_0x263fca[_0x5ac1('0x21')](_0x5ac1('0x1b')),_0x3576f2[_0x5ac1('0x1a')][_0x5ac1('0x12')]['on'](_0x5ac1('0x17'),re(_0x3576f2),{'priority':_0x5ac1('0xc')}),_0x3576f2['editing'][_0x5ac1('0x12')]['on']('addMarker:suggestion:deletion',re(_0x3576f2),{'priority':_0x5ac1('0xc')}),_0x3576f2[_0x5ac1('0x8')]['downcastDispatcher']['on'](_0x5ac1('0x1d'),(_0x3757be,_0x432103,_0x55d2cf)=>{_0x55d2cf[_0x5ac1('0x15')]['showSuggestionHighlights']&&re(_0x3576f2,{'showActiveMarker':!0x1})(_0x3757be,_0x432103,_0x55d2cf);}),_0x263fca['_descriptionFactory'][_0x5ac1('0x6')]('softBreak',_0x5143da=>_0x779938(_0x3576f2[_0x5ac1('0x4')],'ELEMENT_LINE_BREAK',_0x5143da));}}function re(_0xefd4d0,{showActiveMarker:_0x27f49b=!0x0}={}){return(_0x1eb83b,_0xcbe4f0,_0x2dbbab)=>{const _0x56416d=_0xefd4d0['plugins'][_0x5ac1('0x1')]('TrackChangesEditing');if(!_0x2dbbab[_0x5ac1('0x1e')][_0x5ac1('0x23')](_0xcbe4f0[_0x5ac1('0xa')],_0x1eb83b[_0x5ac1('0xd')]))return;const _0x343299=_0xefd4d0[_0x5ac1('0x1c')];for(const _0x1a8dd2 of _0xcbe4f0[_0x5ac1('0xa')][_0x5ac1('0x13')]()){if(!_0x1a8dd2['is'](_0x5ac1('0x11'),_0x5ac1('0xf')))continue;const _0x401bfc=_0x5ac1('0x22')==_0xcbe4f0[_0x5ac1('0xe')]['split'](':')[0x1]?_0x5ac1('0x5'):_0x5ac1('0x16'),_0x3f912e=_0x2dbbab[_0x5ac1('0x14')]['createUIElement'](_0x5ac1('0x18'),{'class':'ck-suggestion-marker-'+_0x401bfc}),_0x4c829c=_0x2dbbab['mapper'][_0x5ac1('0x24')](_0x343299[_0x5ac1('0x1f')](_0x1a8dd2));_0x27f49b&&_0x56416d['activeMarkers'][_0x5ac1('0x19')](_0xcbe4f0[_0x5ac1('0xe')])&&_0x2dbbab[_0x5ac1('0x14')][_0x5ac1('0x0')]('ck-suggestion-marker--active',_0x3f912e),_0x2dbbab[_0x5ac1('0x14')]['insert'](_0x4c829c,_0x3f912e),_0x2dbbab[_0x5ac1('0x3')][_0x5ac1('0x10')](_0x3f912e,_0xcbe4f0[_0x5ac1('0xe')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1655=['_descriptionFactory','restrictedEditingException','plugins','TrackChangesEditing','forceValue','enableCommand','from','StandardEditingModeEditing','value','type','isCollapsed','FORMAT_RESTRICTED_DISABLED','editor','registerDescriptionCallback','selection','locale','formatBlock','get','format','has'];(function(_0x127af7,_0x165551){const _0x12c96d=function(_0x358510){while(--_0x358510){_0x127af7['push'](_0x127af7['shift']());}};_0x12c96d(++_0x165551);}(_0x1655,0xb1));const _0x12c9=function(_0x127af7,_0x165551){_0x127af7=_0x127af7-0x0;let _0x12c96d=_0x1655[_0x127af7];return _0x12c96d;};import{Plugin as _0x515a04}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x2fe829}from'./utils';import{getTranslation as _0x1230f0}from'../utils/common-translations';export default class kt extends _0x515a04{['afterInit'](){const _0x20c735=this[_0x12c9('0xf')],_0xc3e981=_0x20c735['model'],_0xb59f55=_0x20c735[_0x12c9('0x12')];if(!_0x20c735[_0x12c9('0x5')][_0x12c9('0x2')](_0x12c9('0xa')))return;const _0x59706a=_0x20c735[_0x12c9('0x5')][_0x12c9('0x0')](_0x12c9('0x6')),_0x19a9da=_0x12c9('0x4'),_0x5d1fd0=_0x20c735['commands'][_0x12c9('0x0')](_0x19a9da);_0x59706a[_0x12c9('0x8')](_0x19a9da,(_0x166434,_0x1b2406={})=>{const _0x537b13=_0xc3e981['document'][_0x12c9('0x11')];if(_0x537b13[_0x12c9('0xd')])return void _0x166434(_0x1b2406);const _0x2bfd8e=void 0x0!==_0x1b2406['forceValue']?_0x1b2406[_0x12c9('0x7')]:!_0x5d1fd0[_0x12c9('0xb')];_0xc3e981['change'](()=>{const _0x1c692f=Array[_0x12c9('0x9')](_0x537b13['getRanges']());for(const _0x58d082 of _0x1c692f){const _0x2b38a8=_0x2bfd8e?[_0x58d082]:_0x2fe829(_0x19a9da,_0x58d082,_0xc3e981);for(const _0x480f49 of _0x2b38a8)_0x59706a['markInlineFormat'](_0x480f49,{'commandName':_0x19a9da,'commandParams':[{'forceValue':_0x2bfd8e}]});}});}),_0x59706a[_0x12c9('0x3')][_0x12c9('0x10')](_0x3503d3=>{if(_0x12c9('0x13')!=_0x3503d3[_0x12c9('0xc')]&&'formatInline'!=_0x3503d3[_0x12c9('0xc')])return;const {data:_0x2fa9ab}=_0x3503d3;return _0x2fa9ab&&_0x2fa9ab['commandName']==_0x19a9da?_0x2fa9ab['commandParams'][0x0][_0x12c9('0x7')]?{'type':_0x12c9('0x1'),'content':_0x1230f0(_0xb59f55,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x12c9('0x1'),'content':_0x1230f0(_0xb59f55,_0x12c9('0xe'))}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38fc=['editor','*Set\x20format:*\x20%0','getGhsAttributeNameForElement','forceValue','has','_enableDefaultAttributesIntegration','commandParams','normalizeConfig','DataSchema','GeneralHtmlSupport','block','style','type','_descriptionFactory','config','get','plugins','StyleUtils','add','inline','*Remove\x20format:*\x20%0','commandName','_registerLegacyDescription','toLowerCase','styleName','_registerBlockAttribute','TrackChangesEditing','ghsAttributes','format','formatBlock','element','registerAttributeLabel','definitions'];(function(_0x22544d,_0x38fc32){const _0x48fc52=function(_0x12ec60){while(--_0x12ec60){_0x22544d['push'](_0x22544d['shift']());}};_0x48fc52(++_0x38fc32);}(_0x38fc,0xf4));const _0x48fc=function(_0x22544d,_0x38fc32){_0x22544d=_0x22544d-0x0;let _0x48fc52=_0x38fc[_0x22544d];return _0x48fc52;};import{Plugin as _0x33e85f}from'ckeditor5/src/core';import{getTranslation as _0x4f47ea}from'../utils/common-translations';export default class bt extends _0x33e85f{['afterInit'](){const _0x3dd221=this[_0x48fc('0x14')];if(!_0x3dd221[_0x48fc('0x3')][_0x48fc('0x18')]('Style')||!_0x3dd221[_0x48fc('0x3')][_0x48fc('0x18')]('DataSchema'))return;const _0x1735c1=_0x3dd221[_0x48fc('0x3')][_0x48fc('0x2')](_0x48fc('0xd')),_0x193635=_0x3dd221['locale'],_0x1670bf=_0x3dd221[_0x48fc('0x1')][_0x48fc('0x2')]('style'),_0x588a54=_0x3dd221[_0x48fc('0x3')][_0x48fc('0x2')](_0x48fc('0x1d')),_0xa77b1e=_0x3dd221[_0x48fc('0x3')]['get'](_0x48fc('0x4'))[_0x48fc('0x1b')](_0x3dd221['plugins'][_0x48fc('0x2')](_0x48fc('0x1c')),_0x1670bf[_0x48fc('0x13')]);_0x1735c1[_0x48fc('0x19')](_0x48fc('0x1f'));const _0x24fdcd=new Set();for(const _0x29a3b2 of _0xa77b1e[_0x48fc('0x1e')]){const _0x2df574=_0x588a54['getGhsAttributeNameForElement'](_0x29a3b2['element']);_0x24fdcd[_0x48fc('0x5')](_0x2df574);}const _0x22220b=new Set();for(const _0x4460d7 of _0xa77b1e[_0x48fc('0x6')]){const _0x174705=_0x588a54[_0x48fc('0x16')](_0x4460d7[_0x48fc('0x11')]);_0x22220b[_0x48fc('0x5')](_0x174705);for(const _0x3a7349 of _0x4460d7[_0x48fc('0xe')])_0x22220b[_0x48fc('0x5')](_0x3a7349);}for(const _0x354040 of _0x24fdcd)_0x1735c1[_0x48fc('0xc')](_0x354040),_0x1735c1['_descriptionFactory'][_0x48fc('0x12')](_0x354040,_0x4f47ea(_0x193635,'FORMAT_STYLE'));for(const _0x5bb8a7 of _0x22220b)_0x1735c1['_registerInlineAttribute'](_0x5bb8a7),_0x1735c1[_0x48fc('0x0')][_0x48fc('0x12')](_0x5bb8a7,_0x4f47ea(_0x193635,'FORMAT_STYLE'));this[_0x48fc('0x9')]();}[_0x48fc('0x9')](){const _0x565dc8=this[_0x48fc('0x14')],_0x2b8321=_0x565dc8['locale'];_0x565dc8[_0x48fc('0x3')]['get'](_0x48fc('0xd'))[_0x48fc('0x0')]['registerDescriptionCallback'](_0x3cd569=>{if(_0x48fc('0x10')!=_0x3cd569['type']&&'formatInline'!=_0x3cd569[_0x48fc('0x20')])return;const {data:_0xd0d39e}=_0x3cd569;return _0xd0d39e&&_0x48fc('0x1f')===_0xd0d39e[_0x48fc('0x8')]?_0xd0d39e[_0x48fc('0x1a')][0x0][_0x48fc('0x17')]?{'type':_0x48fc('0xf'),'content':_0x4f47ea(_0x2b8321,_0x48fc('0x15'),_0xd0d39e[_0x48fc('0x1a')][0x0][_0x48fc('0xb')][_0x48fc('0xa')]())}:{'type':_0x48fc('0xf'),'content':_0x4f47ea(_0x2b8321,_0x48fc('0x7'),_0xd0d39e[_0x48fc('0x1a')][0x0]['styleName'][_0x48fc('0xa')]())}:void 0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4c19=['some','rowspan','getRanges','*Remove:*\x20%0','toViewElement','_acceptFormatSuggestionCallbackFactory','removeTableRow','ELEMENT_TABLE','start','TableUtils','insertion','TrackChangesEditing','push','map','afterInit','plugins','suggestion','findAncestor','from','nodeAfter','markMultiRangeDeletion','registerElementLabel','registerDescriptionCallback','$textProxy','getChildren','span','_suggestionFactory','document','cell','hasAttribute','getSelectionAffectedTableCells','_tablePostFixingSubtypes','getFirstRange','editor','element','isEqual','insert','selectTableRow','isArray','*Insert:*\x20%0','commands','createRangeOn','_getSuggestionCoords','left','above','getColumnIndexes','type','_setupColumnsRowsFixing','refresh','writer','end','registerCustomCallback','_tableSuggestions','maxColumn','tableRow','_getCoordsForCells','startsWith','insertTableColumnRight','position','rootName','fromRange','data','highest','getAttribute','tablePaste','options','createPositionAt','MIN_SAFE_INTEGER','getChangedMarkers','change','change:data','execute','removeTableColumn','locale','markMultiRangeInsertion','addClass','max','model','minColumn','length','downcastDispatcher','showSuggestionHighlights','removeClass','add','ELEMENT_TABLE_WITH_TEXT','colspan','registerPostFixer','getItems','join','detach','name','ELEMENT_TABLE_COLUMN','MAX_SAFE_INTEGER','differ','selectTableColumn','subType','oldRange','enableCommand','batch','getCellLocation','values','insertTableColumnLeft','substr','addRange','get','first','toLowerCase','every','TableEditing','forceValue','last','min','includes','low','maxRow','item','table','createRangeIn','filter','ELEMENT_TABLE_ROW','$graveyard','addMarker:suggestion','enqueueChange','getRowIndexes','has','discard','ELEMENT_TABLE_ROW_WITH_TEXT','deletion','root','mapper','isInContent','accept','_descriptionFactory','createTableWalker','setSelection','tableColumn','getSuggestion','order','insertTable'];(function(_0x399261,_0x4c19fd){const _0x2fd0ec=function(_0x4de193){while(--_0x4de193){_0x399261['push'](_0x399261['shift']());}};_0x2fd0ec(++_0x4c19fd);}(_0x4c19,0x156));const _0x2fd0=function(_0x399261,_0x4c19fd){_0x399261=_0x399261-0x0;let _0x2fd0ec=_0x4c19[_0x399261];return _0x2fd0ec;};import{Plugin as _0x5c2007}from'ckeditor5/src/core';import{LiveRange as _0x26dd57}from'ckeditor5/src/engine';import{setHighlightHandling as _0x363c34}from'ckeditor5/src/widget';import{getTranslation as _0x4b0439}from'../utils/common-translations';export default class wt extends _0x5c2007{constructor(_0x4b22a8){super(_0x4b22a8),this['_tablePostFixingSubtypes']=[_0x2fd0('0x81'),_0x2fd0('0x47')],this['_tableSuggestions']=new Set();}[_0x2fd0('0x59')](){const _0x1a33ac=this[_0x2fd0('0x6c')],_0x2b16d3=_0x1a33ac['model'][_0x2fd0('0x66')]['selection'];if(!_0x1a33ac['plugins'][_0x2fd0('0x3c')](_0x2fd0('0x2c')))return;const _0x26f189=_0x1a33ac[_0x2fd0('0x9')],_0x10db91=_0x1a33ac['plugins'][_0x2fd0('0x28')](_0x2fd0('0x56')),_0x105e92=_0x1a33ac['plugins']['get']('TableUtils');_0x10db91[_0x2fd0('0x44')][_0x2fd0('0x60')](_0x2fd0('0x34'),_0x28e0dc=>_0x4b0439(_0x26f189,_0x2fd0('0x52'),_0x28e0dc)),this[_0x2fd0('0x7a')](),_0x10db91[_0x2fd0('0x21')](_0x2fd0('0x4a')),_0x10db91[_0x2fd0('0x21')](_0x2fd0('0x70')),_0x10db91[_0x2fd0('0x21')](_0x2fd0('0x1e'));for(const _0x57cfc8 of['insertTableRowAbove','insertTableRowBelow']){const _0x356f43=_0x1a33ac[_0x2fd0('0x73')]['get'](_0x57cfc8);_0x10db91['enableCommand'](_0x57cfc8,_0x230ead=>{_0x1a33ac[_0x2fd0('0xd')][_0x2fd0('0x5')](_0x445f64=>{_0x230ead();const _0x160a8a=_0x2fd0('0x77')===_0x356f43[_0x2fd0('0x49')],_0x46d357=_0x105e92[_0x2fd0('0x69')](_0x2b16d3),_0x48d93d=_0x105e92[_0x2fd0('0x3b')](_0x46d357),_0x548789=_0x160a8a?_0x48d93d[_0x2fd0('0x29')]-0x1:_0x48d93d[_0x2fd0('0x2e')]+0x1,_0x225989=_0x46d357[0x0][_0x2fd0('0x5c')](_0x2fd0('0x34')),_0x3abd62=_0x105e92[_0x2fd0('0x45')](_0x225989,{'startRow':_0x548789,'endRow':_0x548789}),_0x5274ad=Array[_0x2fd0('0x5d')](_0x3abd62)[_0x2fd0('0x58')](_0x25e584=>_0x445f64[_0x2fd0('0x74')](_0x25e584[_0x2fd0('0x67')]));_0x10db91[_0x2fd0('0xa')](_0x5274ad,_0x2fd0('0x81'));});});}for(const _0x4ea1f8 of[_0x2fd0('0x25'),_0x2fd0('0x84')]){const _0xe2f5db=_0x1a33ac[_0x2fd0('0x73')][_0x2fd0('0x28')](_0x4ea1f8);_0x10db91[_0x2fd0('0x21')](_0x4ea1f8,_0xb6f201=>{_0x1a33ac['model'][_0x2fd0('0x5')](_0x2a06d1=>{_0xb6f201();const _0x374303=_0x2fd0('0x76')===_0xe2f5db[_0x2fd0('0x49')],_0x52592a=_0x105e92[_0x2fd0('0x69')](_0x2b16d3),_0x5a8ed9=_0x105e92['getColumnIndexes'](_0x52592a),_0x2dc6ce=_0x374303?_0x5a8ed9[_0x2fd0('0x29')]-0x1:_0x5a8ed9['last']+0x1,_0x4a7a6d=_0x52592a[0x0][_0x2fd0('0x5c')](_0x2fd0('0x34')),_0x3bf7e7=_0x105e92[_0x2fd0('0x45')](_0x4a7a6d,{'startRow':0x0,'column':_0x2dc6ce,'includeAllSlots':!0x1}),_0x1ea735=Array['from'](_0x3bf7e7)['map'](_0x21d14a=>_0x2a06d1['createRangeOn'](_0x21d14a['cell']));_0x10db91[_0x2fd0('0xa')](_0x1ea735,_0x2fd0('0x47'));});});}for(const _0x2b20b9 of[_0x2fd0('0x51'),_0x2fd0('0x8')]){const _0xbb12ca=_0x2b20b9[_0x2fd0('0x26')](0xb),_0x1cdb67=_0xbb12ca[_0x2fd0('0x2a')](),_0x2af3ae=_0x1cdb67[_0x2fd0('0x26')](0x0,0x3)+_0x2fd0('0x64'),_0x3066ee='table'+_0xbb12ca,_0x418467=_0x2fd0('0x2f')+_0xbb12ca,_0x43ebac=_0x2fd0('0xc')+_0xbb12ca;_0x10db91[_0x2fd0('0x21')](_0x2b20b9,()=>{_0x1a33ac[_0x2fd0('0xd')][_0x2fd0('0x5')](_0x1e81e6=>{const _0x399132=_0x105e92[_0x2fd0('0x69')](_0x2b16d3),_0x402759=_0x399132[0x0][_0x2fd0('0x5c')]('table');let _0x95fe8c;if('removeTableRow'==_0x2b20b9){const _0x682a99=_0x105e92[_0x2fd0('0x3b')](_0x399132);_0x95fe8c={'startRow':_0x682a99[_0x2fd0('0x29')],'endRow':_0x682a99[_0x2fd0('0x2e')],'includeAllSlots':!0x0};}else{const _0x3946b3=_0x105e92[_0x2fd0('0x78')](_0x399132);_0x95fe8c={'startColumn':_0x3946b3['first'],'endColumn':_0x3946b3[_0x2fd0('0x2e')],'includeAllSlots':!0x0};}const _0x564bb6=_0x105e92[_0x2fd0('0x45')](_0x402759,_0x95fe8c),_0x32ee8b=Array[_0x2fd0('0x5d')](_0x564bb6)[_0x2fd0('0x58')](({cell:_0x43dd59})=>_0x43dd59),_0x39f7cf=se(_0x32ee8b[_0x2fd0('0x36')](_0x10317b=>_0x10317b[_0x2fd0('0x68')](_0x2af3ae))),_0x53032c=se(_0x32ee8b[_0x2fd0('0x36')](_0x357c30=>!_0x357c30[_0x2fd0('0x68')](_0x2af3ae)))[_0x2fd0('0x58')](_0x3df708=>_0x1e81e6[_0x2fd0('0x74')](_0x3df708)),_0x25e28c=_0x10db91[_0x2fd0('0x5f')](_0x53032c,_0x3066ee);if(_0x25e28c&&(_0x2fd0('0x81')==_0x25e28c['subType']||_0x2fd0('0x47')==_0x25e28c[_0x2fd0('0x1f')])){const _0x51e4d6=this[_0x2fd0('0x75')](_0x25e28c);for(const _0x1cf858 of _0x39f7cf){const _0x3fa86c=_0x1e81e6['createRangeOn'](_0x1cf858),_0x9ba377=_0x105e92[_0x2fd0('0x23')](_0x1cf858),_0x133728=_0x1cf858[_0x2fd0('0x8a')](_0x2af3ae)-0x1,_0x19dbdb=_0x51e4d6[_0x418467],_0x17be34=_0x51e4d6[_0x43ebac];_0x19dbdb<=_0x9ba377[_0x1cdb67]&&_0x9ba377[_0x1cdb67]+_0x133728<=_0x17be34&&_0x25e28c[_0x2fd0('0x27')](_0x3fa86c);}}});});}function _0x5e9168(_0x31fda3){const _0x581399=Array[_0x2fd0('0x5d')](_0x2b16d3[_0x2fd0('0x4d')]())[_0x2fd0('0x58')](_0x287593=>_0x26dd57[_0x2fd0('0x87')](_0x287593));_0x1a33ac['model']['change'](_0x274f7a=>{const _0x3cf654=_0x274f7a[_0x2fd0('0x22')];_0x31fda3=_0x31fda3[_0x2fd0('0x36')](_0x512996=>'$graveyard'!=_0x512996['root'][_0x2fd0('0x86')]),_0x274f7a['setSelection'](_0x31fda3),_0x1a33ac[_0x2fd0('0x73')][_0x2fd0('0x28')](_0x2fd0('0x51'))[_0x2fd0('0x7b')](),_0x1a33ac[_0x2fd0('0x7')](_0x2fd0('0x51'),{'forceDefaultExecution':!0x0}),_0x1a33ac[_0x2fd0('0xd')][_0x2fd0('0x3a')](()=>{_0x1a33ac[_0x2fd0('0xd')][_0x2fd0('0x3a')](_0x3cf654,_0x221fe9=>{const _0x2b7d59=_0x581399[_0x2fd0('0x36')](_0x5b8061=>_0x2fd0('0x38')!=_0x5b8061[_0x2fd0('0x40')]['rootName']);_0x2b7d59['length']>0x0&&_0x221fe9[_0x2fd0('0x46')](_0x2b7d59);for(const _0x14e7c8 of _0x581399)_0x14e7c8[_0x2fd0('0x19')]();});});});}function _0x59de36(_0x2f46a1){_0x1a33ac[_0x2fd0('0xd')]['change'](_0x4a9df9=>{const _0x55ae97=Array[_0x2fd0('0x5d')](_0x2b16d3[_0x2fd0('0x4d')]())[_0x2fd0('0x58')](_0x36daa0=>_0x26dd57['fromRange'](_0x36daa0)),_0x4fd34f=[];for(const _0x2e3230 of _0x2f46a1)for(const _0x39137b of _0x2e3230[_0x2fd0('0x17')]({'shallow':!0x0}))_0x4fd34f[_0x2fd0('0x57')](_0x39137b);for(const _0x2b61e5 of _0x4fd34f)'$graveyard'!=_0x2b61e5[_0x2fd0('0x40')][_0x2fd0('0x86')]&&(_0x4a9df9[_0x2fd0('0x46')](_0x4a9df9[_0x2fd0('0x2')](_0x2b61e5,0x0)),_0x1a33ac['commands'][_0x2fd0('0x28')]('removeTableColumn')[_0x2fd0('0x7b')](),_0x1a33ac['execute'](_0x2fd0('0x8'),{'forceDefaultExecution':!0x0}));const _0x3dbb56=_0x55ae97[_0x2fd0('0x36')](_0x2adde3=>_0x2fd0('0x38')!=_0x2adde3[_0x2fd0('0x40')][_0x2fd0('0x86')]);_0x3dbb56[_0x2fd0('0xf')]>0x0&&_0x4a9df9[_0x2fd0('0x46')](_0x3dbb56);for(const _0x258be2 of _0x55ae97)_0x258be2[_0x2fd0('0x19')]();});}function _0x3ad5de(_0x9add1d,_0x2592ac){return _0x2592ac[_0x2fd0('0x2b')](_0x5a28e9=>_0x9add1d[_0x2fd0('0x4b')](_0x41f851=>_0x41f851[_0x2fd0('0x7d')][_0x2fd0('0x6e')](_0x5a28e9[_0x2fd0('0x53')])||_0x5a28e9['end'][_0x2fd0('0x6e')](_0x41f851[_0x2fd0('0x53')])));}function _0x10c26a(_0x4170e0,_0x5190f1){return _0x4170e0[_0x2fd0('0x4b')](_0x28ec82=>_0x5190f1[_0x2fd0('0x4b')](_0x4337ff=>_0x28ec82[_0x2fd0('0x7d')]['isTouching'](_0x4337ff['start'])));}_0x1a33ac[_0x2fd0('0x88')][_0x2fd0('0x10')]['on'](_0x2fd0('0x39'),(_0x2cdb63,_0x2b0d51,_0x5558ce)=>{if(!_0x5558ce[_0x2fd0('0x1')][_0x2fd0('0x11')])return;const _0x3e28e1=_0x2b0d51[_0x2fd0('0x33')];if(!_0x3e28e1)return;const _0x338552=_0x5558ce[_0x2fd0('0x41')][_0x2fd0('0x4f')](_0x3e28e1);function _0x58c561(_0x864c70){return Array[_0x2fd0('0x71')](_0x864c70)?_0x864c70:[_0x864c70];}_0x338552&&'tableCell'===_0x3e28e1[_0x2fd0('0x1a')]&&_0x363c34(_0x338552,_0x5558ce[_0x2fd0('0x7c')],(_0x57fde3,_0x333792,_0x3d3e7e)=>_0x3d3e7e[_0x2fd0('0xb')](_0x58c561(_0x333792['classes']),_0x57fde3),(_0x2f0b94,_0x2dda86,_0x18c197)=>_0x18c197[_0x2fd0('0x12')](_0x58c561(_0x2dda86['classes']),_0x2f0b94));},{'priority':_0x2fd0('0x89')}),_0x10db91[_0x2fd0('0x44')][_0x2fd0('0x61')](_0x341df8=>{if(_0x2fd0('0x55')!=_0x341df8['type']&&_0x2fd0('0x3f')!=_0x341df8[_0x2fd0('0x79')])return;const _0x439ac7=_0x341df8['getContainedElement']();if(null!=_0x439ac7&&_0x439ac7['is'](_0x2fd0('0x6d'),_0x2fd0('0x34'))){if(_0x2fd0('0x55')==_0x341df8['type']){const _0x54011f=_0x341df8[_0x2fd0('0x17')]()[_0x2fd0('0x36')](_0xeca5f=>_0xeca5f['is'](_0x2fd0('0x62')))[_0x2fd0('0x58')](_0x5ace35=>_0x5ace35[_0x2fd0('0x88')]);if(_0x54011f[_0x2fd0('0xf')])return{'type':_0x2fd0('0x55'),'content':_0x4b0439(_0x26f189,'*Insert:*\x20%0',_0x4b0439(_0x26f189,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x54011f[_0x2fd0('0x18')]('\x20')+'\x22'))};}if('deletion'==_0x341df8[_0x2fd0('0x79')]){const _0x51c648=_0x341df8[_0x2fd0('0x17')]()[_0x2fd0('0x36')](_0xda894=>_0xda894['is'](_0x2fd0('0x62')))['map'](_0x1b3431=>_0x1b3431[_0x2fd0('0x88')]);if(_0x51c648[_0x2fd0('0xf')])return{'type':_0x2fd0('0x3f'),'content':_0x4b0439(_0x26f189,'*Remove:*\x20%0',_0x4b0439(_0x26f189,_0x2fd0('0x14'),'\x22'+_0x51c648[_0x2fd0('0x18')]('\x20')+'\x22'))};}}}),_0x10db91[_0x2fd0('0x44')][_0x2fd0('0x61')](_0x368aa1=>{if(_0x2fd0('0x81')==_0x368aa1[_0x2fd0('0x1f')]){const _0x3262f7=_0x368aa1[_0x2fd0('0x17')]()[_0x2fd0('0x36')](_0xb74ff3=>_0xb74ff3['is'](_0x2fd0('0x62')))['map'](_0x1ee206=>_0x1ee206[_0x2fd0('0x88')]),_0x5e44e8=this[_0x2fd0('0x75')](_0x368aa1),_0x35f478=_0x5e44e8[_0x2fd0('0x32')]-_0x5e44e8['minRow']+0x1;if('insertion'==_0x368aa1[_0x2fd0('0x79')])return _0x3262f7[_0x2fd0('0xf')]?{'type':_0x2fd0('0x55'),'content':_0x4b0439(_0x26f189,_0x2fd0('0x72'),_0x4b0439(_0x26f189,_0x2fd0('0x3e'),[_0x35f478,'\x22'+_0x3262f7[_0x2fd0('0x18')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x4b0439(_0x26f189,_0x2fd0('0x72'),_0x4b0439(_0x26f189,_0x2fd0('0x37'),_0x35f478))};if(_0x2fd0('0x3f')==_0x368aa1[_0x2fd0('0x79')])return _0x3262f7[_0x2fd0('0xf')]?{'type':_0x2fd0('0x3f'),'content':_0x4b0439(_0x26f189,_0x2fd0('0x4e'),_0x4b0439(_0x26f189,_0x2fd0('0x3e'),[_0x35f478,'\x22'+_0x3262f7[_0x2fd0('0x18')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x4b0439(_0x26f189,_0x2fd0('0x4e'),_0x4b0439(_0x26f189,'ELEMENT_TABLE_ROW',_0x35f478))};}if(_0x2fd0('0x47')==_0x368aa1[_0x2fd0('0x1f')]){const _0x24a28d=_0x368aa1[_0x2fd0('0x17')]()['filter'](_0xa007af=>_0xa007af['is']('$textProxy'))[_0x2fd0('0x58')](_0x2a1dc7=>_0x2a1dc7[_0x2fd0('0x88')]),_0x2adef8=this[_0x2fd0('0x75')](_0x368aa1),_0x142d6b=_0x2adef8[_0x2fd0('0x80')]-_0x2adef8[_0x2fd0('0xe')]+0x1;if(_0x2fd0('0x55')==_0x368aa1[_0x2fd0('0x79')])return _0x24a28d[_0x2fd0('0xf')]?{'type':_0x2fd0('0x55'),'content':_0x4b0439(_0x26f189,_0x2fd0('0x72'),_0x4b0439(_0x26f189,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x142d6b,'\x22'+_0x24a28d['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x4b0439(_0x26f189,'*Insert:*\x20%0',_0x4b0439(_0x26f189,_0x2fd0('0x1b'),_0x142d6b))};if(_0x2fd0('0x3f')==_0x368aa1['type'])return _0x24a28d['length']?{'type':_0x2fd0('0x3f'),'content':_0x4b0439(_0x26f189,_0x2fd0('0x4e'),_0x4b0439(_0x26f189,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x142d6b,'\x22'+_0x24a28d[_0x2fd0('0x18')]('\x20')+'\x22']))}:{'type':_0x2fd0('0x3f'),'content':_0x4b0439(_0x26f189,_0x2fd0('0x4e'),_0x4b0439(_0x26f189,_0x2fd0('0x1b'),_0x142d6b))};}}),_0x10db91['_suggestionFactory'][_0x2fd0('0x7e')]('insertion',_0x2fd0('0x81'),'discard',_0x5e9168),_0x10db91[_0x2fd0('0x65')][_0x2fd0('0x7e')](_0x2fd0('0x3f'),_0x2fd0('0x81'),_0x2fd0('0x43'),_0x5e9168),_0x10db91['_suggestionFactory'][_0x2fd0('0x7e')](_0x2fd0('0x55'),_0x2fd0('0x47'),_0x2fd0('0x3d'),_0x59de36),_0x10db91[_0x2fd0('0x65')][_0x2fd0('0x7e')]('deletion','tableColumn','accept',_0x59de36),_0x10db91[_0x2fd0('0x65')][_0x2fd0('0x7e')](_0x2fd0('0x55'),_0x2fd0('0x47'),_0x2fd0('0x18'),_0x3ad5de),_0x10db91[_0x2fd0('0x65')]['registerCustomCallback'](_0x2fd0('0x3f'),'tableColumn',_0x2fd0('0x18'),_0x3ad5de),_0x10db91[_0x2fd0('0x65')]['registerCustomCallback'](_0x2fd0('0x55'),_0x2fd0('0x81'),_0x2fd0('0x18'),_0x10c26a),_0x10db91[_0x2fd0('0x65')][_0x2fd0('0x7e')](_0x2fd0('0x3f'),_0x2fd0('0x81'),_0x2fd0('0x18'),_0x10c26a);}[_0x2fd0('0x50')](){const _0xdc8c2d=this[_0x2fd0('0x6c')],_0x4b659d=_0xdc8c2d[_0x2fd0('0xd')][_0x2fd0('0x66')]['selection'];return(_0x415da1,_0x4f494a)=>{_0xdc8c2d[_0x2fd0('0xd')]['change'](_0x508c34=>{const {commandName:_0xc3e43b,commandParams:_0x43124e}=_0x4f494a;let _0x4429c5=_0x415da1[0x0][_0x2fd0('0x7d')]['nodeBefore'];_0x43124e&&_0x43124e[0x0]&&!0x1===_0x43124e[0x0][_0x2fd0('0x2d')]&&(_0x4429c5=_0x415da1[0x0][_0x2fd0('0x53')][_0x2fd0('0x5e')]);const _0x5ccdb8=_0x508c34[_0x2fd0('0x35')](_0x4429c5);if(_0x2fd0('0x38')==_0x5ccdb8[_0x2fd0('0x40')]['rootName'])return;const _0x16cff6=Array[_0x2fd0('0x5d')](_0x4b659d[_0x2fd0('0x4d')]())[_0x2fd0('0x58')](_0xd30fd5=>_0x26dd57[_0x2fd0('0x87')](_0xd30fd5));_0x508c34[_0x2fd0('0x46')](_0x5ccdb8),_0xdc8c2d[_0x2fd0('0x73')][_0x2fd0('0x28')](_0xc3e43b)[_0x2fd0('0x7b')](),_0x43124e[_0x2fd0('0x57')]({'forceDefaultExecution':!0x0}),_0xdc8c2d[_0x2fd0('0x7')](_0xc3e43b,..._0x43124e);const _0x8fdfaf=_0x16cff6[_0x2fd0('0x36')](_0x217bdf=>_0x2fd0('0x38')!=_0x217bdf[_0x2fd0('0x40')][_0x2fd0('0x86')]);_0x8fdfaf[_0x2fd0('0xf')]>0x0&&_0x508c34[_0x2fd0('0x46')](_0x8fdfaf);for(const _0x5c2f79 of _0x16cff6)_0x5c2f79[_0x2fd0('0x19')]();});};}[_0x2fd0('0x82')](_0x43972a){const _0x4b1f54=this[_0x2fd0('0x6c')]['plugins'][_0x2fd0('0x28')](_0x2fd0('0x54'));let _0x5300da=Number[_0x2fd0('0x1c')],_0x1a68c9=Number[_0x2fd0('0x3')],_0x26e0fb=Number[_0x2fd0('0x1c')],_0x559a31=Number[_0x2fd0('0x3')];for(const _0x314c55 of _0x43972a){if(_0x2fd0('0x38')==_0x314c55[_0x2fd0('0x40')][_0x2fd0('0x86')])continue;const {row:_0x44455e,column:_0x9dec06}=_0x4b1f54['getCellLocation'](_0x314c55),_0x2b27f5=_0x314c55['hasAttribute'](_0x2fd0('0x4c'))?_0x314c55[_0x2fd0('0x8a')](_0x2fd0('0x4c'))-0x1:0x0,_0x90daa=_0x314c55[_0x2fd0('0x68')]('colspan')?_0x314c55[_0x2fd0('0x8a')](_0x2fd0('0x15'))-0x1:0x0;_0x5300da=_0x44455e<_0x5300da?_0x44455e:_0x5300da,_0x1a68c9=_0x44455e+_0x2b27f5>_0x1a68c9?_0x44455e+_0x2b27f5:_0x1a68c9,_0x26e0fb=_0x9dec06<_0x26e0fb?_0x9dec06:_0x26e0fb,_0x559a31=_0x9dec06+_0x90daa>_0x559a31?_0x9dec06+_0x90daa:_0x559a31;}return{'minRow':_0x5300da,'maxRow':_0x1a68c9,'minColumn':_0x26e0fb,'maxColumn':_0x559a31};}['_setupColumnsRowsFixing'](){const _0x4f022e=this['editor'],_0x1c5bf2=_0x4f022e[_0x2fd0('0x5a')]['get'](_0x2fd0('0x56')),_0x1d82e4=_0x4f022e['plugins']['get'](_0x2fd0('0x54'));_0x4f022e[_0x2fd0('0xd')][_0x2fd0('0x66')]['on'](_0x2fd0('0x6'),()=>{const _0x1ae7f4=Array['from'](_0x4f022e['model'][_0x2fd0('0x66')]['differ'][_0x2fd0('0x4')]());for(const {name:_0x41ee3b,data:_0xd7a6b}of _0x1ae7f4){const {group:_0x1c83c6,id:_0x45f778,subType:_0x30aea5}=_0x1c5bf2['_splitMarkerName'](_0x41ee3b);if(_0x2fd0('0x5b')!=_0x1c83c6)continue;if(null!=_0xd7a6b[_0x2fd0('0x20')])continue;const _0x1552ed=_0x1c5bf2[_0x2fd0('0x48')](_0x45f778);this[_0x2fd0('0x6a')][_0x2fd0('0x30')](_0x30aea5)&&this[_0x2fd0('0x7f')][_0x2fd0('0x13')](_0x1552ed);}},{'priority':_0x2fd0('0x31')});const _0x567da6=(_0x43b4cf,_0x36eb26)=>{let _0x2297a9=!0x1;const _0x47d328=_0x36eb26[_0x2fd0('0x74')](_0x43b4cf),_0x4e4733=_0x43b4cf[_0x2fd0('0x5c')]('table'),_0xc40ee=_0x1d82e4[_0x2fd0('0x23')](_0x43b4cf);for(const _0x1969bc of this[_0x2fd0('0x7f')]){const _0x30b473=_0x1969bc['subType'],_0x3b3edb=_0x30b473[_0x2fd0('0x83')](_0x2fd0('0x0')),_0x58d621=_0x30b473['substr'](_0x3b3edb?0xa:0x5),_0x12bf8e=_0x58d621[_0x2fd0('0x2a')](),_0x1cc5c6=_0x12bf8e[_0x2fd0('0x26')](0x0,0x3)+'span',_0x487997=_0x2fd0('0x2f')+_0x58d621,_0x46cf2a=_0x2fd0('0xc')+_0x58d621;if(!_0x1969bc[_0x2fd0('0x42')])continue;if(_0x4e4733!=_0x1969bc[_0x2fd0('0x6b')]()['start'][_0x2fd0('0x5c')](_0x2fd0('0x34')))continue;if(_0x1969bc['isIntersectingWithRange'](_0x47d328))continue;const _0x189885=_0x43b4cf[_0x2fd0('0x68')](_0x1cc5c6)?_0x43b4cf['getAttribute'](_0x1cc5c6)-0x1:0x0,_0x176583=this[_0x2fd0('0x75')](_0x1969bc),_0xa09d10=_0x176583[_0x487997],_0x323c18=_0x176583[_0x46cf2a];_0xa09d10<=_0xc40ee[_0x12bf8e]&&_0xc40ee[_0x12bf8e]+_0x189885<=_0x323c18&&(_0x1969bc[_0x2fd0('0x27')](_0x47d328),_0x2297a9=!0x0);}return _0x2297a9;};_0x4f022e[_0x2fd0('0xd')][_0x2fd0('0x66')][_0x2fd0('0x16')](_0x55adc8=>{let _0x4a7cbc=!0x1;for(const _0x2552a8 of _0x4f022e[_0x2fd0('0xd')][_0x2fd0('0x66')][_0x2fd0('0x1d')]['getChanges']())if(_0x2fd0('0x6f')==_0x2552a8['type']){if('tableRow'==_0x2552a8['name'])for(const _0x1e8b52 of _0x2552a8[_0x2fd0('0x85')]['nodeAfter'][_0x2fd0('0x63')]())_0x4a7cbc=_0x4a7cbc||_0x567da6(_0x1e8b52,_0x55adc8);else'tableCell'==_0x2552a8['name']&&(_0x4a7cbc=_0x4a7cbc||_0x567da6(_0x2552a8['position'][_0x2fd0('0x5e')],_0x55adc8));}return _0x4a7cbc;});}[_0x2fd0('0x75')](_0xd5a485){return this[_0x2fd0('0x82')](_0xd5a485['getRanges']()[_0x2fd0('0x58')](_0x466330=>_0x466330['start'][_0x2fd0('0x5e')]));}}function se(_0x59c0b){return Array[_0x2fd0('0x5d')](new Set(_0x59c0b)[_0x2fd0('0x24')]());}
|
|
23
|
+
const _0x3872=['fromRange','nodeBefore','isTouching','getColumnIndexes','change','TrackChangesEditing','removeTableColumn','getAttribute','includes','setSelection','type','data','span','some','differ','insertion','_suggestionFactory','options','addRange','batch','createPositionAt','getItems','markMultiRangeInsertion','min','root','$textProxy','registerDescriptionCallback','from','rowspan','getChangedMarkers','first','insert','oldRange','classes','forceValue','_getCoordsForCells','item','element','get','getSuggestion','accept','position','_descriptionFactory','TableUtils','join','editor','enableCommand','every','removeClass','max','addClass','insertTable','table','low','getContainedElement','rootName','selectTableColumn','addMarker:suggestion','_setupColumnsRowsFixing','enqueueChange','has','discard','tableColumn','highest','plugins','map','registerCustomCallback','isEqual','MIN_SAFE_INTEGER','toViewElement','_tableSuggestions','deletion','*Insert:*\x20%0','left','afterInit','ELEMENT_TABLE_COLUMN','cell','ELEMENT_TABLE_WITH_TEXT','push','ELEMENT_TABLE_COLUMN_WITH_TEXT','getRowIndexes','insertTableColumnLeft','getRanges','insertTableRowAbove','getChildren','hasAttribute','execute','downcastDispatcher','detach','_acceptFormatSuggestionCallbackFactory','maxRow','insertTableColumnRight','end','name','subType','ELEMENT_TABLE','minColumn','length','values','MAX_SAFE_INTEGER','selection','findAncestor','_splitMarkerName','tableRow','createRangeIn','$graveyard','start','add','getSelectionAffectedTableCells','*Remove:*\x20%0','ELEMENT_TABLE_ROW_WITH_TEXT','change:data','registerPostFixer','commands','substr','order','writer','minRow','suggestion','mapper','tableCell','filter','document','nodeAfter','registerElementLabel','selectTableRow','createRangeOn','tablePaste','model','createTableWalker','getCellLocation','removeTableRow','showSuggestionHighlights','toLowerCase','_getSuggestionCoords','last','ELEMENT_TABLE_ROW','startsWith','colspan'];(function(_0x38faa0,_0x387282){const _0x411b7a=function(_0x5e5b75){while(--_0x5e5b75){_0x38faa0['push'](_0x38faa0['shift']());}};_0x411b7a(++_0x387282);}(_0x3872,0x153));const _0x411b=function(_0x38faa0,_0x387282){_0x38faa0=_0x38faa0-0x0;let _0x411b7a=_0x3872[_0x38faa0];return _0x411b7a;};import{Plugin as _0x33c387}from'ckeditor5/src/core';import{LiveRange as _0x3a4bb3}from'ckeditor5/src/engine';import{setHighlightHandling as _0x17e6a1}from'ckeditor5/src/widget';import{getTranslation as _0x59542e}from'../utils/common-translations';export default class wt extends _0x33c387{constructor(_0x4da7bf){super(_0x4da7bf),this['_tablePostFixingSubtypes']=[_0x411b('0x2a'),_0x411b('0x1')],this[_0x411b('0x9')]=new Set();}[_0x411b('0xd')](){const _0x3a007f=this[_0x411b('0x7b')],_0x308396=_0x3a007f[_0x411b('0x43')]['document'][_0x411b('0x27')];if(!_0x3a007f[_0x411b('0x3')][_0x411b('0x8a')]('TableEditing'))return;const _0x52a15a=_0x3a007f['locale'],_0x2eb362=_0x3a007f[_0x411b('0x3')][_0x411b('0x74')](_0x411b('0x53')),_0x212146=_0x3a007f['plugins'][_0x411b('0x74')](_0x411b('0x79'));_0x2eb362[_0x411b('0x78')][_0x411b('0x3f')](_0x411b('0x82'),_0x48e5f1=>_0x59542e(_0x52a15a,_0x411b('0x22'),_0x48e5f1)),this[_0x411b('0x88')](),_0x2eb362[_0x411b('0x7c')](_0x411b('0x81')),_0x2eb362[_0x411b('0x7c')](_0x411b('0x40')),_0x2eb362[_0x411b('0x7c')](_0x411b('0x86'));for(const _0xc6496 of[_0x411b('0x16'),'insertTableRowBelow']){const _0x474667=_0x3a007f[_0x411b('0x34')][_0x411b('0x74')](_0xc6496);_0x2eb362[_0x411b('0x7c')](_0xc6496,_0x28c17c=>{_0x3a007f[_0x411b('0x43')][_0x411b('0x52')](_0x4e9520=>{_0x28c17c();const _0x5f5456='above'===_0x474667['order'],_0x3335e6=_0x212146[_0x411b('0x2f')](_0x308396),_0xd4d8ad=_0x212146[_0x411b('0x13')](_0x3335e6),_0x3fa050=_0x5f5456?_0xd4d8ad[_0x411b('0x6c')]-0x1:_0xd4d8ad[_0x411b('0x4a')]+0x1,_0x5caf17=_0x3335e6[0x0][_0x411b('0x28')](_0x411b('0x82')),_0x307f8b=_0x212146[_0x411b('0x44')](_0x5caf17,{'startRow':_0x3fa050,'endRow':_0x3fa050}),_0x1f3f2d=Array['from'](_0x307f8b)[_0x411b('0x4')](_0x5be1c3=>_0x4e9520[_0x411b('0x41')](_0x5be1c3[_0x411b('0xf')]));_0x2eb362[_0x411b('0x64')](_0x1f3f2d,_0x411b('0x2a'));});});}for(const _0x2f449b of[_0x411b('0x14'),_0x411b('0x1e')]){const _0x3a85cd=_0x3a007f[_0x411b('0x34')]['get'](_0x2f449b);_0x2eb362['enableCommand'](_0x2f449b,_0x45d3fa=>{_0x3a007f['model']['change'](_0xd3ef65=>{_0x45d3fa();const _0x27b9ed=_0x411b('0xc')===_0x3a85cd[_0x411b('0x36')],_0x3a8586=_0x212146['getSelectionAffectedTableCells'](_0x308396),_0x2efe9f=_0x212146[_0x411b('0x51')](_0x3a8586),_0xa3350b=_0x27b9ed?_0x2efe9f[_0x411b('0x6c')]-0x1:_0x2efe9f[_0x411b('0x4a')]+0x1,_0x39ed77=_0x3a8586[0x0][_0x411b('0x28')](_0x411b('0x82')),_0x31219c=_0x212146[_0x411b('0x44')](_0x39ed77,{'startRow':0x0,'column':_0xa3350b,'includeAllSlots':!0x1}),_0xb7fa32=Array[_0x411b('0x69')](_0x31219c)['map'](_0xd8ef0a=>_0xd3ef65['createRangeOn'](_0xd8ef0a[_0x411b('0xf')]));_0x2eb362[_0x411b('0x64')](_0xb7fa32,'tableColumn');});});}for(const _0xfa1465 of['removeTableRow',_0x411b('0x54')]){const _0x430439=_0xfa1465[_0x411b('0x35')](0xb),_0x5c9f5d=_0x430439['toLowerCase'](),_0x3d198a=_0x5c9f5d['substr'](0x0,0x3)+_0x411b('0x5a'),_0x4f1a17=_0x411b('0x82')+_0x430439,_0x16e7fa=_0x411b('0x65')+_0x430439,_0x5251ff=_0x411b('0x7f')+_0x430439;_0x2eb362[_0x411b('0x7c')](_0xfa1465,()=>{_0x3a007f[_0x411b('0x43')]['change'](_0x1154e8=>{const _0x397a95=_0x212146[_0x411b('0x2f')](_0x308396),_0x28b705=_0x397a95[0x0]['findAncestor'](_0x411b('0x82'));let _0x5aa692;if('removeTableRow'==_0xfa1465){const _0x1033c3=_0x212146[_0x411b('0x13')](_0x397a95);_0x5aa692={'startRow':_0x1033c3['first'],'endRow':_0x1033c3[_0x411b('0x4a')],'includeAllSlots':!0x0};}else{const _0x1d3851=_0x212146[_0x411b('0x51')](_0x397a95);_0x5aa692={'startColumn':_0x1d3851[_0x411b('0x6c')],'endColumn':_0x1d3851[_0x411b('0x4a')],'includeAllSlots':!0x0};}const _0x3fd4f2=_0x212146[_0x411b('0x44')](_0x28b705,_0x5aa692),_0x128884=Array[_0x411b('0x69')](_0x3fd4f2)[_0x411b('0x4')](({cell:_0x55526a})=>_0x55526a),_0x23e463=se(_0x128884[_0x411b('0x3c')](_0x5a2fb7=>_0x5a2fb7['hasAttribute'](_0x3d198a))),_0x4df232=se(_0x128884[_0x411b('0x3c')](_0x5dd21d=>!_0x5dd21d[_0x411b('0x18')](_0x3d198a)))[_0x411b('0x4')](_0x37e665=>_0x1154e8[_0x411b('0x41')](_0x37e665)),_0x4195cf=_0x2eb362['markMultiRangeDeletion'](_0x4df232,_0x4f1a17);if(_0x4195cf&&(_0x411b('0x2a')==_0x4195cf[_0x411b('0x21')]||_0x411b('0x1')==_0x4195cf[_0x411b('0x21')])){const _0x5001bf=this[_0x411b('0x49')](_0x4195cf);for(const _0x16ac50 of _0x23e463){const _0x424d1a=_0x1154e8[_0x411b('0x41')](_0x16ac50),_0x5c6219=_0x212146[_0x411b('0x45')](_0x16ac50),_0x1bd24e=_0x16ac50[_0x411b('0x55')](_0x3d198a)-0x1,_0x3cf6ef=_0x5001bf[_0x16e7fa],_0x445f58=_0x5001bf[_0x5251ff];_0x3cf6ef<=_0x5c6219[_0x5c9f5d]&&_0x5c6219[_0x5c9f5d]+_0x1bd24e<=_0x445f58&&_0x4195cf[_0x411b('0x60')](_0x424d1a);}}});});}function _0x1317f0(_0x2482b7){const _0x51d8df=Array[_0x411b('0x69')](_0x308396[_0x411b('0x15')]())[_0x411b('0x4')](_0x3393c3=>_0x3a4bb3[_0x411b('0x4e')](_0x3393c3));_0x3a007f['model'][_0x411b('0x52')](_0x515d5d=>{const _0x5e982e=_0x515d5d[_0x411b('0x61')];_0x2482b7=_0x2482b7[_0x411b('0x3c')](_0x4933c9=>_0x411b('0x2c')!=_0x4933c9[_0x411b('0x66')]['rootName']),_0x515d5d[_0x411b('0x57')](_0x2482b7),_0x3a007f[_0x411b('0x34')][_0x411b('0x74')](_0x411b('0x46'))['refresh'](),_0x3a007f[_0x411b('0x19')](_0x411b('0x46'),{'forceDefaultExecution':!0x0}),_0x3a007f['model'][_0x411b('0x89')](()=>{_0x3a007f[_0x411b('0x43')][_0x411b('0x89')](_0x5e982e,_0x12822a=>{const _0x147b65=_0x51d8df['filter'](_0x272900=>_0x411b('0x2c')!=_0x272900[_0x411b('0x66')][_0x411b('0x85')]);_0x147b65[_0x411b('0x24')]>0x0&&_0x12822a[_0x411b('0x57')](_0x147b65);for(const _0x1d26d7 of _0x51d8df)_0x1d26d7['detach']();});});});}function _0x53f93d(_0x213f7c){_0x3a007f[_0x411b('0x43')]['change'](_0x4348f2=>{const _0x3cbe6e=Array[_0x411b('0x69')](_0x308396[_0x411b('0x15')]())[_0x411b('0x4')](_0xad848=>_0x3a4bb3[_0x411b('0x4e')](_0xad848)),_0x545b18=[];for(const _0x3d5d49 of _0x213f7c)for(const _0x184110 of _0x3d5d49[_0x411b('0x63')]({'shallow':!0x0}))_0x545b18['push'](_0x184110);for(const _0x9dece9 of _0x545b18)'$graveyard'!=_0x9dece9[_0x411b('0x66')][_0x411b('0x85')]&&(_0x4348f2[_0x411b('0x57')](_0x4348f2[_0x411b('0x62')](_0x9dece9,0x0)),_0x3a007f[_0x411b('0x34')][_0x411b('0x74')](_0x411b('0x54'))['refresh'](),_0x3a007f[_0x411b('0x19')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x140462=_0x3cbe6e['filter'](_0x7bd581=>'$graveyard'!=_0x7bd581[_0x411b('0x66')][_0x411b('0x85')]);_0x140462[_0x411b('0x24')]>0x0&&_0x4348f2[_0x411b('0x57')](_0x140462);for(const _0x53785a of _0x3cbe6e)_0x53785a[_0x411b('0x1b')]();});}function _0x23a29d(_0x427887,_0x53f35b){return _0x53f35b[_0x411b('0x7d')](_0x3677e2=>_0x427887['some'](_0x59c5e7=>_0x59c5e7['end'][_0x411b('0x6')](_0x3677e2[_0x411b('0x2d')])||_0x3677e2[_0x411b('0x1f')][_0x411b('0x6')](_0x59c5e7[_0x411b('0x2d')])));}function _0x402161(_0x3345d1,_0x5ad67c){return _0x3345d1['some'](_0x44fc90=>_0x5ad67c[_0x411b('0x5b')](_0x550314=>_0x44fc90[_0x411b('0x1f')][_0x411b('0x50')](_0x550314[_0x411b('0x2d')])));}_0x3a007f[_0x411b('0x59')][_0x411b('0x1a')]['on'](_0x411b('0x87'),(_0x51a12d,_0x1b0dbc,_0x5b9f25)=>{if(!_0x5b9f25[_0x411b('0x5f')][_0x411b('0x47')])return;const _0x162959=_0x1b0dbc[_0x411b('0x72')];if(!_0x162959)return;const _0x45abaf=_0x5b9f25[_0x411b('0x3a')][_0x411b('0x8')](_0x162959);function _0x118ab7(_0x4ecc51){return Array['isArray'](_0x4ecc51)?_0x4ecc51:[_0x4ecc51];}_0x45abaf&&_0x411b('0x3b')===_0x162959[_0x411b('0x20')]&&_0x17e6a1(_0x45abaf,_0x5b9f25[_0x411b('0x37')],(_0x2f46f,_0x4cbc9a,_0x558e36)=>_0x558e36[_0x411b('0x80')](_0x118ab7(_0x4cbc9a[_0x411b('0x6f')]),_0x2f46f),(_0x4781e6,_0x5d51a7,_0x4b00a0)=>_0x4b00a0[_0x411b('0x7e')](_0x118ab7(_0x5d51a7[_0x411b('0x6f')]),_0x4781e6));},{'priority':_0x411b('0x2')}),_0x2eb362['_descriptionFactory']['registerDescriptionCallback'](_0x4598b=>{if('insertion'!=_0x4598b[_0x411b('0x58')]&&'deletion'!=_0x4598b[_0x411b('0x58')])return;const _0x58fd78=_0x4598b[_0x411b('0x84')]();if(null!=_0x58fd78&&_0x58fd78['is'](_0x411b('0x73'),_0x411b('0x82'))){if(_0x411b('0x5d')==_0x4598b[_0x411b('0x58')]){const _0x64c731=_0x4598b[_0x411b('0x63')]()['filter'](_0x241ef5=>_0x241ef5['is'](_0x411b('0x67')))[_0x411b('0x4')](_0x3347ce=>_0x3347ce[_0x411b('0x59')]);if(_0x64c731[_0x411b('0x24')])return{'type':_0x411b('0x5d'),'content':_0x59542e(_0x52a15a,_0x411b('0xb'),_0x59542e(_0x52a15a,_0x411b('0x10'),'\x22'+_0x64c731[_0x411b('0x7a')]('\x20')+'\x22'))};}if(_0x411b('0xa')==_0x4598b['type']){const _0x42a49e=_0x4598b[_0x411b('0x63')]()['filter'](_0x30ca0f=>_0x30ca0f['is']('$textProxy'))[_0x411b('0x4')](_0x5c3190=>_0x5c3190[_0x411b('0x59')]);if(_0x42a49e['length'])return{'type':_0x411b('0xa'),'content':_0x59542e(_0x52a15a,'*Remove:*\x20%0',_0x59542e(_0x52a15a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42a49e[_0x411b('0x7a')]('\x20')+'\x22'))};}}}),_0x2eb362[_0x411b('0x78')][_0x411b('0x68')](_0x4a912e=>{if(_0x411b('0x2a')==_0x4a912e['subType']){const _0x16b41b=_0x4a912e[_0x411b('0x63')]()[_0x411b('0x3c')](_0x4cdf7d=>_0x4cdf7d['is'](_0x411b('0x67')))['map'](_0xb7f1be=>_0xb7f1be['data']),_0x5d1e11=this[_0x411b('0x49')](_0x4a912e),_0x4e0cb5=_0x5d1e11[_0x411b('0x1d')]-_0x5d1e11[_0x411b('0x38')]+0x1;if(_0x411b('0x5d')==_0x4a912e[_0x411b('0x58')])return _0x16b41b[_0x411b('0x24')]?{'type':_0x411b('0x5d'),'content':_0x59542e(_0x52a15a,_0x411b('0xb'),_0x59542e(_0x52a15a,_0x411b('0x31'),[_0x4e0cb5,'\x22'+_0x16b41b[_0x411b('0x7a')]('\x20')+'\x22']))}:{'type':_0x411b('0x5d'),'content':_0x59542e(_0x52a15a,_0x411b('0xb'),_0x59542e(_0x52a15a,_0x411b('0x4b'),_0x4e0cb5))};if(_0x411b('0xa')==_0x4a912e['type'])return _0x16b41b['length']?{'type':_0x411b('0xa'),'content':_0x59542e(_0x52a15a,_0x411b('0x30'),_0x59542e(_0x52a15a,_0x411b('0x31'),[_0x4e0cb5,'\x22'+_0x16b41b[_0x411b('0x7a')]('\x20')+'\x22']))}:{'type':_0x411b('0xa'),'content':_0x59542e(_0x52a15a,_0x411b('0x30'),_0x59542e(_0x52a15a,'ELEMENT_TABLE_ROW',_0x4e0cb5))};}if('tableColumn'==_0x4a912e[_0x411b('0x21')]){const _0x3e1d2d=_0x4a912e[_0x411b('0x63')]()[_0x411b('0x3c')](_0x18eec6=>_0x18eec6['is'](_0x411b('0x67')))[_0x411b('0x4')](_0x3dbcd0=>_0x3dbcd0['data']),_0x37f8ae=this['_getSuggestionCoords'](_0x4a912e),_0x2f6782=_0x37f8ae['maxColumn']-_0x37f8ae[_0x411b('0x23')]+0x1;if('insertion'==_0x4a912e[_0x411b('0x58')])return _0x3e1d2d[_0x411b('0x24')]?{'type':'insertion','content':_0x59542e(_0x52a15a,_0x411b('0xb'),_0x59542e(_0x52a15a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2f6782,'\x22'+_0x3e1d2d[_0x411b('0x7a')]('\x20')+'\x22']))}:{'type':_0x411b('0x5d'),'content':_0x59542e(_0x52a15a,_0x411b('0xb'),_0x59542e(_0x52a15a,_0x411b('0xe'),_0x2f6782))};if('deletion'==_0x4a912e[_0x411b('0x58')])return _0x3e1d2d[_0x411b('0x24')]?{'type':_0x411b('0xa'),'content':_0x59542e(_0x52a15a,'*Remove:*\x20%0',_0x59542e(_0x52a15a,_0x411b('0x12'),[_0x2f6782,'\x22'+_0x3e1d2d[_0x411b('0x7a')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x59542e(_0x52a15a,'*Remove:*\x20%0',_0x59542e(_0x52a15a,_0x411b('0xe'),_0x2f6782))};}}),_0x2eb362[_0x411b('0x5e')][_0x411b('0x5')]('insertion',_0x411b('0x2a'),_0x411b('0x0'),_0x1317f0),_0x2eb362[_0x411b('0x5e')][_0x411b('0x5')](_0x411b('0xa'),_0x411b('0x2a'),_0x411b('0x76'),_0x1317f0),_0x2eb362['_suggestionFactory'][_0x411b('0x5')](_0x411b('0x5d'),_0x411b('0x1'),'discard',_0x53f93d),_0x2eb362[_0x411b('0x5e')][_0x411b('0x5')]('deletion','tableColumn','accept',_0x53f93d),_0x2eb362['_suggestionFactory']['registerCustomCallback'](_0x411b('0x5d'),'tableColumn',_0x411b('0x7a'),_0x23a29d),_0x2eb362[_0x411b('0x5e')][_0x411b('0x5')]('deletion',_0x411b('0x1'),_0x411b('0x7a'),_0x23a29d),_0x2eb362[_0x411b('0x5e')]['registerCustomCallback'](_0x411b('0x5d'),'tableRow',_0x411b('0x7a'),_0x402161),_0x2eb362['_suggestionFactory'][_0x411b('0x5')](_0x411b('0xa'),_0x411b('0x2a'),_0x411b('0x7a'),_0x402161);}[_0x411b('0x1c')](){const _0x3c3f24=this['editor'],_0x457a56=_0x3c3f24['model'][_0x411b('0x3d')][_0x411b('0x27')];return(_0x22985e,_0x5875c6)=>{_0x3c3f24[_0x411b('0x43')][_0x411b('0x52')](_0x248cd6=>{const {commandName:_0x3a9ff2,commandParams:_0x481623}=_0x5875c6;let _0x3ab354=_0x22985e[0x0][_0x411b('0x1f')][_0x411b('0x4f')];_0x481623&&_0x481623[0x0]&&!0x1===_0x481623[0x0][_0x411b('0x70')]&&(_0x3ab354=_0x22985e[0x0][_0x411b('0x2d')][_0x411b('0x3e')]);const _0x3f9d60=_0x248cd6[_0x411b('0x2b')](_0x3ab354);if(_0x411b('0x2c')==_0x3f9d60['root'][_0x411b('0x85')])return;const _0x42c643=Array['from'](_0x457a56[_0x411b('0x15')]())['map'](_0x35c56f=>_0x3a4bb3[_0x411b('0x4e')](_0x35c56f));_0x248cd6[_0x411b('0x57')](_0x3f9d60),_0x3c3f24['commands'][_0x411b('0x74')](_0x3a9ff2)['refresh'](),_0x481623[_0x411b('0x11')]({'forceDefaultExecution':!0x0}),_0x3c3f24[_0x411b('0x19')](_0x3a9ff2,..._0x481623);const _0x3a128a=_0x42c643[_0x411b('0x3c')](_0x26d17c=>_0x411b('0x2c')!=_0x26d17c[_0x411b('0x66')]['rootName']);_0x3a128a[_0x411b('0x24')]>0x0&&_0x248cd6[_0x411b('0x57')](_0x3a128a);for(const _0x34ce66 of _0x42c643)_0x34ce66['detach']();});};}[_0x411b('0x71')](_0x43d277){const _0x548dc7=this[_0x411b('0x7b')][_0x411b('0x3')]['get'](_0x411b('0x79'));let _0x3e1a3f=Number['MAX_SAFE_INTEGER'],_0x393ad9=Number[_0x411b('0x7')],_0x1f7e13=Number[_0x411b('0x26')],_0xcb64a3=Number[_0x411b('0x7')];for(const _0x5b308d of _0x43d277){if(_0x411b('0x2c')==_0x5b308d[_0x411b('0x66')]['rootName'])continue;const {row:_0x244cda,column:_0xb7e10f}=_0x548dc7[_0x411b('0x45')](_0x5b308d),_0x2598f3=_0x5b308d[_0x411b('0x18')](_0x411b('0x6a'))?_0x5b308d[_0x411b('0x55')](_0x411b('0x6a'))-0x1:0x0,_0x538277=_0x5b308d[_0x411b('0x18')](_0x411b('0x4d'))?_0x5b308d[_0x411b('0x55')](_0x411b('0x4d'))-0x1:0x0;_0x3e1a3f=_0x244cda<_0x3e1a3f?_0x244cda:_0x3e1a3f,_0x393ad9=_0x244cda+_0x2598f3>_0x393ad9?_0x244cda+_0x2598f3:_0x393ad9,_0x1f7e13=_0xb7e10f<_0x1f7e13?_0xb7e10f:_0x1f7e13,_0xcb64a3=_0xb7e10f+_0x538277>_0xcb64a3?_0xb7e10f+_0x538277:_0xcb64a3;}return{'minRow':_0x3e1a3f,'maxRow':_0x393ad9,'minColumn':_0x1f7e13,'maxColumn':_0xcb64a3};}[_0x411b('0x88')](){const _0x3175f3=this[_0x411b('0x7b')],_0x2aec24=_0x3175f3['plugins'][_0x411b('0x74')](_0x411b('0x53')),_0xe1d2ab=_0x3175f3[_0x411b('0x3')][_0x411b('0x74')](_0x411b('0x79'));_0x3175f3[_0x411b('0x43')][_0x411b('0x3d')]['on'](_0x411b('0x32'),()=>{const _0x54741f=Array[_0x411b('0x69')](_0x3175f3[_0x411b('0x43')][_0x411b('0x3d')][_0x411b('0x5c')][_0x411b('0x6b')]());for(const {name:_0x3789da,data:_0x342841}of _0x54741f){const {group:_0x56d6b3,id:_0x27d0f6,subType:_0x30831a}=_0x2aec24[_0x411b('0x29')](_0x3789da);if(_0x411b('0x39')!=_0x56d6b3)continue;if(null!=_0x342841[_0x411b('0x6e')])continue;const _0x2560aa=_0x2aec24[_0x411b('0x75')](_0x27d0f6);this['_tablePostFixingSubtypes'][_0x411b('0x56')](_0x30831a)&&this[_0x411b('0x9')][_0x411b('0x2e')](_0x2560aa);}},{'priority':_0x411b('0x83')});const _0x357657=(_0x284e82,_0x244ae5)=>{let _0xd846d7=!0x1;const _0x23bfc6=_0x244ae5[_0x411b('0x41')](_0x284e82),_0x42a665=_0x284e82['findAncestor']('table'),_0x11d0d0=_0xe1d2ab[_0x411b('0x45')](_0x284e82);for(const _0x353c45 of this[_0x411b('0x9')]){const _0xd7b73c=_0x353c45[_0x411b('0x21')],_0x42b6b6=_0xd7b73c[_0x411b('0x4c')](_0x411b('0x42')),_0x558c64=_0xd7b73c[_0x411b('0x35')](_0x42b6b6?0xa:0x5),_0x5c36a8=_0x558c64[_0x411b('0x48')](),_0x346280=_0x5c36a8[_0x411b('0x35')](0x0,0x3)+_0x411b('0x5a'),_0x28f358=_0x411b('0x65')+_0x558c64,_0x4d5777=_0x411b('0x7f')+_0x558c64;if(!_0x353c45['isInContent'])continue;if(_0x42a665!=_0x353c45['getFirstRange']()['start'][_0x411b('0x28')]('table'))continue;if(_0x353c45['isIntersectingWithRange'](_0x23bfc6))continue;const _0x22b3a8=_0x284e82[_0x411b('0x18')](_0x346280)?_0x284e82[_0x411b('0x55')](_0x346280)-0x1:0x0,_0x12a61b=this[_0x411b('0x49')](_0x353c45),_0x4f7c74=_0x12a61b[_0x28f358],_0x3dbdaf=_0x12a61b[_0x4d5777];_0x4f7c74<=_0x11d0d0[_0x5c36a8]&&_0x11d0d0[_0x5c36a8]+_0x22b3a8<=_0x3dbdaf&&(_0x353c45[_0x411b('0x60')](_0x23bfc6),_0xd846d7=!0x0);}return _0xd846d7;};_0x3175f3['model'][_0x411b('0x3d')][_0x411b('0x33')](_0x15dd9b=>{let _0x629c6e=!0x1;for(const _0xe80096 of _0x3175f3[_0x411b('0x43')][_0x411b('0x3d')][_0x411b('0x5c')]['getChanges']())if(_0x411b('0x6d')==_0xe80096[_0x411b('0x58')]){if('tableRow'==_0xe80096[_0x411b('0x20')])for(const _0x25558f of _0xe80096[_0x411b('0x77')][_0x411b('0x3e')][_0x411b('0x17')]())_0x629c6e=_0x629c6e||_0x357657(_0x25558f,_0x15dd9b);else _0x411b('0x3b')==_0xe80096[_0x411b('0x20')]&&(_0x629c6e=_0x629c6e||_0x357657(_0xe80096[_0x411b('0x77')][_0x411b('0x3e')],_0x15dd9b));}return _0x629c6e;});}[_0x411b('0x49')](_0x479184){return this['_getCoordsForCells'](_0x479184[_0x411b('0x15')]()[_0x411b('0x4')](_0x2b9e78=>_0x2b9e78[_0x411b('0x2d')][_0x411b('0x3e')]));}}function se(_0x4fce70){return Array[_0x411b('0x69')](new Set(_0x4fce70)[_0x411b('0x25')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bbf=['editor','has','get','plugins','enableCommand','TableCaptionEditing','toggleTableCaption','requires','afterInit'];(function(_0x38390d,_0x1bbfe7){const _0x148171=function(_0x56f24d){while(--_0x56f24d){_0x38390d['push'](_0x38390d['shift']());}};_0x148171(++_0x1bbfe7);}(_0x1bbf,0x150));const _0x1481=function(_0x38390d,_0x1bbfe7){_0x38390d=_0x38390d-0x0;let _0x148171=_0x1bbf[_0x38390d];return _0x148171;};import{Plugin as _0x4d15d9}from'ckeditor5/src/core';import _0x5a59f2 from'./table';export default class Nt extends _0x4d15d9{static get[_0x1481('0x4')](){return[_0x5a59f2];}[_0x1481('0x5')](){const _0x16bebb=this[_0x1481('0x6')];if(!_0x16bebb[_0x1481('0x0')][_0x1481('0x7')](_0x1481('0x2')))return;_0x16bebb[_0x1481('0x0')][_0x1481('0x8')]('TrackChangesEditing')[_0x1481('0x1')](_0x1481('0x3'));}}
|