@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231016.0 → 0.0.0-nightly-20231018.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 _0x14cf=['format','listReversed','TrackChangesEditing','_getTranslationKeyForListStyle','getLastPosition','_getSuggestionBlocks','getSelectedBlocks','getAttribute','handleListStartCommand','model','ListUtils','_getSuggestionBlocksForListStyle','*Format:*\x20set\x20order\x20to\x20regular','element','type','markMultiRangeBlockFormat','*Format:*\x20set\x20order\x20to\x20reversed','getSiblingNodes','commandName','plugins','filter','registerDescriptionCallback','ListPropertiesEditing','length','listType','flat','replace','handleListStyleCommand','commandParams','reversed','afterInit','enableCommand','unshift','createPositionAt','getFirstPosition','backward','from','bind','listItem','locale','startIndex','editor','listStart','handleDescriptions','has','map','document','_LIST_','getListTypeFromListStyleType','get','selection','numbered','parent','createRange','change','toUpperCase','*Change\x20to:*\x20%0','listStyle','*Format:*\x20set\x20start\x20index\x20to\x20%0','handleListReversedCommand','forward','push'];(function(_0x49f0d4,_0x14cfd9){const _0x8e609a=function(_0xa32674){while(--_0xa32674){_0x49f0d4['push'](_0x49f0d4['shift']());}};_0x8e609a(++_0x14cfd9);}(_0x14cf,0x19a));const _0x8e60=function(_0x49f0d4,_0x14cfd9){_0x49f0d4=_0x49f0d4-0x0;let _0x8e609a=_0x14cf[_0x49f0d4];return _0x8e609a;};import{Plugin as _0x5db182}from'ckeditor5/src/core';import{getTranslation as _0x2c3e82}from'../utils/common-translations';export default class ot extends _0x5db182{[_0x8e60('0x36')](){if(!this[_0x8e60('0x3')][_0x8e60('0x2b')][_0x8e60('0x6')](_0x8e60('0x2e')))return;const _0x5a9624=this[_0x8e60('0x3')]['config'][_0x8e60('0xb')]('list.properties'),_0x2b14d0=this['editor']['plugins'][_0x8e60('0xb')]('TrackChangesEditing');_0x5a9624['styles']&&_0x2b14d0['enableCommand'](_0x8e60('0x13'),this[_0x8e60('0x33')][_0x8e60('0x3d')](this)),_0x5a9624[_0x8e60('0x35')]&&_0x2b14d0[_0x8e60('0x37')]('listReversed',this[_0x8e60('0x15')]['bind'](this)),_0x5a9624[_0x8e60('0x2')]&&_0x2b14d0[_0x8e60('0x37')]('listStart',this[_0x8e60('0x20')][_0x8e60('0x3d')](this)),_0x2b14d0['_descriptionFactory'][_0x8e60('0x2d')](this[_0x8e60('0x5')][_0x8e60('0x3d')](this));}['handleListStyleCommand'](_0x276068,_0x2243aa={}){const _0x3af4fe=this[_0x8e60('0x3')][_0x8e60('0x2b')][_0x8e60('0xb')](_0x8e60('0x1a')),_0x5a0870=this[_0x8e60('0x23')]();this[_0x8e60('0x3')][_0x8e60('0x21')]['change'](()=>{_0x3af4fe[_0x8e60('0x27')](_0x5a0870,{'commandName':'listStyle','commandParams':[{'type':_0x2243aa[_0x8e60('0x26')]}],'formatGroupId':_0x8e60('0x13')});});}[_0x8e60('0x15')](_0x44d97b,_0x363321={}){const _0x53e885=this[_0x8e60('0x3')][_0x8e60('0x2b')][_0x8e60('0xb')](_0x8e60('0x1a')),_0x495fc0=this['_getSuggestionBlocks'](_0x71a032=>_0x71a032['is'](_0x8e60('0x25'),_0x8e60('0x0'))&&_0x8e60('0xd')===_0x71a032[_0x8e60('0x1f')](_0x8e60('0x30')));if(_0x495fc0[_0x8e60('0x2f')]<0x1)return;const _0x227648=_0x495fc0[_0x8e60('0x7')](_0x7c0c17=>this[_0x8e60('0x3')][_0x8e60('0x21')][_0x8e60('0xf')](this[_0x8e60('0x3')][_0x8e60('0x21')][_0x8e60('0x39')](_0x7c0c17,'before'),this['editor'][_0x8e60('0x21')][_0x8e60('0x39')](_0x7c0c17,0x0)));this[_0x8e60('0x3')][_0x8e60('0x21')][_0x8e60('0x10')](()=>{_0x53e885[_0x8e60('0x27')](_0x227648,{'commandName':_0x8e60('0x19'),'commandParams':[{'reversed':_0x363321[_0x8e60('0x35')]}],'formatGroupId':_0x8e60('0x19')});});}[_0x8e60('0x20')](_0x47aff3,_0x27edf9={}){const _0x2da55b=this[_0x8e60('0x3')][_0x8e60('0x2b')][_0x8e60('0xb')](_0x8e60('0x1a')),_0x23e84c=this['_getSuggestionBlocks'](_0xc45399=>_0xc45399['is']('element','listItem')&&'numbered'===_0xc45399[_0x8e60('0x1f')](_0x8e60('0x30')));if(_0x23e84c[_0x8e60('0x2f')]<0x1)return;const _0x55fdd8=_0x23e84c[_0x8e60('0x7')](_0x66495b=>this['editor']['model']['createRange'](this['editor'][_0x8e60('0x21')][_0x8e60('0x39')](_0x66495b,'before'),this[_0x8e60('0x3')]['model'][_0x8e60('0x39')](_0x66495b,0x0)));this[_0x8e60('0x3')]['model'][_0x8e60('0x10')](()=>{_0x2da55b[_0x8e60('0x27')](_0x55fdd8,{'commandName':_0x8e60('0x4'),'commandParams':[{'startIndex':_0x27edf9[_0x8e60('0x2')]}],'formatGroupId':_0x8e60('0x4')});});}['handleDescriptions'](_0x33a808){const _0x248c1d=this[_0x8e60('0x3')][_0x8e60('0x1')],{data:_0x1d436b}=_0x33a808;if(!_0x1d436b)return;let _0x3ed777,_0x4e3d51;switch(_0x1d436b[_0x8e60('0x2a')]){case _0x8e60('0x13'):_0x3ed777=_0x8e60('0x12'),_0x4e3d51={'type':_0x8e60('0x18'),'content':_0x2c3e82(_0x248c1d,_0x3ed777,_0x2c3e82(_0x248c1d,this[_0x8e60('0x1b')](_0x1d436b[_0x8e60('0x34')][0x0][_0x8e60('0x26')])))};break;case _0x8e60('0x19'):_0x3ed777=_0x1d436b[_0x8e60('0x34')][0x0][_0x8e60('0x35')]?_0x8e60('0x28'):_0x8e60('0x24'),_0x4e3d51={'type':_0x8e60('0x18'),'content':_0x2c3e82(_0x248c1d,_0x3ed777)};break;case'listStart':_0x3ed777=_0x8e60('0x14'),_0x4e3d51={'type':_0x8e60('0x18'),'content':_0x2c3e82(_0x248c1d,_0x3ed777,_0x1d436b[_0x8e60('0x34')][0x0][_0x8e60('0x2')])};}return _0x4e3d51;}[_0x8e60('0x23')](){var _0x1cf5d7,_0x160ec2,_0x1c6004,_0x4a1941;const _0x3482b8=this['editor'][_0x8e60('0x2b')][_0x8e60('0xb')](_0x8e60('0x22'));let _0x48ffcf=Array[_0x8e60('0x3c')](this['editor'][_0x8e60('0x21')]['document'][_0x8e60('0xc')][_0x8e60('0x1e')]());return(null===(_0x1cf5d7=_0x48ffcf[0x0])||void 0x0===_0x1cf5d7?void 0x0:_0x1cf5d7['is'](_0x8e60('0x25'),_0x8e60('0x0')))&&_0x48ffcf[_0x8e60('0x38')](..._0x3482b8[_0x8e60('0x29')](this[_0x8e60('0x3')]['model'][_0x8e60('0x8')][_0x8e60('0xc')]['getFirstPosition'](),_0x8e60('0x3b'))),(null===(_0x160ec2=_0x48ffcf[_0x48ffcf[_0x8e60('0x2f')]-0x1])||void 0x0===_0x160ec2?void 0x0:_0x160ec2['is'](_0x8e60('0x25'),_0x8e60('0x0')))&&_0x48ffcf[_0x8e60('0x17')](..._0x3482b8[_0x8e60('0x29')](this[_0x8e60('0x3')][_0x8e60('0x21')]['document']['selection'][_0x8e60('0x1c')](),_0x8e60('0x16'))),_0x48ffcf=[...new Set(_0x48ffcf)],(null===(_0x4a1941=null===(_0x1c6004=this['editor'][_0x8e60('0x21')][_0x8e60('0x8')][_0x8e60('0xc')][_0x8e60('0x3a')]())||void 0x0===_0x1c6004?void 0x0:_0x1c6004[_0x8e60('0xe')])||void 0x0===_0x4a1941?void 0x0:_0x4a1941['is'](_0x8e60('0x25'),_0x8e60('0x0')))&&(_0x48ffcf=_0x48ffcf[_0x8e60('0x2c')](_0x3c0cb1=>_0x3c0cb1['is'](_0x8e60('0x25'),_0x8e60('0x0')))),_0x48ffcf;}[_0x8e60('0x1d')](_0x4a58fc){const _0x4931ef=this[_0x8e60('0x3')][_0x8e60('0x2b')][_0x8e60('0xb')](_0x8e60('0x22'));let _0x19cd16=Array[_0x8e60('0x3c')](this[_0x8e60('0x3')]['model'][_0x8e60('0x8')][_0x8e60('0xc')]['getSelectedBlocks']())[_0x8e60('0x2c')](_0x4a58fc)[_0x8e60('0x7')](_0x27edc1=>{const _0x1d59f5=this[_0x8e60('0x3')]['model'][_0x8e60('0x39')](_0x27edc1,0x0);return[..._0x4931ef[_0x8e60('0x29')](_0x1d59f5,'backward'),..._0x4931ef['getSiblingNodes'](_0x1d59f5,_0x8e60('0x16'))];})[_0x8e60('0x31')]();return _0x19cd16=[...new Set(_0x19cd16)],_0x19cd16;}[_0x8e60('0x1b')](_0x5a1d27){return'ELEMENT_'+this[_0x8e60('0x3')][_0x8e60('0x2b')][_0x8e60('0xb')](_0x8e60('0x22'))[_0x8e60('0xa')](_0x5a1d27)[_0x8e60('0x11')]()+_0x8e60('0x9')+_0x5a1d27[_0x8e60('0x11')]()[_0x8e60('0x32')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ac8=['plugins','elementToElement','TrackChangesEditing','MediaEmbedEditing','has','media','for','registerElementLabel','mediaEmbed','enableCommand','high','downcastDispatcher','ELEMENT_MEDIA','div','editor','showSuggestionHighlights','attribute:url:media','get','locale'];(function(_0x30c06f,_0x2ac8df){const _0x57dead=function(_0x2dfd1a){while(--_0x2dfd1a){_0x30c06f['push'](_0x30c06f['shift']());}};_0x57dead(++_0x2ac8df);}(_0x2ac8,0x130));const _0x57de=function(_0x30c06f,_0x2ac8df){_0x30c06f=_0x30c06f-0x0;let _0x57dead=_0x2ac8[_0x30c06f];return _0x57dead;};import{Plugin as _0x105111}from'ckeditor5/src/core';import{getTranslation as _0x36ae58}from'../utils/common-translations';export default class rt extends _0x105111{['afterInit'](){const _0x2af69a=this[_0x57de('0xe')];if(!_0x2af69a[_0x57de('0x0')][_0x57de('0x4')](_0x57de('0x3')))return;const _0x317cd0=_0x2af69a[_0x57de('0x0')][_0x57de('0x11')](_0x57de('0x2')),_0x1db363=_0x2af69a[_0x57de('0x12')];_0x317cd0[_0x57de('0x9')](_0x57de('0x8')),_0x317cd0['_descriptionFactory'][_0x57de('0x7')](_0x57de('0x5'),_0xafdb41=>_0x36ae58(_0x1db363,_0x57de('0xc'),_0xafdb41)),_0x2af69a['conversion'][_0x57de('0x6')]('dataDowncast')[_0x57de('0x1')]({'model':_0x57de('0x5'),'view':(_0x574202,{writer:_0x54b114,options:_0x5788ee})=>{if(_0x5788ee[_0x57de('0xf')])return _0x54b114['createEmptyElement'](_0x57de('0xd'));},'converterPriority':_0x57de('0xa')}),_0x2af69a['data'][_0x57de('0xb')]['on'](_0x57de('0x10'),(_0x57f75f,_0x535aae,_0x3b3a9d)=>{_0x3b3a9d['options'][_0x57de('0xf')]&&_0x57f75f['stop']();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe7b6=['mention','TrackChangesEditing','plugins','MentionEditing','editor'];(function(_0xf79611,_0xe7b6ad){const _0xe74a77=function(_0x15a9b3){while(--_0x15a9b3){_0xf79611['push'](_0xf79611['shift']());}};_0xe74a77(++_0xe7b6ad);}(_0xe7b6,0xa5));const _0xe74a=function(_0xf79611,_0xe7b6ad){_0xf79611=_0xf79611-0x0;let _0xe74a77=_0xe7b6[_0xf79611];return _0xe74a77;};import{Plugin as _0x203cf7}from'ckeditor5/src/core';export default class at extends _0x203cf7{['afterInit'](){const _0x3887a5=this[_0xe74a('0x4')];_0x3887a5[_0xe74a('0x2')]['has'](_0xe74a('0x3'))&&_0x3887a5[_0xe74a('0x2')]['get'](_0xe74a('0x1'))['enableCommand'](_0xe74a('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5098=['afterInit','_descriptionFactory','ELEMENT_PAGE_BREAK','PageBreakEditing','get','editor','plugins','enableCommand','locale','TrackChangesEditing','registerElementLabel'];(function(_0x423c27,_0x509822){const _0x281169=function(_0x3de306){while(--_0x3de306){_0x423c27['push'](_0x423c27['shift']());}};_0x281169(++_0x509822);}(_0x5098,0x17a));const _0x2811=function(_0x423c27,_0x509822){_0x423c27=_0x423c27-0x0;let _0x281169=_0x5098[_0x423c27];return _0x281169;};import{Plugin as _0x52ce4b}from'ckeditor5/src/core';import{getTranslation as _0x578c08}from'../utils/common-translations';export default class ct extends _0x52ce4b{[_0x2811('0x7')](){const _0x6b1c68=this[_0x2811('0x1')];if(!_0x6b1c68['plugins']['has'](_0x2811('0xa')))return;_0x6b1c68[_0x2811('0x2')]['get'](_0x2811('0x5'))[_0x2811('0x3')]('pageBreak');const _0x191884=_0x6b1c68[_0x2811('0x2')][_0x2811('0x0')](_0x2811('0x5')),_0x2ab856=_0x6b1c68[_0x2811('0x4')];_0x191884[_0x2811('0x8')][_0x2811('0x6')]('pageBreak',_0x15e320=>_0x578c08(_0x2ab856,_0x2811('0x9'),_0x15e320));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x166d=['get','document','consume','insertParagraph','enableCommand','parent','createUIElement','addMarker:suggestion:insertion','checkChild','type','span','Paragraph','selection','$text','bindElementToMarker','paragraph','end','_descriptionFactory','change','schema','*Change\x20to:*\x20%0','model','consumable','toViewPosition','isTouching','registerElementLabel','getItemLabel','filter','has','locale','isObject','options','showSuggestionHighlights','writer','isBlock','ck-suggestion-marker--active','afterInit','markBlockFormat','nodeAfter','ELEMENT_PARAGRAPH','markerName','insertion','TrackChangesEditing','editor','highest','getFirstRange','plugins','commandName','mapper','isLimit','blockName','*Insert:*\x20%0','markerRange','from','addClass'];(function(_0x421c16,_0x166dae){const _0x4b7dbb=function(_0x46907b){while(--_0x46907b){_0x421c16['push'](_0x421c16['shift']());}};_0x4b7dbb(++_0x166dae);}(_0x166d,0x179));const _0x4b7d=function(_0x421c16,_0x166dae){_0x421c16=_0x421c16-0x0;let _0x4b7dbb=_0x166d[_0x421c16];return _0x4b7dbb;};import{Plugin as _0x123943}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x7d4b2e}from'./utils';import{getTranslation as _0x2860e4}from'../utils/common-translations';export default class ht extends _0x123943{[_0x4b7d('0x2c')](){const _0x2957f3=this[_0x4b7d('0x33')];if(!_0x2957f3[_0x4b7d('0x36')][_0x4b7d('0x24')](_0x4b7d('0x13')))return;const _0x89ddfc=_0x2957f3[_0x4b7d('0x25')],_0x36a57b=_0x2957f3[_0x4b7d('0x36')][_0x4b7d('0x8')](_0x4b7d('0x32'));_0x36a57b[_0x4b7d('0x19')][_0x4b7d('0x21')]('paragraph',_0x125fd2=>_0x2860e4(_0x89ddfc,_0x4b7d('0x2f'),_0x125fd2)),_0x36a57b['enableCommand'](_0x4b7d('0x17'),(_0x53bcfb,_0x5d5b23={})=>{const _0x13e426=_0x2957f3[_0x4b7d('0x1d')][_0x4b7d('0x9')],_0xaa8a35=_0x5d5b23[_0x4b7d('0x14')]||_0x13e426[_0x4b7d('0x14')],_0x5c3c58=Array[_0x4b7d('0x6')](_0xaa8a35['getSelectedBlocks']())[_0x4b7d('0x23')](_0x5171d5=>function(_0x429d33,_0xfe76bb){return _0xfe76bb[_0x4b7d('0x10')](_0x429d33[_0x4b7d('0xd')],_0x4b7d('0x17'))&&!_0xfe76bb[_0x4b7d('0x26')](_0x429d33)&&_0x4b7d('0x17')!=_0x429d33['name'];}(_0x5171d5,this[_0x4b7d('0x33')][_0x4b7d('0x1d')]['schema']));_0x2957f3[_0x4b7d('0x1d')][_0x4b7d('0x1a')](()=>{for(const _0x37a47b of _0x5c3c58)_0x36a57b[_0x4b7d('0x2d')](_0x37a47b,{'commandName':_0x4b7d('0x17'),'commandParams':[],'formatGroupId':_0x4b7d('0x3')},_0x7d4b2e(_0x37a47b));});}),_0x36a57b['_descriptionFactory']['registerDescriptionCallback'](_0x47e1e3=>{const {data:_0x25e239}=_0x47e1e3;if(_0x25e239&&_0x4b7d('0x17')==_0x25e239[_0x4b7d('0x0')])return{'type':'format','content':_0x2860e4(_0x89ddfc,_0x4b7d('0x1c'),_0x2860e4(_0x89ddfc,_0x4b7d('0x2f')))};}),_0x36a57b[_0x4b7d('0xc')](_0x4b7d('0xb')),_0x2957f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ar(_0x2957f3),{'priority':_0x4b7d('0x34')}),_0x2957f3['data']['downcastDispatcher']['on'](_0x4b7d('0xf'),(_0x25d0ab,_0x35bb9a,_0x47b13a)=>{_0x47b13a[_0x4b7d('0x27')][_0x4b7d('0x28')]&&ar(_0x2957f3,{'showActiveMarker':!0x1})(_0x25d0ab,_0x35bb9a,_0x47b13a);},{'priority':_0x4b7d('0x34')});const _0x38fb35=_0x36a57b[_0x4b7d('0x19')];_0x38fb35['registerDescriptionCallback'](_0x255b8a=>{if(_0x4b7d('0x31')!==_0x255b8a[_0x4b7d('0x11')])return;const {start:_0x1668f1,end:_0x4e8ac9}=_0x255b8a[_0x4b7d('0x35')]();if(!_0x1668f1['isTouching'](_0x4e8ac9)||!_0x1668f1[_0x4b7d('0x2e')])return;const _0x18acaa=_0x2957f3[_0x4b7d('0x1d')][_0x4b7d('0x1b')],_0x2c2fb9=_0x1668f1[_0x4b7d('0x2e')];return _0x18acaa[_0x4b7d('0x2a')](_0x2c2fb9)&&!_0x18acaa[_0x4b7d('0x2')](_0x2c2fb9)&&_0x18acaa['checkChild'](_0x2c2fb9,_0x4b7d('0x15'))?{'type':_0x4b7d('0x31'),'content':_0x2860e4(_0x89ddfc,_0x4b7d('0x4'),_0x38fb35[_0x4b7d('0x22')](_0x2c2fb9,0x1))}:void 0x0;});}}function ar(_0x17f012,{showActiveMarker:_0x584c12=!0x0}={}){return(_0x4779de,_0x25160b,_0x3f322e)=>{const _0x51389e=_0x17f012['plugins'][_0x4b7d('0x8')](_0x4b7d('0x32')),_0x2f853f=_0x25160b[_0x4b7d('0x5')]['start'],_0x56fe50=_0x25160b['markerRange'][_0x4b7d('0x18')],_0x2d3419=_0x17f012[_0x4b7d('0x1d')][_0x4b7d('0x1b')];if(!_0x2f853f[_0x4b7d('0x20')](_0x56fe50)||!_0x2f853f['nodeAfter'])return;const _0x14a6b8=_0x2f853f['nodeAfter'];if(_0x2d3419[_0x4b7d('0x2a')](_0x14a6b8)&&!_0x2d3419[_0x4b7d('0x2')](_0x14a6b8)&&_0x2d3419['checkChild'](_0x14a6b8,'$text')){if(!_0x3f322e[_0x4b7d('0x1e')][_0x4b7d('0xa')](_0x25160b[_0x4b7d('0x5')],_0x4779de['name']))return;const _0x168184=_0x3f322e[_0x4b7d('0x29')][_0x4b7d('0xe')](_0x4b7d('0x12'),{'class':'ck-suggestion-marker-split'}),_0x5a0093=_0x3f322e[_0x4b7d('0x1')][_0x4b7d('0x1f')](_0x56fe50);_0x584c12&&_0x51389e['activeMarkers']['includes'](_0x25160b[_0x4b7d('0x30')])&&_0x3f322e[_0x4b7d('0x29')][_0x4b7d('0x7')](_0x4b7d('0x2b'),_0x168184),_0x3f322e[_0x4b7d('0x29')]['insert'](_0x5a0093,_0x168184),_0x3f322e['mapper'][_0x4b7d('0x16')](_0x168184,_0x25160b['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b3f=['RemoveFormatEditing','getAttributeProperties','_descriptionFactory','enableCommand','*Remove\x20all\x20formatting*','removeFormat','has','afterInit','plugins','TrackChangesEditing','markInlineFormat','isCollapsed','commandName','schema','getAttributes','document','createRangeOn','registerDescriptionCallback','locale','selection','model','editor','from'];(function(_0x5c7202,_0x4b3fe6){const _0x3dafa6=function(_0x3aa29f){while(--_0x3aa29f){_0x5c7202['push'](_0x5c7202['shift']());}};_0x3dafa6(++_0x4b3fe6);}(_0x4b3f,0x1e8));const _0x3daf=function(_0x5c7202,_0x4b3fe6){_0x5c7202=_0x5c7202-0x0;let _0x3dafa6=_0x4b3f[_0x5c7202];return _0x3dafa6;};import{Plugin as _0x84732d}from'ckeditor5/src/core';import{getTranslation as _0x46268f}from'../utils/common-translations';export default class ut extends _0x84732d{[_0x3daf('0x2')](){const _0x3cb59f=this[_0x3daf('0x10')];if(!_0x3cb59f[_0x3daf('0x3')][_0x3daf('0x1')](_0x3daf('0x12')))return;const _0x5866e4=_0x3cb59f[_0x3daf('0x3')]['get'](_0x3daf('0x4'));_0x5866e4[_0x3daf('0x15')](_0x3daf('0x0'),_0x11f355=>{const _0x2a220e=_0x3cb59f[_0x3daf('0xf')][_0x3daf('0xa')][_0x3daf('0xe')];_0x2a220e[_0x3daf('0x6')]?_0x11f355():_0x3cb59f['model']['change'](()=>{const _0x2355f6=Array[_0x3daf('0x11')](_0x2a220e['getRanges']());for(const _0x3ddaa8 of _0x2355f6)for(const _0x40d531 of _0x3ddaa8['getItems']())mo(_0x40d531,_0x3cb59f[_0x3daf('0xf')][_0x3daf('0x8')])&&_0x5866e4[_0x3daf('0x5')](_0x3cb59f[_0x3daf('0xf')][_0x3daf('0xb')](_0x40d531),{'commandName':_0x3daf('0x0'),'commandParams':[]});});}),_0x5866e4[_0x3daf('0x14')][_0x3daf('0xc')](_0x425b43=>{const {data:_0x4b189f}=_0x425b43;if(_0x4b189f&&_0x3daf('0x0')==_0x4b189f[_0x3daf('0x7')])return{'type':'format','content':_0x46268f(_0x3cb59f[_0x3daf('0xd')],_0x3daf('0x16'))};});}}function mo(_0x247c85,_0x56d5af){for(const [_0x5a962f]of _0x247c85[_0x3daf('0x9')]()){const _0x555af7=_0x56d5af[_0x3daf('0x13')](_0x5a962f);if(_0x555af7&&_0x555af7['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2721=['acceptAllSuggestions','acceptSelectedSuggestions','get','has','goToNextRestrictedEditingException','TrackChangesEditing','discardSuggestion','enableCommand','RestrictedEditingModeEditing','plugins','discardAllSuggestions','discardSelectedSuggestions'];(function(_0x568542,_0x272182){const _0x49a310=function(_0x17c6d8){while(--_0x17c6d8){_0x568542['push'](_0x568542['shift']());}};_0x49a310(++_0x272182);}(_0x2721,0x1cf));const _0x49a3=function(_0x568542,_0x272182){_0x568542=_0x568542-0x0;let _0x49a310=_0x2721[_0x568542];return _0x49a310;};import{Plugin as _0x2bb663}from'ckeditor5/src/core';export default class ft extends _0x2bb663{['afterInit'](){const _0x44f9df=this['editor'];if(!_0x44f9df[_0x49a3('0x2')][_0x49a3('0x8')](_0x49a3('0x1')))return;const _0xec4ff9=_0x44f9df[_0x49a3('0x2')][_0x49a3('0x7')](_0x49a3('0xa'));_0xec4ff9[_0x49a3('0x0')]('goToPreviousRestrictedEditingException'),_0xec4ff9['enableCommand'](_0x49a3('0x9'));const _0x400691=_0x44f9df[_0x49a3('0x2')][_0x49a3('0x7')](_0x49a3('0x1'));_0x400691[_0x49a3('0x0')]('trackChanges'),_0x400691['enableCommand']('acceptSuggestion'),_0x400691[_0x49a3('0x0')](_0x49a3('0xb')),_0x400691['enableCommand'](_0x49a3('0x5')),_0x400691['enableCommand'](_0x49a3('0x3')),_0x400691[_0x49a3('0x0')](_0x49a3('0x6')),_0x400691['enableCommand'](_0x49a3('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4feb=['get','split','locale','createPositionBefore','init','shiftEnter','addMarker:suggestion','ELEMENT_LINE_BREAK','editing','showSuggestionHighlights','softBreak','addMarker:suggestion:insertion','consumable','deletion','element','includes','ck-suggestion-marker--active','downcastDispatcher','markerName','test','toViewPosition','bindElementToMarker','activeMarkers','high','addMarker:suggestion:deletion','enableCommand','writer','markerRange','insert','name','mapper','plugins','requires','options','createUIElement','_descriptionFactory','merge','ck-suggestion-marker-','TrackChangesEditing'];(function(_0xa174ca,_0x4feb16){const _0x3f16cb=function(_0x148c78){while(--_0x148c78){_0xa174ca['push'](_0xa174ca['shift']());}};_0x3f16cb(++_0x4feb16);}(_0x4feb,0x8e));const _0x3f16=function(_0xa174ca,_0x4feb16){_0xa174ca=_0xa174ca-0x0;let _0x3f16cb=_0x4feb[_0xa174ca];return _0x3f16cb;};import{Plugin as _0x26f8d9}from'ckeditor5/src/core';import{ShiftEnter as _0x3e3eee}from'ckeditor5/src/enter';import{getTranslation as _0x110192}from'../utils/common-translations';export default class lt extends _0x26f8d9{static get[_0x3f16('0x7')](){return[_0x3e3eee];}[_0x3f16('0x12')](){const _0x3ae59d=this['editor'],_0x4d50e7=_0x3ae59d[_0x3f16('0x6')][_0x3f16('0xe')](_0x3f16('0xd'));_0x4d50e7[_0x3f16('0x0')](_0x3f16('0x13')),_0x3ae59d[_0x3f16('0x16')][_0x3f16('0x1f')]['on'](_0x3f16('0x19'),re(_0x3ae59d),{'priority':_0x3f16('0x25')}),_0x3ae59d['editing']['downcastDispatcher']['on'](_0x3f16('0x26'),re(_0x3ae59d),{'priority':_0x3f16('0x25')}),_0x3ae59d['data'][_0x3f16('0x1f')]['on'](_0x3f16('0x14'),(_0x287c37,_0x4b335d,_0x363f0e)=>{_0x363f0e[_0x3f16('0x8')][_0x3f16('0x17')]&&re(_0x3ae59d,{'showActiveMarker':!0x1})(_0x287c37,_0x4b335d,_0x363f0e);}),_0x4d50e7[_0x3f16('0xa')]['registerElementLabel'](_0x3f16('0x18'),_0x113575=>_0x110192(_0x3ae59d[_0x3f16('0x10')],_0x3f16('0x15'),_0x113575));}}function re(_0x6e93e2,{showActiveMarker:_0x324c8c=!0x0}={}){return(_0x2a7023,_0x373629,_0x396627)=>{const _0x4eb3a1=_0x6e93e2[_0x3f16('0x6')][_0x3f16('0xe')](_0x3f16('0xd'));if(!_0x396627[_0x3f16('0x1a')][_0x3f16('0x21')](_0x373629[_0x3f16('0x2')],_0x2a7023[_0x3f16('0x4')]))return;const _0x10c19a=_0x6e93e2['model'];for(const _0xa1a942 of _0x373629[_0x3f16('0x2')]['getItems']()){if(!_0xa1a942['is'](_0x3f16('0x1c'),_0x3f16('0x18')))continue;const _0x47f4cd=_0x3f16('0x1b')==_0x373629[_0x3f16('0x20')][_0x3f16('0xf')](':')[0x1]?_0x3f16('0xb'):_0x3f16('0xf'),_0x4753d1=_0x396627[_0x3f16('0x1')][_0x3f16('0x9')]('span',{'class':_0x3f16('0xc')+_0x47f4cd}),_0x25bbd4=_0x396627['mapper'][_0x3f16('0x22')](_0x10c19a[_0x3f16('0x11')](_0xa1a942));_0x324c8c&&_0x4eb3a1[_0x3f16('0x24')][_0x3f16('0x1d')](_0x373629[_0x3f16('0x20')])&&_0x396627[_0x3f16('0x1')]['addClass'](_0x3f16('0x1e'),_0x4753d1),_0x396627[_0x3f16('0x1')][_0x3f16('0x3')](_0x25bbd4,_0x4753d1),_0x396627[_0x3f16('0x5')][_0x3f16('0x23')](_0x4753d1,_0x373629[_0x3f16('0x20')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15d9=['locale','format','forceValue','TrackChangesEditing','StandardEditingModeEditing','FORMAT_RESTRICTED_ENABLED','restrictedEditingException','_descriptionFactory','commands','has','enableCommand','editor','getRanges','change','isCollapsed','commandName','afterInit','registerDescriptionCallback','get','markInlineFormat','commandParams','document','selection','FORMAT_RESTRICTED_DISABLED'];(function(_0x53eee1,_0x15d95f){const _0x45ea0a=function(_0xadf14a){while(--_0xadf14a){_0x53eee1['push'](_0x53eee1['shift']());}};_0x45ea0a(++_0x15d95f);}(_0x15d9,0x1c4));const _0x45ea=function(_0x53eee1,_0x15d95f){_0x53eee1=_0x53eee1-0x0;let _0x45ea0a=_0x15d9[_0x53eee1];return _0x45ea0a;};import{Plugin as _0x3ba9f7}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x443d8d}from'./utils';import{getTranslation as _0x2393c3}from'../utils/common-translations';export default class gt extends _0x3ba9f7{[_0x45ea('0x14')](){const _0x2d1435=this[_0x45ea('0xf')],_0x40f795=_0x2d1435['model'],_0x334da7=_0x2d1435[_0x45ea('0x4')];if(!_0x2d1435['plugins'][_0x45ea('0xd')](_0x45ea('0x8')))return;const _0x31ab8c=_0x2d1435['plugins']['get'](_0x45ea('0x7')),_0xced9e4=_0x45ea('0xa'),_0x534126=_0x2d1435[_0x45ea('0xc')][_0x45ea('0x16')](_0xced9e4);_0x31ab8c[_0x45ea('0xe')](_0xced9e4,(_0x39daf6,_0x72a727={})=>{const _0x4e179d=_0x40f795[_0x45ea('0x1')][_0x45ea('0x2')];if(_0x4e179d[_0x45ea('0x12')])return void _0x39daf6(_0x72a727);const _0x26dade=void 0x0!==_0x72a727[_0x45ea('0x6')]?_0x72a727[_0x45ea('0x6')]:!_0x534126['value'];_0x40f795[_0x45ea('0x11')](()=>{const _0x8a0585=Array['from'](_0x4e179d[_0x45ea('0x10')]());for(const _0x1c04e9 of _0x8a0585){const _0x3dfb0e=_0x26dade?[_0x1c04e9]:_0x443d8d(_0xced9e4,_0x1c04e9,_0x40f795);for(const _0x118d43 of _0x3dfb0e)_0x31ab8c[_0x45ea('0x17')](_0x118d43,{'commandName':_0xced9e4,'commandParams':[{'forceValue':_0x26dade}]});}});}),_0x31ab8c[_0x45ea('0xb')][_0x45ea('0x15')](_0x5add96=>{const {data:_0x509db5}=_0x5add96;if(_0x509db5&&_0x509db5[_0x45ea('0x13')]==_0xced9e4)return _0x509db5[_0x45ea('0x0')][0x0][_0x45ea('0x6')]?{'type':_0x45ea('0x5'),'content':_0x2393c3(_0x334da7,_0x45ea('0x9'))}:{'type':'format','content':_0x2393c3(_0x334da7,_0x45ea('0x3'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x202c=['isBlock','includes','style:','Style','afterInit','change','enabledStyles','enableCommand','toLowerCase','*Remove\x20format:*\x20%0','push','plugins','style','block','value','markBlockFormat','model','getAttribute','get','*Format:*\x20%0','getItems','classes','StyleUtils','commandParams','TrackChangesEditing','config','forceValue','find','selection','createRangeOn','add','isCollapsed','_descriptionFactory','format','name','has','registerDescriptionCallback','locale','normalizeConfig','getAncestors','_getStyleDefinition','_getRangesWithClasses','markInlineFormat','editor','getSelectedBlocks','inline','document','element','DataSchema'];(function(_0x21ab4a,_0x202cb1){const _0x519ef6=function(_0x94534e){while(--_0x94534e){_0x21ab4a['push'](_0x21ab4a['shift']());}};_0x519ef6(++_0x202cb1);}(_0x202c,0xf1));const _0x519e=function(_0x21ab4a,_0x202cb1){_0x21ab4a=_0x21ab4a-0x0;let _0x519ef6=_0x202c[_0x21ab4a];return _0x519ef6;};import{Plugin as _0x4df54e}from'ckeditor5/src/core';import{getTranslation as _0x33b3ca}from'../utils/common-translations';export default class mt extends _0x4df54e{[_0x519e('0x8')](){const _0x1070c4=this[_0x519e('0x2f')];if(!_0x1070c4[_0x519e('0xf')][_0x519e('0x27')](_0x519e('0x7')))return;const _0x59c3d4=_0x1070c4['commands']['get']('style'),_0x249826=_0x1070c4['plugins']['get'](_0x519e('0x1c')),_0x50167f=_0x1070c4[_0x519e('0x29')],_0x3b5c4f=_0x1070c4[_0x519e('0xf')]['get'](_0x519e('0x3')),_0x900e7a=_0x1070c4[_0x519e('0xf')][_0x519e('0x16')](_0x519e('0x1a'))[_0x519e('0x2a')](_0x3b5c4f,_0x1070c4[_0x519e('0x1d')]['get']('style.definitions'));_0x249826[_0x519e('0xb')](_0x519e('0x10'),(_0x54813a,{styleName:_0xab7b3b})=>{const _0x3b6d8f=_0x1070c4[_0x519e('0x14')][_0x519e('0x1')][_0x519e('0x20')],_0x15a72e=this[_0x519e('0x2c')](_0xab7b3b,_0x900e7a);if(!_0x15a72e)return;if(!_0x59c3d4[_0x519e('0xa')][_0x519e('0x5')](_0xab7b3b))return;if(_0x3b6d8f[_0x519e('0x23')]&&!_0x15a72e[_0x519e('0x4')])return void _0x54813a({'styleName':_0xab7b3b});const _0x24b46a=!_0x59c3d4[_0x519e('0x12')][_0x519e('0x5')](_0x15a72e[_0x519e('0x26')]);if(_0x15a72e[_0x519e('0x4')]){const _0x56b788=function(_0x1ff611,_0x517c74){const _0x1f40b8=new Set();for(const _0x11c40e of _0x1ff611){const _0x475996=_0x11c40e[_0x519e('0x2b')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x59ea73 of _0x475996)if(_0x517c74[_0x519e('0x5')](_0x59ea73[_0x519e('0x26')])){_0x1f40b8[_0x519e('0x22')](_0x59ea73);break;}}return _0x1f40b8;}(_0x3b6d8f[_0x519e('0x30')](),_0x15a72e['modelElements']);_0x1070c4[_0x519e('0x14')]['change'](()=>{for(const _0x56b6f9 of _0x56b788)_0x249826[_0x519e('0x13')](_0x56b6f9,{'commandName':_0x519e('0x10'),'commandParams':[{'styleName':_0xab7b3b,'forceValue':_0x24b46a}],'formatGroupId':_0x519e('0x6')+_0xab7b3b});});}else{let _0x420b69=Array['from'](_0x3b6d8f['getRanges']());if(!_0x24b46a){const _0x468ece=Array['from'](_0x3b5c4f['getDefinitionsForView'](_0x15a72e[_0x519e('0x2')],!0x1))[0x0][_0x519e('0x14')],_0x4109dd=[];for(const _0x51b0df of _0x420b69){const _0x37ebff=this['_getRangesWithClasses'](_0x1070c4[_0x519e('0x14')],_0x51b0df,_0x15a72e[_0x519e('0x19')],_0x468ece);_0x4109dd['push'](..._0x37ebff);}_0x420b69=_0x4109dd;}_0x1070c4['model'][_0x519e('0x9')](()=>{for(const _0x5409fb of _0x420b69)_0x249826[_0x519e('0x2e')](_0x5409fb,{'commandName':_0x519e('0x10'),'commandParams':[{'styleName':_0xab7b3b,'forceValue':_0x24b46a}]});});}}),_0x249826[_0x519e('0x24')][_0x519e('0x28')](_0x484feb=>{const {data:_0x5e8cf3}=_0x484feb;if(_0x5e8cf3&&_0x519e('0x10')===_0x5e8cf3['commandName'])return _0x5e8cf3[_0x519e('0x1b')][0x0][_0x519e('0x1e')]?{'type':_0x519e('0x25'),'content':_0x33b3ca(_0x50167f,_0x519e('0x17'),_0x5e8cf3[_0x519e('0x1b')][0x0]['styleName'][_0x519e('0xc')]())}:{'type':'format','content':_0x33b3ca(_0x50167f,_0x519e('0xd'),_0x5e8cf3['commandParams'][0x0]['styleName'][_0x519e('0xc')]())};});}[_0x519e('0x2c')](_0x4fc27d,_0x50048){let _0x1757bb=_0x50048[_0x519e('0x11')][_0x519e('0x1f')](_0x5920ba=>_0x5920ba[_0x519e('0x26')]===_0x4fc27d);return _0x1757bb||(_0x1757bb=_0x50048[_0x519e('0x0')]['find'](_0x196ec2=>_0x196ec2[_0x519e('0x26')]===_0x4fc27d)),_0x1757bb;}[_0x519e('0x2d')](_0x30f149,_0x190588,_0x389939,_0x44fb95){const _0x52f3ea=[];for(const _0x315836 of _0x190588[_0x519e('0x18')]()){const _0x10a16e=_0x315836[_0x519e('0x15')](_0x44fb95);_0x10a16e&&(_0x389939['every'](_0x44445b=>_0x10a16e[_0x519e('0x19')]['includes'](_0x44445b))&&_0x52f3ea[_0x519e('0xe')](_0x30f149[_0x519e('0x21')](_0x315836)));}return _0x52f3ea;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xadfd=['ELEMENT_TABLE_COLUMN','colspan','*Insert:*\x20%0','_getCoordsForCells','oldRange','getColumnIndexes','getItems','element','end','toLowerCase','getFirstRange','get','selectTableColumn','removeClass','position','minColumn','add','locale','insert','_descriptionFactory','isTouching','maxColumn','createPositionAt','from','_suggestionFactory','includes','registerPostFixer','removeTableRow','removeTableColumn','length','*Remove:*\x20%0','document','discard','getCellLocation','item','ELEMENT_TABLE_COLUMN_WITH_TEXT','filter','editor','ELEMENT_TABLE_ROW','last','type','_tableSuggestions','nodeBefore','maxRow','isEqual','substr','rowspan','selectTableRow','plugins','name','markMultiRangeInsertion','change:data','order','ELEMENT_TABLE_ROW_WITH_TEXT','cell','_getSuggestionCoords','registerCustomCallback','every','getSuggestion','batch','nodeAfter','$textProxy','insertion','createRangeOn','ELEMENT_TABLE','left','forceValue','max','_setupColumnsRowsFixing','execute','getRanges','low','differ','getContainedElement','rootName','getRowIndexes','data','detach','getAttribute','showSuggestionHighlights','min','map','registerDescriptionCallback','mapper','writer','minRow','setSelection','tableColumn','MAX_SAFE_INTEGER','addMarker:suggestion','_tablePostFixingSubtypes','span','hasAttribute','push','options','enableCommand','commands','enqueueChange','tableCell','change','addRange','classes','some','first','fromRange','tableRow','insertTableColumnLeft','accept','has','highest','join','TableUtils','_acceptFormatSuggestionCallbackFactory','createTableWalker','getChanges','root','subType','insertTableRowAbove','refresh','$graveyard','start','createRangeIn','insertTableColumnRight','MIN_SAFE_INTEGER','insertTable','table','model','findAncestor','deletion','above','selection','ELEMENT_TABLE_WITH_TEXT','getSelectionAffectedTableCells'];(function(_0x2028de,_0xadfda6){const _0x126eb8=function(_0x1a2626){while(--_0x1a2626){_0x2028de['push'](_0x2028de['shift']());}};_0x126eb8(++_0xadfda6);}(_0xadfd,0xeb));const _0x126e=function(_0x2028de,_0xadfda6){_0x2028de=_0x2028de-0x0;let _0x126eb8=_0xadfd[_0x2028de];return _0x126eb8;};import{Plugin as _0x491d7b}from'ckeditor5/src/core';import{LiveRange as _0x53dee4}from'ckeditor5/src/engine';import{setHighlightHandling as _0x439fba}from'ckeditor5/src/widget';import{getTranslation as _0x1f2208}from'../utils/common-translations';export default class dt extends _0x491d7b{constructor(_0x3f275b){super(_0x3f275b),this[_0x126e('0x79')]=[_0x126e('0x3'),_0x126e('0x76')],this[_0x126e('0x48')]=new Set();}['afterInit'](){const _0x1e3c2f=this[_0x126e('0x44')],_0x19b746=_0x1e3c2f[_0x126e('0x18')][_0x126e('0x3e')][_0x126e('0x1c')];if(!_0x1e3c2f[_0x126e('0x4f')][_0x126e('0x6')]('TableEditing'))return;const _0x407dcf=_0x1e3c2f[_0x126e('0x30')],_0x4ea2e2=_0x1e3c2f[_0x126e('0x4f')][_0x126e('0x2a')]('TrackChangesEditing'),_0x2ecdba=_0x1e3c2f[_0x126e('0x4f')][_0x126e('0x2a')](_0x126e('0x9'));_0x4ea2e2[_0x126e('0x32')]['registerElementLabel'](_0x126e('0x17'),_0x39d3de=>_0x1f2208(_0x407dcf,_0x126e('0x5f'),_0x39d3de)),this[_0x126e('0x63')](),_0x4ea2e2[_0x126e('0x7e')](_0x126e('0x16')),_0x4ea2e2[_0x126e('0x7e')](_0x126e('0x4e')),_0x4ea2e2['enableCommand'](_0x126e('0x2b'));for(const _0x14a7f5 of[_0x126e('0xf'),'insertTableRowBelow']){const _0x1916f2=_0x1e3c2f[_0x126e('0x7f')]['get'](_0x14a7f5);_0x4ea2e2[_0x126e('0x7e')](_0x14a7f5,_0x165271=>{_0x1e3c2f[_0x126e('0x18')][_0x126e('0x82')](_0x48779=>{_0x165271();const _0x9f270c=_0x126e('0x1b')===_0x1916f2[_0x126e('0x53')],_0x3f6a2c=_0x2ecdba['getSelectionAffectedTableCells'](_0x19b746),_0x285052=_0x2ecdba[_0x126e('0x6a')](_0x3f6a2c),_0x54b921=_0x9f270c?_0x285052[_0x126e('0x1')]-0x1:_0x285052[_0x126e('0x46')]+0x1,_0x3a656f=_0x3f6a2c[0x0][_0x126e('0x19')]('table'),_0x3c7856=_0x2ecdba[_0x126e('0xb')](_0x3a656f,{'startRow':_0x54b921,'endRow':_0x54b921}),_0x141d20=Array[_0x126e('0x36')](_0x3c7856)[_0x126e('0x70')](_0x35cc96=>_0x48779['createRangeOn'](_0x35cc96[_0x126e('0x55')]));_0x4ea2e2[_0x126e('0x51')](_0x141d20,_0x126e('0x3'));});});}for(const _0x56fade of[_0x126e('0x4'),_0x126e('0x14')]){const _0x8a5a4a=_0x1e3c2f[_0x126e('0x7f')][_0x126e('0x2a')](_0x56fade);_0x4ea2e2[_0x126e('0x7e')](_0x56fade,_0x49a0a1=>{_0x1e3c2f[_0x126e('0x18')][_0x126e('0x82')](_0x2a97a2=>{_0x49a0a1();const _0x17074c=_0x126e('0x60')===_0x8a5a4a[_0x126e('0x53')],_0x281457=_0x2ecdba[_0x126e('0x1e')](_0x19b746),_0x460d79=_0x2ecdba[_0x126e('0x24')](_0x281457),_0x2b27d2=_0x17074c?_0x460d79[_0x126e('0x1')]-0x1:_0x460d79[_0x126e('0x46')]+0x1,_0x8e1c34=_0x281457[0x0][_0x126e('0x19')](_0x126e('0x17')),_0x194b8b=_0x2ecdba[_0x126e('0xb')](_0x8e1c34,{'startRow':0x0,'column':_0x2b27d2,'includeAllSlots':!0x1}),_0x33f727=Array[_0x126e('0x36')](_0x194b8b)['map'](_0x49eb8e=>_0x2a97a2[_0x126e('0x5e')](_0x49eb8e[_0x126e('0x55')]));_0x4ea2e2[_0x126e('0x51')](_0x33f727,_0x126e('0x76'));});});}for(const _0x1d579d of[_0x126e('0x3a'),_0x126e('0x3b')]){const _0x9ae986=_0x1d579d[_0x126e('0x4c')](0xb),_0x503e3e=_0x9ae986[_0x126e('0x28')](),_0x21bcf6=_0x503e3e[_0x126e('0x4c')](0x0,0x3)+_0x126e('0x7a'),_0x28d042=_0x126e('0x17')+_0x9ae986,_0x2b594a=_0x126e('0x6f')+_0x9ae986,_0x3ed5c5=_0x126e('0x62')+_0x9ae986;_0x4ea2e2[_0x126e('0x7e')](_0x1d579d,()=>{_0x1e3c2f[_0x126e('0x18')]['change'](_0x5d5004=>{const _0x121a77=_0x2ecdba[_0x126e('0x1e')](_0x19b746),_0xed49e=_0x121a77[0x0][_0x126e('0x19')]('table');let _0x29f88e;if(_0x126e('0x3a')==_0x1d579d){const _0x187c88=_0x2ecdba[_0x126e('0x6a')](_0x121a77);_0x29f88e={'startRow':_0x187c88[_0x126e('0x1')],'endRow':_0x187c88[_0x126e('0x46')],'includeAllSlots':!0x0};}else{const _0x15f8f9=_0x2ecdba['getColumnIndexes'](_0x121a77);_0x29f88e={'startColumn':_0x15f8f9[_0x126e('0x1')],'endColumn':_0x15f8f9[_0x126e('0x46')],'includeAllSlots':!0x0};}const _0x56145c=_0x2ecdba[_0x126e('0xb')](_0xed49e,_0x29f88e),_0x52199d=Array[_0x126e('0x36')](_0x56145c)[_0x126e('0x70')](({cell:_0x38eac8})=>_0x38eac8),_0x15ff57=se(_0x52199d[_0x126e('0x43')](_0x2be6df=>_0x2be6df['hasAttribute'](_0x21bcf6))),_0x55b99f=se(_0x52199d[_0x126e('0x43')](_0xd4b585=>!_0xd4b585[_0x126e('0x7b')](_0x21bcf6)))[_0x126e('0x70')](_0x1901ed=>_0x5d5004[_0x126e('0x5e')](_0x1901ed)),_0x55f4bb=_0x4ea2e2['markMultiRangeDeletion'](_0x55b99f,_0x28d042);if(_0x55f4bb&&('tableRow'==_0x55f4bb[_0x126e('0xe')]||_0x126e('0x76')==_0x55f4bb[_0x126e('0xe')])){const _0x2e19a8=this['_getSuggestionCoords'](_0x55f4bb);for(const _0x203e75 of _0x15ff57){const _0x1f0b84=_0x5d5004['createRangeOn'](_0x203e75),_0x5a2108=_0x2ecdba['getCellLocation'](_0x203e75),_0x13237e=_0x203e75['getAttribute'](_0x21bcf6)-0x1,_0x1d675c=_0x2e19a8[_0x2b594a],_0x5ab582=_0x2e19a8[_0x3ed5c5];_0x1d675c<=_0x5a2108[_0x503e3e]&&_0x5a2108[_0x503e3e]+_0x13237e<=_0x5ab582&&_0x55f4bb['addRange'](_0x1f0b84);}}});});}function _0x5127c2(_0x4c9182){const _0x50500a=Array['from'](_0x19b746[_0x126e('0x65')]())[_0x126e('0x70')](_0x132c75=>_0x53dee4[_0x126e('0x2')](_0x132c75));_0x1e3c2f['model'][_0x126e('0x82')](_0x50b109=>{const _0x4ba82e=_0x50b109[_0x126e('0x5a')];_0x4c9182=_0x4c9182[_0x126e('0x43')](_0x1babb0=>_0x126e('0x11')!=_0x1babb0[_0x126e('0xd')][_0x126e('0x69')]),_0x50b109[_0x126e('0x75')](_0x4c9182),_0x1e3c2f['commands'][_0x126e('0x2a')](_0x126e('0x3a'))['refresh'](),_0x1e3c2f[_0x126e('0x64')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1e3c2f[_0x126e('0x18')][_0x126e('0x80')](()=>{_0x1e3c2f[_0x126e('0x18')][_0x126e('0x80')](_0x4ba82e,_0x14f321=>{const _0xb0e56d=_0x50500a[_0x126e('0x43')](_0x533388=>_0x126e('0x11')!=_0x533388['root'][_0x126e('0x69')]);_0xb0e56d[_0x126e('0x3c')]>0x0&&_0x14f321[_0x126e('0x75')](_0xb0e56d);for(const _0x33c3a5 of _0x50500a)_0x33c3a5['detach']();});});});}function _0x1b96d9(_0xc4e106){_0x1e3c2f[_0x126e('0x18')][_0x126e('0x82')](_0x3c91e5=>{const _0x528598=Array['from'](_0x19b746[_0x126e('0x65')]())[_0x126e('0x70')](_0xe59753=>_0x53dee4[_0x126e('0x2')](_0xe59753)),_0x464f63=[];for(const _0x14ea3e of _0xc4e106)for(const _0x48a793 of _0x14ea3e[_0x126e('0x25')]({'shallow':!0x0}))_0x464f63[_0x126e('0x7c')](_0x48a793);for(const _0x4b37cb of _0x464f63)'$graveyard'!=_0x4b37cb[_0x126e('0xd')]['rootName']&&(_0x3c91e5[_0x126e('0x75')](_0x3c91e5[_0x126e('0x35')](_0x4b37cb,0x0)),_0x1e3c2f[_0x126e('0x7f')][_0x126e('0x2a')](_0x126e('0x3b'))[_0x126e('0x10')](),_0x1e3c2f[_0x126e('0x64')](_0x126e('0x3b'),{'forceDefaultExecution':!0x0}));const _0x44a7e4=_0x528598[_0x126e('0x43')](_0xa8941b=>_0x126e('0x11')!=_0xa8941b['root']['rootName']);_0x44a7e4[_0x126e('0x3c')]>0x0&&_0x3c91e5[_0x126e('0x75')](_0x44a7e4);for(const _0xaea335 of _0x528598)_0xaea335['detach']();});}function _0x2d5a1a(_0x2a67d2,_0x1d0086){return _0x1d0086[_0x126e('0x58')](_0x5a912f=>_0x2a67d2['some'](_0x5a7c83=>_0x5a7c83[_0x126e('0x27')][_0x126e('0x4b')](_0x5a912f[_0x126e('0x12')])||_0x5a912f[_0x126e('0x27')]['isEqual'](_0x5a7c83[_0x126e('0x12')])));}function _0x4c2b2a(_0x54ae61,_0x19a61d){return _0x54ae61[_0x126e('0x0')](_0x5d4c93=>_0x19a61d[_0x126e('0x0')](_0x145fe8=>_0x5d4c93[_0x126e('0x27')][_0x126e('0x33')](_0x145fe8[_0x126e('0x12')])));}_0x1e3c2f[_0x126e('0x6b')]['downcastDispatcher']['on'](_0x126e('0x78'),(_0x19ecb2,_0x98b187,_0x443e48)=>{if(!_0x443e48[_0x126e('0x7d')][_0x126e('0x6e')])return;const _0x16fb87=_0x98b187[_0x126e('0x41')];if(!_0x16fb87)return;const _0x17ab18=_0x443e48[_0x126e('0x72')]['toViewElement'](_0x16fb87);function _0x251178(_0x1d9bc3){return Array['isArray'](_0x1d9bc3)?_0x1d9bc3:[_0x1d9bc3];}_0x17ab18&&_0x126e('0x81')===_0x16fb87[_0x126e('0x50')]&&_0x439fba(_0x17ab18,_0x443e48[_0x126e('0x73')],(_0x33e160,_0x49a402,_0x242fff)=>_0x242fff['addClass'](_0x251178(_0x49a402['classes']),_0x33e160),(_0x28eaa4,_0x1c3d57,_0x2f3e2d)=>_0x2f3e2d[_0x126e('0x2c')](_0x251178(_0x1c3d57[_0x126e('0x84')]),_0x28eaa4));},{'priority':_0x126e('0x7')}),_0x4ea2e2[_0x126e('0x32')]['registerDescriptionCallback'](_0x5443f1=>{if(_0x126e('0x5d')!=_0x5443f1[_0x126e('0x47')]&&_0x126e('0x1a')!=_0x5443f1[_0x126e('0x47')])return;const _0x5ca86a=_0x5443f1[_0x126e('0x68')]();if(null!=_0x5ca86a&&_0x5ca86a['is'](_0x126e('0x26'),_0x126e('0x17'))){if(_0x126e('0x5d')==_0x5443f1[_0x126e('0x47')]){const _0x2a435f=_0x5443f1[_0x126e('0x25')]()[_0x126e('0x43')](_0x3f5c65=>_0x3f5c65['is'](_0x126e('0x5c')))[_0x126e('0x70')](_0x2a6e65=>_0x2a6e65['data']);if(_0x2a435f[_0x126e('0x3c')])return{'type':_0x126e('0x5d'),'content':_0x1f2208(_0x407dcf,_0x126e('0x21'),_0x1f2208(_0x407dcf,_0x126e('0x1d'),'\x22'+_0x2a435f[_0x126e('0x8')]('\x20')+'\x22'))};}if(_0x126e('0x1a')==_0x5443f1[_0x126e('0x47')]){const _0x549518=_0x5443f1[_0x126e('0x25')]()['filter'](_0x2222f1=>_0x2222f1['is'](_0x126e('0x5c')))[_0x126e('0x70')](_0x264729=>_0x264729[_0x126e('0x6b')]);if(_0x549518['length'])return{'type':_0x126e('0x1a'),'content':_0x1f2208(_0x407dcf,_0x126e('0x3d'),_0x1f2208(_0x407dcf,_0x126e('0x1d'),'\x22'+_0x549518[_0x126e('0x8')]('\x20')+'\x22'))};}}}),_0x4ea2e2[_0x126e('0x32')][_0x126e('0x71')](_0x26e3de=>{if('tableRow'==_0x26e3de[_0x126e('0xe')]){const _0x4b54cb=_0x26e3de[_0x126e('0x25')]()['filter'](_0x14f77c=>_0x14f77c['is'](_0x126e('0x5c')))[_0x126e('0x70')](_0x55c75f=>_0x55c75f['data']),_0x262094=this['_getSuggestionCoords'](_0x26e3de),_0x267ca9=_0x262094[_0x126e('0x4a')]-_0x262094[_0x126e('0x74')]+0x1;if(_0x126e('0x5d')==_0x26e3de['type'])return _0x4b54cb[_0x126e('0x3c')]?{'type':_0x126e('0x5d'),'content':_0x1f2208(_0x407dcf,_0x126e('0x21'),_0x1f2208(_0x407dcf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x267ca9,'\x22'+_0x4b54cb[_0x126e('0x8')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x1f2208(_0x407dcf,_0x126e('0x21'),_0x1f2208(_0x407dcf,_0x126e('0x45'),_0x267ca9))};if(_0x126e('0x1a')==_0x26e3de[_0x126e('0x47')])return _0x4b54cb[_0x126e('0x3c')]?{'type':'deletion','content':_0x1f2208(_0x407dcf,_0x126e('0x3d'),_0x1f2208(_0x407dcf,_0x126e('0x54'),[_0x267ca9,'\x22'+_0x4b54cb[_0x126e('0x8')]('\x20')+'\x22']))}:{'type':_0x126e('0x1a'),'content':_0x1f2208(_0x407dcf,_0x126e('0x3d'),_0x1f2208(_0x407dcf,'ELEMENT_TABLE_ROW',_0x267ca9))};}if(_0x126e('0x76')==_0x26e3de[_0x126e('0xe')]){const _0x1668a6=_0x26e3de[_0x126e('0x25')]()['filter'](_0x255276=>_0x255276['is'](_0x126e('0x5c')))[_0x126e('0x70')](_0x3f62b7=>_0x3f62b7[_0x126e('0x6b')]),_0x49b2d9=this[_0x126e('0x56')](_0x26e3de),_0x5402d5=_0x49b2d9[_0x126e('0x34')]-_0x49b2d9[_0x126e('0x2e')]+0x1;if('insertion'==_0x26e3de['type'])return _0x1668a6[_0x126e('0x3c')]?{'type':_0x126e('0x5d'),'content':_0x1f2208(_0x407dcf,_0x126e('0x21'),_0x1f2208(_0x407dcf,_0x126e('0x42'),[_0x5402d5,'\x22'+_0x1668a6[_0x126e('0x8')]('\x20')+'\x22']))}:{'type':_0x126e('0x5d'),'content':_0x1f2208(_0x407dcf,_0x126e('0x21'),_0x1f2208(_0x407dcf,_0x126e('0x1f'),_0x5402d5))};if('deletion'==_0x26e3de[_0x126e('0x47')])return _0x1668a6[_0x126e('0x3c')]?{'type':'deletion','content':_0x1f2208(_0x407dcf,'*Remove:*\x20%0',_0x1f2208(_0x407dcf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5402d5,'\x22'+_0x1668a6[_0x126e('0x8')]('\x20')+'\x22']))}:{'type':_0x126e('0x1a'),'content':_0x1f2208(_0x407dcf,_0x126e('0x3d'),_0x1f2208(_0x407dcf,_0x126e('0x1f'),_0x5402d5))};}}),_0x4ea2e2[_0x126e('0x37')][_0x126e('0x57')](_0x126e('0x5d'),_0x126e('0x3'),_0x126e('0x3f'),_0x5127c2),_0x4ea2e2['_suggestionFactory'][_0x126e('0x57')](_0x126e('0x1a'),_0x126e('0x3'),_0x126e('0x5'),_0x5127c2),_0x4ea2e2[_0x126e('0x37')][_0x126e('0x57')](_0x126e('0x5d'),_0x126e('0x76'),_0x126e('0x3f'),_0x1b96d9),_0x4ea2e2['_suggestionFactory'][_0x126e('0x57')](_0x126e('0x1a'),_0x126e('0x76'),_0x126e('0x5'),_0x1b96d9),_0x4ea2e2[_0x126e('0x37')][_0x126e('0x57')](_0x126e('0x5d'),_0x126e('0x76'),_0x126e('0x8'),_0x2d5a1a),_0x4ea2e2[_0x126e('0x37')][_0x126e('0x57')]('deletion',_0x126e('0x76'),_0x126e('0x8'),_0x2d5a1a),_0x4ea2e2[_0x126e('0x37')]['registerCustomCallback'](_0x126e('0x5d'),'tableRow',_0x126e('0x8'),_0x4c2b2a),_0x4ea2e2[_0x126e('0x37')][_0x126e('0x57')]('deletion','tableRow',_0x126e('0x8'),_0x4c2b2a);}[_0x126e('0xa')](){const _0x1759b7=this[_0x126e('0x44')],_0x22af03=_0x1759b7[_0x126e('0x18')][_0x126e('0x3e')][_0x126e('0x1c')];return(_0x3c9fa9,_0x5aee58)=>{_0x1759b7[_0x126e('0x18')][_0x126e('0x82')](_0x4b2670=>{const {commandName:_0x3c898c,commandParams:_0x5aaf3b}=_0x5aee58;let _0x383306=_0x3c9fa9[0x0]['end'][_0x126e('0x49')];_0x5aaf3b&&_0x5aaf3b[0x0]&&!0x1===_0x5aaf3b[0x0][_0x126e('0x61')]&&(_0x383306=_0x3c9fa9[0x0][_0x126e('0x12')][_0x126e('0x5b')]);const _0x55244d=_0x4b2670[_0x126e('0x13')](_0x383306);if(_0x126e('0x11')==_0x55244d['root'][_0x126e('0x69')])return;const _0x10ee3f=Array['from'](_0x22af03['getRanges']())[_0x126e('0x70')](_0x5cf56a=>_0x53dee4[_0x126e('0x2')](_0x5cf56a));_0x4b2670[_0x126e('0x75')](_0x55244d),_0x1759b7[_0x126e('0x7f')][_0x126e('0x2a')](_0x3c898c)[_0x126e('0x10')](),_0x5aaf3b[_0x126e('0x7c')]({'forceDefaultExecution':!0x0}),_0x1759b7[_0x126e('0x64')](_0x3c898c,..._0x5aaf3b);const _0x5c68d0=_0x10ee3f[_0x126e('0x43')](_0x277f00=>_0x126e('0x11')!=_0x277f00[_0x126e('0xd')][_0x126e('0x69')]);_0x5c68d0[_0x126e('0x3c')]>0x0&&_0x4b2670['setSelection'](_0x5c68d0);for(const _0x16b949 of _0x10ee3f)_0x16b949[_0x126e('0x6c')]();});};}['_getCoordsForCells'](_0x57522b){const _0x4e32bd=this[_0x126e('0x44')][_0x126e('0x4f')][_0x126e('0x2a')](_0x126e('0x9'));let _0x1b6dc2=Number['MAX_SAFE_INTEGER'],_0x34d192=Number[_0x126e('0x15')],_0x1dd167=Number[_0x126e('0x77')],_0x359e85=Number[_0x126e('0x15')];for(const _0x1d2ae4 of _0x57522b){if(_0x126e('0x11')==_0x1d2ae4[_0x126e('0xd')][_0x126e('0x69')])continue;const {row:_0x5ae640,column:_0xeb33c9}=_0x4e32bd[_0x126e('0x40')](_0x1d2ae4),_0xe777bf=_0x1d2ae4[_0x126e('0x7b')]('rowspan')?_0x1d2ae4[_0x126e('0x6d')](_0x126e('0x4d'))-0x1:0x0,_0xde5e9a=_0x1d2ae4[_0x126e('0x7b')](_0x126e('0x20'))?_0x1d2ae4[_0x126e('0x6d')](_0x126e('0x20'))-0x1:0x0;_0x1b6dc2=_0x5ae640<_0x1b6dc2?_0x5ae640:_0x1b6dc2,_0x34d192=_0x5ae640+_0xe777bf>_0x34d192?_0x5ae640+_0xe777bf:_0x34d192,_0x1dd167=_0xeb33c9<_0x1dd167?_0xeb33c9:_0x1dd167,_0x359e85=_0xeb33c9+_0xde5e9a>_0x359e85?_0xeb33c9+_0xde5e9a:_0x359e85;}return{'minRow':_0x1b6dc2,'maxRow':_0x34d192,'minColumn':_0x1dd167,'maxColumn':_0x359e85};}[_0x126e('0x63')](){const _0x2abfb9=this[_0x126e('0x44')],_0x1e6f58=_0x2abfb9[_0x126e('0x4f')][_0x126e('0x2a')]('TrackChangesEditing'),_0x160f17=_0x2abfb9[_0x126e('0x4f')][_0x126e('0x2a')](_0x126e('0x9'));_0x2abfb9['model'][_0x126e('0x3e')]['on'](_0x126e('0x52'),()=>{const _0x480011=Array['from'](_0x2abfb9[_0x126e('0x18')][_0x126e('0x3e')][_0x126e('0x67')]['getChangedMarkers']());for(const {name:_0x17ea3c,data:_0xed7b}of _0x480011){const {group:_0x4eb8f7,id:_0x510595,subType:_0x8acd51}=_0x1e6f58['_splitMarkerName'](_0x17ea3c);if('suggestion'!=_0x4eb8f7)continue;if(null!=_0xed7b[_0x126e('0x23')])continue;const _0x585cfa=_0x1e6f58[_0x126e('0x59')](_0x510595);this[_0x126e('0x79')][_0x126e('0x38')](_0x8acd51)&&this[_0x126e('0x48')][_0x126e('0x2f')](_0x585cfa);}},{'priority':_0x126e('0x66')});const _0x351435=(_0x5b262f,_0x415c5b)=>{let _0x258129=!0x1;const _0x48f295=_0x415c5b[_0x126e('0x5e')](_0x5b262f),_0x45f948=_0x5b262f[_0x126e('0x19')](_0x126e('0x17')),_0x5760ea=_0x160f17[_0x126e('0x40')](_0x5b262f);for(const _0x2ebec2 of this['_tableSuggestions']){const _0x5108ae=_0x2ebec2['subType'],_0x4bf27a=_0x5108ae['startsWith']('tablePaste'),_0x11a1fc=_0x5108ae[_0x126e('0x4c')](_0x4bf27a?0xa:0x5),_0x281cfd=_0x11a1fc[_0x126e('0x28')](),_0xb8baa2=_0x281cfd[_0x126e('0x4c')](0x0,0x3)+_0x126e('0x7a'),_0x48ac1b='min'+_0x11a1fc,_0x4e9aa5='max'+_0x11a1fc;if(!_0x2ebec2['isInContent'])continue;if(_0x45f948!=_0x2ebec2[_0x126e('0x29')]()['start']['findAncestor'](_0x126e('0x17')))continue;if(_0x2ebec2['isIntersectingWithRange'](_0x48f295))continue;const _0x469272=_0x5b262f[_0x126e('0x7b')](_0xb8baa2)?_0x5b262f[_0x126e('0x6d')](_0xb8baa2)-0x1:0x0,_0x4dfe84=this[_0x126e('0x56')](_0x2ebec2),_0x3f0ed6=_0x4dfe84[_0x48ac1b],_0x1e269f=_0x4dfe84[_0x4e9aa5];_0x3f0ed6<=_0x5760ea[_0x281cfd]&&_0x5760ea[_0x281cfd]+_0x469272<=_0x1e269f&&(_0x2ebec2[_0x126e('0x83')](_0x48f295),_0x258129=!0x0);}return _0x258129;};_0x2abfb9[_0x126e('0x18')][_0x126e('0x3e')][_0x126e('0x39')](_0x415be3=>{let _0x5dd440=!0x1;for(const _0x4ebe93 of _0x2abfb9[_0x126e('0x18')][_0x126e('0x3e')][_0x126e('0x67')][_0x126e('0xc')]())if(_0x126e('0x31')==_0x4ebe93[_0x126e('0x47')]){if(_0x126e('0x3')==_0x4ebe93['name'])for(const _0x546b5e of _0x4ebe93[_0x126e('0x2d')][_0x126e('0x5b')]['getChildren']())_0x5dd440=_0x5dd440||_0x351435(_0x546b5e,_0x415be3);else'tableCell'==_0x4ebe93[_0x126e('0x50')]&&(_0x5dd440=_0x5dd440||_0x351435(_0x4ebe93['position']['nodeAfter'],_0x415be3));}return _0x5dd440;});}[_0x126e('0x56')](_0x590eef){return this[_0x126e('0x22')](_0x590eef[_0x126e('0x65')]()[_0x126e('0x70')](_0x3354d8=>_0x3354d8[_0x126e('0x12')][_0x126e('0x5b')]));}}function se(_0x5ea73c){return Array[_0x126e('0x36')](new Set(_0x5ea73c)['values']());}
|
|
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')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12f8=['get','requires','has','plugins','TableCaptionEditing','afterInit','toggleTableCaption','editor'];(function(_0x17704c,_0x12f8b){const _0xa95a83=function(_0x5b1c9b){while(--_0x5b1c9b){_0x17704c['push'](_0x17704c['shift']());}};_0xa95a83(++_0x12f8b);}(_0x12f8,0xc6));const _0xa95a=function(_0x17704c,_0x12f8b){_0x17704c=_0x17704c-0x0;let _0xa95a83=_0x12f8[_0x17704c];return _0xa95a83;};import{Plugin as _0x598878}from'ckeditor5/src/core';import _0x43b8a8 from'./table';export default class At extends _0x598878{static get[_0xa95a('0x3')](){return[_0x43b8a8];}[_0xa95a('0x7')](){const _0x34e8c6=this[_0xa95a('0x1')];if(!_0x34e8c6[_0xa95a('0x5')][_0xa95a('0x4')](_0xa95a('0x6')))return;_0x34e8c6['plugins'][_0xa95a('0x2')]('TrackChangesEditing')['enableCommand'](_0xa95a('0x0'));}}
|