@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231031.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 _0x46f7=['oldRange','rowspan','TableUtils','execute','createPositionAt','_suggestionFactory','from','isInContent','TrackChangesEditing','addRange','*Remove:*\x20%0','getRanges','nodeBefore','span','map','createRangeOn','$textProxy','removeTableColumn','substr','detach','getItems','forceValue','*Insert:*\x20%0','order','addClass','selection','ELEMENT_TABLE_ROW_WITH_TEXT','getAttribute','downcastDispatcher','tableCell','plugins','colspan','item','showSuggestionHighlights','max','last','differ','getSelectionAffectedTableCells','getColumnIndexes','MAX_SAFE_INTEGER','getFirstRange','minColumn','startsWith','type','length','data','_descriptionFactory','table','registerCustomCallback','insertTableRowBelow','insertTableColumnRight','subType','_tablePostFixingSubtypes','min','writer','first','getCellLocation','getContainedElement','markMultiRangeDeletion','tableRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','highest','registerPostFixer','element','accept','toViewElement','name','findAncestor','suggestion','insertion','removeClass','isTouching','addMarker:suggestion','getRowIndexes','createTableWalker','insertTableRowAbove','ELEMENT_TABLE_ROW','nodeAfter','end','some','hasAttribute','rootName','values','enqueueChange','commands','discard','classes','root','setSelection','batch','push','getSuggestion','cell','fromRange','_tableSuggestions','createRangeIn','toLowerCase','$graveyard','start','MIN_SAFE_INTEGER','deletion','join','tableColumn','get','has','isIntersectingWithRange','ELEMENT_TABLE_COLUMN','registerDescriptionCallback','document','_getCoordsForCells','markMultiRangeInsertion','removeTableRow','getChangedMarkers','filter','model','change','isEqual','includes','insert','enableCommand','editor','_getSuggestionCoords','TableEditing','tablePaste','ELEMENT_TABLE_WITH_TEXT','afterInit','getChanges','insertTableColumnLeft','mapper','refresh'];(function(_0x607b9f,_0x46f77b){const _0x160848=function(_0x4728a5){while(--_0x4728a5){_0x607b9f['push'](_0x607b9f['shift']());}};_0x160848(++_0x46f77b);}(_0x46f7,0x7d));const _0x1608=function(_0x607b9f,_0x46f77b){_0x607b9f=_0x607b9f-0x0;let _0x160848=_0x46f7[_0x607b9f];return _0x160848;};import{Plugin as _0x88560b}from'ckeditor5/src/core';import{LiveRange as _0x1732f3}from'ckeditor5/src/engine';import{setHighlightHandling as _0x4eb319}from'ckeditor5/src/widget';import{getTranslation as _0x281636}from'../utils/common-translations';export default class dt extends _0x88560b{constructor(_0x137f34){super(_0x137f34),this[_0x1608('0x39')]=[_0x1608('0x40'),'tableColumn'],this[_0x1608('0x63')]=new Set();}[_0x1608('0x0')](){const _0x48108f=this[_0x1608('0x7d')],_0x27681c=_0x48108f[_0x1608('0x77')][_0x1608('0x71')][_0x1608('0x1e')];if(!_0x48108f[_0x1608('0x23')][_0x1608('0x6d')](_0x1608('0x7f')))return;const _0x21a60f=_0x48108f['locale'],_0x220c52=_0x48108f[_0x1608('0x23')][_0x1608('0x6c')](_0x1608('0xd')),_0x5a0763=_0x48108f[_0x1608('0x23')]['get'](_0x1608('0x7'));_0x220c52[_0x1608('0x33')]['registerElementLabel'](_0x1608('0x34'),_0x1f421d=>_0x281636(_0x21a60f,'ELEMENT_TABLE',_0x1f421d)),this['_setupColumnsRowsFixing'](),_0x220c52[_0x1608('0x7c')]('insertTable'),_0x220c52['enableCommand']('selectTableRow'),_0x220c52[_0x1608('0x7c')]('selectTableColumn');for(const _0x436854 of[_0x1608('0x50'),_0x1608('0x36')]){const _0xcade8a=_0x48108f[_0x1608('0x59')][_0x1608('0x6c')](_0x436854);_0x220c52['enableCommand'](_0x436854,_0x1275db=>{_0x48108f[_0x1608('0x77')][_0x1608('0x78')](_0x577274=>{_0x1275db();const _0x509085='above'===_0xcade8a[_0x1608('0x1c')],_0x1043df=_0x5a0763[_0x1608('0x2a')](_0x27681c),_0x4503c3=_0x5a0763['getRowIndexes'](_0x1043df),_0x142e15=_0x509085?_0x4503c3['first']-0x1:_0x4503c3['last']+0x1,_0x33086c=_0x1043df[0x0]['findAncestor'](_0x1608('0x34')),_0x56b2b2=_0x5a0763[_0x1608('0x4f')](_0x33086c,{'startRow':_0x142e15,'endRow':_0x142e15}),_0x69e5de=Array[_0x1608('0xb')](_0x56b2b2)[_0x1608('0x13')](_0x325885=>_0x577274[_0x1608('0x14')](_0x325885[_0x1608('0x61')]));_0x220c52[_0x1608('0x73')](_0x69e5de,_0x1608('0x40'));});});}for(const _0x52254e of[_0x1608('0x2'),_0x1608('0x37')]){const _0x2a52e4=_0x48108f[_0x1608('0x59')]['get'](_0x52254e);_0x220c52[_0x1608('0x7c')](_0x52254e,_0x2a2464=>{_0x48108f[_0x1608('0x77')][_0x1608('0x78')](_0x2f5221=>{_0x2a2464();const _0x37bf68='left'===_0x2a52e4[_0x1608('0x1c')],_0x26c8cc=_0x5a0763['getSelectionAffectedTableCells'](_0x27681c),_0x3c40cf=_0x5a0763[_0x1608('0x2b')](_0x26c8cc),_0x37d028=_0x37bf68?_0x3c40cf[_0x1608('0x3c')]-0x1:_0x3c40cf[_0x1608('0x28')]+0x1,_0x1fb476=_0x26c8cc[0x0][_0x1608('0x48')](_0x1608('0x34')),_0x2fac0f=_0x5a0763[_0x1608('0x4f')](_0x1fb476,{'startRow':0x0,'column':_0x37d028,'includeAllSlots':!0x1}),_0x45be64=Array[_0x1608('0xb')](_0x2fac0f)['map'](_0xd7770=>_0x2f5221['createRangeOn'](_0xd7770[_0x1608('0x61')]));_0x220c52[_0x1608('0x73')](_0x45be64,_0x1608('0x6b'));});});}for(const _0x4663f3 of['removeTableRow',_0x1608('0x16')]){const _0x292a0f=_0x4663f3['substr'](0xb),_0xfe8cfd=_0x292a0f[_0x1608('0x65')](),_0x3c099e=_0xfe8cfd[_0x1608('0x17')](0x0,0x3)+_0x1608('0x12'),_0x3cf98c=_0x1608('0x34')+_0x292a0f,_0x461073=_0x1608('0x3a')+_0x292a0f,_0x117ce6=_0x1608('0x27')+_0x292a0f;_0x220c52['enableCommand'](_0x4663f3,()=>{_0x48108f[_0x1608('0x77')][_0x1608('0x78')](_0x37f257=>{const _0x1db228=_0x5a0763[_0x1608('0x2a')](_0x27681c),_0x43c798=_0x1db228[0x0][_0x1608('0x48')]('table');let _0x590494;if(_0x1608('0x74')==_0x4663f3){const _0x27a048=_0x5a0763[_0x1608('0x4e')](_0x1db228);_0x590494={'startRow':_0x27a048[_0x1608('0x3c')],'endRow':_0x27a048[_0x1608('0x28')],'includeAllSlots':!0x0};}else{const _0x32fd8b=_0x5a0763[_0x1608('0x2b')](_0x1db228);_0x590494={'startColumn':_0x32fd8b[_0x1608('0x3c')],'endColumn':_0x32fd8b[_0x1608('0x28')],'includeAllSlots':!0x0};}const _0x3a17c6=_0x5a0763['createTableWalker'](_0x43c798,_0x590494),_0x4f5818=Array[_0x1608('0xb')](_0x3a17c6)['map'](({cell:_0x463bbf})=>_0x463bbf),_0x5bca29=se(_0x4f5818[_0x1608('0x76')](_0xe531cd=>_0xe531cd['hasAttribute'](_0x3c099e))),_0xef795e=se(_0x4f5818[_0x1608('0x76')](_0x104c85=>!_0x104c85[_0x1608('0x55')](_0x3c099e)))[_0x1608('0x13')](_0x4c326c=>_0x37f257[_0x1608('0x14')](_0x4c326c)),_0x140cce=_0x220c52[_0x1608('0x3f')](_0xef795e,_0x3cf98c);if(_0x140cce&&(_0x1608('0x40')==_0x140cce[_0x1608('0x38')]||'tableColumn'==_0x140cce[_0x1608('0x38')])){const _0x56c9fb=this[_0x1608('0x7e')](_0x140cce);for(const _0x55a963 of _0x5bca29){const _0x39ae52=_0x37f257[_0x1608('0x14')](_0x55a963),_0xf2741c=_0x5a0763[_0x1608('0x3d')](_0x55a963),_0x31dc3e=_0x55a963[_0x1608('0x20')](_0x3c099e)-0x1,_0x47d008=_0x56c9fb[_0x461073],_0x1e19d5=_0x56c9fb[_0x117ce6];_0x47d008<=_0xf2741c[_0xfe8cfd]&&_0xf2741c[_0xfe8cfd]+_0x31dc3e<=_0x1e19d5&&_0x140cce['addRange'](_0x39ae52);}}});});}function _0x414c56(_0x83862){const _0x2f9173=Array[_0x1608('0xb')](_0x27681c['getRanges']())[_0x1608('0x13')](_0x19c374=>_0x1732f3[_0x1608('0x62')](_0x19c374));_0x48108f[_0x1608('0x77')][_0x1608('0x78')](_0x315ede=>{const _0x3a181e=_0x315ede[_0x1608('0x5e')];_0x83862=_0x83862[_0x1608('0x76')](_0x367ea6=>_0x1608('0x66')!=_0x367ea6[_0x1608('0x5c')]['rootName']),_0x315ede['setSelection'](_0x83862),_0x48108f['commands'][_0x1608('0x6c')]('removeTableRow')[_0x1608('0x4')](),_0x48108f[_0x1608('0x8')](_0x1608('0x74'),{'forceDefaultExecution':!0x0}),_0x48108f['model'][_0x1608('0x58')](()=>{_0x48108f['model'][_0x1608('0x58')](_0x3a181e,_0x281b44=>{const _0xc2c371=_0x2f9173[_0x1608('0x76')](_0x3971ce=>_0x1608('0x66')!=_0x3971ce[_0x1608('0x5c')][_0x1608('0x56')]);_0xc2c371[_0x1608('0x31')]>0x0&&_0x281b44[_0x1608('0x5d')](_0xc2c371);for(const _0x4e5b20 of _0x2f9173)_0x4e5b20['detach']();});});});}function _0x58bd85(_0x209201){_0x48108f[_0x1608('0x77')]['change'](_0x4612e0=>{const _0x9e463a=Array[_0x1608('0xb')](_0x27681c['getRanges']())['map'](_0x3beac4=>_0x1732f3[_0x1608('0x62')](_0x3beac4)),_0x4ac9be=[];for(const _0x41a7a1 of _0x209201)for(const _0x3228b1 of _0x41a7a1[_0x1608('0x19')]({'shallow':!0x0}))_0x4ac9be[_0x1608('0x5f')](_0x3228b1);for(const _0x266f05 of _0x4ac9be)_0x1608('0x66')!=_0x266f05[_0x1608('0x5c')][_0x1608('0x56')]&&(_0x4612e0['setSelection'](_0x4612e0[_0x1608('0x9')](_0x266f05,0x0)),_0x48108f['commands'][_0x1608('0x6c')](_0x1608('0x16'))[_0x1608('0x4')](),_0x48108f['execute'](_0x1608('0x16'),{'forceDefaultExecution':!0x0}));const _0x5881af=_0x9e463a[_0x1608('0x76')](_0x301376=>_0x1608('0x66')!=_0x301376[_0x1608('0x5c')][_0x1608('0x56')]);_0x5881af['length']>0x0&&_0x4612e0[_0x1608('0x5d')](_0x5881af);for(const _0x37edb5 of _0x9e463a)_0x37edb5['detach']();});}function _0x48da68(_0x3fa285,_0x30c9ab){return _0x30c9ab['every'](_0x1e1636=>_0x3fa285[_0x1608('0x54')](_0x4d259e=>_0x4d259e[_0x1608('0x53')][_0x1608('0x79')](_0x1e1636['start'])||_0x1e1636['end'][_0x1608('0x79')](_0x4d259e[_0x1608('0x67')])));}function _0x4d0e30(_0x42f1d8,_0x5d9515){return _0x42f1d8['some'](_0x3bbf7f=>_0x5d9515[_0x1608('0x54')](_0x41ff47=>_0x3bbf7f[_0x1608('0x53')][_0x1608('0x4c')](_0x41ff47[_0x1608('0x67')])));}_0x48108f[_0x1608('0x32')][_0x1608('0x21')]['on'](_0x1608('0x4d'),(_0x52a8ba,_0x2836ac,_0xb9f189)=>{if(!_0xb9f189['options'][_0x1608('0x26')])return;const _0x12e0c3=_0x2836ac[_0x1608('0x25')];if(!_0x12e0c3)return;const _0xb17e7a=_0xb9f189[_0x1608('0x3')][_0x1608('0x46')](_0x12e0c3);function _0x482cdc(_0x4569ec){return Array['isArray'](_0x4569ec)?_0x4569ec:[_0x4569ec];}_0xb17e7a&&_0x1608('0x22')===_0x12e0c3[_0x1608('0x47')]&&_0x4eb319(_0xb17e7a,_0xb9f189[_0x1608('0x3b')],(_0x277d87,_0x319a9f,_0x70bc47)=>_0x70bc47[_0x1608('0x1d')](_0x482cdc(_0x319a9f['classes']),_0x277d87),(_0x77b75f,_0x5aebb2,_0x5e6cf5)=>_0x5e6cf5[_0x1608('0x4b')](_0x482cdc(_0x5aebb2[_0x1608('0x5b')]),_0x77b75f));},{'priority':_0x1608('0x42')}),_0x220c52[_0x1608('0x33')][_0x1608('0x70')](_0x3169c5=>{if('insertion'!=_0x3169c5[_0x1608('0x30')]&&_0x1608('0x69')!=_0x3169c5[_0x1608('0x30')])return;const _0x20d72d=_0x3169c5[_0x1608('0x3e')]();if(null!=_0x20d72d&&_0x20d72d['is'](_0x1608('0x44'),_0x1608('0x34'))){if(_0x1608('0x4a')==_0x3169c5[_0x1608('0x30')]){const _0x2c76a8=_0x3169c5[_0x1608('0x19')]()['filter'](_0xd6a106=>_0xd6a106['is'](_0x1608('0x15')))[_0x1608('0x13')](_0x3ec324=>_0x3ec324['data']);if(_0x2c76a8['length'])return{'type':_0x1608('0x4a'),'content':_0x281636(_0x21a60f,_0x1608('0x1b'),_0x281636(_0x21a60f,_0x1608('0x81'),'\x22'+_0x2c76a8[_0x1608('0x6a')]('\x20')+'\x22'))};}if(_0x1608('0x69')==_0x3169c5[_0x1608('0x30')]){const _0x585c4b=_0x3169c5['getItems']()[_0x1608('0x76')](_0x4261a9=>_0x4261a9['is'](_0x1608('0x15')))[_0x1608('0x13')](_0x4131e5=>_0x4131e5[_0x1608('0x32')]);if(_0x585c4b['length'])return{'type':_0x1608('0x69'),'content':_0x281636(_0x21a60f,'*Remove:*\x20%0',_0x281636(_0x21a60f,_0x1608('0x81'),'\x22'+_0x585c4b[_0x1608('0x6a')]('\x20')+'\x22'))};}}}),_0x220c52[_0x1608('0x33')][_0x1608('0x70')](_0x337492=>{if('tableRow'==_0x337492[_0x1608('0x38')]){const _0x6964f5=_0x337492[_0x1608('0x19')]()[_0x1608('0x76')](_0x5265ee=>_0x5265ee['is'](_0x1608('0x15')))[_0x1608('0x13')](_0x2ce745=>_0x2ce745['data']),_0x221435=this[_0x1608('0x7e')](_0x337492),_0x13b81d=_0x221435['maxRow']-_0x221435['minRow']+0x1;if('insertion'==_0x337492[_0x1608('0x30')])return _0x6964f5[_0x1608('0x31')]?{'type':_0x1608('0x4a'),'content':_0x281636(_0x21a60f,'*Insert:*\x20%0',_0x281636(_0x21a60f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13b81d,'\x22'+_0x6964f5[_0x1608('0x6a')]('\x20')+'\x22']))}:{'type':_0x1608('0x4a'),'content':_0x281636(_0x21a60f,_0x1608('0x1b'),_0x281636(_0x21a60f,_0x1608('0x51'),_0x13b81d))};if(_0x1608('0x69')==_0x337492[_0x1608('0x30')])return _0x6964f5[_0x1608('0x31')]?{'type':_0x1608('0x69'),'content':_0x281636(_0x21a60f,_0x1608('0xf'),_0x281636(_0x21a60f,_0x1608('0x1f'),[_0x13b81d,'\x22'+_0x6964f5['join']('\x20')+'\x22']))}:{'type':_0x1608('0x69'),'content':_0x281636(_0x21a60f,'*Remove:*\x20%0',_0x281636(_0x21a60f,_0x1608('0x51'),_0x13b81d))};}if('tableColumn'==_0x337492[_0x1608('0x38')]){const _0x5a4ab0=_0x337492[_0x1608('0x19')]()[_0x1608('0x76')](_0x1a152c=>_0x1a152c['is'](_0x1608('0x15')))[_0x1608('0x13')](_0x8feadd=>_0x8feadd[_0x1608('0x32')]),_0x2e82d6=this[_0x1608('0x7e')](_0x337492),_0x5e80be=_0x2e82d6['maxColumn']-_0x2e82d6[_0x1608('0x2e')]+0x1;if('insertion'==_0x337492['type'])return _0x5a4ab0['length']?{'type':_0x1608('0x4a'),'content':_0x281636(_0x21a60f,_0x1608('0x1b'),_0x281636(_0x21a60f,_0x1608('0x41'),[_0x5e80be,'\x22'+_0x5a4ab0['join']('\x20')+'\x22']))}:{'type':_0x1608('0x4a'),'content':_0x281636(_0x21a60f,_0x1608('0x1b'),_0x281636(_0x21a60f,_0x1608('0x6f'),_0x5e80be))};if('deletion'==_0x337492[_0x1608('0x30')])return _0x5a4ab0['length']?{'type':'deletion','content':_0x281636(_0x21a60f,'*Remove:*\x20%0',_0x281636(_0x21a60f,_0x1608('0x41'),[_0x5e80be,'\x22'+_0x5a4ab0[_0x1608('0x6a')]('\x20')+'\x22']))}:{'type':_0x1608('0x69'),'content':_0x281636(_0x21a60f,_0x1608('0xf'),_0x281636(_0x21a60f,'ELEMENT_TABLE_COLUMN',_0x5e80be))};}}),_0x220c52[_0x1608('0xa')][_0x1608('0x35')](_0x1608('0x4a'),_0x1608('0x40'),_0x1608('0x5a'),_0x414c56),_0x220c52['_suggestionFactory']['registerCustomCallback'](_0x1608('0x69'),'tableRow',_0x1608('0x45'),_0x414c56),_0x220c52[_0x1608('0xa')][_0x1608('0x35')](_0x1608('0x4a'),'tableColumn',_0x1608('0x5a'),_0x58bd85),_0x220c52[_0x1608('0xa')][_0x1608('0x35')](_0x1608('0x69'),_0x1608('0x6b'),_0x1608('0x45'),_0x58bd85),_0x220c52[_0x1608('0xa')][_0x1608('0x35')](_0x1608('0x4a'),_0x1608('0x6b'),_0x1608('0x6a'),_0x48da68),_0x220c52[_0x1608('0xa')]['registerCustomCallback'](_0x1608('0x69'),_0x1608('0x6b'),_0x1608('0x6a'),_0x48da68),_0x220c52[_0x1608('0xa')][_0x1608('0x35')](_0x1608('0x4a'),_0x1608('0x40'),_0x1608('0x6a'),_0x4d0e30),_0x220c52[_0x1608('0xa')][_0x1608('0x35')](_0x1608('0x69'),_0x1608('0x40'),_0x1608('0x6a'),_0x4d0e30);}['_acceptFormatSuggestionCallbackFactory'](){const _0x142b6c=this[_0x1608('0x7d')],_0x2cca68=_0x142b6c[_0x1608('0x77')][_0x1608('0x71')]['selection'];return(_0x48d989,_0x2245ac)=>{_0x142b6c[_0x1608('0x77')][_0x1608('0x78')](_0x274085=>{const {commandName:_0x92c9b4,commandParams:_0x355238}=_0x2245ac;let _0x5382ee=_0x48d989[0x0][_0x1608('0x53')][_0x1608('0x11')];_0x355238&&_0x355238[0x0]&&!0x1===_0x355238[0x0][_0x1608('0x1a')]&&(_0x5382ee=_0x48d989[0x0][_0x1608('0x67')][_0x1608('0x52')]);const _0x26ef1e=_0x274085[_0x1608('0x64')](_0x5382ee);if(_0x1608('0x66')==_0x26ef1e[_0x1608('0x5c')][_0x1608('0x56')])return;const _0x253df1=Array[_0x1608('0xb')](_0x2cca68[_0x1608('0x10')]())[_0x1608('0x13')](_0x2d0265=>_0x1732f3[_0x1608('0x62')](_0x2d0265));_0x274085[_0x1608('0x5d')](_0x26ef1e),_0x142b6c[_0x1608('0x59')][_0x1608('0x6c')](_0x92c9b4)['refresh'](),_0x355238[_0x1608('0x5f')]({'forceDefaultExecution':!0x0}),_0x142b6c[_0x1608('0x8')](_0x92c9b4,..._0x355238);const _0x4a8339=_0x253df1[_0x1608('0x76')](_0xd65923=>_0x1608('0x66')!=_0xd65923['root'][_0x1608('0x56')]);_0x4a8339['length']>0x0&&_0x274085[_0x1608('0x5d')](_0x4a8339);for(const _0x546ae5 of _0x253df1)_0x546ae5[_0x1608('0x18')]();});};}[_0x1608('0x72')](_0x2ea8c3){const _0x4cdeb0=this[_0x1608('0x7d')][_0x1608('0x23')]['get'](_0x1608('0x7'));let _0x48dd17=Number[_0x1608('0x2c')],_0x101e11=Number[_0x1608('0x68')],_0x417c01=Number[_0x1608('0x2c')],_0x5d50da=Number[_0x1608('0x68')];for(const _0x276fba of _0x2ea8c3){if(_0x1608('0x66')==_0x276fba[_0x1608('0x5c')][_0x1608('0x56')])continue;const {row:_0x5a1c20,column:_0x2f4dfa}=_0x4cdeb0[_0x1608('0x3d')](_0x276fba),_0x8ebd0=_0x276fba[_0x1608('0x55')](_0x1608('0x6'))?_0x276fba[_0x1608('0x20')](_0x1608('0x6'))-0x1:0x0,_0x582a35=_0x276fba[_0x1608('0x55')]('colspan')?_0x276fba[_0x1608('0x20')](_0x1608('0x24'))-0x1:0x0;_0x48dd17=_0x5a1c20<_0x48dd17?_0x5a1c20:_0x48dd17,_0x101e11=_0x5a1c20+_0x8ebd0>_0x101e11?_0x5a1c20+_0x8ebd0:_0x101e11,_0x417c01=_0x2f4dfa<_0x417c01?_0x2f4dfa:_0x417c01,_0x5d50da=_0x2f4dfa+_0x582a35>_0x5d50da?_0x2f4dfa+_0x582a35:_0x5d50da;}return{'minRow':_0x48dd17,'maxRow':_0x101e11,'minColumn':_0x417c01,'maxColumn':_0x5d50da};}['_setupColumnsRowsFixing'](){const _0x3c9154=this[_0x1608('0x7d')],_0x10c8a4=_0x3c9154[_0x1608('0x23')][_0x1608('0x6c')]('TrackChangesEditing'),_0x18c39a=_0x3c9154['plugins'][_0x1608('0x6c')](_0x1608('0x7'));_0x3c9154[_0x1608('0x77')]['document']['on']('change:data',()=>{const _0x1c8411=Array[_0x1608('0xb')](_0x3c9154['model'][_0x1608('0x71')][_0x1608('0x29')][_0x1608('0x75')]());for(const {name:_0x304365,data:_0x1bb88b}of _0x1c8411){const {group:_0x565047,id:_0x1f14fc,subType:_0x1f7170}=_0x10c8a4['_splitMarkerName'](_0x304365);if(_0x1608('0x49')!=_0x565047)continue;if(null!=_0x1bb88b[_0x1608('0x5')])continue;const _0x3095f5=_0x10c8a4[_0x1608('0x60')](_0x1f14fc);this['_tablePostFixingSubtypes'][_0x1608('0x7a')](_0x1f7170)&&this[_0x1608('0x63')]['add'](_0x3095f5);}},{'priority':'low'});const _0x53d960=(_0x96f2d1,_0x84110)=>{let _0x10dff7=!0x1;const _0x3a9002=_0x84110[_0x1608('0x14')](_0x96f2d1),_0x564f45=_0x96f2d1[_0x1608('0x48')](_0x1608('0x34')),_0x3b0dd4=_0x18c39a['getCellLocation'](_0x96f2d1);for(const _0x228eb7 of this[_0x1608('0x63')]){const _0x53b5ab=_0x228eb7[_0x1608('0x38')],_0x52d485=_0x53b5ab[_0x1608('0x2f')](_0x1608('0x80')),_0x519bce=_0x53b5ab[_0x1608('0x17')](_0x52d485?0xa:0x5),_0xbf48c8=_0x519bce[_0x1608('0x65')](),_0x387b26=_0xbf48c8[_0x1608('0x17')](0x0,0x3)+_0x1608('0x12'),_0x42c17d='min'+_0x519bce,_0x476f14=_0x1608('0x27')+_0x519bce;if(!_0x228eb7[_0x1608('0xc')])continue;if(_0x564f45!=_0x228eb7[_0x1608('0x2d')]()[_0x1608('0x67')]['findAncestor']('table'))continue;if(_0x228eb7[_0x1608('0x6e')](_0x3a9002))continue;const _0x114645=_0x96f2d1[_0x1608('0x55')](_0x387b26)?_0x96f2d1[_0x1608('0x20')](_0x387b26)-0x1:0x0,_0x30811e=this[_0x1608('0x7e')](_0x228eb7),_0x1addf4=_0x30811e[_0x42c17d],_0x1c4b4e=_0x30811e[_0x476f14];_0x1addf4<=_0x3b0dd4[_0xbf48c8]&&_0x3b0dd4[_0xbf48c8]+_0x114645<=_0x1c4b4e&&(_0x228eb7[_0x1608('0xe')](_0x3a9002),_0x10dff7=!0x0);}return _0x10dff7;};_0x3c9154[_0x1608('0x77')][_0x1608('0x71')][_0x1608('0x43')](_0x53b870=>{let _0x1dac74=!0x1;for(const _0x387c91 of _0x3c9154[_0x1608('0x77')][_0x1608('0x71')][_0x1608('0x29')][_0x1608('0x1')]())if(_0x1608('0x7b')==_0x387c91[_0x1608('0x30')]){if(_0x1608('0x40')==_0x387c91[_0x1608('0x47')])for(const _0x3b4654 of _0x387c91['position']['nodeAfter']['getChildren']())_0x1dac74=_0x1dac74||_0x53d960(_0x3b4654,_0x53b870);else'tableCell'==_0x387c91[_0x1608('0x47')]&&(_0x1dac74=_0x1dac74||_0x53d960(_0x387c91['position'][_0x1608('0x52')],_0x53b870));}return _0x1dac74;});}['_getSuggestionCoords'](_0x22596a){return this['_getCoordsForCells'](_0x22596a['getRanges']()[_0x1608('0x13')](_0x350b2d=>_0x350b2d[_0x1608('0x67')][_0x1608('0x52')]));}}function se(_0x3bd69a){return Array[_0x1608('0xb')](new Set(_0x3bd69a)[_0x1608('0x57')]());}
|
|
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'));}}
|