@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231030.0 → 0.0.0-nightly-20231101.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 _0x59bc=['listReversed','change','_getSuggestionBlocks','bind','handleDescriptions','parent','_getTranslationKeyForListStyle','document','selection','styles','createRange','editor','ELEMENT_','from','length','reversed','plugins','getLastPosition','handleListStartCommand','enableCommand','before','listType','list.properties','type','_getSuggestionBlocksForListStyle','getListTypeFromListStyleType','listStyle','handleListReversedCommand','startIndex','config','markMultiRangeBlockFormat','backward','*Format:*\x20set\x20order\x20to\x20reversed','format','handleListStyleCommand','forward','*Format:*\x20set\x20start\x20index\x20to\x20%0','getAttribute','toUpperCase','*Format:*\x20set\x20order\x20to\x20regular','flat','TrackChangesEditing','replace','ListUtils','element','listStart','map','listItem','numbered','getSiblingNodes','has','get','ListPropertiesEditing','filter','createPositionAt','_LIST_','getSelectedBlocks','commandParams','model'];(function(_0x4bde5a,_0x59bcb2){const _0x54f6bd=function(_0x3c84d8){while(--_0x3c84d8){_0x4bde5a['push'](_0x4bde5a['shift']());}};_0x54f6bd(++_0x59bcb2);}(_0x59bc,0x1a3));const _0x54f6=function(_0x4bde5a,_0x59bcb2){_0x4bde5a=_0x4bde5a-0x0;let _0x54f6bd=_0x59bc[_0x4bde5a];return _0x54f6bd;};import{Plugin as _0x3d5e3e}from'ckeditor5/src/core';import{getTranslation as _0x11b2a1}from'../utils/common-translations';export default class ot extends _0x3d5e3e{['afterInit'](){if(!this[_0x54f6('0x5')][_0x54f6('0xa')][_0x54f6('0x2c')](_0x54f6('0x2e')))return;const _0xe3f906=this[_0x54f6('0x5')][_0x54f6('0x17')]['get'](_0x54f6('0x10')),_0x50c386=this[_0x54f6('0x5')][_0x54f6('0xa')][_0x54f6('0x2d')]('TrackChangesEditing');_0xe3f906[_0x54f6('0x3')]&&_0x50c386['enableCommand'](_0x54f6('0x14'),this['handleListStyleCommand'][_0x54f6('0x38')](this)),_0xe3f906[_0x54f6('0x9')]&&_0x50c386[_0x54f6('0xd')](_0x54f6('0x35'),this['handleListReversedCommand'][_0x54f6('0x38')](this)),_0xe3f906[_0x54f6('0x16')]&&_0x50c386[_0x54f6('0xd')]('listStart',this['handleListStartCommand'][_0x54f6('0x38')](this)),_0x50c386['_descriptionFactory']['registerDescriptionCallback'](this[_0x54f6('0x39')][_0x54f6('0x38')](this));}[_0x54f6('0x1c')](_0x2d7826,_0x11ffd9={}){const _0x4952b0=this['editor']['plugins'][_0x54f6('0x2d')]('TrackChangesEditing'),_0x1e3fb5=this['_getSuggestionBlocksForListStyle']();this[_0x54f6('0x5')][_0x54f6('0x34')][_0x54f6('0x36')](()=>{_0x4952b0[_0x54f6('0x18')](_0x1e3fb5,{'commandName':_0x54f6('0x14'),'commandParams':[{'type':_0x11ffd9[_0x54f6('0x11')]}],'formatGroupId':_0x54f6('0x14')});});}[_0x54f6('0x15')](_0x243b50,_0x58fa7d={}){const _0x13f33a=this[_0x54f6('0x5')][_0x54f6('0xa')][_0x54f6('0x2d')](_0x54f6('0x23')),_0x369431=this[_0x54f6('0x37')](_0x9abaf0=>_0x9abaf0['is'](_0x54f6('0x26'),'listItem')&&_0x54f6('0x2a')===_0x9abaf0['getAttribute'](_0x54f6('0xf')));if(_0x369431['length']<0x1)return;const _0x3b5716=_0x369431[_0x54f6('0x28')](_0x54469b=>this[_0x54f6('0x5')][_0x54f6('0x34')][_0x54f6('0x4')](this[_0x54f6('0x5')]['model'][_0x54f6('0x30')](_0x54469b,_0x54f6('0xe')),this['editor']['model']['createPositionAt'](_0x54469b,0x0)));this['editor']['model'][_0x54f6('0x36')](()=>{_0x13f33a[_0x54f6('0x18')](_0x3b5716,{'commandName':_0x54f6('0x35'),'commandParams':[{'reversed':_0x58fa7d['reversed']}],'formatGroupId':_0x54f6('0x35')});});}[_0x54f6('0xc')](_0x570c3d,_0x2e0642={}){const _0x5423dd=this['editor']['plugins'][_0x54f6('0x2d')](_0x54f6('0x23')),_0x1c52af=this[_0x54f6('0x37')](_0x3a1623=>_0x3a1623['is']('element',_0x54f6('0x29'))&&_0x54f6('0x2a')===_0x3a1623[_0x54f6('0x1f')](_0x54f6('0xf')));if(_0x1c52af[_0x54f6('0x8')]<0x1)return;const _0x45063e=_0x1c52af[_0x54f6('0x28')](_0x325b35=>this[_0x54f6('0x5')][_0x54f6('0x34')][_0x54f6('0x4')](this[_0x54f6('0x5')]['model']['createPositionAt'](_0x325b35,_0x54f6('0xe')),this[_0x54f6('0x5')][_0x54f6('0x34')][_0x54f6('0x30')](_0x325b35,0x0)));this[_0x54f6('0x5')][_0x54f6('0x34')][_0x54f6('0x36')](()=>{_0x5423dd[_0x54f6('0x18')](_0x45063e,{'commandName':_0x54f6('0x27'),'commandParams':[{'startIndex':_0x2e0642['startIndex']}],'formatGroupId':_0x54f6('0x27')});});}[_0x54f6('0x39')](_0x35b117){const _0x1a6c5e=this['editor']['locale'],{data:_0x2e62d8}=_0x35b117;if(!_0x2e62d8)return;let _0x265822,_0x2d3e24;switch(_0x2e62d8['commandName']){case _0x54f6('0x14'):_0x265822='*Change\x20to:*\x20%0',_0x2d3e24={'type':_0x54f6('0x1b'),'content':_0x11b2a1(_0x1a6c5e,_0x265822,_0x11b2a1(_0x1a6c5e,this[_0x54f6('0x0')](_0x2e62d8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x265822=_0x2e62d8[_0x54f6('0x33')][0x0][_0x54f6('0x9')]?_0x54f6('0x1a'):_0x54f6('0x21'),_0x2d3e24={'type':_0x54f6('0x1b'),'content':_0x11b2a1(_0x1a6c5e,_0x265822)};break;case _0x54f6('0x27'):_0x265822=_0x54f6('0x1e'),_0x2d3e24={'type':_0x54f6('0x1b'),'content':_0x11b2a1(_0x1a6c5e,_0x265822,_0x2e62d8[_0x54f6('0x33')][0x0][_0x54f6('0x16')])};}return _0x2d3e24;}[_0x54f6('0x12')](){var _0x2994f8,_0x408252,_0x44a028,_0x1df7eb;const _0x57c697=this[_0x54f6('0x5')]['plugins'][_0x54f6('0x2d')](_0x54f6('0x25'));let _0xb5cd2e=Array[_0x54f6('0x7')](this['editor'][_0x54f6('0x34')][_0x54f6('0x1')][_0x54f6('0x2')]['getSelectedBlocks']());return(null===(_0x2994f8=_0xb5cd2e[0x0])||void 0x0===_0x2994f8?void 0x0:_0x2994f8['is']('element',_0x54f6('0x29')))&&_0xb5cd2e['unshift'](..._0x57c697[_0x54f6('0x2b')](this[_0x54f6('0x5')][_0x54f6('0x34')][_0x54f6('0x1')][_0x54f6('0x2')]['getFirstPosition'](),_0x54f6('0x19'))),(null===(_0x408252=_0xb5cd2e[_0xb5cd2e[_0x54f6('0x8')]-0x1])||void 0x0===_0x408252?void 0x0:_0x408252['is'](_0x54f6('0x26'),_0x54f6('0x29')))&&_0xb5cd2e['push'](..._0x57c697[_0x54f6('0x2b')](this['editor'][_0x54f6('0x34')]['document']['selection'][_0x54f6('0xb')](),_0x54f6('0x1d'))),_0xb5cd2e=[...new Set(_0xb5cd2e)],(null===(_0x1df7eb=null===(_0x44a028=this['editor'][_0x54f6('0x34')]['document']['selection']['getFirstPosition']())||void 0x0===_0x44a028?void 0x0:_0x44a028[_0x54f6('0x3a')])||void 0x0===_0x1df7eb?void 0x0:_0x1df7eb['is']('element',_0x54f6('0x29')))&&(_0xb5cd2e=_0xb5cd2e[_0x54f6('0x2f')](_0x4c1582=>_0x4c1582['is'](_0x54f6('0x26'),_0x54f6('0x29')))),_0xb5cd2e;}[_0x54f6('0x37')](_0x3ff20b){const _0xeef24=this[_0x54f6('0x5')][_0x54f6('0xa')][_0x54f6('0x2d')](_0x54f6('0x25'));let _0x1d6061=Array[_0x54f6('0x7')](this['editor'][_0x54f6('0x34')][_0x54f6('0x1')]['selection'][_0x54f6('0x32')]())[_0x54f6('0x2f')](_0x3ff20b)[_0x54f6('0x28')](_0x3d610e=>{const _0x445842=this[_0x54f6('0x5')][_0x54f6('0x34')]['createPositionAt'](_0x3d610e,0x0);return[..._0xeef24[_0x54f6('0x2b')](_0x445842,'backward'),..._0xeef24[_0x54f6('0x2b')](_0x445842,_0x54f6('0x1d'))];})[_0x54f6('0x22')]();return _0x1d6061=[...new Set(_0x1d6061)],_0x1d6061;}[_0x54f6('0x0')](_0x58e093){return _0x54f6('0x6')+this[_0x54f6('0x5')]['plugins'][_0x54f6('0x2d')](_0x54f6('0x25'))[_0x54f6('0x13')](_0x58e093)[_0x54f6('0x20')]()+_0x54f6('0x31')+_0x58e093[_0x54f6('0x20')]()[_0x54f6('0x24')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56de=['registerElementLabel','has','conversion','plugins','high','get','for','data','showSuggestionHighlights','TrackChangesEditing','locale','afterInit','downcastDispatcher','attribute:url:media','media','dataDowncast','elementToElement','editor','createEmptyElement','MediaEmbedEditing','stop'];(function(_0x16d55f,_0x56de05){const _0x8b199d=function(_0x49069c){while(--_0x49069c){_0x16d55f['push'](_0x16d55f['shift']());}};_0x8b199d(++_0x56de05);}(_0x56de,0xc3));const _0x8b19=function(_0x16d55f,_0x56de05){_0x16d55f=_0x16d55f-0x0;let _0x8b199d=_0x56de[_0x16d55f];return _0x8b199d;};import{Plugin as _0x1bdb56}from'ckeditor5/src/core';import{getTranslation as _0x4e6e03}from'../utils/common-translations';export default class rt extends _0x1bdb56{[_0x8b19('0x5')](){const _0x1f1ebd=this[_0x8b19('0xb')];if(!_0x1f1ebd[_0x8b19('0x12')][_0x8b19('0x10')](_0x8b19('0xd')))return;const _0x26923e=_0x1f1ebd[_0x8b19('0x12')][_0x8b19('0x14')](_0x8b19('0x3')),_0x5a7e20=_0x1f1ebd[_0x8b19('0x4')];_0x26923e['enableCommand']('mediaEmbed'),_0x26923e['_descriptionFactory'][_0x8b19('0xf')](_0x8b19('0x8'),_0x4366e7=>_0x4e6e03(_0x5a7e20,'ELEMENT_MEDIA',_0x4366e7)),_0x1f1ebd[_0x8b19('0x11')][_0x8b19('0x0')](_0x8b19('0x9'))[_0x8b19('0xa')]({'model':'media','view':(_0x3d5a71,{writer:_0x14c814,options:_0x1d1279})=>{if(_0x1d1279[_0x8b19('0x2')])return _0x14c814[_0x8b19('0xc')]('div');},'converterPriority':'high'}),_0x1f1ebd[_0x8b19('0x1')][_0x8b19('0x6')]['on'](_0x8b19('0x7'),(_0x48598f,_0x43b5d6,_0x4fcd4e)=>{_0x4fcd4e['options'][_0x8b19('0x2')]&&_0x48598f[_0x8b19('0xe')]();},{'priority':_0x8b19('0x13')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x494a=['get','plugins','enableCommand','mention'];(function(_0xd79fe2,_0x494ad5){const _0x26c7d2=function(_0xdbceb8){while(--_0xdbceb8){_0xd79fe2['push'](_0xd79fe2['shift']());}};_0x26c7d2(++_0x494ad5);}(_0x494a,0x9c));const _0x26c7=function(_0xd79fe2,_0x494ad5){_0xd79fe2=_0xd79fe2-0x0;let _0x26c7d2=_0x494a[_0xd79fe2];return _0x26c7d2;};import{Plugin as _0x4cbbad}from'ckeditor5/src/core';export default class at extends _0x4cbbad{['afterInit'](){const _0x2a6e84=this['editor'];_0x2a6e84['plugins']['has']('MentionEditing')&&_0x2a6e84[_0x26c7('0x1')][_0x26c7('0x0')]('TrackChangesEditing')[_0x26c7('0x2')](_0x26c7('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c35=['enableCommand','has','get','plugins','registerElementLabel','editor','TrackChangesEditing','locale','ELEMENT_PAGE_BREAK','pageBreak','afterInit','PageBreakEditing'];(function(_0x194bcf,_0x2c3509){const _0xa8bbe5=function(_0xbd8117){while(--_0xbd8117){_0x194bcf['push'](_0x194bcf['shift']());}};_0xa8bbe5(++_0x2c3509);}(_0x2c35,0xce));const _0xa8bb=function(_0x194bcf,_0x2c3509){_0x194bcf=_0x194bcf-0x0;let _0xa8bbe5=_0x2c35[_0x194bcf];return _0xa8bbe5;};import{Plugin as _0x476946}from'ckeditor5/src/core';import{getTranslation as _0x4f3408}from'../utils/common-translations';export default class ct extends _0x476946{[_0xa8bb('0x8')](){const _0x1531b8=this[_0xa8bb('0x3')];if(!_0x1531b8[_0xa8bb('0x1')][_0xa8bb('0xb')](_0xa8bb('0x9')))return;_0x1531b8['plugins']['get'](_0xa8bb('0x4'))[_0xa8bb('0xa')]('pageBreak');const _0x508ec0=_0x1531b8['plugins'][_0xa8bb('0x0')](_0xa8bb('0x4')),_0x1d0981=_0x1531b8[_0xa8bb('0x5')];_0x508ec0['_descriptionFactory'][_0xa8bb('0x2')](_0xa8bb('0x7'),_0x5dd6f9=>_0x4f3408(_0x1d0981,_0xa8bb('0x6'),_0x5dd6f9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34ad=['ck-suggestion-marker-split','commandName','addMarker:suggestion:insertion','getFirstRange','get','markerRange','type','toViewPosition','insert','editor','isTouching','getSelectedBlocks','*Insert:*\x20%0','isBlock','enableCommand','change','filter','document','downcastDispatcher','isLimit','insertParagraph','$text','ck-suggestion-marker--active','isObject','insertion','parent','checkChild','ELEMENT_PARAGRAPH','model','Paragraph','includes','from','createUIElement','blockName','markerName','name','mapper','*Change\x20to:*\x20%0','registerDescriptionCallback','getItemLabel','data','consumable','selection','paragraph','registerElementLabel','has','nodeAfter','start','schema','plugins','afterInit','writer','_descriptionFactory','TrackChangesEditing','highest'];(function(_0x5ef627,_0x34adf9){const _0x16fb74=function(_0x4177d7){while(--_0x4177d7){_0x5ef627['push'](_0x5ef627['shift']());}};_0x16fb74(++_0x34adf9);}(_0x34ad,0x1f3));const _0x16fb=function(_0x5ef627,_0x34adf9){_0x5ef627=_0x5ef627-0x0;let _0x16fb74=_0x34ad[_0x5ef627];return _0x16fb74;};import{Plugin as _0x426f26}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x3c54b4}from'./utils';import{getTranslation as _0x415999}from'../utils/common-translations';export default class ht extends _0x426f26{[_0x16fb('0x2e')](){const _0x6880b7=this[_0x16fb('0x5')];if(!_0x6880b7['plugins'][_0x16fb('0x29')](_0x16fb('0x19')))return;const _0x184f19=_0x6880b7['locale'],_0x26b55e=_0x6880b7[_0x16fb('0x2d')][_0x16fb('0x0')]('TrackChangesEditing');_0x26b55e['_descriptionFactory'][_0x16fb('0x28')](_0x16fb('0x27'),_0x22e9b2=>_0x415999(_0x184f19,_0x16fb('0x17'),_0x22e9b2)),_0x26b55e[_0x16fb('0xa')]('paragraph',(_0x115935,_0xe39649={})=>{const _0x1957f9=_0x6880b7[_0x16fb('0x18')][_0x16fb('0xd')],_0x226e11=_0xe39649[_0x16fb('0x26')]||_0x1957f9[_0x16fb('0x26')],_0x59a108=Array[_0x16fb('0x1b')](_0x226e11[_0x16fb('0x7')]())[_0x16fb('0xc')](_0x4f5289=>function(_0x494130,_0xb84737){return _0xb84737[_0x16fb('0x16')](_0x494130[_0x16fb('0x15')],_0x16fb('0x27'))&&!_0xb84737[_0x16fb('0x13')](_0x494130)&&_0x16fb('0x27')!=_0x494130[_0x16fb('0x1f')];}(_0x4f5289,this[_0x16fb('0x5')][_0x16fb('0x18')][_0x16fb('0x2c')]));_0x6880b7[_0x16fb('0x18')][_0x16fb('0xb')](()=>{for(const _0x34a30d of _0x59a108)_0x26b55e['markBlockFormat'](_0x34a30d,{'commandName':_0x16fb('0x27'),'commandParams':[],'formatGroupId':_0x16fb('0x1d')},_0x3c54b4(_0x34a30d));});}),_0x26b55e[_0x16fb('0x30')][_0x16fb('0x22')](_0x2a4359=>{const {data:_0x1de789}=_0x2a4359;if(_0x1de789&&_0x16fb('0x27')==_0x1de789[_0x16fb('0x34')])return{'type':'format','content':_0x415999(_0x184f19,_0x16fb('0x21'),_0x415999(_0x184f19,'ELEMENT_PARAGRAPH'))};}),_0x26b55e['enableCommand'](_0x16fb('0x10')),_0x6880b7['editing'][_0x16fb('0xe')]['on'](_0x16fb('0x35'),ar(_0x6880b7),{'priority':'highest'}),_0x6880b7[_0x16fb('0x24')][_0x16fb('0xe')]['on'](_0x16fb('0x35'),(_0x3e2efe,_0x5463b8,_0x12818d)=>{_0x12818d['options']['showSuggestionHighlights']&&ar(_0x6880b7,{'showActiveMarker':!0x1})(_0x3e2efe,_0x5463b8,_0x12818d);},{'priority':_0x16fb('0x32')});const _0x3e1446=_0x26b55e['_descriptionFactory'];_0x3e1446[_0x16fb('0x22')](_0x454a97=>{if(_0x16fb('0x14')!==_0x454a97[_0x16fb('0x2')])return;const {start:_0x40bd17,end:_0x9e9290}=_0x454a97[_0x16fb('0x36')]();if(!_0x40bd17[_0x16fb('0x6')](_0x9e9290)||!_0x40bd17['nodeAfter'])return;const _0x3b0a14=_0x6880b7[_0x16fb('0x18')][_0x16fb('0x2c')],_0xabc86f=_0x40bd17[_0x16fb('0x2a')];return _0x3b0a14['isBlock'](_0xabc86f)&&!_0x3b0a14[_0x16fb('0xf')](_0xabc86f)&&_0x3b0a14[_0x16fb('0x16')](_0xabc86f,'$text')?{'type':_0x16fb('0x14'),'content':_0x415999(_0x184f19,_0x16fb('0x8'),_0x3e1446[_0x16fb('0x23')](_0xabc86f,0x1))}:void 0x0;});}}function ar(_0x401b39,{showActiveMarker:_0x3c991e=!0x0}={}){return(_0x2747e5,_0x1e17dc,_0x544b70)=>{const _0x74121b=_0x401b39[_0x16fb('0x2d')][_0x16fb('0x0')](_0x16fb('0x31')),_0x399dd4=_0x1e17dc[_0x16fb('0x1')][_0x16fb('0x2b')],_0x3e6c07=_0x1e17dc[_0x16fb('0x1')]['end'],_0xe9ca86=_0x401b39[_0x16fb('0x18')][_0x16fb('0x2c')];if(!_0x399dd4['isTouching'](_0x3e6c07)||!_0x399dd4[_0x16fb('0x2a')])return;const _0x1264e1=_0x399dd4[_0x16fb('0x2a')];if(_0xe9ca86[_0x16fb('0x9')](_0x1264e1)&&!_0xe9ca86[_0x16fb('0xf')](_0x1264e1)&&_0xe9ca86[_0x16fb('0x16')](_0x1264e1,_0x16fb('0x11'))){if(!_0x544b70[_0x16fb('0x25')]['consume'](_0x1e17dc['markerRange'],_0x2747e5['name']))return;const _0xbd383b=_0x544b70['writer'][_0x16fb('0x1c')]('span',{'class':_0x16fb('0x33')}),_0x3769bf=_0x544b70['mapper'][_0x16fb('0x3')](_0x3e6c07);_0x3c991e&&_0x74121b['activeMarkers'][_0x16fb('0x1a')](_0x1e17dc[_0x16fb('0x1e')])&&_0x544b70[_0x16fb('0x2f')]['addClass'](_0x16fb('0x12'),_0xbd383b),_0x544b70['writer'][_0x16fb('0x4')](_0x3769bf,_0xbd383b),_0x544b70[_0x16fb('0x20')]['bindElementToMarker'](_0xbd383b,_0x1e17dc[_0x16fb('0x1e')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25b1=['isFormatting','isCollapsed','removeFormat','afterInit','model','markInlineFormat','from','selection','enableCommand','*Remove\x20all\x20formatting*','_descriptionFactory','plugins','schema','registerDescriptionCallback','createRangeOn','TrackChangesEditing','editor','commandName','change','get','getAttributes','has','RemoveFormatEditing','document','locale','format','getItems'];(function(_0x463480,_0x25b144){const _0x1cfc00=function(_0x2f0075){while(--_0x2f0075){_0x463480['push'](_0x463480['shift']());}};_0x1cfc00(++_0x25b144);}(_0x25b1,0x18b));const _0x1cfc=function(_0x463480,_0x25b144){_0x463480=_0x463480-0x0;let _0x1cfc00=_0x25b1[_0x463480];return _0x1cfc00;};import{Plugin as _0x3faef2}from'ckeditor5/src/core';import{getTranslation as _0x3da141}from'../utils/common-translations';export default class ut extends _0x3faef2{[_0x1cfc('0xd')](){const _0x427d57=this[_0x1cfc('0x1a')];if(!_0x427d57[_0x1cfc('0x15')][_0x1cfc('0x4')](_0x1cfc('0x5')))return;const _0x550b4b=_0x427d57[_0x1cfc('0x15')][_0x1cfc('0x2')](_0x1cfc('0x19'));_0x550b4b[_0x1cfc('0x12')](_0x1cfc('0xc'),_0x2bf3cd=>{const _0x8b5f12=_0x427d57[_0x1cfc('0xe')][_0x1cfc('0x6')][_0x1cfc('0x11')];_0x8b5f12[_0x1cfc('0xb')]?_0x2bf3cd():_0x427d57[_0x1cfc('0xe')][_0x1cfc('0x1')](()=>{const _0x447bd9=Array[_0x1cfc('0x10')](_0x8b5f12['getRanges']());for(const _0x4e919c of _0x447bd9)for(const _0x382bc9 of _0x4e919c[_0x1cfc('0x9')]())mo(_0x382bc9,_0x427d57['model'][_0x1cfc('0x16')])&&_0x550b4b[_0x1cfc('0xf')](_0x427d57['model'][_0x1cfc('0x18')](_0x382bc9),{'commandName':_0x1cfc('0xc'),'commandParams':[]});});}),_0x550b4b[_0x1cfc('0x14')][_0x1cfc('0x17')](_0x3c02b4=>{const {data:_0x262b92}=_0x3c02b4;if(_0x262b92&&_0x1cfc('0xc')==_0x262b92[_0x1cfc('0x0')])return{'type':_0x1cfc('0x8'),'content':_0x3da141(_0x427d57[_0x1cfc('0x7')],_0x1cfc('0x13'))};});}}function mo(_0x15d2f5,_0x3c4dd0){for(const [_0xbacecc]of _0x15d2f5[_0x1cfc('0x3')]()){const _0xe61fc4=_0x3c4dd0['getAttributeProperties'](_0xbacecc);if(_0xe61fc4&&_0xe61fc4[_0x1cfc('0xa')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44ac=['goToNextRestrictedEditingException','plugins','acceptSuggestion','acceptSelectedSuggestions','acceptAllSuggestions','enableCommand','discardSuggestion','afterInit','discardSelectedSuggestions','discardAllSuggestions','get','RestrictedEditingModeEditing'];(function(_0x514164,_0x44aca6){const _0x55524d=function(_0x5b04f1){while(--_0x5b04f1){_0x514164['push'](_0x514164['shift']());}};_0x55524d(++_0x44aca6);}(_0x44ac,0x1b9));const _0x5552=function(_0x514164,_0x44aca6){_0x514164=_0x514164-0x0;let _0x55524d=_0x44ac[_0x514164];return _0x55524d;};import{Plugin as _0x1eaf95}from'ckeditor5/src/core';export default class ft extends _0x1eaf95{[_0x5552('0xa')](){const _0x391e1a=this['editor'];if(!_0x391e1a[_0x5552('0x4')]['has']('RestrictedEditingModeEditing'))return;const _0x53e4b5=_0x391e1a[_0x5552('0x4')][_0x5552('0x1')]('TrackChangesEditing');_0x53e4b5[_0x5552('0x8')]('goToPreviousRestrictedEditingException'),_0x53e4b5[_0x5552('0x8')](_0x5552('0x3'));const _0xa73cb1=_0x391e1a[_0x5552('0x4')][_0x5552('0x1')](_0x5552('0x2'));_0xa73cb1[_0x5552('0x8')]('trackChanges'),_0xa73cb1[_0x5552('0x8')](_0x5552('0x5')),_0xa73cb1[_0x5552('0x8')](_0x5552('0x9')),_0xa73cb1['enableCommand'](_0x5552('0x7')),_0xa73cb1[_0x5552('0x8')](_0x5552('0x0')),_0xa73cb1[_0x5552('0x8')](_0x5552('0x6')),_0xa73cb1['enableCommand'](_0x5552('0xb'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e5e=['ck-suggestion-marker--active','addMarker:suggestion:deletion','downcastDispatcher','registerElementLabel','markerRange','data','deletion','markerName','_descriptionFactory','addClass','insert','enableCommand','span','writer','test','requires','split','mapper','getItems','softBreak','TrackChangesEditing','createPositionBefore','ELEMENT_LINE_BREAK','model','editing','addMarker:suggestion:insertion','high','toViewPosition','editor','plugins','name','shiftEnter','createUIElement','showSuggestionHighlights','get','init'];(function(_0x26d2a6,_0x5e5ee4){const _0x44ef96=function(_0x38d74a){while(--_0x38d74a){_0x26d2a6['push'](_0x26d2a6['shift']());}};_0x44ef96(++_0x5e5ee4);}(_0x5e5e,0x107));const _0x44ef=function(_0x26d2a6,_0x5e5ee4){_0x26d2a6=_0x26d2a6-0x0;let _0x44ef96=_0x5e5e[_0x26d2a6];return _0x44ef96;};import{Plugin as _0x560c8d}from'ckeditor5/src/core';import{ShiftEnter as _0x389d97}from'ckeditor5/src/enter';import{getTranslation as _0x571de9}from'../utils/common-translations';export default class lt extends _0x560c8d{static get[_0x44ef('0x4')](){return[_0x389d97];}[_0x44ef('0x18')](){const _0x2f7832=this[_0x44ef('0x11')],_0x495cf7=_0x2f7832[_0x44ef('0x12')]['get'](_0x44ef('0x9'));_0x495cf7[_0x44ef('0x0')](_0x44ef('0x14')),_0x2f7832[_0x44ef('0xd')]['downcastDispatcher']['on'](_0x44ef('0xe'),re(_0x2f7832),{'priority':_0x44ef('0xf')}),_0x2f7832['editing'][_0x44ef('0x1b')]['on'](_0x44ef('0x1a'),re(_0x2f7832),{'priority':'high'}),_0x2f7832[_0x44ef('0x1e')][_0x44ef('0x1b')]['on']('addMarker:suggestion',(_0x2e7312,_0x2f0916,_0x2b1e49)=>{_0x2b1e49['options'][_0x44ef('0x16')]&&re(_0x2f7832,{'showActiveMarker':!0x1})(_0x2e7312,_0x2f0916,_0x2b1e49);}),_0x495cf7[_0x44ef('0x21')][_0x44ef('0x1c')](_0x44ef('0x8'),_0x413887=>_0x571de9(_0x2f7832['locale'],_0x44ef('0xb'),_0x413887));}}function re(_0x1f0aff,{showActiveMarker:_0x432526=!0x0}={}){return(_0x40f244,_0x327a1b,_0x2d0386)=>{const _0x43d2ea=_0x1f0aff[_0x44ef('0x12')][_0x44ef('0x17')](_0x44ef('0x9'));if(!_0x2d0386['consumable'][_0x44ef('0x3')](_0x327a1b[_0x44ef('0x1d')],_0x40f244[_0x44ef('0x13')]))return;const _0x242946=_0x1f0aff[_0x44ef('0xc')];for(const _0xc7a4fa of _0x327a1b[_0x44ef('0x1d')][_0x44ef('0x7')]()){if(!_0xc7a4fa['is']('element',_0x44ef('0x8')))continue;const _0x1e8ca2=_0x44ef('0x1f')==_0x327a1b[_0x44ef('0x20')][_0x44ef('0x5')](':')[0x1]?'merge':_0x44ef('0x5'),_0x5cbba0=_0x2d0386[_0x44ef('0x2')][_0x44ef('0x15')](_0x44ef('0x1'),{'class':'ck-suggestion-marker-'+_0x1e8ca2}),_0x5a38c4=_0x2d0386[_0x44ef('0x6')][_0x44ef('0x10')](_0x242946[_0x44ef('0xa')](_0xc7a4fa));_0x432526&&_0x43d2ea['activeMarkers']['includes'](_0x327a1b[_0x44ef('0x20')])&&_0x2d0386[_0x44ef('0x2')][_0x44ef('0x22')](_0x44ef('0x19'),_0x5cbba0),_0x2d0386[_0x44ef('0x2')][_0x44ef('0x23')](_0x5a38c4,_0x5cbba0),_0x2d0386[_0x44ef('0x6')]['bindElementToMarker'](_0x5cbba0,_0x327a1b[_0x44ef('0x20')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x122f=['markInlineFormat','get','from','isCollapsed','change','getRanges','registerDescriptionCallback','model','value','enableCommand','commandParams','forceValue','document','restrictedEditingException','plugins','_descriptionFactory','commands','has','selection'];(function(_0x107b29,_0x122fa9){const _0x1f5ae9=function(_0xca5ff2){while(--_0xca5ff2){_0x107b29['push'](_0x107b29['shift']());}};_0x1f5ae9(++_0x122fa9);}(_0x122f,0xa9));const _0x1f5a=function(_0x107b29,_0x122fa9){_0x107b29=_0x107b29-0x0;let _0x1f5ae9=_0x122f[_0x107b29];return _0x1f5ae9;};import{Plugin as _0x26a311}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x17e4cd}from'./utils';import{getTranslation as _0x56afed}from'../utils/common-translations';export default class gt extends _0x26a311{['afterInit'](){const _0x17965b=this['editor'],_0x481a7f=_0x17965b[_0x1f5a('0x9')],_0x3e2ade=_0x17965b['locale'];if(!_0x17965b[_0x1f5a('0x10')][_0x1f5a('0x0')]('StandardEditingModeEditing'))return;const _0x5f1f38=_0x17965b['plugins'][_0x1f5a('0x3')]('TrackChangesEditing'),_0x515870=_0x1f5a('0xf'),_0x4c9cd3=_0x17965b[_0x1f5a('0x12')][_0x1f5a('0x3')](_0x515870);_0x5f1f38[_0x1f5a('0xb')](_0x515870,(_0x586f6f,_0x267ef9={})=>{const _0xa40b1b=_0x481a7f[_0x1f5a('0xe')][_0x1f5a('0x1')];if(_0xa40b1b[_0x1f5a('0x5')])return void _0x586f6f(_0x267ef9);const _0x55dc54=void 0x0!==_0x267ef9[_0x1f5a('0xd')]?_0x267ef9[_0x1f5a('0xd')]:!_0x4c9cd3[_0x1f5a('0xa')];_0x481a7f[_0x1f5a('0x6')](()=>{const _0x89a8b=Array[_0x1f5a('0x4')](_0xa40b1b[_0x1f5a('0x7')]());for(const _0x354c87 of _0x89a8b){const _0x1c4f51=_0x55dc54?[_0x354c87]:_0x17e4cd(_0x515870,_0x354c87,_0x481a7f);for(const _0x38a01a of _0x1c4f51)_0x5f1f38[_0x1f5a('0x2')](_0x38a01a,{'commandName':_0x515870,'commandParams':[{'forceValue':_0x55dc54}]});}});}),_0x5f1f38[_0x1f5a('0x11')][_0x1f5a('0x8')](_0x319214=>{const {data:_0x1566ae}=_0x319214;if(_0x1566ae&&_0x1566ae['commandName']==_0x515870)return _0x1566ae[_0x1f5a('0xc')][0x0][_0x1f5a('0xd')]?{'type':'format','content':_0x56afed(_0x3e2ade,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':_0x56afed(_0x3e2ade,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31b3=['editor','StyleUtils','style:','style.definitions','*Format:*\x20%0','name','markInlineFormat','registerDescriptionCallback','includes','locale','styleName','block','every','classes','find','TrackChangesEditing','Style','value','afterInit','has','format','_getStyleDefinition','getAttribute','_descriptionFactory','getItems','add','model','getDefinitionsForView','forceValue','isBlock','getRanges','plugins','get','document','getSelectedBlocks','push','*Remove\x20format:*\x20%0','createRangeOn','style','change','enabledStyles','commandParams','normalizeConfig','isCollapsed','_getRangesWithClasses','from','selection','toLowerCase','commandName'];(function(_0x2435b9,_0x31b357){const _0xa0a5eb=function(_0x514690){while(--_0x514690){_0x2435b9['push'](_0x2435b9['shift']());}};_0xa0a5eb(++_0x31b357);}(_0x31b3,0xfc));const _0xa0a5=function(_0x2435b9,_0x31b357){_0x2435b9=_0x2435b9-0x0;let _0xa0a5eb=_0x31b3[_0x2435b9];return _0xa0a5eb;};import{Plugin as _0x39d06b}from'ckeditor5/src/core';import{getTranslation as _0x26ef2c}from'../utils/common-translations';export default class mt extends _0x39d06b{[_0xa0a5('0xb')](){const _0x17d88c=this[_0xa0a5('0x2a')];if(!_0x17d88c[_0xa0a5('0x18')][_0xa0a5('0xc')](_0xa0a5('0x9')))return;const _0x47ade8=_0x17d88c['commands']['get'](_0xa0a5('0x1f')),_0x4e6887=_0x17d88c['plugins'][_0xa0a5('0x19')](_0xa0a5('0x8')),_0x4efb9b=_0x17d88c[_0xa0a5('0x2')],_0x1d4787=_0x17d88c[_0xa0a5('0x18')][_0xa0a5('0x19')]('DataSchema'),_0x3ed1cf=_0x17d88c['plugins'][_0xa0a5('0x19')](_0xa0a5('0x2b'))[_0xa0a5('0x23')](_0x1d4787,_0x17d88c['config'][_0xa0a5('0x19')](_0xa0a5('0x2d')));_0x4e6887['enableCommand'](_0xa0a5('0x1f'),(_0x14a6c3,{styleName:_0xe8b2c0})=>{const _0x5c9bcd=_0x17d88c[_0xa0a5('0x13')][_0xa0a5('0x1a')][_0xa0a5('0x27')],_0x17de78=this[_0xa0a5('0xe')](_0xe8b2c0,_0x3ed1cf);if(!_0x17de78)return;if(!_0x47ade8[_0xa0a5('0x21')][_0xa0a5('0x1')](_0xe8b2c0))return;if(_0x5c9bcd[_0xa0a5('0x24')]&&!_0x17de78[_0xa0a5('0x16')])return void _0x14a6c3({'styleName':_0xe8b2c0});const _0x52699f=!_0x47ade8[_0xa0a5('0xa')][_0xa0a5('0x1')](_0x17de78['name']);if(_0x17de78['isBlock']){const _0x5247ab=function(_0x520708,_0x719c1a){const _0x2aa81a=new Set();for(const _0x5f1d3d of _0x520708){const _0x4ec635=_0x5f1d3d['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x5361df of _0x4ec635)if(_0x719c1a['includes'](_0x5361df[_0xa0a5('0x2f')])){_0x2aa81a[_0xa0a5('0x12')](_0x5361df);break;}}return _0x2aa81a;}(_0x5c9bcd[_0xa0a5('0x1b')](),_0x17de78['modelElements']);_0x17d88c['model'][_0xa0a5('0x20')](()=>{for(const _0x4a3577 of _0x5247ab)_0x4e6887['markBlockFormat'](_0x4a3577,{'commandName':_0xa0a5('0x1f'),'commandParams':[{'styleName':_0xe8b2c0,'forceValue':_0x52699f}],'formatGroupId':_0xa0a5('0x2c')+_0xe8b2c0});});}else{let _0x5ac92b=Array['from'](_0x5c9bcd[_0xa0a5('0x17')]());if(!_0x52699f){const _0x53e4c1=Array[_0xa0a5('0x26')](_0x1d4787[_0xa0a5('0x14')](_0x17de78['element'],!0x1))[0x0][_0xa0a5('0x13')],_0x5c9b71=[];for(const _0x543952 of _0x5ac92b){const _0x42d483=this[_0xa0a5('0x25')](_0x17d88c[_0xa0a5('0x13')],_0x543952,_0x17de78[_0xa0a5('0x6')],_0x53e4c1);_0x5c9b71['push'](..._0x42d483);}_0x5ac92b=_0x5c9b71;}_0x17d88c[_0xa0a5('0x13')][_0xa0a5('0x20')](()=>{for(const _0x1e818c of _0x5ac92b)_0x4e6887[_0xa0a5('0x30')](_0x1e818c,{'commandName':_0xa0a5('0x1f'),'commandParams':[{'styleName':_0xe8b2c0,'forceValue':_0x52699f}]});});}}),_0x4e6887[_0xa0a5('0x10')][_0xa0a5('0x0')](_0x44e445=>{const {data:_0x4c74ff}=_0x44e445;if(_0x4c74ff&&_0xa0a5('0x1f')===_0x4c74ff[_0xa0a5('0x29')])return _0x4c74ff[_0xa0a5('0x22')][0x0][_0xa0a5('0x15')]?{'type':_0xa0a5('0xd'),'content':_0x26ef2c(_0x4efb9b,_0xa0a5('0x2e'),_0x4c74ff[_0xa0a5('0x22')][0x0]['styleName'][_0xa0a5('0x28')]())}:{'type':_0xa0a5('0xd'),'content':_0x26ef2c(_0x4efb9b,_0xa0a5('0x1d'),_0x4c74ff['commandParams'][0x0][_0xa0a5('0x3')][_0xa0a5('0x28')]())};});}['_getStyleDefinition'](_0x20fb27,_0x396ac8){let _0x2ef100=_0x396ac8[_0xa0a5('0x4')][_0xa0a5('0x7')](_0x6e5889=>_0x6e5889['name']===_0x20fb27);return _0x2ef100||(_0x2ef100=_0x396ac8['inline'][_0xa0a5('0x7')](_0x388637=>_0x388637[_0xa0a5('0x2f')]===_0x20fb27)),_0x2ef100;}[_0xa0a5('0x25')](_0x2d6346,_0x1aba8a,_0xf7b302,_0x128b91){const _0xb1c2f9=[];for(const _0x15202b of _0x1aba8a[_0xa0a5('0x11')]()){const _0x59cb69=_0x15202b[_0xa0a5('0xf')](_0x128b91);_0x59cb69&&(_0xf7b302[_0xa0a5('0x5')](_0x190327=>_0x59cb69[_0xa0a5('0x6')]['includes'](_0x190327))&&_0xb1c2f9[_0xa0a5('0x1c')](_0x2d6346[_0xa0a5('0x1e')](_0x15202b)));}return _0xb1c2f9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51c8=['last','isArray','table','from','addMarker:suggestion','minColumn','afterInit','selectTableRow','createPositionAt','insertTableColumnRight','execute','start','_tableSuggestions','root','isEqual','document','span','above','ELEMENT_TABLE_ROW','selection','every','getAttribute','*Insert:*\x20%0','registerDescriptionCallback','toLowerCase','join','getChanges','enqueueChange','getChildren','tableColumn','tablePaste','some','filter','$graveyard','substr','insertion','insertTableColumnLeft','getChangedMarkers','showSuggestionHighlights','element','isInContent','ELEMENT_TABLE_ROW_WITH_TEXT','ELEMENT_TABLE_WITH_TEXT','min','highest','push','item','locale','rootName','accept','isIntersectingWithRange','getContainedElement','subType','_acceptFormatSuggestionCallbackFactory','editor','name','left','getFirstRange','refresh','toViewElement','max','has','colspan','setSelection','deletion','isTouching','rowspan','markMultiRangeInsertion','getSelectionAffectedTableCells','getCellLocation','removeTableColumn','addRange','TableUtils','nodeAfter','hasAttribute','plugins','createRangeOn','getItems','ELEMENT_TABLE','findAncestor','get','commands','_getSuggestionCoords','createRangeIn','add','change:data','ELEMENT_TABLE_COLUMN','insertTableRowBelow','getRanges','addClass','removeTableRow','tableRow','classes','forceValue','getRowIndexes','length','position','tableCell','MIN_SAFE_INTEGER','order','selectTableColumn','createTableWalker','writer','TableEditing','data','change','registerElementLabel','cell','type','_setupColumnsRowsFixing','registerCustomCallback','maxColumn','getColumnIndexes','_splitMarkerName','discard','map','_tablePostFixingSubtypes','markMultiRangeDeletion','_suggestionFactory','nodeBefore','MAX_SAFE_INTEGER','first','includes','maxRow','getSuggestion','$textProxy','_descriptionFactory','end','batch','options','model','*Remove:*\x20%0','detach','TrackChangesEditing','fromRange','enableCommand','suggestion'];(function(_0x1a1634,_0x51c88c){const _0x343785=function(_0x47fe0a){while(--_0x47fe0a){_0x1a1634['push'](_0x1a1634['shift']());}};_0x343785(++_0x51c88c);}(_0x51c8,0xd1));const _0x3437=function(_0x1a1634,_0x51c88c){_0x1a1634=_0x1a1634-0x0;let _0x343785=_0x51c8[_0x1a1634];return _0x343785;};import{Plugin as _0xb0cbab}from'ckeditor5/src/core';import{LiveRange as _0x31f109}from'ckeditor5/src/engine';import{setHighlightHandling as _0x1219f1}from'ckeditor5/src/widget';import{getTranslation as _0x57e92f}from'../utils/common-translations';export default class dt extends _0xb0cbab{constructor(_0x55a8fc){super(_0x55a8fc),this[_0x3437('0x2c')]=['tableRow',_0x3437('0x5e')],this['_tableSuggestions']=new Set();}[_0x3437('0x47')](){const _0x392c55=this[_0x3437('0x77')],_0x27cf9f=_0x392c55['model'][_0x3437('0x50')][_0x3437('0x54')];if(!_0x392c55[_0x3437('0x3')][_0x3437('0x7e')](_0x3437('0x1f')))return;const _0x76d4a4=_0x392c55[_0x3437('0x70')],_0x30f0fb=_0x392c55[_0x3437('0x3')][_0x3437('0x8')](_0x3437('0x3d')),_0x4788e7=_0x392c55[_0x3437('0x3')][_0x3437('0x8')](_0x3437('0x0'));_0x30f0fb[_0x3437('0x36')][_0x3437('0x22')](_0x3437('0x43'),_0x3081ea=>_0x57e92f(_0x76d4a4,_0x3437('0x6'),_0x3081ea)),this[_0x3437('0x25')](),_0x30f0fb[_0x3437('0x3f')]('insertTable'),_0x30f0fb['enableCommand'](_0x3437('0x48')),_0x30f0fb[_0x3437('0x3f')](_0x3437('0x1c'));for(const _0x5bee54 of['insertTableRowAbove',_0x3437('0xf')]){const _0x279768=_0x392c55[_0x3437('0x9')]['get'](_0x5bee54);_0x30f0fb[_0x3437('0x3f')](_0x5bee54,_0x77e285=>{_0x392c55[_0x3437('0x3a')][_0x3437('0x21')](_0x1ec1b2=>{_0x77e285();const _0x2daaa5=_0x3437('0x52')===_0x279768[_0x3437('0x1b')],_0x40836b=_0x4788e7[_0x3437('0x85')](_0x27cf9f),_0x57e3e8=_0x4788e7[_0x3437('0x16')](_0x40836b),_0x269b7=_0x2daaa5?_0x57e3e8[_0x3437('0x31')]-0x1:_0x57e3e8[_0x3437('0x41')]+0x1,_0x25c6ec=_0x40836b[0x0][_0x3437('0x7')](_0x3437('0x43')),_0x1e91c3=_0x4788e7[_0x3437('0x1d')](_0x25c6ec,{'startRow':_0x269b7,'endRow':_0x269b7}),_0x1081d0=Array[_0x3437('0x44')](_0x1e91c3)[_0x3437('0x2b')](_0x2a02a2=>_0x1ec1b2[_0x3437('0x4')](_0x2a02a2[_0x3437('0x23')]));_0x30f0fb['markMultiRangeInsertion'](_0x1081d0,_0x3437('0x13'));});});}for(const _0x16addb of[_0x3437('0x65'),_0x3437('0x4a')]){const _0x38edea=_0x392c55[_0x3437('0x9')]['get'](_0x16addb);_0x30f0fb['enableCommand'](_0x16addb,_0x5a6034=>{_0x392c55[_0x3437('0x3a')][_0x3437('0x21')](_0xc77e22=>{_0x5a6034();const _0x38045e=_0x3437('0x79')===_0x38edea['order'],_0x288986=_0x4788e7[_0x3437('0x85')](_0x27cf9f),_0x334d70=_0x4788e7['getColumnIndexes'](_0x288986),_0x1a9b33=_0x38045e?_0x334d70[_0x3437('0x31')]-0x1:_0x334d70['last']+0x1,_0x249077=_0x288986[0x0][_0x3437('0x7')]('table'),_0x1d851d=_0x4788e7[_0x3437('0x1d')](_0x249077,{'startRow':0x0,'column':_0x1a9b33,'includeAllSlots':!0x1}),_0x245211=Array[_0x3437('0x44')](_0x1d851d)['map'](_0x1a9e20=>_0xc77e22[_0x3437('0x4')](_0x1a9e20[_0x3437('0x23')]));_0x30f0fb[_0x3437('0x84')](_0x245211,_0x3437('0x5e'));});});}for(const _0x9e51a0 of[_0x3437('0x12'),_0x3437('0x87')]){const _0x366ab6=_0x9e51a0['substr'](0xb),_0x4c9f29=_0x366ab6[_0x3437('0x59')](),_0x4f2d66=_0x4c9f29['substr'](0x0,0x3)+'span',_0x4f4bfa=_0x3437('0x43')+_0x366ab6,_0x22cfaf='min'+_0x366ab6,_0x5e7e93=_0x3437('0x7d')+_0x366ab6;_0x30f0fb[_0x3437('0x3f')](_0x9e51a0,()=>{_0x392c55[_0x3437('0x3a')]['change'](_0x2b3201=>{const _0x588f11=_0x4788e7[_0x3437('0x85')](_0x27cf9f),_0x243248=_0x588f11[0x0][_0x3437('0x7')](_0x3437('0x43'));let _0x1cd5ec;if('removeTableRow'==_0x9e51a0){const _0x2b09b6=_0x4788e7[_0x3437('0x16')](_0x588f11);_0x1cd5ec={'startRow':_0x2b09b6['first'],'endRow':_0x2b09b6[_0x3437('0x41')],'includeAllSlots':!0x0};}else{const _0x5c8692=_0x4788e7[_0x3437('0x28')](_0x588f11);_0x1cd5ec={'startColumn':_0x5c8692[_0x3437('0x31')],'endColumn':_0x5c8692['last'],'includeAllSlots':!0x0};}const _0x506135=_0x4788e7[_0x3437('0x1d')](_0x243248,_0x1cd5ec),_0xac90b2=Array['from'](_0x506135)['map'](({cell:_0x239dd2})=>_0x239dd2),_0x110518=se(_0xac90b2['filter'](_0x50083b=>_0x50083b[_0x3437('0x2')](_0x4f2d66))),_0x597aa1=se(_0xac90b2[_0x3437('0x61')](_0x5c7aa7=>!_0x5c7aa7[_0x3437('0x2')](_0x4f2d66)))[_0x3437('0x2b')](_0x209909=>_0x2b3201['createRangeOn'](_0x209909)),_0xc249ac=_0x30f0fb[_0x3437('0x2d')](_0x597aa1,_0x4f4bfa);if(_0xc249ac&&('tableRow'==_0xc249ac[_0x3437('0x75')]||_0x3437('0x5e')==_0xc249ac[_0x3437('0x75')])){const _0x1e808d=this[_0x3437('0xa')](_0xc249ac);for(const _0x2611ca of _0x110518){const _0x5f4d20=_0x2b3201['createRangeOn'](_0x2611ca),_0x264009=_0x4788e7[_0x3437('0x86')](_0x2611ca),_0x29501a=_0x2611ca[_0x3437('0x56')](_0x4f2d66)-0x1,_0x1fdf19=_0x1e808d[_0x22cfaf],_0x35a793=_0x1e808d[_0x5e7e93];_0x1fdf19<=_0x264009[_0x4c9f29]&&_0x264009[_0x4c9f29]+_0x29501a<=_0x35a793&&_0xc249ac[_0x3437('0x88')](_0x5f4d20);}}});});}function _0x361d10(_0x592ac4){const _0x5cf4b2=Array[_0x3437('0x44')](_0x27cf9f[_0x3437('0x10')]())[_0x3437('0x2b')](_0x4ee186=>_0x31f109['fromRange'](_0x4ee186));_0x392c55[_0x3437('0x3a')]['change'](_0x25c210=>{const _0x4a9585=_0x25c210[_0x3437('0x38')];_0x592ac4=_0x592ac4[_0x3437('0x61')](_0x4e64a5=>_0x3437('0x62')!=_0x4e64a5[_0x3437('0x4e')]['rootName']),_0x25c210[_0x3437('0x80')](_0x592ac4),_0x392c55[_0x3437('0x9')][_0x3437('0x8')]('removeTableRow')[_0x3437('0x7b')](),_0x392c55[_0x3437('0x4b')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x392c55['model']['enqueueChange'](()=>{_0x392c55[_0x3437('0x3a')][_0x3437('0x5c')](_0x4a9585,_0x31302a=>{const _0x59889c=_0x5cf4b2['filter'](_0x35c395=>_0x3437('0x62')!=_0x35c395[_0x3437('0x4e')][_0x3437('0x71')]);_0x59889c['length']>0x0&&_0x31302a[_0x3437('0x80')](_0x59889c);for(const _0x2dc522 of _0x5cf4b2)_0x2dc522[_0x3437('0x3c')]();});});});}function _0x415239(_0x3fcaa8){_0x392c55['model'][_0x3437('0x21')](_0x53058c=>{const _0x1b5eed=Array[_0x3437('0x44')](_0x27cf9f[_0x3437('0x10')]())['map'](_0x12dc35=>_0x31f109[_0x3437('0x3e')](_0x12dc35)),_0x5b655a=[];for(const _0x1d22ef of _0x3fcaa8)for(const _0x2f8059 of _0x1d22ef[_0x3437('0x5')]({'shallow':!0x0}))_0x5b655a[_0x3437('0x6e')](_0x2f8059);for(const _0x1a43c6 of _0x5b655a)'$graveyard'!=_0x1a43c6['root'][_0x3437('0x71')]&&(_0x53058c[_0x3437('0x80')](_0x53058c[_0x3437('0x49')](_0x1a43c6,0x0)),_0x392c55[_0x3437('0x9')][_0x3437('0x8')](_0x3437('0x87'))['refresh'](),_0x392c55['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x291b59=_0x1b5eed[_0x3437('0x61')](_0x3439b9=>_0x3437('0x62')!=_0x3439b9[_0x3437('0x4e')][_0x3437('0x71')]);_0x291b59[_0x3437('0x17')]>0x0&&_0x53058c[_0x3437('0x80')](_0x291b59);for(const _0x5a17b5 of _0x1b5eed)_0x5a17b5[_0x3437('0x3c')]();});}function _0x3a8162(_0x387e77,_0x536346){return _0x536346[_0x3437('0x55')](_0x2b9718=>_0x387e77[_0x3437('0x60')](_0x134f71=>_0x134f71[_0x3437('0x37')][_0x3437('0x4f')](_0x2b9718[_0x3437('0x4c')])||_0x2b9718[_0x3437('0x37')]['isEqual'](_0x134f71['start'])));}function _0x5d8b89(_0x494ddd,_0x594358){return _0x494ddd[_0x3437('0x60')](_0x5bef8d=>_0x594358['some'](_0xbcd459=>_0x5bef8d['end'][_0x3437('0x82')](_0xbcd459[_0x3437('0x4c')])));}_0x392c55['data']['downcastDispatcher']['on'](_0x3437('0x45'),(_0x2be690,_0x529ad5,_0x4d9cf5)=>{if(!_0x4d9cf5[_0x3437('0x39')][_0x3437('0x67')])return;const _0x195a66=_0x529ad5[_0x3437('0x6f')];if(!_0x195a66)return;const _0x270d05=_0x4d9cf5['mapper'][_0x3437('0x7c')](_0x195a66);function _0xaedb4a(_0x3d801f){return Array[_0x3437('0x42')](_0x3d801f)?_0x3d801f:[_0x3d801f];}_0x270d05&&_0x3437('0x19')===_0x195a66[_0x3437('0x78')]&&_0x1219f1(_0x270d05,_0x4d9cf5[_0x3437('0x1e')],(_0x5109d6,_0x323d98,_0x13f25b)=>_0x13f25b[_0x3437('0x11')](_0xaedb4a(_0x323d98['classes']),_0x5109d6),(_0x21d0e3,_0x588efb,_0x429b14)=>_0x429b14['removeClass'](_0xaedb4a(_0x588efb[_0x3437('0x14')]),_0x21d0e3));},{'priority':_0x3437('0x6d')}),_0x30f0fb[_0x3437('0x36')]['registerDescriptionCallback'](_0x1cdaaa=>{if('insertion'!=_0x1cdaaa['type']&&_0x3437('0x81')!=_0x1cdaaa['type'])return;const _0x42c3bc=_0x1cdaaa[_0x3437('0x74')]();if(null!=_0x42c3bc&&_0x42c3bc['is'](_0x3437('0x68'),_0x3437('0x43'))){if(_0x3437('0x64')==_0x1cdaaa[_0x3437('0x24')]){const _0x209553=_0x1cdaaa[_0x3437('0x5')]()[_0x3437('0x61')](_0x19ba11=>_0x19ba11['is'](_0x3437('0x35')))['map'](_0x308d16=>_0x308d16[_0x3437('0x20')]);if(_0x209553[_0x3437('0x17')])return{'type':_0x3437('0x64'),'content':_0x57e92f(_0x76d4a4,_0x3437('0x57'),_0x57e92f(_0x76d4a4,_0x3437('0x6b'),'\x22'+_0x209553['join']('\x20')+'\x22'))};}if(_0x3437('0x81')==_0x1cdaaa[_0x3437('0x24')]){const _0x5e0b8f=_0x1cdaaa[_0x3437('0x5')]()[_0x3437('0x61')](_0x11cb2a=>_0x11cb2a['is'](_0x3437('0x35')))[_0x3437('0x2b')](_0x5415ba=>_0x5415ba[_0x3437('0x20')]);if(_0x5e0b8f[_0x3437('0x17')])return{'type':'deletion','content':_0x57e92f(_0x76d4a4,_0x3437('0x3b'),_0x57e92f(_0x76d4a4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e0b8f['join']('\x20')+'\x22'))};}}}),_0x30f0fb[_0x3437('0x36')][_0x3437('0x58')](_0x513317=>{if(_0x3437('0x13')==_0x513317[_0x3437('0x75')]){const _0x1e6d5b=_0x513317[_0x3437('0x5')]()[_0x3437('0x61')](_0x157524=>_0x157524['is'](_0x3437('0x35')))['map'](_0x375e5f=>_0x375e5f[_0x3437('0x20')]),_0x57df4c=this['_getSuggestionCoords'](_0x513317),_0x43b01b=_0x57df4c[_0x3437('0x33')]-_0x57df4c['minRow']+0x1;if(_0x3437('0x64')==_0x513317[_0x3437('0x24')])return _0x1e6d5b[_0x3437('0x17')]?{'type':_0x3437('0x64'),'content':_0x57e92f(_0x76d4a4,'*Insert:*\x20%0',_0x57e92f(_0x76d4a4,_0x3437('0x6a'),[_0x43b01b,'\x22'+_0x1e6d5b[_0x3437('0x5a')]('\x20')+'\x22']))}:{'type':_0x3437('0x64'),'content':_0x57e92f(_0x76d4a4,'*Insert:*\x20%0',_0x57e92f(_0x76d4a4,'ELEMENT_TABLE_ROW',_0x43b01b))};if(_0x3437('0x81')==_0x513317[_0x3437('0x24')])return _0x1e6d5b[_0x3437('0x17')]?{'type':_0x3437('0x81'),'content':_0x57e92f(_0x76d4a4,_0x3437('0x3b'),_0x57e92f(_0x76d4a4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x43b01b,'\x22'+_0x1e6d5b[_0x3437('0x5a')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x57e92f(_0x76d4a4,_0x3437('0x3b'),_0x57e92f(_0x76d4a4,_0x3437('0x53'),_0x43b01b))};}if(_0x3437('0x5e')==_0x513317[_0x3437('0x75')]){const _0x526df4=_0x513317[_0x3437('0x5')]()[_0x3437('0x61')](_0x1323db=>_0x1323db['is'](_0x3437('0x35')))['map'](_0x41a9a7=>_0x41a9a7['data']),_0x42fde2=this[_0x3437('0xa')](_0x513317),_0x72a0ff=_0x42fde2[_0x3437('0x27')]-_0x42fde2[_0x3437('0x46')]+0x1;if('insertion'==_0x513317[_0x3437('0x24')])return _0x526df4[_0x3437('0x17')]?{'type':_0x3437('0x64'),'content':_0x57e92f(_0x76d4a4,_0x3437('0x57'),_0x57e92f(_0x76d4a4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x72a0ff,'\x22'+_0x526df4[_0x3437('0x5a')]('\x20')+'\x22']))}:{'type':_0x3437('0x64'),'content':_0x57e92f(_0x76d4a4,_0x3437('0x57'),_0x57e92f(_0x76d4a4,'ELEMENT_TABLE_COLUMN',_0x72a0ff))};if(_0x3437('0x81')==_0x513317['type'])return _0x526df4['length']?{'type':_0x3437('0x81'),'content':_0x57e92f(_0x76d4a4,_0x3437('0x3b'),_0x57e92f(_0x76d4a4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x72a0ff,'\x22'+_0x526df4[_0x3437('0x5a')]('\x20')+'\x22']))}:{'type':_0x3437('0x81'),'content':_0x57e92f(_0x76d4a4,_0x3437('0x3b'),_0x57e92f(_0x76d4a4,_0x3437('0xe'),_0x72a0ff))};}}),_0x30f0fb['_suggestionFactory'][_0x3437('0x26')](_0x3437('0x64'),_0x3437('0x13'),_0x3437('0x2a'),_0x361d10),_0x30f0fb[_0x3437('0x2e')][_0x3437('0x26')](_0x3437('0x81'),'tableRow',_0x3437('0x72'),_0x361d10),_0x30f0fb[_0x3437('0x2e')][_0x3437('0x26')](_0x3437('0x64'),'tableColumn',_0x3437('0x2a'),_0x415239),_0x30f0fb['_suggestionFactory']['registerCustomCallback']('deletion',_0x3437('0x5e'),_0x3437('0x72'),_0x415239),_0x30f0fb[_0x3437('0x2e')]['registerCustomCallback'](_0x3437('0x64'),_0x3437('0x5e'),_0x3437('0x5a'),_0x3a8162),_0x30f0fb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn',_0x3437('0x5a'),_0x3a8162),_0x30f0fb['_suggestionFactory'][_0x3437('0x26')](_0x3437('0x64'),_0x3437('0x13'),_0x3437('0x5a'),_0x5d8b89),_0x30f0fb[_0x3437('0x2e')][_0x3437('0x26')](_0x3437('0x81'),_0x3437('0x13'),_0x3437('0x5a'),_0x5d8b89);}[_0x3437('0x76')](){const _0x40e68c=this['editor'],_0x56464e=_0x40e68c[_0x3437('0x3a')][_0x3437('0x50')]['selection'];return(_0x5f2429,_0x6f8fe8)=>{_0x40e68c[_0x3437('0x3a')]['change'](_0x1e75c1=>{const {commandName:_0x3df21b,commandParams:_0x2eee2}=_0x6f8fe8;let _0xeb2127=_0x5f2429[0x0][_0x3437('0x37')][_0x3437('0x2f')];_0x2eee2&&_0x2eee2[0x0]&&!0x1===_0x2eee2[0x0][_0x3437('0x15')]&&(_0xeb2127=_0x5f2429[0x0][_0x3437('0x4c')][_0x3437('0x1')]);const _0x5e7785=_0x1e75c1[_0x3437('0xb')](_0xeb2127);if(_0x3437('0x62')==_0x5e7785[_0x3437('0x4e')][_0x3437('0x71')])return;const _0x26ac3f=Array[_0x3437('0x44')](_0x56464e[_0x3437('0x10')]())[_0x3437('0x2b')](_0x5118e2=>_0x31f109[_0x3437('0x3e')](_0x5118e2));_0x1e75c1[_0x3437('0x80')](_0x5e7785),_0x40e68c[_0x3437('0x9')][_0x3437('0x8')](_0x3df21b)[_0x3437('0x7b')](),_0x2eee2[_0x3437('0x6e')]({'forceDefaultExecution':!0x0}),_0x40e68c[_0x3437('0x4b')](_0x3df21b,..._0x2eee2);const _0x3f2e4b=_0x26ac3f['filter'](_0x4471d2=>_0x3437('0x62')!=_0x4471d2['root'][_0x3437('0x71')]);_0x3f2e4b[_0x3437('0x17')]>0x0&&_0x1e75c1[_0x3437('0x80')](_0x3f2e4b);for(const _0x185a62 of _0x26ac3f)_0x185a62[_0x3437('0x3c')]();});};}['_getCoordsForCells'](_0x2f3e23){const _0x4dcfab=this[_0x3437('0x77')][_0x3437('0x3')][_0x3437('0x8')](_0x3437('0x0'));let _0x597747=Number[_0x3437('0x30')],_0x53e135=Number[_0x3437('0x1a')],_0x29bdef=Number[_0x3437('0x30')],_0x3c5a68=Number[_0x3437('0x1a')];for(const _0x44cac8 of _0x2f3e23){if(_0x3437('0x62')==_0x44cac8[_0x3437('0x4e')][_0x3437('0x71')])continue;const {row:_0x378eba,column:_0x28c146}=_0x4dcfab['getCellLocation'](_0x44cac8),_0xcba5de=_0x44cac8[_0x3437('0x2')](_0x3437('0x83'))?_0x44cac8[_0x3437('0x56')](_0x3437('0x83'))-0x1:0x0,_0x4b9c8c=_0x44cac8['hasAttribute'](_0x3437('0x7f'))?_0x44cac8['getAttribute'](_0x3437('0x7f'))-0x1:0x0;_0x597747=_0x378eba<_0x597747?_0x378eba:_0x597747,_0x53e135=_0x378eba+_0xcba5de>_0x53e135?_0x378eba+_0xcba5de:_0x53e135,_0x29bdef=_0x28c146<_0x29bdef?_0x28c146:_0x29bdef,_0x3c5a68=_0x28c146+_0x4b9c8c>_0x3c5a68?_0x28c146+_0x4b9c8c:_0x3c5a68;}return{'minRow':_0x597747,'maxRow':_0x53e135,'minColumn':_0x29bdef,'maxColumn':_0x3c5a68};}[_0x3437('0x25')](){const _0x35ddf7=this[_0x3437('0x77')],_0x5a36e9=_0x35ddf7['plugins'][_0x3437('0x8')]('TrackChangesEditing'),_0x5bac74=_0x35ddf7[_0x3437('0x3')]['get'](_0x3437('0x0'));_0x35ddf7[_0x3437('0x3a')][_0x3437('0x50')]['on'](_0x3437('0xd'),()=>{const _0x101440=Array['from'](_0x35ddf7['model'][_0x3437('0x50')]['differ'][_0x3437('0x66')]());for(const {name:_0x14eec2,data:_0x21f6c4}of _0x101440){const {group:_0x847f0d,id:_0x1ba2aa,subType:_0x50ac64}=_0x5a36e9[_0x3437('0x29')](_0x14eec2);if(_0x3437('0x40')!=_0x847f0d)continue;if(null!=_0x21f6c4['oldRange'])continue;const _0x1a9938=_0x5a36e9[_0x3437('0x34')](_0x1ba2aa);this[_0x3437('0x2c')][_0x3437('0x32')](_0x50ac64)&&this[_0x3437('0x4d')][_0x3437('0xc')](_0x1a9938);}},{'priority':'low'});const _0x29daf4=(_0x55b784,_0xa1ebb1)=>{let _0x36cf89=!0x1;const _0x35ee79=_0xa1ebb1[_0x3437('0x4')](_0x55b784),_0x1f2089=_0x55b784[_0x3437('0x7')](_0x3437('0x43')),_0x4ecec9=_0x5bac74[_0x3437('0x86')](_0x55b784);for(const _0xa5f938 of this[_0x3437('0x4d')]){const _0x28c22e=_0xa5f938[_0x3437('0x75')],_0x334eba=_0x28c22e['startsWith'](_0x3437('0x5f')),_0x325a00=_0x28c22e['substr'](_0x334eba?0xa:0x5),_0x340e97=_0x325a00[_0x3437('0x59')](),_0x5a294b=_0x340e97[_0x3437('0x63')](0x0,0x3)+_0x3437('0x51'),_0x5dab72=_0x3437('0x6c')+_0x325a00,_0x5510b4=_0x3437('0x7d')+_0x325a00;if(!_0xa5f938[_0x3437('0x69')])continue;if(_0x1f2089!=_0xa5f938[_0x3437('0x7a')]()[_0x3437('0x4c')][_0x3437('0x7')]('table'))continue;if(_0xa5f938[_0x3437('0x73')](_0x35ee79))continue;const _0x19c90d=_0x55b784[_0x3437('0x2')](_0x5a294b)?_0x55b784['getAttribute'](_0x5a294b)-0x1:0x0,_0x5639a8=this['_getSuggestionCoords'](_0xa5f938),_0xc8e96f=_0x5639a8[_0x5dab72],_0x34b608=_0x5639a8[_0x5510b4];_0xc8e96f<=_0x4ecec9[_0x340e97]&&_0x4ecec9[_0x340e97]+_0x19c90d<=_0x34b608&&(_0xa5f938[_0x3437('0x88')](_0x35ee79),_0x36cf89=!0x0);}return _0x36cf89;};_0x35ddf7['model'][_0x3437('0x50')]['registerPostFixer'](_0x40e44b=>{let _0xd186f=!0x1;for(const _0xce6f50 of _0x35ddf7[_0x3437('0x3a')][_0x3437('0x50')]['differ'][_0x3437('0x5b')]())if('insert'==_0xce6f50[_0x3437('0x24')]){if(_0x3437('0x13')==_0xce6f50[_0x3437('0x78')])for(const _0x36fe9c of _0xce6f50[_0x3437('0x18')]['nodeAfter'][_0x3437('0x5d')]())_0xd186f=_0xd186f||_0x29daf4(_0x36fe9c,_0x40e44b);else _0x3437('0x19')==_0xce6f50['name']&&(_0xd186f=_0xd186f||_0x29daf4(_0xce6f50[_0x3437('0x18')][_0x3437('0x1')],_0x40e44b));}return _0xd186f;});}[_0x3437('0xa')](_0x105b39){return this['_getCoordsForCells'](_0x105b39[_0x3437('0x10')]()['map'](_0x19df3b=>_0x19df3b['start'][_0x3437('0x1')]));}}function se(_0x2fe4a9){return Array[_0x3437('0x44')](new Set(_0x2fe4a9)['values']());}
|
|
23
|
+
const _0xbdff=['get','insertion','_tableSuggestions','showSuggestionHighlights','first','TableUtils','selectTableColumn','$textProxy','registerElementLabel','ELEMENT_TABLE_ROW_WITH_TEXT','*Remove:*\x20%0','toViewElement','getRanges','enqueueChange','_tablePostFixingSubtypes','above','writer','deletion','span','position','$graveyard','tableRow','push','tableCell','registerCustomCallback','createTableWalker','getChanges','getRowIndexes','removeClass','differ','TrackChangesEditing','locale','insertTableColumnRight','from','detach','batch','_descriptionFactory','minColumn','isEqual','getFirstRange','downcastDispatcher','last','cell','has','insertTable','low','insertTableColumnLeft','min','createPositionAt','minRow','_getCoordsForCells','findAncestor','execute','*Insert:*\x20%0','addClass','tableColumn','start','addRange','colspan','TableEditing','tablePaste','toLowerCase','length','document','getSuggestion','oldRange','rowspan','ELEMENT_TABLE_WITH_TEXT','setSelection','getItems','discard','fromRange','enableCommand','_setupColumnsRowsFixing','registerDescriptionCallback','_getSuggestionCoords','substr','getCellLocation','ELEMENT_TABLE_COLUMN_WITH_TEXT','getChildren','ELEMENT_TABLE_COLUMN','plugins','afterInit','root','hasAttribute','MIN_SAFE_INTEGER','getChangedMarkers','add','maxColumn','join','end','data','isIntersectingWithRange','some','table','MAX_SAFE_INTEGER','_suggestionFactory','values','editor','subType','getSelectionAffectedTableCells','selectTableRow','selection','removeTableColumn','classes','markMultiRangeDeletion','ELEMENT_TABLE_ROW','model','change','isTouching','max','createRangeOn','getColumnIndexes','nodeAfter','rootName','filter','removeTableRow','map','isInContent','commands','includes','name','accept','_splitMarkerName','refresh','getAttribute','createRangeIn','suggestion','order','type','markMultiRangeInsertion'];(function(_0x185a7a,_0xbdff89){const _0x5d30a8=function(_0xb16806){while(--_0xb16806){_0x185a7a['push'](_0x185a7a['shift']());}};_0x5d30a8(++_0xbdff89);}(_0xbdff,0xca));const _0x5d30=function(_0x185a7a,_0xbdff89){_0x185a7a=_0x185a7a-0x0;let _0x5d30a8=_0xbdff[_0x185a7a];return _0x5d30a8;};import{Plugin as _0x5877b9}from'ckeditor5/src/core';import{LiveRange as _0x1629e6}from'ckeditor5/src/engine';import{setHighlightHandling as _0x129278}from'ckeditor5/src/widget';import{getTranslation as _0x423cce}from'../utils/common-translations';export default class dt extends _0x5877b9{constructor(_0x1bc6f9){super(_0x1bc6f9),this[_0x5d30('0x4a')]=['tableRow',_0x5d30('0x73')],this[_0x5d30('0x3e')]=new Set();}[_0x5d30('0xb')](){const _0x57bf51=this['editor'],_0x9bc6e0=_0x57bf51[_0x5d30('0x24')][_0x5d30('0x7b')]['selection'];if(!_0x57bf51[_0x5d30('0xa')][_0x5d30('0x67')](_0x5d30('0x77')))return;const _0x5527bf=_0x57bf51[_0x5d30('0x5b')],_0x4ffabe=_0x57bf51[_0x5d30('0xa')][_0x5d30('0x3c')](_0x5d30('0x5a')),_0x46f542=_0x57bf51[_0x5d30('0xa')][_0x5d30('0x3c')](_0x5d30('0x41'));_0x4ffabe[_0x5d30('0x60')][_0x5d30('0x44')](_0x5d30('0x17'),_0x523308=>_0x423cce(_0x5527bf,'ELEMENT_TABLE',_0x523308)),this['_setupColumnsRowsFixing'](),_0x4ffabe[_0x5d30('0x1')](_0x5d30('0x68')),_0x4ffabe[_0x5d30('0x1')](_0x5d30('0x1e')),_0x4ffabe[_0x5d30('0x1')](_0x5d30('0x42'));for(const _0x1f5703 of['insertTableRowAbove','insertTableRowBelow']){const _0x49abcb=_0x57bf51[_0x5d30('0x30')][_0x5d30('0x3c')](_0x1f5703);_0x4ffabe['enableCommand'](_0x1f5703,_0x53a08c=>{_0x57bf51[_0x5d30('0x24')][_0x5d30('0x25')](_0x578592=>{_0x53a08c();const _0x36ac19=_0x5d30('0x4b')===_0x49abcb['order'],_0x12fc8d=_0x46f542[_0x5d30('0x1d')](_0x9bc6e0),_0x1d05d0=_0x46f542[_0x5d30('0x57')](_0x12fc8d),_0x5d6b8f=_0x36ac19?_0x1d05d0[_0x5d30('0x40')]-0x1:_0x1d05d0[_0x5d30('0x65')]+0x1,_0x5524a6=_0x12fc8d[0x0][_0x5d30('0x6f')](_0x5d30('0x17')),_0x3777a9=_0x46f542['createTableWalker'](_0x5524a6,{'startRow':_0x5d6b8f,'endRow':_0x5d6b8f}),_0x477e80=Array[_0x5d30('0x5d')](_0x3777a9)[_0x5d30('0x2e')](_0x51844a=>_0x578592[_0x5d30('0x28')](_0x51844a['cell']));_0x4ffabe[_0x5d30('0x3b')](_0x477e80,'tableRow');});});}for(const _0x3ad253 of[_0x5d30('0x6a'),_0x5d30('0x5c')]){const _0x5d95c7=_0x57bf51[_0x5d30('0x30')][_0x5d30('0x3c')](_0x3ad253);_0x4ffabe[_0x5d30('0x1')](_0x3ad253,_0x1dbc27=>{_0x57bf51['model'][_0x5d30('0x25')](_0x36b66a=>{_0x1dbc27();const _0x3b0913='left'===_0x5d95c7[_0x5d30('0x39')],_0x2f9f36=_0x46f542[_0x5d30('0x1d')](_0x9bc6e0),_0x5f4b96=_0x46f542[_0x5d30('0x29')](_0x2f9f36),_0x192405=_0x3b0913?_0x5f4b96[_0x5d30('0x40')]-0x1:_0x5f4b96[_0x5d30('0x65')]+0x1,_0x10f055=_0x2f9f36[0x0][_0x5d30('0x6f')](_0x5d30('0x17')),_0x47124d=_0x46f542['createTableWalker'](_0x10f055,{'startRow':0x0,'column':_0x192405,'includeAllSlots':!0x1}),_0x1cf42a=Array[_0x5d30('0x5d')](_0x47124d)[_0x5d30('0x2e')](_0x2b175c=>_0x36b66a[_0x5d30('0x28')](_0x2b175c[_0x5d30('0x66')]));_0x4ffabe[_0x5d30('0x3b')](_0x1cf42a,_0x5d30('0x73'));});});}for(const _0x20deba of['removeTableRow',_0x5d30('0x20')]){const _0x537f08=_0x20deba[_0x5d30('0x5')](0xb),_0x18e673=_0x537f08[_0x5d30('0x79')](),_0x73e756=_0x18e673[_0x5d30('0x5')](0x0,0x3)+_0x5d30('0x4e'),_0x3710f0=_0x5d30('0x17')+_0x537f08,_0x2a8cb9='min'+_0x537f08,_0x415e80=_0x5d30('0x27')+_0x537f08;_0x4ffabe[_0x5d30('0x1')](_0x20deba,()=>{_0x57bf51[_0x5d30('0x24')]['change'](_0xcf1289=>{const _0x1a8fdb=_0x46f542[_0x5d30('0x1d')](_0x9bc6e0),_0x53d0b8=_0x1a8fdb[0x0]['findAncestor'](_0x5d30('0x17'));let _0x703be1;if(_0x5d30('0x2d')==_0x20deba){const _0x2d91e0=_0x46f542[_0x5d30('0x57')](_0x1a8fdb);_0x703be1={'startRow':_0x2d91e0[_0x5d30('0x40')],'endRow':_0x2d91e0[_0x5d30('0x65')],'includeAllSlots':!0x0};}else{const _0x2a09ff=_0x46f542['getColumnIndexes'](_0x1a8fdb);_0x703be1={'startColumn':_0x2a09ff[_0x5d30('0x40')],'endColumn':_0x2a09ff['last'],'includeAllSlots':!0x0};}const _0x3dddd3=_0x46f542[_0x5d30('0x55')](_0x53d0b8,_0x703be1),_0x1e909b=Array[_0x5d30('0x5d')](_0x3dddd3)['map'](({cell:_0x4712b4})=>_0x4712b4),_0x571677=se(_0x1e909b[_0x5d30('0x2c')](_0x1ada7c=>_0x1ada7c[_0x5d30('0xd')](_0x73e756))),_0x4ecad=se(_0x1e909b[_0x5d30('0x2c')](_0x35080e=>!_0x35080e[_0x5d30('0xd')](_0x73e756)))[_0x5d30('0x2e')](_0x120ed5=>_0xcf1289[_0x5d30('0x28')](_0x120ed5)),_0x5479bd=_0x4ffabe[_0x5d30('0x22')](_0x4ecad,_0x3710f0);if(_0x5479bd&&(_0x5d30('0x51')==_0x5479bd[_0x5d30('0x1c')]||'tableColumn'==_0x5479bd[_0x5d30('0x1c')])){const _0x4a14f1=this['_getSuggestionCoords'](_0x5479bd);for(const _0x16fde4 of _0x571677){const _0xc85d07=_0xcf1289[_0x5d30('0x28')](_0x16fde4),_0x3ba8ba=_0x46f542['getCellLocation'](_0x16fde4),_0x2f1d50=_0x16fde4[_0x5d30('0x36')](_0x73e756)-0x1,_0x4c96e7=_0x4a14f1[_0x2a8cb9],_0x2af0f5=_0x4a14f1[_0x415e80];_0x4c96e7<=_0x3ba8ba[_0x18e673]&&_0x3ba8ba[_0x18e673]+_0x2f1d50<=_0x2af0f5&&_0x5479bd[_0x5d30('0x75')](_0xc85d07);}}});});}function _0xb411b0(_0xc1213d){const _0x4bba3d=Array[_0x5d30('0x5d')](_0x9bc6e0[_0x5d30('0x48')]())[_0x5d30('0x2e')](_0x24fda0=>_0x1629e6['fromRange'](_0x24fda0));_0x57bf51[_0x5d30('0x24')]['change'](_0x335ef6=>{const _0x1d7e78=_0x335ef6[_0x5d30('0x5f')];_0xc1213d=_0xc1213d['filter'](_0x51f5fd=>_0x5d30('0x50')!=_0x51f5fd[_0x5d30('0xc')][_0x5d30('0x2b')]),_0x335ef6[_0x5d30('0x80')](_0xc1213d),_0x57bf51[_0x5d30('0x30')]['get'](_0x5d30('0x2d'))[_0x5d30('0x35')](),_0x57bf51['execute'](_0x5d30('0x2d'),{'forceDefaultExecution':!0x0}),_0x57bf51[_0x5d30('0x24')][_0x5d30('0x49')](()=>{_0x57bf51[_0x5d30('0x24')]['enqueueChange'](_0x1d7e78,_0x5b85f3=>{const _0x51939c=_0x4bba3d[_0x5d30('0x2c')](_0x25c1ff=>_0x5d30('0x50')!=_0x25c1ff[_0x5d30('0xc')][_0x5d30('0x2b')]);_0x51939c[_0x5d30('0x7a')]>0x0&&_0x5b85f3[_0x5d30('0x80')](_0x51939c);for(const _0x1eeb79 of _0x4bba3d)_0x1eeb79[_0x5d30('0x5e')]();});});});}function _0x488dff(_0x408ca8){_0x57bf51[_0x5d30('0x24')][_0x5d30('0x25')](_0x1599c1=>{const _0x1946e0=Array[_0x5d30('0x5d')](_0x9bc6e0['getRanges']())[_0x5d30('0x2e')](_0x4aa3b5=>_0x1629e6[_0x5d30('0x0')](_0x4aa3b5)),_0x3da6b4=[];for(const _0x425ca3 of _0x408ca8)for(const _0x385bc5 of _0x425ca3[_0x5d30('0x81')]({'shallow':!0x0}))_0x3da6b4[_0x5d30('0x52')](_0x385bc5);for(const _0xfb01a7 of _0x3da6b4)_0x5d30('0x50')!=_0xfb01a7[_0x5d30('0xc')]['rootName']&&(_0x1599c1[_0x5d30('0x80')](_0x1599c1[_0x5d30('0x6c')](_0xfb01a7,0x0)),_0x57bf51[_0x5d30('0x30')][_0x5d30('0x3c')]('removeTableColumn')[_0x5d30('0x35')](),_0x57bf51['execute'](_0x5d30('0x20'),{'forceDefaultExecution':!0x0}));const _0x30a900=_0x1946e0[_0x5d30('0x2c')](_0x2e0260=>'$graveyard'!=_0x2e0260[_0x5d30('0xc')][_0x5d30('0x2b')]);_0x30a900[_0x5d30('0x7a')]>0x0&&_0x1599c1[_0x5d30('0x80')](_0x30a900);for(const _0x515f45 of _0x1946e0)_0x515f45['detach']();});}function _0x5b8a98(_0x309552,_0x1f3ce5){return _0x1f3ce5['every'](_0x38aa0a=>_0x309552[_0x5d30('0x16')](_0x38e92f=>_0x38e92f['end'][_0x5d30('0x62')](_0x38aa0a[_0x5d30('0x74')])||_0x38aa0a['end'][_0x5d30('0x62')](_0x38e92f[_0x5d30('0x74')])));}function _0x5ac974(_0xd2145e,_0x30f17b){return _0xd2145e[_0x5d30('0x16')](_0x3c2d61=>_0x30f17b[_0x5d30('0x16')](_0x3166da=>_0x3c2d61['end'][_0x5d30('0x26')](_0x3166da[_0x5d30('0x74')])));}_0x57bf51[_0x5d30('0x14')][_0x5d30('0x64')]['on']('addMarker:suggestion',(_0x402f39,_0x567bf3,_0x36dae2)=>{if(!_0x36dae2['options'][_0x5d30('0x3f')])return;const _0x4356ca=_0x567bf3['item'];if(!_0x4356ca)return;const _0x388f98=_0x36dae2['mapper'][_0x5d30('0x47')](_0x4356ca);function _0x496918(_0x42a0b1){return Array['isArray'](_0x42a0b1)?_0x42a0b1:[_0x42a0b1];}_0x388f98&&_0x5d30('0x53')===_0x4356ca[_0x5d30('0x32')]&&_0x129278(_0x388f98,_0x36dae2[_0x5d30('0x4c')],(_0x19b2de,_0xdc420f,_0x4e4832)=>_0x4e4832[_0x5d30('0x72')](_0x496918(_0xdc420f['classes']),_0x19b2de),(_0x345302,_0x43a9a4,_0x52b93d)=>_0x52b93d[_0x5d30('0x58')](_0x496918(_0x43a9a4[_0x5d30('0x21')]),_0x345302));},{'priority':'highest'}),_0x4ffabe[_0x5d30('0x60')][_0x5d30('0x3')](_0x56129d=>{if('insertion'!=_0x56129d[_0x5d30('0x3a')]&&_0x5d30('0x4d')!=_0x56129d['type'])return;const _0xdcf53a=_0x56129d['getContainedElement']();if(null!=_0xdcf53a&&_0xdcf53a['is']('element',_0x5d30('0x17'))){if(_0x5d30('0x3d')==_0x56129d[_0x5d30('0x3a')]){const _0x273b8a=_0x56129d[_0x5d30('0x81')]()[_0x5d30('0x2c')](_0x59120b=>_0x59120b['is'](_0x5d30('0x43')))[_0x5d30('0x2e')](_0x368882=>_0x368882[_0x5d30('0x14')]);if(_0x273b8a[_0x5d30('0x7a')])return{'type':_0x5d30('0x3d'),'content':_0x423cce(_0x5527bf,_0x5d30('0x71'),_0x423cce(_0x5527bf,_0x5d30('0x7f'),'\x22'+_0x273b8a['join']('\x20')+'\x22'))};}if(_0x5d30('0x4d')==_0x56129d[_0x5d30('0x3a')]){const _0x33b16e=_0x56129d[_0x5d30('0x81')]()[_0x5d30('0x2c')](_0x45f935=>_0x45f935['is'](_0x5d30('0x43')))[_0x5d30('0x2e')](_0x47557e=>_0x47557e[_0x5d30('0x14')]);if(_0x33b16e[_0x5d30('0x7a')])return{'type':_0x5d30('0x4d'),'content':_0x423cce(_0x5527bf,_0x5d30('0x46'),_0x423cce(_0x5527bf,_0x5d30('0x7f'),'\x22'+_0x33b16e['join']('\x20')+'\x22'))};}}}),_0x4ffabe['_descriptionFactory'][_0x5d30('0x3')](_0x272b2b=>{if(_0x5d30('0x51')==_0x272b2b[_0x5d30('0x1c')]){const _0xddd63e=_0x272b2b[_0x5d30('0x81')]()[_0x5d30('0x2c')](_0x24c1e4=>_0x24c1e4['is']('$textProxy'))[_0x5d30('0x2e')](_0x1d1b53=>_0x1d1b53[_0x5d30('0x14')]),_0x10fee5=this[_0x5d30('0x4')](_0x272b2b),_0x192d5c=_0x10fee5['maxRow']-_0x10fee5[_0x5d30('0x6d')]+0x1;if(_0x5d30('0x3d')==_0x272b2b[_0x5d30('0x3a')])return _0xddd63e[_0x5d30('0x7a')]?{'type':'insertion','content':_0x423cce(_0x5527bf,'*Insert:*\x20%0',_0x423cce(_0x5527bf,_0x5d30('0x45'),[_0x192d5c,'\x22'+_0xddd63e['join']('\x20')+'\x22']))}:{'type':_0x5d30('0x3d'),'content':_0x423cce(_0x5527bf,_0x5d30('0x71'),_0x423cce(_0x5527bf,_0x5d30('0x23'),_0x192d5c))};if('deletion'==_0x272b2b['type'])return _0xddd63e['length']?{'type':'deletion','content':_0x423cce(_0x5527bf,_0x5d30('0x46'),_0x423cce(_0x5527bf,_0x5d30('0x45'),[_0x192d5c,'\x22'+_0xddd63e[_0x5d30('0x12')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x423cce(_0x5527bf,_0x5d30('0x46'),_0x423cce(_0x5527bf,_0x5d30('0x23'),_0x192d5c))};}if(_0x5d30('0x73')==_0x272b2b[_0x5d30('0x1c')]){const _0x40e77c=_0x272b2b[_0x5d30('0x81')]()[_0x5d30('0x2c')](_0x479e4f=>_0x479e4f['is'](_0x5d30('0x43')))[_0x5d30('0x2e')](_0x251fc3=>_0x251fc3[_0x5d30('0x14')]),_0x1b3ed5=this[_0x5d30('0x4')](_0x272b2b),_0x5e96bf=_0x1b3ed5[_0x5d30('0x11')]-_0x1b3ed5[_0x5d30('0x61')]+0x1;if(_0x5d30('0x3d')==_0x272b2b[_0x5d30('0x3a')])return _0x40e77c[_0x5d30('0x7a')]?{'type':_0x5d30('0x3d'),'content':_0x423cce(_0x5527bf,_0x5d30('0x71'),_0x423cce(_0x5527bf,_0x5d30('0x7'),[_0x5e96bf,'\x22'+_0x40e77c['join']('\x20')+'\x22']))}:{'type':_0x5d30('0x3d'),'content':_0x423cce(_0x5527bf,_0x5d30('0x71'),_0x423cce(_0x5527bf,'ELEMENT_TABLE_COLUMN',_0x5e96bf))};if(_0x5d30('0x4d')==_0x272b2b[_0x5d30('0x3a')])return _0x40e77c[_0x5d30('0x7a')]?{'type':_0x5d30('0x4d'),'content':_0x423cce(_0x5527bf,_0x5d30('0x46'),_0x423cce(_0x5527bf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e96bf,'\x22'+_0x40e77c[_0x5d30('0x12')]('\x20')+'\x22']))}:{'type':_0x5d30('0x4d'),'content':_0x423cce(_0x5527bf,_0x5d30('0x46'),_0x423cce(_0x5527bf,_0x5d30('0x9'),_0x5e96bf))};}}),_0x4ffabe['_suggestionFactory']['registerCustomCallback'](_0x5d30('0x3d'),'tableRow','discard',_0xb411b0),_0x4ffabe['_suggestionFactory'][_0x5d30('0x54')](_0x5d30('0x4d'),_0x5d30('0x51'),_0x5d30('0x33'),_0xb411b0),_0x4ffabe[_0x5d30('0x19')][_0x5d30('0x54')]('insertion',_0x5d30('0x73'),_0x5d30('0x82'),_0x488dff),_0x4ffabe[_0x5d30('0x19')][_0x5d30('0x54')](_0x5d30('0x4d'),_0x5d30('0x73'),_0x5d30('0x33'),_0x488dff),_0x4ffabe['_suggestionFactory'][_0x5d30('0x54')](_0x5d30('0x3d'),_0x5d30('0x73'),_0x5d30('0x12'),_0x5b8a98),_0x4ffabe[_0x5d30('0x19')][_0x5d30('0x54')](_0x5d30('0x4d'),_0x5d30('0x73'),_0x5d30('0x12'),_0x5b8a98),_0x4ffabe[_0x5d30('0x19')][_0x5d30('0x54')](_0x5d30('0x3d'),_0x5d30('0x51'),_0x5d30('0x12'),_0x5ac974),_0x4ffabe[_0x5d30('0x19')][_0x5d30('0x54')]('deletion',_0x5d30('0x51'),_0x5d30('0x12'),_0x5ac974);}['_acceptFormatSuggestionCallbackFactory'](){const _0x523a4d=this[_0x5d30('0x1b')],_0x5d3565=_0x523a4d['model'][_0x5d30('0x7b')][_0x5d30('0x1f')];return(_0x23d273,_0x3969e0)=>{_0x523a4d[_0x5d30('0x24')]['change'](_0x5cd19f=>{const {commandName:_0x3c372f,commandParams:_0x286b4e}=_0x3969e0;let _0x596faa=_0x23d273[0x0][_0x5d30('0x13')]['nodeBefore'];_0x286b4e&&_0x286b4e[0x0]&&!0x1===_0x286b4e[0x0]['forceValue']&&(_0x596faa=_0x23d273[0x0][_0x5d30('0x74')][_0x5d30('0x2a')]);const _0x6656fc=_0x5cd19f[_0x5d30('0x37')](_0x596faa);if(_0x5d30('0x50')==_0x6656fc[_0x5d30('0xc')][_0x5d30('0x2b')])return;const _0x4de17d=Array[_0x5d30('0x5d')](_0x5d3565['getRanges']())['map'](_0x13dc7d=>_0x1629e6[_0x5d30('0x0')](_0x13dc7d));_0x5cd19f['setSelection'](_0x6656fc),_0x523a4d[_0x5d30('0x30')][_0x5d30('0x3c')](_0x3c372f)[_0x5d30('0x35')](),_0x286b4e[_0x5d30('0x52')]({'forceDefaultExecution':!0x0}),_0x523a4d[_0x5d30('0x70')](_0x3c372f,..._0x286b4e);const _0x406a2d=_0x4de17d[_0x5d30('0x2c')](_0x4a1f6d=>_0x5d30('0x50')!=_0x4a1f6d['root'][_0x5d30('0x2b')]);_0x406a2d[_0x5d30('0x7a')]>0x0&&_0x5cd19f['setSelection'](_0x406a2d);for(const _0x48161d of _0x4de17d)_0x48161d['detach']();});};}[_0x5d30('0x6e')](_0x56601e){const _0x10c094=this[_0x5d30('0x1b')][_0x5d30('0xa')][_0x5d30('0x3c')]('TableUtils');let _0x1d33ca=Number['MAX_SAFE_INTEGER'],_0x29db7e=Number[_0x5d30('0xe')],_0x31dd76=Number[_0x5d30('0x18')],_0x4bafb3=Number['MIN_SAFE_INTEGER'];for(const _0x46d2a8 of _0x56601e){if(_0x5d30('0x50')==_0x46d2a8[_0x5d30('0xc')][_0x5d30('0x2b')])continue;const {row:_0x1cad0c,column:_0x228672}=_0x10c094[_0x5d30('0x6')](_0x46d2a8),_0x14d9fb=_0x46d2a8[_0x5d30('0xd')](_0x5d30('0x7e'))?_0x46d2a8[_0x5d30('0x36')](_0x5d30('0x7e'))-0x1:0x0,_0x13f289=_0x46d2a8[_0x5d30('0xd')](_0x5d30('0x76'))?_0x46d2a8[_0x5d30('0x36')](_0x5d30('0x76'))-0x1:0x0;_0x1d33ca=_0x1cad0c<_0x1d33ca?_0x1cad0c:_0x1d33ca,_0x29db7e=_0x1cad0c+_0x14d9fb>_0x29db7e?_0x1cad0c+_0x14d9fb:_0x29db7e,_0x31dd76=_0x228672<_0x31dd76?_0x228672:_0x31dd76,_0x4bafb3=_0x228672+_0x13f289>_0x4bafb3?_0x228672+_0x13f289:_0x4bafb3;}return{'minRow':_0x1d33ca,'maxRow':_0x29db7e,'minColumn':_0x31dd76,'maxColumn':_0x4bafb3};}[_0x5d30('0x2')](){const _0x203434=this[_0x5d30('0x1b')],_0x296147=_0x203434[_0x5d30('0xa')][_0x5d30('0x3c')](_0x5d30('0x5a')),_0x4feb7a=_0x203434[_0x5d30('0xa')][_0x5d30('0x3c')](_0x5d30('0x41'));_0x203434[_0x5d30('0x24')][_0x5d30('0x7b')]['on']('change:data',()=>{const _0x2937f8=Array[_0x5d30('0x5d')](_0x203434['model'][_0x5d30('0x7b')][_0x5d30('0x59')][_0x5d30('0xf')]());for(const {name:_0x508849,data:_0x34ae19}of _0x2937f8){const {group:_0x174c9a,id:_0x55c2af,subType:_0x29f601}=_0x296147[_0x5d30('0x34')](_0x508849);if(_0x5d30('0x38')!=_0x174c9a)continue;if(null!=_0x34ae19[_0x5d30('0x7d')])continue;const _0x200688=_0x296147[_0x5d30('0x7c')](_0x55c2af);this[_0x5d30('0x4a')][_0x5d30('0x31')](_0x29f601)&&this[_0x5d30('0x3e')][_0x5d30('0x10')](_0x200688);}},{'priority':_0x5d30('0x69')});const _0x2a0521=(_0x56d875,_0x5e848b)=>{let _0x348aad=!0x1;const _0x204ccb=_0x5e848b[_0x5d30('0x28')](_0x56d875),_0x2bc645=_0x56d875[_0x5d30('0x6f')](_0x5d30('0x17')),_0x11e673=_0x4feb7a[_0x5d30('0x6')](_0x56d875);for(const _0x21e8ef of this['_tableSuggestions']){const _0x2f7ea2=_0x21e8ef[_0x5d30('0x1c')],_0x3c6f8e=_0x2f7ea2['startsWith'](_0x5d30('0x78')),_0x29a98c=_0x2f7ea2[_0x5d30('0x5')](_0x3c6f8e?0xa:0x5),_0x7c11e2=_0x29a98c[_0x5d30('0x79')](),_0x3d0d10=_0x7c11e2[_0x5d30('0x5')](0x0,0x3)+_0x5d30('0x4e'),_0x181f0a=_0x5d30('0x6b')+_0x29a98c,_0x4a1181='max'+_0x29a98c;if(!_0x21e8ef[_0x5d30('0x2f')])continue;if(_0x2bc645!=_0x21e8ef[_0x5d30('0x63')]()[_0x5d30('0x74')][_0x5d30('0x6f')]('table'))continue;if(_0x21e8ef[_0x5d30('0x15')](_0x204ccb))continue;const _0x1e142f=_0x56d875['hasAttribute'](_0x3d0d10)?_0x56d875[_0x5d30('0x36')](_0x3d0d10)-0x1:0x0,_0x418d21=this[_0x5d30('0x4')](_0x21e8ef),_0x1b8152=_0x418d21[_0x181f0a],_0x222a77=_0x418d21[_0x4a1181];_0x1b8152<=_0x11e673[_0x7c11e2]&&_0x11e673[_0x7c11e2]+_0x1e142f<=_0x222a77&&(_0x21e8ef[_0x5d30('0x75')](_0x204ccb),_0x348aad=!0x0);}return _0x348aad;};_0x203434[_0x5d30('0x24')][_0x5d30('0x7b')]['registerPostFixer'](_0x415ff1=>{let _0x103905=!0x1;for(const _0x39dbae of _0x203434[_0x5d30('0x24')][_0x5d30('0x7b')]['differ'][_0x5d30('0x56')]())if('insert'==_0x39dbae[_0x5d30('0x3a')]){if(_0x5d30('0x51')==_0x39dbae[_0x5d30('0x32')])for(const _0x445006 of _0x39dbae[_0x5d30('0x4f')][_0x5d30('0x2a')][_0x5d30('0x8')]())_0x103905=_0x103905||_0x2a0521(_0x445006,_0x415ff1);else _0x5d30('0x53')==_0x39dbae[_0x5d30('0x32')]&&(_0x103905=_0x103905||_0x2a0521(_0x39dbae[_0x5d30('0x4f')][_0x5d30('0x2a')],_0x415ff1));}return _0x103905;});}[_0x5d30('0x4')](_0x1a2f28){return this[_0x5d30('0x6e')](_0x1a2f28['getRanges']()[_0x5d30('0x2e')](_0xeb6097=>_0xeb6097[_0x5d30('0x74')][_0x5d30('0x2a')]));}}function se(_0x203bc6){return Array[_0x5d30('0x5d')](new Set(_0x203bc6)[_0x5d30('0x1a')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3547=['has','editor','plugins','TableCaptionEditing','requires','enableCommand','toggleTableCaption','afterInit'];(function(_0x37f418,_0x3547fa){const _0x4405ab=function(_0x2874c1){while(--_0x2874c1){_0x37f418['push'](_0x37f418['shift']());}};_0x4405ab(++_0x3547fa);}(_0x3547,0x14f));const _0x4405=function(_0x37f418,_0x3547fa){_0x37f418=_0x37f418-0x0;let _0x4405ab=_0x3547[_0x37f418];return _0x4405ab;};import{Plugin as _0x4d44ea}from'ckeditor5/src/core';import _0x12f5e6 from'./table';export default class At extends _0x4d44ea{static get[_0x4405('0x5')](){return[_0x12f5e6];}[_0x4405('0x0')](){const _0x2f2bf8=this[_0x4405('0x2')];if(!_0x2f2bf8[_0x4405('0x3')][_0x4405('0x1')](_0x4405('0x4')))return;_0x2f2bf8['plugins']['get']('TrackChangesEditing')[_0x4405('0x6')](_0x4405('0x7'));}}
|