@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230630.0 → 0.0.0-nightly-20230702.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/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 _0x5f27=['from','unshift','handleListStyleCommand','getListTypeFromListStyleType','*Format:*\x20set\x20start\x20index\x20to\x20%0','styles','push','type','*Format:*\x20set\x20order\x20to\x20reversed','markMultiRangeBlockFormat','enableCommand','replace','listStart','backward','listType','flat','_getSuggestionBlocksForListStyle','_getSuggestionBlocks','change','list.properties','listItem','TrackChangesEditing','getSiblingNodes','model','_LIST_','numbered','editor','getAttribute','commandName','ListUtils','createPositionAt','ELEMENT_','listReversed','filter','handleDescriptions','get','forward','getFirstPosition','before','getLastPosition','element','plugins','commandParams','toUpperCase','createRange','format','getSelectedBlocks','has','_getTranslationKeyForListStyle','bind','document','_descriptionFactory','registerDescriptionCallback','selection','map','handleListReversedCommand','parent','ListPropertiesEditing','reversed','startIndex','handleListStartCommand','listStyle','length'];(function(_0x1c74ac,_0x5f276d){const _0x455f0c=function(_0x9a9fd1){while(--_0x9a9fd1){_0x1c74ac['push'](_0x1c74ac['shift']());}};_0x455f0c(++_0x5f276d);}(_0x5f27,0xdb));const _0x455f=function(_0x1c74ac,_0x5f276d){_0x1c74ac=_0x1c74ac-0x0;let _0x455f0c=_0x5f27[_0x1c74ac];return _0x455f0c;};import{Plugin as _0x584e0}from'ckeditor5/src/core';import{getTranslation as _0x4dcdc1}from'../utils/common-translations';export default class nt extends _0x584e0{['afterInit'](){if(!this[_0x455f('0x3b')][_0x455f('0xb')][_0x455f('0x11')](_0x455f('0x1b')))return;const _0x33dc8f=this['editor']['config'][_0x455f('0x5')](_0x455f('0x34')),_0x1c0574=this[_0x455f('0x3b')][_0x455f('0xb')][_0x455f('0x5')](_0x455f('0x36'));_0x33dc8f[_0x455f('0x26')]&&_0x1c0574[_0x455f('0x2b')](_0x455f('0x1f'),this[_0x455f('0x23')][_0x455f('0x13')](this)),_0x33dc8f['reversed']&&_0x1c0574[_0x455f('0x2b')](_0x455f('0x2'),this[_0x455f('0x19')][_0x455f('0x13')](this)),_0x33dc8f[_0x455f('0x1d')]&&_0x1c0574[_0x455f('0x2b')](_0x455f('0x2d'),this[_0x455f('0x1e')][_0x455f('0x13')](this)),_0x1c0574[_0x455f('0x15')][_0x455f('0x16')](this[_0x455f('0x4')][_0x455f('0x13')](this));}[_0x455f('0x23')](_0x3e9507,_0x1f3f1d={}){const _0x181a76=this[_0x455f('0x3b')][_0x455f('0xb')][_0x455f('0x5')](_0x455f('0x36')),_0x508200=this[_0x455f('0x31')]();this[_0x455f('0x3b')][_0x455f('0x38')][_0x455f('0x33')](()=>{_0x181a76[_0x455f('0x2a')](_0x508200,{'commandName':_0x455f('0x1f'),'commandParams':[{'type':_0x1f3f1d[_0x455f('0x28')]}],'formatGroupId':_0x455f('0x1f')});});}[_0x455f('0x19')](_0x5e4491,_0xbb0ed5={}){const _0x10799d=this[_0x455f('0x3b')]['plugins'][_0x455f('0x5')]('TrackChangesEditing'),_0x23efbb=this[_0x455f('0x32')](_0x466d4b=>_0x466d4b['is'](_0x455f('0xa'),_0x455f('0x35'))&&_0x455f('0x3a')===_0x466d4b[_0x455f('0x3c')](_0x455f('0x2f')));if(_0x23efbb['length']<0x1)return;const _0x18a357=_0x23efbb[_0x455f('0x18')](_0x1fb88f=>this[_0x455f('0x3b')][_0x455f('0x38')]['createRange'](this[_0x455f('0x3b')][_0x455f('0x38')][_0x455f('0x0')](_0x1fb88f,'before'),this['editor'][_0x455f('0x38')][_0x455f('0x0')](_0x1fb88f,0x0)));this[_0x455f('0x3b')][_0x455f('0x38')][_0x455f('0x33')](()=>{_0x10799d[_0x455f('0x2a')](_0x18a357,{'commandName':_0x455f('0x2'),'commandParams':[{'reversed':_0xbb0ed5['reversed']}],'formatGroupId':_0x455f('0x2')});});}[_0x455f('0x1e')](_0x1196e8,_0x4f3304={}){const _0x2a4eb2=this[_0x455f('0x3b')][_0x455f('0xb')]['get'](_0x455f('0x36')),_0x456cc2=this[_0x455f('0x32')](_0x1adf4b=>_0x1adf4b['is'](_0x455f('0xa'),_0x455f('0x35'))&&_0x455f('0x3a')===_0x1adf4b[_0x455f('0x3c')](_0x455f('0x2f')));if(_0x456cc2[_0x455f('0x20')]<0x1)return;const _0x30aec4=_0x456cc2['map'](_0x6de7f0=>this['editor'][_0x455f('0x38')][_0x455f('0xe')](this[_0x455f('0x3b')]['model'][_0x455f('0x0')](_0x6de7f0,_0x455f('0x8')),this['editor'][_0x455f('0x38')][_0x455f('0x0')](_0x6de7f0,0x0)));this[_0x455f('0x3b')]['model'][_0x455f('0x33')](()=>{_0x2a4eb2[_0x455f('0x2a')](_0x30aec4,{'commandName':_0x455f('0x2d'),'commandParams':[{'startIndex':_0x4f3304[_0x455f('0x1d')]}],'formatGroupId':_0x455f('0x2d')});});}[_0x455f('0x4')](_0x4d82f1){const _0x101dbb=this[_0x455f('0x3b')]['locale'],{data:_0x18fdd4}=_0x4d82f1;if(!_0x18fdd4)return;let _0x1c4cf2,_0x3fa611;switch(_0x18fdd4[_0x455f('0x3d')]){case _0x455f('0x1f'):_0x1c4cf2='*Change\x20to:*\x20%0',_0x3fa611={'type':'format','content':_0x4dcdc1(_0x101dbb,_0x1c4cf2,_0x4dcdc1(_0x101dbb,this[_0x455f('0x12')](_0x18fdd4[_0x455f('0xc')][0x0]['type'])))};break;case _0x455f('0x2'):_0x1c4cf2=_0x18fdd4['commandParams'][0x0][_0x455f('0x1c')]?_0x455f('0x29'):'*Format:*\x20set\x20order\x20to\x20regular',_0x3fa611={'type':_0x455f('0xf'),'content':_0x4dcdc1(_0x101dbb,_0x1c4cf2)};break;case'listStart':_0x1c4cf2=_0x455f('0x25'),_0x3fa611={'type':_0x455f('0xf'),'content':_0x4dcdc1(_0x101dbb,_0x1c4cf2,_0x18fdd4['commandParams'][0x0][_0x455f('0x1d')])};}return _0x3fa611;}[_0x455f('0x31')](){var _0x288ba5,_0xca161e,_0x3939d4,_0x10d678;const _0x1a478b=this[_0x455f('0x3b')][_0x455f('0xb')][_0x455f('0x5')](_0x455f('0x3e'));let _0x160092=Array[_0x455f('0x21')](this[_0x455f('0x3b')][_0x455f('0x38')]['document'][_0x455f('0x17')][_0x455f('0x10')]());return(null===(_0x288ba5=_0x160092[0x0])||void 0x0===_0x288ba5?void 0x0:_0x288ba5['is'](_0x455f('0xa'),'listItem'))&&_0x160092[_0x455f('0x22')](..._0x1a478b['getSiblingNodes'](this[_0x455f('0x3b')]['model'][_0x455f('0x14')][_0x455f('0x17')][_0x455f('0x7')](),_0x455f('0x2e'))),(null===(_0xca161e=_0x160092[_0x160092[_0x455f('0x20')]-0x1])||void 0x0===_0xca161e?void 0x0:_0xca161e['is'](_0x455f('0xa'),_0x455f('0x35')))&&_0x160092[_0x455f('0x27')](..._0x1a478b[_0x455f('0x37')](this[_0x455f('0x3b')][_0x455f('0x38')][_0x455f('0x14')]['selection'][_0x455f('0x9')](),_0x455f('0x6'))),_0x160092=[...new Set(_0x160092)],(null===(_0x10d678=null===(_0x3939d4=this[_0x455f('0x3b')]['model'][_0x455f('0x14')][_0x455f('0x17')]['getFirstPosition']())||void 0x0===_0x3939d4?void 0x0:_0x3939d4[_0x455f('0x1a')])||void 0x0===_0x10d678?void 0x0:_0x10d678['is'](_0x455f('0xa'),_0x455f('0x35')))&&(_0x160092=_0x160092['filter'](_0x4e6d84=>_0x4e6d84['is']('element',_0x455f('0x35')))),_0x160092;}[_0x455f('0x32')](_0xb4c6b8){const _0x1ac23e=this[_0x455f('0x3b')][_0x455f('0xb')][_0x455f('0x5')](_0x455f('0x3e'));let _0xdf3265=Array['from'](this['editor'][_0x455f('0x38')][_0x455f('0x14')][_0x455f('0x17')][_0x455f('0x10')]())[_0x455f('0x3')](_0xb4c6b8)[_0x455f('0x18')](_0x23535e=>{const _0x192a8e=this['editor']['model']['createPositionAt'](_0x23535e,0x0);return[..._0x1ac23e[_0x455f('0x37')](_0x192a8e,_0x455f('0x2e')),..._0x1ac23e[_0x455f('0x37')](_0x192a8e,_0x455f('0x6'))];})[_0x455f('0x30')]();return _0xdf3265=[...new Set(_0xdf3265)],_0xdf3265;}[_0x455f('0x12')](_0x2082dc){return _0x455f('0x1')+this[_0x455f('0x3b')][_0x455f('0xb')][_0x455f('0x5')](_0x455f('0x3e'))[_0x455f('0x24')](_0x2082dc)[_0x455f('0xd')]()+_0x455f('0x39')+_0x2082dc[_0x455f('0xd')]()[_0x455f('0x2c')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x548a=['media','downcastDispatcher','_descriptionFactory','MediaEmbedEditing','stop','locale','div','plugins','editor','createEmptyElement','TrackChangesEditing','high','enableCommand','has','showSuggestionHighlights','data','conversion','for','ELEMENT_MEDIA','mediaEmbed'];(function(_0x3686ac,_0x548a4b){const _0x39fc88=function(_0x5e38c4){while(--_0x5e38c4){_0x3686ac['push'](_0x3686ac['shift']());}};_0x39fc88(++_0x548a4b);}(_0x548a,0x149));const _0x39fc=function(_0x3686ac,_0x548a4b){_0x3686ac=_0x3686ac-0x0;let _0x39fc88=_0x548a[_0x3686ac];return _0x39fc88;};import{Plugin as _0x334651}from'ckeditor5/src/core';import{getTranslation as _0x17ebe2}from'../utils/common-translations';export default class ot extends _0x334651{['afterInit'](){const _0x30cf9c=this[_0x39fc('0x13')];if(!_0x30cf9c['plugins'][_0x39fc('0x4')](_0x39fc('0xe')))return;const _0x52f744=_0x30cf9c[_0x39fc('0x12')]['get'](_0x39fc('0x1')),_0x2ec099=_0x30cf9c[_0x39fc('0x10')];_0x52f744[_0x39fc('0x3')](_0x39fc('0xa')),_0x52f744[_0x39fc('0xd')]['registerElementLabel'](_0x39fc('0xb'),_0x15ffda=>_0x17ebe2(_0x2ec099,_0x39fc('0x9'),_0x15ffda)),_0x30cf9c[_0x39fc('0x7')][_0x39fc('0x8')]('dataDowncast')['elementToElement']({'model':'media','view':(_0x39237a,{writer:_0x17a210,options:_0x36938f})=>{if(_0x36938f['showSuggestionHighlights'])return _0x17a210[_0x39fc('0x0')](_0x39fc('0x11'));},'converterPriority':_0x39fc('0x2')}),_0x30cf9c[_0x39fc('0x6')][_0x39fc('0xc')]['on']('attribute:url:media',(_0x4252d2,_0x58be8a,_0x54b1bf)=>{_0x54b1bf['options'][_0x39fc('0x5')]&&_0x4252d2[_0x39fc('0xf')]();},{'priority':_0x39fc('0x2')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3800=['afterInit','TrackChangesEditing','get','editor','enableCommand','MentionEditing','has','mention','plugins'];(function(_0x5c970a,_0x380007){const _0x1a3719=function(_0x1b71f3){while(--_0x1b71f3){_0x5c970a['push'](_0x5c970a['shift']());}};_0x1a3719(++_0x380007);}(_0x3800,0x1e9));const _0x1a37=function(_0x5c970a,_0x380007){_0x5c970a=_0x5c970a-0x0;let _0x1a3719=_0x3800[_0x5c970a];return _0x1a3719;};import{Plugin as _0x1936c7}from'ckeditor5/src/core';export default class rt extends _0x1936c7{[_0x1a37('0x6')](){const _0xd1e831=this[_0x1a37('0x0')];_0xd1e831[_0x1a37('0x5')][_0x1a37('0x3')](_0x1a37('0x2'))&&_0xd1e831[_0x1a37('0x5')][_0x1a37('0x8')](_0x1a37('0x7'))[_0x1a37('0x1')](_0x1a37('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e05=['ELEMENT_PAGE_BREAK','plugins','get','registerElementLabel','PageBreakEditing','has','TrackChangesEditing','pageBreak','enableCommand','locale','editor'];(function(_0x21eb1a,_0x4e0543){const _0x39503c=function(_0x43f0fe){while(--_0x43f0fe){_0x21eb1a['push'](_0x21eb1a['shift']());}};_0x39503c(++_0x4e0543);}(_0x4e05,0xf2));const _0x3950=function(_0x21eb1a,_0x4e0543){_0x21eb1a=_0x21eb1a-0x0;let _0x39503c=_0x4e05[_0x21eb1a];return _0x39503c;};import{Plugin as _0x20635f}from'ckeditor5/src/core';import{getTranslation as _0x56b7d2}from'../utils/common-translations';export default class at extends _0x20635f{['afterInit'](){const _0x560f06=this[_0x3950('0xa')];if(!_0x560f06['plugins'][_0x3950('0x5')](_0x3950('0x4')))return;_0x560f06[_0x3950('0x1')][_0x3950('0x2')](_0x3950('0x6'))[_0x3950('0x8')]('pageBreak');const _0x438289=_0x560f06[_0x3950('0x1')][_0x3950('0x2')](_0x3950('0x6')),_0x4cca0e=_0x560f06[_0x3950('0x9')];_0x438289['_descriptionFactory'][_0x3950('0x3')](_0x3950('0x7'),_0x38e80b=>_0x56b7d2(_0x4cca0e,_0x3950('0x0'),_0x38e80b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1393=['ck-suggestion-marker--active','commandName','plugins','start','span','locale','_descriptionFactory','options','writer','insert','name','createUIElement','editor','paragraph','addMarker:suggestion:insertion','addClass','editing','data','$text','filter','isTouching','parent','format','selection','schema','TrackChangesEditing','showSuggestionHighlights','from','end','afterInit','markerName','isBlock','registerElementLabel','highest','checkChild','registerDescriptionCallback','consume','getSelectedBlocks','*Insert:*\x20%0','get','model','insertParagraph','markBlockFormat','insertion','ELEMENT_PARAGRAPH','*Change\x20to:*\x20%0','enableCommand','includes','isObject','downcastDispatcher','nodeAfter','isLimit','markerRange','blockName','Paragraph','consumable'];(function(_0x409e79,_0x139327){const _0xf0e49=function(_0x1881aa){while(--_0x1881aa){_0x409e79['push'](_0x409e79['shift']());}};_0xf0e49(++_0x139327);}(_0x1393,0x173));const _0xf0e4=function(_0x409e79,_0x139327){_0x409e79=_0x409e79-0x0;let _0xf0e49=_0x1393[_0x409e79];return _0xf0e49;};import{Plugin as _0x2bd8e1}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5600a1}from'./utils';import{getTranslation as _0x3d57ca}from'../utils/common-translations';export default class ct extends _0x2bd8e1{[_0xf0e4('0x32')](){const _0x582cfb=this['editor'];if(!_0x582cfb['plugins']['has'](_0xf0e4('0x13')))return;const _0xbd549=_0x582cfb[_0xf0e4('0x1a')],_0x5ae4ee=_0x582cfb[_0xf0e4('0x17')][_0xf0e4('0x4')]('TrackChangesEditing');_0x5ae4ee[_0xf0e4('0x1b')][_0xf0e4('0x35')](_0xf0e4('0x22'),_0x2cf170=>_0x3d57ca(_0xbd549,_0xf0e4('0x9'),_0x2cf170)),_0x5ae4ee[_0xf0e4('0xb')]('paragraph',(_0x5b951b,_0x42bde9={})=>{const _0x3539b8=_0x582cfb[_0xf0e4('0x5')]['document'],_0x285b4f=_0x42bde9[_0xf0e4('0x2c')]||_0x3539b8[_0xf0e4('0x2c')],_0x4e23d4=Array[_0xf0e4('0x30')](_0x285b4f[_0xf0e4('0x2')]())[_0xf0e4('0x28')](_0x193c80=>function(_0x3d1b60,_0x367945){return _0x367945[_0xf0e4('0x37')](_0x3d1b60[_0xf0e4('0x2a')],_0xf0e4('0x22'))&&!_0x367945[_0xf0e4('0xd')](_0x3d1b60)&&'paragraph'!=_0x3d1b60[_0xf0e4('0x1f')];}(_0x193c80,this[_0xf0e4('0x21')][_0xf0e4('0x5')][_0xf0e4('0x2d')]));_0x582cfb[_0xf0e4('0x5')]['change'](()=>{for(const _0x1b6b1e of _0x4e23d4)_0x5ae4ee[_0xf0e4('0x7')](_0x1b6b1e,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0xf0e4('0x12')},_0x5600a1(_0x1b6b1e));});}),_0x5ae4ee[_0xf0e4('0x1b')][_0xf0e4('0x0')](_0x5cd253=>{const {data:_0x48e282}=_0x5cd253;if(_0x48e282&&_0xf0e4('0x22')==_0x48e282[_0xf0e4('0x16')])return{'type':_0xf0e4('0x2b'),'content':_0x3d57ca(_0xbd549,_0xf0e4('0xa'),_0x3d57ca(_0xbd549,'ELEMENT_PARAGRAPH'))};}),_0x5ae4ee['enableCommand'](_0xf0e4('0x6')),_0x582cfb[_0xf0e4('0x25')][_0xf0e4('0xe')]['on']('addMarker:suggestion:insertion',ar(_0x582cfb),{'priority':_0xf0e4('0x36')}),_0x582cfb[_0xf0e4('0x26')]['downcastDispatcher']['on'](_0xf0e4('0x23'),(_0x2f9e39,_0xf7a211,_0x417d62)=>{_0x417d62[_0xf0e4('0x1c')][_0xf0e4('0x2f')]&&ar(_0x582cfb,{'showActiveMarker':!0x1})(_0x2f9e39,_0xf7a211,_0x417d62);},{'priority':'highest'});const _0x2b2a6a=_0x5ae4ee[_0xf0e4('0x1b')];_0x2b2a6a[_0xf0e4('0x0')](_0x14c445=>{if(_0xf0e4('0x8')!==_0x14c445['type'])return;const {start:_0x9781cf,end:_0x529914}=_0x14c445['getFirstRange']();if(!_0x9781cf[_0xf0e4('0x29')](_0x529914)||!_0x9781cf[_0xf0e4('0xf')])return;const _0x329709=_0x582cfb['model'][_0xf0e4('0x2d')],_0x14c952=_0x9781cf[_0xf0e4('0xf')];return _0x329709[_0xf0e4('0x34')](_0x14c952)&&!_0x329709[_0xf0e4('0x10')](_0x14c952)&&_0x329709[_0xf0e4('0x37')](_0x14c952,_0xf0e4('0x27'))?{'type':'insertion','content':_0x3d57ca(_0xbd549,_0xf0e4('0x3'),_0x2b2a6a['getItemLabel'](_0x14c952,0x1))}:void 0x0;});}}function ar(_0x5aaee4,{showActiveMarker:_0x23be1f=!0x0}={}){return(_0x581ae7,_0x83c70c,_0x40e65d)=>{const _0x1003fa=_0x5aaee4['plugins'][_0xf0e4('0x4')](_0xf0e4('0x2e')),_0x363e9c=_0x83c70c['markerRange'][_0xf0e4('0x18')],_0x38c008=_0x83c70c[_0xf0e4('0x11')][_0xf0e4('0x31')],_0x3427e1=_0x5aaee4[_0xf0e4('0x5')][_0xf0e4('0x2d')];if(!_0x363e9c[_0xf0e4('0x29')](_0x38c008)||!_0x363e9c[_0xf0e4('0xf')])return;const _0xda5887=_0x363e9c[_0xf0e4('0xf')];if(_0x3427e1['isBlock'](_0xda5887)&&!_0x3427e1['isLimit'](_0xda5887)&&_0x3427e1['checkChild'](_0xda5887,_0xf0e4('0x27'))){if(!_0x40e65d[_0xf0e4('0x14')][_0xf0e4('0x1')](_0x83c70c[_0xf0e4('0x11')],_0x581ae7['name']))return;const _0x4f9dee=_0x40e65d[_0xf0e4('0x1d')][_0xf0e4('0x20')](_0xf0e4('0x19'),{'class':'ck-suggestion-marker-split'}),_0x518cf4=_0x40e65d['mapper']['toViewPosition'](_0x38c008);_0x23be1f&&_0x1003fa['activeMarkers'][_0xf0e4('0xc')](_0x83c70c[_0xf0e4('0x33')])&&_0x40e65d[_0xf0e4('0x1d')][_0xf0e4('0x24')](_0xf0e4('0x15'),_0x4f9dee),_0x40e65d[_0xf0e4('0x1d')][_0xf0e4('0x1e')](_0x518cf4,_0x4f9dee),_0x40e65d['mapper']['bindElementToMarker'](_0x4f9dee,_0x83c70c[_0xf0e4('0x33')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a69=['plugins','isFormatting','schema','change','markInlineFormat','document','_descriptionFactory','getAttributes','has','RemoveFormatEditing','get','commandName','getAttributeProperties','removeFormat','model','afterInit','editor','*Remove\x20all\x20formatting*','isCollapsed','locale'];(function(_0x531c24,_0x3a6912){const _0x366808=function(_0x5b4595){while(--_0x5b4595){_0x531c24['push'](_0x531c24['shift']());}};_0x366808(++_0x3a6912);}(_0x3a69,0x1c1));const _0x3668=function(_0x531c24,_0x3a6912){_0x531c24=_0x531c24-0x0;let _0x366808=_0x3a69[_0x531c24];return _0x366808;};import{Plugin as _0x5a1418}from'ckeditor5/src/core';import{getTranslation as _0x2021cb}from'../utils/common-translations';export default class ht extends _0x5a1418{[_0x3668('0x6')](){const _0x400e7f=this[_0x3668('0x7')];if(!_0x400e7f[_0x3668('0xb')][_0x3668('0x13')](_0x3668('0x0')))return;const _0x130129=_0x400e7f[_0x3668('0xb')][_0x3668('0x1')]('TrackChangesEditing');_0x130129['enableCommand'](_0x3668('0x4'),_0x52ee13=>{const _0x46e674=_0x400e7f[_0x3668('0x5')][_0x3668('0x10')]['selection'];_0x46e674[_0x3668('0x9')]?_0x52ee13():_0x400e7f['model'][_0x3668('0xe')](()=>{const _0x5dd6de=Array['from'](_0x46e674['getRanges']());for(const _0x341890 of _0x5dd6de)for(const _0x128ff3 of _0x341890['getItems']())eo(_0x128ff3,_0x400e7f[_0x3668('0x5')][_0x3668('0xd')])&&_0x130129[_0x3668('0xf')](_0x400e7f[_0x3668('0x5')]['createRangeOn'](_0x128ff3),{'commandName':_0x3668('0x4'),'commandParams':[]});});}),_0x130129[_0x3668('0x11')]['registerDescriptionCallback'](_0x281079=>{const {data:_0x54cd46}=_0x281079;if(_0x54cd46&&_0x3668('0x4')==_0x54cd46[_0x3668('0x2')])return{'type':'format','content':_0x2021cb(_0x400e7f[_0x3668('0xa')],_0x3668('0x8'))};});}}function eo(_0x3b3423,_0x4cdee1){for(const [_0x15c918]of _0x3b3423[_0x3668('0x12')]()){const _0x5d40ab=_0x4cdee1[_0x3668('0x3')](_0x15c918);if(_0x5d40ab&&_0x5d40ab[_0x3668('0xc')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x388a=['acceptSelectedSuggestions','TrackChangesEditing','discardSelectedSuggestions','get','enableCommand','plugins','RestrictedEditingModeEditing','goToNextRestrictedEditingException','editor','has','goToPreviousRestrictedEditingException','discardAllSuggestions','acceptSuggestion','trackChanges','discardSuggestion'];(function(_0x24184c,_0x388a43){const _0x5dcd90=function(_0x560386){while(--_0x560386){_0x24184c['push'](_0x24184c['shift']());}};_0x5dcd90(++_0x388a43);}(_0x388a,0xfb));const _0x5dcd=function(_0x24184c,_0x388a43){_0x24184c=_0x24184c-0x0;let _0x5dcd90=_0x388a[_0x24184c];return _0x5dcd90;};import{Plugin as _0x3bf0ff}from'ckeditor5/src/core';export default class ut extends _0x3bf0ff{['afterInit'](){const _0x4c6b51=this[_0x5dcd('0xc')];if(!_0x4c6b51['plugins'][_0x5dcd('0xd')](_0x5dcd('0xa')))return;const _0x1c107a=_0x4c6b51['plugins'][_0x5dcd('0x7')](_0x5dcd('0x5'));_0x1c107a[_0x5dcd('0x8')](_0x5dcd('0xe')),_0x1c107a[_0x5dcd('0x8')](_0x5dcd('0xb'));const _0x5341ab=_0x4c6b51[_0x5dcd('0x9')][_0x5dcd('0x7')](_0x5dcd('0xa'));_0x5341ab[_0x5dcd('0x8')](_0x5dcd('0x2')),_0x5341ab['enableCommand'](_0x5dcd('0x1')),_0x5341ab[_0x5dcd('0x8')](_0x5dcd('0x3')),_0x5341ab['enableCommand']('acceptAllSuggestions'),_0x5341ab[_0x5dcd('0x8')](_0x5dcd('0x0')),_0x5341ab['enableCommand'](_0x5dcd('0x4')),_0x5341ab[_0x5dcd('0x8')](_0x5dcd('0x6'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cc9=['init','locale','registerElementLabel','softBreak','editing','high','addMarker:suggestion','toViewPosition','plugins','options','downcastDispatcher','addMarker:suggestion:insertion','deletion','markerRange','writer','addMarker:suggestion:deletion','ck-suggestion-marker-','TrackChangesEditing','editor','activeMarkers','requires','name','showSuggestionHighlights','mapper','createPositionBefore','getItems','markerName','bindElementToMarker','span','split','data','enableCommand'];(function(_0x34c00b,_0x1cc9fc){const _0xf56f2b=function(_0x1036fb){while(--_0x1036fb){_0x34c00b['push'](_0x34c00b['shift']());}};_0xf56f2b(++_0x1cc9fc);}(_0x1cc9,0x141));const _0xf56f=function(_0x34c00b,_0x1cc9fc){_0x34c00b=_0x34c00b-0x0;let _0xf56f2b=_0x1cc9[_0x34c00b];return _0xf56f2b;};import{Plugin as _0x21127c}from'ckeditor5/src/core';import{ShiftEnter as _0x106669}from'ckeditor5/src/enter';import{getTranslation as _0x1dc090}from'../utils/common-translations';export default class ft extends _0x21127c{static get[_0xf56f('0x13')](){return[_0x106669];}[_0xf56f('0x1f')](){const _0x15cec9=this[_0xf56f('0x11')],_0x451389=_0x15cec9[_0xf56f('0x7')]['get'](_0xf56f('0x10'));_0x451389[_0xf56f('0x1e')]('shiftEnter'),_0x15cec9[_0xf56f('0x3')][_0xf56f('0x9')]['on'](_0xf56f('0xa'),re(_0x15cec9),{'priority':_0xf56f('0x4')}),_0x15cec9[_0xf56f('0x3')]['downcastDispatcher']['on'](_0xf56f('0xe'),re(_0x15cec9),{'priority':_0xf56f('0x4')}),_0x15cec9[_0xf56f('0x1d')][_0xf56f('0x9')]['on'](_0xf56f('0x5'),(_0xec6a3d,_0x3d439d,_0x47d44c)=>{_0x47d44c[_0xf56f('0x8')][_0xf56f('0x15')]&&re(_0x15cec9,{'showActiveMarker':!0x1})(_0xec6a3d,_0x3d439d,_0x47d44c);}),_0x451389['_descriptionFactory'][_0xf56f('0x1')](_0xf56f('0x2'),_0x2dfb52=>_0x1dc090(_0x15cec9[_0xf56f('0x0')],'ELEMENT_LINE_BREAK',_0x2dfb52));}}function re(_0x37060b,{showActiveMarker:_0x39d75b=!0x0}={}){return(_0x461a3f,_0xb01fa8,_0x3a5496)=>{const _0x43769f=_0x37060b[_0xf56f('0x7')]['get']('TrackChangesEditing');if(!_0x3a5496['consumable']['test'](_0xb01fa8[_0xf56f('0xc')],_0x461a3f[_0xf56f('0x14')]))return;const _0x34fd44=_0x37060b['model'];for(const _0x5333ec of _0xb01fa8[_0xf56f('0xc')][_0xf56f('0x18')]()){if(!_0x5333ec['is']('element',_0xf56f('0x2')))continue;const _0x23f25b=_0xf56f('0xb')==_0xb01fa8[_0xf56f('0x19')][_0xf56f('0x1c')](':')[0x1]?'merge':_0xf56f('0x1c'),_0x152166=_0x3a5496[_0xf56f('0xd')]['createUIElement'](_0xf56f('0x1b'),{'class':_0xf56f('0xf')+_0x23f25b}),_0x421c77=_0x3a5496[_0xf56f('0x16')][_0xf56f('0x6')](_0x34fd44[_0xf56f('0x17')](_0x5333ec));_0x39d75b&&_0x43769f[_0xf56f('0x12')]['includes'](_0xb01fa8[_0xf56f('0x19')])&&_0x3a5496[_0xf56f('0xd')]['addClass']('ck-suggestion-marker--active',_0x152166),_0x3a5496[_0xf56f('0xd')]['insert'](_0x421c77,_0x152166),_0x3a5496[_0xf56f('0x16')][_0xf56f('0x1a')](_0x152166,_0xb01fa8[_0xf56f('0x19')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x428d=['commandParams','selection','getRanges','enableCommand','restrictedEditingException','commandName','has','TrackChangesEditing','forceValue','markInlineFormat','FORMAT_RESTRICTED_DISABLED','change','value','locale','FORMAT_RESTRICTED_ENABLED','get','document','StandardEditingModeEditing','plugins'];(function(_0x49100b,_0x428da9){const _0x2dd83e=function(_0xe5a811){while(--_0xe5a811){_0x49100b['push'](_0x49100b['shift']());}};_0x2dd83e(++_0x428da9);}(_0x428d,0x197));const _0x2dd8=function(_0x49100b,_0x428da9){_0x49100b=_0x49100b-0x0;let _0x2dd83e=_0x428d[_0x49100b];return _0x2dd83e;};import{Plugin as _0x4cde83}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x593b2a}from'./utils';import{getTranslation as _0x47f730}from'../utils/common-translations';export default class lt extends _0x4cde83{['afterInit'](){const _0x51be6b=this['editor'],_0x2f6402=_0x51be6b['model'],_0x28f1b1=_0x51be6b[_0x2dd8('0x5')];if(!_0x51be6b[_0x2dd8('0xa')][_0x2dd8('0x11')](_0x2dd8('0x9')))return;const _0x1dd1b6=_0x51be6b['plugins'][_0x2dd8('0x7')](_0x2dd8('0x12')),_0x508a77=_0x2dd8('0xf'),_0x44ac03=_0x51be6b['commands'][_0x2dd8('0x7')](_0x508a77);_0x1dd1b6[_0x2dd8('0xe')](_0x508a77,(_0x56f58d,_0x406941={})=>{const _0x2b7b52=_0x2f6402[_0x2dd8('0x8')][_0x2dd8('0xc')];if(_0x2b7b52['isCollapsed'])return void _0x56f58d(_0x406941);const _0x416612=void 0x0!==_0x406941[_0x2dd8('0x0')]?_0x406941['forceValue']:!_0x44ac03[_0x2dd8('0x4')];_0x2f6402[_0x2dd8('0x3')](()=>{const _0x3089f5=Array['from'](_0x2b7b52[_0x2dd8('0xd')]());for(const _0x358796 of _0x3089f5){const _0x424900=_0x416612?[_0x358796]:_0x593b2a(_0x508a77,_0x358796,_0x2f6402);for(const _0x1f624f of _0x424900)_0x1dd1b6[_0x2dd8('0x1')](_0x1f624f,{'commandName':_0x508a77,'commandParams':[{'forceValue':_0x416612}]});}});}),_0x1dd1b6['_descriptionFactory']['registerDescriptionCallback'](_0x2d155a=>{const {data:_0x29068a}=_0x2d155a;if(_0x29068a&&_0x29068a[_0x2dd8('0x10')]==_0x508a77)return _0x29068a[_0x2dd8('0xb')][0x0]['forceValue']?{'type':'format','content':_0x47f730(_0x28f1b1,_0x2dd8('0x6'))}:{'type':'format','content':_0x47f730(_0x28f1b1,_0x2dd8('0x2'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ddd=['*Remove\x20format:*\x20%0','plugins','markBlockFormat','commands','element','forceValue','registerDescriptionCallback','includes','classes','DataSchema','commandParams','every','push','isBlock','block','_descriptionFactory','isCollapsed','styleName','find','style.definitions','from','style','getAttribute','name','change','locale','modelElements','*Format:*\x20%0','markInlineFormat','StyleUtils','TrackChangesEditing','model','_getStyleDefinition','get','toLowerCase','document','normalizeConfig','inline','getRanges','has','enabledStyles'];(function(_0x2a084e,_0x2dddb8){const _0x15e683=function(_0x67bb37){while(--_0x67bb37){_0x2a084e['push'](_0x2a084e['shift']());}};_0x15e683(++_0x2dddb8);}(_0x2ddd,0x114));const _0x15e6=function(_0x2a084e,_0x2dddb8){_0x2a084e=_0x2a084e-0x0;let _0x15e683=_0x2ddd[_0x2a084e];return _0x15e683;};import{Plugin as _0x18da84}from'ckeditor5/src/core';import{getTranslation as _0x2128a1}from'../utils/common-translations';export default class gt extends _0x18da84{['afterInit'](){const _0x57b3ea=this['editor'];if(!_0x57b3ea[_0x15e6('0xc')][_0x15e6('0x9')]('Style'))return;const _0x349679=_0x57b3ea[_0x15e6('0xe')]['get'](_0x15e6('0x20')),_0x2915e8=_0x57b3ea[_0x15e6('0xc')][_0x15e6('0x3')](_0x15e6('0x0')),_0x405918=_0x57b3ea[_0x15e6('0x24')],_0x444a48=_0x57b3ea[_0x15e6('0xc')][_0x15e6('0x3')](_0x15e6('0x14')),_0x2a7d5a=_0x57b3ea[_0x15e6('0xc')][_0x15e6('0x3')](_0x15e6('0x28'))[_0x15e6('0x6')](_0x444a48,_0x57b3ea['config'][_0x15e6('0x3')](_0x15e6('0x1e')));_0x2915e8['enableCommand'](_0x15e6('0x20'),(_0x55e7ce,{styleName:_0x1aab01})=>{const _0x5ac230=_0x57b3ea[_0x15e6('0x1')][_0x15e6('0x5')]['selection'],_0x145044=this[_0x15e6('0x2')](_0x1aab01,_0x2a7d5a);if(!_0x145044)return;if(!_0x349679[_0x15e6('0xa')][_0x15e6('0x12')](_0x1aab01))return;if(_0x5ac230[_0x15e6('0x1b')]&&!_0x145044[_0x15e6('0x18')])return void _0x55e7ce({'styleName':_0x1aab01});const _0x22d72c=!_0x349679['value']['includes'](_0x145044[_0x15e6('0x22')]);if(_0x145044[_0x15e6('0x18')]){const _0x2374e8=function(_0x4a54b8,_0x1fe825){const _0x55ace0=new Set();for(const _0x32d2c3 of _0x4a54b8){const _0x4080b1=_0x32d2c3['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x5676aa of _0x4080b1)if(_0x1fe825[_0x15e6('0x12')](_0x5676aa[_0x15e6('0x22')])){_0x55ace0['add'](_0x5676aa);break;}}return _0x55ace0;}(_0x5ac230['getSelectedBlocks'](),_0x145044[_0x15e6('0x25')]);_0x57b3ea['model'][_0x15e6('0x23')](()=>{for(const _0x2b0416 of _0x2374e8)_0x2915e8[_0x15e6('0xd')](_0x2b0416,{'commandName':_0x15e6('0x20'),'commandParams':[{'styleName':_0x1aab01,'forceValue':_0x22d72c}],'formatGroupId':'style:'+_0x1aab01});});}else{let _0xe2aa47=Array[_0x15e6('0x1f')](_0x5ac230[_0x15e6('0x8')]());if(!_0x22d72c){const _0x3dde53=Array[_0x15e6('0x1f')](_0x444a48['getDefinitionsForView'](_0x145044[_0x15e6('0xf')],!0x1))[0x0]['model'],_0x2d764e=[];for(const _0x44a565 of _0xe2aa47){const _0x4ad908=this['_getRangesWithClasses'](_0x57b3ea[_0x15e6('0x1')],_0x44a565,_0x145044[_0x15e6('0x13')],_0x3dde53);_0x2d764e[_0x15e6('0x17')](..._0x4ad908);}_0xe2aa47=_0x2d764e;}_0x57b3ea['model']['change'](()=>{for(const _0x56b354 of _0xe2aa47)_0x2915e8[_0x15e6('0x27')](_0x56b354,{'commandName':_0x15e6('0x20'),'commandParams':[{'styleName':_0x1aab01,'forceValue':_0x22d72c}]});});}}),_0x2915e8[_0x15e6('0x1a')][_0x15e6('0x11')](_0x5d6f99=>{const {data:_0x33c9ed}=_0x5d6f99;if(_0x33c9ed&&_0x15e6('0x20')===_0x33c9ed['commandName'])return _0x33c9ed[_0x15e6('0x15')][0x0][_0x15e6('0x10')]?{'type':'format','content':_0x2128a1(_0x405918,_0x15e6('0x26'),_0x33c9ed[_0x15e6('0x15')][0x0][_0x15e6('0x1c')][_0x15e6('0x4')]())}:{'type':'format','content':_0x2128a1(_0x405918,_0x15e6('0xb'),_0x33c9ed['commandParams'][0x0][_0x15e6('0x1c')][_0x15e6('0x4')]())};});}[_0x15e6('0x2')](_0x19576a,_0x775da5){let _0x5750f5=_0x775da5[_0x15e6('0x19')]['find'](_0x40110e=>_0x40110e[_0x15e6('0x22')]===_0x19576a);return _0x5750f5||(_0x5750f5=_0x775da5[_0x15e6('0x7')][_0x15e6('0x1d')](_0x29c44e=>_0x29c44e['name']===_0x19576a)),_0x5750f5;}['_getRangesWithClasses'](_0x3d70ff,_0x2a134,_0x59e15f,_0x42deef){const _0x410838=[];for(const _0x3e7285 of _0x2a134['getItems']()){const _0x1c2bca=_0x3e7285[_0x15e6('0x21')](_0x42deef);_0x1c2bca&&(_0x59e15f[_0x15e6('0x16')](_0x312539=>_0x1c2bca['classes'][_0x15e6('0x12')](_0x312539))&&_0x410838['push'](_0x3d70ff['createRangeOn'](_0x3e7285)));}return _0x410838;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1aae=['name','change','ELEMENT_TABLE','ELEMENT_TABLE_ROW_WITH_TEXT','TrackChangesEditing','*Insert:*\x20%0','data','maxRow','forceValue','getChildren','showSuggestionHighlights','deletion','_setupColumnsRowsFixing','span','add','first','getSelectionAffectedTableCells','selection','insertion','registerPostFixer','left','registerElementLabel','$graveyard','start','tableRow','type','suggestion','isTouching','substr','setSelection','model','editor','every','commands','_getCoordsForCells','hasAttribute','some','filter','table','root','markMultiRangeDeletion','map','_getSuggestionCoords','ELEMENT_TABLE_COLUMN_WITH_TEXT','insertTableColumnRight','differ','length','low','isInContent','tableCell','last','min','getRanges','position','registerCustomCallback','ELEMENT_TABLE_ROW','getAttribute','getChanges','tablePaste','ELEMENT_TABLE_COLUMN','removeTableRow','isArray','getContainedElement','mapper','join','_acceptFormatSuggestionCallbackFactory','rootName','registerDescriptionCallback','max','has','discard','fromRange','toLowerCase','locale','removeClass','_descriptionFactory','minColumn','_tableSuggestions','getFirstRange','findAncestor','values','$textProxy','isEqual','*Remove:*\x20%0','colspan','cell','insertTable','subType','MIN_SAFE_INTEGER','startsWith','includes','oldRange','batch','change:data','addClass','markMultiRangeInsertion','TableUtils','createRangeIn','options','tableColumn','createTableWalker','_tablePostFixingSubtypes','rowspan','maxColumn','document','_splitMarkerName','detach','enqueueChange','TableEditing','nodeAfter','order','refresh','end','getChangedMarkers','createRangeOn','get','accept','insertTableRowBelow','getCellLocation','downcastDispatcher','enableCommand','classes','addRange','getItems','nodeBefore','execute','toViewElement','push','from','addMarker:suggestion','above','MAX_SAFE_INTEGER','_suggestionFactory','plugins','removeTableColumn','getSuggestion','item','getColumnIndexes','insert','createPositionAt','ELEMENT_TABLE_WITH_TEXT','getRowIndexes','element'];(function(_0x3193ab,_0x1aae13){const _0xdc551d=function(_0xe31e60){while(--_0xe31e60){_0x3193ab['push'](_0x3193ab['shift']());}};_0xdc551d(++_0x1aae13);}(_0x1aae,0x134));const _0xdc55=function(_0x3193ab,_0x1aae13){_0x3193ab=_0x3193ab-0x0;let _0xdc551d=_0x1aae[_0x3193ab];return _0xdc551d;};import{Plugin as _0x1d5778}from'ckeditor5/src/core';import{LiveRange as _0x5ac9c6}from'ckeditor5/src/engine';import{setHighlightHandling as _0x31dce9}from'ckeditor5/src/widget';import{getTranslation as _0x227f47}from'../utils/common-translations';export default class mt extends _0x1d5778{constructor(_0x3b7c95){super(_0x3b7c95),this[_0xdc55('0x4f')]=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x352159=this[_0xdc55('0x9')],_0x1a828c=_0x352159[_0xdc55('0x8')][_0xdc55('0x52')][_0xdc55('0x8a')];if(!_0x352159['plugins'][_0xdc55('0x2f')](_0xdc55('0x56')))return;const _0x3e52a3=_0x352159[_0xdc55('0x33')],_0x4dbdb8=_0x352159[_0xdc55('0x6f')][_0xdc55('0x5d')](_0xdc55('0x7d')),_0x58cc45=_0x352159['plugins'][_0xdc55('0x5d')](_0xdc55('0x4a'));_0x4dbdb8[_0xdc55('0x35')][_0xdc55('0x8e')]('table',_0x28e195=>_0x227f47(_0x3e52a3,_0xdc55('0x7b'),_0x28e195)),this[_0xdc55('0x85')](),_0x4dbdb8[_0xdc55('0x62')](_0xdc55('0x40')),_0x4dbdb8[_0xdc55('0x62')]('selectTableRow'),_0x4dbdb8[_0xdc55('0x62')]('selectTableColumn');for(const _0x26e2cc of['insertTableRowAbove',_0xdc55('0x5f')]){const _0x630854=_0x352159[_0xdc55('0xb')]['get'](_0x26e2cc);_0x4dbdb8[_0xdc55('0x62')](_0x26e2cc,_0x55f690=>{_0x352159[_0xdc55('0x8')][_0xdc55('0x7a')](_0x47e527=>{_0x55f690();const _0x1bf373=_0xdc55('0x6c')===_0x630854[_0xdc55('0x58')],_0x57619b=_0x58cc45[_0xdc55('0x89')](_0x1a828c),_0x5e1a20=_0x58cc45['getRowIndexes'](_0x57619b),_0x5a78f6=_0x1bf373?_0x5e1a20['first']-0x1:_0x5e1a20['last']+0x1,_0x3e034a=_0x57619b[0x0][_0xdc55('0x39')](_0xdc55('0x10')),_0x21635f=_0x58cc45['createTableWalker'](_0x3e034a,{'startRow':_0x5a78f6,'endRow':_0x5a78f6}),_0x503b06=Array[_0xdc55('0x6a')](_0x21635f)['map'](_0x26435e=>_0x47e527[_0xdc55('0x5c')](_0x26435e[_0xdc55('0x3f')]));_0x4dbdb8[_0xdc55('0x49')](_0x503b06,'tableRow');});});}for(const _0x46c653 of['insertTableColumnLeft',_0xdc55('0x16')]){const _0x97f6d8=_0x352159['commands'][_0xdc55('0x5d')](_0x46c653);_0x4dbdb8[_0xdc55('0x62')](_0x46c653,_0x3e4018=>{_0x352159[_0xdc55('0x8')][_0xdc55('0x7a')](_0x2dc3b8=>{_0x3e4018();const _0x1dee6f=_0xdc55('0x8d')===_0x97f6d8[_0xdc55('0x58')],_0x4026df=_0x58cc45['getSelectionAffectedTableCells'](_0x1a828c),_0xd01f88=_0x58cc45['getColumnIndexes'](_0x4026df),_0x1014af=_0x1dee6f?_0xd01f88[_0xdc55('0x88')]-0x1:_0xd01f88[_0xdc55('0x1c')]+0x1,_0x445fda=_0x4026df[0x0]['findAncestor']('table'),_0x3648fe=_0x58cc45[_0xdc55('0x4e')](_0x445fda,{'startRow':0x0,'column':_0x1014af,'includeAllSlots':!0x1}),_0xa0bee3=Array[_0xdc55('0x6a')](_0x3648fe)[_0xdc55('0x13')](_0x31fc38=>_0x2dc3b8[_0xdc55('0x5c')](_0x31fc38[_0xdc55('0x3f')]));_0x4dbdb8[_0xdc55('0x49')](_0xa0bee3,_0xdc55('0x4d'));});});}for(const _0x1e69a3 of[_0xdc55('0x26'),_0xdc55('0x70')]){const _0x576d1d=_0x1e69a3[_0xdc55('0x6')](0xb),_0x3d5d60=_0x576d1d['toLowerCase'](),_0x11e442=_0x3d5d60[_0xdc55('0x6')](0x0,0x3)+_0xdc55('0x86'),_0x3b543c=_0xdc55('0x10')+_0x576d1d,_0x1cf75a=_0xdc55('0x1d')+_0x576d1d,_0x36bca2=_0xdc55('0x2e')+_0x576d1d;_0x4dbdb8[_0xdc55('0x62')](_0x1e69a3,()=>{_0x352159['model'][_0xdc55('0x7a')](_0x27e9fd=>{const _0x59c26e=_0x58cc45[_0xdc55('0x89')](_0x1a828c),_0x5c8ffe=_0x59c26e[0x0]['findAncestor'](_0xdc55('0x10'));let _0x9be735;if(_0xdc55('0x26')==_0x1e69a3){const _0x1b7237=_0x58cc45[_0xdc55('0x77')](_0x59c26e);_0x9be735={'startRow':_0x1b7237[_0xdc55('0x88')],'endRow':_0x1b7237[_0xdc55('0x1c')],'includeAllSlots':!0x0};}else{const _0x5b7f13=_0x58cc45[_0xdc55('0x73')](_0x59c26e);_0x9be735={'startColumn':_0x5b7f13['first'],'endColumn':_0x5b7f13[_0xdc55('0x1c')],'includeAllSlots':!0x0};}const _0x371bbe=_0x58cc45[_0xdc55('0x4e')](_0x5c8ffe,_0x9be735),_0x458d3d=Array[_0xdc55('0x6a')](_0x371bbe)[_0xdc55('0x13')](({cell:_0x186622})=>_0x186622),_0x6e8820=se(_0x458d3d[_0xdc55('0xf')](_0x1cdab0=>_0x1cdab0[_0xdc55('0xd')](_0x11e442))),_0x2e0388=se(_0x458d3d[_0xdc55('0xf')](_0x5e1c76=>!_0x5e1c76[_0xdc55('0xd')](_0x11e442)))['map'](_0x417cfb=>_0x27e9fd[_0xdc55('0x5c')](_0x417cfb)),_0x219268=_0x4dbdb8[_0xdc55('0x12')](_0x2e0388,_0x3b543c);if(_0x219268&&(_0xdc55('0x2')==_0x219268['subType']||_0xdc55('0x4d')==_0x219268[_0xdc55('0x41')])){const _0xb18758=this['_getSuggestionCoords'](_0x219268);for(const _0x410299 of _0x6e8820){const _0x5c7e4d=_0x27e9fd['createRangeOn'](_0x410299),_0x77590c=_0x58cc45[_0xdc55('0x60')](_0x410299),_0x11a4af=_0x410299['getAttribute'](_0x11e442)-0x1,_0x44fe18=_0xb18758[_0x1cf75a],_0x5b33e4=_0xb18758[_0x36bca2];_0x44fe18<=_0x77590c[_0x3d5d60]&&_0x77590c[_0x3d5d60]+_0x11a4af<=_0x5b33e4&&_0x219268[_0xdc55('0x64')](_0x5c7e4d);}}});});}function _0x5860fa(_0x10d6ea){const _0x3625e7=Array[_0xdc55('0x6a')](_0x1a828c[_0xdc55('0x1e')]())[_0xdc55('0x13')](_0x50b6dc=>_0x5ac9c6['fromRange'](_0x50b6dc));_0x352159[_0xdc55('0x8')][_0xdc55('0x7a')](_0x5bedd3=>{const _0x426415=_0x5bedd3[_0xdc55('0x46')];_0x10d6ea=_0x10d6ea[_0xdc55('0xf')](_0x1efda3=>_0xdc55('0x0')!=_0x1efda3['root']['rootName']),_0x5bedd3[_0xdc55('0x7')](_0x10d6ea),_0x352159[_0xdc55('0xb')][_0xdc55('0x5d')](_0xdc55('0x26'))['refresh'](),_0x352159[_0xdc55('0x67')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x352159[_0xdc55('0x8')][_0xdc55('0x55')](()=>{_0x352159['model'][_0xdc55('0x55')](_0x426415,_0x1a4219=>{const _0x36d440=_0x3625e7[_0xdc55('0xf')](_0x11a21b=>_0xdc55('0x0')!=_0x11a21b[_0xdc55('0x11')][_0xdc55('0x2c')]);_0x36d440[_0xdc55('0x18')]>0x0&&_0x1a4219[_0xdc55('0x7')](_0x36d440);for(const _0x1e13c5 of _0x3625e7)_0x1e13c5[_0xdc55('0x54')]();});});});}function _0x3d7406(_0xcfd39d){_0x352159[_0xdc55('0x8')][_0xdc55('0x7a')](_0x1b93fe=>{const _0x4b3ead=Array[_0xdc55('0x6a')](_0x1a828c[_0xdc55('0x1e')]())['map'](_0x35eec4=>_0x5ac9c6['fromRange'](_0x35eec4)),_0x39ad69=[];for(const _0x8b6589 of _0xcfd39d)for(const _0x251523 of _0x8b6589[_0xdc55('0x65')]({'shallow':!0x0}))_0x39ad69['push'](_0x251523);for(const _0x14b3ba of _0x39ad69)_0xdc55('0x0')!=_0x14b3ba[_0xdc55('0x11')][_0xdc55('0x2c')]&&(_0x1b93fe[_0xdc55('0x7')](_0x1b93fe[_0xdc55('0x75')](_0x14b3ba,0x0)),_0x352159['commands'][_0xdc55('0x5d')]('removeTableColumn')[_0xdc55('0x59')](),_0x352159[_0xdc55('0x67')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x53c95f=_0x4b3ead['filter'](_0x1f2e43=>_0xdc55('0x0')!=_0x1f2e43['root'][_0xdc55('0x2c')]);_0x53c95f[_0xdc55('0x18')]>0x0&&_0x1b93fe[_0xdc55('0x7')](_0x53c95f);for(const _0x5af628 of _0x4b3ead)_0x5af628[_0xdc55('0x54')]();});}function _0x2c31a8(_0x99fec7,_0x4d21e8){return _0x4d21e8[_0xdc55('0xa')](_0xf0893e=>_0x99fec7[_0xdc55('0xe')](_0x4354a4=>_0x4354a4['end'][_0xdc55('0x3c')](_0xf0893e[_0xdc55('0x1')])||_0xf0893e[_0xdc55('0x5a')][_0xdc55('0x3c')](_0x4354a4['start'])));}function _0x5d055d(_0x1bcd8e,_0x12a4b2){return _0x1bcd8e[_0xdc55('0xe')](_0x53dcbe=>_0x12a4b2[_0xdc55('0xe')](_0x240669=>_0x53dcbe['end'][_0xdc55('0x5')](_0x240669['start'])));}_0x352159['data'][_0xdc55('0x61')]['on'](_0xdc55('0x6b'),(_0x1e609d,_0x10bc88,_0x3fdcc0)=>{if(!_0x3fdcc0[_0xdc55('0x4c')][_0xdc55('0x83')])return;const _0x2f387a=_0x10bc88[_0xdc55('0x72')];if(!_0x2f387a)return;const _0x332a3c=_0x3fdcc0[_0xdc55('0x29')][_0xdc55('0x68')](_0x2f387a);function _0x399d9e(_0x31bbdb){return Array[_0xdc55('0x27')](_0x31bbdb)?_0x31bbdb:[_0x31bbdb];}_0x332a3c&&'tableCell'===_0x2f387a[_0xdc55('0x79')]&&_0x31dce9(_0x332a3c,_0x3fdcc0['writer'],(_0x59b83e,_0x9d8bc9,_0x5136f0)=>_0x5136f0[_0xdc55('0x48')](_0x399d9e(_0x9d8bc9[_0xdc55('0x63')]),_0x59b83e),(_0x1b353a,_0x40e1de,_0x1d3ae0)=>_0x1d3ae0[_0xdc55('0x34')](_0x399d9e(_0x40e1de[_0xdc55('0x63')]),_0x1b353a));},{'priority':'highest'}),_0x4dbdb8[_0xdc55('0x35')]['registerDescriptionCallback'](_0x31d538=>{if('insertion'!=_0x31d538[_0xdc55('0x3')]&&_0xdc55('0x84')!=_0x31d538['type'])return;const _0x3ff4a9=_0x31d538[_0xdc55('0x28')]();if(null!=_0x3ff4a9&&_0x3ff4a9['is'](_0xdc55('0x78'),_0xdc55('0x10'))){if(_0xdc55('0x8b')==_0x31d538[_0xdc55('0x3')]){const _0x3c4da6=_0x31d538['getItems']()[_0xdc55('0xf')](_0x20e232=>_0x20e232['is'](_0xdc55('0x3b')))[_0xdc55('0x13')](_0x1bec64=>_0x1bec64['data']);if(_0x3c4da6['length'])return{'type':_0xdc55('0x8b'),'content':_0x227f47(_0x3e52a3,_0xdc55('0x7e'),_0x227f47(_0x3e52a3,_0xdc55('0x76'),'\x22'+_0x3c4da6['join']('\x20')+'\x22'))};}if(_0xdc55('0x84')==_0x31d538[_0xdc55('0x3')]){const _0x449dfa=_0x31d538[_0xdc55('0x65')]()[_0xdc55('0xf')](_0x84f045=>_0x84f045['is'](_0xdc55('0x3b')))['map'](_0x26f6c6=>_0x26f6c6[_0xdc55('0x7f')]);if(_0x449dfa[_0xdc55('0x18')])return{'type':_0xdc55('0x84'),'content':_0x227f47(_0x3e52a3,_0xdc55('0x3d'),_0x227f47(_0x3e52a3,_0xdc55('0x76'),'\x22'+_0x449dfa[_0xdc55('0x2a')]('\x20')+'\x22'))};}}}),_0x4dbdb8[_0xdc55('0x35')][_0xdc55('0x2d')](_0x1d9594=>{if(_0xdc55('0x2')==_0x1d9594['subType']){const _0x4ccfa2=_0x1d9594['getItems']()['filter'](_0x133386=>_0x133386['is'](_0xdc55('0x3b')))[_0xdc55('0x13')](_0x6cfbeb=>_0x6cfbeb['data']),_0x47f18c=this[_0xdc55('0x14')](_0x1d9594),_0x49653b=_0x47f18c[_0xdc55('0x80')]-_0x47f18c['minRow']+0x1;if(_0xdc55('0x8b')==_0x1d9594[_0xdc55('0x3')])return _0x4ccfa2[_0xdc55('0x18')]?{'type':_0xdc55('0x8b'),'content':_0x227f47(_0x3e52a3,'*Insert:*\x20%0',_0x227f47(_0x3e52a3,_0xdc55('0x7c'),[_0x49653b,'\x22'+_0x4ccfa2[_0xdc55('0x2a')]('\x20')+'\x22']))}:{'type':_0xdc55('0x8b'),'content':_0x227f47(_0x3e52a3,_0xdc55('0x7e'),_0x227f47(_0x3e52a3,'ELEMENT_TABLE_ROW',_0x49653b))};if(_0xdc55('0x84')==_0x1d9594[_0xdc55('0x3')])return _0x4ccfa2[_0xdc55('0x18')]?{'type':_0xdc55('0x84'),'content':_0x227f47(_0x3e52a3,'*Remove:*\x20%0',_0x227f47(_0x3e52a3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49653b,'\x22'+_0x4ccfa2[_0xdc55('0x2a')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x227f47(_0x3e52a3,_0xdc55('0x3d'),_0x227f47(_0x3e52a3,_0xdc55('0x21'),_0x49653b))};}if(_0xdc55('0x4d')==_0x1d9594['subType']){const _0x3ad8ba=_0x1d9594[_0xdc55('0x65')]()[_0xdc55('0xf')](_0x2aa340=>_0x2aa340['is']('$textProxy'))[_0xdc55('0x13')](_0x14094c=>_0x14094c[_0xdc55('0x7f')]),_0x4b7470=this['_getSuggestionCoords'](_0x1d9594),_0x23f622=_0x4b7470[_0xdc55('0x51')]-_0x4b7470[_0xdc55('0x36')]+0x1;if(_0xdc55('0x8b')==_0x1d9594[_0xdc55('0x3')])return _0x3ad8ba['length']?{'type':_0xdc55('0x8b'),'content':_0x227f47(_0x3e52a3,_0xdc55('0x7e'),_0x227f47(_0x3e52a3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23f622,'\x22'+_0x3ad8ba['join']('\x20')+'\x22']))}:{'type':_0xdc55('0x8b'),'content':_0x227f47(_0x3e52a3,_0xdc55('0x7e'),_0x227f47(_0x3e52a3,_0xdc55('0x25'),_0x23f622))};if(_0xdc55('0x84')==_0x1d9594['type'])return _0x3ad8ba['length']?{'type':_0xdc55('0x84'),'content':_0x227f47(_0x3e52a3,'*Remove:*\x20%0',_0x227f47(_0x3e52a3,_0xdc55('0x15'),[_0x23f622,'\x22'+_0x3ad8ba[_0xdc55('0x2a')]('\x20')+'\x22']))}:{'type':_0xdc55('0x84'),'content':_0x227f47(_0x3e52a3,_0xdc55('0x3d'),_0x227f47(_0x3e52a3,_0xdc55('0x25'),_0x23f622))};}}),_0x4dbdb8[_0xdc55('0x6e')][_0xdc55('0x20')](_0xdc55('0x8b'),'tableRow','discard',_0x5860fa),_0x4dbdb8['_suggestionFactory'][_0xdc55('0x20')]('deletion',_0xdc55('0x2'),'accept',_0x5860fa),_0x4dbdb8[_0xdc55('0x6e')][_0xdc55('0x20')](_0xdc55('0x8b'),'tableColumn',_0xdc55('0x30'),_0x3d7406),_0x4dbdb8[_0xdc55('0x6e')][_0xdc55('0x20')](_0xdc55('0x84'),_0xdc55('0x4d'),_0xdc55('0x5e'),_0x3d7406),_0x4dbdb8[_0xdc55('0x6e')][_0xdc55('0x20')]('insertion','tableColumn','join',_0x2c31a8),_0x4dbdb8[_0xdc55('0x6e')][_0xdc55('0x20')](_0xdc55('0x84'),'tableColumn',_0xdc55('0x2a'),_0x2c31a8),_0x4dbdb8[_0xdc55('0x6e')]['registerCustomCallback'](_0xdc55('0x8b'),'tableRow','join',_0x5d055d),_0x4dbdb8[_0xdc55('0x6e')][_0xdc55('0x20')](_0xdc55('0x84'),_0xdc55('0x2'),'join',_0x5d055d);}[_0xdc55('0x2b')](){const _0x301e81=this['editor'],_0x2313b2=_0x301e81['model'][_0xdc55('0x52')][_0xdc55('0x8a')];return(_0x2276b4,_0x2b03cf)=>{_0x301e81[_0xdc55('0x8')][_0xdc55('0x7a')](_0x56548a=>{const {commandName:_0x328ea3,commandParams:_0x2365d4}=_0x2b03cf;let _0xf8d006=_0x2276b4[0x0][_0xdc55('0x5a')][_0xdc55('0x66')];_0x2365d4&&_0x2365d4[0x0]&&!0x1===_0x2365d4[0x0][_0xdc55('0x81')]&&(_0xf8d006=_0x2276b4[0x0]['start'][_0xdc55('0x57')]);const _0x3afd51=_0x56548a[_0xdc55('0x4b')](_0xf8d006);if(_0xdc55('0x0')==_0x3afd51[_0xdc55('0x11')][_0xdc55('0x2c')])return;const _0x8d3162=Array[_0xdc55('0x6a')](_0x2313b2[_0xdc55('0x1e')]())[_0xdc55('0x13')](_0x378ad6=>_0x5ac9c6[_0xdc55('0x31')](_0x378ad6));_0x56548a['setSelection'](_0x3afd51),_0x301e81[_0xdc55('0xb')][_0xdc55('0x5d')](_0x328ea3)[_0xdc55('0x59')](),_0x2365d4[_0xdc55('0x69')]({'forceDefaultExecution':!0x0}),_0x301e81[_0xdc55('0x67')](_0x328ea3,..._0x2365d4);const _0x89f8e5=_0x8d3162['filter'](_0x2f4a20=>_0xdc55('0x0')!=_0x2f4a20[_0xdc55('0x11')][_0xdc55('0x2c')]);_0x89f8e5[_0xdc55('0x18')]>0x0&&_0x56548a[_0xdc55('0x7')](_0x89f8e5);for(const _0x539253 of _0x8d3162)_0x539253[_0xdc55('0x54')]();});};}[_0xdc55('0xc')](_0x586be7){const _0x255b44=this['editor'][_0xdc55('0x6f')][_0xdc55('0x5d')](_0xdc55('0x4a'));let _0x5a966f=Number['MAX_SAFE_INTEGER'],_0x445c5b=Number['MIN_SAFE_INTEGER'],_0x1bb7af=Number[_0xdc55('0x6d')],_0x283c02=Number[_0xdc55('0x42')];for(const _0x3bbeb0 of _0x586be7){if(_0xdc55('0x0')==_0x3bbeb0[_0xdc55('0x11')][_0xdc55('0x2c')])continue;const {row:_0x4e71d0,column:_0x1fb62a}=_0x255b44[_0xdc55('0x60')](_0x3bbeb0),_0x2f6f9b=_0x3bbeb0[_0xdc55('0xd')]('rowspan')?_0x3bbeb0[_0xdc55('0x22')](_0xdc55('0x50'))-0x1:0x0,_0x55daf1=_0x3bbeb0[_0xdc55('0xd')](_0xdc55('0x3e'))?_0x3bbeb0['getAttribute']('colspan')-0x1:0x0;_0x5a966f=_0x4e71d0<_0x5a966f?_0x4e71d0:_0x5a966f,_0x445c5b=_0x4e71d0+_0x2f6f9b>_0x445c5b?_0x4e71d0+_0x2f6f9b:_0x445c5b,_0x1bb7af=_0x1fb62a<_0x1bb7af?_0x1fb62a:_0x1bb7af,_0x283c02=_0x1fb62a+_0x55daf1>_0x283c02?_0x1fb62a+_0x55daf1:_0x283c02;}return{'minRow':_0x5a966f,'maxRow':_0x445c5b,'minColumn':_0x1bb7af,'maxColumn':_0x283c02};}[_0xdc55('0x85')](){const _0x164895=this[_0xdc55('0x9')],_0x3161d9=_0x164895[_0xdc55('0x6f')][_0xdc55('0x5d')]('TrackChangesEditing'),_0x15b2a9=_0x164895[_0xdc55('0x6f')]['get']('TableUtils');_0x164895['model'][_0xdc55('0x52')]['on'](_0xdc55('0x47'),()=>{const _0x2aae38=Array['from'](_0x164895[_0xdc55('0x8')][_0xdc55('0x52')][_0xdc55('0x17')][_0xdc55('0x5b')]());for(const {name:_0x5c28cd,data:_0x15af16}of _0x2aae38){const {group:_0x39ced4,id:_0x560fe9,subType:_0x3ce02c}=_0x3161d9[_0xdc55('0x53')](_0x5c28cd);if(_0xdc55('0x4')!=_0x39ced4)continue;if(null!=_0x15af16[_0xdc55('0x45')])continue;const _0x2cb70f=_0x3161d9[_0xdc55('0x71')](_0x560fe9);this[_0xdc55('0x4f')][_0xdc55('0x44')](_0x3ce02c)&&this[_0xdc55('0x37')][_0xdc55('0x87')](_0x2cb70f);}},{'priority':_0xdc55('0x19')});const _0x32feb8=(_0x3c08b5,_0x287aed)=>{let _0x18821a=!0x1;const _0x698e0d=_0x287aed[_0xdc55('0x5c')](_0x3c08b5),_0x59ca9c=_0x3c08b5[_0xdc55('0x39')]('table'),_0x54ba3c=_0x15b2a9[_0xdc55('0x60')](_0x3c08b5);for(const _0x640930 of this['_tableSuggestions']){const _0x2e5049=_0x640930[_0xdc55('0x41')],_0x5a37f9=_0x2e5049[_0xdc55('0x43')](_0xdc55('0x24')),_0x55382a=_0x2e5049[_0xdc55('0x6')](_0x5a37f9?0xa:0x5),_0x49a3e2=_0x55382a[_0xdc55('0x32')](),_0x6422b0=_0x49a3e2[_0xdc55('0x6')](0x0,0x3)+_0xdc55('0x86'),_0x3134df=_0xdc55('0x1d')+_0x55382a,_0x4e7e4b=_0xdc55('0x2e')+_0x55382a;if(!_0x640930[_0xdc55('0x1a')])continue;if(_0x59ca9c!=_0x640930[_0xdc55('0x38')]()[_0xdc55('0x1')][_0xdc55('0x39')]('table'))continue;if(_0x640930['isIntersectingWithRange'](_0x698e0d))continue;const _0x1d68d3=_0x3c08b5[_0xdc55('0xd')](_0x6422b0)?_0x3c08b5[_0xdc55('0x22')](_0x6422b0)-0x1:0x0,_0x12abd2=this[_0xdc55('0x14')](_0x640930),_0x23bdab=_0x12abd2[_0x3134df],_0x51ca83=_0x12abd2[_0x4e7e4b];_0x23bdab<=_0x54ba3c[_0x49a3e2]&&_0x54ba3c[_0x49a3e2]+_0x1d68d3<=_0x51ca83&&(_0x640930[_0xdc55('0x64')](_0x698e0d),_0x18821a=!0x0);}return _0x18821a;};_0x164895[_0xdc55('0x8')]['document'][_0xdc55('0x8c')](_0x24369e=>{let _0x3c5aa3=!0x1;for(const _0x479c1f of _0x164895[_0xdc55('0x8')]['document'][_0xdc55('0x17')][_0xdc55('0x23')]())if(_0xdc55('0x74')==_0x479c1f['type']){if(_0xdc55('0x2')==_0x479c1f[_0xdc55('0x79')])for(const _0x3a6c71 of _0x479c1f[_0xdc55('0x1f')][_0xdc55('0x57')][_0xdc55('0x82')]())_0x3c5aa3=_0x3c5aa3||_0x32feb8(_0x3a6c71,_0x24369e);else _0xdc55('0x1b')==_0x479c1f[_0xdc55('0x79')]&&(_0x3c5aa3=_0x3c5aa3||_0x32feb8(_0x479c1f[_0xdc55('0x1f')][_0xdc55('0x57')],_0x24369e));}return _0x3c5aa3;});}[_0xdc55('0x14')](_0x588130){return this['_getCoordsForCells'](_0x588130[_0xdc55('0x1e')]()[_0xdc55('0x13')](_0x59239b=>_0x59239b['start'][_0xdc55('0x57')]));}}function se(_0x362a02){return Array[_0xdc55('0x6a')](new Set(_0x362a02)[_0xdc55('0x3a')]());}
|
|
23
|
+
const _0x108e=['left','getFirstRange','downcastDispatcher','document','ELEMENT_TABLE_WITH_TEXT','_tableSuggestions','max','TableUtils','insert','change','_tablePostFixingSubtypes','ELEMENT_TABLE','selectTableColumn','TrackChangesEditing','suggestion','toViewElement','selection','join','commands','rowspan','hasAttribute','$textProxy','get','forceValue','element','tableCell','item','options','substr','order','isArray','insertTableRowBelow','MAX_SAFE_INTEGER','setSelection','every','insertion','map','data','createRangeOn','low','values','isEqual','tableRow','addClass','getItems','writer','rootName','locale','subType','deletion','insertTableRowAbove','discard','maxRow','getAttribute','registerElementLabel','differ','removeClass','_setupColumnsRowsFixing','execute','type','getRowIndexes','detach','batch','findAncestor','accept','add','MIN_SAFE_INTEGER','startsWith','registerCustomCallback','span','root','addRange','first','tableColumn','table','ELEMENT_TABLE_ROW','enqueueChange','fromRange','$graveyard','start','length','editor','nodeAfter','_getSuggestionCoords','registerPostFixer','maxColumn','getCellLocation','last','*Remove:*\x20%0','removeTableColumn','isTouching','ELEMENT_TABLE_ROW_WITH_TEXT','getSelectionAffectedTableCells','tablePaste','showSuggestionHighlights','getChanges','ELEMENT_TABLE_COLUMN','cell','classes','plugins','TableEditing','nodeBefore','highest','colspan','refresh','name','createTableWalker','_descriptionFactory','getContainedElement','insertTable','_splitMarkerName','ELEMENT_TABLE_COLUMN_WITH_TEXT','createPositionAt','end','includes','markMultiRangeInsertion','toLowerCase','enableCommand','getRanges','getChangedMarkers','position','insertTableColumnLeft','removeTableRow','from','filter','model','_getCoordsForCells','_suggestionFactory','registerDescriptionCallback','markMultiRangeDeletion','some','change:data','*Insert:*\x20%0'];(function(_0x3d5b02,_0x108e4e){const _0x5362ae=function(_0x57024a){while(--_0x57024a){_0x3d5b02['push'](_0x3d5b02['shift']());}};_0x5362ae(++_0x108e4e);}(_0x108e,0x165));const _0x5362=function(_0x3d5b02,_0x108e4e){_0x3d5b02=_0x3d5b02-0x0;let _0x5362ae=_0x108e[_0x3d5b02];return _0x5362ae;};import{Plugin as _0x1d889c}from'ckeditor5/src/core';import{LiveRange as _0x504be4}from'ckeditor5/src/engine';import{setHighlightHandling as _0x39b6cd}from'ckeditor5/src/widget';import{getTranslation as _0x5299ab}from'../utils/common-translations';export default class mt extends _0x1d889c{constructor(_0x3bbd8e){super(_0x3bbd8e),this[_0x5362('0x34')]=['tableRow','tableColumn'],this[_0x5362('0x2f')]=new Set();}['afterInit'](){const _0xa6c597=this[_0x5362('0x7b')],_0x40f131=_0xa6c597['model'][_0x5362('0x2d')]['selection'];if(!_0xa6c597[_0x5362('0x8')]['has'](_0x5362('0x9')))return;const _0x12faef=_0xa6c597[_0x5362('0x59')],_0x1335c1=_0xa6c597[_0x5362('0x8')][_0x5362('0x40')]('TrackChangesEditing'),_0x20d6ab=_0xa6c597[_0x5362('0x8')][_0x5362('0x40')](_0x5362('0x31'));_0x1335c1['_descriptionFactory'][_0x5362('0x60')](_0x5362('0x74'),_0x496900=>_0x5299ab(_0x12faef,_0x5362('0x35'),_0x496900)),this[_0x5362('0x63')](),_0x1335c1[_0x5362('0x1a')](_0x5362('0x12')),_0x1335c1[_0x5362('0x1a')]('selectTableRow'),_0x1335c1[_0x5362('0x1a')](_0x5362('0x36'));for(const _0x3ae28e of[_0x5362('0x5c'),_0x5362('0x49')]){const _0x3cc930=_0xa6c597['commands']['get'](_0x3ae28e);_0x1335c1[_0x5362('0x1a')](_0x3ae28e,_0xba11ae=>{_0xa6c597['model']['change'](_0x3a15ff=>{_0xba11ae();const _0x5cd834='above'===_0x3cc930[_0x5362('0x47')],_0x418097=_0x20d6ab['getSelectionAffectedTableCells'](_0x40f131),_0x103ff3=_0x20d6ab['getRowIndexes'](_0x418097),_0x4438c4=_0x5cd834?_0x103ff3[_0x5362('0x72')]-0x1:_0x103ff3[_0x5362('0x81')]+0x1,_0x196ad2=_0x418097[0x0][_0x5362('0x69')](_0x5362('0x74')),_0x4d3f0d=_0x20d6ab['createTableWalker'](_0x196ad2,{'startRow':_0x4438c4,'endRow':_0x4438c4}),_0x576ab9=Array[_0x5362('0x20')](_0x4d3f0d)['map'](_0x2cbe0a=>_0x3a15ff[_0x5362('0x50')](_0x2cbe0a['cell']));_0x1335c1[_0x5362('0x18')](_0x576ab9,_0x5362('0x54'));});});}for(const _0xaa8d52 of[_0x5362('0x1e'),'insertTableColumnRight']){const _0x599603=_0xa6c597[_0x5362('0x3c')][_0x5362('0x40')](_0xaa8d52);_0x1335c1[_0x5362('0x1a')](_0xaa8d52,_0x4e65bd=>{_0xa6c597[_0x5362('0x22')]['change'](_0x2fa28d=>{_0x4e65bd();const _0x5d8053=_0x5362('0x2a')===_0x599603[_0x5362('0x47')],_0x118da6=_0x20d6ab[_0x5362('0x1')](_0x40f131),_0x207150=_0x20d6ab['getColumnIndexes'](_0x118da6),_0x20f1be=_0x5d8053?_0x207150[_0x5362('0x72')]-0x1:_0x207150['last']+0x1,_0x22cd44=_0x118da6[0x0][_0x5362('0x69')](_0x5362('0x74')),_0x500a66=_0x20d6ab[_0x5362('0xf')](_0x22cd44,{'startRow':0x0,'column':_0x20f1be,'includeAllSlots':!0x1}),_0x54dc53=Array[_0x5362('0x20')](_0x500a66)[_0x5362('0x4e')](_0x1ce5ba=>_0x2fa28d[_0x5362('0x50')](_0x1ce5ba[_0x5362('0x6')]));_0x1335c1['markMultiRangeInsertion'](_0x54dc53,_0x5362('0x73'));});});}for(const _0x24fa36 of['removeTableRow',_0x5362('0x83')]){const _0x500a3e=_0x24fa36[_0x5362('0x46')](0xb),_0x29f717=_0x500a3e[_0x5362('0x19')](),_0xac9e06=_0x29f717[_0x5362('0x46')](0x0,0x3)+_0x5362('0x6f'),_0x19f0ea=_0x5362('0x74')+_0x500a3e,_0x49a2c8='min'+_0x500a3e,_0xa3da8d=_0x5362('0x30')+_0x500a3e;_0x1335c1[_0x5362('0x1a')](_0x24fa36,()=>{_0xa6c597[_0x5362('0x22')]['change'](_0x21d768=>{const _0x4bd4ba=_0x20d6ab[_0x5362('0x1')](_0x40f131),_0x50e2e4=_0x4bd4ba[0x0][_0x5362('0x69')](_0x5362('0x74'));let _0x2d5ce3;if(_0x5362('0x1f')==_0x24fa36){const _0x29ce5e=_0x20d6ab[_0x5362('0x66')](_0x4bd4ba);_0x2d5ce3={'startRow':_0x29ce5e[_0x5362('0x72')],'endRow':_0x29ce5e['last'],'includeAllSlots':!0x0};}else{const _0x55a9f6=_0x20d6ab['getColumnIndexes'](_0x4bd4ba);_0x2d5ce3={'startColumn':_0x55a9f6['first'],'endColumn':_0x55a9f6[_0x5362('0x81')],'includeAllSlots':!0x0};}const _0x8ecf94=_0x20d6ab[_0x5362('0xf')](_0x50e2e4,_0x2d5ce3),_0x3d6533=Array[_0x5362('0x20')](_0x8ecf94)[_0x5362('0x4e')](({cell:_0x31aff4})=>_0x31aff4),_0x2061eb=se(_0x3d6533[_0x5362('0x21')](_0x2391da=>_0x2391da[_0x5362('0x3e')](_0xac9e06))),_0x433aa1=se(_0x3d6533[_0x5362('0x21')](_0x37041e=>!_0x37041e[_0x5362('0x3e')](_0xac9e06)))[_0x5362('0x4e')](_0x565ba6=>_0x21d768['createRangeOn'](_0x565ba6)),_0x330e10=_0x1335c1[_0x5362('0x26')](_0x433aa1,_0x19f0ea);if(_0x330e10&&(_0x5362('0x54')==_0x330e10[_0x5362('0x5a')]||_0x5362('0x73')==_0x330e10[_0x5362('0x5a')])){const _0x45a6e1=this['_getSuggestionCoords'](_0x330e10);for(const _0x5988ff of _0x2061eb){const _0x4ee0ca=_0x21d768[_0x5362('0x50')](_0x5988ff),_0x5d8ddf=_0x20d6ab[_0x5362('0x80')](_0x5988ff),_0x462a29=_0x5988ff[_0x5362('0x5f')](_0xac9e06)-0x1,_0x5efe3d=_0x45a6e1[_0x49a2c8],_0x403149=_0x45a6e1[_0xa3da8d];_0x5efe3d<=_0x5d8ddf[_0x29f717]&&_0x5d8ddf[_0x29f717]+_0x462a29<=_0x403149&&_0x330e10[_0x5362('0x71')](_0x4ee0ca);}}});});}function _0x12c0df(_0x3e7aa3){const _0x198d82=Array[_0x5362('0x20')](_0x40f131[_0x5362('0x1b')]())['map'](_0x5f53d0=>_0x504be4[_0x5362('0x77')](_0x5f53d0));_0xa6c597[_0x5362('0x22')][_0x5362('0x33')](_0x2a0c87=>{const _0x289530=_0x2a0c87[_0x5362('0x68')];_0x3e7aa3=_0x3e7aa3[_0x5362('0x21')](_0xab1b88=>_0x5362('0x78')!=_0xab1b88[_0x5362('0x70')][_0x5362('0x58')]),_0x2a0c87['setSelection'](_0x3e7aa3),_0xa6c597[_0x5362('0x3c')]['get'](_0x5362('0x1f'))[_0x5362('0xd')](),_0xa6c597['execute'](_0x5362('0x1f'),{'forceDefaultExecution':!0x0}),_0xa6c597[_0x5362('0x22')][_0x5362('0x76')](()=>{_0xa6c597[_0x5362('0x22')]['enqueueChange'](_0x289530,_0x313d69=>{const _0x3e23a9=_0x198d82[_0x5362('0x21')](_0x5410ec=>_0x5362('0x78')!=_0x5410ec['root'][_0x5362('0x58')]);_0x3e23a9['length']>0x0&&_0x313d69[_0x5362('0x4b')](_0x3e23a9);for(const _0x44009d of _0x198d82)_0x44009d[_0x5362('0x67')]();});});});}function _0x2a576c(_0x299561){_0xa6c597[_0x5362('0x22')][_0x5362('0x33')](_0x39a67e=>{const _0x26e052=Array[_0x5362('0x20')](_0x40f131['getRanges']())[_0x5362('0x4e')](_0x54ce1e=>_0x504be4[_0x5362('0x77')](_0x54ce1e)),_0xe76864=[];for(const _0x134242 of _0x299561)for(const _0x288e87 of _0x134242[_0x5362('0x56')]({'shallow':!0x0}))_0xe76864['push'](_0x288e87);for(const _0x4a94c5 of _0xe76864)_0x5362('0x78')!=_0x4a94c5[_0x5362('0x70')][_0x5362('0x58')]&&(_0x39a67e[_0x5362('0x4b')](_0x39a67e[_0x5362('0x15')](_0x4a94c5,0x0)),_0xa6c597['commands']['get'](_0x5362('0x83'))['refresh'](),_0xa6c597[_0x5362('0x64')](_0x5362('0x83'),{'forceDefaultExecution':!0x0}));const _0x2c849d=_0x26e052[_0x5362('0x21')](_0x2eb944=>_0x5362('0x78')!=_0x2eb944['root'][_0x5362('0x58')]);_0x2c849d[_0x5362('0x7a')]>0x0&&_0x39a67e[_0x5362('0x4b')](_0x2c849d);for(const _0x2d4e9d of _0x26e052)_0x2d4e9d['detach']();});}function _0x5d5eff(_0x39c13e,_0x54f63c){return _0x54f63c[_0x5362('0x4c')](_0x4dc340=>_0x39c13e[_0x5362('0x27')](_0x4f029a=>_0x4f029a['end'][_0x5362('0x53')](_0x4dc340[_0x5362('0x79')])||_0x4dc340[_0x5362('0x16')][_0x5362('0x53')](_0x4f029a[_0x5362('0x79')])));}function _0x4267f7(_0x16bb07,_0x3a3294){return _0x16bb07[_0x5362('0x27')](_0x378306=>_0x3a3294[_0x5362('0x27')](_0x5ee332=>_0x378306[_0x5362('0x16')][_0x5362('0x84')](_0x5ee332[_0x5362('0x79')])));}_0xa6c597['data'][_0x5362('0x2c')]['on']('addMarker:suggestion',(_0x14f396,_0x449651,_0x6d9510)=>{if(!_0x6d9510[_0x5362('0x45')][_0x5362('0x3')])return;const _0x44676b=_0x449651[_0x5362('0x44')];if(!_0x44676b)return;const _0x333c37=_0x6d9510['mapper'][_0x5362('0x39')](_0x44676b);function _0x17e4b2(_0x32ca01){return Array[_0x5362('0x48')](_0x32ca01)?_0x32ca01:[_0x32ca01];}_0x333c37&&_0x5362('0x43')===_0x44676b['name']&&_0x39b6cd(_0x333c37,_0x6d9510[_0x5362('0x57')],(_0x5679bb,_0x15875d,_0x5137c5)=>_0x5137c5[_0x5362('0x55')](_0x17e4b2(_0x15875d[_0x5362('0x7')]),_0x5679bb),(_0x151028,_0x33a3e1,_0x3caacd)=>_0x3caacd[_0x5362('0x62')](_0x17e4b2(_0x33a3e1[_0x5362('0x7')]),_0x151028));},{'priority':_0x5362('0xb')}),_0x1335c1[_0x5362('0x10')][_0x5362('0x25')](_0x40b1bc=>{if(_0x5362('0x4d')!=_0x40b1bc[_0x5362('0x65')]&&_0x5362('0x5b')!=_0x40b1bc[_0x5362('0x65')])return;const _0x5957a3=_0x40b1bc[_0x5362('0x11')]();if(null!=_0x5957a3&&_0x5957a3['is'](_0x5362('0x42'),_0x5362('0x74'))){if('insertion'==_0x40b1bc[_0x5362('0x65')]){const _0x5e60bc=_0x40b1bc['getItems']()[_0x5362('0x21')](_0x32573c=>_0x32573c['is']('$textProxy'))['map'](_0x25df8b=>_0x25df8b[_0x5362('0x4f')]);if(_0x5e60bc[_0x5362('0x7a')])return{'type':_0x5362('0x4d'),'content':_0x5299ab(_0x12faef,_0x5362('0x29'),_0x5299ab(_0x12faef,_0x5362('0x2e'),'\x22'+_0x5e60bc['join']('\x20')+'\x22'))};}if(_0x5362('0x5b')==_0x40b1bc[_0x5362('0x65')]){const _0x54b886=_0x40b1bc[_0x5362('0x56')]()[_0x5362('0x21')](_0x3c8880=>_0x3c8880['is'](_0x5362('0x3f')))[_0x5362('0x4e')](_0x3d216b=>_0x3d216b[_0x5362('0x4f')]);if(_0x54b886['length'])return{'type':_0x5362('0x5b'),'content':_0x5299ab(_0x12faef,'*Remove:*\x20%0',_0x5299ab(_0x12faef,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x54b886[_0x5362('0x3b')]('\x20')+'\x22'))};}}}),_0x1335c1['_descriptionFactory']['registerDescriptionCallback'](_0x563b84=>{if(_0x5362('0x54')==_0x563b84['subType']){const _0x30f5fb=_0x563b84[_0x5362('0x56')]()[_0x5362('0x21')](_0x3a386f=>_0x3a386f['is'](_0x5362('0x3f')))[_0x5362('0x4e')](_0x1d5d60=>_0x1d5d60['data']),_0x10ee06=this[_0x5362('0x7d')](_0x563b84),_0x2fec75=_0x10ee06[_0x5362('0x5e')]-_0x10ee06['minRow']+0x1;if(_0x5362('0x4d')==_0x563b84[_0x5362('0x65')])return _0x30f5fb[_0x5362('0x7a')]?{'type':_0x5362('0x4d'),'content':_0x5299ab(_0x12faef,'*Insert:*\x20%0',_0x5299ab(_0x12faef,_0x5362('0x0'),[_0x2fec75,'\x22'+_0x30f5fb[_0x5362('0x3b')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x5299ab(_0x12faef,'*Insert:*\x20%0',_0x5299ab(_0x12faef,_0x5362('0x75'),_0x2fec75))};if(_0x5362('0x5b')==_0x563b84['type'])return _0x30f5fb['length']?{'type':_0x5362('0x5b'),'content':_0x5299ab(_0x12faef,_0x5362('0x82'),_0x5299ab(_0x12faef,_0x5362('0x0'),[_0x2fec75,'\x22'+_0x30f5fb['join']('\x20')+'\x22']))}:{'type':_0x5362('0x5b'),'content':_0x5299ab(_0x12faef,'*Remove:*\x20%0',_0x5299ab(_0x12faef,_0x5362('0x75'),_0x2fec75))};}if(_0x5362('0x73')==_0x563b84[_0x5362('0x5a')]){const _0x474e29=_0x563b84[_0x5362('0x56')]()[_0x5362('0x21')](_0x4da47a=>_0x4da47a['is'](_0x5362('0x3f')))[_0x5362('0x4e')](_0x6e5adb=>_0x6e5adb[_0x5362('0x4f')]),_0x11999c=this[_0x5362('0x7d')](_0x563b84),_0x2c6ae5=_0x11999c[_0x5362('0x7f')]-_0x11999c['minColumn']+0x1;if(_0x5362('0x4d')==_0x563b84[_0x5362('0x65')])return _0x474e29[_0x5362('0x7a')]?{'type':_0x5362('0x4d'),'content':_0x5299ab(_0x12faef,'*Insert:*\x20%0',_0x5299ab(_0x12faef,_0x5362('0x14'),[_0x2c6ae5,'\x22'+_0x474e29[_0x5362('0x3b')]('\x20')+'\x22']))}:{'type':_0x5362('0x4d'),'content':_0x5299ab(_0x12faef,'*Insert:*\x20%0',_0x5299ab(_0x12faef,_0x5362('0x5'),_0x2c6ae5))};if(_0x5362('0x5b')==_0x563b84['type'])return _0x474e29[_0x5362('0x7a')]?{'type':'deletion','content':_0x5299ab(_0x12faef,'*Remove:*\x20%0',_0x5299ab(_0x12faef,_0x5362('0x14'),[_0x2c6ae5,'\x22'+_0x474e29[_0x5362('0x3b')]('\x20')+'\x22']))}:{'type':_0x5362('0x5b'),'content':_0x5299ab(_0x12faef,'*Remove:*\x20%0',_0x5299ab(_0x12faef,'ELEMENT_TABLE_COLUMN',_0x2c6ae5))};}}),_0x1335c1[_0x5362('0x24')][_0x5362('0x6e')](_0x5362('0x4d'),_0x5362('0x54'),_0x5362('0x5d'),_0x12c0df),_0x1335c1[_0x5362('0x24')][_0x5362('0x6e')](_0x5362('0x5b'),'tableRow',_0x5362('0x6a'),_0x12c0df),_0x1335c1[_0x5362('0x24')]['registerCustomCallback'](_0x5362('0x4d'),_0x5362('0x73'),_0x5362('0x5d'),_0x2a576c),_0x1335c1[_0x5362('0x24')]['registerCustomCallback'](_0x5362('0x5b'),_0x5362('0x73'),'accept',_0x2a576c),_0x1335c1[_0x5362('0x24')]['registerCustomCallback'](_0x5362('0x4d'),_0x5362('0x73'),_0x5362('0x3b'),_0x5d5eff),_0x1335c1['_suggestionFactory'][_0x5362('0x6e')](_0x5362('0x5b'),'tableColumn',_0x5362('0x3b'),_0x5d5eff),_0x1335c1[_0x5362('0x24')]['registerCustomCallback'](_0x5362('0x4d'),_0x5362('0x54'),_0x5362('0x3b'),_0x4267f7),_0x1335c1[_0x5362('0x24')]['registerCustomCallback'](_0x5362('0x5b'),_0x5362('0x54'),_0x5362('0x3b'),_0x4267f7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1b4612=this['editor'],_0x50de6c=_0x1b4612[_0x5362('0x22')][_0x5362('0x2d')][_0x5362('0x3a')];return(_0x59dd23,_0x405b3d)=>{_0x1b4612[_0x5362('0x22')][_0x5362('0x33')](_0x5a074b=>{const {commandName:_0xa95162,commandParams:_0x2bcea5}=_0x405b3d;let _0x5b282c=_0x59dd23[0x0]['end'][_0x5362('0xa')];_0x2bcea5&&_0x2bcea5[0x0]&&!0x1===_0x2bcea5[0x0][_0x5362('0x41')]&&(_0x5b282c=_0x59dd23[0x0][_0x5362('0x79')][_0x5362('0x7c')]);const _0xa7ea5d=_0x5a074b['createRangeIn'](_0x5b282c);if(_0x5362('0x78')==_0xa7ea5d[_0x5362('0x70')][_0x5362('0x58')])return;const _0x30f815=Array['from'](_0x50de6c[_0x5362('0x1b')]())[_0x5362('0x4e')](_0x2474a5=>_0x504be4[_0x5362('0x77')](_0x2474a5));_0x5a074b[_0x5362('0x4b')](_0xa7ea5d),_0x1b4612['commands'][_0x5362('0x40')](_0xa95162)['refresh'](),_0x2bcea5['push']({'forceDefaultExecution':!0x0}),_0x1b4612[_0x5362('0x64')](_0xa95162,..._0x2bcea5);const _0x1c1653=_0x30f815['filter'](_0x32c023=>'$graveyard'!=_0x32c023[_0x5362('0x70')][_0x5362('0x58')]);_0x1c1653[_0x5362('0x7a')]>0x0&&_0x5a074b[_0x5362('0x4b')](_0x1c1653);for(const _0x21ecfb of _0x30f815)_0x21ecfb[_0x5362('0x67')]();});};}[_0x5362('0x23')](_0x3fdff3){const _0x227e98=this[_0x5362('0x7b')][_0x5362('0x8')][_0x5362('0x40')]('TableUtils');let _0x171607=Number[_0x5362('0x4a')],_0x16d84a=Number['MIN_SAFE_INTEGER'],_0x38c206=Number[_0x5362('0x4a')],_0x3b8cc5=Number[_0x5362('0x6c')];for(const _0x137110 of _0x3fdff3){if(_0x5362('0x78')==_0x137110[_0x5362('0x70')]['rootName'])continue;const {row:_0x48aaab,column:_0x29d720}=_0x227e98['getCellLocation'](_0x137110),_0x12a487=_0x137110[_0x5362('0x3e')](_0x5362('0x3d'))?_0x137110[_0x5362('0x5f')](_0x5362('0x3d'))-0x1:0x0,_0x365378=_0x137110[_0x5362('0x3e')](_0x5362('0xc'))?_0x137110[_0x5362('0x5f')](_0x5362('0xc'))-0x1:0x0;_0x171607=_0x48aaab<_0x171607?_0x48aaab:_0x171607,_0x16d84a=_0x48aaab+_0x12a487>_0x16d84a?_0x48aaab+_0x12a487:_0x16d84a,_0x38c206=_0x29d720<_0x38c206?_0x29d720:_0x38c206,_0x3b8cc5=_0x29d720+_0x365378>_0x3b8cc5?_0x29d720+_0x365378:_0x3b8cc5;}return{'minRow':_0x171607,'maxRow':_0x16d84a,'minColumn':_0x38c206,'maxColumn':_0x3b8cc5};}['_setupColumnsRowsFixing'](){const _0x205e3c=this[_0x5362('0x7b')],_0x48aca1=_0x205e3c[_0x5362('0x8')][_0x5362('0x40')](_0x5362('0x37')),_0x2fa985=_0x205e3c[_0x5362('0x8')][_0x5362('0x40')](_0x5362('0x31'));_0x205e3c[_0x5362('0x22')]['document']['on'](_0x5362('0x28'),()=>{const _0x246b46=Array['from'](_0x205e3c[_0x5362('0x22')][_0x5362('0x2d')][_0x5362('0x61')][_0x5362('0x1c')]());for(const {name:_0x13de5a,data:_0x48a62a}of _0x246b46){const {group:_0x3afbc3,id:_0x1bc046,subType:_0x5d6165}=_0x48aca1[_0x5362('0x13')](_0x13de5a);if(_0x5362('0x38')!=_0x3afbc3)continue;if(null!=_0x48a62a['oldRange'])continue;const _0x410963=_0x48aca1['getSuggestion'](_0x1bc046);this[_0x5362('0x34')][_0x5362('0x17')](_0x5d6165)&&this['_tableSuggestions'][_0x5362('0x6b')](_0x410963);}},{'priority':_0x5362('0x51')});const _0x5cb6bd=(_0x2f7112,_0x81c794)=>{let _0x2c64f2=!0x1;const _0x3e25fd=_0x81c794[_0x5362('0x50')](_0x2f7112),_0x4d7004=_0x2f7112['findAncestor']('table'),_0x2c955a=_0x2fa985['getCellLocation'](_0x2f7112);for(const _0x487b39 of this[_0x5362('0x2f')]){const _0x54acc4=_0x487b39[_0x5362('0x5a')],_0x3b35b1=_0x54acc4[_0x5362('0x6d')](_0x5362('0x2')),_0x34aeae=_0x54acc4[_0x5362('0x46')](_0x3b35b1?0xa:0x5),_0x11fb92=_0x34aeae['toLowerCase'](),_0x2bad68=_0x11fb92['substr'](0x0,0x3)+_0x5362('0x6f'),_0x4b5c24='min'+_0x34aeae,_0x3303ac=_0x5362('0x30')+_0x34aeae;if(!_0x487b39['isInContent'])continue;if(_0x4d7004!=_0x487b39[_0x5362('0x2b')]()[_0x5362('0x79')][_0x5362('0x69')](_0x5362('0x74')))continue;if(_0x487b39['isIntersectingWithRange'](_0x3e25fd))continue;const _0x4fbfb8=_0x2f7112[_0x5362('0x3e')](_0x2bad68)?_0x2f7112['getAttribute'](_0x2bad68)-0x1:0x0,_0x45e2fe=this[_0x5362('0x7d')](_0x487b39),_0xd2a457=_0x45e2fe[_0x4b5c24],_0x43980a=_0x45e2fe[_0x3303ac];_0xd2a457<=_0x2c955a[_0x11fb92]&&_0x2c955a[_0x11fb92]+_0x4fbfb8<=_0x43980a&&(_0x487b39[_0x5362('0x71')](_0x3e25fd),_0x2c64f2=!0x0);}return _0x2c64f2;};_0x205e3c[_0x5362('0x22')]['document'][_0x5362('0x7e')](_0x38b8af=>{let _0x2cbfe3=!0x1;for(const _0x3061df of _0x205e3c[_0x5362('0x22')][_0x5362('0x2d')]['differ'][_0x5362('0x4')]())if(_0x5362('0x32')==_0x3061df[_0x5362('0x65')]){if('tableRow'==_0x3061df[_0x5362('0xe')])for(const _0x48a043 of _0x3061df[_0x5362('0x1d')][_0x5362('0x7c')]['getChildren']())_0x2cbfe3=_0x2cbfe3||_0x5cb6bd(_0x48a043,_0x38b8af);else _0x5362('0x43')==_0x3061df['name']&&(_0x2cbfe3=_0x2cbfe3||_0x5cb6bd(_0x3061df[_0x5362('0x1d')][_0x5362('0x7c')],_0x38b8af));}return _0x2cbfe3;});}[_0x5362('0x7d')](_0x41b2bf){return this[_0x5362('0x23')](_0x41b2bf[_0x5362('0x1b')]()[_0x5362('0x4e')](_0x172e97=>_0x172e97['start'][_0x5362('0x7c')]));}}function se(_0x341001){return Array['from'](new Set(_0x341001)[_0x5362('0x52')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xaa83=['TableCaptionEditing','get','toggleTableCaption','TrackChangesEditing','enableCommand','afterInit','requires','plugins','has'];(function(_0x1e24e8,_0xaa83e6){const _0x1285db=function(_0x10347c){while(--_0x10347c){_0x1e24e8['push'](_0x1e24e8['shift']());}};_0x1285db(++_0xaa83e6);}(_0xaa83,0xe2));const _0x1285=function(_0x1e24e8,_0xaa83e6){_0x1e24e8=_0x1e24e8-0x0;let _0x1285db=_0xaa83[_0x1e24e8];return _0x1285db;};import{Plugin as _0x5d8dd2}from'ckeditor5/src/core';import _0x3c35b0 from'./table';export default class vt extends _0x5d8dd2{static get[_0x1285('0x5')](){return[_0x3c35b0];}[_0x1285('0x4')](){const _0x2cf407=this['editor'];if(!_0x2cf407[_0x1285('0x6')][_0x1285('0x7')](_0x1285('0x8')))return;_0x2cf407['plugins'][_0x1285('0x0')](_0x1285('0x2'))[_0x1285('0x3')](_0x1285('0x1'));}}
|