@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231013.0 → 0.0.0-nightly-20231015.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.d.ts +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 _0xd784=['numbered','push','listReversed','locale','forward','handleDescriptions','config','getSelectedBlocks','backward','*Format:*\x20set\x20order\x20to\x20regular','bind','createRange','list.properties','toUpperCase','_getSuggestionBlocks','handleListStyleCommand','*Format:*\x20set\x20order\x20to\x20reversed','getFirstPosition','styles','type','plugins','ELEMENT_','element','change','flat','markMultiRangeBlockFormat','format','get','listType','getLastPosition','listStyle','unshift','_getTranslationKeyForListStyle','ListUtils','reversed','listItem','enableCommand','getAttribute','map','TrackChangesEditing','ListPropertiesEditing','replace','editor','handleListStartCommand','parent','from','length','_getSuggestionBlocksForListStyle','createPositionAt','getListTypeFromListStyleType','model','startIndex','commandParams','listStart','before','selection','document','handleListReversedCommand','getSiblingNodes'];(function(_0x374f16,_0xd784f4){const _0x5a4987=function(_0x28ea11){while(--_0x28ea11){_0x374f16['push'](_0x374f16['shift']());}};_0x5a4987(++_0xd784f4);}(_0xd784,0x14c));const _0x5a49=function(_0x374f16,_0xd784f4){_0x374f16=_0x374f16-0x0;let _0x5a4987=_0xd784[_0x374f16];return _0x5a4987;};import{Plugin as _0x118f66}from'ckeditor5/src/core';import{getTranslation as _0x580bbd}from'../utils/common-translations';export default class ot extends _0x118f66{['afterInit'](){if(!this['editor'][_0x5a49('0x2a')]['has'](_0x5a49('0x3')))return;const _0x443320=this[_0x5a49('0x5')][_0x5a49('0x1c')]['get'](_0x5a49('0x22')),_0x3253c7=this['editor']['plugins'][_0x5a49('0x31')](_0x5a49('0x2'));_0x443320[_0x5a49('0x28')]&&_0x3253c7[_0x5a49('0x3a')](_0x5a49('0x34'),this[_0x5a49('0x25')][_0x5a49('0x20')](this)),_0x443320[_0x5a49('0x38')]&&_0x3253c7[_0x5a49('0x3a')](_0x5a49('0x18'),this[_0x5a49('0x14')][_0x5a49('0x20')](this)),_0x443320[_0x5a49('0xe')]&&_0x3253c7[_0x5a49('0x3a')](_0x5a49('0x10'),this[_0x5a49('0x6')][_0x5a49('0x20')](this)),_0x3253c7['_descriptionFactory']['registerDescriptionCallback'](this[_0x5a49('0x1b')][_0x5a49('0x20')](this));}[_0x5a49('0x25')](_0x579857,_0x40cfa4={}){const _0x272c39=this['editor']['plugins']['get'](_0x5a49('0x2')),_0x58ef6=this['_getSuggestionBlocksForListStyle']();this['editor'][_0x5a49('0xd')][_0x5a49('0x2d')](()=>{_0x272c39['markMultiRangeBlockFormat'](_0x58ef6,{'commandName':_0x5a49('0x34'),'commandParams':[{'type':_0x40cfa4[_0x5a49('0x29')]}],'formatGroupId':_0x5a49('0x34')});});}[_0x5a49('0x14')](_0x4df93f,_0x176c23={}){const _0x29e59f=this[_0x5a49('0x5')][_0x5a49('0x2a')][_0x5a49('0x31')](_0x5a49('0x2')),_0x17c0aa=this[_0x5a49('0x24')](_0x4e4562=>_0x4e4562['is']('element',_0x5a49('0x39'))&&'numbered'===_0x4e4562[_0x5a49('0x0')](_0x5a49('0x32')));if(_0x17c0aa['length']<0x1)return;const _0x1fad0a=_0x17c0aa[_0x5a49('0x1')](_0x386063=>this[_0x5a49('0x5')][_0x5a49('0xd')][_0x5a49('0x21')](this[_0x5a49('0x5')][_0x5a49('0xd')][_0x5a49('0xb')](_0x386063,'before'),this['editor'][_0x5a49('0xd')][_0x5a49('0xb')](_0x386063,0x0)));this[_0x5a49('0x5')][_0x5a49('0xd')][_0x5a49('0x2d')](()=>{_0x29e59f[_0x5a49('0x2f')](_0x1fad0a,{'commandName':_0x5a49('0x18'),'commandParams':[{'reversed':_0x176c23[_0x5a49('0x38')]}],'formatGroupId':_0x5a49('0x18')});});}[_0x5a49('0x6')](_0x58a4c1,_0x5c416e={}){const _0x1ff53c=this['editor'][_0x5a49('0x2a')][_0x5a49('0x31')](_0x5a49('0x2')),_0x63d34d=this[_0x5a49('0x24')](_0x49cef4=>_0x49cef4['is'](_0x5a49('0x2c'),_0x5a49('0x39'))&&_0x5a49('0x16')===_0x49cef4['getAttribute']('listType'));if(_0x63d34d[_0x5a49('0x9')]<0x1)return;const _0x396c46=_0x63d34d[_0x5a49('0x1')](_0x127531=>this['editor'][_0x5a49('0xd')][_0x5a49('0x21')](this['editor'][_0x5a49('0xd')][_0x5a49('0xb')](_0x127531,_0x5a49('0x11')),this[_0x5a49('0x5')]['model'][_0x5a49('0xb')](_0x127531,0x0)));this[_0x5a49('0x5')][_0x5a49('0xd')]['change'](()=>{_0x1ff53c[_0x5a49('0x2f')](_0x396c46,{'commandName':_0x5a49('0x10'),'commandParams':[{'startIndex':_0x5c416e[_0x5a49('0xe')]}],'formatGroupId':'listStart'});});}[_0x5a49('0x1b')](_0x131e52){const _0x2591e4=this[_0x5a49('0x5')][_0x5a49('0x19')],{data:_0x1e3198}=_0x131e52;if(!_0x1e3198)return;let _0x46e9c1,_0x296774;switch(_0x1e3198['commandName']){case'listStyle':_0x46e9c1='*Change\x20to:*\x20%0',_0x296774={'type':_0x5a49('0x30'),'content':_0x580bbd(_0x2591e4,_0x46e9c1,_0x580bbd(_0x2591e4,this[_0x5a49('0x36')](_0x1e3198['commandParams'][0x0][_0x5a49('0x29')])))};break;case _0x5a49('0x18'):_0x46e9c1=_0x1e3198[_0x5a49('0xf')][0x0][_0x5a49('0x38')]?_0x5a49('0x26'):_0x5a49('0x1f'),_0x296774={'type':'format','content':_0x580bbd(_0x2591e4,_0x46e9c1)};break;case _0x5a49('0x10'):_0x46e9c1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x296774={'type':_0x5a49('0x30'),'content':_0x580bbd(_0x2591e4,_0x46e9c1,_0x1e3198[_0x5a49('0xf')][0x0][_0x5a49('0xe')])};}return _0x296774;}[_0x5a49('0xa')](){var _0x1697d3,_0xf4c830,_0x34bc1b,_0x2999c6;const _0x18b77e=this[_0x5a49('0x5')][_0x5a49('0x2a')][_0x5a49('0x31')]('ListUtils');let _0x2379bd=Array[_0x5a49('0x8')](this[_0x5a49('0x5')]['model'][_0x5a49('0x13')][_0x5a49('0x12')][_0x5a49('0x1d')]());return(null===(_0x1697d3=_0x2379bd[0x0])||void 0x0===_0x1697d3?void 0x0:_0x1697d3['is'](_0x5a49('0x2c'),_0x5a49('0x39')))&&_0x2379bd[_0x5a49('0x35')](..._0x18b77e[_0x5a49('0x15')](this[_0x5a49('0x5')][_0x5a49('0xd')][_0x5a49('0x13')][_0x5a49('0x12')][_0x5a49('0x27')](),_0x5a49('0x1e'))),(null===(_0xf4c830=_0x2379bd[_0x2379bd['length']-0x1])||void 0x0===_0xf4c830?void 0x0:_0xf4c830['is'](_0x5a49('0x2c'),_0x5a49('0x39')))&&_0x2379bd[_0x5a49('0x17')](..._0x18b77e[_0x5a49('0x15')](this[_0x5a49('0x5')][_0x5a49('0xd')][_0x5a49('0x13')]['selection'][_0x5a49('0x33')](),'forward')),_0x2379bd=[...new Set(_0x2379bd)],(null===(_0x2999c6=null===(_0x34bc1b=this['editor'][_0x5a49('0xd')][_0x5a49('0x13')][_0x5a49('0x12')][_0x5a49('0x27')]())||void 0x0===_0x34bc1b?void 0x0:_0x34bc1b[_0x5a49('0x7')])||void 0x0===_0x2999c6?void 0x0:_0x2999c6['is'](_0x5a49('0x2c'),'listItem'))&&(_0x2379bd=_0x2379bd['filter'](_0x2562db=>_0x2562db['is'](_0x5a49('0x2c'),_0x5a49('0x39')))),_0x2379bd;}[_0x5a49('0x24')](_0x38c263){const _0x11f7e4=this[_0x5a49('0x5')]['plugins'][_0x5a49('0x31')](_0x5a49('0x37'));let _0x400eb2=Array['from'](this['editor'][_0x5a49('0xd')][_0x5a49('0x13')]['selection'][_0x5a49('0x1d')]())['filter'](_0x38c263)[_0x5a49('0x1')](_0x18da51=>{const _0x306107=this[_0x5a49('0x5')][_0x5a49('0xd')][_0x5a49('0xb')](_0x18da51,0x0);return[..._0x11f7e4[_0x5a49('0x15')](_0x306107,'backward'),..._0x11f7e4[_0x5a49('0x15')](_0x306107,_0x5a49('0x1a'))];})[_0x5a49('0x2e')]();return _0x400eb2=[...new Set(_0x400eb2)],_0x400eb2;}[_0x5a49('0x36')](_0x5c80c8){return _0x5a49('0x2b')+this[_0x5a49('0x5')]['plugins']['get']('ListUtils')[_0x5a49('0xc')](_0x5c80c8)[_0x5a49('0x23')]()+'_LIST_'+_0x5c80c8[_0x5a49('0x23')]()[_0x5a49('0x4')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2167=['media','get','data','afterInit','stop','enableCommand','for','registerElementLabel','elementToElement','attribute:url:media','conversion','editor','div','high','TrackChangesEditing','plugins','has','createEmptyElement','MediaEmbedEditing','mediaEmbed','dataDowncast','ELEMENT_MEDIA','_descriptionFactory','showSuggestionHighlights'];(function(_0x26b036,_0x21673a){const _0x4a68e9=function(_0x1e1ac0){while(--_0x1e1ac0){_0x26b036['push'](_0x26b036['shift']());}};_0x4a68e9(++_0x21673a);}(_0x2167,0x106));const _0x4a68=function(_0x26b036,_0x21673a){_0x26b036=_0x26b036-0x0;let _0x4a68e9=_0x2167[_0x26b036];return _0x4a68e9;};import{Plugin as _0x3c70a4}from'ckeditor5/src/core';import{getTranslation as _0x3817d9}from'../utils/common-translations';export default class rt extends _0x3c70a4{[_0x4a68('0x5')](){const _0x46eab2=this[_0x4a68('0xd')];if(!_0x46eab2['plugins'][_0x4a68('0x12')](_0x4a68('0x14')))return;const _0x4d9fb8=_0x46eab2[_0x4a68('0x11')][_0x4a68('0x3')](_0x4a68('0x10')),_0xab03f=_0x46eab2['locale'];_0x4d9fb8[_0x4a68('0x7')](_0x4a68('0x15')),_0x4d9fb8[_0x4a68('0x0')][_0x4a68('0x9')](_0x4a68('0x2'),_0x3098fa=>_0x3817d9(_0xab03f,_0x4a68('0x17'),_0x3098fa)),_0x46eab2[_0x4a68('0xc')][_0x4a68('0x8')](_0x4a68('0x16'))[_0x4a68('0xa')]({'model':_0x4a68('0x2'),'view':(_0x54673d,{writer:_0x5ee1a7,options:_0xb514d2})=>{if(_0xb514d2[_0x4a68('0x1')])return _0x5ee1a7[_0x4a68('0x13')](_0x4a68('0xe'));},'converterPriority':_0x4a68('0xf')}),_0x46eab2[_0x4a68('0x4')]['downcastDispatcher']['on'](_0x4a68('0xb'),(_0x53e2a2,_0x29b8f3,_0x7f2604)=>{_0x7f2604['options'][_0x4a68('0x1')]&&_0x53e2a2[_0x4a68('0x6')]();},{'priority':_0x4a68('0xf')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x373a=['afterInit','editor','plugins','mention','MentionEditing'];(function(_0x119318,_0x373a17){const _0x35548b=function(_0x820455){while(--_0x820455){_0x119318['push'](_0x119318['shift']());}};_0x35548b(++_0x373a17);}(_0x373a,0xad));const _0x3554=function(_0x119318,_0x373a17){_0x119318=_0x119318-0x0;let _0x35548b=_0x373a[_0x119318];return _0x35548b;};import{Plugin as _0x366a11}from'ckeditor5/src/core';export default class at extends _0x366a11{[_0x3554('0x2')](){const _0x4d9868=this[_0x3554('0x3')];_0x4d9868[_0x3554('0x4')]['has'](_0x3554('0x1'))&&_0x4d9868['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x3554('0x0'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x571f=['get','TrackChangesEditing','afterInit','pageBreak','locale','plugins','enableCommand','ELEMENT_PAGE_BREAK','editor','_descriptionFactory'];(function(_0x48e566,_0x571f0b){const _0x5d5658=function(_0x1e562d){while(--_0x1e562d){_0x48e566['push'](_0x48e566['shift']());}};_0x5d5658(++_0x571f0b);}(_0x571f,0x196));const _0x5d56=function(_0x48e566,_0x571f0b){_0x48e566=_0x48e566-0x0;let _0x5d5658=_0x571f[_0x48e566];return _0x5d5658;};import{Plugin as _0x266c4c}from'ckeditor5/src/core';import{getTranslation as _0x4549a7}from'../utils/common-translations';export default class ct extends _0x266c4c{[_0x5d56('0x6')](){const _0x9953d4=this[_0x5d56('0x2')];if(!_0x9953d4['plugins']['has']('PageBreakEditing'))return;_0x9953d4[_0x5d56('0x9')][_0x5d56('0x4')](_0x5d56('0x5'))[_0x5d56('0x0')](_0x5d56('0x7'));const _0x2a0d27=_0x9953d4[_0x5d56('0x9')]['get'](_0x5d56('0x5')),_0x182e79=_0x9953d4[_0x5d56('0x8')];_0x2a0d27[_0x5d56('0x3')]['registerElementLabel'](_0x5d56('0x7'),_0x590284=>_0x4549a7(_0x182e79,_0x5d56('0x1'),_0x590284));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x498e=['writer','isTouching','mapper','addMarker:suggestion:insertion','checkChild','isLimit','consume','nodeAfter','TrackChangesEditing','selection','downcastDispatcher','plugins','insert','data','bindElementToMarker','ELEMENT_PARAGRAPH','editor','markerName','get','*Change\x20to:*\x20%0','getFirstRange','locale','enableCommand','createUIElement','end','isBlock','$text','model','insertParagraph','showSuggestionHighlights','markerRange','activeMarkers','parent','_descriptionFactory','schema','getSelectedBlocks','options','*Insert:*\x20%0','change','isObject','blockName','highest','from','markBlockFormat','Paragraph','getItemLabel','filter','ck-suggestion-marker-split','paragraph','afterInit','consumable','start','insertion','editing','addClass','registerElementLabel','format','commandName'];(function(_0x1ddfa7,_0x498ead){const _0x216d09=function(_0x527b35){while(--_0x527b35){_0x1ddfa7['push'](_0x1ddfa7['shift']());}};_0x216d09(++_0x498ead);}(_0x498e,0xe1));const _0x216d=function(_0x1ddfa7,_0x498ead){_0x1ddfa7=_0x1ddfa7-0x0;let _0x216d09=_0x498e[_0x1ddfa7];return _0x216d09;};import{Plugin as _0x19469d}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5ba4b4}from'./utils';import{getTranslation as _0x318f83}from'../utils/common-translations';export default class ht extends _0x19469d{[_0x216d('0x38')](){const _0x44e32c=this['editor'];if(!_0x44e32c[_0x216d('0x12')]['has'](_0x216d('0x33')))return;const _0xf486ab=_0x44e32c[_0x216d('0x1c')],_0x1d767d=_0x44e32c['plugins'][_0x216d('0x19')](_0x216d('0xf'));_0x1d767d[_0x216d('0x28')][_0x216d('0x4')](_0x216d('0x37'),_0x33d52d=>_0x318f83(_0xf486ab,_0x216d('0x16'),_0x33d52d)),_0x1d767d['enableCommand'](_0x216d('0x37'),(_0x2f90f5,_0x59a337={})=>{const _0x4197e0=_0x44e32c[_0x216d('0x22')]['document'],_0x1c5516=_0x59a337[_0x216d('0x10')]||_0x4197e0[_0x216d('0x10')],_0x4c30b7=Array[_0x216d('0x31')](_0x1c5516[_0x216d('0x2a')]())[_0x216d('0x35')](_0x380202=>function(_0x22abbc,_0x2d4b78){return _0x2d4b78['checkChild'](_0x22abbc[_0x216d('0x27')],'paragraph')&&!_0x2d4b78[_0x216d('0x2e')](_0x22abbc)&&_0x216d('0x37')!=_0x22abbc['name'];}(_0x380202,this[_0x216d('0x17')][_0x216d('0x22')][_0x216d('0x29')]));_0x44e32c['model'][_0x216d('0x2d')](()=>{for(const _0x136807 of _0x4c30b7)_0x1d767d[_0x216d('0x32')](_0x136807,{'commandName':_0x216d('0x37'),'commandParams':[],'formatGroupId':_0x216d('0x2f')},_0x5ba4b4(_0x136807));});}),_0x1d767d[_0x216d('0x28')]['registerDescriptionCallback'](_0xed5c57=>{const {data:_0x14cd34}=_0xed5c57;if(_0x14cd34&&_0x216d('0x37')==_0x14cd34[_0x216d('0x6')])return{'type':_0x216d('0x5'),'content':_0x318f83(_0xf486ab,_0x216d('0x1a'),_0x318f83(_0xf486ab,_0x216d('0x16')))};}),_0x1d767d[_0x216d('0x1d')](_0x216d('0x23')),_0x44e32c[_0x216d('0x2')][_0x216d('0x11')]['on'](_0x216d('0xa'),ar(_0x44e32c),{'priority':_0x216d('0x30')}),_0x44e32c[_0x216d('0x14')][_0x216d('0x11')]['on'](_0x216d('0xa'),(_0x3ca7fe,_0x4ad7f9,_0xe0c779)=>{_0xe0c779[_0x216d('0x2b')][_0x216d('0x24')]&&ar(_0x44e32c,{'showActiveMarker':!0x1})(_0x3ca7fe,_0x4ad7f9,_0xe0c779);},{'priority':_0x216d('0x30')});const _0x1d3b76=_0x1d767d[_0x216d('0x28')];_0x1d3b76['registerDescriptionCallback'](_0x6772d8=>{if('insertion'!==_0x6772d8['type'])return;const {start:_0x25be1a,end:_0x1f4084}=_0x6772d8[_0x216d('0x1b')]();if(!_0x25be1a[_0x216d('0x8')](_0x1f4084)||!_0x25be1a['nodeAfter'])return;const _0x458c57=_0x44e32c['model'][_0x216d('0x29')],_0x45a859=_0x25be1a[_0x216d('0xe')];return _0x458c57[_0x216d('0x20')](_0x45a859)&&!_0x458c57[_0x216d('0xc')](_0x45a859)&&_0x458c57[_0x216d('0xb')](_0x45a859,_0x216d('0x21'))?{'type':_0x216d('0x1'),'content':_0x318f83(_0xf486ab,_0x216d('0x2c'),_0x1d3b76[_0x216d('0x34')](_0x45a859,0x1))}:void 0x0;});}}function ar(_0x416b76,{showActiveMarker:_0x12a8af=!0x0}={}){return(_0x267904,_0x50a840,_0x4bab20)=>{const _0x31dafa=_0x416b76[_0x216d('0x12')][_0x216d('0x19')](_0x216d('0xf')),_0x1ab585=_0x50a840[_0x216d('0x25')][_0x216d('0x0')],_0x2f05f6=_0x50a840[_0x216d('0x25')][_0x216d('0x1f')],_0x55b830=_0x416b76[_0x216d('0x22')]['schema'];if(!_0x1ab585['isTouching'](_0x2f05f6)||!_0x1ab585[_0x216d('0xe')])return;const _0x2c6b3e=_0x1ab585[_0x216d('0xe')];if(_0x55b830[_0x216d('0x20')](_0x2c6b3e)&&!_0x55b830['isLimit'](_0x2c6b3e)&&_0x55b830[_0x216d('0xb')](_0x2c6b3e,_0x216d('0x21'))){if(!_0x4bab20[_0x216d('0x39')][_0x216d('0xd')](_0x50a840[_0x216d('0x25')],_0x267904['name']))return;const _0x82eb35=_0x4bab20['writer'][_0x216d('0x1e')]('span',{'class':_0x216d('0x36')}),_0x69bdd0=_0x4bab20[_0x216d('0x9')]['toViewPosition'](_0x2f05f6);_0x12a8af&&_0x31dafa[_0x216d('0x26')]['includes'](_0x50a840[_0x216d('0x18')])&&_0x4bab20[_0x216d('0x7')][_0x216d('0x3')]('ck-suggestion-marker--active',_0x82eb35),_0x4bab20[_0x216d('0x7')][_0x216d('0x13')](_0x69bdd0,_0x82eb35),_0x4bab20[_0x216d('0x9')][_0x216d('0x15')](_0x82eb35,_0x50a840['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19ec=['afterInit','plugins','format','model','isFormatting','getAttributeProperties','TrackChangesEditing','schema','from','isCollapsed','has','locale','enableCommand','_descriptionFactory','*Remove\x20all\x20formatting*','get','registerDescriptionCallback','selection','RemoveFormatEditing','document','getRanges','removeFormat','getItems'];(function(_0x2f53fc,_0x19ec44){const _0x3aadd9=function(_0x582e76){while(--_0x582e76){_0x2f53fc['push'](_0x2f53fc['shift']());}};_0x3aadd9(++_0x19ec44);}(_0x19ec,0x12a));const _0x3aad=function(_0x2f53fc,_0x19ec44){_0x2f53fc=_0x2f53fc-0x0;let _0x3aadd9=_0x19ec[_0x2f53fc];return _0x3aadd9;};import{Plugin as _0x4762c7}from'ckeditor5/src/core';import{getTranslation as _0x2c8812}from'../utils/common-translations';export default class ut extends _0x4762c7{[_0x3aad('0x1')](){const _0x5c4e96=this['editor'];if(!_0x5c4e96[_0x3aad('0x2')][_0x3aad('0xb')](_0x3aad('0x13')))return;const _0x58ed3a=_0x5c4e96[_0x3aad('0x2')][_0x3aad('0x10')](_0x3aad('0x7'));_0x58ed3a[_0x3aad('0xd')](_0x3aad('0x16'),_0x3ef01c=>{const _0x4c313c=_0x5c4e96[_0x3aad('0x4')][_0x3aad('0x14')][_0x3aad('0x12')];_0x4c313c[_0x3aad('0xa')]?_0x3ef01c():_0x5c4e96[_0x3aad('0x4')]['change'](()=>{const _0x550eb9=Array[_0x3aad('0x9')](_0x4c313c[_0x3aad('0x15')]());for(const _0x5f49e9 of _0x550eb9)for(const _0x19c758 of _0x5f49e9[_0x3aad('0x0')]())mo(_0x19c758,_0x5c4e96[_0x3aad('0x4')][_0x3aad('0x8')])&&_0x58ed3a['markInlineFormat'](_0x5c4e96[_0x3aad('0x4')]['createRangeOn'](_0x19c758),{'commandName':_0x3aad('0x16'),'commandParams':[]});});}),_0x58ed3a[_0x3aad('0xe')][_0x3aad('0x11')](_0x3cbaca=>{const {data:_0x544db3}=_0x3cbaca;if(_0x544db3&&_0x3aad('0x16')==_0x544db3['commandName'])return{'type':_0x3aad('0x3'),'content':_0x2c8812(_0x5c4e96[_0x3aad('0xc')],_0x3aad('0xf'))};});}}function mo(_0x11d5b8,_0x25cb50){for(const [_0x513846]of _0x11d5b8['getAttributes']()){const _0x48f9e8=_0x25cb50[_0x3aad('0x6')](_0x513846);if(_0x48f9e8&&_0x48f9e8[_0x3aad('0x5')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x317b=['has','discardSelectedSuggestions','get','plugins','RestrictedEditingModeEditing','trackChanges','acceptSelectedSuggestions','enableCommand','goToPreviousRestrictedEditingException','afterInit','acceptAllSuggestions','goToNextRestrictedEditingException','discardSuggestion','editor','TrackChangesEditing'];(function(_0x448e1a,_0x317b3d){const _0x5eb9f8=function(_0xb64504){while(--_0xb64504){_0x448e1a['push'](_0x448e1a['shift']());}};_0x5eb9f8(++_0x317b3d);}(_0x317b,0x184));const _0x5eb9=function(_0x448e1a,_0x317b3d){_0x448e1a=_0x448e1a-0x0;let _0x5eb9f8=_0x317b[_0x448e1a];return _0x5eb9f8;};import{Plugin as _0x4ed759}from'ckeditor5/src/core';export default class ft extends _0x4ed759{[_0x5eb9('0xb')](){const _0x38b749=this[_0x5eb9('0x0')];if(!_0x38b749[_0x5eb9('0x5')][_0x5eb9('0x2')](_0x5eb9('0x6')))return;const _0x403fd7=_0x38b749[_0x5eb9('0x5')][_0x5eb9('0x4')](_0x5eb9('0x1'));_0x403fd7[_0x5eb9('0x9')](_0x5eb9('0xa')),_0x403fd7['enableCommand'](_0x5eb9('0xd'));const _0x2cfcb1=_0x38b749[_0x5eb9('0x5')]['get'](_0x5eb9('0x6'));_0x2cfcb1[_0x5eb9('0x9')](_0x5eb9('0x7')),_0x2cfcb1[_0x5eb9('0x9')]('acceptSuggestion'),_0x2cfcb1['enableCommand'](_0x5eb9('0xe')),_0x2cfcb1[_0x5eb9('0x9')](_0x5eb9('0xc')),_0x2cfcb1['enableCommand']('discardAllSuggestions'),_0x2cfcb1['enableCommand'](_0x5eb9('0x8')),_0x2cfcb1[_0x5eb9('0x9')](_0x5eb9('0x3'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c58=['softBreak','writer','editing','mapper','span','deletion','markerRange','getItems','toViewPosition','enableCommand','plugins','merge','activeMarkers','includes','options','element','test','shiftEnter','ELEMENT_LINE_BREAK','addMarker:suggestion:deletion','markerName','get','downcastDispatcher','createPositionBefore','high','locale','consumable','showSuggestionHighlights','ck-suggestion-marker-','ck-suggestion-marker--active','createUIElement','split','requires','insert','init'];(function(_0x50c4a0,_0x4c5859){const _0x65d18b=function(_0x116641){while(--_0x116641){_0x50c4a0['push'](_0x50c4a0['shift']());}};_0x65d18b(++_0x4c5859);}(_0x4c58,0x1b7));const _0x65d1=function(_0x50c4a0,_0x4c5859){_0x50c4a0=_0x50c4a0-0x0;let _0x65d18b=_0x4c58[_0x50c4a0];return _0x65d18b;};import{Plugin as _0x697d48}from'ckeditor5/src/core';import{ShiftEnter as _0x2d0a46}from'ckeditor5/src/enter';import{getTranslation as _0xe712ec}from'../utils/common-translations';export default class lt extends _0x697d48{static get[_0x65d1('0xd')](){return[_0x2d0a46];}[_0x65d1('0xf')](){const _0x50d158=this['editor'],_0x336093=_0x50d158[_0x65d1('0x1a')][_0x65d1('0x2')]('TrackChangesEditing');_0x336093[_0x65d1('0x19')](_0x65d1('0x21')),_0x50d158['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',re(_0x50d158),{'priority':'high'}),_0x50d158[_0x65d1('0x12')][_0x65d1('0x3')]['on'](_0x65d1('0x0'),re(_0x50d158),{'priority':_0x65d1('0x5')}),_0x50d158['data'][_0x65d1('0x3')]['on']('addMarker:suggestion',(_0x132716,_0x494522,_0x151548)=>{_0x151548[_0x65d1('0x1e')][_0x65d1('0x8')]&&re(_0x50d158,{'showActiveMarker':!0x1})(_0x132716,_0x494522,_0x151548);}),_0x336093['_descriptionFactory']['registerElementLabel'](_0x65d1('0x10'),_0x1d1da1=>_0xe712ec(_0x50d158[_0x65d1('0x6')],_0x65d1('0x22'),_0x1d1da1));}}function re(_0x559e51,{showActiveMarker:_0x364fbd=!0x0}={}){return(_0x33ef23,_0x16b3a8,_0x2471ad)=>{const _0x3534ef=_0x559e51[_0x65d1('0x1a')][_0x65d1('0x2')]('TrackChangesEditing');if(!_0x2471ad[_0x65d1('0x7')][_0x65d1('0x20')](_0x16b3a8[_0x65d1('0x16')],_0x33ef23['name']))return;const _0x33b7f0=_0x559e51['model'];for(const _0x5d1317 of _0x16b3a8[_0x65d1('0x16')][_0x65d1('0x17')]()){if(!_0x5d1317['is'](_0x65d1('0x1f'),_0x65d1('0x10')))continue;const _0x572636=_0x65d1('0x15')==_0x16b3a8['markerName']['split'](':')[0x1]?_0x65d1('0x1b'):_0x65d1('0xc'),_0x4150af=_0x2471ad[_0x65d1('0x11')][_0x65d1('0xb')](_0x65d1('0x14'),{'class':_0x65d1('0x9')+_0x572636}),_0x34633b=_0x2471ad[_0x65d1('0x13')][_0x65d1('0x18')](_0x33b7f0[_0x65d1('0x4')](_0x5d1317));_0x364fbd&&_0x3534ef[_0x65d1('0x1c')][_0x65d1('0x1d')](_0x16b3a8[_0x65d1('0x1')])&&_0x2471ad[_0x65d1('0x11')]['addClass'](_0x65d1('0xa'),_0x4150af),_0x2471ad['writer'][_0x65d1('0xe')](_0x34633b,_0x4150af),_0x2471ad[_0x65d1('0x13')]['bindElementToMarker'](_0x4150af,_0x16b3a8[_0x65d1('0x1')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ba0=['from','markInlineFormat','restrictedEditingException','forceValue','getRanges','afterInit','document','FORMAT_RESTRICTED_DISABLED','has','format','_descriptionFactory','TrackChangesEditing','commands','enableCommand','locale','commandName','get','plugins','registerDescriptionCallback'];(function(_0x2be016,_0x2ba093){const _0x2f9547=function(_0x2f328f){while(--_0x2f328f){_0x2be016['push'](_0x2be016['shift']());}};_0x2f9547(++_0x2ba093);}(_0x2ba0,0x11c));const _0x2f95=function(_0x2be016,_0x2ba093){_0x2be016=_0x2be016-0x0;let _0x2f9547=_0x2ba0[_0x2be016];return _0x2f9547;};import{Plugin as _0x3507e3}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x32a6b1}from'./utils';import{getTranslation as _0x4dad42}from'../utils/common-translations';export default class gt extends _0x3507e3{[_0x2f95('0x6')](){const _0xbda140=this['editor'],_0x2483fa=_0xbda140['model'],_0xeba705=_0xbda140[_0x2f95('0xf')];if(!_0xbda140[_0x2f95('0x12')][_0x2f95('0x9')]('StandardEditingModeEditing'))return;const _0x36aa91=_0xbda140['plugins']['get'](_0x2f95('0xc')),_0x5dcb5a=_0x2f95('0x3'),_0x1b4ea4=_0xbda140[_0x2f95('0xd')][_0x2f95('0x11')](_0x5dcb5a);_0x36aa91[_0x2f95('0xe')](_0x5dcb5a,(_0x5410e3,_0x6851bb={})=>{const _0x3b8850=_0x2483fa[_0x2f95('0x7')]['selection'];if(_0x3b8850['isCollapsed'])return void _0x5410e3(_0x6851bb);const _0x5b34f2=void 0x0!==_0x6851bb[_0x2f95('0x4')]?_0x6851bb[_0x2f95('0x4')]:!_0x1b4ea4['value'];_0x2483fa['change'](()=>{const _0x47eb24=Array[_0x2f95('0x1')](_0x3b8850[_0x2f95('0x5')]());for(const _0x3b5f79 of _0x47eb24){const _0x318abc=_0x5b34f2?[_0x3b5f79]:_0x32a6b1(_0x5dcb5a,_0x3b5f79,_0x2483fa);for(const _0x1a0c2e of _0x318abc)_0x36aa91[_0x2f95('0x2')](_0x1a0c2e,{'commandName':_0x5dcb5a,'commandParams':[{'forceValue':_0x5b34f2}]});}});}),_0x36aa91[_0x2f95('0xb')][_0x2f95('0x0')](_0x3d45c0=>{const {data:_0x3f5684}=_0x3d45c0;if(_0x3f5684&&_0x3f5684[_0x2f95('0x10')]==_0x5dcb5a)return _0x3f5684['commandParams'][0x0][_0x2f95('0x4')]?{'type':_0x2f95('0xa'),'content':_0x4dad42(_0xeba705,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':_0x4dad42(_0xeba705,_0x2f95('0x8'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11f9=['getAncestors','forceValue','enabledStyles','value','registerDescriptionCallback','getItems','TrackChangesEditing','style','element','document','change','model','_getRangesWithClasses','isCollapsed','get','commandName','getDefinitionsForView','afterInit','toLowerCase','modelElements','style.definitions','name','*Remove\x20format:*\x20%0','isBlock','_getStyleDefinition','selection','find','style:','styleName','config','inline','locale','plugins','from','includes','every','classes','createRangeOn','format','Style','_descriptionFactory','markInlineFormat','enableCommand','StyleUtils','add','push','getRanges','editor','getAttribute','commandParams','normalizeConfig'];(function(_0x513e31,_0x11f949){const _0x4362a2=function(_0x4d6c13){while(--_0x4d6c13){_0x513e31['push'](_0x513e31['shift']());}};_0x4362a2(++_0x11f949);}(_0x11f9,0x1b9));const _0x4362=function(_0x513e31,_0x11f949){_0x513e31=_0x513e31-0x0;let _0x4362a2=_0x11f9[_0x513e31];return _0x4362a2;};import{Plugin as _0x20a887}from'ckeditor5/src/core';import{getTranslation as _0x320989}from'../utils/common-translations';export default class mt extends _0x20a887{[_0x4362('0x23')](){const _0x23262e=this[_0x4362('0xe')];if(!_0x23262e[_0x4362('0x32')]['has'](_0x4362('0x6')))return;const _0x129e65=_0x23262e['commands'][_0x4362('0x20')]('style'),_0x384f4b=_0x23262e[_0x4362('0x32')][_0x4362('0x20')](_0x4362('0x18')),_0x502330=_0x23262e[_0x4362('0x31')],_0x6ff491=_0x23262e[_0x4362('0x32')][_0x4362('0x20')]('DataSchema'),_0x2c351b=_0x23262e['plugins'][_0x4362('0x20')](_0x4362('0xa'))[_0x4362('0x11')](_0x6ff491,_0x23262e[_0x4362('0x2f')][_0x4362('0x20')](_0x4362('0x26')));_0x384f4b[_0x4362('0x9')](_0x4362('0x19'),(_0x200fc4,{styleName:_0x4a0966})=>{const _0x392d7a=_0x23262e[_0x4362('0x1d')][_0x4362('0x1b')][_0x4362('0x2b')],_0x2a899c=this[_0x4362('0x2a')](_0x4a0966,_0x2c351b);if(!_0x2a899c)return;if(!_0x129e65[_0x4362('0x14')][_0x4362('0x1')](_0x4a0966))return;if(_0x392d7a[_0x4362('0x1f')]&&!_0x2a899c[_0x4362('0x29')])return void _0x200fc4({'styleName':_0x4a0966});const _0x508cda=!_0x129e65[_0x4362('0x15')][_0x4362('0x1')](_0x2a899c[_0x4362('0x27')]);if(_0x2a899c['isBlock']){const _0x4be13d=function(_0x26b44a,_0x2d6fbd){const _0x20e091=new Set();for(const _0x1b39f1 of _0x26b44a){const _0x3f73bd=_0x1b39f1[_0x4362('0x12')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0xa5f5af of _0x3f73bd)if(_0x2d6fbd[_0x4362('0x1')](_0xa5f5af[_0x4362('0x27')])){_0x20e091[_0x4362('0xb')](_0xa5f5af);break;}}return _0x20e091;}(_0x392d7a['getSelectedBlocks'](),_0x2a899c[_0x4362('0x25')]);_0x23262e[_0x4362('0x1d')]['change'](()=>{for(const _0x22ae54 of _0x4be13d)_0x384f4b['markBlockFormat'](_0x22ae54,{'commandName':'style','commandParams':[{'styleName':_0x4a0966,'forceValue':_0x508cda}],'formatGroupId':_0x4362('0x2d')+_0x4a0966});});}else{let _0x4e0d2a=Array['from'](_0x392d7a[_0x4362('0xd')]());if(!_0x508cda){const _0x3d81f2=Array[_0x4362('0x0')](_0x6ff491[_0x4362('0x22')](_0x2a899c[_0x4362('0x1a')],!0x1))[0x0]['model'],_0x4c9f67=[];for(const _0x46621b of _0x4e0d2a){const _0x140c1f=this['_getRangesWithClasses'](_0x23262e['model'],_0x46621b,_0x2a899c[_0x4362('0x3')],_0x3d81f2);_0x4c9f67['push'](..._0x140c1f);}_0x4e0d2a=_0x4c9f67;}_0x23262e[_0x4362('0x1d')][_0x4362('0x1c')](()=>{for(const _0x200f82 of _0x4e0d2a)_0x384f4b[_0x4362('0x8')](_0x200f82,{'commandName':_0x4362('0x19'),'commandParams':[{'styleName':_0x4a0966,'forceValue':_0x508cda}]});});}}),_0x384f4b[_0x4362('0x7')][_0x4362('0x16')](_0x3c70b5=>{const {data:_0x4ad55e}=_0x3c70b5;if(_0x4ad55e&&'style'===_0x4ad55e[_0x4362('0x21')])return _0x4ad55e[_0x4362('0x10')][0x0][_0x4362('0x13')]?{'type':_0x4362('0x5'),'content':_0x320989(_0x502330,'*Format:*\x20%0',_0x4ad55e[_0x4362('0x10')][0x0][_0x4362('0x2e')][_0x4362('0x24')]())}:{'type':'format','content':_0x320989(_0x502330,_0x4362('0x28'),_0x4ad55e['commandParams'][0x0][_0x4362('0x2e')][_0x4362('0x24')]())};});}[_0x4362('0x2a')](_0x626b47,_0x48ac97){let _0x2e6a5b=_0x48ac97['block']['find'](_0x1fdfff=>_0x1fdfff[_0x4362('0x27')]===_0x626b47);return _0x2e6a5b||(_0x2e6a5b=_0x48ac97[_0x4362('0x30')][_0x4362('0x2c')](_0x30e5ce=>_0x30e5ce[_0x4362('0x27')]===_0x626b47)),_0x2e6a5b;}[_0x4362('0x1e')](_0x5afbba,_0x310afd,_0x32d0d4,_0x289476){const _0x26adce=[];for(const _0x3652d3 of _0x310afd[_0x4362('0x17')]()){const _0x4de085=_0x3652d3[_0x4362('0xf')](_0x289476);_0x4de085&&(_0x32d0d4[_0x4362('0x2')](_0x45a938=>_0x4de085[_0x4362('0x3')][_0x4362('0x1')](_0x45a938))&&_0x26adce[_0x4362('0xc')](_0x5afbba[_0x4362('0x4')](_0x3652d3)));}return _0x26adce;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x432d=['tableRow','push','insertTableRowAbove','substr','values','change:data','low','removeTableColumn','isEqual','isTouching','selectTableRow','last','plugins','data','MAX_SAFE_INTEGER','insert','model','accept','_descriptionFactory','$graveyard','change','$textProxy','insertTableColumnRight','from','getContainedElement','order','isIntersectingWithRange','addRange','position','toViewElement','insertTable','max','map','length','oldRange','*Insert:*\x20%0','has','maxColumn','element','item','includes','cell','left','mapper','suggestion','startsWith','getChangedMarkers','some','insertTableColumnLeft','getColumnIndexes','above','tableCell','createRangeOn','start','downcastDispatcher','getCellLocation','getAttribute','_acceptFormatSuggestionCallbackFactory','registerPostFixer','batch','name','createTableWalker','nodeAfter','writer','TrackChangesEditing','getRanges','_splitMarkerName','tablePaste','registerDescriptionCallback','hasAttribute','_getCoordsForCells','_tableSuggestions','colspan','commands','getItems','MIN_SAFE_INTEGER','_getSuggestionCoords','get','TableUtils','_tablePostFixingSubtypes','execute','markMultiRangeInsertion','deletion','ELEMENT_TABLE_WITH_TEXT','enqueueChange','ELEMENT_TABLE_ROW_WITH_TEXT','findAncestor','minRow','options','first','getChildren','registerCustomCallback','getSelectionAffectedTableCells','differ','rowspan','isInContent','filter','selection','afterInit','root','span','addClass','fromRange','selectTableColumn','nodeBefore','type','getChanges','getFirstRange','createRangeIn','tableColumn','ELEMENT_TABLE_COLUMN_WITH_TEXT','table','removeClass','toLowerCase','end','join','subType','insertion','_setupColumnsRowsFixing','document','every','ELEMENT_TABLE','rootName','minColumn','detach','refresh','enableCommand','showSuggestionHighlights','discard','insertTableRowBelow','getSuggestion','setSelection','*Remove:*\x20%0','getRowIndexes','editor','removeTableRow','_suggestionFactory','classes'];(function(_0x5b7c26,_0x432df5){const _0xe964e8=function(_0x48afda){while(--_0x48afda){_0x5b7c26['push'](_0x5b7c26['shift']());}};_0xe964e8(++_0x432df5);}(_0x432d,0x1e4));const _0xe964=function(_0x5b7c26,_0x432df5){_0x5b7c26=_0x5b7c26-0x0;let _0xe964e8=_0x432d[_0x5b7c26];return _0xe964e8;};import{Plugin as _0x192899}from'ckeditor5/src/core';import{LiveRange as _0x27e648}from'ckeditor5/src/engine';import{setHighlightHandling as _0x55d9ce}from'ckeditor5/src/widget';import{getTranslation as _0x29a874}from'../utils/common-translations';export default class dt extends _0x192899{constructor(_0x2905be){super(_0x2905be),this[_0xe964('0x9')]=[_0xe964('0x44'),_0xe964('0x27')],this[_0xe964('0x1')]=new Set();}[_0xe964('0x1c')](){const _0x38f93d=this[_0xe964('0x40')],_0x5bb59b=_0x38f93d['model'][_0xe964('0x31')]['selection'];if(!_0x38f93d[_0xe964('0x50')][_0xe964('0x68')]('TableEditing'))return;const _0x1e205f=_0x38f93d['locale'],_0x32a431=_0x38f93d[_0xe964('0x50')]['get'](_0xe964('0x84')),_0x4c8a91=_0x38f93d[_0xe964('0x50')][_0xe964('0x7')](_0xe964('0x8'));_0x32a431[_0xe964('0x56')]['registerElementLabel'](_0xe964('0x29'),_0x61c6ae=>_0x29a874(_0x1e205f,_0xe964('0x33'),_0x61c6ae)),this[_0xe964('0x30')](),_0x32a431[_0xe964('0x38')](_0xe964('0x62')),_0x32a431['enableCommand'](_0xe964('0x4e')),_0x32a431['enableCommand'](_0xe964('0x21'));for(const _0x59d987 of[_0xe964('0x46'),_0xe964('0x3b')]){const _0x30fd63=_0x38f93d[_0xe964('0x3')]['get'](_0x59d987);_0x32a431[_0xe964('0x38')](_0x59d987,_0x108d5e=>{_0x38f93d['model']['change'](_0x509185=>{_0x108d5e();const _0x31c268=_0xe964('0x76')===_0x30fd63['order'],_0x262e81=_0x4c8a91[_0xe964('0x16')](_0x5bb59b),_0xa581e9=_0x4c8a91[_0xe964('0x3f')](_0x262e81),_0x322f9a=_0x31c268?_0xa581e9[_0xe964('0x13')]-0x1:_0xa581e9[_0xe964('0x4f')]+0x1,_0x3df36f=_0x262e81[0x0]['findAncestor'](_0xe964('0x29')),_0x5f398d=_0x4c8a91[_0xe964('0x81')](_0x3df36f,{'startRow':_0x322f9a,'endRow':_0x322f9a}),_0x2710d8=Array[_0xe964('0x5b')](_0x5f398d)['map'](_0x1dab0c=>_0x509185[_0xe964('0x78')](_0x1dab0c['cell']));_0x32a431[_0xe964('0xb')](_0x2710d8,_0xe964('0x44'));});});}for(const _0x540911 of[_0xe964('0x74'),_0xe964('0x5a')]){const _0x2b51cd=_0x38f93d[_0xe964('0x3')][_0xe964('0x7')](_0x540911);_0x32a431[_0xe964('0x38')](_0x540911,_0xeae73f=>{_0x38f93d[_0xe964('0x54')][_0xe964('0x58')](_0x209727=>{_0xeae73f();const _0x2f2c9a=_0xe964('0x6e')===_0x2b51cd[_0xe964('0x5d')],_0x2e88a1=_0x4c8a91[_0xe964('0x16')](_0x5bb59b),_0x10fda0=_0x4c8a91[_0xe964('0x75')](_0x2e88a1),_0x14e24c=_0x2f2c9a?_0x10fda0[_0xe964('0x13')]-0x1:_0x10fda0[_0xe964('0x4f')]+0x1,_0x2c2d52=_0x2e88a1[0x0]['findAncestor'](_0xe964('0x29')),_0x379589=_0x4c8a91[_0xe964('0x81')](_0x2c2d52,{'startRow':0x0,'column':_0x14e24c,'includeAllSlots':!0x1}),_0x230d79=Array[_0xe964('0x5b')](_0x379589)[_0xe964('0x64')](_0x3ade0d=>_0x209727[_0xe964('0x78')](_0x3ade0d[_0xe964('0x6d')]));_0x32a431[_0xe964('0xb')](_0x230d79,_0xe964('0x27'));});});}for(const _0x356f53 of['removeTableRow',_0xe964('0x4b')]){const _0xc55eab=_0x356f53[_0xe964('0x47')](0xb),_0x3f1090=_0xc55eab['toLowerCase'](),_0x4e7218=_0x3f1090['substr'](0x0,0x3)+_0xe964('0x1e'),_0x5576ce=_0xe964('0x29')+_0xc55eab,_0xb231f8='min'+_0xc55eab,_0x483a85=_0xe964('0x63')+_0xc55eab;_0x32a431[_0xe964('0x38')](_0x356f53,()=>{_0x38f93d[_0xe964('0x54')][_0xe964('0x58')](_0x2dd5f8=>{const _0x958299=_0x4c8a91['getSelectionAffectedTableCells'](_0x5bb59b),_0x4524bb=_0x958299[0x0][_0xe964('0x10')]('table');let _0x993bae;if(_0xe964('0x41')==_0x356f53){const _0x2cb3ae=_0x4c8a91[_0xe964('0x3f')](_0x958299);_0x993bae={'startRow':_0x2cb3ae[_0xe964('0x13')],'endRow':_0x2cb3ae['last'],'includeAllSlots':!0x0};}else{const _0x4283f2=_0x4c8a91[_0xe964('0x75')](_0x958299);_0x993bae={'startColumn':_0x4283f2['first'],'endColumn':_0x4283f2[_0xe964('0x4f')],'includeAllSlots':!0x0};}const _0x40b83b=_0x4c8a91['createTableWalker'](_0x4524bb,_0x993bae),_0x3dfdfc=Array[_0xe964('0x5b')](_0x40b83b)['map'](({cell:_0x3315bb})=>_0x3315bb),_0x126ace=se(_0x3dfdfc['filter'](_0x1cd53c=>_0x1cd53c[_0xe964('0x89')](_0x4e7218))),_0x12815a=se(_0x3dfdfc[_0xe964('0x1a')](_0x4c56c1=>!_0x4c56c1[_0xe964('0x89')](_0x4e7218)))[_0xe964('0x64')](_0x1958b7=>_0x2dd5f8[_0xe964('0x78')](_0x1958b7)),_0x4c0b4c=_0x32a431['markMultiRangeDeletion'](_0x12815a,_0x5576ce);if(_0x4c0b4c&&(_0xe964('0x44')==_0x4c0b4c['subType']||_0xe964('0x27')==_0x4c0b4c[_0xe964('0x2e')])){const _0x35ba6e=this[_0xe964('0x6')](_0x4c0b4c);for(const _0x4f0e57 of _0x126ace){const _0xcec8ca=_0x2dd5f8['createRangeOn'](_0x4f0e57),_0x51e766=_0x4c8a91[_0xe964('0x7b')](_0x4f0e57),_0x32779b=_0x4f0e57['getAttribute'](_0x4e7218)-0x1,_0x2d44f2=_0x35ba6e[_0xb231f8],_0x208a6e=_0x35ba6e[_0x483a85];_0x2d44f2<=_0x51e766[_0x3f1090]&&_0x51e766[_0x3f1090]+_0x32779b<=_0x208a6e&&_0x4c0b4c[_0xe964('0x5f')](_0xcec8ca);}}});});}function _0xafc5bb(_0x4e390c){const _0x228c39=Array[_0xe964('0x5b')](_0x5bb59b[_0xe964('0x85')]())[_0xe964('0x64')](_0x240819=>_0x27e648[_0xe964('0x20')](_0x240819));_0x38f93d[_0xe964('0x54')][_0xe964('0x58')](_0x551c60=>{const _0x100f9e=_0x551c60[_0xe964('0x7f')];_0x4e390c=_0x4e390c[_0xe964('0x1a')](_0x175533=>_0xe964('0x57')!=_0x175533['root']['rootName']),_0x551c60[_0xe964('0x3d')](_0x4e390c),_0x38f93d[_0xe964('0x3')][_0xe964('0x7')](_0xe964('0x41'))[_0xe964('0x37')](),_0x38f93d[_0xe964('0xa')](_0xe964('0x41'),{'forceDefaultExecution':!0x0}),_0x38f93d[_0xe964('0x54')][_0xe964('0xe')](()=>{_0x38f93d[_0xe964('0x54')][_0xe964('0xe')](_0x100f9e,_0x299228=>{const _0x17809b=_0x228c39[_0xe964('0x1a')](_0x28b2d7=>_0xe964('0x57')!=_0x28b2d7[_0xe964('0x1d')]['rootName']);_0x17809b[_0xe964('0x65')]>0x0&&_0x299228[_0xe964('0x3d')](_0x17809b);for(const _0x2682ce of _0x228c39)_0x2682ce[_0xe964('0x36')]();});});});}function _0x48b611(_0x5cb91a){_0x38f93d['model']['change'](_0x4a4f34=>{const _0x5e6ac3=Array[_0xe964('0x5b')](_0x5bb59b[_0xe964('0x85')]())['map'](_0x38ed45=>_0x27e648[_0xe964('0x20')](_0x38ed45)),_0x58321f=[];for(const _0x4f541c of _0x5cb91a)for(const _0x2e45e6 of _0x4f541c[_0xe964('0x4')]({'shallow':!0x0}))_0x58321f[_0xe964('0x45')](_0x2e45e6);for(const _0x13079e of _0x58321f)'$graveyard'!=_0x13079e[_0xe964('0x1d')][_0xe964('0x34')]&&(_0x4a4f34[_0xe964('0x3d')](_0x4a4f34['createPositionAt'](_0x13079e,0x0)),_0x38f93d[_0xe964('0x3')][_0xe964('0x7')](_0xe964('0x4b'))[_0xe964('0x37')](),_0x38f93d[_0xe964('0xa')](_0xe964('0x4b'),{'forceDefaultExecution':!0x0}));const _0x4df8ef=_0x5e6ac3[_0xe964('0x1a')](_0x1a4bba=>_0xe964('0x57')!=_0x1a4bba[_0xe964('0x1d')][_0xe964('0x34')]);_0x4df8ef['length']>0x0&&_0x4a4f34[_0xe964('0x3d')](_0x4df8ef);for(const _0x1ec788 of _0x5e6ac3)_0x1ec788['detach']();});}function _0x185354(_0x4eb369,_0x44d84b){return _0x44d84b[_0xe964('0x32')](_0x4d1e9d=>_0x4eb369[_0xe964('0x73')](_0x282f9c=>_0x282f9c[_0xe964('0x2c')][_0xe964('0x4c')](_0x4d1e9d['start'])||_0x4d1e9d['end'][_0xe964('0x4c')](_0x282f9c[_0xe964('0x79')])));}function _0xe6e94(_0x20438c,_0x9a17be){return _0x20438c[_0xe964('0x73')](_0x449fc1=>_0x9a17be[_0xe964('0x73')](_0x4ab7ae=>_0x449fc1[_0xe964('0x2c')][_0xe964('0x4d')](_0x4ab7ae[_0xe964('0x79')])));}_0x38f93d[_0xe964('0x51')][_0xe964('0x7a')]['on']('addMarker:suggestion',(_0x54a184,_0x147a3d,_0x3de023)=>{if(!_0x3de023[_0xe964('0x12')][_0xe964('0x39')])return;const _0x127db8=_0x147a3d[_0xe964('0x6b')];if(!_0x127db8)return;const _0x13d448=_0x3de023[_0xe964('0x6f')][_0xe964('0x61')](_0x127db8);function _0x7277a4(_0x35e923){return Array['isArray'](_0x35e923)?_0x35e923:[_0x35e923];}_0x13d448&&_0xe964('0x77')===_0x127db8['name']&&_0x55d9ce(_0x13d448,_0x3de023[_0xe964('0x83')],(_0xebbf8a,_0x293b7a,_0x510bda)=>_0x510bda[_0xe964('0x1f')](_0x7277a4(_0x293b7a[_0xe964('0x43')]),_0xebbf8a),(_0x5022b3,_0x14b383,_0x317133)=>_0x317133[_0xe964('0x2a')](_0x7277a4(_0x14b383['classes']),_0x5022b3));},{'priority':'highest'}),_0x32a431[_0xe964('0x56')][_0xe964('0x88')](_0x4290cf=>{if(_0xe964('0x2f')!=_0x4290cf[_0xe964('0x23')]&&_0xe964('0xc')!=_0x4290cf[_0xe964('0x23')])return;const _0x54c1cb=_0x4290cf[_0xe964('0x5c')]();if(null!=_0x54c1cb&&_0x54c1cb['is'](_0xe964('0x6a'),_0xe964('0x29'))){if(_0xe964('0x2f')==_0x4290cf[_0xe964('0x23')]){const _0x33ed5d=_0x4290cf[_0xe964('0x4')]()[_0xe964('0x1a')](_0xc4d18c=>_0xc4d18c['is']('$textProxy'))[_0xe964('0x64')](_0x391f86=>_0x391f86[_0xe964('0x51')]);if(_0x33ed5d['length'])return{'type':_0xe964('0x2f'),'content':_0x29a874(_0x1e205f,_0xe964('0x67'),_0x29a874(_0x1e205f,_0xe964('0xd'),'\x22'+_0x33ed5d['join']('\x20')+'\x22'))};}if(_0xe964('0xc')==_0x4290cf[_0xe964('0x23')]){const _0x5d0588=_0x4290cf[_0xe964('0x4')]()[_0xe964('0x1a')](_0x58cf20=>_0x58cf20['is'](_0xe964('0x59')))[_0xe964('0x64')](_0x2a0f3d=>_0x2a0f3d[_0xe964('0x51')]);if(_0x5d0588[_0xe964('0x65')])return{'type':_0xe964('0xc'),'content':_0x29a874(_0x1e205f,_0xe964('0x3e'),_0x29a874(_0x1e205f,_0xe964('0xd'),'\x22'+_0x5d0588[_0xe964('0x2d')]('\x20')+'\x22'))};}}}),_0x32a431[_0xe964('0x56')]['registerDescriptionCallback'](_0x2e150b=>{if('tableRow'==_0x2e150b[_0xe964('0x2e')]){const _0x456394=_0x2e150b[_0xe964('0x4')]()[_0xe964('0x1a')](_0xeda001=>_0xeda001['is'](_0xe964('0x59')))[_0xe964('0x64')](_0x39c356=>_0x39c356[_0xe964('0x51')]),_0x1e5852=this[_0xe964('0x6')](_0x2e150b),_0x26b51b=_0x1e5852['maxRow']-_0x1e5852[_0xe964('0x11')]+0x1;if('insertion'==_0x2e150b[_0xe964('0x23')])return _0x456394['length']?{'type':'insertion','content':_0x29a874(_0x1e205f,_0xe964('0x67'),_0x29a874(_0x1e205f,_0xe964('0xf'),[_0x26b51b,'\x22'+_0x456394[_0xe964('0x2d')]('\x20')+'\x22']))}:{'type':_0xe964('0x2f'),'content':_0x29a874(_0x1e205f,'*Insert:*\x20%0',_0x29a874(_0x1e205f,'ELEMENT_TABLE_ROW',_0x26b51b))};if(_0xe964('0xc')==_0x2e150b['type'])return _0x456394[_0xe964('0x65')]?{'type':_0xe964('0xc'),'content':_0x29a874(_0x1e205f,_0xe964('0x3e'),_0x29a874(_0x1e205f,_0xe964('0xf'),[_0x26b51b,'\x22'+_0x456394['join']('\x20')+'\x22']))}:{'type':_0xe964('0xc'),'content':_0x29a874(_0x1e205f,_0xe964('0x3e'),_0x29a874(_0x1e205f,'ELEMENT_TABLE_ROW',_0x26b51b))};}if(_0xe964('0x27')==_0x2e150b['subType']){const _0x20c47f=_0x2e150b[_0xe964('0x4')]()['filter'](_0x230379=>_0x230379['is'](_0xe964('0x59')))[_0xe964('0x64')](_0x4c81ed=>_0x4c81ed['data']),_0x7652ee=this['_getSuggestionCoords'](_0x2e150b),_0x2f8c46=_0x7652ee[_0xe964('0x69')]-_0x7652ee[_0xe964('0x35')]+0x1;if(_0xe964('0x2f')==_0x2e150b[_0xe964('0x23')])return _0x20c47f[_0xe964('0x65')]?{'type':'insertion','content':_0x29a874(_0x1e205f,'*Insert:*\x20%0',_0x29a874(_0x1e205f,_0xe964('0x28'),[_0x2f8c46,'\x22'+_0x20c47f[_0xe964('0x2d')]('\x20')+'\x22']))}:{'type':_0xe964('0x2f'),'content':_0x29a874(_0x1e205f,_0xe964('0x67'),_0x29a874(_0x1e205f,'ELEMENT_TABLE_COLUMN',_0x2f8c46))};if(_0xe964('0xc')==_0x2e150b[_0xe964('0x23')])return _0x20c47f['length']?{'type':_0xe964('0xc'),'content':_0x29a874(_0x1e205f,'*Remove:*\x20%0',_0x29a874(_0x1e205f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2f8c46,'\x22'+_0x20c47f[_0xe964('0x2d')]('\x20')+'\x22']))}:{'type':_0xe964('0xc'),'content':_0x29a874(_0x1e205f,_0xe964('0x3e'),_0x29a874(_0x1e205f,'ELEMENT_TABLE_COLUMN',_0x2f8c46))};}}),_0x32a431[_0xe964('0x42')][_0xe964('0x15')](_0xe964('0x2f'),_0xe964('0x44'),_0xe964('0x3a'),_0xafc5bb),_0x32a431[_0xe964('0x42')][_0xe964('0x15')]('deletion',_0xe964('0x44'),_0xe964('0x55'),_0xafc5bb),_0x32a431[_0xe964('0x42')][_0xe964('0x15')](_0xe964('0x2f'),_0xe964('0x27'),_0xe964('0x3a'),_0x48b611),_0x32a431[_0xe964('0x42')][_0xe964('0x15')](_0xe964('0xc'),_0xe964('0x27'),_0xe964('0x55'),_0x48b611),_0x32a431['_suggestionFactory'][_0xe964('0x15')](_0xe964('0x2f'),'tableColumn',_0xe964('0x2d'),_0x185354),_0x32a431[_0xe964('0x42')][_0xe964('0x15')](_0xe964('0xc'),_0xe964('0x27'),_0xe964('0x2d'),_0x185354),_0x32a431[_0xe964('0x42')]['registerCustomCallback'](_0xe964('0x2f'),_0xe964('0x44'),_0xe964('0x2d'),_0xe6e94),_0x32a431['_suggestionFactory']['registerCustomCallback'](_0xe964('0xc'),_0xe964('0x44'),_0xe964('0x2d'),_0xe6e94);}[_0xe964('0x7d')](){const _0x4637b3=this[_0xe964('0x40')],_0x4a7b33=_0x4637b3[_0xe964('0x54')][_0xe964('0x31')][_0xe964('0x1b')];return(_0x485828,_0x534863)=>{_0x4637b3[_0xe964('0x54')][_0xe964('0x58')](_0x58a088=>{const {commandName:_0x236116,commandParams:_0x4408a9}=_0x534863;let _0x220b4d=_0x485828[0x0][_0xe964('0x2c')][_0xe964('0x22')];_0x4408a9&&_0x4408a9[0x0]&&!0x1===_0x4408a9[0x0]['forceValue']&&(_0x220b4d=_0x485828[0x0][_0xe964('0x79')][_0xe964('0x82')]);const _0xe8b764=_0x58a088[_0xe964('0x26')](_0x220b4d);if(_0xe964('0x57')==_0xe8b764[_0xe964('0x1d')][_0xe964('0x34')])return;const _0x3af984=Array[_0xe964('0x5b')](_0x4a7b33[_0xe964('0x85')]())[_0xe964('0x64')](_0x7207d7=>_0x27e648[_0xe964('0x20')](_0x7207d7));_0x58a088[_0xe964('0x3d')](_0xe8b764),_0x4637b3['commands'][_0xe964('0x7')](_0x236116)[_0xe964('0x37')](),_0x4408a9[_0xe964('0x45')]({'forceDefaultExecution':!0x0}),_0x4637b3[_0xe964('0xa')](_0x236116,..._0x4408a9);const _0x158b3f=_0x3af984[_0xe964('0x1a')](_0x13ee40=>_0xe964('0x57')!=_0x13ee40[_0xe964('0x1d')][_0xe964('0x34')]);_0x158b3f[_0xe964('0x65')]>0x0&&_0x58a088[_0xe964('0x3d')](_0x158b3f);for(const _0x4a060 of _0x3af984)_0x4a060[_0xe964('0x36')]();});};}[_0xe964('0x0')](_0x94edad){const _0x591dc1=this[_0xe964('0x40')][_0xe964('0x50')]['get'](_0xe964('0x8'));let _0x392111=Number[_0xe964('0x52')],_0x126d2f=Number[_0xe964('0x5')],_0x4d29b2=Number['MAX_SAFE_INTEGER'],_0x46a611=Number[_0xe964('0x5')];for(const _0x5857e3 of _0x94edad){if('$graveyard'==_0x5857e3[_0xe964('0x1d')][_0xe964('0x34')])continue;const {row:_0x1d8d03,column:_0x1d471a}=_0x591dc1[_0xe964('0x7b')](_0x5857e3),_0x56f337=_0x5857e3[_0xe964('0x89')]('rowspan')?_0x5857e3['getAttribute'](_0xe964('0x18'))-0x1:0x0,_0x5bc486=_0x5857e3['hasAttribute'](_0xe964('0x2'))?_0x5857e3[_0xe964('0x7c')](_0xe964('0x2'))-0x1:0x0;_0x392111=_0x1d8d03<_0x392111?_0x1d8d03:_0x392111,_0x126d2f=_0x1d8d03+_0x56f337>_0x126d2f?_0x1d8d03+_0x56f337:_0x126d2f,_0x4d29b2=_0x1d471a<_0x4d29b2?_0x1d471a:_0x4d29b2,_0x46a611=_0x1d471a+_0x5bc486>_0x46a611?_0x1d471a+_0x5bc486:_0x46a611;}return{'minRow':_0x392111,'maxRow':_0x126d2f,'minColumn':_0x4d29b2,'maxColumn':_0x46a611};}[_0xe964('0x30')](){const _0x4b2b46=this['editor'],_0x1fcb85=_0x4b2b46['plugins'][_0xe964('0x7')](_0xe964('0x84')),_0x4ec0b3=_0x4b2b46['plugins'][_0xe964('0x7')](_0xe964('0x8'));_0x4b2b46['model'][_0xe964('0x31')]['on'](_0xe964('0x49'),()=>{const _0x2ec336=Array[_0xe964('0x5b')](_0x4b2b46['model'][_0xe964('0x31')]['differ'][_0xe964('0x72')]());for(const {name:_0x18802c,data:_0x3232ad}of _0x2ec336){const {group:_0x3f408a,id:_0x50b243,subType:_0x3df1d8}=_0x1fcb85[_0xe964('0x86')](_0x18802c);if(_0xe964('0x70')!=_0x3f408a)continue;if(null!=_0x3232ad[_0xe964('0x66')])continue;const _0x1f6d89=_0x1fcb85[_0xe964('0x3c')](_0x50b243);this[_0xe964('0x9')][_0xe964('0x6c')](_0x3df1d8)&&this[_0xe964('0x1')]['add'](_0x1f6d89);}},{'priority':_0xe964('0x4a')});const _0x1cccee=(_0x26ccb1,_0x22abd3)=>{let _0x5dc3a=!0x1;const _0x1076cf=_0x22abd3[_0xe964('0x78')](_0x26ccb1),_0xfcb5a7=_0x26ccb1['findAncestor'](_0xe964('0x29')),_0x4c9ca6=_0x4ec0b3['getCellLocation'](_0x26ccb1);for(const _0x34bfdd of this[_0xe964('0x1')]){const _0x1931b9=_0x34bfdd['subType'],_0x14a4f0=_0x1931b9[_0xe964('0x71')](_0xe964('0x87')),_0x1abe3b=_0x1931b9[_0xe964('0x47')](_0x14a4f0?0xa:0x5),_0x33ad40=_0x1abe3b[_0xe964('0x2b')](),_0x5182f5=_0x33ad40[_0xe964('0x47')](0x0,0x3)+'span',_0x1ee387='min'+_0x1abe3b,_0x14cb71='max'+_0x1abe3b;if(!_0x34bfdd[_0xe964('0x19')])continue;if(_0xfcb5a7!=_0x34bfdd[_0xe964('0x25')]()['start'][_0xe964('0x10')](_0xe964('0x29')))continue;if(_0x34bfdd[_0xe964('0x5e')](_0x1076cf))continue;const _0x1adcad=_0x26ccb1['hasAttribute'](_0x5182f5)?_0x26ccb1[_0xe964('0x7c')](_0x5182f5)-0x1:0x0,_0xee8b3f=this[_0xe964('0x6')](_0x34bfdd),_0x36e379=_0xee8b3f[_0x1ee387],_0x5459fc=_0xee8b3f[_0x14cb71];_0x36e379<=_0x4c9ca6[_0x33ad40]&&_0x4c9ca6[_0x33ad40]+_0x1adcad<=_0x5459fc&&(_0x34bfdd[_0xe964('0x5f')](_0x1076cf),_0x5dc3a=!0x0);}return _0x5dc3a;};_0x4b2b46[_0xe964('0x54')][_0xe964('0x31')][_0xe964('0x7e')](_0x240db2=>{let _0x5388e3=!0x1;for(const _0x27ba7b of _0x4b2b46['model'][_0xe964('0x31')][_0xe964('0x17')][_0xe964('0x24')]())if(_0xe964('0x53')==_0x27ba7b[_0xe964('0x23')]){if(_0xe964('0x44')==_0x27ba7b[_0xe964('0x80')])for(const _0x2360a5 of _0x27ba7b[_0xe964('0x60')][_0xe964('0x82')][_0xe964('0x14')]())_0x5388e3=_0x5388e3||_0x1cccee(_0x2360a5,_0x240db2);else _0xe964('0x77')==_0x27ba7b[_0xe964('0x80')]&&(_0x5388e3=_0x5388e3||_0x1cccee(_0x27ba7b['position'][_0xe964('0x82')],_0x240db2));}return _0x5388e3;});}[_0xe964('0x6')](_0x18c6f3){return this[_0xe964('0x0')](_0x18c6f3['getRanges']()['map'](_0x55ac2d=>_0x55ac2d[_0xe964('0x79')][_0xe964('0x82')]));}}function se(_0xc0cd8c){return Array[_0xe964('0x5b')](new Set(_0xc0cd8c)[_0xe964('0x48')]());}
|
|
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']());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a66=['enableCommand','toggleTableCaption','afterInit','TrackChangesEditing','plugins','has','requires'];(function(_0x587758,_0x5a6612){const _0x3a5740=function(_0x345e3c){while(--_0x345e3c){_0x587758['push'](_0x587758['shift']());}};_0x3a5740(++_0x5a6612);}(_0x5a66,0x1d7));const _0x3a57=function(_0x587758,_0x5a6612){_0x587758=_0x587758-0x0;let _0x3a5740=_0x5a66[_0x587758];return _0x3a5740;};import{Plugin as _0x303de7}from'ckeditor5/src/core';import _0x4eba1d from'./table';export default class At extends _0x303de7{static get[_0x3a57('0x4')](){return[_0x4eba1d];}[_0x3a57('0x0')](){const _0x2c9c2c=this['editor'];if(!_0x2c9c2c[_0x3a57('0x2')][_0x3a57('0x3')]('TableCaptionEditing'))return;_0x2c9c2c[_0x3a57('0x2')]['get'](_0x3a57('0x1'))[_0x3a57('0x5')](_0x3a57('0x6'));}}
|