@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230723.0 → 0.0.0-nightly-20230725.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 (130) hide show
  1. package/README.md +0 -1
  2. package/build/track-changes.js +1 -1
  3. package/package.json +3 -3
  4. package/src/augmentation.d.ts +4 -0
  5. package/src/commands/acceptsuggestioncommand.d.ts +4 -0
  6. package/src/commands/acceptsuggestioncommand.js +1 -1
  7. package/src/commands/discardsuggestioncommand.d.ts +4 -0
  8. package/src/commands/discardsuggestioncommand.js +1 -1
  9. package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
  10. package/src/commands/executeonallsuggestionscommand.js +1 -1
  11. package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
  12. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  13. package/src/commands/trackchangescommand.d.ts +4 -0
  14. package/src/commands/trackchangescommand.js +1 -1
  15. package/src/index.d.ts +4 -0
  16. package/src/integrations/alignment.d.ts +4 -0
  17. package/src/integrations/alignment.js +1 -1
  18. package/src/integrations/basicstyles.d.ts +4 -0
  19. package/src/integrations/basicstyles.js +1 -1
  20. package/src/integrations/blockquote.d.ts +4 -0
  21. package/src/integrations/blockquote.js +1 -1
  22. package/src/integrations/ckbox.d.ts +4 -0
  23. package/src/integrations/ckbox.js +1 -1
  24. package/src/integrations/codeblock.d.ts +4 -0
  25. package/src/integrations/codeblock.js +1 -1
  26. package/src/integrations/comments.d.ts +4 -0
  27. package/src/integrations/comments.js +1 -1
  28. package/src/integrations/deletecommand.d.ts +4 -0
  29. package/src/integrations/deletecommand.js +1 -1
  30. package/src/integrations/documentlist.d.ts +4 -0
  31. package/src/integrations/documentlist.js +1 -1
  32. package/src/integrations/documentlistproperties.d.ts +4 -0
  33. package/src/integrations/documentlistproperties.js +1 -1
  34. package/src/integrations/entercommand.d.ts +4 -0
  35. package/src/integrations/entercommand.js +1 -1
  36. package/src/integrations/findandreplace.d.ts +4 -0
  37. package/src/integrations/findandreplace.js +1 -1
  38. package/src/integrations/font.d.ts +4 -0
  39. package/src/integrations/font.js +1 -1
  40. package/src/integrations/formatpainter.d.ts +4 -0
  41. package/src/integrations/formatpainter.js +1 -1
  42. package/src/integrations/heading.d.ts +4 -0
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +4 -0
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +4 -0
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +4 -0
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +4 -0
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +4 -0
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +4 -0
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +4 -0
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +4 -0
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +4 -0
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +4 -0
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +4 -0
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +4 -0
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +4 -0
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +4 -0
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +4 -0
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +4 -0
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +4 -0
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +4 -0
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +4 -0
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +4 -0
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +4 -0
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +4 -0
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +2 -1
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +4 -0
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +4 -0
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +4 -0
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableofcontents.d.ts +4 -0
  97. package/src/integrations/tableofcontents.js +1 -1
  98. package/src/integrations/tableproperties.d.ts +4 -0
  99. package/src/integrations/tableproperties.js +1 -1
  100. package/src/integrations/template.d.ts +4 -0
  101. package/src/integrations/template.js +1 -1
  102. package/src/integrations/title.d.ts +4 -0
  103. package/src/integrations/title.js +1 -1
  104. package/src/integrations/undo.d.ts +4 -0
  105. package/src/integrations/undo.js +1 -1
  106. package/src/integrations/utils.d.ts +4 -0
  107. package/src/integrations/utils.js +1 -1
  108. package/src/suggestion.d.ts +11 -1
  109. package/src/suggestion.js +1 -1
  110. package/src/suggestiondescriptionfactory.d.ts +2 -2
  111. package/src/suggestiondescriptionfactory.js +1 -1
  112. package/src/trackchanges.d.ts +4 -0
  113. package/src/trackchanges.js +1 -1
  114. package/src/trackchangesconfig.d.ts +4 -0
  115. package/src/trackchangesdata.d.ts +4 -0
  116. package/src/trackchangesdata.js +1 -1
  117. package/src/trackchangesediting.d.ts +4 -0
  118. package/src/trackchangesediting.js +1 -1
  119. package/src/trackchangesui.d.ts +4 -0
  120. package/src/trackchangesui.js +1 -1
  121. package/src/ui/suggestioncontroller.d.ts +2 -1
  122. package/src/ui/suggestioncontroller.js +1 -1
  123. package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
  124. package/src/ui/view/basesuggestionthreadview.js +1 -1
  125. package/src/ui/view/suggestionthreadview.d.ts +2 -2
  126. package/src/ui/view/suggestionthreadview.js +1 -1
  127. package/src/utils/common-translations.d.ts +4 -0
  128. package/src/utils/common-translations.js +1 -1
  129. package/src/utils/utils.d.ts +4 -0
  130. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22b0=['isFirstBlockOfListItem','config','handleDescriptions','toUpperCase','*Change\x20to:*\x20%0','editor','styles','listStart','DocumentListUtils','DocumentListPropertiesEditing','model','list.properties','get','format','_LIST_','ELEMENT_','markMultiRangeBlockFormat','length','has','_getSuggestionBlocks','startIndex','DocumentListPropertiesUtils','bind','_getTranslationKeyForListStyle','push','plugins','_descriptionFactory','filter','TrackChangesEditing','getSelectedBlocks','replace','_getSuggestionBlocksForListStyle','listType','numbered','handleListReversedCommand','enableCommand','locale','from','afterInit','getAttribute','reversed','handleListStartCommand','registerDescriptionCallback','selection','isListItemBlock','getListTypeFromListStyleType','expandListBlocksToCompleteList','change','listReversed','*Format:*\x20set\x20order\x20to\x20reversed','*Format:*\x20set\x20start\x20index\x20to\x20%0','listStyle','handleListStyleCommand','commandParams','type'];(function(_0x38ffbe,_0x22b043){const _0x5dc00b=function(_0x1c8cba){while(--_0x1c8cba){_0x38ffbe['push'](_0x38ffbe['shift']());}};_0x5dc00b(++_0x22b043);}(_0x22b0,0x153));const _0x5dc0=function(_0x38ffbe,_0x22b043){_0x38ffbe=_0x38ffbe-0x0;let _0x5dc00b=_0x22b0[_0x38ffbe];return _0x5dc00b;};import{Plugin as _0x499313}from'ckeditor5/src/core';import{getTranslation as _0x47e73e}from'../utils/common-translations';export default class At extends _0x499313{[_0x5dc0('0x1d')](){if(!this[_0x5dc0('0x33')][_0x5dc0('0x10')][_0x5dc0('0x9')](_0x5dc0('0x0')))return;const _0x3941b1=this['editor'][_0x5dc0('0x2f')][_0x5dc0('0x3')](_0x5dc0('0x2')),_0x28e4c9=this[_0x5dc0('0x33')][_0x5dc0('0x10')][_0x5dc0('0x3')](_0x5dc0('0x13'));_0x3941b1[_0x5dc0('0x34')]&&_0x28e4c9['enableCommand'](_0x5dc0('0x2a'),this[_0x5dc0('0x2b')]['bind'](this)),_0x3941b1[_0x5dc0('0x1f')]&&_0x28e4c9[_0x5dc0('0x1a')](_0x5dc0('0x27'),this[_0x5dc0('0x19')]['bind'](this)),_0x3941b1[_0x5dc0('0xb')]&&_0x28e4c9['enableCommand'](_0x5dc0('0x35'),this[_0x5dc0('0x20')][_0x5dc0('0xd')](this)),_0x28e4c9[_0x5dc0('0x11')][_0x5dc0('0x21')](this[_0x5dc0('0x30')][_0x5dc0('0xd')](this));}[_0x5dc0('0x2b')](_0x474857,_0x2159bb={}){const _0x340935=this[_0x5dc0('0x33')][_0x5dc0('0x10')][_0x5dc0('0x3')](_0x5dc0('0x13')),_0xc19daa=this[_0x5dc0('0x16')]();this['editor'][_0x5dc0('0x1')][_0x5dc0('0x26')](()=>{_0x340935['markMultiRangeBlockFormat'](_0xc19daa,{'commandName':_0x5dc0('0x2a'),'commandParams':[{'type':_0x2159bb[_0x5dc0('0x2d')]}],'formatGroupId':_0x5dc0('0x2a')});});}[_0x5dc0('0x19')](_0x23e0cf,_0x3e306d={}){const _0x1b89ea=this[_0x5dc0('0x33')][_0x5dc0('0x10')][_0x5dc0('0x3')](_0x5dc0('0x13')),_0x3f35ac=this['editor'][_0x5dc0('0x10')][_0x5dc0('0x3')]('DocumentListUtils'),_0x4bd99e=this['_getSuggestionBlocks'](_0xe91e44=>_0x3f35ac[_0x5dc0('0x23')](_0xe91e44)&&_0x5dc0('0x18')===_0xe91e44[_0x5dc0('0x1e')](_0x5dc0('0x17')));null!==_0x4bd99e&&this['editor'][_0x5dc0('0x1')][_0x5dc0('0x26')](()=>{_0x1b89ea['markMultiRangeBlockFormat'](_0x4bd99e,{'commandName':_0x5dc0('0x27'),'commandParams':[{'reversed':_0x3e306d[_0x5dc0('0x1f')]}],'formatGroupId':_0x5dc0('0x27')});});}[_0x5dc0('0x20')](_0x33ab33,_0x109595={}){const _0x5f0c8a=this[_0x5dc0('0x33')][_0x5dc0('0x10')][_0x5dc0('0x3')](_0x5dc0('0x13')),_0x1479ed=this[_0x5dc0('0x33')][_0x5dc0('0x10')][_0x5dc0('0x3')]('DocumentListUtils'),_0x17e2da=this[_0x5dc0('0xa')](_0x43875a=>_0x1479ed[_0x5dc0('0x23')](_0x43875a)&&_0x5dc0('0x18')===_0x43875a['getAttribute'](_0x5dc0('0x17')));null!==_0x17e2da&&this[_0x5dc0('0x33')][_0x5dc0('0x1')][_0x5dc0('0x26')](()=>{_0x5f0c8a[_0x5dc0('0x7')](_0x17e2da,{'commandName':'listStart','commandParams':[{'startIndex':_0x109595[_0x5dc0('0xb')]}],'formatGroupId':_0x5dc0('0x35')});});}[_0x5dc0('0x30')](_0x37e902){const _0x40726e=this[_0x5dc0('0x33')][_0x5dc0('0x1b')],{data:_0x49a9f8}=_0x37e902;if(!_0x49a9f8)return;let _0x2baef9,_0x5c0fbd;switch(_0x49a9f8['commandName']){case _0x5dc0('0x2a'):_0x2baef9=_0x5dc0('0x32'),_0x5c0fbd={'type':_0x5dc0('0x4'),'content':_0x47e73e(_0x40726e,_0x2baef9,_0x47e73e(_0x40726e,this[_0x5dc0('0xe')](_0x49a9f8[_0x5dc0('0x2c')][0x0][_0x5dc0('0x2d')])))};break;case'listReversed':_0x2baef9=_0x49a9f8[_0x5dc0('0x2c')][0x0][_0x5dc0('0x1f')]?_0x5dc0('0x28'):'*Format:*\x20set\x20order\x20to\x20regular',_0x5c0fbd={'type':_0x5dc0('0x4'),'content':_0x47e73e(_0x40726e,_0x2baef9)};break;case _0x5dc0('0x35'):_0x2baef9=_0x5dc0('0x29'),_0x5c0fbd={'type':_0x5dc0('0x4'),'content':_0x47e73e(_0x40726e,_0x2baef9,_0x49a9f8[_0x5dc0('0x2c')][0x0][_0x5dc0('0xb')])};}return _0x5c0fbd;}[_0x5dc0('0x16')](){const _0x1d546d=this[_0x5dc0('0x33')]['plugins'][_0x5dc0('0x3')](_0x5dc0('0x36'));let _0x506cf9=Array[_0x5dc0('0x1c')](this[_0x5dc0('0x33')][_0x5dc0('0x1')]['document'][_0x5dc0('0x22')][_0x5dc0('0x14')]());return _0x506cf9[_0x5dc0('0xf')](..._0x1d546d[_0x5dc0('0x25')](_0x506cf9)),_0x506cf9=[...new Set(_0x506cf9)],_0x506cf9;}[_0x5dc0('0xa')](_0x4b47ef){const _0xf0878=this[_0x5dc0('0x33')][_0x5dc0('0x10')][_0x5dc0('0x3')](_0x5dc0('0x36'));let _0x3dc02c=Array[_0x5dc0('0x1c')](this[_0x5dc0('0x33')]['model']['document']['selection'][_0x5dc0('0x14')]())[_0x5dc0('0x12')](_0x4b47ef);if(!_0x3dc02c[_0x5dc0('0x8')])return null;_0x3dc02c=_0xf0878[_0x5dc0('0x25')](_0x3dc02c);const _0x3a79ce=[];for(const _0x5041c1 of _0x3dc02c)_0xf0878[_0x5dc0('0x2e')](_0x5041c1)&&_0x3a79ce[_0x5dc0('0xf')](_0x5041c1);return _0x3a79ce;}[_0x5dc0('0xe')](_0x45de62){return _0x5dc0('0x6')+this[_0x5dc0('0x33')]['plugins'][_0x5dc0('0x3')](_0x5dc0('0xc'))[_0x5dc0('0x24')](_0x45de62)[_0x5dc0('0x31')]()+_0x5dc0('0x5')+_0x45de62[_0x5dc0('0x31')]()[_0x5dc0('0x15')](/-/g,'_');}}
23
+ const _0x1f0b=['editor','type','bind','model','DocumentListUtils','selection','_getTranslationKeyForListStyle','has','*Format:*\x20set\x20start\x20index\x20to\x20%0','plugins','_getSuggestionBlocks','DocumentListPropertiesEditing','getSelectedBlocks','length','document','expandListBlocksToCompleteList','listStyle','commandParams','isFirstBlockOfListItem','listStart','markMultiRangeBlockFormat','getListTypeFromListStyleType','listType','isListItemBlock','handleListReversedCommand','TrackChangesEditing','getAttribute','format','toUpperCase','handleDescriptions','locale','change','handleListStartCommand','listReversed','reversed','*Format:*\x20set\x20order\x20to\x20reversed','registerDescriptionCallback','_getSuggestionBlocksForListStyle','afterInit','enableCommand','numbered','push','replace','startIndex','get','config'];(function(_0x3804fe,_0x1f0b76){const _0x25da7f=function(_0x42b7db){while(--_0x42b7db){_0x3804fe['push'](_0x3804fe['shift']());}};_0x25da7f(++_0x1f0b76);}(_0x1f0b,0x14f));const _0x25da=function(_0x3804fe,_0x1f0b76){_0x3804fe=_0x3804fe-0x0;let _0x25da7f=_0x1f0b[_0x3804fe];return _0x25da7f;};import{Plugin as _0x1c1389}from'ckeditor5/src/core';import{getTranslation as _0x201f42}from'../utils/common-translations';export default class At extends _0x1c1389{[_0x25da('0x19')](){if(!this[_0x25da('0x21')][_0x25da('0x2a')][_0x25da('0x28')](_0x25da('0x2c')))return;const _0x58e0f8=this[_0x25da('0x21')][_0x25da('0x20')]['get']('list.properties'),_0x1c43a7=this[_0x25da('0x21')][_0x25da('0x2a')][_0x25da('0x1f')](_0x25da('0xc'));_0x58e0f8['styles']&&_0x1c43a7['enableCommand'](_0x25da('0x3'),this['handleListStyleCommand'][_0x25da('0x23')](this)),_0x58e0f8[_0x25da('0x15')]&&_0x1c43a7[_0x25da('0x1a')](_0x25da('0x14'),this['handleListReversedCommand'][_0x25da('0x23')](this)),_0x58e0f8['startIndex']&&_0x1c43a7['enableCommand'](_0x25da('0x6'),this['handleListStartCommand'][_0x25da('0x23')](this)),_0x1c43a7['_descriptionFactory'][_0x25da('0x17')](this[_0x25da('0x10')]['bind'](this));}['handleListStyleCommand'](_0x2b7023,_0x3ff04e={}){const _0x2e0e08=this[_0x25da('0x21')][_0x25da('0x2a')][_0x25da('0x1f')](_0x25da('0xc')),_0x20b02d=this[_0x25da('0x18')]();this[_0x25da('0x21')][_0x25da('0x24')][_0x25da('0x12')](()=>{_0x2e0e08['markMultiRangeBlockFormat'](_0x20b02d,{'commandName':_0x25da('0x3'),'commandParams':[{'type':_0x3ff04e['type']}],'formatGroupId':_0x25da('0x3')});});}[_0x25da('0xb')](_0x289063,_0x53ac8f={}){const _0x4ad258=this[_0x25da('0x21')][_0x25da('0x2a')][_0x25da('0x1f')]('TrackChangesEditing'),_0x28a472=this[_0x25da('0x21')][_0x25da('0x2a')][_0x25da('0x1f')](_0x25da('0x25')),_0x359055=this[_0x25da('0x2b')](_0x3aa4e4=>_0x28a472[_0x25da('0xa')](_0x3aa4e4)&&'numbered'===_0x3aa4e4[_0x25da('0xd')](_0x25da('0x9')));null!==_0x359055&&this[_0x25da('0x21')]['model'][_0x25da('0x12')](()=>{_0x4ad258[_0x25da('0x7')](_0x359055,{'commandName':_0x25da('0x14'),'commandParams':[{'reversed':_0x53ac8f[_0x25da('0x15')]}],'formatGroupId':_0x25da('0x14')});});}[_0x25da('0x13')](_0x508545,_0x436be5={}){const _0x3a94df=this[_0x25da('0x21')]['plugins'][_0x25da('0x1f')](_0x25da('0xc')),_0x3903d8=this[_0x25da('0x21')][_0x25da('0x2a')][_0x25da('0x1f')](_0x25da('0x25')),_0x2af39a=this[_0x25da('0x2b')](_0x51ec67=>_0x3903d8['isListItemBlock'](_0x51ec67)&&_0x25da('0x1b')===_0x51ec67[_0x25da('0xd')](_0x25da('0x9')));null!==_0x2af39a&&this[_0x25da('0x21')][_0x25da('0x24')][_0x25da('0x12')](()=>{_0x3a94df[_0x25da('0x7')](_0x2af39a,{'commandName':_0x25da('0x6'),'commandParams':[{'startIndex':_0x436be5[_0x25da('0x1e')]}],'formatGroupId':_0x25da('0x6')});});}[_0x25da('0x10')](_0x5164a5){const _0x437581=this[_0x25da('0x21')][_0x25da('0x11')],{data:_0x5dc0af}=_0x5164a5;if(!_0x5dc0af)return;let _0x553cf9,_0x45508f;switch(_0x5dc0af['commandName']){case _0x25da('0x3'):_0x553cf9='*Change\x20to:*\x20%0',_0x45508f={'type':_0x25da('0xe'),'content':_0x201f42(_0x437581,_0x553cf9,_0x201f42(_0x437581,this[_0x25da('0x27')](_0x5dc0af[_0x25da('0x4')][0x0][_0x25da('0x22')])))};break;case _0x25da('0x14'):_0x553cf9=_0x5dc0af[_0x25da('0x4')][0x0][_0x25da('0x15')]?_0x25da('0x16'):'*Format:*\x20set\x20order\x20to\x20regular',_0x45508f={'type':_0x25da('0xe'),'content':_0x201f42(_0x437581,_0x553cf9)};break;case _0x25da('0x6'):_0x553cf9=_0x25da('0x29'),_0x45508f={'type':'format','content':_0x201f42(_0x437581,_0x553cf9,_0x5dc0af['commandParams'][0x0][_0x25da('0x1e')])};}return _0x45508f;}['_getSuggestionBlocksForListStyle'](){const _0x304def=this[_0x25da('0x21')][_0x25da('0x2a')][_0x25da('0x1f')](_0x25da('0x25'));let _0x1be20d=Array['from'](this['editor'][_0x25da('0x24')][_0x25da('0x1')][_0x25da('0x26')][_0x25da('0x2d')]());return _0x1be20d[_0x25da('0x1c')](..._0x304def[_0x25da('0x2')](_0x1be20d)),_0x1be20d=[...new Set(_0x1be20d)],_0x1be20d;}[_0x25da('0x2b')](_0x249771){const _0x402756=this['editor'][_0x25da('0x2a')]['get'](_0x25da('0x25'));let _0x391514=Array['from'](this[_0x25da('0x21')]['model'][_0x25da('0x1')][_0x25da('0x26')][_0x25da('0x2d')]())['filter'](_0x249771);if(!_0x391514[_0x25da('0x0')])return null;_0x391514=_0x402756[_0x25da('0x2')](_0x391514);const _0x2567dc=[];for(const _0x450518 of _0x391514)_0x402756[_0x25da('0x5')](_0x450518)&&_0x2567dc[_0x25da('0x1c')](_0x450518);return _0x2567dc;}[_0x25da('0x27')](_0x44e261){return'ELEMENT_'+this['editor'][_0x25da('0x2a')][_0x25da('0x1f')]('DocumentListPropertiesUtils')[_0x25da('0x8')](_0x44e261)['toUpperCase']()+'_LIST_'+_0x44e261[_0x25da('0xf')]()[_0x25da('0x1d')](/-/g,'_');}}
@@ -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/entercommand
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f24=['detach','createRange','selection','data','editing','change','nextSibling','enter','afterExecute','removeMarker:suggestion:insertion','options','hasClass','showSuggestionHighlights','model','mapper','setSelection','bind','markerNameToElements','addMarker:suggestion:insertion','downcastDispatcher','parent','TrackChangesEditing','fire','fromRange','editor','init','getFirstPosition','high','get','plugins','end','enterBlock','createPositionAt','markerName','commands','ck-suggestion-marker-split'];(function(_0x54dbb9,_0x3f2469){const _0x1264aa=function(_0x3ab1c6){while(--_0x3ab1c6){_0x54dbb9['push'](_0x54dbb9['shift']());}};_0x1264aa(++_0x3f2469);}(_0x3f24,0x1c8));const _0x1264=function(_0x54dbb9,_0x3f2469){_0x54dbb9=_0x54dbb9-0x0;let _0x1264aa=_0x3f24[_0x54dbb9];return _0x1264aa;};import{Plugin as _0x1d0544}from'ckeditor5/src/core';import{Enter as _0xa70e75}from'ckeditor5/src/enter';import{LiveRange as _0x3fa443}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x58a4da}from'./utils';export default class q extends _0x1d0544{static get['requires'](){return[_0xa70e75];}[_0x1264('0x1')](){const _0x4975cb=this[_0x1264('0x0')],_0x253768=_0x4975cb[_0x1264('0x5')][_0x1264('0x4')](_0x1264('0x21')),_0x2b48f6=_0x4975cb[_0x1264('0xa')][_0x1264('0x4')]('enter');_0x253768['enableCommand'](_0x1264('0x13'),()=>{_0x4975cb[_0x1264('0x19')][_0x1264('0x11')](_0x6c9348=>{const _0x236c7=_0x4975cb['model']['document'][_0x1264('0xe')],_0x493261=_0x236c7[_0x1264('0x2')](),_0x2ffc7e=_0x3fa443[_0x1264('0x23')](_0x236c7['getFirstRange']());if(_0x2b48f6[_0x1264('0x7')](_0x6c9348)){const _0x28bcb4=_0x4975cb['model'][_0x1264('0x8')](_0x493261[_0x1264('0x20')][_0x1264('0x12')],0x0),_0x31b15b=_0x6c9348['createRange'](_0x493261,_0x28bcb4);_0x253768['markInsertion'](_0x31b15b);}else _0x6c9348[_0x1264('0x1b')](_0x6c9348[_0x1264('0xd')](_0x2ffc7e[_0x1264('0x6')]));_0x2ffc7e[_0x1264('0xc')](),_0x2b48f6[_0x1264('0x22')](_0x1264('0x14'),{'writer':_0x6c9348});});}),_0x4975cb[_0x1264('0x10')][_0x1264('0x1f')]['on'](_0x1264('0x1e'),_0x58a4da(_0x4975cb,'split'),{'priority':'high'}),_0x4975cb[_0x1264('0x10')][_0x1264('0x1f')]['on'](_0x1264('0x15'),(_0x11e186,_0x590c4e,_0x57482c)=>{const _0x4fd924=_0x57482c[_0x1264('0x1a')][_0x1264('0x1d')](_0x590c4e[_0x1264('0x9')]);if(_0x4fd924)for(const _0x1927f8 of _0x4fd924)_0x1927f8[_0x1264('0x17')](_0x1264('0xb'))&&(_0x57482c[_0x1264('0x1a')]['unbindElementFromMarkerName'](_0x1927f8,_0x590c4e[_0x1264('0x9')]),_0x57482c['writer']['remove'](_0x1927f8));},{'priority':_0x1264('0x3')}),_0x4975cb[_0x1264('0xf')][_0x1264('0x1f')]['on'](_0x1264('0x1e'),(_0x3dca76,_0x555243,_0x3b8313)=>{_0x3b8313[_0x1264('0x16')][_0x1264('0x18')]&&_0x58a4da(_0x4975cb,'split',{'showActiveMarker':!0x1})[_0x1264('0x1c')](this)(_0x3dca76,_0x555243,_0x3b8313);},{'priority':'high'});}}
23
+ const _0xdbf9=['enableCommand','enter','commands','change','end','split','options','mapper','plugins','getFirstPosition','bind','high','selection','model','markerNameToElements','editing','removeMarker:suggestion:insertion','markInsertion','getFirstRange','nextSibling','unbindElementFromMarkerName','addMarker:suggestion:insertion','hasClass','data','showSuggestionHighlights','remove','downcastDispatcher','init','document','createRange','setSelection','get','markerName','detach'];(function(_0x397ec1,_0xdbf92){const _0x96b7e6=function(_0x14d6c7){while(--_0x14d6c7){_0x397ec1['push'](_0x397ec1['shift']());}};_0x96b7e6(++_0xdbf92);}(_0xdbf9,0x155));const _0x96b7=function(_0x397ec1,_0xdbf92){_0x397ec1=_0x397ec1-0x0;let _0x96b7e6=_0xdbf9[_0x397ec1];return _0x96b7e6;};import{Plugin as _0x561f10}from'ckeditor5/src/core';import{Enter as _0x37fa26}from'ckeditor5/src/enter';import{LiveRange as _0x57157e}from'ckeditor5/src/engine';import{downcastSplitMergeMarker as _0x209689}from'./utils';export default class q extends _0x561f10{static get['requires'](){return[_0x37fa26];}[_0x96b7('0x1a')](){const _0x531847=this['editor'],_0x173304=_0x531847[_0x96b7('0x7')][_0x96b7('0x1e')]('TrackChangesEditing'),_0x297c39=_0x531847[_0x96b7('0x1')][_0x96b7('0x1e')]('enter');_0x173304[_0x96b7('0x21')](_0x96b7('0x0'),()=>{_0x531847[_0x96b7('0xc')][_0x96b7('0x2')](_0x55baf4=>{const _0x50857c=_0x531847[_0x96b7('0xc')][_0x96b7('0x1b')][_0x96b7('0xb')],_0x3ea907=_0x50857c[_0x96b7('0x8')](),_0x40398f=_0x57157e['fromRange'](_0x50857c[_0x96b7('0x11')]());if(_0x297c39['enterBlock'](_0x55baf4)){const _0xb37451=_0x531847['model']['createPositionAt'](_0x3ea907['parent'][_0x96b7('0x12')],0x0),_0x254a19=_0x55baf4[_0x96b7('0x1c')](_0x3ea907,_0xb37451);_0x173304[_0x96b7('0x10')](_0x254a19);}else _0x55baf4[_0x96b7('0x1d')](_0x55baf4[_0x96b7('0x1c')](_0x40398f[_0x96b7('0x3')]));_0x40398f[_0x96b7('0x20')](),_0x297c39['fire']('afterExecute',{'writer':_0x55baf4});});}),_0x531847['editing'][_0x96b7('0x19')]['on']('addMarker:suggestion:insertion',_0x209689(_0x531847,'split'),{'priority':_0x96b7('0xa')}),_0x531847[_0x96b7('0xe')][_0x96b7('0x19')]['on'](_0x96b7('0xf'),(_0x3ebd4e,_0x42d88e,_0x303bc9)=>{const _0x3128e9=_0x303bc9[_0x96b7('0x6')][_0x96b7('0xd')](_0x42d88e['markerName']);if(_0x3128e9)for(const _0xceb314 of _0x3128e9)_0xceb314[_0x96b7('0x15')]('ck-suggestion-marker-split')&&(_0x303bc9[_0x96b7('0x6')][_0x96b7('0x13')](_0xceb314,_0x42d88e[_0x96b7('0x1f')]),_0x303bc9['writer'][_0x96b7('0x18')](_0xceb314));},{'priority':_0x96b7('0xa')}),_0x531847[_0x96b7('0x16')][_0x96b7('0x19')]['on'](_0x96b7('0x14'),(_0x18f905,_0x50b0fe,_0xfc6219)=>{_0xfc6219[_0x96b7('0x5')][_0x96b7('0x17')]&&_0x209689(_0x531847,_0x96b7('0x4'),{'showActiveMarker':!0x1})[_0x96b7('0x9')](this)(_0x18f905,_0x50b0fe,_0xfc6219);},{'priority':_0x96b7('0xa')});}}
@@ -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/findandreplace
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xafb7=['find','editor','_isInDeletionRange','handleFindCommand','suggestion:deletion','findNext','TrackChangesEditing','string','end','afterInit','createPositionAt','enableCommand','getIntersection','plugins','replaceAll','findByTextCallback','has','get','getRange','getMarkersGroup','filter','model','start','replace','findPrevious','FindAndReplaceUtils'];(function(_0x320e33,_0xafb7ca){const _0x34ed26=function(_0x2b7e11){while(--_0x2b7e11){_0x320e33['push'](_0x320e33['shift']());}};_0x34ed26(++_0xafb7ca);}(_0xafb7,0x136));const _0x34ed=function(_0x320e33,_0xafb7ca){_0x320e33=_0x320e33-0x0;let _0x34ed26=_0xafb7[_0x320e33];return _0x34ed26;};import{Plugin as _0x10ffee}from'ckeditor5/src/core';export default class z extends _0x10ffee{[_0x34ed('0xb')](){if(!this[_0x34ed('0x3')][_0x34ed('0xf')][_0x34ed('0x12')]('FindAndReplaceEditing'))return;const _0xe94bc4=this[_0x34ed('0x3')][_0x34ed('0xf')][_0x34ed('0x13')](_0x34ed('0x8'));_0xe94bc4['enableCommand'](_0x34ed('0x2'),this['handleFindCommand']['bind'](this)),_0xe94bc4['enableCommand'](_0x34ed('0x7')),_0xe94bc4[_0x34ed('0xd')](_0x34ed('0x0')),_0xe94bc4['enableCommand'](_0x34ed('0x19')),_0xe94bc4[_0x34ed('0xd')](_0x34ed('0x10'));}[_0x34ed('0x5')](_0x3272e1,_0x2bf836,_0x1d6079={}){const _0x540b4e=this[_0x34ed('0x3')][_0x34ed('0xf')][_0x34ed('0x13')](_0x34ed('0x1'));void 0x0!==_0x1d6079&&_0x3272e1(_0x1006d9=>(_0x34ed('0x9')==typeof _0x2bf836?_0x540b4e[_0x34ed('0x11')](_0x2bf836,_0x1d6079):_0x2bf836)(_0x1006d9)[_0x34ed('0x16')](_0x4be49e=>!0x1===this['_isInDeletionRange'](_0x4be49e,_0x1006d9['item'])),_0x1d6079);}[_0x34ed('0x4')](_0x3264d1,_0x35cb15){const _0xf8c3af=this['editor'][_0x34ed('0x17')]['createRange'](this[_0x34ed('0x3')][_0x34ed('0x17')][_0x34ed('0xc')](_0x35cb15,_0x3264d1[_0x34ed('0x18')]),this[_0x34ed('0x3')][_0x34ed('0x17')]['createPositionAt'](_0x35cb15,_0x3264d1[_0x34ed('0xa')]));for(const _0x2b703f of this['editor']['model']['markers'][_0x34ed('0x15')](_0x34ed('0x6')))if(null!==_0xf8c3af[_0x34ed('0xe')](_0x2b703f[_0x34ed('0x14')]()))return!0x0;return!0x1;}}
23
+ const _0x2639=['string','createPositionAt','end','model','has','findByTextCallback','afterInit','filter','findPrevious','editor','enableCommand','bind','handleFindCommand','getIntersection','start','TrackChangesEditing','replace','plugins','findNext','getMarkersGroup','item','_isInDeletionRange'];(function(_0x30bc30,_0x263992){const _0x328934=function(_0xc2fccd){while(--_0xc2fccd){_0x30bc30['push'](_0x30bc30['shift']());}};_0x328934(++_0x263992);}(_0x2639,0x70));const _0x3289=function(_0x30bc30,_0x263992){_0x30bc30=_0x30bc30-0x0;let _0x328934=_0x2639[_0x30bc30];return _0x328934;};import{Plugin as _0x161169}from'ckeditor5/src/core';export default class z extends _0x161169{[_0x3289('0x4')](){if(!this[_0x3289('0x7')][_0x3289('0xf')][_0x3289('0x2')]('FindAndReplaceEditing'))return;const _0x5593e1=this['editor'][_0x3289('0xf')]['get'](_0x3289('0xd'));_0x5593e1[_0x3289('0x8')]('find',this[_0x3289('0xa')][_0x3289('0x9')](this)),_0x5593e1[_0x3289('0x8')](_0x3289('0x10')),_0x5593e1[_0x3289('0x8')](_0x3289('0x6')),_0x5593e1['enableCommand'](_0x3289('0xe')),_0x5593e1[_0x3289('0x8')]('replaceAll');}[_0x3289('0xa')](_0x5f4425,_0x5097db,_0x17a496={}){const _0xe5f8d=this['editor'][_0x3289('0xf')]['get']('FindAndReplaceUtils');void 0x0!==_0x17a496&&_0x5f4425(_0x41cd3e=>(_0x3289('0x14')==typeof _0x5097db?_0xe5f8d[_0x3289('0x3')](_0x5097db,_0x17a496):_0x5097db)(_0x41cd3e)[_0x3289('0x5')](_0x198047=>!0x1===this[_0x3289('0x13')](_0x198047,_0x41cd3e[_0x3289('0x12')])),_0x17a496);}[_0x3289('0x13')](_0x5f0efa,_0x1d1fa7){const _0x30640f=this[_0x3289('0x7')][_0x3289('0x1')]['createRange'](this[_0x3289('0x7')][_0x3289('0x1')][_0x3289('0x15')](_0x1d1fa7,_0x5f0efa[_0x3289('0xc')]),this[_0x3289('0x7')][_0x3289('0x1')]['createPositionAt'](_0x1d1fa7,_0x5f0efa[_0x3289('0x0')]));for(const _0x5d29c8 of this[_0x3289('0x7')][_0x3289('0x1')]['markers'][_0x3289('0x11')]('suggestion:deletion'))if(null!==_0x30640f[_0x3289('0xb')](_0x5d29c8['getRange']()))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/font
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24ee=['isCollapsed','afterInit','fontColor','find','*Reset\x20font\x20size*','*Reset\x20font\x20color*','FontFamilyEditing','get','fontBackgroundColor','trim','getRanges','config','registerDescriptionCallback','commandName','editor','from','format','*Set\x20font\x20background\x20color:*\x20%0','locale','*Reset\x20font\x20background\x20color*','fontFamily','*Set\x20font\x20color:*\x20%0','model','document','label','fontBackgroundColor.colors','*Set\x20font\x20family:*\x20%0','fontSize','fontColor.colors','selection','FontBackgroundColorEditing','value','plugins','fontSize.options','change','has','commandParams','normalizeSizeOptions','TrackChangesEditing','_enableCommand','toLowerCase','*Reset\x20font\x20family*'];(function(_0x261f29,_0x24ee80){const _0xb50035=function(_0xa4e969){while(--_0xa4e969){_0x261f29['push'](_0x261f29['shift']());}};_0xb50035(++_0x24ee80);}(_0x24ee,0x104));const _0xb500=function(_0x261f29,_0x24ee80){_0x261f29=_0x261f29-0x0;let _0xb50035=_0x24ee[_0x261f29];return _0xb50035;};import{Plugin as _0x4f5e05}from'ckeditor5/src/core';import{normalizeColorOptions as _0x660d2c}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0xa26b35}from'./utils';import{getTranslation as _0x5c02cd}from'../utils/common-translations';const Zt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':_0xb500('0x28'),'commandName':_0xb500('0xc')},{'pluginName':'FontColorEditing','commandName':_0xb500('0x24')},{'pluginName':_0xb500('0x16'),'commandName':_0xb500('0x0')}];export default class H extends _0x4f5e05{[_0xb500('0x23')](){const _0x190517=this[_0xb500('0x6')][_0xb500('0xa')];for(const {pluginName:_0x24cb69,commandName:_0xf3069d}of Zt)this[_0xb500('0x6')][_0xb500('0x18')][_0xb500('0x1b')](_0x24cb69)&&this[_0xb500('0x1f')](_0xf3069d);this['editor'][_0xb500('0x18')][_0xb500('0x29')](_0xb500('0x1e'))['_descriptionFactory'][_0xb500('0x4')](_0x29e0e3=>{const _0x1586e7=_0x190517['t'],{data:_0x38522}=_0x29e0e3;if(null!=_0x38522){if(_0xb500('0x13')==_0x38522[_0xb500('0x5')]){const _0x1eeba1=_0x38522['commandParams'][0x0][_0xb500('0x17')];if(_0x1eeba1){const _0x5b60d7=_0x1586e7(this[_0xb500('0x6')][_0xb500('0x18')][_0xb500('0x29')]('FontSize')[_0xb500('0x1d')](this[_0xb500('0x6')][_0xb500('0x3')]['get'](_0xb500('0x19')))[_0xb500('0x25')](_0x188dfa=>_0x188dfa[_0xb500('0xe')]==_0x1eeba1)['title'])[_0xb500('0x20')]();return{'type':'format','content':_0x5c02cd(_0x190517,'*Set\x20font\x20size:*\x20%0',_0x5b60d7)};}return{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0x26'))};}if('fontFamily'==_0x38522['commandName']){const _0x32fed3=_0x38522[_0xb500('0x1c')][0x0][_0xb500('0x17')];return _0x32fed3?{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0x12'),_0x32fed3)}:{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0x21'))};}if(_0xb500('0x24')==_0x38522['commandName']){const _0x3c15d5=_0x38522['commandParams'][0x0][_0xb500('0x17')];if(_0x3c15d5){const _0x5bbcd3=_0x660d2c(this[_0xb500('0x6')][_0xb500('0x3')]['get'](_0xb500('0x14')))[_0xb500('0x25')](_0x3b012a=>_0x3b012a[_0xb500('0xe')]==_0x3c15d5);let _0x1a575f=_0x3c15d5,_0x213d66='';return _0x5bbcd3&&(_0x1a575f=_0x5bbcd3[_0xb500('0x10')],_0x213d66=_0x1586e7(_0x1a575f)[_0xb500('0x20')]()),{'type':'format','content':_0x5c02cd(_0x190517,_0xb500('0xd'),_0x213d66)[_0xb500('0x1')](),'color':{'value':_0x3c15d5,'title':_0x213d66||_0x1a575f}};}return{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0x27'))};}if(_0xb500('0x0')==_0x38522['commandName']){const _0x1a41be=_0x38522[_0xb500('0x1c')][0x0][_0xb500('0x17')];if(_0x1a41be){const _0x33d8a4=_0x660d2c(this[_0xb500('0x6')][_0xb500('0x3')][_0xb500('0x29')](_0xb500('0x11')))[_0xb500('0x25')](_0x1d44cd=>_0x1d44cd[_0xb500('0xe')]==_0x1a41be);let _0x32b392=_0x1a41be,_0x2a1e78='';return _0x33d8a4&&(_0x32b392=_0x33d8a4['label'],_0x2a1e78=_0x1586e7(_0x32b392)[_0xb500('0x20')]()),{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0x9'),_0x2a1e78)[_0xb500('0x1')](),'color':{'value':_0x1a41be,'title':_0x2a1e78||_0x32b392}};}return{'type':_0xb500('0x8'),'content':_0x5c02cd(_0x190517,_0xb500('0xb'))};}}});}[_0xb500('0x1f')](_0x361408){const _0x5b77cd=this[_0xb500('0x6')];_0x5b77cd[_0xb500('0x18')]['get'](_0xb500('0x1e'))['enableCommand'](_0x361408,(_0x20e47e,_0x41d0d3={})=>{const _0x56fc07=_0x5b77cd['model'][_0xb500('0xf')][_0xb500('0x15')],_0x2c821d=_0x41d0d3['value'];_0x56fc07[_0xb500('0x22')]?_0x20e47e(_0x41d0d3):_0x5b77cd[_0xb500('0xe')][_0xb500('0x1a')](()=>{const _0x9fc80c=Array[_0xb500('0x7')](_0x56fc07[_0xb500('0x2')]());for(const _0x4c4b1a of _0x9fc80c){const _0x3cdca6=_0x2c821d?[_0x4c4b1a]:_0xa26b35(_0x361408,_0x4c4b1a,_0x5b77cd[_0xb500('0xe')]);for(const _0x2f5901 of _0x3cdca6)_0x5b77cd[_0xb500('0x18')]['get'](_0xb500('0x1e'))['markInlineFormat'](_0x2f5901,{'commandName':_0x361408,'commandParams':[{'value':_0x2c821d}]});}});});}}
23
+ const _0x5040=['get','fontColor.colors','FontSizeEditing','has','FontColorEditing','trim','selection','value','fontBackgroundColor','format','toLowerCase','*Reset\x20font\x20size*','config','*Set\x20font\x20family:*\x20%0','TrackChangesEditing','editor','_enableCommand','isCollapsed','label','model','*Set\x20font\x20background\x20color:*\x20%0','FontFamilyEditing','getRanges','*Reset\x20font\x20family*','commandParams','fontBackgroundColor.colors','*Reset\x20font\x20color*','FontBackgroundColorEditing','FontSize','from','markInlineFormat','afterInit','commandName','title','document','plugins','fontSize','fontColor','fontFamily','*Set\x20font\x20color:*\x20%0','locale','_descriptionFactory'];(function(_0x277c0e,_0x50405c){const _0x16f21f=function(_0x4884d4){while(--_0x4884d4){_0x277c0e['push'](_0x277c0e['shift']());}};_0x16f21f(++_0x50405c);}(_0x5040,0x10a));const _0x16f2=function(_0x277c0e,_0x50405c){_0x277c0e=_0x277c0e-0x0;let _0x16f21f=_0x5040[_0x277c0e];return _0x16f21f;};import{Plugin as _0x378088}from'ckeditor5/src/core';import{normalizeColorOptions as _0x5adcb3}from'ckeditor5/src/ui';import{getRangesWithAttribute as _0x49148b}from'./utils';import{getTranslation as _0x4ca6cf}from'../utils/common-translations';const Zt=[{'pluginName':_0x16f2('0x1e'),'commandName':_0x16f2('0x16')},{'pluginName':_0x16f2('0x7'),'commandName':_0x16f2('0x18')},{'pluginName':_0x16f2('0x20'),'commandName':_0x16f2('0x17')},{'pluginName':_0x16f2('0xd'),'commandName':'fontBackgroundColor'}];export default class H extends _0x378088{[_0x16f2('0x11')](){const _0x547c3d=this[_0x16f2('0x1')][_0x16f2('0x1a')];for(const {pluginName:_0x482189,commandName:_0xcf46f}of Zt)this[_0x16f2('0x1')][_0x16f2('0x15')][_0x16f2('0x1f')](_0x482189)&&this[_0x16f2('0x2')](_0xcf46f);this['editor'][_0x16f2('0x15')][_0x16f2('0x1c')]('TrackChangesEditing')[_0x16f2('0x1b')]['registerDescriptionCallback'](_0x383552=>{const _0x32e6bb=_0x547c3d['t'],{data:_0x132c22}=_0x383552;if(null!=_0x132c22){if(_0x16f2('0x16')==_0x132c22['commandName']){const _0x22b013=_0x132c22[_0x16f2('0xa')][0x0][_0x16f2('0x23')];if(_0x22b013){const _0x41a2be=_0x32e6bb(this[_0x16f2('0x1')][_0x16f2('0x15')][_0x16f2('0x1c')](_0x16f2('0xe'))['normalizeSizeOptions'](this[_0x16f2('0x1')][_0x16f2('0x28')]['get']('fontSize.options'))['find'](_0x1dce15=>_0x1dce15[_0x16f2('0x5')]==_0x22b013)[_0x16f2('0x13')])[_0x16f2('0x26')]();return{'type':_0x16f2('0x25'),'content':_0x4ca6cf(_0x547c3d,'*Set\x20font\x20size:*\x20%0',_0x41a2be)};}return{'type':_0x16f2('0x25'),'content':_0x4ca6cf(_0x547c3d,_0x16f2('0x27'))};}if(_0x16f2('0x18')==_0x132c22['commandName']){const _0x36585e=_0x132c22[_0x16f2('0xa')][0x0]['value'];return _0x36585e?{'type':'format','content':_0x4ca6cf(_0x547c3d,_0x16f2('0x29'),_0x36585e)}:{'type':'format','content':_0x4ca6cf(_0x547c3d,_0x16f2('0x9'))};}if('fontColor'==_0x132c22['commandName']){const _0x373f1a=_0x132c22[_0x16f2('0xa')][0x0][_0x16f2('0x23')];if(_0x373f1a){const _0x3dd984=_0x5adcb3(this[_0x16f2('0x1')][_0x16f2('0x28')][_0x16f2('0x1c')](_0x16f2('0x1d')))['find'](_0x29fc11=>_0x29fc11[_0x16f2('0x5')]==_0x373f1a);let _0x1d8e8e=_0x373f1a,_0x27a1ec='';return _0x3dd984&&(_0x1d8e8e=_0x3dd984[_0x16f2('0x4')],_0x27a1ec=_0x32e6bb(_0x1d8e8e)[_0x16f2('0x26')]()),{'type':'format','content':_0x4ca6cf(_0x547c3d,_0x16f2('0x19'),_0x27a1ec)[_0x16f2('0x21')](),'color':{'value':_0x373f1a,'title':_0x27a1ec||_0x1d8e8e}};}return{'type':_0x16f2('0x25'),'content':_0x4ca6cf(_0x547c3d,_0x16f2('0xc'))};}if(_0x16f2('0x24')==_0x132c22[_0x16f2('0x12')]){const _0x3a1f89=_0x132c22[_0x16f2('0xa')][0x0]['value'];if(_0x3a1f89){const _0x47a5f7=_0x5adcb3(this[_0x16f2('0x1')][_0x16f2('0x28')][_0x16f2('0x1c')](_0x16f2('0xb')))['find'](_0x23b1a3=>_0x23b1a3['model']==_0x3a1f89);let _0x11c319=_0x3a1f89,_0x2f9c58='';return _0x47a5f7&&(_0x11c319=_0x47a5f7[_0x16f2('0x4')],_0x2f9c58=_0x32e6bb(_0x11c319)[_0x16f2('0x26')]()),{'type':_0x16f2('0x25'),'content':_0x4ca6cf(_0x547c3d,_0x16f2('0x6'),_0x2f9c58)[_0x16f2('0x21')](),'color':{'value':_0x3a1f89,'title':_0x2f9c58||_0x11c319}};}return{'type':_0x16f2('0x25'),'content':_0x4ca6cf(_0x547c3d,'*Reset\x20font\x20background\x20color*')};}}});}[_0x16f2('0x2')](_0x16402e){const _0x11826f=this[_0x16f2('0x1')];_0x11826f[_0x16f2('0x15')][_0x16f2('0x1c')](_0x16f2('0x0'))['enableCommand'](_0x16402e,(_0x2078e5,_0x18c62f={})=>{const _0x1dc5d4=_0x11826f[_0x16f2('0x5')][_0x16f2('0x14')][_0x16f2('0x22')],_0x191ed0=_0x18c62f[_0x16f2('0x23')];_0x1dc5d4[_0x16f2('0x3')]?_0x2078e5(_0x18c62f):_0x11826f['model']['change'](()=>{const _0x1eedc1=Array[_0x16f2('0xf')](_0x1dc5d4[_0x16f2('0x8')]());for(const _0x4cdc53 of _0x1eedc1){const _0x14b33e=_0x191ed0?[_0x4cdc53]:_0x49148b(_0x16402e,_0x4cdc53,_0x11826f[_0x16f2('0x5')]);for(const _0x831176 of _0x14b33e)_0x11826f[_0x16f2('0x15')][_0x16f2('0x1c')]('TrackChangesEditing')[_0x16f2('0x10')](_0x831176,{'commandName':_0x16402e,'commandParams':[{'value':_0x191ed0}]});}});});}}
@@ -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/formatpainter
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16a7=['join','fontBackgroundColor','label','modifySelection','commandName','fontColor.colors','getAttributes','title','boolean','commandParams','backward','createSelection','push','config','createRange','slice','fontSize.options','toLowerCase','getSelectedBlocks','*Set\x20format\x20to:*\x20%0','locale','editor','length','document','isCollapsed','TrackChangesEditing','enableCommand','copyFormat','toUpperCase','markInlineFormat','forward','get','from','model','change','afterInit','registerDescriptionCallback','pasteFormat','*Remove\x20all\x20formatting*','plugins','getFirstPosition','_descriptionFactory','getRanges','commands','FontSize','format','schema','isBlock','entries','word','fontColor','getLastPosition','getAttributeProperties','charAt','isFormatting','getItems','split'];(function(_0x3e2748,_0x16a782){const _0x2ed651=function(_0x239f23){while(--_0x239f23){_0x3e2748['push'](_0x3e2748['shift']());}};_0x2ed651(++_0x16a782);}(_0x16a7,0x169));const _0x2ed6=function(_0x3e2748,_0x16a782){_0x3e2748=_0x3e2748-0x0;let _0x2ed651=_0x16a7[_0x3e2748];return _0x2ed651;};import{Plugin as _0x5af67a}from'ckeditor5/src/core';import{normalizeColorOptions as _0xb3ccec}from'ckeditor5/src/ui';import{first as _0x395689}from'ckeditor5/src/utils';import{getTranslation as _0x8aaed2}from'../utils/common-translations';export default class W extends _0x5af67a{[_0x2ed6('0x10')](){const _0x50a24d=this[_0x2ed6('0x2')],_0xdaf6ac=_0x50a24d[_0x2ed6('0xe')],_0x21c36d=_0xdaf6ac[_0x2ed6('0x4')]['selection'],_0x391b5d=_0x50a24d[_0x2ed6('0x14')][_0x2ed6('0xc')](_0x2ed6('0x6')),_0x1a604d=_0x50a24d[_0x2ed6('0x1')],_0x31c8f7=_0x50a24d[_0x2ed6('0x18')][_0x2ed6('0xc')]('copyFormat'),_0x5416ba=_0x50a24d[_0x2ed6('0x18')][_0x2ed6('0xc')](_0x2ed6('0x12'));_0x31c8f7&&_0x5416ba&&(_0x391b5d[_0x2ed6('0x7')](_0x2ed6('0x12'),(_0x9a85d8,_0x5e963b={})=>{const _0x40ab4b=_0x5e963b;_0xdaf6ac[_0x2ed6('0xf')](()=>{const _0x1a4bcb=Array[_0x2ed6('0xd')](_0x21c36d[_0x2ed6('0x17')]()),_0x423e62=_0x21c36d[_0x2ed6('0x5')]?[ro(_0xdaf6ac,_0x21c36d)]:_0x1a4bcb,_0x392e9d=!!_0x395689(function*(_0x1c263d,_0x93e499){const _0x10b0e9=_0x5c1c41=>!!_0x395689(function*(_0x4fe6a6,_0x34f6ec){for(const [_0xa8b57f]of _0x4fe6a6[_0x2ed6('0x2c')]()){const _0x9c35f=_0x34f6ec[_0x2ed6('0x21')](_0xa8b57f);_0x9c35f&&_0x9c35f[_0x2ed6('0x23')]&&(yield _0xa8b57f);}}(_0x5c1c41,_0x93e499));for(const _0x76199c of _0x1c263d['getRanges']())for(const _0x4158e8 of _0x76199c[_0x2ed6('0x24')]())!_0x93e499[_0x2ed6('0x1c')](_0x4158e8)&&_0x10b0e9(_0x4158e8)&&(yield _0x4158e8);for(const _0x46abbb of _0x1c263d[_0x2ed6('0x38')]())_0x10b0e9(_0x46abbb)&&(yield _0x46abbb);_0x10b0e9(_0x1c263d)&&(yield _0x1c263d);}(_0x21c36d,_0xdaf6ac[_0x2ed6('0x1b')]));if(_0x392e9d||0x0!==Object['keys'](_0x40ab4b)['length'])for(const _0x410a4a of _0x423e62)_0x391b5d[_0x2ed6('0xa')](_0x410a4a,{'commandName':'pasteFormat','commandParams':[_0x40ab4b]});});}),_0x391b5d[_0x2ed6('0x16')][_0x2ed6('0x11')](_0x429e0e=>{const {data:_0x514f7d}=_0x429e0e;if(_0x514f7d&&_0x2ed6('0x12')===_0x514f7d[_0x2ed6('0x2a')]){const _0x87b011=[],_0x158735=_0x514f7d[_0x2ed6('0x2f')][0x0];for(const [_0x25f141,_0xd4c867]of Object[_0x2ed6('0x1d')](_0x158735))_0x87b011[_0x2ed6('0x32')](no(_0x50a24d,_0x25f141,_0xd4c867));return _0x87b011[_0x2ed6('0x3')]?{'type':_0x2ed6('0x1a'),'content':_0x8aaed2(_0x1a604d,_0x2ed6('0x0'),_0x87b011['join'](',\x20'))}:{'type':_0x2ed6('0x1a'),'content':_0x8aaed2(_0x1a604d,_0x2ed6('0x13'))};}}),_0x50a24d['plugins']['get']('TrackChangesEditing')['enableCommand'](_0x2ed6('0x8')));}}function ro(_0x2cf3c6,_0x8ad49){const _0x1724ac=_0x2cf3c6[_0x2ed6('0x31')](_0x8ad49);_0x2cf3c6[_0x2ed6('0x29')](_0x1724ac,{'unit':_0x2ed6('0x1e'),'direction':_0x2ed6('0x30')});const _0x1def26=_0x1724ac[_0x2ed6('0x15')]();_0x2cf3c6[_0x2ed6('0x29')](_0x1724ac,{'unit':_0x2ed6('0x1e'),'direction':_0x2ed6('0xb')});const _0x5c1c1f=_0x1724ac[_0x2ed6('0x20')]();return _0x2cf3c6[_0x2ed6('0x34')](_0x1def26,_0x5c1c1f);}function no(_0xcb14ce,_0x97d8d4,_0x3b66d2){const _0x54a1e7=_0xcb14ce[_0x2ed6('0x1')]['t'],_0x1ebd21=_0x97d8d4[_0x2ed6('0x25')](/(?=[A-Z])/)[_0x2ed6('0x26')]('\x20'),_0x3e8659=_0x54a1e7(_0x1ebd21[_0x2ed6('0x22')](0x0)[_0x2ed6('0x9')]()+_0x1ebd21[_0x2ed6('0x35')](0x1))[_0x2ed6('0x37')]();if(_0x2ed6('0x2e')==typeof _0x3b66d2)return _0x3e8659;if(_0x2ed6('0x1f')===_0x97d8d4||_0x2ed6('0x27')===_0x97d8d4){const _0x73b6ce=_0xb3ccec(_0xcb14ce[_0x2ed6('0x33')][_0x2ed6('0xc')](_0x2ed6('0x2b')))['find'](_0x5e7dda=>_0x5e7dda['model']==_0x3b66d2);return _0x3e8659+'\x20('+(_0x73b6ce?_0x54a1e7(_0x73b6ce[_0x2ed6('0x28')])[_0x2ed6('0x37')]():_0x3b66d2)+')';}if('fontSize'===_0x97d8d4&&isNaN(parseFloat(_0x3b66d2))){const _0x2e13a6=_0xcb14ce[_0x2ed6('0x14')][_0x2ed6('0xc')](_0x2ed6('0x19'))['normalizeSizeOptions'](_0xcb14ce[_0x2ed6('0x33')]['get'](_0x2ed6('0x36')))['find'](_0x271574=>_0x271574['model']==_0x3b66d2);return _0x3e8659+'\x20('+(_0x2e13a6?_0x54a1e7(_0x2e13a6[_0x2ed6('0x2d')])['toLowerCase']():_0x3b66d2)+')';}return _0x3e8659+'\x20('+_0x3b66d2+')';}
23
+ const _0x3a23=['slice','fontColor','isFormatting','*Set\x20format\x20to:*\x20%0','change','afterInit','createRange','getAttributes','modifySelection','registerDescriptionCallback','from','toLowerCase','keys','find','fontSize.options','title','getRanges','boolean','plugins','word','toUpperCase','format','model','getItems','schema','getFirstPosition','locale','config','commandParams','charAt','split','markInlineFormat','pasteFormat','commandName','copyFormat','entries','fontSize','commands','document','length','getAttributeProperties','enableCommand','createSelection','push','forward','getLastPosition','fontBackgroundColor','get','isBlock','backward'];(function(_0xb513bb,_0x3a23d4){const _0xd3bd82=function(_0x22d505){while(--_0x22d505){_0xb513bb['push'](_0xb513bb['shift']());}};_0xd3bd82(++_0x3a23d4);}(_0x3a23,0x93));const _0xd3bd=function(_0xb513bb,_0x3a23d4){_0xb513bb=_0xb513bb-0x0;let _0xd3bd82=_0x3a23[_0xb513bb];return _0xd3bd82;};import{Plugin as _0x187fb8}from'ckeditor5/src/core';import{normalizeColorOptions as _0x6ce9b6}from'ckeditor5/src/ui';import{first as _0x272653}from'ckeditor5/src/utils';import{getTranslation as _0x3f2965}from'../utils/common-translations';export default class W extends _0x187fb8{[_0xd3bd('0x8')](){const _0xe45d72=this['editor'],_0x3b3b15=_0xe45d72[_0xd3bd('0x19')],_0x3d1803=_0x3b3b15[_0xd3bd('0x29')]['selection'],_0x355398=_0xe45d72[_0xd3bd('0x15')][_0xd3bd('0x0')]('TrackChangesEditing'),_0x3ba5a0=_0xe45d72['locale'],_0x14d7ab=_0xe45d72[_0xd3bd('0x28')][_0xd3bd('0x0')](_0xd3bd('0x25')),_0x177446=_0xe45d72['commands']['get'](_0xd3bd('0x23'));_0x14d7ab&&_0x177446&&(_0x355398[_0xd3bd('0x2c')](_0xd3bd('0x23'),(_0x53a371,_0x192802={})=>{const _0x302d5b=_0x192802;_0x3b3b15[_0xd3bd('0x7')](()=>{const _0x59fb08=Array[_0xd3bd('0xd')](_0x3d1803[_0xd3bd('0x13')]()),_0x59e075=_0x3d1803['isCollapsed']?[no(_0x3b3b15,_0x3d1803)]:_0x59fb08,_0x61144e=!!_0x272653(function*(_0x3e145e,_0x2881bf){const _0x358ab4=_0x52ebc0=>!!_0x272653(function*(_0x5a6bd2,_0x20e598){for(const [_0x38a4ea]of _0x5a6bd2[_0xd3bd('0xa')]()){const _0x52e3ee=_0x20e598[_0xd3bd('0x2b')](_0x38a4ea);_0x52e3ee&&_0x52e3ee[_0xd3bd('0x5')]&&(yield _0x38a4ea);}}(_0x52ebc0,_0x2881bf));for(const _0x2ad59e of _0x3e145e['getRanges']())for(const _0x18c299 of _0x2ad59e[_0xd3bd('0x1a')]())!_0x2881bf[_0xd3bd('0x1')](_0x18c299)&&_0x358ab4(_0x18c299)&&(yield _0x18c299);for(const _0x3064dc of _0x3e145e['getSelectedBlocks']())_0x358ab4(_0x3064dc)&&(yield _0x3064dc);_0x358ab4(_0x3e145e)&&(yield _0x3e145e);}(_0x3d1803,_0x3b3b15[_0xd3bd('0x1b')]));if(_0x61144e||0x0!==Object[_0xd3bd('0xf')](_0x302d5b)['length'])for(const _0x3e5fb5 of _0x59e075)_0x355398[_0xd3bd('0x22')](_0x3e5fb5,{'commandName':_0xd3bd('0x23'),'commandParams':[_0x302d5b]});});}),_0x355398['_descriptionFactory'][_0xd3bd('0xc')](_0x1955db=>{const {data:_0x513228}=_0x1955db;if(_0x513228&&_0xd3bd('0x23')===_0x513228[_0xd3bd('0x24')]){const _0x5ca805=[],_0x928754=_0x513228[_0xd3bd('0x1f')][0x0];for(const [_0x5518c5,_0x40bb37]of Object[_0xd3bd('0x26')](_0x928754))_0x5ca805[_0xd3bd('0x2e')](co(_0xe45d72,_0x5518c5,_0x40bb37));return _0x5ca805[_0xd3bd('0x2a')]?{'type':_0xd3bd('0x18'),'content':_0x3f2965(_0x3ba5a0,_0xd3bd('0x6'),_0x5ca805['join'](',\x20'))}:{'type':_0xd3bd('0x18'),'content':_0x3f2965(_0x3ba5a0,'*Remove\x20all\x20formatting*')};}}),_0xe45d72[_0xd3bd('0x15')][_0xd3bd('0x0')]('TrackChangesEditing')[_0xd3bd('0x2c')](_0xd3bd('0x25')));}}function no(_0x2a94a6,_0x376e7e){const _0x1a2ae4=_0x2a94a6[_0xd3bd('0x2d')](_0x376e7e);_0x2a94a6[_0xd3bd('0xb')](_0x1a2ae4,{'unit':'word','direction':_0xd3bd('0x2')});const _0x415096=_0x1a2ae4[_0xd3bd('0x1c')]();_0x2a94a6[_0xd3bd('0xb')](_0x1a2ae4,{'unit':_0xd3bd('0x16'),'direction':_0xd3bd('0x2f')});const _0x38d9d3=_0x1a2ae4[_0xd3bd('0x30')]();return _0x2a94a6[_0xd3bd('0x9')](_0x415096,_0x38d9d3);}function co(_0x17e338,_0x3543e9,_0xbb7bce){const _0x550df5=_0x17e338[_0xd3bd('0x1d')]['t'],_0x45e7a7=_0x3543e9[_0xd3bd('0x21')](/(?=[A-Z])/)['join']('\x20'),_0x2fdc05=_0x550df5(_0x45e7a7[_0xd3bd('0x20')](0x0)[_0xd3bd('0x17')]()+_0x45e7a7[_0xd3bd('0x3')](0x1))[_0xd3bd('0xe')]();if(_0xd3bd('0x14')==typeof _0xbb7bce)return _0x2fdc05;if(_0xd3bd('0x4')===_0x3543e9||_0xd3bd('0x31')===_0x3543e9){const _0x4737e3=_0x6ce9b6(_0x17e338[_0xd3bd('0x1e')]['get']('fontColor.colors'))['find'](_0x1224ba=>_0x1224ba[_0xd3bd('0x19')]==_0xbb7bce);return _0x2fdc05+'\x20('+(_0x4737e3?_0x550df5(_0x4737e3['label'])['toLowerCase']():_0xbb7bce)+')';}if(_0xd3bd('0x27')===_0x3543e9&&isNaN(parseFloat(_0xbb7bce))){const _0x23fd9d=_0x17e338[_0xd3bd('0x15')][_0xd3bd('0x0')]('FontSize')['normalizeSizeOptions'](_0x17e338['config'][_0xd3bd('0x0')](_0xd3bd('0x11')))[_0xd3bd('0x10')](_0x32359a=>_0x32359a[_0xd3bd('0x19')]==_0xbb7bce);return _0x2fdc05+'\x20('+(_0x23fd9d?_0x550df5(_0x23fd9d[_0xd3bd('0x12')])['toLowerCase']():_0xbb7bce)+')';}return _0x2fdc05+'\x20('+_0xbb7bce+')';}
@@ -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/heading
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2edc=['registerElementLabel','title','value','editor','markBlockFormat','formatBlock','heading','change','registerDescriptionCallback','locale','has','heading.options','schema','config','plugins','afterInit','*Change\x20to:*\x20%0','TrackChangesEditing','find','getSelectedBlocks','name','model','HeadingEditing','_descriptionFactory','ELEMENT_HEADING','format','filter','get','blockName','from','commandParams','paragraph','isObject','commandName'];(function(_0x85dd6e,_0x2edc94){const _0x322bfc=function(_0x1a7317){while(--_0x1a7317){_0x85dd6e['push'](_0x85dd6e['shift']());}};_0x322bfc(++_0x2edc94);}(_0x2edc,0x87));const _0x322b=function(_0x85dd6e,_0x2edc94){_0x85dd6e=_0x85dd6e-0x0;let _0x322bfc=_0x2edc[_0x85dd6e];return _0x322bfc;};import{Plugin as _0x537f14}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x4075a8}from'./utils';import{getTranslation as _0xeaf9d2}from'../utils/common-translations';export default class J extends _0x537f14{[_0x322b('0x10')](){const _0x11d269=this[_0x322b('0x4')],_0x385eea=_0x11d269[_0x322b('0xa')],_0x19ce82=_0x11d269[_0x322b('0xe')][_0x322b('0x1c')](_0x322b('0xc'));if(!_0x11d269[_0x322b('0xf')][_0x322b('0xb')](_0x322b('0x17')))return;const _0x281b2b=_0x11d269['plugins'][_0x322b('0x1c')](_0x322b('0x12'));_0x281b2b['enableCommand'](_0x322b('0x7'),(_0x1ae829,_0x36d6d0)=>{const _0x2a43fc=_0x36d6d0['value'],_0x4deba2=Array[_0x322b('0x1e')](this['editor'][_0x322b('0x16')]['document']['selection'][_0x322b('0x14')]())[_0x322b('0x1b')](_0x13045b=>function(_0xfdac9d,_0x3ba5ef,_0x310f9c){return _0x310f9c['checkChild'](_0xfdac9d['parent'],_0x3ba5ef)&&!_0x310f9c[_0x322b('0x21')](_0xfdac9d)&&_0xfdac9d[_0x322b('0x15')]!=_0x3ba5ef;}(_0x13045b,_0x2a43fc,this[_0x322b('0x4')]['model'][_0x322b('0xd')]));_0x11d269['model'][_0x322b('0x8')](()=>{for(const _0x5854e0 of _0x4deba2)_0x281b2b[_0x322b('0x5')](_0x5854e0,{'commandName':_0x322b('0x7'),'commandParams':[_0x36d6d0],'formatGroupId':_0x322b('0x1d')},_0x4075a8(_0x5854e0));});});for(const _0x2912ab of _0x19ce82)_0x322b('0x20')!=_0x2912ab[_0x322b('0x16')]&&_0x281b2b['_descriptionFactory'][_0x322b('0x1')](_0x2912ab[_0x322b('0x16')],_0x390b5f=>{const _0x383d60=nn(_0x2912ab[_0x322b('0x16')]);return null!==_0x383d60?_0x58aaac(_0x390b5f,_0x383d60):_0x1ef98c(_0x390b5f,_0x2912ab[_0x322b('0x2')]);});function _0x58aaac(_0x573de4,_0x45bff4){return _0xeaf9d2(_0x385eea,_0x322b('0x19'),[_0x573de4,_0x45bff4]);}function _0x1ef98c(_0x163b3a,_0x51ff29){return _0xeaf9d2(_0x385eea,'ELEMENT_HEADING_CUSTOM',[_0x163b3a,_0x51ff29]);}_0x281b2b[_0x322b('0x18')][_0x322b('0x9')](_0x207404=>{const {type:_0x5d2aac,data:_0x28ab62}=_0x207404;if(_0x322b('0x6')==_0x5d2aac&&_0x28ab62&&'heading'==_0x28ab62[_0x322b('0x0')]){const _0x1357f1=_0x28ab62[_0x322b('0x1f')][0x0][_0x322b('0x3')],_0x487d64=nn(_0x1357f1);if(null!==_0x487d64)return{'type':_0x322b('0x1a'),'content':_0xeaf9d2(_0x385eea,_0x322b('0x11'),_0x58aaac(0x1,_0x487d64))};const _0x341c87=_0x19ce82[_0x322b('0x13')](_0x47483f=>_0x47483f[_0x322b('0x16')]===_0x1357f1)[_0x322b('0x2')];return{'type':_0x322b('0x1a'),'content':_0xeaf9d2(_0x385eea,_0x322b('0x11'),_0x1ef98c(0x1,_0x341c87))};}});}}function nn(_0x4a0269){const _0x28ef33=_0x4a0269['match'](/^heading(\d+)$/);return _0x28ef33?_0x28ef33[0x1]:null;}
23
+ const _0x4598=['editor','paragraph','HeadingEditing','TrackChangesEditing','afterInit','getSelectedBlocks','plugins','isObject','has','match','ELEMENT_HEADING_CUSTOM','heading','registerDescriptionCallback','checkChild','filter','formatBlock','commandName','format','model','parent','ELEMENT_HEADING','blockName','enableCommand','title','locale','_descriptionFactory','markBlockFormat','from','document','*Change\x20to:*\x20%0','config'];(function(_0x17a99d,_0x459837){const _0x171c35=function(_0x46319d){while(--_0x46319d){_0x17a99d['push'](_0x17a99d['shift']());}};_0x171c35(++_0x459837);}(_0x4598,0xc7));const _0x171c=function(_0x17a99d,_0x459837){_0x17a99d=_0x17a99d-0x0;let _0x171c35=_0x4598[_0x17a99d];return _0x171c35;};import{Plugin as _0x555329}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x2bddd5}from'./utils';import{getTranslation as _0x151a1c}from'../utils/common-translations';export default class J extends _0x555329{[_0x171c('0x16')](){const _0x5dbb05=this['editor'],_0x3f08d0=_0x5dbb05[_0x171c('0xb')],_0x13e0aa=_0x5dbb05[_0x171c('0x11')]['get']('heading.options');if(!_0x5dbb05['plugins'][_0x171c('0x1a')](_0x171c('0x14')))return;const _0x598f47=_0x5dbb05[_0x171c('0x18')]['get'](_0x171c('0x15'));_0x598f47[_0x171c('0x9')](_0x171c('0x1d'),(_0x10fd4f,_0x50f22d)=>{const _0x27691f=_0x50f22d['value'],_0x2cdbb3=Array[_0x171c('0xe')](this['editor']['model'][_0x171c('0xf')]['selection'][_0x171c('0x17')]())[_0x171c('0x1')](_0x103f67=>function(_0x441b5a,_0x550ab5,_0x3f255a){return _0x3f255a[_0x171c('0x0')](_0x441b5a[_0x171c('0x6')],_0x550ab5)&&!_0x3f255a[_0x171c('0x19')](_0x441b5a)&&_0x441b5a['name']!=_0x550ab5;}(_0x103f67,_0x27691f,this[_0x171c('0x12')][_0x171c('0x5')]['schema']));_0x5dbb05['model']['change'](()=>{for(const _0x12b4ac of _0x2cdbb3)_0x598f47[_0x171c('0xd')](_0x12b4ac,{'commandName':'heading','commandParams':[_0x50f22d],'formatGroupId':_0x171c('0x8')},_0x2bddd5(_0x12b4ac));});});for(const _0x46a3e3 of _0x13e0aa)_0x171c('0x13')!=_0x46a3e3[_0x171c('0x5')]&&_0x598f47[_0x171c('0xc')]['registerElementLabel'](_0x46a3e3[_0x171c('0x5')],_0x4f600d=>{const _0x5ef956=nn(_0x46a3e3['model']);return null!==_0x5ef956?_0x11b9a5(_0x4f600d,_0x5ef956):_0x2da851(_0x4f600d,_0x46a3e3[_0x171c('0xa')]);});function _0x11b9a5(_0x899674,_0x38d109){return _0x151a1c(_0x3f08d0,_0x171c('0x7'),[_0x899674,_0x38d109]);}function _0x2da851(_0x51efcc,_0x46315c){return _0x151a1c(_0x3f08d0,_0x171c('0x1c'),[_0x51efcc,_0x46315c]);}_0x598f47['_descriptionFactory'][_0x171c('0x1e')](_0x207bfb=>{const {type:_0x4b5f4d,data:_0xed1495}=_0x207bfb;if(_0x171c('0x2')==_0x4b5f4d&&_0xed1495&&_0x171c('0x1d')==_0xed1495[_0x171c('0x3')]){const _0x435759=_0xed1495['commandParams'][0x0]['value'],_0x58c4ab=nn(_0x435759);if(null!==_0x58c4ab)return{'type':_0x171c('0x4'),'content':_0x151a1c(_0x3f08d0,_0x171c('0x10'),_0x11b9a5(0x1,_0x58c4ab))};const _0x45f5e9=_0x13e0aa['find'](_0x2515b4=>_0x2515b4['model']===_0x435759)['title'];return{'type':_0x171c('0x4'),'content':_0x151a1c(_0x3f08d0,'*Change\x20to:*\x20%0',_0x2da851(0x1,_0x45f5e9))};}});}}function nn(_0x3552ee){const _0x55f1f4=_0x3552ee[_0x171c('0x1b')](/^heading(\d+)$/);return _0x55f1f4?_0x55f1f4[0x1]:null;}
@@ -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/highlight
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc4bb=['toLowerCase','item','highlight.options','has','config','commandName','afterInit','createRange','color','push','title','registerDescriptionCallback','value','_descriptionFactory','FORMAT_HIGHLIGHT','getRanges','change','highlight','formatInline','TrackChangesEditing','HighlightEditing','plugins','isCollapsed','getFirstPosition','markInlineFormat','enableCommand','commandParams','get','document','editor','model','format','getLastMatchingPosition','backward'];(function(_0x416b15,_0xc4bbd0){const _0x44f06d=function(_0x3f4fc1){while(--_0x3f4fc1){_0x416b15['push'](_0x416b15['shift']());}};_0x44f06d(++_0xc4bbd0);}(_0xc4bb,0x177));const _0x44f0=function(_0x416b15,_0xc4bbd0){_0x416b15=_0x416b15-0x0;let _0x44f06d=_0xc4bb[_0x416b15];return _0x44f06d;};import{Plugin as _0x456073}from'ckeditor5/src/core';import{getTranslation as _0x16f04c}from'../utils/common-translations';import{getRangesWithAttribute as _0x27b28d}from'./utils';export default class K extends _0x456073{[_0x44f0('0x5')](){const _0x184402=this[_0x44f0('0x1c')];if(!_0x184402[_0x44f0('0x14')][_0x44f0('0x2')](_0x44f0('0x13')))return;const _0x355d2d=_0x184402[_0x44f0('0x14')][_0x44f0('0x1a')](_0x44f0('0x12'));_0x355d2d[_0x44f0('0x18')](_0x44f0('0x10'),(_0x151461,_0x57c864={})=>{const _0x1d1bfe=_0x184402['model'][_0x44f0('0x1b')]['selection'],_0x21ce99=_0x1d1bfe['getAttribute']('highlight');let _0x266e45=_0x57c864[_0x44f0('0xb')],_0x187ccb=[];if(_0x1d1bfe[_0x44f0('0x15')]){const _0xdb3562=_0x1d1bfe[_0x44f0('0x16')]();if(!_0x1d1bfe['hasAttribute'](_0x44f0('0x10')))return void _0x151461(_0x57c864);{const _0x152d89=_0x4d39e6=>_0x4d39e6[_0x44f0('0x0')]['getAttribute'](_0x44f0('0x10'))===_0x21ce99,_0x5491fa=_0xdb3562[_0x44f0('0x1f')](_0x152d89,{'direction':_0x44f0('0x20')}),_0x31daa6=_0xdb3562[_0x44f0('0x1f')](_0x152d89);_0x187ccb=[_0x184402[_0x44f0('0x1d')][_0x44f0('0x6')](_0x5491fa,_0x31daa6)],_0x266e45==_0x21ce99&&(_0x266e45=null);}}else for(const _0xa1d364 of _0x1d1bfe[_0x44f0('0xe')]())_0x266e45?_0x187ccb[_0x44f0('0x8')](_0xa1d364):_0x187ccb['push'](..._0x27b28d(_0x44f0('0x10'),_0xa1d364,_0x184402[_0x44f0('0x1d')]));_0x184402['model'][_0x44f0('0xf')](()=>{for(const _0x51fec4 of _0x187ccb)_0x355d2d[_0x44f0('0x17')](_0x51fec4,{'commandName':'highlight','commandParams':[{'value':_0x266e45}]});});});const _0x3c0016=_0x184402['locale'];_0x355d2d[_0x44f0('0xc')][_0x44f0('0xa')](_0x28f73c=>{const {type:_0x4fef17,data:_0x5a03af}=_0x28f73c;if(_0x44f0('0x11')==_0x4fef17&&_0x5a03af&&_0x44f0('0x10')==_0x5a03af[_0x44f0('0x4')]){const _0x131bd4=_0x3c0016['t'],_0x40b4ed=_0x5a03af[_0x44f0('0x19')][0x0]['value'];if(_0x40b4ed){const _0x53c9e5=_0x184402[_0x44f0('0x3')][_0x44f0('0x1a')](_0x44f0('0x1'))['find'](_0x5bd9da=>_0x5bd9da[_0x44f0('0x1d')]==_0x40b4ed),_0x3b1b14=_0x131bd4(_0x53c9e5['title'])[_0x44f0('0x21')]();return{'type':_0x44f0('0x1e'),'content':_0x16f04c(_0x3c0016,'*Set\x20highlight:*\x20%0',_0x3b1b14),'color':{'value':_0x53c9e5[_0x44f0('0x7')],'title':_0x53c9e5[_0x44f0('0x9')]}};}return{'type':_0x44f0('0x1e'),'content':_0x16f04c(_0x3c0016,'*Remove\x20highlight*',_0x16f04c(_0x3c0016,_0x44f0('0xd')))};}});}}
23
+ const _0x3931=['toLowerCase','plugins','registerDescriptionCallback','commandParams','getLastMatchingPosition','HighlightEditing','document','locale','color','getRanges','push','value','highlight.options','highlight','selection','backward','find','isCollapsed','config','FORMAT_HIGHLIGHT','*Set\x20highlight:*\x20%0','hasAttribute','*Remove\x20highlight*','change','model','getFirstPosition','markInlineFormat','get','enableCommand','afterInit','TrackChangesEditing'];(function(_0x381879,_0x39317b){const _0x32fbcf=function(_0x1a4387){while(--_0x1a4387){_0x381879['push'](_0x381879['shift']());}};_0x32fbcf(++_0x39317b);}(_0x3931,0x14f));const _0x32fb=function(_0x381879,_0x39317b){_0x381879=_0x381879-0x0;let _0x32fbcf=_0x3931[_0x381879];return _0x32fbcf;};import{Plugin as _0x32cba7}from'ckeditor5/src/core';import{getTranslation as _0x3ea41f}from'../utils/common-translations';import{getRangesWithAttribute as _0x32c0e9}from'./utils';export default class K extends _0x32cba7{[_0x32fb('0x4')](){const _0x20d2fb=this['editor'];if(!_0x20d2fb[_0x32fb('0x7')]['has'](_0x32fb('0xb')))return;const _0x3441ae=_0x20d2fb[_0x32fb('0x7')][_0x32fb('0x2')](_0x32fb('0x5'));_0x3441ae[_0x32fb('0x3')]('highlight',(_0x33d3cf,_0x4b3889={})=>{const _0x156e50=_0x20d2fb['model'][_0x32fb('0xc')][_0x32fb('0x14')],_0x6df8a2=_0x156e50['getAttribute'](_0x32fb('0x13'));let _0x157dfc=_0x4b3889['value'],_0x3f583c=[];if(_0x156e50[_0x32fb('0x17')]){const _0x4a7db5=_0x156e50[_0x32fb('0x0')]();if(!_0x156e50[_0x32fb('0x1b')]('highlight'))return void _0x33d3cf(_0x4b3889);{const _0x1c2cbc=_0x5d032c=>_0x5d032c['item']['getAttribute'](_0x32fb('0x13'))===_0x6df8a2,_0x5c30ba=_0x4a7db5['getLastMatchingPosition'](_0x1c2cbc,{'direction':_0x32fb('0x15')}),_0x3dd2b2=_0x4a7db5[_0x32fb('0xa')](_0x1c2cbc);_0x3f583c=[_0x20d2fb[_0x32fb('0x1e')]['createRange'](_0x5c30ba,_0x3dd2b2)],_0x157dfc==_0x6df8a2&&(_0x157dfc=null);}}else for(const _0x59c0b7 of _0x156e50[_0x32fb('0xf')]())_0x157dfc?_0x3f583c[_0x32fb('0x10')](_0x59c0b7):_0x3f583c['push'](..._0x32c0e9('highlight',_0x59c0b7,_0x20d2fb[_0x32fb('0x1e')]));_0x20d2fb[_0x32fb('0x1e')][_0x32fb('0x1d')](()=>{for(const _0x14e316 of _0x3f583c)_0x3441ae[_0x32fb('0x1')](_0x14e316,{'commandName':_0x32fb('0x13'),'commandParams':[{'value':_0x157dfc}]});});});const _0x2d27d1=_0x20d2fb[_0x32fb('0xd')];_0x3441ae['_descriptionFactory'][_0x32fb('0x8')](_0x2b3817=>{const {type:_0x4766fa,data:_0x5560b6}=_0x2b3817;if('formatInline'==_0x4766fa&&_0x5560b6&&_0x32fb('0x13')==_0x5560b6['commandName']){const _0xcb04ef=_0x2d27d1['t'],_0x20f924=_0x5560b6[_0x32fb('0x9')][0x0][_0x32fb('0x11')];if(_0x20f924){const _0x22775c=_0x20d2fb[_0x32fb('0x18')][_0x32fb('0x2')](_0x32fb('0x12'))[_0x32fb('0x16')](_0x25b6e6=>_0x25b6e6['model']==_0x20f924),_0x234fb1=_0xcb04ef(_0x22775c['title'])[_0x32fb('0x6')]();return{'type':'format','content':_0x3ea41f(_0x2d27d1,_0x32fb('0x1a'),_0x234fb1),'color':{'value':_0x22775c[_0x32fb('0xe')],'title':_0x22775c['title']}};}return{'type':'format','content':_0x3ea41f(_0x2d27d1,_0x32fb('0x1c'),_0x3ea41f(_0x2d27d1,_0x32fb('0x19')))};}});}}
@@ -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/horizontalline
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44b5=['ck-horizontal-line','insert','afterInit','for','get','HorizontalLineEditing','editor','registerElementLabel','ELEMENT_HORIZONTAL_LINE','conversion','has','plugins','createContainerElement','createPositionAt','horizontalLine','locale','createEmptyElement','high','dataDowncast','elementToStructure','addClass'];(function(_0x5a1272,_0x44b587){const _0x1af119=function(_0x2e078d){while(--_0x2e078d){_0x5a1272['push'](_0x5a1272['shift']());}};_0x1af119(++_0x44b587);}(_0x44b5,0x1de));const _0x1af1=function(_0x5a1272,_0x44b587){_0x5a1272=_0x5a1272-0x0;let _0x1af119=_0x44b5[_0x5a1272];return _0x1af119;};import{Plugin as _0xe559e4}from'ckeditor5/src/core';import{getTranslation as _0x3b4897}from'../utils/common-translations';export default class Q extends _0xe559e4{[_0x1af1('0x7')](){const _0x1ec5a3=this[_0x1af1('0xb')];if(!_0x1ec5a3[_0x1af1('0x10')][_0x1af1('0xf')](_0x1af1('0xa')))return;_0x1ec5a3[_0x1af1('0x10')][_0x1af1('0x9')]('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d9fb3=_0x1ec5a3[_0x1af1('0x10')]['get']('TrackChangesEditing'),_0x3ad37d=_0x1ec5a3[_0x1af1('0x14')];_0x4d9fb3['_descriptionFactory'][_0x1af1('0xc')]('horizontalLine',_0x3728f3=>_0x3b4897(_0x3ad37d,_0x1af1('0xd'),_0x3728f3)),_0x1ec5a3[_0x1af1('0xe')][_0x1af1('0x8')](_0x1af1('0x2'))[_0x1af1('0x3')]({'model':_0x1af1('0x13'),'view':(_0x574bd0,{writer:_0x428513,options:_0x68f449})=>{if(!_0x68f449['showSuggestionHighlights'])return null;const _0x3fb7bb=_0x428513[_0x1af1('0x11')]('div'),_0x294637=_0x428513[_0x1af1('0x0')]('hr');return _0x428513[_0x1af1('0x4')](_0x1af1('0x5'),_0x3fb7bb),_0x428513[_0x1af1('0x6')](_0x428513[_0x1af1('0x12')](_0x3fb7bb,0x0),_0x294637),_0x3fb7bb;},'converterPriority':_0x1af1('0x1')});}}
23
+ const _0x1d7a=['conversion','createPositionAt','_descriptionFactory','insert','enableCommand','afterInit','HorizontalLineEditing','ELEMENT_HORIZONTAL_LINE','createEmptyElement','elementToStructure','showSuggestionHighlights','addClass','get','plugins','registerElementLabel','horizontalLine','locale','div','ck-horizontal-line','dataDowncast','high'];(function(_0x2a6e90,_0x1d7abe){const _0x2ef3ef=function(_0x436adb){while(--_0x436adb){_0x2a6e90['push'](_0x2a6e90['shift']());}};_0x2ef3ef(++_0x1d7abe);}(_0x1d7a,0x116));const _0x2ef3=function(_0x2a6e90,_0x1d7abe){_0x2a6e90=_0x2a6e90-0x0;let _0x2ef3ef=_0x1d7a[_0x2a6e90];return _0x2ef3ef;};import{Plugin as _0x54111f}from'ckeditor5/src/core';import{getTranslation as _0x5756c8}from'../utils/common-translations';export default class Q extends _0x54111f{[_0x2ef3('0x0')](){const _0x5f15c1=this['editor'];if(!_0x5f15c1[_0x2ef3('0x8')]['has'](_0x2ef3('0x1')))return;_0x5f15c1[_0x2ef3('0x8')][_0x2ef3('0x7')]('TrackChangesEditing')[_0x2ef3('0x14')](_0x2ef3('0xa'));const _0x13c9b9=_0x5f15c1[_0x2ef3('0x8')][_0x2ef3('0x7')]('TrackChangesEditing'),_0x2b5d66=_0x5f15c1[_0x2ef3('0xb')];_0x13c9b9[_0x2ef3('0x12')][_0x2ef3('0x9')]('horizontalLine',_0x42a8d7=>_0x5756c8(_0x2b5d66,_0x2ef3('0x2'),_0x42a8d7)),_0x5f15c1[_0x2ef3('0x10')]['for'](_0x2ef3('0xe'))[_0x2ef3('0x4')]({'model':_0x2ef3('0xa'),'view':(_0x2f5294,{writer:_0x4ea339,options:_0x28edc6})=>{if(!_0x28edc6[_0x2ef3('0x5')])return null;const _0x3633d0=_0x4ea339['createContainerElement'](_0x2ef3('0xc')),_0x51ba06=_0x4ea339[_0x2ef3('0x3')]('hr');return _0x4ea339[_0x2ef3('0x6')](_0x2ef3('0xd'),_0x3633d0),_0x4ea339[_0x2ef3('0x13')](_0x4ea339[_0x2ef3('0x11')](_0x3633d0,0x0),_0x51ba06),_0x3633d0;},'converterPriority':_0x2ef3('0xf')});}}
@@ -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/htmlembed
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17a3=['rawHtml','afterInit','document','getCustomProperty','cancel','registerElementLabel','plugins','has','get','htmlEmbed','registerDescriptionCallback','TrackChangesEditing','locale','view','rawHtmlApi','getSelectedElement','enableCommand','editing','value','selection','model','ELEMENT_HTML_EMBED','HtmlEmbed','_descriptionFactory','change','*Change\x20%0\x20content*'];(function(_0x2d90b6,_0x17a394){const _0xbf4f8e=function(_0x44ba79){while(--_0x44ba79){_0x2d90b6['push'](_0x2d90b6['shift']());}};_0xbf4f8e(++_0x17a394);}(_0x17a3,0x123));const _0xbf4f=function(_0x2d90b6,_0x17a394){_0x2d90b6=_0x2d90b6-0x0;let _0xbf4f8e=_0x17a3[_0x2d90b6];return _0xbf4f8e;};import{Plugin as _0x5cb8de}from'ckeditor5/src/core';import{getTranslation as _0xab1aba}from'../utils/common-translations';export default class V extends _0x5cb8de{[_0xbf4f('0x16')](){const _0x24dad4=this['editor'];if(!_0x24dad4[_0xbf4f('0x1')][_0xbf4f('0x2')](_0xbf4f('0x11')))return;const _0x429573=_0x24dad4['plugins'][_0xbf4f('0x3')](_0xbf4f('0x6')),_0xf75e62=_0x24dad4[_0xbf4f('0x7')],_0x2e3f06=_0x24dad4[_0xbf4f('0xc')][_0xbf4f('0x8')][_0xbf4f('0x17')][_0xbf4f('0xe')];_0x429573[_0xbf4f('0x12')][_0xbf4f('0x0')](_0xbf4f('0x15'),_0x209313=>_0xab1aba(_0xf75e62,_0xbf4f('0x10'),_0x209313)),_0x24dad4[_0xbf4f('0x1')][_0xbf4f('0x3')](_0xbf4f('0x6'))[_0xbf4f('0xb')]('htmlEmbed',(_0x226068,_0x18663a)=>{const _0x3eeba6=_0x24dad4[_0xbf4f('0xf')],_0x49e488=_0x3eeba6[_0xbf4f('0x17')][_0xbf4f('0xe')];_0x3eeba6[_0xbf4f('0x13')](()=>{const _0x1972b6=function(_0x495507){const _0x2e058e=_0x495507[_0xbf4f('0xa')]();if(_0x2e058e&&_0x2e058e['is']('element',_0xbf4f('0x15')))return _0x495507[_0xbf4f('0xa')]();return null;}(_0x49e488);if(!_0x1972b6)return void _0x226068(null);const _0x31460c=_0x1972b6['getAttribute'](_0xbf4f('0xd'))||'';if(void 0x0===_0x18663a)return;if(_0x18663a===_0x31460c)return;_0x429573['markBlockFormat'](_0x1972b6,{'commandName':_0xbf4f('0x4'),'commandParams':[_0x18663a]}),_0x2e3f06[_0xbf4f('0xa')]()[_0xbf4f('0x18')](_0xbf4f('0x9'))[_0xbf4f('0x19')]();});}),_0x429573[_0xbf4f('0x12')][_0xbf4f('0x5')](_0x16ab18=>{const {data:_0x5a119e}=_0x16ab18;if(_0x5a119e&&_0xbf4f('0x4')==_0x5a119e['commandName']){const _0x333af8=_0xab1aba(_0xf75e62,_0xbf4f('0x10'));return{'type':'format','content':_0xab1aba(_0xf75e62,_0xbf4f('0x14'),_0x333af8)};}});}}
23
+ const _0x2d78=['format','ELEMENT_HTML_EMBED','locale','*Change\x20%0\x20content*','registerDescriptionCallback','TrackChangesEditing','rawHtml','commandName','_descriptionFactory','rawHtmlApi','plugins','value','model','editor','document','getSelectedElement','getAttribute','editing','markBlockFormat','enableCommand','view','htmlEmbed','cancel','change','HtmlEmbed'];(function(_0x57f821,_0x2d78bf){const _0x3d8e88=function(_0x2b707b){while(--_0x2b707b){_0x57f821['push'](_0x57f821['shift']());}};_0x3d8e88(++_0x2d78bf);}(_0x2d78,0x1d5));const _0x3d8e=function(_0x57f821,_0x2d78bf){_0x57f821=_0x57f821-0x0;let _0x3d8e88=_0x2d78[_0x57f821];return _0x3d8e88;};import{Plugin as _0x479e58}from'ckeditor5/src/core';import{getTranslation as _0x8d3908}from'../utils/common-translations';export default class V extends _0x479e58{['afterInit'](){const _0x3fce72=this[_0x3d8e('0x13')];if(!_0x3fce72[_0x3d8e('0x10')]['has'](_0x3d8e('0x5')))return;const _0x2aecf2=_0x3fce72[_0x3d8e('0x10')]['get'](_0x3d8e('0xb')),_0x55849d=_0x3fce72[_0x3d8e('0x8')],_0x1d9798=_0x3fce72[_0x3d8e('0x17')][_0x3d8e('0x1')][_0x3d8e('0x14')]['selection'];_0x2aecf2['_descriptionFactory']['registerElementLabel'](_0x3d8e('0xc'),_0x452aaf=>_0x8d3908(_0x55849d,_0x3d8e('0x7'),_0x452aaf)),_0x3fce72[_0x3d8e('0x10')]['get'](_0x3d8e('0xb'))[_0x3d8e('0x0')](_0x3d8e('0x2'),(_0x5eab23,_0x1b21a4)=>{const _0x306f0d=_0x3fce72[_0x3d8e('0x12')],_0x22005b=_0x306f0d[_0x3d8e('0x14')]['selection'];_0x306f0d[_0x3d8e('0x4')](()=>{const _0x9811a3=function(_0x165479){const _0x31b1e0=_0x165479['getSelectedElement']();if(_0x31b1e0&&_0x31b1e0['is']('element',_0x3d8e('0xc')))return _0x165479[_0x3d8e('0x15')]();return null;}(_0x22005b);if(!_0x9811a3)return void _0x5eab23(null);const _0x1b5d95=_0x9811a3[_0x3d8e('0x16')](_0x3d8e('0x11'))||'';if(void 0x0===_0x1b21a4)return;if(_0x1b21a4===_0x1b5d95)return;_0x2aecf2[_0x3d8e('0x18')](_0x9811a3,{'commandName':'htmlEmbed','commandParams':[_0x1b21a4]}),_0x1d9798['getSelectedElement']()['getCustomProperty'](_0x3d8e('0xf'))[_0x3d8e('0x3')]();});}),_0x2aecf2[_0x3d8e('0xe')][_0x3d8e('0xa')](_0xc513d8=>{const {data:_0x3f4fdd}=_0xc513d8;if(_0x3f4fdd&&_0x3d8e('0x2')==_0x3f4fdd[_0x3d8e('0xd')]){const _0x43c4a3=_0x8d3908(_0x55849d,_0x3d8e('0x7'));return{'type':_0x3d8e('0x6'),'content':_0x8d3908(_0x55849d,_0x3d8e('0x9'),_0x43c4a3)};}});}}
@@ -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/image
3
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5406=['Inline\x20image\x20to\x20block\x20image','afterInit','ImageResize','chain','imageStylePostApply','imageCaption','markInsertion','caption','_descriptionFactory','toggleImageCaption','uploadImage','getCaptionFromImageModelElement','isInlineImage','ImageUtils','toNext','nodeAfter','end','FORMAT_SIDE_IMAGE','change','schema','imageTypeInline','*Remove\x20image\x20text\x20alternative*','registerPostFixer','subType','imageInline','getFirstRange','next','formatBlock','ELEMENT_INLINE_IMAGE','getNearestSelectionRange','ImageStyleEditing','backward','hasSuggestion','fromPosition','markBlockFormat','document','element','formatInline','getChangedMarkers','head','ImageCaptionEditing','commandParams','enableCommand','imageTypeBlock','forceDefaultExecution','registerElementLabel','refresh','join','format','getSuggestions','alt','insertion','value','ELEMENT_CAPTION','isBefore','toPrevious','type','getClosestSelectedImageElement','differ','imageStylePreApply','getSuggestion','findIndex','ImageTextAlternativeEditing','previous','*Set\x20image\x20width:*\x20%0','isOwn','imageBlock','selection','getAttribute','getSuggestionCallback','hasAttribute','nodeBefore','normalizedStyles','isCollapsed','insertImage','accept','model','ELEMENT_IMAGE','*Set\x20image\x20text\x20alternative:*\x20%0','markDeletion','_suggestionFactory','author','Block\x20image\x20to\x20inline\x20image','name','suggestion','resizeImage','ImageEditing','isBlockImage','isInContent','createRange','locale','commandReversedParams','has','registerDescriptionCallback','side','plugins','commands','*Reset\x20image\x20width*','_findSuggestions','convertInlineImageToBlock','newValue','createRangeOn','removeObject','editor','get','registerCustomCallback','discard','forEach','getContainedElement','commandName','title','ImageCaptionUtils','newRange','width','discardSuggestion','imageTextAlternative','isEqual','markInlineFormat','find','addObject','ImageBlockEditing','start','from','imageStyle','toLowerCase'];(function(_0x599768,_0x540662){const _0x424e98=function(_0x9d8fe6){while(--_0x9d8fe6){_0x599768['push'](_0x599768['shift']());}};_0x424e98(++_0x540662);}(_0x5406,0x1dc));const _0x424e=function(_0x599768,_0x540662){_0x599768=_0x599768-0x0;let _0x424e98=_0x5406[_0x599768];return _0x424e98;};import{Plugin as _0x4672c0}from'ckeditor5/src/core';import{LivePosition as _0x271b27}from'ckeditor5/src/engine';import{uid as _0x5a9b95}from'ckeditor5/src/utils';import{getTranslation as _0x5b41f0}from'../utils/common-translations';export default class X extends _0x4672c0{[_0x424e('0x19')](){const _0x387459=this[_0x424e('0x2')];if(!_0x387459[_0x424e('0x77')][_0x424e('0x74')](_0x424e('0x6e')))return;const _0xf1d786=_0x387459[_0x424e('0x77')][_0x424e('0x3')]('TrackChangesEditing'),_0x3c59f3=_0x387459['plugins']['get'](_0x424e('0x25')),_0xbe39f3={},_0x4a8a97=_0x387459[_0x424e('0x72')];if(_0xf1d786[_0x424e('0x42')](_0x424e('0x62')),_0xf1d786[_0x424e('0x20')][_0x424e('0x45')](_0x424e('0x5a'),_0x1cecdd=>_0x5b41f0(_0x4a8a97,_0x424e('0x65'),_0x1cecdd)),_0xf1d786[_0x424e('0x20')][_0x424e('0x45')](_0x424e('0x30'),_0x6516b8=>_0x5b41f0(_0x4a8a97,_0x424e('0x34'),_0x6516b8)),_0xf1d786[_0x424e('0x20')][_0x424e('0x45')](_0x424e('0x1f'),()=>_0x5b41f0(_0x4a8a97,_0x424e('0x4d'))),_0x387459[_0x424e('0x77')][_0x424e('0x74')]('ImageUploadEditing')&&_0xf1d786[_0x424e('0x42')](_0x424e('0x22')),_0x387459[_0x424e('0x77')][_0x424e('0x74')](_0x424e('0x13'))&&_0x387459[_0x424e('0x77')]['has']('ImageInlineEditing')&&(_0xf1d786[_0x424e('0x42')](_0x424e('0x2c'),(_0x231230,_0x35c3e5)=>{const _0x2112a8=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')]['document'][_0x424e('0x5b')]);_0x387459[_0x424e('0x64')][_0x424e('0x2a')](()=>{_0xf1d786[_0x424e('0x3a')](_0x2112a8,{'commandName':_0x424e('0x2c'),'commandParams':[_0x35c3e5]},[],'convertBlockImageToInline');});}),_0xf1d786[_0x424e('0x42')](_0x424e('0x43'),(_0x3366b1,_0x1595e0)=>{_0x387459[_0x424e('0x64')][_0x424e('0x2a')](_0x191157=>{let _0x5f1dc8=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')]['document'][_0x424e('0x5b')]),_0x4373a1=_0x191157[_0x424e('0x0')](_0x5f1dc8);const _0x41c250=_0x271b27[_0x424e('0x39')](_0x4373a1['start'],_0x424e('0x4f')),_0x4712b7=_0x271b27[_0x424e('0x39')](_0x4373a1[_0x424e('0x28')],_0x424e('0x26'));_0xf1d786[_0x424e('0x44')](()=>_0x3366b1(_0x1595e0)),_0x5f1dc8=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x5b')]),_0x4373a1=_0x191157[_0x424e('0x0')](_0x5f1dc8);const _0x2f9adb=_0x191157[_0x424e('0x71')](_0x41c250,_0x4712b7);_0x41c250['detach'](),_0x4712b7['detach'](),_0xf1d786[_0x424e('0x3a')](_0x5f1dc8,{'commandName':_0x424e('0x2c'),'commandParams':[]},[],_0x424e('0x7b')),_0x2f9adb['start'][_0x424e('0x4e')](_0x4373a1['start'])&&_0xf1d786[_0x424e('0x1e')](_0x191157['createRange'](_0x2f9adb[_0x424e('0x14')],_0x4373a1[_0x424e('0x14')]),_0x424e('0x7b')),_0x4373a1[_0x424e('0x28')][_0x424e('0x4e')](_0x2f9adb[_0x424e('0x28')])&&_0xf1d786[_0x424e('0x1e')](_0x191157[_0x424e('0x71')](_0x4373a1[_0x424e('0x28')],_0x2f9adb[_0x424e('0x28')]),_0x424e('0x7b'));});}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')]('formatBlock',_0x424e('0x7b'),_0x424e('0x47'),()=>{}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')](_0x424e('0x33'),_0x424e('0x7b'),'accept',()=>{}),_0xf1d786['_suggestionFactory'][_0x424e('0x4')](_0x424e('0x33'),_0x424e('0x7b'),_0x424e('0x5'),_0xf1d786[_0x424e('0x68')]['getSuggestionCallback'](_0x424e('0x33'),'',_0x424e('0x63'))),_0xf1d786['_suggestionFactory'][_0x424e('0x4')]('insertion','convertInlineImageToBlock',_0x424e('0x47'),()=>{}),_0xf1d786[_0x424e('0x68')]['registerCustomCallback'](_0x424e('0x4b'),_0x424e('0x7b'),_0x424e('0x5'),([_0x3d0ddb])=>{const _0x2c23c9=_0xf1d786[_0x424e('0x68')][_0x424e('0x5d')](_0x424e('0x4b'),'',_0x424e('0x5'));let _0x3d4162=_0x3d0ddb[_0x424e('0x14')],_0x45a5f0=_0x3d0ddb[_0x424e('0x28')];const _0x1f0644=_0x387459['model'][_0x424e('0x2b')][_0x424e('0x35')](_0x3d4162,_0x424e('0x37')),_0x4459eb=_0x387459[_0x424e('0x64')][_0x424e('0x2b')][_0x424e('0x35')](_0x45a5f0,'forward');_0x1f0644['isCollapsed']&&(_0x3d4162=_0x1f0644[_0x424e('0x14')]),_0x4459eb[_0x424e('0x61')]&&(_0x45a5f0=_0x4459eb['end']),_0x2c23c9([_0x387459['model']['createRange'](_0x3d4162,_0x45a5f0)]);}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')](_0x424e('0x33'),_0x424e('0x7b'),_0x424e('0x1b'),_0x367d43),_0xf1d786['_suggestionFactory'][_0x424e('0x4')](_0x424e('0x4b'),_0x424e('0x7b'),_0x424e('0x1b'),_0x367d43)),_0x387459['plugins'][_0x424e('0x74')](_0x424e('0x40'))&&(_0xf1d786[_0x424e('0x42')](_0x424e('0x21'),(_0x521ca4,_0x30600b)=>{const _0x197319=_0x387459[_0x424e('0x77')][_0x424e('0x3')](_0x424e('0xa'));let _0xf43398=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x5b')]),_0x26205b=_0x197319['getCaptionFromImageModelElement'](_0xf43398);_0x387459[_0x424e('0x64')][_0x424e('0x2a')](()=>{if(_0x26205b)return void _0xf1d786[_0x424e('0x67')](_0x387459[_0x424e('0x64')][_0x424e('0x0')](_0x26205b));const _0xf30032=_0x3c59f3[_0x424e('0x6f')](_0xf43398);_0x521ca4(_0x30600b),_0xf43398=_0x3c59f3['getClosestSelectedImageElement'](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x5b')]),_0x26205b=_0x197319[_0x424e('0x23')](_0xf43398),_0xf1d786['markInsertion'](_0x387459['model'][_0x424e('0x0')](_0x26205b),_0xf30032?null:_0x424e('0x1d'));});}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')]('insertion','imageCaption',_0x424e('0x1b'),_0x367d43)),_0x387459[_0x424e('0x77')][_0x424e('0x74')]('ImageStyleEditing')){_0xf1d786['enableCommand']('imageStyle',(_0x725fcc,_0x5eba01)=>{const _0x1d0c07=_0x387459['plugins'][_0x424e('0x3')]('Users')['me'],_0x3f41b9=_0x387459[_0x424e('0x78')]['get']('imageStyle');let _0x19123f=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')]['document'][_0x424e('0x5b')]),_0x59661d=_0x387459[_0x424e('0x64')][_0x424e('0x0')](_0x19123f),_0x3acbcd=_0x3f41b9[_0x424e('0x4c')];if(_0x3acbcd==_0x5eba01[_0x424e('0x4c')])return;const _0x55adf0={'commandName':_0x424e('0x16'),'commandParams':[_0x5eba01],'formatGroupId':_0x5a9b95()};_0x387459[_0x424e('0x64')][_0x424e('0x2a')](()=>{if(_0xf1d786[_0x424e('0x49')]()['filter'](_0xb2637a=>_0xb2637a[_0x424e('0x70')]&&_0x1d0c07==_0xb2637a[_0x424e('0x69')]&&('formatBlock'==_0xb2637a[_0x424e('0x50')]||_0x424e('0x3d')==_0xb2637a[_0x424e('0x50')])&&(_0x424e('0x53')==_0xb2637a[_0x424e('0x2f')]||_0x424e('0x1c')==_0xb2637a['subType'])&&_0xb2637a[_0x424e('0x31')]()[_0x424e('0xf')](_0x59661d))[_0x424e('0x6')](_0x534617=>_0xf1d786[_0x424e('0xd')](_0x534617[_0x424e('0x3f')])),_0x19123f=_0x3c59f3['getClosestSelectedImageElement'](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x5b')]),_0x59661d=_0x387459[_0x424e('0x64')][_0x424e('0x0')](_0x19123f),_0x3f41b9[_0x424e('0x46')](),_0x387459[_0x424e('0x78')][_0x424e('0x3')](_0x424e('0x2c'))[_0x424e('0x46')](),_0x387459['commands']['get'](_0x424e('0x43'))[_0x424e('0x46')](),_0x3acbcd=_0x3f41b9['value'],_0x3acbcd!=_0x5eba01[_0x424e('0x4c')])return _0x3c59f3[_0x424e('0x24')](_0x19123f)&&_0x3f41b9['shouldConvertImageType'](_0x5eba01[_0x424e('0x4c')],_0x19123f)?(_0x725fcc(_0x5eba01),_0x19123f=_0x3c59f3[_0x424e('0x51')](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x5b')]),void _0xf1d786[_0x424e('0x3a')](_0x19123f,{..._0x55adf0,'commandReversedParams':[{'value':_0x3acbcd||null}]},[],_0x424e('0x53'))):void(_0x3c59f3['isBlockImage'](_0x19123f)?_0xf1d786[_0x424e('0x3a')](_0x19123f,_0x55adf0,[],_0x424e('0x1c')):_0xf1d786[_0x424e('0x10')](_0x59661d,_0x55adf0,'imageStylePostApply'));});});for(const _0x8548b3 of _0x387459[_0x424e('0x77')][_0x424e('0x3')](_0x424e('0x36'))[_0x424e('0x60')])_0xbe39f3[_0x8548b3[_0x424e('0x6b')]]=_0x8548b3[_0x424e('0x9')][_0x424e('0x17')]();_0xf1d786['_suggestionFactory'][_0x424e('0x4')]('formatBlock',_0x424e('0x53'),'join',()=>{}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')](_0x424e('0x33'),_0x424e('0x1c'),_0x424e('0x47'),()=>{}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')](_0x424e('0x3d'),_0x424e('0x1c'),_0x424e('0x47'),()=>{}),_0xf1d786[_0x424e('0x68')][_0x424e('0x4')](_0x424e('0x33'),'imageStylePreApply',_0x424e('0x63'),()=>{}),_0xf1d786['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x424e('0x53'),_0x424e('0x5'),(_0x3d1dda,_0x4be3cb)=>{_0xf1d786[_0x424e('0x68')]['getSuggestionCallback'](_0x424e('0x33'),'',_0x424e('0x63'))(_0x3d1dda,{'commandName':_0x4be3cb[_0x424e('0x8')],'commandParams':_0x4be3cb[_0x424e('0x73')]});}),_0xf1d786[_0x424e('0x68')]['registerCustomCallback']('formatBlock','imageStylePreApply',_0x424e('0x1b'),_0x367d43);}const _0x4f5b31=[{'type':_0x424e('0x33'),'subType':'imageStylePreApply'},{'type':'insertion','subType':_0x424e('0x1d')},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':_0x424e('0x4b'),'subType':_0x424e('0x7b')}];function _0x4f6b5a(_0x591610,_0x43bd2f){const _0x467407=_0x4f5b31[_0x424e('0x55')](({type:_0x29e45c,subType:_0x2853ee})=>_0x591610[_0x424e('0x50')]==_0x29e45c&&_0x591610[_0x424e('0x2f')]==_0x2853ee),_0x3e8731=_0x4f5b31[_0x424e('0x55')](({type:_0x545d76,subType:_0x2fdfb3})=>_0x43bd2f[_0x424e('0x50')]==_0x545d76&&_0x43bd2f[_0x424e('0x2f')]==_0x2fdfb3);if(_0x467407<0x0||_0x3e8731<0x0)return!0x1;const _0x3c3c06=_0x591610[_0x424e('0x31')](),_0x544556=_0x43bd2f[_0x424e('0x31')]();if((0x0==_0x467407||0x1==_0x467407)&&0x2==_0x3e8731&&_0x3c3c06['isIntersecting'](_0x544556))return!0x0;if(0x2==_0x467407&&0x3==_0x3e8731){const _0x14012c=_0xf1d786[_0x424e('0x7a')](_0x3c3c06,'insertion')['filter'](({suggestion:_0x194332,meta:_0x4ed900})=>_0x4ed900[_0x424e('0x59')]&&_0x424e('0x7b')==_0x194332[_0x424e('0x2f')]);if(_0x14012c['length']>0x1&&_0x544556[_0x424e('0x28')][_0x424e('0xf')](_0x3c3c06[_0x424e('0x14')]))return!0x0;if(0x1==_0x14012c['length']&&(_0x3c3c06[_0x424e('0x14')]['isEqual'](_0x544556[_0x424e('0x28')])||_0x3c3c06[_0x424e('0x28')]['isEqual'](_0x544556[_0x424e('0x14')])))return!0x0;}if(0x3==_0x467407&&0x3==_0x3e8731&&_0x3c3c06[_0x424e('0x14')][_0x424e('0x4e')](_0x544556[_0x424e('0x14')])){const _0x2af4db=_0x3c3c06[_0x424e('0x28')][_0x424e('0x27')],_0x2f8339=_0x544556[_0x424e('0x14')][_0x424e('0x5f')];return _0x3c59f3[_0x424e('0x6f')](_0x2af4db)&&_0x2af4db===_0x2f8339;}return!0x1;}function _0x367d43(_0x18e699,_0x2aefb0){return _0x4f6b5a(_0x18e699,_0x2aefb0)?[_0x18e699,_0x2aefb0]:_0x4f6b5a(_0x2aefb0,_0x18e699)?[_0x2aefb0,_0x18e699]:null;}_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x2e')](()=>{let _0x1e90e4=!0x1;const _0x5a03cf=Array[_0x424e('0x15')](_0x387459[_0x424e('0x64')][_0x424e('0x3b')][_0x424e('0x52')][_0x424e('0x3e')]());for(const {name:_0x5a3dbb,data:_0x42f9b5}of _0x5a03cf){const {group:_0x1ead18,type:_0x114ee0,subType:_0x4d2462,id:_0x3e91de}=_0xf1d786['_splitMarkerName'](_0x5a3dbb);if(_0x424e('0x6c')==_0x1ead18&&_0xf1d786[_0x424e('0x38')](_0x3e91de)){if(_0x424e('0x33')==_0x114ee0&&('imageStylePreApply'==_0x4d2462||'imageStylePostApply'==_0x4d2462)){const _0x5d30df=_0xf1d786[_0x424e('0x54')](_0x3e91de);if(_0x42f9b5[_0x424e('0xb')]){const _0x1514c8=_0x5d30df[_0x424e('0x31')]()[_0x424e('0x7')]();if(_0x3c59f3[_0x424e('0x6f')](_0x1514c8))continue;_0xf1d786[_0x424e('0xd')](_0x5d30df),_0x1e90e4=!0x0;}}if(_0x424e('0x4b')==_0x114ee0&&'imageCaption'==_0x4d2462&&!_0x42f9b5[_0x424e('0xb')]){const _0x50e33f=_0xf1d786[_0x424e('0x54')](_0x3e91de);_0x50e33f['next']&&_0x50e33f[_0x424e('0x32')][_0x424e('0x70')]&&(_0xf1d786['discardSuggestion'](_0x50e33f[_0x424e('0x32')]),_0x1e90e4=!0x0);}}}return _0x1e90e4;}),_0x387459[_0x424e('0x77')][_0x424e('0x74')](_0x424e('0x1a'))&&_0xf1d786['enableCommand'](_0x424e('0x6d'),(_0x52c26f,_0x4ae756)=>{const _0x5cd063=_0x3c59f3[_0x424e('0x51')](_0x387459['model'][_0x424e('0x3b')][_0x424e('0x5b')]);_0x5cd063[_0x424e('0x5c')](_0x424e('0xc'))!=_0x4ae756[_0x424e('0xc')]&&_0x387459[_0x424e('0x64')][_0x424e('0x2a')](()=>{_0xf1d786['markBlockFormat'](_0x5cd063,{'commandName':'resizeImage','commandParams':[_0x4ae756]});});}),_0x387459['plugins']['has'](_0x424e('0x56'))&&_0xf1d786[_0x424e('0x42')](_0x424e('0xe'),(_0x5dc51e,_0x160859)=>{const _0x5b645c=_0x3c59f3[_0x424e('0x51')](_0x387459['model'][_0x424e('0x3b')][_0x424e('0x5b')]);(_0x5b645c[_0x424e('0x5e')](_0x424e('0x4a'))?_0x5b645c[_0x424e('0x5c')](_0x424e('0x4a')):'')!=_0x160859[_0x424e('0x7c')]&&_0x387459[_0x424e('0x64')][_0x424e('0x2a')](()=>{_0xf1d786['markBlockFormat'](_0x5b645c,{'commandName':_0x424e('0xe'),'commandParams':[_0x160859]});});}),_0xf1d786[_0x424e('0x20')][_0x424e('0x75')](_0x4e489e=>{if(!!_0x4f5b31[_0x424e('0x11')](({type:_0x1d495e,subType:_0x22caf1})=>_0x4e489e[_0x424e('0x50')]==_0x1d495e&&_0x4e489e[_0x424e('0x2f')]==_0x22caf1))return _0x4e489e[_0x424e('0x57')]?{}:void 0x0;}),_0xf1d786[_0x424e('0x20')][_0x424e('0x75')](_0x6b6fd5=>{if('insertion'==_0x6b6fd5['type']||'deletion'==_0x6b6fd5[_0x424e('0x50')]){const _0x351015=_0x6b6fd5[_0x424e('0x7')]();if(_0x351015&&_0x351015['is'](_0x424e('0x3c'),_0x424e('0x1f')))return{'type':_0x424e('0x4b')==_0x6b6fd5[_0x424e('0x50')]?_0x424e('0x12'):_0x424e('0x1'),'element':_0x351015,'quantity':0x1};}}),_0xf1d786[_0x424e('0x20')]['registerDescriptionCallback'](_0x597cfa=>_0x424e('0x33')==_0x597cfa[_0x424e('0x50')]&&'convertInlineImageToBlock'==_0x597cfa[_0x424e('0x2f')]?{'type':_0x424e('0x48'),'content':_0x424e('0x18')}:_0x424e('0x33')==_0x597cfa['type']&&'convertBlockImageToInline'==_0x597cfa[_0x424e('0x2f')]?{'type':_0x424e('0x48'),'content':_0x424e('0x6a')}:void 0x0),_0xf1d786[_0x424e('0x20')][_0x424e('0x75')](_0x4324be=>{const {data:_0x15a214}=_0x4324be;if(_0x15a214){if('imageStyle'==_0x15a214[_0x424e('0x8')]){const _0x414999=_0x15a214[_0x424e('0x41')][0x0][_0x424e('0x4c')];return _0x345e70(_0x424e('0x76')===_0x414999?_0x5b41f0(_0x4a8a97,_0x424e('0x29')):_0xbe39f3[_0x414999]||_0x414999);}if('imageTextAlternative'==_0x15a214['commandName']){const _0x56b276=_0x15a214[_0x424e('0x41')][0x0][_0x424e('0x7c')];return _0x56b276?{'type':'format','content':_0x5b41f0(_0x4a8a97,_0x424e('0x66'),'\x22'+_0x56b276+'\x22')}:{'type':_0x424e('0x48'),'content':_0x5b41f0(_0x4a8a97,_0x424e('0x2d'))};}if('resizeImage'==_0x15a214['commandName']){const _0x3d8bd6=_0x15a214[_0x424e('0x41')][0x0][_0x424e('0xc')];return _0x3d8bd6?{'type':_0x424e('0x48'),'content':_0x5b41f0(_0x4a8a97,_0x424e('0x58'),_0x3d8bd6)}:{'type':_0x424e('0x48'),'content':_0x5b41f0(_0x4a8a97,_0x424e('0x79'))};}}function _0x345e70(_0x403631){return{'type':'format','content':_0x5b41f0(_0x4a8a97,'*Format:*\x20%0',_0x403631)};}});}}
23
+ const _0x3223=['getClosestSelectedImageElement','ImageResize','locale','newRange','markDeletion','refresh','registerElementLabel','_splitMarkerName','getCaptionFromImageModelElement','start','accept','insertion','resizeImage','find','commands','nodeBefore','convertInlineImageToBlock','getAttribute','join','registerCustomCallback','selection','isInlineImage','plugins','toLowerCase','getSuggestions','hasAttribute','imageCaption','insertImage','ImageUploadEditing','imageTextAlternative','ImageEditing','*Format:*\x20%0','imageInline','forceDefaultExecution','forward','createRange','side','ImageCaptionEditing','width','getSuggestionCallback','name','format','ImageBlockEditing','_suggestionFactory','toPrevious','commandName','next','markInlineFormat','registerPostFixer','Users','newValue','toggleImageCaption','has','imageTypeInline','markBlockFormat','model','TrackChangesEditing','getNearestSelectionRange','change','detach','end','createRangeOn','FORMAT_SIDE_IMAGE','*Remove\x20image\x20text\x20alternative*','isIntersecting','document','ELEMENT_IMAGE','isEqual','isOwn','forEach','ImageCaptionUtils','convertBlockImageToInline','_findSuggestions','ELEMENT_CAPTION','author','addObject','imageStylePreApply','normalizedStyles','imageStyle','type','length','isBlockImage','formatInline','ImageStyleEditing','imageBlock','isBefore','chain','registerDescriptionCallback','_descriptionFactory','enableCommand','removeObject','isCollapsed','commandParams','*Set\x20image\x20width:*\x20%0','schema','discard','suggestion','formatBlock','caption','imageStylePostApply','getSuggestion','ImageUtils','alt','fromPosition','subType','isInContent','commandReversedParams','ELEMENT_INLINE_IMAGE','value','discardSuggestion','get','getFirstRange','filter','title','nodeAfter','hasSuggestion','imageTypeBlock','findIndex'];(function(_0x401095,_0x322348){const _0x20b188=function(_0x484ca9){while(--_0x484ca9){_0x401095['push'](_0x401095['shift']());}};_0x20b188(++_0x322348);}(_0x3223,0x171));const _0x20b1=function(_0x401095,_0x322348){_0x401095=_0x401095-0x0;let _0x20b188=_0x3223[_0x401095];return _0x20b188;};import{Plugin as _0x3dfca5}from'ckeditor5/src/core';import{LivePosition as _0x50e095}from'ckeditor5/src/engine';import{uid as _0x1971e4}from'ckeditor5/src/utils';import{getTranslation as _0x3779f5}from'../utils/common-translations';export default class X extends _0x3dfca5{['afterInit'](){const _0x2bfae8=this['editor'];if(!_0x2bfae8['plugins']['has'](_0x20b1('0xf')))return;const _0x38e1e8=_0x2bfae8['plugins'][_0x20b1('0x5f')](_0x20b1('0x29')),_0x53939c=_0x2bfae8[_0x20b1('0x7')][_0x20b1('0x5f')](_0x20b1('0x56')),_0x5f5160={},_0x3f413b=_0x2bfae8[_0x20b1('0x69')];if(_0x38e1e8[_0x20b1('0x4a')](_0x20b1('0xc')),_0x38e1e8[_0x20b1('0x49')]['registerElementLabel'](_0x20b1('0x45'),_0x119b7d=>_0x3779f5(_0x3f413b,_0x20b1('0x33'),_0x119b7d)),_0x38e1e8['_descriptionFactory'][_0x20b1('0x6d')](_0x20b1('0x11'),_0x3b6586=>_0x3779f5(_0x3f413b,_0x20b1('0x5c'),_0x3b6586)),_0x38e1e8[_0x20b1('0x49')][_0x20b1('0x6d')]('caption',()=>_0x3779f5(_0x3f413b,_0x20b1('0x3a'))),_0x2bfae8['plugins']['has'](_0x20b1('0xd'))&&_0x38e1e8[_0x20b1('0x4a')]('uploadImage'),_0x2bfae8[_0x20b1('0x7')]['has'](_0x20b1('0x1b'))&&_0x2bfae8[_0x20b1('0x7')][_0x20b1('0x25')]('ImageInlineEditing')&&(_0x38e1e8[_0x20b1('0x4a')]('imageTypeInline',(_0x35157d,_0x513a7a)=>{const _0x475fb0=_0x53939c[_0x20b1('0x67')](_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x32')][_0x20b1('0x5')]);_0x2bfae8['model'][_0x20b1('0x2b')](()=>{_0x38e1e8[_0x20b1('0x27')](_0x475fb0,{'commandName':'imageTypeInline','commandParams':[_0x513a7a]},[],_0x20b1('0x38'));});}),_0x38e1e8[_0x20b1('0x4a')](_0x20b1('0x65'),(_0x5032c0,_0x3860bc)=>{_0x2bfae8['model'][_0x20b1('0x2b')](_0x2e31d0=>{let _0x6c071=_0x53939c['getClosestSelectedImageElement'](_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x32')][_0x20b1('0x5')]),_0x254bff=_0x2e31d0['createRangeOn'](_0x6c071);const _0x37f15b=_0x50e095[_0x20b1('0x58')](_0x254bff['start'],_0x20b1('0x1d')),_0x225297=_0x50e095['fromPosition'](_0x254bff[_0x20b1('0x2d')],'toNext');_0x38e1e8[_0x20b1('0x12')](()=>_0x5032c0(_0x3860bc)),_0x6c071=_0x53939c[_0x20b1('0x67')](_0x2bfae8[_0x20b1('0x28')]['document'][_0x20b1('0x5')]),_0x254bff=_0x2e31d0[_0x20b1('0x2e')](_0x6c071);const _0x288ef6=_0x2e31d0[_0x20b1('0x14')](_0x37f15b,_0x225297);_0x37f15b[_0x20b1('0x2c')](),_0x225297[_0x20b1('0x2c')](),_0x38e1e8[_0x20b1('0x27')](_0x6c071,{'commandName':_0x20b1('0x26'),'commandParams':[]},[],_0x20b1('0x1')),_0x288ef6['start']['isBefore'](_0x254bff[_0x20b1('0x70')])&&_0x38e1e8['markInsertion'](_0x2e31d0[_0x20b1('0x14')](_0x288ef6[_0x20b1('0x70')],_0x254bff[_0x20b1('0x70')]),_0x20b1('0x1')),_0x254bff[_0x20b1('0x2d')][_0x20b1('0x46')](_0x288ef6['end'])&&_0x38e1e8['markInsertion'](_0x2e31d0[_0x20b1('0x14')](_0x254bff['end'],_0x288ef6[_0x20b1('0x2d')]),_0x20b1('0x1'));});}),_0x38e1e8[_0x20b1('0x1c')][_0x20b1('0x4')]('formatBlock',_0x20b1('0x1'),_0x20b1('0x3'),()=>{}),_0x38e1e8[_0x20b1('0x1c')][_0x20b1('0x4')](_0x20b1('0x52'),_0x20b1('0x1'),_0x20b1('0x71'),()=>{}),_0x38e1e8[_0x20b1('0x1c')][_0x20b1('0x4')]('formatBlock',_0x20b1('0x1'),_0x20b1('0x50'),_0x38e1e8['_suggestionFactory'][_0x20b1('0x18')](_0x20b1('0x52'),'',_0x20b1('0x71'))),_0x38e1e8['_suggestionFactory'][_0x20b1('0x4')](_0x20b1('0x72'),_0x20b1('0x1'),'join',()=>{}),_0x38e1e8[_0x20b1('0x1c')]['registerCustomCallback'](_0x20b1('0x72'),_0x20b1('0x1'),'discard',([_0x3bbbf5])=>{const _0x3fc45b=_0x38e1e8[_0x20b1('0x1c')]['getSuggestionCallback']('insertion','',_0x20b1('0x50'));let _0x2f40e0=_0x3bbbf5[_0x20b1('0x70')],_0x249870=_0x3bbbf5[_0x20b1('0x2d')];const _0x213a33=_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x4f')][_0x20b1('0x2a')](_0x2f40e0,'backward'),_0x5a6a39=_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x4f')][_0x20b1('0x2a')](_0x249870,_0x20b1('0x13'));_0x213a33['isCollapsed']&&(_0x2f40e0=_0x213a33['start']),_0x5a6a39[_0x20b1('0x4c')]&&(_0x249870=_0x5a6a39[_0x20b1('0x2d')]),_0x3fc45b([_0x2bfae8[_0x20b1('0x28')]['createRange'](_0x2f40e0,_0x249870)]);}),_0x38e1e8[_0x20b1('0x1c')][_0x20b1('0x4')](_0x20b1('0x52'),_0x20b1('0x1'),_0x20b1('0x47'),_0x73ad53),_0x38e1e8[_0x20b1('0x1c')][_0x20b1('0x4')](_0x20b1('0x72'),_0x20b1('0x1'),'chain',_0x73ad53)),_0x2bfae8[_0x20b1('0x7')]['has'](_0x20b1('0x16'))&&(_0x38e1e8[_0x20b1('0x4a')](_0x20b1('0x24'),(_0x1ff802,_0x4baf2f)=>{const _0x21154a=_0x2bfae8['plugins']['get'](_0x20b1('0x37'));let _0x3a5171=_0x53939c[_0x20b1('0x67')](_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x32')][_0x20b1('0x5')]),_0x31afa0=_0x21154a[_0x20b1('0x6f')](_0x3a5171);_0x2bfae8['model'][_0x20b1('0x2b')](()=>{if(_0x31afa0)return void _0x38e1e8[_0x20b1('0x6b')](_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x2e')](_0x31afa0));const _0x29530c=_0x53939c[_0x20b1('0x42')](_0x3a5171);_0x1ff802(_0x4baf2f),_0x3a5171=_0x53939c[_0x20b1('0x67')](_0x2bfae8['model'][_0x20b1('0x32')][_0x20b1('0x5')]),_0x31afa0=_0x21154a[_0x20b1('0x6f')](_0x3a5171),_0x38e1e8['markInsertion'](_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x2e')](_0x31afa0),_0x29530c?null:'imageCaption');});}),_0x38e1e8[_0x20b1('0x1c')]['registerCustomCallback']('insertion',_0x20b1('0xb'),_0x20b1('0x47'),_0x73ad53)),_0x2bfae8[_0x20b1('0x7')][_0x20b1('0x25')]('ImageStyleEditing')){_0x38e1e8[_0x20b1('0x4a')](_0x20b1('0x3f'),(_0x1c31aa,_0x29c9ec)=>{const _0x1bb4b0=_0x2bfae8['plugins'][_0x20b1('0x5f')](_0x20b1('0x22'))['me'],_0x59cd53=_0x2bfae8[_0x20b1('0x75')][_0x20b1('0x5f')]('imageStyle');let _0x57a512=_0x53939c[_0x20b1('0x67')](_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x32')][_0x20b1('0x5')]),_0x195edb=_0x2bfae8[_0x20b1('0x28')]['createRangeOn'](_0x57a512),_0x49b642=_0x59cd53[_0x20b1('0x5d')];if(_0x49b642==_0x29c9ec[_0x20b1('0x5d')])return;const _0x3679e2={'commandName':_0x20b1('0x3f'),'commandParams':[_0x29c9ec],'formatGroupId':_0x1971e4()};_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x2b')](()=>{if(_0x38e1e8[_0x20b1('0x9')]()[_0x20b1('0x61')](_0x10aae2=>_0x10aae2[_0x20b1('0x5a')]&&_0x1bb4b0==_0x10aae2[_0x20b1('0x3b')]&&(_0x20b1('0x52')==_0x10aae2['type']||_0x20b1('0x43')==_0x10aae2[_0x20b1('0x40')])&&(_0x20b1('0x3d')==_0x10aae2[_0x20b1('0x59')]||'imageStylePostApply'==_0x10aae2[_0x20b1('0x59')])&&_0x10aae2['getFirstRange']()[_0x20b1('0x34')](_0x195edb))[_0x20b1('0x36')](_0x48d508=>_0x38e1e8[_0x20b1('0x5e')](_0x48d508['head'])),_0x57a512=_0x53939c[_0x20b1('0x67')](_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x32')][_0x20b1('0x5')]),_0x195edb=_0x2bfae8[_0x20b1('0x28')]['createRangeOn'](_0x57a512),_0x59cd53[_0x20b1('0x6c')](),_0x2bfae8[_0x20b1('0x75')][_0x20b1('0x5f')](_0x20b1('0x26'))[_0x20b1('0x6c')](),_0x2bfae8[_0x20b1('0x75')][_0x20b1('0x5f')](_0x20b1('0x65'))[_0x20b1('0x6c')](),_0x49b642=_0x59cd53[_0x20b1('0x5d')],_0x49b642!=_0x29c9ec[_0x20b1('0x5d')])return _0x53939c[_0x20b1('0x6')](_0x57a512)&&_0x59cd53['shouldConvertImageType'](_0x29c9ec[_0x20b1('0x5d')],_0x57a512)?(_0x1c31aa(_0x29c9ec),_0x57a512=_0x53939c[_0x20b1('0x67')](_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x32')][_0x20b1('0x5')]),void _0x38e1e8[_0x20b1('0x27')](_0x57a512,{..._0x3679e2,'commandReversedParams':[{'value':_0x49b642||null}]},[],'imageStylePreApply')):void(_0x53939c[_0x20b1('0x42')](_0x57a512)?_0x38e1e8[_0x20b1('0x27')](_0x57a512,_0x3679e2,[],_0x20b1('0x54')):_0x38e1e8[_0x20b1('0x20')](_0x195edb,_0x3679e2,_0x20b1('0x54')));});});for(const _0x485d9c of _0x2bfae8[_0x20b1('0x7')][_0x20b1('0x5f')](_0x20b1('0x44'))[_0x20b1('0x3e')])_0x5f5160[_0x485d9c[_0x20b1('0x19')]]=_0x485d9c[_0x20b1('0x62')][_0x20b1('0x8')]();_0x38e1e8[_0x20b1('0x1c')][_0x20b1('0x4')](_0x20b1('0x52'),'imageStylePreApply',_0x20b1('0x3'),()=>{}),_0x38e1e8['_suggestionFactory'][_0x20b1('0x4')](_0x20b1('0x52'),_0x20b1('0x54'),'join',()=>{}),_0x38e1e8[_0x20b1('0x1c')][_0x20b1('0x4')](_0x20b1('0x43'),_0x20b1('0x54'),_0x20b1('0x3'),()=>{}),_0x38e1e8[_0x20b1('0x1c')]['registerCustomCallback']('formatBlock','imageStylePreApply',_0x20b1('0x71'),()=>{}),_0x38e1e8['_suggestionFactory'][_0x20b1('0x4')](_0x20b1('0x52'),_0x20b1('0x3d'),_0x20b1('0x50'),(_0x14f601,_0x510edf)=>{_0x38e1e8[_0x20b1('0x1c')][_0x20b1('0x18')](_0x20b1('0x52'),'','accept')(_0x14f601,{'commandName':_0x510edf['commandName'],'commandParams':_0x510edf[_0x20b1('0x5b')]});}),_0x38e1e8['_suggestionFactory'][_0x20b1('0x4')](_0x20b1('0x52'),_0x20b1('0x3d'),_0x20b1('0x47'),_0x73ad53);}const _0x303645=[{'type':_0x20b1('0x52'),'subType':_0x20b1('0x3d')},{'type':_0x20b1('0x72'),'subType':'imageCaption'},{'type':_0x20b1('0x52'),'subType':'convertInlineImageToBlock'},{'type':_0x20b1('0x72'),'subType':_0x20b1('0x1')}];function _0x5b620b(_0x135d16,_0x42b294){const _0x5784b8=_0x303645[_0x20b1('0x66')](({type:_0x4c4114,subType:_0x162335})=>_0x135d16[_0x20b1('0x40')]==_0x4c4114&&_0x135d16['subType']==_0x162335),_0x128e5e=_0x303645[_0x20b1('0x66')](({type:_0x2619b7,subType:_0x271516})=>_0x42b294['type']==_0x2619b7&&_0x42b294[_0x20b1('0x59')]==_0x271516);if(_0x5784b8<0x0||_0x128e5e<0x0)return!0x1;const _0x29ac99=_0x135d16['getFirstRange'](),_0x13e5a9=_0x42b294[_0x20b1('0x60')]();if((0x0==_0x5784b8||0x1==_0x5784b8)&&0x2==_0x128e5e&&_0x29ac99[_0x20b1('0x31')](_0x13e5a9))return!0x0;if(0x2==_0x5784b8&&0x3==_0x128e5e){const _0x8505f5=_0x38e1e8[_0x20b1('0x39')](_0x29ac99,_0x20b1('0x72'))[_0x20b1('0x61')](({suggestion:_0x3cd3a3,meta:_0x43df92})=>_0x43df92[_0x20b1('0x35')]&&_0x20b1('0x1')==_0x3cd3a3[_0x20b1('0x59')]);if(_0x8505f5[_0x20b1('0x41')]>0x1&&_0x13e5a9[_0x20b1('0x2d')][_0x20b1('0x34')](_0x29ac99[_0x20b1('0x70')]))return!0x0;if(0x1==_0x8505f5[_0x20b1('0x41')]&&(_0x29ac99[_0x20b1('0x70')][_0x20b1('0x34')](_0x13e5a9[_0x20b1('0x2d')])||_0x29ac99[_0x20b1('0x2d')]['isEqual'](_0x13e5a9[_0x20b1('0x70')])))return!0x0;}if(0x3==_0x5784b8&&0x3==_0x128e5e&&_0x29ac99['start']['isBefore'](_0x13e5a9[_0x20b1('0x70')])){const _0x592a59=_0x29ac99[_0x20b1('0x2d')][_0x20b1('0x63')],_0x1c512f=_0x13e5a9[_0x20b1('0x70')][_0x20b1('0x0')];return _0x53939c[_0x20b1('0x42')](_0x592a59)&&_0x592a59===_0x1c512f;}return!0x1;}function _0x73ad53(_0x4cd0f7,_0x415428){return _0x5b620b(_0x4cd0f7,_0x415428)?[_0x4cd0f7,_0x415428]:_0x5b620b(_0x415428,_0x4cd0f7)?[_0x415428,_0x4cd0f7]:null;}_0x2bfae8[_0x20b1('0x28')]['document'][_0x20b1('0x21')](()=>{let _0x298347=!0x1;const _0x267914=Array['from'](_0x2bfae8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x259995,data:_0x3cde82}of _0x267914){const {group:_0x4dbcbe,type:_0x2b00ba,subType:_0x496ffc,id:_0x232005}=_0x38e1e8[_0x20b1('0x6e')](_0x259995);if(_0x20b1('0x51')==_0x4dbcbe&&_0x38e1e8[_0x20b1('0x64')](_0x232005)){if(_0x20b1('0x52')==_0x2b00ba&&(_0x20b1('0x3d')==_0x496ffc||_0x20b1('0x54')==_0x496ffc)){const _0x24519b=_0x38e1e8[_0x20b1('0x55')](_0x232005);if(_0x3cde82[_0x20b1('0x6a')]){const _0x534806=_0x24519b['getFirstRange']()['getContainedElement']();if(_0x53939c[_0x20b1('0x42')](_0x534806))continue;_0x38e1e8[_0x20b1('0x5e')](_0x24519b),_0x298347=!0x0;}}if(_0x20b1('0x72')==_0x2b00ba&&_0x20b1('0xb')==_0x496ffc&&!_0x3cde82['newRange']){const _0xd247e3=_0x38e1e8[_0x20b1('0x55')](_0x232005);_0xd247e3[_0x20b1('0x1f')]&&_0xd247e3[_0x20b1('0x1f')]['isInContent']&&(_0x38e1e8['discardSuggestion'](_0xd247e3[_0x20b1('0x1f')]),_0x298347=!0x0);}}}return _0x298347;}),_0x2bfae8['plugins']['has'](_0x20b1('0x68'))&&_0x38e1e8[_0x20b1('0x4a')](_0x20b1('0x73'),(_0x2fcb6a,_0x3d016e)=>{const _0xfd9c4f=_0x53939c[_0x20b1('0x67')](_0x2bfae8['model'][_0x20b1('0x32')][_0x20b1('0x5')]);_0xfd9c4f[_0x20b1('0x2')]('width')!=_0x3d016e[_0x20b1('0x17')]&&_0x2bfae8[_0x20b1('0x28')]['change'](()=>{_0x38e1e8[_0x20b1('0x27')](_0xfd9c4f,{'commandName':_0x20b1('0x73'),'commandParams':[_0x3d016e]});});}),_0x2bfae8[_0x20b1('0x7')][_0x20b1('0x25')]('ImageTextAlternativeEditing')&&_0x38e1e8[_0x20b1('0x4a')](_0x20b1('0xe'),(_0x153cf1,_0x561676)=>{const _0x2fc1f4=_0x53939c['getClosestSelectedImageElement'](_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x32')][_0x20b1('0x5')]);(_0x2fc1f4[_0x20b1('0xa')](_0x20b1('0x57'))?_0x2fc1f4['getAttribute'](_0x20b1('0x57')):'')!=_0x561676[_0x20b1('0x23')]&&_0x2bfae8[_0x20b1('0x28')][_0x20b1('0x2b')](()=>{_0x38e1e8[_0x20b1('0x27')](_0x2fc1f4,{'commandName':_0x20b1('0xe'),'commandParams':[_0x561676]});});}),_0x38e1e8['_descriptionFactory'][_0x20b1('0x48')](_0x5f72ea=>{if(!!_0x303645[_0x20b1('0x74')](({type:_0x505c86,subType:_0x7b71bf})=>_0x5f72ea['type']==_0x505c86&&_0x5f72ea[_0x20b1('0x59')]==_0x7b71bf))return _0x5f72ea['previous']?{}:void 0x0;}),_0x38e1e8[_0x20b1('0x49')]['registerDescriptionCallback'](_0x569336=>{if(_0x20b1('0x72')==_0x569336['type']||'deletion'==_0x569336[_0x20b1('0x40')]){const _0x3b81c1=_0x569336['getContainedElement']();if(_0x3b81c1&&_0x3b81c1['is']('element',_0x20b1('0x53')))return{'type':_0x20b1('0x72')==_0x569336[_0x20b1('0x40')]?_0x20b1('0x3c'):_0x20b1('0x4b'),'element':_0x3b81c1,'quantity':0x1};}}),_0x38e1e8[_0x20b1('0x49')][_0x20b1('0x48')](_0x409db2=>_0x20b1('0x52')==_0x409db2[_0x20b1('0x40')]&&_0x20b1('0x1')==_0x409db2['subType']?{'type':_0x20b1('0x1a'),'content':'Inline\x20image\x20to\x20block\x20image'}:_0x20b1('0x52')==_0x409db2['type']&&_0x20b1('0x38')==_0x409db2[_0x20b1('0x59')]?{'type':_0x20b1('0x1a'),'content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x38e1e8['_descriptionFactory'][_0x20b1('0x48')](_0xc25646=>{const {data:_0x41c144}=_0xc25646;if(_0x41c144){if(_0x20b1('0x3f')==_0x41c144['commandName']){const _0x165cc6=_0x41c144[_0x20b1('0x4d')][0x0][_0x20b1('0x5d')];return _0x2e2759(_0x20b1('0x15')===_0x165cc6?_0x3779f5(_0x3f413b,_0x20b1('0x2f')):_0x5f5160[_0x165cc6]||_0x165cc6);}if('imageTextAlternative'==_0x41c144['commandName']){const _0x4d1705=_0x41c144[_0x20b1('0x4d')][0x0][_0x20b1('0x23')];return _0x4d1705?{'type':_0x20b1('0x1a'),'content':_0x3779f5(_0x3f413b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d1705+'\x22')}:{'type':_0x20b1('0x1a'),'content':_0x3779f5(_0x3f413b,_0x20b1('0x30'))};}if('resizeImage'==_0x41c144[_0x20b1('0x1e')]){const _0x499f63=_0x41c144['commandParams'][0x0][_0x20b1('0x17')];return _0x499f63?{'type':_0x20b1('0x1a'),'content':_0x3779f5(_0x3f413b,_0x20b1('0x4e'),_0x499f63)}:{'type':_0x20b1('0x1a'),'content':_0x3779f5(_0x3f413b,'*Reset\x20image\x20width*')};}}function _0x2e2759(_0x47062b){return{'type':_0x20b1('0x1a'),'content':_0x3779f5(_0x3f413b,_0x20b1('0x10'),_0x47062b)};}});}}
@@ -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/imagereplace
3
7
  */