@ckeditor/ckeditor5-track-changes 42.0.2-alpha.2 → 43.0.0-alpha.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.
- package/CHANGELOG.md +1 -203
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/integrations/mergefields.d.ts +21 -0
- package/dist/trackchangesediting.d.ts +2 -1
- 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.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/view/basesuggestionthreadview.d.ts +32 -3
- package/dist/ui/view/suggestionthreadview.d.ts +16 -9
- package/dist/utils/utils.d.ts +7 -0
- package/lang/contexts.json +3 -0
- package/lang/translations/ar.po +27 -3
- package/lang/translations/az.po +16 -0
- package/lang/translations/bg.po +19 -3
- package/lang/translations/bn.po +19 -3
- package/lang/translations/ca.po +19 -3
- package/lang/translations/cs.po +23 -3
- package/lang/translations/da.po +19 -3
- package/lang/translations/de.po +19 -3
- package/lang/translations/el.po +19 -3
- package/lang/translations/en-au.po +16 -0
- package/lang/translations/en.po +19 -3
- package/lang/translations/es.po +21 -3
- package/lang/translations/et.po +19 -3
- package/lang/translations/fi.po +19 -3
- package/lang/translations/fr.po +21 -3
- package/lang/translations/gl.po +19 -3
- package/lang/translations/he.po +21 -3
- package/lang/translations/hi.po +19 -3
- package/lang/translations/hr.po +18 -0
- package/lang/translations/hu.po +19 -3
- package/lang/translations/id.po +17 -3
- package/lang/translations/it.po +21 -3
- package/lang/translations/ja.po +17 -3
- package/lang/translations/ko.po +17 -3
- package/lang/translations/lt.po +23 -3
- package/lang/translations/lv.po +21 -3
- package/lang/translations/ms.po +17 -3
- package/lang/translations/nl.po +19 -3
- package/lang/translations/no.po +19 -3
- package/lang/translations/pl.po +23 -3
- package/lang/translations/pt-br.po +21 -3
- package/lang/translations/pt.po +21 -3
- package/lang/translations/ro.po +21 -3
- package/lang/translations/ru.po +23 -3
- package/lang/translations/sk.po +23 -3
- package/lang/translations/sq.po +16 -0
- package/lang/translations/sr-latn.po +21 -3
- package/lang/translations/sr.po +21 -3
- package/lang/translations/sv.po +19 -3
- package/lang/translations/th.po +17 -3
- package/lang/translations/tk.po +16 -0
- package/lang/translations/tr.po +19 -3
- package/lang/translations/tt.po +14 -0
- package/lang/translations/uk.po +23 -3
- package/lang/translations/ur.po +16 -0
- package/lang/translations/vi.po +17 -3
- package/lang/translations/zh-cn.po +17 -3
- package/lang/translations/zh.po +17 -3
- 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.d.ts +17 -0
- package/src/integrations/mergefields.js +23 -0
- 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/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +2 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +32 -3
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +16 -9
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +7 -0
- package/src/utils/utils.js +1 -1
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x570145=_0x2ba8;(function(_0x531a3c,_0x46bfaf){const _0x274a92=_0x2ba8,_0x4c87a2=_0x531a3c();while(!![]){try{const _0x195d46=-parseInt(_0x274a92(0xca))/0x1*(parseInt(_0x274a92(0xde))/0x2)+-parseInt(_0x274a92(0xd2))/0x3*(-parseInt(_0x274a92(0x100))/0x4)+parseInt(_0x274a92(0xb0))/0x5+-parseInt(_0x274a92(0x10d))/0x6+parseInt(_0x274a92(0xcd))/0x7+parseInt(_0x274a92(0x105))/0x8*(-parseInt(_0x274a92(0xa9))/0x9)+parseInt(_0x274a92(0x113))/0xa;if(_0x195d46===_0x46bfaf)break;else _0x4c87a2['push'](_0x4c87a2['shift']());}catch(_0x1d5870){_0x4c87a2['push'](_0x4c87a2['shift']());}}}(_0x43ef,0x34a70));import{Plugin as _0xa28201}from'ckeditor5/src/core.js';import{Collection as _0x4b3210}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x16cf5b,createDropdown as _0x4112f1,ListSeparatorView as _0x552e6d,MenuBarMenuView as _0x3466d3,MenuBarMenuListView as _0xdf5889,MenuBarMenuListItemView as _0x181d29,MenuBarMenuListItemButtonView as _0x4c5ba5,SplitButtonView as _0x295644,ViewModel as _0x489adf}from'ckeditor5/src/ui.js';import{Users as _0x4cfbba,getDateTimeFormatter as _0x41eca4,getAllMarkersDomElementsSorted as _0x139c85}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2bbfdf from'./trackchangesediting.js';import _0x4e8d87 from'./ui/suggestioncontroller.js';import _0x31657a from'./ui/view/suggestionthreadview.js';function _0x43ef(){const _0x448149=['refreshSelectedViews','1985494XSXKbw','define','discardSelectedSuggestions','Annotations','locale','3GcNHom','activeMarkers','stopListening','_disableComments','destroy','_viewToController','editor','isDirty','_createMenuBarMenu','commands','comments.editorConfig','commentThread','6646xAbHhM','trackChanges','getFirstRange','items','_suggestionToController','addComment','length','value','unbind','TrackChangesEditing','lowest','getDescriptions','menuBar:trackChanges','button','pluginName','isInContent','filter','createAnnotation','innerView','componentFactory','getRanges','switchbutton','change:previous','config','view','CommentsUI','set','head','change:activeAnnotations','CommentView','menu','from','getMarkerNames','_addUIComponentsToFactory','1534072amCuEL','model','delete','discardAllSuggestions','_bindAnnotationToEditors','7792HHblRz','acceptButton','isOn','actionView','Discard\x20all\x20selected\x20suggestions','Discard\x20all\x20suggestions','children','trackChanges.disableComments','1336638TRvmtt','getJoined','CommentsRepository','remove','comments.maxCommentsWhenCollapsed','createAnnotationView','1551620CNnjJR','TrackChangesUI','acceptSelectedSuggestions','_destroyController','getMarkers','add','_handleSuggestionControllerDelayed','mainView','suggestion-','push','getByInnerView','requires','menuitem','plugins','reduce','toMany','_refreshActiveMarkers','some','comments.maxCommentCharsWhenCollapsed','_handleControllerBuffer','size','listenTo','addSourceCollector','panelView','descriptionFactory','_unbindEditors','isMultiRange','bind','separator','suggestionUnloaded','getAllAdjacentSuggestions','comments','EditorAnnotations','clear','_updateController','get','getSuggestion','init','previous','1341fugAlx','suggestionChanged','commandName','has','Accept\x20all\x20selected\x20suggestions','delegate','execute','484320iIOFvB','Accept\x20all\x20suggestions','_annotationViews','acceptAllSuggestions','focus','_initializeController','_createToolbarButton','createCommentThreadController','arrowView','buttonView','editing','Track\x20changes','isEnabled','SuggestionThreadView','trackChanges.SuggestionThreadView','registerAnnotation','suggestionLoaded','descriptionParts','values','discardButton','activeAnnotations','hasSuggestion','menuitemcheckbox','keys','comments.maxThreadTotalWeight','source','101TcorYP','type'];_0x43ef=function(){return _0x448149;};return _0x43ef();}function _0x2ba8(_0x4b6522,_0x43913d){const _0x43ef59=_0x43ef();return _0x2ba8=function(_0x2ba866,_0xaee41b){_0x2ba866=_0x2ba866-0xa9;let _0x1ffd90=_0x43ef59[_0x2ba866];return _0x1ffd90;},_0x2ba8(_0x4b6522,_0x43913d);}import{getTranslation as _0x598743}from'./utils/common-translations.js';import _0x437cc5 from'../theme/icons/track-changes.svg';export default class d extends _0xa28201{static get[_0x570145(0x11e)](){const _0x337ec2=_0x570145;return[_0x2bbfdf,_0x4cfbba,_0x337ec2(0x10f),_0x337ec2(0xd0),_0x337ec2(0x133)];}static get[_0x570145(0xec)](){const _0x38a5b7=_0x570145;return _0x38a5b7(0x114);}constructor(_0x7c22a2){const _0xf5bd2b=_0x570145;super(_0x7c22a2),this[_0xf5bd2b(0xe2)]=new Map(),this[_0xf5bd2b(0xd7)]=new Map(),this[_0xf5bd2b(0xb2)]=new Map(),this[_0xf5bd2b(0x126)]=new Map();const _0x4cdc42=this[_0xf5bd2b(0xd8)][_0xf5bd2b(0xf5)];_0x4cdc42[_0xf5bd2b(0xce)](_0xf5bd2b(0xbe),_0x31657a),_0x4cdc42[_0xf5bd2b(0xce)](_0xf5bd2b(0x10c),!0x1),this[_0xf5bd2b(0xd5)]=_0x4cdc42[_0xf5bd2b(0x136)](_0xf5bd2b(0x10c));}[_0x570145(0x119)](_0x168b07,_0x3b7a9d){const _0x5a9d59=_0x570145;0x0===this[_0x5a9d59(0x126)][_0x5a9d59(0x127)]&&setTimeout(()=>{const _0x159c04=_0x5a9d59;for(const [_0x36b6a1,_0x3631f5]of this[_0x159c04(0x126)]){const _0x7aa5be=this[_0x159c04(0xe2)][_0x159c04(0xac)](_0x36b6a1);_0x7aa5be||_0x3631f5?_0x7aa5be&&_0x3631f5&&this[_0x159c04(0x116)](_0x36b6a1):this[_0x159c04(0xb5)](_0x36b6a1);}this[_0x159c04(0x126)][_0x159c04(0x134)](),this[_0x159c04(0xd8)][_0x159c04(0x120)][_0x159c04(0x136)](_0x159c04(0x133))[_0x159c04(0xcc)](),this[_0x159c04(0x123)]();},0xa),this[_0x5a9d59(0x126)][_0x5a9d59(0xf8)](_0x168b07,_0x3b7a9d);}[_0x570145(0x138)](){const _0x56f765=_0x570145,_0x206765=this[_0x56f765(0xd8)],_0x3b642b=_0x206765[_0x56f765(0x120)][_0x56f765(0x136)](_0x56f765(0xe7)),_0x1ffbeb=_0x206765[_0x56f765(0x120)][_0x56f765(0x136)](_0x56f765(0xd0)),_0x4c2e86=_0x206765[_0x56f765(0x120)][_0x56f765(0x136)](_0x56f765(0x133)),_0x5137b6=_0x206765[_0x56f765(0x120)][_0x56f765(0x136)](_0x56f765(0x10f));this[_0x56f765(0xff)](),_0x4c2e86[_0x56f765(0x129)](()=>{const _0x58525a=_0x56f765,_0x50ffbe=[];for(const [_0x50ea9a,_0x50051a]of Array[_0x58525a(0xfd)](this[_0x58525a(0xe2)])){const _0x5a22ee=_0x50ea9a[_0x58525a(0x131)](),_0x824c25=[];for(const _0x116610 of _0x5a22ee){if(!_0x116610[_0x58525a(0xed)])continue;if(_0x116610[_0x58525a(0x12d)]){_0x824c25[_0x58525a(0x11c)](..._0x116610[_0x58525a(0xf2)]());continue;}const _0xe49929=_0x116610[_0x58525a(0xe0)]();if(_0x824c25[_0x58525a(0xe4)]>0x0){const _0x4504a7=_0x824c25[0x0][_0x58525a(0x10e)](_0xe49929);if(_0x4504a7){_0x824c25[0x0]=_0x4504a7;continue;}}_0x824c25[_0x58525a(0x11c)](_0xe49929);}_0x50ffbe[_0x58525a(0x11c)]([_0x50051a[_0x58525a(0xf6)],_0x824c25]);}return _0x50ffbe;}),this[_0x56f765(0x128)](_0x3b642b,_0x56f765(0xc0),(_0x4cbe0c,_0x2cd190)=>{const _0x44a09e=_0x56f765;this[_0x44a09e(0x128)](_0x2cd190,_0x44a09e(0xf4),(_0xd5c087,_0x5bb902,_0x274d74,_0x184fb3)=>{const _0x1cc4ec=_0x44a09e;_0x2cd190[_0x1cc4ec(0xed)]&&(null==_0x274d74?(this[_0x1cc4ec(0x135)](_0x184fb3[_0x1cc4ec(0xf9)]),this[_0x1cc4ec(0x119)](_0x2cd190,!0x1)):(this[_0x1cc4ec(0x135)](_0x274d74[_0x1cc4ec(0xf9)]),null==_0x184fb3&&this[_0x1cc4ec(0x119)](_0x2cd190,!0x0)));}),null!==_0x2cd190[_0x44a09e(0x139)]?this[_0x44a09e(0x135)](_0x2cd190[_0x44a09e(0xf9)]):this[_0x44a09e(0x119)](_0x2cd190,!0x1);}),this[_0x56f765(0x128)](_0x3b642b,_0x56f765(0x130),(_0x25ac1e,_0x423bce,_0x4d70c1)=>{const _0x27ccfd=_0x56f765;this[_0x27ccfd(0xd4)](_0x423bce,_0x27ccfd(0xf4)),this[_0x27ccfd(0x126)][_0x27ccfd(0x102)](_0x423bce),this[_0x27ccfd(0xe2)][_0x27ccfd(0xac)](_0x423bce)&&this[_0x27ccfd(0x116)](_0x423bce),_0x4d70c1&&this[_0x27ccfd(0x135)](_0x4d70c1[_0x27ccfd(0xf9)]);}),this[_0x56f765(0x128)](_0x3b642b,_0x56f765(0xaa),(_0x184253,_0x3c5eb0)=>{const _0x10c7fd=_0x56f765;this[_0x10c7fd(0x135)](_0x3c5eb0);}),this[_0x56f765(0x128)](_0x1ffbeb,_0x56f765(0xfa),()=>{const _0x40aed3=_0x56f765;this[_0x40aed3(0x123)]();}),this[_0x56f765(0x128)](_0x5137b6,_0x56f765(0xe3),(_0xa9fe41,{threadId:_0x48d39c,isFromAdapter:_0x79d4f9})=>{const _0x71e440=_0x56f765;if(_0x79d4f9||!_0x3b642b[_0x71e440(0xc5)](_0x48d39c))return;const _0x3504a1=_0x3b642b[_0x71e440(0x137)](_0x48d39c);this[_0x71e440(0xe2)][_0x71e440(0x136)](_0x3504a1)[_0x71e440(0xf6)][_0x71e440(0xb4)]();},{'priority':_0x56f765(0xe8)});}[_0x570145(0x123)](){const _0x30254c=_0x570145,_0x31520c=this[_0x30254c(0xd8)][_0x30254c(0x120)][_0x30254c(0x136)](_0x30254c(0xd0)),_0x4d42f3=this[_0x30254c(0xd8)][_0x30254c(0x120)][_0x30254c(0x136)](_0x30254c(0xe7)),_0x45adac=Array[_0x30254c(0xfd)](_0x31520c[_0x30254c(0xc4)],_0x6986dd=>_0x6986dd[_0x30254c(0xf0)])[_0x30254c(0xee)](_0x51f7a8=>this[_0x30254c(0xd7)][_0x30254c(0xac)](_0x51f7a8)),_0x34d2fa=[];for(const _0x4849f8 of _0x45adac){const _0x4b55b0=this[_0x30254c(0xd7)][_0x30254c(0x136)](_0x4849f8)[_0x30254c(0x101)][_0x30254c(0x131)]();_0x34d2fa[_0x30254c(0x11c)](..._0x4b55b0[_0x30254c(0x121)]((_0xa3093c,_0x33854a)=>[..._0xa3093c,..._0x33854a[_0x30254c(0xfe)]()],[]));}_0x4d42f3[_0x30254c(0xd3)]=_0x34d2fa;}[_0x570145(0xff)](){const _0x27ec34=_0x570145,_0x5daaa0=this[_0x27ec34(0xd8)],_0x16db93=_0x5daaa0[_0x27ec34(0xd1)],_0x239b3b=_0x598743(_0x16db93,_0x27ec34(0xbb)),_0x3622e5=new _0x4b3210([{'type':_0x27ec34(0xf3),'model':new _0x489adf({'withText':!0x0,'label':_0x239b3b,'commandName':_0x27ec34(0xdf),'role':_0x27ec34(0xc6)})},{'type':_0x27ec34(0x12f)},{'type':_0x27ec34(0xeb),'model':new _0x489adf({'withText':!0x0,'label':_0x598743(_0x16db93,_0x27ec34(0xb1)),'commandName':_0x27ec34(0xb3),'role':_0x27ec34(0x11f)})},{'type':_0x27ec34(0xeb),'model':new _0x489adf({'withText':!0x0,'label':_0x598743(_0x16db93,_0x27ec34(0xad)),'commandName':_0x27ec34(0x115),'role':_0x27ec34(0x11f)})},{'type':_0x27ec34(0xeb),'model':new _0x489adf({'withText':!0x0,'label':_0x598743(_0x16db93,_0x27ec34(0x10a)),'commandName':_0x27ec34(0x103),'role':_0x27ec34(0x11f)})},{'type':_0x27ec34(0xeb),'model':new _0x489adf({'withText':!0x0,'label':_0x598743(_0x16db93,_0x27ec34(0x109)),'commandName':_0x27ec34(0xcf),'role':_0x27ec34(0x11f)})}]);for(const _0x195392 of _0x3622e5)if(ae(_0x195392)){const _0x5140c5=_0x5daaa0[_0x27ec34(0xdb)][_0x27ec34(0x136)](_0x195392[_0x27ec34(0x101)][_0x27ec34(0xab)]);_0x195392[_0x27ec34(0x101)][_0x27ec34(0x12e)](_0x27ec34(0x107),_0x27ec34(0xbc))['to'](_0x5140c5,_0x27ec34(0xe5),_0x27ec34(0xbc));}_0x5daaa0['ui'][_0x27ec34(0xf1)][_0x27ec34(0x118)](_0x27ec34(0xdf),_0x45b57d=>this[_0x27ec34(0xb6)](_0x45b57d,_0x3622e5,_0x239b3b)),_0x5daaa0['ui'][_0x27ec34(0xf1)][_0x27ec34(0x118)](_0x27ec34(0xea),_0x2ae191=>this[_0x27ec34(0xda)](_0x2ae191,_0x3622e5,_0x239b3b));}[_0x570145(0xb6)](_0x343c4e,_0x3d566b,_0x2193e8){const _0x39ce5a=_0x570145,_0x42a558=_0x4112f1(_0x343c4e,_0x295644),_0x572aa5=this[_0x39ce5a(0xd8)][_0x39ce5a(0xdb)][_0x39ce5a(0x136)](_0x39ce5a(0xdf));_0x42a558[_0x39ce5a(0xb9)][_0x39ce5a(0xf8)]({'tooltip':_0x2193e8,'label':_0x2193e8,'icon':_0x437cc5}),_0x42a558[_0x39ce5a(0xb9)][_0x39ce5a(0x12e)](_0x39ce5a(0x107))['to'](_0x572aa5,_0x39ce5a(0xe5)),_0x42a558[_0x39ce5a(0xb9)]['on'](_0x39ce5a(0xaf),()=>{const _0x18f4f8=_0x39ce5a;_0x572aa5[_0x18f4f8(0xaf)](),this[_0x18f4f8(0xd8)][_0x18f4f8(0xba)][_0x18f4f8(0xf6)][_0x18f4f8(0xb4)]();}),_0x16cf5b(_0x42a558,_0x3d566b,{'role':_0x39ce5a(0xfc)});const _0x1dd10f=[];for(const _0x2c29d0 of _0x3d566b)ae(_0x2c29d0)&&_0x1dd10f[_0x39ce5a(0x11c)](this[_0x39ce5a(0xd8)][_0x39ce5a(0xdb)][_0x39ce5a(0x136)](_0x2c29d0[_0x39ce5a(0x101)][_0x39ce5a(0xab)]));const _0x299b7b=_0x42a558[_0x39ce5a(0xb9)];return _0x299b7b[_0x39ce5a(0x108)][_0x39ce5a(0xe6)](_0x39ce5a(0xbc)),_0x299b7b[_0x39ce5a(0xb8)][_0x39ce5a(0xe6)](_0x39ce5a(0xbc)),_0x299b7b[_0x39ce5a(0x108)][_0x39ce5a(0x12e)](_0x39ce5a(0xbc))['to'](_0x572aa5,_0x39ce5a(0xbc)),_0x299b7b[_0x39ce5a(0xb8)][_0x39ce5a(0x12e)](_0x39ce5a(0xbc))[_0x39ce5a(0x122)](_0x1dd10f,_0x39ce5a(0xbc),(..._0x5b007d)=>_0x5b007d[_0x39ce5a(0x124)](_0x5070f9=>_0x5070f9)),_0x42a558['on'](_0x39ce5a(0xaf),_0x3e5ea9=>{const _0xbb4a03=_0x39ce5a;this[_0xbb4a03(0xd8)][_0xbb4a03(0xaf)](_0x3e5ea9[_0xbb4a03(0xc9)][_0xbb4a03(0xab)]),this[_0xbb4a03(0xd8)][_0xbb4a03(0xba)][_0xbb4a03(0xf6)][_0xbb4a03(0xb4)]();}),_0x42a558;}[_0x570145(0xda)](_0x588e0c,_0x306a36,_0x3bf270){const _0x1a79c6=_0x570145,_0x164898=new _0x3466d3(_0x588e0c),_0x19dd41=this[_0x1a79c6(0xd8)][_0x1a79c6(0xdb)][_0x1a79c6(0x136)](_0x1a79c6(0xdf));_0x164898[_0x1a79c6(0xb9)][_0x1a79c6(0xf8)]({'label':_0x3bf270,'icon':_0x437cc5});const _0x2c60ae=new _0xdf5889(_0x588e0c);for(const _0x41f72a of _0x306a36){if(_0x1a79c6(0x12f)==_0x41f72a[_0x1a79c6(0xcb)]){_0x2c60ae[_0x1a79c6(0xe1)][_0x1a79c6(0x118)](new _0x552e6d(_0x588e0c));continue;}const _0x5ce8ed=new _0x181d29(_0x588e0c,_0x164898),_0x2dfce4=new _0x4c5ba5(_0x588e0c),_0xfd3004=_0x41f72a[_0x1a79c6(0x101)];_0x2dfce4[_0x1a79c6(0x12e)](...Object[_0x1a79c6(0xc7)](_0xfd3004))['to'](_0xfd3004),_0x2dfce4[_0x1a79c6(0xae)](_0x1a79c6(0xaf))['to'](_0x164898),_0x2dfce4['on'](_0x1a79c6(0xaf),()=>{const _0x5427c0=_0x1a79c6;this[_0x5427c0(0xd8)][_0x5427c0(0xaf)](_0xfd3004[_0x5427c0(0xab)]),this[_0x5427c0(0xd8)][_0x5427c0(0xba)][_0x5427c0(0xf6)][_0x5427c0(0xb4)]();}),_0x5ce8ed[_0x1a79c6(0x10b)][_0x1a79c6(0x118)](_0x2dfce4),_0x2c60ae[_0x1a79c6(0xe1)][_0x1a79c6(0x118)](_0x5ce8ed);}return _0x164898[_0x1a79c6(0x12e)](_0x1a79c6(0xbc))['to'](_0x19dd41,_0x1a79c6(0xbc)),_0x164898[_0x1a79c6(0x12a)][_0x1a79c6(0x10b)][_0x1a79c6(0x118)](_0x2c60ae),_0x164898;}[_0x570145(0xb5)](_0x416bf6){const _0x390c88=_0x570145,_0x1c2fd8=this[_0x390c88(0xd8)],_0x3d1c9a=_0x1c2fd8[_0x390c88(0xf5)],_0x526b92=_0x1c2fd8[_0x390c88(0x120)][_0x390c88(0x136)](_0x390c88(0xd0)),_0x264a3f=_0x1c2fd8[_0x390c88(0x120)][_0x390c88(0x136)](_0x390c88(0x10f)),_0x124ae8=_0x1c2fd8[_0x390c88(0x120)][_0x390c88(0x136)](_0x390c88(0x133)),_0x25975f=_0x1c2fd8[_0x390c88(0x120)][_0x390c88(0x136)](_0x4cfbba)['me'],_0xe102de=_0x3d1c9a[_0x390c88(0x136)](_0x390c88(0xdf))[_0x390c88(0xbd)],{CommentsListView:_0x2462b4,CommentThreadInputView:_0x1e309f}=_0x1c2fd8[_0x390c88(0x120)][_0x390c88(0x136)](_0x390c88(0xf7));let _0x31c086,_0xbfa070;this[_0x390c88(0xb2)][_0x390c88(0xac)](_0x416bf6['id'])?(_0xbfa070=this[_0x390c88(0xb2)][_0x390c88(0x136)](_0x416bf6['id']),_0x31c086=_0xbfa070[_0x390c88(0x11a)]):(_0x31c086=new _0xe102de(_0x1c2fd8[_0x390c88(0xd1)],_0x416bf6,_0x25975f,{'disableComments':this[_0x390c88(0xd5)],'editorConfig':_0x3d1c9a[_0x390c88(0x136)](_0x390c88(0xdc)),'maxCommentsWhenCollapsed':_0x3d1c9a[_0x390c88(0x136)](_0x390c88(0x111)),'maxThreadTotalWeight':_0x3d1c9a[_0x390c88(0x136)](_0x390c88(0xc8)),'maxCommentCharsWhenCollapsed':_0x3d1c9a[_0x390c88(0x136)](_0x390c88(0x125)),'formatDateTime':_0x41eca4(_0x3d1c9a[_0x390c88(0x136)](_0x390c88(0xd1))),'CommentView':_0x3d1c9a[_0x390c88(0x136)](_0x390c88(0x132))[_0x390c88(0xfb)],'CommentsListView':_0x2462b4,'CommentThreadInputView':_0x1e309f}),_0x31c086[_0x390c88(0x106)]['on'](_0x390c88(0xaf),()=>{const _0x57123c=_0x390c88;_0x1c2fd8[_0x57123c(0xba)][_0x57123c(0xf6)][_0x57123c(0xb4)]();}),_0x31c086[_0x390c88(0xc3)]['on'](_0x390c88(0xaf),()=>{const _0x5379f2=_0x390c88;_0x1c2fd8[_0x5379f2(0xba)][_0x5379f2(0xf6)][_0x5379f2(0xb4)]();}),_0xbfa070=_0x526b92[_0x390c88(0x112)](this[_0x390c88(0xd8)][_0x390c88(0xd1)],_0x31c086),_0xbfa070[_0x390c88(0x12e)](_0x390c88(0xd9))['to'](_0x31c086,_0x390c88(0xd9)),_0xbfa070[_0x390c88(0x12e)](_0x390c88(0xe4))['to'](_0x31c086),_0xbfa070[_0x390c88(0x12e)](_0x390c88(0xcb))['to'](_0x31c086,_0x390c88(0xcb),_0x4a8ed2=>_0x390c88(0x11b)+_0x4a8ed2),this[_0x390c88(0xb2)][_0x390c88(0xf8)](_0x416bf6['id'],_0xbfa070));const _0x2dd159=_0x264a3f[_0x390c88(0xb7)](_0x416bf6[_0x390c88(0xdd)],_0x31c086),_0x17cb8d=new _0x4e8d87(_0x1c2fd8,_0x416bf6,_0x31c086,_0x2dd159),_0x1240e3=_0x416bf6[_0x390c88(0x131)]()[_0x390c88(0xee)](_0x18ec5f=>_0x18ec5f[_0x390c88(0xed)]);_0x31c086[_0x390c88(0xc1)]=_0x1c2fd8[_0x390c88(0x120)][_0x390c88(0x136)](_0x390c88(0xe7))[_0x390c88(0x12b)][_0x390c88(0xe9)](_0x1240e3),this[_0x390c88(0xe2)][_0x390c88(0xf8)](_0x416bf6,_0x17cb8d),this[_0x390c88(0xd7)][_0x390c88(0xf8)](_0x31c086,_0x17cb8d);const _0x3ab1b1=_0x526b92[_0x390c88(0xef)]({'view':_0xbfa070,'target':()=>{const _0xd92e1f=_0x390c88,_0x49be59=[],_0x1d3467=_0x416bf6[_0xd92e1f(0x131)]()[_0xd92e1f(0xee)](_0x109e3a=>_0x109e3a[_0xd92e1f(0xed)]);for(const _0x319e16 of _0x1d3467)_0x49be59[_0xd92e1f(0x11c)](..._0x319e16[_0xd92e1f(0x117)]());return _0x139c85(_0x1c2fd8[_0xd92e1f(0xba)],_0x49be59);},'type':()=>_0x390c88(0x11b)+_0x17cb8d[_0x390c88(0xf6)][_0x390c88(0xcb)]});_0x264a3f[_0x390c88(0x104)](_0x31c086,_0x3ab1b1),_0x526b92[_0x390c88(0x118)](_0x3ab1b1),_0x124ae8[_0x390c88(0xbf)](_0x3ab1b1);}[_0x570145(0x116)](_0x41a0cf){const _0xc929b7=_0x570145,_0x27d6cc=this[_0xc929b7(0xd8)][_0xc929b7(0x120)][_0xc929b7(0x136)](_0xc929b7(0x10f)),_0x4d0375=this[_0xc929b7(0xd8)][_0xc929b7(0x120)][_0xc929b7(0x136)](_0xc929b7(0xd0)),_0x2f38dd=this[_0xc929b7(0xe2)][_0xc929b7(0x136)](_0x41a0cf),_0x30fe28=_0x2f38dd[_0xc929b7(0xf6)],_0x5dcc9e=_0x4d0375[_0xc929b7(0x11d)](_0x30fe28);_0x27d6cc[_0xc929b7(0x12c)](_0x30fe28),_0x5dcc9e&&_0x4d0375[_0xc929b7(0x110)](_0x5dcc9e),this[_0xc929b7(0xe2)][_0xc929b7(0x102)](_0x41a0cf),this[_0xc929b7(0xd7)][_0xc929b7(0x102)](_0x30fe28),_0x2f38dd[_0xc929b7(0xd6)]();}[_0x570145(0x135)](_0x5c4728){const _0x425d4d=_0x570145;if(!_0x5c4728[_0x425d4d(0xed)]||!this[_0x425d4d(0xe2)][_0x425d4d(0xac)](_0x5c4728))return;const _0x2a49ca=this[_0x425d4d(0xd8)][_0x425d4d(0x120)][_0x425d4d(0x136)](_0x425d4d(0xe7)),_0x2ea395=this[_0x425d4d(0xe2)][_0x425d4d(0x136)](_0x5c4728),_0x17effb=_0x5c4728[_0x425d4d(0x131)]();_0x2ea395[_0x425d4d(0xf6)][_0x425d4d(0xc1)]=_0x2a49ca[_0x425d4d(0x12b)][_0x425d4d(0xe9)](_0x17effb);}[_0x570145(0xd6)](){const _0x578131=_0x570145;for(const _0x8f3bd5 of this[_0x578131(0xe2)][_0x578131(0xc7)]())this[_0x578131(0x116)](_0x8f3bd5);for(const _0xadf251 of this[_0x578131(0xb2)][_0x578131(0xc2)]())_0xadf251[_0x578131(0x11a)][_0x578131(0xd6)]();super[_0x578131(0xd6)]();}}function ae(_0x18a768){const _0x2b35a0=_0x570145;return _0x2b35a0(0x101)in _0x18a768;}
|
|
23
|
+
const _0x252c26=_0x4fb2;(function(_0x5111f3,_0x4cd471){const _0x293834=_0x4fb2,_0x414922=_0x5111f3();while(!![]){try{const _0x15a00e=parseInt(_0x293834(0x161))/0x1+-parseInt(_0x293834(0x185))/0x2+-parseInt(_0x293834(0x153))/0x3*(parseInt(_0x293834(0x173))/0x4)+-parseInt(_0x293834(0x166))/0x5*(parseInt(_0x293834(0x132))/0x6)+-parseInt(_0x293834(0x15f))/0x7*(parseInt(_0x293834(0x14f))/0x8)+-parseInt(_0x293834(0x1a3))/0x9*(-parseInt(_0x293834(0x154))/0xa)+parseInt(_0x293834(0x155))/0xb;if(_0x15a00e===_0x4cd471)break;else _0x414922['push'](_0x414922['shift']());}catch(_0x57c504){_0x414922['push'](_0x414922['shift']());}}}(_0xf690,0x19c58));import{Plugin as _0x47a6d7}from'ckeditor5/src/core.js';import{Collection as _0x394692}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x9bd3a7,createDropdown as _0x2f41ce,ListSeparatorView as _0x5335f2,MenuBarMenuView as _0x3f7447,MenuBarMenuListView as _0x25b0d2,MenuBarMenuListItemView as _0x5319a7,MenuBarMenuListItemButtonView as _0x574bea,SplitButtonView as _0x59ba5e,ViewModel as _0x422f61}from'ckeditor5/src/ui.js';import{Users as _0x40fc98,getDateTimeFormatter as _0x348275,getAllMarkersDomElementsSorted as _0x2e5dfa,ENTER_THREAD_KEYSTROKE as _0x4c6b3b}from'ckeditor5-collaboration/src/collaboration-core.js';function _0xf690(){const _0x1c8f4f=['Annotations','has','70108TogOUJ','menuBar:trackChanges','filter','mainView','getMarkerNames','execute','children','model','listenTo','menuitem','arrowView','TrackChangesUI','destroy','_disableComments','_initializeController','source','_handleSuggestionControllerDelayed','getMarkers','135992Jbfyul','get','value','_createMenuBarMenu','comments.maxThreadTotalWeight','menu','editor','define','view','getAllAdjacentSuggestions','unbind','type','activeMarkers','_bindAnnotationToEditors','innerView','previous','TrackChangesEditing','from','suggestionUnloaded','delete','_suggestionToController','_viewToController','requires','_unbindEditors','focus','discardSelectedSuggestions','Accept\x20all\x20suggestions','init','commands','pluginName','413037NCPwtn','plugins','keys','_refreshActiveMarkers','isEnabled','Discard\x20all\x20suggestions','push','suggestion-','EditorAnnotations','Discard\x20all\x20selected\x20suggestions','activeAnnotations','CommentView','_addUIComponentsToFactory','isMultiRange','descriptionParts','change:activeAnnotations','trackChanges','values','commentThread','low','addSourceCollector','set','comments.editorConfig','separator','buttonView','some','_initKeyboardNavigationToThread','keystrokes','acceptButton','_annotationViews','discardButton','registerAnnotation','commandName','suggestionChanged','trackChanges.SuggestionThreadView','head','getRanges','delegate','getJoined','2844hGxvOI','stopListening','items','button','comments.maxCommentsWhenCollapsed','getSuggestion','toMany','actionView','getFirstRange','getDescriptions','createAnnotationView','trackChanges.disableComments','SuggestionThreadView','isInContent','suggestionLoaded','add','size','_handleControllerBuffer','_destroyController','Track\x20changes','discardAllSuggestions','hasSuggestion','comments.maxCommentCharsWhenCollapsed','isOn','descriptionFactory','createCommentThreadController','isDirty','_createToolbarButton','config','8LkZXMH','lowest','getByInnerView','change:previous','3AYFpYG','20SpzRNr','3055129NVblem','remove','clear','CommentsUI','Accept\x20all\x20selected\x20suggestions','createAnnotation','reduce','editing','commentsListView','length','1292977zvZYMW','componentFactory','122873hInRZZ','addComment','_updateController','acceptSelectedSuggestions','comments','1230ZedPOw','bind','CommentsRepository','locale','_splitMarkerName','switchbutton','panelView','acceptAllSuggestions','refreshSelectedViews','escape','menuitemcheckbox'];_0xf690=function(){return _0x1c8f4f;};return _0xf690();}import _0x315e5f from'./trackchangesediting.js';function _0x4fb2(_0x458e60,_0x377c3){const _0xf690ed=_0xf690();return _0x4fb2=function(_0x4fb267,_0x571ba0){_0x4fb267=_0x4fb267-0x124;let _0x59c3f3=_0xf690ed[_0x4fb267];return _0x59c3f3;},_0x4fb2(_0x458e60,_0x377c3);}import _0xe02719 from'./ui/suggestioncontroller.js';import _0x3ee879 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x235440}from'./utils/common-translations.js';import _0x2ecd33 from'./trackchanges.js';import _0x4d2944 from'../theme/icons/track-changes.svg';export default class d extends _0x47a6d7{static get[_0x252c26(0x19b)](){const _0x4f2608=_0x252c26;return[_0x315e5f,_0x40fc98,_0x4f2608(0x168),_0x4f2608(0x171),_0x4f2608(0x1ab)];}static get[_0x252c26(0x1a2)](){const _0x48c364=_0x252c26;return _0x48c364(0x17e);}constructor(_0x16ced0){const _0x11c2e9=_0x252c26;super(_0x16ced0),this[_0x11c2e9(0x199)]=new Map(),this[_0x11c2e9(0x19a)]=new Map(),this[_0x11c2e9(0x128)]=new Map(),this[_0x11c2e9(0x143)]=new Map();const _0xcd298c=this[_0x11c2e9(0x18b)][_0x11c2e9(0x14e)];_0xcd298c[_0x11c2e9(0x18c)](_0x11c2e9(0x12d),_0x3ee879),_0xcd298c[_0x11c2e9(0x18c)](_0x11c2e9(0x13d),!0x1),this[_0x11c2e9(0x180)]=_0xcd298c[_0x11c2e9(0x186)](_0x11c2e9(0x13d)),this[_0x11c2e9(0x125)]();}[_0x252c26(0x183)](_0x19646d,_0x37ddeb){const _0x4d914d=_0x252c26;0x0===this[_0x4d914d(0x143)][_0x4d914d(0x142)]&&setTimeout(()=>{const _0xee4a19=_0x4d914d;for(const [_0x2f7dcc,_0x3b5b51]of this[_0xee4a19(0x143)]){const _0x5df55e=this[_0xee4a19(0x199)][_0xee4a19(0x172)](_0x2f7dcc);_0x5df55e||_0x3b5b51?_0x5df55e&&_0x3b5b51&&this[_0xee4a19(0x144)](_0x2f7dcc):this[_0xee4a19(0x181)](_0x2f7dcc);}this[_0xee4a19(0x143)][_0xee4a19(0x157)](),this[_0xee4a19(0x18b)][_0xee4a19(0x1a4)][_0xee4a19(0x186)](_0xee4a19(0x1ab))[_0xee4a19(0x16e)](),this[_0xee4a19(0x1a6)]();},0xa),this[_0x4d914d(0x143)][_0x4d914d(0x1b8)](_0x19646d,_0x37ddeb);}[_0x252c26(0x1a0)](){const _0x4bcbf1=_0x252c26,_0x29e687=this[_0x4bcbf1(0x18b)],_0x5618f2=_0x29e687[_0x4bcbf1(0x1a4)][_0x4bcbf1(0x186)](_0x4bcbf1(0x195)),_0x24bd6b=_0x29e687[_0x4bcbf1(0x1a4)][_0x4bcbf1(0x186)](_0x4bcbf1(0x171)),_0x21c837=_0x29e687[_0x4bcbf1(0x1a4)][_0x4bcbf1(0x186)](_0x4bcbf1(0x1ab)),_0x3e8668=_0x29e687[_0x4bcbf1(0x1a4)][_0x4bcbf1(0x186)](_0x4bcbf1(0x168));this[_0x4bcbf1(0x1af)](),_0x21c837[_0x4bcbf1(0x1b7)](()=>{const _0x27fe74=_0x4bcbf1,_0x3fd58f=[];for(const [_0x49d08b,_0x5ea1cd]of Array[_0x27fe74(0x196)](this[_0x27fe74(0x199)])){const _0x3e3dea=_0x49d08b[_0x27fe74(0x18e)](),_0x1dbec4=[];for(const _0x170e71 of _0x3e3dea){if(!_0x170e71[_0x27fe74(0x13f)])continue;if(_0x170e71[_0x27fe74(0x1b0)]){_0x1dbec4[_0x27fe74(0x1a9)](..._0x170e71[_0x27fe74(0x12f)]());continue;}const _0x36824f=_0x170e71[_0x27fe74(0x13a)]();if(_0x1dbec4[_0x27fe74(0x15e)]>0x0){const _0x77f22f=_0x1dbec4[0x0][_0x27fe74(0x131)](_0x36824f);if(_0x77f22f){_0x1dbec4[0x0]=_0x77f22f;continue;}}_0x1dbec4[_0x27fe74(0x1a9)](_0x36824f);}_0x3fd58f[_0x27fe74(0x1a9)]([_0x5ea1cd[_0x27fe74(0x18d)],_0x1dbec4]);}return _0x3fd58f;}),this[_0x4bcbf1(0x17b)](_0x5618f2,_0x4bcbf1(0x140),(_0x998968,_0x5dfad4)=>{const _0x8bf9e4=_0x4bcbf1;this[_0x8bf9e4(0x17b)](_0x5dfad4,_0x8bf9e4(0x152),(_0x3efab6,_0x49f50b,_0x51bd04,_0x20ba1b)=>{const _0x28b015=_0x8bf9e4;_0x5dfad4[_0x28b015(0x13f)]&&(null==_0x51bd04?(this[_0x28b015(0x163)](_0x20ba1b[_0x28b015(0x12e)]),this[_0x28b015(0x183)](_0x5dfad4,!0x1)):(this[_0x28b015(0x163)](_0x51bd04[_0x28b015(0x12e)]),null==_0x20ba1b&&this[_0x28b015(0x183)](_0x5dfad4,!0x0)));}),null!==_0x5dfad4[_0x8bf9e4(0x194)]?this[_0x8bf9e4(0x163)](_0x5dfad4[_0x8bf9e4(0x12e)]):this[_0x8bf9e4(0x183)](_0x5dfad4,!0x1);}),this[_0x4bcbf1(0x17b)](_0x5618f2,_0x4bcbf1(0x197),(_0x5c62cc,_0x257966,_0x5a4722)=>{const _0x2c1b7b=_0x4bcbf1;this[_0x2c1b7b(0x133)](_0x257966,_0x2c1b7b(0x152)),this[_0x2c1b7b(0x143)][_0x2c1b7b(0x198)](_0x257966),this[_0x2c1b7b(0x199)][_0x2c1b7b(0x172)](_0x257966)&&this[_0x2c1b7b(0x144)](_0x257966),_0x5a4722&&this[_0x2c1b7b(0x163)](_0x5a4722[_0x2c1b7b(0x12e)]);}),this[_0x4bcbf1(0x17b)](_0x5618f2,_0x4bcbf1(0x12c),(_0x18a0ad,_0x5cc314)=>{const _0xf66e3e=_0x4bcbf1;this[_0xf66e3e(0x163)](_0x5cc314);}),this[_0x4bcbf1(0x17b)](_0x24bd6b,_0x4bcbf1(0x1b2),()=>{const _0x3a2d44=_0x4bcbf1;this[_0x3a2d44(0x1a6)]();}),this[_0x4bcbf1(0x17b)](_0x3e8668,_0x4bcbf1(0x162),(_0x3bcb87,{threadId:_0x2ad348,isFromAdapter:_0x5f5634})=>{const _0x545d6d=_0x4bcbf1;if(_0x5f5634||!_0x5618f2[_0x545d6d(0x147)](_0x2ad348))return;const _0x3be13d=_0x5618f2[_0x545d6d(0x137)](_0x2ad348);this[_0x545d6d(0x199)][_0x545d6d(0x186)](_0x3be13d)[_0x545d6d(0x18d)][_0x545d6d(0x15d)][_0x545d6d(0x19d)](-0x1);},{'priority':_0x4bcbf1(0x150)});}[_0x252c26(0x1a6)](){const _0x121f03=_0x252c26,_0x3f5d4b=this[_0x121f03(0x18b)][_0x121f03(0x1a4)][_0x121f03(0x186)](_0x121f03(0x171)),_0x4629a5=this[_0x121f03(0x18b)][_0x121f03(0x1a4)][_0x121f03(0x186)](_0x121f03(0x195)),_0x5c635d=Array[_0x121f03(0x196)](_0x3f5d4b[_0x121f03(0x1ad)],_0x1dbcae=>_0x1dbcae[_0x121f03(0x193)])[_0x121f03(0x175)](_0x2dbd7d=>this[_0x121f03(0x19a)][_0x121f03(0x172)](_0x2dbd7d)),_0x5aaa23=[];for(const _0x13796f of _0x5c635d){const _0x2d0673=this[_0x121f03(0x19a)][_0x121f03(0x186)](_0x13796f)[_0x121f03(0x17a)][_0x121f03(0x18e)]();_0x5aaa23[_0x121f03(0x1a9)](..._0x2d0673[_0x121f03(0x15b)]((_0x4983ae,_0x1f9757)=>[..._0x4983ae,..._0x1f9757[_0x121f03(0x177)]()],[]));}_0x4629a5[_0x121f03(0x191)]=_0x5aaa23;}[_0x252c26(0x1af)](){const _0x384f06=_0x252c26,_0x2b8ecb=this[_0x384f06(0x18b)],_0x454515=_0x2b8ecb[_0x384f06(0x169)],_0xa82398=_0x235440(_0x454515,_0x384f06(0x145)),_0x206615=new _0x394692([{'type':_0x384f06(0x16b),'model':new _0x422f61({'withText':!0x0,'isToggleable':!0x0,'label':_0xa82398,'commandName':_0x384f06(0x1b3),'role':_0x384f06(0x170)})},{'type':_0x384f06(0x1ba)},{'type':_0x384f06(0x135),'model':new _0x422f61({'withText':!0x0,'label':_0x235440(_0x454515,_0x384f06(0x19f)),'commandName':_0x384f06(0x16d),'role':_0x384f06(0x17c)})},{'type':_0x384f06(0x135),'model':new _0x422f61({'withText':!0x0,'label':_0x235440(_0x454515,_0x384f06(0x159)),'commandName':_0x384f06(0x164),'role':_0x384f06(0x17c)})},{'type':_0x384f06(0x135),'model':new _0x422f61({'withText':!0x0,'label':_0x235440(_0x454515,_0x384f06(0x1a8)),'commandName':_0x384f06(0x146),'role':_0x384f06(0x17c)})},{'type':_0x384f06(0x135),'model':new _0x422f61({'withText':!0x0,'label':_0x235440(_0x454515,_0x384f06(0x1ac)),'commandName':_0x384f06(0x19e),'role':_0x384f06(0x17c)})}]);for(const _0x20431e of _0x206615)if(he(_0x20431e)){const _0x261830=_0x2b8ecb[_0x384f06(0x1a1)][_0x384f06(0x186)](_0x20431e[_0x384f06(0x17a)][_0x384f06(0x12b)]);_0x20431e[_0x384f06(0x17a)][_0x384f06(0x167)](_0x384f06(0x149),_0x384f06(0x1a7))['to'](_0x261830,_0x384f06(0x187),_0x384f06(0x1a7));}_0x2b8ecb['ui'][_0x384f06(0x160)][_0x384f06(0x141)](_0x384f06(0x1b3),_0x183383=>this[_0x384f06(0x14d)](_0x183383,_0x206615,_0xa82398)),_0x2b8ecb['ui'][_0x384f06(0x160)][_0x384f06(0x141)](_0x384f06(0x174),_0x2a1511=>this[_0x384f06(0x188)](_0x2a1511,_0x206615,_0xa82398));}[_0x252c26(0x14d)](_0x14970e,_0x5304d1,_0x3f2c4c){const _0x46cb49=_0x252c26,_0x38a488=_0x2f41ce(_0x14970e,_0x59ba5e),_0x17410d=this[_0x46cb49(0x18b)][_0x46cb49(0x1a1)][_0x46cb49(0x186)](_0x46cb49(0x1b3));_0x38a488[_0x46cb49(0x1bb)][_0x46cb49(0x1b8)]({'tooltip':_0x3f2c4c,'label':_0x3f2c4c,'icon':_0x4d2944}),_0x38a488[_0x46cb49(0x1bb)][_0x46cb49(0x167)](_0x46cb49(0x149))['to'](_0x17410d,_0x46cb49(0x187)),_0x38a488[_0x46cb49(0x1bb)]['on'](_0x46cb49(0x178),()=>{const _0x39f4f8=_0x46cb49;_0x17410d[_0x39f4f8(0x178)](),this[_0x39f4f8(0x18b)][_0x39f4f8(0x15c)][_0x39f4f8(0x18d)][_0x39f4f8(0x19d)]();}),_0x9bd3a7(_0x38a488,_0x5304d1,{'role':_0x46cb49(0x18a)});const _0x3904c2=[];for(const _0x12c54b of _0x5304d1)he(_0x12c54b)&&_0x3904c2[_0x46cb49(0x1a9)](this[_0x46cb49(0x18b)][_0x46cb49(0x1a1)][_0x46cb49(0x186)](_0x12c54b[_0x46cb49(0x17a)][_0x46cb49(0x12b)]));const _0x3a8203=_0x38a488[_0x46cb49(0x1bb)];return _0x3a8203[_0x46cb49(0x139)][_0x46cb49(0x18f)](_0x46cb49(0x1a7)),_0x3a8203[_0x46cb49(0x17d)][_0x46cb49(0x18f)](_0x46cb49(0x1a7)),_0x3a8203[_0x46cb49(0x139)][_0x46cb49(0x167)](_0x46cb49(0x1a7))['to'](_0x17410d,_0x46cb49(0x1a7)),_0x3a8203[_0x46cb49(0x17d)][_0x46cb49(0x167)](_0x46cb49(0x1a7))[_0x46cb49(0x138)](_0x3904c2,_0x46cb49(0x1a7),(..._0x3c3d80)=>_0x3c3d80[_0x46cb49(0x124)](_0x4d01a6=>_0x4d01a6)),_0x38a488['on'](_0x46cb49(0x178),_0x12ba41=>{const _0x2dd365=_0x46cb49;this[_0x2dd365(0x18b)][_0x2dd365(0x178)](_0x12ba41[_0x2dd365(0x182)][_0x2dd365(0x12b)]),this[_0x2dd365(0x18b)][_0x2dd365(0x15c)][_0x2dd365(0x18d)][_0x2dd365(0x19d)]();}),_0x38a488;}[_0x252c26(0x188)](_0x3a5754,_0x51a0b3,_0x547cca){const _0x56ecca=_0x252c26,_0x519e3e=new _0x3f7447(_0x3a5754),_0x1cd1d2=this[_0x56ecca(0x18b)][_0x56ecca(0x1a1)][_0x56ecca(0x186)](_0x56ecca(0x1b3));_0x519e3e[_0x56ecca(0x1bb)][_0x56ecca(0x1b8)]({'label':_0x547cca,'icon':_0x4d2944});const _0x85f6da=new _0x25b0d2(_0x3a5754);for(const _0x1f1c06 of _0x51a0b3){if(_0x56ecca(0x1ba)==_0x1f1c06[_0x56ecca(0x190)]){_0x85f6da[_0x56ecca(0x134)][_0x56ecca(0x141)](new _0x5335f2(_0x3a5754));continue;}const _0x706473=new _0x5319a7(_0x3a5754,_0x519e3e),_0x2d2c48=new _0x574bea(_0x3a5754),_0x3ee111=_0x1f1c06[_0x56ecca(0x17a)];_0x2d2c48[_0x56ecca(0x167)](...Object[_0x56ecca(0x1a5)](_0x3ee111))['to'](_0x3ee111),_0x2d2c48[_0x56ecca(0x130)](_0x56ecca(0x178))['to'](_0x519e3e),_0x2d2c48['on'](_0x56ecca(0x178),()=>{const _0x2b6774=_0x56ecca;this[_0x2b6774(0x18b)][_0x2b6774(0x178)](_0x3ee111[_0x2b6774(0x12b)]),this[_0x2b6774(0x18b)][_0x2b6774(0x15c)][_0x2b6774(0x18d)][_0x2b6774(0x19d)]();}),_0x706473[_0x56ecca(0x179)][_0x56ecca(0x141)](_0x2d2c48),_0x85f6da[_0x56ecca(0x134)][_0x56ecca(0x141)](_0x706473);}return _0x519e3e[_0x56ecca(0x167)](_0x56ecca(0x1a7))['to'](_0x1cd1d2,_0x56ecca(0x1a7)),_0x519e3e[_0x56ecca(0x16c)][_0x56ecca(0x179)][_0x56ecca(0x141)](_0x85f6da),_0x519e3e;}[_0x252c26(0x181)](_0x3f4a57){const _0x419659=_0x252c26,_0x33e9dd=this[_0x419659(0x18b)],_0x31a430=_0x33e9dd[_0x419659(0x14e)],_0x4165e7=_0x33e9dd[_0x419659(0x1a4)][_0x419659(0x186)](_0x419659(0x171)),_0x16a80b=_0x33e9dd[_0x419659(0x1a4)][_0x419659(0x186)](_0x419659(0x168)),_0x47a705=_0x33e9dd[_0x419659(0x1a4)][_0x419659(0x186)](_0x419659(0x1ab)),_0x437975=_0x33e9dd[_0x419659(0x1a4)][_0x419659(0x186)](_0x40fc98)['me'],_0x123ee3=_0x31a430[_0x419659(0x186)](_0x419659(0x1b3))[_0x419659(0x13e)],{CommentsListView:_0x32135a,CommentThreadInputView:_0x2ccb38}=_0x33e9dd[_0x419659(0x1a4)][_0x419659(0x186)](_0x419659(0x158));let _0x4dd54e,_0x445559;this[_0x419659(0x128)][_0x419659(0x172)](_0x3f4a57['id'])?(_0x445559=this[_0x419659(0x128)][_0x419659(0x186)](_0x3f4a57['id']),_0x4dd54e=_0x445559[_0x419659(0x176)]):(_0x4dd54e=new _0x123ee3(_0x33e9dd[_0x419659(0x169)],_0x3f4a57,_0x437975,{'disableComments':this[_0x419659(0x180)],'editorConfig':_0x31a430[_0x419659(0x186)](_0x419659(0x1b9)),'maxCommentsWhenCollapsed':_0x31a430[_0x419659(0x186)](_0x419659(0x136)),'maxThreadTotalWeight':_0x31a430[_0x419659(0x186)](_0x419659(0x189)),'maxCommentCharsWhenCollapsed':_0x31a430[_0x419659(0x186)](_0x419659(0x148)),'formatDateTime':_0x348275(_0x31a430[_0x419659(0x186)](_0x419659(0x169))),'CommentView':_0x31a430[_0x419659(0x186)](_0x419659(0x165))[_0x419659(0x1ae)],'CommentsListView':_0x32135a,'CommentThreadInputView':_0x2ccb38}),_0x4dd54e[_0x419659(0x127)]['on'](_0x419659(0x178),()=>{const _0x3d5303=_0x419659;_0x33e9dd[_0x3d5303(0x15c)][_0x3d5303(0x18d)][_0x3d5303(0x19d)]();}),_0x4dd54e[_0x419659(0x129)]['on'](_0x419659(0x178),()=>{const _0x5eed11=_0x419659;_0x33e9dd[_0x5eed11(0x15c)][_0x5eed11(0x18d)][_0x5eed11(0x19d)]();}),_0x445559=_0x4165e7[_0x419659(0x13c)](this[_0x419659(0x18b)][_0x419659(0x169)],_0x4dd54e),_0x445559[_0x419659(0x167)](_0x419659(0x14c))['to'](_0x4dd54e,_0x419659(0x14c)),_0x445559[_0x419659(0x167)](_0x419659(0x15e))['to'](_0x4dd54e),_0x445559[_0x419659(0x167)](_0x419659(0x190))['to'](_0x4dd54e,_0x419659(0x190),_0x1e6fd8=>_0x419659(0x1aa)+_0x1e6fd8),this[_0x419659(0x17b)](_0x4dd54e,_0x419659(0x16f),()=>{const _0x30a76c=_0x419659;_0x33e9dd[_0x30a76c(0x15c)][_0x30a76c(0x18d)][_0x30a76c(0x19d)]();},{'priority':_0x419659(0x1b6)}),this[_0x419659(0x128)][_0x419659(0x1b8)](_0x3f4a57['id'],_0x445559));const _0x1bbb94=_0x16a80b[_0x419659(0x14b)](_0x3f4a57[_0x419659(0x1b5)],_0x4dd54e),_0x5d2d40=new _0xe02719(_0x33e9dd,_0x3f4a57,_0x4dd54e,_0x1bbb94),_0x263b5b=_0x3f4a57[_0x419659(0x18e)]()[_0x419659(0x175)](_0x4abd8b=>_0x4abd8b[_0x419659(0x13f)]);_0x4dd54e[_0x419659(0x1b1)]=_0x33e9dd[_0x419659(0x1a4)][_0x419659(0x186)](_0x419659(0x195))[_0x419659(0x14a)][_0x419659(0x13b)](_0x263b5b),this[_0x419659(0x199)][_0x419659(0x1b8)](_0x3f4a57,_0x5d2d40),this[_0x419659(0x19a)][_0x419659(0x1b8)](_0x4dd54e,_0x5d2d40);const _0x8e48aa=_0x4165e7[_0x419659(0x15a)]({'view':_0x445559,'target':()=>{const _0x2ae288=_0x419659,_0x21ab12=[],_0x1c82e4=_0x3f4a57[_0x2ae288(0x18e)]()[_0x2ae288(0x175)](_0x372d9e=>_0x372d9e[_0x2ae288(0x13f)]);for(const _0x1bf8d9 of _0x1c82e4)_0x21ab12[_0x2ae288(0x1a9)](..._0x1bf8d9[_0x2ae288(0x184)]());return _0x2e5dfa(_0x33e9dd[_0x2ae288(0x15c)],_0x21ab12);},'type':()=>_0x419659(0x1aa)+_0x5d2d40[_0x419659(0x18d)][_0x419659(0x190)]});_0x16a80b[_0x419659(0x192)](_0x4dd54e,_0x8e48aa),_0x4165e7[_0x419659(0x141)](_0x8e48aa),_0x47a705[_0x419659(0x12a)](_0x8e48aa);}[_0x252c26(0x144)](_0x402f97){const _0x2cb6b2=_0x252c26,_0x2c9c93=this[_0x2cb6b2(0x18b)][_0x2cb6b2(0x1a4)][_0x2cb6b2(0x186)](_0x2cb6b2(0x168)),_0x17af0d=this[_0x2cb6b2(0x18b)][_0x2cb6b2(0x1a4)][_0x2cb6b2(0x186)](_0x2cb6b2(0x171)),_0x275829=this[_0x2cb6b2(0x199)][_0x2cb6b2(0x186)](_0x402f97),_0x515fcb=_0x275829[_0x2cb6b2(0x18d)],_0x48f1a2=_0x17af0d[_0x2cb6b2(0x151)](_0x515fcb);_0x2c9c93[_0x2cb6b2(0x19c)](_0x515fcb),_0x48f1a2&&_0x17af0d[_0x2cb6b2(0x156)](_0x48f1a2),this[_0x2cb6b2(0x199)][_0x2cb6b2(0x198)](_0x402f97),this[_0x2cb6b2(0x19a)][_0x2cb6b2(0x198)](_0x515fcb),_0x275829[_0x2cb6b2(0x17f)]();}[_0x252c26(0x163)](_0x259d13){const _0x386d1b=_0x252c26;if(!_0x259d13[_0x386d1b(0x13f)]||!this[_0x386d1b(0x199)][_0x386d1b(0x172)](_0x259d13))return;const _0x1bbe4a=this[_0x386d1b(0x18b)][_0x386d1b(0x1a4)][_0x386d1b(0x186)](_0x386d1b(0x195)),_0x185b8d=this[_0x386d1b(0x199)][_0x386d1b(0x186)](_0x259d13),_0x1fa772=_0x259d13[_0x386d1b(0x18e)]();_0x185b8d[_0x386d1b(0x18d)][_0x386d1b(0x1b1)]=_0x1bbe4a[_0x386d1b(0x14a)][_0x386d1b(0x13b)](_0x1fa772);}[_0x252c26(0x125)](){const _0x21fcf8=_0x252c26;this[_0x21fcf8(0x18b)][_0x21fcf8(0x126)][_0x21fcf8(0x1b8)](_0x4c6b3b,(_0x525eb6,_0x44ebad)=>{const _0x7e917=_0x21fcf8,_0xbaaef3=this[_0x7e917(0x18b)][_0x7e917(0x1a4)][_0x7e917(0x186)](_0x2ecd33),_0x14784c=this[_0x7e917(0x18b)][_0x7e917(0x1a4)][_0x7e917(0x186)](_0x315e5f);if(!_0x14784c[_0x7e917(0x191)][_0x7e917(0x15e)])return;const {id:_0x4cda81}=_0x14784c[_0x7e917(0x16a)](_0x14784c[_0x7e917(0x191)][0x0]),_0x38bb2e=_0xbaaef3[_0x7e917(0x137)](_0x4cda81);_0x38bb2e&&(this[_0x7e917(0x199)][_0x7e917(0x186)](_0x38bb2e)[_0x7e917(0x18d)][_0x7e917(0x19d)](),_0x44ebad());});}[_0x252c26(0x17f)](){const _0x4e3df5=_0x252c26;for(const _0x15b972 of this[_0x4e3df5(0x199)][_0x4e3df5(0x1a5)]())this[_0x4e3df5(0x144)](_0x15b972);for(const _0x12c994 of this[_0x4e3df5(0x128)][_0x4e3df5(0x1b4)]())_0x12c994[_0x4e3df5(0x176)][_0x4e3df5(0x17f)]();super[_0x4e3df5(0x17f)]();}}function he(_0x3b2855){const _0x399b7e=_0x252c26;return _0x399b7e(0x17a)in _0x3b2855;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x4752ad=_0x1f8a;function _0x5605(){const _0x43515f=['execute','isEnabled','2gtyeYr','978702uQNLKw','428092pzGtvc','canAccept','PENDING_ACTION_SUGGESTION','plugins','18pDlMeK','isDirty','_acceptCommand','add','bind','listenTo','stopListening','PendingActions','canDiscard','1391384JvfPKm','84763gshxNG','20dhWDPV','remove','_setPendingAction','change:isDirty','commands','85409DjHRgl','_removePendingAction','discardSuggestion','getRanges','_editor','_pendingAction','view','acceptSuggestion','destroy','get','commentThreadController','locale','model','_discardCommand','2264778hCzpkv','1656630HpkWYX','canEditAt','unbind'];_0x5605=function(){return _0x43515f;};return _0x5605();}(function(_0x4b38dc,_0x3c1886){const _0x1eaf18=_0x1f8a,_0x38e15e=_0x4b38dc();while(!![]){try{const _0x5e130d=parseInt(_0x1eaf18(0x1bd))/0x1+-parseInt(_0x1eaf18(0x1a7))/0x2*(parseInt(_0x1eaf18(0x1a8))/0x3)+parseInt(_0x1eaf18(0x1a9))/0x4+-parseInt(_0x1eaf18(0x1a2))/0x5+-parseInt(_0x1eaf18(0x1ad))/0x6*(parseInt(_0x1eaf18(0x1b7))/0x7)+parseInt(_0x1eaf18(0x1b6))/0x8+parseInt(_0x1eaf18(0x1a1))/0x9*(parseInt(_0x1eaf18(0x1b8))/0xa);if(_0x5e130d===_0x3c1886)break;else _0x38e15e['push'](_0x38e15e['shift']());}catch(_0x3e7226){_0x38e15e['push'](_0x38e15e['shift']());}}}(_0x5605,0x2ae88));import{ObservableMixin as _0x1cfb36}from'ckeditor5/src/utils.js';function _0x1f8a(_0x582c7d,_0x47e0f9){const _0x5605b4=_0x5605();return _0x1f8a=function(_0x1f8a6d,_0x164044){_0x1f8a6d=_0x1f8a6d-0x19c;let _0x2685fc=_0x5605b4[_0x1f8a6d];return _0x2685fc;},_0x1f8a(_0x582c7d,_0x47e0f9);}import{getTranslation as _0x409a8d}from'../utils/common-translations.js';export default class ae extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1cfb36(){constructor(_0x18311f,_0x3cd0f,_0x9d39d1,_0x5afe07){const _0x5b4d2a=_0x1f8a;super(),this[_0x5b4d2a(0x19f)]=_0x3cd0f,this[_0x5b4d2a(0x1c3)]=_0x9d39d1,this[_0x5b4d2a(0x19d)]=_0x5afe07,this[_0x5b4d2a(0x1c1)]=_0x18311f,this[_0x5b4d2a(0x1af)]=_0x18311f[_0x5b4d2a(0x1bc)][_0x5b4d2a(0x19c)](_0x5b4d2a(0x1c4)),this[_0x5b4d2a(0x1a0)]=_0x18311f[_0x5b4d2a(0x1bc)][_0x5b4d2a(0x19c)](_0x5b4d2a(0x1bf)),this[_0x5b4d2a(0x1c3)][_0x5b4d2a(0x1b1)](_0x5b4d2a(0x1a6))['to'](this[_0x5b4d2a(0x1af)],this[_0x5b4d2a(0x1a0)],(_0x496a16,_0x3234cd)=>_0x496a16||_0x3234cd),this[_0x5b4d2a(0x1c3)][_0x5b4d2a(0x1b1)](_0x5b4d2a(0x1aa))['to'](this[_0x5b4d2a(0x1af)],_0x5b4d2a(0x1a6),_0xcf3285=>_0xcf3285&&this[_0x5b4d2a(0x1c1)][_0x5b4d2a(0x19f)][_0x5b4d2a(0x1a3)](_0x3cd0f[_0x5b4d2a(0x1c0)]())),this[_0x5b4d2a(0x1c3)][_0x5b4d2a(0x1b1)](_0x5b4d2a(0x1b5))['to'](this[_0x5b4d2a(0x1a0)],_0x5b4d2a(0x1a6),_0x26976d=>_0x26976d&&this[_0x5b4d2a(0x1c1)][_0x5b4d2a(0x19f)][_0x5b4d2a(0x1a3)](_0x3cd0f[_0x5b4d2a(0x1c0)]())),this[_0x5b4d2a(0x1c2)]=null,_0x9d39d1[_0x5b4d2a(0x1ae)]&&this[_0x5b4d2a(0x1ba)](),this[_0x5b4d2a(0x1b2)](_0x9d39d1,_0x5b4d2a(0x1c4),()=>this[_0x5b4d2a(0x1c4)]()),this[_0x5b4d2a(0x1b2)](_0x9d39d1,_0x5b4d2a(0x1bf),()=>this[_0x5b4d2a(0x1bf)]()),this[_0x5b4d2a(0x1b2)](_0x9d39d1,_0x5b4d2a(0x1bb),()=>{const _0xc8726a=_0x5b4d2a;_0x9d39d1[_0xc8726a(0x1ae)]?this[_0xc8726a(0x1ba)]():this[_0xc8726a(0x1be)]();});}[_0x4752ad(0x1c4)](){const _0x41bf02=_0x4752ad;this[_0x41bf02(0x1af)][_0x41bf02(0x1a5)](this[_0x41bf02(0x19f)]['id']);}[_0x4752ad(0x1bf)](){const _0x4d724f=_0x4752ad;this[_0x4d724f(0x1a0)][_0x4d724f(0x1a5)](this[_0x4d724f(0x19f)]['id']);}[_0x4752ad(0x1c5)](){const _0x355e8a=_0x4752ad;this[_0x355e8a(0x1c3)][_0x355e8a(0x1a4)](_0x355e8a(0x1a6)),this[_0x355e8a(0x1c3)][_0x355e8a(0x1a4)](_0x355e8a(0x1aa)),this[_0x355e8a(0x1c3)][_0x355e8a(0x1a4)](_0x355e8a(0x1b5)),this[_0x355e8a(0x1b3)](),this[_0x355e8a(0x19d)][_0x355e8a(0x1c5)](),this[_0x355e8a(0x1c2)]&&this[_0x355e8a(0x1be)]();}[_0x4752ad(0x1ba)](){const _0x200dab=_0x4752ad,_0x4129c0=_0x409a8d(this[_0x200dab(0x1c1)][_0x200dab(0x19e)],_0x200dab(0x1ab));this[_0x200dab(0x1c2)]=this[_0x200dab(0x1c1)][_0x200dab(0x1ac)][_0x200dab(0x19c)](_0x200dab(0x1b4))[_0x200dab(0x1b0)](_0x4129c0);}[_0x4752ad(0x1be)](){const _0x42bcb5=_0x4752ad;null!==this[_0x42bcb5(0x1c2)]&&this[_0x42bcb5(0x1c1)][_0x42bcb5(0x1ac)][_0x42bcb5(0x19c)](_0x42bcb5(0x1b4))[_0x42bcb5(0x1b9)](this[_0x42bcb5(0x1c2)]),this[_0x42bcb5(0x1c2)]=null;}}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* @module track-changes/ui/view/basesuggestionthreadview
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
-
import type
|
|
9
|
+
import { FocusCycler, View, ViewCollection, type FocusableView } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
11
11
|
import type { EditorConfig } from 'ckeditor5/src/core.js';
|
|
12
12
|
import type Suggestion from '../../suggestion.js';
|
|
13
13
|
import type { CommentsListView, CommentThreadInputView, CommentView } from '@ckeditor/ckeditor5-comments';
|
|
14
|
-
import type
|
|
14
|
+
import { AriaDescriptionView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
15
15
|
import type { Description } from '../../suggestiondescriptionfactory.js';
|
|
16
16
|
/**
|
|
17
17
|
* An abstract suggestion thread view class that should be used as a base for suggestion thread view implementations.
|
|
@@ -34,6 +34,11 @@ export default abstract class BaseSuggestionThreadView extends View {
|
|
|
34
34
|
* The comment input area view. It should be used as a part of the view template when present.
|
|
35
35
|
*/
|
|
36
36
|
commentThreadInputView: CommentThreadInputView | null;
|
|
37
|
+
/**
|
|
38
|
+
* A helper view that provides an ARIA description for the comment thread used by
|
|
39
|
+
* assistive technologies.
|
|
40
|
+
*/
|
|
41
|
+
readonly ariaDescriptionView: AriaDescriptionView;
|
|
37
42
|
/**
|
|
38
43
|
* A boolean value that informs if the comment thread view is in the active state ("highlighted").
|
|
39
44
|
* A comment thread view is in this state when it is focused or was activated by the user in any different way.
|
|
@@ -118,7 +123,31 @@ export default abstract class BaseSuggestionThreadView extends View {
|
|
|
118
123
|
* @observable
|
|
119
124
|
*/
|
|
120
125
|
readonly length: number;
|
|
126
|
+
/**
|
|
127
|
+
* An accessible thread label text exposed to assistive technologies.
|
|
128
|
+
*/
|
|
129
|
+
ariaLabel: string;
|
|
130
|
+
/**
|
|
131
|
+
* A collection of focusable child views.
|
|
132
|
+
*/
|
|
133
|
+
readonly focusables: ViewCollection<FocusableView>;
|
|
134
|
+
/**
|
|
135
|
+
* Tracks information about DOM focus in the thread.
|
|
136
|
+
*/
|
|
137
|
+
readonly focusTracker: FocusTracker;
|
|
138
|
+
/**
|
|
139
|
+
* Instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
140
|
+
*/
|
|
141
|
+
readonly keystrokes: KeystrokeHandler;
|
|
142
|
+
/**
|
|
143
|
+
* Helps cycling over focusable views in the thread.
|
|
144
|
+
*/
|
|
145
|
+
readonly focusCycler: FocusCycler;
|
|
121
146
|
constructor(locale: Locale, model: Suggestion, localUser: User, config: SuggestionThreadConfig);
|
|
147
|
+
/**
|
|
148
|
+
* @inheritDoc
|
|
149
|
+
*/
|
|
150
|
+
render(): void;
|
|
122
151
|
/**
|
|
123
152
|
* Focuses the view.
|
|
124
153
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x229914=_0x349c;(function(_0x1b7d9c,_0x2b8c36){const _0x26ae05=_0x349c,_0xd0c0fc=_0x1b7d9c();while(!![]){try{const _0x31e399=-parseInt(_0x26ae05(0xd6))/0x1*(parseInt(_0x26ae05(0xf2))/0x2)+-parseInt(_0x26ae05(0xfb))/0x3*(parseInt(_0x26ae05(0xe0))/0x4)+parseInt(_0x26ae05(0xee))/0x5+-parseInt(_0x26ae05(0xdb))/0x6+-parseInt(_0x26ae05(0xe6))/0x7*(parseInt(_0x26ae05(0xe9))/0x8)+parseInt(_0x26ae05(0xe7))/0x9*(parseInt(_0x26ae05(0x11d))/0xa)+parseInt(_0x26ae05(0x10a))/0xb;if(_0x31e399===_0x2b8c36)break;else _0xd0c0fc['push'](_0xd0c0fc['shift']());}catch(_0x3723de){_0xd0c0fc['push'](_0xd0c0fc['shift']());}}}(_0x1d4b,0x6a5b6));import{FocusCycler as _0x27c12e,View as _0x2f6978,ViewCollection as _0x174b02}from'ckeditor5/src/ui.js';import{FocusTracker as _0x83ecd4,KeystrokeHandler as _0x98309d}from'ckeditor5/src/utils.js';import{AriaDescriptionView as _0x46f04a,setupThreadKeyboardNavigation as _0x3c2c78}from'ckeditor5-collaboration/src/collaboration-core.js';import{getTranslation as _0x5ee453}from'../../utils/common-translations.js';function _0x1d4b(){const _0x4d0c77=['canAccept','textContent','4447104ovKxYX','_localUser','locale','set','map','648gqYbVP','tab','commentThreadInputView','focus','_createCommentThreadInputView','isEnabled','6769XdPyjB','3482622kyAQWf','body','5904MltezT','descriptionParts','keystrokes','SUGGESTION_THREAD_DESCRIPTION','removeComment','1939745BEwvxs','ariaLabel','hasDirtyComment','target','34MoToAr','authoredAt','commentInputView','setData','SUGGESTION_THREAD_ARIA_LABEL','isReadOnly','commentsListView','name','shift+tab','15240JUUBBQ','element','fire','destroy','updateComment','editorConfig','_createCommentViews','showInput','author','delegate','canDiscard','submit','bind','focusables','disableComments','20946134WWwPeN','isDirty','length','disabledSubmit','value','focusCycler','assign','_model','content','CommentView','addComment','cancel','_config','parseFromString','join','focusTracker','render','commentThread','formatDateTime','20VENUhz','ariaDescriptionView','text/html','20743xMgNMV','isActive','editor'];_0x1d4b=function(){return _0x4d0c77;};return _0x1d4b();}function _0x349c(_0x210430,_0x230e12){const _0x1d4bf8=_0x1d4b();return _0x349c=function(_0x349ca0,_0x2e7c6d){_0x349ca0=_0x349ca0-0xd4;let _0x57e90b=_0x1d4bf8[_0x349ca0];return _0x57e90b;},_0x349c(_0x210430,_0x230e12);}import{renderDescription as _0x2e0df0}from'../../utils/utils.js';export default class us extends _0x2f6978{constructor(_0x3d75cd,_0x380f60,_0x570916,_0xaf41f8){const _0x531e0f=_0x349c;super(_0x3d75cd),this[_0x531e0f(0xf8)]=null,this[_0x531e0f(0xe2)]=null,this[_0x531e0f(0xd4)]=new _0x46f04a(_0x3d75cd,_0x5ee453(_0x3d75cd,_0x531e0f(0xec))),this[_0x531e0f(0xde)](_0x531e0f(0xd7),!0x1),this[_0x531e0f(0xde)](_0x531e0f(0xf3),_0x380f60[_0x531e0f(0xf3)]),this[_0x531e0f(0x107)](_0x531e0f(0xf3))['to'](_0x380f60),this[_0x531e0f(0xde)](_0x531e0f(0xea),[]),this[_0x531e0f(0xde)](_0x531e0f(0x10b),!0x1),this[_0x531e0f(0xde)](_0x531e0f(0xe5),!0x1),this[_0x531e0f(0xde)](_0x531e0f(0xd9),!0x1),this[_0x531e0f(0xde)](_0x531e0f(0x105),!0x1),this[_0x531e0f(0x107)](_0x531e0f(0xef))['to'](this,_0x531e0f(0x10c),_0x380f60,_0x531e0f(0xf3),this,_0x531e0f(0xea),(_0x50543b,_0x6bfa74,_0xbf35c7)=>{const _0x513816=_0x531e0f,_0x5f22b7=_0xbf35c7[_0x513816(0xdf)](_0x26a391=>_0x2e0df0(_0x26a391[_0x513816(0x112)]))[_0x513816(0x118)]('.\x20')+'.';return _0x5ee453(this[_0x513816(0xdd)],_0x513816(0xf6),[_0x50543b-0x1,_0x380f60[_0x513816(0x103)][_0x513816(0xf9)],_0x6bfa74?_0xaf41f8[_0x513816(0x11c)](_0x6bfa74):'',new DOMParser()[_0x513816(0x117)](_0x5f22b7,_0x513816(0xd5))[_0x513816(0xe8)][_0x513816(0xda)]]);}),this[_0x531e0f(0x108)]=new _0x174b02(),this[_0x531e0f(0x119)]=new _0x83ecd4(),this[_0x531e0f(0xeb)]=new _0x98309d(),this[_0x531e0f(0x10f)]=new _0x27c12e({'focusables':this[_0x531e0f(0x108)],'focusTracker':this[_0x531e0f(0x119)],'keystrokeHandler':this[_0x531e0f(0xeb)],'keystrokeHandlerOptions':{'filter':_0x4a5ac9=>_0x4a5ac9[_0x531e0f(0xf1)]!==this[_0x531e0f(0xfc)]},'actions':{'focusPrevious':_0x531e0f(0xfa),'focusNext':_0x531e0f(0xe1)}}),this[_0x531e0f(0x111)]=_0x380f60,this[_0x531e0f(0xdc)]=_0x570916,this[_0x531e0f(0x116)]=_0xaf41f8,_0xaf41f8[_0x531e0f(0x109)]?this[_0x531e0f(0xde)](_0x531e0f(0x10c),0x1):this[_0x531e0f(0x101)]();}[_0x229914(0x11a)](){const _0x19e481=_0x229914;super[_0x19e481(0x11a)](),_0x3c2c78(this,this[_0x19e481(0x108)]);}[_0x229914(0xe3)](){const _0x1e792f=_0x229914;this[_0x1e792f(0xfc)][_0x1e792f(0xe3)]();}[_0x229914(0xfe)](){const _0x98fc5e=_0x229914;this[_0x98fc5e(0xf8)]&&this[_0x98fc5e(0xf8)][_0x98fc5e(0xfe)](),this[_0x98fc5e(0xe2)]&&this[_0x98fc5e(0xe2)][_0x98fc5e(0xfe)](),super[_0x98fc5e(0xfe)]();}[_0x229914(0x101)](){const _0x18fd12=_0x229914,{CommentsListView:_0x347fe4}=this[_0x18fd12(0x116)];this[_0x18fd12(0xf8)]=new _0x347fe4(this[_0x18fd12(0xdd)],this[_0x18fd12(0x111)][_0x18fd12(0x11b)],Object[_0x18fd12(0x110)]({'CommentView':this[_0x18fd12(0x116)][_0x18fd12(0x113)]},this[_0x18fd12(0x116)])),this[_0x18fd12(0xf8)][_0x18fd12(0x104)](_0x18fd12(0xed))['to'](this),this[_0x18fd12(0xf8)][_0x18fd12(0x104)](_0x18fd12(0xff))['to'](this),this[_0x18fd12(0xf8)][_0x18fd12(0x107)](_0x18fd12(0xd7))['to'](this),this[_0x18fd12(0xde)](_0x18fd12(0x10c),this[_0x18fd12(0xf8)][_0x18fd12(0x10c)]+0x1),this[_0x18fd12(0x107)](_0x18fd12(0x10c))['to'](this[_0x18fd12(0xf8)],_0x18fd12(0x10c),_0x4d1730=>_0x4d1730+0x1),this[_0x18fd12(0xe2)]=this[_0x18fd12(0xe4)](),this['on'](_0x18fd12(0xed),()=>this[_0x18fd12(0xe3)]()),this[_0x18fd12(0x107)](_0x18fd12(0x10b))['to'](this[_0x18fd12(0xf8)],_0x18fd12(0xf0),this[_0x18fd12(0xe2)][_0x18fd12(0xf4)],_0x18fd12(0x10e),(_0x5acf75,_0x492954)=>_0x5acf75||!!_0x492954);}[_0x229914(0xe4)](){const _0xef0502=_0x229914,{CommentThreadInputView:_0x940d55}=this[_0xef0502(0x116)],_0xf96102=new _0x940d55(this[_0xef0502(0xdd)],this[_0xef0502(0xdc)],this[_0xef0502(0x116)][_0xef0502(0x100)]),_0x2294ed=_0xf96102[_0xef0502(0xf4)];return _0xf96102[_0xef0502(0x107)](_0xef0502(0x102))['to'](this,_0xef0502(0xd7),this[_0xef0502(0x111)][_0xef0502(0x11b)],_0xef0502(0xf7),_0x2294ed,_0xef0502(0x10e),(_0x346841,_0x7ed140,_0x4a761e)=>!!_0x4a761e||_0x346841&&!_0x7ed140),_0x2294ed['on'](_0xef0502(0x106),(_0x15b678,_0x1eecc8)=>{const _0x596bfa=_0xef0502;this[_0x596bfa(0xfd)](_0x596bfa(0x114),_0x1eecc8),_0x2294ed[_0x596bfa(0xd8)][_0x596bfa(0xf5)]('');}),_0x2294ed['on'](_0xef0502(0x115),()=>this[_0xef0502(0xe3)]()),_0x2294ed[_0xef0502(0x107)](_0xef0502(0x10d))['to'](this[_0xef0502(0x111)][_0xef0502(0x11b)],_0xef0502(0xf7)),_0xf96102;}}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
import { default as BaseSuggestionThreadView, type SuggestionThreadConfig } from './basesuggestionthreadview.js';
|
|
6
|
-
import {
|
|
7
|
-
import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
8
|
-
import type
|
|
6
|
+
import { type TemplateDefinition, type ViewWithFocusCycler } from 'ckeditor5/src/ui.js';
|
|
7
|
+
import { LateFocusButtonView, UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import type Suggestion from '../../suggestion.js';
|
|
10
10
|
/**
|
|
11
11
|
* The default view for a suggestion thread.
|
|
@@ -13,7 +13,7 @@ import type Suggestion from '../../suggestion.js';
|
|
|
13
13
|
* This view can be replaced by other view by overwriting the
|
|
14
14
|
* {@link module:track-changes/trackchangesconfig~TrackChangesConfig#SuggestionThreadView} configuration.
|
|
15
15
|
*/
|
|
16
|
-
export default class SuggestionThreadView extends BaseSuggestionThreadView {
|
|
16
|
+
export default class SuggestionThreadView extends BaseSuggestionThreadView implements ViewWithFocusCycler {
|
|
17
17
|
/**
|
|
18
18
|
* The suggestion thread view type.
|
|
19
19
|
*
|
|
@@ -36,11 +36,11 @@ export default class SuggestionThreadView extends BaseSuggestionThreadView {
|
|
|
36
36
|
/**
|
|
37
37
|
* A button view for the button that accepts the suggestion.
|
|
38
38
|
*/
|
|
39
|
-
acceptButton:
|
|
39
|
+
acceptButton: LateFocusButtonView | null;
|
|
40
40
|
/**
|
|
41
41
|
* A button view for the button that discards the suggestion.
|
|
42
42
|
*/
|
|
43
|
-
discardButton:
|
|
43
|
+
discardButton: LateFocusButtonView | null;
|
|
44
44
|
constructor(locale: Locale, model: Suggestion, localUser: User, config: SuggestionThreadConfig);
|
|
45
45
|
/**
|
|
46
46
|
* Returns a template definition that will be passed to {@link module:ui/view~View#setTemplate}.
|
|
@@ -54,6 +54,8 @@ export default class SuggestionThreadView extends BaseSuggestionThreadView {
|
|
|
54
54
|
* tag: 'div',
|
|
55
55
|
* attributes: {
|
|
56
56
|
* class: [
|
|
57
|
+
* 'ck',
|
|
58
|
+
* 'ck-rounded-corners',
|
|
57
59
|
* 'ck-suggestion-wrapper',
|
|
58
60
|
* bind.if( 'isActive', 'ck-suggestion-wrapper--active' ),
|
|
59
61
|
* bind.to( 'type', value => `ck-suggestion-${ value }` ),
|
|
@@ -63,7 +65,10 @@ export default class SuggestionThreadView extends BaseSuggestionThreadView {
|
|
|
63
65
|
* 'data-thread-id': this._model.commentThread.id,
|
|
64
66
|
* 'data-author-id': this._model.author.id,
|
|
65
67
|
* // Needed for managing focus after adding a new comment.
|
|
66
|
-
* tabindex:
|
|
68
|
+
* tabindex: 0,
|
|
69
|
+
* role: 'listitem',
|
|
70
|
+
* 'aria-label': bind.to( 'ariaLabel' ),
|
|
71
|
+
* 'aria-describedby': this.ariaDescriptionView.id
|
|
67
72
|
* },
|
|
68
73
|
* children: [
|
|
69
74
|
* {
|
|
@@ -82,7 +87,8 @@ export default class SuggestionThreadView extends BaseSuggestionThreadView {
|
|
|
82
87
|
* tag: 'div',
|
|
83
88
|
*
|
|
84
89
|
* attributes: {
|
|
85
|
-
* class: [ 'ck-suggestion__main', 'ck-annotation__main' ]
|
|
90
|
+
* class: [ 'ck-suggestion__main', 'ck-annotation__main' ],
|
|
91
|
+
* role: 'presentation'
|
|
86
92
|
* },
|
|
87
93
|
*
|
|
88
94
|
* children: [
|
|
@@ -157,7 +163,8 @@ export default class SuggestionThreadView extends BaseSuggestionThreadView {
|
|
|
157
163
|
* } ]
|
|
158
164
|
* }
|
|
159
165
|
* ]
|
|
160
|
-
* }
|
|
166
|
+
* },
|
|
167
|
+
* this.ariaDescriptionView
|
|
161
168
|
* ]
|
|
162
169
|
* },
|
|
163
170
|
* this.commentsListView,
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f2d8d=_0x1247;(function(_0x26d94b,_0x21dbb1){const _0x3289e1=_0x1247,_0x33031e=_0x26d94b();while(!![]){try{const _0x1c0511=parseInt(_0x3289e1(0x161))/0x1+parseInt(_0x3289e1(0x146))/0x2*(-parseInt(_0x3289e1(0x170))/0x3)+-parseInt(_0x3289e1(0x16e))/0x4+-parseInt(_0x3289e1(0x186))/0x5+parseInt(_0x3289e1(0x142))/0x6+-parseInt(_0x3289e1(0x13b))/0x7+parseInt(_0x3289e1(0x182))/0x8;if(_0x1c0511===_0x21dbb1)break;else _0x33031e['push'](_0x33031e['shift']());}catch(_0x11d8b1){_0x33031e['push'](_0x33031e['shift']());}}}(_0xcb6f,0x8cdde));import{getTranslation as _0x75e442}from'../../utils/common-translations.js';import{default as _0x1a4d0e}from'./basesuggestionthreadview.js';function _0xcb6f(){const _0x79dfe2=['EXTERNAL_IMPORT_WORD_AVATAR','addMany','ck-suggestion','bindTemplate','userView','author','ck-suggestion__info','time','disableComments','attributes','authoredAt','ck-annotation__info-time','ck-suggestion-wrapper','span','render','canAccept','ck-comment__info-time','commentThreadInputView','set','ariaDescriptionView','ck-suggestion--accept','ck-suggestion-','getTemplate','ck-suggestion__actions','_createButton','discardButton','isActive','164990TAbPIB','_descriptionElement','ck-suggestion__main','execute','presentation','ck-comment__external','isExternal','5708772SngtAV','acceptButton','ck-suggestion__info-name','editorReady','346778jUImSo','color','formatDateTime','getUserViewNotificationText','ck-annotation','_model','ck-suggestion__user','element','listitem','change:description','div','bind','ck-annotation__main','commentThread','description','children','isEnabled','ck-annotation__info','innerHTML','EXTERNAL_IMPORT_WORD_SUGGESTION','check','editorDestroyed','canDiscard','ck-annotation__info-name','focusables','content','Discard\x20suggestion','819394ofqUoK','creator','importWord','<p>','discardSuggestion','EXTERNAL_AVATAR','commentsListView','EXTERNAL_SUGGESTION','_config','setTemplate','querySelector','ck-rounded-corners','</p>','2202236tKVSCq','Accept\x20suggestion','15LRKGLe','extendTemplate','ck-annotation__content-wrapper','push','source','locale','descriptionParts','ck-suggestion-wrapper--active','getExternalSuggestionNote','.ck-annotation__content-wrapper','ck-suggestion--disabled-comments','acceptSuggestion','add','delegate','ck-annotation__user','type','ariaLabel','ck-suggestion--discard','5705368FZLfDV','name','@external','ck-annotation__actions','2329815PKzTQq','fire','cancel'];_0xcb6f=function(){return _0x79dfe2;};return _0xcb6f();}import{icons as _0x4cd33f}from'ckeditor5/src/core.js';function _0x1247(_0x53616f,_0xf58709){const _0xcb6f77=_0xcb6f();return _0x1247=function(_0x124782,_0x4d023c){_0x124782=_0x124782-0x12e;let _0xfb321f=_0xcb6f77[_0x124782];return _0xfb321f;},_0x1247(_0x53616f,_0xf58709);}import{LateFocusButtonView as _0x405496,trimHtml as _0x35b605,UserView as _0x51c532}from'ckeditor5-collaboration/src/collaboration-core.js';import{renderDescription as _0x2c7bb6}from'../../utils/utils.js';export default class re extends _0x1a4d0e{constructor(_0x257ecb,_0x2dbbb5,_0x29a575,_0x7d833){const _0x49a7f3=_0x1247;super(_0x257ecb,_0x2dbbb5,_0x29a575,_0x7d833),this[_0x49a7f3(0x132)](_0x49a7f3(0x17f),''),this[_0x49a7f3(0x151)](_0x49a7f3(0x17f))['to'](this,_0x49a7f3(0x176),_0x3a0bc0=>_0x3a0bc0&&_0x3a0bc0[0x0]?_0x3a0bc0[0x0][_0x49a7f3(0x17f)]:''),this[_0x49a7f3(0x151)](_0x49a7f3(0x154))['to'](this,_0x49a7f3(0x176),this,_0x49a7f3(0x13a),(_0x167a76,_0x173c9e)=>{const _0x13f25c=_0x49a7f3;let _0x46cb04='';for(const _0x2a9cdd of _0x167a76)_0x46cb04+=_0x13f25c(0x164)+_0x2c7bb6(_0x2a9cdd[_0x13f25c(0x15f)],_0x2a9cdd[_0x13f25c(0x147)])+_0x13f25c(0x16d);return _0x173c9e?_0x46cb04:_0x35b605(_0x46cb04,{'limit':0x8c});}),this[_0x49a7f3(0x13c)]=null,this[_0x49a7f3(0x143)]=this[_0x49a7f3(0x138)](_0x75e442(_0x257ecb,_0x49a7f3(0x16f)),_0x4cd33f[_0x49a7f3(0x15a)],_0x49a7f3(0x134),_0x49a7f3(0x17b),'sw'),this[_0x49a7f3(0x143)][_0x49a7f3(0x151)](_0x49a7f3(0x156))['to'](this,_0x49a7f3(0x12f)),this[_0x49a7f3(0x139)]=this[_0x49a7f3(0x138)](_0x75e442(_0x257ecb,_0x49a7f3(0x160)),_0x4cd33f[_0x49a7f3(0x188)],_0x49a7f3(0x181),_0x49a7f3(0x165),'sw'),this[_0x49a7f3(0x139)][_0x49a7f3(0x151)](_0x49a7f3(0x156))['to'](this,_0x49a7f3(0x15c)),this[_0x49a7f3(0x18d)]=new _0x51c532(_0x257ecb,this[_0x49a7f3(0x14b)][_0x49a7f3(0x18e)],this[_0x49a7f3(0x149)]()),this[_0x49a7f3(0x18d)][_0x49a7f3(0x171)]({'attributes':{'class':[_0x49a7f3(0x14c),_0x49a7f3(0x17e)],'aria-hidden':!0x0}}),this[_0x49a7f3(0x15e)][_0x49a7f3(0x18a)]([this[_0x49a7f3(0x143)],this[_0x49a7f3(0x139)]]),this[_0x49a7f3(0x167)]&&this[_0x49a7f3(0x15e)][_0x49a7f3(0x17c)](this[_0x49a7f3(0x167)]),this[_0x49a7f3(0x131)]&&this[_0x49a7f3(0x15e)][_0x49a7f3(0x17c)](this[_0x49a7f3(0x131)]),this[_0x49a7f3(0x16a)](this[_0x49a7f3(0x136)]());}[_0x3f2d8d(0x136)](){const _0x5c44ea=_0x3f2d8d,_0x125d6f=this[_0x5c44ea(0x18c)],_0x449079=[{'tag':_0x5c44ea(0x150),'attributes':{'class':[_0x5c44ea(0x18f),_0x5c44ea(0x157)]},'children':[{'tag':_0x5c44ea(0x196),'children':[{'text':this[_0x5c44ea(0x18d)][_0x5c44ea(0x183)]}],'attributes':{'class':[_0x5c44ea(0x144),_0x5c44ea(0x15d)]}},{'tag':_0x5c44ea(0x190),'attributes':{'datetime':_0x125d6f['to'](_0x5c44ea(0x193)),'class':[_0x5c44ea(0x130),_0x5c44ea(0x194)]},'children':[{'text':_0x125d6f['to'](_0x5c44ea(0x193),_0x59eb69=>this[_0x5c44ea(0x169)][_0x5c44ea(0x148)](_0x59eb69))}]}]},{'tag':_0x5c44ea(0x150),'attributes':{'class':[_0x5c44ea(0x137),_0x5c44ea(0x185)]},'children':[this[_0x5c44ea(0x143)],this[_0x5c44ea(0x139)]]},{'tag':_0x5c44ea(0x150),'attributes':{'class':[_0x5c44ea(0x172)]}}];this[_0x5c44ea(0x14b)][_0x5c44ea(0x141)]&&_0x449079[_0x5c44ea(0x173)]({'tag':_0x5c44ea(0x150),'attributes':{'class':[_0x5c44ea(0x140)]},'children':[{'text':this[_0x5c44ea(0x178)]()}]});const _0x59e8cf={'tag':_0x5c44ea(0x150),'attributes':{'class':['ck',_0x5c44ea(0x16c),_0x5c44ea(0x195),_0x125d6f['if'](_0x5c44ea(0x13a),_0x5c44ea(0x177)),_0x125d6f['to'](_0x5c44ea(0x17f),_0x4e6346=>_0x5c44ea(0x135)+_0x4e6346),this[_0x5c44ea(0x169)][_0x5c44ea(0x191)]&&_0x5c44ea(0x17a)],'data-suggestion-id':this[_0x5c44ea(0x14b)]['id'],'data-thread-id':this[_0x5c44ea(0x14b)][_0x5c44ea(0x153)]['id'],'data-author-id':this[_0x5c44ea(0x14b)][_0x5c44ea(0x18e)]['id'],'tabindex':0x0,'role':_0x5c44ea(0x14e),'aria-label':_0x125d6f['to'](_0x5c44ea(0x180)),'aria-describedby':this[_0x5c44ea(0x133)]['id']},'children':[{'tag':_0x5c44ea(0x150),'attributes':{'class':[_0x5c44ea(0x18b),_0x5c44ea(0x14a)]},'children':[this[_0x5c44ea(0x18d)],{'tag':_0x5c44ea(0x150),'attributes':{'class':[_0x5c44ea(0x13d),_0x5c44ea(0x152)],'role':_0x5c44ea(0x13f)},'children':_0x449079},this[_0x5c44ea(0x133)]]}]};return this[_0x5c44ea(0x167)]&&this[_0x5c44ea(0x131)]&&(_0x59e8cf[_0x5c44ea(0x155)][_0x5c44ea(0x173)](this[_0x5c44ea(0x167)],this[_0x5c44ea(0x131)]),this[_0x5c44ea(0x167)][_0x5c44ea(0x17d)](_0x5c44ea(0x145))['to'](this),this[_0x5c44ea(0x167)][_0x5c44ea(0x17d)](_0x5c44ea(0x15b))['to'](this),this[_0x5c44ea(0x131)][_0x5c44ea(0x17d)](_0x5c44ea(0x145))['to'](this),this[_0x5c44ea(0x131)][_0x5c44ea(0x17d)](_0x5c44ea(0x15b))['to'](this)),_0x59e8cf;}[_0x3f2d8d(0x12e)](){const _0xb343d6=_0x3f2d8d;super[_0xb343d6(0x12e)](),this[_0xb343d6(0x13c)]=this[_0xb343d6(0x14d)][_0xb343d6(0x16b)](_0xb343d6(0x179)),this[_0xb343d6(0x13c)][_0xb343d6(0x158)]=this[_0xb343d6(0x154)],this['on'](_0xb343d6(0x14f),(_0x55de8e,_0x3504f5,_0x57954d)=>{const _0x2185da=_0xb343d6;this[_0x2185da(0x13c)][_0x2185da(0x158)]=_0x57954d;});}[_0x3f2d8d(0x138)](_0x122dac,_0x1bed2e,_0x564aac,_0x536edb,_0x385beb){const _0x413701=_0x3f2d8d,_0x1d55f5=new _0x405496(this[_0x413701(0x175)]);return _0x1d55f5[_0x413701(0x132)]({'label':_0x122dac,'icon':_0x1bed2e,'tooltip':!0x0,'tooltipPosition':_0x385beb}),_0x1d55f5[_0x413701(0x171)]({'attributes':{'class':_0x564aac}}),_0x1d55f5['on'](_0x413701(0x13e),()=>{const _0x23f6b4=_0x413701;this[_0x23f6b4(0x187)](_0x536edb,this[_0x23f6b4(0x14b)]['id']);}),_0x1d55f5;}[_0x3f2d8d(0x178)](){const _0x27783d=_0x3f2d8d;return _0x27783d(0x163)===this[_0x27783d(0x14b)][_0x27783d(0x192)][_0x27783d(0x184)][_0x27783d(0x174)]?_0x75e442(this[_0x27783d(0x175)],_0x27783d(0x159)):_0x75e442(this[_0x27783d(0x175)],_0x27783d(0x168));}[_0x3f2d8d(0x149)](){const _0x54400b=_0x3f2d8d;return this[_0x54400b(0x14b)][_0x54400b(0x141)]?_0x54400b(0x163)===this[_0x54400b(0x14b)][_0x54400b(0x192)][_0x54400b(0x184)][_0x54400b(0x174)]?_0x75e442(this[_0x54400b(0x175)],_0x54400b(0x189),this[_0x54400b(0x14b)][_0x54400b(0x162)][_0x54400b(0x183)]):_0x75e442(this[_0x54400b(0x175)],_0x54400b(0x166),this[_0x54400b(0x14b)][_0x54400b(0x162)][_0x54400b(0x183)]):null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x85f329,_0xe50ceb,_0x1409f7){const t=_0x85f329['t'];switch(_0xe50ceb){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',_0x1409f7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1409f7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1409f7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1409f7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1409f7);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',_0x1409f7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1409f7);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',_0x1409f7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1409f7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1409f7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1409f7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1409f7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1409f7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1409f7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1409f7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1409f7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1409f7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1409f7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1409f7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1409f7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1409f7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1409f7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1409f7);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'},_0x1409f7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1409f7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1409f7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1409f7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1409f7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1409f7);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'},_0x1409f7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1409f7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1409f7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1409f7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1409f7);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});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'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x1409f7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1409f7);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'},_0x1409f7);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'},_0x1409f7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1409f7);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'},_0x1409f7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1409f7);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'},_0x1409f7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1409f7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1409f7);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'},_0x1409f7);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'},_0x1409f7);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 _0xe50ceb;}}
|
|
23
|
+
export function getTranslation(_0x548553,_0x47c0e7,_0x370b6e){const t=_0x548553['t'];switch(_0x47c0e7){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',_0x370b6e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x370b6e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x370b6e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x370b6e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x370b6e);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',_0x370b6e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x370b6e);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',_0x370b6e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x370b6e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x370b6e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x370b6e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x370b6e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x370b6e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x370b6e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x370b6e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x370b6e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x370b6e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x370b6e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x370b6e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x370b6e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x370b6e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x370b6e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x370b6e);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'},_0x370b6e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x370b6e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x370b6e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x370b6e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x370b6e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x370b6e);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'},_0x370b6e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x370b6e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x370b6e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x370b6e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x370b6e);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});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'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x370b6e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x370b6e);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'},_0x370b6e);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'},_0x370b6e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x370b6e);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'},_0x370b6e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x370b6e);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'},_0x370b6e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x370b6e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x370b6e);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x370b6e);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'},_0x370b6e);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'},_0x370b6e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x370b6e);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x370b6e);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x370b6e);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x370b6e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x47c0e7;}}
|
package/src/utils/utils.d.ts
CHANGED
|
@@ -13,6 +13,13 @@ import type { Description } from '../suggestiondescriptionfactory.js';
|
|
|
13
13
|
* Used in tests for easy suggestion comparison.
|
|
14
14
|
*/
|
|
15
15
|
export declare function normalizeDescription(description: Array<Description> | Description): string;
|
|
16
|
+
/**
|
|
17
|
+
* Renders a rich HTML description out of primitive description string.
|
|
18
|
+
*/
|
|
19
|
+
export declare function renderDescription(description: string, color?: {
|
|
20
|
+
value: string;
|
|
21
|
+
title: string;
|
|
22
|
+
}): string;
|
|
16
23
|
export declare function sortSuggestions(suggestions: Array<Suggestion>): Array<Suggestion>;
|
|
17
24
|
/**
|
|
18
25
|
* From the list of passed `suggestions` returns those that are selected by given `selection`.
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x54a75f,_0x141570){const _0x505782=_0x1cbd,_0xc09c18=_0x54a75f();while(!![]){try{const _0x419f52=parseInt(_0x505782(0x87))/0x1+-parseInt(_0x505782(0x8c))/0x2+-parseInt(_0x505782(0x9f))/0x3*(parseInt(_0x505782(0x88))/0x4)+parseInt(_0x505782(0x8f))/0x5+-parseInt(_0x505782(0x8b))/0x6*(-parseInt(_0x505782(0xa5))/0x7)+-parseInt(_0x505782(0x85))/0x8+parseInt(_0x505782(0xac))/0x9;if(_0x419f52===_0x141570)break;else _0xc09c18['push'](_0xc09c18['shift']());}catch(_0x234737){_0xc09c18['push'](_0xc09c18['shift']());}}}(_0x3c02,0x3203e));export function normalizeDescription(_0x3100d6){const _0x59ab1c=_0x1cbd;return Array[_0x59ab1c(0xa3)](_0x3100d6)||(_0x3100d6=[_0x3100d6]),_0x3100d6[_0x59ab1c(0x86)](_0x24193b=>{const _0x48fa2e=_0x59ab1c,_0x4e64b3=_0x24193b[_0x48fa2e(0x90)][_0x48fa2e(0xa4)](/\*/g,''),_0x528402=_0x24193b[_0x48fa2e(0x82)]?_0x48fa2e(0xa7)+_0x24193b[_0x48fa2e(0x82)][_0x48fa2e(0x81)]+']':'';return'['+_0x24193b[_0x48fa2e(0x9e)]+']\x20'+_0x4e64b3+_0x528402;})[_0x59ab1c(0x9d)](';\x20');}function _0x1cbd(_0x3ec12a,_0x497b1a){const _0x3c02d0=_0x3c02();return _0x1cbd=function(_0x1cbdbf,_0x476cd3){_0x1cbdbf=_0x1cbdbf-0x7d;let _0x938460=_0x3c02d0[_0x1cbdbf];return _0x938460;},_0x1cbd(_0x3ec12a,_0x497b1a);}export function renderDescription(_0x11f15f,_0x372499){const _0x481c8f=_0x1cbd;let _0x6b0348='';return _0x6b0348+=_0x11f15f[_0x481c8f(0x83)]('*')[_0x481c8f(0x86)]((_0x2abaf8,_0x15cb1e)=>_0x15cb1e%0x2!=0x0?_0x481c8f(0xae)+nn(_0x2abaf8)+_0x481c8f(0x92):nn(_0x2abaf8))[_0x481c8f(0x9d)](''),_0x372499&&(_0x6b0348+=_0x481c8f(0x95)+_0x372499[_0x481c8f(0x81)]+_0x481c8f(0xad)+_0x372499[_0x481c8f(0xa0)]+_0x481c8f(0x99)),_0x6b0348;}function nn(_0x192e71){const _0x581592=_0x1cbd,_0x4ba2ed=document[_0x581592(0x93)](_0x581592(0x94));return _0x4ba2ed[_0x581592(0xaa)]=_0x192e71,_0x4ba2ed[_0x581592(0x98)];}export function sortSuggestions(_0x5865e2){const _0x2e97be=_0x1cbd;return _0x5865e2[_0x2e97be(0x8e)]((_0x131ef7,_0x1e798e)=>_0x2e97be(0x7e)==_0x131ef7[_0x2e97be(0x9e)]&&_0x2e97be(0x7e)!=_0x1e798e[_0x2e97be(0x9e)]?-0x1:_0x2e97be(0x7e)!=_0x131ef7[_0x2e97be(0x9e)]&&_0x2e97be(0x7e)==_0x1e798e[_0x2e97be(0x9e)]?0x1:0x0);}export function getSelectedSuggestions(_0x447e44,_0x270a27){const _0xa2c0a6=_0x1cbd,_0x1db642=Array[_0xa2c0a6(0x9b)](_0x447e44[_0xa2c0a6(0x9c)]()),_0xa225cf=new Set();for(const _0x225f73 of _0x270a27)if(_0x225f73[_0xa2c0a6(0xa2)]){for(const _0x2abc76 of _0x1db642)for(const _0x39b73a of _0x225f73[_0xa2c0a6(0x9c)]())(_0x2abc76[_0xa2c0a6(0xa1)](_0x39b73a)||_0x447e44[_0xa2c0a6(0x91)]&&!_0x225f73[_0xa2c0a6(0x89)]&&_0x225f73[_0xa2c0a6(0xa6)]&&_0x39b73a[_0xa2c0a6(0xa9)][_0xa2c0a6(0xb0)](_0x2abc76[_0xa2c0a6(0xa8)]))&&_0xa225cf[_0xa2c0a6(0x9a)](_0x225f73);}return _0xa225cf;}export function getRangesOfBlockGroups(_0x31e13f,_0x207610){const _0x4cab66=_0x1cbd;let _0x2b1062,_0x4059e2=0x0;const _0x3e00e2=[],_0x19da6d=_0x207610[_0x4cab66(0x7d)];for(;_0x4059e2<_0x31e13f[_0x4cab66(0x8d)];){const _0x1e1bd7=_0x31e13f[_0x4059e2],_0x3fb5da=_0x31e13f[_0x4059e2+0x1];_0x2b1062||(_0x2b1062=_0x207610[_0x4cab66(0x80)](_0x1e1bd7)),on(_0x207610,_0x1e1bd7,_0x3fb5da)||(_0x3e00e2[_0x4cab66(0x97)](_0x207610[_0x4cab66(0x84)](_0x2b1062,_0x19da6d[_0x4cab66(0xaf)](_0x1e1bd7)?_0x207610[_0x4cab66(0x96)](_0x1e1bd7):_0x207610[_0x4cab66(0x7f)](_0x1e1bd7,_0x4cab66(0xa9)))),_0x2b1062=null),_0x4059e2++;}return _0x3e00e2;}function on(_0x531963,_0x15c51a,_0x3492d9){const _0x11fe23=_0x1cbd;if(!_0x3492d9)return!0x1;const _0x258c34=_0x531963[_0x11fe23(0x96)](_0x15c51a),_0x1ae2cd=_0x531963[_0x11fe23(0x80)](_0x3492d9);return _0x258c34[_0x11fe23(0xb0)](_0x1ae2cd);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x21c2b5,_0x3b525e,_0x70f213){const _0x5e707a=_0x1cbd;for(;_0x70f213[_0x5e707a(0x8d)];){const _0xbcefbc=_0x70f213[_0x5e707a(0x8a)](0x0,0x64);_0x21c2b5[_0x5e707a(0xb1)](()=>{const _0x54edbf=_0x5e707a;for(const _0x237466 of _0xbcefbc)_0x237466[_0x54edbf(0xa2)]&&_0x3b525e[_0x54edbf(0xab)](_0x237466['id']);});}}function _0x3c02(){const _0x22b80b=['add','from','getRanges','join','type','171kBzDtA','title','isIntersecting','isInContent','isArray','replace','7kRwWGN','next','\x20[color\x20','start','end','innerText','execute','4646565cZqMYk','\x22\x20title=\x22','<span\x20class=\x22ck-suggestion-type\x22>','isObject','isTouching','change','schema','deletion','createPositionAt','createPositionBefore','value','color','split','createRange','2679832ikWXPN','map','47650VoaGMb','22724PmSkJN','isMultiRange','splice','578118IWgtvb','250334Xfuamr','length','sort','1642685ZQfqnT','content','isCollapsed','</span>','createElement','span','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','createPositionAfter','push','innerHTML','\x22></span>'];_0x3c02=function(){return _0x22b80b;};return _0x3c02();}
|