@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230911.0 → 0.0.0-nightly-20230913.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 +2 -2
- 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 _0x47b8=['markMultiRangeBlockFormat','_getSuggestionBlocksForListStyle','handleListStartCommand','toUpperCase','getFirstPosition','*Change\x20to:*\x20%0','parent','list.properties','type','createRange','change','_LIST_','getListTypeFromListStyleType','unshift','TrackChangesEditing','element','_getTranslationKeyForListStyle','getSelectedBlocks','length','getAttribute','handleListReversedCommand','commandName','createPositionAt','handleDescriptions','getSiblingNodes','ELEMENT_','filter','reversed','editor','bind','listStyle','config','startIndex','format','*Format:*\x20set\x20order\x20to\x20reversed','ListUtils','listReversed','listStart','enableCommand','push','commandParams','before','replace','_getSuggestionBlocks','plugins','forward','backward','*Format:*\x20set\x20start\x20index\x20to\x20%0','handleListStyleCommand','from','selection','_descriptionFactory','model','get','document','ListPropertiesEditing','numbered','listItem','map','listType','getLastPosition'];(function(_0x26b6ca,_0x47b893){const _0x2ec155=function(_0xd924c2){while(--_0xd924c2){_0x26b6ca['push'](_0x26b6ca['shift']());}};_0x2ec155(++_0x47b893);}(_0x47b8,0x6e));const _0x2ec1=function(_0x26b6ca,_0x47b893){_0x26b6ca=_0x26b6ca-0x0;let _0x2ec155=_0x47b8[_0x26b6ca];return _0x2ec155;};import{Plugin as _0x3c1c53}from'ckeditor5/src/core';import{getTranslation as _0x875577}from'../utils/common-translations';export default class st extends _0x3c1c53{['afterInit'](){if(!this['editor'][_0x2ec1('0x38')]['has'](_0x2ec1('0x6')))return;const _0x179b44=this[_0x2ec1('0x28')][_0x2ec1('0x2b')][_0x2ec1('0x4')](_0x2ec1('0x13')),_0x92b425=this[_0x2ec1('0x28')][_0x2ec1('0x38')]['get'](_0x2ec1('0x1a'));_0x179b44['styles']&&_0x92b425['enableCommand'](_0x2ec1('0x2a'),this[_0x2ec1('0x3c')][_0x2ec1('0x29')](this)),_0x179b44[_0x2ec1('0x27')]&&_0x92b425[_0x2ec1('0x32')](_0x2ec1('0x30'),this[_0x2ec1('0x20')]['bind'](this)),_0x179b44[_0x2ec1('0x2c')]&&_0x92b425[_0x2ec1('0x32')](_0x2ec1('0x31'),this[_0x2ec1('0xe')]['bind'](this)),_0x92b425[_0x2ec1('0x2')]['registerDescriptionCallback'](this[_0x2ec1('0x23')][_0x2ec1('0x29')](this));}['handleListStyleCommand'](_0x49cf31,_0x351ba9={}){const _0xdc7983=this['editor'][_0x2ec1('0x38')][_0x2ec1('0x4')]('TrackChangesEditing'),_0xe41d41=this[_0x2ec1('0xd')]();this[_0x2ec1('0x28')][_0x2ec1('0x3')]['change'](()=>{_0xdc7983[_0x2ec1('0xc')](_0xe41d41,{'commandName':_0x2ec1('0x2a'),'commandParams':[{'type':_0x351ba9[_0x2ec1('0x14')]}],'formatGroupId':_0x2ec1('0x2a')});});}[_0x2ec1('0x20')](_0x454a8c,_0x5f2ed1={}){const _0x4b776c=this['editor'][_0x2ec1('0x38')][_0x2ec1('0x4')](_0x2ec1('0x1a')),_0x1fa22c=this[_0x2ec1('0x37')](_0x4004ee=>_0x4004ee['is'](_0x2ec1('0x1b'),_0x2ec1('0x8'))&&'numbered'===_0x4004ee[_0x2ec1('0x1f')](_0x2ec1('0xa')));if(_0x1fa22c[_0x2ec1('0x1e')]<0x1)return;const _0x4e9475=_0x1fa22c[_0x2ec1('0x9')](_0x5bf2d4=>this[_0x2ec1('0x28')]['model'][_0x2ec1('0x15')](this[_0x2ec1('0x28')][_0x2ec1('0x3')]['createPositionAt'](_0x5bf2d4,_0x2ec1('0x35')),this[_0x2ec1('0x28')]['model']['createPositionAt'](_0x5bf2d4,0x0)));this[_0x2ec1('0x28')][_0x2ec1('0x3')][_0x2ec1('0x16')](()=>{_0x4b776c[_0x2ec1('0xc')](_0x4e9475,{'commandName':_0x2ec1('0x30'),'commandParams':[{'reversed':_0x5f2ed1[_0x2ec1('0x27')]}],'formatGroupId':'listReversed'});});}[_0x2ec1('0xe')](_0x132afe,_0x4c0b85={}){const _0x148a8c=this[_0x2ec1('0x28')][_0x2ec1('0x38')][_0x2ec1('0x4')](_0x2ec1('0x1a')),_0x4606cb=this['_getSuggestionBlocks'](_0x4cc35b=>_0x4cc35b['is'](_0x2ec1('0x1b'),_0x2ec1('0x8'))&&_0x2ec1('0x7')===_0x4cc35b[_0x2ec1('0x1f')](_0x2ec1('0xa')));if(_0x4606cb['length']<0x1)return;const _0x54e5fa=_0x4606cb[_0x2ec1('0x9')](_0x53fd87=>this[_0x2ec1('0x28')]['model']['createRange'](this['editor'][_0x2ec1('0x3')][_0x2ec1('0x22')](_0x53fd87,_0x2ec1('0x35')),this[_0x2ec1('0x28')][_0x2ec1('0x3')][_0x2ec1('0x22')](_0x53fd87,0x0)));this[_0x2ec1('0x28')]['model'][_0x2ec1('0x16')](()=>{_0x148a8c['markMultiRangeBlockFormat'](_0x54e5fa,{'commandName':_0x2ec1('0x31'),'commandParams':[{'startIndex':_0x4c0b85[_0x2ec1('0x2c')]}],'formatGroupId':_0x2ec1('0x31')});});}[_0x2ec1('0x23')](_0x2b4836){const _0x1f23fc=this['editor']['locale'],{data:_0x5d7b37}=_0x2b4836;if(!_0x5d7b37)return;let _0x2217d4,_0xef9745;switch(_0x5d7b37[_0x2ec1('0x21')]){case _0x2ec1('0x2a'):_0x2217d4=_0x2ec1('0x11'),_0xef9745={'type':_0x2ec1('0x2d'),'content':_0x875577(_0x1f23fc,_0x2217d4,_0x875577(_0x1f23fc,this['_getTranslationKeyForListStyle'](_0x5d7b37['commandParams'][0x0][_0x2ec1('0x14')])))};break;case _0x2ec1('0x30'):_0x2217d4=_0x5d7b37[_0x2ec1('0x34')][0x0][_0x2ec1('0x27')]?_0x2ec1('0x2e'):'*Format:*\x20set\x20order\x20to\x20regular',_0xef9745={'type':_0x2ec1('0x2d'),'content':_0x875577(_0x1f23fc,_0x2217d4)};break;case'listStart':_0x2217d4=_0x2ec1('0x3b'),_0xef9745={'type':_0x2ec1('0x2d'),'content':_0x875577(_0x1f23fc,_0x2217d4,_0x5d7b37[_0x2ec1('0x34')][0x0][_0x2ec1('0x2c')])};}return _0xef9745;}[_0x2ec1('0xd')](){var _0x4ea2b5,_0x3e5f47,_0xf99173,_0x42fec2;const _0x6256c5=this[_0x2ec1('0x28')][_0x2ec1('0x38')][_0x2ec1('0x4')](_0x2ec1('0x2f'));let _0x34178b=Array[_0x2ec1('0x0')](this['editor'][_0x2ec1('0x3')][_0x2ec1('0x5')][_0x2ec1('0x1')][_0x2ec1('0x1d')]());return(null===(_0x4ea2b5=_0x34178b[0x0])||void 0x0===_0x4ea2b5?void 0x0:_0x4ea2b5['is'](_0x2ec1('0x1b'),'listItem'))&&_0x34178b[_0x2ec1('0x19')](..._0x6256c5['getSiblingNodes'](this[_0x2ec1('0x28')][_0x2ec1('0x3')]['document'][_0x2ec1('0x1')][_0x2ec1('0x10')](),_0x2ec1('0x3a'))),(null===(_0x3e5f47=_0x34178b[_0x34178b[_0x2ec1('0x1e')]-0x1])||void 0x0===_0x3e5f47?void 0x0:_0x3e5f47['is']('element','listItem'))&&_0x34178b[_0x2ec1('0x33')](..._0x6256c5['getSiblingNodes'](this[_0x2ec1('0x28')][_0x2ec1('0x3')][_0x2ec1('0x5')][_0x2ec1('0x1')][_0x2ec1('0xb')](),_0x2ec1('0x39'))),_0x34178b=[...new Set(_0x34178b)],(null===(_0x42fec2=null===(_0xf99173=this[_0x2ec1('0x28')][_0x2ec1('0x3')][_0x2ec1('0x5')]['selection'][_0x2ec1('0x10')]())||void 0x0===_0xf99173?void 0x0:_0xf99173[_0x2ec1('0x12')])||void 0x0===_0x42fec2?void 0x0:_0x42fec2['is']('element',_0x2ec1('0x8')))&&(_0x34178b=_0x34178b['filter'](_0x188856=>_0x188856['is'](_0x2ec1('0x1b'),_0x2ec1('0x8')))),_0x34178b;}[_0x2ec1('0x37')](_0x56de00){const _0x591c54=this[_0x2ec1('0x28')][_0x2ec1('0x38')]['get'](_0x2ec1('0x2f'));let _0x4f7a41=Array[_0x2ec1('0x0')](this['editor'][_0x2ec1('0x3')][_0x2ec1('0x5')]['selection']['getSelectedBlocks']())[_0x2ec1('0x26')](_0x56de00)[_0x2ec1('0x9')](_0x31fb9e=>{const _0xae9e4e=this[_0x2ec1('0x28')][_0x2ec1('0x3')][_0x2ec1('0x22')](_0x31fb9e,0x0);return[..._0x591c54[_0x2ec1('0x24')](_0xae9e4e,_0x2ec1('0x3a')),..._0x591c54[_0x2ec1('0x24')](_0xae9e4e,'forward')];})['flat']();return _0x4f7a41=[...new Set(_0x4f7a41)],_0x4f7a41;}[_0x2ec1('0x1c')](_0x13fd8f){return _0x2ec1('0x25')+this['editor']['plugins'][_0x2ec1('0x4')](_0x2ec1('0x2f'))[_0x2ec1('0x18')](_0x13fd8f)['toUpperCase']()+_0x2ec1('0x17')+_0x13fd8f[_0x2ec1('0xf')]()[_0x2ec1('0x36')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x87b4=['ELEMENT_MEDIA','locale','attribute:url:media','stop','enableCommand','showSuggestionHighlights','data','div','MediaEmbedEditing','_descriptionFactory','media','afterInit','elementToElement','for','mediaEmbed','high','plugins','registerElementLabel'];(function(_0x1f8d5d,_0x87b44e){const _0x48d95c=function(_0x1e5688){while(--_0x1e5688){_0x1f8d5d['push'](_0x1f8d5d['shift']());}};_0x48d95c(++_0x87b44e);}(_0x87b4,0xe8));const _0x48d9=function(_0x1f8d5d,_0x87b44e){_0x1f8d5d=_0x1f8d5d-0x0;let _0x48d95c=_0x87b4[_0x1f8d5d];return _0x48d95c;};import{Plugin as _0x3e8550}from'ckeditor5/src/core';import{getTranslation as _0x503a48}from'../utils/common-translations';export default class ot extends _0x3e8550{[_0x48d9('0xd')](){const _0x393c8e=this['editor'];if(!_0x393c8e[_0x48d9('0x0')]['has'](_0x48d9('0xa')))return;const _0x4e1772=_0x393c8e[_0x48d9('0x0')]['get']('TrackChangesEditing'),_0x453739=_0x393c8e[_0x48d9('0x3')];_0x4e1772[_0x48d9('0x6')](_0x48d9('0x10')),_0x4e1772[_0x48d9('0xb')][_0x48d9('0x1')](_0x48d9('0xc'),_0x25cbb9=>_0x503a48(_0x453739,_0x48d9('0x2'),_0x25cbb9)),_0x393c8e['conversion'][_0x48d9('0xf')]('dataDowncast')[_0x48d9('0xe')]({'model':_0x48d9('0xc'),'view':(_0x26a91b,{writer:_0x21e38a,options:_0x1b4878})=>{if(_0x1b4878['showSuggestionHighlights'])return _0x21e38a['createEmptyElement'](_0x48d9('0x9'));},'converterPriority':_0x48d9('0x11')}),_0x393c8e[_0x48d9('0x8')]['downcastDispatcher']['on'](_0x48d9('0x4'),(_0x1170f2,_0xfc018f,_0x417db4)=>{_0x417db4['options'][_0x48d9('0x7')]&&_0x1170f2[_0x48d9('0x5')]();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2667=['plugins','mention','get','MentionEditing','enableCommand'];(function(_0x53296c,_0x266704){const _0x19902d=function(_0x21ad37){while(--_0x21ad37){_0x53296c['push'](_0x53296c['shift']());}};_0x19902d(++_0x266704);}(_0x2667,0x1c1));const _0x1990=function(_0x53296c,_0x266704){_0x53296c=_0x53296c-0x0;let _0x19902d=_0x2667[_0x53296c];return _0x19902d;};import{Plugin as _0x5a95e1}from'ckeditor5/src/core';export default class rt extends _0x5a95e1{['afterInit'](){const _0x1ed1e9=this['editor'];_0x1ed1e9[_0x1990('0x1')]['has'](_0x1990('0x4'))&&_0x1ed1e9[_0x1990('0x1')][_0x1990('0x3')]('TrackChangesEditing')[_0x1990('0x0')](_0x1990('0x2'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43cd=['get','afterInit','has','TrackChangesEditing','registerElementLabel','enableCommand','pageBreak','ELEMENT_PAGE_BREAK','plugins'];(function(_0x138743,_0x43cd1e){const _0x185e43=function(_0x17068b){while(--_0x17068b){_0x138743['push'](_0x138743['shift']());}};_0x185e43(++_0x43cd1e);}(_0x43cd,0xb6));const _0x185e=function(_0x138743,_0x43cd1e){_0x138743=_0x138743-0x0;let _0x185e43=_0x43cd[_0x138743];return _0x185e43;};import{Plugin as _0x24b3d0}from'ckeditor5/src/core';import{getTranslation as _0x245aa5}from'../utils/common-translations';export default class at extends _0x24b3d0{[_0x185e('0x8')](){const _0x2dadf5=this['editor'];if(!_0x2dadf5[_0x185e('0x6')][_0x185e('0x0')]('PageBreakEditing'))return;_0x2dadf5['plugins'][_0x185e('0x7')](_0x185e('0x1'))[_0x185e('0x3')](_0x185e('0x4'));const _0x14a09b=_0x2dadf5[_0x185e('0x6')]['get'](_0x185e('0x1')),_0x246b45=_0x2dadf5['locale'];_0x14a09b['_descriptionFactory'][_0x185e('0x2')](_0x185e('0x4'),_0x25ca99=>_0x245aa5(_0x246b45,_0x185e('0x5'),_0x25ca99));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b7b=['locale','afterInit','from','mapper','document','$text','downcastDispatcher','_descriptionFactory','plugins','paragraph','parent','bindElementToMarker','registerElementLabel','highest','isTouching','checkChild','getFirstRange','markBlockFormat','isBlock','model','markerRange','insertParagraph','editor','end','nodeAfter','options','ELEMENT_PARAGRAPH','*Change\x20to:*\x20%0','writer','start','TrackChangesEditing','addMarker:suggestion:insertion','consume','change','registerDescriptionCallback','filter','markerName','name','activeMarkers','selection','isLimit','consumable','includes','schema','toViewPosition','getSelectedBlocks','insertion','showSuggestionHighlights','enableCommand','get','Paragraph'];(function(_0x3714d1,_0x2b7bef){const _0x25e74b=function(_0x542c1c){while(--_0x542c1c){_0x3714d1['push'](_0x3714d1['shift']());}};_0x25e74b(++_0x2b7bef);}(_0x2b7b,0x14b));const _0x25e7=function(_0x3714d1,_0x2b7bef){_0x3714d1=_0x3714d1-0x0;let _0x25e74b=_0x2b7b[_0x3714d1];return _0x25e74b;};import{Plugin as _0x5f4c1b}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2ed01c}from'./utils';import{getTranslation as _0x3937f2}from'../utils/common-translations';export default class ct extends _0x5f4c1b{[_0x25e7('0x1b')](){const _0xb1b9bc=this[_0x25e7('0x30')];if(!_0xb1b9bc[_0x25e7('0x22')]['has'](_0x25e7('0x19')))return;const _0x507379=_0xb1b9bc[_0x25e7('0x1a')],_0xc44c7a=_0xb1b9bc['plugins'][_0x25e7('0x18')](_0x25e7('0x5'));_0xc44c7a[_0x25e7('0x21')][_0x25e7('0x26')]('paragraph',_0x1e058b=>_0x3937f2(_0x507379,_0x25e7('0x1'),_0x1e058b)),_0xc44c7a[_0x25e7('0x17')](_0x25e7('0x23'),(_0x16a68b,_0x34fb63={})=>{const _0x3d5922=_0xb1b9bc[_0x25e7('0x2d')][_0x25e7('0x1e')],_0xb76524=_0x34fb63[_0x25e7('0xe')]||_0x3d5922[_0x25e7('0xe')],_0x16d5af=Array[_0x25e7('0x1c')](_0xb76524[_0x25e7('0x14')]())[_0x25e7('0xa')](_0xdc7c07=>function(_0x5393dd,_0x39a976){return _0x39a976[_0x25e7('0x29')](_0x5393dd[_0x25e7('0x24')],_0x25e7('0x23'))&&!_0x39a976['isObject'](_0x5393dd)&&_0x25e7('0x23')!=_0x5393dd[_0x25e7('0xc')];}(_0xdc7c07,this['editor'][_0x25e7('0x2d')][_0x25e7('0x12')]));_0xb1b9bc[_0x25e7('0x2d')][_0x25e7('0x8')](()=>{for(const _0xbc332 of _0x16d5af)_0xc44c7a[_0x25e7('0x2b')](_0xbc332,{'commandName':_0x25e7('0x23'),'commandParams':[],'formatGroupId':'blockName'},_0x2ed01c(_0xbc332));});}),_0xc44c7a['_descriptionFactory'][_0x25e7('0x9')](_0x794c5f=>{const {data:_0xd4b4b6}=_0x794c5f;if(_0xd4b4b6&&_0x25e7('0x23')==_0xd4b4b6['commandName'])return{'type':'format','content':_0x3937f2(_0x507379,_0x25e7('0x2'),_0x3937f2(_0x507379,'ELEMENT_PARAGRAPH'))};}),_0xc44c7a['enableCommand'](_0x25e7('0x2f')),_0xb1b9bc['editing'][_0x25e7('0x20')]['on'](_0x25e7('0x6'),ar(_0xb1b9bc),{'priority':_0x25e7('0x27')}),_0xb1b9bc['data'][_0x25e7('0x20')]['on'](_0x25e7('0x6'),(_0x1c6a4c,_0x33f816,_0x475efe)=>{_0x475efe[_0x25e7('0x0')][_0x25e7('0x16')]&&ar(_0xb1b9bc,{'showActiveMarker':!0x1})(_0x1c6a4c,_0x33f816,_0x475efe);},{'priority':_0x25e7('0x27')});const _0x5b2db7=_0xc44c7a[_0x25e7('0x21')];_0x5b2db7[_0x25e7('0x9')](_0x30239b=>{if('insertion'!==_0x30239b['type'])return;const {start:_0x1e7ade,end:_0x597fbf}=_0x30239b[_0x25e7('0x2a')]();if(!_0x1e7ade[_0x25e7('0x28')](_0x597fbf)||!_0x1e7ade[_0x25e7('0x32')])return;const _0x111d5=_0xb1b9bc[_0x25e7('0x2d')][_0x25e7('0x12')],_0x29b1f1=_0x1e7ade[_0x25e7('0x32')];return _0x111d5[_0x25e7('0x2c')](_0x29b1f1)&&!_0x111d5[_0x25e7('0xf')](_0x29b1f1)&&_0x111d5[_0x25e7('0x29')](_0x29b1f1,_0x25e7('0x1f'))?{'type':_0x25e7('0x15'),'content':_0x3937f2(_0x507379,'*Insert:*\x20%0',_0x5b2db7['getItemLabel'](_0x29b1f1,0x1))}:void 0x0;});}}function ar(_0x43072d,{showActiveMarker:_0x2985b9=!0x0}={}){return(_0x38ba92,_0x5baa86,_0x437867)=>{const _0x52a953=_0x43072d[_0x25e7('0x22')][_0x25e7('0x18')](_0x25e7('0x5')),_0x939485=_0x5baa86[_0x25e7('0x2e')][_0x25e7('0x4')],_0x255116=_0x5baa86[_0x25e7('0x2e')][_0x25e7('0x31')],_0x590eb0=_0x43072d['model'][_0x25e7('0x12')];if(!_0x939485[_0x25e7('0x28')](_0x255116)||!_0x939485[_0x25e7('0x32')])return;const _0x2d0aa2=_0x939485[_0x25e7('0x32')];if(_0x590eb0[_0x25e7('0x2c')](_0x2d0aa2)&&!_0x590eb0[_0x25e7('0xf')](_0x2d0aa2)&&_0x590eb0[_0x25e7('0x29')](_0x2d0aa2,_0x25e7('0x1f'))){if(!_0x437867[_0x25e7('0x10')][_0x25e7('0x7')](_0x5baa86[_0x25e7('0x2e')],_0x38ba92[_0x25e7('0xc')]))return;const _0x5c32f1=_0x437867[_0x25e7('0x3')]['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x20a723=_0x437867['mapper'][_0x25e7('0x13')](_0x255116);_0x2985b9&&_0x52a953[_0x25e7('0xd')][_0x25e7('0x11')](_0x5baa86[_0x25e7('0xb')])&&_0x437867[_0x25e7('0x3')]['addClass']('ck-suggestion-marker--active',_0x5c32f1),_0x437867[_0x25e7('0x3')]['insert'](_0x20a723,_0x5c32f1),_0x437867[_0x25e7('0x1d')][_0x25e7('0x25')](_0x5c32f1,_0x5baa86['markerName']);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57d9=['RemoveFormatEditing','getItems','get','from','afterInit','editor','createRangeOn','locale','*Remove\x20all\x20formatting*','TrackChangesEditing','plugins','registerDescriptionCallback','_descriptionFactory','getAttributeProperties','enableCommand','change','getRanges','selection','removeFormat','commandName','isCollapsed','model','getAttributes','markInlineFormat','has'];(function(_0x1802c5,_0x57d9a3){const _0x1f13a=function(_0x1412f9){while(--_0x1412f9){_0x1802c5['push'](_0x1802c5['shift']());}};_0x1f13a(++_0x57d9a3);}(_0x57d9,0xc8));const _0x1f13=function(_0x1802c5,_0x57d9a3){_0x1802c5=_0x1802c5-0x0;let _0x1f13a=_0x57d9[_0x1802c5];return _0x1f13a;};import{Plugin as _0x3c8466}from'ckeditor5/src/core';import{getTranslation as _0x55fb98}from'../utils/common-translations';export default class ht extends _0x3c8466{[_0x1f13('0x4')](){const _0x1c2572=this[_0x1f13('0x5')];if(!_0x1c2572[_0x1f13('0xa')][_0x1f13('0x18')](_0x1f13('0x0')))return;const _0x1e1677=_0x1c2572[_0x1f13('0xa')][_0x1f13('0x2')](_0x1f13('0x9'));_0x1e1677[_0x1f13('0xe')](_0x1f13('0x12'),_0x2856f4=>{const _0x254457=_0x1c2572[_0x1f13('0x15')]['document'][_0x1f13('0x11')];_0x254457[_0x1f13('0x14')]?_0x2856f4():_0x1c2572[_0x1f13('0x15')][_0x1f13('0xf')](()=>{const _0x4adb5d=Array[_0x1f13('0x3')](_0x254457[_0x1f13('0x10')]());for(const _0x1f309e of _0x4adb5d)for(const _0x912152 of _0x1f309e[_0x1f13('0x1')]())mo(_0x912152,_0x1c2572[_0x1f13('0x15')]['schema'])&&_0x1e1677[_0x1f13('0x17')](_0x1c2572[_0x1f13('0x15')][_0x1f13('0x6')](_0x912152),{'commandName':'removeFormat','commandParams':[]});});}),_0x1e1677[_0x1f13('0xc')][_0x1f13('0xb')](_0x3550e1=>{const {data:_0x395048}=_0x3550e1;if(_0x395048&&'removeFormat'==_0x395048[_0x1f13('0x13')])return{'type':'format','content':_0x55fb98(_0x1c2572[_0x1f13('0x7')],_0x1f13('0x8'))};});}}function mo(_0x3180a8,_0x2f2966){for(const [_0x2311b0]of _0x3180a8[_0x1f13('0x16')]()){const _0x34f751=_0x2f2966[_0x1f13('0xd')](_0x2311b0);if(_0x34f751&&_0x34f751['isFormatting'])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3044=['editor','plugins','get','acceptSelectedSuggestions','trackChanges','enableCommand','RestrictedEditingModeEditing','has','goToNextRestrictedEditingException','discardSuggestion'];(function(_0x3cf0e2,_0x30446e){const _0x54b965=function(_0x56e8e8){while(--_0x56e8e8){_0x3cf0e2['push'](_0x3cf0e2['shift']());}};_0x54b965(++_0x30446e);}(_0x3044,0x164));const _0x54b9=function(_0x3cf0e2,_0x30446e){_0x3cf0e2=_0x3cf0e2-0x0;let _0x54b965=_0x3044[_0x3cf0e2];return _0x54b965;};import{Plugin as _0x20d7e3}from'ckeditor5/src/core';export default class ut extends _0x20d7e3{['afterInit'](){const _0x40d43f=this[_0x54b9('0x4')];if(!_0x40d43f[_0x54b9('0x5')][_0x54b9('0x1')](_0x54b9('0x0')))return;const _0x4cac65=_0x40d43f[_0x54b9('0x5')][_0x54b9('0x6')]('TrackChangesEditing');_0x4cac65[_0x54b9('0x9')]('goToPreviousRestrictedEditingException'),_0x4cac65[_0x54b9('0x9')](_0x54b9('0x2'));const _0x1114b3=_0x40d43f[_0x54b9('0x5')][_0x54b9('0x6')](_0x54b9('0x0'));_0x1114b3['enableCommand'](_0x54b9('0x8')),_0x1114b3['enableCommand']('acceptSuggestion'),_0x1114b3[_0x54b9('0x9')](_0x54b9('0x3')),_0x1114b3[_0x54b9('0x9')]('acceptAllSuggestions'),_0x1114b3[_0x54b9('0x9')]('discardAllSuggestions'),_0x1114b3[_0x54b9('0x9')](_0x54b9('0x7')),_0x1114b3[_0x54b9('0x9')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ef0=['addMarker:suggestion:insertion','deletion','mapper','model','createUIElement','markerRange','toViewPosition','showSuggestionHighlights','test','softBreak','shiftEnter','ck-suggestion-marker-','high','insert','merge','name','locale','plugins','addClass','_descriptionFactory','consumable','split','bindElementToMarker','markerName','get','TrackChangesEditing','createPositionBefore','includes','writer','addMarker:suggestion:deletion','downcastDispatcher','addMarker:suggestion','enableCommand','ck-suggestion-marker--active','span','registerElementLabel'];(function(_0x5e4af1,_0x4ef073){const _0x25ff7f=function(_0x79de99){while(--_0x79de99){_0x5e4af1['push'](_0x5e4af1['shift']());}};_0x25ff7f(++_0x4ef073);}(_0x4ef0,0x1f0));const _0x25ff=function(_0x5e4af1,_0x4ef073){_0x5e4af1=_0x5e4af1-0x0;let _0x25ff7f=_0x4ef0[_0x5e4af1];return _0x25ff7f;};import{Plugin as _0x335e25}from'ckeditor5/src/core';import{ShiftEnter as _0x5c3106}from'ckeditor5/src/enter';import{getTranslation as _0x200c5a}from'../utils/common-translations';export default class ft extends _0x335e25{static get['requires'](){return[_0x5c3106];}['init'](){const _0x207dc2=this['editor'],_0x1fa7dc=_0x207dc2[_0x25ff('0x19')][_0x25ff('0x20')](_0x25ff('0x21'));_0x1fa7dc[_0x25ff('0x4')](_0x25ff('0x12')),_0x207dc2['editing'][_0x25ff('0x2')]['on'](_0x25ff('0x8'),re(_0x207dc2),{'priority':_0x25ff('0x14')}),_0x207dc2['editing'][_0x25ff('0x2')]['on'](_0x25ff('0x1'),re(_0x207dc2),{'priority':_0x25ff('0x14')}),_0x207dc2['data'][_0x25ff('0x2')]['on'](_0x25ff('0x3'),(_0x4afe66,_0x309d37,_0xf06c5)=>{_0xf06c5['options'][_0x25ff('0xf')]&&re(_0x207dc2,{'showActiveMarker':!0x1})(_0x4afe66,_0x309d37,_0xf06c5);}),_0x1fa7dc[_0x25ff('0x1b')][_0x25ff('0x7')](_0x25ff('0x11'),_0x555919=>_0x200c5a(_0x207dc2[_0x25ff('0x18')],'ELEMENT_LINE_BREAK',_0x555919));}}function re(_0x44bf96,{showActiveMarker:_0x39e384=!0x0}={}){return(_0x15a2bc,_0xaa46b5,_0xc3a8f5)=>{const _0x409738=_0x44bf96[_0x25ff('0x19')][_0x25ff('0x20')](_0x25ff('0x21'));if(!_0xc3a8f5[_0x25ff('0x1c')][_0x25ff('0x10')](_0xaa46b5['markerRange'],_0x15a2bc[_0x25ff('0x17')]))return;const _0x95d7d4=_0x44bf96[_0x25ff('0xb')];for(const _0x7fc215 of _0xaa46b5[_0x25ff('0xd')]['getItems']()){if(!_0x7fc215['is']('element',_0x25ff('0x11')))continue;const _0x2d71e4=_0x25ff('0x9')==_0xaa46b5[_0x25ff('0x1f')][_0x25ff('0x1d')](':')[0x1]?_0x25ff('0x16'):_0x25ff('0x1d'),_0xf6ea46=_0xc3a8f5[_0x25ff('0x0')][_0x25ff('0xc')](_0x25ff('0x6'),{'class':_0x25ff('0x13')+_0x2d71e4}),_0x5563f2=_0xc3a8f5[_0x25ff('0xa')][_0x25ff('0xe')](_0x95d7d4[_0x25ff('0x22')](_0x7fc215));_0x39e384&&_0x409738['activeMarkers'][_0x25ff('0x23')](_0xaa46b5[_0x25ff('0x1f')])&&_0xc3a8f5['writer'][_0x25ff('0x1a')](_0x25ff('0x5'),_0xf6ea46),_0xc3a8f5['writer'][_0x25ff('0x15')](_0x5563f2,_0xf6ea46),_0xc3a8f5[_0x25ff('0xa')][_0x25ff('0x1e')](_0xf6ea46,_0xaa46b5[_0x25ff('0x1f')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a0e=['TrackChangesEditing','plugins','commandName','registerDescriptionCallback','FORMAT_RESTRICTED_ENABLED','locale','forceValue','commandParams','StandardEditingModeEditing','selection','_descriptionFactory','from','value','commands','afterInit','getRanges','document','markInlineFormat','get','model','format','restrictedEditingException','has'];(function(_0x1aa888,_0x4a0e0c){const _0x36abb3=function(_0x50b42c){while(--_0x50b42c){_0x1aa888['push'](_0x1aa888['shift']());}};_0x36abb3(++_0x4a0e0c);}(_0x4a0e,0xd4));const _0x36ab=function(_0x1aa888,_0x4a0e0c){_0x1aa888=_0x1aa888-0x0;let _0x36abb3=_0x4a0e[_0x1aa888];return _0x36abb3;};import{Plugin as _0x211704}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x5a6b49}from'./utils';import{getTranslation as _0x56ac67}from'../utils/common-translations';export default class lt extends _0x211704{[_0x36ab('0x9')](){const _0x21fb59=this['editor'],_0x4b2930=_0x21fb59[_0x36ab('0xe')],_0x5464b0=_0x21fb59[_0x36ab('0x0')];if(!_0x21fb59[_0x36ab('0x13')][_0x36ab('0x11')](_0x36ab('0x3')))return;const _0x223fc4=_0x21fb59[_0x36ab('0x13')][_0x36ab('0xd')](_0x36ab('0x12')),_0x42efb1=_0x36ab('0x10'),_0x508039=_0x21fb59[_0x36ab('0x8')][_0x36ab('0xd')](_0x42efb1);_0x223fc4['enableCommand'](_0x42efb1,(_0x112057,_0x2d8242={})=>{const _0x50139d=_0x4b2930[_0x36ab('0xb')][_0x36ab('0x4')];if(_0x50139d['isCollapsed'])return void _0x112057(_0x2d8242);const _0x33d2e2=void 0x0!==_0x2d8242[_0x36ab('0x1')]?_0x2d8242[_0x36ab('0x1')]:!_0x508039[_0x36ab('0x7')];_0x4b2930['change'](()=>{const _0x14f50e=Array[_0x36ab('0x6')](_0x50139d[_0x36ab('0xa')]());for(const _0x192c04 of _0x14f50e){const _0x5d1775=_0x33d2e2?[_0x192c04]:_0x5a6b49(_0x42efb1,_0x192c04,_0x4b2930);for(const _0x30431e of _0x5d1775)_0x223fc4[_0x36ab('0xc')](_0x30431e,{'commandName':_0x42efb1,'commandParams':[{'forceValue':_0x33d2e2}]});}});}),_0x223fc4[_0x36ab('0x5')][_0x36ab('0x15')](_0x22e046=>{const {data:_0x1cffaa}=_0x22e046;if(_0x1cffaa&&_0x1cffaa[_0x36ab('0x14')]==_0x42efb1)return _0x1cffaa[_0x36ab('0x2')][0x0][_0x36ab('0x1')]?{'type':_0x36ab('0xf'),'content':_0x56ac67(_0x5464b0,_0x36ab('0x16'))}:{'type':_0x36ab('0xf'),'content':_0x56ac67(_0x5464b0,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf4b0=['every','editor','classes','has','config','_descriptionFactory','TrackChangesEditing','style:','enabledStyles','find','*Remove\x20format:*\x20%0','element','plugins','selection','getDefinitionsForView','enableCommand','style','commandParams','getRanges','markInlineFormat','change','DataSchema','afterInit','from','toLowerCase','_getRangesWithClasses','commandName','modelElements','push','style.definitions','*Format:*\x20%0','styleName','getItems','document','locale','getAncestors','name','get','_getStyleDefinition','format','getAttribute','model','getSelectedBlocks','value','createRangeOn','forceValue','isBlock','includes'];(function(_0x436ec8,_0xf4b0cb){const _0x237925=function(_0x1a50bb){while(--_0x1a50bb){_0x436ec8['push'](_0x436ec8['shift']());}};_0x237925(++_0xf4b0cb);}(_0xf4b0,0x17f));const _0x2379=function(_0x436ec8,_0xf4b0cb){_0x436ec8=_0x436ec8-0x0;let _0x237925=_0xf4b0[_0x436ec8];return _0x237925;};import{Plugin as _0x19bc46}from'ckeditor5/src/core';import{getTranslation as _0xec7f07}from'../utils/common-translations';export default class gt extends _0x19bc46{[_0x2379('0x17')](){const _0x20f3c3=this[_0x2379('0x2')];if(!_0x20f3c3[_0x2379('0xd')][_0x2379('0x4')]('Style'))return;const _0x4f5675=_0x20f3c3['commands'][_0x2379('0x26')]('style'),_0x4e3474=_0x20f3c3['plugins'][_0x2379('0x26')](_0x2379('0x7')),_0x3402ed=_0x20f3c3[_0x2379('0x23')],_0x4c228d=_0x20f3c3[_0x2379('0xd')][_0x2379('0x26')](_0x2379('0x16')),_0xa0a03e=_0x20f3c3[_0x2379('0xd')][_0x2379('0x26')]('StyleUtils')['normalizeConfig'](_0x4c228d,_0x20f3c3[_0x2379('0x5')]['get'](_0x2379('0x1e')));_0x4e3474[_0x2379('0x10')](_0x2379('0x11'),(_0x4a646b,{styleName:_0x46a46c})=>{const _0x363d34=_0x20f3c3['model'][_0x2379('0x22')][_0x2379('0xe')],_0x30d445=this['_getStyleDefinition'](_0x46a46c,_0xa0a03e);if(!_0x30d445)return;if(!_0x4f5675[_0x2379('0x9')][_0x2379('0x0')](_0x46a46c))return;if(_0x363d34['isCollapsed']&&!_0x30d445[_0x2379('0x2f')])return void _0x4a646b({'styleName':_0x46a46c});const _0xa86dc0=!_0x4f5675[_0x2379('0x2c')][_0x2379('0x0')](_0x30d445[_0x2379('0x25')]);if(_0x30d445['isBlock']){const _0x12c3bd=function(_0x2d7f51,_0x546bfd){const _0x4d7ba4=new Set();for(const _0x30f359 of _0x2d7f51){const _0x471e9b=_0x30f359[_0x2379('0x24')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0xe549bd of _0x471e9b)if(_0x546bfd[_0x2379('0x0')](_0xe549bd[_0x2379('0x25')])){_0x4d7ba4['add'](_0xe549bd);break;}}return _0x4d7ba4;}(_0x363d34[_0x2379('0x2b')](),_0x30d445[_0x2379('0x1c')]);_0x20f3c3[_0x2379('0x2a')][_0x2379('0x15')](()=>{for(const _0xe83baf of _0x12c3bd)_0x4e3474['markBlockFormat'](_0xe83baf,{'commandName':'style','commandParams':[{'styleName':_0x46a46c,'forceValue':_0xa86dc0}],'formatGroupId':_0x2379('0x8')+_0x46a46c});});}else{let _0xb245d0=Array[_0x2379('0x18')](_0x363d34[_0x2379('0x13')]());if(!_0xa86dc0){const _0x4908f2=Array[_0x2379('0x18')](_0x4c228d[_0x2379('0xf')](_0x30d445[_0x2379('0xc')],!0x1))[0x0][_0x2379('0x2a')],_0x4acd18=[];for(const _0x38a67f of _0xb245d0){const _0x177b89=this[_0x2379('0x1a')](_0x20f3c3['model'],_0x38a67f,_0x30d445[_0x2379('0x3')],_0x4908f2);_0x4acd18[_0x2379('0x1d')](..._0x177b89);}_0xb245d0=_0x4acd18;}_0x20f3c3[_0x2379('0x2a')][_0x2379('0x15')](()=>{for(const _0x4a08bd of _0xb245d0)_0x4e3474[_0x2379('0x14')](_0x4a08bd,{'commandName':_0x2379('0x11'),'commandParams':[{'styleName':_0x46a46c,'forceValue':_0xa86dc0}]});});}}),_0x4e3474[_0x2379('0x6')]['registerDescriptionCallback'](_0x3a0480=>{const {data:_0x217dd6}=_0x3a0480;if(_0x217dd6&&_0x2379('0x11')===_0x217dd6[_0x2379('0x1b')])return _0x217dd6[_0x2379('0x12')][0x0][_0x2379('0x2e')]?{'type':_0x2379('0x28'),'content':_0xec7f07(_0x3402ed,_0x2379('0x1f'),_0x217dd6['commandParams'][0x0]['styleName'][_0x2379('0x19')]())}:{'type':'format','content':_0xec7f07(_0x3402ed,_0x2379('0xb'),_0x217dd6[_0x2379('0x12')][0x0][_0x2379('0x20')][_0x2379('0x19')]())};});}[_0x2379('0x27')](_0x54316b,_0x59d7b1){let _0x1c10b2=_0x59d7b1['block'][_0x2379('0xa')](_0x50f819=>_0x50f819['name']===_0x54316b);return _0x1c10b2||(_0x1c10b2=_0x59d7b1['inline'][_0x2379('0xa')](_0x42289d=>_0x42289d[_0x2379('0x25')]===_0x54316b)),_0x1c10b2;}[_0x2379('0x1a')](_0x35cad4,_0x22c88d,_0x4ab7e2,_0x339125){const _0x20f17c=[];for(const _0x15da4a of _0x22c88d[_0x2379('0x21')]()){const _0x206618=_0x15da4a[_0x2379('0x29')](_0x339125);_0x206618&&(_0x4ab7e2[_0x2379('0x1')](_0x51515d=>_0x206618[_0x2379('0x3')][_0x2379('0x0')](_0x51515d))&&_0x20f17c['push'](_0x35cad4[_0x2379('0x2d')](_0x15da4a)));}return _0x20f17c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3473=['insertTableColumnRight','toViewElement','createPositionAt','data','from','MAX_SAFE_INTEGER','getItems','options','_tableSuggestions','getRowIndexes','isTouching','getRanges','getSelectionAffectedTableCells','position','every','hasAttribute','insertTableRowBelow','isArray','accept','fromRange','_tablePostFixingSubtypes','TrackChangesEditing','locale','ELEMENT_TABLE_WITH_TEXT','registerElementLabel','_getSuggestionCoords','createRangeIn','insertTable','_splitMarkerName','plugins','createTableWalker','getChangedMarkers','downcastDispatcher','setSelection','nodeAfter','includes','$textProxy','enqueueChange','tableRow','toLowerCase','addMarker:suggestion','_setupColumnsRowsFixing','selectTableRow','ELEMENT_TABLE_COLUMN','selection','startsWith','change:data','selectTableColumn','getColumnIndexes','ELEMENT_TABLE_ROW','table','batch','getCellLocation','createRangeOn','map','registerCustomCallback','type','join','removeTableColumn','_getCoordsForCells','some','order','document','getFirstRange','highest','last','findAncestor','minRow','writer','name','isEqual','get','markMultiRangeInsertion','isInContent','max','rowspan','registerDescriptionCallback','nodeBefore','*Remove:*\x20%0','deletion','detach','insertion','removeTableRow','tableCell','oldRange','end','substr','mapper','insert','span','MIN_SAFE_INTEGER','TableUtils','cell','tableColumn','getAttribute','$graveyard','subType','tablePaste','refresh','removeClass','*Insert:*\x20%0','change','colspan','getChanges','has','getContainedElement','addClass','discard','filter','start','TableEditing','commands','differ','model','left','element','item','above','first','ELEMENT_TABLE_COLUMN_WITH_TEXT','root','length','enableCommand','editor','add','getChildren','rootName','_suggestionFactory','maxRow','_descriptionFactory'];(function(_0x5e4c61,_0x3473fb){const _0x5f5720=function(_0x34b258){while(--_0x34b258){_0x5e4c61['push'](_0x5e4c61['shift']());}};_0x5f5720(++_0x3473fb);}(_0x3473,0x1f0));const _0x5f57=function(_0x5e4c61,_0x3473fb){_0x5e4c61=_0x5e4c61-0x0;let _0x5f5720=_0x3473[_0x5e4c61];return _0x5f5720;};import{Plugin as _0x7e3525}from'ckeditor5/src/core';import{LiveRange as _0x2faa42}from'ckeditor5/src/engine';import{setHighlightHandling as _0x104ca5}from'ckeditor5/src/widget';import{getTranslation as _0x3e4497}from'../utils/common-translations';export default class mt extends _0x7e3525{constructor(_0x70a97f){super(_0x70a97f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this[_0x5f57('0x20')]=new Set();}['afterInit'](){const _0x5a3aba=this[_0x5f57('0x11')],_0x4bc162=_0x5a3aba[_0x5f57('0x7')][_0x5f57('0x56')][_0x5f57('0x44')];if(!_0x5a3aba['plugins'][_0x5f57('0x80')](_0x5f57('0x4')))return;const _0x4f17de=_0x5a3aba[_0x5f57('0x2e')],_0xcd34a6=_0x5a3aba['plugins'][_0x5f57('0x5f')](_0x5f57('0x2d')),_0x4a90e5=_0x5a3aba[_0x5f57('0x35')][_0x5f57('0x5f')]('TableUtils');_0xcd34a6[_0x5f57('0x17')][_0x5f57('0x30')]('table',_0x2c2f99=>_0x3e4497(_0x4f17de,'ELEMENT_TABLE',_0x2c2f99)),this[_0x5f57('0x41')](),_0xcd34a6[_0x5f57('0x10')](_0x5f57('0x33')),_0xcd34a6[_0x5f57('0x10')](_0x5f57('0x42')),_0xcd34a6[_0x5f57('0x10')](_0x5f57('0x47'));for(const _0x211766 of['insertTableRowAbove',_0x5f57('0x28')]){const _0x13a577=_0x5a3aba[_0x5f57('0x5')][_0x5f57('0x5f')](_0x211766);_0xcd34a6[_0x5f57('0x10')](_0x211766,_0x178668=>{_0x5a3aba[_0x5f57('0x7')][_0x5f57('0x7d')](_0x198f8d=>{_0x178668();const _0x17d940=_0x5f57('0xb')===_0x13a577[_0x5f57('0x55')],_0xdbf504=_0x4a90e5[_0x5f57('0x24')](_0x4bc162),_0x43e645=_0x4a90e5[_0x5f57('0x21')](_0xdbf504),_0x23848f=_0x17d940?_0x43e645['first']-0x1:_0x43e645['last']+0x1,_0x9b04d0=_0xdbf504[0x0]['findAncestor'](_0x5f57('0x4a')),_0x413b7a=_0x4a90e5['createTableWalker'](_0x9b04d0,{'startRow':_0x23848f,'endRow':_0x23848f}),_0x2ec16e=Array[_0x5f57('0x1c')](_0x413b7a)[_0x5f57('0x4e')](_0x4cd445=>_0x198f8d[_0x5f57('0x4d')](_0x4cd445[_0x5f57('0x74')]));_0xcd34a6[_0x5f57('0x60')](_0x2ec16e,'tableRow');});});}for(const _0xfe1257 of['insertTableColumnLeft',_0x5f57('0x18')]){const _0x44a48e=_0x5a3aba['commands']['get'](_0xfe1257);_0xcd34a6['enableCommand'](_0xfe1257,_0x178ce8=>{_0x5a3aba[_0x5f57('0x7')]['change'](_0x24e790=>{_0x178ce8();const _0x21562d=_0x5f57('0x8')===_0x44a48e[_0x5f57('0x55')],_0x566244=_0x4a90e5[_0x5f57('0x24')](_0x4bc162),_0x5f4522=_0x4a90e5[_0x5f57('0x48')](_0x566244),_0x1f78d0=_0x21562d?_0x5f4522[_0x5f57('0xc')]-0x1:_0x5f4522[_0x5f57('0x59')]+0x1,_0x52aadf=_0x566244[0x0]['findAncestor'](_0x5f57('0x4a')),_0x3b5e0c=_0x4a90e5[_0x5f57('0x36')](_0x52aadf,{'startRow':0x0,'column':_0x1f78d0,'includeAllSlots':!0x1}),_0x5b8a3b=Array[_0x5f57('0x1c')](_0x3b5e0c)[_0x5f57('0x4e')](_0x51b7d9=>_0x24e790[_0x5f57('0x4d')](_0x51b7d9[_0x5f57('0x74')]));_0xcd34a6[_0x5f57('0x60')](_0x5b8a3b,_0x5f57('0x75'));});});}for(const _0x1400a3 of[_0x5f57('0x6a'),_0x5f57('0x52')]){const _0x4faf39=_0x1400a3[_0x5f57('0x6e')](0xb),_0x3a1600=_0x4faf39['toLowerCase'](),_0x4825bb=_0x3a1600[_0x5f57('0x6e')](0x0,0x3)+_0x5f57('0x71'),_0xfec83a=_0x5f57('0x4a')+_0x4faf39,_0x48dfe1='min'+_0x4faf39,_0x5a7d6b=_0x5f57('0x62')+_0x4faf39;_0xcd34a6['enableCommand'](_0x1400a3,()=>{_0x5a3aba[_0x5f57('0x7')][_0x5f57('0x7d')](_0x2ff404=>{const _0x3cf0cf=_0x4a90e5[_0x5f57('0x24')](_0x4bc162),_0x1c799d=_0x3cf0cf[0x0][_0x5f57('0x5a')](_0x5f57('0x4a'));let _0x53e5e2;if(_0x5f57('0x6a')==_0x1400a3){const _0x4a8af8=_0x4a90e5[_0x5f57('0x21')](_0x3cf0cf);_0x53e5e2={'startRow':_0x4a8af8['first'],'endRow':_0x4a8af8[_0x5f57('0x59')],'includeAllSlots':!0x0};}else{const _0x406ece=_0x4a90e5[_0x5f57('0x48')](_0x3cf0cf);_0x53e5e2={'startColumn':_0x406ece[_0x5f57('0xc')],'endColumn':_0x406ece[_0x5f57('0x59')],'includeAllSlots':!0x0};}const _0x2aa7e2=_0x4a90e5[_0x5f57('0x36')](_0x1c799d,_0x53e5e2),_0x95abe=Array[_0x5f57('0x1c')](_0x2aa7e2)['map'](({cell:_0x1d8106})=>_0x1d8106),_0x504f40=se(_0x95abe[_0x5f57('0x2')](_0x244a11=>_0x244a11[_0x5f57('0x27')](_0x4825bb))),_0xbcb427=se(_0x95abe[_0x5f57('0x2')](_0x585818=>!_0x585818[_0x5f57('0x27')](_0x4825bb)))[_0x5f57('0x4e')](_0xb72c0b=>_0x2ff404[_0x5f57('0x4d')](_0xb72c0b)),_0x28a332=_0xcd34a6['markMultiRangeDeletion'](_0xbcb427,_0xfec83a);if(_0x28a332&&(_0x5f57('0x3e')==_0x28a332[_0x5f57('0x78')]||_0x5f57('0x75')==_0x28a332['subType'])){const _0x45b88d=this[_0x5f57('0x31')](_0x28a332);for(const _0x5b4596 of _0x504f40){const _0x2a362a=_0x2ff404['createRangeOn'](_0x5b4596),_0x21147c=_0x4a90e5[_0x5f57('0x4c')](_0x5b4596),_0x2b1cd7=_0x5b4596[_0x5f57('0x76')](_0x4825bb)-0x1,_0x525cbc=_0x45b88d[_0x48dfe1],_0x18e145=_0x45b88d[_0x5a7d6b];_0x525cbc<=_0x21147c[_0x3a1600]&&_0x21147c[_0x3a1600]+_0x2b1cd7<=_0x18e145&&_0x28a332['addRange'](_0x2a362a);}}});});}function _0x2da1d8(_0x12d3f3){const _0x116ce0=Array['from'](_0x4bc162[_0x5f57('0x23')]())[_0x5f57('0x4e')](_0x883d68=>_0x2faa42['fromRange'](_0x883d68));_0x5a3aba[_0x5f57('0x7')][_0x5f57('0x7d')](_0xff9b6f=>{const _0x5c70b3=_0xff9b6f[_0x5f57('0x4b')];_0x12d3f3=_0x12d3f3[_0x5f57('0x2')](_0x2dcb24=>_0x5f57('0x77')!=_0x2dcb24[_0x5f57('0xe')]['rootName']),_0xff9b6f['setSelection'](_0x12d3f3),_0x5a3aba[_0x5f57('0x5')][_0x5f57('0x5f')](_0x5f57('0x6a'))[_0x5f57('0x7a')](),_0x5a3aba['execute'](_0x5f57('0x6a'),{'forceDefaultExecution':!0x0}),_0x5a3aba[_0x5f57('0x7')]['enqueueChange'](()=>{_0x5a3aba[_0x5f57('0x7')][_0x5f57('0x3d')](_0x5c70b3,_0x35d711=>{const _0x2ec242=_0x116ce0[_0x5f57('0x2')](_0x276f6e=>'$graveyard'!=_0x276f6e['root'][_0x5f57('0x14')]);_0x2ec242[_0x5f57('0xf')]>0x0&&_0x35d711[_0x5f57('0x39')](_0x2ec242);for(const _0x2f43d7 of _0x116ce0)_0x2f43d7[_0x5f57('0x68')]();});});});}function _0x442d31(_0x4b1d94){_0x5a3aba[_0x5f57('0x7')]['change'](_0x190aeb=>{const _0x1daad2=Array[_0x5f57('0x1c')](_0x4bc162[_0x5f57('0x23')]())['map'](_0x205905=>_0x2faa42[_0x5f57('0x2b')](_0x205905)),_0x300e58=[];for(const _0x215215 of _0x4b1d94)for(const _0x437f27 of _0x215215['getItems']({'shallow':!0x0}))_0x300e58['push'](_0x437f27);for(const _0x8b6d18 of _0x300e58)'$graveyard'!=_0x8b6d18[_0x5f57('0xe')][_0x5f57('0x14')]&&(_0x190aeb[_0x5f57('0x39')](_0x190aeb[_0x5f57('0x1a')](_0x8b6d18,0x0)),_0x5a3aba[_0x5f57('0x5')][_0x5f57('0x5f')]('removeTableColumn')[_0x5f57('0x7a')](),_0x5a3aba['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x18472d=_0x1daad2[_0x5f57('0x2')](_0x475617=>'$graveyard'!=_0x475617[_0x5f57('0xe')][_0x5f57('0x14')]);_0x18472d[_0x5f57('0xf')]>0x0&&_0x190aeb['setSelection'](_0x18472d);for(const _0xbab0af of _0x1daad2)_0xbab0af[_0x5f57('0x68')]();});}function _0x1556fc(_0x523ef8,_0x189baf){return _0x189baf[_0x5f57('0x26')](_0xe1c8a8=>_0x523ef8[_0x5f57('0x54')](_0x55c3fc=>_0x55c3fc['end'][_0x5f57('0x5e')](_0xe1c8a8[_0x5f57('0x3')])||_0xe1c8a8[_0x5f57('0x6d')][_0x5f57('0x5e')](_0x55c3fc[_0x5f57('0x3')])));}function _0x589b39(_0x209b0d,_0x336605){return _0x209b0d[_0x5f57('0x54')](_0x25e4bc=>_0x336605[_0x5f57('0x54')](_0x25f3ae=>_0x25e4bc['end'][_0x5f57('0x22')](_0x25f3ae[_0x5f57('0x3')])));}_0x5a3aba[_0x5f57('0x1b')][_0x5f57('0x38')]['on'](_0x5f57('0x40'),(_0x9da9ad,_0x4b64cc,_0x31ccd4)=>{if(!_0x31ccd4[_0x5f57('0x1f')]['showSuggestionHighlights'])return;const _0x4149c6=_0x4b64cc[_0x5f57('0xa')];if(!_0x4149c6)return;const _0x23d92b=_0x31ccd4[_0x5f57('0x6f')][_0x5f57('0x19')](_0x4149c6);function _0x1ced6f(_0x3f8120){return Array[_0x5f57('0x29')](_0x3f8120)?_0x3f8120:[_0x3f8120];}_0x23d92b&&_0x5f57('0x6b')===_0x4149c6[_0x5f57('0x5d')]&&_0x104ca5(_0x23d92b,_0x31ccd4[_0x5f57('0x5c')],(_0x57eeb0,_0x2c2b9f,_0x292644)=>_0x292644[_0x5f57('0x0')](_0x1ced6f(_0x2c2b9f['classes']),_0x57eeb0),(_0x1c3dba,_0x4471af,_0x16c9c6)=>_0x16c9c6[_0x5f57('0x7b')](_0x1ced6f(_0x4471af['classes']),_0x1c3dba));},{'priority':_0x5f57('0x58')}),_0xcd34a6[_0x5f57('0x17')][_0x5f57('0x64')](_0x1c2bdf=>{if('insertion'!=_0x1c2bdf[_0x5f57('0x50')]&&_0x5f57('0x67')!=_0x1c2bdf['type'])return;const _0x53725d=_0x1c2bdf[_0x5f57('0x81')]();if(null!=_0x53725d&&_0x53725d['is'](_0x5f57('0x9'),_0x5f57('0x4a'))){if(_0x5f57('0x69')==_0x1c2bdf[_0x5f57('0x50')]){const _0x201db7=_0x1c2bdf[_0x5f57('0x1e')]()[_0x5f57('0x2')](_0x55b6c0=>_0x55b6c0['is'](_0x5f57('0x3c')))['map'](_0x53b5ff=>_0x53b5ff[_0x5f57('0x1b')]);if(_0x201db7[_0x5f57('0xf')])return{'type':_0x5f57('0x69'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x7c'),_0x3e4497(_0x4f17de,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x201db7['join']('\x20')+'\x22'))};}if(_0x5f57('0x67')==_0x1c2bdf[_0x5f57('0x50')]){const _0x4e8e99=_0x1c2bdf[_0x5f57('0x1e')]()[_0x5f57('0x2')](_0x7dcefd=>_0x7dcefd['is'](_0x5f57('0x3c')))[_0x5f57('0x4e')](_0x58f016=>_0x58f016[_0x5f57('0x1b')]);if(_0x4e8e99['length'])return{'type':'deletion','content':_0x3e4497(_0x4f17de,_0x5f57('0x66'),_0x3e4497(_0x4f17de,_0x5f57('0x2f'),'\x22'+_0x4e8e99[_0x5f57('0x51')]('\x20')+'\x22'))};}}}),_0xcd34a6[_0x5f57('0x17')][_0x5f57('0x64')](_0x49c726=>{if('tableRow'==_0x49c726[_0x5f57('0x78')]){const _0x21898f=_0x49c726[_0x5f57('0x1e')]()['filter'](_0x54720a=>_0x54720a['is'](_0x5f57('0x3c')))[_0x5f57('0x4e')](_0xb92ac5=>_0xb92ac5[_0x5f57('0x1b')]),_0x330ef5=this['_getSuggestionCoords'](_0x49c726),_0x41dd69=_0x330ef5[_0x5f57('0x16')]-_0x330ef5[_0x5f57('0x5b')]+0x1;if(_0x5f57('0x69')==_0x49c726[_0x5f57('0x50')])return _0x21898f[_0x5f57('0xf')]?{'type':'insertion','content':_0x3e4497(_0x4f17de,_0x5f57('0x7c'),_0x3e4497(_0x4f17de,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41dd69,'\x22'+_0x21898f[_0x5f57('0x51')]('\x20')+'\x22']))}:{'type':_0x5f57('0x69'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x7c'),_0x3e4497(_0x4f17de,_0x5f57('0x49'),_0x41dd69))};if(_0x5f57('0x67')==_0x49c726[_0x5f57('0x50')])return _0x21898f['length']?{'type':_0x5f57('0x67'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x66'),_0x3e4497(_0x4f17de,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41dd69,'\x22'+_0x21898f[_0x5f57('0x51')]('\x20')+'\x22']))}:{'type':_0x5f57('0x67'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x66'),_0x3e4497(_0x4f17de,_0x5f57('0x49'),_0x41dd69))};}if(_0x5f57('0x75')==_0x49c726[_0x5f57('0x78')]){const _0x2f1b67=_0x49c726[_0x5f57('0x1e')]()['filter'](_0x5ecb39=>_0x5ecb39['is'](_0x5f57('0x3c')))[_0x5f57('0x4e')](_0x3c7157=>_0x3c7157['data']),_0x3f9249=this[_0x5f57('0x31')](_0x49c726),_0x3775e5=_0x3f9249['maxColumn']-_0x3f9249['minColumn']+0x1;if('insertion'==_0x49c726[_0x5f57('0x50')])return _0x2f1b67[_0x5f57('0xf')]?{'type':'insertion','content':_0x3e4497(_0x4f17de,'*Insert:*\x20%0',_0x3e4497(_0x4f17de,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3775e5,'\x22'+_0x2f1b67[_0x5f57('0x51')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x3e4497(_0x4f17de,_0x5f57('0x7c'),_0x3e4497(_0x4f17de,_0x5f57('0x43'),_0x3775e5))};if(_0x5f57('0x67')==_0x49c726[_0x5f57('0x50')])return _0x2f1b67[_0x5f57('0xf')]?{'type':_0x5f57('0x67'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x66'),_0x3e4497(_0x4f17de,_0x5f57('0xd'),[_0x3775e5,'\x22'+_0x2f1b67[_0x5f57('0x51')]('\x20')+'\x22']))}:{'type':_0x5f57('0x67'),'content':_0x3e4497(_0x4f17de,_0x5f57('0x66'),_0x3e4497(_0x4f17de,'ELEMENT_TABLE_COLUMN',_0x3775e5))};}}),_0xcd34a6[_0x5f57('0x15')]['registerCustomCallback'](_0x5f57('0x69'),_0x5f57('0x3e'),_0x5f57('0x1'),_0x2da1d8),_0xcd34a6[_0x5f57('0x15')]['registerCustomCallback']('deletion',_0x5f57('0x3e'),_0x5f57('0x2a'),_0x2da1d8),_0xcd34a6[_0x5f57('0x15')]['registerCustomCallback'](_0x5f57('0x69'),'tableColumn',_0x5f57('0x1'),_0x442d31),_0xcd34a6['_suggestionFactory']['registerCustomCallback']('deletion',_0x5f57('0x75'),_0x5f57('0x2a'),_0x442d31),_0xcd34a6[_0x5f57('0x15')][_0x5f57('0x4f')](_0x5f57('0x69'),_0x5f57('0x75'),_0x5f57('0x51'),_0x1556fc),_0xcd34a6[_0x5f57('0x15')]['registerCustomCallback'](_0x5f57('0x67'),_0x5f57('0x75'),_0x5f57('0x51'),_0x1556fc),_0xcd34a6[_0x5f57('0x15')]['registerCustomCallback'](_0x5f57('0x69'),_0x5f57('0x3e'),'join',_0x589b39),_0xcd34a6[_0x5f57('0x15')][_0x5f57('0x4f')]('deletion','tableRow','join',_0x589b39);}['_acceptFormatSuggestionCallbackFactory'](){const _0x52f0ae=this[_0x5f57('0x11')],_0x166131=_0x52f0ae[_0x5f57('0x7')]['document'][_0x5f57('0x44')];return(_0x96c944,_0x579bc5)=>{_0x52f0ae[_0x5f57('0x7')]['change'](_0x2bdb2d=>{const {commandName:_0xd04c9e,commandParams:_0x22f4a2}=_0x579bc5;let _0x1acf1c=_0x96c944[0x0][_0x5f57('0x6d')][_0x5f57('0x65')];_0x22f4a2&&_0x22f4a2[0x0]&&!0x1===_0x22f4a2[0x0]['forceValue']&&(_0x1acf1c=_0x96c944[0x0]['start'][_0x5f57('0x3a')]);const _0xd38998=_0x2bdb2d[_0x5f57('0x32')](_0x1acf1c);if(_0x5f57('0x77')==_0xd38998['root'][_0x5f57('0x14')])return;const _0x5be059=Array[_0x5f57('0x1c')](_0x166131[_0x5f57('0x23')]())[_0x5f57('0x4e')](_0x5c34fa=>_0x2faa42[_0x5f57('0x2b')](_0x5c34fa));_0x2bdb2d[_0x5f57('0x39')](_0xd38998),_0x52f0ae[_0x5f57('0x5')][_0x5f57('0x5f')](_0xd04c9e)[_0x5f57('0x7a')](),_0x22f4a2['push']({'forceDefaultExecution':!0x0}),_0x52f0ae['execute'](_0xd04c9e,..._0x22f4a2);const _0x50d69e=_0x5be059[_0x5f57('0x2')](_0x599026=>_0x5f57('0x77')!=_0x599026[_0x5f57('0xe')]['rootName']);_0x50d69e[_0x5f57('0xf')]>0x0&&_0x2bdb2d[_0x5f57('0x39')](_0x50d69e);for(const _0x34c728 of _0x5be059)_0x34c728[_0x5f57('0x68')]();});};}[_0x5f57('0x53')](_0x5ca5c9){const _0x41a77b=this[_0x5f57('0x11')][_0x5f57('0x35')][_0x5f57('0x5f')](_0x5f57('0x73'));let _0x5d0367=Number[_0x5f57('0x1d')],_0x474053=Number[_0x5f57('0x72')],_0x4e3f7c=Number['MAX_SAFE_INTEGER'],_0x349db8=Number[_0x5f57('0x72')];for(const _0x484ff4 of _0x5ca5c9){if(_0x5f57('0x77')==_0x484ff4[_0x5f57('0xe')]['rootName'])continue;const {row:_0x48ebdd,column:_0x3b3668}=_0x41a77b[_0x5f57('0x4c')](_0x484ff4),_0x953dab=_0x484ff4[_0x5f57('0x27')]('rowspan')?_0x484ff4['getAttribute'](_0x5f57('0x63'))-0x1:0x0,_0x324f0b=_0x484ff4[_0x5f57('0x27')](_0x5f57('0x7e'))?_0x484ff4[_0x5f57('0x76')](_0x5f57('0x7e'))-0x1:0x0;_0x5d0367=_0x48ebdd<_0x5d0367?_0x48ebdd:_0x5d0367,_0x474053=_0x48ebdd+_0x953dab>_0x474053?_0x48ebdd+_0x953dab:_0x474053,_0x4e3f7c=_0x3b3668<_0x4e3f7c?_0x3b3668:_0x4e3f7c,_0x349db8=_0x3b3668+_0x324f0b>_0x349db8?_0x3b3668+_0x324f0b:_0x349db8;}return{'minRow':_0x5d0367,'maxRow':_0x474053,'minColumn':_0x4e3f7c,'maxColumn':_0x349db8};}[_0x5f57('0x41')](){const _0x4ba37b=this[_0x5f57('0x11')],_0x14585c=_0x4ba37b[_0x5f57('0x35')][_0x5f57('0x5f')](_0x5f57('0x2d')),_0x3a04b0=_0x4ba37b['plugins'][_0x5f57('0x5f')](_0x5f57('0x73'));_0x4ba37b['model'][_0x5f57('0x56')]['on'](_0x5f57('0x46'),()=>{const _0x59db60=Array['from'](_0x4ba37b[_0x5f57('0x7')]['document'][_0x5f57('0x6')][_0x5f57('0x37')]());for(const {name:_0x1fa1f5,data:_0x3cffe6}of _0x59db60){const {group:_0x1445ad,id:_0x4952d6,subType:_0x3300a0}=_0x14585c[_0x5f57('0x34')](_0x1fa1f5);if('suggestion'!=_0x1445ad)continue;if(null!=_0x3cffe6[_0x5f57('0x6c')])continue;const _0x35a29d=_0x14585c['getSuggestion'](_0x4952d6);this[_0x5f57('0x2c')][_0x5f57('0x3b')](_0x3300a0)&&this['_tableSuggestions'][_0x5f57('0x12')](_0x35a29d);}},{'priority':'low'});const _0x3e05f6=(_0x1486d8,_0x1823de)=>{let _0x33075d=!0x1;const _0x428c04=_0x1823de[_0x5f57('0x4d')](_0x1486d8),_0x456d3e=_0x1486d8[_0x5f57('0x5a')]('table'),_0x2c8d9b=_0x3a04b0[_0x5f57('0x4c')](_0x1486d8);for(const _0x45b10d of this[_0x5f57('0x20')]){const _0x488ef6=_0x45b10d['subType'],_0x139226=_0x488ef6[_0x5f57('0x45')](_0x5f57('0x79')),_0x30f7a7=_0x488ef6[_0x5f57('0x6e')](_0x139226?0xa:0x5),_0x1f3a16=_0x30f7a7[_0x5f57('0x3f')](),_0x3f9ab3=_0x1f3a16[_0x5f57('0x6e')](0x0,0x3)+'span',_0x443973='min'+_0x30f7a7,_0x2ca2d2=_0x5f57('0x62')+_0x30f7a7;if(!_0x45b10d[_0x5f57('0x61')])continue;if(_0x456d3e!=_0x45b10d[_0x5f57('0x57')]()['start'][_0x5f57('0x5a')](_0x5f57('0x4a')))continue;if(_0x45b10d['isIntersectingWithRange'](_0x428c04))continue;const _0x31759c=_0x1486d8['hasAttribute'](_0x3f9ab3)?_0x1486d8[_0x5f57('0x76')](_0x3f9ab3)-0x1:0x0,_0x5eacf0=this['_getSuggestionCoords'](_0x45b10d),_0x4c99ee=_0x5eacf0[_0x443973],_0x2ac70e=_0x5eacf0[_0x2ca2d2];_0x4c99ee<=_0x2c8d9b[_0x1f3a16]&&_0x2c8d9b[_0x1f3a16]+_0x31759c<=_0x2ac70e&&(_0x45b10d['addRange'](_0x428c04),_0x33075d=!0x0);}return _0x33075d;};_0x4ba37b['model'][_0x5f57('0x56')]['registerPostFixer'](_0x550a0d=>{let _0x53da0d=!0x1;for(const _0x3e2074 of _0x4ba37b[_0x5f57('0x7')][_0x5f57('0x56')]['differ'][_0x5f57('0x7f')]())if(_0x5f57('0x70')==_0x3e2074[_0x5f57('0x50')]){if(_0x5f57('0x3e')==_0x3e2074[_0x5f57('0x5d')])for(const _0x4212cc of _0x3e2074[_0x5f57('0x25')]['nodeAfter'][_0x5f57('0x13')]())_0x53da0d=_0x53da0d||_0x3e05f6(_0x4212cc,_0x550a0d);else _0x5f57('0x6b')==_0x3e2074[_0x5f57('0x5d')]&&(_0x53da0d=_0x53da0d||_0x3e05f6(_0x3e2074[_0x5f57('0x25')]['nodeAfter'],_0x550a0d));}return _0x53da0d;});}[_0x5f57('0x31')](_0xfb4a86){return this[_0x5f57('0x53')](_0xfb4a86[_0x5f57('0x23')]()[_0x5f57('0x4e')](_0x28d033=>_0x28d033[_0x5f57('0x3')]['nodeAfter']));}}function se(_0x4e52d0){return Array[_0x5f57('0x1c')](new Set(_0x4e52d0)['values']());}
|
|
23
|
+
const _0x32c0=['includes','span','forceValue','downcastDispatcher','setSelection','isEqual','*Insert:*\x20%0','getRanges','commands','insertTableRowBelow','getRowIndexes','every','from','editor','max','_suggestionFactory','substr','_getCoordsForCells','ELEMENT_TABLE_WITH_TEXT','rowspan','getAttribute','getChildren','*Remove:*\x20%0','markMultiRangeInsertion','above','ELEMENT_TABLE_ROW','type','filter','ELEMENT_TABLE','_tableSuggestions','getColumnIndexes','createTableWalker','minRow','registerElementLabel','startsWith','_splitMarkerName','insertTableColumnRight','element','detach','min','classes','tableColumn','removeTableRow','discard','MIN_SAFE_INTEGER','_acceptFormatSuggestionCallbackFactory','colspan','findAncestor','_setupColumnsRowsFixing','change:data','table','addRange','addClass','push','subType','deletion','get','isInContent','TableEditing','model','item','last','nodeAfter','showSuggestionHighlights','length','rootName','ELEMENT_TABLE_COLUMN_WITH_TEXT','getFirstRange','markMultiRangeDeletion','start','name','getContainedElement','createPositionAt','accept','MAX_SAFE_INTEGER','refresh','has','ELEMENT_TABLE_ROW_WITH_TEXT','maxColumn','_tablePostFixingSubtypes','end','tablePaste','order','suggestion','enqueueChange','writer','some','addMarker:suggestion','getSelectionAffectedTableCells','ELEMENT_TABLE_COLUMN','maxRow','toViewElement','TrackChangesEditing','getSuggestion','insertTableRowAbove','getCellLocation','left','insertTableColumnLeft','position','$textProxy','registerDescriptionCallback','_getSuggestionCoords','toLowerCase','TableUtils','insertion','$graveyard','createRangeOn','removeTableColumn','registerCustomCallback','data','createRangeIn','join','getChanges','tableCell','selection','first','nodeBefore','enableCommand','document','differ','insertTable','map','change','execute','tableRow','highest','fromRange','plugins','cell','hasAttribute','options','_descriptionFactory','getItems','root'];(function(_0x41db20,_0x32c00e){const _0x4d4893=function(_0xbbb212){while(--_0xbbb212){_0x41db20['push'](_0x41db20['shift']());}};_0x4d4893(++_0x32c00e);}(_0x32c0,0x178));const _0x4d48=function(_0x41db20,_0x32c00e){_0x41db20=_0x41db20-0x0;let _0x4d4893=_0x32c0[_0x41db20];return _0x4d4893;};import{Plugin as _0x37023e}from'ckeditor5/src/core';import{LiveRange as _0x5ea2e3}from'ckeditor5/src/engine';import{setHighlightHandling as _0x41a084}from'ckeditor5/src/widget';import{getTranslation as _0x350be1}from'../utils/common-translations';export default class mt extends _0x37023e{constructor(_0x1333ce){super(_0x1333ce),this[_0x4d48('0x69')]=[_0x4d48('0x10'),'tableColumn'],this[_0x4d48('0x37')]=new Set();}['afterInit'](){const _0x2e580b=this[_0x4d48('0x27')],_0x548b10=_0x2e580b[_0x4d48('0x55')][_0x4d48('0xa')][_0x4d48('0x6')];if(!_0x2e580b['plugins'][_0x4d48('0x66')](_0x4d48('0x54')))return;const _0x41df6e=_0x2e580b['locale'],_0x57bede=_0x2e580b[_0x4d48('0x13')][_0x4d48('0x52')](_0x4d48('0x76')),_0x5207a4=_0x2e580b[_0x4d48('0x13')][_0x4d48('0x52')](_0x4d48('0x81'));_0x57bede[_0x4d48('0x17')][_0x4d48('0x3b')](_0x4d48('0x4c'),_0x2ff2a7=>_0x350be1(_0x41df6e,_0x4d48('0x36'),_0x2ff2a7)),this[_0x4d48('0x4a')](),_0x57bede[_0x4d48('0x9')](_0x4d48('0xc')),_0x57bede['enableCommand']('selectTableRow'),_0x57bede[_0x4d48('0x9')]('selectTableColumn');for(const _0x246541 of[_0x4d48('0x78'),_0x4d48('0x23')]){const _0x1bdf43=_0x2e580b['commands'][_0x4d48('0x52')](_0x246541);_0x57bede[_0x4d48('0x9')](_0x246541,_0x5cbb13=>{_0x2e580b['model'][_0x4d48('0xe')](_0xaac0d0=>{_0x5cbb13();const _0x41b939=_0x4d48('0x32')===_0x1bdf43[_0x4d48('0x6c')],_0x5864dc=_0x5207a4[_0x4d48('0x72')](_0x548b10),_0x472bbf=_0x5207a4[_0x4d48('0x24')](_0x5864dc),_0x4dc1b8=_0x41b939?_0x472bbf[_0x4d48('0x7')]-0x1:_0x472bbf[_0x4d48('0x57')]+0x1,_0x118eb9=_0x5864dc[0x0][_0x4d48('0x49')]('table'),_0x23582e=_0x5207a4[_0x4d48('0x39')](_0x118eb9,{'startRow':_0x4dc1b8,'endRow':_0x4dc1b8}),_0x45138f=Array[_0x4d48('0x26')](_0x23582e)[_0x4d48('0xd')](_0x308053=>_0xaac0d0[_0x4d48('0x84')](_0x308053[_0x4d48('0x14')]));_0x57bede['markMultiRangeInsertion'](_0x45138f,_0x4d48('0x10'));});});}for(const _0xe0e2d3 of[_0x4d48('0x7b'),_0x4d48('0x3e')]){const _0x262fa1=_0x2e580b[_0x4d48('0x22')][_0x4d48('0x52')](_0xe0e2d3);_0x57bede[_0x4d48('0x9')](_0xe0e2d3,_0xd3ddf3=>{_0x2e580b[_0x4d48('0x55')][_0x4d48('0xe')](_0x5c6d28=>{_0xd3ddf3();const _0x230f27=_0x4d48('0x7a')===_0x262fa1[_0x4d48('0x6c')],_0x42c52a=_0x5207a4[_0x4d48('0x72')](_0x548b10),_0x3a6af1=_0x5207a4['getColumnIndexes'](_0x42c52a),_0x4cc90f=_0x230f27?_0x3a6af1[_0x4d48('0x7')]-0x1:_0x3a6af1[_0x4d48('0x57')]+0x1,_0x31fe32=_0x42c52a[0x0][_0x4d48('0x49')](_0x4d48('0x4c')),_0x14928e=_0x5207a4[_0x4d48('0x39')](_0x31fe32,{'startRow':0x0,'column':_0x4cc90f,'includeAllSlots':!0x1}),_0x536e01=Array[_0x4d48('0x26')](_0x14928e)['map'](_0x8f334=>_0x5c6d28[_0x4d48('0x84')](_0x8f334[_0x4d48('0x14')]));_0x57bede[_0x4d48('0x31')](_0x536e01,_0x4d48('0x43'));});});}for(const _0x2bd60e of[_0x4d48('0x44'),_0x4d48('0x85')]){const _0x36c04a=_0x2bd60e[_0x4d48('0x2a')](0xb),_0x7ca00b=_0x36c04a['toLowerCase'](),_0x4c7eea=_0x7ca00b[_0x4d48('0x2a')](0x0,0x3)+_0x4d48('0x1b'),_0x4672e1=_0x4d48('0x4c')+_0x36c04a,_0x5ec964=_0x4d48('0x41')+_0x36c04a,_0x35cb63=_0x4d48('0x28')+_0x36c04a;_0x57bede[_0x4d48('0x9')](_0x2bd60e,()=>{_0x2e580b[_0x4d48('0x55')][_0x4d48('0xe')](_0x274e4d=>{const _0x680b70=_0x5207a4[_0x4d48('0x72')](_0x548b10),_0x1ec0f3=_0x680b70[0x0][_0x4d48('0x49')]('table');let _0x1885f2;if(_0x4d48('0x44')==_0x2bd60e){const _0xe8fe0c=_0x5207a4[_0x4d48('0x24')](_0x680b70);_0x1885f2={'startRow':_0xe8fe0c['first'],'endRow':_0xe8fe0c[_0x4d48('0x57')],'includeAllSlots':!0x0};}else{const _0x1415fc=_0x5207a4[_0x4d48('0x38')](_0x680b70);_0x1885f2={'startColumn':_0x1415fc['first'],'endColumn':_0x1415fc[_0x4d48('0x57')],'includeAllSlots':!0x0};}const _0x1573e1=_0x5207a4[_0x4d48('0x39')](_0x1ec0f3,_0x1885f2),_0x48638e=Array[_0x4d48('0x26')](_0x1573e1)[_0x4d48('0xd')](({cell:_0x240852})=>_0x240852),_0x264369=se(_0x48638e['filter'](_0x56470b=>_0x56470b['hasAttribute'](_0x4c7eea))),_0xcbd677=se(_0x48638e[_0x4d48('0x35')](_0x30b0ad=>!_0x30b0ad[_0x4d48('0x15')](_0x4c7eea)))[_0x4d48('0xd')](_0x5eef86=>_0x274e4d[_0x4d48('0x84')](_0x5eef86)),_0x4a3069=_0x57bede[_0x4d48('0x5e')](_0xcbd677,_0x4672e1);if(_0x4a3069&&('tableRow'==_0x4a3069['subType']||'tableColumn'==_0x4a3069[_0x4d48('0x50')])){const _0x24c1ef=this[_0x4d48('0x7f')](_0x4a3069);for(const _0x5a4f80 of _0x264369){const _0x482604=_0x274e4d[_0x4d48('0x84')](_0x5a4f80),_0x59137f=_0x5207a4[_0x4d48('0x79')](_0x5a4f80),_0x46e4f9=_0x5a4f80['getAttribute'](_0x4c7eea)-0x1,_0x5607ea=_0x24c1ef[_0x5ec964],_0x10f76a=_0x24c1ef[_0x35cb63];_0x5607ea<=_0x59137f[_0x7ca00b]&&_0x59137f[_0x7ca00b]+_0x46e4f9<=_0x10f76a&&_0x4a3069['addRange'](_0x482604);}}});});}function _0x37b294(_0x11d4e9){const _0x196361=Array['from'](_0x548b10[_0x4d48('0x21')]())['map'](_0x43ccd3=>_0x5ea2e3[_0x4d48('0x12')](_0x43ccd3));_0x2e580b[_0x4d48('0x55')]['change'](_0x11affd=>{const _0x42e325=_0x11affd['batch'];_0x11d4e9=_0x11d4e9[_0x4d48('0x35')](_0x21fdec=>_0x4d48('0x83')!=_0x21fdec['root']['rootName']),_0x11affd[_0x4d48('0x1e')](_0x11d4e9),_0x2e580b[_0x4d48('0x22')][_0x4d48('0x52')](_0x4d48('0x44'))['refresh'](),_0x2e580b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2e580b['model'][_0x4d48('0x6e')](()=>{_0x2e580b[_0x4d48('0x55')][_0x4d48('0x6e')](_0x42e325,_0x4d980f=>{const _0x2e5621=_0x196361[_0x4d48('0x35')](_0x4a52da=>'$graveyard'!=_0x4a52da['root']['rootName']);_0x2e5621['length']>0x0&&_0x4d980f[_0x4d48('0x1e')](_0x2e5621);for(const _0x1883dd of _0x196361)_0x1883dd['detach']();});});});}function _0x225f86(_0x10ba63){_0x2e580b[_0x4d48('0x55')][_0x4d48('0xe')](_0x7a5610=>{const _0x2db30d=Array[_0x4d48('0x26')](_0x548b10[_0x4d48('0x21')]())['map'](_0x71f95=>_0x5ea2e3['fromRange'](_0x71f95)),_0x55c349=[];for(const _0x2f9e13 of _0x10ba63)for(const _0x4d45f2 of _0x2f9e13[_0x4d48('0x18')]({'shallow':!0x0}))_0x55c349[_0x4d48('0x4f')](_0x4d45f2);for(const _0x3dff73 of _0x55c349)'$graveyard'!=_0x3dff73['root'][_0x4d48('0x5b')]&&(_0x7a5610[_0x4d48('0x1e')](_0x7a5610[_0x4d48('0x62')](_0x3dff73,0x0)),_0x2e580b[_0x4d48('0x22')][_0x4d48('0x52')](_0x4d48('0x85'))[_0x4d48('0x65')](),_0x2e580b[_0x4d48('0xf')]('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5e0f10=_0x2db30d[_0x4d48('0x35')](_0x5f0ce5=>'$graveyard'!=_0x5f0ce5[_0x4d48('0x19')]['rootName']);_0x5e0f10[_0x4d48('0x5a')]>0x0&&_0x7a5610['setSelection'](_0x5e0f10);for(const _0x5d01cf of _0x2db30d)_0x5d01cf[_0x4d48('0x40')]();});}function _0x450da8(_0x49453f,_0x54d703){return _0x54d703[_0x4d48('0x25')](_0x144bf6=>_0x49453f[_0x4d48('0x70')](_0x6114dc=>_0x6114dc[_0x4d48('0x6a')][_0x4d48('0x1f')](_0x144bf6[_0x4d48('0x5f')])||_0x144bf6['end']['isEqual'](_0x6114dc[_0x4d48('0x5f')])));}function _0x3c6d43(_0x33d3b,_0x61cf8a){return _0x33d3b['some'](_0x56b8e3=>_0x61cf8a[_0x4d48('0x70')](_0x288545=>_0x56b8e3['end']['isTouching'](_0x288545[_0x4d48('0x5f')])));}_0x2e580b[_0x4d48('0x1')][_0x4d48('0x1d')]['on'](_0x4d48('0x71'),(_0x5abc7b,_0x5d2d3c,_0x5d2f94)=>{if(!_0x5d2f94[_0x4d48('0x16')][_0x4d48('0x59')])return;const _0x3e0ac4=_0x5d2d3c[_0x4d48('0x56')];if(!_0x3e0ac4)return;const _0x5736f4=_0x5d2f94['mapper'][_0x4d48('0x75')](_0x3e0ac4);function _0x3191d6(_0x9594a){return Array['isArray'](_0x9594a)?_0x9594a:[_0x9594a];}_0x5736f4&&_0x4d48('0x5')===_0x3e0ac4[_0x4d48('0x60')]&&_0x41a084(_0x5736f4,_0x5d2f94[_0x4d48('0x6f')],(_0x5bb01d,_0x3861f7,_0x149143)=>_0x149143[_0x4d48('0x4e')](_0x3191d6(_0x3861f7['classes']),_0x5bb01d),(_0x40adc4,_0x54d184,_0x9c2de5)=>_0x9c2de5['removeClass'](_0x3191d6(_0x54d184[_0x4d48('0x42')]),_0x40adc4));},{'priority':_0x4d48('0x11')}),_0x57bede[_0x4d48('0x17')][_0x4d48('0x7e')](_0x27ec89=>{if(_0x4d48('0x82')!=_0x27ec89[_0x4d48('0x34')]&&_0x4d48('0x51')!=_0x27ec89[_0x4d48('0x34')])return;const _0x806c7c=_0x27ec89[_0x4d48('0x61')]();if(null!=_0x806c7c&&_0x806c7c['is'](_0x4d48('0x3f'),_0x4d48('0x4c'))){if(_0x4d48('0x82')==_0x27ec89[_0x4d48('0x34')]){const _0x3ddf3f=_0x27ec89[_0x4d48('0x18')]()[_0x4d48('0x35')](_0x3082c4=>_0x3082c4['is'](_0x4d48('0x7d')))[_0x4d48('0xd')](_0x317efd=>_0x317efd[_0x4d48('0x1')]);if(_0x3ddf3f[_0x4d48('0x5a')])return{'type':_0x4d48('0x82'),'content':_0x350be1(_0x41df6e,_0x4d48('0x20'),_0x350be1(_0x41df6e,_0x4d48('0x2c'),'\x22'+_0x3ddf3f['join']('\x20')+'\x22'))};}if(_0x4d48('0x51')==_0x27ec89[_0x4d48('0x34')]){const _0xe739bf=_0x27ec89[_0x4d48('0x18')]()[_0x4d48('0x35')](_0x355e36=>_0x355e36['is'](_0x4d48('0x7d')))[_0x4d48('0xd')](_0xd7b056=>_0xd7b056[_0x4d48('0x1')]);if(_0xe739bf[_0x4d48('0x5a')])return{'type':_0x4d48('0x51'),'content':_0x350be1(_0x41df6e,'*Remove:*\x20%0',_0x350be1(_0x41df6e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe739bf['join']('\x20')+'\x22'))};}}}),_0x57bede['_descriptionFactory'][_0x4d48('0x7e')](_0x2f4a95=>{if(_0x4d48('0x10')==_0x2f4a95[_0x4d48('0x50')]){const _0x2b3aee=_0x2f4a95[_0x4d48('0x18')]()[_0x4d48('0x35')](_0x56aa09=>_0x56aa09['is'](_0x4d48('0x7d')))[_0x4d48('0xd')](_0x1e201d=>_0x1e201d[_0x4d48('0x1')]),_0x26b322=this[_0x4d48('0x7f')](_0x2f4a95),_0x3739c3=_0x26b322[_0x4d48('0x74')]-_0x26b322[_0x4d48('0x3a')]+0x1;if('insertion'==_0x2f4a95[_0x4d48('0x34')])return _0x2b3aee[_0x4d48('0x5a')]?{'type':'insertion','content':_0x350be1(_0x41df6e,'*Insert:*\x20%0',_0x350be1(_0x41df6e,_0x4d48('0x67'),[_0x3739c3,'\x22'+_0x2b3aee[_0x4d48('0x3')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x350be1(_0x41df6e,_0x4d48('0x20'),_0x350be1(_0x41df6e,'ELEMENT_TABLE_ROW',_0x3739c3))};if(_0x4d48('0x51')==_0x2f4a95[_0x4d48('0x34')])return _0x2b3aee[_0x4d48('0x5a')]?{'type':_0x4d48('0x51'),'content':_0x350be1(_0x41df6e,_0x4d48('0x30'),_0x350be1(_0x41df6e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3739c3,'\x22'+_0x2b3aee[_0x4d48('0x3')]('\x20')+'\x22']))}:{'type':_0x4d48('0x51'),'content':_0x350be1(_0x41df6e,_0x4d48('0x30'),_0x350be1(_0x41df6e,_0x4d48('0x33'),_0x3739c3))};}if(_0x4d48('0x43')==_0x2f4a95[_0x4d48('0x50')]){const _0x308e95=_0x2f4a95[_0x4d48('0x18')]()[_0x4d48('0x35')](_0x5bc910=>_0x5bc910['is'](_0x4d48('0x7d')))[_0x4d48('0xd')](_0x5799b4=>_0x5799b4[_0x4d48('0x1')]),_0x5b8a31=this['_getSuggestionCoords'](_0x2f4a95),_0x5d8299=_0x5b8a31[_0x4d48('0x68')]-_0x5b8a31['minColumn']+0x1;if('insertion'==_0x2f4a95['type'])return _0x308e95[_0x4d48('0x5a')]?{'type':_0x4d48('0x82'),'content':_0x350be1(_0x41df6e,'*Insert:*\x20%0',_0x350be1(_0x41df6e,_0x4d48('0x5c'),[_0x5d8299,'\x22'+_0x308e95[_0x4d48('0x3')]('\x20')+'\x22']))}:{'type':_0x4d48('0x82'),'content':_0x350be1(_0x41df6e,_0x4d48('0x20'),_0x350be1(_0x41df6e,'ELEMENT_TABLE_COLUMN',_0x5d8299))};if(_0x4d48('0x51')==_0x2f4a95[_0x4d48('0x34')])return _0x308e95[_0x4d48('0x5a')]?{'type':_0x4d48('0x51'),'content':_0x350be1(_0x41df6e,_0x4d48('0x30'),_0x350be1(_0x41df6e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d8299,'\x22'+_0x308e95['join']('\x20')+'\x22']))}:{'type':_0x4d48('0x51'),'content':_0x350be1(_0x41df6e,_0x4d48('0x30'),_0x350be1(_0x41df6e,_0x4d48('0x73'),_0x5d8299))};}}),_0x57bede[_0x4d48('0x29')][_0x4d48('0x0')](_0x4d48('0x82'),_0x4d48('0x10'),_0x4d48('0x45'),_0x37b294),_0x57bede['_suggestionFactory'][_0x4d48('0x0')]('deletion',_0x4d48('0x10'),_0x4d48('0x63'),_0x37b294),_0x57bede['_suggestionFactory'][_0x4d48('0x0')](_0x4d48('0x82'),_0x4d48('0x43'),'discard',_0x225f86),_0x57bede[_0x4d48('0x29')]['registerCustomCallback'](_0x4d48('0x51'),_0x4d48('0x43'),_0x4d48('0x63'),_0x225f86),_0x57bede[_0x4d48('0x29')]['registerCustomCallback'](_0x4d48('0x82'),'tableColumn',_0x4d48('0x3'),_0x450da8),_0x57bede[_0x4d48('0x29')][_0x4d48('0x0')](_0x4d48('0x51'),_0x4d48('0x43'),_0x4d48('0x3'),_0x450da8),_0x57bede[_0x4d48('0x29')][_0x4d48('0x0')](_0x4d48('0x82'),'tableRow','join',_0x3c6d43),_0x57bede[_0x4d48('0x29')][_0x4d48('0x0')](_0x4d48('0x51'),'tableRow',_0x4d48('0x3'),_0x3c6d43);}[_0x4d48('0x47')](){const _0xc88b58=this[_0x4d48('0x27')],_0x2ee93d=_0xc88b58['model']['document'][_0x4d48('0x6')];return(_0x3af190,_0x4c6ad1)=>{_0xc88b58[_0x4d48('0x55')][_0x4d48('0xe')](_0x2be7b1=>{const {commandName:_0x37fe15,commandParams:_0x573970}=_0x4c6ad1;let _0xf74be1=_0x3af190[0x0][_0x4d48('0x6a')][_0x4d48('0x8')];_0x573970&&_0x573970[0x0]&&!0x1===_0x573970[0x0][_0x4d48('0x1c')]&&(_0xf74be1=_0x3af190[0x0]['start'][_0x4d48('0x58')]);const _0x10aa7c=_0x2be7b1[_0x4d48('0x2')](_0xf74be1);if(_0x4d48('0x83')==_0x10aa7c['root'][_0x4d48('0x5b')])return;const _0x26ab19=Array[_0x4d48('0x26')](_0x2ee93d['getRanges']())[_0x4d48('0xd')](_0x495f8f=>_0x5ea2e3[_0x4d48('0x12')](_0x495f8f));_0x2be7b1[_0x4d48('0x1e')](_0x10aa7c),_0xc88b58[_0x4d48('0x22')]['get'](_0x37fe15)[_0x4d48('0x65')](),_0x573970['push']({'forceDefaultExecution':!0x0}),_0xc88b58['execute'](_0x37fe15,..._0x573970);const _0x4aff73=_0x26ab19[_0x4d48('0x35')](_0x42017c=>_0x4d48('0x83')!=_0x42017c[_0x4d48('0x19')][_0x4d48('0x5b')]);_0x4aff73[_0x4d48('0x5a')]>0x0&&_0x2be7b1[_0x4d48('0x1e')](_0x4aff73);for(const _0x583c40 of _0x26ab19)_0x583c40[_0x4d48('0x40')]();});};}[_0x4d48('0x2b')](_0x416a8f){const _0x436b07=this['editor'][_0x4d48('0x13')][_0x4d48('0x52')](_0x4d48('0x81'));let _0x2a0730=Number[_0x4d48('0x64')],_0x3f2cad=Number[_0x4d48('0x46')],_0x3aaff0=Number['MAX_SAFE_INTEGER'],_0x541b4c=Number['MIN_SAFE_INTEGER'];for(const _0x52c73e of _0x416a8f){if(_0x4d48('0x83')==_0x52c73e[_0x4d48('0x19')][_0x4d48('0x5b')])continue;const {row:_0xa6f8de,column:_0x26bad4}=_0x436b07['getCellLocation'](_0x52c73e),_0x535798=_0x52c73e[_0x4d48('0x15')](_0x4d48('0x2d'))?_0x52c73e['getAttribute'](_0x4d48('0x2d'))-0x1:0x0,_0x244341=_0x52c73e[_0x4d48('0x15')](_0x4d48('0x48'))?_0x52c73e['getAttribute']('colspan')-0x1:0x0;_0x2a0730=_0xa6f8de<_0x2a0730?_0xa6f8de:_0x2a0730,_0x3f2cad=_0xa6f8de+_0x535798>_0x3f2cad?_0xa6f8de+_0x535798:_0x3f2cad,_0x3aaff0=_0x26bad4<_0x3aaff0?_0x26bad4:_0x3aaff0,_0x541b4c=_0x26bad4+_0x244341>_0x541b4c?_0x26bad4+_0x244341:_0x541b4c;}return{'minRow':_0x2a0730,'maxRow':_0x3f2cad,'minColumn':_0x3aaff0,'maxColumn':_0x541b4c};}['_setupColumnsRowsFixing'](){const _0x2d67b3=this['editor'],_0x4e810b=_0x2d67b3[_0x4d48('0x13')][_0x4d48('0x52')](_0x4d48('0x76')),_0x158b93=_0x2d67b3['plugins']['get'](_0x4d48('0x81'));_0x2d67b3[_0x4d48('0x55')]['document']['on'](_0x4d48('0x4b'),()=>{const _0x47ba2a=Array['from'](_0x2d67b3[_0x4d48('0x55')][_0x4d48('0xa')][_0x4d48('0xb')]['getChangedMarkers']());for(const {name:_0x1fe353,data:_0x7185c5}of _0x47ba2a){const {group:_0x16914f,id:_0x94318,subType:_0x27e90c}=_0x4e810b[_0x4d48('0x3d')](_0x1fe353);if(_0x4d48('0x6d')!=_0x16914f)continue;if(null!=_0x7185c5['oldRange'])continue;const _0x356ffe=_0x4e810b[_0x4d48('0x77')](_0x94318);this[_0x4d48('0x69')][_0x4d48('0x1a')](_0x27e90c)&&this[_0x4d48('0x37')]['add'](_0x356ffe);}},{'priority':'low'});const _0x41deaa=(_0x3bd78b,_0x74ab1)=>{let _0x57f26a=!0x1;const _0x534571=_0x74ab1[_0x4d48('0x84')](_0x3bd78b),_0x5809e9=_0x3bd78b[_0x4d48('0x49')](_0x4d48('0x4c')),_0x17eb72=_0x158b93[_0x4d48('0x79')](_0x3bd78b);for(const _0xd4c170 of this[_0x4d48('0x37')]){const _0x599b9b=_0xd4c170[_0x4d48('0x50')],_0x35aac6=_0x599b9b[_0x4d48('0x3c')](_0x4d48('0x6b')),_0x15db1e=_0x599b9b[_0x4d48('0x2a')](_0x35aac6?0xa:0x5),_0x5f25c7=_0x15db1e[_0x4d48('0x80')](),_0x56c88c=_0x5f25c7['substr'](0x0,0x3)+_0x4d48('0x1b'),_0x3db55f=_0x4d48('0x41')+_0x15db1e,_0x34fee5=_0x4d48('0x28')+_0x15db1e;if(!_0xd4c170[_0x4d48('0x53')])continue;if(_0x5809e9!=_0xd4c170[_0x4d48('0x5d')]()[_0x4d48('0x5f')]['findAncestor'](_0x4d48('0x4c')))continue;if(_0xd4c170['isIntersectingWithRange'](_0x534571))continue;const _0x4c5a35=_0x3bd78b[_0x4d48('0x15')](_0x56c88c)?_0x3bd78b[_0x4d48('0x2e')](_0x56c88c)-0x1:0x0,_0x4e4f44=this[_0x4d48('0x7f')](_0xd4c170),_0x2d7945=_0x4e4f44[_0x3db55f],_0x255171=_0x4e4f44[_0x34fee5];_0x2d7945<=_0x17eb72[_0x5f25c7]&&_0x17eb72[_0x5f25c7]+_0x4c5a35<=_0x255171&&(_0xd4c170[_0x4d48('0x4d')](_0x534571),_0x57f26a=!0x0);}return _0x57f26a;};_0x2d67b3[_0x4d48('0x55')][_0x4d48('0xa')]['registerPostFixer'](_0x1b156e=>{let _0x3f2d40=!0x1;for(const _0x402111 of _0x2d67b3[_0x4d48('0x55')][_0x4d48('0xa')]['differ'][_0x4d48('0x4')]())if('insert'==_0x402111[_0x4d48('0x34')]){if(_0x4d48('0x10')==_0x402111[_0x4d48('0x60')])for(const _0x396093 of _0x402111['position'][_0x4d48('0x58')][_0x4d48('0x2f')]())_0x3f2d40=_0x3f2d40||_0x41deaa(_0x396093,_0x1b156e);else'tableCell'==_0x402111[_0x4d48('0x60')]&&(_0x3f2d40=_0x3f2d40||_0x41deaa(_0x402111[_0x4d48('0x7c')][_0x4d48('0x58')],_0x1b156e));}return _0x3f2d40;});}[_0x4d48('0x7f')](_0x3eb672){return this['_getCoordsForCells'](_0x3eb672[_0x4d48('0x21')]()[_0x4d48('0xd')](_0x3ba049=>_0x3ba049[_0x4d48('0x5f')][_0x4d48('0x58')]));}}function se(_0x421d4c){return Array[_0x4d48('0x26')](new Set(_0x421d4c)['values']());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b42=['TrackChangesEditing','editor','afterInit','has','requires','get','plugins','enableCommand','toggleTableCaption'];(function(_0x56df23,_0x4b42e2){const _0x4e2863=function(_0x2701c9){while(--_0x2701c9){_0x56df23['push'](_0x56df23['shift']());}};_0x4e2863(++_0x4b42e2);}(_0x4b42,0x1d1));const _0x4e28=function(_0x56df23,_0x4b42e2){_0x56df23=_0x56df23-0x0;let _0x4e2863=_0x4b42[_0x56df23];return _0x4e2863;};import{Plugin as _0x305a6b}from'ckeditor5/src/core';import _0x1d8e04 from'./table';export default class vt extends _0x305a6b{static get[_0x4e28('0x7')](){return[_0x1d8e04];}[_0x4e28('0x5')](){const _0x5df11e=this[_0x4e28('0x4')];if(!_0x5df11e[_0x4e28('0x0')][_0x4e28('0x6')]('TableCaptionEditing'))return;_0x5df11e[_0x4e28('0x0')][_0x4e28('0x8')](_0x4e28('0x3'))[_0x4e28('0x1')](_0x4e28('0x2'));}}
|