@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231018.0 → 0.0.0-nightly-20231019.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 _0xcdcc=['from','has','getFirstPosition','getSiblingNodes','markMultiRangeBlockFormat','element','getAttribute','reversed','push','bind','type','list.properties','_getSuggestionBlocks','*Format:*\x20set\x20order\x20to\x20regular','handleListStartCommand','change','filter','model','selection','ListPropertiesEditing','commandName','forward','numbered','format','listItem','plugins','startIndex','replace','_descriptionFactory','listStyle','_getTranslationKeyForListStyle','handleListStyleCommand','styles','listStart','_getSuggestionBlocksForListStyle','unshift','handleListReversedCommand','editor','ListUtils','*Format:*\x20set\x20start\x20index\x20to\x20%0','commandParams','*Format:*\x20set\x20order\x20to\x20reversed','locale','_LIST_','map','getLastPosition','*Change\x20to:*\x20%0','before','document','length','flat','createRange','afterInit','listType','listReversed','getListTypeFromListStyleType','toUpperCase','TrackChangesEditing','ELEMENT_','backward','enableCommand','createPositionAt','get','getSelectedBlocks','handleDescriptions'];(function(_0x3e8831,_0xcdcc10){const _0x36bc0a=function(_0x1b06b3){while(--_0x1b06b3){_0x3e8831['push'](_0x3e8831['shift']());}};_0x36bc0a(++_0xcdcc10);}(_0xcdcc,0x16a));const _0x36bc=function(_0x3e8831,_0xcdcc10){_0x3e8831=_0x3e8831-0x0;let _0x36bc0a=_0xcdcc[_0x3e8831];return _0x36bc0a;};import{Plugin as _0x16dba6}from'ckeditor5/src/core';import{getTranslation as _0x9d7164}from'../utils/common-translations';export default class ot extends _0x16dba6{[_0x36bc('0xf')](){if(!this[_0x36bc('0x0')][_0x36bc('0x35')][_0x36bc('0x1d')](_0x36bc('0x2f')))return;const _0x53f977=this[_0x36bc('0x0')]['config'][_0x36bc('0x19')](_0x36bc('0x27')),_0x4ef496=this[_0x36bc('0x0')][_0x36bc('0x35')][_0x36bc('0x19')]('TrackChangesEditing');_0x53f977[_0x36bc('0x3c')]&&_0x4ef496['enableCommand'](_0x36bc('0x39'),this[_0x36bc('0x3b')][_0x36bc('0x25')](this)),_0x53f977['reversed']&&_0x4ef496[_0x36bc('0x17')](_0x36bc('0x11'),this[_0x36bc('0x40')][_0x36bc('0x25')](this)),_0x53f977[_0x36bc('0x36')]&&_0x4ef496[_0x36bc('0x17')](_0x36bc('0x3d'),this[_0x36bc('0x2a')][_0x36bc('0x25')](this)),_0x4ef496[_0x36bc('0x38')]['registerDescriptionCallback'](this[_0x36bc('0x1b')][_0x36bc('0x25')](this));}[_0x36bc('0x3b')](_0x4c5321,_0x17a3cf={}){const _0x540300=this[_0x36bc('0x0')][_0x36bc('0x35')][_0x36bc('0x19')](_0x36bc('0x14')),_0x26b542=this[_0x36bc('0x3e')]();this[_0x36bc('0x0')][_0x36bc('0x2d')][_0x36bc('0x2b')](()=>{_0x540300[_0x36bc('0x20')](_0x26b542,{'commandName':_0x36bc('0x39'),'commandParams':[{'type':_0x17a3cf['type']}],'formatGroupId':_0x36bc('0x39')});});}['handleListReversedCommand'](_0x154f18,_0x5169bb={}){const _0x134947=this[_0x36bc('0x0')][_0x36bc('0x35')][_0x36bc('0x19')]('TrackChangesEditing'),_0x53f9ef=this[_0x36bc('0x28')](_0x1eea8d=>_0x1eea8d['is'](_0x36bc('0x21'),_0x36bc('0x34'))&&_0x36bc('0x32')===_0x1eea8d[_0x36bc('0x22')](_0x36bc('0x10')));if(_0x53f9ef['length']<0x1)return;const _0x40e622=_0x53f9ef[_0x36bc('0x7')](_0x56b212=>this[_0x36bc('0x0')][_0x36bc('0x2d')]['createRange'](this['editor'][_0x36bc('0x2d')][_0x36bc('0x18')](_0x56b212,_0x36bc('0xa')),this[_0x36bc('0x0')]['model'][_0x36bc('0x18')](_0x56b212,0x0)));this['editor'][_0x36bc('0x2d')]['change'](()=>{_0x134947[_0x36bc('0x20')](_0x40e622,{'commandName':_0x36bc('0x11'),'commandParams':[{'reversed':_0x5169bb['reversed']}],'formatGroupId':_0x36bc('0x11')});});}[_0x36bc('0x2a')](_0x3c0787,_0x39cc74={}){const _0x42adb8=this[_0x36bc('0x0')]['plugins']['get'](_0x36bc('0x14')),_0xf842cc=this[_0x36bc('0x28')](_0x27f73c=>_0x27f73c['is'](_0x36bc('0x21'),_0x36bc('0x34'))&&_0x36bc('0x32')===_0x27f73c['getAttribute'](_0x36bc('0x10')));if(_0xf842cc[_0x36bc('0xc')]<0x1)return;const _0x271170=_0xf842cc[_0x36bc('0x7')](_0x29eb06=>this[_0x36bc('0x0')][_0x36bc('0x2d')][_0x36bc('0xe')](this['editor']['model'][_0x36bc('0x18')](_0x29eb06,_0x36bc('0xa')),this[_0x36bc('0x0')][_0x36bc('0x2d')][_0x36bc('0x18')](_0x29eb06,0x0)));this[_0x36bc('0x0')][_0x36bc('0x2d')][_0x36bc('0x2b')](()=>{_0x42adb8[_0x36bc('0x20')](_0x271170,{'commandName':_0x36bc('0x3d'),'commandParams':[{'startIndex':_0x39cc74['startIndex']}],'formatGroupId':_0x36bc('0x3d')});});}[_0x36bc('0x1b')](_0x1e2c8a){const _0x2afe21=this[_0x36bc('0x0')][_0x36bc('0x5')],{data:_0x4f7af1}=_0x1e2c8a;if(!_0x4f7af1)return;let _0x4edfc8,_0x404eac;switch(_0x4f7af1[_0x36bc('0x30')]){case'listStyle':_0x4edfc8=_0x36bc('0x9'),_0x404eac={'type':'format','content':_0x9d7164(_0x2afe21,_0x4edfc8,_0x9d7164(_0x2afe21,this['_getTranslationKeyForListStyle'](_0x4f7af1['commandParams'][0x0][_0x36bc('0x26')])))};break;case'listReversed':_0x4edfc8=_0x4f7af1[_0x36bc('0x3')][0x0][_0x36bc('0x23')]?_0x36bc('0x4'):_0x36bc('0x29'),_0x404eac={'type':'format','content':_0x9d7164(_0x2afe21,_0x4edfc8)};break;case _0x36bc('0x3d'):_0x4edfc8=_0x36bc('0x2'),_0x404eac={'type':_0x36bc('0x33'),'content':_0x9d7164(_0x2afe21,_0x4edfc8,_0x4f7af1[_0x36bc('0x3')][0x0][_0x36bc('0x36')])};}return _0x404eac;}[_0x36bc('0x3e')](){var _0x4dbcf2,_0x3b8402,_0x223047,_0x152798;const _0x3cfb98=this[_0x36bc('0x0')][_0x36bc('0x35')]['get'](_0x36bc('0x1'));let _0x38ea86=Array[_0x36bc('0x1c')](this[_0x36bc('0x0')][_0x36bc('0x2d')][_0x36bc('0xb')][_0x36bc('0x2e')][_0x36bc('0x1a')]());return(null===(_0x4dbcf2=_0x38ea86[0x0])||void 0x0===_0x4dbcf2?void 0x0:_0x4dbcf2['is']('element','listItem'))&&_0x38ea86[_0x36bc('0x3f')](..._0x3cfb98['getSiblingNodes'](this['editor'][_0x36bc('0x2d')][_0x36bc('0xb')][_0x36bc('0x2e')][_0x36bc('0x1e')](),'backward')),(null===(_0x3b8402=_0x38ea86[_0x38ea86[_0x36bc('0xc')]-0x1])||void 0x0===_0x3b8402?void 0x0:_0x3b8402['is']('element',_0x36bc('0x34')))&&_0x38ea86[_0x36bc('0x24')](..._0x3cfb98['getSiblingNodes'](this['editor'][_0x36bc('0x2d')]['document'][_0x36bc('0x2e')][_0x36bc('0x8')](),_0x36bc('0x31'))),_0x38ea86=[...new Set(_0x38ea86)],(null===(_0x152798=null===(_0x223047=this[_0x36bc('0x0')][_0x36bc('0x2d')][_0x36bc('0xb')][_0x36bc('0x2e')][_0x36bc('0x1e')]())||void 0x0===_0x223047?void 0x0:_0x223047['parent'])||void 0x0===_0x152798?void 0x0:_0x152798['is']('element',_0x36bc('0x34')))&&(_0x38ea86=_0x38ea86[_0x36bc('0x2c')](_0x93a761=>_0x93a761['is'](_0x36bc('0x21'),'listItem'))),_0x38ea86;}['_getSuggestionBlocks'](_0x5c8c15){const _0xbeb54a=this[_0x36bc('0x0')][_0x36bc('0x35')][_0x36bc('0x19')]('ListUtils');let _0xb76a0f=Array[_0x36bc('0x1c')](this[_0x36bc('0x0')]['model'][_0x36bc('0xb')]['selection']['getSelectedBlocks']())['filter'](_0x5c8c15)[_0x36bc('0x7')](_0x192516=>{const _0x42d22b=this[_0x36bc('0x0')]['model']['createPositionAt'](_0x192516,0x0);return[..._0xbeb54a[_0x36bc('0x1f')](_0x42d22b,_0x36bc('0x16')),..._0xbeb54a['getSiblingNodes'](_0x42d22b,_0x36bc('0x31'))];})[_0x36bc('0xd')]();return _0xb76a0f=[...new Set(_0xb76a0f)],_0xb76a0f;}[_0x36bc('0x3a')](_0xdb5b07){return _0x36bc('0x15')+this[_0x36bc('0x0')][_0x36bc('0x35')]['get'](_0x36bc('0x1'))[_0x36bc('0x12')](_0xdb5b07)[_0x36bc('0x13')]()+_0x36bc('0x6')+_0xdb5b07[_0x36bc('0x13')]()[_0x36bc('0x37')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d01=['conversion','dataDowncast','plugins','div','high','TrackChangesEditing','ELEMENT_MEDIA','editor','afterInit','options','get','_descriptionFactory','showSuggestionHighlights','MediaEmbedEditing','mediaEmbed','downcastDispatcher','locale','stop','media','attribute:url:media','registerElementLabel','enableCommand'];(function(_0x53b62a,_0x5d01a2){const _0x118610=function(_0x365bc0){while(--_0x365bc0){_0x53b62a['push'](_0x53b62a['shift']());}};_0x118610(++_0x5d01a2);}(_0x5d01,0x1c3));const _0x1186=function(_0x53b62a,_0x5d01a2){_0x53b62a=_0x53b62a-0x0;let _0x118610=_0x5d01[_0x53b62a];return _0x118610;};import{Plugin as _0x368ed8}from'ckeditor5/src/core';import{getTranslation as _0x1dbadc}from'../utils/common-translations';export default class rt extends _0x368ed8{[_0x1186('0x13')](){const _0x145187=this[_0x1186('0x12')];if(!_0x145187[_0x1186('0xd')]['has'](_0x1186('0x2')))return;const _0x1761f8=_0x145187[_0x1186('0xd')][_0x1186('0x15')](_0x1186('0x10')),_0x2a3366=_0x145187[_0x1186('0x5')];_0x1761f8[_0x1186('0xa')](_0x1186('0x3')),_0x1761f8[_0x1186('0x0')][_0x1186('0x9')](_0x1186('0x7'),_0x2be682=>_0x1dbadc(_0x2a3366,_0x1186('0x11'),_0x2be682)),_0x145187[_0x1186('0xb')]['for'](_0x1186('0xc'))['elementToElement']({'model':_0x1186('0x7'),'view':(_0x3d7ed0,{writer:_0x1c8d6c,options:_0x204ea6})=>{if(_0x204ea6[_0x1186('0x1')])return _0x1c8d6c['createEmptyElement'](_0x1186('0xe'));},'converterPriority':_0x1186('0xf')}),_0x145187['data'][_0x1186('0x4')]['on'](_0x1186('0x8'),(_0x280cc1,_0x28419f,_0x4741d7)=>{_0x4741d7[_0x1186('0x14')][_0x1186('0x1')]&&_0x280cc1[_0x1186('0x6')]();},{'priority':_0x1186('0xf')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58b7=['afterInit','has','plugins','MentionEditing','mention','editor','TrackChangesEditing','get'];(function(_0x4e3a4d,_0x58b7af){const _0x2b9f69=function(_0x4bf88f){while(--_0x4bf88f){_0x4e3a4d['push'](_0x4e3a4d['shift']());}};_0x2b9f69(++_0x58b7af);}(_0x58b7,0x1ac));const _0x2b9f=function(_0x4e3a4d,_0x58b7af){_0x4e3a4d=_0x4e3a4d-0x0;let _0x2b9f69=_0x58b7[_0x4e3a4d];return _0x2b9f69;};import{Plugin as _0x2f5936}from'ckeditor5/src/core';export default class at extends _0x2f5936{[_0x2b9f('0x4')](){const _0x3cd951=this[_0x2b9f('0x1')];_0x3cd951[_0x2b9f('0x6')][_0x2b9f('0x5')](_0x2b9f('0x7'))&&_0x3cd951['plugins'][_0x2b9f('0x3')](_0x2b9f('0x2'))['enableCommand'](_0x2b9f('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bd7=['plugins','editor','ELEMENT_PAGE_BREAK','locale','get','_descriptionFactory','registerElementLabel','pageBreak','TrackChangesEditing','afterInit'];(function(_0x58e858,_0x3bd744){const _0xeac930=function(_0x18a295){while(--_0x18a295){_0x58e858['push'](_0x58e858['shift']());}};_0xeac930(++_0x3bd744);}(_0x3bd7,0x1d9));const _0xeac9=function(_0x58e858,_0x3bd744){_0x58e858=_0x58e858-0x0;let _0xeac930=_0x3bd7[_0x58e858];return _0xeac930;};import{Plugin as _0x5059aa}from'ckeditor5/src/core';import{getTranslation as _0x5de4af}from'../utils/common-translations';export default class ct extends _0x5059aa{[_0xeac9('0x6')](){const _0x28dcb6=this[_0xeac9('0x8')];if(!_0x28dcb6[_0xeac9('0x7')]['has']('PageBreakEditing'))return;_0x28dcb6[_0xeac9('0x7')][_0xeac9('0x1')](_0xeac9('0x5'))['enableCommand'](_0xeac9('0x4'));const _0x478775=_0x28dcb6[_0xeac9('0x7')][_0xeac9('0x1')](_0xeac9('0x5')),_0x30fa80=_0x28dcb6[_0xeac9('0x0')];_0x478775[_0xeac9('0x2')][_0xeac9('0x3')](_0xeac9('0x4'),_0x44c673=>_0x5de4af(_0x30fa80,_0xeac9('0x9'),_0x44c673));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b7a=['insertion','document','consume','end','insertParagraph','showSuggestionHighlights','mapper','editor','getItemLabel','insert','Paragraph','checkChild','enableCommand','registerDescriptionCallback','model','activeMarkers','*Insert:*\x20%0','isTouching','registerElementLabel','name','ELEMENT_PARAGRAPH','ck-suggestion-marker-split','start','includes','toViewPosition','markerName','get','isLimit','TrackChangesEditing','selection','bindElementToMarker','_descriptionFactory','options','blockName','$text','markBlockFormat','addClass','getSelectedBlocks','paragraph','span','schema','plugins','writer','addMarker:suggestion:insertion','parent','downcastDispatcher','format','editing','highest','filter','nodeAfter','markerRange','change','locale'];(function(_0x34fed5,_0x4b7a31){const _0x68edbd=function(_0x44ddd2){while(--_0x44ddd2){_0x34fed5['push'](_0x34fed5['shift']());}};_0x68edbd(++_0x4b7a31);}(_0x4b7a,0x142));const _0x68ed=function(_0x34fed5,_0x4b7a31){_0x34fed5=_0x34fed5-0x0;let _0x68edbd=_0x4b7a[_0x34fed5];return _0x68edbd;};import{Plugin as _0x3e7b9e}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5ad5f0}from'./utils';import{getTranslation as _0x236d73}from'../utils/common-translations';export default class ht extends _0x3e7b9e{['afterInit'](){const _0x1cb092=this['editor'];if(!_0x1cb092['plugins']['has'](_0x68ed('0xc')))return;const _0x1bb319=_0x1cb092[_0x68ed('0x1')],_0x4c5992=_0x1cb092['plugins'][_0x68ed('0x1c')](_0x68ed('0x1e'));_0x4c5992[_0x68ed('0x21')][_0x68ed('0x14')](_0x68ed('0x28'),_0x5eb651=>_0x236d73(_0x1bb319,_0x68ed('0x16'),_0x5eb651)),_0x4c5992['enableCommand'](_0x68ed('0x28'),(_0x5ba45a,_0x2fdd5d={})=>{const _0x3aaa28=_0x1cb092['model'][_0x68ed('0x3')],_0x5a6fb0=_0x2fdd5d['selection']||_0x3aaa28[_0x68ed('0x1f')],_0x2ccfe7=Array['from'](_0x5a6fb0[_0x68ed('0x27')]())[_0x68ed('0x33')](_0x111da9=>function(_0x3da34b,_0x54debc){return _0x54debc[_0x68ed('0xd')](_0x3da34b[_0x68ed('0x2e')],_0x68ed('0x28'))&&!_0x54debc['isObject'](_0x3da34b)&&_0x68ed('0x28')!=_0x3da34b['name'];}(_0x111da9,this[_0x68ed('0x9')]['model'][_0x68ed('0x2a')]));_0x1cb092[_0x68ed('0x10')][_0x68ed('0x0')](()=>{for(const _0x1f7036 of _0x2ccfe7)_0x4c5992[_0x68ed('0x25')](_0x1f7036,{'commandName':_0x68ed('0x28'),'commandParams':[],'formatGroupId':_0x68ed('0x23')},_0x5ad5f0(_0x1f7036));});}),_0x4c5992[_0x68ed('0x21')][_0x68ed('0xf')](_0x235246=>{const {data:_0x4a2a9f}=_0x235246;if(_0x4a2a9f&&_0x68ed('0x28')==_0x4a2a9f['commandName'])return{'type':_0x68ed('0x30'),'content':_0x236d73(_0x1bb319,'*Change\x20to:*\x20%0',_0x236d73(_0x1bb319,_0x68ed('0x16')))};}),_0x4c5992[_0x68ed('0xe')](_0x68ed('0x6')),_0x1cb092[_0x68ed('0x31')][_0x68ed('0x2f')]['on'](_0x68ed('0x2d'),ar(_0x1cb092),{'priority':_0x68ed('0x32')}),_0x1cb092['data'][_0x68ed('0x2f')]['on'](_0x68ed('0x2d'),(_0x808ee7,_0x4e76eb,_0x25019b)=>{_0x25019b[_0x68ed('0x22')][_0x68ed('0x7')]&&ar(_0x1cb092,{'showActiveMarker':!0x1})(_0x808ee7,_0x4e76eb,_0x25019b);},{'priority':_0x68ed('0x32')});const _0x52a992=_0x4c5992[_0x68ed('0x21')];_0x52a992[_0x68ed('0xf')](_0x5dd823=>{if('insertion'!==_0x5dd823['type'])return;const {start:_0x3c6595,end:_0x5d796c}=_0x5dd823['getFirstRange']();if(!_0x3c6595[_0x68ed('0x13')](_0x5d796c)||!_0x3c6595[_0x68ed('0x34')])return;const _0x3b9242=_0x1cb092['model'][_0x68ed('0x2a')],_0x40ae5f=_0x3c6595[_0x68ed('0x34')];return _0x3b9242['isBlock'](_0x40ae5f)&&!_0x3b9242[_0x68ed('0x1d')](_0x40ae5f)&&_0x3b9242[_0x68ed('0xd')](_0x40ae5f,_0x68ed('0x24'))?{'type':_0x68ed('0x2'),'content':_0x236d73(_0x1bb319,_0x68ed('0x12'),_0x52a992[_0x68ed('0xa')](_0x40ae5f,0x1))}:void 0x0;});}}function ar(_0x325064,{showActiveMarker:_0x1049b4=!0x0}={}){return(_0x128e9d,_0x26d88c,_0x54e811)=>{const _0x2f827f=_0x325064[_0x68ed('0x2b')][_0x68ed('0x1c')](_0x68ed('0x1e')),_0x2ecc74=_0x26d88c['markerRange'][_0x68ed('0x18')],_0xe2c056=_0x26d88c[_0x68ed('0x35')][_0x68ed('0x5')],_0x123798=_0x325064[_0x68ed('0x10')][_0x68ed('0x2a')];if(!_0x2ecc74[_0x68ed('0x13')](_0xe2c056)||!_0x2ecc74[_0x68ed('0x34')])return;const _0x234d01=_0x2ecc74[_0x68ed('0x34')];if(_0x123798['isBlock'](_0x234d01)&&!_0x123798[_0x68ed('0x1d')](_0x234d01)&&_0x123798[_0x68ed('0xd')](_0x234d01,_0x68ed('0x24'))){if(!_0x54e811['consumable'][_0x68ed('0x4')](_0x26d88c['markerRange'],_0x128e9d[_0x68ed('0x15')]))return;const _0x255193=_0x54e811[_0x68ed('0x2c')]['createUIElement'](_0x68ed('0x29'),{'class':_0x68ed('0x17')}),_0x3dfde2=_0x54e811['mapper'][_0x68ed('0x1a')](_0xe2c056);_0x1049b4&&_0x2f827f[_0x68ed('0x11')][_0x68ed('0x19')](_0x26d88c[_0x68ed('0x1b')])&&_0x54e811[_0x68ed('0x2c')][_0x68ed('0x26')]('ck-suggestion-marker--active',_0x255193),_0x54e811[_0x68ed('0x2c')][_0x68ed('0xb')](_0x3dfde2,_0x255193),_0x54e811[_0x68ed('0x8')][_0x68ed('0x20')](_0x255193,_0x26d88c[_0x68ed('0x1b')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e32=['getAttributes','getRanges','plugins','schema','_descriptionFactory','format','registerDescriptionCallback','has','getItems','change','TrackChangesEditing','removeFormat','locale','document','model','isFormatting','createRangeOn','selection','isCollapsed','get','commandName','*Remove\x20all\x20formatting*'];(function(_0x4ae459,_0x2e32ab){const _0x5955fe=function(_0x2d2ccb){while(--_0x2d2ccb){_0x4ae459['push'](_0x4ae459['shift']());}};_0x5955fe(++_0x2e32ab);}(_0x2e32,0x19e));const _0x5955=function(_0x4ae459,_0x2e32ab){_0x4ae459=_0x4ae459-0x0;let _0x5955fe=_0x2e32[_0x4ae459];return _0x5955fe;};import{Plugin as _0x55464e}from'ckeditor5/src/core';import{getTranslation as _0x5758d0}from'../utils/common-translations';export default class ut extends _0x55464e{['afterInit'](){const _0x131836=this['editor'];if(!_0x131836[_0x5955('0x6')][_0x5955('0xb')]('RemoveFormatEditing'))return;const _0x26e54a=_0x131836['plugins'][_0x5955('0x1')](_0x5955('0xe'));_0x26e54a['enableCommand']('removeFormat',_0x3f8d2a=>{const _0x57ba8b=_0x131836[_0x5955('0x12')][_0x5955('0x11')][_0x5955('0x15')];_0x57ba8b[_0x5955('0x0')]?_0x3f8d2a():_0x131836[_0x5955('0x12')][_0x5955('0xd')](()=>{const _0x3e598a=Array['from'](_0x57ba8b[_0x5955('0x5')]());for(const _0x5cbb3f of _0x3e598a)for(const _0x637847 of _0x5cbb3f[_0x5955('0xc')]())mo(_0x637847,_0x131836['model'][_0x5955('0x7')])&&_0x26e54a['markInlineFormat'](_0x131836['model'][_0x5955('0x14')](_0x637847),{'commandName':_0x5955('0xf'),'commandParams':[]});});}),_0x26e54a[_0x5955('0x8')][_0x5955('0xa')](_0x10de77=>{const {data:_0x4d7477}=_0x10de77;if(_0x4d7477&&_0x5955('0xf')==_0x4d7477[_0x5955('0x2')])return{'type':_0x5955('0x9'),'content':_0x5758d0(_0x131836[_0x5955('0x10')],_0x5955('0x3'))};});}}function mo(_0x48afd6,_0x5e0540){for(const [_0x442b53]of _0x48afd6[_0x5955('0x4')]()){const _0x4c137b=_0x5e0540['getAttributeProperties'](_0x442b53);if(_0x4c137b&&_0x4c137b[_0x5955('0x13')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xdd0c=['acceptSelectedSuggestions','RestrictedEditingModeEditing','editor','discardAllSuggestions','discardSelectedSuggestions','acceptAllSuggestions','plugins','trackChanges','has','discardSuggestion','TrackChangesEditing','goToNextRestrictedEditingException','acceptSuggestion','get','enableCommand'];(function(_0x398958,_0xdd0cab){const _0x3a9858=function(_0xa2b9d0){while(--_0xa2b9d0){_0x398958['push'](_0x398958['shift']());}};_0x3a9858(++_0xdd0cab);}(_0xdd0c,0x155));const _0x3a98=function(_0x398958,_0xdd0cab){_0x398958=_0x398958-0x0;let _0x3a9858=_0xdd0c[_0x398958];return _0x3a9858;};import{Plugin as _0x4a4134}from'ckeditor5/src/core';export default class ft extends _0x4a4134{['afterInit'](){const _0xfa6703=this[_0x3a98('0x6')];if(!_0xfa6703[_0x3a98('0xa')][_0x3a98('0xc')](_0x3a98('0x5')))return;const _0x4f9449=_0xfa6703[_0x3a98('0xa')][_0x3a98('0x2')](_0x3a98('0xe'));_0x4f9449['enableCommand']('goToPreviousRestrictedEditingException'),_0x4f9449['enableCommand'](_0x3a98('0x0'));const _0x9a6992=_0xfa6703[_0x3a98('0xa')][_0x3a98('0x2')](_0x3a98('0x5'));_0x9a6992['enableCommand'](_0x3a98('0xb')),_0x9a6992[_0x3a98('0x3')](_0x3a98('0x1')),_0x9a6992[_0x3a98('0x3')](_0x3a98('0xd')),_0x9a6992[_0x3a98('0x3')](_0x3a98('0x9')),_0x9a6992[_0x3a98('0x3')](_0x3a98('0x7')),_0x9a6992[_0x3a98('0x3')](_0x3a98('0x4')),_0x9a6992[_0x3a98('0x3')](_0x3a98('0x8'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2019=['addMarker:suggestion:deletion','plugins','addMarker:suggestion','writer','toViewPosition','createUIElement','span','merge','high','get','shiftEnter','enableCommand','editor','name','TrackChangesEditing','consumable','deletion','includes','locale','ck-suggestion-marker-','showSuggestionHighlights','addMarker:suggestion:insertion','requires','markerRange','createPositionBefore','softBreak','test','split','addClass','ELEMENT_LINE_BREAK','getItems','markerName','bindElementToMarker','editing','downcastDispatcher','mapper','ck-suggestion-marker--active','data','insert'];(function(_0x26ad0c,_0x201953){const _0x5912f6=function(_0x5ab9e9){while(--_0x5ab9e9){_0x26ad0c['push'](_0x26ad0c['shift']());}};_0x5912f6(++_0x201953);}(_0x2019,0x106));const _0x5912=function(_0x26ad0c,_0x201953){_0x26ad0c=_0x26ad0c-0x0;let _0x5912f6=_0x2019[_0x26ad0c];return _0x5912f6;};import{Plugin as _0x2dbca0}from'ckeditor5/src/core';import{ShiftEnter as _0x251b61}from'ckeditor5/src/enter';import{getTranslation as _0x2c07d9}from'../utils/common-translations';export default class lt extends _0x2dbca0{static get[_0x5912('0x21')](){return[_0x251b61];}['init'](){const _0x528cf9=this[_0x5912('0x17')],_0x5507eb=_0x528cf9['plugins'][_0x5912('0x14')]('TrackChangesEditing');_0x5507eb[_0x5912('0x16')](_0x5912('0x15')),_0x528cf9[_0x5912('0x5')][_0x5912('0x6')]['on'](_0x5912('0x20'),re(_0x528cf9),{'priority':_0x5912('0x13')}),_0x528cf9[_0x5912('0x5')][_0x5912('0x6')]['on'](_0x5912('0xb'),re(_0x528cf9),{'priority':_0x5912('0x13')}),_0x528cf9[_0x5912('0x9')]['downcastDispatcher']['on'](_0x5912('0xd'),(_0x222365,_0x2737e7,_0x2c2332)=>{_0x2c2332['options'][_0x5912('0x1f')]&&re(_0x528cf9,{'showActiveMarker':!0x1})(_0x222365,_0x2737e7,_0x2c2332);}),_0x5507eb['_descriptionFactory']['registerElementLabel'](_0x5912('0x24'),_0x53fdeb=>_0x2c07d9(_0x528cf9[_0x5912('0x1d')],_0x5912('0x1'),_0x53fdeb));}}function re(_0x2b0ccc,{showActiveMarker:_0x5b9d31=!0x0}={}){return(_0x35c4e8,_0x1f998d,_0x41a35c)=>{const _0x3a0536=_0x2b0ccc[_0x5912('0xc')][_0x5912('0x14')](_0x5912('0x19'));if(!_0x41a35c[_0x5912('0x1a')][_0x5912('0x25')](_0x1f998d[_0x5912('0x22')],_0x35c4e8[_0x5912('0x18')]))return;const _0x380d0b=_0x2b0ccc['model'];for(const _0x287f81 of _0x1f998d[_0x5912('0x22')][_0x5912('0x2')]()){if(!_0x287f81['is']('element',_0x5912('0x24')))continue;const _0x2e34a4=_0x5912('0x1b')==_0x1f998d[_0x5912('0x3')]['split'](':')[0x1]?_0x5912('0x12'):_0x5912('0x26'),_0x551089=_0x41a35c['writer'][_0x5912('0x10')](_0x5912('0x11'),{'class':_0x5912('0x1e')+_0x2e34a4}),_0x3e0507=_0x41a35c[_0x5912('0x7')][_0x5912('0xf')](_0x380d0b[_0x5912('0x23')](_0x287f81));_0x5b9d31&&_0x3a0536['activeMarkers'][_0x5912('0x1c')](_0x1f998d[_0x5912('0x3')])&&_0x41a35c[_0x5912('0xe')][_0x5912('0x0')](_0x5912('0x8'),_0x551089),_0x41a35c[_0x5912('0xe')][_0x5912('0xa')](_0x3e0507,_0x551089),_0x41a35c[_0x5912('0x7')][_0x5912('0x4')](_0x551089,_0x1f998d['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f61=['getRanges','has','commands','value','isCollapsed','_descriptionFactory','plugins','afterInit','commandName','document','restrictedEditingException','format','markInlineFormat','model','editor','commandParams','FORMAT_RESTRICTED_DISABLED','selection','forceValue','get','FORMAT_RESTRICTED_ENABLED','locale','StandardEditingModeEditing','enableCommand'];(function(_0x433efe,_0x3f613d){const _0x55cec1=function(_0x49b160){while(--_0x49b160){_0x433efe['push'](_0x433efe['shift']());}};_0x55cec1(++_0x3f613d);}(_0x3f61,0x75));const _0x55ce=function(_0x433efe,_0x3f613d){_0x433efe=_0x433efe-0x0;let _0x55cec1=_0x3f61[_0x433efe];return _0x55cec1;};import{Plugin as _0x224c25}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x168d7c}from'./utils';import{getTranslation as _0x5fe80d}from'../utils/common-translations';export default class gt extends _0x224c25{[_0x55ce('0xa')](){const _0x157c66=this[_0x55ce('0x11')],_0x58d48a=_0x157c66[_0x55ce('0x10')],_0x45c675=_0x157c66[_0x55ce('0x0')];if(!_0x157c66[_0x55ce('0x9')][_0x55ce('0x4')](_0x55ce('0x1')))return;const _0x2487c0=_0x157c66['plugins']['get']('TrackChangesEditing'),_0x237903=_0x55ce('0xd'),_0x209ab2=_0x157c66[_0x55ce('0x5')][_0x55ce('0x16')](_0x237903);_0x2487c0[_0x55ce('0x2')](_0x237903,(_0x1c3c22,_0x112559={})=>{const _0x3101d8=_0x58d48a[_0x55ce('0xc')][_0x55ce('0x14')];if(_0x3101d8[_0x55ce('0x7')])return void _0x1c3c22(_0x112559);const _0x3e2b78=void 0x0!==_0x112559[_0x55ce('0x15')]?_0x112559['forceValue']:!_0x209ab2[_0x55ce('0x6')];_0x58d48a['change'](()=>{const _0x4865dc=Array['from'](_0x3101d8[_0x55ce('0x3')]());for(const _0x3cf44c of _0x4865dc){const _0x2f76f3=_0x3e2b78?[_0x3cf44c]:_0x168d7c(_0x237903,_0x3cf44c,_0x58d48a);for(const _0x586efd of _0x2f76f3)_0x2487c0[_0x55ce('0xf')](_0x586efd,{'commandName':_0x237903,'commandParams':[{'forceValue':_0x3e2b78}]});}});}),_0x2487c0[_0x55ce('0x8')]['registerDescriptionCallback'](_0x2767a2=>{const {data:_0x2a1f84}=_0x2767a2;if(_0x2a1f84&&_0x2a1f84[_0x55ce('0xb')]==_0x237903)return _0x2a1f84[_0x55ce('0x12')][0x0]['forceValue']?{'type':_0x55ce('0xe'),'content':_0x5fe80d(_0x45c675,_0x55ce('0x17'))}:{'type':_0x55ce('0xe'),'content':_0x5fe80d(_0x45c675,_0x55ce('0x13'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20d3=['styleName','commands','commandParams','isBlock','format','isCollapsed','model','*Remove\x20format:*\x20%0','selection','block','from','createRangeOn','markInlineFormat','afterInit','classes','DataSchema','locale','forceValue','name','inline','includes','getAncestors','get','style.definitions','_getStyleDefinition','toLowerCase','TrackChangesEditing','editor','value','style','add','getDefinitionsForView','getItems','enableCommand','find','document','_getRangesWithClasses','Style','enabledStyles','StyleUtils','every','plugins','has'];(function(_0x2e0402,_0x20d3d6){const _0x167a44=function(_0x343103){while(--_0x343103){_0x2e0402['push'](_0x2e0402['shift']());}};_0x167a44(++_0x20d3d6);}(_0x20d3,0x125));const _0x167a=function(_0x2e0402,_0x20d3d6){_0x2e0402=_0x2e0402-0x0;let _0x167a44=_0x20d3[_0x2e0402];return _0x167a44;};import{Plugin as _0x7a9337}from'ckeditor5/src/core';import{getTranslation as _0x565605}from'../utils/common-translations';export default class mt extends _0x7a9337{[_0x167a('0x15')](){const _0x41c4c6=this[_0x167a('0x23')];if(!_0x41c4c6[_0x167a('0x6')][_0x167a('0x7')](_0x167a('0x2')))return;const _0x40f826=_0x41c4c6[_0x167a('0x9')]['get'](_0x167a('0x25')),_0x4a7ea1=_0x41c4c6['plugins'][_0x167a('0x1e')](_0x167a('0x22')),_0x3cf721=_0x41c4c6[_0x167a('0x18')],_0x29eacd=_0x41c4c6[_0x167a('0x6')][_0x167a('0x1e')](_0x167a('0x17')),_0x2514fe=_0x41c4c6[_0x167a('0x6')][_0x167a('0x1e')](_0x167a('0x4'))['normalizeConfig'](_0x29eacd,_0x41c4c6['config']['get'](_0x167a('0x1f')));_0x4a7ea1[_0x167a('0x29')](_0x167a('0x25'),(_0x83fc4e,{styleName:_0x49360f})=>{const _0x4e1f4d=_0x41c4c6[_0x167a('0xe')][_0x167a('0x0')][_0x167a('0x10')],_0x51cd96=this[_0x167a('0x20')](_0x49360f,_0x2514fe);if(!_0x51cd96)return;if(!_0x40f826[_0x167a('0x3')]['includes'](_0x49360f))return;if(_0x4e1f4d[_0x167a('0xd')]&&!_0x51cd96[_0x167a('0xb')])return void _0x83fc4e({'styleName':_0x49360f});const _0x349654=!_0x40f826[_0x167a('0x24')][_0x167a('0x1c')](_0x51cd96[_0x167a('0x1a')]);if(_0x51cd96[_0x167a('0xb')]){const _0x567721=function(_0x5786e1,_0x1f1371){const _0x51fd88=new Set();for(const _0x35647c of _0x5786e1){const _0x495fb6=_0x35647c[_0x167a('0x1d')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0xcfcebe of _0x495fb6)if(_0x1f1371[_0x167a('0x1c')](_0xcfcebe[_0x167a('0x1a')])){_0x51fd88[_0x167a('0x26')](_0xcfcebe);break;}}return _0x51fd88;}(_0x4e1f4d['getSelectedBlocks'](),_0x51cd96['modelElements']);_0x41c4c6[_0x167a('0xe')]['change'](()=>{for(const _0x148b42 of _0x567721)_0x4a7ea1['markBlockFormat'](_0x148b42,{'commandName':_0x167a('0x25'),'commandParams':[{'styleName':_0x49360f,'forceValue':_0x349654}],'formatGroupId':'style:'+_0x49360f});});}else{let _0x694354=Array[_0x167a('0x12')](_0x4e1f4d['getRanges']());if(!_0x349654){const _0x5f0e74=Array['from'](_0x29eacd[_0x167a('0x27')](_0x51cd96['element'],!0x1))[0x0]['model'],_0x2675e4=[];for(const _0x5caf79 of _0x694354){const _0x492577=this[_0x167a('0x1')](_0x41c4c6[_0x167a('0xe')],_0x5caf79,_0x51cd96['classes'],_0x5f0e74);_0x2675e4['push'](..._0x492577);}_0x694354=_0x2675e4;}_0x41c4c6[_0x167a('0xe')]['change'](()=>{for(const _0x4b8f8b of _0x694354)_0x4a7ea1[_0x167a('0x14')](_0x4b8f8b,{'commandName':_0x167a('0x25'),'commandParams':[{'styleName':_0x49360f,'forceValue':_0x349654}]});});}}),_0x4a7ea1['_descriptionFactory']['registerDescriptionCallback'](_0x1a1114=>{const {data:_0x955e58}=_0x1a1114;if(_0x955e58&&'style'===_0x955e58['commandName'])return _0x955e58[_0x167a('0xa')][0x0][_0x167a('0x19')]?{'type':_0x167a('0xc'),'content':_0x565605(_0x3cf721,'*Format:*\x20%0',_0x955e58['commandParams'][0x0][_0x167a('0x8')][_0x167a('0x21')]())}:{'type':_0x167a('0xc'),'content':_0x565605(_0x3cf721,_0x167a('0xf'),_0x955e58[_0x167a('0xa')][0x0][_0x167a('0x8')][_0x167a('0x21')]())};});}[_0x167a('0x20')](_0x4e7241,_0x3398de){let _0x43e054=_0x3398de[_0x167a('0x11')][_0x167a('0x2a')](_0x29153f=>_0x29153f[_0x167a('0x1a')]===_0x4e7241);return _0x43e054||(_0x43e054=_0x3398de[_0x167a('0x1b')]['find'](_0x2f5973=>_0x2f5973[_0x167a('0x1a')]===_0x4e7241)),_0x43e054;}['_getRangesWithClasses'](_0x17e51f,_0x333352,_0x4baf95,_0x55ac48){const _0x32a3d9=[];for(const _0x538b2b of _0x333352[_0x167a('0x28')]()){const _0x1a1edb=_0x538b2b['getAttribute'](_0x55ac48);_0x1a1edb&&(_0x4baf95[_0x167a('0x5')](_0x581271=>_0x1a1edb[_0x167a('0x16')][_0x167a('0x1c')](_0x581271))&&_0x32a3d9['push'](_0x17e51f[_0x167a('0x13')](_0x538b2b)));}return _0x32a3d9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x359f=['push','map','markMultiRangeInsertion','insertTableRowAbove','colspan','get','ELEMENT_TABLE_COLUMN_WITH_TEXT','writer','downcastDispatcher','element','registerDescriptionCallback','add','insertTableColumnLeft','accept','ELEMENT_TABLE_ROW','discard','minRow','has','span','removeTableColumn','cell','createRangeOn','$graveyard','getAttribute','first','length','ELEMENT_TABLE_ROW_WITH_TEXT','document','mapper','tableCell','getCellLocation','isInContent','last','findAncestor','name','TableUtils','root','isEqual','filter','getRowIndexes','nodeAfter','from','getRanges','_tableSuggestions','suggestion','some','join','commands','selection','*Remove:*\x20%0','*Insert:*\x20%0','rootName','setSelection','isArray','position','table','data','editor','insert','change:data','values','min','_descriptionFactory','getChanges','insertTableRowBelow','enableCommand','ELEMENT_TABLE_WITH_TEXT','_getCoordsForCells','type','_splitMarkerName','getFirstRange','getChildren','minColumn','getColumnIndexes','$textProxy','hasAttribute','batch','_acceptFormatSuggestionCallbackFactory','plugins','insertion','_tablePostFixingSubtypes','getSelectionAffectedTableCells','createTableWalker','toLowerCase','differ','fromRange','tablePaste','order','item','afterInit','enqueueChange','tableColumn','_suggestionFactory','toViewElement','insertTableColumnRight','deletion','addClass','registerElementLabel','TrackChangesEditing','above','refresh','substr','ELEMENT_TABLE_COLUMN','startsWith','createPositionAt','execute','every','subType','tableRow','removeTableRow','isTouching','maxRow','_setupColumnsRowsFixing','removeClass','low','registerPostFixer','start','getItems','end','max','getChangedMarkers','ELEMENT_TABLE','forceValue','rowspan','addRange','MIN_SAFE_INTEGER','model','registerCustomCallback','change','_getSuggestionCoords','detach','markMultiRangeDeletion','MAX_SAFE_INTEGER','isIntersectingWithRange','selectTableColumn','insertTable','addMarker:suggestion','locale'];(function(_0x45b540,_0x359f06){const _0x1710f2=function(_0x1a3bc6){while(--_0x1a3bc6){_0x45b540['push'](_0x45b540['shift']());}};_0x1710f2(++_0x359f06);}(_0x359f,0x189));const _0x1710=function(_0x45b540,_0x359f06){_0x45b540=_0x45b540-0x0;let _0x1710f2=_0x359f[_0x45b540];return _0x1710f2;};import{Plugin as _0x42e900}from'ckeditor5/src/core';import{LiveRange as _0x55e96b}from'ckeditor5/src/engine';import{setHighlightHandling as _0x32c9a1}from'ckeditor5/src/widget';import{getTranslation as _0x470002}from'../utils/common-translations';export default class dt extends _0x42e900{constructor(_0x34b54f){super(_0x34b54f),this[_0x1710('0x65')]=[_0x1710('0x81'),'tableColumn'],this[_0x1710('0x40')]=new Set();}[_0x1710('0x6e')](){const _0x429a44=this['editor'],_0xbb53a7=_0x429a44[_0x1710('0x9')][_0x1710('0x30')]['selection'];if(!_0x429a44[_0x1710('0x63')][_0x1710('0x26')]('TableEditing'))return;const _0xa533de=_0x429a44[_0x1710('0x14')],_0x2b94db=_0x429a44['plugins'][_0x1710('0x1a')](_0x1710('0x77')),_0x4440d3=_0x429a44[_0x1710('0x63')][_0x1710('0x1a')](_0x1710('0x38'));_0x2b94db['_descriptionFactory'][_0x1710('0x76')](_0x1710('0x4c'),_0x595f9c=>_0x470002(_0xa533de,_0x1710('0x4'),_0x595f9c)),this[_0x1710('0x85')](),_0x2b94db[_0x1710('0x56')](_0x1710('0x12')),_0x2b94db[_0x1710('0x56')]('selectTableRow'),_0x2b94db[_0x1710('0x56')](_0x1710('0x11'));for(const _0x38fd7e of[_0x1710('0x18'),_0x1710('0x55')]){const _0x4bff8a=_0x429a44[_0x1710('0x44')]['get'](_0x38fd7e);_0x2b94db[_0x1710('0x56')](_0x38fd7e,_0x5cc943=>{_0x429a44[_0x1710('0x9')][_0x1710('0xb')](_0x12969d=>{_0x5cc943();const _0x520b87=_0x1710('0x78')===_0x4bff8a[_0x1710('0x6c')],_0x195578=_0x4440d3[_0x1710('0x66')](_0xbb53a7),_0x27a8f8=_0x4440d3[_0x1710('0x3c')](_0x195578),_0x1687b4=_0x520b87?_0x27a8f8[_0x1710('0x2d')]-0x1:_0x27a8f8['last']+0x1,_0x31e55f=_0x195578[0x0][_0x1710('0x36')](_0x1710('0x4c')),_0x1a7a61=_0x4440d3[_0x1710('0x67')](_0x31e55f,{'startRow':_0x1687b4,'endRow':_0x1687b4}),_0x2ab84e=Array['from'](_0x1a7a61)[_0x1710('0x16')](_0x44cfbf=>_0x12969d[_0x1710('0x2a')](_0x44cfbf[_0x1710('0x29')]));_0x2b94db[_0x1710('0x17')](_0x2ab84e,'tableRow');});});}for(const _0x1168bc of[_0x1710('0x21'),_0x1710('0x73')]){const _0x55f09e=_0x429a44[_0x1710('0x44')][_0x1710('0x1a')](_0x1168bc);_0x2b94db[_0x1710('0x56')](_0x1168bc,_0xce1dd4=>{_0x429a44[_0x1710('0x9')][_0x1710('0xb')](_0x1f2247=>{_0xce1dd4();const _0x544c25='left'===_0x55f09e[_0x1710('0x6c')],_0x39d7bc=_0x4440d3['getSelectionAffectedTableCells'](_0xbb53a7),_0x565cd5=_0x4440d3[_0x1710('0x5e')](_0x39d7bc),_0x451134=_0x544c25?_0x565cd5[_0x1710('0x2d')]-0x1:_0x565cd5[_0x1710('0x35')]+0x1,_0x316f6f=_0x39d7bc[0x0]['findAncestor'](_0x1710('0x4c')),_0x55c0c0=_0x4440d3['createTableWalker'](_0x316f6f,{'startRow':0x0,'column':_0x451134,'includeAllSlots':!0x1}),_0x36707a=Array[_0x1710('0x3e')](_0x55c0c0)[_0x1710('0x16')](_0x8cf5fc=>_0x1f2247[_0x1710('0x2a')](_0x8cf5fc[_0x1710('0x29')]));_0x2b94db[_0x1710('0x17')](_0x36707a,_0x1710('0x70'));});});}for(const _0x132b07 of['removeTableRow',_0x1710('0x28')]){const _0x456dd3=_0x132b07[_0x1710('0x7a')](0xb),_0x4653b8=_0x456dd3[_0x1710('0x68')](),_0x157809=_0x4653b8[_0x1710('0x7a')](0x0,0x3)+_0x1710('0x27'),_0x2ff64e=_0x1710('0x4c')+_0x456dd3,_0x35e2e1='min'+_0x456dd3,_0x12d9c9=_0x1710('0x2')+_0x456dd3;_0x2b94db[_0x1710('0x56')](_0x132b07,()=>{_0x429a44[_0x1710('0x9')][_0x1710('0xb')](_0x21ed43=>{const _0x5b26b2=_0x4440d3['getSelectionAffectedTableCells'](_0xbb53a7),_0x1b6bbf=_0x5b26b2[0x0]['findAncestor'](_0x1710('0x4c'));let _0x1c5bda;if(_0x1710('0x82')==_0x132b07){const _0x1aba0b=_0x4440d3[_0x1710('0x3c')](_0x5b26b2);_0x1c5bda={'startRow':_0x1aba0b[_0x1710('0x2d')],'endRow':_0x1aba0b['last'],'includeAllSlots':!0x0};}else{const _0x196ff3=_0x4440d3['getColumnIndexes'](_0x5b26b2);_0x1c5bda={'startColumn':_0x196ff3[_0x1710('0x2d')],'endColumn':_0x196ff3['last'],'includeAllSlots':!0x0};}const _0x4f11ce=_0x4440d3[_0x1710('0x67')](_0x1b6bbf,_0x1c5bda),_0x234069=Array[_0x1710('0x3e')](_0x4f11ce)[_0x1710('0x16')](({cell:_0x54b7ee})=>_0x54b7ee),_0x9f11af=se(_0x234069[_0x1710('0x3b')](_0x1ebfc5=>_0x1ebfc5[_0x1710('0x60')](_0x157809))),_0x162159=se(_0x234069[_0x1710('0x3b')](_0x27ebbf=>!_0x27ebbf['hasAttribute'](_0x157809)))[_0x1710('0x16')](_0x288164=>_0x21ed43[_0x1710('0x2a')](_0x288164)),_0x377d81=_0x2b94db[_0x1710('0xe')](_0x162159,_0x2ff64e);if(_0x377d81&&('tableRow'==_0x377d81[_0x1710('0x80')]||'tableColumn'==_0x377d81[_0x1710('0x80')])){const _0x41d44f=this['_getSuggestionCoords'](_0x377d81);for(const _0x2ccb2f of _0x9f11af){const _0x3fe706=_0x21ed43['createRangeOn'](_0x2ccb2f),_0x22e5e5=_0x4440d3[_0x1710('0x33')](_0x2ccb2f),_0x4d0580=_0x2ccb2f[_0x1710('0x2c')](_0x157809)-0x1,_0x2758bc=_0x41d44f[_0x35e2e1],_0x1ec184=_0x41d44f[_0x12d9c9];_0x2758bc<=_0x22e5e5[_0x4653b8]&&_0x22e5e5[_0x4653b8]+_0x4d0580<=_0x1ec184&&_0x377d81[_0x1710('0x7')](_0x3fe706);}}});});}function _0x5a6cb5(_0x2c3f91){const _0x533931=Array['from'](_0xbb53a7[_0x1710('0x3f')]())[_0x1710('0x16')](_0xae36fd=>_0x55e96b['fromRange'](_0xae36fd));_0x429a44['model']['change'](_0x1f8168=>{const _0x28d0b5=_0x1f8168[_0x1710('0x61')];_0x2c3f91=_0x2c3f91['filter'](_0xb7de98=>_0x1710('0x2b')!=_0xb7de98[_0x1710('0x39')]['rootName']),_0x1f8168[_0x1710('0x49')](_0x2c3f91),_0x429a44[_0x1710('0x44')][_0x1710('0x1a')](_0x1710('0x82'))[_0x1710('0x79')](),_0x429a44[_0x1710('0x7e')](_0x1710('0x82'),{'forceDefaultExecution':!0x0}),_0x429a44[_0x1710('0x9')][_0x1710('0x6f')](()=>{_0x429a44[_0x1710('0x9')][_0x1710('0x6f')](_0x28d0b5,_0x242a7e=>{const _0x5af33e=_0x533931['filter'](_0x5b74f0=>_0x1710('0x2b')!=_0x5b74f0[_0x1710('0x39')][_0x1710('0x48')]);_0x5af33e[_0x1710('0x2e')]>0x0&&_0x242a7e[_0x1710('0x49')](_0x5af33e);for(const _0x12500c of _0x533931)_0x12500c[_0x1710('0xd')]();});});});}function _0x1be025(_0x220deb){_0x429a44[_0x1710('0x9')][_0x1710('0xb')](_0x5daf54=>{const _0x55f931=Array['from'](_0xbb53a7[_0x1710('0x3f')]())[_0x1710('0x16')](_0x3d2de5=>_0x55e96b[_0x1710('0x6a')](_0x3d2de5)),_0x3fc3ef=[];for(const _0xf0e0f5 of _0x220deb)for(const _0x4d54a9 of _0xf0e0f5[_0x1710('0x0')]({'shallow':!0x0}))_0x3fc3ef['push'](_0x4d54a9);for(const _0x5c4923 of _0x3fc3ef)_0x1710('0x2b')!=_0x5c4923[_0x1710('0x39')][_0x1710('0x48')]&&(_0x5daf54[_0x1710('0x49')](_0x5daf54[_0x1710('0x7d')](_0x5c4923,0x0)),_0x429a44['commands'][_0x1710('0x1a')](_0x1710('0x28'))[_0x1710('0x79')](),_0x429a44['execute'](_0x1710('0x28'),{'forceDefaultExecution':!0x0}));const _0x40f5c9=_0x55f931[_0x1710('0x3b')](_0x2075d5=>'$graveyard'!=_0x2075d5['root'][_0x1710('0x48')]);_0x40f5c9[_0x1710('0x2e')]>0x0&&_0x5daf54[_0x1710('0x49')](_0x40f5c9);for(const _0x4a1893 of _0x55f931)_0x4a1893[_0x1710('0xd')]();});}function _0x85d58f(_0x278fe8,_0x18d57e){return _0x18d57e[_0x1710('0x7f')](_0x477d8b=>_0x278fe8[_0x1710('0x42')](_0x2de8df=>_0x2de8df[_0x1710('0x1')][_0x1710('0x3a')](_0x477d8b['start'])||_0x477d8b[_0x1710('0x1')][_0x1710('0x3a')](_0x2de8df[_0x1710('0x89')])));}function _0x407160(_0x15ec24,_0xc61bfe){return _0x15ec24[_0x1710('0x42')](_0x5cc0d8=>_0xc61bfe[_0x1710('0x42')](_0x13bef9=>_0x5cc0d8[_0x1710('0x1')][_0x1710('0x83')](_0x13bef9['start'])));}_0x429a44['data'][_0x1710('0x1d')]['on'](_0x1710('0x13'),(_0x65f089,_0x5c7675,_0x9342d3)=>{if(!_0x9342d3['options']['showSuggestionHighlights'])return;const _0x45435f=_0x5c7675[_0x1710('0x6d')];if(!_0x45435f)return;const _0x5a4c38=_0x9342d3[_0x1710('0x31')][_0x1710('0x72')](_0x45435f);function _0x5ed3fd(_0x16bb96){return Array[_0x1710('0x4a')](_0x16bb96)?_0x16bb96:[_0x16bb96];}_0x5a4c38&&'tableCell'===_0x45435f[_0x1710('0x37')]&&_0x32c9a1(_0x5a4c38,_0x9342d3[_0x1710('0x1c')],(_0x49dfe2,_0x5ead97,_0x2ae482)=>_0x2ae482[_0x1710('0x75')](_0x5ed3fd(_0x5ead97['classes']),_0x49dfe2),(_0x38e497,_0x2377aa,_0x2271ea)=>_0x2271ea[_0x1710('0x86')](_0x5ed3fd(_0x2377aa['classes']),_0x38e497));},{'priority':'highest'}),_0x2b94db[_0x1710('0x53')][_0x1710('0x1f')](_0x3da2cc=>{if(_0x1710('0x64')!=_0x3da2cc[_0x1710('0x59')]&&_0x1710('0x74')!=_0x3da2cc[_0x1710('0x59')])return;const _0x5d7595=_0x3da2cc['getContainedElement']();if(null!=_0x5d7595&&_0x5d7595['is'](_0x1710('0x1e'),_0x1710('0x4c'))){if(_0x1710('0x64')==_0x3da2cc[_0x1710('0x59')]){const _0x1fa00a=_0x3da2cc[_0x1710('0x0')]()[_0x1710('0x3b')](_0x409d05=>_0x409d05['is'](_0x1710('0x5f')))[_0x1710('0x16')](_0x39103f=>_0x39103f[_0x1710('0x4d')]);if(_0x1fa00a['length'])return{'type':_0x1710('0x64'),'content':_0x470002(_0xa533de,_0x1710('0x47'),_0x470002(_0xa533de,_0x1710('0x57'),'\x22'+_0x1fa00a[_0x1710('0x43')]('\x20')+'\x22'))};}if(_0x1710('0x74')==_0x3da2cc[_0x1710('0x59')]){const _0x34e96a=_0x3da2cc[_0x1710('0x0')]()[_0x1710('0x3b')](_0x31c352=>_0x31c352['is']('$textProxy'))[_0x1710('0x16')](_0x21a781=>_0x21a781[_0x1710('0x4d')]);if(_0x34e96a[_0x1710('0x2e')])return{'type':_0x1710('0x74'),'content':_0x470002(_0xa533de,_0x1710('0x46'),_0x470002(_0xa533de,_0x1710('0x57'),'\x22'+_0x34e96a[_0x1710('0x43')]('\x20')+'\x22'))};}}}),_0x2b94db['_descriptionFactory']['registerDescriptionCallback'](_0x371739=>{if('tableRow'==_0x371739['subType']){const _0x315150=_0x371739[_0x1710('0x0')]()[_0x1710('0x3b')](_0x541eb4=>_0x541eb4['is'](_0x1710('0x5f')))[_0x1710('0x16')](_0x17b935=>_0x17b935[_0x1710('0x4d')]),_0x451002=this[_0x1710('0xc')](_0x371739),_0x2a0ca2=_0x451002[_0x1710('0x84')]-_0x451002[_0x1710('0x25')]+0x1;if(_0x1710('0x64')==_0x371739[_0x1710('0x59')])return _0x315150[_0x1710('0x2e')]?{'type':_0x1710('0x64'),'content':_0x470002(_0xa533de,_0x1710('0x47'),_0x470002(_0xa533de,_0x1710('0x2f'),[_0x2a0ca2,'\x22'+_0x315150[_0x1710('0x43')]('\x20')+'\x22']))}:{'type':_0x1710('0x64'),'content':_0x470002(_0xa533de,_0x1710('0x47'),_0x470002(_0xa533de,_0x1710('0x23'),_0x2a0ca2))};if('deletion'==_0x371739[_0x1710('0x59')])return _0x315150['length']?{'type':_0x1710('0x74'),'content':_0x470002(_0xa533de,_0x1710('0x46'),_0x470002(_0xa533de,_0x1710('0x2f'),[_0x2a0ca2,'\x22'+_0x315150['join']('\x20')+'\x22']))}:{'type':_0x1710('0x74'),'content':_0x470002(_0xa533de,_0x1710('0x46'),_0x470002(_0xa533de,_0x1710('0x23'),_0x2a0ca2))};}if(_0x1710('0x70')==_0x371739[_0x1710('0x80')]){const _0x38fb75=_0x371739[_0x1710('0x0')]()[_0x1710('0x3b')](_0x2173ca=>_0x2173ca['is'](_0x1710('0x5f')))[_0x1710('0x16')](_0x4d186b=>_0x4d186b['data']),_0x3077f3=this[_0x1710('0xc')](_0x371739),_0x5bc6c0=_0x3077f3['maxColumn']-_0x3077f3[_0x1710('0x5d')]+0x1;if(_0x1710('0x64')==_0x371739[_0x1710('0x59')])return _0x38fb75[_0x1710('0x2e')]?{'type':_0x1710('0x64'),'content':_0x470002(_0xa533de,_0x1710('0x47'),_0x470002(_0xa533de,_0x1710('0x1b'),[_0x5bc6c0,'\x22'+_0x38fb75[_0x1710('0x43')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x470002(_0xa533de,_0x1710('0x47'),_0x470002(_0xa533de,_0x1710('0x7b'),_0x5bc6c0))};if(_0x1710('0x74')==_0x371739['type'])return _0x38fb75['length']?{'type':_0x1710('0x74'),'content':_0x470002(_0xa533de,_0x1710('0x46'),_0x470002(_0xa533de,_0x1710('0x1b'),[_0x5bc6c0,'\x22'+_0x38fb75[_0x1710('0x43')]('\x20')+'\x22']))}:{'type':_0x1710('0x74'),'content':_0x470002(_0xa533de,'*Remove:*\x20%0',_0x470002(_0xa533de,'ELEMENT_TABLE_COLUMN',_0x5bc6c0))};}}),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x64'),_0x1710('0x81'),_0x1710('0x24'),_0x5a6cb5),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x74'),_0x1710('0x81'),'accept',_0x5a6cb5),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x64'),_0x1710('0x70'),_0x1710('0x24'),_0x1be025),_0x2b94db['_suggestionFactory']['registerCustomCallback'](_0x1710('0x74'),_0x1710('0x70'),_0x1710('0x22'),_0x1be025),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x64'),_0x1710('0x70'),'join',_0x85d58f),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x74'),_0x1710('0x70'),_0x1710('0x43'),_0x85d58f),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x64'),_0x1710('0x81'),_0x1710('0x43'),_0x407160),_0x2b94db[_0x1710('0x71')][_0x1710('0xa')](_0x1710('0x74'),_0x1710('0x81'),_0x1710('0x43'),_0x407160);}[_0x1710('0x62')](){const _0x2c7d0f=this['editor'],_0x1e78b1=_0x2c7d0f[_0x1710('0x9')][_0x1710('0x30')][_0x1710('0x45')];return(_0x129a44,_0x5a7dc0)=>{_0x2c7d0f[_0x1710('0x9')][_0x1710('0xb')](_0x3bfdb7=>{const {commandName:_0x10f960,commandParams:_0x2b0fc9}=_0x5a7dc0;let _0x5ebd75=_0x129a44[0x0][_0x1710('0x1')]['nodeBefore'];_0x2b0fc9&&_0x2b0fc9[0x0]&&!0x1===_0x2b0fc9[0x0][_0x1710('0x5')]&&(_0x5ebd75=_0x129a44[0x0][_0x1710('0x89')][_0x1710('0x3d')]);const _0x56114f=_0x3bfdb7['createRangeIn'](_0x5ebd75);if(_0x1710('0x2b')==_0x56114f[_0x1710('0x39')][_0x1710('0x48')])return;const _0x2dd549=Array[_0x1710('0x3e')](_0x1e78b1[_0x1710('0x3f')]())[_0x1710('0x16')](_0x54d5b9=>_0x55e96b['fromRange'](_0x54d5b9));_0x3bfdb7['setSelection'](_0x56114f),_0x2c7d0f['commands'][_0x1710('0x1a')](_0x10f960)[_0x1710('0x79')](),_0x2b0fc9[_0x1710('0x15')]({'forceDefaultExecution':!0x0}),_0x2c7d0f['execute'](_0x10f960,..._0x2b0fc9);const _0x2629db=_0x2dd549['filter'](_0x397ebc=>_0x1710('0x2b')!=_0x397ebc[_0x1710('0x39')][_0x1710('0x48')]);_0x2629db[_0x1710('0x2e')]>0x0&&_0x3bfdb7[_0x1710('0x49')](_0x2629db);for(const _0x94e529 of _0x2dd549)_0x94e529['detach']();});};}[_0x1710('0x58')](_0x29dcd6){const _0x5dd053=this['editor'][_0x1710('0x63')][_0x1710('0x1a')](_0x1710('0x38'));let _0x51fcc4=Number[_0x1710('0xf')],_0x67427c=Number['MIN_SAFE_INTEGER'],_0x14bd4a=Number[_0x1710('0xf')],_0x1d2225=Number[_0x1710('0x8')];for(const _0x4cfc26 of _0x29dcd6){if(_0x1710('0x2b')==_0x4cfc26['root'][_0x1710('0x48')])continue;const {row:_0x3e25f9,column:_0x42d743}=_0x5dd053[_0x1710('0x33')](_0x4cfc26),_0x590b56=_0x4cfc26[_0x1710('0x60')]('rowspan')?_0x4cfc26['getAttribute'](_0x1710('0x6'))-0x1:0x0,_0x53a501=_0x4cfc26[_0x1710('0x60')](_0x1710('0x19'))?_0x4cfc26[_0x1710('0x2c')](_0x1710('0x19'))-0x1:0x0;_0x51fcc4=_0x3e25f9<_0x51fcc4?_0x3e25f9:_0x51fcc4,_0x67427c=_0x3e25f9+_0x590b56>_0x67427c?_0x3e25f9+_0x590b56:_0x67427c,_0x14bd4a=_0x42d743<_0x14bd4a?_0x42d743:_0x14bd4a,_0x1d2225=_0x42d743+_0x53a501>_0x1d2225?_0x42d743+_0x53a501:_0x1d2225;}return{'minRow':_0x51fcc4,'maxRow':_0x67427c,'minColumn':_0x14bd4a,'maxColumn':_0x1d2225};}[_0x1710('0x85')](){const _0x4f7c86=this[_0x1710('0x4e')],_0x116a3f=_0x4f7c86['plugins'][_0x1710('0x1a')]('TrackChangesEditing'),_0x2873a5=_0x4f7c86['plugins'][_0x1710('0x1a')](_0x1710('0x38'));_0x4f7c86[_0x1710('0x9')][_0x1710('0x30')]['on'](_0x1710('0x50'),()=>{const _0xa18260=Array[_0x1710('0x3e')](_0x4f7c86['model'][_0x1710('0x30')]['differ'][_0x1710('0x3')]());for(const {name:_0x3f394f,data:_0x5c3f57}of _0xa18260){const {group:_0x306850,id:_0x4d30f7,subType:_0x51d1f0}=_0x116a3f[_0x1710('0x5a')](_0x3f394f);if(_0x1710('0x41')!=_0x306850)continue;if(null!=_0x5c3f57['oldRange'])continue;const _0x8c677b=_0x116a3f['getSuggestion'](_0x4d30f7);this[_0x1710('0x65')]['includes'](_0x51d1f0)&&this[_0x1710('0x40')][_0x1710('0x20')](_0x8c677b);}},{'priority':_0x1710('0x87')});const _0x49c0a6=(_0x20110e,_0x45b9c2)=>{let _0x3c53ff=!0x1;const _0x17d9f3=_0x45b9c2[_0x1710('0x2a')](_0x20110e),_0x371030=_0x20110e[_0x1710('0x36')](_0x1710('0x4c')),_0x5199a2=_0x2873a5[_0x1710('0x33')](_0x20110e);for(const _0xd5fcc8 of this[_0x1710('0x40')]){const _0x1416c0=_0xd5fcc8['subType'],_0x105b9c=_0x1416c0[_0x1710('0x7c')](_0x1710('0x6b')),_0x1a7e4e=_0x1416c0[_0x1710('0x7a')](_0x105b9c?0xa:0x5),_0x1f6ffb=_0x1a7e4e[_0x1710('0x68')](),_0x822f62=_0x1f6ffb['substr'](0x0,0x3)+_0x1710('0x27'),_0x21ce48=_0x1710('0x52')+_0x1a7e4e,_0x44e4bf='max'+_0x1a7e4e;if(!_0xd5fcc8[_0x1710('0x34')])continue;if(_0x371030!=_0xd5fcc8[_0x1710('0x5b')]()[_0x1710('0x89')][_0x1710('0x36')](_0x1710('0x4c')))continue;if(_0xd5fcc8[_0x1710('0x10')](_0x17d9f3))continue;const _0x4cc739=_0x20110e[_0x1710('0x60')](_0x822f62)?_0x20110e['getAttribute'](_0x822f62)-0x1:0x0,_0x1ffd16=this[_0x1710('0xc')](_0xd5fcc8),_0x1b232e=_0x1ffd16[_0x21ce48],_0x4ca1fd=_0x1ffd16[_0x44e4bf];_0x1b232e<=_0x5199a2[_0x1f6ffb]&&_0x5199a2[_0x1f6ffb]+_0x4cc739<=_0x4ca1fd&&(_0xd5fcc8['addRange'](_0x17d9f3),_0x3c53ff=!0x0);}return _0x3c53ff;};_0x4f7c86[_0x1710('0x9')][_0x1710('0x30')][_0x1710('0x88')](_0x3e6e36=>{let _0x33194c=!0x1;for(const _0x16927a of _0x4f7c86[_0x1710('0x9')][_0x1710('0x30')][_0x1710('0x69')][_0x1710('0x54')]())if(_0x1710('0x4f')==_0x16927a[_0x1710('0x59')]){if(_0x1710('0x81')==_0x16927a[_0x1710('0x37')])for(const _0x2c9b26 of _0x16927a['position'][_0x1710('0x3d')][_0x1710('0x5c')]())_0x33194c=_0x33194c||_0x49c0a6(_0x2c9b26,_0x3e6e36);else _0x1710('0x32')==_0x16927a[_0x1710('0x37')]&&(_0x33194c=_0x33194c||_0x49c0a6(_0x16927a[_0x1710('0x4b')][_0x1710('0x3d')],_0x3e6e36));}return _0x33194c;});}[_0x1710('0xc')](_0xf3d876){return this['_getCoordsForCells'](_0xf3d876[_0x1710('0x3f')]()[_0x1710('0x16')](_0x4051a0=>_0x4051a0[_0x1710('0x89')]['nodeAfter']));}}function se(_0x51f46b){return Array[_0x1710('0x3e')](new Set(_0x51f46b)[_0x1710('0x51')]());}
|
|
23
|
+
const _0x3c4f=['selection','refresh','isArray','start','insertTableRowBelow','MIN_SAFE_INTEGER','getFirstRange','createPositionAt','selectTableRow','hasAttribute','first','toViewElement','insert','maxColumn','model','minColumn','table','ELEMENT_TABLE_COLUMN_WITH_TEXT','_suggestionFactory','removeTableRow','ELEMENT_TABLE','rootName','getRanges','rowspan','_descriptionFactory','change','fromRange','isIntersectingWithRange','getItems','isTouching','getSelectionAffectedTableCells','insertion','getChangedMarkers','substr','deletion','createTableWalker','highest','removeTableColumn','type','end','MAX_SAFE_INTEGER','getChanges','from','toLowerCase','position','document','join','startsWith','maxRow','registerDescriptionCallback','map','getAttribute','differ','has','execute','tableRow','span','some','getCellLocation','ELEMENT_TABLE_COLUMN','min','TableEditing','_tableSuggestions','tableCell','detach','registerCustomCallback','selectTableColumn','_getSuggestionCoords','getChildren','ELEMENT_TABLE_ROW','data','isInContent','filter','nodeAfter','_getCoordsForCells','options','length','colspan','registerPostFixer','removeClass','subType','every','enableCommand','get','left','createRangeOn','_tablePostFixingSubtypes','findAncestor','batch','insertTable','push','above','last','locale','_acceptFormatSuggestionCallbackFactory','enqueueChange','setSelection','name','insertTableColumnRight','_splitMarkerName','tableColumn','getSuggestion','change:data','*Remove:*\x20%0','downcastDispatcher','add','item','plugins','editor','addMarker:suggestion','classes','showSuggestionHighlights','markMultiRangeInsertion','element','_setupColumnsRowsFixing','isEqual','discard','$graveyard','accept','getRowIndexes','commands','order','*Insert:*\x20%0','nodeBefore','ELEMENT_TABLE_WITH_TEXT','max','getContainedElement','$textProxy','suggestion','getColumnIndexes','oldRange','root','tablePaste'];(function(_0x4c2d71,_0x3c4f18){const _0x3dc81e=function(_0x43314e){while(--_0x43314e){_0x4c2d71['push'](_0x4c2d71['shift']());}};_0x3dc81e(++_0x3c4f18);}(_0x3c4f,0x1a4));const _0x3dc8=function(_0x4c2d71,_0x3c4f18){_0x4c2d71=_0x4c2d71-0x0;let _0x3dc81e=_0x3c4f[_0x4c2d71];return _0x3dc81e;};import{Plugin as _0x1555b6}from'ckeditor5/src/core';import{LiveRange as _0x2f1e49}from'ckeditor5/src/engine';import{setHighlightHandling as _0x20227b}from'ckeditor5/src/widget';import{getTranslation as _0x134b22}from'../utils/common-translations';export default class dt extends _0x1555b6{constructor(_0x5106d4){super(_0x5106d4),this[_0x3dc8('0x41')]=[_0x3dc8('0x22'),'tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3c1627=this[_0x3dc8('0x57')],_0x29d123=_0x3c1627[_0x3dc8('0x7e')][_0x3dc8('0x18')][_0x3dc8('0x70')];if(!_0x3c1627['plugins'][_0x3dc8('0x20')](_0x3dc8('0x28')))return;const _0x50c3c5=_0x3c1627[_0x3dc8('0x48')],_0x26d82e=_0x3c1627[_0x3dc8('0x56')][_0x3dc8('0x3e')]('TrackChangesEditing'),_0x90f6af=_0x3c1627[_0x3dc8('0x56')][_0x3dc8('0x3e')]('TableUtils');_0x26d82e[_0x3dc8('0x3')]['registerElementLabel']('table',_0x42cd63=>_0x134b22(_0x50c3c5,_0x3dc8('0x84'),_0x42cd63)),this[_0x3dc8('0x5d')](),_0x26d82e['enableCommand'](_0x3dc8('0x44')),_0x26d82e['enableCommand'](_0x3dc8('0x78')),_0x26d82e[_0x3dc8('0x3d')](_0x3dc8('0x2d'));for(const _0x57557c of['insertTableRowAbove',_0x3dc8('0x74')]){const _0x599288=_0x3c1627[_0x3dc8('0x63')][_0x3dc8('0x3e')](_0x57557c);_0x26d82e[_0x3dc8('0x3d')](_0x57557c,_0x3d386d=>{_0x3c1627['model'][_0x3dc8('0x4')](_0x1aa226=>{_0x3d386d();const _0xffccd6=_0x3dc8('0x46')===_0x599288[_0x3dc8('0x64')],_0x13437d=_0x90f6af[_0x3dc8('0x9')](_0x29d123),_0x591c91=_0x90f6af[_0x3dc8('0x62')](_0x13437d),_0x557225=_0xffccd6?_0x591c91[_0x3dc8('0x7a')]-0x1:_0x591c91[_0x3dc8('0x47')]+0x1,_0x18e013=_0x13437d[0x0]['findAncestor'](_0x3dc8('0x80')),_0x5d57e2=_0x90f6af['createTableWalker'](_0x18e013,{'startRow':_0x557225,'endRow':_0x557225}),_0x423114=Array['from'](_0x5d57e2)[_0x3dc8('0x1d')](_0x18393a=>_0x1aa226['createRangeOn'](_0x18393a['cell']));_0x26d82e[_0x3dc8('0x5b')](_0x423114,_0x3dc8('0x22'));});});}for(const _0x5113a0 of['insertTableColumnLeft',_0x3dc8('0x4d')]){const _0xe27d5a=_0x3c1627['commands'][_0x3dc8('0x3e')](_0x5113a0);_0x26d82e[_0x3dc8('0x3d')](_0x5113a0,_0x2b9014=>{_0x3c1627[_0x3dc8('0x7e')][_0x3dc8('0x4')](_0x101f29=>{_0x2b9014();const _0x4b990c=_0x3dc8('0x3f')===_0xe27d5a[_0x3dc8('0x64')],_0x2179ca=_0x90f6af[_0x3dc8('0x9')](_0x29d123),_0xdd1294=_0x90f6af[_0x3dc8('0x6c')](_0x2179ca),_0x4367b5=_0x4b990c?_0xdd1294[_0x3dc8('0x7a')]-0x1:_0xdd1294[_0x3dc8('0x47')]+0x1,_0xc1d5a5=_0x2179ca[0x0][_0x3dc8('0x42')](_0x3dc8('0x80')),_0x206104=_0x90f6af[_0x3dc8('0xe')](_0xc1d5a5,{'startRow':0x0,'column':_0x4367b5,'includeAllSlots':!0x1}),_0x21d4db=Array['from'](_0x206104)[_0x3dc8('0x1d')](_0x10723c=>_0x101f29['createRangeOn'](_0x10723c['cell']));_0x26d82e['markMultiRangeInsertion'](_0x21d4db,_0x3dc8('0x4f'));});});}for(const _0x3124cc of['removeTableRow',_0x3dc8('0x10')]){const _0xaab4bd=_0x3124cc[_0x3dc8('0xc')](0xb),_0x1aceda=_0xaab4bd[_0x3dc8('0x16')](),_0x4aa93f=_0x1aceda['substr'](0x0,0x3)+'span',_0x980a00=_0x3dc8('0x80')+_0xaab4bd,_0x1f063d=_0x3dc8('0x27')+_0xaab4bd,_0x2ddad4=_0x3dc8('0x68')+_0xaab4bd;_0x26d82e[_0x3dc8('0x3d')](_0x3124cc,()=>{_0x3c1627[_0x3dc8('0x7e')][_0x3dc8('0x4')](_0x469f93=>{const _0x4bb85f=_0x90f6af[_0x3dc8('0x9')](_0x29d123),_0x31a8db=_0x4bb85f[0x0]['findAncestor'](_0x3dc8('0x80'));let _0x4472d7;if(_0x3dc8('0x83')==_0x3124cc){const _0x24e883=_0x90f6af['getRowIndexes'](_0x4bb85f);_0x4472d7={'startRow':_0x24e883[_0x3dc8('0x7a')],'endRow':_0x24e883['last'],'includeAllSlots':!0x0};}else{const _0x3e5866=_0x90f6af[_0x3dc8('0x6c')](_0x4bb85f);_0x4472d7={'startColumn':_0x3e5866['first'],'endColumn':_0x3e5866['last'],'includeAllSlots':!0x0};}const _0x362fce=_0x90f6af[_0x3dc8('0xe')](_0x31a8db,_0x4472d7),_0x740938=Array[_0x3dc8('0x15')](_0x362fce)[_0x3dc8('0x1d')](({cell:_0x457113})=>_0x457113),_0x1db8b9=se(_0x740938[_0x3dc8('0x33')](_0x3053c5=>_0x3053c5[_0x3dc8('0x79')](_0x4aa93f))),_0x54a7ca=se(_0x740938[_0x3dc8('0x33')](_0x37b279=>!_0x37b279[_0x3dc8('0x79')](_0x4aa93f)))['map'](_0xab38c1=>_0x469f93[_0x3dc8('0x40')](_0xab38c1)),_0x5a7c14=_0x26d82e['markMultiRangeDeletion'](_0x54a7ca,_0x980a00);if(_0x5a7c14&&(_0x3dc8('0x22')==_0x5a7c14[_0x3dc8('0x3b')]||_0x3dc8('0x4f')==_0x5a7c14['subType'])){const _0x107d98=this[_0x3dc8('0x2e')](_0x5a7c14);for(const _0xa37343 of _0x1db8b9){const _0x3166c3=_0x469f93[_0x3dc8('0x40')](_0xa37343),_0x218862=_0x90f6af[_0x3dc8('0x25')](_0xa37343),_0x3adb89=_0xa37343[_0x3dc8('0x1e')](_0x4aa93f)-0x1,_0x5cd693=_0x107d98[_0x1f063d],_0x22f5b1=_0x107d98[_0x2ddad4];_0x5cd693<=_0x218862[_0x1aceda]&&_0x218862[_0x1aceda]+_0x3adb89<=_0x22f5b1&&_0x5a7c14['addRange'](_0x3166c3);}}});});}function _0x174236(_0x4ae4e3){const _0x3fb389=Array[_0x3dc8('0x15')](_0x29d123[_0x3dc8('0x1')]())[_0x3dc8('0x1d')](_0x2d08d1=>_0x2f1e49[_0x3dc8('0x5')](_0x2d08d1));_0x3c1627[_0x3dc8('0x7e')][_0x3dc8('0x4')](_0x1a4a12=>{const _0x54843f=_0x1a4a12[_0x3dc8('0x43')];_0x4ae4e3=_0x4ae4e3[_0x3dc8('0x33')](_0x2f4926=>'$graveyard'!=_0x2f4926[_0x3dc8('0x6e')][_0x3dc8('0x0')]),_0x1a4a12[_0x3dc8('0x4b')](_0x4ae4e3),_0x3c1627[_0x3dc8('0x63')]['get'](_0x3dc8('0x83'))['refresh'](),_0x3c1627[_0x3dc8('0x21')](_0x3dc8('0x83'),{'forceDefaultExecution':!0x0}),_0x3c1627[_0x3dc8('0x7e')][_0x3dc8('0x4a')](()=>{_0x3c1627[_0x3dc8('0x7e')][_0x3dc8('0x4a')](_0x54843f,_0x5862ba=>{const _0x11374c=_0x3fb389[_0x3dc8('0x33')](_0x16b5fa=>'$graveyard'!=_0x16b5fa['root'][_0x3dc8('0x0')]);_0x11374c[_0x3dc8('0x37')]>0x0&&_0x5862ba[_0x3dc8('0x4b')](_0x11374c);for(const _0x27081c of _0x3fb389)_0x27081c[_0x3dc8('0x2b')]();});});});}function _0x22e509(_0x529b4e){_0x3c1627[_0x3dc8('0x7e')][_0x3dc8('0x4')](_0x53bdac=>{const _0x3f239b=Array['from'](_0x29d123[_0x3dc8('0x1')]())[_0x3dc8('0x1d')](_0x5b90c3=>_0x2f1e49[_0x3dc8('0x5')](_0x5b90c3)),_0x4fd518=[];for(const _0x367818 of _0x529b4e)for(const _0x22fbf5 of _0x367818[_0x3dc8('0x7')]({'shallow':!0x0}))_0x4fd518[_0x3dc8('0x45')](_0x22fbf5);for(const _0x21a0fa of _0x4fd518)_0x3dc8('0x60')!=_0x21a0fa['root'][_0x3dc8('0x0')]&&(_0x53bdac['setSelection'](_0x53bdac[_0x3dc8('0x77')](_0x21a0fa,0x0)),_0x3c1627['commands'][_0x3dc8('0x3e')](_0x3dc8('0x10'))['refresh'](),_0x3c1627['execute'](_0x3dc8('0x10'),{'forceDefaultExecution':!0x0}));const _0x24a2a7=_0x3f239b[_0x3dc8('0x33')](_0x3ececb=>'$graveyard'!=_0x3ececb[_0x3dc8('0x6e')][_0x3dc8('0x0')]);_0x24a2a7['length']>0x0&&_0x53bdac[_0x3dc8('0x4b')](_0x24a2a7);for(const _0xed6da1 of _0x3f239b)_0xed6da1['detach']();});}function _0x39bc1b(_0x344fcc,_0x47d605){return _0x47d605[_0x3dc8('0x3c')](_0x12ecb7=>_0x344fcc['some'](_0x3440a0=>_0x3440a0[_0x3dc8('0x12')][_0x3dc8('0x5e')](_0x12ecb7[_0x3dc8('0x73')])||_0x12ecb7['end'][_0x3dc8('0x5e')](_0x3440a0[_0x3dc8('0x73')])));}function _0x3e3a4b(_0x3c0a66,_0x1dee33){return _0x3c0a66['some'](_0x2ff914=>_0x1dee33[_0x3dc8('0x24')](_0x32d524=>_0x2ff914[_0x3dc8('0x12')][_0x3dc8('0x8')](_0x32d524[_0x3dc8('0x73')])));}_0x3c1627['data'][_0x3dc8('0x53')]['on'](_0x3dc8('0x58'),(_0x3080e4,_0x4a42ec,_0x2242ab)=>{if(!_0x2242ab[_0x3dc8('0x36')][_0x3dc8('0x5a')])return;const _0x509782=_0x4a42ec[_0x3dc8('0x55')];if(!_0x509782)return;const _0x51678f=_0x2242ab['mapper'][_0x3dc8('0x7b')](_0x509782);function _0x42bbaa(_0x536182){return Array[_0x3dc8('0x72')](_0x536182)?_0x536182:[_0x536182];}_0x51678f&&'tableCell'===_0x509782[_0x3dc8('0x4c')]&&_0x20227b(_0x51678f,_0x2242ab['writer'],(_0x5c0dac,_0x2a2e22,_0x2e27aa)=>_0x2e27aa['addClass'](_0x42bbaa(_0x2a2e22[_0x3dc8('0x59')]),_0x5c0dac),(_0x569a49,_0x3efaf2,_0x1876ec)=>_0x1876ec[_0x3dc8('0x3a')](_0x42bbaa(_0x3efaf2[_0x3dc8('0x59')]),_0x569a49));},{'priority':_0x3dc8('0xf')}),_0x26d82e['_descriptionFactory']['registerDescriptionCallback'](_0x32135c=>{if(_0x3dc8('0xa')!=_0x32135c[_0x3dc8('0x11')]&&_0x3dc8('0xd')!=_0x32135c['type'])return;const _0x4e7947=_0x32135c[_0x3dc8('0x69')]();if(null!=_0x4e7947&&_0x4e7947['is'](_0x3dc8('0x5c'),_0x3dc8('0x80'))){if('insertion'==_0x32135c['type']){const _0x1c9f76=_0x32135c[_0x3dc8('0x7')]()[_0x3dc8('0x33')](_0xd98668=>_0xd98668['is'](_0x3dc8('0x6a')))[_0x3dc8('0x1d')](_0xab9a53=>_0xab9a53[_0x3dc8('0x31')]);if(_0x1c9f76[_0x3dc8('0x37')])return{'type':_0x3dc8('0xa'),'content':_0x134b22(_0x50c3c5,_0x3dc8('0x65'),_0x134b22(_0x50c3c5,_0x3dc8('0x67'),'\x22'+_0x1c9f76['join']('\x20')+'\x22'))};}if(_0x3dc8('0xd')==_0x32135c['type']){const _0xa6f3cf=_0x32135c['getItems']()[_0x3dc8('0x33')](_0x393813=>_0x393813['is'](_0x3dc8('0x6a')))[_0x3dc8('0x1d')](_0x1cf534=>_0x1cf534[_0x3dc8('0x31')]);if(_0xa6f3cf['length'])return{'type':_0x3dc8('0xd'),'content':_0x134b22(_0x50c3c5,_0x3dc8('0x52'),_0x134b22(_0x50c3c5,_0x3dc8('0x67'),'\x22'+_0xa6f3cf['join']('\x20')+'\x22'))};}}}),_0x26d82e[_0x3dc8('0x3')][_0x3dc8('0x1c')](_0xafe5a0=>{if(_0x3dc8('0x22')==_0xafe5a0[_0x3dc8('0x3b')]){const _0x5cb27e=_0xafe5a0[_0x3dc8('0x7')]()[_0x3dc8('0x33')](_0x54bd56=>_0x54bd56['is'](_0x3dc8('0x6a')))[_0x3dc8('0x1d')](_0x2a3ae9=>_0x2a3ae9[_0x3dc8('0x31')]),_0x419fe2=this['_getSuggestionCoords'](_0xafe5a0),_0x168e84=_0x419fe2[_0x3dc8('0x1b')]-_0x419fe2['minRow']+0x1;if(_0x3dc8('0xa')==_0xafe5a0[_0x3dc8('0x11')])return _0x5cb27e[_0x3dc8('0x37')]?{'type':_0x3dc8('0xa'),'content':_0x134b22(_0x50c3c5,_0x3dc8('0x65'),_0x134b22(_0x50c3c5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x168e84,'\x22'+_0x5cb27e['join']('\x20')+'\x22']))}:{'type':_0x3dc8('0xa'),'content':_0x134b22(_0x50c3c5,'*Insert:*\x20%0',_0x134b22(_0x50c3c5,_0x3dc8('0x30'),_0x168e84))};if('deletion'==_0xafe5a0[_0x3dc8('0x11')])return _0x5cb27e[_0x3dc8('0x37')]?{'type':_0x3dc8('0xd'),'content':_0x134b22(_0x50c3c5,_0x3dc8('0x52'),_0x134b22(_0x50c3c5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x168e84,'\x22'+_0x5cb27e['join']('\x20')+'\x22']))}:{'type':_0x3dc8('0xd'),'content':_0x134b22(_0x50c3c5,'*Remove:*\x20%0',_0x134b22(_0x50c3c5,'ELEMENT_TABLE_ROW',_0x168e84))};}if(_0x3dc8('0x4f')==_0xafe5a0[_0x3dc8('0x3b')]){const _0xce670f=_0xafe5a0[_0x3dc8('0x7')]()[_0x3dc8('0x33')](_0x2db721=>_0x2db721['is'](_0x3dc8('0x6a')))[_0x3dc8('0x1d')](_0x5e7e42=>_0x5e7e42['data']),_0x27b685=this[_0x3dc8('0x2e')](_0xafe5a0),_0x397637=_0x27b685[_0x3dc8('0x7d')]-_0x27b685[_0x3dc8('0x7f')]+0x1;if('insertion'==_0xafe5a0[_0x3dc8('0x11')])return _0xce670f[_0x3dc8('0x37')]?{'type':_0x3dc8('0xa'),'content':_0x134b22(_0x50c3c5,_0x3dc8('0x65'),_0x134b22(_0x50c3c5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x397637,'\x22'+_0xce670f[_0x3dc8('0x19')]('\x20')+'\x22']))}:{'type':_0x3dc8('0xa'),'content':_0x134b22(_0x50c3c5,_0x3dc8('0x65'),_0x134b22(_0x50c3c5,'ELEMENT_TABLE_COLUMN',_0x397637))};if(_0x3dc8('0xd')==_0xafe5a0[_0x3dc8('0x11')])return _0xce670f[_0x3dc8('0x37')]?{'type':_0x3dc8('0xd'),'content':_0x134b22(_0x50c3c5,_0x3dc8('0x52'),_0x134b22(_0x50c3c5,_0x3dc8('0x81'),[_0x397637,'\x22'+_0xce670f[_0x3dc8('0x19')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x134b22(_0x50c3c5,_0x3dc8('0x52'),_0x134b22(_0x50c3c5,_0x3dc8('0x26'),_0x397637))};}}),_0x26d82e[_0x3dc8('0x82')][_0x3dc8('0x2c')](_0x3dc8('0xa'),'tableRow',_0x3dc8('0x5f'),_0x174236),_0x26d82e[_0x3dc8('0x82')][_0x3dc8('0x2c')](_0x3dc8('0xd'),'tableRow','accept',_0x174236),_0x26d82e['_suggestionFactory'][_0x3dc8('0x2c')](_0x3dc8('0xa'),_0x3dc8('0x4f'),_0x3dc8('0x5f'),_0x22e509),_0x26d82e[_0x3dc8('0x82')]['registerCustomCallback'](_0x3dc8('0xd'),_0x3dc8('0x4f'),_0x3dc8('0x61'),_0x22e509),_0x26d82e['_suggestionFactory'][_0x3dc8('0x2c')]('insertion','tableColumn','join',_0x39bc1b),_0x26d82e[_0x3dc8('0x82')]['registerCustomCallback'](_0x3dc8('0xd'),'tableColumn',_0x3dc8('0x19'),_0x39bc1b),_0x26d82e[_0x3dc8('0x82')][_0x3dc8('0x2c')](_0x3dc8('0xa'),'tableRow',_0x3dc8('0x19'),_0x3e3a4b),_0x26d82e[_0x3dc8('0x82')][_0x3dc8('0x2c')](_0x3dc8('0xd'),'tableRow',_0x3dc8('0x19'),_0x3e3a4b);}[_0x3dc8('0x49')](){const _0x5b5a51=this[_0x3dc8('0x57')],_0xf3a25e=_0x5b5a51[_0x3dc8('0x7e')][_0x3dc8('0x18')][_0x3dc8('0x70')];return(_0x328f4d,_0x75a507)=>{_0x5b5a51[_0x3dc8('0x7e')][_0x3dc8('0x4')](_0x18bede=>{const {commandName:_0x9c7807,commandParams:_0x23ae84}=_0x75a507;let _0x215a50=_0x328f4d[0x0][_0x3dc8('0x12')][_0x3dc8('0x66')];_0x23ae84&&_0x23ae84[0x0]&&!0x1===_0x23ae84[0x0]['forceValue']&&(_0x215a50=_0x328f4d[0x0][_0x3dc8('0x73')]['nodeAfter']);const _0x5976f6=_0x18bede['createRangeIn'](_0x215a50);if('$graveyard'==_0x5976f6[_0x3dc8('0x6e')][_0x3dc8('0x0')])return;const _0x4ea8aa=Array['from'](_0xf3a25e[_0x3dc8('0x1')]())[_0x3dc8('0x1d')](_0x4fd9dc=>_0x2f1e49[_0x3dc8('0x5')](_0x4fd9dc));_0x18bede[_0x3dc8('0x4b')](_0x5976f6),_0x5b5a51[_0x3dc8('0x63')][_0x3dc8('0x3e')](_0x9c7807)[_0x3dc8('0x71')](),_0x23ae84[_0x3dc8('0x45')]({'forceDefaultExecution':!0x0}),_0x5b5a51[_0x3dc8('0x21')](_0x9c7807,..._0x23ae84);const _0x15542f=_0x4ea8aa[_0x3dc8('0x33')](_0x510453=>_0x3dc8('0x60')!=_0x510453[_0x3dc8('0x6e')][_0x3dc8('0x0')]);_0x15542f['length']>0x0&&_0x18bede['setSelection'](_0x15542f);for(const _0x74b3d8 of _0x4ea8aa)_0x74b3d8[_0x3dc8('0x2b')]();});};}[_0x3dc8('0x35')](_0x35cd87){const _0x16eb78=this[_0x3dc8('0x57')][_0x3dc8('0x56')][_0x3dc8('0x3e')]('TableUtils');let _0x2573cb=Number[_0x3dc8('0x13')],_0x1e03a9=Number[_0x3dc8('0x75')],_0x33cddf=Number[_0x3dc8('0x13')],_0x5817eb=Number['MIN_SAFE_INTEGER'];for(const _0x35a843 of _0x35cd87){if(_0x3dc8('0x60')==_0x35a843['root'][_0x3dc8('0x0')])continue;const {row:_0x4e7cf2,column:_0x4a6fb4}=_0x16eb78[_0x3dc8('0x25')](_0x35a843),_0x9c68a=_0x35a843[_0x3dc8('0x79')](_0x3dc8('0x2'))?_0x35a843[_0x3dc8('0x1e')](_0x3dc8('0x2'))-0x1:0x0,_0xa8d9c7=_0x35a843[_0x3dc8('0x79')]('colspan')?_0x35a843[_0x3dc8('0x1e')](_0x3dc8('0x38'))-0x1:0x0;_0x2573cb=_0x4e7cf2<_0x2573cb?_0x4e7cf2:_0x2573cb,_0x1e03a9=_0x4e7cf2+_0x9c68a>_0x1e03a9?_0x4e7cf2+_0x9c68a:_0x1e03a9,_0x33cddf=_0x4a6fb4<_0x33cddf?_0x4a6fb4:_0x33cddf,_0x5817eb=_0x4a6fb4+_0xa8d9c7>_0x5817eb?_0x4a6fb4+_0xa8d9c7:_0x5817eb;}return{'minRow':_0x2573cb,'maxRow':_0x1e03a9,'minColumn':_0x33cddf,'maxColumn':_0x5817eb};}['_setupColumnsRowsFixing'](){const _0x4dcc88=this['editor'],_0x5dfcb8=_0x4dcc88[_0x3dc8('0x56')][_0x3dc8('0x3e')]('TrackChangesEditing'),_0x377911=_0x4dcc88['plugins'][_0x3dc8('0x3e')]('TableUtils');_0x4dcc88[_0x3dc8('0x7e')]['document']['on'](_0x3dc8('0x51'),()=>{const _0x4a6a1d=Array['from'](_0x4dcc88[_0x3dc8('0x7e')][_0x3dc8('0x18')][_0x3dc8('0x1f')][_0x3dc8('0xb')]());for(const {name:_0x42c104,data:_0x97f6bd}of _0x4a6a1d){const {group:_0x39ae86,id:_0x27653d,subType:_0x47fe3c}=_0x5dfcb8[_0x3dc8('0x4e')](_0x42c104);if(_0x3dc8('0x6b')!=_0x39ae86)continue;if(null!=_0x97f6bd[_0x3dc8('0x6d')])continue;const _0x18d081=_0x5dfcb8[_0x3dc8('0x50')](_0x27653d);this[_0x3dc8('0x41')]['includes'](_0x47fe3c)&&this[_0x3dc8('0x29')][_0x3dc8('0x54')](_0x18d081);}},{'priority':'low'});const _0x4d8344=(_0x147d4d,_0x488c63)=>{let _0x98a62b=!0x1;const _0xd08b91=_0x488c63[_0x3dc8('0x40')](_0x147d4d),_0x176e32=_0x147d4d[_0x3dc8('0x42')](_0x3dc8('0x80')),_0x4b5d1d=_0x377911['getCellLocation'](_0x147d4d);for(const _0x351e99 of this['_tableSuggestions']){const _0x5ca457=_0x351e99[_0x3dc8('0x3b')],_0x469a70=_0x5ca457[_0x3dc8('0x1a')](_0x3dc8('0x6f')),_0x51a29e=_0x5ca457[_0x3dc8('0xc')](_0x469a70?0xa:0x5),_0x3b3503=_0x51a29e[_0x3dc8('0x16')](),_0x55ded9=_0x3b3503[_0x3dc8('0xc')](0x0,0x3)+_0x3dc8('0x23'),_0x35415a=_0x3dc8('0x27')+_0x51a29e,_0x1f6b1e='max'+_0x51a29e;if(!_0x351e99[_0x3dc8('0x32')])continue;if(_0x176e32!=_0x351e99[_0x3dc8('0x76')]()[_0x3dc8('0x73')][_0x3dc8('0x42')](_0x3dc8('0x80')))continue;if(_0x351e99[_0x3dc8('0x6')](_0xd08b91))continue;const _0x56cbe4=_0x147d4d[_0x3dc8('0x79')](_0x55ded9)?_0x147d4d[_0x3dc8('0x1e')](_0x55ded9)-0x1:0x0,_0xae6662=this['_getSuggestionCoords'](_0x351e99),_0x66e614=_0xae6662[_0x35415a],_0xd9cae0=_0xae6662[_0x1f6b1e];_0x66e614<=_0x4b5d1d[_0x3b3503]&&_0x4b5d1d[_0x3b3503]+_0x56cbe4<=_0xd9cae0&&(_0x351e99['addRange'](_0xd08b91),_0x98a62b=!0x0);}return _0x98a62b;};_0x4dcc88[_0x3dc8('0x7e')]['document'][_0x3dc8('0x39')](_0x5ed74b=>{let _0x5b7ecf=!0x1;for(const _0x39f0f0 of _0x4dcc88[_0x3dc8('0x7e')][_0x3dc8('0x18')][_0x3dc8('0x1f')][_0x3dc8('0x14')]())if(_0x3dc8('0x7c')==_0x39f0f0[_0x3dc8('0x11')]){if(_0x3dc8('0x22')==_0x39f0f0['name'])for(const _0x49430c of _0x39f0f0['position'][_0x3dc8('0x34')][_0x3dc8('0x2f')]())_0x5b7ecf=_0x5b7ecf||_0x4d8344(_0x49430c,_0x5ed74b);else _0x3dc8('0x2a')==_0x39f0f0[_0x3dc8('0x4c')]&&(_0x5b7ecf=_0x5b7ecf||_0x4d8344(_0x39f0f0[_0x3dc8('0x17')][_0x3dc8('0x34')],_0x5ed74b));}return _0x5b7ecf;});}[_0x3dc8('0x2e')](_0x4d7ff7){return this[_0x3dc8('0x35')](_0x4d7ff7[_0x3dc8('0x1')]()['map'](_0x5291dd=>_0x5291dd[_0x3dc8('0x73')][_0x3dc8('0x34')]));}}function se(_0x45d3f8){return Array['from'](new Set(_0x45d3f8)['values']());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x524f=['requires','editor','toggleTableCaption','get','afterInit','plugins','has','TrackChangesEditing','enableCommand'];(function(_0x55a9ed,_0x524f4a){const _0x5b4b23=function(_0x368907){while(--_0x368907){_0x55a9ed['push'](_0x55a9ed['shift']());}};_0x5b4b23(++_0x524f4a);}(_0x524f,0x1cc));const _0x5b4b=function(_0x55a9ed,_0x524f4a){_0x55a9ed=_0x55a9ed-0x0;let _0x5b4b23=_0x524f[_0x55a9ed];return _0x5b4b23;};import{Plugin as _0x21ec41}from'ckeditor5/src/core';import _0x2ee374 from'./table';export default class At extends _0x21ec41{static get[_0x5b4b('0x8')](){return[_0x2ee374];}[_0x5b4b('0x3')](){const _0x2dbce9=this[_0x5b4b('0x0')];if(!_0x2dbce9[_0x5b4b('0x4')][_0x5b4b('0x5')]('TableCaptionEditing'))return;_0x2dbce9['plugins'][_0x5b4b('0x2')](_0x5b4b('0x6'))[_0x5b4b('0x7')](_0x5b4b('0x1'));}}
|