@ckeditor/ckeditor5-track-changes 35.4.0 → 36.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/build/track-changes.js +3 -3
  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 +6 -3
  49. package/lang/translations/ar.po +16 -4
  50. package/lang/translations/az.po +16 -4
  51. package/lang/translations/bg.po +16 -4
  52. package/lang/translations/bn.po +16 -4
  53. package/lang/translations/ca.po +16 -4
  54. package/lang/translations/cs.po +16 -4
  55. package/lang/translations/da.po +16 -4
  56. package/lang/translations/de.po +16 -4
  57. package/lang/translations/el.po +16 -4
  58. package/lang/translations/en-au.po +16 -4
  59. package/lang/translations/en.po +16 -4
  60. package/lang/translations/es.po +16 -4
  61. package/lang/translations/et.po +16 -4
  62. package/lang/translations/fi.po +16 -4
  63. package/lang/translations/fr.po +16 -4
  64. package/lang/translations/gl.po +16 -4
  65. package/lang/translations/he.po +16 -4
  66. package/lang/translations/hi.po +16 -4
  67. package/lang/translations/hr.po +16 -4
  68. package/lang/translations/hu.po +16 -4
  69. package/lang/translations/id.po +16 -4
  70. package/lang/translations/it.po +16 -4
  71. package/lang/translations/ja.po +16 -4
  72. package/lang/translations/ko.po +16 -4
  73. package/lang/translations/lt.po +16 -4
  74. package/lang/translations/lv.po +16 -4
  75. package/lang/translations/ms.po +16 -4
  76. package/lang/translations/nl.po +16 -4
  77. package/lang/translations/no.po +16 -4
  78. package/lang/translations/pl.po +16 -4
  79. package/lang/translations/pt-br.po +16 -4
  80. package/lang/translations/pt.po +16 -4
  81. package/lang/translations/ro.po +16 -4
  82. package/lang/translations/ru.po +16 -4
  83. package/lang/translations/sk.po +16 -4
  84. package/lang/translations/sr-latn.po +32 -20
  85. package/lang/translations/sr.po +33 -21
  86. package/lang/translations/sv.po +16 -4
  87. package/lang/translations/th.po +16 -4
  88. package/lang/translations/tk.po +16 -4
  89. package/lang/translations/tr.po +16 -4
  90. package/lang/translations/tt.po +16 -4
  91. package/lang/translations/uk.po +16 -4
  92. package/lang/translations/ur.po +16 -4
  93. package/lang/translations/vi.po +16 -4
  94. package/lang/translations/zh-cn.po +16 -4
  95. package/lang/translations/zh.po +16 -4
  96. package/package.json +4 -4
  97. package/src/commands/acceptsuggestioncommand.js +2 -2
  98. package/src/commands/discardsuggestioncommand.js +2 -2
  99. package/src/commands/executeonallsuggestionscommand.js +2 -2
  100. package/src/commands/executeonselectedsuggestionscommand.js +2 -2
  101. package/src/commands/trackchangescommand.js +2 -2
  102. package/src/index.js +1 -1
  103. package/src/integrations/alignment.js +2 -2
  104. package/src/integrations/basicstyles.js +2 -2
  105. package/src/integrations/blockquote.js +2 -2
  106. package/src/integrations/ckbox.js +2 -2
  107. package/src/integrations/codeblock.js +2 -2
  108. package/src/integrations/comments.js +2 -2
  109. package/src/integrations/deletecommand.js +2 -2
  110. package/src/integrations/documentlist.js +2 -2
  111. package/src/integrations/documentlistproperties.js +2 -2
  112. package/src/integrations/entercommand.js +2 -2
  113. package/src/integrations/findandreplace.js +23 -0
  114. package/src/integrations/font.js +2 -2
  115. package/src/integrations/heading.js +2 -2
  116. package/src/integrations/highlight.js +2 -2
  117. package/src/integrations/horizontalline.js +2 -2
  118. package/src/integrations/htmlembed.js +2 -2
  119. package/src/integrations/image.js +2 -2
  120. package/src/integrations/imagereplace.js +23 -0
  121. package/src/integrations/importword.js +2 -2
  122. package/src/integrations/indent.js +2 -2
  123. package/src/integrations/inputcommand.js +2 -2
  124. package/src/integrations/link.js +2 -2
  125. package/src/integrations/list.js +2 -2
  126. package/src/integrations/listproperties.js +2 -2
  127. package/src/integrations/mediaembed.js +2 -2
  128. package/src/integrations/mention.js +2 -2
  129. package/src/integrations/pagebreak.js +2 -2
  130. package/src/integrations/paragraph.js +2 -2
  131. package/src/integrations/removeformat.js +2 -2
  132. package/src/integrations/restrictededitingmode.js +2 -2
  133. package/src/integrations/shiftentercommand.js +2 -2
  134. package/src/integrations/standardeditingmode.js +2 -2
  135. package/src/integrations/style.js +2 -2
  136. package/src/integrations/table.js +2 -2
  137. package/src/integrations/tablecaption.js +2 -2
  138. package/src/integrations/tableclipboard.js +2 -2
  139. package/src/integrations/tablecolumnresize.js +2 -2
  140. package/src/integrations/tableheadings.js +2 -2
  141. package/src/integrations/tablemergesplit.js +2 -2
  142. package/src/integrations/tableproperties.js +23 -0
  143. package/src/integrations/title.js +2 -2
  144. package/src/integrations/undo.js +2 -2
  145. package/src/integrations/utils.js +2 -2
  146. package/src/suggestion.js +2 -2
  147. package/src/suggestiondescriptionfactory.js +2 -2
  148. package/src/trackchanges.js +2 -2
  149. package/src/trackchangesdata.js +2 -2
  150. package/src/trackchangesediting.js +2 -2
  151. package/src/trackchangesui.js +2 -2
  152. package/src/ui/suggestioncontroller.js +2 -2
  153. package/src/ui/view/basesuggestionthreadview.js +2 -2
  154. package/src/ui/view/suggestionthreadview.js +2 -2
  155. package/src/utils/common-translations.js +2 -2
  156. package/src/utils/utils.js +2 -2
package/src/suggestion.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1312=['get','suggestion:','_saved','removeAttribute','change','head','reduce','getContainedElement','data','length','onAttributesChange','toJSON','from','previous','isIntersecting','creator','@external','isInContent','isExternal','getItems','clear','next','_markerNames','attributes','onDiscard','hasComments','createdAt','decorate','author','addRange','map','accept','removeMarker','getMarkers','set','push','addMarkerName','onAccept','discard','size','type','_model','getRange','getMultiRangeId','_onAccept','_onDiscard','filter','getMarkerNames','subType','nodeAfter','getRanges','end','getFirstMarker','commentThread','substr','add','removeMarkers','setAttribute','_onAttributesChange','delete'];(function(_0x1bd61a,_0x131276){const _0x374109=function(_0x234c6b){while(--_0x234c6b){_0x1bd61a['push'](_0x1bd61a['shift']());}};_0x374109(++_0x131276);}(_0x1312,0xd9));const _0x3741=function(_0x1bd61a,_0x131276){_0x1bd61a=_0x1bd61a-0x0;let _0x374109=_0x1312[_0x1bd61a];return _0x374109;};import{Element as _0x5de625}from'ckeditor5/src/engine';import{ObservableMixin as _0x36f049,mix as _0x479369,uid as _0x4cc549}from'ckeditor5/src/utils';import{cloneDeep as _0x2db8da,isEqual as _0x4a72ac,set as _0x18238c,unset as _0x1a5a4b}from'lodash-es';export default class o{constructor(_0x1e5d2d,_0x2acd78){this['id']=_0x2acd78['id'],this[_0x3741('0x3')]=_0x2acd78[_0x3741('0x3')],this['subType']=_0x2acd78[_0x3741('0xb')]||null,this['author']=_0x2acd78[_0x3741('0x33')],this[_0x3741('0x26')]=_0x2acd78[_0x3741('0x26')]||_0x2acd78['author'],this[_0x3741('0x29')]=Boolean(_0x2acd78['attributes']&&_0x2acd78[_0x3741('0x2e')][_0x3741('0x27')]),this[_0x3741('0x1f')]=null,this[_0x3741('0x4')]=_0x1e5d2d,this[_0x3741('0x7')]=_0x2acd78[_0x3741('0x0')],this['_onDiscard']=_0x2acd78[_0x3741('0x2f')],this[_0x3741('0x15')]=_0x2acd78[_0x3741('0x21')],this[_0x3741('0x2d')]=new Set(),this[_0x3741('0x31')]=null,this['set']('authoredAt',null),this['set'](_0x3741('0x2e'),_0x2acd78['attributes']||{}),this[_0x3741('0x39')](_0x3741('0x24'),null),this[_0x3741('0x39')](_0x3741('0x2c'),null),this[_0x3741('0x39')](_0x3741('0x10'),null),this[_0x3741('0x39')](_0x3741('0x19'),!0x1),this[_0x3741('0x32')]('accept'),this[_0x3741('0x32')](_0x3741('0x1'));}get['head'](){let _0x850334=this;for(;_0x850334[_0x3741('0x24')];)_0x850334=_0x850334[_0x3741('0x24')];return _0x850334;}get[_0x3741('0x30')](){return!!this[_0x3741('0x10')]&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames'][_0x3741('0x2')])return!0x1;return 0x6==Array[_0x3741('0x23')](this[_0x3741('0x2d')])[0x0]['split'](':')[_0x3741('0x20')];}get[_0x3741('0x28')](){return null!==this[_0x3741('0xf')]();}['addMarkerName'](_0x16914d){this[_0x3741('0x2d')][_0x3741('0x12')](_0x16914d);}[_0x3741('0xa')](){return Array['from'](this[_0x3741('0x2d')]);}[_0x3741('0x38')](){return this[_0x3741('0xa')]()[_0x3741('0x35')](_0x8885da=>this[_0x3741('0x4')]['markers'][_0x3741('0x17')](_0x8885da))[_0x3741('0x9')](_0x27f4cb=>_0x27f4cb);}[_0x3741('0xf')](){return this[_0x3741('0x38')]()[0x0]||null;}[_0x3741('0x13')](){this['_model'][_0x3741('0x1b')](_0x5eb833=>{for(const _0x1de3e1 of this['getMarkers']())_0x5eb833['removeMarker'](_0x1de3e1);}),this['_markerNames'][_0x3741('0x2b')]();}['removeMarker'](_0x5689a2){this[_0x3741('0x4')][_0x3741('0x1b')](_0x12e6eb=>{_0x12e6eb[_0x3741('0x37')](_0x5689a2);}),this[_0x3741('0x2d')][_0x3741('0x16')](_0x5689a2);}[_0x3741('0x34')](_0x477329){const _0x3eb92c=_0x3741('0x18')+this[_0x3741('0x3')]+':'+this[_0x3741('0xb')]+':'+this['id']+':'+this['creator']['id']+':'+o[_0x3741('0x6')]();this[_0x3741('0x3b')](_0x3eb92c),this[_0x3741('0x4')][_0x3741('0x1b')](_0x1643b9=>{_0x1643b9['addMarker'](_0x3eb92c,{'range':_0x477329,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7f5402){for(const _0x4683c5 of this['getRanges']())if(_0x4683c5[_0x3741('0x25')](_0x7f5402))return!0x0;return!0x1;}[_0x3741('0xd')](){return this['getMarkers']()[_0x3741('0x35')](_0x251500=>_0x251500[_0x3741('0x5')]());}[_0x3741('0x2a')](){return this[_0x3741('0xd')]()[_0x3741('0x1d')]((_0x11b5f5,_0x21ae8e)=>[..._0x11b5f5,..._0x21ae8e[_0x3741('0x2a')]()],[]);}['getFirstRange'](){return this[_0x3741('0xf')]()[_0x3741('0x5')]();}[_0x3741('0x1e')](){const _0x2e6047=this['getRanges']();if(0x1!=_0x2e6047['length'])return null;const _0x16664f=_0x2e6047[0x0],_0xf2e107=_0x16664f['start'][_0x3741('0xc')],_0x3d147a=_0x16664f[_0x3741('0xe')]['nodeBefore'];return _0xf2e107 instanceof _0x5de625?_0xf2e107!=_0x3d147a?null:_0xf2e107:null;}[_0x3741('0x36')](){this[_0x3741('0x7')](this[_0x3741('0xd')](),this['data'],this[_0x3741('0x2e')]),this[_0x3741('0x13')]();}[_0x3741('0x1')](){this[_0x3741('0x8')](this[_0x3741('0xd')](),this[_0x3741('0x1f')],this[_0x3741('0x2e')]),this[_0x3741('0x13')]();}['getAllAdjacentSuggestions'](){const _0x4a47db=[];let _0x1cf0ed=this[_0x3741('0x1c')];for(;_0x1cf0ed;)_0x4a47db[_0x3741('0x3a')](_0x1cf0ed),_0x1cf0ed=_0x1cf0ed[_0x3741('0x2c')];return _0x4a47db;}[_0x3741('0x14')](_0x55949a,_0x3a4d24){const _0xee7735=_0x2db8da(this[_0x3741('0x2e')]);_0x18238c(_0xee7735,_0x55949a,_0x3a4d24),_0x4a72ac(_0xee7735,this[_0x3741('0x2e')])||(this['attributes']=_0xee7735,this[_0x3741('0x15')](_0xee7735));}[_0x3741('0x1a')](_0x4418ea){const _0x3c1ae8=_0x2db8da(this[_0x3741('0x2e')]);_0x1a5a4b(_0x3c1ae8,_0x4418ea),_0x4a72ac(_0x3c1ae8,this[_0x3741('0x2e')])||(this[_0x3741('0x2e')]=_0x3c1ae8,this[_0x3741('0x15')](this[_0x3741('0x2e')]));}[_0x3741('0x22')](){return{'id':this['id'],'type':this[_0x3741('0xb')]?this['type']+':'+this['subType']:this[_0x3741('0x3')],'authorId':this[_0x3741('0x26')]['id'],'createdAt':this[_0x3741('0x31')],'hasComments':this['hasComments'],'data':this[_0x3741('0x1f')],'attributes':this[_0x3741('0x2e')]};}static[_0x3741('0x6')](){return _0x4cc549()[_0x3741('0x11')](0x1,0x5);}}_0x479369(o,_0x36f049);
23
+ const _0x4ca7=['start','addMarkerName','subType','addMarker','_model','data','next','hasComments','onAccept','getMarkers','attributes','_onDiscard','createdAt','getAllAdjacentSuggestions','getMarkerNames','filter','@external','_markerNames','addRange','accept','isIntersecting','nodeBefore','get','nodeAfter','getRanges','getContainedElement','markers','commentThread','end','getRange','clear','toJSON','isInContent','isIntersectingWithRange','decorate','_onAccept','removeMarkers','authoredAt','map','type','isMultiRange','getFirstMarker','head','isExternal','suggestion:','split','set','removeMarker','discard','creator','add','_onAttributesChange','author','onAttributesChange','push'];(function(_0x2c8a61,_0x4ca73d){const _0x2f55ae=function(_0x6e38e4){while(--_0x6e38e4){_0x2c8a61['push'](_0x2c8a61['shift']());}};_0x2f55ae(++_0x4ca73d);}(_0x4ca7,0x11f));const _0x2f55=function(_0x2c8a61,_0x4ca73d){_0x2c8a61=_0x2c8a61-0x0;let _0x2f55ae=_0x4ca7[_0x2c8a61];return _0x2f55ae;};import{Element as _0x3a47a1}from'ckeditor5/src/engine';import{ObservableMixin as _0x45ddf8,mix as _0x10b0bf,uid as _0x41f425}from'ckeditor5/src/utils';import{cloneDeep as _0x493417,isEqual as _0x4e7721,set as _0x1b5b7a,unset as _0x17a8d6}from'lodash-es';export default class o{constructor(_0x1a4f9a,_0x2b05f3){this['id']=_0x2b05f3['id'],this[_0x2f55('0x1b')]=_0x2b05f3[_0x2f55('0x1b')],this[_0x2f55('0x2d')]=_0x2b05f3[_0x2f55('0x2d')]||null,this[_0x2f55('0x28')]=_0x2b05f3[_0x2f55('0x28')],this['creator']=_0x2b05f3[_0x2f55('0x25')]||_0x2b05f3[_0x2f55('0x28')],this[_0x2f55('0x1f')]=Boolean(_0x2b05f3[_0x2f55('0x35')]&&_0x2b05f3[_0x2f55('0x35')][_0x2f55('0x4')]),this[_0x2f55('0x30')]=null,this[_0x2f55('0x2f')]=_0x1a4f9a,this[_0x2f55('0x17')]=_0x2b05f3[_0x2f55('0x33')],this[_0x2f55('0x36')]=_0x2b05f3['onDiscard'],this[_0x2f55('0x27')]=_0x2b05f3[_0x2f55('0x29')],this[_0x2f55('0x5')]=new Set(),this[_0x2f55('0x0')]=null,this['set'](_0x2f55('0x19'),null),this[_0x2f55('0x22')](_0x2f55('0x35'),_0x2b05f3[_0x2f55('0x35')]||{}),this['set']('previous',null),this['set']('next',null),this[_0x2f55('0x22')](_0x2f55('0xf'),null),this[_0x2f55('0x22')]('_saved',!0x1),this[_0x2f55('0x16')](_0x2f55('0x7')),this[_0x2f55('0x16')](_0x2f55('0x24'));}get[_0x2f55('0x1e')](){let _0x1ef8ff=this;for(;_0x1ef8ff['previous'];)_0x1ef8ff=_0x1ef8ff['previous'];return _0x1ef8ff;}get[_0x2f55('0x32')](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get[_0x2f55('0x1c')](){if(0x0==this[_0x2f55('0x5')]['size'])return!0x1;return 0x6==Array['from'](this[_0x2f55('0x5')])[0x0][_0x2f55('0x21')](':')['length'];}get[_0x2f55('0x14')](){return null!==this[_0x2f55('0x1d')]();}[_0x2f55('0x2c')](_0x219c05){this['_markerNames'][_0x2f55('0x26')](_0x219c05);}[_0x2f55('0x2')](){return Array['from'](this[_0x2f55('0x5')]);}[_0x2f55('0x34')](){return this[_0x2f55('0x2')]()[_0x2f55('0x1a')](_0x6847c6=>this[_0x2f55('0x2f')][_0x2f55('0xe')][_0x2f55('0xa')](_0x6847c6))[_0x2f55('0x3')](_0x43c4b5=>_0x43c4b5);}[_0x2f55('0x1d')](){return this[_0x2f55('0x34')]()[0x0]||null;}[_0x2f55('0x18')](){this[_0x2f55('0x2f')]['change'](_0x3d9f9e=>{for(const _0x32db39 of this[_0x2f55('0x34')]())_0x3d9f9e[_0x2f55('0x23')](_0x32db39);}),this[_0x2f55('0x5')][_0x2f55('0x12')]();}['removeMarker'](_0x3f44dc){this[_0x2f55('0x2f')]['change'](_0x4f8791=>{_0x4f8791['removeMarker'](_0x3f44dc);}),this[_0x2f55('0x5')]['delete'](_0x3f44dc);}[_0x2f55('0x6')](_0x32219c){const _0xf2b618=_0x2f55('0x20')+this['type']+':'+this[_0x2f55('0x2d')]+':'+this['id']+':'+this[_0x2f55('0x25')]['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xf2b618),this[_0x2f55('0x2f')]['change'](_0x4cfd29=>{_0x4cfd29[_0x2f55('0x2e')](_0xf2b618,{'range':_0x32219c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2f55('0x15')](_0x5b978a){for(const _0x5ae994 of this[_0x2f55('0xc')]())if(_0x5ae994[_0x2f55('0x8')](_0x5b978a))return!0x0;return!0x1;}[_0x2f55('0xc')](){return this[_0x2f55('0x34')]()[_0x2f55('0x1a')](_0x32b761=>_0x32b761['getRange']());}['getItems'](){return this[_0x2f55('0xc')]()['reduce']((_0x47bd24,_0x56ab84)=>[..._0x47bd24,..._0x56ab84['getItems']()],[]);}['getFirstRange'](){return this[_0x2f55('0x1d')]()[_0x2f55('0x11')]();}[_0x2f55('0xd')](){const _0x3e80ba=this['getRanges']();if(0x1!=_0x3e80ba['length'])return null;const _0x584516=_0x3e80ba[0x0],_0x2c6b71=_0x584516[_0x2f55('0x2b')][_0x2f55('0xb')],_0x409339=_0x584516[_0x2f55('0x10')][_0x2f55('0x9')];return _0x2c6b71 instanceof _0x3a47a1?_0x2c6b71!=_0x409339?null:_0x2c6b71:null;}[_0x2f55('0x7')](){this[_0x2f55('0x17')](this['getRanges'](),this[_0x2f55('0x30')],this[_0x2f55('0x35')]),this[_0x2f55('0x18')]();}[_0x2f55('0x24')](){this['_onDiscard'](this['getRanges'](),this[_0x2f55('0x30')],this[_0x2f55('0x35')]),this[_0x2f55('0x18')]();}[_0x2f55('0x1')](){const _0x2717fa=[];let _0x578f16=this[_0x2f55('0x1e')];for(;_0x578f16;)_0x2717fa[_0x2f55('0x2a')](_0x578f16),_0x578f16=_0x578f16[_0x2f55('0x31')];return _0x2717fa;}['setAttribute'](_0x3e7d17,_0x9c110c){const _0x3561bb=_0x493417(this[_0x2f55('0x35')]);_0x1b5b7a(_0x3561bb,_0x3e7d17,_0x9c110c),_0x4e7721(_0x3561bb,this['attributes'])||(this['attributes']=_0x3561bb,this[_0x2f55('0x27')](_0x3561bb));}['removeAttribute'](_0x1cec75){const _0x1be117=_0x493417(this[_0x2f55('0x35')]);_0x17a8d6(_0x1be117,_0x1cec75),_0x4e7721(_0x1be117,this[_0x2f55('0x35')])||(this[_0x2f55('0x35')]=_0x1be117,this['_onAttributesChange'](this[_0x2f55('0x35')]));}[_0x2f55('0x13')](){return{'id':this['id'],'type':this['subType']?this[_0x2f55('0x1b')]+':'+this[_0x2f55('0x2d')]:this[_0x2f55('0x1b')],'authorId':this[_0x2f55('0x25')]['id'],'createdAt':this[_0x2f55('0x0')],'hasComments':this['hasComments'],'data':this[_0x2f55('0x30')],'attributes':this[_0x2f55('0x35')]};}static['getMultiRangeId'](){return _0x41f425()['substr'](0x1,0x5);}}_0x10b0bf(o,_0x45ddf8);
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44ed=['registerElementLabel','EmptyContainer','item','softBreak','remove','deletion','pop','replace','type','isEmpty','_itemLabelsCallbacks','addContainer','*Merge:*\x20%0','isInContent','*Remove:*\x20%0','add','elementStart','start','_addDescriptionItems','textProxy','text','quantity','indexOf','*Insert:*\x20%0','registerDescriptionCallback','previousSibling','label','Container','removeObject','Object','getFirstRange','insertion','length','_itemLabels','addEmptyContainer','normal','$text','elementEnd','_schema','get','_locale','push','*Split:*\x20%0','_customCallbacks','removeContainer','$1\x20$2','skip','isObject','getWalker','data','element','REPLACE_TEXT','getItemLabel','end','isEqual','checkChild','nextSibling','match','name'];(function(_0xe0764,_0x44edc7){const _0x23acc7=function(_0x36e42b){while(--_0x36e42b){_0xe0764['push'](_0xe0764['shift']());}};_0x23acc7(++_0x44edc7);}(_0x44ed,0x67));const _0x23ac=function(_0xe0764,_0x44edc7){_0xe0764=_0xe0764-0x0;let _0x23acc7=_0x44ed[_0xe0764];return _0x23acc7;};import{getTranslation as _0x274c2e}from'./utils/common-translations';import{priorities as _0x5eb1c5,insertToPriorityArray as _0x25be2b}from'ckeditor5/src/utils';export default class f{constructor(_0x328dfa,_0x45c86d){this[_0x23ac('0x3a')]=[],this[_0x23ac('0x30')]=new Map(),this[_0x23ac('0x19')]=[],this[_0x23ac('0x35')]=_0x328dfa,this[_0x23ac('0x37')]=_0x45c86d;}['getDescriptions'](_0x49d28c){const _0x256c17=[];for(let _0x1abdfd=0x0;_0x1abdfd<_0x49d28c[_0x23ac('0x2f')];_0x1abdfd++){const _0x544d3d=_0x49d28c[_0x1abdfd];if(!_0x544d3d[_0x23ac('0x1c')])continue;let _0x52a398=!0x1;for(const _0x2eba6f of this['_customCallbacks']){const _0x42157f=_0x2eba6f(_0x544d3d);if(_0x42157f){_0x42157f['type']&&_0x256c17[_0x23ac('0x38')](_0x42157f),_0x52a398=!0x0;break;}}if(!_0x52a398){this[_0x23ac('0x21')](_0x256c17,_0x544d3d);const _0xac5ea4=_0x49d28c[_0x1abdfd+0x1];if(_0xac5ea4&&!_0x544d3d[_0x23ac('0x2d')]()[_0x23ac('0x9')][_0x23ac('0xa')](_0xac5ea4[_0x23ac('0x2d')]()[_0x23ac('0x20')])){const _0x39e7e4=_0x256c17[_0x256c17[_0x23ac('0x2f')]-0x1],_0x22eeda='insertion'==_0x544d3d['type']?'add':'remove';_0x39e7e4&&_0x23ac('0x23')==_0x39e7e4['type']&&(_0x39e7e4[_0x22eeda]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x256c17);}[_0x23ac('0x27')](_0x3c2cf5){this[_0x23ac('0x3a')][_0x23ac('0x38')](_0x3c2cf5);}[_0x23ac('0xf')](_0x37ce11,_0x5e6909,_0x428d5b=_0x5eb1c5[_0x23ac('0x32')]){'function'==typeof _0x37ce11?_0x25be2b(this[_0x23ac('0x19')],{'matchingCallback':_0x37ce11,'label':_0x5e6909,'priority':_0x428d5b}):this['_itemLabels']['set'](_0x37ce11,_0x5e6909);}[_0x23ac('0x8')](_0x36ac7f,_0x2bc7ab=0x1){let _0x388187;for(const _0x198bcb of this[_0x23ac('0x19')])if(_0x198bcb['matchingCallback'](_0x36ac7f)){_0x388187=_0x198bcb[_0x23ac('0x29')];break;}return _0x388187||(_0x388187=this[_0x23ac('0x30')][_0x23ac('0x36')](_0x36ac7f[_0x23ac('0xe')])),_0x388187?_0x388187(_0x2bc7ab):0x1!==_0x2bc7ab?_0x2bc7ab+'\x20'+_0x36ac7f[_0x23ac('0xe')]+'s':''+_0x36ac7f[_0x23ac('0xe')];}[_0x23ac('0x21')](_0x2c46,_0x29fab2){const _0x34b271=_0x29fab2[_0x23ac('0x2d')]()[_0x23ac('0x4')](),_0x94dcb3=_0x23ac('0x2e')==_0x29fab2[_0x23ac('0x17')]?_0x23ac('0x1e'):_0x23ac('0x13');for(const _0x79c24b of _0x34b271){const _0x2b0496=_0x79c24b[_0x23ac('0x11')],_0x24e2b8=_0x2c46[_0x2c46['length']-0x1];if(_0x2b0496['is'](_0x23ac('0x22')))_0x24e2b8&&_0x24e2b8[_0x23ac('0x17')][_0x23ac('0x25')](_0x23ac('0x2a'))>-0x1&&_0x2c46['pop'](),_0x24e2b8&&_0x23ac('0x23')==_0x24e2b8[_0x23ac('0x17')]?_0x24e2b8[_0x94dcb3]+=_0x2b0496[_0x23ac('0x5')]:_0x2c46[_0x23ac('0x38')]({'type':_0x23ac('0x23'),'add':_0x23ac('0x1e')==_0x94dcb3?_0x2b0496[_0x23ac('0x5')]:'','remove':_0x23ac('0x13')==_0x94dcb3?_0x2b0496[_0x23ac('0x5')]:''});else{if(this['_schema'][_0x23ac('0x3')](_0x2b0496)){if(_0x24e2b8&&_0x24e2b8[_0x23ac('0x17')][_0x23ac('0x25')](_0x23ac('0x2a'))>-0x1&&_0x2c46[_0x23ac('0x15')](),'elementEnd'==_0x79c24b[_0x23ac('0x17')])continue;_0x24e2b8&&_0x24e2b8[_0x23ac('0x17')]==_0x94dcb3+_0x23ac('0x2c')&&_0x24e2b8[_0x23ac('0x6')][_0x23ac('0xe')]==_0x2b0496[_0x23ac('0xe')]?_0x24e2b8[_0x23ac('0x24')]++:_0x2c46[_0x23ac('0x38')]({'type':_0x94dcb3+_0x23ac('0x2c'),'element':_0x2b0496,'quantity':0x1}),_0x34b271[_0x23ac('0x2')](_0x107b62=>!(_0x23ac('0x34')==_0x107b62[_0x23ac('0x17')]&&_0x107b62['item']==_0x2b0496));}else{if(this[_0x23ac('0x35')][_0x23ac('0xb')](_0x2b0496,_0x23ac('0x33'))||_0x2b0496['is'](_0x23ac('0x6'),_0x23ac('0x12'))){if(_0x23ac('0x1e')==_0x94dcb3&&_0x23ac('0x1f')==_0x79c24b[_0x23ac('0x17')]||_0x23ac('0x13')==_0x94dcb3&&_0x23ac('0x34')==_0x79c24b[_0x23ac('0x17')])continue;if(_0x24e2b8&&-0x1==_0x24e2b8[_0x23ac('0x17')]['indexOf'](_0x23ac('0x2a'))){_0x23ac('0x23')==_0x24e2b8[_0x23ac('0x17')]&&(_0x24e2b8[_0x94dcb3]+='\x0a');continue;}let _0x5e4146;if(_0x5e4146='add'==_0x94dcb3?_0x2b0496['nextSibling']&&!this[_0x23ac('0x35')]['isObject'](_0x2b0496[_0x23ac('0xc')])?_0x2b0496[_0x23ac('0xc')]:null:_0x2b0496[_0x23ac('0x28')]&&!this['_schema'][_0x23ac('0x3')](_0x2b0496['previousSibling'])?_0x2b0496[_0x23ac('0x28')]:null,_0x2b0496[_0x23ac('0x18')]||_0x5e4146&&_0x5e4146[_0x23ac('0x18')]){const _0x12adf7=_0x5e4146&&_0x5e4146[_0x23ac('0x18')]?_0x5e4146:_0x2b0496;_0x24e2b8&&_0x24e2b8['type']==_0x94dcb3+_0x23ac('0x10')&&_0x24e2b8[_0x23ac('0x6')][_0x23ac('0xe')]==_0x12adf7[_0x23ac('0xe')]?_0x24e2b8[_0x23ac('0x24')]++:_0x2c46[_0x23ac('0x38')]({'type':_0x94dcb3+_0x23ac('0x10'),'element':_0x12adf7,'quantity':0x1});}else _0x2c46[_0x23ac('0x38')]({'type':_0x94dcb3+_0x23ac('0x2a'),'element':_0x2b0496});}}}}}['_resolveDescriptionItems'](_0x293102){const _0x35c225=this['_locale'],_0x4a25af=[];for(const _0x14d733 of _0x293102){switch(_0x14d733[_0x23ac('0x17')]){case _0x23ac('0x23'):if(_0x14d733[_0x23ac('0x1e')]=_0x14d733[_0x23ac('0x1e')][_0x23ac('0x16')](/(\S)\u000A+(\S)/g,_0x23ac('0x1'))['replace'](/\u000A/g,''),_0x14d733[_0x23ac('0x13')]=_0x14d733[_0x23ac('0x13')]['replace'](/(\S)\u000A+(\S)/g,_0x23ac('0x1'))[_0x23ac('0x16')](/\u000A/g,''),''!=_0x14d733[_0x23ac('0x1e')]&&''!=_0x14d733[_0x23ac('0x13')]){_0x4a25af[_0x23ac('0x38')]({'type':'replace','content':_0x274c2e(_0x35c225,_0x23ac('0x7'),['\x22'+_0x14d733[_0x23ac('0x13')]+'\x22','\x22'+_0x14d733['add']+'\x22'])});continue;}if(null!=_0x14d733['add'][_0x23ac('0xd')](/^ +$/)){_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x26'),_0x274c2e(_0x35c225,'ELEMENT_SPACE',_0x14d733[_0x23ac('0x1e')][_0x23ac('0x2f')]))});continue;}if(null!=_0x14d733['remove'][_0x23ac('0xd')](/^ +$/)){_0x4a25af['push']({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1d'),_0x274c2e(_0x35c225,'ELEMENT_SPACE',_0x14d733[_0x23ac('0x13')][_0x23ac('0x2f')]))});continue;}if(''!=_0x14d733['add']){_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x26'),'\x22'+_0x14d733['add']+'\x22')});continue;}_0x4a25af['push']({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1d'),'\x22'+_0x14d733[_0x23ac('0x13')]+'\x22')});continue;case _0x23ac('0x31'):case'addObject':_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x26'),this[_0x23ac('0x8')](_0x14d733['element'],_0x14d733[_0x23ac('0x24')]))});continue;case'removeEmptyContainer':case _0x23ac('0x2b'):_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1d'),this[_0x23ac('0x8')](_0x14d733[_0x23ac('0x6')],_0x14d733[_0x23ac('0x24')]))});continue;case _0x23ac('0x1a'):_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x39'),this[_0x23ac('0x8')](_0x14d733[_0x23ac('0x6')],_0x14d733[_0x23ac('0x24')]))});continue;case _0x23ac('0x0'):_0x4a25af['push']({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1b'),this[_0x23ac('0x8')](_0x14d733[_0x23ac('0x6')],_0x14d733[_0x23ac('0x24')]))});continue;}_0x4a25af[_0x23ac('0x38')](_0x14d733);}return _0x4a25af;}}
23
+ const _0x2b48=['deletion','remove','_customCallbacks','*Split:*\x20%0','removeContainer','getFirstRange','normal','nextSibling','_addDescriptionItems','REPLACE_TEXT','isEmpty','*Remove:*\x20%0','matchingCallback','removeObject','*Merge:*\x20%0','softBreak','element','function','type','previousSibling','_schema','length','elementStart','add','text','label','removeEmptyContainer','getItemLabel','replace','isEqual','name','isObject','push','EmptyContainer','_itemLabelsCallbacks','addObject','_itemLabels','$1\x20$2','_resolveDescriptionItems','ELEMENT_SPACE','quantity','indexOf','skip','pop','Container','checkChild','elementEnd','match','*Insert:*\x20%0','getDescriptions','Object','registerElementLabel','get','data','addContainer','start','_locale','addEmptyContainer','insertion'];(function(_0x174c4e,_0x2b487e){const _0x473e87=function(_0x185f6b){while(--_0x185f6b){_0x174c4e['push'](_0x174c4e['shift']());}};_0x473e87(++_0x2b487e);}(_0x2b48,0xc5));const _0x473e=function(_0x174c4e,_0x2b487e){_0x174c4e=_0x174c4e-0x0;let _0x473e87=_0x2b48[_0x174c4e];return _0x473e87;};import{getTranslation as _0x2611e1}from'./utils/common-translations';import{priorities as _0x5e1d08,insertToPriorityArray as _0x13462c}from'ckeditor5/src/utils';export default class f{constructor(_0x56de77,_0x1dec71){this[_0x473e('0x29')]=[],this['_itemLabels']=new Map(),this[_0x473e('0xe')]=[],this[_0x473e('0x0')]=_0x56de77,this[_0x473e('0x24')]=_0x1dec71;}[_0x473e('0x1d')](_0xb9965c){const _0x144cc7=[];for(let _0x3cbba2=0x0;_0x3cbba2<_0xb9965c[_0x473e('0x1')];_0x3cbba2++){const _0x2c6dc3=_0xb9965c[_0x3cbba2];if(!_0x2c6dc3['isInContent'])continue;let _0x525177=!0x1;for(const _0x5dbe51 of this[_0x473e('0x29')]){const _0x3e64c3=_0x5dbe51(_0x2c6dc3);if(_0x3e64c3){_0x3e64c3['type']&&_0x144cc7[_0x473e('0xc')](_0x3e64c3),_0x525177=!0x0;break;}}if(!_0x525177){this[_0x473e('0x2f')](_0x144cc7,_0x2c6dc3);const _0xa8d758=_0xb9965c[_0x3cbba2+0x1];if(_0xa8d758&&!_0x2c6dc3['getFirstRange']()['end'][_0x473e('0x9')](_0xa8d758[_0x473e('0x2c')]()[_0x473e('0x23')])){const _0x3a7634=_0x144cc7[_0x144cc7[_0x473e('0x1')]-0x1],_0xb829d5=_0x473e('0x26')==_0x2c6dc3[_0x473e('0x39')]?_0x473e('0x3'):_0x473e('0x28');_0x3a7634&&'text'==_0x3a7634[_0x473e('0x39')]&&(_0x3a7634[_0xb829d5]+='\x0a');}}}return this[_0x473e('0x12')](_0x144cc7);}['registerDescriptionCallback'](_0x1b5fbe){this[_0x473e('0x29')][_0x473e('0xc')](_0x1b5fbe);}[_0x473e('0x1f')](_0x757c08,_0x2c14f6,_0x222c8e=_0x5e1d08[_0x473e('0x2d')]){_0x473e('0x38')==typeof _0x757c08?_0x13462c(this[_0x473e('0xe')],{'matchingCallback':_0x757c08,'label':_0x2c14f6,'priority':_0x222c8e}):this[_0x473e('0x10')]['set'](_0x757c08,_0x2c14f6);}[_0x473e('0x7')](_0x5dcdf4,_0x374eb9=0x1){let _0x22ce06;for(const _0x5f0eb7 of this[_0x473e('0xe')])if(_0x5f0eb7[_0x473e('0x33')](_0x5dcdf4)){_0x22ce06=_0x5f0eb7[_0x473e('0x5')];break;}return _0x22ce06||(_0x22ce06=this[_0x473e('0x10')][_0x473e('0x20')](_0x5dcdf4[_0x473e('0xa')])),_0x22ce06?_0x22ce06(_0x374eb9):0x1!==_0x374eb9?_0x374eb9+'\x20'+_0x5dcdf4[_0x473e('0xa')]+'s':''+_0x5dcdf4['name'];}[_0x473e('0x2f')](_0x4a955a,_0x59fc78){const _0x579d1f=_0x59fc78[_0x473e('0x2c')]()['getWalker'](),_0x324484=_0x473e('0x26')==_0x59fc78[_0x473e('0x39')]?_0x473e('0x3'):_0x473e('0x28');for(const _0x5cb0cf of _0x579d1f){const _0xea7cf1=_0x5cb0cf['item'],_0x286f80=_0x4a955a[_0x4a955a[_0x473e('0x1')]-0x1];if(_0xea7cf1['is']('textProxy'))_0x286f80&&_0x286f80[_0x473e('0x39')]['indexOf'](_0x473e('0x18'))>-0x1&&_0x4a955a[_0x473e('0x17')](),_0x286f80&&'text'==_0x286f80['type']?_0x286f80[_0x324484]+=_0xea7cf1[_0x473e('0x21')]:_0x4a955a[_0x473e('0xc')]({'type':_0x473e('0x4'),'add':_0x473e('0x3')==_0x324484?_0xea7cf1['data']:'','remove':_0x473e('0x28')==_0x324484?_0xea7cf1[_0x473e('0x21')]:''});else{if(this[_0x473e('0x0')][_0x473e('0xb')](_0xea7cf1)){if(_0x286f80&&_0x286f80[_0x473e('0x39')][_0x473e('0x15')]('Container')>-0x1&&_0x4a955a['pop'](),_0x473e('0x1a')==_0x5cb0cf[_0x473e('0x39')])continue;_0x286f80&&_0x286f80[_0x473e('0x39')]==_0x324484+_0x473e('0x1e')&&_0x286f80[_0x473e('0x37')][_0x473e('0xa')]==_0xea7cf1[_0x473e('0xa')]?_0x286f80['quantity']++:_0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0x1e'),'element':_0xea7cf1,'quantity':0x1}),_0x579d1f[_0x473e('0x16')](_0x9ea3ca=>!(_0x473e('0x1a')==_0x9ea3ca[_0x473e('0x39')]&&_0x9ea3ca['item']==_0xea7cf1));}else{if(this['_schema'][_0x473e('0x19')](_0xea7cf1,'$text')||_0xea7cf1['is'](_0x473e('0x37'),_0x473e('0x36'))){if(_0x473e('0x3')==_0x324484&&_0x473e('0x2')==_0x5cb0cf[_0x473e('0x39')]||_0x473e('0x28')==_0x324484&&_0x473e('0x1a')==_0x5cb0cf[_0x473e('0x39')])continue;if(_0x286f80&&-0x1==_0x286f80['type'][_0x473e('0x15')](_0x473e('0x18'))){_0x473e('0x4')==_0x286f80[_0x473e('0x39')]&&(_0x286f80[_0x324484]+='\x0a');continue;}let _0x11656c;if(_0x11656c=_0x473e('0x3')==_0x324484?_0xea7cf1[_0x473e('0x2e')]&&!this['_schema'][_0x473e('0xb')](_0xea7cf1[_0x473e('0x2e')])?_0xea7cf1[_0x473e('0x2e')]:null:_0xea7cf1[_0x473e('0x3a')]&&!this[_0x473e('0x0')][_0x473e('0xb')](_0xea7cf1[_0x473e('0x3a')])?_0xea7cf1[_0x473e('0x3a')]:null,_0xea7cf1[_0x473e('0x31')]||_0x11656c&&_0x11656c[_0x473e('0x31')]){const _0x53c51a=_0x11656c&&_0x11656c[_0x473e('0x31')]?_0x11656c:_0xea7cf1;_0x286f80&&_0x286f80[_0x473e('0x39')]==_0x324484+_0x473e('0xd')&&_0x286f80[_0x473e('0x37')]['name']==_0x53c51a['name']?_0x286f80[_0x473e('0x14')]++:_0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0xd'),'element':_0x53c51a,'quantity':0x1});}else _0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0x18'),'element':_0xea7cf1});}}}}}[_0x473e('0x12')](_0x32670d){const _0xea4979=this['_locale'],_0x1cc8ea=[];for(const _0x1d835c of _0x32670d){switch(_0x1d835c[_0x473e('0x39')]){case _0x473e('0x4'):if(_0x1d835c['add']=_0x1d835c[_0x473e('0x3')][_0x473e('0x8')](/(\S)\u000A+(\S)/g,_0x473e('0x11'))[_0x473e('0x8')](/\u000A/g,''),_0x1d835c[_0x473e('0x28')]=_0x1d835c[_0x473e('0x28')]['replace'](/(\S)\u000A+(\S)/g,_0x473e('0x11'))[_0x473e('0x8')](/\u000A/g,''),''!=_0x1d835c[_0x473e('0x3')]&&''!=_0x1d835c[_0x473e('0x28')]){_0x1cc8ea['push']({'type':_0x473e('0x8'),'content':_0x2611e1(_0xea4979,_0x473e('0x30'),['\x22'+_0x1d835c['remove']+'\x22','\x22'+_0x1d835c[_0x473e('0x3')]+'\x22'])});continue;}if(null!=_0x1d835c[_0x473e('0x3')]['match'](/^ +$/)){_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x1c'),_0x2611e1(_0xea4979,'ELEMENT_SPACE',_0x1d835c[_0x473e('0x3')][_0x473e('0x1')]))});continue;}if(null!=_0x1d835c[_0x473e('0x28')][_0x473e('0x1b')](/^ +$/)){_0x1cc8ea['push']({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x32'),_0x2611e1(_0xea4979,_0x473e('0x13'),_0x1d835c[_0x473e('0x28')][_0x473e('0x1')]))});continue;}if(''!=_0x1d835c[_0x473e('0x3')]){_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x1c'),'\x22'+_0x1d835c[_0x473e('0x3')]+'\x22')});continue;}_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x32'),'\x22'+_0x1d835c[_0x473e('0x28')]+'\x22')});continue;case _0x473e('0x25'):case _0x473e('0xf'):_0x1cc8ea[_0x473e('0xc')]({'type':'insertion','content':_0x2611e1(_0xea4979,_0x473e('0x1c'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;case _0x473e('0x6'):case _0x473e('0x34'):_0x1cc8ea['push']({'type':'deletion','content':_0x2611e1(_0xea4979,_0x473e('0x32'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;case _0x473e('0x22'):_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x2a'),this['getItemLabel'](_0x1d835c[_0x473e('0x37')],_0x1d835c['quantity']))});continue;case _0x473e('0x2b'):_0x1cc8ea['push']({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x35'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;}_0x1cc8ea[_0x473e('0xc')](_0x1d835c);}return _0x1cc8ea;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xba4c=['addSuggestionData','editor','getSuggestion','getSuggestions','requires','get','plugins','Comments','adapter','addSuggestion','TrackChanges','pluginName'];(function(_0x3d772b,_0xba4c16){var _0x53fb93=function(_0x222c31){while(--_0x222c31){_0x3d772b['push'](_0x3d772b['shift']());}};_0x53fb93(++_0xba4c16);}(_0xba4c,0x166));var _0x53fb=function(_0x3d772b,_0xba4c16){_0x3d772b=_0x3d772b-0x0;var _0x53fb93=_0xba4c[_0x3d772b];return _0x53fb93;};import{Plugin as _0x4faa4d}from'ckeditor5/src/core';import _0x70925 from'./trackchangesui';import _0x379619 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x4faa4d{static get[_0x53fb('0x6')](){return[_0x379619,_0x70925,_0x53fb('0x9')];}static get[_0x53fb('0x1')](){return _0x53fb('0x0');}set[_0x53fb('0xa')](_0x11f7bc){this[_0x53fb('0x3')][_0x53fb('0x8')]['get'](_0x379619)[_0x53fb('0xa')]=_0x11f7bc;}get[_0x53fb('0xa')](){return this[_0x53fb('0x3')][_0x53fb('0x8')]['get'](_0x379619)[_0x53fb('0xa')];}[_0x53fb('0xb')](_0x189c19){return this[_0x53fb('0x3')][_0x53fb('0x8')][_0x53fb('0x7')](_0x379619)[_0x53fb('0x2')](_0x189c19);}[_0x53fb('0x5')](_0x35522c){return this[_0x53fb('0x3')][_0x53fb('0x8')]['get'](_0x379619)['getSuggestions'](_0x35522c);}['getSuggestion'](_0x444f42){return this[_0x53fb('0x3')][_0x53fb('0x8')][_0x53fb('0x7')](_0x379619)[_0x53fb('0x4')](_0x444f42);}}
23
+ var _0x2ec9=['TrackChanges','getSuggestions','pluginName','requires','editor','adapter','plugins','Comments','addSuggestionData','get'];(function(_0x5e54a3,_0x2ec938){var _0x34f74d=function(_0x151d42){while(--_0x151d42){_0x5e54a3['push'](_0x5e54a3['shift']());}};_0x34f74d(++_0x2ec938);}(_0x2ec9,0x1f0));var _0x34f7=function(_0x5e54a3,_0x2ec938){_0x5e54a3=_0x5e54a3-0x0;var _0x34f74d=_0x2ec9[_0x5e54a3];return _0x34f74d;};import{Plugin as _0x392369}from'ckeditor5/src/core';import _0x25cbda from'./trackchangesui';import _0x169b85 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x392369{static get[_0x34f7('0x7')](){return[_0x169b85,_0x25cbda,_0x34f7('0x1')];}static get[_0x34f7('0x6')](){return _0x34f7('0x4');}set[_0x34f7('0x9')](_0x371ce6){this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)[_0x34f7('0x9')]=_0x371ce6;}get[_0x34f7('0x9')](){return this[_0x34f7('0x8')][_0x34f7('0x0')][_0x34f7('0x3')](_0x169b85)[_0x34f7('0x9')];}['addSuggestion'](_0x4dcca9){return this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)[_0x34f7('0x2')](_0x4dcca9);}[_0x34f7('0x5')](_0x1ab63a){return this['editor']['plugins'][_0x34f7('0x3')](_0x169b85)[_0x34f7('0x5')](_0x1ab63a);}['getSuggestion'](_0xcdddb){return this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)['getSuggestion'](_0xcdddb);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42c6=['pluginName','addSuggestionData','define','model','getDataWithDiscardedSuggestions','init','div','createDocumentFragment','includes','get','plugins','map','constructor','set','requires','getRootNames','filter','Autosave','reduce','has','RevisionTracker','Pagination','TrackChangesEditing','every','names','users','editor','data','getDataWithAcceptedSuggestions','create','WebSocketGateway','getUser','config','string','TrackChangesData','concat','extraPlugins','find','from','createElement','name','Users','trackChangesData','function','initialData','acceptAllSuggestions','push','appendChild','_adapter','editorCreator','toolbar','builtinPlugins','useAnonymousUser','context'];(function(_0x4e5e6f,_0x42c6f2){const _0x3b5ddd=function(_0x25eb6b){while(--_0x25eb6b){_0x4e5e6f['push'](_0x4e5e6f['shift']());}};_0x3b5ddd(++_0x42c6f2);}(_0x42c6,0x78));const _0x3b5d=function(_0x4e5e6f,_0x42c6f2){_0x4e5e6f=_0x4e5e6f-0x0;let _0x3b5ddd=_0x42c6[_0x4e5e6f];return _0x3b5ddd;};import{Plugin as _0x178703}from'ckeditor5/src/core';import{CKEditorError as _0x55f34f}from'ckeditor5/src/utils';import _0x239dde from'./trackchangesediting';const D=[_0x3b5d('0x20'),_0x3b5d('0x29'),_0x3b5d('0x26')],w=[_0x3b5d('0x12'),_0x3b5d('0x8'),_0x3b5d('0x5'),'WordCount',_0x3b5d('0x9')];export default class y extends _0x178703{static get['requires'](){return[_0x239dde];}static get['pluginName'](){return _0x3b5d('0x16');}[_0x3b5d('0x2f')](){const _0x2b93e7=this[_0x3b5d('0xe')];if(_0x2b93e7['config'][_0x3b5d('0x2c')]('trackChangesData.editorCreator',_0x5e83c9=>_0x2b93e7[_0x3b5d('0x0')][_0x3b5d('0x11')]('',_0x5e83c9)),'function'!=typeof _0x2b93e7[_0x3b5d('0x14')][_0x3b5d('0x33')]('trackChangesData')[_0x3b5d('0x25')])throw new _0x55f34f('track-changes-data-invalid-editor-creator');}[_0x3b5d('0x10')](_0x5b3eaf){return T(this[_0x3b5d('0xe')],!0x0,_0x5b3eaf);}[_0x3b5d('0x2e')](_0x22c6c9){return T(this[_0x3b5d('0xe')],!0x1,_0x22c6c9);}}class S extends _0x178703{static get['pluginName'](){return'TrackChangesDataGetter';}['init'](){this['result']='end',this[_0x3b5d('0xe')][_0x3b5d('0x34')][_0x3b5d('0x33')]('CommentsRepository')[_0x3b5d('0x24')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x3b5d('0xe')][_0x3b5d('0x34')]['get'](_0x3b5d('0xa'))[_0x3b5d('0x24')]=null;}}async function T(_0x1cba50,_0x2fdf77,_0x1f56a3){const _0x20d6d3=function(_0x4175e1){const _0x2562fd={};for(const _0x3d4eee of _0x4175e1['config'][_0x3b5d('0xc')]())D[_0x3b5d('0x32')](_0x3d4eee)||(_0x2562fd[_0x3d4eee]=_0x4175e1[_0x3b5d('0x14')][_0x3b5d('0x33')](_0x3d4eee));const _0x5b4476=_0x4175e1[_0x3b5d('0x0')][_0x3b5d('0x27')]||[],_0x47d1c1=_0x2562fd[_0x3b5d('0x18')]||[];delete _0x2562fd[_0x3b5d('0x18')];const _0x429a15=_0x5b4476[_0x3b5d('0x17')](_0x2562fd[_0x3b5d('0x34')])['concat'](_0x47d1c1)[_0x3b5d('0x35')](_0x3dcc09=>_0x3b5d('0x15')==typeof _0x3dcc09?_0x5b4476[_0x3b5d('0x19')](_0x21bdcd=>_0x21bdcd['pluginName']==_0x3dcc09):_0x3dcc09),_0x5d48e4=Array[_0x3b5d('0x1a')](new Set(_0x429a15)),_0x1aad6e=new Map();return _0x2562fd[_0x3b5d('0x34')]=_0x5d48e4[_0x3b5d('0x4')](_0x1efdb4=>A(_0x1efdb4,_0x1aad6e)),_0x2562fd[_0x3b5d('0x34')][_0x3b5d('0x22')](S),_0x2562fd[_0x3b5d('0x34')][_0x3b5d('0x22')](_0x239dde),_0x2562fd;}(_0x1cba50),_0x3beb0a=document[_0x3b5d('0x31')](),_0x659ec0=_0x1cba50[_0x3b5d('0x14')][_0x3b5d('0x33')](_0x3b5d('0x1e'))[_0x3b5d('0x25')],_0x1c3bb4=await _0x659ec0(_0x20d6d3,()=>function(_0x3ad5ba){const _0x2e831d=document[_0x3b5d('0x1b')](_0x3b5d('0x30'));return _0x3ad5ba[_0x3b5d('0x23')](_0x2e831d),_0x2e831d;}(_0x3beb0a));!function(_0x1bfc8d,_0x1ce165){const _0x5b75fd=_0x1bfc8d[_0x3b5d('0x2d')]['document'][_0x3b5d('0x3')]()[_0x3b5d('0x6')]((_0x10e270,_0x10fd44)=>(_0x10e270[_0x10fd44]=_0x1bfc8d[_0x3b5d('0xf')]['get']({'rootName':_0x10fd44}),_0x10e270),{}),_0x187601=_0x1bfc8d['plugins'][_0x3b5d('0x33')](_0x3b5d('0x1d'))[_0x3b5d('0xd')][_0x3b5d('0x35')](_0x50c9de=>({'id':_0x50c9de['id']})),_0x361655=_0x1bfc8d[_0x3b5d('0x34')][_0x3b5d('0x33')](_0x3b5d('0xa'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3dc890=_0x1ce165[_0x3b5d('0x34')]['get'](_0x3b5d('0x1d')),_0x570d33=_0x1ce165[_0x3b5d('0x34')][_0x3b5d('0x33')]('TrackChangesEditing');for(const _0x4c3c79 of _0x187601)_0x3dc890[_0x3b5d('0x13')](_0x4c3c79['id'])||_0x3dc890['addUser'](_0x4c3c79);_0x3dc890['me']||_0x3dc890[_0x3b5d('0x28')]();for(const _0x48be9e of _0x361655)_0x570d33[_0x3b5d('0x2b')](_0x48be9e);_0x1ce165[_0x3b5d('0xf')][_0x3b5d('0x1')](_0x5b75fd);}(_0x1cba50,_0x1c3bb4),_0x1c3bb4['execute'](_0x2fdf77?_0x3b5d('0x21'):'discardAllSuggestions');const _0x2b73a0=_0x1c3bb4[_0x3b5d('0xf')][_0x3b5d('0x33')](_0x1f56a3);return await _0x1c3bb4['destroy'](),_0x2b73a0;}function A(_0x2869b4,_0x157d54){const _0x1de378=_0x3b5d('0x1f')==typeof _0x2869b4?_0x2869b4[_0x3b5d('0x2a')]||_0x2869b4[_0x3b5d('0x1c')]:_0x2869b4;if(_0x157d54[_0x3b5d('0x7')](_0x1de378))return _0x157d54[_0x3b5d('0x33')](_0x1de378);if(_0x157d54['set'](_0x1de378,!0x0),_0x1de378&&w['includes'](_0x1de378))return _0x157d54[_0x3b5d('0x1')](_0x1de378,!0x1),!0x1;if(!_0x2869b4[_0x3b5d('0x2')])return _0x157d54[_0x3b5d('0x1')](_0x1de378,!0x0),!0x0;const _0x415705=_0x2869b4['requires'][_0x3b5d('0xb')](_0x2c5dae=>A(_0x2c5dae,_0x157d54));return _0x157d54[_0x3b5d('0x1')](_0x1de378,_0x415705),_0x415705;}
23
+ const _0x37b8=['data','_adapter','find','getUser','get','init','names','editorCreator','config','plugins','TrackChangesEditing','WordCount','execute','reduce','trackChangesData','discardAllSuggestions','push','initialData','RevisionTracker','concat','create','extraPlugins','map','CommentsRepository','acceptAllSuggestions','includes','trackChangesData.editorCreator','model','TrackChangesDataGetter','getDataWithDiscardedSuggestions','Users','every','addSuggestionData','result','users','set','document','string','WebSocketGateway','getSuggestions','editor','appendChild','Pagination','destroy','pluginName','builtinPlugins','context','useAnonymousUser','requires','TrackChangesData','define','toolbar','function','getDataWithAcceptedSuggestions'];(function(_0x3c9e6c,_0x37b8e1){const _0x2ea25f=function(_0x3fc7a){while(--_0x3fc7a){_0x3c9e6c['push'](_0x3c9e6c['shift']());}};_0x2ea25f(++_0x37b8e1);}(_0x37b8,0x162));const _0x2ea2=function(_0x3c9e6c,_0x37b8e1){_0x3c9e6c=_0x3c9e6c-0x0;let _0x2ea25f=_0x37b8[_0x3c9e6c];return _0x2ea25f;};import{Plugin as _0x2eeda3}from'ckeditor5/src/core';import{CKEditorError as _0x2c1ed2}from'ckeditor5/src/utils';import _0x2023c7 from'./trackchangesediting';const D=[_0x2ea2('0x29'),_0x2ea2('0x10'),_0x2ea2('0x15')],w=[_0x2ea2('0x8'),_0x2ea2('0x2a'),'Autosave',_0x2ea2('0x23'),_0x2ea2('0xc')];export default class y extends _0x2eeda3{static get['requires'](){return[_0x2023c7];}static get['pluginName'](){return _0x2ea2('0x13');}[_0x2ea2('0x1d')](){const _0x4bf28e=this[_0x2ea2('0xa')];if(_0x4bf28e[_0x2ea2('0x20')][_0x2ea2('0x14')](_0x2ea2('0x32'),_0x572127=>_0x4bf28e['constructor'][_0x2ea2('0x2c')]('',_0x572127)),_0x2ea2('0x16')!=typeof _0x4bf28e[_0x2ea2('0x20')][_0x2ea2('0x1c')]('trackChangesData')[_0x2ea2('0x1f')])throw new _0x2c1ed2('track-changes-data-invalid-editor-creator');}[_0x2ea2('0x17')](_0x4bf57d){return T(this['editor'],!0x0,_0x4bf57d);}[_0x2ea2('0x35')](_0x4ce19a){return T(this[_0x2ea2('0xa')],!0x1,_0x4ce19a);}}class S extends _0x2eeda3{static get['pluginName'](){return _0x2ea2('0x34');}['init'](){this[_0x2ea2('0x3')]='end',this['editor'][_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x2f'))[_0x2ea2('0x19')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x2ea2('0xa')][_0x2ea2('0x21')]['get'](_0x2ea2('0x22'))[_0x2ea2('0x19')]=null;}}async function T(_0xd9027,_0x78d933,_0x429ddc){const _0x5af8a2=function(_0x39717a){const _0x3aea50={};for(const _0x2825d8 of _0x39717a[_0x2ea2('0x20')][_0x2ea2('0x1e')]())D[_0x2ea2('0x31')](_0x2825d8)||(_0x3aea50[_0x2825d8]=_0x39717a[_0x2ea2('0x20')][_0x2ea2('0x1c')](_0x2825d8));const _0x320336=_0x39717a['constructor'][_0x2ea2('0xf')]||[],_0xf0aca4=_0x3aea50[_0x2ea2('0x2d')]||[];delete _0x3aea50['extraPlugins'];const _0x5c50b7=_0x320336[_0x2ea2('0x2b')](_0x3aea50[_0x2ea2('0x21')])[_0x2ea2('0x2b')](_0xf0aca4)[_0x2ea2('0x2e')](_0x239d6c=>_0x2ea2('0x7')==typeof _0x239d6c?_0x320336[_0x2ea2('0x1a')](_0x5d8f73=>_0x5d8f73['pluginName']==_0x239d6c):_0x239d6c),_0x46567f=Array['from'](new Set(_0x5c50b7)),_0x101e98=new Map();return _0x3aea50[_0x2ea2('0x21')]=_0x46567f['filter'](_0x3ad78a=>A(_0x3ad78a,_0x101e98)),_0x3aea50[_0x2ea2('0x21')][_0x2ea2('0x28')](S),_0x3aea50[_0x2ea2('0x21')]['push'](_0x2023c7),_0x3aea50;}(_0xd9027),_0x1c3f39=document['createDocumentFragment'](),_0x2d8b71=_0xd9027[_0x2ea2('0x20')][_0x2ea2('0x1c')](_0x2ea2('0x26'))[_0x2ea2('0x1f')],_0x27bb97=await _0x2d8b71(_0x5af8a2,()=>function(_0x4e1717){const _0x4cfcd3=document['createElement']('div');return _0x4e1717[_0x2ea2('0xb')](_0x4cfcd3),_0x4cfcd3;}(_0x1c3f39));!function(_0x307099,_0x46de50){const _0x2870ba=_0x307099[_0x2ea2('0x33')][_0x2ea2('0x6')]['getRootNames']()[_0x2ea2('0x25')]((_0x13dcde,_0x13b71d)=>(_0x13dcde[_0x13b71d]=_0x307099['data']['get']({'rootName':_0x13b71d}),_0x13dcde),{}),_0x4ac16f=_0x307099['plugins'][_0x2ea2('0x1c')](_0x2ea2('0x0'))[_0x2ea2('0x4')][_0x2ea2('0x2e')](_0x58baad=>({'id':_0x58baad['id']})),_0x3827ac=_0x307099[_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x22'))[_0x2ea2('0x9')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5690bc=_0x46de50['plugins'][_0x2ea2('0x1c')](_0x2ea2('0x0')),_0x3f59bd=_0x46de50[_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x22'));for(const _0x1ad55d of _0x4ac16f)_0x5690bc[_0x2ea2('0x1b')](_0x1ad55d['id'])||_0x5690bc['addUser'](_0x1ad55d);_0x5690bc['me']||_0x5690bc[_0x2ea2('0x11')]();for(const _0x5720ef of _0x3827ac)_0x3f59bd[_0x2ea2('0x2')](_0x5720ef);_0x46de50[_0x2ea2('0x18')][_0x2ea2('0x5')](_0x2870ba);}(_0xd9027,_0x27bb97),_0x27bb97[_0x2ea2('0x24')](_0x78d933?_0x2ea2('0x30'):_0x2ea2('0x27'));const _0x45cbd9=_0x27bb97[_0x2ea2('0x18')]['get'](_0x429ddc);return await _0x27bb97[_0x2ea2('0xd')](),_0x45cbd9;}function A(_0x23d0e5,_0x49a90b){const _0x1d5932='function'==typeof _0x23d0e5?_0x23d0e5[_0x2ea2('0xe')]||_0x23d0e5['name']:_0x23d0e5;if(_0x49a90b['has'](_0x1d5932))return _0x49a90b['get'](_0x1d5932);if(_0x49a90b['set'](_0x1d5932,!0x0),_0x1d5932&&w[_0x2ea2('0x31')](_0x1d5932))return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,!0x1),!0x1;if(!_0x23d0e5[_0x2ea2('0x12')])return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,!0x0),!0x0;const _0x3274d0=_0x23d0e5[_0x2ea2('0x12')][_0x2ea2('0x1')](_0xc2f404=>A(_0xc2f404,_0x49a90b));return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,_0x3274d0),_0x3274d0;}