@ckeditor/ckeditor5-track-changes 43.0.0-alpha.5 → 43.0.0-alpha.6
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.
- package/build/track-changes.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/trackchangesconfig.d.ts +7 -0
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/suggestioncontroller.d.ts +1 -1
- package/dist/ui/view/basesuggestionthreadview.d.ts +8 -2
- package/dist/ui/view/suggestionthreadview.d.ts +42 -137
- package/dist/ui/view/suggestionview.d.ts +194 -0
- package/package.json +10 -10
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +7 -0
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +8 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +42 -137
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.d.ts +190 -0
- package/src/ui/view/suggestionview.js +23 -0
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x47f2(_0x3cdbe4,_0x40880e){const _0x20cd05=_0x20cd();return _0x47f2=function(_0x47f219,_0x23d3b6){_0x47f219=_0x47f219-0x110;let _0x38e4c2=_0x20cd05[_0x47f219];return _0x38e4c2;},_0x47f2(_0x3cdbe4,_0x40880e);}const _0x31eaa6=_0x47f2;(function(_0x1358b6,_0x1c9d9c){const _0x40fe81=_0x47f2,_0x550d74=_0x1358b6();while(!![]){try{const _0x4e141e=parseInt(_0x40fe81(0x17c))/0x1*(-parseInt(_0x40fe81(0x157))/0x2)+parseInt(_0x40fe81(0x161))/0x3+parseInt(_0x40fe81(0x112))/0x4+-parseInt(_0x40fe81(0x18c))/0x5*(-parseInt(_0x40fe81(0x13e))/0x6)+parseInt(_0x40fe81(0x14e))/0x7*(-parseInt(_0x40fe81(0x141))/0x8)+parseInt(_0x40fe81(0x151))/0x9+-parseInt(_0x40fe81(0x143))/0xa*(parseInt(_0x40fe81(0x13b))/0xb);if(_0x4e141e===_0x1c9d9c)break;else _0x550d74['push'](_0x550d74['shift']());}catch(_0x152318){_0x550d74['push'](_0x550d74['shift']());}}}(_0x20cd,0x783d7));import{Plugin as _0x4c0e63}from'ckeditor5/src/core.js';import{Collection as _0x54d195}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x38e1d3,createDropdown as _0x20ef6d,ListSeparatorView as _0x465587,MenuBarMenuView as _0x198d00,MenuBarMenuListView as _0x16a413,MenuBarMenuListItemView as _0x2bef30,MenuBarMenuListItemButtonView as _0x5282ec,SplitButtonView as _0x69e021,ViewModel as _0x3f86ae}from'ckeditor5/src/ui.js';import{Users as _0x5de3ed,getDateTimeFormatter as _0x37b0bd,getAllMarkersDomElementsSorted as _0x122ac8,ENTER_THREAD_KEYSTROKE as _0x376f49}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3d3986 from'./trackchangesediting.js';import _0x291af7 from'./ui/suggestioncontroller.js';import _0x503afb from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x5135b0}from'./utils/common-translations.js';import _0x256d19 from'./trackchanges.js';function _0x20cd(){const _0x163d18=['editor','set','getMarkerNames','escape','commentThread','push','suggestionUnloaded','switchbutton','values','pluginName','_suggestionToController','isMultiRange','clear','1663824VMFBjc','_destroyController','Accept\x20all\x20selected\x20suggestions','EditorAnnotations','stopListening','_handleSuggestionControllerDelayed','previous','execute','low','get','getAllAdjacentSuggestions','TrackChangesEditing','CommentsRepository','keys','some','descriptionFactory','size','from','getByInnerView','componentFactory','isOn','init','acceptButton','menu','requires','SuggestionThreadView','TrackChangesUI','_addUIComponentsToFactory','_disableComments','getMarkers','getDescriptions','isDirty','comments.maxCommentsWhenCollapsed','type','suggestionChanged','_refreshActiveMarkers','config','arrowView','focus','commentsListView','_splitMarkerName','11HlHHlv','buttonView','_createMenuBarMenu','3390708LVfeDJ','addSourceCollector','remove','10448AQhWWX','comments','15462270CcZByo','commandName','model','actionView','reduce','getRanges','activeAnnotations','isInContent','bind','_initializeController','isEnabled','2807wpPLTB','editing','source','6831666xnXJaV','activeMarkers','discardAllSuggestions','Accept\x20all\x20suggestions','items','unbind','70prfUIN','comments.maxThreadTotalWeight','getSuggestion','menuitemcheckbox','add','trackChanges.SuggestionThreadView','discardSelectedSuggestions','change:previous','lowest','trackChanges','2888334wByMRa','menuBar:trackChanges','registerAnnotation','createAnnotation','acceptAllSuggestions','button','_unbindEditors','getFirstRange','descriptionParts','filter','trackChanges.disableComments','_updateController','Annotations','_initKeyboardNavigationToThread','separator','Discard\x20all\x20selected\x20suggestions','change:activeAnnotations','_createToolbarButton','CommentsUI','listenTo','keystrokes','delete','children','length','comments.maxCommentCharsWhenCollapsed','_viewToController','suggestion-','4014BfRssh','panelView','has','plugins','Track\x20changes','getJoined','hasSuggestion','mainView','comments.editorConfig','innerView','toMany','delegate','createAnnotationView','menuitem','commands','createCommentThreadController','5BJhKXk','_bindAnnotationToEditors','refreshSelectedViews','_annotationViews','define','discardButton','Discard\x20all\x20suggestions','suggestionLoaded','view','locale','destroy','value','addComment','_handleControllerBuffer','acceptSelectedSuggestions','head','CommentView'];_0x20cd=function(){return _0x163d18;};return _0x20cd();}import _0x45cd08 from'../theme/icons/track-changes.svg';export default class d extends _0x4c0e63{static get[_0x31eaa6(0x12a)](){const _0x465b6e=_0x31eaa6;return[_0x3d3986,_0x5de3ed,_0x465b6e(0x11e),_0x465b6e(0x16d),_0x465b6e(0x115)];}static get[_0x31eaa6(0x1a6)](){const _0x4649a4=_0x31eaa6;return _0x4649a4(0x12c);}constructor(_0x236f6e){const _0x803c76=_0x31eaa6;super(_0x236f6e),this[_0x803c76(0x1a7)]=new Map(),this[_0x803c76(0x17a)]=new Map(),this[_0x803c76(0x18f)]=new Map(),this[_0x803c76(0x199)]=new Map();const _0x344e6e=this[_0x803c76(0x19d)][_0x803c76(0x136)];_0x344e6e[_0x803c76(0x190)](_0x803c76(0x15c),_0x503afb),_0x344e6e[_0x803c76(0x190)](_0x803c76(0x16b),!0x1),this[_0x803c76(0x12e)]=_0x344e6e[_0x803c76(0x11b)](_0x803c76(0x16b)),this[_0x803c76(0x16e)]();}[_0x31eaa6(0x117)](_0x3f32bc,_0x118e81){const _0x17fa09=_0x31eaa6;0x0===this[_0x17fa09(0x199)][_0x17fa09(0x122)]&&setTimeout(()=>{const _0x18b2ba=_0x17fa09;for(const [_0x4770c9,_0x48f6a6]of this[_0x18b2ba(0x199)]){const _0x56a01=this[_0x18b2ba(0x1a7)][_0x18b2ba(0x17e)](_0x4770c9);_0x56a01||_0x48f6a6?_0x56a01&&_0x48f6a6&&this[_0x18b2ba(0x113)](_0x4770c9):this[_0x18b2ba(0x14c)](_0x4770c9);}this[_0x18b2ba(0x199)][_0x18b2ba(0x111)](),this[_0x18b2ba(0x19d)][_0x18b2ba(0x17f)][_0x18b2ba(0x11b)](_0x18b2ba(0x115))[_0x18b2ba(0x18e)](),this[_0x18b2ba(0x135)]();},0xa),this[_0x17fa09(0x199)][_0x17fa09(0x19e)](_0x3f32bc,_0x118e81);}[_0x31eaa6(0x127)](){const _0x1df34c=_0x31eaa6,_0x1a7ec6=this[_0x1df34c(0x19d)],_0x1cb162=_0x1a7ec6[_0x1df34c(0x17f)][_0x1df34c(0x11b)](_0x1df34c(0x11d)),_0xcde518=_0x1a7ec6[_0x1df34c(0x17f)][_0x1df34c(0x11b)](_0x1df34c(0x16d)),_0x596c7e=_0x1a7ec6[_0x1df34c(0x17f)][_0x1df34c(0x11b)](_0x1df34c(0x115)),_0x3a859f=_0x1a7ec6[_0x1df34c(0x17f)][_0x1df34c(0x11b)](_0x1df34c(0x11e));this[_0x1df34c(0x12d)](),_0x596c7e[_0x1df34c(0x13f)](()=>{const _0x2b2b58=_0x1df34c,_0x4c23bf=[];for(const [_0x5a2fea,_0xf53f59]of Array[_0x2b2b58(0x123)](this[_0x2b2b58(0x1a7)])){const _0x2b5e21=_0x5a2fea[_0x2b2b58(0x11c)](),_0x29b298=[];for(const _0x2e5358 of _0x2b5e21){if(!_0x2e5358[_0x2b2b58(0x14a)])continue;if(_0x2e5358[_0x2b2b58(0x110)]){_0x29b298[_0x2b2b58(0x1a2)](..._0x2e5358[_0x2b2b58(0x148)]());continue;}const _0x5f410f=_0x2e5358[_0x2b2b58(0x168)]();if(_0x29b298[_0x2b2b58(0x178)]>0x0){const _0x363814=_0x29b298[0x0][_0x2b2b58(0x181)](_0x5f410f);if(_0x363814){_0x29b298[0x0]=_0x363814;continue;}}_0x29b298[_0x2b2b58(0x1a2)](_0x5f410f);}_0x4c23bf[_0x2b2b58(0x1a2)]([_0xf53f59[_0x2b2b58(0x194)],_0x29b298]);}return _0x4c23bf;}),this[_0x1df34c(0x174)](_0x1cb162,_0x1df34c(0x193),(_0x571c2,_0x2e5ded)=>{const _0x2e8df1=_0x1df34c;this[_0x2e8df1(0x174)](_0x2e5ded,_0x2e8df1(0x15e),(_0x37a743,_0x13e8dd,_0x4ded4e,_0x3cb08d)=>{const _0x4ac0af=_0x2e8df1;_0x2e5ded[_0x4ac0af(0x14a)]&&(null==_0x4ded4e?(this[_0x4ac0af(0x16c)](_0x3cb08d[_0x4ac0af(0x19b)]),this[_0x4ac0af(0x117)](_0x2e5ded,!0x1)):(this[_0x4ac0af(0x16c)](_0x4ded4e[_0x4ac0af(0x19b)]),null==_0x3cb08d&&this[_0x4ac0af(0x117)](_0x2e5ded,!0x0)));}),null!==_0x2e5ded[_0x2e8df1(0x118)]?this[_0x2e8df1(0x16c)](_0x2e5ded[_0x2e8df1(0x19b)]):this[_0x2e8df1(0x117)](_0x2e5ded,!0x1);}),this[_0x1df34c(0x174)](_0x1cb162,_0x1df34c(0x1a3),(_0x4af8fc,_0x215a1e,_0x300ad1)=>{const _0x323f55=_0x1df34c;this[_0x323f55(0x116)](_0x215a1e,_0x323f55(0x15e)),this[_0x323f55(0x199)][_0x323f55(0x176)](_0x215a1e),this[_0x323f55(0x1a7)][_0x323f55(0x17e)](_0x215a1e)&&this[_0x323f55(0x113)](_0x215a1e),_0x300ad1&&this[_0x323f55(0x16c)](_0x300ad1[_0x323f55(0x19b)]);}),this[_0x1df34c(0x174)](_0x1cb162,_0x1df34c(0x134),(_0x4623fa,_0x59644b)=>{const _0x1281b7=_0x1df34c;this[_0x1281b7(0x16c)](_0x59644b);}),this[_0x1df34c(0x174)](_0xcde518,_0x1df34c(0x171),()=>{const _0x1969bb=_0x1df34c;this[_0x1969bb(0x135)]();}),this[_0x1df34c(0x174)](_0x3a859f,_0x1df34c(0x198),(_0x306d07,{threadId:_0x3578ea,isFromAdapter:_0x4cd735})=>{const _0x52fde7=_0x1df34c;if(_0x4cd735||!_0x1cb162[_0x52fde7(0x182)](_0x3578ea))return;const _0x16982d=_0x1cb162[_0x52fde7(0x159)](_0x3578ea);this[_0x52fde7(0x1a7)][_0x52fde7(0x11b)](_0x16982d)[_0x52fde7(0x194)][_0x52fde7(0x139)][_0x52fde7(0x138)](-0x1);},{'priority':_0x1df34c(0x15f)});}[_0x31eaa6(0x135)](){const _0x4fc2aa=_0x31eaa6,_0x494f3=this[_0x4fc2aa(0x19d)][_0x4fc2aa(0x17f)][_0x4fc2aa(0x11b)](_0x4fc2aa(0x16d)),_0x397a5b=this[_0x4fc2aa(0x19d)][_0x4fc2aa(0x17f)][_0x4fc2aa(0x11b)](_0x4fc2aa(0x11d)),_0x3a4ed1=Array[_0x4fc2aa(0x123)](_0x494f3[_0x4fc2aa(0x149)],_0x5701cd=>_0x5701cd[_0x4fc2aa(0x185)])[_0x4fc2aa(0x16a)](_0x4ea8a7=>this[_0x4fc2aa(0x17a)][_0x4fc2aa(0x17e)](_0x4ea8a7)),_0x598b31=[];for(const _0x54faf7 of _0x3a4ed1){const _0x24fa6c=this[_0x4fc2aa(0x17a)][_0x4fc2aa(0x11b)](_0x54faf7)[_0x4fc2aa(0x145)][_0x4fc2aa(0x11c)]();_0x598b31[_0x4fc2aa(0x1a2)](..._0x24fa6c[_0x4fc2aa(0x147)]((_0x17f32d,_0x32342f)=>[..._0x17f32d,..._0x32342f[_0x4fc2aa(0x19f)]()],[]));}_0x397a5b[_0x4fc2aa(0x152)]=_0x598b31;}[_0x31eaa6(0x12d)](){const _0x67cc8f=_0x31eaa6,_0x2a224d=this[_0x67cc8f(0x19d)],_0x2f6030=_0x2a224d[_0x67cc8f(0x195)],_0x4ea981=_0x5135b0(_0x2f6030,_0x67cc8f(0x180)),_0x12a730=new _0x54d195([{'type':_0x67cc8f(0x1a4),'model':new _0x3f86ae({'withText':!0x0,'isToggleable':!0x0,'label':_0x4ea981,'commandName':_0x67cc8f(0x160),'role':_0x67cc8f(0x15a)})},{'type':_0x67cc8f(0x16f)},{'type':_0x67cc8f(0x166),'model':new _0x3f86ae({'withText':!0x0,'label':_0x5135b0(_0x2f6030,_0x67cc8f(0x154)),'commandName':_0x67cc8f(0x165),'role':_0x67cc8f(0x189)})},{'type':_0x67cc8f(0x166),'model':new _0x3f86ae({'withText':!0x0,'label':_0x5135b0(_0x2f6030,_0x67cc8f(0x114)),'commandName':_0x67cc8f(0x19a),'role':_0x67cc8f(0x189)})},{'type':_0x67cc8f(0x166),'model':new _0x3f86ae({'withText':!0x0,'label':_0x5135b0(_0x2f6030,_0x67cc8f(0x192)),'commandName':_0x67cc8f(0x153),'role':_0x67cc8f(0x189)})},{'type':_0x67cc8f(0x166),'model':new _0x3f86ae({'withText':!0x0,'label':_0x5135b0(_0x2f6030,_0x67cc8f(0x170)),'commandName':_0x67cc8f(0x15d),'role':_0x67cc8f(0x189)})}]);for(const _0x31d108 of _0x12a730)if(he(_0x31d108)){const _0x143d78=_0x2a224d[_0x67cc8f(0x18a)][_0x67cc8f(0x11b)](_0x31d108[_0x67cc8f(0x145)][_0x67cc8f(0x144)]);_0x31d108[_0x67cc8f(0x145)][_0x67cc8f(0x14b)](_0x67cc8f(0x126),_0x67cc8f(0x14d))['to'](_0x143d78,_0x67cc8f(0x197),_0x67cc8f(0x14d));}_0x2a224d['ui'][_0x67cc8f(0x125)][_0x67cc8f(0x15b)](_0x67cc8f(0x160),_0x1d7188=>this[_0x67cc8f(0x172)](_0x1d7188,_0x12a730,_0x4ea981)),_0x2a224d['ui'][_0x67cc8f(0x125)][_0x67cc8f(0x15b)](_0x67cc8f(0x162),_0x3cf649=>this[_0x67cc8f(0x13d)](_0x3cf649,_0x12a730,_0x4ea981));}[_0x31eaa6(0x172)](_0x1b849c,_0x2886a3,_0x1fa8ae){const _0x97be0a=_0x31eaa6,_0x5f3ab9=_0x20ef6d(_0x1b849c,_0x69e021),_0x59fdd0=this[_0x97be0a(0x19d)][_0x97be0a(0x18a)][_0x97be0a(0x11b)](_0x97be0a(0x160));_0x5f3ab9[_0x97be0a(0x13c)][_0x97be0a(0x19e)]({'tooltip':_0x1fa8ae,'label':_0x1fa8ae,'icon':_0x45cd08}),_0x5f3ab9[_0x97be0a(0x13c)][_0x97be0a(0x14b)](_0x97be0a(0x126))['to'](_0x59fdd0,_0x97be0a(0x197)),_0x5f3ab9[_0x97be0a(0x13c)]['on'](_0x97be0a(0x119),()=>{const _0xda3a49=_0x97be0a;_0x59fdd0[_0xda3a49(0x119)](),this[_0xda3a49(0x19d)][_0xda3a49(0x14f)][_0xda3a49(0x194)][_0xda3a49(0x138)]();}),_0x38e1d3(_0x5f3ab9,_0x2886a3,{'role':_0x97be0a(0x129)});const _0x1a6c1a=[];for(const _0x1cc9c5 of _0x2886a3)he(_0x1cc9c5)&&_0x1a6c1a[_0x97be0a(0x1a2)](this[_0x97be0a(0x19d)][_0x97be0a(0x18a)][_0x97be0a(0x11b)](_0x1cc9c5[_0x97be0a(0x145)][_0x97be0a(0x144)]));const _0x58a5a9=_0x5f3ab9[_0x97be0a(0x13c)];return _0x58a5a9[_0x97be0a(0x146)][_0x97be0a(0x156)](_0x97be0a(0x14d)),_0x58a5a9[_0x97be0a(0x137)][_0x97be0a(0x156)](_0x97be0a(0x14d)),_0x58a5a9[_0x97be0a(0x146)][_0x97be0a(0x14b)](_0x97be0a(0x14d))['to'](_0x59fdd0,_0x97be0a(0x14d)),_0x58a5a9[_0x97be0a(0x137)][_0x97be0a(0x14b)](_0x97be0a(0x14d))[_0x97be0a(0x186)](_0x1a6c1a,_0x97be0a(0x14d),(..._0x39d356)=>_0x39d356[_0x97be0a(0x120)](_0x3150fc=>_0x3150fc)),_0x5f3ab9['on'](_0x97be0a(0x119),_0x4dd7c2=>{const _0x591869=_0x97be0a;this[_0x591869(0x19d)][_0x591869(0x119)](_0x4dd7c2[_0x591869(0x150)][_0x591869(0x144)]),this[_0x591869(0x19d)][_0x591869(0x14f)][_0x591869(0x194)][_0x591869(0x138)]();}),_0x5f3ab9;}[_0x31eaa6(0x13d)](_0xc4452d,_0x37a917,_0x360713){const _0x299811=_0x31eaa6,_0x35f5f4=new _0x198d00(_0xc4452d),_0x1e8e50=this[_0x299811(0x19d)][_0x299811(0x18a)][_0x299811(0x11b)](_0x299811(0x160));_0x35f5f4[_0x299811(0x13c)][_0x299811(0x19e)]({'label':_0x360713,'icon':_0x45cd08});const _0x15ed74=new _0x16a413(_0xc4452d);for(const _0x147fea of _0x37a917){if(_0x299811(0x16f)==_0x147fea[_0x299811(0x133)]){_0x15ed74[_0x299811(0x155)][_0x299811(0x15b)](new _0x465587(_0xc4452d));continue;}const _0x16d5d2=new _0x2bef30(_0xc4452d,_0x35f5f4),_0x5a98d5=new _0x5282ec(_0xc4452d),_0x45b872=_0x147fea[_0x299811(0x145)];_0x5a98d5[_0x299811(0x14b)](...Object[_0x299811(0x11f)](_0x45b872))['to'](_0x45b872),_0x5a98d5[_0x299811(0x187)](_0x299811(0x119))['to'](_0x35f5f4),_0x5a98d5['on'](_0x299811(0x119),()=>{const _0x3c4f44=_0x299811;this[_0x3c4f44(0x19d)][_0x3c4f44(0x119)](_0x45b872[_0x3c4f44(0x144)]),this[_0x3c4f44(0x19d)][_0x3c4f44(0x14f)][_0x3c4f44(0x194)][_0x3c4f44(0x138)]();}),_0x16d5d2[_0x299811(0x177)][_0x299811(0x15b)](_0x5a98d5),_0x15ed74[_0x299811(0x155)][_0x299811(0x15b)](_0x16d5d2);}return _0x35f5f4[_0x299811(0x14b)](_0x299811(0x14d))['to'](_0x1e8e50,_0x299811(0x14d)),_0x35f5f4[_0x299811(0x17d)][_0x299811(0x177)][_0x299811(0x15b)](_0x15ed74),_0x35f5f4;}[_0x31eaa6(0x14c)](_0x6717d0){const _0x5c0742=_0x31eaa6,_0x51dbd6=this[_0x5c0742(0x19d)],_0x7bc897=_0x51dbd6[_0x5c0742(0x136)],_0x2ca30e=_0x51dbd6[_0x5c0742(0x17f)][_0x5c0742(0x11b)](_0x5c0742(0x16d)),_0x33c145=_0x51dbd6[_0x5c0742(0x17f)][_0x5c0742(0x11b)](_0x5c0742(0x11e)),_0x4ab618=_0x51dbd6[_0x5c0742(0x17f)][_0x5c0742(0x11b)](_0x5c0742(0x115)),_0x4c71af=_0x51dbd6[_0x5c0742(0x17f)][_0x5c0742(0x11b)](_0x5de3ed)['me'],_0x44cb4b=_0x7bc897[_0x5c0742(0x11b)](_0x5c0742(0x160))[_0x5c0742(0x12b)],{CommentsListView:_0x4dab81,CommentThreadInputView:_0x5dcad5}=_0x51dbd6[_0x5c0742(0x17f)][_0x5c0742(0x11b)](_0x5c0742(0x173));let _0x405ead,_0x5902d0;this[_0x5c0742(0x18f)][_0x5c0742(0x17e)](_0x6717d0['id'])?(_0x5902d0=this[_0x5c0742(0x18f)][_0x5c0742(0x11b)](_0x6717d0['id']),_0x405ead=_0x5902d0[_0x5c0742(0x183)]):(_0x405ead=new _0x44cb4b(_0x51dbd6[_0x5c0742(0x195)],_0x6717d0,_0x4c71af,{'disableComments':this[_0x5c0742(0x12e)],'editorConfig':_0x7bc897[_0x5c0742(0x11b)](_0x5c0742(0x184)),'maxCommentsWhenCollapsed':_0x7bc897[_0x5c0742(0x11b)](_0x5c0742(0x132)),'maxThreadTotalWeight':_0x7bc897[_0x5c0742(0x11b)](_0x5c0742(0x158)),'maxCommentCharsWhenCollapsed':_0x7bc897[_0x5c0742(0x11b)](_0x5c0742(0x179)),'formatDateTime':_0x37b0bd(_0x7bc897[_0x5c0742(0x11b)](_0x5c0742(0x195))),'CommentView':_0x7bc897[_0x5c0742(0x11b)](_0x5c0742(0x142))[_0x5c0742(0x19c)],'CommentsListView':_0x4dab81,'CommentThreadInputView':_0x5dcad5}),_0x405ead[_0x5c0742(0x128)]['on'](_0x5c0742(0x119),()=>{const _0x54e952=_0x5c0742;_0x51dbd6[_0x54e952(0x14f)][_0x54e952(0x194)][_0x54e952(0x138)]();}),_0x405ead[_0x5c0742(0x191)]['on'](_0x5c0742(0x119),()=>{const _0x246e07=_0x5c0742;_0x51dbd6[_0x246e07(0x14f)][_0x246e07(0x194)][_0x246e07(0x138)]();}),_0x5902d0=_0x2ca30e[_0x5c0742(0x188)](this[_0x5c0742(0x19d)][_0x5c0742(0x195)],_0x405ead),_0x5902d0[_0x5c0742(0x14b)](_0x5c0742(0x131))['to'](_0x405ead,_0x5c0742(0x131)),_0x5902d0[_0x5c0742(0x14b)](_0x5c0742(0x178))['to'](_0x405ead),_0x5902d0[_0x5c0742(0x14b)](_0x5c0742(0x133))['to'](_0x405ead,_0x5c0742(0x133),_0x2fd541=>_0x5c0742(0x17b)+_0x2fd541),this[_0x5c0742(0x174)](_0x405ead,_0x5c0742(0x1a0),()=>{const _0x4ea505=_0x5c0742;_0x51dbd6[_0x4ea505(0x14f)][_0x4ea505(0x194)][_0x4ea505(0x138)]();},{'priority':_0x5c0742(0x11a)}),this[_0x5c0742(0x18f)][_0x5c0742(0x19e)](_0x6717d0['id'],_0x5902d0));const _0x3c034b=_0x33c145[_0x5c0742(0x18b)](_0x6717d0[_0x5c0742(0x1a1)],_0x405ead),_0x7b3513=new _0x291af7(_0x51dbd6,_0x6717d0,_0x405ead,_0x3c034b),_0xac56d0=_0x6717d0[_0x5c0742(0x11c)]()[_0x5c0742(0x16a)](_0x276016=>_0x276016[_0x5c0742(0x14a)]);_0x405ead[_0x5c0742(0x169)]=_0x51dbd6[_0x5c0742(0x17f)][_0x5c0742(0x11b)](_0x5c0742(0x11d))[_0x5c0742(0x121)][_0x5c0742(0x130)](_0xac56d0),this[_0x5c0742(0x1a7)][_0x5c0742(0x19e)](_0x6717d0,_0x7b3513),this[_0x5c0742(0x17a)][_0x5c0742(0x19e)](_0x405ead,_0x7b3513);const _0x57549b=_0x2ca30e[_0x5c0742(0x164)]({'view':_0x5902d0,'target':()=>{const _0x3bca99=_0x5c0742,_0x243692=[],_0x5312b2=_0x6717d0[_0x3bca99(0x11c)]()[_0x3bca99(0x16a)](_0x31bc6b=>_0x31bc6b[_0x3bca99(0x14a)]);for(const _0x15f6ed of _0x5312b2)_0x243692[_0x3bca99(0x1a2)](..._0x15f6ed[_0x3bca99(0x12f)]());return _0x122ac8(_0x51dbd6[_0x3bca99(0x14f)],_0x243692);},'type':()=>_0x5c0742(0x17b)+_0x7b3513[_0x5c0742(0x194)][_0x5c0742(0x133)]});_0x33c145[_0x5c0742(0x18d)](_0x405ead,_0x57549b),_0x2ca30e[_0x5c0742(0x15b)](_0x57549b),_0x4ab618[_0x5c0742(0x163)](_0x57549b);}[_0x31eaa6(0x113)](_0x39f1d5){const _0x1a3187=_0x31eaa6,_0x21d0a0=this[_0x1a3187(0x19d)][_0x1a3187(0x17f)][_0x1a3187(0x11b)](_0x1a3187(0x11e)),_0x25bc82=this[_0x1a3187(0x19d)][_0x1a3187(0x17f)][_0x1a3187(0x11b)](_0x1a3187(0x16d)),_0x3d8d15=this[_0x1a3187(0x1a7)][_0x1a3187(0x11b)](_0x39f1d5),_0x27cc0c=_0x3d8d15[_0x1a3187(0x194)],_0x24b5e0=_0x25bc82[_0x1a3187(0x124)](_0x27cc0c);_0x21d0a0[_0x1a3187(0x167)](_0x27cc0c),_0x24b5e0&&_0x25bc82[_0x1a3187(0x140)](_0x24b5e0),this[_0x1a3187(0x1a7)][_0x1a3187(0x176)](_0x39f1d5),this[_0x1a3187(0x17a)][_0x1a3187(0x176)](_0x27cc0c),_0x3d8d15[_0x1a3187(0x196)]();}[_0x31eaa6(0x16c)](_0x9b5020){const _0x1a7cb1=_0x31eaa6;if(!_0x9b5020[_0x1a7cb1(0x14a)]||!this[_0x1a7cb1(0x1a7)][_0x1a7cb1(0x17e)](_0x9b5020))return;const _0x25b18b=this[_0x1a7cb1(0x19d)][_0x1a7cb1(0x17f)][_0x1a7cb1(0x11b)](_0x1a7cb1(0x11d)),_0xa36da1=this[_0x1a7cb1(0x1a7)][_0x1a7cb1(0x11b)](_0x9b5020),_0x127d06=_0x9b5020[_0x1a7cb1(0x11c)]();_0xa36da1[_0x1a7cb1(0x194)][_0x1a7cb1(0x169)]=_0x25b18b[_0x1a7cb1(0x121)][_0x1a7cb1(0x130)](_0x127d06);}[_0x31eaa6(0x16e)](){const _0x27120a=_0x31eaa6;this[_0x27120a(0x19d)][_0x27120a(0x175)][_0x27120a(0x19e)](_0x376f49,(_0x2aa9fd,_0x467202)=>{const _0x3eb20f=_0x27120a,_0x114b98=this[_0x3eb20f(0x19d)][_0x3eb20f(0x17f)][_0x3eb20f(0x11b)](_0x256d19),_0x4a6e19=this[_0x3eb20f(0x19d)][_0x3eb20f(0x17f)][_0x3eb20f(0x11b)](_0x3d3986);if(!_0x4a6e19[_0x3eb20f(0x152)][_0x3eb20f(0x178)])return;const {id:_0x59ad0f}=_0x4a6e19[_0x3eb20f(0x13a)](_0x4a6e19[_0x3eb20f(0x152)][0x0]),_0x50676f=_0x114b98[_0x3eb20f(0x159)](_0x59ad0f);_0x50676f&&(this[_0x3eb20f(0x1a7)][_0x3eb20f(0x11b)](_0x50676f)[_0x3eb20f(0x194)][_0x3eb20f(0x138)](),_0x467202());});}[_0x31eaa6(0x196)](){const _0x2f53aa=_0x31eaa6;for(const _0x216ac6 of this[_0x2f53aa(0x1a7)][_0x2f53aa(0x11f)]())this[_0x2f53aa(0x113)](_0x216ac6);for(const _0x10d42e of this[_0x2f53aa(0x18f)][_0x2f53aa(0x1a5)]())_0x10d42e[_0x2f53aa(0x183)][_0x2f53aa(0x196)]();super[_0x2f53aa(0x196)]();}}function he(_0x3339c9){const _0x352d3b=_0x31eaa6;return _0x352d3b(0x145)in _0x3339c9;}
|
|
23
|
+
const _0xc57291=_0x3394;function _0x3394(_0x5068d2,_0x2ed96c){const _0x416690=_0x4166();return _0x3394=function(_0x339419,_0x2e0cb0){_0x339419=_0x339419-0x1b0;let _0x58e5cc=_0x416690[_0x339419];return _0x58e5cc;},_0x3394(_0x5068d2,_0x2ed96c);}(function(_0x3258b2,_0x337b85){const _0x13d76b=_0x3394,_0x101978=_0x3258b2();while(!![]){try{const _0x285680=parseInt(_0x13d76b(0x210))/0x1+parseInt(_0x13d76b(0x1ec))/0x2*(parseInt(_0x13d76b(0x21f))/0x3)+-parseInt(_0x13d76b(0x221))/0x4*(parseInt(_0x13d76b(0x1b1))/0x5)+parseInt(_0x13d76b(0x23d))/0x6+-parseInt(_0x13d76b(0x230))/0x7+-parseInt(_0x13d76b(0x1d8))/0x8*(-parseInt(_0x13d76b(0x207))/0x9)+parseInt(_0x13d76b(0x1cf))/0xa;if(_0x285680===_0x337b85)break;else _0x101978['push'](_0x101978['shift']());}catch(_0x36595c){_0x101978['push'](_0x101978['shift']());}}}(_0x4166,0xd8eba));import{Plugin as _0x4a97df}from'ckeditor5/src/core.js';import{Collection as _0x2e97b0}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x290dd9,createDropdown as _0x19b6f5,ListSeparatorView as _0x423ad8,MenuBarMenuView as _0x212775,MenuBarMenuListView as _0x3200de,MenuBarMenuListItemView as _0x344e58,MenuBarMenuListItemButtonView as _0x96a3d0,SplitButtonView as _0xce7b7a,ViewModel as _0x248127}from'ckeditor5/src/ui.js';function _0x4166(){const _0xb442d9=['reduce','discardSelectedSuggestions','clear','model','listenTo','Accept\x20all\x20suggestions','SuggestionThreadView','getRanges','actionView','getByInnerView','menuitemcheckbox','67191oBpAzk','button','1004TXRtgQ','Track\x20changes','EditorAnnotations','getSuggestion','commandName','refreshSelectedViews','trackChanges.SuggestionThreadView','_addUIComponentsToFactory','length','stopListening','trackChanges','_updateController','get','_splitMarkerName','init','2308992uYeYBT','view','registerAnnotation','isMultiRange','_createToolbarButton','menuitem','comments.maxThreadTotalWeight','from','type','isOn','acceptAllSuggestions','addSourceCollector','keystrokes','2669274ZVkJjz','low','Discard\x20all\x20selected\x20suggestions','_handleControllerBuffer','acceptButton','source','suggestionUnloaded','_handleSuggestionControllerDelayed','pluginName','escape','arrowView','discardAllSuggestions','createAnnotationView','descriptionFactory','33505YXBuLH','head','plugins','has','editing','keys','menuBar:trackChanges','delegate','suggestionLoaded','comments','locale','values','acceptSelectedSuggestions','remove','suggestionChanged','_refreshActiveMarkers','componentFactory','_viewToController','_suggestionToController','separator','delete','createAnnotation','suggestionView','trackChanges.disableComments','requires','getJoined','comments.editorConfig','getDescriptions','config','change:activeAnnotations','12593740jBYKLw','focus','toMany','getMarkerNames','push','filter','commentsListView','_disableComments','children','176adQOkt','menu','_bindAnnotationToEditors','hasSuggestion','activeAnnotations','isEnabled','CommentView','some','Annotations','trackChanges.SuggestionView','_initializeController','execute','TrackChangesUI','set','Accept\x20all\x20selected\x20suggestions','editor','isInContent','switchbutton','_createMenuBarMenu','createCommentThreadController','82MXTZIE','add','define','_annotationViews','previous','innerView','CommentsRepository','bind','commentThread','discardButton','size','items','TrackChangesEditing','commands','suggestion-','lowest','descriptionParts','addComment','Discard\x20all\x20suggestions','destroy','comments.maxCommentCharsWhenCollapsed','_unbindEditors','SuggestionView','buttonView','panelView','change:previous','comments.maxCommentsWhenCollapsed','62253jyslzZ','getMarkers','getAllAdjacentSuggestions','mainView','isDirty','getFirstRange','_destroyController','_initKeyboardNavigationToThread','CommentsUI','125609MyqePy','unbind','value','activeMarkers'];_0x4166=function(){return _0xb442d9;};return _0x4166();}import{Users as _0x379e0d,getDateTimeFormatter as _0x42d582,getAllMarkersDomElementsSorted as _0x1bd265,ENTER_THREAD_KEYSTROKE as _0x1e8625}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5028c0 from'./trackchangesediting.js';import _0x23a2a2 from'./ui/suggestioncontroller.js';import _0x57c9e9 from'./ui/view/suggestionthreadview.js';import _0x140076 from'./ui/view/suggestionview.js';import{getTranslation as _0x2233bd}from'./utils/common-translations.js';import _0x9bc3d8 from'./trackchanges.js';import _0x5479ef from'../theme/icons/track-changes.svg';export default class d extends _0x4a97df{static get[_0xc57291(0x1c9)](){const _0x5cdc68=_0xc57291;return[_0x5028c0,_0x379e0d,_0x5cdc68(0x1f2),_0x5cdc68(0x1e0),_0x5cdc68(0x223)];}static get[_0xc57291(0x245)](){const _0x44e7bf=_0xc57291;return _0x44e7bf(0x1e4);}constructor(_0x2f6ab9){const _0x168816=_0xc57291;super(_0x2f6ab9),this[_0x168816(0x1c3)]=new Map(),this[_0x168816(0x1c2)]=new Map(),this[_0x168816(0x1ef)]=new Map(),this[_0x168816(0x240)]=new Map();const _0x553dc6=this[_0x168816(0x1e7)][_0x168816(0x1cd)];_0x553dc6[_0x168816(0x1ee)](_0x168816(0x227),_0x57c9e9),_0x553dc6[_0x168816(0x1ee)](_0x168816(0x1e1),_0x140076),_0x553dc6[_0x168816(0x1ee)](_0x168816(0x1c8),!0x1),this[_0x168816(0x1d6)]=_0x553dc6[_0x168816(0x22d)](_0x168816(0x1c8)),this[_0x168816(0x20e)]();}[_0xc57291(0x244)](_0x24639c,_0x3cc398){const _0x3e102d=_0xc57291;0x0===this[_0x3e102d(0x240)][_0x3e102d(0x1f6)]&&setTimeout(()=>{const _0x3b85f6=_0x3e102d;for(const [_0x59a322,_0x26f097]of this[_0x3b85f6(0x240)]){const _0x22c1cb=this[_0x3b85f6(0x1c3)][_0x3b85f6(0x1b4)](_0x59a322);_0x22c1cb||_0x26f097?_0x22c1cb&&_0x26f097&&this[_0x3b85f6(0x20d)](_0x59a322):this[_0x3b85f6(0x1e2)](_0x59a322);}this[_0x3b85f6(0x240)][_0x3b85f6(0x216)](),this[_0x3b85f6(0x1e7)][_0x3b85f6(0x1b3)][_0x3b85f6(0x22d)](_0x3b85f6(0x223))[_0x3b85f6(0x226)](),this[_0x3b85f6(0x1c0)]();},0xa),this[_0x3e102d(0x240)][_0x3e102d(0x1e5)](_0x24639c,_0x3cc398);}[_0xc57291(0x22f)](){const _0x2762ee=_0xc57291,_0x284d15=this[_0x2762ee(0x1e7)],_0x2ad57b=_0x284d15[_0x2762ee(0x1b3)][_0x2762ee(0x22d)](_0x2762ee(0x1f8)),_0x56d048=_0x284d15[_0x2762ee(0x1b3)][_0x2762ee(0x22d)](_0x2762ee(0x1e0)),_0x2eea64=_0x284d15[_0x2762ee(0x1b3)][_0x2762ee(0x22d)](_0x2762ee(0x223)),_0x5b3144=_0x284d15[_0x2762ee(0x1b3)][_0x2762ee(0x22d)](_0x2762ee(0x1f2));this[_0x2762ee(0x228)](),_0x2eea64[_0x2762ee(0x23b)](()=>{const _0x10fe21=_0x2762ee,_0xeefb22=[];for(const [_0x253971,_0x202b81]of Array[_0x10fe21(0x237)](this[_0x10fe21(0x1c3)])){const _0x16ec26=_0x253971[_0x10fe21(0x209)](),_0x2b162c=[];for(const _0x4ab658 of _0x16ec26){if(!_0x4ab658[_0x10fe21(0x1e8)])continue;if(_0x4ab658[_0x10fe21(0x233)]){_0x2b162c[_0x10fe21(0x1d3)](..._0x4ab658[_0x10fe21(0x21b)]());continue;}const _0x47dc9e=_0x4ab658[_0x10fe21(0x20c)]();if(_0x2b162c[_0x10fe21(0x229)]>0x0){const _0x28ff2d=_0x2b162c[0x0][_0x10fe21(0x1ca)](_0x47dc9e);if(_0x28ff2d){_0x2b162c[0x0]=_0x28ff2d;continue;}}_0x2b162c[_0x10fe21(0x1d3)](_0x47dc9e);}_0xeefb22[_0x10fe21(0x1d3)]([_0x202b81[_0x10fe21(0x231)],_0x2b162c]);}return _0xeefb22;}),this[_0x2762ee(0x218)](_0x2ad57b,_0x2762ee(0x1b9),(_0x44b413,_0xe1d66d)=>{const _0x359c81=_0x2762ee;this[_0x359c81(0x218)](_0xe1d66d,_0x359c81(0x205),(_0xceceac,_0x59eec1,_0x5abec4,_0x321ac0)=>{const _0x597915=_0x359c81;_0xe1d66d[_0x597915(0x1e8)]&&(null==_0x5abec4?(this[_0x597915(0x22c)](_0x321ac0[_0x597915(0x1b2)]),this[_0x597915(0x244)](_0xe1d66d,!0x1)):(this[_0x597915(0x22c)](_0x5abec4[_0x597915(0x1b2)]),null==_0x321ac0&&this[_0x597915(0x244)](_0xe1d66d,!0x0)));}),null!==_0xe1d66d[_0x359c81(0x1f0)]?this[_0x359c81(0x22c)](_0xe1d66d[_0x359c81(0x1b2)]):this[_0x359c81(0x244)](_0xe1d66d,!0x1);}),this[_0x2762ee(0x218)](_0x2ad57b,_0x2762ee(0x243),(_0x1fe8bf,_0x40ee35,_0x56bf9a)=>{const _0x262f95=_0x2762ee;this[_0x262f95(0x22a)](_0x40ee35,_0x262f95(0x205)),this[_0x262f95(0x240)][_0x262f95(0x1c5)](_0x40ee35),this[_0x262f95(0x1c3)][_0x262f95(0x1b4)](_0x40ee35)&&this[_0x262f95(0x20d)](_0x40ee35),_0x56bf9a&&this[_0x262f95(0x22c)](_0x56bf9a[_0x262f95(0x1b2)]);}),this[_0x2762ee(0x218)](_0x2ad57b,_0x2762ee(0x1bf),(_0x40329c,_0x5cfa26)=>{const _0x6e2fa0=_0x2762ee;this[_0x6e2fa0(0x22c)](_0x5cfa26);}),this[_0x2762ee(0x218)](_0x56d048,_0x2762ee(0x1ce),()=>{const _0x1a14a1=_0x2762ee;this[_0x1a14a1(0x1c0)]();}),this[_0x2762ee(0x218)](_0x5b3144,_0x2762ee(0x1fd),(_0x558671,{threadId:_0xc7d4fe,isFromAdapter:_0x4eff6f})=>{const _0x4542e4=_0x2762ee;if(_0x4eff6f||!_0x2ad57b[_0x4542e4(0x1db)](_0xc7d4fe))return;const _0x2a6ffd=_0x2ad57b[_0x4542e4(0x224)](_0xc7d4fe);this[_0x4542e4(0x1c3)][_0x4542e4(0x22d)](_0x2a6ffd)[_0x4542e4(0x231)][_0x4542e4(0x1d5)][_0x4542e4(0x1d0)](-0x1);},{'priority':_0x2762ee(0x1fb)});}[_0xc57291(0x1c0)](){const _0x13776f=_0xc57291,_0x3c6876=this[_0x13776f(0x1e7)][_0x13776f(0x1b3)][_0x13776f(0x22d)](_0x13776f(0x1e0)),_0x464e9e=this[_0x13776f(0x1e7)][_0x13776f(0x1b3)][_0x13776f(0x22d)](_0x13776f(0x1f8)),_0x26047d=Array[_0x13776f(0x237)](_0x3c6876[_0x13776f(0x1dc)],_0x5ce832=>_0x5ce832[_0x13776f(0x1f1)])[_0x13776f(0x1d4)](_0x1fbbfc=>this[_0x13776f(0x1c2)][_0x13776f(0x1b4)](_0x1fbbfc)),_0x17dbd8=[];for(const _0x3c07fc of _0x26047d){const _0x1a16d7=this[_0x13776f(0x1c2)][_0x13776f(0x22d)](_0x3c07fc)[_0x13776f(0x217)][_0x13776f(0x209)]();_0x17dbd8[_0x13776f(0x1d3)](..._0x1a16d7[_0x13776f(0x214)]((_0x1681da,_0x1beac1)=>[..._0x1681da,..._0x1beac1[_0x13776f(0x1d2)]()],[]));}_0x464e9e[_0x13776f(0x213)]=_0x17dbd8;}[_0xc57291(0x228)](){const _0x7738ac=_0xc57291,_0x390570=this[_0x7738ac(0x1e7)],_0x39f1dd=_0x390570[_0x7738ac(0x1bb)],_0x251519=_0x2233bd(_0x39f1dd,_0x7738ac(0x222)),_0x509936=new _0x2e97b0([{'type':_0x7738ac(0x1e9),'model':new _0x248127({'withText':!0x0,'isToggleable':!0x0,'label':_0x251519,'commandName':_0x7738ac(0x22b),'role':_0x7738ac(0x21e)})},{'type':_0x7738ac(0x1c4)},{'type':_0x7738ac(0x220),'model':new _0x248127({'withText':!0x0,'label':_0x2233bd(_0x39f1dd,_0x7738ac(0x219)),'commandName':_0x7738ac(0x23a),'role':_0x7738ac(0x235)})},{'type':_0x7738ac(0x220),'model':new _0x248127({'withText':!0x0,'label':_0x2233bd(_0x39f1dd,_0x7738ac(0x1e6)),'commandName':_0x7738ac(0x1bd),'role':_0x7738ac(0x235)})},{'type':_0x7738ac(0x220),'model':new _0x248127({'withText':!0x0,'label':_0x2233bd(_0x39f1dd,_0x7738ac(0x1fe)),'commandName':_0x7738ac(0x248),'role':_0x7738ac(0x235)})},{'type':_0x7738ac(0x220),'model':new _0x248127({'withText':!0x0,'label':_0x2233bd(_0x39f1dd,_0x7738ac(0x23f)),'commandName':_0x7738ac(0x215),'role':_0x7738ac(0x235)})}]);for(const _0x769d54 of _0x509936)if(me(_0x769d54)){const _0x2f8425=_0x390570[_0x7738ac(0x1f9)][_0x7738ac(0x22d)](_0x769d54[_0x7738ac(0x217)][_0x7738ac(0x225)]);_0x769d54[_0x7738ac(0x217)][_0x7738ac(0x1f3)](_0x7738ac(0x239),_0x7738ac(0x1dd))['to'](_0x2f8425,_0x7738ac(0x212),_0x7738ac(0x1dd));}_0x390570['ui'][_0x7738ac(0x1c1)][_0x7738ac(0x1ed)](_0x7738ac(0x22b),_0x4193fd=>this[_0x7738ac(0x234)](_0x4193fd,_0x509936,_0x251519)),_0x390570['ui'][_0x7738ac(0x1c1)][_0x7738ac(0x1ed)](_0x7738ac(0x1b7),_0x4f1887=>this[_0x7738ac(0x1ea)](_0x4f1887,_0x509936,_0x251519));}[_0xc57291(0x234)](_0x5a5458,_0x2f33fb,_0x58a132){const _0x3fa594=_0xc57291,_0x30cb6b=_0x19b6f5(_0x5a5458,_0xce7b7a),_0x469dcc=this[_0x3fa594(0x1e7)][_0x3fa594(0x1f9)][_0x3fa594(0x22d)](_0x3fa594(0x22b));_0x30cb6b[_0x3fa594(0x203)][_0x3fa594(0x1e5)]({'tooltip':_0x58a132,'label':_0x58a132,'icon':_0x5479ef}),_0x30cb6b[_0x3fa594(0x203)][_0x3fa594(0x1f3)](_0x3fa594(0x239))['to'](_0x469dcc,_0x3fa594(0x212)),_0x30cb6b[_0x3fa594(0x203)]['on'](_0x3fa594(0x1e3),()=>{const _0x5e19e2=_0x3fa594;_0x469dcc[_0x5e19e2(0x1e3)](),this[_0x5e19e2(0x1e7)][_0x5e19e2(0x1b5)][_0x5e19e2(0x231)][_0x5e19e2(0x1d0)]();}),_0x290dd9(_0x30cb6b,_0x2f33fb,{'role':_0x3fa594(0x1d9)});const _0x56ddff=[];for(const _0x2d9855 of _0x2f33fb)me(_0x2d9855)&&_0x56ddff[_0x3fa594(0x1d3)](this[_0x3fa594(0x1e7)][_0x3fa594(0x1f9)][_0x3fa594(0x22d)](_0x2d9855[_0x3fa594(0x217)][_0x3fa594(0x225)]));const _0x9d17a8=_0x30cb6b[_0x3fa594(0x203)];return _0x9d17a8[_0x3fa594(0x21c)][_0x3fa594(0x211)](_0x3fa594(0x1dd)),_0x9d17a8[_0x3fa594(0x247)][_0x3fa594(0x211)](_0x3fa594(0x1dd)),_0x9d17a8[_0x3fa594(0x21c)][_0x3fa594(0x1f3)](_0x3fa594(0x1dd))['to'](_0x469dcc,_0x3fa594(0x1dd)),_0x9d17a8[_0x3fa594(0x247)][_0x3fa594(0x1f3)](_0x3fa594(0x1dd))[_0x3fa594(0x1d1)](_0x56ddff,_0x3fa594(0x1dd),(..._0x531bc0)=>_0x531bc0[_0x3fa594(0x1df)](_0x130e86=>_0x130e86)),_0x30cb6b['on'](_0x3fa594(0x1e3),_0x30d0a4=>{const _0x4a7a52=_0x3fa594;this[_0x4a7a52(0x1e7)][_0x4a7a52(0x1e3)](_0x30d0a4[_0x4a7a52(0x242)][_0x4a7a52(0x225)]),this[_0x4a7a52(0x1e7)][_0x4a7a52(0x1b5)][_0x4a7a52(0x231)][_0x4a7a52(0x1d0)]();}),_0x30cb6b;}[_0xc57291(0x1ea)](_0x12aae0,_0x17989f,_0x2b87c7){const _0x3e3422=_0xc57291,_0x36244=new _0x212775(_0x12aae0),_0x431477=this[_0x3e3422(0x1e7)][_0x3e3422(0x1f9)][_0x3e3422(0x22d)](_0x3e3422(0x22b));_0x36244[_0x3e3422(0x203)][_0x3e3422(0x1e5)]({'label':_0x2b87c7,'icon':_0x5479ef});const _0x503934=new _0x3200de(_0x12aae0);for(const _0x5023fc of _0x17989f){if(_0x3e3422(0x1c4)==_0x5023fc[_0x3e3422(0x238)]){_0x503934[_0x3e3422(0x1f7)][_0x3e3422(0x1ed)](new _0x423ad8(_0x12aae0));continue;}const _0x12c5fa=new _0x344e58(_0x12aae0,_0x36244),_0x4f0f01=new _0x96a3d0(_0x12aae0),_0x550e54=_0x5023fc[_0x3e3422(0x217)];_0x4f0f01[_0x3e3422(0x1f3)](...Object[_0x3e3422(0x1b6)](_0x550e54))['to'](_0x550e54),_0x4f0f01[_0x3e3422(0x1b8)](_0x3e3422(0x1e3))['to'](_0x36244),_0x4f0f01['on'](_0x3e3422(0x1e3),()=>{const _0x20a1b4=_0x3e3422;this[_0x20a1b4(0x1e7)][_0x20a1b4(0x1e3)](_0x550e54[_0x20a1b4(0x225)]),this[_0x20a1b4(0x1e7)][_0x20a1b4(0x1b5)][_0x20a1b4(0x231)][_0x20a1b4(0x1d0)]();}),_0x12c5fa[_0x3e3422(0x1d7)][_0x3e3422(0x1ed)](_0x4f0f01),_0x503934[_0x3e3422(0x1f7)][_0x3e3422(0x1ed)](_0x12c5fa);}return _0x36244[_0x3e3422(0x1f3)](_0x3e3422(0x1dd))['to'](_0x431477,_0x3e3422(0x1dd)),_0x36244[_0x3e3422(0x204)][_0x3e3422(0x1d7)][_0x3e3422(0x1ed)](_0x503934),_0x36244;}[_0xc57291(0x1e2)](_0x4659f8){const _0xc62d4=_0xc57291,_0x90b2cd=this[_0xc62d4(0x1e7)],_0x1bb865=_0x90b2cd[_0xc62d4(0x1cd)],_0x2f0f59=_0x90b2cd[_0xc62d4(0x1b3)][_0xc62d4(0x22d)](_0xc62d4(0x1e0)),_0x3cebc4=_0x90b2cd[_0xc62d4(0x1b3)][_0xc62d4(0x22d)](_0xc62d4(0x1f2)),_0x136dcb=_0x90b2cd[_0xc62d4(0x1b3)][_0xc62d4(0x22d)](_0xc62d4(0x223)),_0x12b838=_0x90b2cd[_0xc62d4(0x1b3)][_0xc62d4(0x22d)](_0x379e0d)['me'],_0x2376a1=_0x1bb865[_0xc62d4(0x22d)](_0xc62d4(0x22b))[_0xc62d4(0x21a)],_0x59b3aa=_0x1bb865[_0xc62d4(0x22d)](_0xc62d4(0x22b))[_0xc62d4(0x202)],{CommentsListView:_0x2ea7fc,CommentThreadInputView:_0x5bcf93}=_0x90b2cd[_0xc62d4(0x1b3)][_0xc62d4(0x22d)](_0xc62d4(0x20f));let _0x5ed497,_0x28dd15;this[_0xc62d4(0x1ef)][_0xc62d4(0x1b4)](_0x4659f8['id'])?(_0x28dd15=this[_0xc62d4(0x1ef)][_0xc62d4(0x22d)](_0x4659f8['id']),_0x5ed497=_0x28dd15[_0xc62d4(0x20a)]):(_0x5ed497=new _0x2376a1(_0x90b2cd[_0xc62d4(0x1bb)],_0x4659f8,_0x12b838,{'disableComments':this[_0xc62d4(0x1d6)],'editorConfig':_0x1bb865[_0xc62d4(0x22d)](_0xc62d4(0x1cb)),'maxCommentsWhenCollapsed':_0x1bb865[_0xc62d4(0x22d)](_0xc62d4(0x206)),'maxThreadTotalWeight':_0x1bb865[_0xc62d4(0x22d)](_0xc62d4(0x236)),'maxCommentCharsWhenCollapsed':_0x1bb865[_0xc62d4(0x22d)](_0xc62d4(0x200)),'formatDateTime':_0x42d582(_0x1bb865[_0xc62d4(0x22d)](_0xc62d4(0x1bb))),'CommentView':_0x1bb865[_0xc62d4(0x22d)](_0xc62d4(0x1ba))[_0xc62d4(0x1de)],'CommentsListView':_0x2ea7fc,'CommentThreadInputView':_0x5bcf93,'SuggestionView':_0x59b3aa}),_0x5ed497[_0xc62d4(0x1c7)][_0xc62d4(0x241)]['on'](_0xc62d4(0x1e3),()=>{const _0x36c663=_0xc62d4;_0x90b2cd[_0x36c663(0x1b5)][_0x36c663(0x231)][_0x36c663(0x1d0)]();}),_0x5ed497[_0xc62d4(0x1c7)][_0xc62d4(0x1f5)]['on'](_0xc62d4(0x1e3),()=>{const _0x462e31=_0xc62d4;_0x90b2cd[_0x462e31(0x1b5)][_0x462e31(0x231)][_0x462e31(0x1d0)]();}),_0x28dd15=_0x2f0f59[_0xc62d4(0x249)](this[_0xc62d4(0x1e7)][_0xc62d4(0x1bb)],_0x5ed497),_0x28dd15[_0xc62d4(0x1f3)](_0xc62d4(0x20b))['to'](_0x5ed497,_0xc62d4(0x20b)),_0x28dd15[_0xc62d4(0x1f3)](_0xc62d4(0x229))['to'](_0x5ed497),_0x28dd15[_0xc62d4(0x1f3)](_0xc62d4(0x238))['to'](_0x5ed497,_0xc62d4(0x238),_0x5476d0=>_0xc62d4(0x1fa)+_0x5476d0),this[_0xc62d4(0x218)](_0x5ed497,_0xc62d4(0x246),()=>{const _0x41d8b9=_0xc62d4;_0x90b2cd[_0x41d8b9(0x1b5)][_0x41d8b9(0x231)][_0x41d8b9(0x1d0)]();},{'priority':_0xc62d4(0x23e)}),this[_0xc62d4(0x1ef)][_0xc62d4(0x1e5)](_0x4659f8['id'],_0x28dd15));const _0x1f8bec=_0x3cebc4[_0xc62d4(0x1eb)](_0x4659f8[_0xc62d4(0x1f4)],_0x5ed497),_0x2b0f3e=new _0x23a2a2(_0x90b2cd,_0x4659f8,_0x5ed497,_0x1f8bec),_0x5d73c4=_0x4659f8[_0xc62d4(0x209)]()[_0xc62d4(0x1d4)](_0x2379af=>_0x2379af[_0xc62d4(0x1e8)]);_0x5ed497[_0xc62d4(0x1fc)]=_0x90b2cd[_0xc62d4(0x1b3)][_0xc62d4(0x22d)](_0xc62d4(0x1f8))[_0xc62d4(0x1b0)][_0xc62d4(0x1cc)](_0x5d73c4),this[_0xc62d4(0x1c3)][_0xc62d4(0x1e5)](_0x4659f8,_0x2b0f3e),this[_0xc62d4(0x1c2)][_0xc62d4(0x1e5)](_0x5ed497,_0x2b0f3e);const _0x33cec9=_0x2f0f59[_0xc62d4(0x1c6)]({'view':_0x28dd15,'target':()=>{const _0x21a864=_0xc62d4,_0x278d29=[],_0x27964b=_0x4659f8[_0x21a864(0x209)]()[_0x21a864(0x1d4)](_0x3c4a37=>_0x3c4a37[_0x21a864(0x1e8)]);for(const _0x31bff3 of _0x27964b)_0x278d29[_0x21a864(0x1d3)](..._0x31bff3[_0x21a864(0x208)]());return _0x1bd265(_0x90b2cd[_0x21a864(0x1b5)],_0x278d29);},'type':()=>_0xc62d4(0x1fa)+_0x2b0f3e[_0xc62d4(0x231)][_0xc62d4(0x238)]});_0x3cebc4[_0xc62d4(0x1da)](_0x5ed497,_0x33cec9),_0x2f0f59[_0xc62d4(0x1ed)](_0x33cec9),_0x136dcb[_0xc62d4(0x232)](_0x33cec9);}[_0xc57291(0x20d)](_0x5a685c){const _0x5dd3df=_0xc57291,_0x59309f=this[_0x5dd3df(0x1e7)][_0x5dd3df(0x1b3)][_0x5dd3df(0x22d)](_0x5dd3df(0x1f2)),_0xa413a2=this[_0x5dd3df(0x1e7)][_0x5dd3df(0x1b3)][_0x5dd3df(0x22d)](_0x5dd3df(0x1e0)),_0xd2e0af=this[_0x5dd3df(0x1c3)][_0x5dd3df(0x22d)](_0x5a685c),_0x59851b=_0xd2e0af[_0x5dd3df(0x231)],_0x536551=_0xa413a2[_0x5dd3df(0x21d)](_0x59851b);_0x59309f[_0x5dd3df(0x201)](_0x59851b),_0x536551&&_0xa413a2[_0x5dd3df(0x1be)](_0x536551),this[_0x5dd3df(0x1c3)][_0x5dd3df(0x1c5)](_0x5a685c),this[_0x5dd3df(0x1c2)][_0x5dd3df(0x1c5)](_0x59851b),_0xd2e0af[_0x5dd3df(0x1ff)]();}[_0xc57291(0x22c)](_0x1f0e09){const _0x3512d8=_0xc57291;if(!_0x1f0e09[_0x3512d8(0x1e8)]||!this[_0x3512d8(0x1c3)][_0x3512d8(0x1b4)](_0x1f0e09))return;const _0x1d5376=this[_0x3512d8(0x1e7)][_0x3512d8(0x1b3)][_0x3512d8(0x22d)](_0x3512d8(0x1f8)),_0x49d7d5=this[_0x3512d8(0x1c3)][_0x3512d8(0x22d)](_0x1f0e09),_0x3cb714=_0x1f0e09[_0x3512d8(0x209)]();_0x49d7d5[_0x3512d8(0x231)][_0x3512d8(0x1fc)]=_0x1d5376[_0x3512d8(0x1b0)][_0x3512d8(0x1cc)](_0x3cb714);}[_0xc57291(0x20e)](){const _0x1aff07=_0xc57291;this[_0x1aff07(0x1e7)][_0x1aff07(0x23c)][_0x1aff07(0x1e5)](_0x1e8625,(_0x2944d1,_0xf0745c)=>{const _0x354bac=_0x1aff07,_0x2bea1c=this[_0x354bac(0x1e7)][_0x354bac(0x1b3)][_0x354bac(0x22d)](_0x9bc3d8),_0x398ea0=this[_0x354bac(0x1e7)][_0x354bac(0x1b3)][_0x354bac(0x22d)](_0x5028c0);if(!_0x398ea0[_0x354bac(0x213)][_0x354bac(0x229)])return;const {id:_0x4e269c}=_0x398ea0[_0x354bac(0x22e)](_0x398ea0[_0x354bac(0x213)][0x0]),_0x1869dc=_0x2bea1c[_0x354bac(0x224)](_0x4e269c);_0x1869dc&&(this[_0x354bac(0x1c3)][_0x354bac(0x22d)](_0x1869dc)[_0x354bac(0x231)][_0x354bac(0x1d0)](),_0xf0745c());});}[_0xc57291(0x1ff)](){const _0x5c2a97=_0xc57291;for(const _0x2b9979 of this[_0x5c2a97(0x1c3)][_0x5c2a97(0x1b6)]())this[_0x5c2a97(0x20d)](_0x2b9979);for(const _0xf218e6 of this[_0x5c2a97(0x1ef)][_0x5c2a97(0x1bc)]())_0xf218e6[_0x5c2a97(0x20a)][_0x5c2a97(0x1ff)]();super[_0x5c2a97(0x1ff)]();}}function me(_0x2afe31){const _0x5676f7=_0xc57291;return _0x5676f7(0x217)in _0x2afe31;}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
6
|
import type Suggestion from '../suggestion.js';
|
|
7
|
-
import type BaseSuggestionThreadView from './view/basesuggestionthreadview.js';
|
|
7
|
+
import type { default as BaseSuggestionThreadView } from './view/basesuggestionthreadview.js';
|
|
8
8
|
import type { CommentThreadController } from '@ckeditor/ckeditor5-comments';
|
|
9
9
|
declare const SuggestionController_base: {
|
|
10
10
|
new (): import("ckeditor5/src/utils.js").Observable;
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x18f3f9=_0x1aae;function _0xf517(){const _0x357d65=['isDirty','model','_editor','1260eVBOZY','add','1763111NREOdH','_acceptCommand','discardSuggestion','4tZlXVw','acceptSuggestion','get','bind','getRanges','_discardCommand','20286670GAnEnN','unbind','_setPendingAction','canDiscard','commands','9fxDTRr','_removePendingAction','isEnabled','_pendingAction','commentThreadController','change:isDirty','canEditAt','1211016UnfuIW','PENDING_ACTION_SUGGESTION','remove','locale','30695ysvrcu','plugins','execute','7761736XVnExH','1317760KrJlCf','view','listenTo','stopListening','PendingActions','canAccept','4881594EGYrRz','destroy'];_0xf517=function(){return _0x357d65;};return _0xf517();}(function(_0x35a3c7,_0x288ef4){const _0x35e6af=_0x1aae,_0x3fab8=_0x35a3c7();while(!![]){try{const _0x4fa3c8=parseInt(_0x35e6af(0xa9))/0x1+-parseInt(_0x35e6af(0xa1))/0x2+parseInt(_0x35e6af(0xaf))/0x3*(parseInt(_0x35e6af(0xb9))/0x4)+-parseInt(_0x35e6af(0xa5))/0x5*(-parseInt(_0x35e6af(0xb4))/0x6)+parseInt(_0x35e6af(0xb6))/0x7+-parseInt(_0x35e6af(0xa8))/0x8+-parseInt(_0x35e6af(0x9a))/0x9*(parseInt(_0x35e6af(0x95))/0xa);if(_0x4fa3c8===_0x288ef4)break;else _0x3fab8['push'](_0x3fab8['shift']());}catch(_0x37665c){_0x3fab8['push'](_0x3fab8['shift']());}}}(_0xf517,0xd73dd));import{ObservableMixin as _0x2cbf5d}from'ckeditor5/src/utils.js';function _0x1aae(_0x10e68a,_0x4fc1b3){const _0xf5171b=_0xf517();return _0x1aae=function(_0x1aae39,_0x46d2f7){_0x1aae39=_0x1aae39-0x95;let _0x5a1e31=_0xf5171b[_0x1aae39];return _0x5a1e31;},_0x1aae(_0x10e68a,_0x4fc1b3);}import{getTranslation as _0x5b5929}from'../utils/common-translations.js';export default class ae extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2cbf5d(){constructor(_0x415150,_0x428d67,_0x26f079,_0x490735){const _0x58041f=_0x1aae;super(),this[_0x58041f(0xb2)]=_0x428d67,this[_0x58041f(0xaa)]=_0x26f079,this[_0x58041f(0x9e)]=_0x490735,this[_0x58041f(0xb3)]=_0x415150,this[_0x58041f(0xb7)]=_0x415150[_0x58041f(0x99)][_0x58041f(0xbb)](_0x58041f(0xba)),this[_0x58041f(0xbe)]=_0x415150[_0x58041f(0x99)][_0x58041f(0xbb)](_0x58041f(0xb8)),this[_0x58041f(0xaa)][_0x58041f(0xbc)](_0x58041f(0x9c))['to'](this[_0x58041f(0xb7)],this[_0x58041f(0xbe)],(_0x3e0eb6,_0x288a19)=>_0x3e0eb6||_0x288a19),this[_0x58041f(0xaa)][_0x58041f(0xbc)](_0x58041f(0xae))['to'](this[_0x58041f(0xb7)],_0x58041f(0x9c),_0x3836f1=>_0x3836f1&&this[_0x58041f(0xb3)][_0x58041f(0xb2)][_0x58041f(0xa0)](_0x428d67[_0x58041f(0xbd)]())),this[_0x58041f(0xaa)][_0x58041f(0xbc)](_0x58041f(0x98))['to'](this[_0x58041f(0xbe)],_0x58041f(0x9c),_0x1c80ca=>_0x1c80ca&&this[_0x58041f(0xb3)][_0x58041f(0xb2)][_0x58041f(0xa0)](_0x428d67[_0x58041f(0xbd)]())),this[_0x58041f(0x9d)]=null,_0x26f079[_0x58041f(0xb1)]&&this[_0x58041f(0x97)](),this[_0x58041f(0xab)](_0x26f079,_0x58041f(0xba),()=>this[_0x58041f(0xba)]()),this[_0x58041f(0xab)](_0x26f079,_0x58041f(0xb8),()=>this[_0x58041f(0xb8)]()),this[_0x58041f(0xab)](_0x26f079,_0x58041f(0x9f),()=>{const _0x1cc5f8=_0x58041f;_0x26f079[_0x1cc5f8(0xb1)]?this[_0x1cc5f8(0x97)]():this[_0x1cc5f8(0x9b)]();});}[_0x18f3f9(0xba)](){const _0x969ad6=_0x18f3f9;this[_0x969ad6(0xb7)][_0x969ad6(0xa7)](this[_0x969ad6(0xb2)]['id']);}[_0x18f3f9(0xb8)](){const _0x7a3587=_0x18f3f9;this[_0x7a3587(0xbe)][_0x7a3587(0xa7)](this[_0x7a3587(0xb2)]['id']);}[_0x18f3f9(0xb0)](){const _0xe77f39=_0x18f3f9;this[_0xe77f39(0xaa)][_0xe77f39(0x96)](_0xe77f39(0x9c)),this[_0xe77f39(0xaa)][_0xe77f39(0x96)](_0xe77f39(0xae)),this[_0xe77f39(0xaa)][_0xe77f39(0x96)](_0xe77f39(0x98)),this[_0xe77f39(0xac)](),this[_0xe77f39(0x9e)][_0xe77f39(0xb0)](),this[_0xe77f39(0x9d)]&&this[_0xe77f39(0x9b)]();}[_0x18f3f9(0x97)](){const _0x19fb42=_0x18f3f9,_0x58f047=_0x5b5929(this[_0x19fb42(0xb3)][_0x19fb42(0xa4)],_0x19fb42(0xa2));this[_0x19fb42(0x9d)]=this[_0x19fb42(0xb3)][_0x19fb42(0xa6)][_0x19fb42(0xbb)](_0x19fb42(0xad))[_0x19fb42(0xb5)](_0x58f047);}[_0x18f3f9(0x9b)](){const _0x2af4b1=_0x18f3f9;null!==this[_0x2af4b1(0x9d)]&&this[_0x2af4b1(0xb3)][_0x2af4b1(0xa6)][_0x2af4b1(0xbb)](_0x2af4b1(0xad))[_0x2af4b1(0xa3)](this[_0x2af4b1(0x9d)]),this[_0x2af4b1(0x9d)]=null;}}
|
|
@@ -13,6 +13,7 @@ import type Suggestion from '../../suggestion.js';
|
|
|
13
13
|
import type { CommentsListView, CommentThreadInputView, CommentView } from '@ckeditor/ckeditor5-comments';
|
|
14
14
|
import { AriaDescriptionView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
15
15
|
import type { Description } from '../../suggestiondescriptionfactory.js';
|
|
16
|
+
import type SuggestionView from './suggestionview.js';
|
|
16
17
|
/**
|
|
17
18
|
* An abstract suggestion thread view class that should be used as a base for suggestion thread view implementations.
|
|
18
19
|
* It provides some behaviors, flags and building blocks to use when creating a custom suggestion thread view class.
|
|
@@ -168,7 +169,9 @@ export default abstract class BaseSuggestionThreadView extends View {
|
|
|
168
169
|
*/
|
|
169
170
|
export type AcceptSuggestionEvent = {
|
|
170
171
|
name: 'acceptSuggestion';
|
|
171
|
-
args: [
|
|
172
|
+
args: [
|
|
173
|
+
id: string
|
|
174
|
+
];
|
|
172
175
|
};
|
|
173
176
|
/**
|
|
174
177
|
* Fired when a user performed an action that should lead to discarding the suggestion.
|
|
@@ -181,7 +184,9 @@ export type AcceptSuggestionEvent = {
|
|
|
181
184
|
*/
|
|
182
185
|
export type DiscardSuggestionEvent = {
|
|
183
186
|
name: 'discardSuggestion';
|
|
184
|
-
args: [
|
|
187
|
+
args: [
|
|
188
|
+
id: string
|
|
189
|
+
];
|
|
185
190
|
};
|
|
186
191
|
/**
|
|
187
192
|
* Config used for suggestion thread views.
|
|
@@ -196,4 +201,5 @@ export interface SuggestionThreadConfig {
|
|
|
196
201
|
CommentView: typeof CommentView;
|
|
197
202
|
CommentsListView: typeof CommentsListView;
|
|
198
203
|
CommentThreadInputView: typeof CommentThreadInputView;
|
|
204
|
+
SuggestionView: typeof SuggestionView;
|
|
199
205
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bc543=_0xa878;function _0xa878(_0x90726e,_0x2ad4ee){const _0xb3ade2=_0xb3ad();return _0xa878=function(_0xa878a3,_0x1d5094){_0xa878a3=_0xa878a3-0x16a;let _0x32e9d5=_0xb3ade2[_0xa878a3];return _0x32e9d5;},_0xa878(_0x90726e,_0x2ad4ee);}(function(_0x38599f,_0x2dfab9){const _0x13d1e3=_0xa878,_0x167c29=_0x38599f();while(!![]){try{const _0x3e34a9=parseInt(_0x13d1e3(0x16c))/0x1+-parseInt(_0x13d1e3(0x186))/0x2+-parseInt(_0x13d1e3(0x1a2))/0x3+-parseInt(_0x13d1e3(0x177))/0x4*(parseInt(_0x13d1e3(0x173))/0x5)+parseInt(_0x13d1e3(0x17e))/0x6+parseInt(_0x13d1e3(0x195))/0x7*(parseInt(_0x13d1e3(0x197))/0x8)+parseInt(_0x13d1e3(0x189))/0x9*(parseInt(_0x13d1e3(0x1a3))/0xa);if(_0x3e34a9===_0x2dfab9)break;else _0x167c29['push'](_0x167c29['shift']());}catch(_0x37dfef){_0x167c29['push'](_0x167c29['shift']());}}}(_0xb3ad,0xe3454));import{FocusCycler as _0x547637,View as _0x4738ce,ViewCollection as _0x58a20f}from'ckeditor5/src/ui.js';import{FocusTracker as _0x5bdf6f,KeystrokeHandler as _0x1358e4}from'ckeditor5/src/utils.js';import{AriaDescriptionView as _0x621e0c,setupThreadKeyboardNavigation as _0x22b143}from'ckeditor5-collaboration/src/collaboration-core.js';function _0xb3ad(){const _0x50b34e=['CommentView','editorConfig','focusCycler','commentsListView','body','addComment','commentInputView','hasDirtyComment','focusTracker','assign','target','setData','_createCommentViews','submit','487848iKyUKB','removeComment','locale','destroy','delegate','isReadOnly','descriptionParts','485kRaKsX','canDiscard','value','keystrokes','44260DSnlOZ','fire','disableComments','textContent','_localUser','_config','authoredAt','1708026SzYtvD','canAccept','text/html','cancel','length','author','formatDateTime','isEnabled','1194506edUqam','element','ariaDescriptionView','423uegmWs','tab','parseFromString','updateComment','commentThreadInputView','shift+tab','focusables','name','map','isActive','render','_createCommentThreadInputView','7IhASwE','content','4551328wzATkR','bind','showInput','ariaLabel','disabledSubmit','SUGGESTION_THREAD_ARIA_LABEL','_model','editor','set','join','SUGGESTION_THREAD_DESCRIPTION','1635741UEUuvW','384100VJzGGu','commentThread','isDirty','focus'];_0xb3ad=function(){return _0x50b34e;};return _0xb3ad();}import{getTranslation as _0x3616e5}from'../../utils/common-translations.js';import{renderDescription as _0x4659c4}from'../../utils/utils.js';export default class us extends _0x4738ce{constructor(_0x1ac7c7,_0x1d02bf,_0x40bf90,_0x2815c2){const _0x1d6c69=_0xa878;super(_0x1ac7c7),this[_0x1d6c69(0x1aa)]=null,this[_0x1d6c69(0x18d)]=null,this[_0x1d6c69(0x188)]=new _0x621e0c(_0x1ac7c7,_0x3616e5(_0x1ac7c7,_0x1d6c69(0x1a1))),this[_0x1d6c69(0x19f)](_0x1d6c69(0x192),!0x1),this[_0x1d6c69(0x19f)](_0x1d6c69(0x17d),_0x1d02bf[_0x1d6c69(0x17d)]),this[_0x1d6c69(0x198)](_0x1d6c69(0x17d))['to'](_0x1d02bf),this[_0x1d6c69(0x19f)](_0x1d6c69(0x172),[]),this[_0x1d6c69(0x19f)](_0x1d6c69(0x1a5),!0x1),this[_0x1d6c69(0x19f)](_0x1d6c69(0x185),!0x1),this[_0x1d6c69(0x19f)](_0x1d6c69(0x17f),!0x1),this[_0x1d6c69(0x19f)](_0x1d6c69(0x174),!0x1),this[_0x1d6c69(0x198)](_0x1d6c69(0x19a))['to'](this,_0x1d6c69(0x182),_0x1d02bf,_0x1d6c69(0x17d),this,_0x1d6c69(0x172),(_0x10d4ed,_0x2f17b1,_0x160355)=>{const _0x277b2c=_0x1d6c69,_0x21e39a=_0x160355[_0x277b2c(0x191)](_0x56a854=>_0x4659c4(_0x56a854[_0x277b2c(0x196)]))[_0x277b2c(0x1a0)]('.\x20')+'.';return _0x3616e5(this[_0x277b2c(0x16e)],_0x277b2c(0x19c),[_0x10d4ed-0x1,_0x1d02bf[_0x277b2c(0x183)][_0x277b2c(0x190)],_0x2f17b1?_0x2815c2[_0x277b2c(0x184)](_0x2f17b1):'',new DOMParser()[_0x277b2c(0x18b)](_0x21e39a,_0x277b2c(0x180))[_0x277b2c(0x1ab)][_0x277b2c(0x17a)]]);}),this[_0x1d6c69(0x18f)]=new _0x58a20f(),this[_0x1d6c69(0x1af)]=new _0x5bdf6f(),this[_0x1d6c69(0x176)]=new _0x1358e4(),this[_0x1d6c69(0x1a9)]=new _0x547637({'focusables':this[_0x1d6c69(0x18f)],'focusTracker':this[_0x1d6c69(0x1af)],'keystrokeHandler':this[_0x1d6c69(0x176)],'keystrokeHandlerOptions':{'filter':_0x2fdf8f=>_0x2fdf8f[_0x1d6c69(0x1b1)]!==this[_0x1d6c69(0x187)]},'actions':{'focusPrevious':_0x1d6c69(0x18e),'focusNext':_0x1d6c69(0x18a)}}),this[_0x1d6c69(0x19d)]=_0x1d02bf,this[_0x1d6c69(0x17b)]=_0x40bf90,this[_0x1d6c69(0x17c)]=_0x2815c2,_0x2815c2[_0x1d6c69(0x179)]?this[_0x1d6c69(0x19f)](_0x1d6c69(0x182),0x1):this[_0x1d6c69(0x16a)]();}[_0x3bc543(0x193)](){const _0x459ee0=_0x3bc543;super[_0x459ee0(0x193)](),_0x22b143(this,this[_0x459ee0(0x18f)]);}[_0x3bc543(0x1a6)](){const _0x439cd5=_0x3bc543;this[_0x439cd5(0x187)][_0x439cd5(0x1a6)]();}[_0x3bc543(0x16f)](){const _0x2b75a6=_0x3bc543;this[_0x2b75a6(0x1aa)]&&this[_0x2b75a6(0x1aa)][_0x2b75a6(0x16f)](),this[_0x2b75a6(0x18d)]&&this[_0x2b75a6(0x18d)][_0x2b75a6(0x16f)](),super[_0x2b75a6(0x16f)]();}[_0x3bc543(0x16a)](){const _0xe441f=_0x3bc543,{CommentsListView:_0x211882}=this[_0xe441f(0x17c)];this[_0xe441f(0x1aa)]=new _0x211882(this[_0xe441f(0x16e)],this[_0xe441f(0x19d)][_0xe441f(0x1a4)],Object[_0xe441f(0x1b0)]({'CommentView':this[_0xe441f(0x17c)][_0xe441f(0x1a7)]},this[_0xe441f(0x17c)])),this[_0xe441f(0x1aa)][_0xe441f(0x170)](_0xe441f(0x16d))['to'](this),this[_0xe441f(0x1aa)][_0xe441f(0x170)](_0xe441f(0x18c))['to'](this),this[_0xe441f(0x1aa)][_0xe441f(0x198)](_0xe441f(0x192))['to'](this),this[_0xe441f(0x19f)](_0xe441f(0x182),this[_0xe441f(0x1aa)][_0xe441f(0x182)]+0x1),this[_0xe441f(0x198)](_0xe441f(0x182))['to'](this[_0xe441f(0x1aa)],_0xe441f(0x182),_0xf9308e=>_0xf9308e+0x1),this[_0xe441f(0x18d)]=this[_0xe441f(0x194)](),this['on'](_0xe441f(0x16d),()=>this[_0xe441f(0x1a6)]()),this[_0xe441f(0x198)](_0xe441f(0x1a5))['to'](this[_0xe441f(0x1aa)],_0xe441f(0x1ae),this[_0xe441f(0x18d)][_0xe441f(0x1ad)],_0xe441f(0x175),(_0xe8b2c5,_0x2ae729)=>_0xe8b2c5||!!_0x2ae729);}[_0x3bc543(0x194)](){const _0x1fbd48=_0x3bc543,{CommentThreadInputView:_0x1b5f76}=this[_0x1fbd48(0x17c)],_0x4c8c47=new _0x1b5f76(this[_0x1fbd48(0x16e)],this[_0x1fbd48(0x17b)],this[_0x1fbd48(0x17c)][_0x1fbd48(0x1a8)]),_0x45db45=_0x4c8c47[_0x1fbd48(0x1ad)];return _0x4c8c47[_0x1fbd48(0x198)](_0x1fbd48(0x199))['to'](this,_0x1fbd48(0x192),this[_0x1fbd48(0x19d)][_0x1fbd48(0x1a4)],_0x1fbd48(0x171),_0x45db45,_0x1fbd48(0x175),(_0x50320b,_0x8d8175,_0x53522d)=>!!_0x53522d||_0x50320b&&!_0x8d8175),_0x45db45['on'](_0x1fbd48(0x16b),(_0x1128a5,_0x527eaa)=>{const _0x11fe2d=_0x1fbd48;this[_0x11fe2d(0x178)](_0x11fe2d(0x1ac),_0x527eaa),_0x45db45[_0x11fe2d(0x19e)][_0x11fe2d(0x1b2)]('');}),_0x45db45['on'](_0x1fbd48(0x181),()=>this[_0x1fbd48(0x1a6)]()),_0x45db45[_0x1fbd48(0x198)](_0x1fbd48(0x19b))['to'](this[_0x1fbd48(0x19d)][_0x1fbd48(0x1a4)],_0x1fbd48(0x171)),_0x4c8c47;}}
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module track-changes/ui/view/suggestionthreadview
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
5
9
|
import { default as BaseSuggestionThreadView, type SuggestionThreadConfig } from './basesuggestionthreadview.js';
|
|
6
10
|
import { type TemplateDefinition, type ViewWithFocusCycler } from 'ckeditor5/src/ui.js';
|
|
7
|
-
import {
|
|
11
|
+
import { type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
8
12
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
13
|
import type Suggestion from '../../suggestion.js';
|
|
14
|
+
import type SuggestionView from './suggestionview.js';
|
|
10
15
|
/**
|
|
11
16
|
* The default view for a suggestion thread.
|
|
12
17
|
*
|
|
@@ -30,17 +35,9 @@ export default class SuggestionThreadView extends BaseSuggestionThreadView imple
|
|
|
30
35
|
*/
|
|
31
36
|
description: string;
|
|
32
37
|
/**
|
|
33
|
-
* A
|
|
34
|
-
*/
|
|
35
|
-
userView: UserView;
|
|
36
|
-
/**
|
|
37
|
-
* A button view for the button that accepts the suggestion.
|
|
38
|
+
* A view displaying a detailed information about the suggestion as well as controls to accept or discard it.
|
|
38
39
|
*/
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* A button view for the button that discards the suggestion.
|
|
42
|
-
*/
|
|
43
|
-
discardButton: LateFocusButtonView | null;
|
|
40
|
+
suggestionView: SuggestionView;
|
|
44
41
|
constructor(locale: Locale, model: Suggestion, localUser: User, config: SuggestionThreadConfig);
|
|
45
42
|
/**
|
|
46
43
|
* Returns a template definition that will be passed to {@link module:ui/view~View#setTemplate}.
|
|
@@ -50,127 +47,43 @@ export default class SuggestionThreadView extends BaseSuggestionThreadView imple
|
|
|
50
47
|
* The template looks as follows:
|
|
51
48
|
*
|
|
52
49
|
* ```ts
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* 'ck',
|
|
58
|
-
* 'ck-rounded-corners',
|
|
59
|
-
* 'ck-suggestion-wrapper',
|
|
60
|
-
* bind.if( 'isActive', 'ck-suggestion-wrapper--active' ),
|
|
61
|
-
* bind.to( 'type', value => `ck-suggestion-${ value }` ),
|
|
62
|
-
* this._config.disableComments && 'ck-suggestion--disabled-comments'
|
|
63
|
-
* ],
|
|
64
|
-
* 'data-suggestion-id': this._model.id,
|
|
65
|
-
* 'data-thread-id': this._model.commentThread.id,
|
|
66
|
-
* 'data-author-id': this._model.author.id,
|
|
67
|
-
* // Needed for managing focus after adding a new comment.
|
|
68
|
-
* tabindex: 0,
|
|
69
|
-
* role: 'listitem',
|
|
70
|
-
* 'aria-label': bind.to( 'ariaLabel' ),
|
|
71
|
-
* 'aria-describedby': this.ariaDescriptionView.id
|
|
72
|
-
* },
|
|
73
|
-
* children: [
|
|
74
|
-
* {
|
|
75
|
-
* tag: 'div',
|
|
76
|
-
*
|
|
77
|
-
* attributes: {
|
|
78
|
-
* class: [
|
|
79
|
-
* 'ck-suggestion',
|
|
80
|
-
* 'ck-annotation'
|
|
81
|
-
* ]
|
|
82
|
-
* },
|
|
83
|
-
*
|
|
84
|
-
* children: [
|
|
85
|
-
* this.userView,
|
|
86
|
-
* {
|
|
87
|
-
* tag: 'div',
|
|
88
|
-
*
|
|
89
|
-
* attributes: {
|
|
90
|
-
* class: [ 'ck-suggestion__main', 'ck-annotation__main' ],
|
|
91
|
-
* role: 'presentation'
|
|
92
|
-
* },
|
|
93
|
-
*
|
|
94
|
-
* children: [
|
|
95
|
-
* {
|
|
96
|
-
* tag: 'div',
|
|
97
|
-
*
|
|
98
|
-
* attributes: {
|
|
99
|
-
* class: [ 'ck-suggestion__info', 'ck-annotation__info' ]
|
|
100
|
-
* },
|
|
101
|
-
*
|
|
102
|
-
* children: [
|
|
103
|
-
* {
|
|
104
|
-
* tag: 'span',
|
|
105
|
-
*
|
|
106
|
-
* children: [
|
|
107
|
-
* {
|
|
108
|
-
* text: this.userView.name
|
|
109
|
-
* }
|
|
110
|
-
* ],
|
|
50
|
+
* const bind = this.bindTemplate;
|
|
51
|
+
* const suggestionThreadChildren = [
|
|
52
|
+
* this.suggestionView
|
|
53
|
+
* ];
|
|
111
54
|
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* },
|
|
116
|
-
* {
|
|
117
|
-
* tag: 'time',
|
|
118
|
-
*
|
|
119
|
-
* attributes: {
|
|
120
|
-
* datetime: bind.to( 'authoredAt' ),
|
|
121
|
-
* class: [ 'ck-comment__info-time', 'ck-annotation__info-time' ]
|
|
122
|
-
* },
|
|
123
|
-
*
|
|
124
|
-
* children: [
|
|
125
|
-
* {
|
|
126
|
-
* text: bind.to( 'authoredAt', value => this._config.formatDateTime( value ) )
|
|
127
|
-
* }
|
|
128
|
-
* ]
|
|
129
|
-
* }
|
|
130
|
-
* ]
|
|
131
|
-
* },
|
|
132
|
-
* {
|
|
133
|
-
* tag: 'div',
|
|
134
|
-
*
|
|
135
|
-
* attributes: {
|
|
136
|
-
* class: [
|
|
137
|
-
* 'ck-suggestion__actions',
|
|
138
|
-
* 'ck-annotation__actions'
|
|
139
|
-
* ]
|
|
140
|
-
* },
|
|
141
|
-
*
|
|
142
|
-
* children: [
|
|
143
|
-
* this.acceptButton,
|
|
144
|
-
* this.discardButton
|
|
145
|
-
* ]
|
|
146
|
-
* },
|
|
147
|
-
* {
|
|
148
|
-
* tag: 'div',
|
|
149
|
-
*
|
|
150
|
-
* attributes: {
|
|
151
|
-
* class: [ 'ck-annotation__content-wrapper' ]
|
|
152
|
-
* }
|
|
153
|
-
* },
|
|
154
|
-
* {
|
|
155
|
-
* tag: 'div',
|
|
156
|
-
*
|
|
157
|
-
* attributes: {
|
|
158
|
-
* class: [ 'ck-comment__external' ]
|
|
159
|
-
* },
|
|
55
|
+
* if ( this.commentsListView ) {
|
|
56
|
+
* suggestionThreadChildren.push( this.commentsListView );
|
|
57
|
+
* }
|
|
160
58
|
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* } ]
|
|
164
|
-
* }
|
|
165
|
-
* ]
|
|
166
|
-
* },
|
|
167
|
-
* this.ariaDescriptionView
|
|
168
|
-
* ]
|
|
169
|
-
* },
|
|
170
|
-
* this.commentsListView,
|
|
171
|
-
* this.commentThreadInputView
|
|
172
|
-
* ]
|
|
59
|
+
* if ( this.commentThreadInputView ) {
|
|
60
|
+
* suggestionThreadChildren.push( this.commentThreadInputView );
|
|
173
61
|
* }
|
|
62
|
+
*
|
|
63
|
+
* suggestionThreadChildren.push( this.ariaDescriptionView );
|
|
64
|
+
*
|
|
65
|
+
* return {
|
|
66
|
+
* tag: 'div',
|
|
67
|
+
* attributes: {
|
|
68
|
+
* class: [
|
|
69
|
+
* 'ck',
|
|
70
|
+
* 'ck-rounded-corners',
|
|
71
|
+
* 'ck-suggestion-wrapper',
|
|
72
|
+
* bind.if( 'isActive', 'ck-suggestion-wrapper--active' ),
|
|
73
|
+
* bind.to( 'type', value => `ck-suggestion-${ value }` ),
|
|
74
|
+
* this._config.disableComments && 'ck-suggestion--disabled-comments'
|
|
75
|
+
* ],
|
|
76
|
+
* 'data-suggestion-id': this._model.id,
|
|
77
|
+
* 'data-thread-id': this._model.commentThread!.id,
|
|
78
|
+
* 'data-author-id': this._model.author.id,
|
|
79
|
+
* // Needed for managing focus after adding new comment.
|
|
80
|
+
* tabindex: 0,
|
|
81
|
+
* role: 'listitem',
|
|
82
|
+
* 'aria-label': bind.to( 'ariaLabel' ),
|
|
83
|
+
* 'aria-describedby': this.ariaDescriptionView.id
|
|
84
|
+
* },
|
|
85
|
+
* children: suggestionThreadChildren
|
|
86
|
+
* };
|
|
174
87
|
* ```
|
|
175
88
|
*/
|
|
176
89
|
getTemplate(): TemplateDefinition;
|
|
@@ -178,12 +91,4 @@ export default class SuggestionThreadView extends BaseSuggestionThreadView imple
|
|
|
178
91
|
* @inheritDoc
|
|
179
92
|
*/
|
|
180
93
|
render(): void;
|
|
181
|
-
/**
|
|
182
|
-
* Gets the translated note which indicates that the suggestion comes from an external source.
|
|
183
|
-
*/
|
|
184
|
-
getExternalSuggestionNote(): string;
|
|
185
|
-
/**
|
|
186
|
-
* Gets the translated notification text which indicates that the author name comes from an external source.
|
|
187
|
-
*/
|
|
188
|
-
getUserViewNotificationText(): string | null;
|
|
189
94
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1b6533=_0x1e5e;(function(_0x33db67,_0x447163){const _0x2a0761=_0x1e5e,_0x45303a=_0x33db67();while(!![]){try{const _0x4db117=parseInt(_0x2a0761(0x1f8))/0x1+-parseInt(_0x2a0761(0x1dc))/0x2*(-parseInt(_0x2a0761(0x209))/0x3)+parseInt(_0x2a0761(0x1f3))/0x4+parseInt(_0x2a0761(0x1e0))/0x5*(-parseInt(_0x2a0761(0x1ee))/0x6)+parseInt(_0x2a0761(0x1fe))/0x7+-parseInt(_0x2a0761(0x202))/0x8+-parseInt(_0x2a0761(0x201))/0x9*(parseInt(_0x2a0761(0x1df))/0xa);if(_0x4db117===_0x447163)break;else _0x45303a['push'](_0x45303a['shift']());}catch(_0x2e8e15){_0x45303a['push'](_0x45303a['shift']());}}}(_0x1653,0x50dd5));import{default as _0x3e4fa1}from'./basesuggestionthreadview.js';import{trimHtml as _0x5f3498}from'ckeditor5-collaboration/src/collaboration-core.js';import{renderDescription as _0x3e2751}from'../../utils/utils.js';function _0x1653(){const _0x5ac9ef=['301315XllppK','ck-rounded-corners','ck-suggestion-wrapper--active','10809LXVkfo','442816IrbJMn','listitem','bindTemplate','discardButton','commentThreadInputView','ck-suggestion-','ariaLabel','2091rFgsdK','ck-suggestion-wrapper','add','SuggestionView','canDiscard','bind','description','author','_config','push','ck-suggestion--disabled-comments','getTemplate','906liXzub','_descriptionElement','editorDestroyed','1510FyQCGu','5sHMKnP','descriptionParts','delegate','suggestionView','disableComments','ariaDescriptionView','</p>','_model','acceptButton','type','canAccept','<p>','focusables','editorReady','2443866pykpOt','isActive','commentThread','acceptSuggestion','setTemplate','1720060pNERdF','div','color','content','commentsListView','186434gDhBiK','discardSuggestion','set','render','formatDateTime','isEnabled'];_0x1653=function(){return _0x5ac9ef;};return _0x1653();}function _0x1e5e(_0x5e9d9e,_0x2f47ad){const _0x1653a4=_0x1653();return _0x1e5e=function(_0x1e5eac,_0xbeb0c7){_0x1e5eac=_0x1e5eac-0x1db;let _0x307563=_0x1653a4[_0x1e5eac];return _0x307563;},_0x1e5e(_0x5e9d9e,_0x2f47ad);}export default class re extends _0x3e4fa1{constructor(_0x3faddd,_0x49c3f9,_0x7043b0,_0x59ddc0){const _0x3d65d6=_0x1e5e;super(_0x3faddd,_0x49c3f9,_0x7043b0,_0x59ddc0),this[_0x3d65d6(0x1fa)](_0x3d65d6(0x1e9),''),this[_0x3d65d6(0x20e)](_0x3d65d6(0x1e9))['to'](this,_0x3d65d6(0x1e1),_0xf24dc9=>_0xf24dc9&&_0xf24dc9[0x0]?_0xf24dc9[0x0][_0x3d65d6(0x1e9)]:''),this[_0x3d65d6(0x20e)](_0x3d65d6(0x20f))['to'](this,_0x3d65d6(0x1e1),this,_0x3d65d6(0x1ef),(_0x309e55,_0x231426)=>{const _0x438f13=_0x3d65d6;let _0xc26fcf='';for(const _0x37e808 of _0x309e55)_0xc26fcf+=_0x438f13(0x1eb)+_0x3e2751(_0x37e808[_0x438f13(0x1f6)],_0x37e808[_0x438f13(0x1f5)])+_0x438f13(0x1e6);return _0x231426?_0xc26fcf:_0x5f3498(_0xc26fcf,{'limit':0x8c});}),this[_0x3d65d6(0x1dd)]=null,this[_0x3d65d6(0x1e3)]=new _0x59ddc0[(_0x3d65d6(0x20c))](_0x3faddd,_0x49c3f9,{'formatDateTime':_0x59ddc0[_0x3d65d6(0x1fc)]}),this[_0x3d65d6(0x1e3)][_0x3d65d6(0x20e)](_0x3d65d6(0x20f))['to'](this),this[_0x3d65d6(0x1e3)][_0x3d65d6(0x1e2)](_0x3d65d6(0x1f1),_0x3d65d6(0x1f9))['to'](this),this[_0x3d65d6(0x1e3)][_0x3d65d6(0x1e8)][_0x3d65d6(0x20e)](_0x3d65d6(0x1fd))['to'](this,_0x3d65d6(0x1ea)),this[_0x3d65d6(0x1e3)][_0x3d65d6(0x205)][_0x3d65d6(0x20e)](_0x3d65d6(0x1fd))['to'](this,_0x3d65d6(0x20d)),this[_0x3d65d6(0x1ec)][_0x3d65d6(0x20b)](this[_0x3d65d6(0x1e3)]),this[_0x3d65d6(0x1f7)]&&this[_0x3d65d6(0x1ec)][_0x3d65d6(0x20b)](this[_0x3d65d6(0x1f7)]),this[_0x3d65d6(0x206)]&&this[_0x3d65d6(0x1ec)][_0x3d65d6(0x20b)](this[_0x3d65d6(0x206)]),this[_0x3d65d6(0x1f2)](this[_0x3d65d6(0x1db)]());}[_0x1b6533(0x1db)](){const _0x57123d=_0x1b6533,_0x12104d=this[_0x57123d(0x204)],_0x189452=[this[_0x57123d(0x1e3)]];return this[_0x57123d(0x1f7)]&&_0x189452[_0x57123d(0x212)](this[_0x57123d(0x1f7)]),this[_0x57123d(0x206)]&&_0x189452[_0x57123d(0x212)](this[_0x57123d(0x206)]),_0x189452[_0x57123d(0x212)](this[_0x57123d(0x1e5)]),{'tag':_0x57123d(0x1f4),'attributes':{'class':['ck',_0x57123d(0x1ff),_0x57123d(0x20a),_0x12104d['if'](_0x57123d(0x1ef),_0x57123d(0x200)),_0x12104d['to'](_0x57123d(0x1e9),_0x469615=>_0x57123d(0x207)+_0x469615),this[_0x57123d(0x211)][_0x57123d(0x1e4)]&&_0x57123d(0x213)],'data-suggestion-id':this[_0x57123d(0x1e7)]['id'],'data-thread-id':this[_0x57123d(0x1e7)][_0x57123d(0x1f0)]['id'],'data-author-id':this[_0x57123d(0x1e7)][_0x57123d(0x210)]['id'],'tabindex':0x0,'role':_0x57123d(0x203),'aria-label':_0x12104d['to'](_0x57123d(0x208)),'aria-describedby':this[_0x57123d(0x1e5)]['id']},'children':_0x189452};}[_0x1b6533(0x1fb)](){const _0x4517cd=_0x1b6533;super[_0x4517cd(0x1fb)](),this[_0x4517cd(0x1f7)]&&(this[_0x4517cd(0x1f7)][_0x4517cd(0x1e2)](_0x4517cd(0x1ed))['to'](this),this[_0x4517cd(0x1f7)][_0x4517cd(0x1e2)](_0x4517cd(0x1de))['to'](this)),this[_0x4517cd(0x206)]&&(this[_0x4517cd(0x206)][_0x4517cd(0x1e2)](_0x4517cd(0x1ed))['to'](this),this[_0x4517cd(0x206)][_0x4517cd(0x1e2)](_0x4517cd(0x1de))['to'](this));}}
|