@ckeditor/ckeditor5-comments 31.0.0 → 33.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 (122) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +2 -2
  3. package/build/comments.js +5 -0
  4. package/build/translations/bs.js +1 -0
  5. package/build/translations/cs.js +1 -0
  6. package/build/translations/da.js +1 -0
  7. package/build/translations/de-ch.js +1 -0
  8. package/build/translations/de.js +1 -0
  9. package/build/translations/el.js +1 -0
  10. package/build/translations/en-au.js +1 -0
  11. package/build/translations/es.js +1 -0
  12. package/build/translations/et.js +1 -0
  13. package/build/translations/fr.js +1 -0
  14. package/build/translations/gl.js +1 -0
  15. package/build/translations/hi.js +1 -0
  16. package/build/translations/hr.js +1 -0
  17. package/build/translations/hu.js +1 -0
  18. package/build/translations/id.js +1 -0
  19. package/build/translations/it.js +1 -0
  20. package/build/translations/ja.js +1 -0
  21. package/build/translations/ko.js +1 -0
  22. package/build/translations/nl.js +1 -0
  23. package/build/translations/no.js +1 -0
  24. package/build/translations/pl.js +1 -0
  25. package/build/translations/pt-br.js +1 -0
  26. package/build/translations/ro.js +1 -0
  27. package/build/translations/ru.js +1 -0
  28. package/build/translations/sk.js +1 -0
  29. package/build/translations/sr-latn.js +1 -0
  30. package/build/translations/sr.js +1 -0
  31. package/build/translations/tk.js +1 -0
  32. package/build/translations/tr.js +1 -0
  33. package/build/translations/ug.js +1 -0
  34. package/build/translations/uk.js +1 -0
  35. package/build/translations/zh-cn.js +1 -0
  36. package/build/translations/zh.js +1 -0
  37. package/lang/translations/bs.po +80 -0
  38. package/lang/translations/cs.po +1 -1
  39. package/lang/translations/da.po +79 -0
  40. package/lang/translations/de-ch.po +1 -1
  41. package/lang/translations/de.po +1 -1
  42. package/lang/translations/el.po +79 -0
  43. package/lang/translations/en-au.po +1 -1
  44. package/lang/translations/en.po +1 -1
  45. package/lang/translations/es.po +1 -1
  46. package/lang/translations/et.po +1 -1
  47. package/lang/translations/fr.po +1 -1
  48. package/lang/translations/gl.po +1 -1
  49. package/lang/translations/hi.po +1 -1
  50. package/lang/translations/hr.po +1 -1
  51. package/lang/translations/hu.po +1 -1
  52. package/lang/translations/id.po +78 -0
  53. package/lang/translations/it.po +1 -1
  54. package/lang/translations/ja.po +1 -1
  55. package/lang/translations/ko.po +1 -1
  56. package/lang/translations/nl.po +1 -1
  57. package/lang/translations/no.po +1 -1
  58. package/lang/translations/pl.po +1 -1
  59. package/lang/translations/pt-br.po +1 -1
  60. package/lang/translations/ro.po +1 -1
  61. package/lang/translations/ru.po +1 -1
  62. package/lang/translations/sk.po +1 -1
  63. package/lang/translations/sr-latn.po +1 -1
  64. package/lang/translations/sr.po +1 -1
  65. package/lang/translations/tk.po +1 -1
  66. package/lang/translations/tr.po +1 -1
  67. package/lang/translations/ug.po +1 -1
  68. package/lang/translations/uk.po +1 -1
  69. package/lang/translations/zh-cn.po +1 -1
  70. package/lang/translations/zh.po +1 -1
  71. package/package.json +4 -9
  72. package/src/annotations/annotation.js +2 -2
  73. package/src/annotations/annotationcollection.js +2 -2
  74. package/src/annotations/annotations.js +2 -2
  75. package/src/annotations/annotationsuis.js +2 -2
  76. package/src/annotations/editorannotations.js +2 -2
  77. package/src/annotations/inlineannotations.js +2 -2
  78. package/src/annotations/narrowsidebar.js +2 -2
  79. package/src/annotations/sidebar.js +2 -2
  80. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  81. package/src/annotations/view/annotationview.js +2 -2
  82. package/src/annotations/view/sidebaritemview.js +2 -2
  83. package/src/annotations/view/sidebarview.js +2 -2
  84. package/src/annotations/widesidebar.js +2 -2
  85. package/src/comments/addcommentthreadcommand.js +2 -2
  86. package/src/comments/commentsediting.js +2 -2
  87. package/src/comments/commentsrepository.js +2 -2
  88. package/src/comments/commentsui.js +2 -2
  89. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  90. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  91. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  92. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  93. package/src/comments/ui/commentthreadcontroller.js +2 -2
  94. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  95. package/src/comments/ui/view/basecommentview.js +2 -2
  96. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  97. package/src/comments/ui/view/commentcontentview.js +2 -2
  98. package/src/comments/ui/view/commentinputview.js +2 -2
  99. package/src/comments/ui/view/commentslistview.js +2 -2
  100. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  101. package/src/comments/ui/view/commentthreadview.js +2 -2
  102. package/src/comments/ui/view/commentview.js +2 -2
  103. package/src/comments/ui/view/confirmmixin.js +2 -2
  104. package/src/comments/ui/view/confirmview.js +2 -2
  105. package/src/comments.js +2 -2
  106. package/src/commentsonly.js +2 -2
  107. package/src/{utils/getmarkerdomelement.js → index.js} +2 -2
  108. package/src/utils/common-translations.js +2 -2
  109. package/src/utils/createmutationobserver.js +2 -2
  110. package/theme/annotation-inline.css +1 -1
  111. package/theme/annotation.css +1 -1
  112. package/theme/comment.css +1 -1
  113. package/theme/commentinput.css +1 -1
  114. package/theme/commentmarker.css +1 -1
  115. package/theme/commentthread.css +1 -1
  116. package/theme/icons/add-comment.svg +1 -1
  117. package/theme/icons/edit-comment.svg +1 -1
  118. package/theme/icons/remove-comment.svg +1 -1
  119. package/theme/sidebar-narrow.css +1 -1
  120. package/theme/sidebar.css +1 -1
  121. package/src/utils/getdatetimeformatter.js +0 -23
  122. package/src/utils/trim-html.js +0 -23
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x194b=['isDirty','isActive','Esc','focus','createCollection','destroy','fire','element','ck-annotation-wrapper--active','listenTo','div','detach','height','focusTracker','content','mainView','set','ck-annotation-wrapper','keystrokes','_updateHeight','type','ck-rounded-corners','add','bindTemplate','_mutationObserver'];(function(_0x29ebd8,_0x194b94){const _0xaf56b3=function(_0x549092){while(--_0x549092){_0x29ebd8['push'](_0x29ebd8['shift']());}};_0xaf56b3(++_0x194b94);}(_0x194b,0x114));const _0xaf56=function(_0x29ebd8,_0x194b94){_0x29ebd8=_0x29ebd8-0x0;let _0xaf56b3=_0x194b[_0x29ebd8];return _0xaf56b3;};import{View as _0xe83d0c}from'ckeditor5/src/ui';import{FocusTracker as _0x57acca,KeystrokeHandler as _0x4ea42d,uid as _0x42579e}from'ckeditor5/src/utils';import _0x2e9b26 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class rt extends _0xe83d0c{constructor(_0x50e1a5,_0x44feee){super(_0x50e1a5),this['id']=_0x42579e(),this[_0xaf56('0xc')]=new _0x57acca(),this[_0xaf56('0x11')]=new _0x4ea42d(),this['keystrokes']['set'](_0xaf56('0x1'),(_0x43336a,_0x3a54f0)=>this[_0xaf56('0x5')](_0xaf56('0x1'),_0x3a54f0)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0xaf56('0xf')](_0xaf56('0xb'),0x0),this['set'](_0xaf56('0x0'),!0x1),this[_0xaf56('0xf')](_0xaf56('0x18'),!0x1),this[_0xaf56('0xf')]('length',0x0),this['set'](_0xaf56('0x13'),''),this[_0xaf56('0x17')]=_0x2e9b26(()=>this[_0xaf56('0x12')]()),this[_0xaf56('0xd')]=this[_0xaf56('0x3')](),this[_0xaf56('0xd')][_0xaf56('0x15')](_0x44feee),this[_0xaf56('0xe')]=_0x44feee;const _0x152cd8=this[_0xaf56('0x16')];this['setTemplate']({'tag':_0xaf56('0x9'),'attributes':{'class':['ck',_0xaf56('0x10'),_0xaf56('0x14'),_0x152cd8['if'](_0xaf56('0x0'),_0xaf56('0x7'))],'tabindex':-0x1},'children':this['content']});}['render'](){super['render'](),this['focusTracker'][_0xaf56('0x15')](this[_0xaf56('0x6')]),this[_0xaf56('0x11')][_0xaf56('0x8')](this[_0xaf56('0x6')]),this[_0xaf56('0x17')]['attach'](this[_0xaf56('0x6')]);}[_0xaf56('0x4')](){this['content']['clear'](),this[_0xaf56('0x11')][_0xaf56('0x4')](),this[_0xaf56('0xc')][_0xaf56('0x4')](),this[_0xaf56('0x17')][_0xaf56('0xa')](),super[_0xaf56('0x4')]();}['focus'](){this[_0xaf56('0x6')][_0xaf56('0x2')]();}[_0xaf56('0x12')](){const _0x1289cd=this['element']['clientHeight'];_0x1289cd&&(this[_0xaf56('0xb')]=_0x1289cd);}}
23
+ const _0x2957=['add','height','ck-annotation-wrapper','element','isActive','mainView','clear','detach','keystrokes','Esc','targetRect','render','_mutationObserver','fire','listenTo','content','setTemplate','focus','_updateHeight','set','createCollection','bindTemplate','focusTracker','isDirty','destroy','length','ck-rounded-corners'];(function(_0x52ca42,_0x2957a9){const _0x30037f=function(_0x785402){while(--_0x785402){_0x52ca42['push'](_0x52ca42['shift']());}};_0x30037f(++_0x2957a9);}(_0x2957,0x1c0));const _0x3003=function(_0x52ca42,_0x2957a9){_0x52ca42=_0x52ca42-0x0;let _0x30037f=_0x2957[_0x52ca42];return _0x30037f;};import{View as _0xb9d63a}from'ckeditor5/src/ui';import{FocusTracker as _0x96e13c,KeystrokeHandler as _0x2fd355,uid as _0x2f5818}from'ckeditor5/src/utils';import _0x5bbc4d from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0xb9d63a{constructor(_0x18af2b,_0x52567b){super(_0x18af2b),this['id']=_0x2f5818(),this[_0x3003('0x6')]=new _0x96e13c(),this[_0x3003('0x13')]=new _0x2fd355(),this[_0x3003('0x13')][_0x3003('0x3')](_0x3003('0x14'),(_0x2ea949,_0x8154bc)=>this[_0x3003('0x18')]('Esc',_0x8154bc)),this[_0x3003('0x3')](_0x3003('0x15'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x3003('0x3')](_0x3003('0xc'),0x0),this['set'](_0x3003('0xf'),!0x1),this[_0x3003('0x3')](_0x3003('0x7'),!0x1),this['set'](_0x3003('0x9'),0x0),this[_0x3003('0x3')]('type',''),this[_0x3003('0x17')]=_0x5bbc4d(()=>this[_0x3003('0x2')]()),this['content']=this[_0x3003('0x4')](),this['content'][_0x3003('0xb')](_0x52567b),this[_0x3003('0x10')]=_0x52567b;const _0x130c2c=this[_0x3003('0x5')];this[_0x3003('0x0')]({'tag':'div','attributes':{'class':['ck',_0x3003('0xd'),_0x3003('0xa'),_0x130c2c['if'](_0x3003('0xf'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0x3003('0x1a')]});}[_0x3003('0x16')](){super['render'](),this[_0x3003('0x6')][_0x3003('0xb')](this[_0x3003('0xe')]),this[_0x3003('0x13')][_0x3003('0x19')](this[_0x3003('0xe')]),this[_0x3003('0x17')]['attach'](this[_0x3003('0xe')]);}[_0x3003('0x8')](){this[_0x3003('0x1a')][_0x3003('0x11')](),this[_0x3003('0x13')][_0x3003('0x8')](),this[_0x3003('0x6')][_0x3003('0x8')](),this['_mutationObserver'][_0x3003('0x12')](),super[_0x3003('0x8')]();}[_0x3003('0x1')](){this[_0x3003('0xe')][_0x3003('0x1')]();}[_0x3003('0x2')](){const _0x191ac6=this[_0x3003('0xe')]['clientHeight'];_0x191ac6&&(this[_0x3003('0xc')]=_0x191ac6);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x1c57=['_mutationObserver','ck-sidebar-item--no-animation','attach','clientHeight','set','isAnimationDisabled','content','top','_targetTop','height','setTemplate','ck-sidebar-item','destroy','bottom','updateHeight','detach','element','createCollection'];(function(_0x401601,_0x1c5796){const _0x3fb10c=function(_0x5a1813){while(--_0x5a1813){_0x401601['push'](_0x401601['shift']());}};_0x3fb10c(++_0x1c5796);}(_0x1c57,0x171));const _0x3fb1=function(_0x401601,_0x1c5796){_0x401601=_0x401601-0x0;let _0x3fb10c=_0x1c57[_0x401601];return _0x3fb10c;};import{View as _0x182ab6}from'ckeditor5/src/ui';import{toUnit as _0x1a85f7}from'ckeditor5/src/utils';import _0x3b9e2a from'../../utils/createmutationobserver';const gt=_0x1a85f7('px');export default class T extends _0x182ab6{constructor(_0x52c3bf){super(_0x52c3bf),this[_0x3fb1('0xd')](_0x3fb1('0x10')),this[_0x3fb1('0xd')]('height',0x0),this['bind'](_0x3fb1('0x4'))['to'](this,'top',this,'height',(_0x101f0b,_0x94dc9c)=>(_0x101f0b||0x0)+_0x94dc9c),this[_0x3fb1('0xd')](_0x3fb1('0xe'),!0x1),this[_0x3fb1('0x9')]=_0x3b9e2a(()=>this[_0x3fb1('0x5')]()),this[_0x3fb1('0x11')]=null,this[_0x3fb1('0xf')]=this[_0x3fb1('0x8')]();const _0x33158c=this['bindTemplate'];this[_0x3fb1('0x1')]({'tag':'div','attributes':{'class':[_0x3fb1('0x2'),_0x33158c['to']('isAnimationDisabled',_0x302191=>_0x302191?_0x3fb1('0xa'):'')],'style':{'top':_0x33158c['to']('top',gt)}},'children':this[_0x3fb1('0xf')]});}['render'](){super['render'](),this[_0x3fb1('0x9')][_0x3fb1('0xb')](this[_0x3fb1('0x7')]);}[_0x3fb1('0x5')](){const _0x54d507=this['element'][_0x3fb1('0xc')];_0x54d507&&(this[_0x3fb1('0x0')]=_0x54d507);}['destroy'](){this['content']['clear'](),this[_0x3fb1('0x9')][_0x3fb1('0x6')](),super[_0x3fb1('0x3')]();}}
23
+ const _0x37d4=['render','content','ck-sidebar-item','height','set','div','_mutationObserver','_targetTop','detach','top','setTemplate','isAnimationDisabled','destroy','element','createCollection','clear','updateHeight','bottom'];(function(_0x3f3dc2,_0x37d448){const _0x225348=function(_0x51ef93){while(--_0x51ef93){_0x3f3dc2['push'](_0x3f3dc2['shift']());}};_0x225348(++_0x37d448);}(_0x37d4,0x16d));const _0x2253=function(_0x3f3dc2,_0x37d448){_0x3f3dc2=_0x3f3dc2-0x0;let _0x225348=_0x37d4[_0x3f3dc2];return _0x225348;};import{View as _0x39d37e}from'ckeditor5/src/ui';import{toUnit as _0x203877}from'ckeditor5/src/utils';import _0x2610e5 from'../../utils/createmutationobserver';const ft=_0x203877('px');export default class C extends _0x39d37e{constructor(_0x489d53){super(_0x489d53),this['set'](_0x2253('0x4')),this[_0x2253('0x11')](_0x2253('0x10'),0x0),this['bind'](_0x2253('0xc'))['to'](this,_0x2253('0x4'),this,'height',(_0x12f13e,_0xb2ee93)=>(_0x12f13e||0x0)+_0xb2ee93),this['set'](_0x2253('0x6'),!0x1),this[_0x2253('0x1')]=_0x2610e5(()=>this[_0x2253('0xb')]()),this[_0x2253('0x2')]=null,this['content']=this[_0x2253('0x9')]();const _0x18cc40=this['bindTemplate'];this[_0x2253('0x5')]({'tag':_0x2253('0x0'),'attributes':{'class':[_0x2253('0xf'),_0x18cc40['to']('isAnimationDisabled',_0x4200db=>_0x4200db?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x18cc40['to'](_0x2253('0x4'),ft)}},'children':this['content']});}[_0x2253('0xd')](){super[_0x2253('0xd')](),this[_0x2253('0x1')]['attach'](this[_0x2253('0x8')]);}[_0x2253('0xb')](){const _0x1859a9=this['element']['clientHeight'];_0x1859a9&&(this[_0x2253('0x10')]=_0x1859a9);}[_0x2253('0x7')](){this[_0x2253('0xe')][_0x2253('0xa')](),this[_0x2253('0x1')][_0x2253('0x3')](),super[_0x2253('0x7')]();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x3054=['list','setTemplate','class','ck-sidebar','minHeight','createCollection','set'];(function(_0x1fd717,_0x3054fd){const _0x4d500f=function(_0x122e63){while(--_0x122e63){_0x1fd717['push'](_0x1fd717['shift']());}};_0x4d500f(++_0x3054fd);}(_0x3054,0xe9));const _0x4d50=function(_0x1fd717,_0x3054fd){_0x1fd717=_0x1fd717-0x0;let _0x4d500f=_0x3054[_0x1fd717];return _0x4d500f;};import{View as _0x30a341}from'ckeditor5/src/ui';import{toUnit as _0x3a8ae1}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const gt=_0x3a8ae1('px');export default class O extends _0x30a341{constructor(_0x593312){super(_0x593312);const _0x56f029=this['bindTemplate'];this[_0x4d50('0x4')]('minHeight',0x0),this['set']('class',''),this[_0x4d50('0x5')]=this[_0x4d50('0x3')](),this[_0x4d50('0x6')]({'tag':'div','attributes':{'class':['ck',_0x4d50('0x1'),'ck-reset',_0x56f029['to'](_0x4d50('0x0'))],'style':{'minHeight':_0x56f029['to'](_0x4d50('0x2'),_0x426f9c=>_0x426f9c?gt(_0x426f9c+0xa):null)}},'children':this['list']});}}
23
+ const _0x53bb=['class','list','div','createCollection','bindTemplate','set','setTemplate'];(function(_0x55312b,_0x53bbe6){const _0x4e89ec=function(_0x1f43ba){while(--_0x1f43ba){_0x55312b['push'](_0x55312b['shift']());}};_0x4e89ec(++_0x53bbe6);}(_0x53bb,0x1ca));const _0x4e89=function(_0x55312b,_0x53bbe6){_0x55312b=_0x55312b-0x0;let _0x4e89ec=_0x53bb[_0x55312b];return _0x4e89ec;};import{View as _0x52ef09}from'ckeditor5/src/ui';import{toUnit as _0x2b4746}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x2b4746('px');export default class T extends _0x52ef09{constructor(_0x51fa9c){super(_0x51fa9c);const _0x374698=this[_0x4e89('0x1')];this[_0x4e89('0x2')]('minHeight',0x0),this['set'](_0x4e89('0x4'),''),this[_0x4e89('0x5')]=this[_0x4e89('0x0')](),this[_0x4e89('0x3')]({'tag':_0x4e89('0x6'),'attributes':{'class':['ck','ck-sidebar','ck-reset',_0x374698['to'](_0x4e89('0x4'))],'style':{'minHeight':_0x374698['to']('minHeight',_0x86199=>_0x86199?ft(_0x86199+0xa):null)}},'children':this[_0x4e89('0x5')]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x16b1=['attach','editors','addAnnotation','uiUpdate','add','stop','widesidebar-detach-not-attached','_editorAnnotations','pluginName','has','rearrange','wideSidebar','_activeAnnotation','EditorAnnotations','detach','WideSidebar','ck-sidebar--wide','Sidebar','activeAnnotation','_attachToContainer','listenTo','change:container','stopListening','blur','removeEventListener','get','set','focus','_throttledPositioningRefresh','addEventListener','plugins','context','refresh','isAttached','_destroyEditorAnnotationsIntegration','switchTo','setActiveAnnotation','_integrateWithEditorAnnotations','hasDomSelection','remove','high','requires','refreshPositioning','off','cancel','ready','register','from','_annotations','set:container','_detachFromContainer','widesidebar-attach-already-attached','destroy','resize'];(function(_0xc72bfb,_0x16b1ae){const _0x18fcad=function(_0x2efc50){while(--_0x2efc50){_0xc72bfb['push'](_0xc72bfb['shift']());}};_0x18fcad(++_0x16b1ae);}(_0x16b1,0x98));const _0x18fc=function(_0xc72bfb,_0x16b1ae){_0xc72bfb=_0xc72bfb-0x0;let _0x18fcad=_0x16b1[_0xc72bfb];return _0x18fcad;};import{ContextPlugin as _0xcf85a1}from'ckeditor5/src/core';import _0x3af288 from'./annotationsuis';import _0x47385b from'./sidebar';import{CKEditorError as _0x261efc,Collection as _0x5e6e3e}from'ckeditor5/src/utils';import{throttle as _0x3ce651}from'lodash-es';export default class i extends _0xcf85a1{static get[_0x18fc('0x33')](){return[_0x47385b,_0x3af288];}static get[_0x18fc('0x12')](){return _0x18fc('0x19');}constructor(_0x1526a6){super(_0x1526a6),this[_0x18fc('0x2b')]=!0x1,this[_0x18fc('0x24')](_0x18fc('0x1c'),null),this['_annotations']=null,this[_0x18fc('0x11')]=new _0x5e6e3e(),this['_throttledPositioningRefresh']=_0x3ce651(()=>{this[_0x18fc('0x4')]['refreshPositioning']();},0x190,{'leading':!0x1});}['init'](){const _0x280fd7=this[_0x18fc('0x29')]['plugins'][_0x18fc('0x23')](_0x3af288),_0x2b288d=this[_0x18fc('0x29')][_0x18fc('0x28')][_0x18fc('0x23')](_0x47385b);_0x280fd7[_0x18fc('0x2')](_0x18fc('0x15'),this),_0x2b288d['container']&&_0x280fd7[_0x18fc('0x2d')](_0x18fc('0x15'));}[_0x18fc('0x2e')](_0x3d6a1c){if(_0x3d6a1c===this['activeAnnotation'])return;const _0x2ed995=this['context'][_0x18fc('0x28')][_0x18fc('0x23')](_0x47385b);_0x2ed995[_0x18fc('0x16')]=_0x3d6a1c;const _0x3db586=this[_0x18fc('0x1c')];this[_0x18fc('0x1c')]=_0x3d6a1c,_0x2ed995['refresh']({'blurredAnnotation':_0x3db586,'activatedAnnotation':this[_0x18fc('0x1c')]});}[_0x18fc('0xa')](_0x34416d){this[_0x18fc('0x4')]=_0x34416d;const _0x2a7595=this['context'][_0x18fc('0x28')][_0x18fc('0x23')](_0x18fc('0x1b'));if(_0x2a7595[_0x18fc('0x4')]=_0x34416d,this['isAttached'])throw new _0x261efc(_0x18fc('0x7'),this);this[_0x18fc('0x2b')]=!0x0,this['listenTo'](_0x2a7595,_0x18fc('0x5'),()=>{this[_0x18fc('0x18')](),this[_0x18fc('0x1e')](_0x2a7595,_0x18fc('0x1f'),_0x5173bb=>{_0x5173bb[_0x18fc('0x35')](),this[_0x18fc('0xa')](_0x34416d);});}),_0x2a7595[_0x18fc('0x1d')]({'viewClass':_0x18fc('0x1a')});const _0x1ecd4b=_0x196748=>{_0x196748['updateTargetRect'](),_0x2a7595[_0x18fc('0xc')](_0x196748);};for(const _0x1823c8 of _0x34416d)_0x1ecd4b(_0x1823c8);this['listenTo'](_0x34416d,_0x18fc('0xe'),(_0x28b69b,_0x6f01)=>{_0x1ecd4b(_0x6f01);}),this[_0x18fc('0x1e')](_0x34416d,_0x18fc('0x31'),(_0x2aefa3,_0x3bb317,_0x6e2f9f)=>{_0x2a7595[_0x18fc('0x14')]({'removedAnnotation':_0x3bb317,'previousAnnotation':_0x34416d[_0x18fc('0x23')](_0x6e2f9f-0x1),'nextAnnotation':_0x34416d[_0x18fc('0x23')](_0x6e2f9f+0x1)}),_0x3bb317===this[_0x18fc('0x1c')]&&this['setActiveAnnotation'](null);},{'priority':_0x18fc('0x32')}),this['listenTo'](_0x34416d,_0x18fc('0x25'),(_0x440207,_0x335f28)=>{this[_0x18fc('0x2e')](_0x335f28);}),this[_0x18fc('0x1e')](_0x34416d,'blur',()=>{this[_0x18fc('0x2e')](null);});const _0xb811a0=this['context']['editors']?this[_0x18fc('0x29')][_0x18fc('0xb')]:new _0x5e6e3e([this[_0x18fc('0x29')]]);for(const _0x40c52b of _0xb811a0)this[_0x18fc('0x2f')](_0x40c52b);this[_0x18fc('0x1e')](_0xb811a0,_0x18fc('0xe'),(_0x3821d0,_0x50c437)=>{this[_0x18fc('0x1e')](_0x50c437,_0x18fc('0x1'),()=>{this[_0x18fc('0x2f')](_0x50c437);});}),this[_0x18fc('0x1e')](_0xb811a0,_0x18fc('0x31'),(_0x41ce2c,_0x529b2b)=>{_0x529b2b[_0x18fc('0x28')][_0x18fc('0x13')](_0x18fc('0x17'))&&this['_destroyEditorAnnotationsIntegration'](_0x529b2b[_0x18fc('0x28')]['get']('EditorAnnotations'));}),window[_0x18fc('0x27')](_0x18fc('0x9'),this[_0x18fc('0x26')]),this[_0x18fc('0x4')]['refreshPositioning']();}[_0x18fc('0x18')](){if(!this['isAttached'])throw new _0x261efc(_0x18fc('0x10'),this);this[_0x18fc('0x2e')](null);const _0x35e3c4=this[_0x18fc('0x29')][_0x18fc('0x28')]['get'](_0x47385b);_0x35e3c4[_0x18fc('0x6')](this[_0x18fc('0x4')]),this[_0x18fc('0x20')](_0x35e3c4),this[_0x18fc('0x20')](this[_0x18fc('0x4')]),this[_0x18fc('0x20')](this['context'][_0x18fc('0xb')]);for(const _0x343358 of Array[_0x18fc('0x3')](this[_0x18fc('0x11')]))this[_0x18fc('0x2c')](_0x343358);window[_0x18fc('0x22')]('resize',this[_0x18fc('0x26')]),this[_0x18fc('0x26')][_0x18fc('0x0')](),this[_0x18fc('0x1c')]=null,this[_0x18fc('0x2b')]=!0x1;}[_0x18fc('0x8')](){this[_0x18fc('0x2b')]&&this[_0x18fc('0x18')]();}[_0x18fc('0x2f')](_0x2eed22){const _0x476abc=_0x2eed22[_0x18fc('0x28')][_0x18fc('0x23')]('EditorAnnotations');if(!_0x476abc)return;const _0x301733=()=>{const _0x46b067=_0x476abc['getOrderedSelectedAnnotations']({'annotations':this['_annotations'],'activeAnnotation':this[_0x18fc('0x1c')]});this['setActiveAnnotation'](_0x46b067[0x0]||null);};this[_0x18fc('0x1e')](_0x476abc,_0x18fc('0x2a'),_0x301733),this['listenTo'](_0x476abc,_0x18fc('0x21'),(_0x1b19f2,{isAnnotationTracked:_0x445ed9})=>{this[_0x18fc('0x1c')]&&_0x445ed9(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this[_0x18fc('0x1e')](_0x476abc,_0x18fc('0xd'),()=>{this[_0x18fc('0x4')][_0x18fc('0x34')]();}),this['listenTo'](this[_0x18fc('0x4')],_0x18fc('0x21'),_0x2de66e=>{_0x476abc[_0x18fc('0x30')]()&&(_0x301733(),_0x2de66e[_0x18fc('0xf')]());},{'priority':_0x18fc('0x32')}),this[_0x18fc('0x11')]['add'](_0x476abc);}['_destroyEditorAnnotationsIntegration'](_0x180b73){_0x180b73&&(this['stopListening'](_0x180b73),this['_editorAnnotations'][_0x18fc('0x31')](_0x180b73));}}
23
+ const _0x3b44=['blur','widesidebar-detach-not-attached','pluginName','rearrange','plugins','change:container','add','init','_integrateWithEditorAnnotations','refreshPositioning','attach','requires','_activeAnnotation','off','has','resize','destroy','isAttached','switchTo','_annotations','_detachFromContainer','removeEventListener','setActiveAnnotation','stopListening','editors','set','register','detach','addEventListener','_editorAnnotations','uiUpdate','_attachToContainer','getOrderedSelectedAnnotations','listenTo','_throttledPositioningRefresh','_destroyEditorAnnotationsIntegration','updateTargetRect','Sidebar','context','wideSidebar','from','get','refresh','remove','EditorAnnotations','addAnnotation','widesidebar-attach-already-attached','activeAnnotation','container','high'];(function(_0x235b23,_0x3b449f){const _0x59cd79=function(_0x261a8e){while(--_0x261a8e){_0x235b23['push'](_0x235b23['shift']());}};_0x59cd79(++_0x3b449f);}(_0x3b44,0xf8));const _0x59cd=function(_0x235b23,_0x3b449f){_0x235b23=_0x235b23-0x0;let _0x59cd79=_0x3b44[_0x235b23];return _0x59cd79;};import{ContextPlugin as _0x34690f}from'ckeditor5/src/core';import _0x1c9a65 from'./annotationsuis';import _0x52b296 from'./sidebar';import{CKEditorError as _0x5c0f65,Collection as _0xe86e9b}from'ckeditor5/src/utils';import{throttle as _0x3fb23a}from'lodash-es';export default class i extends _0x34690f{static get[_0x59cd('0xd')](){return[_0x52b296,_0x1c9a65];}static get[_0x59cd('0x4')](){return'WideSidebar';}constructor(_0x477a81){super(_0x477a81),this[_0x59cd('0x13')]=!0x1,this[_0x59cd('0x1b')](_0x59cd('0x31'),null),this[_0x59cd('0x15')]=null,this[_0x59cd('0x1f')]=new _0xe86e9b(),this[_0x59cd('0x24')]=_0x3fb23a(()=>{this['_annotations'][_0x59cd('0xb')]();},0x190,{'leading':!0x1});}[_0x59cd('0x9')](){const _0x5c8e05=this[_0x59cd('0x28')][_0x59cd('0x6')]['get'](_0x1c9a65),_0x5338b8=this['context'][_0x59cd('0x6')]['get'](_0x52b296);_0x5c8e05[_0x59cd('0x1c')](_0x59cd('0x29'),this),_0x5338b8[_0x59cd('0x0')]&&_0x5c8e05[_0x59cd('0x14')](_0x59cd('0x29'));}['setActiveAnnotation'](_0x5873e6){if(_0x5873e6===this[_0x59cd('0x31')])return;const _0x584095=this[_0x59cd('0x28')][_0x59cd('0x6')]['get'](_0x52b296);_0x584095[_0x59cd('0xe')]=_0x5873e6;const _0x1aee30=this[_0x59cd('0x31')];this[_0x59cd('0x31')]=_0x5873e6,_0x584095[_0x59cd('0x2c')]({'blurredAnnotation':_0x1aee30,'activatedAnnotation':this[_0x59cd('0x31')]});}[_0x59cd('0xc')](_0x3a76aa){this['_annotations']=_0x3a76aa;const _0x1607e5=this[_0x59cd('0x28')][_0x59cd('0x6')][_0x59cd('0x2b')](_0x59cd('0x27'));if(_0x1607e5[_0x59cd('0x15')]=_0x3a76aa,this['isAttached'])throw new _0x5c0f65(_0x59cd('0x30'),this);this[_0x59cd('0x13')]=!0x0,this['listenTo'](_0x1607e5,'set:container',()=>{this['detach'](),this['listenTo'](_0x1607e5,_0x59cd('0x7'),_0xc725a1=>{_0xc725a1[_0x59cd('0xf')](),this[_0x59cd('0xc')](_0x3a76aa);});}),_0x1607e5[_0x59cd('0x21')]({'viewClass':'ck-sidebar--wide'});const _0x57b8ed=_0x305a36=>{_0x305a36[_0x59cd('0x26')](),_0x1607e5[_0x59cd('0x2f')](_0x305a36);};for(const _0x3d588e of _0x3a76aa)_0x57b8ed(_0x3d588e);this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x8'),(_0x483324,_0x1b52f0)=>{_0x57b8ed(_0x1b52f0);}),this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x2d'),(_0x2e9abf,_0x36ccc3,_0x1fdc8a)=>{_0x1607e5[_0x59cd('0x5')]({'removedAnnotation':_0x36ccc3,'previousAnnotation':_0x3a76aa[_0x59cd('0x2b')](_0x1fdc8a-0x1),'nextAnnotation':_0x3a76aa[_0x59cd('0x2b')](_0x1fdc8a+0x1)}),_0x36ccc3===this['activeAnnotation']&&this[_0x59cd('0x18')](null);},{'priority':_0x59cd('0x1')}),this[_0x59cd('0x23')](_0x3a76aa,'focus',(_0x583b03,_0x256caa)=>{this[_0x59cd('0x18')](_0x256caa);}),this[_0x59cd('0x23')](_0x3a76aa,_0x59cd('0x2'),()=>{this['setActiveAnnotation'](null);});const _0x37f7d6=this[_0x59cd('0x28')][_0x59cd('0x1a')]?this['context'][_0x59cd('0x1a')]:new _0xe86e9b([this[_0x59cd('0x28')]]);for(const _0x458b54 of _0x37f7d6)this[_0x59cd('0xa')](_0x458b54);this['listenTo'](_0x37f7d6,_0x59cd('0x8'),(_0x465c25,_0x1e9a8d)=>{this[_0x59cd('0x23')](_0x1e9a8d,'ready',()=>{this[_0x59cd('0xa')](_0x1e9a8d);});}),this['listenTo'](_0x37f7d6,_0x59cd('0x2d'),(_0x406dee,_0x118e29)=>{_0x118e29[_0x59cd('0x6')][_0x59cd('0x10')](_0x59cd('0x2e'))&&this[_0x59cd('0x25')](_0x118e29[_0x59cd('0x6')]['get'](_0x59cd('0x2e')));}),window[_0x59cd('0x1e')](_0x59cd('0x11'),this['_throttledPositioningRefresh']),this[_0x59cd('0x15')][_0x59cd('0xb')]();}['detach'](){if(!this['isAttached'])throw new _0x5c0f65(_0x59cd('0x3'),this);this[_0x59cd('0x18')](null);const _0x1829c4=this['context'][_0x59cd('0x6')]['get'](_0x52b296);_0x1829c4[_0x59cd('0x16')](this[_0x59cd('0x15')]),this[_0x59cd('0x19')](_0x1829c4),this[_0x59cd('0x19')](this[_0x59cd('0x15')]),this[_0x59cd('0x19')](this['context'][_0x59cd('0x1a')]);for(const _0x2642ea of Array[_0x59cd('0x2a')](this[_0x59cd('0x1f')]))this[_0x59cd('0x25')](_0x2642ea);window[_0x59cd('0x17')](_0x59cd('0x11'),this[_0x59cd('0x24')]),this[_0x59cd('0x24')]['cancel'](),this[_0x59cd('0x31')]=null,this[_0x59cd('0x13')]=!0x1;}[_0x59cd('0x12')](){this[_0x59cd('0x13')]&&this[_0x59cd('0x1d')]();}[_0x59cd('0xa')](_0x431b50){const _0x1f8ee9=_0x431b50['plugins']['get'](_0x59cd('0x2e'));if(!_0x1f8ee9)return;const _0x429cb9=()=>{const _0x2fcfbf=_0x1f8ee9[_0x59cd('0x22')]({'annotations':this[_0x59cd('0x15')],'activeAnnotation':this[_0x59cd('0x31')]});this[_0x59cd('0x18')](_0x2fcfbf[0x0]||null);};this['listenTo'](_0x1f8ee9,'refresh',_0x429cb9),this['listenTo'](_0x1f8ee9,_0x59cd('0x2'),(_0x13e8c9,{isAnnotationTracked:_0x2c2d21})=>{this[_0x59cd('0x31')]&&_0x2c2d21(this[_0x59cd('0x31')])&&this[_0x59cd('0x18')](null);}),this[_0x59cd('0x23')](_0x1f8ee9,_0x59cd('0x20'),()=>{this[_0x59cd('0x15')][_0x59cd('0xb')]();}),this[_0x59cd('0x23')](this[_0x59cd('0x15')],_0x59cd('0x2'),_0xfea603=>{_0x1f8ee9['hasDomSelection']()&&(_0x429cb9(),_0xfea603['stop']());},{'priority':_0x59cd('0x1')}),this[_0x59cd('0x1f')][_0x59cd('0x8')](_0x1f8ee9);}[_0x59cd('0x25')](_0x34fdd3){_0x34fdd3&&(this['stopListening'](_0x34fdd3),this[_0x59cd('0x1f')][_0x59cd('0x2d')](_0x34fdd3));}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x23a8=['_hasContent','document','backward','createRange','refresh','getLastMatchingPosition','element','textProxy','addMarker','getRanges','substr','start','_itemIsContent','isEnabled','editor','item','isObject','selection','_trimToContent','execute','getItems','model'];(function(_0x57fa60,_0x23a81c){const _0x5c66ee=function(_0xd147cd){while(--_0xd147cd){_0x57fa60['push'](_0x57fa60['shift']());}};_0x5c66ee(++_0x23a81c);}(_0x23a8,0x1d5));const _0x5c66=function(_0x57fa60,_0x23a81c){_0x57fa60=_0x57fa60-0x0;let _0x5c66ee=_0x23a8[_0x57fa60];return _0x5c66ee;};import{Command as _0x373ecb}from'ckeditor5/src/core';import{uid as _0x3491ee}from'ckeditor5/src/utils';export default class P extends _0x373ecb{[_0x5c66('0x13')](){const _0x4edebd=this[_0x5c66('0x7')][_0x5c66('0xe')][_0x5c66('0x10')][_0x5c66('0xa')];for(const _0x4c3085 of _0x4edebd[_0x5c66('0x2')]())if(this['_hasContent'](_0x4c3085))return void(this[_0x5c66('0x6')]=!0x0);this['isEnabled']=!0x1;}[_0x5c66('0xc')]({threadId:_0x958a9=_0x3491ee()}={}){const _0x34ac6a=this['editor'][_0x5c66('0xe')],_0x290fce=[];for(const _0x44f786 of _0x34ac6a[_0x5c66('0x10')][_0x5c66('0xa')]['getRanges']())this[_0x5c66('0xf')](_0x44f786)&&_0x290fce['push'](this['_trimToContent'](_0x44f786));_0x34ac6a['change'](_0x18e58f=>{for(const _0x5bc706 of _0x290fce){const _0x44cd13=_0x3491ee()[_0x5c66('0x3')](0x1,0x5),_0x1ef404='comment:'+_0x958a9+':'+_0x44cd13;_0x18e58f[_0x5c66('0x1')](_0x1ef404,{'range':_0x5bc706,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x5c66('0xf')](_0x45d32c){for(const _0x4e8bbf of _0x45d32c[_0x5c66('0xd')]())if(this[_0x5c66('0x5')](_0x4e8bbf))return!0x0;return!0x1;}[_0x5c66('0x5')](_0x7fd2f){return _0x7fd2f['is'](_0x5c66('0x0'))||this[_0x5c66('0x7')][_0x5c66('0xe')]['schema'][_0x5c66('0x9')](_0x7fd2f)&&!_0x7fd2f['is'](_0x5c66('0x15'),'tableCell');}[_0x5c66('0xb')](_0x108aad){const _0x4330c0=_0x11c3db=>!this['_itemIsContent'](_0x11c3db[_0x5c66('0x8')]),_0x4332fc=_0x108aad[_0x5c66('0x4')][_0x5c66('0x14')](_0x4330c0),_0x3a7a56=_0x108aad['end'][_0x5c66('0x14')](_0x4330c0,{'direction':_0x5c66('0x11')});return this[_0x5c66('0x7')]['model'][_0x5c66('0x12')](_0x4332fc,_0x3a7a56);}}
23
+ const _0x4341=['getLastMatchingPosition','start','_itemIsContent','selection','getRanges','backward','editor','end','tableCell','getItems','addMarker','textProxy','substr','_hasContent','document','isObject','model','change','push','schema','_trimToContent','createRange','element','isEnabled'];(function(_0x4334ea,_0x4341b3){const _0x44dd43=function(_0x4b46bd){while(--_0x4b46bd){_0x4334ea['push'](_0x4334ea['shift']());}};_0x44dd43(++_0x4341b3);}(_0x4341,0x17e));const _0x44dd=function(_0x4334ea,_0x4341b3){_0x4334ea=_0x4334ea-0x0;let _0x44dd43=_0x4341[_0x4334ea];return _0x44dd43;};import{Command as _0x51822c}from'ckeditor5/src/core';import{uid as _0x1e6a16}from'ckeditor5/src/utils';export default class j extends _0x51822c{['refresh'](){const _0x35ae32=this['editor'][_0x44dd('0x12')]['document']['selection'];for(const _0x161325 of _0x35ae32[_0x44dd('0x6')]())if(this[_0x44dd('0xf')](_0x161325))return void(this[_0x44dd('0x1')]=!0x0);this[_0x44dd('0x1')]=!0x1;}['execute']({threadId:_0x20bd1b=_0x1e6a16()}={}){const _0x593ac0=this[_0x44dd('0x8')][_0x44dd('0x12')],_0x545a50=[];for(const _0x22eaf8 of _0x593ac0[_0x44dd('0x10')][_0x44dd('0x5')]['getRanges']())this[_0x44dd('0xf')](_0x22eaf8)&&_0x545a50[_0x44dd('0x14')](this[_0x44dd('0x16')](_0x22eaf8));_0x593ac0[_0x44dd('0x13')](_0x2351d0=>{for(const _0x2bcc31 of _0x545a50){const _0x3af345=_0x1e6a16()[_0x44dd('0xe')](0x1,0x5),_0x23d132='comment:'+_0x20bd1b+':'+_0x3af345;_0x2351d0[_0x44dd('0xc')](_0x23d132,{'range':_0x2bcc31,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x44dd('0xf')](_0x1bb425){for(const _0x1ec730 of _0x1bb425[_0x44dd('0xb')]())if(this[_0x44dd('0x4')](_0x1ec730))return!0x0;return!0x1;}[_0x44dd('0x4')](_0x153ea8){return _0x153ea8['is'](_0x44dd('0xd'))||this[_0x44dd('0x8')][_0x44dd('0x12')][_0x44dd('0x15')][_0x44dd('0x11')](_0x153ea8)&&!_0x153ea8['is'](_0x44dd('0x0'),_0x44dd('0xa'));}[_0x44dd('0x16')](_0x2cb452){const _0x57a3c1=_0x2520b4=>!this['_itemIsContent'](_0x2520b4['item']),_0x36618b=_0x2cb452[_0x44dd('0x3')]['getLastMatchingPosition'](_0x57a3c1),_0x4cd6b7=_0x2cb452[_0x44dd('0x9')][_0x44dd('0x2')](_0x57a3c1,{'direction':_0x44dd('0x7')});return this[_0x44dd('0x8')][_0x44dd('0x12')][_0x44dd('0x17')](_0x36618b,_0x4cd6b7);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x376b=['attachTo','data','dataDowncast','updateMarker','destroyed','add','state','_detachCommentThread','markerName','once','size','removeMarker','differ','activeMarker','getCommentThreads','markerToData','editor','_handleMarkerAddAndRemove','getMarkersGroup','plugins','removeCommentThread','requires','delete','upcast','rootName','change','then','createRange','CommentsEditing','hasCommentThread','from','ck-comment-marker--active','getAllMarkersForId','_changedMarkers','isThreadsLoadingPaused','conversion','listenTo','hasMarkerForId','comment:','managedUsingOperations','set','push','sort','schema','root','addCommentThread','get','newRange','change:isThreadsLoadingPaused','config','map','pluginName','_threads','_attachedThreads','openNewCommentThread','fetchCommentThread','low','length','editing','name','CommentsRepository','_attachThreadToMarker','_initializeMarkerConverters','for','editingDowncast','document','collaboration.channelId','text','addComment','destroy','change:isReadOnly','start','has','comment','view','high','markerToHighlight','createElement','getWalker','getAttribute','top','ready','ck-comment-marker','init','model','render','dataToMarker','markers','isCollapsed','stop','getCommentThread'];(function(_0xcfff17,_0x376b70){const _0x1960d5=function(_0x3174bf){while(--_0x3174bf){_0xcfff17['push'](_0xcfff17['shift']());}};_0x1960d5(++_0x376b70);}(_0x376b,0x9a));const _0x1960=function(_0xcfff17,_0x376b70){_0xcfff17=_0xcfff17-0x0;let _0x1960d5=_0x376b[_0xcfff17];return _0x1960d5;};import{Plugin as _0x7276e}from'ckeditor5/src/core';import{Rect as _0x31275e}from'ckeditor5/src/utils';import _0x53eaee from'./commentsrepository';import _0x113626 from'./addcommentthreadcommand';import _0x35ba91 from'../utils/getmarkerdomelement';import _0x1307f6 from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x7276e{static get[_0x1960('0x31')](){return[_0x53eaee,_0x1307f6];}static get[_0x1960('0x4f')](){return _0x1960('0x38');}constructor(_0x3ffba9){super(_0x3ffba9),this[_0x1960('0x44')]('isThreadsLoadingPaused',!0x0),_0x3ffba9[_0x1960('0x1d')][_0x1960('0x25')](_0x1960('0x12'),()=>this[_0x1960('0x3e')]=!0x1),this[_0x1960('0x44')](_0x1960('0x29'),null),this['on']('change:activeMarker',(_0x5e5af9,_0x4c93ad,_0xae3573,_0x22f327)=>{_0x3ffba9[_0x1960('0x15')]['change'](_0x42ce4a=>{if(_0xae3573){const {id:_0x11de6d}=q(_0xae3573),_0xae6851=this[_0x1960('0x3c')](_0x11de6d);for(const _0x4ba822 of _0xae6851)_0x42ce4a[_0x1960('0x1f')](_0x4ba822);}if(_0x22f327){const {id:_0x191621}=q(_0x22f327),_0x402b64=this[_0x1960('0x3c')](_0x191621);for(const _0x3870b8 of _0x402b64)_0x42ce4a['updateMarker'](_0x3870b8);}});}),this['_attachedThreads']=new Set();}[_0x1960('0x14')](){const _0x5e1821=this[_0x1960('0x2c')],_0x22b45f=_0x5e1821['plugins'][_0x1960('0x4a')](_0x1960('0x58')),_0x4e16f1=_0x5e1821['config'][_0x1960('0x4a')]('collaboration.channelId');_0x5e1821['commands'][_0x1960('0x21')](_0x1960('0x49'),new _0x113626(_0x5e1821)),this[_0x1960('0x40')](_0x5e1821,_0x1960('0x7'),(_0x1e3759,_0x2872d0,_0x20f069)=>{_0x22b45f['switchReadOnly'](_0x20f069,_0x5e1821[_0x1960('0x4d')]['get']('collaboration.channelId'));}),this[_0x1960('0x40')](_0x22b45f,F(_0x1960('0x30'),_0x4e16f1),(_0x10c458,{threadId:_0x2c406c})=>{_0x5e1821[_0x1960('0x15')][_0x1960('0x35')](_0x5a654a=>{for(const _0x446440 of this['getAllMarkersForId'](_0x2c406c))_0x5a654a[_0x1960('0x27')](_0x446440);});const _0x5b030f=_0x22b45f[_0x1960('0x1b')](_0x2c406c);_0x22b45f[_0x1960('0x39')](_0x2c406c)&&!_0x5b030f['length']||_0x10c458[_0x1960('0x1a')]();},{'priority':_0x1960('0xc')}),this[_0x1960('0x40')](_0x22b45f,F(_0x1960('0x5'),_0x4e16f1),(_0x27dc20,{threadId:_0x29670b,isFromAdapter:_0x261096})=>{const _0x30ed0c=this[_0x1960('0x3c')](_0x29670b);if(_0x261096||0x0==_0x30ed0c[_0x1960('0x55')]||!_0x22b45f[_0x1960('0x39')](_0x29670b))return;0x1===_0x22b45f[_0x1960('0x1b')](_0x29670b)[_0x1960('0x55')]&&_0x5e1821[_0x1960('0x15')][_0x1960('0x35')](_0x1a9828=>{for(const _0x2e9be1 of _0x30ed0c)_0x1a9828[_0x1960('0x1f')](_0x2e9be1,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x1960('0x54')}),this[_0x1960('0x5a')](),this['_handleMarkerAddAndRemove']();}[_0x1960('0x6')](){const _0x163253=this['editor']['plugins'][_0x1960('0x4a')](_0x1960('0x58')),_0x38fde6=this[_0x1960('0x2c')][_0x1960('0x4d')]['get'](_0x1960('0x3'));for(const _0x395248 of _0x163253[_0x1960('0x2a')]({'channelId':_0x38fde6}))_0x163253[_0x1960('0x23')](_0x395248['id']),_0x163253[_0x1960('0x50')][_0x1960('0x32')](_0x395248['id']);super[_0x1960('0x6')]();}[_0x1960('0x41')](_0x2b604b){return this['getAllMarkersForId'](_0x2b604b)['length']>0x0;}[_0x1960('0x3c')](_0x50c58d){const _0x4ca177=this[_0x1960('0x2c')][_0x1960('0x15')]['markers'][_0x1960('0x4a')](_0x1960('0x42')+_0x50c58d);return _0x4ca177?[_0x4ca177]:Array[_0x1960('0x3a')](this[_0x1960('0x2c')][_0x1960('0x15')][_0x1960('0x18')][_0x1960('0x2e')](_0x1960('0x42')+_0x50c58d));}[_0x1960('0x5a')](){const _0x49076f=this[_0x1960('0x2c')];_0x49076f[_0x1960('0x3f')][_0x1960('0x0')](_0x1960('0x1'))[_0x1960('0xd')]({'model':_0x1960('0xa'),'view':_0x3d4d50=>{const {id:_0x285546}=q(_0x3d4d50[_0x1960('0x24')]),_0x2f2d79=[_0x1960('0x13')];return this['activeMarker']&&q(this[_0x1960('0x29')])['id']===_0x285546&&_0x2f2d79[_0x1960('0x45')](_0x1960('0x3b')),{'classes':_0x2f2d79,'attributes':{'data-comment':_0x285546}};}}),_0x49076f[_0x1960('0x3f')][_0x1960('0x0')](_0x1960('0x1e'))[_0x1960('0x2b')]({'model':'comment','view':_0x43c906=>{const _0x58b6c0=_0x49076f[_0x1960('0x15')]['markers'][_0x1960('0x4a')](_0x43c906),{id:_0x5e74ba,part:_0x2d5508}=q(_0x43c906);return _0x58b6c0&&!_0x58b6c0['affectsData']?null:{'group':_0x1960('0xa'),'name':_0x2d5508?_0x5e74ba+':'+_0x2d5508:_0x5e74ba};}}),_0x49076f[_0x1960('0x3f')]['for'](_0x1960('0x33'))['elementToElement']({'view':{'name':_0x1960('0xa'),'attribute':{'id':/^\w/}},'model':(_0x5d3e64,{writer:_0x5a5990})=>_0x5a5990[_0x1960('0xe')]('$marker',{'data-name':_0x1960('0x42')+_0x5d3e64[_0x1960('0x10')]('id')})}),_0x49076f['conversion'][_0x1960('0x0')](_0x1960('0x33'))[_0x1960('0x17')]({'view':_0x1960('0xa')});}[_0x1960('0x2d')](){const _0x318433=this[_0x1960('0x2c')],_0x19adfb=_0x318433[_0x1960('0x2f')][_0x1960('0x4a')](_0x1960('0x58')),_0x3f075f=new Set();_0x318433[_0x1960('0x15')]['document']['registerPostFixer'](_0x527ab0=>{let _0x974c13=!0x1;for(const [_0x58eef6,_0x26593f]of _0x318433[_0x1960('0x15')][_0x1960('0x2')][_0x1960('0x28')][_0x1960('0x3d')]){const {group:_0x2c86c1,id:_0x5e74e2}=q(_0x58eef6);let _0x10c153=_0x26593f[_0x1960('0x4b')];if('comment'!==_0x2c86c1||!_0x10c153)continue;const _0x14cf94='$graveyard'===_0x10c153[_0x1960('0x48')][_0x1960('0x34')];_0x14cf94||(_0x10c153=j(_0x10c153,_0x318433['model']),!_0x10c153||_0x10c153['isEqual'](_0x26593f[_0x1960('0x4b')]))?!_0x10c153||!_0x318433[_0x1960('0x15')]['hasContent'](_0x10c153)||this['_attachedThreads'][_0x1960('0x9')](_0x5e74e2)&&_0x14cf94?(_0x527ab0[_0x1960('0x27')](_0x58eef6),_0x974c13=!0x0):_0x14cf94||(this[_0x1960('0x3e')]?_0x3f075f[_0x1960('0x21')](_0x5e74e2):this[_0x1960('0x59')](_0x5e74e2)):(_0x527ab0[_0x1960('0x1f')](_0x58eef6,{'range':_0x10c153}),_0x974c13=!0x0);}return _0x974c13;}),this['on'](_0x1960('0x4c'),(_0x2093cb,_0x2ed897,_0xb79d97)=>{if(!_0xb79d97&&_0x3f075f[_0x1960('0x26')])for(const _0x2045f2 of _0x3f075f)this[_0x1960('0x59')](_0x2045f2),_0x3f075f[_0x1960('0x32')](_0x2045f2);}),this[_0x1960('0x40')](_0x318433[_0x1960('0x15')][_0x1960('0x18')],'update:comment',(_0x359139,_0x2d4ca0,_0x56e758,_0xd3ce6e)=>{if(_0xd3ce6e)return;const {id:_0x55c2bc}=q(_0x2d4ca0[_0x1960('0x57')]),_0x160c63=_0x318433[_0x1960('0x2f')][_0x1960('0x4a')](_0x1960('0x58'))[_0x1960('0x1b')](_0x55c2bc);_0x3f075f[_0x1960('0x32')](_0x55c2bc),_0x160c63&&!this[_0x1960('0x41')](_0x55c2bc)&&(this[_0x1960('0x51')][_0x1960('0x32')](_0x55c2bc),_0x19adfb[_0x1960('0x23')](_0x55c2bc));});}[_0x1960('0x59')](_0x441a27){if(this[_0x1960('0x51')][_0x1960('0x9')](_0x441a27))return;this['_attachedThreads'][_0x1960('0x21')](_0x441a27);const _0xa7c799=this[_0x1960('0x2c')],_0x4f1610=_0xa7c799[_0x1960('0x2f')][_0x1960('0x4a')](_0x1960('0x58')),_0x4623d9=_0xa7c799[_0x1960('0x4d')][_0x1960('0x4a')]('collaboration.channelId'),_0x4c9ccb=()=>{const _0x333757=this[_0x1960('0x3c')](_0x441a27);if(0x0==_0x333757[_0x1960('0x55')])return null;const _0x305e89=_0x333757[_0x1960('0x4e')](_0x3cfa0e=>_0x35ba91(_0xa7c799[_0x1960('0x56')],_0x3cfa0e));return _0x305e89[_0x1960('0x46')]((_0x2480a0,_0x10c3ae)=>{const _0xa01ce8=new _0x31275e(_0x2480a0),_0x591c57=new _0x31275e(_0x10c3ae),_0x27528f=_0xa01ce8[_0x1960('0x11')]-_0x591c57['top'];return 0x0==_0x27528f?_0xa01ce8['left']-_0x591c57['left']:_0x27528f;}),_0x305e89[0x0];};!this[_0x1960('0x3c')](_0x441a27)[0x0][_0x1960('0x43')]?_0xa7c799[_0x1960('0x56')][_0x1960('0xb')][_0x1960('0x25')](_0x1960('0x16'),()=>{_0x4f1610[_0x1960('0x52')]({'channelId':_0x4623d9,'threadId':_0x441a27,'target':_0x4c9ccb});},{'priority':_0x1960('0x54')}):_0x4f1610[_0x1960('0x53')]({'channelId':_0x4623d9,'threadId':_0x441a27})[_0x1960('0x36')](_0x1dcfdb=>{if(_0x1960('0x20')!==_0xa7c799[_0x1960('0x22')]){if(_0x1dcfdb)_0x1dcfdb[_0x1960('0x1c')](_0x4c9ccb);else{const _0x4e74b5=this[_0x1960('0x3c')](_0x441a27);_0xa7c799[_0x1960('0x15')][_0x1960('0x35')](_0x598b3d=>{for(const _0xdf70fa of _0x4e74b5)_0x598b3d[_0x1960('0x27')](_0xdf70fa);});}}});}}function F(_0x2e92ad,_0x16a17a){return _0x16a17a?_0x2e92ad+':'+_0x16a17a:_0x2e92ad;}function q(_0x400060){const _0x2ad86d=_0x400060['split'](':');return{'group':_0x2ad86d[0x0],'id':_0x2ad86d[0x1],'part':_0x2ad86d[0x2]};}function j(_0x1bdf5e,_0x157fa8){const _0x57e584=_0x157fa8[_0x1960('0x47')],_0x4b9ea9=_0x157fa8[_0x1960('0x37')](_0x1bdf5e[_0x1960('0x8')]);for(const _0x52ff of _0x1bdf5e[_0x1960('0xf')]()){const {type:_0x4192ac,item:_0x3a826f,nextPosition:_0x151a0d}=_0x52ff;if(_0x1960('0x4')===_0x4192ac||_0x57e584['isObject'](_0x3a826f)){const _0x28d544=_0x157fa8['createPositionBefore'](_0x3a826f);_0x4b9ea9[_0x1960('0x19')]&&(_0x4b9ea9['start']=_0x28d544),_0x4b9ea9['end']=_0x151a0d;}}return _0x4b9ea9[_0x1960('0x19')]?null:_0x4b9ea9;}
23
+ const _0x713a=['end','editing','getAllMarkersForId','root','hasMarkerForId','getMarkersGroup','editor','removeMarker','start','fetchCommentThread','dataToMarker','CommentsRepository','destroy','listenTo','get','createPositionBefore','config','_handleMarkerAddAndRemove','has','schema','getWalker','isThreadsLoadingPaused','_detachCommentThread','attachTo','state','markerToHighlight','markerName','hasCommentThread','view','ck-comment-marker--active','upcast','render','elementToElement','comment:','requires','getAttribute','from','data','$graveyard','map','markerToData','plugins','reconvertMarker','for','size','change:isThreadsLoadingPaused','registerPostFixer','updateMarker','change','openNewCommentThread','editingDowncast','name','getChangedMarkers','rootName','differ','low','managedUsingOperations','isEqual','delete','isObject','add','removeCommentThread','init','set','comment','length','ck-comment-marker','conversion','markers','activeMarker','push','high','createRange','model','once','_attachedThreads','getCommentThread','$marker','_initializeMarkerConverters','split','createElement','stop','_attachThreadToMarker','newRange','document','dataDowncast','pluginName','collaboration.channelId','then','isCollapsed','text','top','left','sort'];(function(_0x4e35d1,_0x713a10){const _0x7edd58=function(_0x5d9ff3){while(--_0x5d9ff3){_0x4e35d1['push'](_0x4e35d1['shift']());}};_0x7edd58(++_0x713a10);}(_0x713a,0x1ac));const _0x7edd=function(_0x4e35d1,_0x713a10){_0x4e35d1=_0x4e35d1-0x0;let _0x7edd58=_0x713a[_0x4e35d1];return _0x7edd58;};import{Plugin as _0x44f512}from'ckeditor5/src/core';import{Rect as _0x41f675}from'ckeditor5/src/utils';import _0x850e87 from'./commentsrepository';import _0x514de2 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x4066a3}from'ckeditor5-collaboration/src/collaboration-core';import _0x4110ee from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x44f512{static get[_0x7edd('0x4c')](){return[_0x850e87,_0x4110ee];}static get[_0x7edd('0x22')](){return'CommentsEditing';}constructor(_0x17746d){super(_0x17746d),this[_0x7edd('0xb')]('isThreadsLoadingPaused',!0x0),_0x17746d[_0x7edd('0x4f')][_0x7edd('0x16')]('ready',()=>this[_0x7edd('0x3f')]=!0x1),this[_0x7edd('0xb')](_0x7edd('0x11'),null),this['on']('change:activeMarker',(_0x273136,_0x5c1ea8,_0x20a9e4,_0x4c8fd7)=>{_0x17746d[_0x7edd('0x15')][_0x7edd('0x5a')](()=>{if(_0x20a9e4){const {id:_0x404418}=G(_0x20a9e4),_0x4a565d=this[_0x7edd('0x2c')](_0x404418);for(const _0xe87111 of _0x4a565d)_0x17746d['editing'][_0x7edd('0x54')](_0xe87111);}if(_0x4c8fd7){const {id:_0x1ec8f3}=G(_0x4c8fd7),_0x4f955b=this[_0x7edd('0x2c')](_0x1ec8f3);for(const _0x21bc81 of _0x4f955b)_0x17746d[_0x7edd('0x2b')]['reconvertMarker'](_0x21bc81);}});}),this['_attachedThreads']=new Set();}[_0x7edd('0xa')](){const _0x3b0593=this[_0x7edd('0x30')],_0x3c9b7b=_0x3b0593[_0x7edd('0x53')]['get'](_0x7edd('0x35')),_0x4988eb=_0x3b0593[_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23'));_0x3b0593['commands'][_0x7edd('0x8')]('addCommentThread',new _0x514de2(_0x3b0593)),this['listenTo'](_0x3b0593,'change:isReadOnly',(_0x33c7bb,_0x581d9c,_0x2dcd48)=>{_0x3c9b7b['switchReadOnly'](_0x2dcd48,_0x3b0593['config'][_0x7edd('0x38')](_0x7edd('0x23')));}),this['listenTo'](_0x3c9b7b,q(_0x7edd('0x9'),_0x4988eb),(_0x8a5be8,{threadId:_0x5370e6})=>{_0x3b0593[_0x7edd('0x15')][_0x7edd('0x5a')](_0x353ccf=>{for(const _0x1ec456 of this[_0x7edd('0x2c')](_0x5370e6))_0x353ccf[_0x7edd('0x31')](_0x1ec456);});const _0x4b8cfa=_0x3c9b7b[_0x7edd('0x18')](_0x5370e6);_0x3c9b7b['hasCommentThread'](_0x5370e6)&&!_0x4b8cfa[_0x7edd('0xd')]||_0x8a5be8[_0x7edd('0x1d')]();},{'priority':_0x7edd('0x13')}),this['listenTo'](_0x3c9b7b,q('addComment',_0x4988eb),(_0x483faf,{threadId:_0x2f96ab,isFromAdapter:_0x4abeec})=>{const _0xcb40ed=this['getAllMarkersForId'](_0x2f96ab);if(_0x4abeec||0x0==_0xcb40ed[_0x7edd('0xd')]||!_0x3c9b7b[_0x7edd('0x45')](_0x2f96ab))return;0x1===_0x3c9b7b[_0x7edd('0x18')](_0x2f96ab)[_0x7edd('0xd')]&&_0x3b0593['model'][_0x7edd('0x5a')](_0x532d51=>{for(const _0x10edfc of _0xcb40ed)_0x532d51[_0x7edd('0x59')](_0x10edfc,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0x7edd('0x3')}),this['_initializeMarkerConverters'](),this[_0x7edd('0x3b')]();}[_0x7edd('0x36')](){const _0x319fd4=this[_0x7edd('0x30')][_0x7edd('0x53')][_0x7edd('0x38')](_0x7edd('0x35')),_0x305ce7=this['editor'][_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23'));for(const _0x5c245f of _0x319fd4['getCommentThreads']({'channelId':_0x305ce7}))_0x319fd4[_0x7edd('0x40')](_0x5c245f['id']),_0x319fd4['_threads']['delete'](_0x5c245f['id']);super[_0x7edd('0x36')]();}['hasMarkerForId'](_0x31faff){return this[_0x7edd('0x2c')](_0x31faff)[_0x7edd('0xd')]>0x0;}['getAllMarkersForId'](_0x52b7b0){const _0x2e2b9a=this[_0x7edd('0x30')]['model']['markers'][_0x7edd('0x38')](_0x7edd('0x4b')+_0x52b7b0);return _0x2e2b9a?[_0x2e2b9a]:Array[_0x7edd('0x4e')](this['editor'][_0x7edd('0x15')][_0x7edd('0x10')][_0x7edd('0x2f')](_0x7edd('0x4b')+_0x52b7b0));}[_0x7edd('0x1a')](){const _0x56ec6f=this['editor'];_0x56ec6f[_0x7edd('0xf')][_0x7edd('0x55')](_0x7edd('0x5c'))[_0x7edd('0x43')]({'model':_0x7edd('0xc'),'view':_0x458917=>{const {id:_0x2736d2}=G(_0x458917[_0x7edd('0x44')]),_0x4f2d6a=[_0x7edd('0xe')];return this[_0x7edd('0x11')]&&G(this[_0x7edd('0x11')])['id']===_0x2736d2&&_0x4f2d6a[_0x7edd('0x12')](_0x7edd('0x47')),{'classes':_0x4f2d6a,'attributes':{'data-comment':_0x2736d2}};}}),_0x56ec6f['conversion'][_0x7edd('0x55')](_0x7edd('0x21'))[_0x7edd('0x52')]({'model':'comment','view':_0x18b58b=>{const _0x3eb60c=_0x56ec6f['model']['markers'][_0x7edd('0x38')](_0x18b58b),{id:_0x3b102f,part:_0x26d144}=G(_0x18b58b);return _0x3eb60c&&!_0x3eb60c['affectsData']?null:{'group':'comment','name':_0x26d144?_0x3b102f+':'+_0x26d144:_0x3b102f};}}),_0x56ec6f['conversion'][_0x7edd('0x55')](_0x7edd('0x48'))[_0x7edd('0x4a')]({'view':{'name':_0x7edd('0xc'),'attribute':{'id':/^\w/}},'model':(_0x2aedf0,{writer:_0x40ce68})=>_0x40ce68[_0x7edd('0x1c')](_0x7edd('0x19'),{'data-name':_0x7edd('0x4b')+_0x2aedf0[_0x7edd('0x4d')]('id')})}),_0x56ec6f[_0x7edd('0xf')][_0x7edd('0x55')](_0x7edd('0x48'))[_0x7edd('0x34')]({'view':'comment'});}[_0x7edd('0x3b')](){const _0x403c46=this[_0x7edd('0x30')],_0x5ada91=_0x403c46[_0x7edd('0x53')][_0x7edd('0x38')](_0x7edd('0x35')),_0x26ad0a=new Set();_0x403c46['model'][_0x7edd('0x20')][_0x7edd('0x58')](_0xd6ce07=>{let _0xabd219=!0x1;for(const {name:_0xf5316,data:_0x4e6956}of _0x403c46[_0x7edd('0x15')][_0x7edd('0x20')][_0x7edd('0x2')][_0x7edd('0x0')]()){const {group:_0xc3535c,id:_0x5bcfc9}=G(_0xf5316);let _0x24b695=_0x4e6956['newRange'];if(_0x7edd('0xc')!==_0xc3535c||!_0x24b695)continue;const _0x3d57d9=_0x7edd('0x50')===_0x24b695[_0x7edd('0x2d')][_0x7edd('0x1')];_0x3d57d9||(_0x24b695=J(_0x24b695,_0x403c46[_0x7edd('0x15')]),!_0x24b695||_0x24b695[_0x7edd('0x5')](_0x4e6956[_0x7edd('0x1f')]))?!_0x24b695||!_0x403c46[_0x7edd('0x15')]['hasContent'](_0x24b695)||this[_0x7edd('0x17')][_0x7edd('0x3c')](_0x5bcfc9)&&_0x3d57d9?(_0xd6ce07[_0x7edd('0x31')](_0xf5316),_0xabd219=!0x0):_0x3d57d9||(this[_0x7edd('0x3f')]?_0x26ad0a['add'](_0x5bcfc9):this[_0x7edd('0x1e')](_0x5bcfc9)):(_0xd6ce07['updateMarker'](_0xf5316,{'range':_0x24b695}),_0xabd219=!0x0);}return _0xabd219;}),this['on'](_0x7edd('0x57'),(_0x5f5cf6,_0x418094,_0x426220)=>{if(!_0x426220&&_0x26ad0a[_0x7edd('0x56')])for(const _0x4e2e26 of _0x26ad0a)this['_attachThreadToMarker'](_0x4e2e26),_0x26ad0a[_0x7edd('0x6')](_0x4e2e26);}),this[_0x7edd('0x37')](_0x403c46[_0x7edd('0x15')][_0x7edd('0x10')],'update:comment',(_0x9b19e,_0x8ffa7c,_0x2d8b7a,_0x3ea200)=>{if(_0x3ea200)return;const {id:_0x52459c}=G(_0x8ffa7c[_0x7edd('0x5d')]),_0x19c2e9=_0x403c46[_0x7edd('0x53')]['get'](_0x7edd('0x35'))[_0x7edd('0x18')](_0x52459c);_0x26ad0a[_0x7edd('0x6')](_0x52459c),_0x19c2e9&&!this[_0x7edd('0x2e')](_0x52459c)&&(this[_0x7edd('0x17')]['delete'](_0x52459c),_0x5ada91[_0x7edd('0x40')](_0x52459c));});}['_attachThreadToMarker'](_0xa3bfd4){if(this[_0x7edd('0x17')]['has'](_0xa3bfd4))return;this['_attachedThreads'][_0x7edd('0x8')](_0xa3bfd4);const _0x15f349=this[_0x7edd('0x30')],_0x156563=_0x15f349[_0x7edd('0x53')]['get'](_0x7edd('0x35')),_0xc91a4f=_0x15f349[_0x7edd('0x3a')][_0x7edd('0x38')](_0x7edd('0x23')),_0x2c0970=()=>{const _0x135ec3=this['getAllMarkersForId'](_0xa3bfd4);if(0x0==_0x135ec3[_0x7edd('0xd')])return null;const _0x5e73e4=_0x135ec3[_0x7edd('0x51')](_0x5106ee=>_0x4066a3(_0x15f349['editing'],_0x5106ee));return _0x5e73e4[_0x7edd('0x29')]((_0x12f220,_0x1cf7bc)=>{const _0x6dd3a0=new _0x41f675(_0x12f220),_0x1e9809=new _0x41f675(_0x1cf7bc),_0x442b37=_0x6dd3a0[_0x7edd('0x27')]-_0x1e9809[_0x7edd('0x27')];return 0x0==_0x442b37?_0x6dd3a0[_0x7edd('0x28')]-_0x1e9809['left']:_0x442b37;}),_0x5e73e4[0x0];};!this[_0x7edd('0x2c')](_0xa3bfd4)[0x0][_0x7edd('0x4')]?_0x15f349[_0x7edd('0x2b')][_0x7edd('0x46')][_0x7edd('0x16')](_0x7edd('0x49'),()=>{_0x156563[_0x7edd('0x5b')]({'channelId':_0xc91a4f,'threadId':_0xa3bfd4,'target':_0x2c0970});},{'priority':_0x7edd('0x3')}):_0x156563[_0x7edd('0x33')]({'channelId':_0xc91a4f,'threadId':_0xa3bfd4})[_0x7edd('0x24')](_0x1e1ac6=>{if('destroyed'!==_0x15f349[_0x7edd('0x42')]){if(_0x1e1ac6)_0x1e1ac6[_0x7edd('0x41')](_0x2c0970);else{const _0x1bd17d=this[_0x7edd('0x2c')](_0xa3bfd4);_0x15f349[_0x7edd('0x15')][_0x7edd('0x5a')](_0x49b9a0=>{for(const _0x5c9563 of _0x1bd17d)_0x49b9a0[_0x7edd('0x31')](_0x5c9563);});}}});}}function q(_0x3d3d12,_0x1674fe){return _0x1674fe?_0x3d3d12+':'+_0x1674fe:_0x3d3d12;}function G(_0x2f72a7){const _0x575d51=_0x2f72a7[_0x7edd('0x1b')](':');return{'group':_0x575d51[0x0],'id':_0x575d51[0x1],'part':_0x575d51[0x2]};}function J(_0x3b166b,_0x3c3c12){const _0xa6c89=_0x3c3c12[_0x7edd('0x3d')],_0x25639c=_0x3c3c12[_0x7edd('0x14')](_0x3b166b['start']);for(const _0x24d058 of _0x3b166b[_0x7edd('0x3e')]()){const {type:_0x5d785a,item:_0x326b0a,nextPosition:_0x573300}=_0x24d058;if(_0x7edd('0x26')===_0x5d785a||_0xa6c89[_0x7edd('0x7')](_0x326b0a)){const _0x226bc7=_0x3c3c12[_0x7edd('0x39')](_0x326b0a);_0x25639c[_0x7edd('0x25')]&&(_0x25639c[_0x7edd('0x32')]=_0x226bc7),_0x25639c[_0x7edd('0x2a')]=_0x573300;}}return _0x25639c[_0x7edd('0x25')]?null:_0x25639c;}