@ckeditor/ckeditor5-track-changes 42.0.2 → 43.0.0-alpha.1
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
|
-
function _0x4ccb(_0x104ad7,_0x213718){const _0x222e53=_0x222e();return _0x4ccb=function(_0x4ccb23,_0x6f8953){_0x4ccb23=_0x4ccb23-0x65;let _0x7ade9e=_0x222e53[_0x4ccb23];return _0x7ade9e;},_0x4ccb(_0x104ad7,_0x213718);}const _0x40db61=_0x4ccb;(function(_0x4625da,_0x270688){const _0x1a54a0=_0x4ccb,_0x2dc9c5=_0x4625da();while(!![]){try{const _0x546511=-parseInt(_0x1a54a0(0xa4))/0x1+-parseInt(_0x1a54a0(0x8e))/0x2*(-parseInt(_0x1a54a0(0xc8))/0x3)+-parseInt(_0x1a54a0(0x9f))/0x4*(parseInt(_0x1a54a0(0xe4))/0x5)+parseInt(_0x1a54a0(0xd9))/0x6+-parseInt(_0x1a54a0(0xf2))/0x7+-parseInt(_0x1a54a0(0xc2))/0x8+parseInt(_0x1a54a0(0xbe))/0x9;if(_0x546511===_0x270688)break;else _0x2dc9c5['push'](_0x2dc9c5['shift']());}catch(_0x2c5f8f){_0x2dc9c5['push'](_0x2dc9c5['shift']());}}}(_0x222e,0xd0968));import{Plugin as _0x2fd630}from'ckeditor5/src/core.js';import{Collection as _0x508543}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x3ea26d,createDropdown as _0x24989f,ListSeparatorView as _0x360c3c,MenuBarMenuView as _0x4351a6,MenuBarMenuListView as _0x562537,MenuBarMenuListItemView as _0x136124,MenuBarMenuListItemButtonView as _0x410a86,SplitButtonView as _0xf744d9,ViewModel as _0x6b3da6}from'ckeditor5/src/ui.js';import{Users as _0x2505f6,getDateTimeFormatter as _0x3e9b00,getAllMarkersDomElementsSorted as _0x503acb}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2b99c1 from'./trackchangesediting.js';import _0x177234 from'./ui/suggestioncontroller.js';function _0x222e(){const _0x288cd0=['_createToolbarButton','type','isInContent','reduce','getSuggestion','trackChanges','items','requires','comments.maxThreadTotalWeight','addSourceCollector','suggestionUnloaded','isMultiRange','commands','1413420BtzhMp','SuggestionThreadView','execute','change:previous','_addUIComponentsToFactory','set','componentFactory','has','commentThread','getMarkers','get','7622975KcZBRn','menuitem','destroy','panelView','buttonView','suggestionLoaded','_handleSuggestionControllerDelayed','init','filter','acceptAllSuggestions','createCommentThreadController','getJoined','_viewToController','editor','6139959ndNTdV','addComment','getRanges','_handleControllerBuffer','suggestionChanged','add','source','change:activeAnnotations','isEnabled','_initializeController','_refreshActiveMarkers','editing','CommentsUI','menu','TrackChangesEditing','length','toMany','previous','_disableComments','refreshSelectedViews','CommentView','Discard\x20all\x20suggestions','trackChanges.SuggestionThreadView','_destroyController','innerView','from','suggestion-','model','createAnnotation','menuitemcheckbox','CommentsRepository','config','separator','activeAnnotations','actionView','switchbutton','registerAnnotation','discardButton','children','some','listenTo','delete','hasSuggestion','arrowView','2agitfR','define','menuBar:trackChanges','remove','button','comments.maxCommentCharsWhenCollapsed','_unbindEditors','Annotations','values','discardSelectedSuggestions','descriptionFactory','descriptionParts','_bindAnnotationToEditors','stopListening','plugins','Accept\x20all\x20suggestions','head','4ZpAWbi','discardAllSuggestions','acceptSelectedSuggestions','comments','commandName','9293jXHmGq','isDirty','_annotationViews','focus','pluginName','keys','getMarkerNames','view','createAnnotationView','getByInnerView','trackChanges.disableComments','locale','delegate','Accept\x20all\x20selected\x20suggestions','getFirstRange','acceptButton','mainView','lowest','Track\x20changes','_createMenuBarMenu','getAllAdjacentSuggestions','isOn','_suggestionToController','TrackChangesUI','bind','clear','30233115vRogZH','EditorAnnotations','push','_updateController','2677128rjWYcC','getDescriptions','size','activeMarkers','unbind','comments.maxCommentsWhenCollapsed','15711kWZUkB','value','Discard\x20all\x20selected\x20suggestions','comments.editorConfig'];_0x222e=function(){return _0x288cd0;};return _0x222e();}import _0x1320ff from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x498b1b}from'./utils/common-translations.js';import _0x3d8676 from'../theme/icons/track-changes.svg';export default class d extends _0x2fd630{static get[_0x40db61(0xd3)](){const _0x41b6b3=_0x40db61;return[_0x2b99c1,_0x2505f6,_0x41b6b3(0x80),_0x41b6b3(0x95),_0x41b6b3(0xbf)];}static get[_0x40db61(0xa8)](){const _0x1b43fa=_0x40db61;return _0x1b43fa(0xbb);}constructor(_0x48aceb){const _0x4dcd63=_0x40db61;super(_0x48aceb),this[_0x4dcd63(0xba)]=new Map(),this[_0x4dcd63(0xf0)]=new Map(),this[_0x4dcd63(0xa6)]=new Map(),this[_0x4dcd63(0x65)]=new Map();const _0x54b9e4=this[_0x4dcd63(0xf1)][_0x4dcd63(0x81)];_0x54b9e4[_0x4dcd63(0x8f)](_0x4dcd63(0x78),_0x1320ff),_0x54b9e4[_0x4dcd63(0x8f)](_0x4dcd63(0xae),!0x1),this[_0x4dcd63(0x74)]=_0x54b9e4[_0x4dcd63(0xe3)](_0x4dcd63(0xae));}[_0x40db61(0xea)](_0x2cd42b,_0xc97ef3){const _0x31c1c1=_0x40db61;0x0===this[_0x31c1c1(0x65)][_0x31c1c1(0xc4)]&&setTimeout(()=>{const _0x504cd3=_0x31c1c1;for(const [_0x1ca2a7,_0x5a4994]of this[_0x504cd3(0x65)]){const _0x5e6387=this[_0x504cd3(0xba)][_0x504cd3(0xe0)](_0x1ca2a7);_0x5e6387||_0x5a4994?_0x5e6387&&_0x5a4994&&this[_0x504cd3(0x79)](_0x1ca2a7):this[_0x504cd3(0x6b)](_0x1ca2a7);}this[_0x504cd3(0x65)][_0x504cd3(0xbd)](),this[_0x504cd3(0xf1)][_0x504cd3(0x9c)][_0x504cd3(0xe3)](_0x504cd3(0xbf))[_0x504cd3(0x75)](),this[_0x504cd3(0x6c)]();},0xa),this[_0x31c1c1(0x65)][_0x31c1c1(0xde)](_0x2cd42b,_0xc97ef3);}[_0x40db61(0xeb)](){const _0x404b7d=_0x40db61,_0x329fcd=this[_0x404b7d(0xf1)],_0x27ed57=_0x329fcd[_0x404b7d(0x9c)][_0x404b7d(0xe3)](_0x404b7d(0x70)),_0xb6c6b4=_0x329fcd[_0x404b7d(0x9c)][_0x404b7d(0xe3)](_0x404b7d(0x95)),_0x4d69dd=_0x329fcd[_0x404b7d(0x9c)][_0x404b7d(0xe3)](_0x404b7d(0xbf)),_0x4fea48=_0x329fcd[_0x404b7d(0x9c)][_0x404b7d(0xe3)](_0x404b7d(0x80));this[_0x404b7d(0xdd)](),_0x4d69dd[_0x404b7d(0xd5)](()=>{const _0x48a522=_0x404b7d,_0x273231=[];for(const [_0x26ec9b,_0x4a6659]of Array[_0x48a522(0x7b)](this[_0x48a522(0xba)])){const _0x749d81=_0x26ec9b[_0x48a522(0xb8)](),_0x4eb338=[];for(const _0x85b0bb of _0x749d81){if(!_0x85b0bb[_0x48a522(0xce)])continue;if(_0x85b0bb[_0x48a522(0xd7)]){_0x4eb338[_0x48a522(0xc0)](..._0x85b0bb[_0x48a522(0xf4)]());continue;}const _0x339590=_0x85b0bb[_0x48a522(0xb2)]();if(_0x4eb338[_0x48a522(0x71)]>0x0){const _0x32f413=_0x4eb338[0x0][_0x48a522(0xef)](_0x339590);if(_0x32f413){_0x4eb338[0x0]=_0x32f413;continue;}}_0x4eb338[_0x48a522(0xc0)](_0x339590);}_0x273231[_0x48a522(0xc0)]([_0x4a6659[_0x48a522(0xab)],_0x4eb338]);}return _0x273231;}),this[_0x404b7d(0x8a)](_0x27ed57,_0x404b7d(0xe9),(_0x339b30,_0x4fe931)=>{const _0x36aa51=_0x404b7d;this[_0x36aa51(0x8a)](_0x4fe931,_0x36aa51(0xdc),(_0x7b8309,_0x384118,_0x419ed9,_0x3c7cdd)=>{const _0x5f361e=_0x36aa51;_0x4fe931[_0x5f361e(0xce)]&&(null==_0x419ed9?(this[_0x5f361e(0xc1)](_0x3c7cdd[_0x5f361e(0x9e)]),this[_0x5f361e(0xea)](_0x4fe931,!0x1)):(this[_0x5f361e(0xc1)](_0x419ed9[_0x5f361e(0x9e)]),null==_0x3c7cdd&&this[_0x5f361e(0xea)](_0x4fe931,!0x0)));}),null!==_0x4fe931[_0x36aa51(0x73)]?this[_0x36aa51(0xc1)](_0x4fe931[_0x36aa51(0x9e)]):this[_0x36aa51(0xea)](_0x4fe931,!0x1);}),this[_0x404b7d(0x8a)](_0x27ed57,_0x404b7d(0xd6),(_0x3d349d,_0x18b872,_0x1216e8)=>{const _0xe4f156=_0x404b7d;this[_0xe4f156(0x9b)](_0x18b872,_0xe4f156(0xdc)),this[_0xe4f156(0x65)][_0xe4f156(0x8b)](_0x18b872),this[_0xe4f156(0xba)][_0xe4f156(0xe0)](_0x18b872)&&this[_0xe4f156(0x79)](_0x18b872),_0x1216e8&&this[_0xe4f156(0xc1)](_0x1216e8[_0xe4f156(0x9e)]);}),this[_0x404b7d(0x8a)](_0x27ed57,_0x404b7d(0x66),(_0x44395c,_0x3b31d8)=>{const _0x55b077=_0x404b7d;this[_0x55b077(0xc1)](_0x3b31d8);}),this[_0x404b7d(0x8a)](_0xb6c6b4,_0x404b7d(0x69),()=>{const _0x2485c9=_0x404b7d;this[_0x2485c9(0x6c)]();}),this[_0x404b7d(0x8a)](_0x4fea48,_0x404b7d(0xf3),(_0x4dbb9e,{threadId:_0xe6dbb,isFromAdapter:_0x25d6b5})=>{const _0x3f13fe=_0x404b7d;if(_0x25d6b5||!_0x27ed57[_0x3f13fe(0x8c)](_0xe6dbb))return;const _0x532368=_0x27ed57[_0x3f13fe(0xd0)](_0xe6dbb);this[_0x3f13fe(0xba)][_0x3f13fe(0xe3)](_0x532368)[_0x3f13fe(0xab)][_0x3f13fe(0xa7)]();},{'priority':_0x404b7d(0xb5)});}[_0x40db61(0x6c)](){const _0x499c83=_0x40db61,_0x4fd6aa=this[_0x499c83(0xf1)][_0x499c83(0x9c)][_0x499c83(0xe3)](_0x499c83(0x95)),_0x1bf374=this[_0x499c83(0xf1)][_0x499c83(0x9c)][_0x499c83(0xe3)](_0x499c83(0x70)),_0x3495cb=Array[_0x499c83(0x7b)](_0x4fd6aa[_0x499c83(0x83)],_0x9d7689=>_0x9d7689[_0x499c83(0x7a)])[_0x499c83(0xec)](_0x2bb0b9=>this[_0x499c83(0xf0)][_0x499c83(0xe0)](_0x2bb0b9)),_0x1ab5da=[];for(const _0x45c106 of _0x3495cb){const _0x15b0bb=this[_0x499c83(0xf0)][_0x499c83(0xe3)](_0x45c106)[_0x499c83(0x7d)][_0x499c83(0xb8)]();_0x1ab5da[_0x499c83(0xc0)](..._0x15b0bb[_0x499c83(0xcf)]((_0x2617f6,_0x31431c)=>[..._0x2617f6,..._0x31431c[_0x499c83(0xaa)]()],[]));}_0x1bf374[_0x499c83(0xc5)]=_0x1ab5da;}[_0x40db61(0xdd)](){const _0xd0079e=_0x40db61,_0x476c70=this[_0xd0079e(0xf1)],_0x2e952a=_0x476c70[_0xd0079e(0xaf)],_0x58c696=_0x498b1b(_0x2e952a,_0xd0079e(0xb6)),_0x424547=new _0x508543([{'type':_0xd0079e(0x85),'model':new _0x6b3da6({'withText':!0x0,'label':_0x58c696,'commandName':_0xd0079e(0xd1),'role':_0xd0079e(0x7f)})},{'type':_0xd0079e(0x82)},{'type':_0xd0079e(0x92),'model':new _0x6b3da6({'withText':!0x0,'label':_0x498b1b(_0x2e952a,_0xd0079e(0x9d)),'commandName':_0xd0079e(0xed),'role':_0xd0079e(0xe5)})},{'type':_0xd0079e(0x92),'model':new _0x6b3da6({'withText':!0x0,'label':_0x498b1b(_0x2e952a,_0xd0079e(0xb1)),'commandName':_0xd0079e(0xa1),'role':_0xd0079e(0xe5)})},{'type':_0xd0079e(0x92),'model':new _0x6b3da6({'withText':!0x0,'label':_0x498b1b(_0x2e952a,_0xd0079e(0x77)),'commandName':_0xd0079e(0xa0),'role':_0xd0079e(0xe5)})},{'type':_0xd0079e(0x92),'model':new _0x6b3da6({'withText':!0x0,'label':_0x498b1b(_0x2e952a,_0xd0079e(0xca)),'commandName':_0xd0079e(0x97),'role':_0xd0079e(0xe5)})}]);for(const _0x402fbe of _0x424547)if(ae(_0x402fbe)){const _0x646488=_0x476c70[_0xd0079e(0xd8)][_0xd0079e(0xe3)](_0x402fbe[_0xd0079e(0x7d)][_0xd0079e(0xa3)]);_0x402fbe[_0xd0079e(0x7d)][_0xd0079e(0xbc)](_0xd0079e(0xb9),_0xd0079e(0x6a))['to'](_0x646488,_0xd0079e(0xc9),_0xd0079e(0x6a));}_0x476c70['ui'][_0xd0079e(0xdf)][_0xd0079e(0x67)](_0xd0079e(0xd1),_0x35c5e6=>this[_0xd0079e(0xcc)](_0x35c5e6,_0x424547,_0x58c696)),_0x476c70['ui'][_0xd0079e(0xdf)][_0xd0079e(0x67)](_0xd0079e(0x90),_0x4e34eb=>this[_0xd0079e(0xb7)](_0x4e34eb,_0x424547,_0x58c696));}[_0x40db61(0xcc)](_0x27914a,_0x4e15cd,_0x1b1217){const _0x2053a1=_0x40db61,_0x5d362b=_0x24989f(_0x27914a,_0xf744d9),_0xf08172=this[_0x2053a1(0xf1)][_0x2053a1(0xd8)][_0x2053a1(0xe3)](_0x2053a1(0xd1));_0x5d362b[_0x2053a1(0xe8)][_0x2053a1(0xde)]({'tooltip':_0x1b1217,'label':_0x1b1217,'icon':_0x3d8676}),_0x5d362b[_0x2053a1(0xe8)][_0x2053a1(0xbc)](_0x2053a1(0xb9))['to'](_0xf08172,_0x2053a1(0xc9)),_0x5d362b[_0x2053a1(0xe8)]['on'](_0x2053a1(0xdb),()=>{const _0x3a4dac=_0x2053a1;_0xf08172[_0x3a4dac(0xdb)](),this[_0x3a4dac(0xf1)][_0x3a4dac(0x6d)][_0x3a4dac(0xab)][_0x3a4dac(0xa7)]();}),_0x3ea26d(_0x5d362b,_0x4e15cd,{'role':_0x2053a1(0x6f)});const _0x3b86b3=[];for(const _0x20cf10 of _0x4e15cd)ae(_0x20cf10)&&_0x3b86b3[_0x2053a1(0xc0)](this[_0x2053a1(0xf1)][_0x2053a1(0xd8)][_0x2053a1(0xe3)](_0x20cf10[_0x2053a1(0x7d)][_0x2053a1(0xa3)]));const _0x41f738=_0x5d362b[_0x2053a1(0xe8)];return _0x41f738[_0x2053a1(0x84)][_0x2053a1(0xc6)](_0x2053a1(0x6a)),_0x41f738[_0x2053a1(0x8d)][_0x2053a1(0xc6)](_0x2053a1(0x6a)),_0x41f738[_0x2053a1(0x84)][_0x2053a1(0xbc)](_0x2053a1(0x6a))['to'](_0xf08172,_0x2053a1(0x6a)),_0x41f738[_0x2053a1(0x8d)][_0x2053a1(0xbc)](_0x2053a1(0x6a))[_0x2053a1(0x72)](_0x3b86b3,_0x2053a1(0x6a),(..._0x5de8a9)=>_0x5de8a9[_0x2053a1(0x89)](_0x172269=>_0x172269)),_0x5d362b['on'](_0x2053a1(0xdb),_0x430648=>{const _0xa3a4b1=_0x2053a1;this[_0xa3a4b1(0xf1)][_0xa3a4b1(0xdb)](_0x430648[_0xa3a4b1(0x68)][_0xa3a4b1(0xa3)]),this[_0xa3a4b1(0xf1)][_0xa3a4b1(0x6d)][_0xa3a4b1(0xab)][_0xa3a4b1(0xa7)]();}),_0x5d362b;}[_0x40db61(0xb7)](_0x5494e5,_0x68bb98,_0x14894a){const _0x8733eb=_0x40db61,_0xa4617f=new _0x4351a6(_0x5494e5),_0x4181c9=this[_0x8733eb(0xf1)][_0x8733eb(0xd8)][_0x8733eb(0xe3)](_0x8733eb(0xd1));_0xa4617f[_0x8733eb(0xe8)][_0x8733eb(0xde)]({'label':_0x14894a,'icon':_0x3d8676});const _0x12d2e0=new _0x562537(_0x5494e5);for(const _0x51823d of _0x68bb98){if(_0x8733eb(0x82)==_0x51823d[_0x8733eb(0xcd)]){_0x12d2e0[_0x8733eb(0xd2)][_0x8733eb(0x67)](new _0x360c3c(_0x5494e5));continue;}const _0x16170c=new _0x136124(_0x5494e5,_0xa4617f),_0x7e553c=new _0x410a86(_0x5494e5),_0x356c32=_0x51823d[_0x8733eb(0x7d)];_0x7e553c[_0x8733eb(0xbc)](...Object[_0x8733eb(0xa9)](_0x356c32))['to'](_0x356c32),_0x7e553c[_0x8733eb(0xb0)](_0x8733eb(0xdb))['to'](_0xa4617f),_0x7e553c['on'](_0x8733eb(0xdb),()=>{const _0x2fb2fd=_0x8733eb;this[_0x2fb2fd(0xf1)][_0x2fb2fd(0xdb)](_0x356c32[_0x2fb2fd(0xa3)]),this[_0x2fb2fd(0xf1)][_0x2fb2fd(0x6d)][_0x2fb2fd(0xab)][_0x2fb2fd(0xa7)]();}),_0x16170c[_0x8733eb(0x88)][_0x8733eb(0x67)](_0x7e553c),_0x12d2e0[_0x8733eb(0xd2)][_0x8733eb(0x67)](_0x16170c);}return _0xa4617f[_0x8733eb(0xbc)](_0x8733eb(0x6a))['to'](_0x4181c9,_0x8733eb(0x6a)),_0xa4617f[_0x8733eb(0xe7)][_0x8733eb(0x88)][_0x8733eb(0x67)](_0x12d2e0),_0xa4617f;}[_0x40db61(0x6b)](_0x5396c2){const _0x1a773f=_0x40db61,_0x404077=this[_0x1a773f(0xf1)],_0x2297e7=_0x404077[_0x1a773f(0x81)],_0x4bc3a5=_0x404077[_0x1a773f(0x9c)][_0x1a773f(0xe3)](_0x1a773f(0x95)),_0x2351fa=_0x404077[_0x1a773f(0x9c)][_0x1a773f(0xe3)](_0x1a773f(0x80)),_0x5c091a=_0x404077[_0x1a773f(0x9c)][_0x1a773f(0xe3)](_0x1a773f(0xbf)),_0x78134=_0x404077[_0x1a773f(0x9c)][_0x1a773f(0xe3)](_0x2505f6)['me'],_0x52ac8f=_0x2297e7[_0x1a773f(0xe3)](_0x1a773f(0xd1))[_0x1a773f(0xda)],{CommentsListView:_0xadac87,CommentThreadInputView:_0x370865}=_0x404077[_0x1a773f(0x9c)][_0x1a773f(0xe3)](_0x1a773f(0x6e));let _0x4f850d,_0x106b4b;this[_0x1a773f(0xa6)][_0x1a773f(0xe0)](_0x5396c2['id'])?(_0x106b4b=this[_0x1a773f(0xa6)][_0x1a773f(0xe3)](_0x5396c2['id']),_0x4f850d=_0x106b4b[_0x1a773f(0xb4)]):(_0x4f850d=new _0x52ac8f(_0x404077[_0x1a773f(0xaf)],_0x5396c2,_0x78134,{'disableComments':this[_0x1a773f(0x74)],'editorConfig':_0x2297e7[_0x1a773f(0xe3)](_0x1a773f(0xcb)),'maxCommentsWhenCollapsed':_0x2297e7[_0x1a773f(0xe3)](_0x1a773f(0xc7)),'maxThreadTotalWeight':_0x2297e7[_0x1a773f(0xe3)](_0x1a773f(0xd4)),'maxCommentCharsWhenCollapsed':_0x2297e7[_0x1a773f(0xe3)](_0x1a773f(0x93)),'formatDateTime':_0x3e9b00(_0x2297e7[_0x1a773f(0xe3)](_0x1a773f(0xaf))),'CommentView':_0x2297e7[_0x1a773f(0xe3)](_0x1a773f(0xa2))[_0x1a773f(0x76)],'CommentsListView':_0xadac87,'CommentThreadInputView':_0x370865}),_0x4f850d[_0x1a773f(0xb3)]['on'](_0x1a773f(0xdb),()=>{const _0x2ce0c6=_0x1a773f;_0x404077[_0x2ce0c6(0x6d)][_0x2ce0c6(0xab)][_0x2ce0c6(0xa7)]();}),_0x4f850d[_0x1a773f(0x87)]['on'](_0x1a773f(0xdb),()=>{const _0x576d2f=_0x1a773f;_0x404077[_0x576d2f(0x6d)][_0x576d2f(0xab)][_0x576d2f(0xa7)]();}),_0x106b4b=_0x4bc3a5[_0x1a773f(0xac)](this[_0x1a773f(0xf1)][_0x1a773f(0xaf)],_0x4f850d),_0x106b4b[_0x1a773f(0xbc)](_0x1a773f(0xa5))['to'](_0x4f850d,_0x1a773f(0xa5)),_0x106b4b[_0x1a773f(0xbc)](_0x1a773f(0x71))['to'](_0x4f850d),_0x106b4b[_0x1a773f(0xbc)](_0x1a773f(0xcd))['to'](_0x4f850d,_0x1a773f(0xcd),_0x5f1146=>_0x1a773f(0x7c)+_0x5f1146),this[_0x1a773f(0xa6)][_0x1a773f(0xde)](_0x5396c2['id'],_0x106b4b));const _0x28e2c4=_0x2351fa[_0x1a773f(0xee)](_0x5396c2[_0x1a773f(0xe1)],_0x4f850d),_0x31d1fd=new _0x177234(_0x404077,_0x5396c2,_0x4f850d,_0x28e2c4),_0x570266=_0x5396c2[_0x1a773f(0xb8)]()[_0x1a773f(0xec)](_0x87206e=>_0x87206e[_0x1a773f(0xce)]);_0x4f850d[_0x1a773f(0x99)]=_0x404077[_0x1a773f(0x9c)][_0x1a773f(0xe3)](_0x1a773f(0x70))[_0x1a773f(0x98)][_0x1a773f(0xc3)](_0x570266),this[_0x1a773f(0xba)][_0x1a773f(0xde)](_0x5396c2,_0x31d1fd),this[_0x1a773f(0xf0)][_0x1a773f(0xde)](_0x4f850d,_0x31d1fd);const _0x20b211=_0x4bc3a5[_0x1a773f(0x7e)]({'view':_0x106b4b,'target':()=>{const _0x25e8ce=_0x1a773f,_0x269e5a=[],_0x5c6ece=_0x5396c2[_0x25e8ce(0xb8)]()[_0x25e8ce(0xec)](_0x4d3289=>_0x4d3289[_0x25e8ce(0xce)]);for(const _0x40d5db of _0x5c6ece)_0x269e5a[_0x25e8ce(0xc0)](..._0x40d5db[_0x25e8ce(0xe2)]());return _0x503acb(_0x404077[_0x25e8ce(0x6d)],_0x269e5a);},'type':()=>_0x1a773f(0x7c)+_0x31d1fd[_0x1a773f(0xab)][_0x1a773f(0xcd)]});_0x2351fa[_0x1a773f(0x9a)](_0x4f850d,_0x20b211),_0x4bc3a5[_0x1a773f(0x67)](_0x20b211),_0x5c091a[_0x1a773f(0x86)](_0x20b211);}[_0x40db61(0x79)](_0x349f5b){const _0x265f92=_0x40db61,_0xd35ddc=this[_0x265f92(0xf1)][_0x265f92(0x9c)][_0x265f92(0xe3)](_0x265f92(0x80)),_0x185d57=this[_0x265f92(0xf1)][_0x265f92(0x9c)][_0x265f92(0xe3)](_0x265f92(0x95)),_0x1cf69c=this[_0x265f92(0xba)][_0x265f92(0xe3)](_0x349f5b),_0x3ea802=_0x1cf69c[_0x265f92(0xab)],_0xc9bcf4=_0x185d57[_0x265f92(0xad)](_0x3ea802);_0xd35ddc[_0x265f92(0x94)](_0x3ea802),_0xc9bcf4&&_0x185d57[_0x265f92(0x91)](_0xc9bcf4),this[_0x265f92(0xba)][_0x265f92(0x8b)](_0x349f5b),this[_0x265f92(0xf0)][_0x265f92(0x8b)](_0x3ea802),_0x1cf69c[_0x265f92(0xe6)]();}[_0x40db61(0xc1)](_0x511136){const _0x555f6e=_0x40db61;if(!_0x511136[_0x555f6e(0xce)]||!this[_0x555f6e(0xba)][_0x555f6e(0xe0)](_0x511136))return;const _0xbd4bc9=this[_0x555f6e(0xf1)][_0x555f6e(0x9c)][_0x555f6e(0xe3)](_0x555f6e(0x70)),_0x3da3d4=this[_0x555f6e(0xba)][_0x555f6e(0xe3)](_0x511136),_0x93be03=_0x511136[_0x555f6e(0xb8)]();_0x3da3d4[_0x555f6e(0xab)][_0x555f6e(0x99)]=_0xbd4bc9[_0x555f6e(0x98)][_0x555f6e(0xc3)](_0x93be03);}[_0x40db61(0xe6)](){const _0x5c528c=_0x40db61;for(const _0x1623ae of this[_0x5c528c(0xba)][_0x5c528c(0xa9)]())this[_0x5c528c(0x79)](_0x1623ae);for(const _0x566cc8 of this[_0x5c528c(0xa6)][_0x5c528c(0x96)]())_0x566cc8[_0x5c528c(0xb4)][_0x5c528c(0xe6)]();super[_0x5c528c(0xe6)]();}}function ae(_0x13e2e7){const _0x100516=_0x40db61;return _0x100516(0x7d)in _0x13e2e7;}
|
|
23
|
+
const _0x525d63=_0x56b0;(function(_0x3c1651,_0x246590){const _0x459da6=_0x56b0,_0x2d2639=_0x3c1651();while(!![]){try{const _0x300a44=-parseInt(_0x459da6(0x20b))/0x1*(parseInt(_0x459da6(0x23f))/0x2)+-parseInt(_0x459da6(0x203))/0x3*(parseInt(_0x459da6(0x25c))/0x4)+parseInt(_0x459da6(0x26e))/0x5*(-parseInt(_0x459da6(0x241))/0x6)+parseInt(_0x459da6(0x229))/0x7*(parseInt(_0x459da6(0x23a))/0x8)+-parseInt(_0x459da6(0x1f6))/0x9+parseInt(_0x459da6(0x21a))/0xa*(-parseInt(_0x459da6(0x219))/0xb)+-parseInt(_0x459da6(0x258))/0xc*(-parseInt(_0x459da6(0x200))/0xd);if(_0x300a44===_0x246590)break;else _0x2d2639['push'](_0x2d2639['shift']());}catch(_0x2bb21c){_0x2d2639['push'](_0x2d2639['shift']());}}}(_0x2aa2,0xb21f5));import{Plugin as _0x2a0713}from'ckeditor5/src/core.js';import{Collection as _0xe2ad62}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x132ba9,createDropdown as _0x212148,ListSeparatorView as _0x2a883c,MenuBarMenuView as _0x20f315,MenuBarMenuListView as _0x5a1194,MenuBarMenuListItemView as _0x1d0d32,MenuBarMenuListItemButtonView as _0x3de96b,SplitButtonView as _0x823fe8,ViewModel as _0x4955cf}from'ckeditor5/src/ui.js';import{Users as _0x43c86b,getDateTimeFormatter as _0x1355b2,getAllMarkersDomElementsSorted as _0xab7350,ENTER_THREAD_KEYSTROKE as _0x213531}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x51ad7d from'./trackchangesediting.js';import _0x25daeb from'./ui/suggestioncontroller.js';import _0xbb9a6 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x43606f}from'./utils/common-translations.js';function _0x2aa2(){const _0x5e7ba6=['CommentsRepository','SuggestionThreadView','model','commands','switchbutton','delete','plugins','getDescriptions','focus','acceptSelectedSuggestions','keystrokes','push','keys','panelView','type','isMultiRange','innerView','TrackChangesUI','getByInnerView','define','listenTo','clear','_destroyController','source','suggestionLoaded','comments.maxThreadTotalWeight','comments.maxCommentsWhenCollapsed','createAnnotationView','12760731DumPrw','length','descriptionParts','_suggestionToController','editor','pluginName','Accept\x20all\x20selected\x20suggestions','discardAllSuggestions','button','separator','52MQTmQi','getAllAdjacentSuggestions','isInContent','794679FhvXcs','_disableComments','Discard\x20all\x20selected\x20suggestions','actionView','TrackChangesEditing','createCommentThreadController','buttonView','toMany','293599xJRvKO','_createToolbarButton','getMarkerNames','getJoined','Track\x20changes','Accept\x20all\x20suggestions','getFirstRange','values','_refreshActiveMarkers','add','getRanges','locale','menu','remove','11VzjqEg','12289910nTUswu','reduce','suggestion-','mainView','menuBar:trackChanges','trackChanges','menuitem','destroy','lowest','descriptionFactory','suggestionChanged','change:previous','activeAnnotations','refreshSelectedViews','stopListening','3384430eSoine','change:activeAnnotations','suggestionUnloaded','componentFactory','head','children','discardSelectedSuggestions','value','createAnnotation','filter','commentsListView','arrowView','_updateController','_bindAnnotationToEditors','EditorAnnotations','bind','activeMarkers','8nTkCtJ','addComment','comments.editorConfig','_initKeyboardNavigationToThread','_unbindEditors','2CujARW','_addUIComponentsToFactory','12xVtwbO','execute','addSourceCollector','set','config','getMarkers','_annotationViews','some','registerAnnotation','commandName','menuitemcheckbox','_createMenuBarMenu','_splitMarkerName','init','CommentsUI','low','get','isEnabled','acceptButton','has','escape','hasSuggestion','isOn','13965216FEfZml','trackChanges.SuggestionThreadView','editing','Annotations','8WFFyix','commentThread','size','_viewToController','discardButton','getSuggestion','trackChanges.disableComments','comments.maxCommentCharsWhenCollapsed','delegate','view','items','_initializeController','from','CommentView','comments','previous','_handleControllerBuffer','requires','2346845zNrsyz','_handleSuggestionControllerDelayed','Discard\x20all\x20suggestions','isDirty','unbind','acceptAllSuggestions'];_0x2aa2=function(){return _0x5e7ba6;};return _0x2aa2();}function _0x56b0(_0x46e41d,_0x3deb74){const _0x2aa223=_0x2aa2();return _0x56b0=function(_0x56b0bb,_0x796e92){_0x56b0bb=_0x56b0bb-0x1eb;let _0x2915b4=_0x2aa223[_0x56b0bb];return _0x2915b4;},_0x56b0(_0x46e41d,_0x3deb74);}import _0x226f87 from'./trackchanges.js';import _0x44478e from'../theme/icons/track-changes.svg';export default class d extends _0x2a0713{static get[_0x525d63(0x26d)](){const _0x2c3597=_0x525d63;return[_0x51ad7d,_0x43c86b,_0x2c3597(0x274),_0x2c3597(0x25b),_0x2c3597(0x237)];}static get[_0x525d63(0x1fb)](){const _0x512605=_0x525d63;return _0x512605(0x1eb);}constructor(_0x48dc72){const _0xca0ba9=_0x525d63;super(_0x48dc72),this[_0xca0ba9(0x1f9)]=new Map(),this[_0xca0ba9(0x25f)]=new Map(),this[_0xca0ba9(0x247)]=new Map(),this[_0xca0ba9(0x26c)]=new Map();const _0x46ceda=this[_0xca0ba9(0x1fa)][_0xca0ba9(0x245)];_0x46ceda[_0xca0ba9(0x1ed)](_0xca0ba9(0x259),_0xbb9a6),_0x46ceda[_0xca0ba9(0x1ed)](_0xca0ba9(0x262),!0x1),this[_0xca0ba9(0x204)]=_0x46ceda[_0xca0ba9(0x251)](_0xca0ba9(0x262)),this[_0xca0ba9(0x23d)]();}[_0x525d63(0x26f)](_0x2d4749,_0x5c488f){const _0x3e2034=_0x525d63;0x0===this[_0x3e2034(0x26c)][_0x3e2034(0x25e)]&&setTimeout(()=>{const _0x28cdec=_0x3e2034;for(const [_0x50cbf8,_0x3aced1]of this[_0x28cdec(0x26c)]){const _0x4180ba=this[_0x28cdec(0x1f9)][_0x28cdec(0x254)](_0x50cbf8);_0x4180ba||_0x3aced1?_0x4180ba&&_0x3aced1&&this[_0x28cdec(0x1f0)](_0x50cbf8):this[_0x28cdec(0x267)](_0x50cbf8);}this[_0x28cdec(0x26c)][_0x28cdec(0x1ef)](),this[_0x28cdec(0x1fa)][_0x28cdec(0x27a)][_0x28cdec(0x251)](_0x28cdec(0x237))[_0x28cdec(0x227)](),this[_0x28cdec(0x213)]();},0xa),this[_0x3e2034(0x26c)][_0x3e2034(0x244)](_0x2d4749,_0x5c488f);}[_0x525d63(0x24e)](){const _0x4c07ec=_0x525d63,_0x57b16e=this[_0x4c07ec(0x1fa)],_0xc40bc4=_0x57b16e[_0x4c07ec(0x27a)][_0x4c07ec(0x251)](_0x4c07ec(0x207)),_0x399aa6=_0x57b16e[_0x4c07ec(0x27a)][_0x4c07ec(0x251)](_0x4c07ec(0x25b)),_0x393080=_0x57b16e[_0x4c07ec(0x27a)][_0x4c07ec(0x251)](_0x4c07ec(0x237)),_0x2938f8=_0x57b16e[_0x4c07ec(0x27a)][_0x4c07ec(0x251)](_0x4c07ec(0x274));this[_0x4c07ec(0x240)](),_0x393080[_0x4c07ec(0x243)](()=>{const _0x304245=_0x4c07ec,_0x574caa=[];for(const [_0x533933,_0x19ad1e]of Array[_0x304245(0x268)](this[_0x304245(0x1f9)])){const _0xd42faa=_0x533933[_0x304245(0x201)](),_0x11c679=[];for(const _0xcfb9c8 of _0xd42faa){if(!_0xcfb9c8[_0x304245(0x202)])continue;if(_0xcfb9c8[_0x304245(0x283)]){_0x11c679[_0x304245(0x27f)](..._0xcfb9c8[_0x304245(0x215)]());continue;}const _0x37ddee=_0xcfb9c8[_0x304245(0x211)]();if(_0x11c679[_0x304245(0x1f7)]>0x0){const _0x55d128=_0x11c679[0x0][_0x304245(0x20e)](_0x37ddee);if(_0x55d128){_0x11c679[0x0]=_0x55d128;continue;}}_0x11c679[_0x304245(0x27f)](_0x37ddee);}_0x574caa[_0x304245(0x27f)]([_0x19ad1e[_0x304245(0x265)],_0x11c679]);}return _0x574caa;}),this[_0x4c07ec(0x1ee)](_0xc40bc4,_0x4c07ec(0x1f2),(_0x4c0c7b,_0x3469bf)=>{const _0x388523=_0x4c07ec;this[_0x388523(0x1ee)](_0x3469bf,_0x388523(0x225),(_0x2356c3,_0x281de4,_0x29cbf0,_0x28499b)=>{const _0x257cb8=_0x388523;_0x3469bf[_0x257cb8(0x202)]&&(null==_0x29cbf0?(this[_0x257cb8(0x235)](_0x28499b[_0x257cb8(0x22d)]),this[_0x257cb8(0x26f)](_0x3469bf,!0x1)):(this[_0x257cb8(0x235)](_0x29cbf0[_0x257cb8(0x22d)]),null==_0x28499b&&this[_0x257cb8(0x26f)](_0x3469bf,!0x0)));}),null!==_0x3469bf[_0x388523(0x26b)]?this[_0x388523(0x235)](_0x3469bf[_0x388523(0x22d)]):this[_0x388523(0x26f)](_0x3469bf,!0x1);}),this[_0x4c07ec(0x1ee)](_0xc40bc4,_0x4c07ec(0x22b),(_0x3b098d,_0x5a5169,_0x4cd69b)=>{const _0x230d7f=_0x4c07ec;this[_0x230d7f(0x228)](_0x5a5169,_0x230d7f(0x225)),this[_0x230d7f(0x26c)][_0x230d7f(0x279)](_0x5a5169),this[_0x230d7f(0x1f9)][_0x230d7f(0x254)](_0x5a5169)&&this[_0x230d7f(0x1f0)](_0x5a5169),_0x4cd69b&&this[_0x230d7f(0x235)](_0x4cd69b[_0x230d7f(0x22d)]);}),this[_0x4c07ec(0x1ee)](_0xc40bc4,_0x4c07ec(0x224),(_0x4a8549,_0x53e0ec)=>{const _0x29c6e2=_0x4c07ec;this[_0x29c6e2(0x235)](_0x53e0ec);}),this[_0x4c07ec(0x1ee)](_0x399aa6,_0x4c07ec(0x22a),()=>{const _0x1e66d8=_0x4c07ec;this[_0x1e66d8(0x213)]();}),this[_0x4c07ec(0x1ee)](_0x2938f8,_0x4c07ec(0x23b),(_0xa92793,{threadId:_0x3a1c41,isFromAdapter:_0x35b0c8})=>{const _0x43b4d9=_0x4c07ec;if(_0x35b0c8||!_0xc40bc4[_0x43b4d9(0x256)](_0x3a1c41))return;const _0x28174e=_0xc40bc4[_0x43b4d9(0x261)](_0x3a1c41);this[_0x43b4d9(0x1f9)][_0x43b4d9(0x251)](_0x28174e)[_0x43b4d9(0x265)][_0x43b4d9(0x233)][_0x43b4d9(0x27c)](-0x1);},{'priority':_0x4c07ec(0x222)});}[_0x525d63(0x213)](){const _0x3f655c=_0x525d63,_0x3dd511=this[_0x3f655c(0x1fa)][_0x3f655c(0x27a)][_0x3f655c(0x251)](_0x3f655c(0x25b)),_0x475fae=this[_0x3f655c(0x1fa)][_0x3f655c(0x27a)][_0x3f655c(0x251)](_0x3f655c(0x207)),_0x22199c=Array[_0x3f655c(0x268)](_0x3dd511[_0x3f655c(0x226)],_0x16b702=>_0x16b702[_0x3f655c(0x284)])[_0x3f655c(0x232)](_0x13359c=>this[_0x3f655c(0x25f)][_0x3f655c(0x254)](_0x13359c)),_0x376c61=[];for(const _0x35c8b2 of _0x22199c){const _0x32d387=this[_0x3f655c(0x25f)][_0x3f655c(0x251)](_0x35c8b2)[_0x3f655c(0x276)][_0x3f655c(0x201)]();_0x376c61[_0x3f655c(0x27f)](..._0x32d387[_0x3f655c(0x21b)]((_0x1f55a8,_0xf60679)=>[..._0x1f55a8,..._0xf60679[_0x3f655c(0x20d)]()],[]));}_0x475fae[_0x3f655c(0x239)]=_0x376c61;}[_0x525d63(0x240)](){const _0x525f1e=_0x525d63,_0x1be3d3=this[_0x525f1e(0x1fa)],_0x4908fe=_0x1be3d3[_0x525f1e(0x216)],_0x6361e2=_0x43606f(_0x4908fe,_0x525f1e(0x20f)),_0x16bcd6=new _0xe2ad62([{'type':_0x525f1e(0x278),'model':new _0x4955cf({'withText':!0x0,'isToggleable':!0x0,'label':_0x6361e2,'commandName':_0x525f1e(0x21f),'role':_0x525f1e(0x24b)})},{'type':_0x525f1e(0x1ff)},{'type':_0x525f1e(0x1fe),'model':new _0x4955cf({'withText':!0x0,'label':_0x43606f(_0x4908fe,_0x525f1e(0x210)),'commandName':_0x525f1e(0x273),'role':_0x525f1e(0x220)})},{'type':_0x525f1e(0x1fe),'model':new _0x4955cf({'withText':!0x0,'label':_0x43606f(_0x4908fe,_0x525f1e(0x1fc)),'commandName':_0x525f1e(0x27d),'role':_0x525f1e(0x220)})},{'type':_0x525f1e(0x1fe),'model':new _0x4955cf({'withText':!0x0,'label':_0x43606f(_0x4908fe,_0x525f1e(0x270)),'commandName':_0x525f1e(0x1fd),'role':_0x525f1e(0x220)})},{'type':_0x525f1e(0x1fe),'model':new _0x4955cf({'withText':!0x0,'label':_0x43606f(_0x4908fe,_0x525f1e(0x205)),'commandName':_0x525f1e(0x22f),'role':_0x525f1e(0x220)})}]);for(const _0x3c462c of _0x16bcd6)if(he(_0x3c462c)){const _0x33efc3=_0x1be3d3[_0x525f1e(0x277)][_0x525f1e(0x251)](_0x3c462c[_0x525f1e(0x276)][_0x525f1e(0x24a)]);_0x3c462c[_0x525f1e(0x276)][_0x525f1e(0x238)](_0x525f1e(0x257),_0x525f1e(0x252))['to'](_0x33efc3,_0x525f1e(0x230),_0x525f1e(0x252));}_0x1be3d3['ui'][_0x525f1e(0x22c)][_0x525f1e(0x214)](_0x525f1e(0x21f),_0x2cd21c=>this[_0x525f1e(0x20c)](_0x2cd21c,_0x16bcd6,_0x6361e2)),_0x1be3d3['ui'][_0x525f1e(0x22c)][_0x525f1e(0x214)](_0x525f1e(0x21e),_0x22f51c=>this[_0x525f1e(0x24c)](_0x22f51c,_0x16bcd6,_0x6361e2));}[_0x525d63(0x20c)](_0x1fb158,_0x4d718e,_0x31d875){const _0x1d12a4=_0x525d63,_0x3e53ab=_0x212148(_0x1fb158,_0x823fe8),_0x514ff7=this[_0x1d12a4(0x1fa)][_0x1d12a4(0x277)][_0x1d12a4(0x251)](_0x1d12a4(0x21f));_0x3e53ab[_0x1d12a4(0x209)][_0x1d12a4(0x244)]({'tooltip':_0x31d875,'label':_0x31d875,'icon':_0x44478e}),_0x3e53ab[_0x1d12a4(0x209)][_0x1d12a4(0x238)](_0x1d12a4(0x257))['to'](_0x514ff7,_0x1d12a4(0x230)),_0x3e53ab[_0x1d12a4(0x209)]['on'](_0x1d12a4(0x242),()=>{const _0x1307cf=_0x1d12a4;_0x514ff7[_0x1307cf(0x242)](),this[_0x1307cf(0x1fa)][_0x1307cf(0x25a)][_0x1307cf(0x265)][_0x1307cf(0x27c)]();}),_0x132ba9(_0x3e53ab,_0x4d718e,{'role':_0x1d12a4(0x217)});const _0x1fd977=[];for(const _0x5db6db of _0x4d718e)he(_0x5db6db)&&_0x1fd977[_0x1d12a4(0x27f)](this[_0x1d12a4(0x1fa)][_0x1d12a4(0x277)][_0x1d12a4(0x251)](_0x5db6db[_0x1d12a4(0x276)][_0x1d12a4(0x24a)]));const _0x70d290=_0x3e53ab[_0x1d12a4(0x209)];return _0x70d290[_0x1d12a4(0x206)][_0x1d12a4(0x272)](_0x1d12a4(0x252)),_0x70d290[_0x1d12a4(0x234)][_0x1d12a4(0x272)](_0x1d12a4(0x252)),_0x70d290[_0x1d12a4(0x206)][_0x1d12a4(0x238)](_0x1d12a4(0x252))['to'](_0x514ff7,_0x1d12a4(0x252)),_0x70d290[_0x1d12a4(0x234)][_0x1d12a4(0x238)](_0x1d12a4(0x252))[_0x1d12a4(0x20a)](_0x1fd977,_0x1d12a4(0x252),(..._0xd81df7)=>_0xd81df7[_0x1d12a4(0x248)](_0x4d608d=>_0x4d608d)),_0x3e53ab['on'](_0x1d12a4(0x242),_0x150582=>{const _0x125336=_0x1d12a4;this[_0x125336(0x1fa)][_0x125336(0x242)](_0x150582[_0x125336(0x1f1)][_0x125336(0x24a)]),this[_0x125336(0x1fa)][_0x125336(0x25a)][_0x125336(0x265)][_0x125336(0x27c)]();}),_0x3e53ab;}[_0x525d63(0x24c)](_0x29b288,_0x2d57e7,_0xe5bfc){const _0x798a7f=_0x525d63,_0xa39d77=new _0x20f315(_0x29b288),_0x38cdb9=this[_0x798a7f(0x1fa)][_0x798a7f(0x277)][_0x798a7f(0x251)](_0x798a7f(0x21f));_0xa39d77[_0x798a7f(0x209)][_0x798a7f(0x244)]({'label':_0xe5bfc,'icon':_0x44478e});const _0x4bbacd=new _0x5a1194(_0x29b288);for(const _0x4e6b16 of _0x2d57e7){if(_0x798a7f(0x1ff)==_0x4e6b16[_0x798a7f(0x282)]){_0x4bbacd[_0x798a7f(0x266)][_0x798a7f(0x214)](new _0x2a883c(_0x29b288));continue;}const _0xb66d3a=new _0x1d0d32(_0x29b288,_0xa39d77),_0x1c32e2=new _0x3de96b(_0x29b288),_0x38664c=_0x4e6b16[_0x798a7f(0x276)];_0x1c32e2[_0x798a7f(0x238)](...Object[_0x798a7f(0x280)](_0x38664c))['to'](_0x38664c),_0x1c32e2[_0x798a7f(0x264)](_0x798a7f(0x242))['to'](_0xa39d77),_0x1c32e2['on'](_0x798a7f(0x242),()=>{const _0x9322a3=_0x798a7f;this[_0x9322a3(0x1fa)][_0x9322a3(0x242)](_0x38664c[_0x9322a3(0x24a)]),this[_0x9322a3(0x1fa)][_0x9322a3(0x25a)][_0x9322a3(0x265)][_0x9322a3(0x27c)]();}),_0xb66d3a[_0x798a7f(0x22e)][_0x798a7f(0x214)](_0x1c32e2),_0x4bbacd[_0x798a7f(0x266)][_0x798a7f(0x214)](_0xb66d3a);}return _0xa39d77[_0x798a7f(0x238)](_0x798a7f(0x252))['to'](_0x38cdb9,_0x798a7f(0x252)),_0xa39d77[_0x798a7f(0x281)][_0x798a7f(0x22e)][_0x798a7f(0x214)](_0x4bbacd),_0xa39d77;}[_0x525d63(0x267)](_0x2b1ea4){const _0x3953de=_0x525d63,_0x1a6340=this[_0x3953de(0x1fa)],_0xe6da22=_0x1a6340[_0x3953de(0x245)],_0x5cf8b0=_0x1a6340[_0x3953de(0x27a)][_0x3953de(0x251)](_0x3953de(0x25b)),_0x40d7af=_0x1a6340[_0x3953de(0x27a)][_0x3953de(0x251)](_0x3953de(0x274)),_0x222350=_0x1a6340[_0x3953de(0x27a)][_0x3953de(0x251)](_0x3953de(0x237)),_0x531b6c=_0x1a6340[_0x3953de(0x27a)][_0x3953de(0x251)](_0x43c86b)['me'],_0x4c92bc=_0xe6da22[_0x3953de(0x251)](_0x3953de(0x21f))[_0x3953de(0x275)],{CommentsListView:_0x2b99f5,CommentThreadInputView:_0x3fc69a}=_0x1a6340[_0x3953de(0x27a)][_0x3953de(0x251)](_0x3953de(0x24f));let _0xdec02a,_0x57a8ba;this[_0x3953de(0x247)][_0x3953de(0x254)](_0x2b1ea4['id'])?(_0x57a8ba=this[_0x3953de(0x247)][_0x3953de(0x251)](_0x2b1ea4['id']),_0xdec02a=_0x57a8ba[_0x3953de(0x21d)]):(_0xdec02a=new _0x4c92bc(_0x1a6340[_0x3953de(0x216)],_0x2b1ea4,_0x531b6c,{'disableComments':this[_0x3953de(0x204)],'editorConfig':_0xe6da22[_0x3953de(0x251)](_0x3953de(0x23c)),'maxCommentsWhenCollapsed':_0xe6da22[_0x3953de(0x251)](_0x3953de(0x1f4)),'maxThreadTotalWeight':_0xe6da22[_0x3953de(0x251)](_0x3953de(0x1f3)),'maxCommentCharsWhenCollapsed':_0xe6da22[_0x3953de(0x251)](_0x3953de(0x263)),'formatDateTime':_0x1355b2(_0xe6da22[_0x3953de(0x251)](_0x3953de(0x216))),'CommentView':_0xe6da22[_0x3953de(0x251)](_0x3953de(0x26a))[_0x3953de(0x269)],'CommentsListView':_0x2b99f5,'CommentThreadInputView':_0x3fc69a}),_0xdec02a[_0x3953de(0x253)]['on'](_0x3953de(0x242),()=>{const _0x3836a1=_0x3953de;_0x1a6340[_0x3836a1(0x25a)][_0x3836a1(0x265)][_0x3836a1(0x27c)]();}),_0xdec02a[_0x3953de(0x260)]['on'](_0x3953de(0x242),()=>{const _0x107cf1=_0x3953de;_0x1a6340[_0x107cf1(0x25a)][_0x107cf1(0x265)][_0x107cf1(0x27c)]();}),_0x57a8ba=_0x5cf8b0[_0x3953de(0x1f5)](this[_0x3953de(0x1fa)][_0x3953de(0x216)],_0xdec02a),_0x57a8ba[_0x3953de(0x238)](_0x3953de(0x271))['to'](_0xdec02a,_0x3953de(0x271)),_0x57a8ba[_0x3953de(0x238)](_0x3953de(0x1f7))['to'](_0xdec02a),_0x57a8ba[_0x3953de(0x238)](_0x3953de(0x282))['to'](_0xdec02a,_0x3953de(0x282),_0x39a07f=>_0x3953de(0x21c)+_0x39a07f),this[_0x3953de(0x1ee)](_0xdec02a,_0x3953de(0x255),()=>{const _0x40c311=_0x3953de;_0x1a6340[_0x40c311(0x25a)][_0x40c311(0x265)][_0x40c311(0x27c)]();},{'priority':_0x3953de(0x250)}),this[_0x3953de(0x247)][_0x3953de(0x244)](_0x2b1ea4['id'],_0x57a8ba));const _0x5973be=_0x40d7af[_0x3953de(0x208)](_0x2b1ea4[_0x3953de(0x25d)],_0xdec02a),_0xe0b6f8=new _0x25daeb(_0x1a6340,_0x2b1ea4,_0xdec02a,_0x5973be),_0x27c731=_0x2b1ea4[_0x3953de(0x201)]()[_0x3953de(0x232)](_0x50d40b=>_0x50d40b[_0x3953de(0x202)]);_0xdec02a[_0x3953de(0x1f8)]=_0x1a6340[_0x3953de(0x27a)][_0x3953de(0x251)](_0x3953de(0x207))[_0x3953de(0x223)][_0x3953de(0x27b)](_0x27c731),this[_0x3953de(0x1f9)][_0x3953de(0x244)](_0x2b1ea4,_0xe0b6f8),this[_0x3953de(0x25f)][_0x3953de(0x244)](_0xdec02a,_0xe0b6f8);const _0x5dfc9a=_0x5cf8b0[_0x3953de(0x231)]({'view':_0x57a8ba,'target':()=>{const _0x2fe0eb=_0x3953de,_0xc91c4e=[],_0x29705e=_0x2b1ea4[_0x2fe0eb(0x201)]()[_0x2fe0eb(0x232)](_0x1c2d12=>_0x1c2d12[_0x2fe0eb(0x202)]);for(const _0x1b7674 of _0x29705e)_0xc91c4e[_0x2fe0eb(0x27f)](..._0x1b7674[_0x2fe0eb(0x246)]());return _0xab7350(_0x1a6340[_0x2fe0eb(0x25a)],_0xc91c4e);},'type':()=>_0x3953de(0x21c)+_0xe0b6f8[_0x3953de(0x265)][_0x3953de(0x282)]});_0x40d7af[_0x3953de(0x236)](_0xdec02a,_0x5dfc9a),_0x5cf8b0[_0x3953de(0x214)](_0x5dfc9a),_0x222350[_0x3953de(0x249)](_0x5dfc9a);}[_0x525d63(0x1f0)](_0x5bcb6a){const _0x326738=_0x525d63,_0x32c86d=this[_0x326738(0x1fa)][_0x326738(0x27a)][_0x326738(0x251)](_0x326738(0x274)),_0xe3b50a=this[_0x326738(0x1fa)][_0x326738(0x27a)][_0x326738(0x251)](_0x326738(0x25b)),_0x561210=this[_0x326738(0x1f9)][_0x326738(0x251)](_0x5bcb6a),_0x1c9a1b=_0x561210[_0x326738(0x265)],_0x20ecb7=_0xe3b50a[_0x326738(0x1ec)](_0x1c9a1b);_0x32c86d[_0x326738(0x23e)](_0x1c9a1b),_0x20ecb7&&_0xe3b50a[_0x326738(0x218)](_0x20ecb7),this[_0x326738(0x1f9)][_0x326738(0x279)](_0x5bcb6a),this[_0x326738(0x25f)][_0x326738(0x279)](_0x1c9a1b),_0x561210[_0x326738(0x221)]();}[_0x525d63(0x235)](_0x5482fc){const _0x1ccb84=_0x525d63;if(!_0x5482fc[_0x1ccb84(0x202)]||!this[_0x1ccb84(0x1f9)][_0x1ccb84(0x254)](_0x5482fc))return;const _0x4aa256=this[_0x1ccb84(0x1fa)][_0x1ccb84(0x27a)][_0x1ccb84(0x251)](_0x1ccb84(0x207)),_0x64d246=this[_0x1ccb84(0x1f9)][_0x1ccb84(0x251)](_0x5482fc),_0x4492d8=_0x5482fc[_0x1ccb84(0x201)]();_0x64d246[_0x1ccb84(0x265)][_0x1ccb84(0x1f8)]=_0x4aa256[_0x1ccb84(0x223)][_0x1ccb84(0x27b)](_0x4492d8);}[_0x525d63(0x23d)](){const _0xda9d2c=_0x525d63;this[_0xda9d2c(0x1fa)][_0xda9d2c(0x27e)][_0xda9d2c(0x244)](_0x213531,(_0xd9b757,_0x34ea20)=>{const _0x1cb167=_0xda9d2c,_0x1b5714=this[_0x1cb167(0x1fa)][_0x1cb167(0x27a)][_0x1cb167(0x251)](_0x226f87),_0xfa9e52=this[_0x1cb167(0x1fa)][_0x1cb167(0x27a)][_0x1cb167(0x251)](_0x51ad7d);if(!_0xfa9e52[_0x1cb167(0x239)][_0x1cb167(0x1f7)])return;const {id:_0x4287e8}=_0xfa9e52[_0x1cb167(0x24d)](_0xfa9e52[_0x1cb167(0x239)][0x0]),_0x1427f0=_0x1b5714[_0x1cb167(0x261)](_0x4287e8);_0x1427f0&&(this[_0x1cb167(0x1f9)][_0x1cb167(0x251)](_0x1427f0)[_0x1cb167(0x265)][_0x1cb167(0x27c)](),_0x34ea20());});}[_0x525d63(0x221)](){const _0x47b6ee=_0x525d63;for(const _0x4a3807 of this[_0x47b6ee(0x1f9)][_0x47b6ee(0x280)]())this[_0x47b6ee(0x1f0)](_0x4a3807);for(const _0x3de6f3 of this[_0x47b6ee(0x247)][_0x47b6ee(0x212)]())_0x3de6f3[_0x47b6ee(0x21d)][_0x47b6ee(0x221)]();super[_0x47b6ee(0x221)]();}}function he(_0x185400){const _0x1991c4=_0x525d63;return _0x1991c4(0x276)in _0x185400;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x56d49a=_0x1752;function _0x1752(_0x399791,_0xa5b7){const _0x48de77=_0x48de();return _0x1752=function(_0x175284,_0x178c59){_0x175284=_0x175284-0x1e5;let _0x1f0a4a=_0x48de77[_0x175284];return _0x1f0a4a;},_0x1752(_0x399791,_0xa5b7);}(function(_0x35c614,_0x7484ad){const _0x52e0c7=_0x1752,_0x36d70b=_0x35c614();while(!![]){try{const _0x1f23e9=-parseInt(_0x52e0c7(0x206))/0x1*(-parseInt(_0x52e0c7(0x200))/0x2)+parseInt(_0x52e0c7(0x1f6))/0x3+parseInt(_0x52e0c7(0x202))/0x4+-parseInt(_0x52e0c7(0x1f1))/0x5*(-parseInt(_0x52e0c7(0x1f7))/0x6)+-parseInt(_0x52e0c7(0x20d))/0x7+-parseInt(_0x52e0c7(0x1e9))/0x8+-parseInt(_0x52e0c7(0x1e8))/0x9;if(_0x1f23e9===_0x7484ad)break;else _0x36d70b['push'](_0x36d70b['shift']());}catch(_0x413ab3){_0x36d70b['push'](_0x36d70b['shift']());}}}(_0x48de,0xe974f));import{ObservableMixin as _0x35f95c}from'ckeditor5/src/utils.js';import{getTranslation as _0x2a24ca}from'../utils/common-translations.js';function _0x48de(){const _0x3c48b1=['commands','bind','view','_setPendingAction','2RpTQjk','isEnabled','5348504foplMf','unbind','stopListening','locale','1470849PzDYIi','model','commentThreadController','destroy','acceptSuggestion','get','_pendingAction','11934951bqTLwP','canDiscard','PendingActions','add','2211642rfukdI','10538304LAOqMF','listenTo','getRanges','_acceptCommand','_removePendingAction','discardSuggestion','change:isDirty','_discardCommand','15QDcgLT','PENDING_ACTION_SUGGESTION','isDirty','_editor','canEditAt','4095318uzDOqN','102354AwxBba','canAccept','plugins','execute','remove'];_0x48de=function(){return _0x3c48b1;};return _0x48de();}export default class ae extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x35f95c(){constructor(_0x51263a,_0x4d8aae,_0x5a0b0e,_0x118942){const _0x5a14f9=_0x1752;super(),this[_0x5a14f9(0x207)]=_0x4d8aae,this[_0x5a14f9(0x1fe)]=_0x5a0b0e,this[_0x5a14f9(0x208)]=_0x118942,this[_0x5a14f9(0x1f4)]=_0x51263a,this[_0x5a14f9(0x1ec)]=_0x51263a[_0x5a14f9(0x1fc)][_0x5a14f9(0x20b)](_0x5a14f9(0x20a)),this[_0x5a14f9(0x1f0)]=_0x51263a[_0x5a14f9(0x1fc)][_0x5a14f9(0x20b)](_0x5a14f9(0x1ee)),this[_0x5a14f9(0x1fe)][_0x5a14f9(0x1fd)](_0x5a14f9(0x201))['to'](this[_0x5a14f9(0x1ec)],this[_0x5a14f9(0x1f0)],(_0x54d45f,_0x5f0c18)=>_0x54d45f||_0x5f0c18),this[_0x5a14f9(0x1fe)][_0x5a14f9(0x1fd)](_0x5a14f9(0x1f8))['to'](this[_0x5a14f9(0x1ec)],_0x5a14f9(0x201),_0x514848=>_0x514848&&this[_0x5a14f9(0x1f4)][_0x5a14f9(0x207)][_0x5a14f9(0x1f5)](_0x4d8aae[_0x5a14f9(0x1eb)]())),this[_0x5a14f9(0x1fe)][_0x5a14f9(0x1fd)](_0x5a14f9(0x1e5))['to'](this[_0x5a14f9(0x1f0)],_0x5a14f9(0x201),_0x16d7f2=>_0x16d7f2&&this[_0x5a14f9(0x1f4)][_0x5a14f9(0x207)][_0x5a14f9(0x1f5)](_0x4d8aae[_0x5a14f9(0x1eb)]())),this[_0x5a14f9(0x20c)]=null,_0x5a0b0e[_0x5a14f9(0x1f3)]&&this[_0x5a14f9(0x1ff)](),this[_0x5a14f9(0x1ea)](_0x5a0b0e,_0x5a14f9(0x20a),()=>this[_0x5a14f9(0x20a)]()),this[_0x5a14f9(0x1ea)](_0x5a0b0e,_0x5a14f9(0x1ee),()=>this[_0x5a14f9(0x1ee)]()),this[_0x5a14f9(0x1ea)](_0x5a0b0e,_0x5a14f9(0x1ef),()=>{const _0xa49f81=_0x5a14f9;_0x5a0b0e[_0xa49f81(0x1f3)]?this[_0xa49f81(0x1ff)]():this[_0xa49f81(0x1ed)]();});}[_0x56d49a(0x20a)](){const _0x2b07bc=_0x56d49a;this[_0x2b07bc(0x1ec)][_0x2b07bc(0x1fa)](this[_0x2b07bc(0x207)]['id']);}[_0x56d49a(0x1ee)](){const _0xba7edb=_0x56d49a;this[_0xba7edb(0x1f0)][_0xba7edb(0x1fa)](this[_0xba7edb(0x207)]['id']);}[_0x56d49a(0x209)](){const _0x3bbc8e=_0x56d49a;this[_0x3bbc8e(0x1fe)][_0x3bbc8e(0x203)](_0x3bbc8e(0x201)),this[_0x3bbc8e(0x1fe)][_0x3bbc8e(0x203)](_0x3bbc8e(0x1f8)),this[_0x3bbc8e(0x1fe)][_0x3bbc8e(0x203)](_0x3bbc8e(0x1e5)),this[_0x3bbc8e(0x204)](),this[_0x3bbc8e(0x208)][_0x3bbc8e(0x209)](),this[_0x3bbc8e(0x20c)]&&this[_0x3bbc8e(0x1ed)]();}[_0x56d49a(0x1ff)](){const _0x5612de=_0x56d49a,_0x164560=_0x2a24ca(this[_0x5612de(0x1f4)][_0x5612de(0x205)],_0x5612de(0x1f2));this[_0x5612de(0x20c)]=this[_0x5612de(0x1f4)][_0x5612de(0x1f9)][_0x5612de(0x20b)](_0x5612de(0x1e6))[_0x5612de(0x1e7)](_0x164560);}[_0x56d49a(0x1ed)](){const _0x1a5360=_0x56d49a;null!==this[_0x1a5360(0x20c)]&&this[_0x1a5360(0x1f4)][_0x1a5360(0x1f9)][_0x1a5360(0x20b)](_0x1a5360(0x1e6))[_0x1a5360(0x1fb)](this[_0x1a5360(0x20c)]),this[_0x1a5360(0x20c)]=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 _0x40dd0d=_0x5e5a;(function(_0x2ce839,_0x2eabe7){const _0x277b9e=_0x5e5a,_0x5ae6fc=_0x2ce839();while(!![]){try{const _0x582fbe=-parseInt(_0x277b9e(0x6b))/0x1*(-parseInt(_0x277b9e(0x91))/0x2)+-parseInt(_0x277b9e(0x88))/0x3+parseInt(_0x277b9e(0x8e))/0x4*(-parseInt(_0x277b9e(0x76))/0x5)+-parseInt(_0x277b9e(0x92))/0x6+parseInt(_0x277b9e(0x69))/0x7+-parseInt(_0x277b9e(0xad))/0x8+parseInt(_0x277b9e(0x89))/0x9;if(_0x582fbe===_0x2eabe7)break;else _0x5ae6fc['push'](_0x5ae6fc['shift']());}catch(_0x2ec921){_0x5ae6fc['push'](_0x5ae6fc['shift']());}}}(_0x46b8,0x7bf64));import{FocusCycler as _0x4ea8a0,View as _0x1ad867,ViewCollection as _0x3ae703}from'ckeditor5/src/ui.js';function _0x5e5a(_0x470f9b,_0x383d16){const _0x46b866=_0x46b8();return _0x5e5a=function(_0x5e5a80,_0x45ec4e){_0x5e5a80=_0x5e5a80-0x68;let _0x45fe38=_0x46b866[_0x5e5a80];return _0x45fe38;},_0x5e5a(_0x470f9b,_0x383d16);}import{FocusTracker as _0x3e274b,KeystrokeHandler as _0x122cd0}from'ckeditor5/src/utils.js';import{AriaDescriptionView as _0x2ec27a,setupThreadKeyboardNavigation as _0x189bbf}from'ckeditor5-collaboration/src/collaboration-core.js';import{getTranslation as _0x47cbbd}from'../../utils/common-translations.js';import{renderDescription as _0x40ebea}from'../../utils/utils.js';function _0x46b8(){const _0x488554=['locale','commentsListView','cancel','removeComment','canDiscard','_localUser','showInput','text/html','_createCommentViews','commentThread','33861zUVVcX','8778708XQXPFU','isEnabled','commentInputView','target','destroy','104068GdpOzP','authoredAt','ariaDescriptionView','6WgIKMQ','1532460wuieEY','textContent','disabledSubmit','isReadOnly','commentThreadInputView','content','delegate','shift+tab','canAccept','join','ariaLabel','map','submit','focusCycler','element','focusables','parseFromString','fire','updateComment','focusTracker','_config','isDirty','keystrokes','editorConfig','body','render','assign','4162264TJxCUq','hasDirtyComment','tab','author','553742ZHqdRj','name','158121zisPKq','isActive','_createCommentThreadInputView','focus','addComment','bind','_model','formatDateTime','value','SUGGESTION_THREAD_DESCRIPTION','set','45WrRqJv','SUGGESTION_THREAD_ARIA_LABEL','CommentView','length','descriptionParts','setData','disableComments','editor'];_0x46b8=function(){return _0x488554;};return _0x46b8();}export default class us extends _0x1ad867{constructor(_0x14f9e2,_0x59ab88,_0x8b2e43,_0x2897ab){const _0x4c802b=_0x5e5a;super(_0x14f9e2),this[_0x4c802b(0x7f)]=null,this[_0x4c802b(0x96)]=null,this[_0x4c802b(0x90)]=new _0x2ec27a(_0x14f9e2,_0x47cbbd(_0x14f9e2,_0x4c802b(0x74))),this[_0x4c802b(0x75)](_0x4c802b(0x6c),!0x1),this[_0x4c802b(0x75)](_0x4c802b(0x8f),_0x59ab88[_0x4c802b(0x8f)]),this[_0x4c802b(0x70)](_0x4c802b(0x8f))['to'](_0x59ab88),this[_0x4c802b(0x75)](_0x4c802b(0x7a),[]),this[_0x4c802b(0x75)](_0x4c802b(0xa7),!0x1),this[_0x4c802b(0x75)](_0x4c802b(0x8a),!0x1),this[_0x4c802b(0x75)](_0x4c802b(0x9a),!0x1),this[_0x4c802b(0x75)](_0x4c802b(0x82),!0x1),this[_0x4c802b(0x70)](_0x4c802b(0x9c))['to'](this,_0x4c802b(0x79),_0x59ab88,_0x4c802b(0x8f),this,_0x4c802b(0x7a),(_0x54ff86,_0x3a9843,_0x32a343)=>{const _0x25e7ad=_0x4c802b,_0x215854=_0x32a343[_0x25e7ad(0x9d)](_0x2a2e14=>_0x40ebea(_0x2a2e14[_0x25e7ad(0x97)]))[_0x25e7ad(0x9b)]('.\x20')+'.';return _0x47cbbd(this[_0x25e7ad(0x7e)],_0x25e7ad(0x77),[_0x54ff86-0x1,_0x59ab88[_0x25e7ad(0x68)][_0x25e7ad(0x6a)],_0x3a9843?_0x2897ab[_0x25e7ad(0x72)](_0x3a9843):'',new DOMParser()[_0x25e7ad(0xa2)](_0x215854,_0x25e7ad(0x85))[_0x25e7ad(0xaa)][_0x25e7ad(0x93)]]);}),this[_0x4c802b(0xa1)]=new _0x3ae703(),this[_0x4c802b(0xa5)]=new _0x3e274b(),this[_0x4c802b(0xa8)]=new _0x122cd0(),this[_0x4c802b(0x9f)]=new _0x4ea8a0({'focusables':this[_0x4c802b(0xa1)],'focusTracker':this[_0x4c802b(0xa5)],'keystrokeHandler':this[_0x4c802b(0xa8)],'keystrokeHandlerOptions':{'filter':_0x4f6e86=>_0x4f6e86[_0x4c802b(0x8c)]!==this[_0x4c802b(0xa0)]},'actions':{'focusPrevious':_0x4c802b(0x99),'focusNext':_0x4c802b(0xaf)}}),this[_0x4c802b(0x71)]=_0x59ab88,this[_0x4c802b(0x83)]=_0x8b2e43,this[_0x4c802b(0xa6)]=_0x2897ab,_0x2897ab[_0x4c802b(0x7c)]?this[_0x4c802b(0x75)](_0x4c802b(0x79),0x1):this[_0x4c802b(0x86)]();}[_0x40dd0d(0xab)](){const _0x2ae9a4=_0x40dd0d;super[_0x2ae9a4(0xab)](),_0x189bbf(this,this[_0x2ae9a4(0xa1)]);}[_0x40dd0d(0x6e)](){const _0x7af354=_0x40dd0d;this[_0x7af354(0xa0)][_0x7af354(0x6e)]();}[_0x40dd0d(0x8d)](){const _0x5272d0=_0x40dd0d;this[_0x5272d0(0x7f)]&&this[_0x5272d0(0x7f)][_0x5272d0(0x8d)](),this[_0x5272d0(0x96)]&&this[_0x5272d0(0x96)][_0x5272d0(0x8d)](),super[_0x5272d0(0x8d)]();}[_0x40dd0d(0x86)](){const _0x1f8471=_0x40dd0d,{CommentsListView:_0x30da2a}=this[_0x1f8471(0xa6)];this[_0x1f8471(0x7f)]=new _0x30da2a(this[_0x1f8471(0x7e)],this[_0x1f8471(0x71)][_0x1f8471(0x87)],Object[_0x1f8471(0xac)]({'CommentView':this[_0x1f8471(0xa6)][_0x1f8471(0x78)]},this[_0x1f8471(0xa6)])),this[_0x1f8471(0x7f)][_0x1f8471(0x98)](_0x1f8471(0x81))['to'](this),this[_0x1f8471(0x7f)][_0x1f8471(0x98)](_0x1f8471(0xa4))['to'](this),this[_0x1f8471(0x7f)][_0x1f8471(0x70)](_0x1f8471(0x6c))['to'](this),this[_0x1f8471(0x75)](_0x1f8471(0x79),this[_0x1f8471(0x7f)][_0x1f8471(0x79)]+0x1),this[_0x1f8471(0x70)](_0x1f8471(0x79))['to'](this[_0x1f8471(0x7f)],_0x1f8471(0x79),_0xe6de00=>_0xe6de00+0x1),this[_0x1f8471(0x96)]=this[_0x1f8471(0x6d)](),this['on'](_0x1f8471(0x81),()=>this[_0x1f8471(0x6e)]()),this[_0x1f8471(0x70)](_0x1f8471(0xa7))['to'](this[_0x1f8471(0x7f)],_0x1f8471(0xae),this[_0x1f8471(0x96)][_0x1f8471(0x8b)],_0x1f8471(0x73),(_0x4d74fc,_0x15ebe5)=>_0x4d74fc||!!_0x15ebe5);}[_0x40dd0d(0x6d)](){const _0x5ed437=_0x40dd0d,{CommentThreadInputView:_0x5df192}=this[_0x5ed437(0xa6)],_0x48d5ee=new _0x5df192(this[_0x5ed437(0x7e)],this[_0x5ed437(0x83)],this[_0x5ed437(0xa6)][_0x5ed437(0xa9)]),_0x153cfd=_0x48d5ee[_0x5ed437(0x8b)];return _0x48d5ee[_0x5ed437(0x70)](_0x5ed437(0x84))['to'](this,_0x5ed437(0x6c),this[_0x5ed437(0x71)][_0x5ed437(0x87)],_0x5ed437(0x95),_0x153cfd,_0x5ed437(0x73),(_0x5cccf3,_0x387adf,_0x466c63)=>!!_0x466c63||_0x5cccf3&&!_0x387adf),_0x153cfd['on'](_0x5ed437(0x9e),(_0x3bab19,_0x129d88)=>{const _0x30046b=_0x5ed437;this[_0x30046b(0xa3)](_0x30046b(0x6f),_0x129d88),_0x153cfd[_0x30046b(0x7d)][_0x30046b(0x7b)]('');}),_0x153cfd['on'](_0x5ed437(0x80),()=>this[_0x5ed437(0x6e)]()),_0x153cfd[_0x5ed437(0x70)](_0x5ed437(0x94))['to'](this[_0x5ed437(0x71)][_0x5ed437(0x87)],_0x5ed437(0x95)),_0x48d5ee;}}
|
|
@@ -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 _0x5c75f3=_0x249f;(function(_0x36becf,_0x378ca4){const _0x1604b4=_0x249f,_0x3b76bc=_0x36becf();while(!![]){try{const _0x20f769=-parseInt(_0x1604b4(0x1df))/0x1+parseInt(_0x1604b4(0x1e0))/0x2+-parseInt(_0x1604b4(0x1d3))/0x3+-parseInt(_0x1604b4(0x1e1))/0x4*(parseInt(_0x1604b4(0x1d5))/0x5)+parseInt(_0x1604b4(0x1a3))/0x6+parseInt(_0x1604b4(0x1c8))/0x7*(-parseInt(_0x1604b4(0x1cc))/0x8)+parseInt(_0x1604b4(0x1a0))/0x9;if(_0x20f769===_0x378ca4)break;else _0x3b76bc['push'](_0x3b76bc['shift']());}catch(_0x2d97a4){_0x3b76bc['push'](_0x3b76bc['shift']());}}}(_0x1ba9,0x19f07));import{getTranslation as _0x1ccc07}from'../../utils/common-translations.js';function _0x1ba9(){const _0x55ec34=['discardButton','color','bind','getUserViewNotificationText','ck-suggestion-wrapper--active','Discard\x20suggestion','focusables','@external','ariaLabel','Accept\x20suggestion','change:description','<p>','userView','ariaDescriptionView','_config','div','EXTERNAL_IMPORT_WORD_SUGGESTION','ck-annotation__info-time','editorDestroyed','ck-suggestion__info-name','add','ck-comment__info-time','element','canDiscard','7RbnZpD','creator','description','isActive','1425736HSHXLp','addMany','ck-suggestion-','commentThread','fire','editorReady','presentation','622446GKBxQy','span','5WmmUzx','ck-annotation__main','content','source','getExternalSuggestionNote','ck-suggestion__actions','ck-annotation__info-name','disableComments','ck-suggestion__user','isEnabled','135372fLKiUg','124440tKADrt','612844FpcrWZ','extendTemplate','importWord','name','set','commentsListView','formatDateTime','ck-annotation__actions','author','children','type','ck-annotation__info','</p>','isExternal','canAccept','discardSuggestion','execute','listitem','time','ck-rounded-corners','ck-suggestion--discard','ck-suggestion__info','ck-suggestion__main','descriptionParts','delegate','innerHTML','_model','render','ck-annotation__user','querySelector','bindTemplate','EXTERNAL_AVATAR','ck-suggestion-wrapper','locale','acceptButton','attributes','ck-annotation','check','_descriptionElement','ck-suggestion--accept','_createButton','6046182PvebHs','cancel','push','279066ueirEk','ck-comment__external','.ck-annotation__content-wrapper','commentThreadInputView','EXTERNAL_IMPORT_WORD_AVATAR','EXTERNAL_SUGGESTION','setTemplate','authoredAt','ck-annotation__content-wrapper','getTemplate','ck-suggestion','acceptSuggestion','ck-suggestion--disabled-comments'];_0x1ba9=function(){return _0x55ec34;};return _0x1ba9();}function _0x249f(_0x102a98,_0x3f7799){const _0x1ba93b=_0x1ba9();return _0x249f=function(_0x249fa6,_0x4bb418){_0x249fa6=_0x249fa6-0x17b;let _0x4afe44=_0x1ba93b[_0x249fa6];return _0x4afe44;},_0x249f(_0x102a98,_0x3f7799);}import{default as _0x1483b2}from'./basesuggestionthreadview.js';import{icons as _0x203014}from'ckeditor5/src/core.js';import{LateFocusButtonView as _0x2eb4ff,trimHtml as _0xf07d40,UserView as _0x1fa676}from'ckeditor5-collaboration/src/collaboration-core.js';import{renderDescription as _0x4ab4b0}from'../../utils/utils.js';export default class re extends _0x1483b2{constructor(_0x43c4f9,_0x3520e5,_0x4ee7d9,_0x217e26){const _0x59ca41=_0x249f;super(_0x43c4f9,_0x3520e5,_0x4ee7d9,_0x217e26),this[_0x59ca41(0x17b)](_0x59ca41(0x181),''),this[_0x59ca41(0x1b2)](_0x59ca41(0x181))['to'](this,_0x59ca41(0x18e),_0x185247=>_0x185247&&_0x185247[0x0]?_0x185247[0x0][_0x59ca41(0x181)]:''),this[_0x59ca41(0x1b2)](_0x59ca41(0x1ca))['to'](this,_0x59ca41(0x18e),this,_0x59ca41(0x1cb),(_0x1ec9b5,_0x2f5a78)=>{const _0x491c79=_0x59ca41;let _0x2ff3b5='';for(const _0x12cbd4 of _0x1ec9b5)_0x2ff3b5+=_0x491c79(0x1bb)+_0x4ab4b0(_0x12cbd4[_0x491c79(0x1d7)],_0x12cbd4[_0x491c79(0x1b1)])+_0x491c79(0x183);return _0x2f5a78?_0x2ff3b5:_0xf07d40(_0x2ff3b5,{'limit':0x8c});}),this[_0x59ca41(0x19d)]=null,this[_0x59ca41(0x199)]=this[_0x59ca41(0x19f)](_0x1ccc07(_0x43c4f9,_0x59ca41(0x1b9)),_0x203014[_0x59ca41(0x19c)],_0x59ca41(0x19e),_0x59ca41(0x1ae),'sw'),this[_0x59ca41(0x199)][_0x59ca41(0x1b2)](_0x59ca41(0x1de))['to'](this,_0x59ca41(0x185)),this[_0x59ca41(0x1b0)]=this[_0x59ca41(0x19f)](_0x1ccc07(_0x43c4f9,_0x59ca41(0x1b5)),_0x203014[_0x59ca41(0x1a1)],_0x59ca41(0x18b),_0x59ca41(0x186),'sw'),this[_0x59ca41(0x1b0)][_0x59ca41(0x1b2)](_0x59ca41(0x1de))['to'](this,_0x59ca41(0x1c7)),this[_0x59ca41(0x1bc)]=new _0x1fa676(_0x43c4f9,this[_0x59ca41(0x191)][_0x59ca41(0x17f)],this[_0x59ca41(0x1b3)]()),this[_0x59ca41(0x1bc)][_0x59ca41(0x1e2)]({'attributes':{'class':[_0x59ca41(0x1dd),_0x59ca41(0x193)],'aria-hidden':!0x0}}),this[_0x59ca41(0x1b6)][_0x59ca41(0x1cd)]([this[_0x59ca41(0x199)],this[_0x59ca41(0x1b0)]]),this[_0x59ca41(0x17c)]&&this[_0x59ca41(0x1b6)][_0x59ca41(0x1c4)](this[_0x59ca41(0x17c)]),this[_0x59ca41(0x1a6)]&&this[_0x59ca41(0x1b6)][_0x59ca41(0x1c4)](this[_0x59ca41(0x1a6)]),this[_0x59ca41(0x1a9)](this[_0x59ca41(0x1ac)]());}[_0x5c75f3(0x1ac)](){const _0xe3e825=_0x5c75f3,_0x1e4c9e=this[_0xe3e825(0x195)],_0x484212=[{'tag':_0xe3e825(0x1bf),'attributes':{'class':[_0xe3e825(0x18c),_0xe3e825(0x182)]},'children':[{'tag':_0xe3e825(0x1d4),'children':[{'text':this[_0xe3e825(0x1bc)][_0xe3e825(0x1e4)]}],'attributes':{'class':[_0xe3e825(0x1c3),_0xe3e825(0x1db)]}},{'tag':_0xe3e825(0x189),'attributes':{'datetime':_0x1e4c9e['to'](_0xe3e825(0x1aa)),'class':[_0xe3e825(0x1c5),_0xe3e825(0x1c1)]},'children':[{'text':_0x1e4c9e['to'](_0xe3e825(0x1aa),_0xc3a021=>this[_0xe3e825(0x1be)][_0xe3e825(0x17d)](_0xc3a021))}]}]},{'tag':_0xe3e825(0x1bf),'attributes':{'class':[_0xe3e825(0x1da),_0xe3e825(0x17e)]},'children':[this[_0xe3e825(0x199)],this[_0xe3e825(0x1b0)]]},{'tag':_0xe3e825(0x1bf),'attributes':{'class':[_0xe3e825(0x1ab)]}}];this[_0xe3e825(0x191)][_0xe3e825(0x184)]&&_0x484212[_0xe3e825(0x1a2)]({'tag':_0xe3e825(0x1bf),'attributes':{'class':[_0xe3e825(0x1a4)]},'children':[{'text':this[_0xe3e825(0x1d9)]()}]});const _0x3358c3={'tag':_0xe3e825(0x1bf),'attributes':{'class':['ck',_0xe3e825(0x18a),_0xe3e825(0x197),_0x1e4c9e['if'](_0xe3e825(0x1cb),_0xe3e825(0x1b4)),_0x1e4c9e['to'](_0xe3e825(0x181),_0x1d348e=>_0xe3e825(0x1ce)+_0x1d348e),this[_0xe3e825(0x1be)][_0xe3e825(0x1dc)]&&_0xe3e825(0x1af)],'data-suggestion-id':this[_0xe3e825(0x191)]['id'],'data-thread-id':this[_0xe3e825(0x191)][_0xe3e825(0x1cf)]['id'],'data-author-id':this[_0xe3e825(0x191)][_0xe3e825(0x17f)]['id'],'tabindex':0x0,'role':_0xe3e825(0x188),'aria-label':_0x1e4c9e['to'](_0xe3e825(0x1b8)),'aria-describedby':this[_0xe3e825(0x1bd)]['id']},'children':[{'tag':_0xe3e825(0x1bf),'attributes':{'class':[_0xe3e825(0x1ad),_0xe3e825(0x19b)]},'children':[this[_0xe3e825(0x1bc)],{'tag':_0xe3e825(0x1bf),'attributes':{'class':[_0xe3e825(0x18d),_0xe3e825(0x1d6)],'role':_0xe3e825(0x1d2)},'children':_0x484212},this[_0xe3e825(0x1bd)]]}]};return this[_0xe3e825(0x17c)]&&this[_0xe3e825(0x1a6)]&&(_0x3358c3[_0xe3e825(0x180)][_0xe3e825(0x1a2)](this[_0xe3e825(0x17c)],this[_0xe3e825(0x1a6)]),this[_0xe3e825(0x17c)][_0xe3e825(0x18f)](_0xe3e825(0x1d1))['to'](this),this[_0xe3e825(0x17c)][_0xe3e825(0x18f)](_0xe3e825(0x1c2))['to'](this),this[_0xe3e825(0x1a6)][_0xe3e825(0x18f)](_0xe3e825(0x1d1))['to'](this),this[_0xe3e825(0x1a6)][_0xe3e825(0x18f)](_0xe3e825(0x1c2))['to'](this)),_0x3358c3;}[_0x5c75f3(0x192)](){const _0xbbe878=_0x5c75f3;super[_0xbbe878(0x192)](),this[_0xbbe878(0x19d)]=this[_0xbbe878(0x1c6)][_0xbbe878(0x194)](_0xbbe878(0x1a5)),this[_0xbbe878(0x19d)][_0xbbe878(0x190)]=this[_0xbbe878(0x1ca)],this['on'](_0xbbe878(0x1ba),(_0x5c12fe,_0x2a7283,_0x52a281)=>{const _0x4507e4=_0xbbe878;this[_0x4507e4(0x19d)][_0x4507e4(0x190)]=_0x52a281;});}[_0x5c75f3(0x19f)](_0x200d74,_0x2111ce,_0x2f61db,_0x4e01e4,_0x37d8c9){const _0x4bec57=_0x5c75f3,_0x1c0994=new _0x2eb4ff(this[_0x4bec57(0x198)]);return _0x1c0994[_0x4bec57(0x17b)]({'label':_0x200d74,'icon':_0x2111ce,'tooltip':!0x0,'tooltipPosition':_0x37d8c9}),_0x1c0994[_0x4bec57(0x1e2)]({'attributes':{'class':_0x2f61db}}),_0x1c0994['on'](_0x4bec57(0x187),()=>{const _0x27088e=_0x4bec57;this[_0x27088e(0x1d0)](_0x4e01e4,this[_0x27088e(0x191)]['id']);}),_0x1c0994;}[_0x5c75f3(0x1d9)](){const _0x27513e=_0x5c75f3;return _0x27513e(0x1e3)===this[_0x27513e(0x191)][_0x27513e(0x19a)][_0x27513e(0x1b7)][_0x27513e(0x1d8)]?_0x1ccc07(this[_0x27513e(0x198)],_0x27513e(0x1c0)):_0x1ccc07(this[_0x27513e(0x198)],_0x27513e(0x1a8));}[_0x5c75f3(0x1b3)](){const _0xe30168=_0x5c75f3;return this[_0xe30168(0x191)][_0xe30168(0x184)]?_0xe30168(0x1e3)===this[_0xe30168(0x191)][_0xe30168(0x19a)][_0xe30168(0x1b7)][_0xe30168(0x1d8)]?_0x1ccc07(this[_0xe30168(0x198)],_0xe30168(0x1a7),this[_0xe30168(0x191)][_0xe30168(0x1c9)][_0xe30168(0x1e4)]):_0x1ccc07(this[_0xe30168(0x198)],_0xe30168(0x196),this[_0xe30168(0x191)][_0xe30168(0x1c9)][_0xe30168(0x1e4)]):null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x209ef6,_0x32c852,_0x2d4c22){const t=_0x209ef6['t'];switch(_0x32c852){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',_0x2d4c22);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d4c22);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d4c22);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d4c22);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d4c22);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',_0x2d4c22);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d4c22);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',_0x2d4c22);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d4c22);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d4c22);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d4c22);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d4c22);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d4c22);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d4c22);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d4c22);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d4c22);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d4c22);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d4c22);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d4c22);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d4c22);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d4c22);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d4c22);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d4c22);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'},_0x2d4c22);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d4c22);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d4c22);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d4c22);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d4c22);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d4c22);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'},_0x2d4c22);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d4c22);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d4c22);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d4c22);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d4c22);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'},_0x2d4c22);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d4c22);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'},_0x2d4c22);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'},_0x2d4c22);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d4c22);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'},_0x2d4c22);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d4c22);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'},_0x2d4c22);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d4c22);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d4c22);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'},_0x2d4c22);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'},_0x2d4c22);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 _0x32c852;}}
|
|
23
|
+
export function getTranslation(_0x181430,_0x2414ec,_0x371c45){const t=_0x181430['t'];switch(_0x2414ec){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',_0x371c45);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x371c45);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x371c45);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x371c45);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x371c45);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',_0x371c45);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x371c45);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',_0x371c45);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x371c45);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x371c45);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x371c45);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x371c45);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x371c45);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x371c45);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x371c45);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x371c45);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x371c45);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x371c45);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x371c45);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x371c45);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x371c45);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x371c45);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x371c45);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'},_0x371c45);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x371c45);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x371c45);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x371c45);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x371c45);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x371c45);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'},_0x371c45);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x371c45);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x371c45);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x371c45);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x371c45);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'},_0x371c45);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x371c45);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'},_0x371c45);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'},_0x371c45);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x371c45);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'},_0x371c45);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x371c45);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'},_0x371c45);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x371c45);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x371c45);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'},_0x371c45);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'},_0x371c45);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'},_0x371c45);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x371c45);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'},_0x371c45);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'},_0x371c45);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'},_0x371c45);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2414ec;}}
|
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(_0x49a9b4,_0x2ed52a){const _0x18ba9f=_0xe73b,_0x12cb6d=_0x49a9b4();while(!![]){try{const _0x1a162b=parseInt(_0x18ba9f(0x128))/0x1+-parseInt(_0x18ba9f(0x10a))/0x2*(parseInt(_0x18ba9f(0x121))/0x3)+-parseInt(_0x18ba9f(0x108))/0x4+-parseInt(_0x18ba9f(0xfb))/0x5*(-parseInt(_0x18ba9f(0x107))/0x6)+-parseInt(_0x18ba9f(0x10d))/0x7+parseInt(_0x18ba9f(0x11b))/0x8+-parseInt(_0x18ba9f(0xf3))/0x9*(-parseInt(_0x18ba9f(0x101))/0xa);if(_0x1a162b===_0x2ed52a)break;else _0x12cb6d['push'](_0x12cb6d['shift']());}catch(_0x5c40a2){_0x12cb6d['push'](_0x12cb6d['shift']());}}}(_0x5b84,0xb9588));export function normalizeDescription(_0x5c1abd){const _0x25785f=_0xe73b;return Array[_0x25785f(0xfd)](_0x5c1abd)||(_0x5c1abd=[_0x5c1abd]),_0x5c1abd[_0x25785f(0xf6)](_0x2b9f60=>{const _0x46c152=_0x25785f,_0x3eb710=_0x2b9f60[_0x46c152(0x10f)][_0x46c152(0x100)](/\*/g,''),_0x33500a=_0x2b9f60[_0x46c152(0x110)]?_0x46c152(0x11d)+_0x2b9f60[_0x46c152(0x110)][_0x46c152(0x125)]+']':'';return'['+_0x2b9f60[_0x46c152(0x106)]+']\x20'+_0x3eb710+_0x33500a;})[_0x25785f(0x10c)](';\x20');}export function renderDescription(_0x180d4d,_0x2bde8e){const _0x5dce02=_0xe73b;let _0x33dffe='';return _0x33dffe+=_0x180d4d[_0x5dce02(0x11a)]('*')[_0x5dce02(0xf6)]((_0x190614,_0x29aff6)=>_0x29aff6%0x2!=0x0?_0x5dce02(0x118)+nn(_0x190614)+_0x5dce02(0x119):nn(_0x190614))[_0x5dce02(0x10c)](''),_0x2bde8e&&(_0x33dffe+=_0x5dce02(0x117)+_0x2bde8e[_0x5dce02(0x125)]+_0x5dce02(0x10b)+_0x2bde8e[_0x5dce02(0x111)]+_0x5dce02(0x120)),_0x33dffe;}function nn(_0xaa982d){const _0x1944f1=_0xe73b,_0x303281=document[_0x1944f1(0x102)](_0x1944f1(0x126));return _0x303281[_0x1944f1(0xfc)]=_0xaa982d,_0x303281[_0x1944f1(0xf4)];}export function sortSuggestions(_0x309856){const _0x3d8c7f=_0xe73b;return _0x309856[_0x3d8c7f(0xfa)]((_0x18d333,_0x111182)=>_0x3d8c7f(0x105)==_0x18d333[_0x3d8c7f(0x106)]&&_0x3d8c7f(0x105)!=_0x111182[_0x3d8c7f(0x106)]?-0x1:_0x3d8c7f(0x105)!=_0x18d333[_0x3d8c7f(0x106)]&&_0x3d8c7f(0x105)==_0x111182[_0x3d8c7f(0x106)]?0x1:0x0);}function _0x5b84(){const _0x4c9273=['isIntersecting','\x20[color\x20','start','isTouching','\x22></span>','62589ozUHwG','change','createPositionAfter','push','value','span','getRanges','580313CMhWKr','864VrQwDF','innerHTML','createPositionBefore','map','isMultiRange','isInContent','next','sort','10EnumZI','innerText','isArray','isCollapsed','length','replace','296910czWTml','createElement','end','schema','deletion','type','163356QjHrIZ','3722104QNMhfb','createPositionAt','94fUMexX','\x22\x20title=\x22','join','6341377hKJrKL','execute','content','color','title','add','from','splice','isObject','createRange','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','<span\x20class=\x22ck-suggestion-type\x22>','</span>','split','728584zWFtak'];_0x5b84=function(){return _0x4c9273;};return _0x5b84();}export function getSelectedSuggestions(_0x47110d,_0x1186d1){const _0xa7e98a=_0xe73b,_0x41f9cf=Array[_0xa7e98a(0x113)](_0x47110d[_0xa7e98a(0x127)]()),_0x4f2563=new Set();for(const _0x38f3f4 of _0x1186d1)if(_0x38f3f4[_0xa7e98a(0xf8)]){for(const _0x10fef1 of _0x41f9cf)for(const _0x2e15ad of _0x38f3f4[_0xa7e98a(0x127)]())(_0x10fef1[_0xa7e98a(0x11c)](_0x2e15ad)||_0x47110d[_0xa7e98a(0xfe)]&&!_0x38f3f4[_0xa7e98a(0xf7)]&&_0x38f3f4[_0xa7e98a(0xf9)]&&_0x2e15ad[_0xa7e98a(0x103)][_0xa7e98a(0x11f)](_0x10fef1[_0xa7e98a(0x11e)]))&&_0x4f2563[_0xa7e98a(0x112)](_0x38f3f4);}return _0x4f2563;}export function getRangesOfBlockGroups(_0x17e139,_0xf78ab6){const _0x243d40=_0xe73b;let _0x3d6ec5,_0xe8306=0x0;const _0x56d70a=[],_0x589910=_0xf78ab6[_0x243d40(0x104)];for(;_0xe8306<_0x17e139[_0x243d40(0xff)];){const _0x36ffeb=_0x17e139[_0xe8306],_0x625a42=_0x17e139[_0xe8306+0x1];_0x3d6ec5||(_0x3d6ec5=_0xf78ab6[_0x243d40(0xf5)](_0x36ffeb)),on(_0xf78ab6,_0x36ffeb,_0x625a42)||(_0x56d70a[_0x243d40(0x124)](_0xf78ab6[_0x243d40(0x116)](_0x3d6ec5,_0x589910[_0x243d40(0x115)](_0x36ffeb)?_0xf78ab6[_0x243d40(0x123)](_0x36ffeb):_0xf78ab6[_0x243d40(0x109)](_0x36ffeb,_0x243d40(0x103)))),_0x3d6ec5=null),_0xe8306++;}return _0x56d70a;}function _0xe73b(_0x735069,_0x2a11c3){const _0x5b8419=_0x5b84();return _0xe73b=function(_0xe73b83,_0x329de4){_0xe73b83=_0xe73b83-0xf3;let _0x2dc295=_0x5b8419[_0xe73b83];return _0x2dc295;},_0xe73b(_0x735069,_0x2a11c3);}function on(_0x3177a9,_0x2091d2,_0x1b1d3a){const _0x3516e4=_0xe73b;if(!_0x1b1d3a)return!0x1;const _0x4ef2cd=_0x3177a9[_0x3516e4(0x123)](_0x2091d2),_0x1b5293=_0x3177a9[_0x3516e4(0xf5)](_0x1b1d3a);return _0x4ef2cd[_0x3516e4(0x11f)](_0x1b5293);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x3a12ff,_0x511f93,_0xa8575c){const _0x27fd33=_0xe73b;for(;_0xa8575c[_0x27fd33(0xff)];){const _0x285c50=_0xa8575c[_0x27fd33(0x114)](0x0,0x64);_0x3a12ff[_0x27fd33(0x122)](()=>{const _0x54acfc=_0x27fd33;for(const _0x58cfa1 of _0x285c50)_0x58cfa1[_0x54acfc(0xf8)]&&_0x511f93[_0x54acfc(0x10e)](_0x58cfa1['id']);});}}
|