@ckeditor/ckeditor5-track-changes 37.0.0 → 37.1.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 (162) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -0
  49. package/lang/translations/ar.po +15 -1
  50. package/lang/translations/az.po +11 -1
  51. package/lang/translations/bg.po +11 -1
  52. package/lang/translations/bn.po +11 -1
  53. package/lang/translations/ca.po +11 -1
  54. package/lang/translations/cs.po +13 -1
  55. package/lang/translations/da.po +11 -1
  56. package/lang/translations/de.po +11 -1
  57. package/lang/translations/el.po +11 -1
  58. package/lang/translations/en-au.po +11 -1
  59. package/lang/translations/en.po +10 -0
  60. package/lang/translations/es.po +12 -1
  61. package/lang/translations/et.po +11 -1
  62. package/lang/translations/fi.po +11 -1
  63. package/lang/translations/fr.po +12 -1
  64. package/lang/translations/gl.po +11 -1
  65. package/lang/translations/he.po +13 -1
  66. package/lang/translations/hi.po +11 -1
  67. package/lang/translations/hr.po +12 -1
  68. package/lang/translations/hu.po +11 -1
  69. package/lang/translations/id.po +10 -1
  70. package/lang/translations/it.po +12 -1
  71. package/lang/translations/ja.po +10 -1
  72. package/lang/translations/ko.po +10 -1
  73. package/lang/translations/lt.po +13 -1
  74. package/lang/translations/lv.po +12 -1
  75. package/lang/translations/ms.po +10 -1
  76. package/lang/translations/nl.po +11 -1
  77. package/lang/translations/no.po +11 -1
  78. package/lang/translations/pl.po +13 -1
  79. package/lang/translations/pt-br.po +12 -1
  80. package/lang/translations/pt.po +12 -1
  81. package/lang/translations/ro.po +12 -1
  82. package/lang/translations/ru.po +13 -1
  83. package/lang/translations/sk.po +13 -1
  84. package/lang/translations/sr-latn.po +12 -1
  85. package/lang/translations/sr.po +33 -22
  86. package/lang/translations/sv.po +11 -1
  87. package/lang/translations/th.po +10 -1
  88. package/lang/translations/tk.po +11 -1
  89. package/lang/translations/tr.po +11 -1
  90. package/lang/translations/tt.po +10 -1
  91. package/lang/translations/uk.po +13 -1
  92. package/lang/translations/ur.po +11 -1
  93. package/lang/translations/vi.po +10 -1
  94. package/lang/translations/zh-cn.po +10 -1
  95. package/lang/translations/zh.po +10 -1
  96. package/package.json +3 -3
  97. package/src/commands/acceptsuggestioncommand.js +1 -1
  98. package/src/commands/discardsuggestioncommand.js +1 -1
  99. package/src/commands/executeonallsuggestionscommand.js +1 -1
  100. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  101. package/src/commands/trackchangescommand.js +1 -1
  102. package/src/index.d.ts +1 -1
  103. package/src/integrations/alignment.js +1 -1
  104. package/src/integrations/basicstyles.js +1 -1
  105. package/src/integrations/blockquote.js +1 -1
  106. package/src/integrations/ckbox.js +1 -1
  107. package/src/integrations/codeblock.js +1 -1
  108. package/src/integrations/comments.js +1 -1
  109. package/src/integrations/deletecommand.js +1 -1
  110. package/src/integrations/documentlist.js +1 -1
  111. package/src/integrations/documentlistproperties.js +1 -1
  112. package/src/integrations/entercommand.js +1 -1
  113. package/src/integrations/findandreplace.js +1 -1
  114. package/src/integrations/font.js +1 -1
  115. package/src/integrations/formatpainter.d.ts +13 -0
  116. package/src/integrations/formatpainter.js +23 -0
  117. package/src/integrations/heading.js +1 -1
  118. package/src/integrations/highlight.js +1 -1
  119. package/src/integrations/horizontalline.js +1 -1
  120. package/src/integrations/htmlembed.js +1 -1
  121. package/src/integrations/image.js +1 -1
  122. package/src/integrations/imagereplace.js +1 -1
  123. package/src/integrations/importword.js +1 -1
  124. package/src/integrations/indent.js +1 -1
  125. package/src/integrations/inputcommand.js +1 -1
  126. package/src/integrations/link.js +1 -1
  127. package/src/integrations/list.js +1 -1
  128. package/src/integrations/listproperties.js +1 -1
  129. package/src/integrations/mediaembed.js +1 -1
  130. package/src/integrations/mention.js +1 -1
  131. package/src/integrations/pagebreak.js +1 -1
  132. package/src/integrations/paragraph.js +1 -1
  133. package/src/integrations/removeformat.js +1 -1
  134. package/src/integrations/restrictededitingmode.js +1 -1
  135. package/src/integrations/shiftentercommand.js +1 -1
  136. package/src/integrations/standardeditingmode.js +1 -1
  137. package/src/integrations/style.js +1 -1
  138. package/src/integrations/table.js +1 -1
  139. package/src/integrations/tablecaption.js +1 -1
  140. package/src/integrations/tableclipboard.js +1 -1
  141. package/src/integrations/tablecolumnresize.js +1 -1
  142. package/src/integrations/tableheadings.js +1 -1
  143. package/src/integrations/tablemergesplit.js +1 -1
  144. package/src/integrations/tableofcontents.d.ts +13 -0
  145. package/src/integrations/tableofcontents.js +23 -0
  146. package/src/integrations/tableproperties.js +1 -1
  147. package/src/integrations/template.d.ts +13 -0
  148. package/src/integrations/template.js +23 -0
  149. package/src/integrations/title.js +1 -1
  150. package/src/integrations/undo.js +1 -1
  151. package/src/integrations/utils.js +1 -1
  152. package/src/suggestion.js +1 -1
  153. package/src/suggestiondescriptionfactory.js +1 -1
  154. package/src/trackchanges.js +1 -1
  155. package/src/trackchangesdata.js +1 -1
  156. package/src/trackchangesediting.js +1 -1
  157. package/src/trackchangesui.js +1 -1
  158. package/src/ui/suggestioncontroller.js +1 -1
  159. package/src/ui/view/basesuggestionthreadview.js +1 -1
  160. package/src/ui/view/suggestionthreadview.js +1 -1
  161. package/src/utils/common-translations.js +1 -1
  162. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x53e8=['FORMAT_HEADER_COLUMN','FORMAT_REGULAR_ROW','commandParams','format','downcastDispatcher','document','TableUtils','*Format:*\x20%0','item','forceValue','data','table','getCellLocation','writer','accept','index','createRange','selection','formatBlock','registerDescriptionCallback','ck-suggestion-marker--active','toViewElement','mapper','removeAttribute','includes','has','addMarker:suggestion','afterInit','enableCommand','addClass','start','getAttribute','from','isBefore','setAttribute','_descriptionFactory','getSuggestion','markerName','locale','markBlockFormat','setTableColumnHeader','getRowIndexes','setTableRowHeader','ck-suggestion-marker-','commands','cell','_suggestionFactory','findAncestor','value','createPositionBefore','highest','showSuggestionHighlights','end','first','editing','removeClass','getSelectionAffectedTableCells','markerRange','plugins','FORMAT_REGULAR_COLUMN','markerNameToElements','getChild','nodeBefore','parent','createPositionAfter','commandName','_splitMarkerName','bindElementToMarker','createTableWalker','model','unbindElementFromMarkerName','change','stop','get','options','removeMarker:suggestion','requires','editor','TrackChangesEditing','headingColumns','FORMAT_HEADER_ROW','registerCustomCallback'];(function(_0x464a30,_0x53e8e1){const _0x2fe439=function(_0x74dc39){while(--_0x74dc39){_0x464a30['push'](_0x464a30['shift']());}};_0x2fe439(++_0x53e8e1);}(_0x53e8,0x18b));const _0x2fe4=function(_0x464a30,_0x53e8e1){_0x464a30=_0x464a30-0x0;let _0x2fe439=_0x53e8[_0x464a30];return _0x2fe439;};import{Plugin as _0x4779a1}from'ckeditor5/src/core';import _0x2aac2f from'./table';import{getTranslation as _0x5a444b}from'../utils/common-translations';export default class dt extends _0x4779a1{static get[_0x2fe4('0x9')](){return[_0x2aac2f];}[_0x2fe4('0x2a')](){const _0x4e3137=this[_0x2fe4('0xa')];if(!_0x4e3137[_0x2fe4('0x49')][_0x2fe4('0x28')]('TableEditing'))return;const _0x20fcc5=_0x4e3137[_0x2fe4('0x35')],_0x5c065b=_0x4e3137[_0x2fe4('0x49')][_0x2fe4('0x6')](_0x2fe4('0xb')),_0x187162=_0x4e3137[_0x2fe4('0x49')][_0x2fe4('0x6')](_0x2fe4('0x15')),_0x5f3ad9=_0x4e3137[_0x2fe4('0x49')][_0x2fe4('0x6')](_0x2aac2f);function _0x67d539({showActiveMarker:_0x5282ef=!0x0,setDataAttribute:_0x308b99=!0x0}={}){return(_0x53bf3a,_0x1aac72,_0x34556a)=>{const {type:_0x39b67a,id:_0x13f227}=_0x5c065b[_0x2fe4('0x51')](_0x1aac72[_0x2fe4('0x34')]),_0x579db4=_0x5c065b[_0x2fe4('0x33')](_0x13f227);if(!_0x579db4[_0x2fe4('0x19')]||_0x2fe4('0x37')!=_0x579db4[_0x2fe4('0x19')][_0x2fe4('0x50')])return;if(_0x1aac72[_0x2fe4('0x17')])return void _0x53bf3a[_0x2fe4('0x5')]();if(!_0x34556a['consumable']['consume'](_0x1aac72['markerRange'],_0x53bf3a['name']))return;const _0x32782d=_0x1aac72['markerRange'][_0x2fe4('0x2d')]['nodeAfter'],_0xb1adf8=_0x1aac72[_0x2fe4('0x48')][_0x2fe4('0x43')][_0x2fe4('0x4d')],_0x4253de=_0x32782d[_0x2fe4('0x4e')][_0x2fe4('0x4e')],{column:_0x346e6f}=_0x187162['getCellLocation'](_0x32782d),{column:_0xc5ae20}=_0x187162[_0x2fe4('0x1b')](_0xb1adf8);for(let _0x183de9=_0x346e6f;_0x183de9<=_0xc5ae20;_0x183de9++){const _0x5a84d8=_0x187162[_0x2fe4('0x1')](_0x4253de,{'column':_0x183de9,'includeAllSlots':!0x1});for(const _0x16429e of _0x5a84d8){const _0x381716=_0x16429e['cell'],_0x25917e=_0x34556a[_0x2fe4('0x25')][_0x2fe4('0x24')](_0x381716);_0x34556a[_0x2fe4('0x1c')][_0x2fe4('0x2c')](_0x2fe4('0x3a')+_0x39b67a,_0x25917e),_0x308b99&&_0x34556a['writer'][_0x2fe4('0x31')]('data-suggestion',_0x13f227,_0x25917e),_0x34556a[_0x2fe4('0x25')][_0x2fe4('0x0')](_0x25917e,_0x1aac72[_0x2fe4('0x34')]),_0x5282ef&&(_0x5c065b['activeMarkers'][_0x2fe4('0x27')](_0x1aac72[_0x2fe4('0x34')])?_0x34556a[_0x2fe4('0x1c')][_0x2fe4('0x2c')](_0x2fe4('0x23'),_0x25917e):_0x34556a[_0x2fe4('0x1c')][_0x2fe4('0x46')](_0x2fe4('0x23'),_0x25917e));}}};}_0x5c065b[_0x2fe4('0x2b')]('setTableRowHeader',(_0x21c8aa,_0x44bd8f)=>{const _0xcb2597=_0x187162['getSelectionAffectedTableCells'](_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x14')]['selection']),_0x9cd5fb=_0x187162[_0x2fe4('0x38')](_0xcb2597),_0x42f02e=_0xcb2597[0x0][_0x2fe4('0x3e')](_0x2fe4('0x1a')),_0x118185=_0x42f02e[_0x2fe4('0x2e')]('headingRows')||0x0,_0x669243=_0x44bd8f&&null!==_0x44bd8f[_0x2fe4('0x18')]?_0x44bd8f['forceValue']:!_0x4e3137[_0x2fe4('0x3b')][_0x2fe4('0x6')](_0x2fe4('0x39'))[_0x2fe4('0x3f')],_0x2ec2ea=_0x669243?_0x9cd5fb['last']:_0x9cd5fb[_0x2fe4('0x44')],_0x5704b2=_0x42f02e[_0x2fe4('0x4c')](_0x2ec2ea);let _0x2dd369;if(_0x669243){const _0x2883d7=_0x42f02e[_0x2fe4('0x4c')](_0x118185);if(_0x5704b2[_0x2fe4('0x1e')]<_0x2883d7[_0x2fe4('0x1e')])return;_0x2dd369=_0x4e3137['model']['createRange'](_0x4e3137[_0x2fe4('0x2')]['createPositionBefore'](_0x2883d7[_0x2fe4('0x4c')](0x0)),_0x4e3137['model'][_0x2fe4('0x4f')](_0x5704b2[_0x2fe4('0x4c')](_0x5704b2['childCount']-0x1)));}else{const _0x4d06aa=_0x42f02e[_0x2fe4('0x4c')](_0x118185-0x1);if(!_0x4d06aa)return;_0x2dd369=_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x1f')](_0x4e3137['model'][_0x2fe4('0x40')](_0x5704b2[_0x2fe4('0x4c')](0x0)),_0x4e3137['model'][_0x2fe4('0x4f')](_0x4d06aa[_0x2fe4('0x4c')](_0x4d06aa['childCount']-0x1)));}_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x4')](()=>{_0x5c065b['markBlockFormat'](_0x2dd369,{'commandName':_0x2fe4('0x39'),'commandParams':[{'forceValue':_0x669243}]},[],_0x2fe4('0x39'));});}),_0x5c065b['enableCommand'](_0x2fe4('0x37'),(_0x32e627,_0x380de0)=>{const _0x5bf90d=_0x4e3137[_0x2fe4('0x49')][_0x2fe4('0x6')](_0x2fe4('0x15')),_0x255cc8=_0x5bf90d[_0x2fe4('0x47')](_0x4e3137['model'][_0x2fe4('0x14')][_0x2fe4('0x20')]),_0x3ca8d9=_0x5bf90d['getColumnIndexes'](_0x255cc8),_0x24cd87=_0x255cc8[0x0]['findAncestor'](_0x2fe4('0x1a')),_0x43403e=_0x24cd87[_0x2fe4('0x2e')](_0x2fe4('0xc'))||0x0,_0x312cc3=_0x380de0&&null!==_0x380de0['forceValue']?_0x380de0['forceValue']:!_0x4e3137['commands'][_0x2fe4('0x6')](_0x2fe4('0x37'))[_0x2fe4('0x3f')];let _0x1b440f;const _0x230a00=_0x24cd87[_0x2fe4('0x4c')](0x0),_0x3ceb9b=_0x312cc3?_0x3ca8d9['last']:_0x3ca8d9[_0x2fe4('0x44')],_0x388d97=_0x5bf90d[_0x2fe4('0x1')](_0x24cd87,{'startRow':0x0,'column':_0x3ceb9b,'includeAllSlots':!0x1}),_0x32f00d=Array[_0x2fe4('0x2f')](_0x388d97)[0x0][_0x2fe4('0x3c')];if(_0x312cc3){const _0x493af6=_0x230a00[_0x2fe4('0x4c')](_0x43403e);if(_0x32f00d[_0x2fe4('0x30')](_0x493af6))return;_0x1b440f=_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x1f')](_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x40')](_0x493af6),_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x4f')](_0x32f00d));}else{const _0x2c38fc=_0x230a00[_0x2fe4('0x4c')](_0x43403e-0x1);if(!_0x2c38fc)return;_0x1b440f=_0x4e3137[_0x2fe4('0x2')]['createRange'](_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x40')](_0x32f00d),_0x4e3137[_0x2fe4('0x2')][_0x2fe4('0x4f')](_0x2c38fc));}_0x4e3137[_0x2fe4('0x2')]['change'](()=>{_0x5c065b[_0x2fe4('0x36')](_0x1b440f,{'commandName':_0x2fe4('0x37'),'commandParams':[{'forceValue':_0x312cc3}]},[],_0x2fe4('0x37'));});}),_0x4e3137[_0x2fe4('0x45')][_0x2fe4('0x13')]['on'](_0x2fe4('0x29'),_0x67d539(),{'priority':_0x2fe4('0x41')}),_0x4e3137[_0x2fe4('0x19')][_0x2fe4('0x13')]['on'](_0x2fe4('0x29'),(_0x4da3f4,_0x4d1e6b,_0x59d23f)=>{_0x59d23f[_0x2fe4('0x7')][_0x2fe4('0x42')]&&_0x67d539({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4da3f4,_0x4d1e6b,_0x59d23f);},{'priority':'highest'}),_0x4e3137['editing'][_0x2fe4('0x13')]['on'](_0x2fe4('0x8'),(_0x1f11db,_0x2d1c8e,_0x5a60fe)=>{const {type:_0x461884,id:_0x32be13}=_0x5c065b[_0x2fe4('0x51')](_0x2d1c8e[_0x2fe4('0x34')]),_0xc852ce=_0x5c065b[_0x2fe4('0x33')](_0x32be13);if(!_0xc852ce[_0x2fe4('0x19')]||'setTableColumnHeader'!=_0xc852ce[_0x2fe4('0x19')][_0x2fe4('0x50')])return;const _0x43329c=_0x5a60fe['mapper'][_0x2fe4('0x4b')](_0x2d1c8e[_0x2fe4('0x34')]);if(_0x43329c)for(const _0x26db02 of _0x43329c)_0x5a60fe[_0x2fe4('0x1c')][_0x2fe4('0x46')](_0x2fe4('0x3a')+_0x461884,_0x26db02),_0x5a60fe[_0x2fe4('0x1c')][_0x2fe4('0x46')]('ck-suggestion-marker--active',_0x26db02),_0x5a60fe[_0x2fe4('0x1c')][_0x2fe4('0x26')]('data-suggestion',_0x26db02),_0x5a60fe[_0x2fe4('0x25')][_0x2fe4('0x3')](_0x26db02,_0x2d1c8e[_0x2fe4('0x34')]);},{'priority':'highest'}),_0x5c065b[_0x2fe4('0x32')][_0x2fe4('0x22')](_0x3bc7a7=>{const {data:_0x4adb45}=_0x3bc7a7;if(_0x4adb45){if('setTableRowHeader'==_0x4adb45[_0x2fe4('0x50')]){const _0x1f2510=_0x4adb45[_0x2fe4('0x11')][0x0][_0x2fe4('0x18')];return _0xba65f6(_0x5a444b(_0x20fcc5,_0x1f2510?_0x2fe4('0xd'):_0x2fe4('0x10')));}if(_0x2fe4('0x37')==_0x4adb45[_0x2fe4('0x50')]){const _0x480ac5=_0x4adb45[_0x2fe4('0x11')][0x0]['forceValue'];return _0xba65f6(_0x5a444b(_0x20fcc5,_0x480ac5?_0x2fe4('0xf'):_0x2fe4('0x4a')));}}function _0xba65f6(_0x7bfe9c){return{'type':_0x2fe4('0x12'),'content':_0x5a444b(_0x20fcc5,_0x2fe4('0x16'),_0x7bfe9c)};}});const _0x1d0dd9=_0x5f3ad9['_acceptFormatSuggestionCallbackFactory']();_0x5c065b[_0x2fe4('0x3d')][_0x2fe4('0xe')](_0x2fe4('0x21'),'setTableRowHeader','accept',_0x1d0dd9),_0x5c065b[_0x2fe4('0x3d')]['registerCustomCallback'](_0x2fe4('0x21'),_0x2fe4('0x37'),_0x2fe4('0x1d'),_0x1d0dd9);}}
23
+ const _0x2294=['locale','showSuggestionHighlights','ck-suggestion-marker-','forceValue','document','registerCustomCallback','formatBlock','createPositionBefore','selection','TableUtils','FORMAT_REGULAR_COLUMN','from','index','first','createPositionAfter','_suggestionFactory','writer','stop','nodeAfter','data','editor','requires','afterInit','unbindElementFromMarkerName','commands','consumable','TableEditing','end','downcastDispatcher','has','plugins','createTableWalker','headingRows','includes','*Format:*\x20%0','isBefore','ck-suggestion-marker--active','setTableColumnHeader','cell','addMarker:suggestion','markerName','childCount','markBlockFormat','getChild','_descriptionFactory','data-suggestion','removeClass','mapper','item','get','headingColumns','_splitMarkerName','highest','findAncestor','FORMAT_HEADER_ROW','markerNameToElements','accept','commandName','activeMarkers','editing','getCellLocation','removeAttribute','createRange','format','table','consume','enableCommand','options','markerRange','value','TrackChangesEditing','last','commandParams','getAttribute','setTableRowHeader','parent','getSelectionAffectedTableCells','toViewElement','setAttribute','registerDescriptionCallback','model','change'];(function(_0x2c1ee9,_0x22947a){const _0x3b32c9=function(_0x62bdc0){while(--_0x62bdc0){_0x2c1ee9['push'](_0x2c1ee9['shift']());}};_0x3b32c9(++_0x22947a);}(_0x2294,0x11d));const _0x3b32=function(_0x2c1ee9,_0x22947a){_0x2c1ee9=_0x2c1ee9-0x0;let _0x3b32c9=_0x2294[_0x2c1ee9];return _0x3b32c9;};import{Plugin as _0xe23478}from'ckeditor5/src/core';import _0x3a46e3 from'./table';import{getTranslation as _0x38158d}from'../utils/common-translations';export default class pt extends _0xe23478{static get[_0x3b32('0x40')](){return[_0x3a46e3];}[_0x3b32('0x41')](){const _0x2b60d8=this[_0x3b32('0x3f')];if(!_0x2b60d8['plugins'][_0x3b32('0x48')](_0x3b32('0x45')))return;const _0x316bfe=_0x2b60d8[_0x3b32('0x2b')],_0x287c4d=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')](_0x3b32('0x1f')),_0x4be1f4=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')](_0x3b32('0x34')),_0x3045ba=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')](_0x3a46e3);function _0x2cb40f({showActiveMarker:_0x14ad39=!0x0,setDataAttribute:_0x4b1d3a=!0x0}={}){return(_0x5f2654,_0x4903f0,_0x5d6c1d)=>{const {type:_0x45b4e8,id:_0x158866}=_0x287c4d[_0x3b32('0xc')](_0x4903f0[_0x3b32('0x1')]),_0x385202=_0x287c4d['getSuggestion'](_0x158866);if(!_0x385202[_0x3b32('0x3e')]||_0x3b32('0x50')!=_0x385202[_0x3b32('0x3e')]['commandName'])return;if(_0x4903f0[_0x3b32('0x9')])return void _0x5f2654[_0x3b32('0x3c')]();if(!_0x5d6c1d[_0x3b32('0x44')][_0x3b32('0x1a')](_0x4903f0[_0x3b32('0x1d')],_0x5f2654['name']))return;const _0x244af4=_0x4903f0[_0x3b32('0x1d')]['start'][_0x3b32('0x3d')],_0x38daf3=_0x4903f0['markerRange'][_0x3b32('0x46')]['nodeBefore'],_0x30992d=_0x244af4[_0x3b32('0x24')][_0x3b32('0x24')],{column:_0x2fb0b9}=_0x4be1f4[_0x3b32('0x15')](_0x244af4),{column:_0x402341}=_0x4be1f4[_0x3b32('0x15')](_0x38daf3);for(let _0x556aa6=_0x2fb0b9;_0x556aa6<=_0x402341;_0x556aa6++){const _0x178982=_0x4be1f4[_0x3b32('0x4a')](_0x30992d,{'column':_0x556aa6,'includeAllSlots':!0x1});for(const _0x2d7c6b of _0x178982){const _0x5ef385=_0x2d7c6b[_0x3b32('0x51')],_0x3afa22=_0x5d6c1d[_0x3b32('0x8')][_0x3b32('0x26')](_0x5ef385);_0x5d6c1d[_0x3b32('0x3b')]['addClass'](_0x3b32('0x2d')+_0x45b4e8,_0x3afa22),_0x4b1d3a&&_0x5d6c1d[_0x3b32('0x3b')][_0x3b32('0x27')](_0x3b32('0x6'),_0x158866,_0x3afa22),_0x5d6c1d[_0x3b32('0x8')]['bindElementToMarker'](_0x3afa22,_0x4903f0[_0x3b32('0x1')]),_0x14ad39&&(_0x287c4d[_0x3b32('0x13')][_0x3b32('0x4c')](_0x4903f0['markerName'])?_0x5d6c1d['writer']['addClass'](_0x3b32('0x4f'),_0x3afa22):_0x5d6c1d[_0x3b32('0x3b')][_0x3b32('0x7')](_0x3b32('0x4f'),_0x3afa22));}}};}_0x287c4d[_0x3b32('0x1b')](_0x3b32('0x23'),(_0xab16d2,_0x471c1c)=>{const _0x58bebe=_0x4be1f4[_0x3b32('0x25')](_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x2f')][_0x3b32('0x33')]),_0xf6d528=_0x4be1f4['getRowIndexes'](_0x58bebe),_0x45c03e=_0x58bebe[0x0][_0x3b32('0xe')](_0x3b32('0x19')),_0x35b7aa=_0x45c03e[_0x3b32('0x22')](_0x3b32('0x4b'))||0x0,_0xc6b258=_0x471c1c&&null!==_0x471c1c[_0x3b32('0x2e')]?_0x471c1c[_0x3b32('0x2e')]:!_0x2b60d8[_0x3b32('0x43')]['get'](_0x3b32('0x23'))[_0x3b32('0x1e')],_0x4e66d9=_0xc6b258?_0xf6d528[_0x3b32('0x20')]:_0xf6d528[_0x3b32('0x38')],_0x2c92de=_0x45c03e[_0x3b32('0x4')](_0x4e66d9);let _0x316641;if(_0xc6b258){const _0xe13de7=_0x45c03e[_0x3b32('0x4')](_0x35b7aa);if(_0x2c92de[_0x3b32('0x37')]<_0xe13de7['index'])return;_0x316641=_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x17')](_0x2b60d8['model'][_0x3b32('0x32')](_0xe13de7[_0x3b32('0x4')](0x0)),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x2c92de[_0x3b32('0x4')](_0x2c92de[_0x3b32('0x2')]-0x1)));}else{const _0x5ae620=_0x45c03e['getChild'](_0x35b7aa-0x1);if(!_0x5ae620)return;_0x316641=_0x2b60d8['model'][_0x3b32('0x17')](_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x32')](_0x2c92de['getChild'](0x0)),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x5ae620[_0x3b32('0x4')](_0x5ae620[_0x3b32('0x2')]-0x1)));}_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x2a')](()=>{_0x287c4d['markBlockFormat'](_0x316641,{'commandName':_0x3b32('0x23'),'commandParams':[{'forceValue':_0xc6b258}]},[],'setTableRowHeader');});}),_0x287c4d[_0x3b32('0x1b')](_0x3b32('0x50'),(_0xde6481,_0x1d1b3c)=>{const _0x3aaf40=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')]('TableUtils'),_0x40d6e2=_0x3aaf40['getSelectionAffectedTableCells'](_0x2b60d8['model']['document']['selection']),_0x58f826=_0x3aaf40['getColumnIndexes'](_0x40d6e2),_0x570ecf=_0x40d6e2[0x0]['findAncestor'](_0x3b32('0x19')),_0x55cfc9=_0x570ecf['getAttribute'](_0x3b32('0xb'))||0x0,_0x2c43c2=_0x1d1b3c&&null!==_0x1d1b3c[_0x3b32('0x2e')]?_0x1d1b3c[_0x3b32('0x2e')]:!_0x2b60d8[_0x3b32('0x43')][_0x3b32('0xa')](_0x3b32('0x50'))[_0x3b32('0x1e')];let _0x2738a7;const _0x29c4fd=_0x570ecf[_0x3b32('0x4')](0x0),_0x426387=_0x2c43c2?_0x58f826['last']:_0x58f826[_0x3b32('0x38')],_0xdaf4eb=_0x3aaf40[_0x3b32('0x4a')](_0x570ecf,{'startRow':0x0,'column':_0x426387,'includeAllSlots':!0x1}),_0x8b0b3=Array[_0x3b32('0x36')](_0xdaf4eb)[0x0][_0x3b32('0x51')];if(_0x2c43c2){const _0x2f4113=_0x29c4fd[_0x3b32('0x4')](_0x55cfc9);if(_0x8b0b3[_0x3b32('0x4e')](_0x2f4113))return;_0x2738a7=_0x2b60d8['model'][_0x3b32('0x17')](_0x2b60d8[_0x3b32('0x29')]['createPositionBefore'](_0x2f4113),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x8b0b3));}else{const _0x3cb9f9=_0x29c4fd[_0x3b32('0x4')](_0x55cfc9-0x1);if(!_0x3cb9f9)return;_0x2738a7=_0x2b60d8[_0x3b32('0x29')]['createRange'](_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x32')](_0x8b0b3),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x3cb9f9));}_0x2b60d8[_0x3b32('0x29')]['change'](()=>{_0x287c4d[_0x3b32('0x3')](_0x2738a7,{'commandName':_0x3b32('0x50'),'commandParams':[{'forceValue':_0x2c43c2}]},[],_0x3b32('0x50'));});}),_0x2b60d8['editing'][_0x3b32('0x47')]['on'](_0x3b32('0x0'),_0x2cb40f(),{'priority':_0x3b32('0xd')}),_0x2b60d8[_0x3b32('0x3e')][_0x3b32('0x47')]['on'](_0x3b32('0x0'),(_0x1fa8af,_0x3cd83e,_0x389aaf)=>{_0x389aaf[_0x3b32('0x1c')][_0x3b32('0x2c')]&&_0x2cb40f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1fa8af,_0x3cd83e,_0x389aaf);},{'priority':_0x3b32('0xd')}),_0x2b60d8[_0x3b32('0x14')][_0x3b32('0x47')]['on']('removeMarker:suggestion',(_0x14673b,_0x19852d,_0xfccdf5)=>{const {type:_0x2850af,id:_0xf08398}=_0x287c4d[_0x3b32('0xc')](_0x19852d[_0x3b32('0x1')]),_0x1b5352=_0x287c4d['getSuggestion'](_0xf08398);if(!_0x1b5352[_0x3b32('0x3e')]||'setTableColumnHeader'!=_0x1b5352[_0x3b32('0x3e')][_0x3b32('0x12')])return;const _0x521045=_0xfccdf5['mapper'][_0x3b32('0x10')](_0x19852d[_0x3b32('0x1')]);if(_0x521045)for(const _0x1cd703 of _0x521045)_0xfccdf5[_0x3b32('0x3b')][_0x3b32('0x7')](_0x3b32('0x2d')+_0x2850af,_0x1cd703),_0xfccdf5[_0x3b32('0x3b')][_0x3b32('0x7')](_0x3b32('0x4f'),_0x1cd703),_0xfccdf5[_0x3b32('0x3b')][_0x3b32('0x16')](_0x3b32('0x6'),_0x1cd703),_0xfccdf5[_0x3b32('0x8')][_0x3b32('0x42')](_0x1cd703,_0x19852d['markerName']);},{'priority':_0x3b32('0xd')}),_0x287c4d[_0x3b32('0x5')][_0x3b32('0x28')](_0x17a51b=>{const {data:_0x2260a8}=_0x17a51b;if(_0x2260a8){if(_0x3b32('0x23')==_0x2260a8['commandName']){const _0x32725f=_0x2260a8[_0x3b32('0x21')][0x0][_0x3b32('0x2e')];return _0x2b1662(_0x38158d(_0x316bfe,_0x32725f?_0x3b32('0xf'):'FORMAT_REGULAR_ROW'));}if(_0x3b32('0x50')==_0x2260a8[_0x3b32('0x12')]){const _0x4997ce=_0x2260a8[_0x3b32('0x21')][0x0]['forceValue'];return _0x2b1662(_0x38158d(_0x316bfe,_0x4997ce?'FORMAT_HEADER_COLUMN':_0x3b32('0x35')));}}function _0x2b1662(_0x1933f2){return{'type':_0x3b32('0x18'),'content':_0x38158d(_0x316bfe,_0x3b32('0x4d'),_0x1933f2)};}});const _0x232816=_0x3045ba['_acceptFormatSuggestionCallbackFactory']();_0x287c4d[_0x3b32('0x3a')][_0x3b32('0x30')]('formatBlock',_0x3b32('0x23'),_0x3b32('0x11'),_0x232816),_0x287c4d[_0x3b32('0x3a')][_0x3b32('0x30')](_0x3b32('0x31'),_0x3b32('0x50'),'accept',_0x232816);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cd4=['mergeTableCells','refresh','tableCell','mergeTableCellLeft','requires','low','get','model','from','author','$graveyard','horizontally','format','_areSelectedCellsMergable','commands','stop','_isForcedDefaultExecutionBlock','table','registerCustomCallback','_acceptFormatSuggestionCallbackFactory','enableCommand','set:isEnabled','selection','trackChanges','length','detach','formatBlock','type','findAncestor','setSelection','markMultiRangeBlockFormat','find','mergeTableCellRight','getSelectionAffectedTableCells','mergeTableCellDown','filter','_areMergableCells','plugins','TableUtils','has','document','size','getRanges','execute','TrackChangesEditing','getAncestors','value','afterInit','isInContent','element','_suggestionFactory','mergeTableCellUp','add','locale','splitTableCellVertically','deletion','forceDefaultExecution','cell','change','splitTableCellHorizontally','commandName','map','containsRange','editor','TableEditing','getCellLocation','createRangeOn','*Split\x20cell:*\x20horizontally','accept','direction','_tablePostFixingSubtypes','getSuggestions','highest','registerDescriptionCallback','markBlockFormat','*Merge\x20cells*'];(function(_0x138116,_0x2cd42a){const _0xa84b36=function(_0x98c428){while(--_0x98c428){_0x138116['push'](_0x138116['shift']());}};_0xa84b36(++_0x2cd42a);}(_0x2cd4,0xb5));const _0xa84b=function(_0x138116,_0x2cd42a){_0x138116=_0x138116-0x0;let _0xa84b36=_0x2cd4[_0x138116];return _0xa84b36;};import{Plugin as _0x1fbfa7}from'ckeditor5/src/core';import _0x33cf79 from'./table';import{LiveRange as _0x3e0e8a}from'ckeditor5/src/engine';import{getTranslation as _0xca4a54}from'../utils/common-translations';export default class mt extends _0x1fbfa7{static get[_0xa84b('0x33')](){return[_0x33cf79];}[_0xa84b('0x12')](){const _0x22f8b6=this['editor'],_0x405ac9=_0x22f8b6[_0xa84b('0x36')][_0xa84b('0xb')][_0xa84b('0x45')],_0x502688=_0x22f8b6[_0xa84b('0x18')];if(!_0x22f8b6[_0xa84b('0x8')][_0xa84b('0xa')](_0xa84b('0x23')))return;const _0x1fa4e6=_0x22f8b6[_0xa84b('0x8')]['get'](_0xa84b('0xf')),_0x47d724=_0x22f8b6['plugins'][_0xa84b('0x35')](_0xa84b('0x9')),_0x34ce9d=_0x22f8b6[_0xa84b('0x8')]['get'](_0x33cf79);_0x34ce9d[_0xa84b('0x29')]['push'](_0xa84b('0x2f')),_0x1fa4e6['enableCommand'](_0xa84b('0x2f'),()=>{const _0x3f4193=_0x47d724[_0xa84b('0x4')](_0x22f8b6[_0xa84b('0x36')][_0xa84b('0xb')][_0xa84b('0x45')]);_0x22f8b6[_0xa84b('0x36')][_0xa84b('0x1d')](()=>{_0x1fa4e6[_0xa84b('0x1')](_0x3f4193,{'commandName':_0xa84b('0x2f'),'commandParams':[]},[],_0xa84b('0x2f'));});}),_0x22f8b6[_0xa84b('0x3d')][_0xa84b('0x35')](_0xa84b('0x2f'))['on'](_0xa84b('0xe'),(_0x2ebdbc,_0x855622)=>{_0x22f8b6[_0xa84b('0x3d')][_0xa84b('0x35')](_0xa84b('0x46'))[_0xa84b('0x11')]&&(_0x855622['length']>0x0&&_0x855622[_0x855622[_0xa84b('0x47')]-0x1]&&_0x855622[_0x855622[_0xa84b('0x47')]-0x1][_0xa84b('0x1b')]||_0x1fa4e6[_0xa84b('0x3f')]||this[_0xa84b('0x3c')]()||_0x2ebdbc['stop']());},{'priority':_0xa84b('0x2b')});for(const _0x5663da of[_0xa84b('0x16'),_0xa84b('0x3'),'mergeTableCellDown','mergeTableCellLeft']){const _0x21899c=_0x22f8b6[_0xa84b('0x3d')][_0xa84b('0x35')](_0x5663da);_0x1fa4e6[_0xa84b('0x43')](_0x5663da,()=>{const _0x2e88de=_0x22f8b6[_0xa84b('0x36')][_0xa84b('0xb')][_0xa84b('0x45')]['getFirstPosition']()[_0xa84b('0x10')]()['find'](_0x2e4005=>_0x2e4005['is']('element',_0xa84b('0x31'))),_0x33902f=_0x21899c[_0xa84b('0x11')];_0x22f8b6[_0xa84b('0x36')][_0xa84b('0x1d')](()=>{_0x1fa4e6['markMultiRangeBlockFormat']([_0x2e88de,_0x33902f],{'commandName':_0xa84b('0x2f'),'commandParams':[]},[],_0xa84b('0x2f'));});});}for(const _0x5fd2ff of[_0xa84b('0x19'),'splitTableCellHorizontally']){const _0x9b0b79=_0x22f8b6[_0xa84b('0x3d')][_0xa84b('0x35')](_0x5fd2ff);_0x1fa4e6[_0xa84b('0x43')](_0x5fd2ff,()=>{const _0x5f2a62=_0x47d724[_0xa84b('0x4')](_0x22f8b6[_0xa84b('0x36')][_0xa84b('0xb')][_0xa84b('0x45')])[0x0],_0x319612=_0x5f2a62[_0xa84b('0x4b')](_0xa84b('0x40')),{column:_0x477e7c,row:_0x5d9831}=_0x47d724[_0xa84b('0x24')](_0x5f2a62);let _0x446bed=[];if(_0xa84b('0x3a')==_0x9b0b79[_0xa84b('0x28')]){const _0x1696d5=_0x47d724['createTableWalker'](_0x319612,{'startRow':_0x5d9831,'endRow':_0x5d9831,'includeAllSlots':!0x0});_0x446bed=Array[_0xa84b('0x37')](_0x1696d5)[_0xa84b('0x20')](_0x867e50=>_0x867e50[_0xa84b('0x1c')]);}else{const _0xa8d35e=_0x47d724['createTableWalker'](_0x319612,{'column':_0x477e7c,'includeAllSlots':!0x0});_0x446bed=Array[_0xa84b('0x37')](_0xa8d35e)['map'](_0x3b25a0=>_0x3b25a0[_0xa84b('0x1c')]);}_0x22f8b6[_0xa84b('0x36')][_0xa84b('0x1d')](_0x776165=>{_0x1fa4e6[_0xa84b('0x2d')](_0x776165['createRangeOn'](_0x5f2a62),{'commandName':_0x5fd2ff,'commandParams':[]},_0x446bed,_0x5fd2ff);});});}_0x1fa4e6['_descriptionFactory'][_0xa84b('0x2c')](_0x5b51d4=>{const {data:_0x24ccbf}=_0x5b51d4;if(_0x24ccbf)return _0xa84b('0x2f')==_0x24ccbf[_0xa84b('0x1f')]?{'type':_0xa84b('0x3b'),'content':_0xca4a54(_0x502688,_0xa84b('0x2e'))}:void 0x0;}),_0x1fa4e6['_descriptionFactory'][_0xa84b('0x2c')](_0x42e5c4=>{const {data:_0x4269fd}=_0x42e5c4;if(_0x4269fd)return _0xa84b('0x19')==_0x4269fd['commandName']?{'type':'format','content':_0xca4a54(_0x502688,'*Split\x20cell:*\x20vertically')}:_0xa84b('0x1e')==_0x4269fd[_0xa84b('0x1f')]?{'type':_0xa84b('0x3b'),'content':_0xca4a54(_0x502688,_0xa84b('0x26'))}:void 0x0;});const _0x119596=_0x34ce9d[_0xa84b('0x42')]();for(const _0xd53f10 of[_0xa84b('0x16'),_0xa84b('0x3'),_0xa84b('0x5'),_0xa84b('0x32')])_0x1fa4e6[_0xa84b('0x15')][_0xa84b('0x41')](_0xa84b('0x49'),_0xd53f10,_0xa84b('0x27'),_0x119596);for(const _0x1fd1b5 of[_0xa84b('0x19'),_0xa84b('0x1e')])_0x1fa4e6[_0xa84b('0x15')][_0xa84b('0x41')](_0xa84b('0x49'),_0x1fd1b5,_0xa84b('0x27'),_0x119596);_0x1fa4e6['_suggestionFactory'][_0xa84b('0x41')](_0xa84b('0x49'),_0xa84b('0x2f'),_0xa84b('0x27'),_0x3552cb=>{_0x22f8b6[_0xa84b('0x36')][_0xa84b('0x1d')](_0x4ce583=>{const _0x2b54e5=Array[_0xa84b('0x37')](_0x405ac9['getRanges']())['map'](_0xf31fc1=>_0x3e0e8a['fromRange'](_0xf31fc1));_0x4ce583['setSelection'](_0x3552cb),_0x22f8b6[_0xa84b('0x3d')]['get'](_0xa84b('0x2f'))[_0xa84b('0x30')](),_0x22f8b6[_0xa84b('0xe')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22f70e=_0x2b54e5[_0xa84b('0x6')](_0x347ded=>_0xa84b('0x39')!=_0x347ded['root']['rootName']);_0x22f70e[_0xa84b('0x47')]>0x0&&_0x4ce583[_0xa84b('0x0')](_0x22f70e);for(const _0x21dbf4 of _0x2b54e5)_0x21dbf4[_0xa84b('0x48')]();});});for(const _0x44f205 of[_0xa84b('0x16'),_0xa84b('0x5'),_0xa84b('0x32'),_0xa84b('0x3')]){const _0x1e1b3c=_0x22f8b6[_0xa84b('0x3d')][_0xa84b('0x35')](_0x44f205);_0x1e1b3c['on'](_0xa84b('0x44'),(_0x17a200,_0x55df73,_0x65a93b)=>{if(_0x65a93b){const _0x367449=_0x22f8b6[_0xa84b('0x36')][_0xa84b('0xb')][_0xa84b('0x45')]['getFirstPosition']()[_0xa84b('0x10')]()[_0xa84b('0x2')](_0x59eddf=>_0x59eddf['is'](_0xa84b('0x14'),_0xa84b('0x31')));this[_0xa84b('0x7')](_0x1e1b3c[_0xa84b('0x11')],_0x367449)||(_0x17a200['return']=!0x1,_0x17a200[_0xa84b('0x3e')]());}},{'priority':_0xa84b('0x34')});}}[_0xa84b('0x3c')](){const _0x4a055e=this[_0xa84b('0x22')]['commands'][_0xa84b('0x35')](_0xa84b('0x2f')),_0x2d4933=this['editor'][_0xa84b('0x8')][_0xa84b('0x35')]('TableUtils');if(!_0x4a055e['isEnabled'])return!0x1;const _0x54d189=_0x2d4933[_0xa84b('0x4')](this['editor'][_0xa84b('0x36')]['document'][_0xa84b('0x45')]);for(const _0x52c0ec of _0x54d189)for(const _0x48d0f2 of _0x54d189)if(_0x52c0ec!=_0x48d0f2&&!this[_0xa84b('0x7')](_0x52c0ec,_0x48d0f2))return!0x1;return!0x0;}['_areMergableCells'](_0x4e17b8,_0x390f76){const _0x33e13b=this[_0xa84b('0x22')][_0xa84b('0x8')][_0xa84b('0x35')]('TrackChangesEditing'),_0x2e07ce=this[_0xa84b('0x22')][_0xa84b('0x36')][_0xa84b('0x25')](_0x4e17b8),_0x531de2=this[_0xa84b('0x22')][_0xa84b('0x36')][_0xa84b('0x25')](_0x390f76),_0x5bc7c6=new Set(),_0x5d7858=new Set();for(const _0x4319c7 of _0x33e13b[_0xa84b('0x2a')]())if(('insertion'==_0x4319c7[_0xa84b('0x4a')]||_0xa84b('0x1a')==_0x4319c7[_0xa84b('0x4a')]||_0xa84b('0x2f')==_0x4319c7['subType'])&&_0x4319c7[_0xa84b('0x13')])for(const _0xfcae24 of _0x4319c7[_0xa84b('0xd')]())_0xfcae24[_0xa84b('0x21')](_0x2e07ce,!0x0)&&_0x5bc7c6[_0xa84b('0x17')](_0x4319c7[_0xa84b('0x4a')]+':'+_0x4319c7[_0xa84b('0x38')]['id']),_0xfcae24[_0xa84b('0x21')](_0x531de2,!0x0)&&_0x5d7858[_0xa84b('0x17')](_0x4319c7[_0xa84b('0x4a')]+':'+_0x4319c7[_0xa84b('0x38')]['id']);if(_0x5bc7c6[_0xa84b('0xc')]!=_0x5d7858[_0xa84b('0xc')])return!0x1;for(const _0x145e0b of _0x5bc7c6)if(!_0x5d7858[_0xa84b('0xa')](_0x145e0b))return!0x1;return!0x0;}}
23
+ const _0x3211=['insertion','getSuggestions','TableUtils','getFirstPosition','length','mergeTableCells','forceDefaultExecution','has','isInContent','push','getAncestors','get','low','model','$graveyard','return','trackChanges','registerCustomCallback','find','stop','enableCommand','author','editor','TableEditing','document','containsRange','set:isEnabled','from','getRanges','format','_areSelectedCellsMergable','_isForcedDefaultExecutionBlock','createTableWalker','cell','change','_suggestionFactory','getSelectionAffectedTableCells','commandName','*Merge\x20cells*','_tablePostFixingSubtypes','size','splitTableCellVertically','_descriptionFactory','rootName','add','accept','registerDescriptionCallback','requires','mergeTableCellLeft','*Split\x20cell:*\x20vertically','mergeTableCellRight','table','tableCell','refresh','plugins','setSelection','*Split\x20cell:*\x20horizontally','element','markMultiRangeBlockFormat','type','getCellLocation','mergeTableCellDown','selection','isEnabled','TrackChangesEditing','value','detach','fromRange','filter','createRangeOn','mergeTableCellUp','splitTableCellHorizontally','commands','markBlockFormat','map','_areMergableCells','execute','formatBlock','locale'];(function(_0x480e3c,_0x3211aa){const _0x293ab0=function(_0x1a85f5){while(--_0x1a85f5){_0x480e3c['push'](_0x480e3c['shift']());}};_0x293ab0(++_0x3211aa);}(_0x3211,0x192));const _0x293a=function(_0x480e3c,_0x3211aa){_0x480e3c=_0x480e3c-0x0;let _0x293ab0=_0x3211[_0x480e3c];return _0x293ab0;};import{Plugin as _0x1cccc9}from'ckeditor5/src/core';import _0x3b97b1 from'./table';import{LiveRange as _0x9e4797}from'ckeditor5/src/engine';import{getTranslation as _0x4949c7}from'../utils/common-translations';export default class dt extends _0x1cccc9{static get[_0x293a('0x28')](){return[_0x3b97b1];}['afterInit'](){const _0x4f17ab=this['editor'],_0x56f0b4=_0x4f17ab['model'][_0x293a('0x11')][_0x293a('0x37')],_0x23c268=_0x4f17ab[_0x293a('0x47')];if(!_0x4f17ab[_0x293a('0x2f')][_0x293a('0x0')](_0x293a('0x10')))return;const _0x357492=_0x4f17ab['plugins']['get'](_0x293a('0x39')),_0x1dfbc1=_0x4f17ab[_0x293a('0x2f')][_0x293a('0x4')]('TableUtils'),_0x1428f0=_0x4f17ab[_0x293a('0x2f')][_0x293a('0x4')](_0x3b97b1);_0x1428f0[_0x293a('0x20')][_0x293a('0x2')](_0x293a('0x4d')),_0x357492['enableCommand'](_0x293a('0x4d'),()=>{const _0x337aec=_0x1dfbc1[_0x293a('0x1d')](_0x4f17ab[_0x293a('0x6')]['document']['selection']);_0x4f17ab['model'][_0x293a('0x1b')](()=>{_0x357492['markMultiRangeBlockFormat'](_0x337aec,{'commandName':_0x293a('0x4d'),'commandParams':[]},[],_0x293a('0x4d'));});}),_0x4f17ab[_0x293a('0x41')]['get'](_0x293a('0x4d'))['on'](_0x293a('0x45'),(_0x49a3a2,_0x4fa82a)=>{_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x293a('0x9'))[_0x293a('0x3a')]&&(_0x4fa82a[_0x293a('0x4c')]>0x0&&_0x4fa82a[_0x4fa82a[_0x293a('0x4c')]-0x1]&&_0x4fa82a[_0x4fa82a[_0x293a('0x4c')]-0x1][_0x293a('0x4e')]||_0x357492[_0x293a('0x18')]||this['_areSelectedCellsMergable']()||_0x49a3a2[_0x293a('0xc')]());},{'priority':'highest'});for(const _0x1309ba of['mergeTableCellUp',_0x293a('0x2b'),_0x293a('0x36'),_0x293a('0x29')]){const _0x2c06ac=_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x1309ba);_0x357492[_0x293a('0xd')](_0x1309ba,()=>{const _0x53a6a9=_0x4f17ab[_0x293a('0x6')][_0x293a('0x11')][_0x293a('0x37')][_0x293a('0x4b')]()[_0x293a('0x3')]()[_0x293a('0xb')](_0x6e7fe=>_0x6e7fe['is'](_0x293a('0x32'),_0x293a('0x2d'))),_0x1643b5=_0x2c06ac[_0x293a('0x3a')];_0x4f17ab[_0x293a('0x6')][_0x293a('0x1b')](()=>{_0x357492[_0x293a('0x33')]([_0x53a6a9,_0x1643b5],{'commandName':_0x293a('0x4d'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x299b39 of[_0x293a('0x22'),_0x293a('0x40')]){const _0x494b56=_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x299b39);_0x357492['enableCommand'](_0x299b39,()=>{const _0x1d9a67=_0x1dfbc1[_0x293a('0x1d')](_0x4f17ab['model'][_0x293a('0x11')][_0x293a('0x37')])[0x0],_0x172241=_0x1d9a67['findAncestor'](_0x293a('0x2c')),{column:_0x54d174,row:_0x1acd30}=_0x1dfbc1[_0x293a('0x35')](_0x1d9a67);let _0x36d8a4=[];if('horizontally'==_0x494b56['direction']){const _0x1c8e23=_0x1dfbc1[_0x293a('0x19')](_0x172241,{'startRow':_0x1acd30,'endRow':_0x1acd30,'includeAllSlots':!0x0});_0x36d8a4=Array[_0x293a('0x14')](_0x1c8e23)[_0x293a('0x43')](_0x33a640=>_0x33a640[_0x293a('0x1a')]);}else{const _0x21aab9=_0x1dfbc1['createTableWalker'](_0x172241,{'column':_0x54d174,'includeAllSlots':!0x0});_0x36d8a4=Array[_0x293a('0x14')](_0x21aab9)[_0x293a('0x43')](_0x5a2e15=>_0x5a2e15[_0x293a('0x1a')]);}_0x4f17ab[_0x293a('0x6')][_0x293a('0x1b')](_0x47209d=>{_0x357492[_0x293a('0x42')](_0x47209d[_0x293a('0x3e')](_0x1d9a67),{'commandName':_0x299b39,'commandParams':[]},_0x36d8a4,_0x299b39);});});}_0x357492[_0x293a('0x23')][_0x293a('0x27')](_0x132740=>{const {data:_0x11ba47}=_0x132740;if(_0x11ba47)return'mergeTableCells'==_0x11ba47['commandName']?{'type':'format','content':_0x4949c7(_0x23c268,_0x293a('0x1f'))}:void 0x0;}),_0x357492[_0x293a('0x23')][_0x293a('0x27')](_0x58bd88=>{const {data:_0x289784}=_0x58bd88;if(_0x289784)return'splitTableCellVertically'==_0x289784[_0x293a('0x1e')]?{'type':'format','content':_0x4949c7(_0x23c268,_0x293a('0x2a'))}:_0x293a('0x40')==_0x289784['commandName']?{'type':_0x293a('0x16'),'content':_0x4949c7(_0x23c268,_0x293a('0x31'))}:void 0x0;});const _0x1d8ea1=_0x1428f0['_acceptFormatSuggestionCallbackFactory']();for(const _0x206bf8 of[_0x293a('0x3f'),_0x293a('0x2b'),_0x293a('0x36'),_0x293a('0x29')])_0x357492['_suggestionFactory'][_0x293a('0xa')](_0x293a('0x46'),_0x206bf8,_0x293a('0x26'),_0x1d8ea1);for(const _0x1a583b of[_0x293a('0x22'),'splitTableCellHorizontally'])_0x357492[_0x293a('0x1c')][_0x293a('0xa')](_0x293a('0x46'),_0x1a583b,'accept',_0x1d8ea1);_0x357492[_0x293a('0x1c')]['registerCustomCallback'](_0x293a('0x46'),_0x293a('0x4d'),'accept',_0x46676c=>{_0x4f17ab[_0x293a('0x6')]['change'](_0x352721=>{const _0x56760a=Array[_0x293a('0x14')](_0x56f0b4[_0x293a('0x15')]())[_0x293a('0x43')](_0x4f82f7=>_0x9e4797[_0x293a('0x3c')](_0x4f82f7));_0x352721[_0x293a('0x30')](_0x46676c),_0x4f17ab['commands']['get']('mergeTableCells')[_0x293a('0x2e')](),_0x4f17ab['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x584417=_0x56760a[_0x293a('0x3d')](_0x247699=>_0x293a('0x7')!=_0x247699['root'][_0x293a('0x24')]);_0x584417[_0x293a('0x4c')]>0x0&&_0x352721[_0x293a('0x30')](_0x584417);for(const _0x56e0c5 of _0x56760a)_0x56e0c5[_0x293a('0x3b')]();});});for(const _0x3f1049 of[_0x293a('0x3f'),_0x293a('0x36'),_0x293a('0x29'),'mergeTableCellRight']){const _0xee5f34=_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x3f1049);_0xee5f34['on'](_0x293a('0x13'),(_0x1c65e6,_0x66c182,_0x5bcbb9)=>{if(_0x5bcbb9){const _0x2119a1=_0x4f17ab['model'][_0x293a('0x11')]['selection'][_0x293a('0x4b')]()['getAncestors']()[_0x293a('0xb')](_0x52ab8e=>_0x52ab8e['is'](_0x293a('0x32'),'tableCell'));this['_areMergableCells'](_0xee5f34['value'],_0x2119a1)||(_0x1c65e6[_0x293a('0x8')]=!0x1,_0x1c65e6['stop']());}},{'priority':_0x293a('0x5')});}}[_0x293a('0x17')](){const _0x1f277a=this['editor'][_0x293a('0x41')][_0x293a('0x4')](_0x293a('0x4d')),_0xb82bbf=this['editor'][_0x293a('0x2f')][_0x293a('0x4')](_0x293a('0x4a'));if(!_0x1f277a[_0x293a('0x38')])return!0x1;const _0x41a2c7=_0xb82bbf['getSelectionAffectedTableCells'](this[_0x293a('0xf')]['model'][_0x293a('0x11')]['selection']);for(const _0x4bb772 of _0x41a2c7)for(const _0x15e69b of _0x41a2c7)if(_0x4bb772!=_0x15e69b&&!this[_0x293a('0x44')](_0x4bb772,_0x15e69b))return!0x1;return!0x0;}[_0x293a('0x44')](_0x2fbcd4,_0x1f71d8){const _0x4a9ba4=this[_0x293a('0xf')][_0x293a('0x2f')][_0x293a('0x4')]('TrackChangesEditing'),_0x1f8c02=this[_0x293a('0xf')][_0x293a('0x6')][_0x293a('0x3e')](_0x2fbcd4),_0x260ece=this[_0x293a('0xf')][_0x293a('0x6')][_0x293a('0x3e')](_0x1f71d8),_0x146dd9=new Set(),_0x458db7=new Set();for(const _0x54e107 of _0x4a9ba4[_0x293a('0x49')]())if((_0x293a('0x48')==_0x54e107[_0x293a('0x34')]||'deletion'==_0x54e107[_0x293a('0x34')]||'mergeTableCells'==_0x54e107['subType'])&&_0x54e107[_0x293a('0x1')])for(const _0x4348e0 of _0x54e107['getRanges']())_0x4348e0['containsRange'](_0x1f8c02,!0x0)&&_0x146dd9['add'](_0x54e107[_0x293a('0x34')]+':'+_0x54e107[_0x293a('0xe')]['id']),_0x4348e0[_0x293a('0x12')](_0x260ece,!0x0)&&_0x458db7[_0x293a('0x25')](_0x54e107[_0x293a('0x34')]+':'+_0x54e107['author']['id']);if(_0x146dd9[_0x293a('0x21')]!=_0x458db7[_0x293a('0x21')])return!0x1;for(const _0x403d01 of _0x146dd9)if(!_0x458db7[_0x293a('0x0')](_0x403d01))return!0x1;return!0x0;}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/tableofcontents
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for the Table of contents feature.
7
+ */
8
+ export default class TrackChangesTableOfContents extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x429a=['plugins','afterInit','get','ELEMENT_TABLE_OF_CONTENTS','enableCommand','editor','commands','registerElementLabel','_descriptionFactory','TrackChangesEditing','insertTableOfContents','tableOfContents'];(function(_0x564e31,_0x429a6c){const _0x58c325=function(_0x26285a){while(--_0x26285a){_0x564e31['push'](_0x564e31['shift']());}};_0x58c325(++_0x429a6c);}(_0x429a,0x1ce));const _0x58c3=function(_0x564e31,_0x429a6c){_0x564e31=_0x564e31-0x0;let _0x58c325=_0x429a[_0x564e31];return _0x58c325;};import{Plugin as _0x9da20b}from'ckeditor5/src/core';import{getTranslation as _0x543cb4}from'../utils/common-translations';export default class bt extends _0x9da20b{[_0x58c3('0x7')](){const _0x4e8be4=this[_0x58c3('0xb')];if(!_0x4e8be4[_0x58c3('0x0')][_0x58c3('0x8')](_0x58c3('0x4')))return;_0x4e8be4[_0x58c3('0x6')]['get'](_0x58c3('0x3'))[_0x58c3('0xa')](_0x58c3('0x4'));const _0x220d64=_0x4e8be4['plugins']['get'](_0x58c3('0x3')),_0x181515=_0x4e8be4['locale'];_0x220d64[_0x58c3('0x2')][_0x58c3('0x1')](_0x58c3('0x5'),_0x36d10e=>_0x543cb4(_0x181515,_0x58c3('0x9'),_0x36d10e));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x173a=['tableBorderStyle','tableCellBorderStyle','change','tableCellWidth','document','*Format:*\x20change\x20table\x20cell\x20properties','formatBlock','accept','TablePropertiesEditing','enqueueChange','_suggestionFactory','tableBorderColor','get','getSelectionAffectedTableCells','tableCellVerticalAlignment','nodeAfter','_handlePropertyChange','tableCellPadding','tableCellProperties','model','getFirstPosition','handleDiscardAction','start','discard','tableWidth','*Format:*\x20change\x20table\x20properties','batch','removeAttribute','editor','table','registerCustomCallback','pluginName','tableCellHorizontalAlignment','data','plugins','has','enableCommand','tableCellBackgroundColor','tableProperties','format','TableUtils','TrackChangesTableProperties','getContainedElement','locale','join','tableCellBorderWidth','getSuggestionCallback','handleSuggestionDescription','TrackChangesEditing','subType','markBlockFormat','_descriptionFactory','tableBorderWidth','selection','findAncestor'];(function(_0x51d917,_0x173a5f){const _0x6f63f0=function(_0x48a4c9){while(--_0x48a4c9){_0x51d917['push'](_0x51d917['shift']());}};_0x6f63f0(++_0x173a5f);}(_0x173a,0x1bc));const _0x6f63=function(_0x51d917,_0x173a5f){_0x51d917=_0x51d917-0x0;let _0x6f63f0=_0x173a[_0x51d917];return _0x6f63f0;};import{Plugin as _0x155199}from'ckeditor5/src/core';import{getTranslation as _0x5f480e}from'../utils/common-translations';export default class It extends _0x155199{constructor(_0x4ff662){super(_0x4ff662),this[_0x6f63('0x22')]=[_0x6f63('0x7'),_0x6f63('0x33'),_0x6f63('0x30'),'tableAlignment',_0x6f63('0x14'),'tableHeight','tableBackgroundColor'],this[_0x6f63('0xe')]=['tableCellBorderColor',_0x6f63('0x34'),_0x6f63('0x29'),_0x6f63('0xd'),_0x6f63('0x36'),'tableCellHeight',_0x6f63('0x21'),_0x6f63('0x1c'),_0x6f63('0xa')];}static get[_0x6f63('0x1b')](){return _0x6f63('0x25');}['afterInit'](){const _0x59faaa=this[_0x6f63('0x18')][_0x6f63('0x1e')][_0x6f63('0x8')](_0x6f63('0x2c'));if(this[_0x6f63('0x18')][_0x6f63('0x1e')][_0x6f63('0x1f')](_0x6f63('0x4'))){for(const _0x3f5fc8 of this[_0x6f63('0x22')])_0x59faaa[_0x6f63('0x20')](_0x3f5fc8,(_0x52bf17,_0x3cfa3c)=>{const _0x17ba4b=this[_0x6f63('0x18')][_0x6f63('0xf')][_0x6f63('0x0')][_0x6f63('0x31')][_0x6f63('0x10')]()[_0x6f63('0x32')](_0x6f63('0x19'));this[_0x6f63('0xc')](_0x3f5fc8,[_0x17ba4b],this[_0x6f63('0x22')],_0x6f63('0x22'),_0x52bf17,_0x3cfa3c);});_0x59faaa['_suggestionFactory'][_0x6f63('0x1a')](_0x6f63('0x2'),'tableProperties',_0x6f63('0x3'),_0x59faaa[_0x6f63('0x6')][_0x6f63('0x2a')](_0x6f63('0x2'),null,_0x6f63('0x13'))),_0x59faaa[_0x6f63('0x6')][_0x6f63('0x1a')](_0x6f63('0x2'),'tableProperties','discard',(_0x5f4570,_0x5d33ed)=>this['handleDiscardAction'](this['tableProperties'],_0x5f4570,_0x5d33ed)),_0x59faaa['_suggestionFactory'][_0x6f63('0x1a')](_0x6f63('0x2'),_0x6f63('0x22'),'join',()=>!0x1);}if(this[_0x6f63('0x18')]['plugins']['has']('TableCellPropertiesEditing')){for(const _0x213e80 of this['tableCellProperties'])_0x59faaa[_0x6f63('0x20')](_0x213e80,(_0x19e96d,_0x3d0303)=>{const _0x542006=this['editor'][_0x6f63('0x1e')]['get'](_0x6f63('0x24'))[_0x6f63('0x9')](this['editor'][_0x6f63('0xf')][_0x6f63('0x0')]['selection']);this[_0x6f63('0xc')](_0x213e80,_0x542006,this[_0x6f63('0xe')],'tableCellProperties',_0x19e96d,_0x3d0303);});_0x59faaa[_0x6f63('0x6')][_0x6f63('0x1a')](_0x6f63('0x2'),'tableCellProperties','accept',_0x59faaa['_suggestionFactory'][_0x6f63('0x2a')](_0x6f63('0x2'),null,_0x6f63('0x13'))),_0x59faaa[_0x6f63('0x6')][_0x6f63('0x1a')](_0x6f63('0x2'),_0x6f63('0xe'),_0x6f63('0x13'),(_0xcaa14,_0x349e45)=>this[_0x6f63('0x11')](this[_0x6f63('0xe')],_0xcaa14,_0x349e45)),_0x59faaa[_0x6f63('0x6')][_0x6f63('0x1a')]('formatBlock',_0x6f63('0xe'),_0x6f63('0x28'),()=>!0x1);}_0x59faaa[_0x6f63('0x2f')]['registerDescriptionCallback'](_0x2fb052=>this[_0x6f63('0x2b')](_0x2fb052));}['_handlePropertyChange'](_0x38b943,_0x121378,_0x39b01d,_0x3c215c,_0x20441e,_0x62bc6f){const _0x5f2f92=this[_0x6f63('0x18')][_0x6f63('0x1e')]['get'](_0x6f63('0x2c'));this[_0x6f63('0x18')][_0x6f63('0xf')][_0x6f63('0x5')](_0x62bc6f[_0x6f63('0x16')],()=>{for(const _0x5e29df of _0x121378){if(this['_getSuggestion'](_0x5e29df,_0x3c215c))_0x20441e(_0x62bc6f);else{const _0x45f436={};for(const _0x4bfa9f of _0x39b01d){const _0x3d4c00=_0x5e29df['getAttribute'](_0x4bfa9f);void 0x0!==_0x3d4c00&&(_0x45f436[_0x4bfa9f]=_0x3d4c00);}_0x20441e(_0x62bc6f),_0x5f2f92[_0x6f63('0x2e')](_0x5e29df,{'commandParams':[_0x45f436]},[],_0x3c215c);}}});}[_0x6f63('0x11')](_0x12b79b,_0x11d2a4,_0x1fc79d){const _0x118dd6=_0x11d2a4[0x0][_0x6f63('0x12')][_0x6f63('0xb')],_0x2f222b=_0x1fc79d['commandParams'][0x0];this['editor'][_0x6f63('0xf')][_0x6f63('0x35')](_0x33fecb=>{for(const _0x530e58 of _0x12b79b)void 0x0!==_0x2f222b[_0x530e58]?_0x33fecb['setAttribute'](_0x530e58,_0x2f222b[_0x530e58],_0x118dd6):_0x33fecb[_0x6f63('0x17')](_0x530e58,_0x118dd6);});}[_0x6f63('0x2b')](_0x225a0e){if(_0x225a0e[_0x6f63('0x1d')])switch(_0x225a0e[_0x6f63('0x2d')]){case _0x6f63('0x22'):return{'type':_0x6f63('0x23'),'content':_0x5f480e(this[_0x6f63('0x18')][_0x6f63('0x27')],_0x6f63('0x15'))};case _0x6f63('0xe'):return{'type':_0x6f63('0x23'),'content':_0x5f480e(this[_0x6f63('0x18')][_0x6f63('0x27')],_0x6f63('0x1'))};}}['_getSuggestion'](_0x1500a0,_0x47ba92){const _0x574de8=this[_0x6f63('0x18')][_0x6f63('0x1e')][_0x6f63('0x8')](_0x6f63('0x2c'));for(const _0x211640 of _0x574de8['getSuggestions']({'skipNotAttached':!0x0})){const _0x197089=_0x211640[_0x6f63('0x26')]();if(_0x211640[_0x6f63('0x2d')]===_0x47ba92&&_0x197089===_0x1500a0)return _0x211640;}return null;}}
23
+ const _0x3453=['model','getSelectionAffectedTableCells','registerDescriptionCallback','findAncestor','TableUtils','tableCellPadding','TrackChangesTableProperties','get','TrackChangesEditing','locale','commandParams','afterInit','*Format:*\x20change\x20table\x20properties','subType','tableCellWidth','tableBackgroundColor','getSuggestionCallback','tableCellHeight','registerCustomCallback','tableCellBorderWidth','document','tableBorderStyle','getAttribute','tableHeight','getContainedElement','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','tableCellProperties','pluginName','has','enqueueChange','tableBorderColor','handleSuggestionDescription','_suggestionFactory','removeAttribute','discard','tableCellVerticalAlignment','setAttribute','join','nodeAfter','tableCellBackgroundColor','markBlockFormat','_getSuggestion','plugins','tableProperties','tableCellHorizontalAlignment','_handlePropertyChange','TableCellPropertiesEditing','editor','handleDiscardAction','accept','formatBlock','enableCommand'];(function(_0x5d81ac,_0x345384){const _0x48535e=function(_0x4cd237){while(--_0x4cd237){_0x5d81ac['push'](_0x5d81ac['shift']());}};_0x48535e(++_0x345384);}(_0x3453,0x1ed));const _0x4853=function(_0x5d81ac,_0x345384){_0x5d81ac=_0x5d81ac-0x0;let _0x48535e=_0x3453[_0x5d81ac];return _0x48535e;};import{Plugin as _0x5d020e}from'ckeditor5/src/core';import{getTranslation as _0x283817}from'../utils/common-translations';export default class Dt extends _0x5d020e{constructor(_0x39189b){super(_0x39189b),this['tableProperties']=[_0x4853('0xf'),_0x4853('0x5'),'tableBorderWidth','tableAlignment',_0x4853('0xa'),_0x4853('0x7'),_0x4853('0x34')],this[_0x4853('0xb')]=['tableCellBorderColor','tableCellBorderStyle',_0x4853('0x3'),_0x4853('0x2a'),_0x4853('0x33'),_0x4853('0x1'),_0x4853('0x18'),_0x4853('0x1d'),_0x4853('0x14')];}static get[_0x4853('0xc')](){return _0x4853('0x2b');}[_0x4853('0x30')](){const _0x21cb6d=this[_0x4853('0x20')][_0x4853('0x1b')][_0x4853('0x2c')](_0x4853('0x2d'));if(this['editor'][_0x4853('0x1b')]['has']('TablePropertiesEditing')){for(const _0x58fb90 of this[_0x4853('0x1c')])_0x21cb6d[_0x4853('0x24')](_0x58fb90,(_0x2368f8,_0x15f9f9)=>{const _0x45bf45=this[_0x4853('0x20')][_0x4853('0x25')][_0x4853('0x4')]['selection']['getFirstPosition']()[_0x4853('0x28')]('table');this[_0x4853('0x1e')](_0x58fb90,[_0x45bf45],this[_0x4853('0x1c')],_0x4853('0x1c'),_0x2368f8,_0x15f9f9);});_0x21cb6d[_0x4853('0x11')][_0x4853('0x2')](_0x4853('0x23'),_0x4853('0x1c'),_0x4853('0x22'),_0x21cb6d['_suggestionFactory'][_0x4853('0x0')](_0x4853('0x23'),null,'discard')),_0x21cb6d[_0x4853('0x11')][_0x4853('0x2')](_0x4853('0x23'),_0x4853('0x1c'),_0x4853('0x13'),(_0x19adda,_0x448fd9)=>this['handleDiscardAction'](this[_0x4853('0x1c')],_0x19adda,_0x448fd9)),_0x21cb6d['_suggestionFactory'][_0x4853('0x2')]('formatBlock',_0x4853('0x1c'),_0x4853('0x16'),()=>!0x1);}if(this[_0x4853('0x20')][_0x4853('0x1b')][_0x4853('0xd')](_0x4853('0x1f'))){for(const _0x2b878f of this[_0x4853('0xb')])_0x21cb6d['enableCommand'](_0x2b878f,(_0x43244e,_0x5366cb)=>{const _0x227b9c=this[_0x4853('0x20')]['plugins'][_0x4853('0x2c')](_0x4853('0x29'))[_0x4853('0x26')](this['editor'][_0x4853('0x25')][_0x4853('0x4')]['selection']);this[_0x4853('0x1e')](_0x2b878f,_0x227b9c,this[_0x4853('0xb')],_0x4853('0xb'),_0x43244e,_0x5366cb);});_0x21cb6d['_suggestionFactory']['registerCustomCallback'](_0x4853('0x23'),_0x4853('0xb'),'accept',_0x21cb6d[_0x4853('0x11')][_0x4853('0x0')](_0x4853('0x23'),null,'discard')),_0x21cb6d[_0x4853('0x11')][_0x4853('0x2')](_0x4853('0x23'),'tableCellProperties','discard',(_0xda03e5,_0x43d501)=>this[_0x4853('0x21')](this[_0x4853('0xb')],_0xda03e5,_0x43d501)),_0x21cb6d['_suggestionFactory'][_0x4853('0x2')]('formatBlock',_0x4853('0xb'),_0x4853('0x16'),()=>!0x1);}_0x21cb6d['_descriptionFactory'][_0x4853('0x27')](_0x32ca9a=>this[_0x4853('0x10')](_0x32ca9a));}[_0x4853('0x1e')](_0x319852,_0xe9203d,_0x3d0077,_0x176638,_0x3af63d,_0x368fbd){const _0x135b5a=this[_0x4853('0x20')][_0x4853('0x1b')]['get']('TrackChangesEditing');this[_0x4853('0x20')][_0x4853('0x25')][_0x4853('0xe')](_0x368fbd['batch'],()=>{for(const _0x1b1689 of _0xe9203d){if(this['_getSuggestion'](_0x1b1689,_0x176638))_0x3af63d(_0x368fbd);else{const _0x3d7720={};for(const _0x3bd9b9 of _0x3d0077){const _0x3a4599=_0x1b1689[_0x4853('0x6')](_0x3bd9b9);void 0x0!==_0x3a4599&&(_0x3d7720[_0x3bd9b9]=_0x3a4599);}_0x3af63d(_0x368fbd),_0x135b5a[_0x4853('0x19')](_0x1b1689,{'commandParams':[_0x3d7720]},[],_0x176638);}}});}[_0x4853('0x21')](_0x196a78,_0x1ef7f2,_0x5de72d){const _0x4f324e=_0x1ef7f2[0x0]['start'][_0x4853('0x17')],_0x16bb92=_0x5de72d[_0x4853('0x2f')][0x0];this[_0x4853('0x20')][_0x4853('0x25')]['change'](_0x3a968a=>{for(const _0x5e364f of _0x196a78)void 0x0!==_0x16bb92[_0x5e364f]?_0x3a968a[_0x4853('0x15')](_0x5e364f,_0x16bb92[_0x5e364f],_0x4f324e):_0x3a968a[_0x4853('0x12')](_0x5e364f,_0x4f324e);});}['handleSuggestionDescription'](_0x46069f){if(_0x46069f['data'])switch(_0x46069f['subType']){case _0x4853('0x1c'):return{'type':'format','content':_0x283817(this[_0x4853('0x20')]['locale'],_0x4853('0x31'))};case _0x4853('0xb'):return{'type':'format','content':_0x283817(this['editor'][_0x4853('0x2e')],_0x4853('0x9'))};}}[_0x4853('0x1a')](_0x514d9,_0x265f4f){const _0x88dded=this[_0x4853('0x20')][_0x4853('0x1b')][_0x4853('0x2c')]('TrackChangesEditing');for(const _0xb1ed1a of _0x88dded['getSuggestions']({'skipNotAttached':!0x0})){const _0x4dced5=_0xb1ed1a[_0x4853('0x8')]();if(_0xb1ed1a[_0x4853('0x32')]===_0x265f4f&&_0x4dced5===_0x514d9)return _0xb1ed1a;}return null;}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/template
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for template feature.
7
+ */
8
+ export default class TrackChangesTemplate extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x1a40=['Template','insertTemplate','plugins','afterInit','has','enableCommand','editor'];(function(_0x3d08c3,_0x1a4060){const _0x33e6bf=function(_0x586c81){while(--_0x586c81){_0x3d08c3['push'](_0x3d08c3['shift']());}};_0x33e6bf(++_0x1a4060);}(_0x1a40,0x164));const _0x33e6=function(_0x3d08c3,_0x1a4060){_0x3d08c3=_0x3d08c3-0x0;let _0x33e6bf=_0x1a40[_0x3d08c3];return _0x33e6bf;};import{Plugin as _0x537cc6}from'ckeditor5/src/core';export default class yt extends _0x537cc6{[_0x33e6('0x4')](){const _0x272bfa=this[_0x33e6('0x0')];_0x272bfa[_0x33e6('0x3')][_0x33e6('0x5')](_0x33e6('0x1'))&&_0x272bfa[_0x33e6('0x3')]['get']('TrackChangesEditing')[_0x33e6('0x6')](_0x33e6('0x2'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4700=['_descriptionFactory','registerPostFixer','afterInit','differ','newRange','title-content','forward','plugins','Title','element','end','removeMarker','registerElementLabel','locale','from','get','isCollapsed','_splitMarkerName','editor','model','isTouching','updateMarker','TrackChangesEditing','schema','has','nodeBefore','start','document','getChangedMarkers'];(function(_0x290e2f,_0x470025){const _0x4ab863=function(_0x2cbf49){while(--_0x2cbf49){_0x290e2f['push'](_0x290e2f['shift']());}};_0x4ab863(++_0x470025);}(_0x4700,0x110));const _0x4ab8=function(_0x290e2f,_0x470025){_0x290e2f=_0x290e2f-0x0;let _0x4ab863=_0x4700[_0x290e2f];return _0x4ab863;};import{Plugin as _0x4a3117}from'ckeditor5/src/core';import{getTranslation as _0x906a7a}from'../utils/common-translations';export default class wt extends _0x4a3117{[_0x4ab8('0x14')](){const _0x51bd88=this[_0x4ab8('0x7')];if(!_0x51bd88[_0x4ab8('0x19')][_0x4ab8('0xd')](_0x4ab8('0x1a')))return;const _0x183c99=_0x51bd88[_0x4ab8('0x19')][_0x4ab8('0x4')](_0x4ab8('0xb'));_0x183c99[_0x4ab8('0x12')][_0x4ab8('0x1')]('title-content',()=>_0x906a7a(_0x51bd88[_0x4ab8('0x2')],'ELEMENT_TITLE')),_0x51bd88['model'][_0x4ab8('0x10')][_0x4ab8('0x13')](_0x12c2d1=>{let _0x3f1809=!0x1;const _0x13326b=Array[_0x4ab8('0x3')](_0x51bd88[_0x4ab8('0x8')][_0x4ab8('0x10')][_0x4ab8('0x15')][_0x4ab8('0x11')]());for(const {name:_0x4ac46d,data:_0x1aa8c0}of _0x13326b){const {group:_0x2bf3bc}=_0x183c99[_0x4ab8('0x6')](_0x4ac46d);if('suggestion'!==_0x2bf3bc||!_0x1aa8c0['newRange'])continue;const _0x21378b=_0x1aa8c0[_0x4ab8('0x16')],_0x37431b=_0x21378b[_0x4ab8('0x1c')][_0x4ab8('0xe')];if(!_0x37431b||!_0x37431b['is'](_0x4ab8('0x1b'),_0x4ab8('0x17')))continue;if(!_0x21378b[_0x4ab8('0xf')][_0x4ab8('0x9')](_0x21378b['end']))continue;const _0x4c1ae7=_0x51bd88[_0x4ab8('0x8')][_0x4ab8('0xc')]['getNearestSelectionRange'](_0x21378b[_0x4ab8('0x1c')],_0x4ab8('0x18'));if(_0x4c1ae7&&_0x4c1ae7[_0x4ab8('0x5')]){const _0xc78683=_0x12c2d1['createRange'](_0x21378b[_0x4ab8('0xf')],_0x4c1ae7[_0x4ab8('0xf')]);_0xc78683['isEqual'](_0x21378b)||(_0x12c2d1[_0x4ab8('0xa')](_0x4ac46d,{'range':_0xc78683}),_0x3f1809=!0x0);}_0x3f1809||(_0x12c2d1[_0x4ab8('0x0')](_0x4ac46d),_0x3f1809=!0x0);}return _0x3f1809;});}}
23
+ const _0x5a64=['createRange','schema','locale','registerPostFixer','editor','getNearestSelectionRange','newRange','removeMarker','element','get','end','start','Title','suggestion','isEqual','forward','isCollapsed','document','model','getChangedMarkers','nodeBefore','plugins','title-content','afterInit','from','_descriptionFactory','registerElementLabel','updateMarker','TrackChangesEditing','differ'];(function(_0x15be03,_0x5a64bc){const _0x1173b5=function(_0x2f2fce){while(--_0x2f2fce){_0x15be03['push'](_0x15be03['shift']());}};_0x1173b5(++_0x5a64bc);}(_0x5a64,0xbf));const _0x1173=function(_0x15be03,_0x5a64bc){_0x15be03=_0x15be03-0x0;let _0x1173b5=_0x5a64[_0x15be03];return _0x1173b5;};import{Plugin as _0x26ce7b}from'ckeditor5/src/core';import{getTranslation as _0x1d1e82}from'../utils/common-translations';export default class St extends _0x26ce7b{[_0x1173('0xc')](){const _0x2eae5f=this[_0x1173('0x17')];if(!_0x2eae5f[_0x1173('0xa')]['has'](_0x1173('0x1')))return;const _0x483cb3=_0x2eae5f[_0x1173('0xa')][_0x1173('0x1c')](_0x1173('0x11'));_0x483cb3[_0x1173('0xe')][_0x1173('0xf')](_0x1173('0xb'),()=>_0x1d1e82(_0x2eae5f[_0x1173('0x15')],'ELEMENT_TITLE')),_0x2eae5f[_0x1173('0x7')][_0x1173('0x6')][_0x1173('0x16')](_0x22c1fa=>{let _0x11b228=!0x1;const _0x11584f=Array[_0x1173('0xd')](_0x2eae5f[_0x1173('0x7')][_0x1173('0x6')][_0x1173('0x12')][_0x1173('0x8')]());for(const {name:_0x2499f6,data:_0x3795a3}of _0x11584f){const {group:_0x282032}=_0x483cb3['_splitMarkerName'](_0x2499f6);if(_0x1173('0x2')!==_0x282032||!_0x3795a3[_0x1173('0x19')])continue;const _0x276dcf=_0x3795a3['newRange'],_0x59446a=_0x276dcf['end'][_0x1173('0x9')];if(!_0x59446a||!_0x59446a['is'](_0x1173('0x1b'),_0x1173('0xb')))continue;if(!_0x276dcf[_0x1173('0x0')]['isTouching'](_0x276dcf[_0x1173('0x1d')]))continue;const _0x2e9eff=_0x2eae5f['model'][_0x1173('0x14')][_0x1173('0x18')](_0x276dcf[_0x1173('0x1d')],_0x1173('0x4'));if(_0x2e9eff&&_0x2e9eff[_0x1173('0x5')]){const _0x180ab4=_0x22c1fa[_0x1173('0x13')](_0x276dcf[_0x1173('0x0')],_0x2e9eff['start']);_0x180ab4[_0x1173('0x3')](_0x276dcf)||(_0x22c1fa[_0x1173('0x10')](_0x2499f6,{'range':_0x180ab4}),_0x11b228=!0x0);}_0x11b228||(_0x22c1fa[_0x1173('0x1a')](_0x2499f6),_0x11b228=!0x0);}return _0x11b228;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d59=['UndoEditing','undo','afterInit','redo','enableCommand','get','editor','plugins'];(function(_0x4a8219,_0x5d59ec){const _0x2cdeb0=function(_0x45411d){while(--_0x45411d){_0x4a8219['push'](_0x4a8219['shift']());}};_0x2cdeb0(++_0x5d59ec);}(_0x5d59,0x19d));const _0x2cde=function(_0x4a8219,_0x5d59ec){_0x4a8219=_0x4a8219-0x0;let _0x2cdeb0=_0x5d59[_0x4a8219];return _0x2cdeb0;};import{Plugin as _0x297b58}from'ckeditor5/src/core';export default class yt extends _0x297b58{[_0x2cde('0x5')](){const _0x762e8c=this[_0x2cde('0x1')],_0x36af4e=_0x762e8c[_0x2cde('0x2')][_0x2cde('0x0')]('TrackChangesEditing');_0x762e8c[_0x2cde('0x2')]['has'](_0x2cde('0x3'))&&(_0x36af4e[_0x2cde('0x7')](_0x2cde('0x4')),_0x36af4e[_0x2cde('0x7')](_0x2cde('0x6')));}}
23
+ const _0x45de=['undo','has','editor','UndoEditing','enableCommand','plugins','afterInit','redo'];(function(_0x50e851,_0x45de93){const _0x1318b6=function(_0x2cc389){while(--_0x2cc389){_0x50e851['push'](_0x50e851['shift']());}};_0x1318b6(++_0x45de93);}(_0x45de,0x1b8));const _0x1318=function(_0x50e851,_0x45de93){_0x50e851=_0x50e851-0x0;let _0x1318b6=_0x45de[_0x50e851];return _0x1318b6;};import{Plugin as _0x59201a}from'ckeditor5/src/core';export default class It extends _0x59201a{[_0x1318('0x6')](){const _0x553f66=this[_0x1318('0x2')],_0x37e43d=_0x553f66[_0x1318('0x5')]['get']('TrackChangesEditing');_0x553f66[_0x1318('0x5')][_0x1318('0x1')](_0x1318('0x3'))&&(_0x37e43d[_0x1318('0x4')](_0x1318('0x0')),_0x37e43d[_0x1318('0x4')](_0x1318('0x7')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ed2=['get','previousPosition','toViewPosition','activeMarkers','element','toViewElement','getCustomProperty','markerName','isBlock','mapper','ck-suggestion-marker--active','hasAttribute','listIndent','push','isContent','span','insert','nextSibling','addHighlight','isLimit','TrackChangesEditing','item','includes','ck-suggestion-marker-','createUIElement','writer','name','start','markerRange','consumable','isAtEnd','createRangeOn','plugins','bindElementToMarker'];(function(_0x512dd5,_0x1ed230){const _0x2316a7=function(_0xd44490){while(--_0xd44490){_0x512dd5['push'](_0x512dd5['shift']());}};_0x2316a7(++_0x1ed230);}(_0x1ed2,0x1b9));const _0x2316=function(_0x512dd5,_0x1ed230){_0x512dd5=_0x512dd5-0x0;let _0x2316a7=_0x1ed2[_0x512dd5];return _0x2316a7;};export function getRangesWithAttribute(_0x5c3ed7,_0x36f399,_0x4bc5c4){const _0x492314=[];for(const _0x1e80b8 of _0x36f399['getItems']())_0x1e80b8[_0x2316('0xc')](_0x5c3ed7)&&_0x492314[_0x2316('0xe')](_0x4bc5c4[_0x2316('0x20')](_0x1e80b8));return _0x492314;}export function getElementsAffectedByListItemRename(_0x2ce7e9){const _0x338c39=[];if(_0x2ce7e9['is'](_0x2316('0x5'),'listItem')){let _0x3dafab=_0x2ce7e9[_0x2316('0x12')];for(;_0x3dafab&&_0x3dafab['is'](_0x2316('0x5'),'listItem')&&_0x3dafab['getAttribute'](_0x2316('0xd'))>0x0;)_0x338c39[_0x2316('0xe')](_0x3dafab),_0x3dafab=_0x3dafab['nextSibling'];}return _0x338c39;}export function downcastSplitMergeMarker(_0x10cf57,_0x1c317a,{showActiveMarker:_0x1688b4=!0x0}={}){const _0x317448=_0x10cf57[_0x2316('0x21')][_0x2316('0x1')](_0x2316('0x15'));return(_0x509fa5,_0x67ca7a,_0x421a0b)=>{if(!_0x421a0b[_0x2316('0x1e')]['test'](_0x67ca7a[_0x2316('0x1d')],_0x509fa5[_0x2316('0x1b')]))return;const _0x3ec57f=_0x67ca7a['markerRange']['getWalker'](),_0x495528=_0x67ca7a[_0x2316('0x1d')][_0x2316('0x1c')],_0xb24156=_0x10cf57['model']['schema'];let _0x5f1b7f=null,_0x26dd04=null,_0x13328b=!0x1,_0x534b5c=!0x1;for(const _0xbde93b of _0x3ec57f){const _0x13f29b=_0xbde93b[_0x2316('0x16')];_0x13328b=_0x13328b||_0xb24156[_0x2316('0xf')](_0x13f29b);const _0x30a3dc=_0x421a0b[_0x2316('0xa')][_0x2316('0x6')](_0x13f29b);if(_0x30a3dc&&_0x30a3dc[_0x2316('0x7')](_0x2316('0x13')))return;'elementEnd'==_0xbde93b['type']&&(_0xb24156[_0x2316('0x9')](_0x13f29b)&&!_0xb24156[_0x2316('0x14')](_0x13f29b)&&(_0x13f29b[_0x2316('0x12')]||_0x495528[_0x2316('0x1f')]?_0x5f1b7f&&_0x5f1b7f['parent']==_0x13f29b||(_0x5f1b7f=_0x13f29b,_0xd4611f(_0xbde93b[_0x2316('0x2')]),_0x534b5c=!0x0):_0x26dd04=_0x26dd04||_0xbde93b[_0x2316('0x2')]));}function _0xd4611f(_0x2aae40){const _0x195f9b=_0x421a0b['writer'][_0x2316('0x19')](_0x2316('0x10'),{'class':_0x2316('0x18')+_0x1c317a}),_0x237e4e=_0x421a0b[_0x2316('0xa')][_0x2316('0x3')](_0x2aae40);_0x1688b4&&_0x317448[_0x2316('0x4')][_0x2316('0x17')](_0x67ca7a['markerName'])&&_0x421a0b[_0x2316('0x1a')]['addClass'](_0x2316('0xb'),_0x195f9b),_0x421a0b[_0x2316('0x1a')][_0x2316('0x11')](_0x237e4e,_0x195f9b),_0x421a0b[_0x2316('0xa')][_0x2316('0x0')](_0x195f9b,_0x67ca7a[_0x2316('0x8')]);}_0x13328b||_0x534b5c||!_0x26dd04||_0xd4611f(_0x26dd04);};}
23
+ const _0x1576=['name','createUIElement','push','schema','previousPosition','type','getItems','addClass','model','nextSibling','isLimit','ck-suggestion-marker--active','get','test','toViewElement','bindElementToMarker','consumable','ck-suggestion-marker-','plugins','TrackChangesEditing','includes','activeMarkers','markerRange','isContent','isAtEnd','item','getCustomProperty','element','toViewPosition','isBlock','getWalker','start','mapper','insert','writer','listItem','elementEnd','span'];(function(_0x593219,_0x15761b){const _0x358c5e=function(_0x3f9536){while(--_0x3f9536){_0x593219['push'](_0x593219['shift']());}};_0x358c5e(++_0x15761b);}(_0x1576,0x1db));const _0x358c=function(_0x593219,_0x15761b){_0x593219=_0x593219-0x0;let _0x358c5e=_0x1576[_0x593219];return _0x358c5e;};export function getRangesWithAttribute(_0x4d7945,_0x2d9724,_0x3b7834){const _0x52e2a6=[];for(const _0x3a06c2 of _0x2d9724[_0x358c('0x19')]())_0x3a06c2['hasAttribute'](_0x4d7945)&&_0x52e2a6[_0x358c('0x15')](_0x3b7834['createRangeOn'](_0x3a06c2));return _0x52e2a6;}export function getElementsAffectedByListItemRename(_0x3ea5c6){const _0x1ca53d=[];if(_0x3ea5c6['is'](_0x358c('0x8'),_0x358c('0x10'))){let _0x8ecd06=_0x3ea5c6[_0x358c('0x1c')];for(;_0x8ecd06&&_0x8ecd06['is'](_0x358c('0x8'),_0x358c('0x10'))&&_0x8ecd06['getAttribute']('listIndent')>0x0;)_0x1ca53d[_0x358c('0x15')](_0x8ecd06),_0x8ecd06=_0x8ecd06[_0x358c('0x1c')];}return _0x1ca53d;}export function downcastSplitMergeMarker(_0xb08edd,_0x22cdb0,{showActiveMarker:_0x5d7b66=!0x0}={}){const _0x36e750=_0xb08edd[_0x358c('0x25')][_0x358c('0x1f')](_0x358c('0x0'));return(_0x1aa5d2,_0x1516bc,_0x3fa009)=>{if(!_0x3fa009[_0x358c('0x23')][_0x358c('0x20')](_0x1516bc[_0x358c('0x3')],_0x1aa5d2[_0x358c('0x13')]))return;const _0x1d99d0=_0x1516bc[_0x358c('0x3')][_0x358c('0xb')](),_0x323b24=_0x1516bc[_0x358c('0x3')][_0x358c('0xc')],_0x57bc41=_0xb08edd[_0x358c('0x1b')][_0x358c('0x16')];let _0x34234f=null,_0x5c9fd0=null,_0x1489f5=!0x1,_0x23ec84=!0x1;for(const _0x4c78f6 of _0x1d99d0){const _0x267f29=_0x4c78f6[_0x358c('0x6')];_0x1489f5=_0x1489f5||_0x57bc41[_0x358c('0x4')](_0x267f29);const _0x2ed3d6=_0x3fa009[_0x358c('0xd')][_0x358c('0x21')](_0x267f29);if(_0x2ed3d6&&_0x2ed3d6[_0x358c('0x7')]('addHighlight'))return;_0x358c('0x11')==_0x4c78f6[_0x358c('0x18')]&&(_0x57bc41[_0x358c('0xa')](_0x267f29)&&!_0x57bc41[_0x358c('0x1d')](_0x267f29)&&(_0x267f29['nextSibling']||_0x323b24[_0x358c('0x5')]?_0x34234f&&_0x34234f['parent']==_0x267f29||(_0x34234f=_0x267f29,_0x2fdfe0(_0x4c78f6[_0x358c('0x17')]),_0x23ec84=!0x0):_0x5c9fd0=_0x5c9fd0||_0x4c78f6[_0x358c('0x17')]));}function _0x2fdfe0(_0x2b53e9){const _0x1b2ed3=_0x3fa009[_0x358c('0xf')][_0x358c('0x14')](_0x358c('0x12'),{'class':_0x358c('0x24')+_0x22cdb0}),_0xc3217=_0x3fa009[_0x358c('0xd')][_0x358c('0x9')](_0x2b53e9);_0x5d7b66&&_0x36e750[_0x358c('0x2')][_0x358c('0x1')](_0x1516bc['markerName'])&&_0x3fa009['writer'][_0x358c('0x1a')](_0x358c('0x1e'),_0x1b2ed3),_0x3fa009['writer'][_0x358c('0xe')](_0xc3217,_0x1b2ed3),_0x3fa009[_0x358c('0xd')][_0x358c('0x22')](_0x1b2ed3,_0x1516bc['markerName']);}_0x1489f5||_0x23ec84||!_0x5c9fd0||_0x2fdfe0(_0x5c9fd0);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1364=['subType','set','addRange','creator','getMarkerNames','isIntersectingWithRange','onAttributesChange','from','removeAttribute','getRange','size','filter','discard','hasComments','head','_onAttributesChange','end','get','getAllAdjacentSuggestions','_markerNames','onAccept','nodeBefore','@external','add','change','clear','getItems','getContainedElement','addMarkerName','start','getMarkers','isExternal','removeMarkers','map','type','_model','author','suggestion:','onDiscard','getRanges','_onDiscard','reduce','getMultiRangeId','substr','isInContent','push','attributes','data','getFirstRange','removeMarker','isMultiRange','createdAt','addMarker','previous','authoredAt','_onAccept','length','toJSON','getFirstMarker','split','setAttribute','accept','decorate','nodeAfter','commentThread'];(function(_0x20bcae,_0x136451){const _0x116048=function(_0xc9f79e){while(--_0xc9f79e){_0x20bcae['push'](_0x20bcae['shift']());}};_0x116048(++_0x136451);}(_0x1364,0x6c));const _0x1160=function(_0x20bcae,_0x136451){_0x20bcae=_0x20bcae-0x0;let _0x116048=_0x1364[_0x20bcae];return _0x116048;};import{Element as _0x4568c0}from'ckeditor5/src/engine';import{ObservableMixin as _0x380a53,uid as _0x32b771}from'ckeditor5/src/utils';import{cloneDeep as _0x15ce27,isEqual as _0x43651e,set as _0x2a2e6a,unset as _0x33b08f}from'lodash-es';export default class u extends _0x380a53(){constructor(_0x501842,_0x45f4a8){super(),this['id']=_0x45f4a8['id'],this[_0x1160('0x38')]=_0x45f4a8[_0x1160('0x38')],this[_0x1160('0x16')]=_0x45f4a8[_0x1160('0x16')]||null,this['author']=_0x45f4a8[_0x1160('0x3a')],this[_0x1160('0x19')]=_0x45f4a8['creator']||_0x45f4a8[_0x1160('0x3a')],this[_0x1160('0x35')]=Boolean(_0x45f4a8[_0x1160('0x3')]&&_0x45f4a8[_0x1160('0x3')][_0x1160('0x2c')]),this[_0x1160('0x4')]=null,this[_0x1160('0x39')]=_0x501842,this[_0x1160('0xc')]=_0x45f4a8[_0x1160('0x2a')],this[_0x1160('0x3e')]=_0x45f4a8[_0x1160('0x3c')],this['_onAttributesChange']=_0x45f4a8[_0x1160('0x1c')],this[_0x1160('0x29')]=new Set(),this['createdAt']=null,this[_0x1160('0x17')](_0x1160('0xb'),null),this[_0x1160('0x17')](_0x1160('0x3'),_0x45f4a8[_0x1160('0x3')]||{}),this[_0x1160('0x17')]('previous',null),this[_0x1160('0x17')]('next',null),this[_0x1160('0x17')](_0x1160('0x15'),null),this['set']('_saved',!0x1),this[_0x1160('0x13')]('accept'),this[_0x1160('0x13')](_0x1160('0x22'));}get['head'](){let _0xcf41fc=this;for(;_0xcf41fc[_0x1160('0xa')];)_0xcf41fc=_0xcf41fc[_0x1160('0xa')];return _0xcf41fc;}get[_0x1160('0x23')](){return!!this[_0x1160('0x15')]&&this[_0x1160('0x15')][_0x1160('0xd')]>0x0;}get[_0x1160('0x7')](){if(0x0==this['_markerNames'][_0x1160('0x20')])return!0x1;return 0x6==Array['from'](this[_0x1160('0x29')])[0x0][_0x1160('0x10')](':')[_0x1160('0xd')];}get[_0x1160('0x1')](){return null!==this['getFirstMarker']();}[_0x1160('0x32')](_0x1f6488){this['_markerNames'][_0x1160('0x2d')](_0x1f6488);}[_0x1160('0x1a')](){return Array[_0x1160('0x1d')](this[_0x1160('0x29')]);}[_0x1160('0x34')](){return this[_0x1160('0x1a')]()[_0x1160('0x37')](_0x76e787=>this['_model']['markers'][_0x1160('0x27')](_0x76e787))[_0x1160('0x21')](_0x2d588d=>_0x2d588d);}[_0x1160('0xf')](){return this['getMarkers']()[0x0]||null;}[_0x1160('0x36')](){this[_0x1160('0x39')][_0x1160('0x2e')](_0x1b50e4=>{for(const _0x43e862 of this[_0x1160('0x34')]())_0x1b50e4['removeMarker'](_0x43e862);}),this[_0x1160('0x29')][_0x1160('0x2f')]();}[_0x1160('0x6')](_0x2eafb1){this[_0x1160('0x39')][_0x1160('0x2e')](_0x454738=>{_0x454738[_0x1160('0x6')](_0x2eafb1);}),this[_0x1160('0x29')]['delete'](_0x2eafb1);}[_0x1160('0x18')](_0x56099d){const _0x56eb26=_0x1160('0x3b')+this[_0x1160('0x38')]+':'+this[_0x1160('0x16')]+':'+this['id']+':'+this[_0x1160('0x19')]['id']+':'+u[_0x1160('0x40')]();this[_0x1160('0x32')](_0x56eb26),this[_0x1160('0x39')][_0x1160('0x2e')](_0x66d7af=>{_0x66d7af[_0x1160('0x9')](_0x56eb26,{'range':_0x56099d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1160('0x1b')](_0x9aca45){for(const _0x1af23a of this[_0x1160('0x3d')]())if(_0x1af23a['isIntersecting'](_0x9aca45))return!0x0;return!0x1;}[_0x1160('0x3d')](){return this[_0x1160('0x34')]()[_0x1160('0x37')](_0x1fe8a4=>_0x1fe8a4[_0x1160('0x1f')]());}[_0x1160('0x30')](){return this['getRanges']()[_0x1160('0x3f')]((_0x249108,_0x4d78ba)=>[..._0x249108,..._0x4d78ba[_0x1160('0x30')]()],[]);}[_0x1160('0x5')](){var _0x1f8678;return(null===(_0x1f8678=this[_0x1160('0xf')]())||void 0x0===_0x1f8678?void 0x0:_0x1f8678['getRange']())||null;}[_0x1160('0x31')](){const _0x55d001=this[_0x1160('0x3d')]();if(0x1!=_0x55d001[_0x1160('0xd')])return null;const _0x25f55e=_0x55d001[0x0],_0x55cdad=_0x25f55e[_0x1160('0x33')][_0x1160('0x14')],_0x5da427=_0x25f55e[_0x1160('0x26')][_0x1160('0x2b')];return _0x55cdad instanceof _0x4568c0?_0x55cdad!=_0x5da427?null:_0x55cdad:null;}[_0x1160('0x12')](){this[_0x1160('0xc')](this[_0x1160('0x3d')](),this[_0x1160('0x4')],this[_0x1160('0x3')]),this['removeMarkers']();}[_0x1160('0x22')](){this[_0x1160('0x3e')](this[_0x1160('0x3d')](),this[_0x1160('0x4')],this[_0x1160('0x3')]),this[_0x1160('0x36')]();}[_0x1160('0x28')](){const _0x5552dd=[];let _0x39d7e3=this[_0x1160('0x24')];for(;_0x39d7e3;)_0x5552dd[_0x1160('0x2')](_0x39d7e3),_0x39d7e3=_0x39d7e3['next'];return _0x5552dd;}[_0x1160('0x11')](_0x16c4c8,_0x33831c){const _0x1f593b=_0x15ce27(this['attributes']);_0x2a2e6a(_0x1f593b,_0x16c4c8,_0x33831c),_0x43651e(_0x1f593b,this['attributes'])||(this[_0x1160('0x3')]=_0x1f593b,this[_0x1160('0x25')](_0x1f593b));}[_0x1160('0x1e')](_0x3a764b){const _0x14c49d=_0x15ce27(this[_0x1160('0x3')]);_0x33b08f(_0x14c49d,_0x3a764b),_0x43651e(_0x14c49d,this[_0x1160('0x3')])||(this[_0x1160('0x3')]=_0x14c49d,this[_0x1160('0x25')](this[_0x1160('0x3')]));}[_0x1160('0xe')](){return{'id':this['id'],'type':this[_0x1160('0x16')]?this[_0x1160('0x38')]+':'+this[_0x1160('0x16')]:this[_0x1160('0x38')],'authorId':this[_0x1160('0x19')]['id'],'createdAt':this[_0x1160('0x8')],'hasComments':this['hasComments'],'data':this[_0x1160('0x4')],'attributes':this[_0x1160('0x3')]};}static[_0x1160('0x40')](){return _0x32b771()[_0x1160('0x0')](0x1,0x5);}}
23
+ const _0x5730=['isInContent','removeMarker','delete','addRange','head','get','onDiscard','removeAttribute','createdAt','_onAttributesChange','commentThread','reduce','markers','toJSON','substr','_markerNames','onAccept','@external','authoredAt','decorate','onAttributesChange','getMarkerNames','set','suggestion:','author','creator','getRanges','getMarkers','getItems','attributes','discard','setAttribute','nodeAfter','map','getAllAdjacentSuggestions','isExternal','getContainedElement','length','getFirstRange','getFirstMarker','data','push','start','isIntersectingWithRange','getRange','removeMarkers','nodeBefore','accept','add','subType','_model','clear','type','addMarkerName','from','hasComments','_onDiscard','previous','isMultiRange','size','getMultiRangeId','_onAccept'];(function(_0x502d3c,_0x573092){const _0x402ef7=function(_0x4c66ac){while(--_0x4c66ac){_0x502d3c['push'](_0x502d3c['shift']());}};_0x402ef7(++_0x573092);}(_0x5730,0x1b5));const _0x402e=function(_0x502d3c,_0x573092){_0x502d3c=_0x502d3c-0x0;let _0x402ef7=_0x5730[_0x502d3c];return _0x402ef7;};import{Element as _0x14feac}from'ckeditor5/src/engine';import{ObservableMixin as _0x692ce4,uid as _0x1a6781}from'ckeditor5/src/utils';import{cloneDeep as _0x15376d,isEqual as _0xff4964,set as _0x113be0,unset as _0x15db31}from'lodash-es';export default class u extends _0x692ce4(){constructor(_0x32c12a,_0x3ca637){super(),this['id']=_0x3ca637['id'],this[_0x402e('0x31')]=_0x3ca637[_0x402e('0x31')],this[_0x402e('0x2e')]=_0x3ca637[_0x402e('0x2e')]||null,this['author']=_0x3ca637[_0x402e('0x15')],this[_0x402e('0x16')]=_0x3ca637[_0x402e('0x16')]||_0x3ca637[_0x402e('0x15')],this[_0x402e('0x20')]=Boolean(_0x3ca637[_0x402e('0x1a')]&&_0x3ca637[_0x402e('0x1a')][_0x402e('0xe')]),this['data']=null,this[_0x402e('0x2f')]=_0x32c12a,this[_0x402e('0x3a')]=_0x3ca637[_0x402e('0xd')],this[_0x402e('0x35')]=_0x3ca637[_0x402e('0x3')],this[_0x402e('0x6')]=_0x3ca637[_0x402e('0x11')],this[_0x402e('0xc')]=new Set(),this[_0x402e('0x5')]=null,this[_0x402e('0x13')](_0x402e('0xf'),null),this[_0x402e('0x13')](_0x402e('0x1a'),_0x3ca637[_0x402e('0x1a')]||{}),this[_0x402e('0x13')](_0x402e('0x36'),null),this['set']('next',null),this[_0x402e('0x13')](_0x402e('0x7'),null),this[_0x402e('0x13')]('_saved',!0x1),this[_0x402e('0x10')](_0x402e('0x2c')),this[_0x402e('0x10')](_0x402e('0x1b'));}get[_0x402e('0x1')](){let _0x3c9c0b=this;for(;_0x3c9c0b[_0x402e('0x36')];)_0x3c9c0b=_0x3c9c0b[_0x402e('0x36')];return _0x3c9c0b;}get[_0x402e('0x34')](){return!!this[_0x402e('0x7')]&&this[_0x402e('0x7')][_0x402e('0x22')]>0x0;}get[_0x402e('0x37')](){if(0x0==this['_markerNames'][_0x402e('0x38')])return!0x1;return 0x6==Array['from'](this[_0x402e('0xc')])[0x0]['split'](':')[_0x402e('0x22')];}get[_0x402e('0x3b')](){return null!==this[_0x402e('0x24')]();}[_0x402e('0x32')](_0x637801){this[_0x402e('0xc')][_0x402e('0x2d')](_0x637801);}[_0x402e('0x12')](){return Array[_0x402e('0x33')](this[_0x402e('0xc')]);}[_0x402e('0x18')](){return this[_0x402e('0x12')]()['map'](_0x2dc022=>this[_0x402e('0x2f')][_0x402e('0x9')][_0x402e('0x2')](_0x2dc022))['filter'](_0xfd4503=>_0xfd4503);}[_0x402e('0x24')](){return this['getMarkers']()[0x0]||null;}[_0x402e('0x2a')](){this[_0x402e('0x2f')]['change'](_0x218117=>{for(const _0xd6bb54 of this[_0x402e('0x18')]())_0x218117[_0x402e('0x3c')](_0xd6bb54);}),this[_0x402e('0xc')][_0x402e('0x30')]();}['removeMarker'](_0x2413d6){this[_0x402e('0x2f')]['change'](_0x47327d=>{_0x47327d[_0x402e('0x3c')](_0x2413d6);}),this['_markerNames'][_0x402e('0x3d')](_0x2413d6);}[_0x402e('0x0')](_0x124ff9){const _0xafcdf7=_0x402e('0x14')+this['type']+':'+this[_0x402e('0x2e')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x402e('0x39')]();this[_0x402e('0x32')](_0xafcdf7),this[_0x402e('0x2f')]['change'](_0x565483=>{_0x565483['addMarker'](_0xafcdf7,{'range':_0x124ff9,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x402e('0x28')](_0x1864bd){for(const _0x38fb55 of this[_0x402e('0x17')]())if(_0x38fb55['isIntersecting'](_0x1864bd))return!0x0;return!0x1;}[_0x402e('0x17')](){return this[_0x402e('0x18')]()[_0x402e('0x1e')](_0x436d03=>_0x436d03['getRange']());}[_0x402e('0x19')](){return this[_0x402e('0x17')]()[_0x402e('0x8')]((_0x3b79fa,_0xf92ac)=>[..._0x3b79fa,..._0xf92ac[_0x402e('0x19')]()],[]);}[_0x402e('0x23')](){var _0x519cc0;return(null===(_0x519cc0=this['getFirstMarker']())||void 0x0===_0x519cc0?void 0x0:_0x519cc0[_0x402e('0x29')]())||null;}[_0x402e('0x21')](){const _0x186f76=this[_0x402e('0x17')]();if(0x1!=_0x186f76[_0x402e('0x22')])return null;const _0x448c1b=_0x186f76[0x0],_0x518a88=_0x448c1b[_0x402e('0x27')][_0x402e('0x1d')],_0x174773=_0x448c1b['end'][_0x402e('0x2b')];return _0x518a88 instanceof _0x14feac?_0x518a88!=_0x174773?null:_0x518a88:null;}[_0x402e('0x2c')](){this[_0x402e('0x3a')](this[_0x402e('0x17')](),this[_0x402e('0x25')],this[_0x402e('0x1a')]),this[_0x402e('0x2a')]();}['discard'](){this[_0x402e('0x35')](this['getRanges'](),this[_0x402e('0x25')],this[_0x402e('0x1a')]),this[_0x402e('0x2a')]();}[_0x402e('0x1f')](){const _0x3988ce=[];let _0x4bed89=this[_0x402e('0x1')];for(;_0x4bed89;)_0x3988ce[_0x402e('0x26')](_0x4bed89),_0x4bed89=_0x4bed89['next'];return _0x3988ce;}[_0x402e('0x1c')](_0x3c4b99,_0x32a009){const _0x50502c=_0x15376d(this[_0x402e('0x1a')]);_0x113be0(_0x50502c,_0x3c4b99,_0x32a009),_0xff4964(_0x50502c,this['attributes'])||(this['attributes']=_0x50502c,this['_onAttributesChange'](_0x50502c));}[_0x402e('0x4')](_0x4dd5bd){const _0xf9273f=_0x15376d(this[_0x402e('0x1a')]);_0x15db31(_0xf9273f,_0x4dd5bd),_0xff4964(_0xf9273f,this['attributes'])||(this['attributes']=_0xf9273f,this['_onAttributesChange'](this[_0x402e('0x1a')]));}[_0x402e('0xa')](){return{'id':this['id'],'type':this[_0x402e('0x2e')]?this[_0x402e('0x31')]+':'+this['subType']:this[_0x402e('0x31')],'authorId':this[_0x402e('0x16')]['id'],'createdAt':this[_0x402e('0x5')],'hasComments':this[_0x402e('0x34')],'data':this['data'],'attributes':this[_0x402e('0x1a')]};}static['getMultiRangeId'](){return _0x1a6781()[_0x402e('0xb')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16a8=['addObject','push','_addDescriptionItems','_schema','get','item','registerDescriptionCallback','addEmptyContainer','end','function','deletion','skip','replace','quantity','match','_itemLabels','*Insert:*\x20%0','REPLACE_TEXT','add','set','_itemLabelsCallbacks','text','elementEnd','isEqual','data','_resolveDescriptionItems','element','getFirstRange','removeObject','elementStart','type','nextSibling','checkChild','getItemLabel','_customCallbacks','remove','label','normal','isEmpty','isInContent','removeContainer','previousSibling','indexOf','pop','getDescriptions','removeEmptyContainer','$textProxy','Container','*Remove:*\x20%0','isObject','ELEMENT_SPACE','Object','addContainer','*Merge:*\x20%0','getWalker','*Split:*\x20%0','EmptyContainer','name','length','$1\x20$2','start','insertion'];(function(_0x9933b5,_0x16a864){const _0x28f4c8=function(_0xb3cc5a){while(--_0xb3cc5a){_0x9933b5['push'](_0x9933b5['shift']());}};_0x28f4c8(++_0x16a864);}(_0x16a8,0x8c));const _0x28f4=function(_0x9933b5,_0x16a864){_0x9933b5=_0x9933b5-0x0;let _0x28f4c8=_0x16a8[_0x9933b5];return _0x28f4c8;};import{getTranslation as _0xf62a54}from'./utils/common-translations';import{priorities as _0x32d0b2,insertToPriorityArray as _0x429c91}from'ckeditor5/src/utils';export default class m{constructor(_0x209faa,_0x5904e7){this[_0x28f4('0x12')]=[],this[_0x28f4('0x3d')]=new Map(),this[_0x28f4('0x4')]=[],this['_schema']=_0x209faa,this['_locale']=_0x5904e7;}[_0x28f4('0x1c')](_0x1fabbd){const _0x1b0513=[];for(let _0x2c5dbd=0x0;_0x2c5dbd<_0x1fabbd[_0x28f4('0x2a')];_0x2c5dbd++){const _0x87955b=_0x1fabbd[_0x2c5dbd];if(!_0x87955b[_0x28f4('0x17')])continue;let _0x492767=!0x1;for(const _0x1525b0 of this[_0x28f4('0x12')]){const _0x57170b=_0x1525b0(_0x87955b);if(_0x57170b){'type'in _0x57170b&&_0x1b0513['push'](_0x57170b),_0x492767=!0x0;break;}}if(!_0x492767){this[_0x28f4('0x30')](_0x1b0513,_0x87955b);const _0x413697=_0x1fabbd[_0x2c5dbd+0x1];if(_0x413697&&!_0x87955b['getFirstRange']()[_0x28f4('0x36')][_0x28f4('0x7')](_0x413697[_0x28f4('0xb')]()[_0x28f4('0x2c')])){const _0x461c45=_0x1b0513[_0x1b0513[_0x28f4('0x2a')]-0x1],_0x4e5cfd='insertion'==_0x87955b['type']?_0x28f4('0x2'):_0x28f4('0x13');_0x461c45&&_0x28f4('0x5')==_0x461c45[_0x28f4('0xe')]&&(_0x461c45[_0x4e5cfd]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x1b0513);}[_0x28f4('0x34')](_0x5d3bca){this['_customCallbacks'][_0x28f4('0x2f')](_0x5d3bca);}['registerElementLabel'](_0x1398ca,_0x403dcc,_0xb721d0=_0x32d0b2[_0x28f4('0x15')]){_0x28f4('0x37')==typeof _0x1398ca?_0x429c91(this[_0x28f4('0x4')],{'matchingCallback':_0x1398ca,'label':_0x403dcc,'priority':_0xb721d0}):this['_itemLabels'][_0x28f4('0x3')](_0x1398ca,_0x403dcc);}['getItemLabel'](_0x3d2cc5,_0x33939d=0x1){let _0x200430;for(const _0x170920 of this[_0x28f4('0x4')])if(_0x170920['matchingCallback'](_0x3d2cc5)){_0x200430=_0x170920[_0x28f4('0x14')];break;}return _0x200430||(_0x200430=this['_itemLabels'][_0x28f4('0x32')](_0x3d2cc5[_0x28f4('0x29')])),_0x200430?_0x200430(_0x33939d):0x1!==_0x33939d?_0x33939d+'\x20'+_0x3d2cc5['name']+'s':''+_0x3d2cc5[_0x28f4('0x29')];}['_addDescriptionItems'](_0x387b7a,_0x4ca9bb){const _0x3dafd5=_0x4ca9bb[_0x28f4('0xb')]()[_0x28f4('0x26')](),_0x5e61a6=_0x28f4('0x2d')==_0x4ca9bb[_0x28f4('0xe')]?_0x28f4('0x2'):'remove';for(const _0xda5ef5 of _0x3dafd5){const _0x38d8b1=_0xda5ef5[_0x28f4('0x33')],_0xba1d7=_0x387b7a[_0x387b7a[_0x28f4('0x2a')]-0x1];if(_0x38d8b1['is'](_0x28f4('0x1e')))_0xba1d7&&_0xba1d7[_0x28f4('0xe')][_0x28f4('0x1a')]('Container')>-0x1&&_0x387b7a[_0x28f4('0x1b')](),_0xba1d7&&'text'==_0xba1d7[_0x28f4('0xe')]?_0xba1d7[_0x5e61a6]+=_0x38d8b1[_0x28f4('0x8')]:_0x387b7a[_0x28f4('0x2f')]({'type':_0x28f4('0x5'),'add':'add'==_0x5e61a6?_0x38d8b1['data']:'','remove':_0x28f4('0x13')==_0x5e61a6?_0x38d8b1[_0x28f4('0x8')]:''});else{if(this['_schema']['isObject'](_0x38d8b1)){const _0x576282=_0x38d8b1;if(_0xba1d7&&_0xba1d7[_0x28f4('0xe')][_0x28f4('0x1a')]('Container')>-0x1&&_0x387b7a[_0x28f4('0x1b')](),_0x28f4('0x6')==_0xda5ef5[_0x28f4('0xe')])continue;_0xba1d7&&_0xba1d7['type']==_0x5e61a6+'Object'&&_0xba1d7[_0x28f4('0xa')]['name']==_0x576282['name']?_0xba1d7['quantity']++:_0x387b7a[_0x28f4('0x2f')]({'type':_0x5e61a6+_0x28f4('0x23'),'element':_0x576282,'quantity':0x1}),_0x3dafd5[_0x28f4('0x39')](_0x33a1ab=>!(_0x28f4('0x6')==_0x33a1ab['type']&&_0x33a1ab['item']==_0x38d8b1));}else{if(this[_0x28f4('0x31')][_0x28f4('0x10')](_0x38d8b1,'$text')||_0x38d8b1['is'](_0x28f4('0xa'),'softBreak')){const _0x318a72=_0x38d8b1;if(_0x28f4('0x2')==_0x5e61a6&&_0x28f4('0xd')==_0xda5ef5['type']||'remove'==_0x5e61a6&&_0x28f4('0x6')==_0xda5ef5[_0x28f4('0xe')])continue;if(_0xba1d7&&-0x1==_0xba1d7[_0x28f4('0xe')]['indexOf'](_0x28f4('0x1f'))){'text'==_0xba1d7[_0x28f4('0xe')]&&(_0xba1d7[_0x5e61a6]+='\x0a');continue;}let _0x5a5d8d;if(_0x5a5d8d=_0x28f4('0x2')==_0x5e61a6?_0x318a72[_0x28f4('0xf')]&&!this[_0x28f4('0x31')][_0x28f4('0x21')](_0x318a72[_0x28f4('0xf')])?_0x318a72[_0x28f4('0xf')]:null:_0x318a72[_0x28f4('0x19')]&&!this['_schema'][_0x28f4('0x21')](_0x318a72[_0x28f4('0x19')])?_0x318a72['previousSibling']:null,_0x318a72[_0x28f4('0x16')]||_0x5a5d8d&&_0x5a5d8d['isEmpty']){const _0x55368a=_0x5a5d8d&&_0x5a5d8d[_0x28f4('0x16')]?_0x5a5d8d:_0x318a72;_0xba1d7&&_0xba1d7[_0x28f4('0xe')]==_0x5e61a6+_0x28f4('0x28')&&_0xba1d7[_0x28f4('0xa')]['name']==_0x55368a[_0x28f4('0x29')]?_0xba1d7[_0x28f4('0x3b')]++:_0x387b7a[_0x28f4('0x2f')]({'type':_0x5e61a6+_0x28f4('0x28'),'element':_0x55368a,'quantity':0x1});}else _0x387b7a['push']({'type':_0x5e61a6+'Container','element':_0x318a72});}}}}}[_0x28f4('0x9')](_0x1e5331){const _0x59f5c4=this['_locale'],_0x12ae52=[];for(const _0x2ce6fa of _0x1e5331){switch(_0x2ce6fa[_0x28f4('0xe')]){case _0x28f4('0x5'):if(_0x2ce6fa[_0x28f4('0x2')]=_0x2ce6fa[_0x28f4('0x2')][_0x28f4('0x3a')](/(\S)\u000A+(\S)/g,_0x28f4('0x2b'))['replace'](/\u000A/g,''),_0x2ce6fa[_0x28f4('0x13')]=_0x2ce6fa['remove'][_0x28f4('0x3a')](/(\S)\u000A+(\S)/g,_0x28f4('0x2b'))[_0x28f4('0x3a')](/\u000A/g,''),''!=_0x2ce6fa[_0x28f4('0x2')]&&''!=_0x2ce6fa[_0x28f4('0x13')]){_0x12ae52['push']({'type':_0x28f4('0x3a'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x1'),['\x22'+_0x2ce6fa[_0x28f4('0x13')]+'\x22','\x22'+_0x2ce6fa['add']+'\x22'])});continue;}if(null!=_0x2ce6fa[_0x28f4('0x2')][_0x28f4('0x3c')](/^ +$/)){_0x12ae52['push']({'type':'insertion','content':_0xf62a54(_0x59f5c4,_0x28f4('0x0'),_0xf62a54(_0x59f5c4,_0x28f4('0x22'),_0x2ce6fa[_0x28f4('0x2')][_0x28f4('0x2a')]))});continue;}if(null!=_0x2ce6fa[_0x28f4('0x13')][_0x28f4('0x3c')](/^ +$/)){_0x12ae52[_0x28f4('0x2f')]({'type':'deletion','content':_0xf62a54(_0x59f5c4,_0x28f4('0x20'),_0xf62a54(_0x59f5c4,_0x28f4('0x22'),_0x2ce6fa[_0x28f4('0x13')][_0x28f4('0x2a')]))});continue;}if(''!=_0x2ce6fa[_0x28f4('0x2')]){_0x12ae52[_0x28f4('0x2f')]({'type':_0x28f4('0x2d'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x0'),'\x22'+_0x2ce6fa['add']+'\x22')});continue;}_0x12ae52[_0x28f4('0x2f')]({'type':_0x28f4('0x38'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x20'),'\x22'+_0x2ce6fa[_0x28f4('0x13')]+'\x22')});continue;case _0x28f4('0x35'):case _0x28f4('0x2e'):_0x12ae52['push']({'type':_0x28f4('0x2d'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x0'),this[_0x28f4('0x11')](_0x2ce6fa[_0x28f4('0xa')],_0x2ce6fa[_0x28f4('0x3b')]))});continue;case _0x28f4('0x1d'):case _0x28f4('0xc'):_0x12ae52[_0x28f4('0x2f')]({'type':_0x28f4('0x38'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x20'),this[_0x28f4('0x11')](_0x2ce6fa[_0x28f4('0xa')],_0x2ce6fa['quantity']))});continue;case _0x28f4('0x24'):_0x12ae52[_0x28f4('0x2f')]({'type':_0x28f4('0x2d'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x27'),this[_0x28f4('0x11')](_0x2ce6fa[_0x28f4('0xa')],_0x2ce6fa[_0x28f4('0x3b')]))});continue;case _0x28f4('0x18'):_0x12ae52[_0x28f4('0x2f')]({'type':_0x28f4('0x38'),'content':_0xf62a54(_0x59f5c4,_0x28f4('0x25'),this[_0x28f4('0x11')](_0x2ce6fa[_0x28f4('0xa')],_0x2ce6fa[_0x28f4('0x3b')]))});continue;}_0x12ae52['push'](_0x2ce6fa);}return _0x12ae52;}}
23
+ const _0x39c0=['start','ELEMENT_SPACE','$text','isInContent','_customCallbacks','push','isObject','deletion','registerElementLabel','Object','quantity','getItemLabel','$1\x20$2','element','type','softBreak','pop','*Insert:*\x20%0','elementEnd','insertion','elementStart','addEmptyContainer','*Merge:*\x20%0','nextSibling','set','addObject','_schema','end','_addDescriptionItems','getDescriptions','text','function','name','Container','length','_locale','removeEmptyContainer','removeObject','add','indexOf','remove','data','item','*Remove:*\x20%0','replace','*Split:*\x20%0','isEmpty','_itemLabels','getFirstRange','getWalker','REPLACE_TEXT','match','previousSibling','_resolveDescriptionItems','get','_itemLabelsCallbacks'];(function(_0x348192,_0x39c074){const _0x10d7ed=function(_0x40b7ad){while(--_0x40b7ad){_0x348192['push'](_0x348192['shift']());}};_0x10d7ed(++_0x39c074);}(_0x39c0,0x140));const _0x10d7=function(_0x348192,_0x39c074){_0x348192=_0x348192-0x0;let _0x10d7ed=_0x39c0[_0x348192];return _0x10d7ed;};import{getTranslation as _0xd14cab}from'./utils/common-translations';import{priorities as _0x7dc9d6,insertToPriorityArray as _0x4f5464}from'ckeditor5/src/utils';export default class m{constructor(_0x52ecd8,_0x208ee6){this[_0x10d7('0x14')]=[],this['_itemLabels']=new Map(),this[_0x10d7('0xf')]=[],this[_0x10d7('0x2a')]=_0x52ecd8,this[_0x10d7('0x33')]=_0x208ee6;}[_0x10d7('0x2d')](_0x11d077){const _0x345985=[];for(let _0x31c5fd=0x0;_0x31c5fd<_0x11d077[_0x10d7('0x32')];_0x31c5fd++){const _0x34d1ba=_0x11d077[_0x31c5fd];if(!_0x34d1ba[_0x10d7('0x13')])continue;let _0x4cfccf=!0x1;for(const _0x69acf1 of this[_0x10d7('0x14')]){const _0x1bcb7e=_0x69acf1(_0x34d1ba);if(_0x1bcb7e){_0x10d7('0x1e')in _0x1bcb7e&&_0x345985[_0x10d7('0x15')](_0x1bcb7e),_0x4cfccf=!0x0;break;}}if(!_0x4cfccf){this['_addDescriptionItems'](_0x345985,_0x34d1ba);const _0x88e6a0=_0x11d077[_0x31c5fd+0x1];if(_0x88e6a0&&!_0x34d1ba[_0x10d7('0x8')]()[_0x10d7('0x2b')]['isEqual'](_0x88e6a0[_0x10d7('0x8')]()[_0x10d7('0x10')])){const _0x33524d=_0x345985[_0x345985[_0x10d7('0x32')]-0x1],_0x2a5fc9=_0x10d7('0x23')==_0x34d1ba[_0x10d7('0x1e')]?_0x10d7('0x36'):_0x10d7('0x0');_0x33524d&&_0x10d7('0x2e')==_0x33524d[_0x10d7('0x1e')]&&(_0x33524d[_0x2a5fc9]+='\x0a');}}}return this[_0x10d7('0xd')](_0x345985);}['registerDescriptionCallback'](_0x4ebe45){this['_customCallbacks']['push'](_0x4ebe45);}[_0x10d7('0x18')](_0x1966f0,_0x2db84d,_0x4d3a40=_0x7dc9d6['normal']){_0x10d7('0x2f')==typeof _0x1966f0?_0x4f5464(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1966f0,'label':_0x2db84d,'priority':_0x4d3a40}):this[_0x10d7('0x7')][_0x10d7('0x28')](_0x1966f0,_0x2db84d);}[_0x10d7('0x1b')](_0xf8f88d,_0x3a9178=0x1){let _0x4c450c;for(const _0x2a0f79 of this[_0x10d7('0xf')])if(_0x2a0f79['matchingCallback'](_0xf8f88d)){_0x4c450c=_0x2a0f79['label'];break;}return _0x4c450c||(_0x4c450c=this['_itemLabels'][_0x10d7('0xe')](_0xf8f88d[_0x10d7('0x30')])),_0x4c450c?_0x4c450c(_0x3a9178):0x1!==_0x3a9178?_0x3a9178+'\x20'+_0xf8f88d[_0x10d7('0x30')]+'s':''+_0xf8f88d[_0x10d7('0x30')];}[_0x10d7('0x2c')](_0x569c16,_0x16bd8e){const _0x2f9d57=_0x16bd8e[_0x10d7('0x8')]()[_0x10d7('0x9')](),_0x3beebc=_0x10d7('0x23')==_0x16bd8e[_0x10d7('0x1e')]?_0x10d7('0x36'):_0x10d7('0x0');for(const _0x27d3a4 of _0x2f9d57){const _0x33a0ee=_0x27d3a4[_0x10d7('0x2')],_0x4dc9d2=_0x569c16[_0x569c16[_0x10d7('0x32')]-0x1];if(_0x33a0ee['is']('$textProxy'))_0x4dc9d2&&_0x4dc9d2['type'][_0x10d7('0x37')]('Container')>-0x1&&_0x569c16[_0x10d7('0x20')](),_0x4dc9d2&&_0x10d7('0x2e')==_0x4dc9d2[_0x10d7('0x1e')]?_0x4dc9d2[_0x3beebc]+=_0x33a0ee[_0x10d7('0x1')]:_0x569c16[_0x10d7('0x15')]({'type':'text','add':_0x10d7('0x36')==_0x3beebc?_0x33a0ee[_0x10d7('0x1')]:'','remove':_0x10d7('0x0')==_0x3beebc?_0x33a0ee[_0x10d7('0x1')]:''});else{if(this[_0x10d7('0x2a')][_0x10d7('0x16')](_0x33a0ee)){const _0x3e2ad7=_0x33a0ee;if(_0x4dc9d2&&_0x4dc9d2[_0x10d7('0x1e')]['indexOf'](_0x10d7('0x31'))>-0x1&&_0x569c16[_0x10d7('0x20')](),_0x10d7('0x22')==_0x27d3a4[_0x10d7('0x1e')])continue;_0x4dc9d2&&_0x4dc9d2[_0x10d7('0x1e')]==_0x3beebc+_0x10d7('0x19')&&_0x4dc9d2[_0x10d7('0x1d')][_0x10d7('0x30')]==_0x3e2ad7[_0x10d7('0x30')]?_0x4dc9d2[_0x10d7('0x1a')]++:_0x569c16['push']({'type':_0x3beebc+_0x10d7('0x19'),'element':_0x3e2ad7,'quantity':0x1}),_0x2f9d57['skip'](_0x1cf7f7=>!('elementEnd'==_0x1cf7f7[_0x10d7('0x1e')]&&_0x1cf7f7[_0x10d7('0x2')]==_0x33a0ee));}else{if(this['_schema']['checkChild'](_0x33a0ee,_0x10d7('0x12'))||_0x33a0ee['is'](_0x10d7('0x1d'),_0x10d7('0x1f'))){const _0x42bc6c=_0x33a0ee;if('add'==_0x3beebc&&_0x10d7('0x24')==_0x27d3a4[_0x10d7('0x1e')]||_0x10d7('0x0')==_0x3beebc&&_0x10d7('0x22')==_0x27d3a4['type'])continue;if(_0x4dc9d2&&-0x1==_0x4dc9d2[_0x10d7('0x1e')][_0x10d7('0x37')]('Container')){_0x10d7('0x2e')==_0x4dc9d2[_0x10d7('0x1e')]&&(_0x4dc9d2[_0x3beebc]+='\x0a');continue;}let _0xbe227d;if(_0xbe227d=_0x10d7('0x36')==_0x3beebc?_0x42bc6c[_0x10d7('0x27')]&&!this[_0x10d7('0x2a')][_0x10d7('0x16')](_0x42bc6c[_0x10d7('0x27')])?_0x42bc6c['nextSibling']:null:_0x42bc6c['previousSibling']&&!this['_schema']['isObject'](_0x42bc6c['previousSibling'])?_0x42bc6c[_0x10d7('0xc')]:null,_0x42bc6c[_0x10d7('0x6')]||_0xbe227d&&_0xbe227d[_0x10d7('0x6')]){const _0xde1525=_0xbe227d&&_0xbe227d[_0x10d7('0x6')]?_0xbe227d:_0x42bc6c;_0x4dc9d2&&_0x4dc9d2[_0x10d7('0x1e')]==_0x3beebc+'EmptyContainer'&&_0x4dc9d2[_0x10d7('0x1d')][_0x10d7('0x30')]==_0xde1525[_0x10d7('0x30')]?_0x4dc9d2[_0x10d7('0x1a')]++:_0x569c16[_0x10d7('0x15')]({'type':_0x3beebc+'EmptyContainer','element':_0xde1525,'quantity':0x1});}else _0x569c16[_0x10d7('0x15')]({'type':_0x3beebc+_0x10d7('0x31'),'element':_0x42bc6c});}}}}}[_0x10d7('0xd')](_0x48bc32){const _0xfa0192=this[_0x10d7('0x33')],_0x13fcd5=[];for(const _0x2270ed of _0x48bc32){switch(_0x2270ed[_0x10d7('0x1e')]){case _0x10d7('0x2e'):if(_0x2270ed[_0x10d7('0x36')]=_0x2270ed[_0x10d7('0x36')][_0x10d7('0x4')](/(\S)\u000A+(\S)/g,_0x10d7('0x1c'))[_0x10d7('0x4')](/\u000A/g,''),_0x2270ed[_0x10d7('0x0')]=_0x2270ed[_0x10d7('0x0')][_0x10d7('0x4')](/(\S)\u000A+(\S)/g,_0x10d7('0x1c'))[_0x10d7('0x4')](/\u000A/g,''),''!=_0x2270ed[_0x10d7('0x36')]&&''!=_0x2270ed['remove']){_0x13fcd5['push']({'type':_0x10d7('0x4'),'content':_0xd14cab(_0xfa0192,_0x10d7('0xa'),['\x22'+_0x2270ed[_0x10d7('0x0')]+'\x22','\x22'+_0x2270ed['add']+'\x22'])});continue;}if(null!=_0x2270ed['add'][_0x10d7('0xb')](/^ +$/)){_0x13fcd5['push']({'type':_0x10d7('0x23'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x21'),_0xd14cab(_0xfa0192,_0x10d7('0x11'),_0x2270ed[_0x10d7('0x36')]['length']))});continue;}if(null!=_0x2270ed[_0x10d7('0x0')][_0x10d7('0xb')](/^ +$/)){_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x3'),_0xd14cab(_0xfa0192,_0x10d7('0x11'),_0x2270ed[_0x10d7('0x0')][_0x10d7('0x32')]))});continue;}if(''!=_0x2270ed[_0x10d7('0x36')]){_0x13fcd5[_0x10d7('0x15')]({'type':'insertion','content':_0xd14cab(_0xfa0192,_0x10d7('0x21'),'\x22'+_0x2270ed['add']+'\x22')});continue;}_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x3'),'\x22'+_0x2270ed[_0x10d7('0x0')]+'\x22')});continue;case _0x10d7('0x25'):case _0x10d7('0x29'):_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x23'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x21'),this['getItemLabel'](_0x2270ed[_0x10d7('0x1d')],_0x2270ed['quantity']))});continue;case _0x10d7('0x34'):case _0x10d7('0x35'):_0x13fcd5['push']({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x3'),this[_0x10d7('0x1b')](_0x2270ed[_0x10d7('0x1d')],_0x2270ed[_0x10d7('0x1a')]))});continue;case'addContainer':_0x13fcd5['push']({'type':'insertion','content':_0xd14cab(_0xfa0192,_0x10d7('0x5'),this[_0x10d7('0x1b')](_0x2270ed[_0x10d7('0x1d')],_0x2270ed[_0x10d7('0x1a')]))});continue;case'removeContainer':_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x26'),this[_0x10d7('0x1b')](_0x2270ed[_0x10d7('0x1d')],_0x2270ed['quantity']))});continue;}_0x13fcd5[_0x10d7('0x15')](_0x2270ed);}return _0x13fcd5;}}