@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231116.0 → 0.0.0-nightly-20231118.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 (66) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/imagestyle.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.js +1 -1
  32. package/src/integrations/link.js +1 -1
  33. package/src/integrations/list.js +1 -1
  34. package/src/integrations/listproperties.js +1 -1
  35. package/src/integrations/mediaembed.js +1 -1
  36. package/src/integrations/mention.js +1 -1
  37. package/src/integrations/pagebreak.js +1 -1
  38. package/src/integrations/paragraph.js +1 -1
  39. package/src/integrations/removeformat.js +1 -1
  40. package/src/integrations/restrictededitingmode.js +1 -1
  41. package/src/integrations/shiftentercommand.js +1 -1
  42. package/src/integrations/standardeditingmode.js +1 -1
  43. package/src/integrations/style.js +1 -1
  44. package/src/integrations/table.js +1 -1
  45. package/src/integrations/tablecaption.js +1 -1
  46. package/src/integrations/tableclipboard.js +1 -1
  47. package/src/integrations/tablecolumnresize.js +1 -1
  48. package/src/integrations/tableheadings.js +1 -1
  49. package/src/integrations/tablemergesplit.js +1 -1
  50. package/src/integrations/tableofcontents.js +1 -1
  51. package/src/integrations/tableproperties.js +1 -1
  52. package/src/integrations/template.js +1 -1
  53. package/src/integrations/title.js +1 -1
  54. package/src/integrations/undo.js +1 -1
  55. package/src/integrations/utils.js +1 -1
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.js +1 -1
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e81=['descriptionParts','CommentView','reduce','comments','push','_destroyController','button','getFirstRange','map','_refreshActiveMarkers','suggestion-','keys','mainView','change:activeAnnotations','isMultiRange','getRanges','EditorAnnotations','getByInnerView','source','Accept\x20all\x20suggestions','config','execute','previous','trackChanges.SuggestionThreadView','toMany','_annotationViews','editing','createCommentThreadController','_handleControllerBuffer','unbind','trackChanges','discardSelectedSuggestions','editor','add','bind','createAnnotation','hasSuggestion','SuggestionThreadView','_initializeController','size','discardButton','isInContent','has','head','discardAllSuggestions','from','Accept\x20all\x20selected\x20suggestions','getJoined','_descriptionFactory','_updateController','get','getDescriptions','clear','suggestionChanged','CommentsRepository','destroy','_unbindEditors','trackChanges.disableComments','refreshSelectedViews','acceptButton','delete','isDirty','filter','isEnabled','_handleSuggestionControllerDelayed','stopListening','activeAnnotations','acceptAllSuggestions','TrackChangesEditing','values','view','Discard\x20all\x20selected\x20suggestions','plugins','componentFactory','listenTo','_createUIButton','change:previous','requires','Annotations','isOn','define','Track\x20changes','getMarkerNames','TrackChangesUI','focus','arrowView','set','buttonView','type','length','_viewToController','_disableComments','value','_suggestionToController','commandName','getAllAdjacentSuggestions','comments.editorConfig','locale','commands','model','separator','_bindAnnotationToEditors','commentThread'];(function(_0x323283,_0x2e816d){const _0x38c151=function(_0x18688a){while(--_0x18688a){_0x323283['push'](_0x323283['shift']());}};_0x38c151(++_0x2e816d);}(_0x2e81,0x137));const _0x38c1=function(_0x323283,_0x2e816d){_0x323283=_0x323283-0x0;let _0x38c151=_0x2e81[_0x323283];return _0x38c151;};import{Plugin as _0x652446}from'ckeditor5/src/core';import{Collection as _0x5bb66b}from'ckeditor5/src/utils';import{Model as _0x5547dd,SplitButtonView as _0x535c04,createDropdown as _0x1aefcd,addListToDropdown as _0x125222}from'ckeditor5/src/ui';import{Users as _0xcbc512,getDateTimeFormatter as _0x4387aa,getAllMarkersDomElementsSorted as _0x490012}from'ckeditor5-collaboration/src/collaboration-core';import _0x1f957e from'./trackchangesediting';import _0x3c56e3 from'./ui/suggestioncontroller';import _0x156e52 from'./ui/view/suggestionthreadview';import{getTranslation as _0x362674}from'./utils/common-translations';import _0x1f070c from'../theme/icons/track-changes.svg';export default class d extends _0x652446{static get[_0x38c1('0x4b')](){return[_0x1f957e,_0xcbc512,_0x38c1('0x34'),_0x38c1('0x4c'),_0x38c1('0xe')];}static get['pluginName'](){return _0x38c1('0x51');}constructor(_0x360789){super(_0x360789),this['_suggestionToController']=new Map(),this[_0x38c1('0x58')]=new Map(),this['_annotationViews']=new Map(),this[_0x38c1('0x1a')]=new Map();const _0x417a73=this[_0x38c1('0x1e')][_0x38c1('0x12')];_0x417a73['define'](_0x38c1('0x15'),_0x156e52),_0x417a73[_0x38c1('0x4e')](_0x38c1('0x37'),!0x1),this['_disableComments']=_0x417a73['get'](_0x38c1('0x37'));}[_0x38c1('0x3e')](_0x51d982,_0x4d6dc2){0x0===this[_0x38c1('0x1a')][_0x38c1('0x25')]&&setTimeout(()=>{for(const [_0x4858b2,_0x25f5dd]of this['_handleControllerBuffer']){const _0x1c9c8e=this['_suggestionToController']['has'](_0x4858b2);_0x1c9c8e||_0x25f5dd?_0x1c9c8e&&_0x25f5dd&&this[_0x38c1('0x3')](_0x4858b2):this[_0x38c1('0x24')](_0x4858b2);}this[_0x38c1('0x1e')][_0x38c1('0x46')][_0x38c1('0x30')](_0x38c1('0xe'))[_0x38c1('0x38')](),this[_0x38c1('0x7')](),this[_0x38c1('0x1a')][_0x38c1('0x32')]();},0xa),this[_0x38c1('0x1a')][_0x38c1('0x54')](_0x51d982,_0x4d6dc2);}['init'](){const _0x5091c8=this[_0x38c1('0x1e')],_0x2c81ed=_0x5091c8[_0x38c1('0x46')][_0x38c1('0x30')](_0x38c1('0x42')),_0x41f222=_0x5091c8['plugins'][_0x38c1('0x30')](_0x38c1('0x4c')),_0x5952c9=_0x5091c8['plugins'][_0x38c1('0x30')](_0x38c1('0xe')),_0x18f62d=_0x5091c8[_0x38c1('0x46')][_0x38c1('0x30')]('CommentsRepository');_0x5091c8['ui'][_0x38c1('0x47')][_0x38c1('0x1f')](_0x38c1('0x1c'),_0x599914=>this[_0x38c1('0x49')](_0x599914)),_0x5952c9['addSourceCollector'](()=>{const _0x4e2cc5=[];for(const [_0x32cc8e,_0x36c141]of Array[_0x38c1('0x2b')](this['_suggestionToController'])){const _0xb9a509=_0x32cc8e['getAllAdjacentSuggestions'](),_0x40a647=[];for(const _0x22d14d of _0xb9a509){if(!_0x22d14d[_0x38c1('0x27')])continue;if(_0x22d14d[_0x38c1('0xc')]){_0x40a647['push'](..._0x22d14d[_0x38c1('0xd')]());continue;}const _0x439172=_0x22d14d[_0x38c1('0x5')]();if(_0x40a647[_0x38c1('0x57')]>0x0){const _0x460b9b=_0x40a647[0x0][_0x38c1('0x2d')](_0x439172);if(_0x460b9b){_0x40a647[0x0]=_0x460b9b;continue;}}_0x40a647[_0x38c1('0x2')](_0x439172);}_0x4e2cc5[_0x38c1('0x2')]([_0x36c141[_0x38c1('0x44')],_0x40a647]);}return _0x4e2cc5;}),this[_0x38c1('0x48')](_0x2c81ed,'suggestionLoaded',(_0x4b876b,_0x339b90)=>{this[_0x38c1('0x48')](_0x339b90,_0x38c1('0x4a'),(_0x185db6,_0x1de544,_0x5d03df,_0x4145c8)=>{_0x339b90[_0x38c1('0x27')]&&(null==_0x5d03df?(this['_updateController'](_0x4145c8['head']),this['_handleSuggestionControllerDelayed'](_0x339b90,!0x1)):(this[_0x38c1('0x2f')](_0x5d03df[_0x38c1('0x29')]),null==_0x4145c8&&this[_0x38c1('0x3e')](_0x339b90,!0x0)));}),null!==_0x339b90[_0x38c1('0x14')]?this[_0x38c1('0x2f')](_0x339b90[_0x38c1('0x29')]):this[_0x38c1('0x3e')](_0x339b90,!0x1);}),this['listenTo'](_0x2c81ed,'suggestionUnloaded',(_0x435a75,_0x4ccb06,_0xb20472)=>{this[_0x38c1('0x3f')](_0x4ccb06,_0x38c1('0x4a')),this[_0x38c1('0x1a')]['delete'](_0x4ccb06),this[_0x38c1('0x5b')][_0x38c1('0x28')](_0x4ccb06)&&this['_destroyController'](_0x4ccb06),_0xb20472&&this[_0x38c1('0x2f')](_0xb20472[_0x38c1('0x29')]);}),this[_0x38c1('0x48')](_0x2c81ed,_0x38c1('0x33'),(_0x2e17e6,_0x432b6c)=>{this[_0x38c1('0x2f')](_0x432b6c);}),this['listenTo'](_0x41f222,_0x38c1('0xb'),()=>{this[_0x38c1('0x7')]();}),this[_0x38c1('0x48')](_0x18f62d,'addComment',(_0x3828d0,{threadId:_0x519dbe,isFromAdapter:_0x519d86})=>{if(_0x519d86||!_0x2c81ed[_0x38c1('0x22')](_0x519dbe))return;const _0x10640d=_0x2c81ed['getSuggestion'](_0x519dbe);this[_0x38c1('0x5b')][_0x38c1('0x30')](_0x10640d)[_0x38c1('0x44')][_0x38c1('0x52')]();},{'priority':'lowest'});}[_0x38c1('0x7')](){const _0x51eea9=this['editor'][_0x38c1('0x46')][_0x38c1('0x30')](_0x38c1('0x4c')),_0x39329a=this[_0x38c1('0x1e')][_0x38c1('0x46')][_0x38c1('0x30')]('TrackChangesEditing'),_0x14206a=Array[_0x38c1('0x2b')](_0x51eea9[_0x38c1('0x40')],_0x243373=>_0x243373['innerView'])[_0x38c1('0x3c')](_0x2c8283=>this[_0x38c1('0x58')][_0x38c1('0x28')](_0x2c8283)),_0x3d9a90=[];for(const _0x3bfd11 of _0x14206a){const _0x1b4a26=this[_0x38c1('0x58')][_0x38c1('0x30')](_0x3bfd11)[_0x38c1('0x61')][_0x38c1('0x5d')]();_0x3d9a90['push'](..._0x1b4a26[_0x38c1('0x0')]((_0x3be6ec,_0x438a2b)=>[..._0x3be6ec,..._0x438a2b[_0x38c1('0x50')]()],[]));}_0x39329a['activeMarkers']=_0x3d9a90;}['_createUIButton'](_0x5cf69f){const _0x181885=_0x1aefcd(_0x5cf69f,_0x535c04),_0x1af3a9=this['editor'][_0x38c1('0x60')][_0x38c1('0x30')](_0x38c1('0x1c')),_0x4ca329=_0x362674(_0x5cf69f,_0x38c1('0x4f'));_0x181885[_0x38c1('0x55')][_0x38c1('0x54')]({'tooltip':_0x4ca329,'label':_0x4ca329,'icon':_0x1f070c}),_0x181885[_0x38c1('0x55')][_0x38c1('0x20')](_0x38c1('0x4d'))['to'](_0x1af3a9,_0x38c1('0x5a')),_0x181885[_0x38c1('0x55')]['on'](_0x38c1('0x13'),()=>{_0x1af3a9[_0x38c1('0x13')](),this[_0x38c1('0x1e')]['editing'][_0x38c1('0x44')][_0x38c1('0x52')]();});const _0x261510=new _0x5bb66b(),_0x169578=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x4ca329,'commandName':_0x38c1('0x1c')}},{'type':'separator'},{'type':_0x38c1('0x4'),'model':{'withText':!0x0,'label':_0x362674(_0x5cf69f,_0x38c1('0x11')),'commandName':_0x38c1('0x41')}},{'type':_0x38c1('0x4'),'model':{'withText':!0x0,'label':_0x362674(_0x5cf69f,_0x38c1('0x2c')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x38c1('0x4'),'model':{'withText':!0x0,'label':_0x362674(_0x5cf69f,'Discard\x20all\x20suggestions'),'commandName':_0x38c1('0x2a')}},{'type':_0x38c1('0x4'),'model':{'withText':!0x0,'label':_0x362674(_0x5cf69f,_0x38c1('0x45')),'commandName':_0x38c1('0x1d')}}];for(const _0x4cf2b1 of _0x169578){let _0x37668c={'type':_0x38c1('0x62')};if(_0x4cf2b1['model']){const _0x33b33f=new _0x5547dd(_0x4cf2b1[_0x38c1('0x61')]),_0xae0b03=this['editor'][_0x38c1('0x60')][_0x38c1('0x30')](_0x33b33f[_0x38c1('0x5c')]);_0x33b33f[_0x38c1('0x20')](_0x38c1('0x4d'),_0x38c1('0x3d'))['to'](_0xae0b03,'value',_0x38c1('0x3d')),_0x37668c={'type':_0x4cf2b1[_0x38c1('0x56')],'model':_0x33b33f};}_0x261510[_0x38c1('0x1f')](_0x37668c);}_0x125222(_0x181885,_0x261510);const _0x411e7d=_0x169578[_0x38c1('0x3c')](_0x54f56c=>null!=_0x54f56c[_0x38c1('0x61')])[_0x38c1('0x6')](_0x5a03d8=>this[_0x38c1('0x1e')][_0x38c1('0x60')]['get'](_0x5a03d8['model']['commandName'])),_0x851db9=_0x181885[_0x38c1('0x55')];return _0x851db9['actionView'][_0x38c1('0x1b')]('isEnabled'),_0x851db9['arrowView'][_0x38c1('0x1b')](_0x38c1('0x3d')),_0x851db9['actionView'][_0x38c1('0x20')](_0x38c1('0x3d'))['to'](_0x1af3a9,_0x38c1('0x3d')),_0x851db9[_0x38c1('0x53')]['bind'](_0x38c1('0x3d'))[_0x38c1('0x16')](_0x411e7d,_0x38c1('0x3d'),(..._0x2f0165)=>_0x2f0165['some'](_0x5077ac=>_0x5077ac)),_0x181885['on'](_0x38c1('0x13'),_0x17199a=>{this['editor'][_0x38c1('0x13')](_0x17199a[_0x38c1('0x10')][_0x38c1('0x5c')]),this[_0x38c1('0x1e')]['editing'][_0x38c1('0x44')][_0x38c1('0x52')]();}),_0x181885;}[_0x38c1('0x24')](_0x3a72c3){const _0x4a25f5=this['editor'],_0x2752eb=_0x4a25f5[_0x38c1('0x12')],_0x5493c2=_0x4a25f5[_0x38c1('0x46')]['get'](_0x38c1('0x4c')),_0x192187=_0x4a25f5['plugins'][_0x38c1('0x30')]('CommentsRepository'),_0x1930b5=_0x4a25f5['plugins'][_0x38c1('0x30')](_0x38c1('0xe')),_0x192af9=_0x4a25f5[_0x38c1('0x46')][_0x38c1('0x30')](_0xcbc512)['me'],_0x30bcc9=_0x2752eb[_0x38c1('0x30')](_0x38c1('0x1c'))[_0x38c1('0x23')],{CommentsListView:_0x4db1f0,CommentThreadInputView:_0x2c7d40}=_0x4a25f5[_0x38c1('0x46')][_0x38c1('0x30')]('CommentsUI');let _0x2be41b,_0x2bca63;this['_annotationViews'][_0x38c1('0x28')](_0x3a72c3['id'])?(_0x2bca63=this[_0x38c1('0x17')][_0x38c1('0x30')](_0x3a72c3['id']),_0x2be41b=_0x2bca63[_0x38c1('0xa')]):(_0x2be41b=new _0x30bcc9(_0x4a25f5[_0x38c1('0x5f')],_0x3a72c3,_0x192af9,{'disableComments':this[_0x38c1('0x59')],'editorConfig':_0x2752eb[_0x38c1('0x30')](_0x38c1('0x5e')),'maxCommentsWhenCollapsed':_0x2752eb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2752eb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2752eb[_0x38c1('0x30')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4387aa(_0x2752eb[_0x38c1('0x30')]('locale')),'CommentView':_0x2752eb[_0x38c1('0x30')](_0x38c1('0x1'))[_0x38c1('0x66')],'CommentsListView':_0x4db1f0,'CommentThreadInputView':_0x2c7d40}),_0x2be41b[_0x38c1('0x39')]['on'](_0x38c1('0x13'),()=>{_0x4a25f5[_0x38c1('0x18')][_0x38c1('0x44')][_0x38c1('0x52')]();}),_0x2be41b[_0x38c1('0x26')]['on'](_0x38c1('0x13'),()=>{_0x4a25f5[_0x38c1('0x18')][_0x38c1('0x44')][_0x38c1('0x52')]();}),_0x2bca63=_0x5493c2['createAnnotationView'](this[_0x38c1('0x1e')][_0x38c1('0x5f')],_0x2be41b),_0x2bca63[_0x38c1('0x20')](_0x38c1('0x3b'))['to'](_0x2be41b,_0x38c1('0x3b')),_0x2bca63[_0x38c1('0x20')](_0x38c1('0x57'))['to'](_0x2be41b),_0x2bca63[_0x38c1('0x20')](_0x38c1('0x56'))['to'](_0x2be41b,_0x38c1('0x56'),_0x154119=>_0x38c1('0x8')+_0x154119),this[_0x38c1('0x17')]['set'](_0x3a72c3['id'],_0x2bca63));const _0x28bb4f=_0x192187[_0x38c1('0x19')](_0x3a72c3[_0x38c1('0x64')],_0x2be41b),_0x27fe14=new _0x3c56e3(_0x4a25f5,_0x3a72c3,_0x2be41b,_0x28bb4f),_0x2c37e7=_0x3a72c3['getAllAdjacentSuggestions']()[_0x38c1('0x3c')](_0x72fe80=>_0x72fe80[_0x38c1('0x27')]);_0x2be41b[_0x38c1('0x65')]=_0x4a25f5['plugins'][_0x38c1('0x30')](_0x38c1('0x42'))[_0x38c1('0x2e')][_0x38c1('0x31')](_0x2c37e7),this[_0x38c1('0x5b')][_0x38c1('0x54')](_0x3a72c3,_0x27fe14),this[_0x38c1('0x58')]['set'](_0x2be41b,_0x27fe14);const _0x387b87=_0x5493c2[_0x38c1('0x21')]({'view':_0x2bca63,'target':()=>{const _0x2e94ab=[],_0x30747d=_0x3a72c3[_0x38c1('0x5d')]()['filter'](_0x22f1d8=>_0x22f1d8['isInContent']);for(const _0xc062f8 of _0x30747d)_0x2e94ab[_0x38c1('0x2')](..._0xc062f8['getMarkers']());return _0x490012(_0x4a25f5[_0x38c1('0x18')],_0x2e94ab);},'type':()=>_0x38c1('0x8')+_0x27fe14[_0x38c1('0x44')][_0x38c1('0x56')]});_0x192187[_0x38c1('0x63')](_0x2be41b,_0x387b87),_0x5493c2[_0x38c1('0x1f')](_0x387b87),_0x1930b5['registerAnnotation'](_0x387b87);}[_0x38c1('0x3')](_0x39c623){const _0x30130b=this[_0x38c1('0x1e')][_0x38c1('0x46')][_0x38c1('0x30')](_0x38c1('0x34')),_0x12068a=this[_0x38c1('0x1e')][_0x38c1('0x46')][_0x38c1('0x30')](_0x38c1('0x4c')),_0x4fed32=this[_0x38c1('0x5b')][_0x38c1('0x30')](_0x39c623),_0x5dd404=_0x4fed32['view'],_0x383822=_0x12068a[_0x38c1('0xf')](_0x5dd404);_0x30130b[_0x38c1('0x36')](_0x5dd404),_0x383822&&_0x12068a['remove'](_0x383822),this[_0x38c1('0x5b')][_0x38c1('0x3a')](_0x39c623),this[_0x38c1('0x58')][_0x38c1('0x3a')](_0x5dd404),_0x4fed32[_0x38c1('0x35')]();}[_0x38c1('0x2f')](_0x3af71d){if(!_0x3af71d['isInContent']||!this['_suggestionToController'][_0x38c1('0x28')](_0x3af71d))return;const _0x1040ab=this['editor'][_0x38c1('0x46')][_0x38c1('0x30')]('TrackChangesEditing'),_0x4ab2c8=this['_suggestionToController'][_0x38c1('0x30')](_0x3af71d),_0x5b5f1e=_0x3af71d['getAllAdjacentSuggestions']();_0x4ab2c8[_0x38c1('0x44')][_0x38c1('0x65')]=_0x1040ab[_0x38c1('0x2e')]['getDescriptions'](_0x5b5f1e);}[_0x38c1('0x35')](){for(const _0x23aef8 of this[_0x38c1('0x5b')][_0x38c1('0x9')]())this[_0x38c1('0x3')](_0x23aef8);for(const _0xcdeff4 of this[_0x38c1('0x17')][_0x38c1('0x43')]())_0xcdeff4[_0x38c1('0xa')][_0x38c1('0x35')]();super['destroy']();}}
23
+ const _0x5acb=['_viewToController','_unbindEditors','comments.maxCommentCharsWhenCollapsed','listenTo','editor','getAllAdjacentSuggestions','head','createCommentThreadController','descriptionParts','Accept\x20all\x20suggestions','length','commandName','map','_handleSuggestionControllerDelayed','actionView','createAnnotationView','change:activeAnnotations','separator','activeAnnotations','isInContent','arrowView','isEnabled','discardButton','CommentsUI','values','_handleControllerBuffer','comments.editorConfig','editing','trackChanges','model','acceptSelectedSuggestions','discardSelectedSuggestions','isOn','comments','getByInnerView','filter','isDirty','_bindAnnotationToEditors','destroy','_disableComments','type','_initializeController','clear','_annotationViews','commentThread','_descriptionFactory','Track\x20changes','_createUIButton','hasSuggestion','bind','plugins','Discard\x20all\x20selected\x20suggestions','TrackChangesUI','pluginName','suggestionLoaded','get','_suggestionToController','define','activeMarkers','EditorAnnotations','keys','comments.maxThreadTotalWeight','previous','addSourceCollector','suggestion-','has','config','isMultiRange','_refreshActiveMarkers','buttonView','from','set','stopListening','mainView','view','componentFactory','createAnnotation','focus','delete','some','remove','getJoined','execute','add','reduce','trackChanges.SuggestionThreadView','locale','getSuggestion','size','comments.maxCommentsWhenCollapsed','getDescriptions','CommentsRepository','push','refreshSelectedViews','change:previous','innerView','SuggestionThreadView','suggestionChanged','Accept\x20all\x20selected\x20suggestions','CommentView','button','Annotations','trackChanges.disableComments','_updateController','Discard\x20all\x20suggestions','commands','unbind','_destroyController','acceptAllSuggestions','TrackChangesEditing'];(function(_0x350081,_0x5acb96){const _0x548185=function(_0x301815){while(--_0x301815){_0x350081['push'](_0x350081['shift']());}};_0x548185(++_0x5acb96);}(_0x5acb,0x142));const _0x5481=function(_0x350081,_0x5acb96){_0x350081=_0x350081-0x0;let _0x548185=_0x5acb[_0x350081];return _0x548185;};import{Plugin as _0x4244ba}from'ckeditor5/src/core';import{Collection as _0x23779b}from'ckeditor5/src/utils';import{Model as _0x269b41,SplitButtonView as _0x364fb8,createDropdown as _0x40b253,addListToDropdown as _0xf2d630}from'ckeditor5/src/ui';import{Users as _0x4f1c50,getDateTimeFormatter as _0x449b04,getAllMarkersDomElementsSorted as _0x53ea58}from'ckeditor5-collaboration/src/collaboration-core';import _0x3aa484 from'./trackchangesediting';import _0x5b6e45 from'./ui/suggestioncontroller';import _0x4f133a from'./ui/view/suggestionthreadview';import{getTranslation as _0x256c74}from'./utils/common-translations';import _0x13e732 from'../theme/icons/track-changes.svg';export default class d extends _0x4244ba{static get['requires'](){return[_0x3aa484,_0x4f1c50,_0x5481('0x63'),'Annotations',_0x5481('0x43')];}static get[_0x5481('0x3d')](){return _0x5481('0x3c');}constructor(_0x12d922){super(_0x12d922),this['_suggestionToController']=new Map(),this[_0x5481('0x8')]=new Map(),this['_annotationViews']=new Map(),this[_0x5481('0x21')]=new Map();const _0x776b3c=this[_0x5481('0xc')][_0x5481('0x4a')];_0x776b3c[_0x5481('0x41')](_0x5481('0x5d'),_0x4f133a),_0x776b3c[_0x5481('0x41')]('trackChanges.disableComments',!0x1),this[_0x5481('0x2f')]=_0x776b3c[_0x5481('0x3f')](_0x5481('0x0'));}[_0x5481('0x15')](_0x5220fe,_0x4807c9){0x0===this[_0x5481('0x21')][_0x5481('0x60')]&&setTimeout(()=>{for(const [_0x34e077,_0x5850b8]of this[_0x5481('0x21')]){const _0x2a09cc=this[_0x5481('0x40')]['has'](_0x34e077);_0x2a09cc||_0x5850b8?_0x2a09cc&&_0x5850b8&&this[_0x5481('0x5')](_0x34e077):this['_initializeController'](_0x34e077);}this[_0x5481('0xc')][_0x5481('0x3a')][_0x5481('0x3f')]('EditorAnnotations')[_0x5481('0x65')](),this[_0x5481('0x4c')](),this[_0x5481('0x21')][_0x5481('0x32')]();},0xa),this[_0x5481('0x21')][_0x5481('0x4f')](_0x5220fe,_0x4807c9);}['init'](){const _0x2edf88=this[_0x5481('0xc')],_0x23835e=_0x2edf88['plugins'][_0x5481('0x3f')](_0x5481('0x7')),_0x14518f=_0x2edf88[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x6d')),_0x12390e=_0x2edf88[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x43')),_0x293346=_0x2edf88['plugins'][_0x5481('0x3f')](_0x5481('0x63'));_0x2edf88['ui'][_0x5481('0x53')][_0x5481('0x5b')]('trackChanges',_0x2ed75c=>this[_0x5481('0x37')](_0x2ed75c)),_0x12390e[_0x5481('0x47')](()=>{const _0x107faa=[];for(const [_0x4a81a3,_0x2a2a27]of Array[_0x5481('0x4e')](this['_suggestionToController'])){const _0x497112=_0x4a81a3['getAllAdjacentSuggestions'](),_0xa89797=[];for(const _0x18dc74 of _0x497112){if(!_0x18dc74[_0x5481('0x1b')])continue;if(_0x18dc74[_0x5481('0x4b')]){_0xa89797[_0x5481('0x64')](..._0x18dc74['getRanges']());continue;}const _0xde34dd=_0x18dc74['getFirstRange']();if(_0xa89797[_0x5481('0x12')]>0x0){const _0x7670d6=_0xa89797[0x0][_0x5481('0x59')](_0xde34dd);if(_0x7670d6){_0xa89797[0x0]=_0x7670d6;continue;}}_0xa89797[_0x5481('0x64')](_0xde34dd);}_0x107faa[_0x5481('0x64')]([_0x2a2a27[_0x5481('0x52')],_0xa89797]);}return _0x107faa;}),this[_0x5481('0xb')](_0x23835e,_0x5481('0x3e'),(_0x27e48a,_0x32aa41)=>{this[_0x5481('0xb')](_0x32aa41,_0x5481('0x66'),(_0x3af69a,_0x5a4c9e,_0x2ff5ee,_0x2a86a5)=>{_0x32aa41[_0x5481('0x1b')]&&(null==_0x2ff5ee?(this[_0x5481('0x1')](_0x2a86a5['head']),this['_handleSuggestionControllerDelayed'](_0x32aa41,!0x1)):(this['_updateController'](_0x2ff5ee['head']),null==_0x2a86a5&&this[_0x5481('0x15')](_0x32aa41,!0x0)));}),null!==_0x32aa41[_0x5481('0x46')]?this['_updateController'](_0x32aa41[_0x5481('0xe')]):this[_0x5481('0x15')](_0x32aa41,!0x1);}),this[_0x5481('0xb')](_0x23835e,'suggestionUnloaded',(_0x285593,_0x1223e2,_0x57b593)=>{this[_0x5481('0x50')](_0x1223e2,_0x5481('0x66')),this[_0x5481('0x21')][_0x5481('0x56')](_0x1223e2),this[_0x5481('0x40')][_0x5481('0x49')](_0x1223e2)&&this[_0x5481('0x5')](_0x1223e2),_0x57b593&&this['_updateController'](_0x57b593[_0x5481('0xe')]);}),this[_0x5481('0xb')](_0x23835e,_0x5481('0x69'),(_0x81d8de,_0x54f93c)=>{this[_0x5481('0x1')](_0x54f93c);}),this['listenTo'](_0x14518f,_0x5481('0x18'),()=>{this[_0x5481('0x4c')]();}),this[_0x5481('0xb')](_0x293346,'addComment',(_0x134286,{threadId:_0x193345,isFromAdapter:_0xa35ca})=>{if(_0xa35ca||!_0x23835e[_0x5481('0x38')](_0x193345))return;const _0x31ac23=_0x23835e[_0x5481('0x5f')](_0x193345);this['_suggestionToController'][_0x5481('0x3f')](_0x31ac23)[_0x5481('0x52')][_0x5481('0x55')]();},{'priority':'lowest'});}[_0x5481('0x4c')](){const _0x153afe=this['editor']['plugins']['get'](_0x5481('0x6d')),_0xd641d1=this[_0x5481('0xc')][_0x5481('0x3a')][_0x5481('0x3f')]('TrackChangesEditing'),_0x227f9e=Array[_0x5481('0x4e')](_0x153afe[_0x5481('0x1a')],_0xf77eae=>_0xf77eae[_0x5481('0x67')])[_0x5481('0x2b')](_0x455349=>this[_0x5481('0x8')]['has'](_0x455349)),_0x15c5a0=[];for(const _0x39453a of _0x227f9e){const _0x66acfa=this[_0x5481('0x8')][_0x5481('0x3f')](_0x39453a)[_0x5481('0x25')]['getAllAdjacentSuggestions']();_0x15c5a0[_0x5481('0x64')](..._0x66acfa[_0x5481('0x5c')]((_0x585e55,_0x43629e)=>[..._0x585e55,..._0x43629e['getMarkerNames']()],[]));}_0xd641d1[_0x5481('0x42')]=_0x15c5a0;}['_createUIButton'](_0xa9c885){const _0x22f709=_0x40b253(_0xa9c885,_0x364fb8),_0x3c7433=this['editor'][_0x5481('0x3')][_0x5481('0x3f')](_0x5481('0x24')),_0x1e0eda=_0x256c74(_0xa9c885,_0x5481('0x36'));_0x22f709[_0x5481('0x4d')][_0x5481('0x4f')]({'tooltip':_0x1e0eda,'label':_0x1e0eda,'icon':_0x13e732}),_0x22f709['buttonView']['bind'](_0x5481('0x28'))['to'](_0x3c7433,'value'),_0x22f709['buttonView']['on']('execute',()=>{_0x3c7433[_0x5481('0x5a')](),this['editor']['editing'][_0x5481('0x52')][_0x5481('0x55')]();});const _0xa95aa5=new _0x23779b(),_0x3e1d4c=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x1e0eda,'commandName':'trackChanges'}},{'type':_0x5481('0x19')},{'type':_0x5481('0x6c'),'model':{'withText':!0x0,'label':_0x256c74(_0xa9c885,_0x5481('0x11')),'commandName':_0x5481('0x6')}},{'type':_0x5481('0x6c'),'model':{'withText':!0x0,'label':_0x256c74(_0xa9c885,_0x5481('0x6a')),'commandName':_0x5481('0x26')}},{'type':_0x5481('0x6c'),'model':{'withText':!0x0,'label':_0x256c74(_0xa9c885,_0x5481('0x2')),'commandName':'discardAllSuggestions'}},{'type':_0x5481('0x6c'),'model':{'withText':!0x0,'label':_0x256c74(_0xa9c885,_0x5481('0x3b')),'commandName':_0x5481('0x27')}}];for(const _0x254bc8 of _0x3e1d4c){let _0x1cae1d={'type':_0x5481('0x19')};if(_0x254bc8[_0x5481('0x25')]){const _0x53a318=new _0x269b41(_0x254bc8[_0x5481('0x25')]),_0x20fd8e=this[_0x5481('0xc')][_0x5481('0x3')][_0x5481('0x3f')](_0x53a318[_0x5481('0x13')]);_0x53a318[_0x5481('0x39')]('isOn',_0x5481('0x1d'))['to'](_0x20fd8e,'value',_0x5481('0x1d')),_0x1cae1d={'type':_0x254bc8[_0x5481('0x30')],'model':_0x53a318};}_0xa95aa5[_0x5481('0x5b')](_0x1cae1d);}_0xf2d630(_0x22f709,_0xa95aa5);const _0x268a39=_0x3e1d4c[_0x5481('0x2b')](_0x1ddd63=>null!=_0x1ddd63[_0x5481('0x25')])[_0x5481('0x14')](_0x2df541=>this[_0x5481('0xc')]['commands'][_0x5481('0x3f')](_0x2df541[_0x5481('0x25')]['commandName'])),_0xdfa29c=_0x22f709[_0x5481('0x4d')];return _0xdfa29c[_0x5481('0x16')]['unbind'](_0x5481('0x1d')),_0xdfa29c[_0x5481('0x1c')][_0x5481('0x4')](_0x5481('0x1d')),_0xdfa29c['actionView'][_0x5481('0x39')](_0x5481('0x1d'))['to'](_0x3c7433,_0x5481('0x1d')),_0xdfa29c[_0x5481('0x1c')][_0x5481('0x39')](_0x5481('0x1d'))['toMany'](_0x268a39,_0x5481('0x1d'),(..._0x3d55aa)=>_0x3d55aa[_0x5481('0x57')](_0x2668cf=>_0x2668cf)),_0x22f709['on'](_0x5481('0x5a'),_0xdefa07=>{this[_0x5481('0xc')][_0x5481('0x5a')](_0xdefa07['source']['commandName']),this['editor'][_0x5481('0x23')][_0x5481('0x52')]['focus']();}),_0x22f709;}[_0x5481('0x31')](_0x4aa3b3){const _0x290c45=this[_0x5481('0xc')],_0x28a163=_0x290c45[_0x5481('0x4a')],_0x16fc88=_0x290c45[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x6d')),_0x13c2c7=_0x290c45[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x63')),_0x41fb4a=_0x290c45[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x43')),_0x233bf0=_0x290c45[_0x5481('0x3a')][_0x5481('0x3f')](_0x4f1c50)['me'],_0x1085ee=_0x28a163[_0x5481('0x3f')](_0x5481('0x24'))[_0x5481('0x68')],{CommentsListView:_0x523461,CommentThreadInputView:_0x2c0ee2}=_0x290c45[_0x5481('0x3a')][_0x5481('0x3f')](_0x5481('0x1f'));let _0x3b7d83,_0x3e1294;this[_0x5481('0x33')][_0x5481('0x49')](_0x4aa3b3['id'])?(_0x3e1294=this[_0x5481('0x33')][_0x5481('0x3f')](_0x4aa3b3['id']),_0x3b7d83=_0x3e1294['mainView']):(_0x3b7d83=new _0x1085ee(_0x290c45['locale'],_0x4aa3b3,_0x233bf0,{'disableComments':this['_disableComments'],'editorConfig':_0x28a163['get'](_0x5481('0x22')),'maxCommentsWhenCollapsed':_0x28a163[_0x5481('0x3f')](_0x5481('0x61')),'maxThreadTotalWeight':_0x28a163[_0x5481('0x3f')](_0x5481('0x45')),'maxCommentCharsWhenCollapsed':_0x28a163[_0x5481('0x3f')](_0x5481('0xa')),'formatDateTime':_0x449b04(_0x28a163['get'](_0x5481('0x5e'))),'CommentView':_0x28a163[_0x5481('0x3f')](_0x5481('0x29'))[_0x5481('0x6b')],'CommentsListView':_0x523461,'CommentThreadInputView':_0x2c0ee2}),_0x3b7d83['acceptButton']['on'](_0x5481('0x5a'),()=>{_0x290c45[_0x5481('0x23')][_0x5481('0x52')][_0x5481('0x55')]();}),_0x3b7d83[_0x5481('0x1e')]['on'](_0x5481('0x5a'),()=>{_0x290c45['editing'][_0x5481('0x52')][_0x5481('0x55')]();}),_0x3e1294=_0x16fc88[_0x5481('0x17')](this[_0x5481('0xc')][_0x5481('0x5e')],_0x3b7d83),_0x3e1294['bind'](_0x5481('0x2c'))['to'](_0x3b7d83,'isDirty'),_0x3e1294[_0x5481('0x39')](_0x5481('0x12'))['to'](_0x3b7d83),_0x3e1294[_0x5481('0x39')](_0x5481('0x30'))['to'](_0x3b7d83,'type',_0x1a5329=>_0x5481('0x48')+_0x1a5329),this[_0x5481('0x33')][_0x5481('0x4f')](_0x4aa3b3['id'],_0x3e1294));const _0x372747=_0x13c2c7[_0x5481('0xf')](_0x4aa3b3[_0x5481('0x34')],_0x3b7d83),_0x2d5805=new _0x5b6e45(_0x290c45,_0x4aa3b3,_0x3b7d83,_0x372747),_0x4ef1eb=_0x4aa3b3[_0x5481('0xd')]()['filter'](_0x5f2221=>_0x5f2221[_0x5481('0x1b')]);_0x3b7d83[_0x5481('0x10')]=_0x290c45['plugins'][_0x5481('0x3f')](_0x5481('0x7'))[_0x5481('0x35')][_0x5481('0x62')](_0x4ef1eb),this[_0x5481('0x40')][_0x5481('0x4f')](_0x4aa3b3,_0x2d5805),this[_0x5481('0x8')]['set'](_0x3b7d83,_0x2d5805);const _0x36b640=_0x16fc88[_0x5481('0x54')]({'view':_0x3e1294,'target':()=>{const _0x48d74c=[],_0x21a35a=_0x4aa3b3[_0x5481('0xd')]()[_0x5481('0x2b')](_0x11327e=>_0x11327e[_0x5481('0x1b')]);for(const _0x34aa33 of _0x21a35a)_0x48d74c[_0x5481('0x64')](..._0x34aa33['getMarkers']());return _0x53ea58(_0x290c45['editing'],_0x48d74c);},'type':()=>'suggestion-'+_0x2d5805[_0x5481('0x52')][_0x5481('0x30')]});_0x13c2c7[_0x5481('0x2d')](_0x3b7d83,_0x36b640),_0x16fc88[_0x5481('0x5b')](_0x36b640),_0x41fb4a['registerAnnotation'](_0x36b640);}[_0x5481('0x5')](_0x48b510){const _0x2516f9=this[_0x5481('0xc')][_0x5481('0x3a')]['get']('CommentsRepository'),_0xb5cf6a=this[_0x5481('0xc')][_0x5481('0x3a')]['get']('Annotations'),_0x54f931=this[_0x5481('0x40')][_0x5481('0x3f')](_0x48b510),_0x58e7cc=_0x54f931[_0x5481('0x52')],_0x2302ef=_0xb5cf6a[_0x5481('0x2a')](_0x58e7cc);_0x2516f9[_0x5481('0x9')](_0x58e7cc),_0x2302ef&&_0xb5cf6a[_0x5481('0x58')](_0x2302ef),this[_0x5481('0x40')][_0x5481('0x56')](_0x48b510),this[_0x5481('0x8')][_0x5481('0x56')](_0x58e7cc),_0x54f931[_0x5481('0x2e')]();}[_0x5481('0x1')](_0x37dce1){if(!_0x37dce1['isInContent']||!this['_suggestionToController'][_0x5481('0x49')](_0x37dce1))return;const _0x17b8f5=this[_0x5481('0xc')][_0x5481('0x3a')]['get'](_0x5481('0x7')),_0x56b9e8=this[_0x5481('0x40')][_0x5481('0x3f')](_0x37dce1),_0x2cc399=_0x37dce1[_0x5481('0xd')]();_0x56b9e8[_0x5481('0x52')][_0x5481('0x10')]=_0x17b8f5[_0x5481('0x35')][_0x5481('0x62')](_0x2cc399);}[_0x5481('0x2e')](){for(const _0x2be68b of this['_suggestionToController'][_0x5481('0x44')]())this[_0x5481('0x5')](_0x2be68b);for(const _0x4635b0 of this[_0x5481('0x33')][_0x5481('0x20')]())_0x4635b0[_0x5481('0x51')][_0x5481('0x2e')]();super[_0x5481('0x2e')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4826=['_acceptCommand','add','_setPendingAction','listenTo','view','commentThreadController','remove','canEditAt','_editor','discardSuggestion','canDiscard','get','model','_discardCommand','getRanges','bind','acceptSuggestion','destroy','_pendingAction','PENDING_ACTION_SUGGESTION','isEnabled','execute','commands','stopListening','plugins','locale','isDirty','canAccept','unbind','PendingActions','_removePendingAction'];(function(_0x1f0c84,_0x482612){const _0x24bdba=function(_0x21f373){while(--_0x21f373){_0x1f0c84['push'](_0x1f0c84['shift']());}};_0x24bdba(++_0x482612);}(_0x4826,0xe6));const _0x24bd=function(_0x1f0c84,_0x482612){_0x1f0c84=_0x1f0c84-0x0;let _0x24bdba=_0x4826[_0x1f0c84];return _0x24bdba;};import{ObservableMixin as _0x129394}from'ckeditor5/src/utils';import{getTranslation as _0x576f3f}from'../utils/common-translations';export default class Pt extends _0x129394(){constructor(_0xbc1720,_0x3b901d,_0x48a821,_0x46b814){super(),this['model']=_0x3b901d,this['view']=_0x48a821,this[_0x24bd('0x17')]=_0x46b814,this[_0x24bd('0x1a')]=_0xbc1720,this[_0x24bd('0x12')]=_0xbc1720[_0x24bd('0x9')]['get']('acceptSuggestion'),this['_discardCommand']=_0xbc1720[_0x24bd('0x9')][_0x24bd('0x1d')]('discardSuggestion'),this[_0x24bd('0x16')][_0x24bd('0x2')]('isEnabled')['to'](this[_0x24bd('0x12')],this[_0x24bd('0x0')],(_0x3a0178,_0x1253ca)=>_0x3a0178||_0x1253ca),this[_0x24bd('0x16')][_0x24bd('0x2')](_0x24bd('0xe'))['to'](this[_0x24bd('0x12')],_0x24bd('0x7'),_0xbd8ce2=>_0xbd8ce2&&this['_editor'][_0x24bd('0x1e')]['canEditAt'](_0x3b901d['getRanges']())),this['view'][_0x24bd('0x2')]('canDiscard')['to'](this[_0x24bd('0x0')],'isEnabled',_0x1c35f5=>_0x1c35f5&&this[_0x24bd('0x1a')][_0x24bd('0x1e')][_0x24bd('0x19')](_0x3b901d[_0x24bd('0x1')]())),this[_0x24bd('0x5')]=null,_0x48a821[_0x24bd('0xd')]&&this[_0x24bd('0x14')](),this[_0x24bd('0x15')](_0x48a821,_0x24bd('0x3'),()=>this[_0x24bd('0x3')]()),this[_0x24bd('0x15')](_0x48a821,_0x24bd('0x1b'),()=>this[_0x24bd('0x1b')]()),this['listenTo'](_0x48a821,'change:isDirty',()=>{_0x48a821[_0x24bd('0xd')]?this[_0x24bd('0x14')]():this['_removePendingAction']();});}['acceptSuggestion'](){this[_0x24bd('0x12')][_0x24bd('0x8')](this[_0x24bd('0x1e')]['id']);}[_0x24bd('0x1b')](){this[_0x24bd('0x0')]['execute'](this['model']['id']);}[_0x24bd('0x4')](){this[_0x24bd('0x16')][_0x24bd('0xf')](_0x24bd('0x7')),this['view'][_0x24bd('0xf')](_0x24bd('0xe')),this[_0x24bd('0x16')][_0x24bd('0xf')](_0x24bd('0x1c')),this[_0x24bd('0xa')](),this[_0x24bd('0x17')][_0x24bd('0x4')](),this[_0x24bd('0x5')]&&this[_0x24bd('0x11')]();}[_0x24bd('0x14')](){const _0x50651b=_0x576f3f(this['_editor'][_0x24bd('0xc')],_0x24bd('0x6'));this['_pendingAction']=this[_0x24bd('0x1a')][_0x24bd('0xb')]['get'](_0x24bd('0x10'))[_0x24bd('0x13')](_0x50651b);}['_removePendingAction'](){null!==this[_0x24bd('0x5')]&&this[_0x24bd('0x1a')][_0x24bd('0xb')]['get'](_0x24bd('0x10'))[_0x24bd('0x18')](this[_0x24bd('0x5')]),this[_0x24bd('0x5')]=null;}}
23
+ const _0x5010=['acceptSuggestion','destroy','canEditAt','_acceptCommand','locale','isEnabled','get','view','_pendingAction','_editor','getRanges','model','_removePendingAction','_discardCommand','discardSuggestion','commands','stopListening','PendingActions','PENDING_ACTION_SUGGESTION','canAccept','unbind','_setPendingAction','execute','listenTo','change:isDirty','add','commentThreadController','plugins','bind','isDirty','canDiscard'];(function(_0x3150d6,_0x501043){const _0xe187a1=function(_0x3b9f8c){while(--_0x3b9f8c){_0x3150d6['push'](_0x3150d6['shift']());}};_0xe187a1(++_0x501043);}(_0x5010,0x133));const _0xe187=function(_0x3150d6,_0x501043){_0x3150d6=_0x3150d6-0x0;let _0xe187a1=_0x5010[_0x3150d6];return _0xe187a1;};import{ObservableMixin as _0x1a2df7}from'ckeditor5/src/utils';import{getTranslation as _0x2489d3}from'../utils/common-translations';export default class Pt extends _0x1a2df7(){constructor(_0x3df406,_0x50218a,_0x5d1dbe,_0x4a011b){super(),this[_0xe187('0xe')]=_0x50218a,this[_0xe187('0xa')]=_0x5d1dbe,this[_0xe187('0x1d')]=_0x4a011b,this[_0xe187('0xc')]=_0x3df406,this[_0xe187('0x6')]=_0x3df406[_0xe187('0x12')]['get'](_0xe187('0x3')),this[_0xe187('0x10')]=_0x3df406[_0xe187('0x12')][_0xe187('0x9')](_0xe187('0x11')),this[_0xe187('0xa')]['bind'](_0xe187('0x8'))['to'](this[_0xe187('0x6')],this['_discardCommand'],(_0x4d7375,_0x30ba63)=>_0x4d7375||_0x30ba63),this[_0xe187('0xa')][_0xe187('0x0')](_0xe187('0x16'))['to'](this['_acceptCommand'],_0xe187('0x8'),_0xa7858d=>_0xa7858d&&this[_0xe187('0xc')][_0xe187('0xe')][_0xe187('0x5')](_0x50218a[_0xe187('0xd')]())),this[_0xe187('0xa')][_0xe187('0x0')]('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xcb7205=>_0xcb7205&&this['_editor'][_0xe187('0xe')]['canEditAt'](_0x50218a[_0xe187('0xd')]())),this[_0xe187('0xb')]=null,_0x5d1dbe[_0xe187('0x1')]&&this[_0xe187('0x18')](),this[_0xe187('0x1a')](_0x5d1dbe,_0xe187('0x3'),()=>this[_0xe187('0x3')]()),this[_0xe187('0x1a')](_0x5d1dbe,_0xe187('0x11'),()=>this['discardSuggestion']()),this[_0xe187('0x1a')](_0x5d1dbe,_0xe187('0x1b'),()=>{_0x5d1dbe[_0xe187('0x1')]?this[_0xe187('0x18')]():this[_0xe187('0xf')]();});}[_0xe187('0x3')](){this[_0xe187('0x6')][_0xe187('0x19')](this[_0xe187('0xe')]['id']);}[_0xe187('0x11')](){this[_0xe187('0x10')][_0xe187('0x19')](this['model']['id']);}[_0xe187('0x4')](){this[_0xe187('0xa')][_0xe187('0x17')](_0xe187('0x8')),this[_0xe187('0xa')][_0xe187('0x17')](_0xe187('0x16')),this[_0xe187('0xa')][_0xe187('0x17')](_0xe187('0x2')),this[_0xe187('0x13')](),this['commentThreadController'][_0xe187('0x4')](),this[_0xe187('0xb')]&&this['_removePendingAction']();}[_0xe187('0x18')](){const _0x5d8927=_0x2489d3(this[_0xe187('0xc')][_0xe187('0x7')],_0xe187('0x15'));this[_0xe187('0xb')]=this[_0xe187('0xc')][_0xe187('0x1e')][_0xe187('0x9')](_0xe187('0x14'))[_0xe187('0x1c')](_0x5d8927);}[_0xe187('0xf')](){null!==this[_0xe187('0xb')]&&this[_0xe187('0xc')][_0xe187('0x1e')][_0xe187('0x9')](_0xe187('0x14'))['remove'](this[_0xe187('0xb')]),this[_0xe187('0xb')]=null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x64f4=['CommentView','_model','editor','addComment','commentThreadInputView','commentInputView','descriptionParts','delegate','disabledSubmit','locale','isActive','_config','_createCommentViews','value','showInput','_localUser','length','canAccept','commentThread','assign','set','commentsListView','isReadOnly','hasDirtyComment','editorConfig','setData','isEnabled','authoredAt','bind','destroy','_createCommentThreadInputView','isDirty','focus','disableComments','submit','removeComment'];(function(_0x80069,_0x64f412){const _0x57f5ca=function(_0x12770d){while(--_0x12770d){_0x80069['push'](_0x80069['shift']());}};_0x57f5ca(++_0x64f412);}(_0x64f4,0x66));const _0x57f5=function(_0x80069,_0x64f412){_0x80069=_0x80069-0x0;let _0x57f5ca=_0x64f4[_0x80069];return _0x57f5ca;};import{View as _0x59b50d}from'ckeditor5/src/ui';export default class si extends _0x59b50d{constructor(_0x2de8e2,_0x3143cf,_0x2297af,_0x45c43d){super(_0x2de8e2),this[_0x57f5('0x1b')]=null,this[_0x57f5('0xa')]=null,this[_0x57f5('0x1a')](_0x57f5('0x10'),!0x1),this['set'](_0x57f5('0x21'),_0x3143cf[_0x57f5('0x21')]),this[_0x57f5('0x22')](_0x57f5('0x21'))['to'](_0x3143cf),this[_0x57f5('0x1a')](_0x57f5('0xc'),[]),this[_0x57f5('0x1a')](_0x57f5('0x1'),!0x1),this[_0x57f5('0x1a')](_0x57f5('0x20'),!0x1),this[_0x57f5('0x1a')](_0x57f5('0x17'),!0x1),this[_0x57f5('0x1a')]('canDiscard',!0x1),this[_0x57f5('0x7')]=_0x3143cf,this['_localUser']=_0x2297af,this[_0x57f5('0x11')]=_0x45c43d,_0x45c43d[_0x57f5('0x3')]?this[_0x57f5('0x1a')]('length',0x1):this['_createCommentViews']();}[_0x57f5('0x2')](){this['element']['focus']();}[_0x57f5('0x23')](){this[_0x57f5('0x1b')]&&this[_0x57f5('0x1b')][_0x57f5('0x23')](),this[_0x57f5('0xa')]&&this[_0x57f5('0xa')][_0x57f5('0x23')](),super['destroy']();}[_0x57f5('0x12')](){const {CommentsListView:_0x47ce80}=this['_config'];this[_0x57f5('0x1b')]=new _0x47ce80(this['locale'],this[_0x57f5('0x7')]['commentThread'],Object[_0x57f5('0x19')]({'CommentView':this['_config'][_0x57f5('0x6')]},this['_config'])),this[_0x57f5('0x1b')][_0x57f5('0xd')](_0x57f5('0x5'))['to'](this),this['commentsListView'][_0x57f5('0xd')]('updateComment')['to'](this),this[_0x57f5('0x1b')][_0x57f5('0x22')]('isActive')['to'](this),this[_0x57f5('0x1a')](_0x57f5('0x16'),this[_0x57f5('0x1b')][_0x57f5('0x16')]+0x1),this[_0x57f5('0x22')](_0x57f5('0x16'))['to'](this[_0x57f5('0x1b')],_0x57f5('0x16'),_0x40c05d=>_0x40c05d+0x1),this['commentThreadInputView']=this[_0x57f5('0x0')](),this['on']('removeComment',()=>this[_0x57f5('0x2')]()),this['bind'](_0x57f5('0x1'))['to'](this['commentsListView'],_0x57f5('0x1d'),this['commentThreadInputView'][_0x57f5('0xb')],_0x57f5('0x13'),(_0x360ba8,_0x2796bf)=>_0x360ba8||!!_0x2796bf);}[_0x57f5('0x0')](){const {CommentThreadInputView:_0x29788d}=this[_0x57f5('0x11')],_0x152adb=new _0x29788d(this[_0x57f5('0xf')],this[_0x57f5('0x15')],this['_config'][_0x57f5('0x1e')]),_0x3a0e6e=_0x152adb['commentInputView'];return _0x152adb[_0x57f5('0x22')](_0x57f5('0x14'))['to'](this,_0x57f5('0x10'),this[_0x57f5('0x7')][_0x57f5('0x18')],_0x57f5('0x1c'),_0x3a0e6e,'value',(_0x42c0b7,_0x45a3ea,_0x36f382)=>!!_0x36f382||_0x42c0b7&&!_0x45a3ea),_0x3a0e6e['on'](_0x57f5('0x4'),(_0x15f5cc,_0x444791)=>{this['fire'](_0x57f5('0x9'),_0x444791),_0x3a0e6e[_0x57f5('0x8')][_0x57f5('0x1f')]('');}),_0x3a0e6e['on']('cancel',()=>this[_0x57f5('0x2')]()),_0x3a0e6e['bind'](_0x57f5('0xe'))['to'](this[_0x57f5('0x7')][_0x57f5('0x18')],_0x57f5('0x1c')),_0x152adb;}}
23
+ const _0x5057=['updateComment','addComment','canAccept','_createCommentViews','hasDirtyComment','commentThread','setData','length','_model','element','set','_localUser','assign','destroy','isEnabled','isActive','disabledSubmit','isReadOnly','focus','locale','isDirty','showInput','editorConfig','commentThreadInputView','value','editor','_config','authoredAt','bind','submit','delegate','commentsListView','fire','removeComment','commentInputView'];(function(_0x4c11ed,_0x505736){const _0x12ac99=function(_0x3ff593){while(--_0x3ff593){_0x4c11ed['push'](_0x4c11ed['shift']());}};_0x12ac99(++_0x505736);}(_0x5057,0x1a3));const _0x12ac=function(_0x4c11ed,_0x505736){_0x4c11ed=_0x4c11ed-0x0;let _0x12ac99=_0x5057[_0x4c11ed];return _0x12ac99;};import{View as _0x11bd14}from'ckeditor5/src/ui';export default class si extends _0x11bd14{constructor(_0x5c7814,_0x2d47f8,_0x3301a2,_0x41bf80){super(_0x5c7814),this['commentsListView']=null,this[_0x12ac('0x18')]=null,this[_0x12ac('0xb')](_0x12ac('0x10'),!0x1),this['set'](_0x12ac('0x1c'),_0x2d47f8['authoredAt']),this[_0x12ac('0x1d')](_0x12ac('0x1c'))['to'](_0x2d47f8),this[_0x12ac('0xb')]('descriptionParts',[]),this[_0x12ac('0xb')](_0x12ac('0x15'),!0x1),this[_0x12ac('0xb')](_0x12ac('0xf'),!0x1),this['set'](_0x12ac('0x3'),!0x1),this[_0x12ac('0xb')]('canDiscard',!0x1),this[_0x12ac('0x9')]=_0x2d47f8,this[_0x12ac('0xc')]=_0x3301a2,this['_config']=_0x41bf80,_0x41bf80['disableComments']?this[_0x12ac('0xb')](_0x12ac('0x8'),0x1):this[_0x12ac('0x4')]();}['focus'](){this[_0x12ac('0xa')][_0x12ac('0x13')]();}[_0x12ac('0xe')](){this['commentsListView']&&this['commentsListView'][_0x12ac('0xe')](),this[_0x12ac('0x18')]&&this['commentThreadInputView'][_0x12ac('0xe')](),super[_0x12ac('0xe')]();}[_0x12ac('0x4')](){const {CommentsListView:_0x355bce}=this[_0x12ac('0x1b')];this[_0x12ac('0x20')]=new _0x355bce(this[_0x12ac('0x14')],this[_0x12ac('0x9')]['commentThread'],Object[_0x12ac('0xd')]({'CommentView':this[_0x12ac('0x1b')]['CommentView']},this[_0x12ac('0x1b')])),this[_0x12ac('0x20')][_0x12ac('0x1f')](_0x12ac('0x22'))['to'](this),this[_0x12ac('0x20')]['delegate'](_0x12ac('0x1'))['to'](this),this[_0x12ac('0x20')][_0x12ac('0x1d')](_0x12ac('0x10'))['to'](this),this['set']('length',this[_0x12ac('0x20')][_0x12ac('0x8')]+0x1),this[_0x12ac('0x1d')](_0x12ac('0x8'))['to'](this[_0x12ac('0x20')],_0x12ac('0x8'),_0xb2f832=>_0xb2f832+0x1),this[_0x12ac('0x18')]=this['_createCommentThreadInputView'](),this['on'](_0x12ac('0x22'),()=>this[_0x12ac('0x13')]()),this[_0x12ac('0x1d')]('isDirty')['to'](this[_0x12ac('0x20')],_0x12ac('0x5'),this['commentThreadInputView'][_0x12ac('0x0')],'value',(_0x198188,_0x2f2fc6)=>_0x198188||!!_0x2f2fc6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x582ed6}=this[_0x12ac('0x1b')],_0x260c47=new _0x582ed6(this['locale'],this[_0x12ac('0xc')],this['_config'][_0x12ac('0x17')]),_0x23f03d=_0x260c47['commentInputView'];return _0x260c47[_0x12ac('0x1d')](_0x12ac('0x16'))['to'](this,_0x12ac('0x10'),this[_0x12ac('0x9')][_0x12ac('0x6')],_0x12ac('0x12'),_0x23f03d,_0x12ac('0x19'),(_0x44cb94,_0x51738b,_0xd5cc7b)=>!!_0xd5cc7b||_0x44cb94&&!_0x51738b),_0x23f03d['on'](_0x12ac('0x1e'),(_0xdc761f,_0x488e59)=>{this[_0x12ac('0x21')](_0x12ac('0x2'),_0x488e59),_0x23f03d[_0x12ac('0x1a')][_0x12ac('0x7')]('');}),_0x23f03d['on']('cancel',()=>this['focus']()),_0x23f03d[_0x12ac('0x1d')](_0x12ac('0x11'))['to'](this['_model'][_0x12ac('0x6')],_0x12ac('0x12')),_0x260c47;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x282e=['ck-annotation__info-time','span','push','getUserViewNotificationText','extendTemplate','editorReady','ck-suggestion-wrapper','createElement','ck-annotation__main','commentThreadInputView','join','<span\x20class=\x22ck-suggestion-type\x22>','ck-suggestion__info-name','\x22\x20title=\x22','ck-suggestion','editorDestroyed','source','acceptButton','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-annotation__info','commentThread','children','authoredAt','bind','canAccept','type','ck-suggestion-wrapper--active','bindTemplate','ck-annotation','@external','change:description','attributes','ck-annotation__actions','execute','cancel','userView','importWord','_descriptionElement','delegate','getTemplate','EXTERNAL_AVATAR','EXTERNAL_IMPORT_WORD_SUGGESTION','ck-suggestion__actions','setTemplate','<p>','element','ck-suggestion--discard','ck-suggestion--accept','acceptSuggestion','ck-comment__info-time','canDiscard','content','isEnabled','description','Accept\x20suggestion','descriptionParts','.ck-annotation__content-wrapper','innerText','locale','check','innerHTML','_config','isExternal','</p>','time','discardSuggestion','ck-suggestion-','render','_createButton','getExternalSuggestionNote','div','isActive','formatDateTime','discardButton','creator','</span>','commentsListView','_model','EXTERNAL_SUGGESTION','set','ck-annotation__user','ck-suggestion--disabled-comments','author','name','ck-suggestion__info','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation__content-wrapper','fire'];(function(_0x279392,_0x282e16){const _0x580b24=function(_0x38184a){while(--_0x38184a){_0x279392['push'](_0x279392['shift']());}};_0x580b24(++_0x282e16);}(_0x282e,0x10a));const _0x580b=function(_0x279392,_0x282e16){_0x279392=_0x279392-0x0;let _0x580b24=_0x282e[_0x279392];return _0x580b24;};import{getTranslation as _0x89e6e1}from'../../utils/common-translations';import{default as _0x5a3e07}from'./basesuggestionthreadview';import{ButtonView as _0x24401e}from'ckeditor5/src/ui';import{icons as _0xcc0a5e}from'ckeditor5/src/core';import{trimHtml as _0x3b73f7,UserView as _0x4dbce8}from'ckeditor5-collaboration/src/collaboration-core';export default class Qt extends _0x5a3e07{constructor(_0x18d66e,_0x2d6e31,_0x102a74,_0x301169){super(_0x18d66e,_0x2d6e31,_0x102a74,_0x301169),this[_0x580b('0x4d')]('type',''),this[_0x580b('0x15')](_0x580b('0x17'))['to'](this,_0x580b('0x35'),_0x3b3cfe=>_0x3b3cfe&&_0x3b3cfe[0x0]?_0x3b3cfe[0x0]['type']:''),this[_0x580b('0x15')]('description')['to'](this,_0x580b('0x35'),this,_0x580b('0x45'),(_0x8b8abe,_0x29e0d6)=>{let _0x5e7235='';for(const _0x2cbb68 of _0x8b8abe)_0x5e7235+=_0x580b('0x2a')+ci(_0x2cbb68[_0x580b('0x31')],_0x2cbb68['color'])+_0x580b('0x3d');return _0x29e0d6?_0x5e7235:_0x3b73f7(_0x5e7235,{'limit':0x8c});}),this[_0x580b('0x23')]=null,this[_0x580b('0xf')]=this['_createButton'](_0x89e6e1(_0x18d66e,_0x580b('0x34')),_0xcc0a5e[_0x580b('0x39')],_0x580b('0x2d'),_0x580b('0x2e'),'sw'),this[_0x580b('0xf')][_0x580b('0x15')](_0x580b('0x32'))['to'](this,_0x580b('0x16')),this[_0x580b('0x47')]=this[_0x580b('0x42')](_0x89e6e1(_0x18d66e,'Discard\x20suggestion'),_0xcc0a5e[_0x580b('0x20')],_0x580b('0x2c'),_0x580b('0x3f'),'sw'),this['discardButton']['bind'](_0x580b('0x32'))['to'](this,_0x580b('0x30')),this[_0x580b('0x21')]=new _0x4dbce8(_0x18d66e,this[_0x580b('0x4b')][_0x580b('0x50')],this[_0x580b('0x1')]()),this[_0x580b('0x21')][_0x580b('0x2')]({'attributes':{'class':['ck-suggestion__user',_0x580b('0x4e')]}}),this[_0x580b('0x29')](this[_0x580b('0x25')]());}[_0x580b('0x25')](){const _0x3f25a5=this[_0x580b('0x19')],_0x31eb92=[{'tag':_0x580b('0x44'),'attributes':{'class':[_0x580b('0x52'),_0x580b('0x11')]},'children':[{'tag':_0x580b('0x57'),'children':[{'text':this[_0x580b('0x21')][_0x580b('0x51')]}],'attributes':{'class':[_0x580b('0xa'),'ck-annotation__info-name']}},{'tag':_0x580b('0x3e'),'attributes':{'datetime':_0x3f25a5['to'](_0x580b('0x14')),'class':[_0x580b('0x2f'),_0x580b('0x56')]},'children':[{'text':_0x3f25a5['to'](_0x580b('0x14'),_0x47c33b=>this[_0x580b('0x3b')][_0x580b('0x46')](_0x47c33b))}]}]},{'tag':_0x580b('0x44'),'attributes':{'class':[_0x580b('0x28'),_0x580b('0x1e')]},'children':[this[_0x580b('0xf')],this[_0x580b('0x47')]]},{'tag':_0x580b('0x44'),'attributes':{'class':[_0x580b('0x54')]}}];this[_0x580b('0x4b')]['isExternal']&&_0x31eb92[_0x580b('0x0')]({'tag':_0x580b('0x44'),'attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x580b('0x43')]()}]});const _0x4cb304={'tag':'div','attributes':{'class':[_0x580b('0x4'),_0x3f25a5['if'](_0x580b('0x45'),_0x580b('0x18')),_0x3f25a5['to'](_0x580b('0x17'),_0x2cfffa=>_0x580b('0x40')+_0x2cfffa),this['_config']['disableComments']&&_0x580b('0x4f')],'data-suggestion-id':this[_0x580b('0x4b')]['id'],'data-thread-id':this['_model'][_0x580b('0x12')]['id'],'data-author-id':this[_0x580b('0x4b')]['author']['id'],'tabindex':-0x1},'children':[{'tag':_0x580b('0x44'),'attributes':{'class':[_0x580b('0xc'),_0x580b('0x1a')]},'children':[this[_0x580b('0x21')],{'tag':_0x580b('0x44'),'attributes':{'class':['ck-suggestion__main',_0x580b('0x6')]},'children':_0x31eb92}]}]};return this[_0x580b('0x4a')]&&this[_0x580b('0x7')]&&(_0x4cb304[_0x580b('0x13')][_0x580b('0x0')](this[_0x580b('0x4a')],this[_0x580b('0x7')]),this[_0x580b('0x4a')][_0x580b('0x24')](_0x580b('0x3'))['to'](this),this[_0x580b('0x4a')]['delegate']('editorDestroyed')['to'](this),this[_0x580b('0x7')][_0x580b('0x24')](_0x580b('0x3'))['to'](this),this[_0x580b('0x7')][_0x580b('0x24')](_0x580b('0xd'))['to'](this)),_0x4cb304;}['render'](){super[_0x580b('0x41')](),this[_0x580b('0x23')]=this[_0x580b('0x2b')]['querySelector'](_0x580b('0x36')),this[_0x580b('0x23')]['innerHTML']=this[_0x580b('0x33')],this['on'](_0x580b('0x1c'),(_0x998c48,_0x3ecfcc,_0x4000c8)=>{this[_0x580b('0x23')][_0x580b('0x3a')]=_0x4000c8;});}['_createButton'](_0x24d0fc,_0xaa23,_0x2c2b14,_0x2e9ba2,_0x2967c2){const _0x4885e7=new _0x24401e(this[_0x580b('0x38')]);return _0x4885e7[_0x580b('0x4d')]({'label':_0x24d0fc,'icon':_0xaa23,'tooltip':!0x0,'tooltipPosition':_0x2967c2}),_0x4885e7[_0x580b('0x2')]({'attributes':{'class':_0x2c2b14}}),_0x4885e7['on'](_0x580b('0x1f'),()=>{this[_0x580b('0x55')](_0x2e9ba2,this[_0x580b('0x4b')]['id']);}),_0x4885e7;}[_0x580b('0x43')](){return'importWord'===this[_0x580b('0x4b')][_0x580b('0x1d')]['@external'][_0x580b('0xe')]?_0x89e6e1(this[_0x580b('0x38')],_0x580b('0x27')):_0x89e6e1(this['locale'],_0x580b('0x4c'));}[_0x580b('0x1')](){return this['_model'][_0x580b('0x3c')]?_0x580b('0x22')===this['_model'][_0x580b('0x1d')][_0x580b('0x1b')][_0x580b('0xe')]?_0x89e6e1(this[_0x580b('0x38')],_0x580b('0x53'),this[_0x580b('0x4b')][_0x580b('0x48')]['name']):_0x89e6e1(this[_0x580b('0x38')],_0x580b('0x26'),this['_model'][_0x580b('0x48')][_0x580b('0x51')]):null;}}function ci(_0x31b5bd,_0x30fdcc){let _0x285dd7='';return _0x285dd7+=_0x31b5bd['split']('*')['map']((_0x118a20,_0x5a98dc)=>_0x5a98dc%0x2!=0x0?_0x580b('0x9')+ri(_0x118a20)+_0x580b('0x49'):ri(_0x118a20))[_0x580b('0x8')](''),_0x30fdcc&&(_0x285dd7+=_0x580b('0x10')+_0x30fdcc['value']+_0x580b('0xb')+_0x30fdcc['title']+'\x22></span>'),_0x285dd7;}function ri(_0x5a7690){const _0xed6edf=document[_0x580b('0x5')](_0x580b('0x57'));return _0xed6edf[_0x580b('0x37')]=_0x5a7690,_0xed6edf[_0x580b('0x3a')];}
23
+ const _0x5e11=['ck-annotation__info','description','commentThreadInputView','innerHTML','acceptSuggestion','descriptionParts','set','querySelector','div','</p>','creator','discardSuggestion','isActive','join','getTemplate','title','ck-annotation__user','acceptButton','bind','map','ck-suggestion--accept','commentThread','locale','ck-annotation','time','canAccept','EXTERNAL_IMPORT_WORD_SUGGESTION','ck-suggestion-wrapper','getExternalSuggestionNote','element','source','createElement','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','EXTERNAL_AVATAR','ck-suggestion__info-name','author','ck-suggestion__info','.ck-annotation__content-wrapper','authoredAt','innerText','value','delegate','ck-annotation__main','isExternal','\x22></span>','<p>','name','attributes','render','extendTemplate','discardButton','ck-annotation__info-time','Accept\x20suggestion','_config','isEnabled','_model','check','\x22\x20title=\x22','EXTERNAL_SUGGESTION','span','ck-annotation__actions','bindTemplate','ck-suggestion__actions','Discard\x20suggestion','_createButton','@external','push','_descriptionElement','getUserViewNotificationText','split','ck-suggestion--disabled-comments','content','fire','<span\x20class=\x22ck-suggestion-type\x22>','commentsListView','type','execute','ck-suggestion','editorReady','ck-suggestion-wrapper--active','ck-suggestion-','editorDestroyed','canDiscard','importWord','userView'];(function(_0x2c5bb6,_0x5e112d){const _0x1d3f10=function(_0xe15dd4){while(--_0xe15dd4){_0x2c5bb6['push'](_0x2c5bb6['shift']());}};_0x1d3f10(++_0x5e112d);}(_0x5e11,0x11e));const _0x1d3f=function(_0x2c5bb6,_0x5e112d){_0x2c5bb6=_0x2c5bb6-0x0;let _0x1d3f10=_0x5e11[_0x2c5bb6];return _0x1d3f10;};import{getTranslation as _0x514c14}from'../../utils/common-translations';import{default as _0xf141eb}from'./basesuggestionthreadview';import{ButtonView as _0x1b65d3}from'ckeditor5/src/ui';import{icons as _0x342e17}from'ckeditor5/src/core';import{trimHtml as _0xecd701,UserView as _0x51cef8}from'ckeditor5-collaboration/src/collaboration-core';export default class Qt extends _0xf141eb{constructor(_0x3fc3a2,_0x4be698,_0x1667c4,_0x2f6f66){super(_0x3fc3a2,_0x4be698,_0x1667c4,_0x2f6f66),this[_0x1d3f('0x3c')]('type',''),this[_0x1d3f('0x48')]('type')['to'](this,_0x1d3f('0x3b'),_0x5c42b8=>_0x5c42b8&&_0x5c42b8[0x0]?_0x5c42b8[0x0][_0x1d3f('0x2c')]:''),this[_0x1d3f('0x48')]('description')['to'](this,_0x1d3f('0x3b'),this,_0x1d3f('0x42'),(_0x1a418e,_0x97e1b4)=>{let _0x263d8d='';for(const _0x1446a4 of _0x1a418e)_0x263d8d+=_0x1d3f('0xe')+ci(_0x1446a4[_0x1d3f('0x28')],_0x1446a4['color'])+_0x1d3f('0x3f');return _0x97e1b4?_0x263d8d:_0xecd701(_0x263d8d,{'limit':0x8c});}),this[_0x1d3f('0x24')]=null,this[_0x1d3f('0x47')]=this[_0x1d3f('0x21')](_0x514c14(_0x3fc3a2,_0x1d3f('0x15')),_0x342e17[_0x1d3f('0x19')],_0x1d3f('0x4a'),_0x1d3f('0x3a'),'sw'),this[_0x1d3f('0x47')]['bind'](_0x1d3f('0x17'))['to'](this,_0x1d3f('0x4f')),this[_0x1d3f('0x13')]=this[_0x1d3f('0x21')](_0x514c14(_0x3fc3a2,_0x1d3f('0x20')),_0x342e17['cancel'],'ck-suggestion--discard',_0x1d3f('0x41'),'sw'),this['discardButton'][_0x1d3f('0x48')](_0x1d3f('0x17'))['to'](this,_0x1d3f('0x33')),this[_0x1d3f('0x35')]=new _0x51cef8(_0x3fc3a2,this[_0x1d3f('0x18')]['author'],this[_0x1d3f('0x25')]()),this[_0x1d3f('0x35')][_0x1d3f('0x12')]({'attributes':{'class':['ck-suggestion__user',_0x1d3f('0x46')]}}),this['setTemplate'](this[_0x1d3f('0x44')]());}[_0x1d3f('0x44')](){const _0x30273f=this[_0x1d3f('0x1e')],_0x5a3a1d=[{'tag':'div','attributes':{'class':[_0x1d3f('0x5'),_0x1d3f('0x36')]},'children':[{'tag':'span','children':[{'text':this[_0x1d3f('0x35')][_0x1d3f('0xf')]}],'attributes':{'class':[_0x1d3f('0x3'),'ck-annotation__info-name']}},{'tag':_0x1d3f('0x4e'),'attributes':{'datetime':_0x30273f['to'](_0x1d3f('0x7')),'class':['ck-comment__info-time',_0x1d3f('0x14')]},'children':[{'text':_0x30273f['to'](_0x1d3f('0x7'),_0x57f408=>this[_0x1d3f('0x16')]['formatDateTime'](_0x57f408))}]}]},{'tag':_0x1d3f('0x3e'),'attributes':{'class':[_0x1d3f('0x1f'),_0x1d3f('0x1d')]},'children':[this[_0x1d3f('0x47')],this[_0x1d3f('0x13')]]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model'][_0x1d3f('0xc')]&&_0x5a3a1d[_0x1d3f('0x23')]({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this[_0x1d3f('0x52')]()}]});const _0x131946={'tag':_0x1d3f('0x3e'),'attributes':{'class':[_0x1d3f('0x51'),_0x30273f['if'](_0x1d3f('0x42'),_0x1d3f('0x30')),_0x30273f['to'](_0x1d3f('0x2c'),_0x6a598b=>_0x1d3f('0x31')+_0x6a598b),this[_0x1d3f('0x16')]['disableComments']&&_0x1d3f('0x27')],'data-suggestion-id':this['_model']['id'],'data-thread-id':this[_0x1d3f('0x18')][_0x1d3f('0x4b')]['id'],'data-author-id':this['_model'][_0x1d3f('0x4')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':[_0x1d3f('0x2e'),_0x1d3f('0x4d')]},'children':[this[_0x1d3f('0x35')],{'tag':_0x1d3f('0x3e'),'attributes':{'class':['ck-suggestion__main',_0x1d3f('0xb')]},'children':_0x5a3a1d}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x131946['children']['push'](this[_0x1d3f('0x2b')],this[_0x1d3f('0x38')]),this[_0x1d3f('0x2b')][_0x1d3f('0xa')]('editorReady')['to'](this),this[_0x1d3f('0x2b')][_0x1d3f('0xa')](_0x1d3f('0x32'))['to'](this),this[_0x1d3f('0x38')]['delegate'](_0x1d3f('0x2f'))['to'](this),this['commentThreadInputView'][_0x1d3f('0xa')]('editorDestroyed')['to'](this)),_0x131946;}[_0x1d3f('0x11')](){super['render'](),this[_0x1d3f('0x24')]=this[_0x1d3f('0x53')][_0x1d3f('0x3d')](_0x1d3f('0x6')),this[_0x1d3f('0x24')][_0x1d3f('0x39')]=this[_0x1d3f('0x37')],this['on']('change:description',(_0x4dfc06,_0x339948,_0x29d6a1)=>{this[_0x1d3f('0x24')][_0x1d3f('0x39')]=_0x29d6a1;});}[_0x1d3f('0x21')](_0x585812,_0x3f217d,_0x1c68b3,_0x601418,_0x2cfa66){const _0x3e0e8c=new _0x1b65d3(this[_0x1d3f('0x4c')]);return _0x3e0e8c[_0x1d3f('0x3c')]({'label':_0x585812,'icon':_0x3f217d,'tooltip':!0x0,'tooltipPosition':_0x2cfa66}),_0x3e0e8c[_0x1d3f('0x12')]({'attributes':{'class':_0x1c68b3}}),_0x3e0e8c['on'](_0x1d3f('0x2d'),()=>{this[_0x1d3f('0x29')](_0x601418,this[_0x1d3f('0x18')]['id']);}),_0x3e0e8c;}['getExternalSuggestionNote'](){return _0x1d3f('0x34')===this[_0x1d3f('0x18')][_0x1d3f('0x10')][_0x1d3f('0x22')]['source']?_0x514c14(this['locale'],_0x1d3f('0x50')):_0x514c14(this[_0x1d3f('0x4c')],_0x1d3f('0x1b'));}[_0x1d3f('0x25')](){return this['_model'][_0x1d3f('0xc')]?_0x1d3f('0x34')===this[_0x1d3f('0x18')][_0x1d3f('0x10')][_0x1d3f('0x22')][_0x1d3f('0x54')]?_0x514c14(this[_0x1d3f('0x4c')],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model'][_0x1d3f('0x40')][_0x1d3f('0xf')]):_0x514c14(this[_0x1d3f('0x4c')],_0x1d3f('0x2'),this[_0x1d3f('0x18')][_0x1d3f('0x40')][_0x1d3f('0xf')]):null;}}function ci(_0x50d40a,_0x3916f1){let _0x231d7d='';return _0x231d7d+=_0x50d40a[_0x1d3f('0x26')]('*')[_0x1d3f('0x49')]((_0x4b568d,_0x60e196)=>_0x60e196%0x2!=0x0?_0x1d3f('0x2a')+ri(_0x4b568d)+'</span>':ri(_0x4b568d))[_0x1d3f('0x43')](''),_0x3916f1&&(_0x231d7d+=_0x1d3f('0x1')+_0x3916f1[_0x1d3f('0x9')]+_0x1d3f('0x1a')+_0x3916f1[_0x1d3f('0x45')]+_0x1d3f('0xd')),_0x231d7d;}function ri(_0x380635){const _0x54dac6=document[_0x1d3f('0x0')](_0x1d3f('0x1c'));return _0x54dac6[_0x1d3f('0x8')]=_0x380635,_0x54dac6['innerHTML'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x2dfb90,_0x2aecc8,_0x514ce9){const t=_0x2dfb90['t'];switch(_0x2aecc8){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x514ce9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x514ce9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x514ce9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x514ce9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x514ce9);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x514ce9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x514ce9);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x514ce9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x514ce9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x514ce9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x514ce9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x514ce9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x514ce9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x514ce9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x514ce9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x514ce9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x514ce9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x514ce9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x514ce9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x514ce9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x514ce9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x514ce9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x514ce9);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x514ce9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x514ce9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x514ce9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x514ce9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x514ce9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x514ce9);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x514ce9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x514ce9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x514ce9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x514ce9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x514ce9);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x514ce9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x514ce9);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x514ce9);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x514ce9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x514ce9);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x514ce9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x514ce9);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x514ce9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x514ce9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x514ce9);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x514ce9);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x514ce9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x2aecc8;}}
23
+ export function getTranslation(_0x4179cf,_0xbde6d,_0x55900d){const t=_0x4179cf['t'];switch(_0xbde6d){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x55900d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x55900d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x55900d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x55900d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x55900d);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x55900d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x55900d);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x55900d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x55900d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x55900d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x55900d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x55900d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x55900d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x55900d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x55900d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x55900d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x55900d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x55900d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x55900d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x55900d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x55900d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x55900d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x55900d);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x55900d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x55900d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x55900d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x55900d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x55900d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x55900d);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x55900d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x55900d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x55900d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x55900d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x55900d);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x55900d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x55900d);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x55900d);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x55900d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x55900d);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x55900d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x55900d);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x55900d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x55900d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x55900d);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x55900d);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x55900d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xbde6d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x82fa=['deletion','isMultiRange','color','length','isObject','createPositionAfter','isInContent','end','from','createRange','isArray','createPositionBefore','getRanges','replace','\x20[color\x20','type','start','execute','change','value','map','next','schema','push','isTouching'];(function(_0x238e3a,_0x82faa2){const _0x38e1cc=function(_0x4776d3){while(--_0x4776d3){_0x238e3a['push'](_0x238e3a['shift']());}};_0x38e1cc(++_0x82faa2);}(_0x82fa,0xf9));const _0x38e1=function(_0x238e3a,_0x82faa2){_0x238e3a=_0x238e3a-0x0;let _0x38e1cc=_0x82fa[_0x238e3a];return _0x38e1cc;};export function normalizeDescription(_0x6cabad){return Array[_0x38e1('0xb')](_0x6cabad)||(_0x6cabad=[_0x6cabad]),_0x6cabad[_0x38e1('0x15')](_0x5ddb06=>{const _0x273fd7=_0x5ddb06['content'][_0x38e1('0xe')](/\*/g,''),_0x2eb155=_0x5ddb06[_0x38e1('0x3')]?_0x38e1('0xf')+_0x5ddb06[_0x38e1('0x3')][_0x38e1('0x14')]+']':'';return'['+_0x5ddb06[_0x38e1('0x10')]+']\x20'+_0x273fd7+_0x2eb155;})['join'](';\x20');}export function sortSuggestions(_0x3a9c5c){return _0x3a9c5c['sort']((_0x5a3346,_0x5915b1)=>'deletion'==_0x5a3346[_0x38e1('0x10')]&&_0x38e1('0x1')!=_0x5915b1[_0x38e1('0x10')]?-0x1:_0x38e1('0x1')!=_0x5a3346['type']&&_0x38e1('0x1')==_0x5915b1[_0x38e1('0x10')]?0x1:0x0);}export function getSelectedSuggestions(_0x1e0ffa,_0x7a9367){const _0x2ad3a1=Array[_0x38e1('0x9')](_0x1e0ffa[_0x38e1('0xd')]()),_0x117e42=new Set();for(const _0x573f41 of _0x7a9367)if(_0x573f41['isInContent'])for(const _0x22ed89 of _0x2ad3a1)for(const _0x144674 of _0x573f41[_0x38e1('0xd')]())(_0x22ed89['isIntersecting'](_0x144674)||_0x1e0ffa['isCollapsed']&&!_0x573f41[_0x38e1('0x2')]&&_0x573f41[_0x38e1('0x16')]&&_0x144674[_0x38e1('0x8')]['isTouching'](_0x22ed89[_0x38e1('0x11')]))&&_0x117e42['add'](_0x573f41);return _0x117e42;}export function getRangesOfBlockGroups(_0x54505d,_0x23dd4d){let _0x51abee,_0x23a07f=0x0;const _0x48915e=[],_0x3aab07=_0x23dd4d[_0x38e1('0x17')];for(;_0x23a07f<_0x54505d[_0x38e1('0x4')];){const _0x3013b6=_0x54505d[_0x23a07f],_0x5b92ce=_0x54505d[_0x23a07f+0x1];_0x51abee||(_0x51abee=_0x23dd4d[_0x38e1('0xc')](_0x3013b6)),co(_0x23dd4d,_0x3013b6,_0x5b92ce)||(_0x48915e[_0x38e1('0x18')](_0x23dd4d[_0x38e1('0xa')](_0x51abee,_0x3aab07[_0x38e1('0x5')](_0x3013b6)?_0x23dd4d[_0x38e1('0x6')](_0x3013b6):_0x23dd4d['createPositionAt'](_0x3013b6,'end'))),_0x51abee=null),_0x23a07f++;}return _0x48915e;}function co(_0x2cdac4,_0x2a1bb0,_0x82c417){if(!_0x82c417)return!0x1;const _0x1b5866=_0x2cdac4[_0x38e1('0x6')](_0x2a1bb0),_0x4c85bd=_0x2cdac4[_0x38e1('0xc')](_0x82c417);return _0x1b5866[_0x38e1('0x0')](_0x4c85bd);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0xf296ee,_0x2ffda1,_0x143fd7){for(;_0x143fd7['length'];){const _0x3e931b=_0x143fd7['splice'](0x0,0x64);_0xf296ee[_0x38e1('0x13')](()=>{for(const _0x1d773d of _0x3e931b)_0x1d773d[_0x38e1('0x7')]&&_0x2ffda1[_0x38e1('0x12')](_0x1d773d['id']);});}}
23
+ const _0x4d4a=['replace','isObject','push','execute','deletion','add','length','isIntersecting','color','isArray','type','isCollapsed','join','isTouching','value','from','isInContent','createPositionAfter','start','createRange','isMultiRange','schema','createPositionAt','sort','getRanges','createPositionBefore'];(function(_0x19849c,_0x4d4a41){const _0x3f0139=function(_0x5783f0){while(--_0x5783f0){_0x19849c['push'](_0x19849c['shift']());}};_0x3f0139(++_0x4d4a41);}(_0x4d4a,0xcf));const _0x3f01=function(_0x19849c,_0x4d4a41){_0x19849c=_0x19849c-0x0;let _0x3f0139=_0x4d4a[_0x19849c];return _0x3f0139;};export function normalizeDescription(_0x3eabfb){return Array[_0x3f01('0xa')](_0x3eabfb)||(_0x3eabfb=[_0x3eabfb]),_0x3eabfb['map'](_0x2ede9c=>{const _0x33875e=_0x2ede9c['content'][_0x3f01('0x1')](/\*/g,''),_0x1edbdb=_0x2ede9c[_0x3f01('0x9')]?'\x20[color\x20'+_0x2ede9c['color'][_0x3f01('0xf')]+']':'';return'['+_0x2ede9c['type']+']\x20'+_0x33875e+_0x1edbdb;})[_0x3f01('0xd')](';\x20');}export function sortSuggestions(_0x4c7f61){return _0x4c7f61[_0x3f01('0x18')]((_0x297c55,_0x445537)=>_0x3f01('0x5')==_0x297c55[_0x3f01('0xb')]&&_0x3f01('0x5')!=_0x445537['type']?-0x1:_0x3f01('0x5')!=_0x297c55['type']&&_0x3f01('0x5')==_0x445537[_0x3f01('0xb')]?0x1:0x0);}export function getSelectedSuggestions(_0x32460a,_0x3c3a49){const _0x5c3427=Array[_0x3f01('0x10')](_0x32460a[_0x3f01('0x19')]()),_0x3547c9=new Set();for(const _0x3fab16 of _0x3c3a49)if(_0x3fab16['isInContent'])for(const _0x2cd3a2 of _0x5c3427)for(const _0x4cfdde of _0x3fab16['getRanges']())(_0x2cd3a2[_0x3f01('0x8')](_0x4cfdde)||_0x32460a[_0x3f01('0xc')]&&!_0x3fab16[_0x3f01('0x15')]&&_0x3fab16['next']&&_0x4cfdde['end']['isTouching'](_0x2cd3a2[_0x3f01('0x13')]))&&_0x3547c9[_0x3f01('0x6')](_0x3fab16);return _0x3547c9;}export function getRangesOfBlockGroups(_0x475a37,_0x5a3d59){let _0x3951f3,_0x3282a0=0x0;const _0x5141a1=[],_0x281180=_0x5a3d59[_0x3f01('0x16')];for(;_0x3282a0<_0x475a37[_0x3f01('0x7')];){const _0x23f248=_0x475a37[_0x3282a0],_0x17609c=_0x475a37[_0x3282a0+0x1];_0x3951f3||(_0x3951f3=_0x5a3d59[_0x3f01('0x0')](_0x23f248)),co(_0x5a3d59,_0x23f248,_0x17609c)||(_0x5141a1[_0x3f01('0x3')](_0x5a3d59[_0x3f01('0x14')](_0x3951f3,_0x281180[_0x3f01('0x2')](_0x23f248)?_0x5a3d59['createPositionAfter'](_0x23f248):_0x5a3d59[_0x3f01('0x17')](_0x23f248,'end'))),_0x3951f3=null),_0x3282a0++;}return _0x5141a1;}function co(_0x2e7870,_0x2e3f2b,_0x2658bf){if(!_0x2658bf)return!0x1;const _0x38f82e=_0x2e7870[_0x3f01('0x12')](_0x2e3f2b),_0x598ff9=_0x2e7870[_0x3f01('0x0')](_0x2658bf);return _0x38f82e[_0x3f01('0xe')](_0x598ff9);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x16686f,_0x55acf7,_0x223a31){for(;_0x223a31[_0x3f01('0x7')];){const _0x3d6f9f=_0x223a31['splice'](0x0,0x64);_0x16686f['change'](()=>{for(const _0x5d46b6 of _0x3d6f9f)_0x5d46b6[_0x3f01('0x11')]&&_0x55acf7[_0x3f01('0x4')](_0x5d46b6['id']);});}}