@ckeditor/ckeditor5-track-changes 41.4.2 → 42.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/README.md +6 -0
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -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.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/types/suggestion.d.ts +1 -1
- package/dist/types/ui/suggestioncontroller.d.ts +1 -1
- package/package.json +3 -3
- 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.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/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.d.ts +1 -1
- package/src/suggestion.js +2 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +1 -1
- package/src/ui/suggestioncontroller.js +2 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x24fd51=_0x5a6b;(function(_0x1d9d49,_0x172803){const _0x284d07=_0x5a6b,_0x67ac27=_0x1d9d49();while(!![]){try{const _0x544d73=parseInt(_0x284d07(0x110))/0x1+parseInt(_0x284d07(0x147))/0x2+parseInt(_0x284d07(0x141))/0x3+parseInt(_0x284d07(0xf9))/0x4*(parseInt(_0x284d07(0x12b))/0x5)+-parseInt(_0x284d07(0x153))/0x6*(parseInt(_0x284d07(0x135))/0x7)+parseInt(_0x284d07(0x117))/0x8*(parseInt(_0x284d07(0x106))/0x9)+-parseInt(_0x284d07(0x162))/0xa;if(_0x544d73===_0x172803)break;else _0x67ac27['push'](_0x67ac27['shift']());}catch(_0x32fb6b){_0x67ac27['push'](_0x67ac27['shift']());}}}(_0x4002,0x41cef));import{Plugin as _0x80b002}from'ckeditor5/src/core.js';import{Collection as _0x2567da}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x1fed0a,createDropdown as _0x52c79e,ListSeparatorView as _0x51eaaf,MenuBarMenuView as _0x288381,MenuBarMenuListView as _0x32a495,MenuBarMenuListItemView as _0x435738,MenuBarMenuListItemButtonView as _0x2ef808,SplitButtonView as _0x57616c,ViewModel as _0x30245f}from'ckeditor5/src/ui.js';function _0x5a6b(_0x19885e,_0x56f81a){const _0x4002c5=_0x4002();return _0x5a6b=function(_0x5a6b3a,_0x1ffd6c){_0x5a6b3a=_0x5a6b3a-0xdf;let _0x4ba90f=_0x4002c5[_0x5a6b3a];return _0x4ba90f;},_0x5a6b(_0x19885e,_0x56f81a);}import{Users as _0x439bbb,getDateTimeFormatter as _0x285a33,getAllMarkersDomElementsSorted as _0x7ebfce}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4002(){const _0xdc7121=['locale','_bindAnnotationToEditors','createAnnotationView','SuggestionThreadView','children','actionView','291063rivsVM','addSourceCollector','componentFactory','commands','editor','arrowView','change:activeAnnotations','8JYrCkF','CommentsRepository','comments.editorConfig','view','innerView','bind','comments.maxCommentCharsWhenCollapsed','discardButton','trackChanges.disableComments','CommentView','comments.maxCommentsWhenCollapsed','getFirstRange','addComment','change:previous','keys','has','menuitem','comments','get','source','20yFUsos','define','model','from','_destroyController','toMany','unbind','_unbindEditors','suggestionChanged','activeAnnotations','195461FMaIcm','activeMarkers','plugins','getAllAdjacentSuggestions','_refreshActiveMarkers','Annotations','filter','registerAnnotation','Track\x20changes','length','separator','getRanges','676323RfGdxq','getMarkers','EditorAnnotations','head','createAnnotation','_initializeController','17142KKwCTA','switchbutton','_suggestionToController','push','isOn','focus','createCommentThreadController','stopListening','suggestionUnloaded','items','Discard\x20all\x20suggestions','refreshSelectedViews','102mxOkTc','destroy','pluginName','isMultiRange','getDescriptions','getMarkerNames','_createToolbarButton','value','getByInnerView','suggestionLoaded','_annotationViews','commentThread','Accept\x20all\x20suggestions','isEnabled','isInContent','4093030fikIHg','acceptButton','comments.maxThreadTotalWeight','buttonView','requires','lowest','menu','reduce','acceptSelectedSuggestions','descriptionParts','TrackChangesEditing','size','isDirty','Discard\x20all\x20selected\x20suggestions','values','delete','hasSuggestion','editing','descriptionFactory','_updateController','_createMenuBarMenu','init','mainView','some','delegate','Accept\x20all\x20selected\x20suggestions','getSuggestion','getJoined','menuBar:trackChanges','button','execute','_disableComments','_addUIComponentsToFactory','listenTo','menuitemcheckbox','acceptAllSuggestions','panelView','discardAllSuggestions','TrackChangesUI','_handleControllerBuffer','357908DxWBWo','trackChanges','remove','clear','discardSelectedSuggestions','commandName','suggestion-','previous','add','trackChanges.SuggestionThreadView','type','CommentsUI','set','2435058etSSrU','_viewToController','_handleSuggestionControllerDelayed','config'];_0x4002=function(){return _0xdc7121;};return _0x4002();}import _0x31cfea from'./trackchangesediting.js';import _0x248945 from'./ui/suggestioncontroller.js';import _0x485b8b from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x2c9065}from'./utils/common-translations.js';import _0x3bf923 from'../theme/icons/track-changes.svg';export default class d extends _0x80b002{static get[_0x24fd51(0x166)](){const _0x3fce42=_0x24fd51;return[_0x31cfea,_0x439bbb,_0x3fce42(0x118),_0x3fce42(0x13a),_0x3fce42(0x143)];}static get[_0x24fd51(0x155)](){const _0x42a978=_0x24fd51;return _0x42a978(0xf7);}constructor(_0x2d822e){const _0x59abc6=_0x24fd51;super(_0x2d822e),this[_0x59abc6(0x149)]=new Map(),this[_0x59abc6(0x107)]=new Map(),this[_0x59abc6(0x15d)]=new Map(),this[_0x59abc6(0xf8)]=new Map();const _0x4bf6a2=this[_0x59abc6(0x114)][_0x59abc6(0x109)];_0x4bf6a2[_0x59abc6(0x12c)](_0x59abc6(0x102),_0x485b8b),_0x4bf6a2[_0x59abc6(0x12c)](_0x59abc6(0x11f),!0x1),this[_0x59abc6(0xf0)]=_0x4bf6a2[_0x59abc6(0x129)](_0x59abc6(0x11f));}[_0x24fd51(0x108)](_0x10fb50,_0x31b65f){const _0x46615e=_0x24fd51;0x0===this[_0x46615e(0xf8)][_0x46615e(0x16d)]&&setTimeout(()=>{const _0xd0b83a=_0x46615e;for(const [_0x329490,_0x26e67c]of this[_0xd0b83a(0xf8)]){const _0x29ba02=this[_0xd0b83a(0x149)][_0xd0b83a(0x126)](_0x329490);_0x29ba02||_0x26e67c?_0x29ba02&&_0x26e67c&&this[_0xd0b83a(0x12f)](_0x329490):this[_0xd0b83a(0x146)](_0x329490);}this[_0xd0b83a(0xf8)][_0xd0b83a(0xfc)](),this[_0xd0b83a(0x114)][_0xd0b83a(0x137)][_0xd0b83a(0x129)](_0xd0b83a(0x143))[_0xd0b83a(0x152)](),this[_0xd0b83a(0x139)]();},0xa),this[_0x46615e(0xf8)][_0x46615e(0x105)](_0x10fb50,_0x31b65f);}[_0x24fd51(0xe6)](){const _0x3b9358=_0x24fd51,_0x3b170b=this[_0x3b9358(0x114)],_0x38bb80=_0x3b170b[_0x3b9358(0x137)][_0x3b9358(0x129)](_0x3b9358(0x16c)),_0x257a0b=_0x3b170b[_0x3b9358(0x137)][_0x3b9358(0x129)](_0x3b9358(0x13a)),_0x28a91a=_0x3b170b[_0x3b9358(0x137)][_0x3b9358(0x129)](_0x3b9358(0x143)),_0x68ee8d=_0x3b170b[_0x3b9358(0x137)][_0x3b9358(0x129)](_0x3b9358(0x118));this[_0x3b9358(0xf1)](),_0x28a91a[_0x3b9358(0x111)](()=>{const _0x1d2161=_0x3b9358,_0x4d9370=[];for(const [_0x5bbffb,_0x47eac4]of Array[_0x1d2161(0x12e)](this[_0x1d2161(0x149)])){const _0x24c4bf=_0x5bbffb[_0x1d2161(0x138)](),_0xe62bc5=[];for(const _0x2ac7e7 of _0x24c4bf){if(!_0x2ac7e7[_0x1d2161(0x161)])continue;if(_0x2ac7e7[_0x1d2161(0x156)]){_0xe62bc5[_0x1d2161(0x14a)](..._0x2ac7e7[_0x1d2161(0x140)]());continue;}const _0x3bc1f5=_0x2ac7e7[_0x1d2161(0x122)]();if(_0xe62bc5[_0x1d2161(0x13e)]>0x0){const _0x53c21c=_0xe62bc5[0x0][_0x1d2161(0xec)](_0x3bc1f5);if(_0x53c21c){_0xe62bc5[0x0]=_0x53c21c;continue;}}_0xe62bc5[_0x1d2161(0x14a)](_0x3bc1f5);}_0x4d9370[_0x1d2161(0x14a)]([_0x47eac4[_0x1d2161(0x11a)],_0xe62bc5]);}return _0x4d9370;}),this[_0x3b9358(0xf2)](_0x38bb80,_0x3b9358(0x15c),(_0xc26834,_0x4ef8f7)=>{const _0xe7e71e=_0x3b9358;this[_0xe7e71e(0xf2)](_0x4ef8f7,_0xe7e71e(0x124),(_0x5aff6a,_0x1239a4,_0x59ce4e,_0x30910e)=>{const _0x30406c=_0xe7e71e;_0x4ef8f7[_0x30406c(0x161)]&&(null==_0x59ce4e?(this[_0x30406c(0xe4)](_0x30910e[_0x30406c(0x144)]),this[_0x30406c(0x108)](_0x4ef8f7,!0x1)):(this[_0x30406c(0xe4)](_0x59ce4e[_0x30406c(0x144)]),null==_0x30910e&&this[_0x30406c(0x108)](_0x4ef8f7,!0x0)));}),null!==_0x4ef8f7[_0xe7e71e(0x100)]?this[_0xe7e71e(0xe4)](_0x4ef8f7[_0xe7e71e(0x144)]):this[_0xe7e71e(0x108)](_0x4ef8f7,!0x1);}),this[_0x3b9358(0xf2)](_0x38bb80,_0x3b9358(0x14f),(_0x80e033,_0x458751,_0x3ba3bd)=>{const _0x8e5a18=_0x3b9358;this[_0x8e5a18(0x14e)](_0x458751,_0x8e5a18(0x124)),this[_0x8e5a18(0xf8)][_0x8e5a18(0xe0)](_0x458751),this[_0x8e5a18(0x149)][_0x8e5a18(0x126)](_0x458751)&&this[_0x8e5a18(0x12f)](_0x458751),_0x3ba3bd&&this[_0x8e5a18(0xe4)](_0x3ba3bd[_0x8e5a18(0x144)]);}),this[_0x3b9358(0xf2)](_0x38bb80,_0x3b9358(0x133),(_0x234dc3,_0x376b32)=>{const _0x531604=_0x3b9358;this[_0x531604(0xe4)](_0x376b32);}),this[_0x3b9358(0xf2)](_0x257a0b,_0x3b9358(0x116),()=>{const _0x110b68=_0x3b9358;this[_0x110b68(0x139)]();}),this[_0x3b9358(0xf2)](_0x68ee8d,_0x3b9358(0x123),(_0x21f134,{threadId:_0x1b6e84,isFromAdapter:_0x12bbe4})=>{const _0x103d47=_0x3b9358;if(_0x12bbe4||!_0x38bb80[_0x103d47(0xe1)](_0x1b6e84))return;const _0xc5223=_0x38bb80[_0x103d47(0xeb)](_0x1b6e84);this[_0x103d47(0x149)][_0x103d47(0x129)](_0xc5223)[_0x103d47(0x11a)][_0x103d47(0x14c)]();},{'priority':_0x3b9358(0x167)});}[_0x24fd51(0x139)](){const _0x58f50c=_0x24fd51,_0x181f90=this[_0x58f50c(0x114)][_0x58f50c(0x137)][_0x58f50c(0x129)](_0x58f50c(0x13a)),_0x2ceabf=this[_0x58f50c(0x114)][_0x58f50c(0x137)][_0x58f50c(0x129)](_0x58f50c(0x16c)),_0x4ac6d1=Array[_0x58f50c(0x12e)](_0x181f90[_0x58f50c(0x134)],_0xa3e595=>_0xa3e595[_0x58f50c(0x11b)])[_0x58f50c(0x13b)](_0x463b96=>this[_0x58f50c(0x107)][_0x58f50c(0x126)](_0x463b96)),_0x123b83=[];for(const _0x39d522 of _0x4ac6d1){const _0x20eb2e=this[_0x58f50c(0x107)][_0x58f50c(0x129)](_0x39d522)[_0x58f50c(0x12d)][_0x58f50c(0x138)]();_0x123b83[_0x58f50c(0x14a)](..._0x20eb2e[_0x58f50c(0x169)]((_0x5ca047,_0x5402a7)=>[..._0x5ca047,..._0x5402a7[_0x58f50c(0x158)]()],[]));}_0x2ceabf[_0x58f50c(0x136)]=_0x123b83;}[_0x24fd51(0xf1)](){const _0x23a427=_0x24fd51,_0x1e31e6=this[_0x23a427(0x114)],_0x24cfe2=_0x1e31e6[_0x23a427(0x10a)],_0x3354ce=_0x2c9065(_0x24cfe2,_0x23a427(0x13d)),_0x1519ed=new _0x2567da([{'type':_0x23a427(0x148),'model':new _0x30245f({'withText':!0x0,'label':_0x3354ce,'commandName':_0x23a427(0xfa),'role':_0x23a427(0xf3)})},{'type':_0x23a427(0x13f)},{'type':_0x23a427(0xee),'model':new _0x30245f({'withText':!0x0,'label':_0x2c9065(_0x24cfe2,_0x23a427(0x15f)),'commandName':_0x23a427(0xf4),'role':_0x23a427(0x127)})},{'type':_0x23a427(0xee),'model':new _0x30245f({'withText':!0x0,'label':_0x2c9065(_0x24cfe2,_0x23a427(0xea)),'commandName':_0x23a427(0x16a),'role':_0x23a427(0x127)})},{'type':_0x23a427(0xee),'model':new _0x30245f({'withText':!0x0,'label':_0x2c9065(_0x24cfe2,_0x23a427(0x151)),'commandName':_0x23a427(0xf6),'role':_0x23a427(0x127)})},{'type':_0x23a427(0xee),'model':new _0x30245f({'withText':!0x0,'label':_0x2c9065(_0x24cfe2,_0x23a427(0x16f)),'commandName':_0x23a427(0xfd),'role':_0x23a427(0x127)})}]);for(const _0x53c816 of _0x1519ed)if(ae(_0x53c816)){const _0x1d2389=_0x1e31e6[_0x23a427(0x113)][_0x23a427(0x129)](_0x53c816[_0x23a427(0x12d)][_0x23a427(0xfe)]);_0x53c816[_0x23a427(0x12d)][_0x23a427(0x11c)](_0x23a427(0x14b),_0x23a427(0x160))['to'](_0x1d2389,_0x23a427(0x15a),_0x23a427(0x160));}_0x1e31e6['ui'][_0x23a427(0x112)][_0x23a427(0x101)](_0x23a427(0xfa),_0x126a47=>this[_0x23a427(0x159)](_0x126a47,_0x1519ed,_0x3354ce)),_0x1e31e6['ui'][_0x23a427(0x112)][_0x23a427(0x101)](_0x23a427(0xed),_0x3f7969=>this[_0x23a427(0xe5)](_0x3f7969,_0x1519ed,_0x3354ce));}[_0x24fd51(0x159)](_0x5ab2f0,_0x3b08c1,_0x3a9152){const _0x28f66b=_0x24fd51,_0x3d7856=_0x52c79e(_0x5ab2f0,_0x57616c),_0x37bcdc=this[_0x28f66b(0x114)][_0x28f66b(0x113)][_0x28f66b(0x129)](_0x28f66b(0xfa));_0x3d7856[_0x28f66b(0x165)][_0x28f66b(0x105)]({'tooltip':_0x3a9152,'label':_0x3a9152,'icon':_0x3bf923}),_0x3d7856[_0x28f66b(0x165)][_0x28f66b(0x11c)](_0x28f66b(0x14b))['to'](_0x37bcdc,_0x28f66b(0x15a)),_0x3d7856[_0x28f66b(0x165)]['on'](_0x28f66b(0xef),()=>{const _0x54b9c8=_0x28f66b;_0x37bcdc[_0x54b9c8(0xef)](),this[_0x54b9c8(0x114)][_0x54b9c8(0xe2)][_0x54b9c8(0x11a)][_0x54b9c8(0x14c)]();}),_0x1fed0a(_0x3d7856,_0x3b08c1,{'role':_0x28f66b(0x168)});const _0x2f5492=[];for(const _0x13f4ca of _0x3b08c1)ae(_0x13f4ca)&&_0x2f5492[_0x28f66b(0x14a)](this[_0x28f66b(0x114)][_0x28f66b(0x113)][_0x28f66b(0x129)](_0x13f4ca[_0x28f66b(0x12d)][_0x28f66b(0xfe)]));const _0xb9e87=_0x3d7856[_0x28f66b(0x165)];return _0xb9e87[_0x28f66b(0x10f)][_0x28f66b(0x131)](_0x28f66b(0x160)),_0xb9e87[_0x28f66b(0x115)][_0x28f66b(0x131)](_0x28f66b(0x160)),_0xb9e87[_0x28f66b(0x10f)][_0x28f66b(0x11c)](_0x28f66b(0x160))['to'](_0x37bcdc,_0x28f66b(0x160)),_0xb9e87[_0x28f66b(0x115)][_0x28f66b(0x11c)](_0x28f66b(0x160))[_0x28f66b(0x130)](_0x2f5492,_0x28f66b(0x160),(..._0x7cda2a)=>_0x7cda2a[_0x28f66b(0xe8)](_0x3ea279=>_0x3ea279)),_0x3d7856['on'](_0x28f66b(0xef),_0xb69c14=>{const _0x5aea8e=_0x28f66b;this[_0x5aea8e(0x114)][_0x5aea8e(0xef)](_0xb69c14[_0x5aea8e(0x12a)][_0x5aea8e(0xfe)]),this[_0x5aea8e(0x114)][_0x5aea8e(0xe2)][_0x5aea8e(0x11a)][_0x5aea8e(0x14c)]();}),_0x3d7856;}[_0x24fd51(0xe5)](_0x5b746b,_0x14d9d2,_0x254084){const _0x94963f=_0x24fd51,_0x2e9f7e=new _0x288381(_0x5b746b),_0x5e229a=this[_0x94963f(0x114)][_0x94963f(0x113)][_0x94963f(0x129)](_0x94963f(0xfa));_0x2e9f7e[_0x94963f(0x165)][_0x94963f(0x105)]({'label':_0x254084,'icon':_0x3bf923});const _0x3697f6=new _0x32a495(_0x5b746b);for(const _0x3ec2ea of _0x14d9d2){if(_0x94963f(0x13f)==_0x3ec2ea[_0x94963f(0x103)]){_0x3697f6[_0x94963f(0x150)][_0x94963f(0x101)](new _0x51eaaf(_0x5b746b));continue;}const _0x782334=new _0x435738(_0x5b746b,_0x2e9f7e),_0x5ccdb6=new _0x2ef808(_0x5b746b),_0x779644=_0x3ec2ea[_0x94963f(0x12d)];_0x5ccdb6[_0x94963f(0x11c)](...Object[_0x94963f(0x125)](_0x779644))['to'](_0x779644),_0x5ccdb6[_0x94963f(0xe9)](_0x94963f(0xef))['to'](_0x2e9f7e),_0x5ccdb6['on'](_0x94963f(0xef),()=>{const _0x5d67f3=_0x94963f;this[_0x5d67f3(0x114)][_0x5d67f3(0xef)](_0x779644[_0x5d67f3(0xfe)]),this[_0x5d67f3(0x114)][_0x5d67f3(0xe2)][_0x5d67f3(0x11a)][_0x5d67f3(0x14c)]();}),_0x782334[_0x94963f(0x10e)][_0x94963f(0x101)](_0x5ccdb6),_0x3697f6[_0x94963f(0x150)][_0x94963f(0x101)](_0x782334);}return _0x2e9f7e[_0x94963f(0x11c)](_0x94963f(0x160))['to'](_0x5e229a,_0x94963f(0x160)),_0x2e9f7e[_0x94963f(0xf5)][_0x94963f(0x10e)][_0x94963f(0x101)](_0x3697f6),_0x2e9f7e;}[_0x24fd51(0x146)](_0x352d4d){const _0x56e5b8=_0x24fd51,_0x22d41f=this[_0x56e5b8(0x114)],_0x405108=_0x22d41f[_0x56e5b8(0x109)],_0xb2455f=_0x22d41f[_0x56e5b8(0x137)][_0x56e5b8(0x129)](_0x56e5b8(0x13a)),_0x5a132c=_0x22d41f[_0x56e5b8(0x137)][_0x56e5b8(0x129)](_0x56e5b8(0x118)),_0x4c6d09=_0x22d41f[_0x56e5b8(0x137)][_0x56e5b8(0x129)](_0x56e5b8(0x143)),_0x23bfc4=_0x22d41f[_0x56e5b8(0x137)][_0x56e5b8(0x129)](_0x439bbb)['me'],_0x5e6ff1=_0x405108[_0x56e5b8(0x129)](_0x56e5b8(0xfa))[_0x56e5b8(0x10d)],{CommentsListView:_0x4cb13,CommentThreadInputView:_0x262aad}=_0x22d41f[_0x56e5b8(0x137)][_0x56e5b8(0x129)](_0x56e5b8(0x104));let _0x1b76f8,_0x2c5742;this[_0x56e5b8(0x15d)][_0x56e5b8(0x126)](_0x352d4d['id'])?(_0x2c5742=this[_0x56e5b8(0x15d)][_0x56e5b8(0x129)](_0x352d4d['id']),_0x1b76f8=_0x2c5742[_0x56e5b8(0xe7)]):(_0x1b76f8=new _0x5e6ff1(_0x22d41f[_0x56e5b8(0x10a)],_0x352d4d,_0x23bfc4,{'disableComments':this[_0x56e5b8(0xf0)],'editorConfig':_0x405108[_0x56e5b8(0x129)](_0x56e5b8(0x119)),'maxCommentsWhenCollapsed':_0x405108[_0x56e5b8(0x129)](_0x56e5b8(0x121)),'maxThreadTotalWeight':_0x405108[_0x56e5b8(0x129)](_0x56e5b8(0x164)),'maxCommentCharsWhenCollapsed':_0x405108[_0x56e5b8(0x129)](_0x56e5b8(0x11d)),'formatDateTime':_0x285a33(_0x405108[_0x56e5b8(0x129)](_0x56e5b8(0x10a))),'CommentView':_0x405108[_0x56e5b8(0x129)](_0x56e5b8(0x128))[_0x56e5b8(0x120)],'CommentsListView':_0x4cb13,'CommentThreadInputView':_0x262aad}),_0x1b76f8[_0x56e5b8(0x163)]['on'](_0x56e5b8(0xef),()=>{const _0x2e2409=_0x56e5b8;_0x22d41f[_0x2e2409(0xe2)][_0x2e2409(0x11a)][_0x2e2409(0x14c)]();}),_0x1b76f8[_0x56e5b8(0x11e)]['on'](_0x56e5b8(0xef),()=>{const _0x5e3cfa=_0x56e5b8;_0x22d41f[_0x5e3cfa(0xe2)][_0x5e3cfa(0x11a)][_0x5e3cfa(0x14c)]();}),_0x2c5742=_0xb2455f[_0x56e5b8(0x10c)](this[_0x56e5b8(0x114)][_0x56e5b8(0x10a)],_0x1b76f8),_0x2c5742[_0x56e5b8(0x11c)](_0x56e5b8(0x16e))['to'](_0x1b76f8,_0x56e5b8(0x16e)),_0x2c5742[_0x56e5b8(0x11c)](_0x56e5b8(0x13e))['to'](_0x1b76f8),_0x2c5742[_0x56e5b8(0x11c)](_0x56e5b8(0x103))['to'](_0x1b76f8,_0x56e5b8(0x103),_0x3c3235=>_0x56e5b8(0xff)+_0x3c3235),this[_0x56e5b8(0x15d)][_0x56e5b8(0x105)](_0x352d4d['id'],_0x2c5742));const _0x212762=_0x5a132c[_0x56e5b8(0x14d)](_0x352d4d[_0x56e5b8(0x15e)],_0x1b76f8),_0xf2c710=new _0x248945(_0x22d41f,_0x352d4d,_0x1b76f8,_0x212762),_0x2b1766=_0x352d4d[_0x56e5b8(0x138)]()[_0x56e5b8(0x13b)](_0x5b98a8=>_0x5b98a8[_0x56e5b8(0x161)]);_0x1b76f8[_0x56e5b8(0x16b)]=_0x22d41f[_0x56e5b8(0x137)][_0x56e5b8(0x129)](_0x56e5b8(0x16c))[_0x56e5b8(0xe3)][_0x56e5b8(0x157)](_0x2b1766),this[_0x56e5b8(0x149)][_0x56e5b8(0x105)](_0x352d4d,_0xf2c710),this[_0x56e5b8(0x107)][_0x56e5b8(0x105)](_0x1b76f8,_0xf2c710);const _0x11c9d2=_0xb2455f[_0x56e5b8(0x145)]({'view':_0x2c5742,'target':()=>{const _0x3f316f=_0x56e5b8,_0x5e3898=[],_0x3f3e4e=_0x352d4d[_0x3f316f(0x138)]()[_0x3f316f(0x13b)](_0x493aec=>_0x493aec[_0x3f316f(0x161)]);for(const _0x28807f of _0x3f3e4e)_0x5e3898[_0x3f316f(0x14a)](..._0x28807f[_0x3f316f(0x142)]());return _0x7ebfce(_0x22d41f[_0x3f316f(0xe2)],_0x5e3898);},'type':()=>_0x56e5b8(0xff)+_0xf2c710[_0x56e5b8(0x11a)][_0x56e5b8(0x103)]});_0x5a132c[_0x56e5b8(0x10b)](_0x1b76f8,_0x11c9d2),_0xb2455f[_0x56e5b8(0x101)](_0x11c9d2),_0x4c6d09[_0x56e5b8(0x13c)](_0x11c9d2);}[_0x24fd51(0x12f)](_0x20c0c3){const _0x515227=_0x24fd51,_0x15bf54=this[_0x515227(0x114)][_0x515227(0x137)][_0x515227(0x129)](_0x515227(0x118)),_0xa5758a=this[_0x515227(0x114)][_0x515227(0x137)][_0x515227(0x129)](_0x515227(0x13a)),_0x331373=this[_0x515227(0x149)][_0x515227(0x129)](_0x20c0c3),_0x48fb2f=_0x331373[_0x515227(0x11a)],_0x120b4d=_0xa5758a[_0x515227(0x15b)](_0x48fb2f);_0x15bf54[_0x515227(0x132)](_0x48fb2f),_0x120b4d&&_0xa5758a[_0x515227(0xfb)](_0x120b4d),this[_0x515227(0x149)][_0x515227(0xe0)](_0x20c0c3),this[_0x515227(0x107)][_0x515227(0xe0)](_0x48fb2f),_0x331373[_0x515227(0x154)]();}[_0x24fd51(0xe4)](_0x42fa3f){const _0x28cc20=_0x24fd51;if(!_0x42fa3f[_0x28cc20(0x161)]||!this[_0x28cc20(0x149)][_0x28cc20(0x126)](_0x42fa3f))return;const _0x5322c2=this[_0x28cc20(0x114)][_0x28cc20(0x137)][_0x28cc20(0x129)](_0x28cc20(0x16c)),_0x58ec68=this[_0x28cc20(0x149)][_0x28cc20(0x129)](_0x42fa3f),_0x2a8724=_0x42fa3f[_0x28cc20(0x138)]();_0x58ec68[_0x28cc20(0x11a)][_0x28cc20(0x16b)]=_0x5322c2[_0x28cc20(0xe3)][_0x28cc20(0x157)](_0x2a8724);}[_0x24fd51(0x154)](){const _0x30cbd3=_0x24fd51;for(const _0x6902f0 of this[_0x30cbd3(0x149)][_0x30cbd3(0x125)]())this[_0x30cbd3(0x12f)](_0x6902f0);for(const _0x548168 of this[_0x30cbd3(0x15d)][_0x30cbd3(0xdf)]())_0x548168[_0x30cbd3(0xe7)][_0x30cbd3(0x154)]();super[_0x30cbd3(0x154)]();}}function ae(_0x37048e){const _0x2fbe05=_0x24fd51;return _0x2fbe05(0x12d)in _0x37048e;}
|
|
23
|
+
const _0x3b4bc0=_0x3d95;(function(_0x3165ed,_0x581b21){const _0x144d44=_0x3d95,_0x46c8c3=_0x3165ed();while(!![]){try{const _0x37810c=-parseInt(_0x144d44(0x137))/0x1*(-parseInt(_0x144d44(0x14e))/0x2)+-parseInt(_0x144d44(0x152))/0x3*(-parseInt(_0x144d44(0xd7))/0x4)+parseInt(_0x144d44(0x139))/0x5+parseInt(_0x144d44(0xcf))/0x6+-parseInt(_0x144d44(0x148))/0x7+parseInt(_0x144d44(0x106))/0x8*(parseInt(_0x144d44(0x10c))/0x9)+-parseInt(_0x144d44(0x12b))/0xa*(parseInt(_0x144d44(0xd8))/0xb);if(_0x37810c===_0x581b21)break;else _0x46c8c3['push'](_0x46c8c3['shift']());}catch(_0x15f88b){_0x46c8c3['push'](_0x46c8c3['shift']());}}}(_0x3e05,0x74f6e));import{Plugin as _0x30dbb5}from'ckeditor5/src/core.js';import{Collection as _0x5cd267}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x25e7bd,createDropdown as _0x255ef5,ListSeparatorView as _0x1e9c88,MenuBarMenuView as _0x525813,MenuBarMenuListView as _0x1e383e,MenuBarMenuListItemView as _0x473664,MenuBarMenuListItemButtonView as _0x223086,SplitButtonView as _0x5b4bb7,ViewModel as _0x51082e}from'ckeditor5/src/ui.js';function _0x3e05(){const _0x1f6d5f=['isMultiRange','_refreshActiveMarkers','comments.maxCommentsWhenCollapsed','unbind','getDescriptions','items','getMarkerNames','isInContent','mainView','init','type','menuBar:trackChanges','10qNtRHB','comments','_createMenuBarMenu','innerView','_disableComments','locale','_handleControllerBuffer','acceptAllSuggestions','hasSuggestion','reduce','isDirty','Discard\x20all\x20suggestions','1217RPdPgl','switchbutton','4352305IVgZRH','destroy','some','createCommentThreadController','editing','_suggestionToController','change:previous','getMarkers','panelView','menuitemcheckbox','length','menu','_initializeController','isOn','_viewToController','3302824ouJqIt','CommentsRepository','getFirstRange','EditorAnnotations','Discard\x20all\x20selected\x20suggestions','getJoined','726YcGPJX','commandName','CommentView','discardButton','57PHzgJR','comments.editorConfig','activeAnnotations','addComment','_addUIComponentsToFactory','separator','Accept\x20all\x20selected\x20suggestions','define','comments.maxCommentCharsWhenCollapsed','execute','previous','keys','_destroyController','Annotations','values','4865652TZsMLn','editor','SuggestionThreadView','CommentsUI','TrackChangesUI','button','suggestion-','listenTo','4808qjYYEX','17453106rYtvrl','model','activeMarkers','getByInnerView','getRanges','suggestionLoaded','focus','Track\x20changes','source','plugins','createAnnotationView','suggestionUnloaded','stopListening','trackChanges.disableComments','refreshSelectedViews','arrowView','set','remove','_bindAnnotationToEditors','value','lowest','descriptionParts','delete','get','size','addSourceCollector','view','descriptionFactory','toMany','head','_handleSuggestionControllerDelayed','getSuggestion','commands','trackChanges','discardAllSuggestions','children','trackChanges.SuggestionThreadView','isEnabled','_updateController','acceptButton','clear','requires','menuitem','pluginName','createAnnotation','filter','1566208NcxFnb','from','buttonView','registerAnnotation','config','acceptSelectedSuggestions','18sYnvGC','change:activeAnnotations','componentFactory','_createToolbarButton','_unbindEditors','_annotationViews','has','bind','Accept\x20all\x20suggestions','delegate','push','getAllAdjacentSuggestions','comments.maxThreadTotalWeight','discardSelectedSuggestions','add','actionView','suggestionChanged','TrackChangesEditing','commentThread'];_0x3e05=function(){return _0x1f6d5f;};return _0x3e05();}import{Users as _0x5ad010,getDateTimeFormatter as _0x1e489f,getAllMarkersDomElementsSorted as _0x275aae}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1da71e from'./trackchangesediting.js';import _0x4533df from'./ui/suggestioncontroller.js';import _0x492460 from'./ui/view/suggestionthreadview.js';function _0x3d95(_0x373f48,_0x542d14){const _0x3e05b=_0x3e05();return _0x3d95=function(_0x3d956b,_0x21b684){_0x3d956b=_0x3d956b-0xc1;let _0x3fbcf5=_0x3e05b[_0x3d956b];return _0x3fbcf5;},_0x3d95(_0x373f48,_0x542d14);}import{getTranslation as _0x178837}from'./utils/common-translations.js';import _0x59e161 from'../theme/icons/track-changes.svg';export default class d extends _0x30dbb5{static get[_0x3b4bc0(0x101)](){const _0x46470b=_0x3b4bc0;return[_0x1da71e,_0x5ad010,_0x46470b(0x149),_0x46470b(0xcd),_0x46470b(0x14b)];}static get[_0x3b4bc0(0x103)](){const _0x30d636=_0x3b4bc0;return _0x30d636(0xd3);}constructor(_0x1e561e){const _0x5870d6=_0x3b4bc0;super(_0x1e561e),this[_0x5870d6(0x13e)]=new Map(),this[_0x5870d6(0x147)]=new Map(),this[_0x5870d6(0x111)]=new Map(),this[_0x5870d6(0x131)]=new Map();const _0x45c027=this[_0x5870d6(0xd0)][_0x5870d6(0x10a)];_0x45c027[_0x5870d6(0xc7)](_0x5870d6(0xfc),_0x492460),_0x45c027[_0x5870d6(0xc7)](_0x5870d6(0xe5),!0x1),this[_0x5870d6(0x12f)]=_0x45c027[_0x5870d6(0xef)](_0x5870d6(0xe5));}[_0x3b4bc0(0xf6)](_0x2de2bd,_0x46eaca){const _0x396c6c=_0x3b4bc0;0x0===this[_0x396c6c(0x131)][_0x396c6c(0xf0)]&&setTimeout(()=>{const _0x43fecc=_0x396c6c;for(const [_0x34efe2,_0x479899]of this[_0x43fecc(0x131)]){const _0x6dfaeb=this[_0x43fecc(0x13e)][_0x43fecc(0x112)](_0x34efe2);_0x6dfaeb||_0x479899?_0x6dfaeb&&_0x479899&&this[_0x43fecc(0xcc)](_0x34efe2):this[_0x43fecc(0x145)](_0x34efe2);}this[_0x43fecc(0x131)][_0x43fecc(0x100)](),this[_0x43fecc(0xd0)][_0x43fecc(0xe1)][_0x43fecc(0xef)](_0x43fecc(0x14b))[_0x43fecc(0xe6)](),this[_0x43fecc(0x120)]();},0xa),this[_0x396c6c(0x131)][_0x396c6c(0xe8)](_0x2de2bd,_0x46eaca);}[_0x3b4bc0(0x128)](){const _0x18e134=_0x3b4bc0,_0x27ac25=this[_0x18e134(0xd0)],_0xec5f1c=_0x27ac25[_0x18e134(0xe1)][_0x18e134(0xef)](_0x18e134(0x11d)),_0x4eefb9=_0x27ac25[_0x18e134(0xe1)][_0x18e134(0xef)](_0x18e134(0xcd)),_0x5158d0=_0x27ac25[_0x18e134(0xe1)][_0x18e134(0xef)](_0x18e134(0x14b)),_0x548e5f=_0x27ac25[_0x18e134(0xe1)][_0x18e134(0xef)](_0x18e134(0x149));this[_0x18e134(0xc4)](),_0x5158d0[_0x18e134(0xf1)](()=>{const _0x5c8b79=_0x18e134,_0xfde1c0=[];for(const [_0x5918d5,_0x34eb3c]of Array[_0x5c8b79(0x107)](this[_0x5c8b79(0x13e)])){const _0x4d8a1e=_0x5918d5[_0x5c8b79(0x117)](),_0x5c26ae=[];for(const _0x2b797f of _0x4d8a1e){if(!_0x2b797f[_0x5c8b79(0x126)])continue;if(_0x2b797f[_0x5c8b79(0x11f)]){_0x5c26ae[_0x5c8b79(0x116)](..._0x2b797f[_0x5c8b79(0xdc)]());continue;}const _0x3e00d9=_0x2b797f[_0x5c8b79(0x14a)]();if(_0x5c26ae[_0x5c8b79(0x143)]>0x0){const _0x16cd39=_0x5c26ae[0x0][_0x5c8b79(0x14d)](_0x3e00d9);if(_0x16cd39){_0x5c26ae[0x0]=_0x16cd39;continue;}}_0x5c26ae[_0x5c8b79(0x116)](_0x3e00d9);}_0xfde1c0[_0x5c8b79(0x116)]([_0x34eb3c[_0x5c8b79(0xf2)],_0x5c26ae]);}return _0xfde1c0;}),this[_0x18e134(0xd6)](_0xec5f1c,_0x18e134(0xdd),(_0x29e836,_0x9ad97)=>{const _0x24f29f=_0x18e134;this[_0x24f29f(0xd6)](_0x9ad97,_0x24f29f(0x13f),(_0xb1a29d,_0x207146,_0x523907,_0x3bf736)=>{const _0x4a15be=_0x24f29f;_0x9ad97[_0x4a15be(0x126)]&&(null==_0x523907?(this[_0x4a15be(0xfe)](_0x3bf736[_0x4a15be(0xf5)]),this[_0x4a15be(0xf6)](_0x9ad97,!0x1)):(this[_0x4a15be(0xfe)](_0x523907[_0x4a15be(0xf5)]),null==_0x3bf736&&this[_0x4a15be(0xf6)](_0x9ad97,!0x0)));}),null!==_0x9ad97[_0x24f29f(0xca)]?this[_0x24f29f(0xfe)](_0x9ad97[_0x24f29f(0xf5)]):this[_0x24f29f(0xf6)](_0x9ad97,!0x1);}),this[_0x18e134(0xd6)](_0xec5f1c,_0x18e134(0xe3),(_0x179064,_0x199754,_0x161912)=>{const _0x28b657=_0x18e134;this[_0x28b657(0xe4)](_0x199754,_0x28b657(0x13f)),this[_0x28b657(0x131)][_0x28b657(0xee)](_0x199754),this[_0x28b657(0x13e)][_0x28b657(0x112)](_0x199754)&&this[_0x28b657(0xcc)](_0x199754),_0x161912&&this[_0x28b657(0xfe)](_0x161912[_0x28b657(0xf5)]);}),this[_0x18e134(0xd6)](_0xec5f1c,_0x18e134(0x11c),(_0x314010,_0x2fe60c)=>{const _0x59f1f2=_0x18e134;this[_0x59f1f2(0xfe)](_0x2fe60c);}),this[_0x18e134(0xd6)](_0x4eefb9,_0x18e134(0x10d),()=>{const _0x4a4f38=_0x18e134;this[_0x4a4f38(0x120)]();}),this[_0x18e134(0xd6)](_0x548e5f,_0x18e134(0xc3),(_0x78323,{threadId:_0x1c0f15,isFromAdapter:_0x40853d})=>{const _0x47ffb5=_0x18e134;if(_0x40853d||!_0xec5f1c[_0x47ffb5(0x133)](_0x1c0f15))return;const _0x5dc041=_0xec5f1c[_0x47ffb5(0xf7)](_0x1c0f15);this[_0x47ffb5(0x13e)][_0x47ffb5(0xef)](_0x5dc041)[_0x47ffb5(0xf2)][_0x47ffb5(0xde)]();},{'priority':_0x18e134(0xec)});}[_0x3b4bc0(0x120)](){const _0x4043a7=_0x3b4bc0,_0x1d10da=this[_0x4043a7(0xd0)][_0x4043a7(0xe1)][_0x4043a7(0xef)](_0x4043a7(0xcd)),_0x50026f=this[_0x4043a7(0xd0)][_0x4043a7(0xe1)][_0x4043a7(0xef)](_0x4043a7(0x11d)),_0x324bd6=Array[_0x4043a7(0x107)](_0x1d10da[_0x4043a7(0xc2)],_0x391eb9=>_0x391eb9[_0x4043a7(0x12e)])[_0x4043a7(0x105)](_0x4a4ec9=>this[_0x4043a7(0x147)][_0x4043a7(0x112)](_0x4a4ec9)),_0x395631=[];for(const _0x10a398 of _0x324bd6){const _0xb91224=this[_0x4043a7(0x147)][_0x4043a7(0xef)](_0x10a398)[_0x4043a7(0xd9)][_0x4043a7(0x117)]();_0x395631[_0x4043a7(0x116)](..._0xb91224[_0x4043a7(0x134)]((_0x553801,_0x175d58)=>[..._0x553801,..._0x175d58[_0x4043a7(0x125)]()],[]));}_0x50026f[_0x4043a7(0xda)]=_0x395631;}[_0x3b4bc0(0xc4)](){const _0x2d435d=_0x3b4bc0,_0x334a1e=this[_0x2d435d(0xd0)],_0x468f2e=_0x334a1e[_0x2d435d(0x130)],_0x557791=_0x178837(_0x468f2e,_0x2d435d(0xdf)),_0x9244ab=new _0x5cd267([{'type':_0x2d435d(0x138),'model':new _0x51082e({'withText':!0x0,'label':_0x557791,'commandName':_0x2d435d(0xf9),'role':_0x2d435d(0x142)})},{'type':_0x2d435d(0xc5)},{'type':_0x2d435d(0xd4),'model':new _0x51082e({'withText':!0x0,'label':_0x178837(_0x468f2e,_0x2d435d(0x114)),'commandName':_0x2d435d(0x132),'role':_0x2d435d(0x102)})},{'type':_0x2d435d(0xd4),'model':new _0x51082e({'withText':!0x0,'label':_0x178837(_0x468f2e,_0x2d435d(0xc6)),'commandName':_0x2d435d(0x10b),'role':_0x2d435d(0x102)})},{'type':_0x2d435d(0xd4),'model':new _0x51082e({'withText':!0x0,'label':_0x178837(_0x468f2e,_0x2d435d(0x136)),'commandName':_0x2d435d(0xfa),'role':_0x2d435d(0x102)})},{'type':_0x2d435d(0xd4),'model':new _0x51082e({'withText':!0x0,'label':_0x178837(_0x468f2e,_0x2d435d(0x14c)),'commandName':_0x2d435d(0x119),'role':_0x2d435d(0x102)})}]);for(const _0x4e744f of _0x9244ab)if(ae(_0x4e744f)){const _0x27eb8e=_0x334a1e[_0x2d435d(0xf8)][_0x2d435d(0xef)](_0x4e744f[_0x2d435d(0xd9)][_0x2d435d(0x14f)]);_0x4e744f[_0x2d435d(0xd9)][_0x2d435d(0x113)](_0x2d435d(0x146),_0x2d435d(0xfd))['to'](_0x27eb8e,_0x2d435d(0xeb),_0x2d435d(0xfd));}_0x334a1e['ui'][_0x2d435d(0x10e)][_0x2d435d(0x11a)](_0x2d435d(0xf9),_0x4fb7d1=>this[_0x2d435d(0x10f)](_0x4fb7d1,_0x9244ab,_0x557791)),_0x334a1e['ui'][_0x2d435d(0x10e)][_0x2d435d(0x11a)](_0x2d435d(0x12a),_0x43f0dd=>this[_0x2d435d(0x12d)](_0x43f0dd,_0x9244ab,_0x557791));}[_0x3b4bc0(0x10f)](_0x96c650,_0x1af4d5,_0x407045){const _0x3f3f4c=_0x3b4bc0,_0xaa1a2f=_0x255ef5(_0x96c650,_0x5b4bb7),_0x3a22b9=this[_0x3f3f4c(0xd0)][_0x3f3f4c(0xf8)][_0x3f3f4c(0xef)](_0x3f3f4c(0xf9));_0xaa1a2f[_0x3f3f4c(0x108)][_0x3f3f4c(0xe8)]({'tooltip':_0x407045,'label':_0x407045,'icon':_0x59e161}),_0xaa1a2f[_0x3f3f4c(0x108)][_0x3f3f4c(0x113)](_0x3f3f4c(0x146))['to'](_0x3a22b9,_0x3f3f4c(0xeb)),_0xaa1a2f[_0x3f3f4c(0x108)]['on'](_0x3f3f4c(0xc9),()=>{const _0x2ba7fb=_0x3f3f4c;_0x3a22b9[_0x2ba7fb(0xc9)](),this[_0x2ba7fb(0xd0)][_0x2ba7fb(0x13d)][_0x2ba7fb(0xf2)][_0x2ba7fb(0xde)]();}),_0x25e7bd(_0xaa1a2f,_0x1af4d5,{'role':_0x3f3f4c(0x144)});const _0x4ca226=[];for(const _0x2f767e of _0x1af4d5)ae(_0x2f767e)&&_0x4ca226[_0x3f3f4c(0x116)](this[_0x3f3f4c(0xd0)][_0x3f3f4c(0xf8)][_0x3f3f4c(0xef)](_0x2f767e[_0x3f3f4c(0xd9)][_0x3f3f4c(0x14f)]));const _0x12c4f5=_0xaa1a2f[_0x3f3f4c(0x108)];return _0x12c4f5[_0x3f3f4c(0x11b)][_0x3f3f4c(0x122)](_0x3f3f4c(0xfd)),_0x12c4f5[_0x3f3f4c(0xe7)][_0x3f3f4c(0x122)](_0x3f3f4c(0xfd)),_0x12c4f5[_0x3f3f4c(0x11b)][_0x3f3f4c(0x113)](_0x3f3f4c(0xfd))['to'](_0x3a22b9,_0x3f3f4c(0xfd)),_0x12c4f5[_0x3f3f4c(0xe7)][_0x3f3f4c(0x113)](_0x3f3f4c(0xfd))[_0x3f3f4c(0xf4)](_0x4ca226,_0x3f3f4c(0xfd),(..._0x289a5f)=>_0x289a5f[_0x3f3f4c(0x13b)](_0x2a3edc=>_0x2a3edc)),_0xaa1a2f['on'](_0x3f3f4c(0xc9),_0x527052=>{const _0x553446=_0x3f3f4c;this[_0x553446(0xd0)][_0x553446(0xc9)](_0x527052[_0x553446(0xe0)][_0x553446(0x14f)]),this[_0x553446(0xd0)][_0x553446(0x13d)][_0x553446(0xf2)][_0x553446(0xde)]();}),_0xaa1a2f;}[_0x3b4bc0(0x12d)](_0x3f9700,_0x2a0faa,_0x1e5ac1){const _0x4b3bc7=_0x3b4bc0,_0x4226a6=new _0x525813(_0x3f9700),_0x2d8166=this[_0x4b3bc7(0xd0)][_0x4b3bc7(0xf8)][_0x4b3bc7(0xef)](_0x4b3bc7(0xf9));_0x4226a6[_0x4b3bc7(0x108)][_0x4b3bc7(0xe8)]({'label':_0x1e5ac1,'icon':_0x59e161});const _0x1c46c6=new _0x1e383e(_0x3f9700);for(const _0x36a17f of _0x2a0faa){if(_0x4b3bc7(0xc5)==_0x36a17f[_0x4b3bc7(0x129)]){_0x1c46c6[_0x4b3bc7(0x124)][_0x4b3bc7(0x11a)](new _0x1e9c88(_0x3f9700));continue;}const _0x4daa32=new _0x473664(_0x3f9700,_0x4226a6),_0x1e9fe1=new _0x223086(_0x3f9700),_0x1cd90c=_0x36a17f[_0x4b3bc7(0xd9)];_0x1e9fe1[_0x4b3bc7(0x113)](...Object[_0x4b3bc7(0xcb)](_0x1cd90c))['to'](_0x1cd90c),_0x1e9fe1[_0x4b3bc7(0x115)](_0x4b3bc7(0xc9))['to'](_0x4226a6),_0x1e9fe1['on'](_0x4b3bc7(0xc9),()=>{const _0x47259c=_0x4b3bc7;this[_0x47259c(0xd0)][_0x47259c(0xc9)](_0x1cd90c[_0x47259c(0x14f)]),this[_0x47259c(0xd0)][_0x47259c(0x13d)][_0x47259c(0xf2)][_0x47259c(0xde)]();}),_0x4daa32[_0x4b3bc7(0xfb)][_0x4b3bc7(0x11a)](_0x1e9fe1),_0x1c46c6[_0x4b3bc7(0x124)][_0x4b3bc7(0x11a)](_0x4daa32);}return _0x4226a6[_0x4b3bc7(0x113)](_0x4b3bc7(0xfd))['to'](_0x2d8166,_0x4b3bc7(0xfd)),_0x4226a6[_0x4b3bc7(0x141)][_0x4b3bc7(0xfb)][_0x4b3bc7(0x11a)](_0x1c46c6),_0x4226a6;}[_0x3b4bc0(0x145)](_0x42d9a4){const _0x372b22=_0x3b4bc0,_0x49e77e=this[_0x372b22(0xd0)],_0x28d727=_0x49e77e[_0x372b22(0x10a)],_0x595266=_0x49e77e[_0x372b22(0xe1)][_0x372b22(0xef)](_0x372b22(0xcd)),_0x41571a=_0x49e77e[_0x372b22(0xe1)][_0x372b22(0xef)](_0x372b22(0x149)),_0x436ef3=_0x49e77e[_0x372b22(0xe1)][_0x372b22(0xef)](_0x372b22(0x14b)),_0x5c12ed=_0x49e77e[_0x372b22(0xe1)][_0x372b22(0xef)](_0x5ad010)['me'],_0xb63128=_0x28d727[_0x372b22(0xef)](_0x372b22(0xf9))[_0x372b22(0xd1)],{CommentsListView:_0x33ea18,CommentThreadInputView:_0x4b36de}=_0x49e77e[_0x372b22(0xe1)][_0x372b22(0xef)](_0x372b22(0xd2));let _0x543ec9,_0x3a317a;this[_0x372b22(0x111)][_0x372b22(0x112)](_0x42d9a4['id'])?(_0x3a317a=this[_0x372b22(0x111)][_0x372b22(0xef)](_0x42d9a4['id']),_0x543ec9=_0x3a317a[_0x372b22(0x127)]):(_0x543ec9=new _0xb63128(_0x49e77e[_0x372b22(0x130)],_0x42d9a4,_0x5c12ed,{'disableComments':this[_0x372b22(0x12f)],'editorConfig':_0x28d727[_0x372b22(0xef)](_0x372b22(0xc1)),'maxCommentsWhenCollapsed':_0x28d727[_0x372b22(0xef)](_0x372b22(0x121)),'maxThreadTotalWeight':_0x28d727[_0x372b22(0xef)](_0x372b22(0x118)),'maxCommentCharsWhenCollapsed':_0x28d727[_0x372b22(0xef)](_0x372b22(0xc8)),'formatDateTime':_0x1e489f(_0x28d727[_0x372b22(0xef)](_0x372b22(0x130))),'CommentView':_0x28d727[_0x372b22(0xef)](_0x372b22(0x12c))[_0x372b22(0x150)],'CommentsListView':_0x33ea18,'CommentThreadInputView':_0x4b36de}),_0x543ec9[_0x372b22(0xff)]['on'](_0x372b22(0xc9),()=>{const _0x24a27c=_0x372b22;_0x49e77e[_0x24a27c(0x13d)][_0x24a27c(0xf2)][_0x24a27c(0xde)]();}),_0x543ec9[_0x372b22(0x151)]['on'](_0x372b22(0xc9),()=>{const _0x4c71dc=_0x372b22;_0x49e77e[_0x4c71dc(0x13d)][_0x4c71dc(0xf2)][_0x4c71dc(0xde)]();}),_0x3a317a=_0x595266[_0x372b22(0xe2)](this[_0x372b22(0xd0)][_0x372b22(0x130)],_0x543ec9),_0x3a317a[_0x372b22(0x113)](_0x372b22(0x135))['to'](_0x543ec9,_0x372b22(0x135)),_0x3a317a[_0x372b22(0x113)](_0x372b22(0x143))['to'](_0x543ec9),_0x3a317a[_0x372b22(0x113)](_0x372b22(0x129))['to'](_0x543ec9,_0x372b22(0x129),_0x58b645=>_0x372b22(0xd5)+_0x58b645),this[_0x372b22(0x111)][_0x372b22(0xe8)](_0x42d9a4['id'],_0x3a317a));const _0x4611e4=_0x41571a[_0x372b22(0x13c)](_0x42d9a4[_0x372b22(0x11e)],_0x543ec9),_0x412b52=new _0x4533df(_0x49e77e,_0x42d9a4,_0x543ec9,_0x4611e4),_0xc89b7c=_0x42d9a4[_0x372b22(0x117)]()[_0x372b22(0x105)](_0x2d3419=>_0x2d3419[_0x372b22(0x126)]);_0x543ec9[_0x372b22(0xed)]=_0x49e77e[_0x372b22(0xe1)][_0x372b22(0xef)](_0x372b22(0x11d))[_0x372b22(0xf3)][_0x372b22(0x123)](_0xc89b7c),this[_0x372b22(0x13e)][_0x372b22(0xe8)](_0x42d9a4,_0x412b52),this[_0x372b22(0x147)][_0x372b22(0xe8)](_0x543ec9,_0x412b52);const _0x1eec7b=_0x595266[_0x372b22(0x104)]({'view':_0x3a317a,'target':()=>{const _0x1a65a1=_0x372b22,_0x45cca8=[],_0x6c2a2f=_0x42d9a4[_0x1a65a1(0x117)]()[_0x1a65a1(0x105)](_0x5d95d8=>_0x5d95d8[_0x1a65a1(0x126)]);for(const _0x138e3e of _0x6c2a2f)_0x45cca8[_0x1a65a1(0x116)](..._0x138e3e[_0x1a65a1(0x140)]());return _0x275aae(_0x49e77e[_0x1a65a1(0x13d)],_0x45cca8);},'type':()=>_0x372b22(0xd5)+_0x412b52[_0x372b22(0xf2)][_0x372b22(0x129)]});_0x41571a[_0x372b22(0xea)](_0x543ec9,_0x1eec7b),_0x595266[_0x372b22(0x11a)](_0x1eec7b),_0x436ef3[_0x372b22(0x109)](_0x1eec7b);}[_0x3b4bc0(0xcc)](_0x37e75f){const _0x3df4f2=_0x3b4bc0,_0x20ab6c=this[_0x3df4f2(0xd0)][_0x3df4f2(0xe1)][_0x3df4f2(0xef)](_0x3df4f2(0x149)),_0x2f8ef6=this[_0x3df4f2(0xd0)][_0x3df4f2(0xe1)][_0x3df4f2(0xef)](_0x3df4f2(0xcd)),_0x1ce734=this[_0x3df4f2(0x13e)][_0x3df4f2(0xef)](_0x37e75f),_0x3727c2=_0x1ce734[_0x3df4f2(0xf2)],_0x401fde=_0x2f8ef6[_0x3df4f2(0xdb)](_0x3727c2);_0x20ab6c[_0x3df4f2(0x110)](_0x3727c2),_0x401fde&&_0x2f8ef6[_0x3df4f2(0xe9)](_0x401fde),this[_0x3df4f2(0x13e)][_0x3df4f2(0xee)](_0x37e75f),this[_0x3df4f2(0x147)][_0x3df4f2(0xee)](_0x3727c2),_0x1ce734[_0x3df4f2(0x13a)]();}[_0x3b4bc0(0xfe)](_0x3f4638){const _0x3611ae=_0x3b4bc0;if(!_0x3f4638[_0x3611ae(0x126)]||!this[_0x3611ae(0x13e)][_0x3611ae(0x112)](_0x3f4638))return;const _0x2184ba=this[_0x3611ae(0xd0)][_0x3611ae(0xe1)][_0x3611ae(0xef)](_0x3611ae(0x11d)),_0x2aeb07=this[_0x3611ae(0x13e)][_0x3611ae(0xef)](_0x3f4638),_0x15af50=_0x3f4638[_0x3611ae(0x117)]();_0x2aeb07[_0x3611ae(0xf2)][_0x3611ae(0xed)]=_0x2184ba[_0x3611ae(0xf3)][_0x3611ae(0x123)](_0x15af50);}[_0x3b4bc0(0x13a)](){const _0x1d543d=_0x3b4bc0;for(const _0xd75e95 of this[_0x1d543d(0x13e)][_0x1d543d(0xcb)]())this[_0x1d543d(0xcc)](_0xd75e95);for(const _0x33c907 of this[_0x1d543d(0x111)][_0x1d543d(0xce)]())_0x33c907[_0x1d543d(0x127)][_0x1d543d(0x13a)]();super[_0x1d543d(0x13a)]();}}function ae(_0x3c36c0){const _0x225026=_0x3b4bc0;return _0x225026(0xd9)in _0x3c36c0;}
|
|
@@ -16,7 +16,7 @@ declare const SuggestionController_base: {
|
|
|
16
16
|
* It takes a suggestion thread view, listens to events fired by that view and based on them performs actions
|
|
17
17
|
* on the provided suggestion model.
|
|
18
18
|
*/
|
|
19
|
-
export default class SuggestionController extends SuggestionController_base {
|
|
19
|
+
export default class SuggestionController extends /* #__PURE__ -- @preserve */ SuggestionController_base {
|
|
20
20
|
model: Suggestion;
|
|
21
21
|
view: BaseSuggestionThreadView;
|
|
22
22
|
commentThreadController: CommentThreadController;
|
|
@@ -20,4 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3372(){const _0x1b41b6=['stopListening','getRanges','_discardCommand','bind','model','_removePendingAction','canAccept','PENDING_ACTION_SUGGESTION','1379cUyOeG','discardSuggestion','commands','3569193RLBjAq','isEnabled','_editor','listenTo','15dLAnun','change:isDirty','2533614kuBzvh','_acceptCommand','1685248fUuhDN','acceptSuggestion','execute','view','_setPendingAction','canDiscard','get','commentThreadController','locale','28859110vIdSeU','add','_pendingAction','108fAqwaZ','unbind','1074339ApPaqk','PendingActions','canEditAt','destroy','57128gusioO','plugins','remove','isDirty','10221ZBtKRt'];_0x3372=function(){return _0x1b41b6;};return _0x3372();}const _0x1bf048=_0x2f81;(function(_0x1c135b,_0x51d5ce){const _0x2e52f9=_0x2f81,_0x43df07=_0x1c135b();while(!![]){try{const _0x251a2a=parseInt(_0x2e52f9(0x18d))/0x1*(parseInt(_0x2e52f9(0x183))/0x2)+-parseInt(_0x2e52f9(0x185))/0x3+parseInt(_0x2e52f9(0x177))/0x4+-parseInt(_0x2e52f9(0x173))/0x5*(-parseInt(_0x2e52f9(0x175))/0x6)+parseInt(_0x2e52f9(0x16c))/0x7*(parseInt(_0x2e52f9(0x189))/0x8)+parseInt(_0x2e52f9(0x16f))/0x9+-parseInt(_0x2e52f9(0x180))/0xa;if(_0x251a2a===_0x51d5ce)break;else _0x43df07['push'](_0x43df07['shift']());}catch(_0x5cdf7e){_0x43df07['push'](_0x43df07['shift']());}}}(_0x3372,0xc3297));import{ObservableMixin as _0x264a0f}from'ckeditor5/src/utils.js';import{getTranslation as _0x481898}from'../utils/common-translations.js';function _0x2f81(_0x34620c,_0x44d23e){const _0x337276=_0x3372();return _0x2f81=function(_0x2f81cd,_0x5d8aca){_0x2f81cd=_0x2f81cd-0x167;let _0xd737ba=_0x337276[_0x2f81cd];return _0xd737ba;},_0x2f81(_0x34620c,_0x44d23e);}export default class oe extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x264a0f(){constructor(_0x14bb5f,_0x56e004,_0x2f3b47,_0x6b0355){const _0x1ec61e=_0x2f81;super(),this[_0x1ec61e(0x168)]=_0x56e004,this[_0x1ec61e(0x17a)]=_0x2f3b47,this[_0x1ec61e(0x17e)]=_0x6b0355,this[_0x1ec61e(0x171)]=_0x14bb5f,this[_0x1ec61e(0x176)]=_0x14bb5f[_0x1ec61e(0x16e)][_0x1ec61e(0x17d)](_0x1ec61e(0x178)),this[_0x1ec61e(0x190)]=_0x14bb5f[_0x1ec61e(0x16e)][_0x1ec61e(0x17d)](_0x1ec61e(0x16d)),this[_0x1ec61e(0x17a)][_0x1ec61e(0x167)](_0x1ec61e(0x170))['to'](this[_0x1ec61e(0x176)],this[_0x1ec61e(0x190)],(_0x124403,_0x11389b)=>_0x124403||_0x11389b),this[_0x1ec61e(0x17a)][_0x1ec61e(0x167)](_0x1ec61e(0x16a))['to'](this[_0x1ec61e(0x176)],_0x1ec61e(0x170),_0x25a9db=>_0x25a9db&&this[_0x1ec61e(0x171)][_0x1ec61e(0x168)][_0x1ec61e(0x187)](_0x56e004[_0x1ec61e(0x18f)]())),this[_0x1ec61e(0x17a)][_0x1ec61e(0x167)](_0x1ec61e(0x17c))['to'](this[_0x1ec61e(0x190)],_0x1ec61e(0x170),_0x1a4909=>_0x1a4909&&this[_0x1ec61e(0x171)][_0x1ec61e(0x168)][_0x1ec61e(0x187)](_0x56e004[_0x1ec61e(0x18f)]())),this[_0x1ec61e(0x182)]=null,_0x2f3b47[_0x1ec61e(0x18c)]&&this[_0x1ec61e(0x17b)](),this[_0x1ec61e(0x172)](_0x2f3b47,_0x1ec61e(0x178),()=>this[_0x1ec61e(0x178)]()),this[_0x1ec61e(0x172)](_0x2f3b47,_0x1ec61e(0x16d),()=>this[_0x1ec61e(0x16d)]()),this[_0x1ec61e(0x172)](_0x2f3b47,_0x1ec61e(0x174),()=>{const _0x51d6ba=_0x1ec61e;_0x2f3b47[_0x51d6ba(0x18c)]?this[_0x51d6ba(0x17b)]():this[_0x51d6ba(0x169)]();});}[_0x1bf048(0x178)](){const _0x3048c4=_0x1bf048;this[_0x3048c4(0x176)][_0x3048c4(0x179)](this[_0x3048c4(0x168)]['id']);}[_0x1bf048(0x16d)](){const _0x32d723=_0x1bf048;this[_0x32d723(0x190)][_0x32d723(0x179)](this[_0x32d723(0x168)]['id']);}[_0x1bf048(0x188)](){const _0x26eb8a=_0x1bf048;this[_0x26eb8a(0x17a)][_0x26eb8a(0x184)](_0x26eb8a(0x170)),this[_0x26eb8a(0x17a)][_0x26eb8a(0x184)](_0x26eb8a(0x16a)),this[_0x26eb8a(0x17a)][_0x26eb8a(0x184)](_0x26eb8a(0x17c)),this[_0x26eb8a(0x18e)](),this[_0x26eb8a(0x17e)][_0x26eb8a(0x188)](),this[_0x26eb8a(0x182)]&&this[_0x26eb8a(0x169)]();}[_0x1bf048(0x17b)](){const _0x45ae92=_0x1bf048,_0x17b505=_0x481898(this[_0x45ae92(0x171)][_0x45ae92(0x17f)],_0x45ae92(0x16b));this[_0x45ae92(0x182)]=this[_0x45ae92(0x171)][_0x45ae92(0x18a)][_0x45ae92(0x17d)](_0x45ae92(0x186))[_0x45ae92(0x181)](_0x17b505);}[_0x1bf048(0x169)](){const _0x4d9bc6=_0x1bf048;null!==this[_0x4d9bc6(0x182)]&&this[_0x4d9bc6(0x171)][_0x4d9bc6(0x18a)][_0x4d9bc6(0x17d)](_0x4d9bc6(0x186))[_0x4d9bc6(0x18b)](this[_0x4d9bc6(0x182)]),this[_0x4d9bc6(0x182)]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x17eb(_0x330850,_0x45ef29){const _0x30bac8=_0x30ba();return _0x17eb=function(_0x17eb2b,_0x151713){_0x17eb2b=_0x17eb2b-0x194;let _0x503251=_0x30bac8[_0x17eb2b];return _0x503251;},_0x17eb(_0x330850,_0x45ef29);}const _0x18e5f8=_0x17eb;function _0x30ba(){const _0x1acc8d=['52oDKseT','setData','5185980KNWhOS','disabledSubmit','editor','commentsListView','hasDirtyComment','2588121lqJPBf','_localUser','updateComment','1613579pFJYYH','_createCommentViews','_createCommentThreadInputView','110648hPxiUe','showInput','20IJmCgw','1191464VgoFkn','commentInputView','editorConfig','removeComment','authoredAt','commentThreadInputView','addComment','destroy','7iDRCLi','length','locale','value','36zPcWvf','isEnabled','commentThread','descriptionParts','386345fmpYBh','focus','submit','6179htPlzX','bind','fire','disableComments','delegate','cancel','canAccept','isActive','_config','element','isReadOnly','39HiyXqC','isDirty','set','_model','assign','CommentView','canDiscard'];_0x30ba=function(){return _0x1acc8d;};return _0x30ba();}(function(_0x3c43c1,_0x2877e7){const _0x3bb24c=_0x17eb,_0x54b541=_0x3c43c1();while(!![]){try{const _0xfd45d8=-parseInt(_0x3bb24c(0x198))/0x1*(-parseInt(_0x3bb24c(0x1aa))/0x2)+parseInt(_0x3bb24c(0x1a3))/0x3*(parseInt(_0x3bb24c(0x1b7))/0x4)+-parseInt(_0x3bb24c(0x195))/0x5+parseInt(_0x3bb24c(0x1ac))/0x6+parseInt(_0x3bb24c(0x1c2))/0x7*(parseInt(_0x3bb24c(0x1ba))/0x8)+parseInt(_0x3bb24c(0x1b1))/0x9*(-parseInt(_0x3bb24c(0x1b9))/0xa)+parseInt(_0x3bb24c(0x1b4))/0xb*(-parseInt(_0x3bb24c(0x1c6))/0xc);if(_0xfd45d8===_0x2877e7)break;else _0x54b541['push'](_0x54b541['shift']());}catch(_0x5a17c6){_0x54b541['push'](_0x54b541['shift']());}}}(_0x30ba,0x6bad9));import{View as _0x2d8b50}from'ckeditor5/src/ui.js';export default class es extends _0x2d8b50{constructor(_0x192b96,_0x4d2073,_0x1bd8da,_0x411954){const _0x7f74e1=_0x17eb;super(_0x192b96),this[_0x7f74e1(0x1af)]=null,this[_0x7f74e1(0x1bf)]=null,this[_0x7f74e1(0x1a5)](_0x7f74e1(0x19f),!0x1),this[_0x7f74e1(0x1a5)](_0x7f74e1(0x1be),_0x4d2073[_0x7f74e1(0x1be)]),this[_0x7f74e1(0x199)](_0x7f74e1(0x1be))['to'](_0x4d2073),this[_0x7f74e1(0x1a5)](_0x7f74e1(0x194),[]),this[_0x7f74e1(0x1a5)](_0x7f74e1(0x1a4),!0x1),this[_0x7f74e1(0x1a5)](_0x7f74e1(0x1c7),!0x1),this[_0x7f74e1(0x1a5)](_0x7f74e1(0x19e),!0x1),this[_0x7f74e1(0x1a5)](_0x7f74e1(0x1a9),!0x1),this[_0x7f74e1(0x1a6)]=_0x4d2073,this[_0x7f74e1(0x1b2)]=_0x1bd8da,this[_0x7f74e1(0x1a0)]=_0x411954,_0x411954[_0x7f74e1(0x19b)]?this[_0x7f74e1(0x1a5)](_0x7f74e1(0x1c3),0x1):this[_0x7f74e1(0x1b5)]();}[_0x18e5f8(0x196)](){const _0x1c809b=_0x18e5f8;this[_0x1c809b(0x1a1)][_0x1c809b(0x196)]();}[_0x18e5f8(0x1c1)](){const _0x5d5ddd=_0x18e5f8;this[_0x5d5ddd(0x1af)]&&this[_0x5d5ddd(0x1af)][_0x5d5ddd(0x1c1)](),this[_0x5d5ddd(0x1bf)]&&this[_0x5d5ddd(0x1bf)][_0x5d5ddd(0x1c1)](),super[_0x5d5ddd(0x1c1)]();}[_0x18e5f8(0x1b5)](){const _0x26ef77=_0x18e5f8,{CommentsListView:_0x142ad4}=this[_0x26ef77(0x1a0)];this[_0x26ef77(0x1af)]=new _0x142ad4(this[_0x26ef77(0x1c4)],this[_0x26ef77(0x1a6)][_0x26ef77(0x1c8)],Object[_0x26ef77(0x1a7)]({'CommentView':this[_0x26ef77(0x1a0)][_0x26ef77(0x1a8)]},this[_0x26ef77(0x1a0)])),this[_0x26ef77(0x1af)][_0x26ef77(0x19c)](_0x26ef77(0x1bd))['to'](this),this[_0x26ef77(0x1af)][_0x26ef77(0x19c)](_0x26ef77(0x1b3))['to'](this),this[_0x26ef77(0x1af)][_0x26ef77(0x199)](_0x26ef77(0x19f))['to'](this),this[_0x26ef77(0x1a5)](_0x26ef77(0x1c3),this[_0x26ef77(0x1af)][_0x26ef77(0x1c3)]+0x1),this[_0x26ef77(0x199)](_0x26ef77(0x1c3))['to'](this[_0x26ef77(0x1af)],_0x26ef77(0x1c3),_0x1e03c6=>_0x1e03c6+0x1),this[_0x26ef77(0x1bf)]=this[_0x26ef77(0x1b6)](),this['on'](_0x26ef77(0x1bd),()=>this[_0x26ef77(0x196)]()),this[_0x26ef77(0x199)](_0x26ef77(0x1a4))['to'](this[_0x26ef77(0x1af)],_0x26ef77(0x1b0),this[_0x26ef77(0x1bf)][_0x26ef77(0x1bb)],_0x26ef77(0x1c5),(_0x54282b,_0x5db441)=>_0x54282b||!!_0x5db441);}[_0x18e5f8(0x1b6)](){const _0x313c37=_0x18e5f8,{CommentThreadInputView:_0x26fafe}=this[_0x313c37(0x1a0)],_0x5b1e13=new _0x26fafe(this[_0x313c37(0x1c4)],this[_0x313c37(0x1b2)],this[_0x313c37(0x1a0)][_0x313c37(0x1bc)]),_0x3a94e7=_0x5b1e13[_0x313c37(0x1bb)];return _0x5b1e13[_0x313c37(0x199)](_0x313c37(0x1b8))['to'](this,_0x313c37(0x19f),this[_0x313c37(0x1a6)][_0x313c37(0x1c8)],_0x313c37(0x1a2),_0x3a94e7,_0x313c37(0x1c5),(_0x5bcbf1,_0x414fa5,_0x4d16a1)=>!!_0x4d16a1||_0x5bcbf1&&!_0x414fa5),_0x3a94e7['on'](_0x313c37(0x197),(_0x4c10f6,_0x542550)=>{const _0x4be840=_0x313c37;this[_0x4be840(0x19a)](_0x4be840(0x1c0),_0x542550),_0x3a94e7[_0x4be840(0x1ae)][_0x4be840(0x1ab)]('');}),_0x3a94e7['on'](_0x313c37(0x19d),()=>this[_0x313c37(0x196)]()),_0x3a94e7[_0x313c37(0x199)](_0x313c37(0x1ad))['to'](this[_0x313c37(0x1a6)][_0x313c37(0x1c8)],_0x313c37(0x1a2)),_0x5b1e13;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3ff4bf=_0x223e;(function(_0x10d813,_0x43dca5){const _0x43a7b9=_0x223e,_0x4537b0=_0x10d813();while(!![]){try{const _0x109561=parseInt(_0x43a7b9(0x189))/0x1*(parseInt(_0x43a7b9(0x1af))/0x2)+parseInt(_0x43a7b9(0x19b))/0x3*(parseInt(_0x43a7b9(0x158))/0x4)+-parseInt(_0x43a7b9(0x1ba))/0x5+-parseInt(_0x43a7b9(0x1a3))/0x6*(parseInt(_0x43a7b9(0x1bd))/0x7)+parseInt(_0x43a7b9(0x184))/0x8*(parseInt(_0x43a7b9(0x18c))/0x9)+parseInt(_0x43a7b9(0x1a9))/0xa+-parseInt(_0x43a7b9(0x165))/0xb*(parseInt(_0x43a7b9(0x16a))/0xc);if(_0x109561===_0x43dca5)break;else _0x4537b0['push'](_0x4537b0['shift']());}catch(_0x2ab465){_0x4537b0['push'](_0x4537b0['shift']());}}}(_0x2762,0xea1e9));import{getTranslation as _0x564b5e}from'../../utils/common-translations.js';import{default as _0xd90f2c}from'./basesuggestionthreadview.js';function _0x223e(_0x3fe1c3,_0x329fb8){const _0x276229=_0x2762();return _0x223e=function(_0x223e61,_0xa39285){_0x223e61=_0x223e61-0x14f;let _0x184f5f=_0x276229[_0x223e61];return _0x184f5f;},_0x223e(_0x3fe1c3,_0x329fb8);}import{ButtonView as _0x107e99}from'ckeditor5/src/ui.js';import{icons as _0x198985}from'ckeditor5/src/core.js';function _0x2762(){const _0x1e3601=['EXTERNAL_AVATAR','getTemplate','Accept\x20suggestion','description','map','color','canDiscard','isActive','ck-suggestion__info','render','ck-annotation__user','ck-comment__info-time','36XypmUR','ck-suggestion--disabled-comments','importWord','setTemplate','acceptSuggestion','_descriptionElement','ck-suggestion--accept','ck-annotation__content-wrapper','650388aXOYEm','ck-suggestion-','<span\x20class=\x22ck-suggestion-type\x22>','</span>','extendTemplate','execute','3112460efcptA','descriptionParts','\x22></span>','_config','_createButton','attributes','1292hnowqr','creator','ck-suggestion','ck-annotation__info','bindTemplate','</p>','div','ck-annotation__main','delegate','ck-annotation','canAccept','3945640VXpkUx','commentThread','acceptButton','28GHrJMo','discardSuggestion','EXTERNAL_SUGGESTION','ck-suggestion-wrapper','@external','commentThreadInputView','disableComments','<p>','span','type','userView','commentsListView','476972LTxPNt','fire','querySelector','push','ck-suggestion--discard','ck-suggestion__user','join','authoredAt','EXTERNAL_IMPORT_WORD_SUGGESTION','author','check','source','cancel','203192mHQaBW','children','locale','_model','ck-suggestion__info-name','1464ayKxXZ','title','ck-suggestion-wrapper--active','ck-suggestion__main','content','createElement','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','discardButton','formatDateTime','getUserViewNotificationText','EXTERNAL_IMPORT_WORD_AVATAR','isEnabled','isExternal','time','set','.ck-annotation__content-wrapper','ck-annotation__actions','editorDestroyed','ck-annotation__info-name','change:description','getExternalSuggestionNote','element','innerHTML','name','ck-annotation__info-time','ck-comment__external','1421848buAsIK','ck-suggestion__actions','split','innerText','Discard\x20suggestion','2243yljgZi','editorReady','value','63QBGxIt','\x22\x20title=\x22','bind'];_0x2762=function(){return _0x1e3601;};return _0x2762();}import{trimHtml as _0x278355,UserView as _0x17fb13}from'ckeditor5-collaboration/src/collaboration-core.js';export default class ne extends _0xd90f2c{constructor(_0x4f138b,_0x2500cc,_0x4ef6ee,_0x2b4ed6){const _0x552b47=_0x223e;super(_0x4f138b,_0x2500cc,_0x4ef6ee,_0x2b4ed6),this[_0x552b47(0x178)](_0x552b47(0x155),''),this[_0x552b47(0x18e)](_0x552b47(0x155))['to'](this,_0x552b47(0x1aa),_0x153100=>_0x153100&&_0x153100[0x0]?_0x153100[0x0][_0x552b47(0x155)]:''),this[_0x552b47(0x18e)](_0x552b47(0x192))['to'](this,_0x552b47(0x1aa),this,_0x552b47(0x196),(_0x42be89,_0x4a1f15)=>{const _0x4a1b99=_0x552b47;let _0x4ff514='';for(const _0x1d3ff0 of _0x42be89)_0x4ff514+=_0x4a1b99(0x153)+ds(_0x1d3ff0[_0x4a1b99(0x16e)],_0x1d3ff0[_0x4a1b99(0x194)])+_0x4a1b99(0x1b4);return _0x4a1f15?_0x4ff514:_0x278355(_0x4ff514,{'limit':0x8c});}),this[_0x552b47(0x1a0)]=null,this[_0x552b47(0x1bc)]=this[_0x552b47(0x1ad)](_0x564b5e(_0x4f138b,_0x552b47(0x191)),_0x198985[_0x552b47(0x162)],_0x552b47(0x1a1),_0x552b47(0x19f),'sw'),this[_0x552b47(0x1bc)][_0x552b47(0x18e)](_0x552b47(0x175))['to'](this,_0x552b47(0x1b9)),this[_0x552b47(0x171)]=this[_0x552b47(0x1ad)](_0x564b5e(_0x4f138b,_0x552b47(0x188)),_0x198985[_0x552b47(0x164)],_0x552b47(0x15c),_0x552b47(0x1be),'sw'),this[_0x552b47(0x171)][_0x552b47(0x18e)](_0x552b47(0x175))['to'](this,_0x552b47(0x195)),this[_0x552b47(0x156)]=new _0x17fb13(_0x4f138b,this[_0x552b47(0x168)][_0x552b47(0x161)],this[_0x552b47(0x173)]()),this[_0x552b47(0x156)][_0x552b47(0x1a7)]({'attributes':{'class':[_0x552b47(0x15d),_0x552b47(0x199)]}}),this[_0x552b47(0x19e)](this[_0x552b47(0x190)]());}[_0x3ff4bf(0x190)](){const _0x4f810f=_0x3ff4bf,_0x176933=this[_0x4f810f(0x1b3)],_0x2fc277=[{'tag':_0x4f810f(0x1b5),'attributes':{'class':[_0x4f810f(0x197),_0x4f810f(0x1b2)]},'children':[{'tag':_0x4f810f(0x154),'children':[{'text':this[_0x4f810f(0x156)][_0x4f810f(0x181)]}],'attributes':{'class':[_0x4f810f(0x169),_0x4f810f(0x17c)]}},{'tag':_0x4f810f(0x177),'attributes':{'datetime':_0x176933['to'](_0x4f810f(0x15f)),'class':[_0x4f810f(0x19a),_0x4f810f(0x182)]},'children':[{'text':_0x176933['to'](_0x4f810f(0x15f),_0x1cb9cc=>this[_0x4f810f(0x1ac)][_0x4f810f(0x172)](_0x1cb9cc))}]}]},{'tag':_0x4f810f(0x1b5),'attributes':{'class':[_0x4f810f(0x185),_0x4f810f(0x17a)]},'children':[this[_0x4f810f(0x1bc)],this[_0x4f810f(0x171)]]},{'tag':_0x4f810f(0x1b5),'attributes':{'class':[_0x4f810f(0x1a2)]}}];this[_0x4f810f(0x168)][_0x4f810f(0x176)]&&_0x2fc277[_0x4f810f(0x15b)]({'tag':_0x4f810f(0x1b5),'attributes':{'class':[_0x4f810f(0x183)]},'children':[{'text':this[_0x4f810f(0x17e)]()}]});const _0x2d44f8={'tag':_0x4f810f(0x1b5),'attributes':{'class':[_0x4f810f(0x14f),_0x176933['if'](_0x4f810f(0x196),_0x4f810f(0x16c)),_0x176933['to'](_0x4f810f(0x155),_0x2aec58=>_0x4f810f(0x1a4)+_0x2aec58),this[_0x4f810f(0x1ac)][_0x4f810f(0x152)]&&_0x4f810f(0x19c)],'data-suggestion-id':this[_0x4f810f(0x168)]['id'],'data-thread-id':this[_0x4f810f(0x168)][_0x4f810f(0x1bb)]['id'],'data-author-id':this[_0x4f810f(0x168)][_0x4f810f(0x161)]['id'],'tabindex':-0x1},'children':[{'tag':_0x4f810f(0x1b5),'attributes':{'class':[_0x4f810f(0x1b1),_0x4f810f(0x1b8)]},'children':[this[_0x4f810f(0x156)],{'tag':_0x4f810f(0x1b5),'attributes':{'class':[_0x4f810f(0x16d),_0x4f810f(0x1b6)]},'children':_0x2fc277}]}]};return this[_0x4f810f(0x157)]&&this[_0x4f810f(0x151)]&&(_0x2d44f8[_0x4f810f(0x166)][_0x4f810f(0x15b)](this[_0x4f810f(0x157)],this[_0x4f810f(0x151)]),this[_0x4f810f(0x157)][_0x4f810f(0x1b7)](_0x4f810f(0x18a))['to'](this),this[_0x4f810f(0x157)][_0x4f810f(0x1b7)](_0x4f810f(0x17b))['to'](this),this[_0x4f810f(0x151)][_0x4f810f(0x1b7)](_0x4f810f(0x18a))['to'](this),this[_0x4f810f(0x151)][_0x4f810f(0x1b7)](_0x4f810f(0x17b))['to'](this)),_0x2d44f8;}[_0x3ff4bf(0x198)](){const _0xa59f3e=_0x3ff4bf;super[_0xa59f3e(0x198)](),this[_0xa59f3e(0x1a0)]=this[_0xa59f3e(0x17f)][_0xa59f3e(0x15a)](_0xa59f3e(0x179)),this[_0xa59f3e(0x1a0)][_0xa59f3e(0x180)]=this[_0xa59f3e(0x192)],this['on'](_0xa59f3e(0x17d),(_0x233363,_0xef07bf,_0x4ee68a)=>{const _0x5c81c7=_0xa59f3e;this[_0x5c81c7(0x1a0)][_0x5c81c7(0x180)]=_0x4ee68a;});}[_0x3ff4bf(0x1ad)](_0x489e29,_0x267011,_0x10f8bf,_0x261dd5,_0x595eef){const _0x4b45ec=_0x3ff4bf,_0x5e2b5c=new _0x107e99(this[_0x4b45ec(0x167)]);return _0x5e2b5c[_0x4b45ec(0x178)]({'label':_0x489e29,'icon':_0x267011,'tooltip':!0x0,'tooltipPosition':_0x595eef}),_0x5e2b5c[_0x4b45ec(0x1a7)]({'attributes':{'class':_0x10f8bf}}),_0x5e2b5c['on'](_0x4b45ec(0x1a8),()=>{const _0x4c8613=_0x4b45ec;this[_0x4c8613(0x159)](_0x261dd5,this[_0x4c8613(0x168)]['id']);}),_0x5e2b5c;}[_0x3ff4bf(0x17e)](){const _0x1c41cd=_0x3ff4bf;return _0x1c41cd(0x19d)===this[_0x1c41cd(0x168)][_0x1c41cd(0x1ae)][_0x1c41cd(0x150)][_0x1c41cd(0x163)]?_0x564b5e(this[_0x1c41cd(0x167)],_0x1c41cd(0x160)):_0x564b5e(this[_0x1c41cd(0x167)],_0x1c41cd(0x1bf));}[_0x3ff4bf(0x173)](){const _0x1d7807=_0x3ff4bf;return this[_0x1d7807(0x168)][_0x1d7807(0x176)]?_0x1d7807(0x19d)===this[_0x1d7807(0x168)][_0x1d7807(0x1ae)][_0x1d7807(0x150)][_0x1d7807(0x163)]?_0x564b5e(this[_0x1d7807(0x167)],_0x1d7807(0x174),this[_0x1d7807(0x168)][_0x1d7807(0x1b0)][_0x1d7807(0x181)]):_0x564b5e(this[_0x1d7807(0x167)],_0x1d7807(0x18f),this[_0x1d7807(0x168)][_0x1d7807(0x1b0)][_0x1d7807(0x181)]):null;}}function ds(_0xe93b3b,_0x217ae6){const _0x47ac3e=_0x3ff4bf;let _0x4146a9='';return _0x4146a9+=_0xe93b3b[_0x47ac3e(0x186)]('*')[_0x47ac3e(0x193)]((_0x11ab14,_0x1e573b)=>_0x1e573b%0x2!=0x0?_0x47ac3e(0x1a5)+us(_0x11ab14)+_0x47ac3e(0x1a6):us(_0x11ab14))[_0x47ac3e(0x15e)](''),_0x217ae6&&(_0x4146a9+=_0x47ac3e(0x170)+_0x217ae6[_0x47ac3e(0x18b)]+_0x47ac3e(0x18d)+_0x217ae6[_0x47ac3e(0x16b)]+_0x47ac3e(0x1ab)),_0x4146a9;}function us(_0x361452){const _0x229bea=_0x3ff4bf,_0x91b9a=document[_0x229bea(0x16f)](_0x229bea(0x154));return _0x91b9a[_0x229bea(0x187)]=_0x361452,_0x91b9a[_0x229bea(0x180)];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x4b0254,_0x213c4b,_0x4f2cb2){const t=_0x4b0254['t'];switch(_0x213c4b){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',_0x4f2cb2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4f2cb2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4f2cb2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4f2cb2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4f2cb2);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',_0x4f2cb2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4f2cb2);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',_0x4f2cb2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4f2cb2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4f2cb2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4f2cb2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4f2cb2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4f2cb2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4f2cb2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4f2cb2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4f2cb2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4f2cb2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4f2cb2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4f2cb2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4f2cb2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4f2cb2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4f2cb2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4f2cb2);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'},_0x4f2cb2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4f2cb2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4f2cb2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4f2cb2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4f2cb2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4f2cb2);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'},_0x4f2cb2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4f2cb2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4f2cb2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4f2cb2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4f2cb2);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'},_0x4f2cb2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4f2cb2);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'},_0x4f2cb2);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'},_0x4f2cb2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4f2cb2);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'},_0x4f2cb2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4f2cb2);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'},_0x4f2cb2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4f2cb2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4f2cb2);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'},_0x4f2cb2);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'},_0x4f2cb2);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 _0x213c4b;}}
|
|
23
|
+
export function getTranslation(_0x1c135d,_0x14fa2d,_0x5afbe1){const t=_0x1c135d['t'];switch(_0x14fa2d){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',_0x5afbe1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5afbe1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5afbe1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5afbe1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5afbe1);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',_0x5afbe1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5afbe1);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',_0x5afbe1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5afbe1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5afbe1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5afbe1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5afbe1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5afbe1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5afbe1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5afbe1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5afbe1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5afbe1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5afbe1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5afbe1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5afbe1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5afbe1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5afbe1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5afbe1);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'},_0x5afbe1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5afbe1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5afbe1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5afbe1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5afbe1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5afbe1);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'},_0x5afbe1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5afbe1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5afbe1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5afbe1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5afbe1);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'},_0x5afbe1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5afbe1);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'},_0x5afbe1);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'},_0x5afbe1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5afbe1);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'},_0x5afbe1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5afbe1);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'},_0x5afbe1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5afbe1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5afbe1);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'},_0x5afbe1);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'},_0x5afbe1);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 _0x14fa2d;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5996(_0x211519,_0xe3b56b){const _0x555f49=_0x555f();return _0x5996=function(_0x59966c,_0x1be6be){_0x59966c=_0x59966c-0x132;let _0x6dd0f9=_0x555f49[_0x59966c];return _0x6dd0f9;},_0x5996(_0x211519,_0xe3b56b);}(function(_0x4120b3,_0x1850e5){const _0x51215d=_0x5996,_0x3dd878=_0x4120b3();while(!![]){try{const _0xc434d1=parseInt(_0x51215d(0x13d))/0x1+parseInt(_0x51215d(0x15a))/0x2+-parseInt(_0x51215d(0x14d))/0x3*(-parseInt(_0x51215d(0x143))/0x4)+-parseInt(_0x51215d(0x157))/0x5+-parseInt(_0x51215d(0x147))/0x6+parseInt(_0x51215d(0x144))/0x7+-parseInt(_0x51215d(0x137))/0x8;if(_0xc434d1===_0x1850e5)break;else _0x3dd878['push'](_0x3dd878['shift']());}catch(_0x5ef5e8){_0x3dd878['push'](_0x3dd878['shift']());}}}(_0x555f,0xe1361));export function normalizeDescription(_0x346f98){const _0x313ae6=_0x5996;return Array[_0x313ae6(0x138)](_0x346f98)||(_0x346f98=[_0x346f98]),_0x346f98[_0x313ae6(0x13e)](_0x59c15f=>{const _0x6219df=_0x313ae6,_0x38a824=_0x59c15f[_0x6219df(0x152)][_0x6219df(0x14c)](/\*/g,''),_0x274014=_0x59c15f[_0x6219df(0x150)]?_0x6219df(0x135)+_0x59c15f[_0x6219df(0x150)][_0x6219df(0x14e)]+']':'';return'['+_0x59c15f[_0x6219df(0x136)]+']\x20'+_0x38a824+_0x274014;})[_0x313ae6(0x148)](';\x20');}export function sortSuggestions(_0x33883a){const _0x19bbed=_0x5996;return _0x33883a[_0x19bbed(0x153)]((_0x4536dd,_0x2a095f)=>_0x19bbed(0x13f)==_0x4536dd[_0x19bbed(0x136)]&&_0x19bbed(0x13f)!=_0x2a095f[_0x19bbed(0x136)]?-0x1:_0x19bbed(0x13f)!=_0x4536dd[_0x19bbed(0x136)]&&_0x19bbed(0x13f)==_0x2a095f[_0x19bbed(0x136)]?0x1:0x0);}export function getSelectedSuggestions(_0x21f504,_0x3902b1){const _0x20cb10=_0x5996,_0x664203=Array[_0x20cb10(0x149)](_0x21f504[_0x20cb10(0x13c)]()),_0x4b6e5c=new Set();for(const _0x1ce08f of _0x3902b1)if(_0x1ce08f[_0x20cb10(0x146)]){for(const _0x1e7ca2 of _0x664203)for(const _0x49adf5 of _0x1ce08f[_0x20cb10(0x13c)]())(_0x1e7ca2[_0x20cb10(0x145)](_0x49adf5)||_0x21f504[_0x20cb10(0x141)]&&!_0x1ce08f[_0x20cb10(0x151)]&&_0x1ce08f[_0x20cb10(0x140)]&&_0x49adf5[_0x20cb10(0x142)][_0x20cb10(0x13b)](_0x1e7ca2[_0x20cb10(0x132)]))&&_0x4b6e5c[_0x20cb10(0x14b)](_0x1ce08f);}return _0x4b6e5c;}export function getRangesOfBlockGroups(_0x159982,_0x42b2cb){const _0xaa9e27=_0x5996;let _0x4f0d86,_0x945cd2=0x0;const _0x2dde2f=[],_0x2a7111=_0x42b2cb[_0xaa9e27(0x133)];for(;_0x945cd2<_0x159982[_0xaa9e27(0x158)];){const _0x53d4a6=_0x159982[_0x945cd2],_0x4fbd1c=_0x159982[_0x945cd2+0x1];_0x4f0d86||(_0x4f0d86=_0x42b2cb[_0xaa9e27(0x159)](_0x53d4a6)),co(_0x42b2cb,_0x53d4a6,_0x4fbd1c)||(_0x2dde2f[_0xaa9e27(0x155)](_0x42b2cb[_0xaa9e27(0x134)](_0x4f0d86,_0x2a7111[_0xaa9e27(0x14a)](_0x53d4a6)?_0x42b2cb[_0xaa9e27(0x13a)](_0x53d4a6):_0x42b2cb[_0xaa9e27(0x156)](_0x53d4a6,_0xaa9e27(0x142)))),_0x4f0d86=null),_0x945cd2++;}return _0x2dde2f;}function co(_0x2be99e,_0x1e2ea6,_0x517fbb){const _0x56dde9=_0x5996;if(!_0x517fbb)return!0x1;const _0x486ce3=_0x2be99e[_0x56dde9(0x13a)](_0x1e2ea6),_0x397822=_0x2be99e[_0x56dde9(0x159)](_0x517fbb);return _0x486ce3[_0x56dde9(0x13b)](_0x397822);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function _0x555f(){const _0x5d4229=['createPositionAt','5131415eQomhm','length','createPositionBefore','1632422GnkyqL','start','schema','createRange','\x20[color\x20','type','15192448lRtmLF','isArray','execute','createPositionAfter','isTouching','getRanges','932171FGIyLQ','map','deletion','next','isCollapsed','end','68YjTSrc','6827891gQVUbd','isIntersecting','isInContent','559452WvgLlU','join','from','isObject','add','replace','214809YyiSma','value','splice','color','isMultiRange','content','sort','change','push'];_0x555f=function(){return _0x5d4229;};return _0x555f();}export function executeCommandForSuggestions(_0x2e6832,_0x26d4ab,_0x5a38aa){const _0x1a00e6=_0x5996;for(;_0x5a38aa[_0x1a00e6(0x158)];){const _0x2e59da=_0x5a38aa[_0x1a00e6(0x14f)](0x0,0x64);_0x2e6832[_0x1a00e6(0x154)](()=>{const _0x12df77=_0x1a00e6;for(const _0x1a2c9b of _0x2e59da)_0x1a2c9b[_0x12df77(0x146)]&&_0x26d4ab[_0x12df77(0x139)](_0x1a2c9b['id']);});}}
|