@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 39.0.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.
Files changed (137) hide show
  1. package/README.md +0 -1
  2. package/build/track-changes.js +1 -1
  3. package/build/translations/gl.js +1 -1
  4. package/build/translations/sq.js +1 -0
  5. package/lang/translations/gl.po +23 -23
  6. package/lang/translations/sq.po +487 -0
  7. package/package.json +4 -5
  8. package/src/augmentation.d.ts +4 -0
  9. package/src/augmentation.js +1 -1
  10. package/src/commands/acceptsuggestioncommand.d.ts +4 -0
  11. package/src/commands/acceptsuggestioncommand.js +2 -2
  12. package/src/commands/discardsuggestioncommand.d.ts +4 -0
  13. package/src/commands/discardsuggestioncommand.js +2 -2
  14. package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
  15. package/src/commands/executeonallsuggestionscommand.js +2 -2
  16. package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
  17. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  18. package/src/commands/trackchangescommand.d.ts +4 -0
  19. package/src/commands/trackchangescommand.js +2 -2
  20. package/src/index.d.ts +4 -0
  21. package/src/index.js +1 -1
  22. package/src/integrations/alignment.d.ts +4 -0
  23. package/src/integrations/alignment.js +2 -2
  24. package/src/integrations/basicstyles.d.ts +4 -0
  25. package/src/integrations/basicstyles.js +2 -2
  26. package/src/integrations/blockquote.d.ts +4 -0
  27. package/src/integrations/blockquote.js +2 -2
  28. package/src/integrations/ckbox.d.ts +4 -0
  29. package/src/integrations/ckbox.js +2 -2
  30. package/src/integrations/codeblock.d.ts +4 -0
  31. package/src/integrations/codeblock.js +2 -2
  32. package/src/integrations/comments.d.ts +4 -0
  33. package/src/integrations/comments.js +2 -2
  34. package/src/integrations/deletecommand.d.ts +4 -0
  35. package/src/integrations/deletecommand.js +2 -2
  36. package/src/integrations/documentlist.d.ts +4 -0
  37. package/src/integrations/documentlist.js +2 -2
  38. package/src/integrations/documentlistproperties.d.ts +4 -0
  39. package/src/integrations/documentlistproperties.js +2 -2
  40. package/src/integrations/entercommand.d.ts +4 -0
  41. package/src/integrations/entercommand.js +2 -2
  42. package/src/integrations/findandreplace.d.ts +4 -0
  43. package/src/integrations/findandreplace.js +2 -2
  44. package/src/integrations/font.d.ts +4 -0
  45. package/src/integrations/font.js +2 -2
  46. package/src/integrations/formatpainter.d.ts +4 -0
  47. package/src/integrations/formatpainter.js +2 -2
  48. package/src/integrations/heading.d.ts +4 -0
  49. package/src/integrations/heading.js +2 -2
  50. package/src/integrations/highlight.d.ts +4 -0
  51. package/src/integrations/highlight.js +2 -2
  52. package/src/integrations/horizontalline.d.ts +4 -0
  53. package/src/integrations/horizontalline.js +2 -2
  54. package/src/integrations/htmlembed.d.ts +4 -0
  55. package/src/integrations/htmlembed.js +2 -2
  56. package/src/integrations/image.d.ts +4 -0
  57. package/src/integrations/image.js +2 -2
  58. package/src/integrations/imagereplace.d.ts +4 -0
  59. package/src/integrations/imagereplace.js +2 -2
  60. package/src/integrations/importword.d.ts +4 -0
  61. package/src/integrations/importword.js +2 -2
  62. package/src/integrations/indent.d.ts +4 -0
  63. package/src/integrations/indent.js +2 -2
  64. package/src/integrations/inputcommand.d.ts +4 -0
  65. package/src/integrations/inputcommand.js +2 -2
  66. package/src/integrations/link.d.ts +4 -0
  67. package/src/integrations/link.js +2 -2
  68. package/src/integrations/list.d.ts +4 -0
  69. package/src/integrations/list.js +2 -2
  70. package/src/integrations/listproperties.d.ts +4 -0
  71. package/src/integrations/listproperties.js +2 -2
  72. package/src/integrations/mediaembed.d.ts +4 -0
  73. package/src/integrations/mediaembed.js +2 -2
  74. package/src/integrations/mention.d.ts +4 -0
  75. package/src/integrations/mention.js +2 -2
  76. package/src/integrations/pagebreak.d.ts +4 -0
  77. package/src/integrations/pagebreak.js +2 -2
  78. package/src/integrations/paragraph.d.ts +4 -0
  79. package/src/integrations/paragraph.js +2 -2
  80. package/src/integrations/removeformat.d.ts +4 -0
  81. package/src/integrations/removeformat.js +2 -2
  82. package/src/integrations/restrictededitingmode.d.ts +4 -0
  83. package/src/integrations/restrictededitingmode.js +2 -2
  84. package/src/integrations/shiftentercommand.d.ts +4 -0
  85. package/src/integrations/shiftentercommand.js +2 -2
  86. package/src/integrations/standardeditingmode.d.ts +4 -0
  87. package/src/integrations/standardeditingmode.js +2 -2
  88. package/src/integrations/style.d.ts +4 -0
  89. package/src/integrations/style.js +2 -2
  90. package/src/integrations/table.d.ts +4 -0
  91. package/src/integrations/table.js +2 -2
  92. package/src/integrations/tablecaption.d.ts +4 -0
  93. package/src/integrations/tablecaption.js +2 -2
  94. package/src/integrations/tableclipboard.d.ts +2 -1
  95. package/src/integrations/tableclipboard.js +2 -2
  96. package/src/integrations/tablecolumnresize.d.ts +4 -0
  97. package/src/integrations/tablecolumnresize.js +2 -2
  98. package/src/integrations/tableheadings.d.ts +4 -0
  99. package/src/integrations/tableheadings.js +2 -2
  100. package/src/integrations/tablemergesplit.d.ts +4 -0
  101. package/src/integrations/tablemergesplit.js +2 -2
  102. package/src/integrations/tableofcontents.d.ts +4 -0
  103. package/src/integrations/tableofcontents.js +2 -2
  104. package/src/integrations/tableproperties.d.ts +4 -0
  105. package/src/integrations/tableproperties.js +2 -2
  106. package/src/integrations/template.d.ts +4 -0
  107. package/src/integrations/template.js +2 -2
  108. package/src/integrations/title.d.ts +4 -0
  109. package/src/integrations/title.js +2 -2
  110. package/src/integrations/undo.d.ts +4 -0
  111. package/src/integrations/undo.js +2 -2
  112. package/src/integrations/utils.d.ts +4 -0
  113. package/src/integrations/utils.js +2 -2
  114. package/src/suggestion.d.ts +11 -1
  115. package/src/suggestion.js +2 -2
  116. package/src/suggestiondescriptionfactory.d.ts +14 -2
  117. package/src/suggestiondescriptionfactory.js +2 -2
  118. package/src/trackchanges.d.ts +4 -0
  119. package/src/trackchanges.js +2 -2
  120. package/src/trackchangesconfig.d.ts +4 -0
  121. package/src/trackchangesconfig.js +1 -1
  122. package/src/trackchangesdata.d.ts +6 -2
  123. package/src/trackchangesdata.js +2 -2
  124. package/src/trackchangesediting.d.ts +4 -0
  125. package/src/trackchangesediting.js +2 -2
  126. package/src/trackchangesui.d.ts +4 -0
  127. package/src/trackchangesui.js +2 -2
  128. package/src/ui/suggestioncontroller.d.ts +2 -1
  129. package/src/ui/suggestioncontroller.js +2 -2
  130. package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
  131. package/src/ui/view/basesuggestionthreadview.js +2 -2
  132. package/src/ui/view/suggestionthreadview.d.ts +2 -2
  133. package/src/ui/view/suggestionthreadview.js +2 -2
  134. package/src/utils/common-translations.d.ts +4 -0
  135. package/src/utils/common-translations.js +2 -2
  136. package/src/utils/utils.d.ts +4 -0
  137. package/src/utils/utils.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x290d=['media','TrackChangesEditing','conversion','dataDowncast','locale','_descriptionFactory','high','enableCommand','options','ELEMENT_MEDIA','MediaEmbedEditing','registerElementLabel','div','get','data','for','attribute:url:media','plugins','editor','afterInit','createEmptyElement','has','elementToElement'];(function(_0x5241e3,_0x290d55){const _0x20e74e=function(_0x2e41c6){while(--_0x2e41c6){_0x5241e3['push'](_0x5241e3['shift']());}};_0x20e74e(++_0x290d55);}(_0x290d,0x1bd));const _0x20e7=function(_0x5241e3,_0x290d55){_0x5241e3=_0x5241e3-0x0;let _0x20e74e=_0x290d[_0x5241e3];return _0x20e74e;};import{Plugin as _0x2a7110}from'ckeditor5/src/core';import{getTranslation as _0x378159}from'../utils/common-translations';export default class ot extends _0x2a7110{[_0x20e7('0xb')](){const _0x124431=this[_0x20e7('0xa')];if(!_0x124431['plugins'][_0x20e7('0xd')](_0x20e7('0x2')))return;const _0x13f369=_0x124431[_0x20e7('0x9')][_0x20e7('0x5')](_0x20e7('0x10')),_0x2f5c38=_0x124431[_0x20e7('0x13')];_0x13f369[_0x20e7('0x16')]('mediaEmbed'),_0x13f369[_0x20e7('0x14')][_0x20e7('0x3')](_0x20e7('0xf'),_0x5494b2=>_0x378159(_0x2f5c38,_0x20e7('0x1'),_0x5494b2)),_0x124431[_0x20e7('0x11')][_0x20e7('0x7')](_0x20e7('0x12'))[_0x20e7('0xe')]({'model':'media','view':(_0x2ad53a,{writer:_0x5e900c,options:_0x692f64})=>{if(_0x692f64['showSuggestionHighlights'])return _0x5e900c[_0x20e7('0xc')](_0x20e7('0x4'));},'converterPriority':_0x20e7('0x15')}),_0x124431[_0x20e7('0x6')]['downcastDispatcher']['on'](_0x20e7('0x8'),(_0x4b9836,_0x2ba0d6,_0x3c845f)=>{_0x3c845f[_0x20e7('0x0')]['showSuggestionHighlights']&&_0x4b9836['stop']();},{'priority':_0x20e7('0x15')});}}
23
+ const _0x1f61=['attribute:url:media','data','_descriptionFactory','locale','showSuggestionHighlights','high','plugins','registerElementLabel','options','get','mediaEmbed','MediaEmbedEditing','TrackChangesEditing','conversion','createEmptyElement','afterInit','media','dataDowncast','downcastDispatcher'];(function(_0x15f937,_0x1f6192){const _0xdb33e=function(_0x2e620c){while(--_0x2e620c){_0x15f937['push'](_0x15f937['shift']());}};_0xdb33e(++_0x1f6192);}(_0x1f61,0xc0));const _0xdb33=function(_0x15f937,_0x1f6192){_0x15f937=_0x15f937-0x0;let _0xdb33e=_0x1f61[_0x15f937];return _0xdb33e;};import{Plugin as _0x33acee}from'ckeditor5/src/core';import{getTranslation as _0x55d527}from'../utils/common-translations';export default class ot extends _0x33acee{[_0xdb33('0xd')](){const _0x337793=this['editor'];if(!_0x337793[_0xdb33('0x4')]['has'](_0xdb33('0x9')))return;const _0x4e03f5=_0x337793[_0xdb33('0x4')][_0xdb33('0x7')](_0xdb33('0xa')),_0x4b9b1c=_0x337793[_0xdb33('0x1')];_0x4e03f5['enableCommand'](_0xdb33('0x8')),_0x4e03f5[_0xdb33('0x0')][_0xdb33('0x5')](_0xdb33('0xe'),_0xe1e4cd=>_0x55d527(_0x4b9b1c,'ELEMENT_MEDIA',_0xe1e4cd)),_0x337793[_0xdb33('0xb')]['for'](_0xdb33('0xf'))['elementToElement']({'model':'media','view':(_0x28bc7a,{writer:_0x297ce3,options:_0x237438})=>{if(_0x237438[_0xdb33('0x2')])return _0x297ce3[_0xdb33('0xc')]('div');},'converterPriority':_0xdb33('0x3')}),_0x337793[_0xdb33('0x12')][_0xdb33('0x10')]['on'](_0xdb33('0x11'),(_0x54170c,_0x2e88cd,_0x2addcd)=>{_0x2addcd[_0xdb33('0x6')][_0xdb33('0x2')]&&_0x54170c['stop']();},{'priority':_0xdb33('0x3')});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/mention
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5572=['mention','MentionEditing','afterInit','enableCommand','get','TrackChangesEditing','has','plugins'];(function(_0x8ee93c,_0x5572ea){const _0x335c44=function(_0x3fc758){while(--_0x3fc758){_0x8ee93c['push'](_0x8ee93c['shift']());}};_0x335c44(++_0x5572ea);}(_0x5572,0x89));const _0x335c=function(_0x8ee93c,_0x5572ea){_0x8ee93c=_0x8ee93c-0x0;let _0x335c44=_0x5572[_0x8ee93c];return _0x335c44;};import{Plugin as _0x5a627a}from'ckeditor5/src/core';export default class rt extends _0x5a627a{[_0x335c('0x1')](){const _0x1a177c=this['editor'];_0x1a177c[_0x335c('0x6')][_0x335c('0x5')](_0x335c('0x0'))&&_0x1a177c['plugins'][_0x335c('0x3')](_0x335c('0x4'))[_0x335c('0x2')](_0x335c('0x7'));}}
23
+ const _0x5cee=['get','has','enableCommand','MentionEditing','plugins','afterInit','TrackChangesEditing'];(function(_0x1616ef,_0x5ceeb3){const _0x3a791d=function(_0x11e24e){while(--_0x11e24e){_0x1616ef['push'](_0x1616ef['shift']());}};_0x3a791d(++_0x5ceeb3);}(_0x5cee,0xc0));const _0x3a79=function(_0x1616ef,_0x5ceeb3){_0x1616ef=_0x1616ef-0x0;let _0x3a791d=_0x5cee[_0x1616ef];return _0x3a791d;};import{Plugin as _0x2bdb33}from'ckeditor5/src/core';export default class rt extends _0x2bdb33{[_0x3a79('0x2')](){const _0x7cefb2=this['editor'];_0x7cefb2['plugins'][_0x3a79('0x5')](_0x3a79('0x0'))&&_0x7cefb2[_0x3a79('0x1')][_0x3a79('0x4')](_0x3a79('0x3'))[_0x3a79('0x6')]('mention');}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/pagebreak
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1891=['pageBreak','enableCommand','afterInit','plugins','ELEMENT_PAGE_BREAK','registerElementLabel','editor','PageBreakEditing','get','has','TrackChangesEditing'];(function(_0x68dd01,_0x189168){const _0x3e6452=function(_0x43bfa4){while(--_0x43bfa4){_0x68dd01['push'](_0x68dd01['shift']());}};_0x3e6452(++_0x189168);}(_0x1891,0x7f));const _0x3e64=function(_0x68dd01,_0x189168){_0x68dd01=_0x68dd01-0x0;let _0x3e6452=_0x1891[_0x68dd01];return _0x3e6452;};import{Plugin as _0x316930}from'ckeditor5/src/core';import{getTranslation as _0x56b0f7}from'../utils/common-translations';export default class at extends _0x316930{[_0x3e64('0x7')](){const _0xc66e15=this[_0x3e64('0x0')];if(!_0xc66e15[_0x3e64('0x8')][_0x3e64('0x3')](_0x3e64('0x1')))return;_0xc66e15[_0x3e64('0x8')][_0x3e64('0x2')](_0x3e64('0x4'))[_0x3e64('0x6')](_0x3e64('0x5'));const _0x4e5ba7=_0xc66e15['plugins'][_0x3e64('0x2')](_0x3e64('0x4')),_0x3e1c52=_0xc66e15['locale'];_0x4e5ba7['_descriptionFactory'][_0x3e64('0xa')]('pageBreak',_0xe79a59=>_0x56b0f7(_0x3e1c52,_0x3e64('0x9'),_0xe79a59));}}
23
+ const _0x48c2=['pageBreak','locale','_descriptionFactory','plugins','afterInit','ELEMENT_PAGE_BREAK','get','enableCommand','TrackChangesEditing','has'];(function(_0x952592,_0x48c2f5){const _0x200458=function(_0x3248f5){while(--_0x3248f5){_0x952592['push'](_0x952592['shift']());}};_0x200458(++_0x48c2f5);}(_0x48c2,0x8b));const _0x2004=function(_0x952592,_0x48c2f5){_0x952592=_0x952592-0x0;let _0x200458=_0x48c2[_0x952592];return _0x200458;};import{Plugin as _0x3996d9}from'ckeditor5/src/core';import{getTranslation as _0x5cf1e7}from'../utils/common-translations';export default class at extends _0x3996d9{[_0x2004('0x5')](){const _0x4940c2=this['editor'];if(!_0x4940c2[_0x2004('0x4')][_0x2004('0x0')]('PageBreakEditing'))return;_0x4940c2['plugins'][_0x2004('0x7')]('TrackChangesEditing')[_0x2004('0x8')](_0x2004('0x1'));const _0x22ce0e=_0x4940c2['plugins'][_0x2004('0x7')](_0x2004('0x9')),_0x24356c=_0x4940c2[_0x2004('0x2')];_0x22ce0e[_0x2004('0x3')]['registerElementLabel']('pageBreak',_0x5cae62=>_0x5cf1e7(_0x24356c,_0x2004('0x6'),_0x5cae62));}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/paragraph
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xef0f=['change','span','plugins','has','registerDescriptionCallback','markerRange','schema','ELEMENT_PARAGRAPH','name','getSelectedBlocks','insertion','editor','insertParagraph','commandName','includes','selection','downcastDispatcher','addClass','nodeAfter','createUIElement','isLimit','registerElementLabel','_descriptionFactory','checkChild','isBlock','*Change\x20to:*\x20%0','model','activeMarkers','writer','parent','options','addMarker:suggestion:insertion','toViewPosition','mapper','$text','showSuggestionHighlights','locale','getItemLabel','*Insert:*\x20%0','highest','document','markerName','ck-suggestion-marker-split','enableCommand','TrackChangesEditing','get','insert','markBlockFormat','isObject','start','ck-suggestion-marker--active','paragraph','isTouching'];(function(_0x18c97e,_0xef0f1){const _0x48f213=function(_0x49345e){while(--_0x49345e){_0x18c97e['push'](_0x18c97e['shift']());}};_0x48f213(++_0xef0f1);}(_0xef0f,0xcc));const _0x48f2=function(_0x18c97e,_0xef0f1){_0x18c97e=_0x18c97e-0x0;let _0x48f213=_0xef0f[_0x18c97e];return _0x48f213;};import{Plugin as _0x19d4c8}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x102e9d}from'./utils';import{getTranslation as _0x2bf883}from'../utils/common-translations';export default class ct extends _0x19d4c8{['afterInit'](){const _0x46776b=this[_0x48f2('0x13')];if(!_0x46776b[_0x48f2('0xa')][_0x48f2('0xb')]('Paragraph'))return;const _0x44c0a3=_0x46776b[_0x48f2('0x2c')],_0x4dc8a3=_0x46776b[_0x48f2('0xa')][_0x48f2('0x0')](_0x48f2('0x34'));_0x4dc8a3[_0x48f2('0x1e')][_0x48f2('0x1d')](_0x48f2('0x6'),_0x15f801=>_0x2bf883(_0x44c0a3,_0x48f2('0xf'),_0x15f801)),_0x4dc8a3[_0x48f2('0x33')]('paragraph',(_0x3c1971,_0x56174e={})=>{const _0x2066cf=_0x46776b[_0x48f2('0x22')][_0x48f2('0x30')],_0x182e80=_0x56174e[_0x48f2('0x17')]||_0x2066cf[_0x48f2('0x17')],_0x5dbec6=Array['from'](_0x182e80[_0x48f2('0x11')]())['filter'](_0x44b55e=>function(_0x4fdfb8,_0x264f52){return _0x264f52[_0x48f2('0x1f')](_0x4fdfb8[_0x48f2('0x25')],_0x48f2('0x6'))&&!_0x264f52[_0x48f2('0x3')](_0x4fdfb8)&&_0x48f2('0x6')!=_0x4fdfb8[_0x48f2('0x10')];}(_0x44b55e,this[_0x48f2('0x13')][_0x48f2('0x22')]['schema']));_0x46776b[_0x48f2('0x22')][_0x48f2('0x8')](()=>{for(const _0x391100 of _0x5dbec6)_0x4dc8a3[_0x48f2('0x2')](_0x391100,{'commandName':_0x48f2('0x6'),'commandParams':[],'formatGroupId':'blockName'},_0x102e9d(_0x391100));});}),_0x4dc8a3['_descriptionFactory'][_0x48f2('0xc')](_0x2f8e21=>{const {data:_0x3b2fd1}=_0x2f8e21;if(_0x3b2fd1&&_0x48f2('0x6')==_0x3b2fd1[_0x48f2('0x15')])return{'type':'format','content':_0x2bf883(_0x44c0a3,_0x48f2('0x21'),_0x2bf883(_0x44c0a3,_0x48f2('0xf')))};}),_0x4dc8a3[_0x48f2('0x33')](_0x48f2('0x14')),_0x46776b['editing']['downcastDispatcher']['on'](_0x48f2('0x27'),ar(_0x46776b),{'priority':_0x48f2('0x2f')}),_0x46776b['data'][_0x48f2('0x18')]['on']('addMarker:suggestion:insertion',(_0x11ffa5,_0x384c9e,_0x1bc858)=>{_0x1bc858[_0x48f2('0x26')][_0x48f2('0x2b')]&&ar(_0x46776b,{'showActiveMarker':!0x1})(_0x11ffa5,_0x384c9e,_0x1bc858);},{'priority':_0x48f2('0x2f')});const _0x55b637=_0x4dc8a3['_descriptionFactory'];_0x55b637[_0x48f2('0xc')](_0x2bffcf=>{if('insertion'!==_0x2bffcf['type'])return;const {start:_0x129a79,end:_0x40edea}=_0x2bffcf['getFirstRange']();if(!_0x129a79[_0x48f2('0x7')](_0x40edea)||!_0x129a79[_0x48f2('0x1a')])return;const _0x35d8ec=_0x46776b[_0x48f2('0x22')][_0x48f2('0xe')],_0x47b8cc=_0x129a79[_0x48f2('0x1a')];return _0x35d8ec[_0x48f2('0x20')](_0x47b8cc)&&!_0x35d8ec[_0x48f2('0x1c')](_0x47b8cc)&&_0x35d8ec['checkChild'](_0x47b8cc,_0x48f2('0x2a'))?{'type':_0x48f2('0x12'),'content':_0x2bf883(_0x44c0a3,_0x48f2('0x2e'),_0x55b637[_0x48f2('0x2d')](_0x47b8cc,0x1))}:void 0x0;});}}function ar(_0x468ab5,{showActiveMarker:_0x52a96d=!0x0}={}){return(_0x15a2b5,_0x5188ea,_0xb1efce)=>{const _0x1609b0=_0x468ab5[_0x48f2('0xa')][_0x48f2('0x0')](_0x48f2('0x34')),_0x4dba6f=_0x5188ea['markerRange'][_0x48f2('0x4')],_0x2d0e32=_0x5188ea[_0x48f2('0xd')]['end'],_0x3797c3=_0x468ab5[_0x48f2('0x22')][_0x48f2('0xe')];if(!_0x4dba6f[_0x48f2('0x7')](_0x2d0e32)||!_0x4dba6f[_0x48f2('0x1a')])return;const _0x10cdf4=_0x4dba6f[_0x48f2('0x1a')];if(_0x3797c3[_0x48f2('0x20')](_0x10cdf4)&&!_0x3797c3['isLimit'](_0x10cdf4)&&_0x3797c3[_0x48f2('0x1f')](_0x10cdf4,_0x48f2('0x2a'))){if(!_0xb1efce['consumable']['consume'](_0x5188ea[_0x48f2('0xd')],_0x15a2b5[_0x48f2('0x10')]))return;const _0x110815=_0xb1efce['writer'][_0x48f2('0x1b')](_0x48f2('0x9'),{'class':_0x48f2('0x32')}),_0x50861c=_0xb1efce[_0x48f2('0x29')][_0x48f2('0x28')](_0x2d0e32);_0x52a96d&&_0x1609b0[_0x48f2('0x23')][_0x48f2('0x16')](_0x5188ea[_0x48f2('0x31')])&&_0xb1efce[_0x48f2('0x24')][_0x48f2('0x19')](_0x48f2('0x5'),_0x110815),_0xb1efce[_0x48f2('0x24')][_0x48f2('0x1')](_0x50861c,_0x110815),_0xb1efce[_0x48f2('0x29')]['bindElementToMarker'](_0x110815,_0x5188ea['markerName']);}};}
23
+ const _0x5438=['plugins','blockName','isObject','span','$text','start','editing','activeMarkers','paragraph','has','insertion','addMarker:suggestion:insertion','registerDescriptionCallback','markerName','format','showSuggestionHighlights','name','enableCommand','toViewPosition','get','filter','highest','schema','*Insert:*\x20%0','end','getSelectedBlocks','commandName','ck-suggestion-marker--active','writer','_descriptionFactory','change','getItemLabel','type','model','isBlock','isLimit','afterInit','options','document','editor','nodeAfter','getFirstRange','checkChild','consume','addClass','downcastDispatcher','from','parent','ELEMENT_PARAGRAPH','selection','data','mapper','insert','includes','insertParagraph','markerRange','isTouching','markBlockFormat','TrackChangesEditing'];(function(_0x1ba2e5,_0x54385f){const _0x1c6188=function(_0x472256){while(--_0x472256){_0x1ba2e5['push'](_0x1ba2e5['shift']());}};_0x1c6188(++_0x54385f);}(_0x5438,0xd8));const _0x1c61=function(_0x1ba2e5,_0x54385f){_0x1ba2e5=_0x1ba2e5-0x0;let _0x1c6188=_0x5438[_0x1ba2e5];return _0x1c6188;};import{Plugin as _0x44ebf9}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x36963a}from'./utils';import{getTranslation as _0x20113c}from'../utils/common-translations';export default class ct extends _0x44ebf9{[_0x1c61('0x38')](){const _0x2fa8f8=this[_0x1c61('0x0')];if(!_0x2fa8f8[_0x1c61('0x14')][_0x1c61('0x1d')]('Paragraph'))return;const _0x2bb37c=_0x2fa8f8['locale'],_0x5393f7=_0x2fa8f8['plugins'][_0x1c61('0x27')](_0x1c61('0x13'));_0x5393f7[_0x1c61('0x31')]['registerElementLabel'](_0x1c61('0x1c'),_0x21207c=>_0x20113c(_0x2bb37c,'ELEMENT_PARAGRAPH',_0x21207c)),_0x5393f7[_0x1c61('0x25')](_0x1c61('0x1c'),(_0x4bc25d,_0x2727af={})=>{const _0xd6077f=_0x2fa8f8['model'][_0x1c61('0x3a')],_0x496063=_0x2727af['selection']||_0xd6077f[_0x1c61('0xa')],_0x59494d=Array[_0x1c61('0x7')](_0x496063[_0x1c61('0x2d')]())[_0x1c61('0x28')](_0x41a8a2=>function(_0x1a1ced,_0x5e9b15){return _0x5e9b15[_0x1c61('0x3')](_0x1a1ced[_0x1c61('0x8')],'paragraph')&&!_0x5e9b15[_0x1c61('0x16')](_0x1a1ced)&&_0x1c61('0x1c')!=_0x1a1ced[_0x1c61('0x24')];}(_0x41a8a2,this[_0x1c61('0x0')][_0x1c61('0x35')][_0x1c61('0x2a')]));_0x2fa8f8[_0x1c61('0x35')][_0x1c61('0x32')](()=>{for(const _0x480352 of _0x59494d)_0x5393f7[_0x1c61('0x12')](_0x480352,{'commandName':_0x1c61('0x1c'),'commandParams':[],'formatGroupId':_0x1c61('0x15')},_0x36963a(_0x480352));});}),_0x5393f7[_0x1c61('0x31')][_0x1c61('0x20')](_0x1053ec=>{const {data:_0x2a106b}=_0x1053ec;if(_0x2a106b&&'paragraph'==_0x2a106b[_0x1c61('0x2e')])return{'type':_0x1c61('0x22'),'content':_0x20113c(_0x2bb37c,'*Change\x20to:*\x20%0',_0x20113c(_0x2bb37c,_0x1c61('0x9')))};}),_0x5393f7[_0x1c61('0x25')](_0x1c61('0xf')),_0x2fa8f8[_0x1c61('0x1a')][_0x1c61('0x6')]['on'](_0x1c61('0x1f'),ar(_0x2fa8f8),{'priority':_0x1c61('0x29')}),_0x2fa8f8[_0x1c61('0xb')][_0x1c61('0x6')]['on'](_0x1c61('0x1f'),(_0x1a5abd,_0x4e07ae,_0x5b8f7e)=>{_0x5b8f7e[_0x1c61('0x39')][_0x1c61('0x23')]&&ar(_0x2fa8f8,{'showActiveMarker':!0x1})(_0x1a5abd,_0x4e07ae,_0x5b8f7e);},{'priority':_0x1c61('0x29')});const _0x2d31a1=_0x5393f7[_0x1c61('0x31')];_0x2d31a1[_0x1c61('0x20')](_0x19b17e=>{if(_0x1c61('0x1e')!==_0x19b17e[_0x1c61('0x34')])return;const {start:_0x5a6e91,end:_0x328f02}=_0x19b17e[_0x1c61('0x2')]();if(!_0x5a6e91[_0x1c61('0x11')](_0x328f02)||!_0x5a6e91[_0x1c61('0x1')])return;const _0x53f0da=_0x2fa8f8[_0x1c61('0x35')][_0x1c61('0x2a')],_0x3bb3f0=_0x5a6e91[_0x1c61('0x1')];return _0x53f0da['isBlock'](_0x3bb3f0)&&!_0x53f0da['isLimit'](_0x3bb3f0)&&_0x53f0da[_0x1c61('0x3')](_0x3bb3f0,_0x1c61('0x18'))?{'type':_0x1c61('0x1e'),'content':_0x20113c(_0x2bb37c,_0x1c61('0x2b'),_0x2d31a1[_0x1c61('0x33')](_0x3bb3f0,0x1))}:void 0x0;});}}function ar(_0x2b5b8d,{showActiveMarker:_0x77c51f=!0x0}={}){return(_0x4f3b6c,_0x383622,_0x43fe95)=>{const _0x1ff277=_0x2b5b8d['plugins'][_0x1c61('0x27')](_0x1c61('0x13')),_0x5ca611=_0x383622['markerRange'][_0x1c61('0x19')],_0x4b3ce6=_0x383622['markerRange'][_0x1c61('0x2c')],_0x3a77c9=_0x2b5b8d['model'][_0x1c61('0x2a')];if(!_0x5ca611[_0x1c61('0x11')](_0x4b3ce6)||!_0x5ca611[_0x1c61('0x1')])return;const _0x2465e3=_0x5ca611[_0x1c61('0x1')];if(_0x3a77c9[_0x1c61('0x36')](_0x2465e3)&&!_0x3a77c9[_0x1c61('0x37')](_0x2465e3)&&_0x3a77c9['checkChild'](_0x2465e3,'$text')){if(!_0x43fe95['consumable'][_0x1c61('0x4')](_0x383622[_0x1c61('0x10')],_0x4f3b6c[_0x1c61('0x24')]))return;const _0x2c9566=_0x43fe95[_0x1c61('0x30')]['createUIElement'](_0x1c61('0x17'),{'class':'ck-suggestion-marker-split'}),_0x1d6d1c=_0x43fe95[_0x1c61('0xc')][_0x1c61('0x26')](_0x4b3ce6);_0x77c51f&&_0x1ff277[_0x1c61('0x1b')][_0x1c61('0xe')](_0x383622[_0x1c61('0x21')])&&_0x43fe95[_0x1c61('0x30')][_0x1c61('0x5')](_0x1c61('0x2f'),_0x2c9566),_0x43fe95[_0x1c61('0x30')][_0x1c61('0xd')](_0x1d6d1c,_0x2c9566),_0x43fe95['mapper']['bindElementToMarker'](_0x2c9566,_0x383622['markerName']);}};}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/removeformat
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c53=['isCollapsed','selection','change','removeFormat','commandName','getAttributeProperties','TrackChangesEditing','document','from','enableCommand','_descriptionFactory','createRangeOn','*Remove\x20all\x20formatting*','getAttributes','markInlineFormat','editor','getItems','afterInit','has','getRanges','schema','model','plugins','format','locale'];(function(_0x2dc700,_0x5c5301){const _0x1a34e9=function(_0x22aba5){while(--_0x22aba5){_0x2dc700['push'](_0x2dc700['shift']());}};_0x1a34e9(++_0x5c5301);}(_0x5c53,0x124));const _0x1a34=function(_0x2dc700,_0x5c5301){_0x2dc700=_0x2dc700-0x0;let _0x1a34e9=_0x5c53[_0x2dc700];return _0x1a34e9;};import{Plugin as _0x453ae1}from'ckeditor5/src/core';import{getTranslation as _0x2b0867}from'../utils/common-translations';export default class ht extends _0x453ae1{[_0x1a34('0x0')](){const _0x135618=this[_0x1a34('0x17')];if(!_0x135618[_0x1a34('0x5')][_0x1a34('0x1')]('RemoveFormatEditing'))return;const _0x5bdced=_0x135618[_0x1a34('0x5')]['get'](_0x1a34('0xe'));_0x5bdced[_0x1a34('0x11')](_0x1a34('0xb'),_0x150acc=>{const _0x31525b=_0x135618['model'][_0x1a34('0xf')][_0x1a34('0x9')];_0x31525b[_0x1a34('0x8')]?_0x150acc():_0x135618['model'][_0x1a34('0xa')](()=>{const _0x99c682=Array[_0x1a34('0x10')](_0x31525b[_0x1a34('0x2')]());for(const _0x4d5775 of _0x99c682)for(const _0x5f2d71 of _0x4d5775[_0x1a34('0x18')]())eo(_0x5f2d71,_0x135618[_0x1a34('0x4')][_0x1a34('0x3')])&&_0x5bdced[_0x1a34('0x16')](_0x135618[_0x1a34('0x4')][_0x1a34('0x13')](_0x5f2d71),{'commandName':_0x1a34('0xb'),'commandParams':[]});});}),_0x5bdced[_0x1a34('0x12')]['registerDescriptionCallback'](_0x39423d=>{const {data:_0x44b84f}=_0x39423d;if(_0x44b84f&&_0x1a34('0xb')==_0x44b84f[_0x1a34('0xc')])return{'type':_0x1a34('0x6'),'content':_0x2b0867(_0x135618[_0x1a34('0x7')],_0x1a34('0x14'))};});}}function eo(_0x21db05,_0x1168a4){for(const [_0x4428d1]of _0x21db05[_0x1a34('0x15')]()){const _0x342648=_0x1168a4[_0x1a34('0xd')](_0x4428d1);if(_0x342648&&_0x342648['isFormatting'])return!0x0;}return!0x1;}
23
+ const _0x2ccc=['document','RemoveFormatEditing','selection','TrackChangesEditing','registerDescriptionCallback','get','getRanges','getAttributes','plugins','_descriptionFactory','commandName','isCollapsed','change','schema','removeFormat','from','getAttributeProperties','getItems','has','model','afterInit','*Remove\x20all\x20formatting*','locale'];(function(_0x5ad225,_0x2ccc8d){const _0x508039=function(_0x330e52){while(--_0x330e52){_0x5ad225['push'](_0x5ad225['shift']());}};_0x508039(++_0x2ccc8d);}(_0x2ccc,0x1e1));const _0x5080=function(_0x5ad225,_0x2ccc8d){_0x5ad225=_0x5ad225-0x0;let _0x508039=_0x2ccc[_0x5ad225];return _0x508039;};import{Plugin as _0x503ae7}from'ckeditor5/src/core';import{getTranslation as _0x37cff4}from'../utils/common-translations';export default class ht extends _0x503ae7{[_0x5080('0x16')](){const _0x2d6f4e=this['editor'];if(!_0x2d6f4e[_0x5080('0xa')][_0x5080('0x14')](_0x5080('0x3')))return;const _0x1687d3=_0x2d6f4e[_0x5080('0xa')][_0x5080('0x7')](_0x5080('0x5'));_0x1687d3['enableCommand'](_0x5080('0x10'),_0x184193=>{const _0x6a0e4e=_0x2d6f4e[_0x5080('0x15')][_0x5080('0x2')][_0x5080('0x4')];_0x6a0e4e[_0x5080('0xd')]?_0x184193():_0x2d6f4e['model'][_0x5080('0xe')](()=>{const _0x228c9c=Array[_0x5080('0x11')](_0x6a0e4e[_0x5080('0x8')]());for(const _0x11b134 of _0x228c9c)for(const _0x44740b of _0x11b134[_0x5080('0x13')]())eo(_0x44740b,_0x2d6f4e[_0x5080('0x15')][_0x5080('0xf')])&&_0x1687d3['markInlineFormat'](_0x2d6f4e[_0x5080('0x15')]['createRangeOn'](_0x44740b),{'commandName':_0x5080('0x10'),'commandParams':[]});});}),_0x1687d3[_0x5080('0xb')][_0x5080('0x6')](_0x2c591f=>{const {data:_0x119eac}=_0x2c591f;if(_0x119eac&&_0x5080('0x10')==_0x119eac[_0x5080('0xc')])return{'type':'format','content':_0x37cff4(_0x2d6f4e[_0x5080('0x1')],_0x5080('0x0'))};});}}function eo(_0x44f404,_0x2db2fe){for(const [_0x52e20e]of _0x44f404[_0x5080('0x9')]()){const _0x5ebe57=_0x2db2fe[_0x5080('0x12')](_0x52e20e);if(_0x5ebe57&&_0x5ebe57['isFormatting'])return!0x0;}return!0x1;}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/mention
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4815=['discardAllSuggestions','plugins','get','enableCommand','afterInit','goToNextRestrictedEditingException','discardSuggestion','acceptSelectedSuggestions','TrackChangesEditing','goToPreviousRestrictedEditingException','acceptAllSuggestions','RestrictedEditingModeEditing'];(function(_0x190b99,_0x4815ba){const _0x5192de=function(_0x1d02f8){while(--_0x1d02f8){_0x190b99['push'](_0x190b99['shift']());}};_0x5192de(++_0x4815ba);}(_0x4815,0xcd));const _0x5192=function(_0x190b99,_0x4815ba){_0x190b99=_0x190b99-0x0;let _0x5192de=_0x4815[_0x190b99];return _0x5192de;};import{Plugin as _0x760b13}from'ckeditor5/src/core';export default class ut extends _0x760b13{[_0x5192('0x3')](){const _0x1b0d08=this['editor'];if(!_0x1b0d08[_0x5192('0x0')]['has'](_0x5192('0xa')))return;const _0x5d525b=_0x1b0d08[_0x5192('0x0')][_0x5192('0x1')](_0x5192('0x7'));_0x5d525b['enableCommand'](_0x5192('0x8')),_0x5d525b[_0x5192('0x2')](_0x5192('0x4'));const _0x5048e4=_0x1b0d08['plugins'][_0x5192('0x1')]('RestrictedEditingModeEditing');_0x5048e4[_0x5192('0x2')]('trackChanges'),_0x5048e4[_0x5192('0x2')]('acceptSuggestion'),_0x5048e4[_0x5192('0x2')](_0x5192('0x5')),_0x5048e4[_0x5192('0x2')](_0x5192('0x9')),_0x5048e4['enableCommand'](_0x5192('0xb')),_0x5048e4[_0x5192('0x2')](_0x5192('0x6')),_0x5048e4[_0x5192('0x2')]('discardSelectedSuggestions');}}
23
+ const _0x5b87=['goToPreviousRestrictedEditingException','RestrictedEditingModeEditing','acceptAllSuggestions','discardAllSuggestions','enableCommand','get','discardSelectedSuggestions','afterInit','plugins','acceptSuggestion','has','acceptSelectedSuggestions'];(function(_0x1075ba,_0x5b87ae){const _0x220a44=function(_0x2d0669){while(--_0x2d0669){_0x1075ba['push'](_0x1075ba['shift']());}};_0x220a44(++_0x5b87ae);}(_0x5b87,0xa9));const _0x220a=function(_0x1075ba,_0x5b87ae){_0x1075ba=_0x1075ba-0x0;let _0x220a44=_0x5b87[_0x1075ba];return _0x220a44;};import{Plugin as _0x37e9aa}from'ckeditor5/src/core';export default class ut extends _0x37e9aa{[_0x220a('0x6')](){const _0x41d54b=this['editor'];if(!_0x41d54b[_0x220a('0x7')][_0x220a('0x9')](_0x220a('0x0')))return;const _0x3a8cff=_0x41d54b[_0x220a('0x7')][_0x220a('0x4')]('TrackChangesEditing');_0x3a8cff[_0x220a('0x3')](_0x220a('0xb')),_0x3a8cff['enableCommand']('goToNextRestrictedEditingException');const _0x3093d6=_0x41d54b[_0x220a('0x7')][_0x220a('0x4')]('RestrictedEditingModeEditing');_0x3093d6[_0x220a('0x3')]('trackChanges'),_0x3093d6[_0x220a('0x3')](_0x220a('0x8')),_0x3093d6[_0x220a('0x3')]('discardSuggestion'),_0x3093d6[_0x220a('0x3')](_0x220a('0x1')),_0x3093d6[_0x220a('0x3')](_0x220a('0x2')),_0x3093d6[_0x220a('0x3')](_0x220a('0xa')),_0x3093d6[_0x220a('0x3')](_0x220a('0x5'));}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/shiftentercommand
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31ac=['name','shiftEnter','softBreak','requires','addClass','deletion','writer','downcastDispatcher','options','toViewPosition','mapper','plugins','ck-suggestion-marker-','merge','addMarker:suggestion:insertion','data','insert','locale','editing','markerName','bindElementToMarker','markerRange','addMarker:suggestion:deletion','high','editor','showSuggestionHighlights','init','consumable','split','span','enableCommand','ELEMENT_LINE_BREAK','getItems','get','TrackChangesEditing','ck-suggestion-marker--active'];(function(_0xf46849,_0x31ac2c){const _0x4b02d7=function(_0x5cced1){while(--_0x5cced1){_0xf46849['push'](_0xf46849['shift']());}};_0x4b02d7(++_0x31ac2c);}(_0x31ac,0xa4));const _0x4b02=function(_0xf46849,_0x31ac2c){_0xf46849=_0xf46849-0x0;let _0x4b02d7=_0x31ac[_0xf46849];return _0x4b02d7;};import{Plugin as _0x28d000}from'ckeditor5/src/core';import{ShiftEnter as _0x32187d}from'ckeditor5/src/enter';import{getTranslation as _0x35d775}from'../utils/common-translations';export default class ft extends _0x28d000{static get[_0x4b02('0x13')](){return[_0x32187d];}[_0x4b02('0x6')](){const _0x2014a8=this[_0x4b02('0x4')],_0x43ccaf=_0x2014a8[_0x4b02('0x1b')][_0x4b02('0xd')](_0x4b02('0xe'));_0x43ccaf[_0x4b02('0xa')](_0x4b02('0x11')),_0x2014a8[_0x4b02('0x22')]['downcastDispatcher']['on'](_0x4b02('0x1e'),re(_0x2014a8),{'priority':'high'}),_0x2014a8[_0x4b02('0x22')][_0x4b02('0x17')]['on'](_0x4b02('0x2'),re(_0x2014a8),{'priority':_0x4b02('0x3')}),_0x2014a8[_0x4b02('0x1f')][_0x4b02('0x17')]['on']('addMarker:suggestion',(_0x3e62fa,_0x4e312c,_0x32923e)=>{_0x32923e[_0x4b02('0x18')][_0x4b02('0x5')]&&re(_0x2014a8,{'showActiveMarker':!0x1})(_0x3e62fa,_0x4e312c,_0x32923e);}),_0x43ccaf['_descriptionFactory']['registerElementLabel']('softBreak',_0x1c33b8=>_0x35d775(_0x2014a8[_0x4b02('0x21')],_0x4b02('0xb'),_0x1c33b8));}}function re(_0x27866e,{showActiveMarker:_0x1f2d56=!0x0}={}){return(_0x278066,_0xd88d5d,_0x357ebb)=>{const _0x3296db=_0x27866e[_0x4b02('0x1b')][_0x4b02('0xd')](_0x4b02('0xe'));if(!_0x357ebb[_0x4b02('0x7')]['test'](_0xd88d5d[_0x4b02('0x1')],_0x278066[_0x4b02('0x10')]))return;const _0x4702d1=_0x27866e['model'];for(const _0x45eb95 of _0xd88d5d[_0x4b02('0x1')][_0x4b02('0xc')]()){if(!_0x45eb95['is']('element',_0x4b02('0x12')))continue;const _0x3bb085=_0x4b02('0x15')==_0xd88d5d[_0x4b02('0x23')][_0x4b02('0x8')](':')[0x1]?_0x4b02('0x1d'):'split',_0x33e976=_0x357ebb[_0x4b02('0x16')]['createUIElement'](_0x4b02('0x9'),{'class':_0x4b02('0x1c')+_0x3bb085}),_0x5cd715=_0x357ebb[_0x4b02('0x1a')][_0x4b02('0x19')](_0x4702d1['createPositionBefore'](_0x45eb95));_0x1f2d56&&_0x3296db['activeMarkers']['includes'](_0xd88d5d[_0x4b02('0x23')])&&_0x357ebb['writer'][_0x4b02('0x14')](_0x4b02('0xf'),_0x33e976),_0x357ebb[_0x4b02('0x16')][_0x4b02('0x20')](_0x5cd715,_0x33e976),_0x357ebb['mapper'][_0x4b02('0x0')](_0x33e976,_0xd88d5d[_0x4b02('0x23')]);}};}
23
+ const _0x4477=['insert','addMarker:suggestion:insertion','mapper','consumable','name','requires','ck-suggestion-marker-','span','activeMarkers','softBreak','element','ck-suggestion-marker--active','TrackChangesEditing','split','test','includes','addMarker:suggestion','plugins','merge','bindElementToMarker','ELEMENT_LINE_BREAK','editor','createPositionBefore','options','_descriptionFactory','addClass','registerElementLabel','getItems','editing','markerName','model','writer','init','markerRange','high','toViewPosition','locale','get','showSuggestionHighlights','data','createUIElement','downcastDispatcher'];(function(_0xb412e1,_0x447764){const _0x1f1e4=function(_0x3d6b0f){while(--_0x3d6b0f){_0xb412e1['push'](_0xb412e1['shift']());}};_0x1f1e4(++_0x447764);}(_0x4477,0x93));const _0x1f1e=function(_0xb412e1,_0x447764){_0xb412e1=_0xb412e1-0x0;let _0x1f1e4=_0x4477[_0xb412e1];return _0x1f1e4;};import{Plugin as _0x1b7788}from'ckeditor5/src/core';import{ShiftEnter as _0x4704bc}from'ckeditor5/src/enter';import{getTranslation as _0x2014d4}from'../utils/common-translations';export default class ft extends _0x1b7788{static get[_0x1f1e('0x1a')](){return[_0x4704bc];}[_0x1f1e('0xb')](){const _0x4ec4c2=this[_0x1f1e('0x0')],_0x453fbb=_0x4ec4c2['plugins']['get'](_0x1f1e('0x21'));_0x453fbb['enableCommand']('shiftEnter'),_0x4ec4c2['editing']['downcastDispatcher']['on'](_0x1f1e('0x16'),re(_0x4ec4c2),{'priority':_0x1f1e('0xd')}),_0x4ec4c2[_0x1f1e('0x7')][_0x1f1e('0x14')]['on']('addMarker:suggestion:deletion',re(_0x4ec4c2),{'priority':_0x1f1e('0xd')}),_0x4ec4c2[_0x1f1e('0x12')][_0x1f1e('0x14')]['on'](_0x1f1e('0x25'),(_0x5f141e,_0x18adb7,_0x3b6ce0)=>{_0x3b6ce0[_0x1f1e('0x2')][_0x1f1e('0x11')]&&re(_0x4ec4c2,{'showActiveMarker':!0x1})(_0x5f141e,_0x18adb7,_0x3b6ce0);}),_0x453fbb[_0x1f1e('0x3')][_0x1f1e('0x5')]('softBreak',_0x230fb5=>_0x2014d4(_0x4ec4c2[_0x1f1e('0xf')],_0x1f1e('0x29'),_0x230fb5));}}function re(_0x5b120f,{showActiveMarker:_0x2b5724=!0x0}={}){return(_0x56a6a7,_0x22a6ce,_0x1808cb)=>{const _0x57a714=_0x5b120f[_0x1f1e('0x26')][_0x1f1e('0x10')]('TrackChangesEditing');if(!_0x1808cb[_0x1f1e('0x18')][_0x1f1e('0x23')](_0x22a6ce[_0x1f1e('0xc')],_0x56a6a7[_0x1f1e('0x19')]))return;const _0x4a8b0e=_0x5b120f[_0x1f1e('0x9')];for(const _0x21e286 of _0x22a6ce[_0x1f1e('0xc')][_0x1f1e('0x6')]()){if(!_0x21e286['is'](_0x1f1e('0x1f'),_0x1f1e('0x1e')))continue;const _0x2d8b9b='deletion'==_0x22a6ce['markerName'][_0x1f1e('0x22')](':')[0x1]?_0x1f1e('0x27'):_0x1f1e('0x22'),_0x3c7863=_0x1808cb[_0x1f1e('0xa')][_0x1f1e('0x13')](_0x1f1e('0x1c'),{'class':_0x1f1e('0x1b')+_0x2d8b9b}),_0x57fb71=_0x1808cb[_0x1f1e('0x17')][_0x1f1e('0xe')](_0x4a8b0e[_0x1f1e('0x1')](_0x21e286));_0x2b5724&&_0x57a714[_0x1f1e('0x1d')][_0x1f1e('0x24')](_0x22a6ce['markerName'])&&_0x1808cb[_0x1f1e('0xa')][_0x1f1e('0x4')](_0x1f1e('0x20'),_0x3c7863),_0x1808cb[_0x1f1e('0xa')][_0x1f1e('0x15')](_0x57fb71,_0x3c7863),_0x1808cb['mapper'][_0x1f1e('0x28')](_0x3c7863,_0x22a6ce[_0x1f1e('0x8')]);}};}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/mention
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4714=['get','isCollapsed','StandardEditingModeEditing','getRanges','FORMAT_RESTRICTED_DISABLED','enableCommand','format','selection','locale','commandName','afterInit','commands','plugins','commandParams','forceValue','change','model','FORMAT_RESTRICTED_ENABLED','TrackChangesEditing','editor','registerDescriptionCallback','from'];(function(_0x4525f2,_0x47149c){const _0x38d7f8=function(_0x4cc790){while(--_0x4cc790){_0x4525f2['push'](_0x4525f2['shift']());}};_0x38d7f8(++_0x47149c);}(_0x4714,0x186));const _0x38d7=function(_0x4525f2,_0x47149c){_0x4525f2=_0x4525f2-0x0;let _0x38d7f8=_0x4714[_0x4525f2];return _0x38d7f8;};import{Plugin as _0xd0ed7a}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x4b23ca}from'./utils';import{getTranslation as _0x5d27aa}from'../utils/common-translations';export default class lt extends _0xd0ed7a{[_0x38d7('0x10')](){const _0x16b670=this[_0x38d7('0x3')],_0x488275=_0x16b670[_0x38d7('0x0')],_0x37b992=_0x16b670[_0x38d7('0xe')];if(!_0x16b670[_0x38d7('0x12')]['has'](_0x38d7('0x8')))return;const _0x5050c1=_0x16b670[_0x38d7('0x12')][_0x38d7('0x6')](_0x38d7('0x2')),_0xa54aa7='restrictedEditingException',_0x4617ce=_0x16b670[_0x38d7('0x11')]['get'](_0xa54aa7);_0x5050c1[_0x38d7('0xb')](_0xa54aa7,(_0xb8134b,_0x68274d={})=>{const _0x8fe14a=_0x488275['document'][_0x38d7('0xd')];if(_0x8fe14a[_0x38d7('0x7')])return void _0xb8134b(_0x68274d);const _0x3536af=void 0x0!==_0x68274d[_0x38d7('0x14')]?_0x68274d[_0x38d7('0x14')]:!_0x4617ce['value'];_0x488275[_0x38d7('0x15')](()=>{const _0x3212b5=Array[_0x38d7('0x5')](_0x8fe14a[_0x38d7('0x9')]());for(const _0x1e77ff of _0x3212b5){const _0x366acb=_0x3536af?[_0x1e77ff]:_0x4b23ca(_0xa54aa7,_0x1e77ff,_0x488275);for(const _0x4e331f of _0x366acb)_0x5050c1['markInlineFormat'](_0x4e331f,{'commandName':_0xa54aa7,'commandParams':[{'forceValue':_0x3536af}]});}});}),_0x5050c1['_descriptionFactory'][_0x38d7('0x4')](_0xfded02=>{const {data:_0x541d4f}=_0xfded02;if(_0x541d4f&&_0x541d4f[_0x38d7('0xf')]==_0xa54aa7)return _0x541d4f[_0x38d7('0x13')][0x0][_0x38d7('0x14')]?{'type':_0x38d7('0xc'),'content':_0x5d27aa(_0x37b992,_0x38d7('0x1'))}:{'type':_0x38d7('0xc'),'content':_0x5d27aa(_0x37b992,_0x38d7('0xa'))};});}}
23
+ const _0x196a=['value','forceValue','plugins','locale','getRanges','document','_descriptionFactory','from','FORMAT_RESTRICTED_DISABLED','isCollapsed','commandParams','enableCommand','has','commandName','registerDescriptionCallback','get','afterInit','model','commands','restrictedEditingException','change'];(function(_0x5ef678,_0x196a19){const _0x36155f=function(_0x252c24){while(--_0x252c24){_0x5ef678['push'](_0x5ef678['shift']());}};_0x36155f(++_0x196a19);}(_0x196a,0x1f3));const _0x3615=function(_0x5ef678,_0x196a19){_0x5ef678=_0x5ef678-0x0;let _0x36155f=_0x196a[_0x5ef678];return _0x36155f;};import{Plugin as _0x3c8ba5}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x1a52be}from'./utils';import{getTranslation as _0x33cb53}from'../utils/common-translations';export default class lt extends _0x3c8ba5{[_0x3615('0x0')](){const _0x5bbc4d=this['editor'],_0x2d98da=_0x5bbc4d[_0x3615('0x1')],_0xc996c5=_0x5bbc4d[_0x3615('0x8')];if(!_0x5bbc4d[_0x3615('0x7')][_0x3615('0x11')]('StandardEditingModeEditing'))return;const _0x5b5184=_0x5bbc4d[_0x3615('0x7')]['get']('TrackChangesEditing'),_0x12a7a6=_0x3615('0x3'),_0x3fa7df=_0x5bbc4d[_0x3615('0x2')][_0x3615('0x14')](_0x12a7a6);_0x5b5184[_0x3615('0x10')](_0x12a7a6,(_0x55cffb,_0x2733ec={})=>{const _0xcd37b4=_0x2d98da[_0x3615('0xa')]['selection'];if(_0xcd37b4[_0x3615('0xe')])return void _0x55cffb(_0x2733ec);const _0x4b4f78=void 0x0!==_0x2733ec[_0x3615('0x6')]?_0x2733ec['forceValue']:!_0x3fa7df[_0x3615('0x5')];_0x2d98da[_0x3615('0x4')](()=>{const _0x4853fb=Array[_0x3615('0xc')](_0xcd37b4[_0x3615('0x9')]());for(const _0x58c5f9 of _0x4853fb){const _0x558f01=_0x4b4f78?[_0x58c5f9]:_0x1a52be(_0x12a7a6,_0x58c5f9,_0x2d98da);for(const _0x1c6fc7 of _0x558f01)_0x5b5184['markInlineFormat'](_0x1c6fc7,{'commandName':_0x12a7a6,'commandParams':[{'forceValue':_0x4b4f78}]});}});}),_0x5b5184[_0x3615('0xb')][_0x3615('0x13')](_0x520681=>{const {data:_0x430197}=_0x520681;if(_0x430197&&_0x430197[_0x3615('0x12')]==_0x12a7a6)return _0x430197[_0x3615('0xf')][0x0]['forceValue']?{'type':'format','content':_0x33cb53(_0xc996c5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':_0x33cb53(_0xc996c5,_0x3615('0xd'))};});}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/style
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3010=['has','enabledStyles','getAncestors','commandName','getAttribute','_getStyleDefinition','markBlockFormat','name','selection','commands','document','block','_getRangesWithClasses','element','locale','getSelectedBlocks','push','isCollapsed','StyleUtils','classes','*Format:*\x20%0','style','config','change','from','TrackChangesEditing','editor','find','commandParams','model','getRanges','markInlineFormat','createRangeOn','includes','get','style:','registerDescriptionCallback','styleName','Style','*Remove\x20format:*\x20%0','DataSchema','format','add','plugins','_descriptionFactory','isBlock','toLowerCase','normalizeConfig','value'];(function(_0x134537,_0x301046){const _0x3a2170=function(_0x24d9ab){while(--_0x24d9ab){_0x134537['push'](_0x134537['shift']());}};_0x3a2170(++_0x301046);}(_0x3010,0xb4));const _0x3a21=function(_0x134537,_0x301046){_0x134537=_0x134537-0x0;let _0x3a2170=_0x3010[_0x134537];return _0x3a2170;};import{Plugin as _0x19a722}from'ckeditor5/src/core';import{getTranslation as _0x38f4c9}from'../utils/common-translations';export default class gt extends _0x19a722{['afterInit'](){const _0x2c30d7=this[_0x3a21('0x2a')];if(!_0x2c30d7[_0x3a21('0xa')][_0x3a21('0x10')](_0x3a21('0x5')))return;const _0x555631=_0x2c30d7[_0x3a21('0x19')][_0x3a21('0x1')](_0x3a21('0x25')),_0x2bee22=_0x2c30d7[_0x3a21('0xa')][_0x3a21('0x1')](_0x3a21('0x29')),_0x47a79b=_0x2c30d7[_0x3a21('0x1e')],_0x3d2a0e=_0x2c30d7[_0x3a21('0xa')][_0x3a21('0x1')](_0x3a21('0x7')),_0x30826e=_0x2c30d7[_0x3a21('0xa')]['get'](_0x3a21('0x22'))[_0x3a21('0xe')](_0x3d2a0e,_0x2c30d7[_0x3a21('0x26')][_0x3a21('0x1')]('style.definitions'));_0x2bee22['enableCommand'](_0x3a21('0x25'),(_0xec6fcb,{styleName:_0x108e34})=>{const _0x5f09fd=_0x2c30d7[_0x3a21('0x2d')][_0x3a21('0x1a')][_0x3a21('0x18')],_0x375547=this[_0x3a21('0x15')](_0x108e34,_0x30826e);if(!_0x375547)return;if(!_0x555631[_0x3a21('0x11')][_0x3a21('0x0')](_0x108e34))return;if(_0x5f09fd[_0x3a21('0x21')]&&!_0x375547[_0x3a21('0xc')])return void _0xec6fcb({'styleName':_0x108e34});const _0x4235cb=!_0x555631[_0x3a21('0xf')][_0x3a21('0x0')](_0x375547[_0x3a21('0x17')]);if(_0x375547[_0x3a21('0xc')]){const _0x458713=function(_0x32e256,_0xf4d318){const _0x22bd47=new Set();for(const _0x463bd0 of _0x32e256){const _0x36109d=_0x463bd0[_0x3a21('0x12')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x2c34dd of _0x36109d)if(_0xf4d318[_0x3a21('0x0')](_0x2c34dd[_0x3a21('0x17')])){_0x22bd47[_0x3a21('0x9')](_0x2c34dd);break;}}return _0x22bd47;}(_0x5f09fd[_0x3a21('0x1f')](),_0x375547['modelElements']);_0x2c30d7[_0x3a21('0x2d')][_0x3a21('0x27')](()=>{for(const _0x451aa6 of _0x458713)_0x2bee22[_0x3a21('0x16')](_0x451aa6,{'commandName':_0x3a21('0x25'),'commandParams':[{'styleName':_0x108e34,'forceValue':_0x4235cb}],'formatGroupId':_0x3a21('0x2')+_0x108e34});});}else{let _0x2fe20f=Array[_0x3a21('0x28')](_0x5f09fd[_0x3a21('0x2e')]());if(!_0x4235cb){const _0xde5fb4=Array['from'](_0x3d2a0e['getDefinitionsForView'](_0x375547[_0x3a21('0x1d')],!0x1))[0x0][_0x3a21('0x2d')],_0x1af75a=[];for(const _0x4affec of _0x2fe20f){const _0x5057c6=this[_0x3a21('0x1c')](_0x2c30d7[_0x3a21('0x2d')],_0x4affec,_0x375547['classes'],_0xde5fb4);_0x1af75a[_0x3a21('0x20')](..._0x5057c6);}_0x2fe20f=_0x1af75a;}_0x2c30d7['model']['change'](()=>{for(const _0x206159 of _0x2fe20f)_0x2bee22[_0x3a21('0x2f')](_0x206159,{'commandName':_0x3a21('0x25'),'commandParams':[{'styleName':_0x108e34,'forceValue':_0x4235cb}]});});}}),_0x2bee22[_0x3a21('0xb')][_0x3a21('0x3')](_0x4449ec=>{const {data:_0x528980}=_0x4449ec;if(_0x528980&&_0x3a21('0x25')===_0x528980[_0x3a21('0x13')])return _0x528980[_0x3a21('0x2c')][0x0]['forceValue']?{'type':_0x3a21('0x8'),'content':_0x38f4c9(_0x47a79b,_0x3a21('0x24'),_0x528980[_0x3a21('0x2c')][0x0][_0x3a21('0x4')][_0x3a21('0xd')]())}:{'type':'format','content':_0x38f4c9(_0x47a79b,_0x3a21('0x6'),_0x528980[_0x3a21('0x2c')][0x0][_0x3a21('0x4')]['toLowerCase']())};});}['_getStyleDefinition'](_0x5ae7ed,_0x16a3a9){let _0x40d0c0=_0x16a3a9[_0x3a21('0x1b')]['find'](_0x464e2c=>_0x464e2c[_0x3a21('0x17')]===_0x5ae7ed);return _0x40d0c0||(_0x40d0c0=_0x16a3a9['inline'][_0x3a21('0x2b')](_0x3b5d3e=>_0x3b5d3e[_0x3a21('0x17')]===_0x5ae7ed)),_0x40d0c0;}['_getRangesWithClasses'](_0x56e3db,_0x385e91,_0x3a61be,_0x5d434a){const _0x6db47a=[];for(const _0x5b854a of _0x385e91['getItems']()){const _0xe2c67b=_0x5b854a[_0x3a21('0x14')](_0x5d434a);_0xe2c67b&&(_0x3a61be['every'](_0x139f9b=>_0xe2c67b[_0x3a21('0x23')][_0x3a21('0x0')](_0x139f9b))&&_0x6db47a[_0x3a21('0x20')](_0x56e3db[_0x3a21('0x30')](_0x5b854a)));}return _0x6db47a;}}
23
+ const _0x247b=['find','getAttribute','getItems','change','enabledStyles','document','classes','markInlineFormat','value','normalizeConfig','markBlockFormat','*Format:*\x20%0','name','Style','registerDescriptionCallback','commandParams','locale','DataSchema','styleName','has','every','getAncestors','*Remove\x20format:*\x20%0','model','from','TrackChangesEditing','forceValue','style','add','_getRangesWithClasses','enableCommand','isBlock','getDefinitionsForView','commands','afterInit','format','block','selection','toLowerCase','_descriptionFactory','StyleUtils','plugins','config','isCollapsed','commandName','get','style:','includes'];(function(_0x5d2935,_0x247b1e){const _0x4ee455=function(_0x1fac1f){while(--_0x1fac1f){_0x5d2935['push'](_0x5d2935['shift']());}};_0x4ee455(++_0x247b1e);}(_0x247b,0x1eb));const _0x4ee4=function(_0x5d2935,_0x247b1e){_0x5d2935=_0x5d2935-0x0;let _0x4ee455=_0x247b[_0x5d2935];return _0x4ee455;};import{Plugin as _0x341da8}from'ckeditor5/src/core';import{getTranslation as _0x4f6976}from'../utils/common-translations';export default class gt extends _0x341da8{[_0x4ee4('0x17')](){const _0x5b491a=this['editor'];if(!_0x5b491a['plugins'][_0x4ee4('0x8')](_0x4ee4('0x2')))return;const _0x42a6f5=_0x5b491a[_0x4ee4('0x16')][_0x4ee4('0x22')](_0x4ee4('0x10')),_0x5864b4=_0x5b491a[_0x4ee4('0x1e')][_0x4ee4('0x22')](_0x4ee4('0xe')),_0x5e619b=_0x5b491a[_0x4ee4('0x5')],_0x588d9d=_0x5b491a['plugins'][_0x4ee4('0x22')](_0x4ee4('0x6')),_0x12f203=_0x5b491a[_0x4ee4('0x1e')][_0x4ee4('0x22')](_0x4ee4('0x1d'))[_0x4ee4('0x2e')](_0x588d9d,_0x5b491a[_0x4ee4('0x1f')][_0x4ee4('0x22')]('style.definitions'));_0x5864b4[_0x4ee4('0x13')](_0x4ee4('0x10'),(_0x377379,{styleName:_0x231a3a})=>{const _0x5a3dde=_0x5b491a[_0x4ee4('0xc')][_0x4ee4('0x2a')][_0x4ee4('0x1a')],_0x13e6bb=this['_getStyleDefinition'](_0x231a3a,_0x12f203);if(!_0x13e6bb)return;if(!_0x42a6f5[_0x4ee4('0x29')][_0x4ee4('0x24')](_0x231a3a))return;if(_0x5a3dde[_0x4ee4('0x20')]&&!_0x13e6bb[_0x4ee4('0x14')])return void _0x377379({'styleName':_0x231a3a});const _0x1b1e42=!_0x42a6f5[_0x4ee4('0x2d')][_0x4ee4('0x24')](_0x13e6bb['name']);if(_0x13e6bb['isBlock']){const _0x225f94=function(_0x1bbf81,_0x55384c){const _0x52775f=new Set();for(const _0x2db426 of _0x1bbf81){const _0x8e71d2=_0x2db426[_0x4ee4('0xa')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x758d4 of _0x8e71d2)if(_0x55384c['includes'](_0x758d4['name'])){_0x52775f[_0x4ee4('0x11')](_0x758d4);break;}}return _0x52775f;}(_0x5a3dde['getSelectedBlocks'](),_0x13e6bb['modelElements']);_0x5b491a[_0x4ee4('0xc')][_0x4ee4('0x28')](()=>{for(const _0x2e59fb of _0x225f94)_0x5864b4[_0x4ee4('0x2f')](_0x2e59fb,{'commandName':_0x4ee4('0x10'),'commandParams':[{'styleName':_0x231a3a,'forceValue':_0x1b1e42}],'formatGroupId':_0x4ee4('0x23')+_0x231a3a});});}else{let _0x3361=Array[_0x4ee4('0xd')](_0x5a3dde['getRanges']());if(!_0x1b1e42){const _0x3bfc03=Array['from'](_0x588d9d[_0x4ee4('0x15')](_0x13e6bb['element'],!0x1))[0x0]['model'],_0x43c773=[];for(const _0x176af9 of _0x3361){const _0xf26f64=this[_0x4ee4('0x12')](_0x5b491a[_0x4ee4('0xc')],_0x176af9,_0x13e6bb[_0x4ee4('0x2b')],_0x3bfc03);_0x43c773['push'](..._0xf26f64);}_0x3361=_0x43c773;}_0x5b491a[_0x4ee4('0xc')]['change'](()=>{for(const _0x525b61 of _0x3361)_0x5864b4[_0x4ee4('0x2c')](_0x525b61,{'commandName':_0x4ee4('0x10'),'commandParams':[{'styleName':_0x231a3a,'forceValue':_0x1b1e42}]});});}}),_0x5864b4[_0x4ee4('0x1c')][_0x4ee4('0x3')](_0x3925f7=>{const {data:_0x54cb05}=_0x3925f7;if(_0x54cb05&&'style'===_0x54cb05[_0x4ee4('0x21')])return _0x54cb05[_0x4ee4('0x4')][0x0][_0x4ee4('0xf')]?{'type':'format','content':_0x4f6976(_0x5e619b,_0x4ee4('0x0'),_0x54cb05[_0x4ee4('0x4')][0x0][_0x4ee4('0x7')][_0x4ee4('0x1b')]())}:{'type':_0x4ee4('0x18'),'content':_0x4f6976(_0x5e619b,_0x4ee4('0xb'),_0x54cb05[_0x4ee4('0x4')][0x0][_0x4ee4('0x7')][_0x4ee4('0x1b')]())};});}['_getStyleDefinition'](_0x2c09c0,_0x48b304){let _0x509235=_0x48b304[_0x4ee4('0x19')][_0x4ee4('0x25')](_0x31a381=>_0x31a381[_0x4ee4('0x1')]===_0x2c09c0);return _0x509235||(_0x509235=_0x48b304['inline'][_0x4ee4('0x25')](_0x58315b=>_0x58315b[_0x4ee4('0x1')]===_0x2c09c0)),_0x509235;}[_0x4ee4('0x12')](_0x3aa803,_0x240ee6,_0xf387d5,_0x83cb50){const _0x48cd9a=[];for(const _0x20767a of _0x240ee6[_0x4ee4('0x27')]()){const _0x1bbda7=_0x20767a[_0x4ee4('0x26')](_0x83cb50);_0x1bbda7&&(_0xf387d5[_0x4ee4('0x9')](_0x4821a4=>_0x1bbda7['classes']['includes'](_0x4821a4))&&_0x48cd9a['push'](_0x3aa803['createRangeOn'](_0x20767a)));}return _0x48cd9a;}}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/table
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4839=['_getSuggestionCoords','addRange','removeTableRow','$graveyard','toLowerCase','selectTableRow','from','ELEMENT_TABLE_WITH_TEXT','detach','markMultiRangeInsertion','createRangeIn','substr','markMultiRangeDeletion','getItems','ELEMENT_TABLE_ROW','document','start','locale','TableUtils','insertion','getColumnIndexes','deletion','editor','plugins','MIN_SAFE_INTEGER','root','includes','ELEMENT_TABLE_ROW_WITH_TEXT','max','last','get','push','fromRange','selection','subType','hasAttribute','maxColumn','_tableSuggestions','*Remove:*\x20%0','getAttribute','tableCell','addMarker:suggestion','ELEMENT_TABLE','isArray','ELEMENT_TABLE_COLUMN','insert','*Insert:*\x20%0','getContainedElement','discard','rootName','getChildren','getSuggestion','nodeAfter','createPositionAt','createTableWalker','getSelectionAffectedTableCells','data','suggestion','has','_splitMarkerName','_setupColumnsRowsFixing','isEqual','refresh','tableColumn','span','order','change','mapper','classes','accept','name','differ','table','insertTable','oldRange','values','position','_tablePostFixingSubtypes','type','min','_acceptFormatSuggestionCallbackFactory','selectTableColumn','low','join','getCellLocation','tablePaste','registerPostFixer','maxRow','options','showSuggestionHighlights','afterInit','item','colspan','insertTableColumnRight','isInContent','model','end','enqueueChange','removeTableColumn','downcastDispatcher','_suggestionFactory','getRanges','registerElementLabel','findAncestor','length','tableRow','writer','change:data','_getCoordsForCells','registerDescriptionCallback','first','toViewElement','commands','$textProxy','filter','setSelection','some','registerCustomCallback','every','_descriptionFactory','insertTableRowAbove','rowspan','createRangeOn','TableEditing','insertTableColumnLeft','map','getFirstRange','execute','getChangedMarkers','enableCommand'];(function(_0x384fd1,_0x483994){const _0x34af0b=function(_0x5beea8){while(--_0x5beea8){_0x384fd1['push'](_0x384fd1['shift']());}};_0x34af0b(++_0x483994);}(_0x4839,0x72));const _0x34af=function(_0x384fd1,_0x483994){_0x384fd1=_0x384fd1-0x0;let _0x34af0b=_0x4839[_0x384fd1];return _0x34af0b;};import{Plugin as _0xf30e0e}from'ckeditor5/src/core';import{LiveRange as _0x20005b}from'ckeditor5/src/engine';import{setHighlightHandling as _0x1e1a10}from'ckeditor5/src/widget';import{getTranslation as _0x283a1f}from'../utils/common-translations';export default class mt extends _0xf30e0e{constructor(_0x595851){super(_0x595851),this[_0x34af('0x5d')]=[_0x34af('0x79'),_0x34af('0x4f')],this[_0x34af('0x35')]=new Set();}[_0x34af('0x6a')](){const _0x4139e0=this[_0x34af('0x26')],_0x598c61=_0x4139e0['model'][_0x34af('0x1f')][_0x34af('0x31')];if(!_0x4139e0[_0x34af('0x27')][_0x34af('0x4a')](_0x34af('0x9')))return;const _0x3b8215=_0x4139e0[_0x34af('0x21')],_0x2d2043=_0x4139e0[_0x34af('0x27')]['get']('TrackChangesEditing'),_0x2f648a=_0x4139e0[_0x34af('0x27')][_0x34af('0x2e')](_0x34af('0x22'));_0x2d2043[_0x34af('0x5')][_0x34af('0x76')](_0x34af('0x58'),_0x4e888f=>_0x283a1f(_0x3b8215,_0x34af('0x3a'),_0x4e888f)),this[_0x34af('0x4c')](),_0x2d2043[_0x34af('0xf')](_0x34af('0x59')),_0x2d2043[_0x34af('0xf')](_0x34af('0x15')),_0x2d2043[_0x34af('0xf')](_0x34af('0x61'));for(const _0xc0a786 of[_0x34af('0x6'),'insertTableRowBelow']){const _0x3ca9bf=_0x4139e0['commands'][_0x34af('0x2e')](_0xc0a786);_0x2d2043[_0x34af('0xf')](_0xc0a786,_0x28dc69=>{_0x4139e0[_0x34af('0x6f')][_0x34af('0x52')](_0x58df9c=>{_0x28dc69();const _0x5aa9a6='above'===_0x3ca9bf[_0x34af('0x51')],_0x47d412=_0x2f648a[_0x34af('0x47')](_0x598c61),_0xd509a2=_0x2f648a['getRowIndexes'](_0x47d412),_0x5c6f28=_0x5aa9a6?_0xd509a2[_0x34af('0x7e')]-0x1:_0xd509a2[_0x34af('0x2d')]+0x1,_0x401c3c=_0x47d412[0x0][_0x34af('0x77')]('table'),_0x34176e=_0x2f648a['createTableWalker'](_0x401c3c,{'startRow':_0x5c6f28,'endRow':_0x5c6f28}),_0x2a1c82=Array['from'](_0x34176e)[_0x34af('0xb')](_0x24e2ef=>_0x58df9c[_0x34af('0x8')](_0x24e2ef['cell']));_0x2d2043[_0x34af('0x19')](_0x2a1c82,_0x34af('0x79'));});});}for(const _0x555021 of[_0x34af('0xa'),_0x34af('0x6d')]){const _0x33a41b=_0x4139e0['commands'][_0x34af('0x2e')](_0x555021);_0x2d2043[_0x34af('0xf')](_0x555021,_0x404a62=>{_0x4139e0['model'][_0x34af('0x52')](_0x3838c2=>{_0x404a62();const _0x395d92='left'===_0x33a41b[_0x34af('0x51')],_0x14ba46=_0x2f648a[_0x34af('0x47')](_0x598c61),_0x163dd7=_0x2f648a[_0x34af('0x24')](_0x14ba46),_0x41f8d7=_0x395d92?_0x163dd7['first']-0x1:_0x163dd7[_0x34af('0x2d')]+0x1,_0x89d8=_0x14ba46[0x0]['findAncestor'](_0x34af('0x58')),_0x31c0fe=_0x2f648a[_0x34af('0x46')](_0x89d8,{'startRow':0x0,'column':_0x41f8d7,'includeAllSlots':!0x1}),_0x495098=Array[_0x34af('0x16')](_0x31c0fe)[_0x34af('0xb')](_0x105b22=>_0x3838c2[_0x34af('0x8')](_0x105b22['cell']));_0x2d2043['markMultiRangeInsertion'](_0x495098,'tableColumn');});});}for(const _0x5e29d9 of[_0x34af('0x12'),_0x34af('0x72')]){const _0xf86ca7=_0x5e29d9['substr'](0xb),_0x500d73=_0xf86ca7[_0x34af('0x14')](),_0xa5cf62=_0x500d73['substr'](0x0,0x3)+_0x34af('0x50'),_0x14e6bf='table'+_0xf86ca7,_0x128895=_0x34af('0x5f')+_0xf86ca7,_0x3add37=_0x34af('0x2c')+_0xf86ca7;_0x2d2043[_0x34af('0xf')](_0x5e29d9,()=>{_0x4139e0[_0x34af('0x6f')][_0x34af('0x52')](_0x41a479=>{const _0xcb4283=_0x2f648a[_0x34af('0x47')](_0x598c61),_0x329548=_0xcb4283[0x0][_0x34af('0x77')](_0x34af('0x58'));let _0x40d25f;if(_0x34af('0x12')==_0x5e29d9){const _0x1f98ed=_0x2f648a['getRowIndexes'](_0xcb4283);_0x40d25f={'startRow':_0x1f98ed[_0x34af('0x7e')],'endRow':_0x1f98ed['last'],'includeAllSlots':!0x0};}else{const _0x14b140=_0x2f648a[_0x34af('0x24')](_0xcb4283);_0x40d25f={'startColumn':_0x14b140[_0x34af('0x7e')],'endColumn':_0x14b140['last'],'includeAllSlots':!0x0};}const _0x40869e=_0x2f648a[_0x34af('0x46')](_0x329548,_0x40d25f),_0x5344f1=Array[_0x34af('0x16')](_0x40869e)['map'](({cell:_0x138297})=>_0x138297),_0x2289ef=se(_0x5344f1[_0x34af('0x0')](_0x359d88=>_0x359d88['hasAttribute'](_0xa5cf62))),_0xb214fc=se(_0x5344f1['filter'](_0x497c67=>!_0x497c67[_0x34af('0x33')](_0xa5cf62)))[_0x34af('0xb')](_0x31b982=>_0x41a479['createRangeOn'](_0x31b982)),_0x5b2342=_0x2d2043[_0x34af('0x1c')](_0xb214fc,_0x14e6bf);if(_0x5b2342&&(_0x34af('0x79')==_0x5b2342[_0x34af('0x32')]||_0x34af('0x4f')==_0x5b2342['subType'])){const _0x3c90e2=this[_0x34af('0x10')](_0x5b2342);for(const _0x4d7e08 of _0x2289ef){const _0x495712=_0x41a479['createRangeOn'](_0x4d7e08),_0x4b0000=_0x2f648a[_0x34af('0x64')](_0x4d7e08),_0x47ab3a=_0x4d7e08[_0x34af('0x37')](_0xa5cf62)-0x1,_0x57090e=_0x3c90e2[_0x128895],_0x15390c=_0x3c90e2[_0x3add37];_0x57090e<=_0x4b0000[_0x500d73]&&_0x4b0000[_0x500d73]+_0x47ab3a<=_0x15390c&&_0x5b2342[_0x34af('0x11')](_0x495712);}}});});}function _0x288208(_0x11e568){const _0x790519=Array['from'](_0x598c61[_0x34af('0x75')]())[_0x34af('0xb')](_0x2aa08b=>_0x20005b[_0x34af('0x30')](_0x2aa08b));_0x4139e0[_0x34af('0x6f')]['change'](_0x50afa1=>{const _0x1d38a3=_0x50afa1['batch'];_0x11e568=_0x11e568[_0x34af('0x0')](_0x5d660d=>_0x34af('0x13')!=_0x5d660d[_0x34af('0x29')][_0x34af('0x41')]),_0x50afa1['setSelection'](_0x11e568),_0x4139e0[_0x34af('0x80')]['get']('removeTableRow')['refresh'](),_0x4139e0[_0x34af('0xd')](_0x34af('0x12'),{'forceDefaultExecution':!0x0}),_0x4139e0['model'][_0x34af('0x71')](()=>{_0x4139e0['model'][_0x34af('0x71')](_0x1d38a3,_0x428d89=>{const _0x3cd214=_0x790519[_0x34af('0x0')](_0x21abbc=>_0x34af('0x13')!=_0x21abbc[_0x34af('0x29')][_0x34af('0x41')]);_0x3cd214[_0x34af('0x78')]>0x0&&_0x428d89['setSelection'](_0x3cd214);for(const _0xed2aa9 of _0x790519)_0xed2aa9[_0x34af('0x18')]();});});});}function _0x5d511f(_0x27a943){_0x4139e0[_0x34af('0x6f')][_0x34af('0x52')](_0x11f179=>{const _0x347e7b=Array[_0x34af('0x16')](_0x598c61[_0x34af('0x75')]())[_0x34af('0xb')](_0x332a1e=>_0x20005b[_0x34af('0x30')](_0x332a1e)),_0x48f706=[];for(const _0x28ee00 of _0x27a943)for(const _0x211ff4 of _0x28ee00[_0x34af('0x1d')]({'shallow':!0x0}))_0x48f706[_0x34af('0x2f')](_0x211ff4);for(const _0x2bb653 of _0x48f706)_0x34af('0x13')!=_0x2bb653[_0x34af('0x29')][_0x34af('0x41')]&&(_0x11f179[_0x34af('0x1')](_0x11f179[_0x34af('0x45')](_0x2bb653,0x0)),_0x4139e0[_0x34af('0x80')][_0x34af('0x2e')](_0x34af('0x72'))['refresh'](),_0x4139e0[_0x34af('0xd')](_0x34af('0x72'),{'forceDefaultExecution':!0x0}));const _0x5da3b2=_0x347e7b[_0x34af('0x0')](_0x6b24a8=>_0x34af('0x13')!=_0x6b24a8[_0x34af('0x29')][_0x34af('0x41')]);_0x5da3b2[_0x34af('0x78')]>0x0&&_0x11f179[_0x34af('0x1')](_0x5da3b2);for(const _0x5343b4 of _0x347e7b)_0x5343b4[_0x34af('0x18')]();});}function _0x4e13a4(_0x51e6ac,_0x25d759){return _0x25d759[_0x34af('0x4')](_0x5657ac=>_0x51e6ac[_0x34af('0x2')](_0x1629e1=>_0x1629e1[_0x34af('0x70')][_0x34af('0x4d')](_0x5657ac['start'])||_0x5657ac[_0x34af('0x70')]['isEqual'](_0x1629e1['start'])));}function _0x4ebf9a(_0x5dff00,_0x4d5ce3){return _0x5dff00[_0x34af('0x2')](_0x2c46b0=>_0x4d5ce3[_0x34af('0x2')](_0x5d1218=>_0x2c46b0[_0x34af('0x70')]['isTouching'](_0x5d1218[_0x34af('0x20')])));}_0x4139e0[_0x34af('0x48')][_0x34af('0x73')]['on'](_0x34af('0x39'),(_0x2e8071,_0xafe828,_0x4a5c21)=>{if(!_0x4a5c21[_0x34af('0x68')][_0x34af('0x69')])return;const _0x45e51e=_0xafe828[_0x34af('0x6b')];if(!_0x45e51e)return;const _0x89a20=_0x4a5c21[_0x34af('0x53')][_0x34af('0x7f')](_0x45e51e);function _0x1981d5(_0x3263a1){return Array[_0x34af('0x3b')](_0x3263a1)?_0x3263a1:[_0x3263a1];}_0x89a20&&_0x34af('0x38')===_0x45e51e[_0x34af('0x56')]&&_0x1e1a10(_0x89a20,_0x4a5c21[_0x34af('0x7a')],(_0x5d5d8a,_0x7f7c66,_0x19580e)=>_0x19580e['addClass'](_0x1981d5(_0x7f7c66[_0x34af('0x54')]),_0x5d5d8a),(_0x336a7f,_0x5384fe,_0x31073f)=>_0x31073f['removeClass'](_0x1981d5(_0x5384fe[_0x34af('0x54')]),_0x336a7f));},{'priority':'highest'}),_0x2d2043[_0x34af('0x5')][_0x34af('0x7d')](_0xa17637=>{if(_0x34af('0x23')!=_0xa17637[_0x34af('0x5e')]&&_0x34af('0x25')!=_0xa17637[_0x34af('0x5e')])return;const _0x287591=_0xa17637[_0x34af('0x3f')]();if(null!=_0x287591&&_0x287591['is']('element',_0x34af('0x58'))){if('insertion'==_0xa17637[_0x34af('0x5e')]){const _0x39b7f5=_0xa17637[_0x34af('0x1d')]()[_0x34af('0x0')](_0x30124a=>_0x30124a['is'](_0x34af('0x81')))[_0x34af('0xb')](_0x277613=>_0x277613[_0x34af('0x48')]);if(_0x39b7f5[_0x34af('0x78')])return{'type':'insertion','content':_0x283a1f(_0x3b8215,_0x34af('0x3e'),_0x283a1f(_0x3b8215,_0x34af('0x17'),'\x22'+_0x39b7f5['join']('\x20')+'\x22'))};}if(_0x34af('0x25')==_0xa17637['type']){const _0x20af95=_0xa17637[_0x34af('0x1d')]()[_0x34af('0x0')](_0x3e99a7=>_0x3e99a7['is'](_0x34af('0x81')))['map'](_0x31bf0=>_0x31bf0[_0x34af('0x48')]);if(_0x20af95[_0x34af('0x78')])return{'type':'deletion','content':_0x283a1f(_0x3b8215,_0x34af('0x36'),_0x283a1f(_0x3b8215,_0x34af('0x17'),'\x22'+_0x20af95[_0x34af('0x63')]('\x20')+'\x22'))};}}}),_0x2d2043[_0x34af('0x5')]['registerDescriptionCallback'](_0xa1f06f=>{if(_0x34af('0x79')==_0xa1f06f[_0x34af('0x32')]){const _0x269f4a=_0xa1f06f[_0x34af('0x1d')]()[_0x34af('0x0')](_0x2187d1=>_0x2187d1['is'](_0x34af('0x81')))[_0x34af('0xb')](_0x55bb96=>_0x55bb96[_0x34af('0x48')]),_0x123b99=this['_getSuggestionCoords'](_0xa1f06f),_0x424de4=_0x123b99[_0x34af('0x67')]-_0x123b99['minRow']+0x1;if(_0x34af('0x23')==_0xa1f06f[_0x34af('0x5e')])return _0x269f4a['length']?{'type':_0x34af('0x23'),'content':_0x283a1f(_0x3b8215,'*Insert:*\x20%0',_0x283a1f(_0x3b8215,_0x34af('0x2b'),[_0x424de4,'\x22'+_0x269f4a['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x283a1f(_0x3b8215,'*Insert:*\x20%0',_0x283a1f(_0x3b8215,_0x34af('0x1e'),_0x424de4))};if(_0x34af('0x25')==_0xa1f06f[_0x34af('0x5e')])return _0x269f4a['length']?{'type':_0x34af('0x25'),'content':_0x283a1f(_0x3b8215,_0x34af('0x36'),_0x283a1f(_0x3b8215,_0x34af('0x2b'),[_0x424de4,'\x22'+_0x269f4a[_0x34af('0x63')]('\x20')+'\x22']))}:{'type':_0x34af('0x25'),'content':_0x283a1f(_0x3b8215,'*Remove:*\x20%0',_0x283a1f(_0x3b8215,'ELEMENT_TABLE_ROW',_0x424de4))};}if('tableColumn'==_0xa1f06f[_0x34af('0x32')]){const _0x260f87=_0xa1f06f['getItems']()[_0x34af('0x0')](_0x155cb0=>_0x155cb0['is'](_0x34af('0x81')))[_0x34af('0xb')](_0x44f88d=>_0x44f88d['data']),_0x52be51=this[_0x34af('0x10')](_0xa1f06f),_0xbca23e=_0x52be51[_0x34af('0x34')]-_0x52be51['minColumn']+0x1;if('insertion'==_0xa1f06f['type'])return _0x260f87[_0x34af('0x78')]?{'type':_0x34af('0x23'),'content':_0x283a1f(_0x3b8215,_0x34af('0x3e'),_0x283a1f(_0x3b8215,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbca23e,'\x22'+_0x260f87['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x283a1f(_0x3b8215,_0x34af('0x3e'),_0x283a1f(_0x3b8215,_0x34af('0x3c'),_0xbca23e))};if('deletion'==_0xa1f06f[_0x34af('0x5e')])return _0x260f87['length']?{'type':_0x34af('0x25'),'content':_0x283a1f(_0x3b8215,_0x34af('0x36'),_0x283a1f(_0x3b8215,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xbca23e,'\x22'+_0x260f87[_0x34af('0x63')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x283a1f(_0x3b8215,'*Remove:*\x20%0',_0x283a1f(_0x3b8215,_0x34af('0x3c'),_0xbca23e))};}}),_0x2d2043[_0x34af('0x74')]['registerCustomCallback']('insertion','tableRow',_0x34af('0x40'),_0x288208),_0x2d2043[_0x34af('0x74')]['registerCustomCallback'](_0x34af('0x25'),_0x34af('0x79'),_0x34af('0x55'),_0x288208),_0x2d2043[_0x34af('0x74')]['registerCustomCallback'](_0x34af('0x23'),_0x34af('0x4f'),_0x34af('0x40'),_0x5d511f),_0x2d2043[_0x34af('0x74')]['registerCustomCallback'](_0x34af('0x25'),_0x34af('0x4f'),_0x34af('0x55'),_0x5d511f),_0x2d2043[_0x34af('0x74')]['registerCustomCallback']('insertion',_0x34af('0x4f'),_0x34af('0x63'),_0x4e13a4),_0x2d2043['_suggestionFactory'][_0x34af('0x3')](_0x34af('0x25'),_0x34af('0x4f'),'join',_0x4e13a4),_0x2d2043[_0x34af('0x74')]['registerCustomCallback'](_0x34af('0x23'),_0x34af('0x79'),_0x34af('0x63'),_0x4ebf9a),_0x2d2043[_0x34af('0x74')][_0x34af('0x3')](_0x34af('0x25'),_0x34af('0x79'),_0x34af('0x63'),_0x4ebf9a);}[_0x34af('0x60')](){const _0x411ea4=this[_0x34af('0x26')],_0x5d14ee=_0x411ea4[_0x34af('0x6f')][_0x34af('0x1f')][_0x34af('0x31')];return(_0x5b7797,_0x47cbec)=>{_0x411ea4[_0x34af('0x6f')][_0x34af('0x52')](_0x352470=>{const {commandName:_0x591c9f,commandParams:_0x407782}=_0x47cbec;let _0x567f7c=_0x5b7797[0x0]['end']['nodeBefore'];_0x407782&&_0x407782[0x0]&&!0x1===_0x407782[0x0]['forceValue']&&(_0x567f7c=_0x5b7797[0x0]['start']['nodeAfter']);const _0x51435a=_0x352470[_0x34af('0x1a')](_0x567f7c);if(_0x34af('0x13')==_0x51435a[_0x34af('0x29')][_0x34af('0x41')])return;const _0x1eaf8a=Array[_0x34af('0x16')](_0x5d14ee['getRanges']())[_0x34af('0xb')](_0x360bc9=>_0x20005b[_0x34af('0x30')](_0x360bc9));_0x352470[_0x34af('0x1')](_0x51435a),_0x411ea4[_0x34af('0x80')][_0x34af('0x2e')](_0x591c9f)[_0x34af('0x4e')](),_0x407782[_0x34af('0x2f')]({'forceDefaultExecution':!0x0}),_0x411ea4[_0x34af('0xd')](_0x591c9f,..._0x407782);const _0x30dcc3=_0x1eaf8a[_0x34af('0x0')](_0x1745a5=>'$graveyard'!=_0x1745a5[_0x34af('0x29')][_0x34af('0x41')]);_0x30dcc3[_0x34af('0x78')]>0x0&&_0x352470[_0x34af('0x1')](_0x30dcc3);for(const _0x2dca44 of _0x1eaf8a)_0x2dca44[_0x34af('0x18')]();});};}['_getCoordsForCells'](_0x1772b3){const _0x2c2b3d=this[_0x34af('0x26')]['plugins'][_0x34af('0x2e')](_0x34af('0x22'));let _0x3abc8c=Number['MAX_SAFE_INTEGER'],_0x4ce771=Number[_0x34af('0x28')],_0x548043=Number['MAX_SAFE_INTEGER'],_0x10f60a=Number[_0x34af('0x28')];for(const _0x18da17 of _0x1772b3){if(_0x34af('0x13')==_0x18da17['root'][_0x34af('0x41')])continue;const {row:_0x392e10,column:_0x4f3bb0}=_0x2c2b3d[_0x34af('0x64')](_0x18da17),_0x357bf9=_0x18da17[_0x34af('0x33')](_0x34af('0x7'))?_0x18da17[_0x34af('0x37')](_0x34af('0x7'))-0x1:0x0,_0x16af61=_0x18da17[_0x34af('0x33')](_0x34af('0x6c'))?_0x18da17['getAttribute'](_0x34af('0x6c'))-0x1:0x0;_0x3abc8c=_0x392e10<_0x3abc8c?_0x392e10:_0x3abc8c,_0x4ce771=_0x392e10+_0x357bf9>_0x4ce771?_0x392e10+_0x357bf9:_0x4ce771,_0x548043=_0x4f3bb0<_0x548043?_0x4f3bb0:_0x548043,_0x10f60a=_0x4f3bb0+_0x16af61>_0x10f60a?_0x4f3bb0+_0x16af61:_0x10f60a;}return{'minRow':_0x3abc8c,'maxRow':_0x4ce771,'minColumn':_0x548043,'maxColumn':_0x10f60a};}[_0x34af('0x4c')](){const _0x475996=this[_0x34af('0x26')],_0x1b95c2=_0x475996[_0x34af('0x27')][_0x34af('0x2e')]('TrackChangesEditing'),_0x334909=_0x475996['plugins']['get'](_0x34af('0x22'));_0x475996['model'][_0x34af('0x1f')]['on'](_0x34af('0x7b'),()=>{const _0x2620e3=Array['from'](_0x475996[_0x34af('0x6f')]['document'][_0x34af('0x57')][_0x34af('0xe')]());for(const {name:_0x540372,data:_0xc3c667}of _0x2620e3){const {group:_0x28f69a,id:_0x36f5c7,subType:_0x5d0951}=_0x1b95c2[_0x34af('0x4b')](_0x540372);if(_0x34af('0x49')!=_0x28f69a)continue;if(null!=_0xc3c667[_0x34af('0x5a')])continue;const _0x5c1bb3=_0x1b95c2[_0x34af('0x43')](_0x36f5c7);this[_0x34af('0x5d')][_0x34af('0x2a')](_0x5d0951)&&this[_0x34af('0x35')]['add'](_0x5c1bb3);}},{'priority':_0x34af('0x62')});const _0x54cae1=(_0x390240,_0x5e1cd4)=>{let _0x8ec33f=!0x1;const _0x3a4502=_0x5e1cd4[_0x34af('0x8')](_0x390240),_0x3d054c=_0x390240[_0x34af('0x77')]('table'),_0x40ace7=_0x334909[_0x34af('0x64')](_0x390240);for(const _0xf61127 of this['_tableSuggestions']){const _0x4ba632=_0xf61127[_0x34af('0x32')],_0x2a536d=_0x4ba632['startsWith'](_0x34af('0x65')),_0x19c53d=_0x4ba632[_0x34af('0x1b')](_0x2a536d?0xa:0x5),_0x4e0517=_0x19c53d['toLowerCase'](),_0x155f92=_0x4e0517[_0x34af('0x1b')](0x0,0x3)+_0x34af('0x50'),_0x1bdd87=_0x34af('0x5f')+_0x19c53d,_0x164e93=_0x34af('0x2c')+_0x19c53d;if(!_0xf61127[_0x34af('0x6e')])continue;if(_0x3d054c!=_0xf61127[_0x34af('0xc')]()['start'][_0x34af('0x77')](_0x34af('0x58')))continue;if(_0xf61127['isIntersectingWithRange'](_0x3a4502))continue;const _0x2dbb67=_0x390240['hasAttribute'](_0x155f92)?_0x390240[_0x34af('0x37')](_0x155f92)-0x1:0x0,_0x4ae8dc=this[_0x34af('0x10')](_0xf61127),_0x36bb8b=_0x4ae8dc[_0x1bdd87],_0x4ed9ae=_0x4ae8dc[_0x164e93];_0x36bb8b<=_0x40ace7[_0x4e0517]&&_0x40ace7[_0x4e0517]+_0x2dbb67<=_0x4ed9ae&&(_0xf61127['addRange'](_0x3a4502),_0x8ec33f=!0x0);}return _0x8ec33f;};_0x475996[_0x34af('0x6f')][_0x34af('0x1f')][_0x34af('0x66')](_0xe2019=>{let _0x193d0d=!0x1;for(const _0x18abb9 of _0x475996['model']['document'][_0x34af('0x57')]['getChanges']())if(_0x34af('0x3d')==_0x18abb9[_0x34af('0x5e')]){if('tableRow'==_0x18abb9['name'])for(const _0x285436 of _0x18abb9[_0x34af('0x5c')]['nodeAfter'][_0x34af('0x42')]())_0x193d0d=_0x193d0d||_0x54cae1(_0x285436,_0xe2019);else _0x34af('0x38')==_0x18abb9[_0x34af('0x56')]&&(_0x193d0d=_0x193d0d||_0x54cae1(_0x18abb9['position'][_0x34af('0x44')],_0xe2019));}return _0x193d0d;});}[_0x34af('0x10')](_0x5b3856){return this[_0x34af('0x7c')](_0x5b3856[_0x34af('0x75')]()['map'](_0x3cfeb8=>_0x3cfeb8[_0x34af('0x20')][_0x34af('0x44')]));}}function se(_0x2b78fc){return Array[_0x34af('0x16')](new Set(_0x2b78fc)[_0x34af('0x5b')]());}
23
+ const _0x2439=['editor','push','min','getFirstRange','*Insert:*\x20%0','getCellLocation','registerDescriptionCallback','*Remove:*\x20%0','type','insertTableColumnRight','_acceptFormatSuggestionCallbackFactory','insertTableColumnLeft','toLowerCase','addMarker:suggestion','fromRange','position','data','last','from','showSuggestionHighlights','order','insertTableRowAbove','downcastDispatcher','start','left','filter','addRange','deletion','MAX_SAFE_INTEGER','afterInit','setSelection','ELEMENT_TABLE_COLUMN','isArray','has','above','removeTableRow','getItems','subType','first','enqueueChange','nodeAfter','maxColumn','cell','getContainedElement','suggestion','ELEMENT_TABLE_COLUMN_WITH_TEXT','getAttribute','_splitMarkerName','selection','change:data','removeTableColumn','tableColumn','TableEditing','discard','rowspan','tableCell','length','isTouching','nodeBefore','insertTable','createRangeIn','registerCustomCallback','registerElementLabel','getColumnIndexes','getRanges','accept','ELEMENT_TABLE_ROW_WITH_TEXT','forceValue','get','tablePaste','batch','toViewElement','writer','markMultiRangeInsertion','max','plugins','join','getChangedMarkers','getSelectionAffectedTableCells','tableRow','minColumn','differ','map','execute','some','_getSuggestionCoords','createPositionAt','getChanges','low','startsWith','createTableWalker','model','highest','insert','enableCommand','end','values','_setupColumnsRowsFixing','isIntersectingWithRange','addClass','findAncestor','_tableSuggestions','table','every','document','substr','span','createRangeOn','$graveyard','name','_tablePostFixingSubtypes','hasAttribute','refresh','locale','commands','_suggestionFactory','TableUtils','colspan','insertion','change','getChildren','removeClass','markMultiRangeDeletion','MIN_SAFE_INTEGER','_descriptionFactory','insertTableRowBelow','$textProxy','isEqual','detach','rootName','getRowIndexes','ELEMENT_TABLE_WITH_TEXT','_getCoordsForCells','root','classes','selectTableRow'];(function(_0x39af5e,_0x24390f){const _0x3582fa=function(_0x165a09){while(--_0x165a09){_0x39af5e['push'](_0x39af5e['shift']());}};_0x3582fa(++_0x24390f);}(_0x2439,0x156));const _0x3582=function(_0x39af5e,_0x24390f){_0x39af5e=_0x39af5e-0x0;let _0x3582fa=_0x2439[_0x39af5e];return _0x3582fa;};import{Plugin as _0x2a5e18}from'ckeditor5/src/core';import{LiveRange as _0x111cf3}from'ckeditor5/src/engine';import{setHighlightHandling as _0x2438f4}from'ckeditor5/src/widget';import{getTranslation as _0x3442a2}from'../utils/common-translations';export default class mt extends _0x2a5e18{constructor(_0x1baa28){super(_0x1baa28),this[_0x3582('0x28')]=[_0x3582('0x9'),'tableColumn'],this[_0x3582('0x1f')]=new Set();}[_0x3582('0x5f')](){const _0x11c94e=this[_0x3582('0x42')],_0xbdb79d=_0x11c94e['model'][_0x3582('0x22')][_0x3582('0x72')];if(!_0x11c94e[_0x3582('0x5')][_0x3582('0x63')](_0x3582('0x76')))return;const _0x2ed095=_0x11c94e[_0x3582('0x2b')],_0x1d4287=_0x11c94e[_0x3582('0x5')][_0x3582('0x86')]('TrackChangesEditing'),_0x318af7=_0x11c94e[_0x3582('0x5')][_0x3582('0x86')](_0x3582('0x2e'));_0x1d4287[_0x3582('0x36')][_0x3582('0x80')](_0x3582('0x20'),_0x529c40=>_0x3442a2(_0x2ed095,'ELEMENT_TABLE',_0x529c40)),this['_setupColumnsRowsFixing'](),_0x1d4287['enableCommand'](_0x3582('0x7d')),_0x1d4287[_0x3582('0x18')](_0x3582('0x41')),_0x1d4287[_0x3582('0x18')]('selectTableColumn');for(const _0x46605e of[_0x3582('0x57'),_0x3582('0x37')]){const _0x521cc9=_0x11c94e[_0x3582('0x2c')][_0x3582('0x86')](_0x46605e);_0x1d4287['enableCommand'](_0x46605e,_0x37ed41=>{_0x11c94e[_0x3582('0x15')]['change'](_0xb4f975=>{_0x37ed41();const _0x3d9881=_0x3582('0x64')===_0x521cc9[_0x3582('0x56')],_0x422a25=_0x318af7[_0x3582('0x8')](_0xbdb79d),_0x213857=_0x318af7[_0x3582('0x3c')](_0x422a25),_0x55798b=_0x3d9881?_0x213857[_0x3582('0x68')]-0x1:_0x213857[_0x3582('0x53')]+0x1,_0x421bdc=_0x422a25[0x0][_0x3582('0x1e')](_0x3582('0x20')),_0x36a51f=_0x318af7['createTableWalker'](_0x421bdc,{'startRow':_0x55798b,'endRow':_0x55798b}),_0x17fb61=Array[_0x3582('0x54')](_0x36a51f)['map'](_0x468051=>_0xb4f975[_0x3582('0x25')](_0x468051[_0x3582('0x6c')]));_0x1d4287[_0x3582('0x3')](_0x17fb61,'tableRow');});});}for(const _0x51dad7 of[_0x3582('0x4d'),_0x3582('0x4b')]){const _0x4e0d4d=_0x11c94e['commands']['get'](_0x51dad7);_0x1d4287['enableCommand'](_0x51dad7,_0x4534fb=>{_0x11c94e[_0x3582('0x15')][_0x3582('0x31')](_0xd23479=>{_0x4534fb();const _0x6671ef=_0x3582('0x5a')===_0x4e0d4d[_0x3582('0x56')],_0x343b04=_0x318af7['getSelectionAffectedTableCells'](_0xbdb79d),_0x1e828=_0x318af7[_0x3582('0x81')](_0x343b04),_0x16ef90=_0x6671ef?_0x1e828[_0x3582('0x68')]-0x1:_0x1e828[_0x3582('0x53')]+0x1,_0x59eb38=_0x343b04[0x0][_0x3582('0x1e')](_0x3582('0x20')),_0x468b22=_0x318af7[_0x3582('0x14')](_0x59eb38,{'startRow':0x0,'column':_0x16ef90,'includeAllSlots':!0x1}),_0xd8c8a2=Array[_0x3582('0x54')](_0x468b22)[_0x3582('0xc')](_0x4a3c75=>_0xd23479[_0x3582('0x25')](_0x4a3c75[_0x3582('0x6c')]));_0x1d4287[_0x3582('0x3')](_0xd8c8a2,'tableColumn');});});}for(const _0x59fa3a of[_0x3582('0x65'),_0x3582('0x74')]){const _0x566e37=_0x59fa3a[_0x3582('0x23')](0xb),_0x159696=_0x566e37[_0x3582('0x4e')](),_0x2f4866=_0x159696[_0x3582('0x23')](0x0,0x3)+_0x3582('0x24'),_0x1d4911=_0x3582('0x20')+_0x566e37,_0x47ef3d=_0x3582('0x44')+_0x566e37,_0x3e98e3='max'+_0x566e37;_0x1d4287[_0x3582('0x18')](_0x59fa3a,()=>{_0x11c94e[_0x3582('0x15')][_0x3582('0x31')](_0x1c9ab4=>{const _0x50935a=_0x318af7[_0x3582('0x8')](_0xbdb79d),_0x3536d6=_0x50935a[0x0][_0x3582('0x1e')](_0x3582('0x20'));let _0x236a72;if(_0x3582('0x65')==_0x59fa3a){const _0x1677de=_0x318af7[_0x3582('0x3c')](_0x50935a);_0x236a72={'startRow':_0x1677de[_0x3582('0x68')],'endRow':_0x1677de['last'],'includeAllSlots':!0x0};}else{const _0x55459a=_0x318af7[_0x3582('0x81')](_0x50935a);_0x236a72={'startColumn':_0x55459a['first'],'endColumn':_0x55459a[_0x3582('0x53')],'includeAllSlots':!0x0};}const _0x50c091=_0x318af7[_0x3582('0x14')](_0x3536d6,_0x236a72),_0x566981=Array[_0x3582('0x54')](_0x50c091)[_0x3582('0xc')](({cell:_0x14857c})=>_0x14857c),_0x23ac9c=se(_0x566981[_0x3582('0x5b')](_0x397a76=>_0x397a76['hasAttribute'](_0x2f4866))),_0x4f4610=se(_0x566981['filter'](_0x4eb8ba=>!_0x4eb8ba[_0x3582('0x29')](_0x2f4866)))[_0x3582('0xc')](_0xbd5847=>_0x1c9ab4[_0x3582('0x25')](_0xbd5847)),_0x541d68=_0x1d4287[_0x3582('0x34')](_0x4f4610,_0x1d4911);if(_0x541d68&&('tableRow'==_0x541d68['subType']||_0x3582('0x75')==_0x541d68['subType'])){const _0xfffd59=this[_0x3582('0xf')](_0x541d68);for(const _0x5c6fde of _0x23ac9c){const _0x20a1a8=_0x1c9ab4[_0x3582('0x25')](_0x5c6fde),_0x4005fe=_0x318af7[_0x3582('0x47')](_0x5c6fde),_0x57ff15=_0x5c6fde['getAttribute'](_0x2f4866)-0x1,_0x2a5913=_0xfffd59[_0x47ef3d],_0x384df6=_0xfffd59[_0x3e98e3];_0x2a5913<=_0x4005fe[_0x159696]&&_0x4005fe[_0x159696]+_0x57ff15<=_0x384df6&&_0x541d68['addRange'](_0x20a1a8);}}});});}function _0x451fce(_0x4b4185){const _0x5079b0=Array[_0x3582('0x54')](_0xbdb79d[_0x3582('0x82')]())[_0x3582('0xc')](_0x59caf8=>_0x111cf3['fromRange'](_0x59caf8));_0x11c94e[_0x3582('0x15')][_0x3582('0x31')](_0x48da5b=>{const _0x5f0c70=_0x48da5b[_0x3582('0x0')];_0x4b4185=_0x4b4185[_0x3582('0x5b')](_0x4564f2=>'$graveyard'!=_0x4564f2[_0x3582('0x3f')][_0x3582('0x3b')]),_0x48da5b[_0x3582('0x60')](_0x4b4185),_0x11c94e['commands'][_0x3582('0x86')]('removeTableRow')[_0x3582('0x2a')](),_0x11c94e[_0x3582('0xd')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x11c94e[_0x3582('0x15')][_0x3582('0x69')](()=>{_0x11c94e[_0x3582('0x15')][_0x3582('0x69')](_0x5f0c70,_0x2f311a=>{const _0x326621=_0x5079b0['filter'](_0x56efa3=>'$graveyard'!=_0x56efa3['root'][_0x3582('0x3b')]);_0x326621[_0x3582('0x7a')]>0x0&&_0x2f311a[_0x3582('0x60')](_0x326621);for(const _0x417841 of _0x5079b0)_0x417841[_0x3582('0x3a')]();});});});}function _0x127643(_0x21ba12){_0x11c94e['model'][_0x3582('0x31')](_0x24b4cc=>{const _0x55aeb2=Array[_0x3582('0x54')](_0xbdb79d['getRanges']())[_0x3582('0xc')](_0x50224e=>_0x111cf3[_0x3582('0x50')](_0x50224e)),_0x51876e=[];for(const _0x41a6df of _0x21ba12)for(const _0x13bd17 of _0x41a6df['getItems']({'shallow':!0x0}))_0x51876e['push'](_0x13bd17);for(const _0x3ff14c of _0x51876e)'$graveyard'!=_0x3ff14c[_0x3582('0x3f')][_0x3582('0x3b')]&&(_0x24b4cc[_0x3582('0x60')](_0x24b4cc[_0x3582('0x10')](_0x3ff14c,0x0)),_0x11c94e[_0x3582('0x2c')][_0x3582('0x86')](_0x3582('0x74'))[_0x3582('0x2a')](),_0x11c94e[_0x3582('0xd')](_0x3582('0x74'),{'forceDefaultExecution':!0x0}));const _0x180ed9=_0x55aeb2[_0x3582('0x5b')](_0x560719=>_0x3582('0x26')!=_0x560719[_0x3582('0x3f')][_0x3582('0x3b')]);_0x180ed9[_0x3582('0x7a')]>0x0&&_0x24b4cc[_0x3582('0x60')](_0x180ed9);for(const _0x4adadb of _0x55aeb2)_0x4adadb[_0x3582('0x3a')]();});}function _0x4508fb(_0x4ed9a8,_0x523134){return _0x523134[_0x3582('0x21')](_0x4213a9=>_0x4ed9a8[_0x3582('0xe')](_0x43eb00=>_0x43eb00[_0x3582('0x19')][_0x3582('0x39')](_0x4213a9['start'])||_0x4213a9[_0x3582('0x19')][_0x3582('0x39')](_0x43eb00[_0x3582('0x59')])));}function _0x4734cc(_0x1c6603,_0x4d0488){return _0x1c6603['some'](_0x5df74e=>_0x4d0488[_0x3582('0xe')](_0x250dfa=>_0x5df74e[_0x3582('0x19')][_0x3582('0x7b')](_0x250dfa[_0x3582('0x59')])));}_0x11c94e['data'][_0x3582('0x58')]['on'](_0x3582('0x4f'),(_0x2b4b2,_0x13077c,_0x334978)=>{if(!_0x334978['options'][_0x3582('0x55')])return;const _0x43eca3=_0x13077c['item'];if(!_0x43eca3)return;const _0x283c29=_0x334978['mapper'][_0x3582('0x1')](_0x43eca3);function _0x27221a(_0x596f7c){return Array[_0x3582('0x62')](_0x596f7c)?_0x596f7c:[_0x596f7c];}_0x283c29&&_0x3582('0x79')===_0x43eca3[_0x3582('0x27')]&&_0x2438f4(_0x283c29,_0x334978[_0x3582('0x2')],(_0x104501,_0x384c15,_0x240948)=>_0x240948[_0x3582('0x1d')](_0x27221a(_0x384c15[_0x3582('0x40')]),_0x104501),(_0x70a5ab,_0x5b00bc,_0x25df37)=>_0x25df37[_0x3582('0x33')](_0x27221a(_0x5b00bc[_0x3582('0x40')]),_0x70a5ab));},{'priority':_0x3582('0x16')}),_0x1d4287[_0x3582('0x36')][_0x3582('0x48')](_0x2536d4=>{if(_0x3582('0x30')!=_0x2536d4[_0x3582('0x4a')]&&_0x3582('0x5d')!=_0x2536d4[_0x3582('0x4a')])return;const _0x2309c5=_0x2536d4[_0x3582('0x6d')]();if(null!=_0x2309c5&&_0x2309c5['is']('element',_0x3582('0x20'))){if(_0x3582('0x30')==_0x2536d4[_0x3582('0x4a')]){const _0x26ee79=_0x2536d4[_0x3582('0x66')]()[_0x3582('0x5b')](_0x50d8f4=>_0x50d8f4['is'](_0x3582('0x38')))[_0x3582('0xc')](_0x3cfb8c=>_0x3cfb8c[_0x3582('0x52')]);if(_0x26ee79['length'])return{'type':_0x3582('0x30'),'content':_0x3442a2(_0x2ed095,_0x3582('0x46'),_0x3442a2(_0x2ed095,_0x3582('0x3d'),'\x22'+_0x26ee79[_0x3582('0x6')]('\x20')+'\x22'))};}if(_0x3582('0x5d')==_0x2536d4['type']){const _0x4e1f55=_0x2536d4[_0x3582('0x66')]()['filter'](_0x16fe6d=>_0x16fe6d['is'](_0x3582('0x38')))[_0x3582('0xc')](_0x50a73c=>_0x50a73c[_0x3582('0x52')]);if(_0x4e1f55[_0x3582('0x7a')])return{'type':'deletion','content':_0x3442a2(_0x2ed095,_0x3582('0x49'),_0x3442a2(_0x2ed095,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e1f55[_0x3582('0x6')]('\x20')+'\x22'))};}}}),_0x1d4287[_0x3582('0x36')][_0x3582('0x48')](_0x33c508=>{if(_0x3582('0x9')==_0x33c508[_0x3582('0x67')]){const _0x587159=_0x33c508[_0x3582('0x66')]()[_0x3582('0x5b')](_0x3384e0=>_0x3384e0['is'](_0x3582('0x38')))[_0x3582('0xc')](_0x1fe2cc=>_0x1fe2cc[_0x3582('0x52')]),_0x585627=this[_0x3582('0xf')](_0x33c508),_0x1a76bd=_0x585627['maxRow']-_0x585627['minRow']+0x1;if('insertion'==_0x33c508[_0x3582('0x4a')])return _0x587159[_0x3582('0x7a')]?{'type':_0x3582('0x30'),'content':_0x3442a2(_0x2ed095,_0x3582('0x46'),_0x3442a2(_0x2ed095,_0x3582('0x84'),[_0x1a76bd,'\x22'+_0x587159[_0x3582('0x6')]('\x20')+'\x22']))}:{'type':_0x3582('0x30'),'content':_0x3442a2(_0x2ed095,_0x3582('0x46'),_0x3442a2(_0x2ed095,'ELEMENT_TABLE_ROW',_0x1a76bd))};if('deletion'==_0x33c508[_0x3582('0x4a')])return _0x587159['length']?{'type':_0x3582('0x5d'),'content':_0x3442a2(_0x2ed095,_0x3582('0x49'),_0x3442a2(_0x2ed095,_0x3582('0x84'),[_0x1a76bd,'\x22'+_0x587159[_0x3582('0x6')]('\x20')+'\x22']))}:{'type':_0x3582('0x5d'),'content':_0x3442a2(_0x2ed095,'*Remove:*\x20%0',_0x3442a2(_0x2ed095,'ELEMENT_TABLE_ROW',_0x1a76bd))};}if(_0x3582('0x75')==_0x33c508[_0x3582('0x67')]){const _0x25093f=_0x33c508[_0x3582('0x66')]()['filter'](_0x5ef4e2=>_0x5ef4e2['is'](_0x3582('0x38')))['map'](_0x158972=>_0x158972[_0x3582('0x52')]),_0x32a60b=this['_getSuggestionCoords'](_0x33c508),_0x507725=_0x32a60b[_0x3582('0x6b')]-_0x32a60b[_0x3582('0xa')]+0x1;if(_0x3582('0x30')==_0x33c508['type'])return _0x25093f[_0x3582('0x7a')]?{'type':_0x3582('0x30'),'content':_0x3442a2(_0x2ed095,_0x3582('0x46'),_0x3442a2(_0x2ed095,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x507725,'\x22'+_0x25093f['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x3442a2(_0x2ed095,_0x3582('0x46'),_0x3442a2(_0x2ed095,_0x3582('0x61'),_0x507725))};if(_0x3582('0x5d')==_0x33c508[_0x3582('0x4a')])return _0x25093f[_0x3582('0x7a')]?{'type':_0x3582('0x5d'),'content':_0x3442a2(_0x2ed095,_0x3582('0x49'),_0x3442a2(_0x2ed095,_0x3582('0x6f'),[_0x507725,'\x22'+_0x25093f['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x3442a2(_0x2ed095,_0x3582('0x49'),_0x3442a2(_0x2ed095,_0x3582('0x61'),_0x507725))};}}),_0x1d4287[_0x3582('0x2d')][_0x3582('0x7f')]('insertion',_0x3582('0x9'),_0x3582('0x77'),_0x451fce),_0x1d4287['_suggestionFactory'][_0x3582('0x7f')](_0x3582('0x5d'),_0x3582('0x9'),_0x3582('0x83'),_0x451fce),_0x1d4287[_0x3582('0x2d')][_0x3582('0x7f')](_0x3582('0x30'),_0x3582('0x75'),_0x3582('0x77'),_0x127643),_0x1d4287[_0x3582('0x2d')][_0x3582('0x7f')](_0x3582('0x5d'),_0x3582('0x75'),_0x3582('0x83'),_0x127643),_0x1d4287[_0x3582('0x2d')][_0x3582('0x7f')](_0x3582('0x30'),_0x3582('0x75'),_0x3582('0x6'),_0x4508fb),_0x1d4287[_0x3582('0x2d')][_0x3582('0x7f')]('deletion','tableColumn',_0x3582('0x6'),_0x4508fb),_0x1d4287['_suggestionFactory']['registerCustomCallback'](_0x3582('0x30'),_0x3582('0x9'),'join',_0x4734cc),_0x1d4287[_0x3582('0x2d')][_0x3582('0x7f')]('deletion',_0x3582('0x9'),'join',_0x4734cc);}[_0x3582('0x4c')](){const _0x46ab29=this[_0x3582('0x42')],_0x40d1e0=_0x46ab29[_0x3582('0x15')][_0x3582('0x22')]['selection'];return(_0x12de73,_0x1d0bae)=>{_0x46ab29['model'][_0x3582('0x31')](_0x15dc3f=>{const {commandName:_0x507bbc,commandParams:_0x1b8e63}=_0x1d0bae;let _0x1f9972=_0x12de73[0x0][_0x3582('0x19')][_0x3582('0x7c')];_0x1b8e63&&_0x1b8e63[0x0]&&!0x1===_0x1b8e63[0x0][_0x3582('0x85')]&&(_0x1f9972=_0x12de73[0x0]['start'][_0x3582('0x6a')]);const _0x366e31=_0x15dc3f[_0x3582('0x7e')](_0x1f9972);if(_0x3582('0x26')==_0x366e31[_0x3582('0x3f')][_0x3582('0x3b')])return;const _0x550653=Array[_0x3582('0x54')](_0x40d1e0[_0x3582('0x82')]())[_0x3582('0xc')](_0x133c2e=>_0x111cf3[_0x3582('0x50')](_0x133c2e));_0x15dc3f[_0x3582('0x60')](_0x366e31),_0x46ab29[_0x3582('0x2c')][_0x3582('0x86')](_0x507bbc)[_0x3582('0x2a')](),_0x1b8e63[_0x3582('0x43')]({'forceDefaultExecution':!0x0}),_0x46ab29['execute'](_0x507bbc,..._0x1b8e63);const _0x287622=_0x550653['filter'](_0x1b859f=>_0x3582('0x26')!=_0x1b859f[_0x3582('0x3f')][_0x3582('0x3b')]);_0x287622[_0x3582('0x7a')]>0x0&&_0x15dc3f['setSelection'](_0x287622);for(const _0x1efb68 of _0x550653)_0x1efb68[_0x3582('0x3a')]();});};}[_0x3582('0x3e')](_0x50d329){const _0x34c98f=this[_0x3582('0x42')][_0x3582('0x5')]['get'](_0x3582('0x2e'));let _0x5f0b31=Number[_0x3582('0x5e')],_0x2b02dc=Number[_0x3582('0x35')],_0x573078=Number[_0x3582('0x5e')],_0x568b9a=Number[_0x3582('0x35')];for(const _0x5ce7b0 of _0x50d329){if(_0x3582('0x26')==_0x5ce7b0[_0x3582('0x3f')][_0x3582('0x3b')])continue;const {row:_0x569685,column:_0x24d319}=_0x34c98f[_0x3582('0x47')](_0x5ce7b0),_0x362920=_0x5ce7b0[_0x3582('0x29')](_0x3582('0x78'))?_0x5ce7b0['getAttribute'](_0x3582('0x78'))-0x1:0x0,_0x1b8da8=_0x5ce7b0[_0x3582('0x29')](_0x3582('0x2f'))?_0x5ce7b0[_0x3582('0x70')]('colspan')-0x1:0x0;_0x5f0b31=_0x569685<_0x5f0b31?_0x569685:_0x5f0b31,_0x2b02dc=_0x569685+_0x362920>_0x2b02dc?_0x569685+_0x362920:_0x2b02dc,_0x573078=_0x24d319<_0x573078?_0x24d319:_0x573078,_0x568b9a=_0x24d319+_0x1b8da8>_0x568b9a?_0x24d319+_0x1b8da8:_0x568b9a;}return{'minRow':_0x5f0b31,'maxRow':_0x2b02dc,'minColumn':_0x573078,'maxColumn':_0x568b9a};}[_0x3582('0x1b')](){const _0x576c4a=this[_0x3582('0x42')],_0x32bc87=_0x576c4a[_0x3582('0x5')]['get']('TrackChangesEditing'),_0x2fe99b=_0x576c4a[_0x3582('0x5')][_0x3582('0x86')]('TableUtils');_0x576c4a['model']['document']['on'](_0x3582('0x73'),()=>{const _0x2cfb0e=Array[_0x3582('0x54')](_0x576c4a[_0x3582('0x15')][_0x3582('0x22')][_0x3582('0xb')][_0x3582('0x7')]());for(const {name:_0x485649,data:_0x16dfed}of _0x2cfb0e){const {group:_0x4e4dc3,id:_0x234f14,subType:_0x38dd5a}=_0x32bc87[_0x3582('0x71')](_0x485649);if(_0x3582('0x6e')!=_0x4e4dc3)continue;if(null!=_0x16dfed['oldRange'])continue;const _0x9eb6a=_0x32bc87['getSuggestion'](_0x234f14);this[_0x3582('0x28')]['includes'](_0x38dd5a)&&this[_0x3582('0x1f')]['add'](_0x9eb6a);}},{'priority':_0x3582('0x12')});const _0x49fb46=(_0x2af4f5,_0x24d7ba)=>{let _0x3d7a12=!0x1;const _0x208b94=_0x24d7ba['createRangeOn'](_0x2af4f5),_0x2e1ef1=_0x2af4f5[_0x3582('0x1e')](_0x3582('0x20')),_0x419000=_0x2fe99b[_0x3582('0x47')](_0x2af4f5);for(const _0x33ffcf of this[_0x3582('0x1f')]){const _0x16660c=_0x33ffcf[_0x3582('0x67')],_0x34d70a=_0x16660c[_0x3582('0x13')](_0x3582('0x87')),_0x42c8bf=_0x16660c[_0x3582('0x23')](_0x34d70a?0xa:0x5),_0x1c8e1a=_0x42c8bf['toLowerCase'](),_0x3fbfbd=_0x1c8e1a[_0x3582('0x23')](0x0,0x3)+_0x3582('0x24'),_0x12ed39=_0x3582('0x44')+_0x42c8bf,_0xd03f71=_0x3582('0x4')+_0x42c8bf;if(!_0x33ffcf['isInContent'])continue;if(_0x2e1ef1!=_0x33ffcf[_0x3582('0x45')]()['start'][_0x3582('0x1e')](_0x3582('0x20')))continue;if(_0x33ffcf[_0x3582('0x1c')](_0x208b94))continue;const _0x1c9eb9=_0x2af4f5[_0x3582('0x29')](_0x3fbfbd)?_0x2af4f5[_0x3582('0x70')](_0x3fbfbd)-0x1:0x0,_0x1f1255=this['_getSuggestionCoords'](_0x33ffcf),_0x124445=_0x1f1255[_0x12ed39],_0x156a6b=_0x1f1255[_0xd03f71];_0x124445<=_0x419000[_0x1c8e1a]&&_0x419000[_0x1c8e1a]+_0x1c9eb9<=_0x156a6b&&(_0x33ffcf[_0x3582('0x5c')](_0x208b94),_0x3d7a12=!0x0);}return _0x3d7a12;};_0x576c4a['model'][_0x3582('0x22')]['registerPostFixer'](_0x5bf6da=>{let _0x5096f7=!0x1;for(const _0x5c6acc of _0x576c4a[_0x3582('0x15')][_0x3582('0x22')][_0x3582('0xb')][_0x3582('0x11')]())if(_0x3582('0x17')==_0x5c6acc[_0x3582('0x4a')]){if(_0x3582('0x9')==_0x5c6acc[_0x3582('0x27')])for(const _0x5a79ce of _0x5c6acc['position'][_0x3582('0x6a')][_0x3582('0x32')]())_0x5096f7=_0x5096f7||_0x49fb46(_0x5a79ce,_0x5bf6da);else _0x3582('0x79')==_0x5c6acc['name']&&(_0x5096f7=_0x5096f7||_0x49fb46(_0x5c6acc[_0x3582('0x51')]['nodeAfter'],_0x5bf6da));}return _0x5096f7;});}[_0x3582('0xf')](_0x58756d){return this['_getCoordsForCells'](_0x58756d[_0x3582('0x82')]()[_0x3582('0xc')](_0x401902=>_0x401902['start'][_0x3582('0x6a')]));}}function se(_0x343309){return Array[_0x3582('0x54')](new Set(_0x343309)[_0x3582('0x1a')]());}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module track-changes/integrations/tablecaption
3
7
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x15e1=['editor','toggleTableCaption','enableCommand','TableCaptionEditing','requires','has','afterInit'];(function(_0x403367,_0x15e1f8){const _0x4469cf=function(_0x5bfa90){while(--_0x5bfa90){_0x403367['push'](_0x403367['shift']());}};_0x4469cf(++_0x15e1f8);}(_0x15e1,0x171));const _0x4469=function(_0x403367,_0x15e1f8){_0x403367=_0x403367-0x0;let _0x4469cf=_0x15e1[_0x403367];return _0x4469cf;};import{Plugin as _0x49acce}from'ckeditor5/src/core';import _0x2ee297 from'./table';export default class vt extends _0x49acce{static get[_0x4469('0x6')](){return[_0x2ee297];}[_0x4469('0x1')](){const _0x544d48=this[_0x4469('0x2')];if(!_0x544d48['plugins'][_0x4469('0x0')](_0x4469('0x5')))return;_0x544d48['plugins']['get']('TrackChangesEditing')[_0x4469('0x4')](_0x4469('0x3'));}}
23
+ const _0x7272=['enableCommand','afterInit','TrackChangesEditing','plugins','get','TableCaptionEditing','editor','toggleTableCaption','requires'];(function(_0x79a5d,_0x7272d6){const _0x426e45=function(_0x53ea54){while(--_0x53ea54){_0x79a5d['push'](_0x79a5d['shift']());}};_0x426e45(++_0x7272d6);}(_0x7272,0x65));const _0x426e=function(_0x79a5d,_0x7272d6){_0x79a5d=_0x79a5d-0x0;let _0x426e45=_0x7272[_0x79a5d];return _0x426e45;};import{Plugin as _0x30da07}from'ckeditor5/src/core';import _0xa8f179 from'./table';export default class vt extends _0x30da07{static get[_0x426e('0x6')](){return[_0xa8f179];}[_0x426e('0x8')](){const _0x4e5d85=this[_0x426e('0x4')];if(!_0x4e5d85[_0x426e('0x1')]['has'](_0x426e('0x3')))return;_0x4e5d85[_0x426e('0x1')][_0x426e('0x2')](_0x426e('0x0'))[_0x426e('0x7')](_0x426e('0x5'));}}
@@ -1,5 +1,6 @@
1
1
  /**
2
- * @module track-changes/integrations/tableclipboard
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
4
  */
4
5
  import { Plugin } from 'ckeditor5/src/core';
5
6
  import TrackChangesTable from './table';