@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240605.0 → 0.0.0-nightly-20240605.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 _0x34a1d1=_0x52de;(function(_0x1fa56b,_0x13a015){const _0x15b5d1=_0x52de,_0x5afd15=_0x1fa56b();while(!![]){try{const _0x20a9ee=-parseInt(_0x15b5d1(0x1b5))/0x1+-parseInt(_0x15b5d1(0x1d7))/0x2+parseInt(_0x15b5d1(0x202))/0x3*(-parseInt(_0x15b5d1(0x181))/0x4)+parseInt(_0x15b5d1(0x178))/0x5*(parseInt(_0x15b5d1(0x175))/0x6)+-parseInt(_0x15b5d1(0x174))/0x7+parseInt(_0x15b5d1(0x1f2))/0x8+parseInt(_0x15b5d1(0x1a5))/0x9;if(_0x20a9ee===_0x13a015)break;else _0x5afd15['push'](_0x5afd15['shift']());}catch(_0xd35fbf){_0x5afd15['push'](_0x5afd15['shift']());}}}(_0x5e9e,0xbf633));import{Plugin as _0x180210}from'ckeditor5/src/core.js';import{Collection as _0x58187d}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x363061,createDropdown as _0x2aba6b,ListSeparatorView as _0x47fcfd,MenuBarMenuView as _0x5d16c5,MenuBarMenuListView as _0x194bdc,MenuBarMenuListItemView as _0x5e9456,MenuBarMenuListItemButtonView as _0x2f8d0f,SplitButtonView as _0xf27f7,ViewModel as _0xf927da}from'ckeditor5/src/ui.js';import{Users as _0x328c2d,getDateTimeFormatter as _0x5cd02b,getAllMarkersDomElementsSorted as _0xfd5846}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4d83a2 from'./trackchangesediting.js';function _0x52de(_0x426db2,_0x4e9290){const _0x5e9e36=_0x5e9e();return _0x52de=function(_0x52de65,_0x14c9c2){_0x52de65=_0x52de65-0x173;let _0x44d532=_0x5e9e36[_0x52de65];return _0x44d532;},_0x52de(_0x426db2,_0x4e9290);}import _0x4ae0b0 from'./ui/suggestioncontroller.js';import _0x25bc31 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x40bb89}from'./utils/common-translations.js';import _0x402e61 from'../theme/icons/track-changes.svg';function _0x5e9e(){const _0x1e6e5f=['listenTo','type','value','11537784OmKKnR','change:activeAnnotations','menu','trackChanges.SuggestionThreadView','isInContent','lowest','comments.editorConfig','delegate','isOn','_initializeController','_destroyController','Discard\x20all\x20selected\x20suggestions','addComment','_addUIComponentsToFactory','items','get','51vmnCkx','activeAnnotations','779499csNuuS','163926zeATAg','set','Accept\x20all\x20selected\x20suggestions','60QRSxiw','activeMarkers','isDirty','comments.maxCommentCharsWhenCollapsed','requires','isMultiRange','getJoined','buttonView','refreshSelectedViews','13280LyRodh','focus','getAllAdjacentSuggestions','clear','panelView','arrowView','define','view','_bindAnnotationToEditors','discardButton','remove','stopListening','from','Annotations','getRanges','switchbutton','descriptionFactory','CommentsRepository','change:previous','getSuggestion','getMarkerNames','createAnnotation','commentThread','getMarkers','reduce','createAnnotationView','_viewToController','getFirstRange','unbind','pluginName','suggestionChanged','size','trackChanges.disableComments','_updateController','head','locale','13240683ZKeeKe','discardSelectedSuggestions','_createToolbarButton','Track\x20changes','comments.maxThreadTotalWeight','getDescriptions','delete','bind','length','Discard\x20all\x20suggestions','_handleControllerBuffer','menuBar:trackChanges','hasSuggestion','commands','trackChanges','_disableComments','864324sKVgeM','suggestionLoaded','descriptionParts','_annotationViews','CommentView','execute','commandName','previous','_handleSuggestionControllerDelayed','some','acceptSelectedSuggestions','plugins','editor','registerAnnotation','values','_suggestionToController','comments','EditorAnnotations','createCommentThreadController','addSourceCollector','TrackChangesUI','isEnabled','children','_createMenuBarMenu','has','keys','source','_unbindEditors','menuitem','model','button','mainView','CommentsUI','componentFactory','2850436wwrMwE','discardAllSuggestions','TrackChangesEditing','getByInnerView','suggestion-','destroy','actionView','add','menuitemcheckbox','SuggestionThreadView','_refreshActiveMarkers','innerView','editing','init','acceptButton','comments.maxCommentsWhenCollapsed','suggestionUnloaded','config','separator','acceptAllSuggestions','toMany','Accept\x20all\x20suggestions','push','filter'];_0x5e9e=function(){return _0x1e6e5f;};return _0x5e9e();}export default class d extends _0x180210{static get[_0x34a1d1(0x17c)](){const _0x17e26e=_0x34a1d1;return[_0x4d83a2,_0x328c2d,_0x17e26e(0x192),_0x17e26e(0x18e),_0x17e26e(0x1c6)];}static get[_0x34a1d1(0x19e)](){const _0x555456=_0x34a1d1;return _0x555456(0x1c9);}constructor(_0x191f34){const _0xc6f16e=_0x34a1d1;super(_0x191f34),this[_0xc6f16e(0x1c4)]=new Map(),this[_0xc6f16e(0x19b)]=new Map(),this[_0xc6f16e(0x1b8)]=new Map(),this[_0xc6f16e(0x1af)]=new Map();const _0x5eeb6a=this[_0xc6f16e(0x1c1)][_0xc6f16e(0x1e8)];_0x5eeb6a[_0xc6f16e(0x187)](_0xc6f16e(0x1f5),_0x25bc31),_0x5eeb6a[_0xc6f16e(0x187)](_0xc6f16e(0x1a1),!0x1),this[_0xc6f16e(0x1b4)]=_0x5eeb6a[_0xc6f16e(0x201)](_0xc6f16e(0x1a1));}[_0x34a1d1(0x1bd)](_0x1ffb41,_0x49d709){const _0xb44b1d=_0x34a1d1;0x0===this[_0xb44b1d(0x1af)][_0xb44b1d(0x1a0)]&&setTimeout(()=>{const _0x93caa5=_0xb44b1d;for(const [_0x17f08d,_0x56ee45]of this[_0x93caa5(0x1af)]){const _0x51ba42=this[_0x93caa5(0x1c4)][_0x93caa5(0x1cd)](_0x17f08d);_0x51ba42||_0x56ee45?_0x51ba42&&_0x56ee45&&this[_0x93caa5(0x1fc)](_0x17f08d):this[_0x93caa5(0x1fb)](_0x17f08d);}this[_0x93caa5(0x1af)][_0x93caa5(0x184)](),this[_0x93caa5(0x1c1)][_0x93caa5(0x1c0)][_0x93caa5(0x201)](_0x93caa5(0x1c6))[_0x93caa5(0x180)](),this[_0x93caa5(0x1e1)]();},0xa),this[_0xb44b1d(0x1af)][_0xb44b1d(0x176)](_0x1ffb41,_0x49d709);}[_0x34a1d1(0x1e4)](){const _0x5622e5=_0x34a1d1,_0x4401e4=this[_0x5622e5(0x1c1)],_0x12c5b1=_0x4401e4[_0x5622e5(0x1c0)][_0x5622e5(0x201)](_0x5622e5(0x1d9)),_0x322046=_0x4401e4[_0x5622e5(0x1c0)][_0x5622e5(0x201)](_0x5622e5(0x18e)),_0x3e73c5=_0x4401e4[_0x5622e5(0x1c0)][_0x5622e5(0x201)](_0x5622e5(0x1c6)),_0x2d2cff=_0x4401e4[_0x5622e5(0x1c0)][_0x5622e5(0x201)](_0x5622e5(0x192));this[_0x5622e5(0x1ff)](),_0x3e73c5[_0x5622e5(0x1c8)](()=>{const _0x3b89e6=_0x5622e5,_0x359cae=[];for(const [_0x4d822f,_0x40cfe9]of Array[_0x3b89e6(0x18d)](this[_0x3b89e6(0x1c4)])){const _0x17c8dc=_0x4d822f[_0x3b89e6(0x183)](),_0xf89428=[];for(const _0xdcd3ea of _0x17c8dc){if(!_0xdcd3ea[_0x3b89e6(0x1f6)])continue;if(_0xdcd3ea[_0x3b89e6(0x17d)]){_0xf89428[_0x3b89e6(0x1ed)](..._0xdcd3ea[_0x3b89e6(0x18f)]());continue;}const _0x507b8e=_0xdcd3ea[_0x3b89e6(0x19c)]();if(_0xf89428[_0x3b89e6(0x1ad)]>0x0){const _0x5adda3=_0xf89428[0x0][_0x3b89e6(0x17e)](_0x507b8e);if(_0x5adda3){_0xf89428[0x0]=_0x5adda3;continue;}}_0xf89428[_0x3b89e6(0x1ed)](_0x507b8e);}_0x359cae[_0x3b89e6(0x1ed)]([_0x40cfe9[_0x3b89e6(0x188)],_0xf89428]);}return _0x359cae;}),this[_0x5622e5(0x1ef)](_0x12c5b1,_0x5622e5(0x1b6),(_0x179f39,_0x262b8b)=>{const _0x2f2d5a=_0x5622e5;this[_0x2f2d5a(0x1ef)](_0x262b8b,_0x2f2d5a(0x193),(_0x594c2d,_0x417cb1,_0x596195,_0x5ee911)=>{const _0x23da63=_0x2f2d5a;_0x262b8b[_0x23da63(0x1f6)]&&(null==_0x596195?(this[_0x23da63(0x1a2)](_0x5ee911[_0x23da63(0x1a3)]),this[_0x23da63(0x1bd)](_0x262b8b,!0x1)):(this[_0x23da63(0x1a2)](_0x596195[_0x23da63(0x1a3)]),null==_0x5ee911&&this[_0x23da63(0x1bd)](_0x262b8b,!0x0)));}),null!==_0x262b8b[_0x2f2d5a(0x1bc)]?this[_0x2f2d5a(0x1a2)](_0x262b8b[_0x2f2d5a(0x1a3)]):this[_0x2f2d5a(0x1bd)](_0x262b8b,!0x1);}),this[_0x5622e5(0x1ef)](_0x12c5b1,_0x5622e5(0x1e7),(_0x47e7ed,_0x4e29f3,_0x12ef16)=>{const _0x13b338=_0x5622e5;this[_0x13b338(0x18c)](_0x4e29f3,_0x13b338(0x193)),this[_0x13b338(0x1af)][_0x13b338(0x1ab)](_0x4e29f3),this[_0x13b338(0x1c4)][_0x13b338(0x1cd)](_0x4e29f3)&&this[_0x13b338(0x1fc)](_0x4e29f3),_0x12ef16&&this[_0x13b338(0x1a2)](_0x12ef16[_0x13b338(0x1a3)]);}),this[_0x5622e5(0x1ef)](_0x12c5b1,_0x5622e5(0x19f),(_0x192507,_0x23e2de)=>{const _0xb35d94=_0x5622e5;this[_0xb35d94(0x1a2)](_0x23e2de);}),this[_0x5622e5(0x1ef)](_0x322046,_0x5622e5(0x1f3),()=>{const _0x50c4e9=_0x5622e5;this[_0x50c4e9(0x1e1)]();}),this[_0x5622e5(0x1ef)](_0x2d2cff,_0x5622e5(0x1fe),(_0x43b38c,{threadId:_0x728a7a,isFromAdapter:_0x3a90ad})=>{const _0x176b61=_0x5622e5;if(_0x3a90ad||!_0x12c5b1[_0x176b61(0x1b1)](_0x728a7a))return;const _0x1824ea=_0x12c5b1[_0x176b61(0x194)](_0x728a7a);this[_0x176b61(0x1c4)][_0x176b61(0x201)](_0x1824ea)[_0x176b61(0x188)][_0x176b61(0x182)]();},{'priority':_0x5622e5(0x1f7)});}[_0x34a1d1(0x1e1)](){const _0x6ad86e=_0x34a1d1,_0x197ce2=this[_0x6ad86e(0x1c1)][_0x6ad86e(0x1c0)][_0x6ad86e(0x201)](_0x6ad86e(0x18e)),_0xf4cb85=this[_0x6ad86e(0x1c1)][_0x6ad86e(0x1c0)][_0x6ad86e(0x201)](_0x6ad86e(0x1d9)),_0x3b0f39=Array[_0x6ad86e(0x18d)](_0x197ce2[_0x6ad86e(0x173)],_0x565e69=>_0x565e69[_0x6ad86e(0x1e2)])[_0x6ad86e(0x1ee)](_0x548800=>this[_0x6ad86e(0x19b)][_0x6ad86e(0x1cd)](_0x548800)),_0x5c7718=[];for(const _0x8ada12 of _0x3b0f39){const _0x4b918d=this[_0x6ad86e(0x19b)][_0x6ad86e(0x201)](_0x8ada12)[_0x6ad86e(0x1d2)][_0x6ad86e(0x183)]();_0x5c7718[_0x6ad86e(0x1ed)](..._0x4b918d[_0x6ad86e(0x199)]((_0x26d9cd,_0x5def34)=>[..._0x26d9cd,..._0x5def34[_0x6ad86e(0x195)]()],[]));}_0xf4cb85[_0x6ad86e(0x179)]=_0x5c7718;}[_0x34a1d1(0x1ff)](){const _0x4c812e=_0x34a1d1,_0x3c5bfa=this[_0x4c812e(0x1c1)],_0x3cbb66=_0x3c5bfa[_0x4c812e(0x1a4)],_0x5db9fa=_0x40bb89(_0x3cbb66,_0x4c812e(0x1a8)),_0x169213=new _0x58187d([{'type':_0x4c812e(0x190),'model':new _0xf927da({'withText':!0x0,'label':_0x5db9fa,'commandName':_0x4c812e(0x1b3),'role':_0x4c812e(0x1df)})},{'type':_0x4c812e(0x1e9)},{'type':_0x4c812e(0x1d3),'model':new _0xf927da({'withText':!0x0,'label':_0x40bb89(_0x3cbb66,_0x4c812e(0x1ec)),'commandName':_0x4c812e(0x1ea),'role':_0x4c812e(0x1d1)})},{'type':_0x4c812e(0x1d3),'model':new _0xf927da({'withText':!0x0,'label':_0x40bb89(_0x3cbb66,_0x4c812e(0x177)),'commandName':_0x4c812e(0x1bf),'role':_0x4c812e(0x1d1)})},{'type':_0x4c812e(0x1d3),'model':new _0xf927da({'withText':!0x0,'label':_0x40bb89(_0x3cbb66,_0x4c812e(0x1ae)),'commandName':_0x4c812e(0x1d8),'role':_0x4c812e(0x1d1)})},{'type':_0x4c812e(0x1d3),'model':new _0xf927da({'withText':!0x0,'label':_0x40bb89(_0x3cbb66,_0x4c812e(0x1fd)),'commandName':_0x4c812e(0x1a6),'role':_0x4c812e(0x1d1)})}]);for(const _0x189f00 of _0x169213)if(ae(_0x189f00)){const _0x1395e5=_0x3c5bfa[_0x4c812e(0x1b2)][_0x4c812e(0x201)](_0x189f00[_0x4c812e(0x1d2)][_0x4c812e(0x1bb)]);_0x189f00[_0x4c812e(0x1d2)][_0x4c812e(0x1ac)](_0x4c812e(0x1fa),_0x4c812e(0x1ca))['to'](_0x1395e5,_0x4c812e(0x1f1),_0x4c812e(0x1ca));}_0x3c5bfa['ui'][_0x4c812e(0x1d6)][_0x4c812e(0x1de)](_0x4c812e(0x1b3),_0x4bfc37=>this[_0x4c812e(0x1a7)](_0x4bfc37,_0x169213,_0x5db9fa)),_0x3c5bfa['ui'][_0x4c812e(0x1d6)][_0x4c812e(0x1de)](_0x4c812e(0x1b0),_0xd2f9ac=>this[_0x4c812e(0x1cc)](_0xd2f9ac,_0x169213,_0x5db9fa));}[_0x34a1d1(0x1a7)](_0x4c66c4,_0x58fbe4,_0x210073){const _0x32a0e2=_0x34a1d1,_0x1c0d1f=_0x2aba6b(_0x4c66c4,_0xf27f7),_0x1542f6=this[_0x32a0e2(0x1c1)][_0x32a0e2(0x1b2)][_0x32a0e2(0x201)](_0x32a0e2(0x1b3));_0x1c0d1f[_0x32a0e2(0x17f)][_0x32a0e2(0x176)]({'tooltip':_0x210073,'label':_0x210073,'icon':_0x402e61}),_0x1c0d1f[_0x32a0e2(0x17f)][_0x32a0e2(0x1ac)](_0x32a0e2(0x1fa))['to'](_0x1542f6,_0x32a0e2(0x1f1)),_0x1c0d1f[_0x32a0e2(0x17f)]['on'](_0x32a0e2(0x1ba),()=>{const _0x340bfc=_0x32a0e2;_0x1542f6[_0x340bfc(0x1ba)](),this[_0x340bfc(0x1c1)][_0x340bfc(0x1e3)][_0x340bfc(0x188)][_0x340bfc(0x182)]();}),_0x363061(_0x1c0d1f,_0x58fbe4,{'role':_0x32a0e2(0x1f4)});const _0x5445bb=[];for(const _0x383d5d of _0x58fbe4)ae(_0x383d5d)&&_0x5445bb[_0x32a0e2(0x1ed)](this[_0x32a0e2(0x1c1)][_0x32a0e2(0x1b2)][_0x32a0e2(0x201)](_0x383d5d[_0x32a0e2(0x1d2)][_0x32a0e2(0x1bb)]));const _0x118c5d=_0x1c0d1f[_0x32a0e2(0x17f)];return _0x118c5d[_0x32a0e2(0x1dd)][_0x32a0e2(0x19d)](_0x32a0e2(0x1ca)),_0x118c5d[_0x32a0e2(0x186)][_0x32a0e2(0x19d)](_0x32a0e2(0x1ca)),_0x118c5d[_0x32a0e2(0x1dd)][_0x32a0e2(0x1ac)](_0x32a0e2(0x1ca))['to'](_0x1542f6,_0x32a0e2(0x1ca)),_0x118c5d[_0x32a0e2(0x186)][_0x32a0e2(0x1ac)](_0x32a0e2(0x1ca))[_0x32a0e2(0x1eb)](_0x5445bb,_0x32a0e2(0x1ca),(..._0x3a33a9)=>_0x3a33a9[_0x32a0e2(0x1be)](_0xae153=>_0xae153)),_0x1c0d1f['on'](_0x32a0e2(0x1ba),_0x531f59=>{const _0x2e0bd5=_0x32a0e2;this[_0x2e0bd5(0x1c1)][_0x2e0bd5(0x1ba)](_0x531f59[_0x2e0bd5(0x1cf)][_0x2e0bd5(0x1bb)]),this[_0x2e0bd5(0x1c1)][_0x2e0bd5(0x1e3)][_0x2e0bd5(0x188)][_0x2e0bd5(0x182)]();}),_0x1c0d1f;}[_0x34a1d1(0x1cc)](_0x4af617,_0x12c97f,_0x3c65aa){const _0x5ae888=_0x34a1d1,_0x52367c=new _0x5d16c5(_0x4af617),_0x14eb89=this[_0x5ae888(0x1c1)][_0x5ae888(0x1b2)][_0x5ae888(0x201)](_0x5ae888(0x1b3));_0x52367c[_0x5ae888(0x17f)][_0x5ae888(0x176)]({'label':_0x3c65aa,'icon':_0x402e61});const _0x3d3eca=new _0x194bdc(_0x4af617);for(const _0x5dc529 of _0x12c97f){if(_0x5ae888(0x1e9)==_0x5dc529[_0x5ae888(0x1f0)]){_0x3d3eca[_0x5ae888(0x200)][_0x5ae888(0x1de)](new _0x47fcfd(_0x4af617));continue;}const _0x32361=new _0x5e9456(_0x4af617,_0x52367c),_0x26b630=new _0x2f8d0f(_0x4af617),_0xcca2d6=_0x5dc529[_0x5ae888(0x1d2)];_0x26b630[_0x5ae888(0x1ac)](...Object[_0x5ae888(0x1ce)](_0xcca2d6))['to'](_0xcca2d6),_0x26b630[_0x5ae888(0x1f9)](_0x5ae888(0x1ba))['to'](_0x52367c),_0x26b630['on'](_0x5ae888(0x1ba),()=>{const _0xf62f95=_0x5ae888;this[_0xf62f95(0x1c1)][_0xf62f95(0x1ba)](_0xcca2d6[_0xf62f95(0x1bb)]),this[_0xf62f95(0x1c1)][_0xf62f95(0x1e3)][_0xf62f95(0x188)][_0xf62f95(0x182)]();}),_0x32361[_0x5ae888(0x1cb)][_0x5ae888(0x1de)](_0x26b630),_0x3d3eca[_0x5ae888(0x200)][_0x5ae888(0x1de)](_0x32361);}return _0x52367c[_0x5ae888(0x1ac)](_0x5ae888(0x1ca))['to'](_0x14eb89,_0x5ae888(0x1ca)),_0x52367c[_0x5ae888(0x185)][_0x5ae888(0x1cb)][_0x5ae888(0x1de)](_0x3d3eca),_0x52367c;}[_0x34a1d1(0x1fb)](_0x531550){const _0x5ccb74=_0x34a1d1,_0x29832f=this[_0x5ccb74(0x1c1)],_0xe6e842=_0x29832f[_0x5ccb74(0x1e8)],_0x3ec4c9=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x5ccb74(0x18e)),_0x2eff9e=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x5ccb74(0x192)),_0x49bb4e=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x5ccb74(0x1c6)),_0x5c68ba=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x328c2d)['me'],_0x5d8761=_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1b3))[_0x5ccb74(0x1e0)],{CommentsListView:_0x1d5de3,CommentThreadInputView:_0x21935f}=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x5ccb74(0x1d5));let _0x354928,_0x317662;this[_0x5ccb74(0x1b8)][_0x5ccb74(0x1cd)](_0x531550['id'])?(_0x317662=this[_0x5ccb74(0x1b8)][_0x5ccb74(0x201)](_0x531550['id']),_0x354928=_0x317662[_0x5ccb74(0x1d4)]):(_0x354928=new _0x5d8761(_0x29832f[_0x5ccb74(0x1a4)],_0x531550,_0x5c68ba,{'disableComments':this[_0x5ccb74(0x1b4)],'editorConfig':_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1f8)),'maxCommentsWhenCollapsed':_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1e6)),'maxThreadTotalWeight':_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1a9)),'maxCommentCharsWhenCollapsed':_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x17b)),'formatDateTime':_0x5cd02b(_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1a4))),'CommentView':_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1c5))[_0x5ccb74(0x1b9)],'CommentsListView':_0x1d5de3,'CommentThreadInputView':_0x21935f}),_0x354928[_0x5ccb74(0x1e5)]['on'](_0x5ccb74(0x1ba),()=>{const _0x2e2ece=_0x5ccb74;_0x29832f[_0x2e2ece(0x1e3)][_0x2e2ece(0x188)][_0x2e2ece(0x182)]();}),_0x354928[_0x5ccb74(0x18a)]['on'](_0x5ccb74(0x1ba),()=>{const _0x447cad=_0x5ccb74;_0x29832f[_0x447cad(0x1e3)][_0x447cad(0x188)][_0x447cad(0x182)]();}),_0x317662=_0x3ec4c9[_0x5ccb74(0x19a)](this[_0x5ccb74(0x1c1)][_0x5ccb74(0x1a4)],_0x354928),_0x317662[_0x5ccb74(0x1ac)](_0x5ccb74(0x17a))['to'](_0x354928,_0x5ccb74(0x17a)),_0x317662[_0x5ccb74(0x1ac)](_0x5ccb74(0x1ad))['to'](_0x354928),_0x317662[_0x5ccb74(0x1ac)](_0x5ccb74(0x1f0))['to'](_0x354928,_0x5ccb74(0x1f0),_0x417c9b=>_0x5ccb74(0x1db)+_0x417c9b),this[_0x5ccb74(0x1b8)][_0x5ccb74(0x176)](_0x531550['id'],_0x317662));const _0x40697c=_0x2eff9e[_0x5ccb74(0x1c7)](_0x531550[_0x5ccb74(0x197)],_0x354928),_0x7ae12e=new _0x4ae0b0(_0x29832f,_0x531550,_0x354928,_0x40697c),_0x3e31de=_0x531550[_0x5ccb74(0x183)]()[_0x5ccb74(0x1ee)](_0x33e49a=>_0x33e49a[_0x5ccb74(0x1f6)]);_0x354928[_0x5ccb74(0x1b7)]=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x5ccb74(0x1d9))[_0x5ccb74(0x191)][_0x5ccb74(0x1aa)](_0x3e31de),this[_0x5ccb74(0x1c4)][_0x5ccb74(0x176)](_0x531550,_0x7ae12e),this[_0x5ccb74(0x19b)][_0x5ccb74(0x176)](_0x354928,_0x7ae12e);const _0x1fdf5b=_0x3ec4c9[_0x5ccb74(0x196)]({'view':_0x317662,'target':()=>{const _0x2622fa=_0x5ccb74,_0x1e36e3=[],_0x3dc4b6=_0x531550[_0x2622fa(0x183)]()[_0x2622fa(0x1ee)](_0x328238=>_0x328238[_0x2622fa(0x1f6)]);for(const _0x42c793 of _0x3dc4b6)_0x1e36e3[_0x2622fa(0x1ed)](..._0x42c793[_0x2622fa(0x198)]());return _0xfd5846(_0x29832f[_0x2622fa(0x1e3)],_0x1e36e3);},'type':()=>_0x5ccb74(0x1db)+_0x7ae12e[_0x5ccb74(0x188)][_0x5ccb74(0x1f0)]});_0x2eff9e[_0x5ccb74(0x189)](_0x354928,_0x1fdf5b),_0x3ec4c9[_0x5ccb74(0x1de)](_0x1fdf5b),_0x49bb4e[_0x5ccb74(0x1c2)](_0x1fdf5b);}[_0x34a1d1(0x1fc)](_0x19ef09){const _0xd8c12b=_0x34a1d1,_0x3b4111=this[_0xd8c12b(0x1c1)][_0xd8c12b(0x1c0)][_0xd8c12b(0x201)](_0xd8c12b(0x192)),_0x52ca8a=this[_0xd8c12b(0x1c1)][_0xd8c12b(0x1c0)][_0xd8c12b(0x201)](_0xd8c12b(0x18e)),_0x185353=this[_0xd8c12b(0x1c4)][_0xd8c12b(0x201)](_0x19ef09),_0x21b0e6=_0x185353[_0xd8c12b(0x188)],_0x6b5c0d=_0x52ca8a[_0xd8c12b(0x1da)](_0x21b0e6);_0x3b4111[_0xd8c12b(0x1d0)](_0x21b0e6),_0x6b5c0d&&_0x52ca8a[_0xd8c12b(0x18b)](_0x6b5c0d),this[_0xd8c12b(0x1c4)][_0xd8c12b(0x1ab)](_0x19ef09),this[_0xd8c12b(0x19b)][_0xd8c12b(0x1ab)](_0x21b0e6),_0x185353[_0xd8c12b(0x1dc)]();}[_0x34a1d1(0x1a2)](_0x5830d6){const _0x8c2deb=_0x34a1d1;if(!_0x5830d6[_0x8c2deb(0x1f6)]||!this[_0x8c2deb(0x1c4)][_0x8c2deb(0x1cd)](_0x5830d6))return;const _0x604c0a=this[_0x8c2deb(0x1c1)][_0x8c2deb(0x1c0)][_0x8c2deb(0x201)](_0x8c2deb(0x1d9)),_0x4efa46=this[_0x8c2deb(0x1c4)][_0x8c2deb(0x201)](_0x5830d6),_0x3d3cc2=_0x5830d6[_0x8c2deb(0x183)]();_0x4efa46[_0x8c2deb(0x188)][_0x8c2deb(0x1b7)]=_0x604c0a[_0x8c2deb(0x191)][_0x8c2deb(0x1aa)](_0x3d3cc2);}[_0x34a1d1(0x1dc)](){const _0x1c860c=_0x34a1d1;for(const _0x1e1cf8 of this[_0x1c860c(0x1c4)][_0x1c860c(0x1ce)]())this[_0x1c860c(0x1fc)](_0x1e1cf8);for(const _0x4bc5cb of this[_0x1c860c(0x1b8)][_0x1c860c(0x1c3)]())_0x4bc5cb[_0x1c860c(0x1d4)][_0x1c860c(0x1dc)]();super[_0x1c860c(0x1dc)]();}}function ae(_0x2b1bdd){const _0xb1706e=_0x34a1d1;return _0xb1706e(0x1d2)in _0x2b1bdd;}
|
|
23
|
+
const _0x1b82e7=_0x5a31;function _0x427b(){const _0x28222e=['init','config','stopListening','innerView','editor','_unbindEditors','getMarkers','refreshSelectedViews','Annotations','source','push','suggestionUnloaded','commands','delete','change:activeAnnotations','children','comments.editorConfig','lowest','Track\x20changes','_destroyController','get','trackChanges.disableComments','menuitemcheckbox','discardSelectedSuggestions','suggestionChanged','Accept\x20all\x20selected\x20suggestions','Discard\x20all\x20selected\x20suggestions','_addUIComponentsToFactory','hasSuggestion','CommentView','menu','view','menuitem','getRanges','locale','SuggestionThreadView','trackChanges.SuggestionThreadView','values','execute','activeMarkers','mainView','registerAnnotation','destroy','comments.maxCommentCharsWhenCollapsed','4750JkYodB','clear','set','some','focus','_bindAnnotationToEditors','has','1oIHUde','_createToolbarButton','_refreshActiveMarkers','toMany','comments','acceptAllSuggestions','type','reduce','value','_suggestionToController','switchbutton','keys','TrackChangesUI','getDescriptions','suggestion-','getSuggestion','discardAllSuggestions','_disableComments','52wImcun','unbind','41855IwRusW','TrackChangesEditing','createCommentThreadController','Discard\x20all\x20suggestions','addSourceCollector','_viewToController','activeAnnotations','actionView','364KJgZpj','_createMenuBarMenu','comments.maxThreadTotalWeight','1036010NeCnfh','pluginName','CommentsUI','menuBar:trackChanges','discardButton','bind','createAnnotation','define','size','requires','remove','plugins','63978MmtXwK','_annotationViews','_updateController','getByInnerView','commentThread','separator','6017448bwlvok','_handleSuggestionControllerDelayed','1322896yNYBMd','getJoined','getFirstRange','suggestionLoaded','isMultiRange','isDirty','change:previous','isOn','CommentsRepository','panelView','addComment','items','buttonView','editing','createAnnotationView','comments.maxCommentsWhenCollapsed','Accept\x20all\x20suggestions','listenTo','filter','descriptionParts','isInContent','trackChanges','getMarkerNames','getAllAdjacentSuggestions','add','isEnabled','previous','_initializeController','from','arrowView','_handleControllerBuffer','componentFactory','model','delegate','length','acceptSelectedSuggestions','button','EditorAnnotations','head','4405824cGYHwX','29907gqcLRn','acceptButton','commandName','descriptionFactory'];_0x427b=function(){return _0x28222e;};return _0x427b();}function _0x5a31(_0x583cdc,_0x4de088){const _0x427ba4=_0x427b();return _0x5a31=function(_0x5a3139,_0x5e482e){_0x5a3139=_0x5a3139-0x190;let _0x50ba97=_0x427ba4[_0x5a3139];return _0x50ba97;},_0x5a31(_0x583cdc,_0x4de088);}(function(_0x1aa6f7,_0xbe37ef){const _0x3bd7f3=_0x5a31,_0xda4359=_0x1aa6f7();while(!![]){try{const _0x187ed4=parseInt(_0x3bd7f3(0x1d7))/0x1*(-parseInt(_0x3bd7f3(0x20a))/0x2)+parseInt(_0x3bd7f3(0x1a0))/0x3*(parseInt(_0x3bd7f3(0x1e9))/0x4)+-parseInt(_0x3bd7f3(0x1f6))/0x5+parseInt(_0x3bd7f3(0x202))/0x6*(parseInt(_0x3bd7f3(0x1f3))/0x7)+-parseInt(_0x3bd7f3(0x208))/0x8+-parseInt(_0x3bd7f3(0x19f))/0x9+-parseInt(_0x3bd7f3(0x1d0))/0xa*(-parseInt(_0x3bd7f3(0x1eb))/0xb);if(_0x187ed4===_0xbe37ef)break;else _0xda4359['push'](_0xda4359['shift']());}catch(_0x30a6c4){_0xda4359['push'](_0xda4359['shift']());}}}(_0x427b,0x5d099));import{Plugin as _0x1240cf}from'ckeditor5/src/core.js';import{Collection as _0x4606ff}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x5e664e,createDropdown as _0x947758,ListSeparatorView as _0x416dbf,MenuBarMenuView as _0x538245,MenuBarMenuListView as _0x5cbc09,MenuBarMenuListItemView as _0x185321,MenuBarMenuListItemButtonView as _0x1f8414,SplitButtonView as _0x22a7fc,ViewModel as _0x1f689f}from'ckeditor5/src/ui.js';import{Users as _0x1b06a0,getDateTimeFormatter as _0x329a5c,getAllMarkersDomElementsSorted as _0x317b6f}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2ebdee from'./trackchangesediting.js';import _0x1f08ee from'./ui/suggestioncontroller.js';import _0x4e4c0d from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x55e18a}from'./utils/common-translations.js';import _0x4c2877 from'../theme/icons/track-changes.svg';export default class d extends _0x1240cf{static get[_0x1b82e7(0x1ff)](){const _0x284a92=_0x1b82e7;return[_0x2ebdee,_0x1b06a0,_0x284a92(0x212),_0x284a92(0x1ac),_0x284a92(0x19d)];}static get[_0x1b82e7(0x1f7)](){const _0x3e5b1d=_0x1b82e7;return _0x3e5b1d(0x1e3);}constructor(_0x4764e3){const _0x4a8f13=_0x1b82e7;super(_0x4764e3),this[_0x4a8f13(0x1e0)]=new Map(),this[_0x4a8f13(0x1f0)]=new Map(),this[_0x4a8f13(0x203)]=new Map(),this[_0x4a8f13(0x196)]=new Map();const _0x507272=this[_0x4a8f13(0x1a8)][_0x4a8f13(0x1a5)];_0x507272[_0x4a8f13(0x1fd)](_0x4a8f13(0x1c8),_0x4e4c0d),_0x507272[_0x4a8f13(0x1fd)](_0x4a8f13(0x1b9),!0x1),this[_0x4a8f13(0x1e8)]=_0x507272[_0x4a8f13(0x1b8)](_0x4a8f13(0x1b9));}[_0x1b82e7(0x209)](_0x48a754,_0x20a86c){const _0x43e34d=_0x1b82e7;0x0===this[_0x43e34d(0x196)][_0x43e34d(0x1fe)]&&setTimeout(()=>{const _0x4a2492=_0x43e34d;for(const [_0x6010db,_0x3d1cf5]of this[_0x4a2492(0x196)]){const _0x32c08c=this[_0x4a2492(0x1e0)][_0x4a2492(0x1d6)](_0x6010db);_0x32c08c||_0x3d1cf5?_0x32c08c&&_0x3d1cf5&&this[_0x4a2492(0x1b7)](_0x6010db):this[_0x4a2492(0x193)](_0x6010db);}this[_0x4a2492(0x196)][_0x4a2492(0x1d1)](),this[_0x4a2492(0x1a8)][_0x4a2492(0x201)][_0x4a2492(0x1b8)](_0x4a2492(0x19d))[_0x4a2492(0x1ab)](),this[_0x4a2492(0x1d9)]();},0xa),this[_0x43e34d(0x196)][_0x43e34d(0x1d2)](_0x48a754,_0x20a86c);}[_0x1b82e7(0x1a4)](){const _0x352f80=_0x1b82e7,_0x54be90=this[_0x352f80(0x1a8)],_0x17b579=_0x54be90[_0x352f80(0x201)][_0x352f80(0x1b8)](_0x352f80(0x1ec)),_0x2b4fb0=_0x54be90[_0x352f80(0x201)][_0x352f80(0x1b8)](_0x352f80(0x1ac)),_0x48fea7=_0x54be90[_0x352f80(0x201)][_0x352f80(0x1b8)](_0x352f80(0x19d)),_0x1f75ef=_0x54be90[_0x352f80(0x201)][_0x352f80(0x1b8)](_0x352f80(0x212));this[_0x352f80(0x1bf)](),_0x48fea7[_0x352f80(0x1ef)](()=>{const _0x32b767=_0x352f80,_0xfdcdb7=[];for(const [_0x155e67,_0x29a8e9]of Array[_0x32b767(0x194)](this[_0x32b767(0x1e0)])){const _0x13e352=_0x155e67[_0x32b767(0x221)](),_0x42cf09=[];for(const _0x3f3cde of _0x13e352){if(!_0x3f3cde[_0x32b767(0x21e)])continue;if(_0x3f3cde[_0x32b767(0x20e)]){_0x42cf09[_0x32b767(0x1ae)](..._0x3f3cde[_0x32b767(0x1c5)]());continue;}const _0x4da137=_0x3f3cde[_0x32b767(0x20c)]();if(_0x42cf09[_0x32b767(0x19a)]>0x0){const _0x1762fc=_0x42cf09[0x0][_0x32b767(0x20b)](_0x4da137);if(_0x1762fc){_0x42cf09[0x0]=_0x1762fc;continue;}}_0x42cf09[_0x32b767(0x1ae)](_0x4da137);}_0xfdcdb7[_0x32b767(0x1ae)]([_0x29a8e9[_0x32b767(0x1c3)],_0x42cf09]);}return _0xfdcdb7;}),this[_0x352f80(0x21b)](_0x17b579,_0x352f80(0x20d),(_0x5c740c,_0x121292)=>{const _0x43ed1b=_0x352f80;this[_0x43ed1b(0x21b)](_0x121292,_0x43ed1b(0x210),(_0x2d78f1,_0x3777d7,_0x4e0921,_0x7fa37b)=>{const _0x46f4b8=_0x43ed1b;_0x121292[_0x46f4b8(0x21e)]&&(null==_0x4e0921?(this[_0x46f4b8(0x204)](_0x7fa37b[_0x46f4b8(0x19e)]),this[_0x46f4b8(0x209)](_0x121292,!0x1)):(this[_0x46f4b8(0x204)](_0x4e0921[_0x46f4b8(0x19e)]),null==_0x7fa37b&&this[_0x46f4b8(0x209)](_0x121292,!0x0)));}),null!==_0x121292[_0x43ed1b(0x192)]?this[_0x43ed1b(0x204)](_0x121292[_0x43ed1b(0x19e)]):this[_0x43ed1b(0x209)](_0x121292,!0x1);}),this[_0x352f80(0x21b)](_0x17b579,_0x352f80(0x1af),(_0x9f4c39,_0x1932e9,_0x50390c)=>{const _0x6b37f9=_0x352f80;this[_0x6b37f9(0x1a6)](_0x1932e9,_0x6b37f9(0x210)),this[_0x6b37f9(0x196)][_0x6b37f9(0x1b1)](_0x1932e9),this[_0x6b37f9(0x1e0)][_0x6b37f9(0x1d6)](_0x1932e9)&&this[_0x6b37f9(0x1b7)](_0x1932e9),_0x50390c&&this[_0x6b37f9(0x204)](_0x50390c[_0x6b37f9(0x19e)]);}),this[_0x352f80(0x21b)](_0x17b579,_0x352f80(0x1bc),(_0x130f90,_0x275dee)=>{const _0x1854c3=_0x352f80;this[_0x1854c3(0x204)](_0x275dee);}),this[_0x352f80(0x21b)](_0x2b4fb0,_0x352f80(0x1b2),()=>{const _0x4f3b2a=_0x352f80;this[_0x4f3b2a(0x1d9)]();}),this[_0x352f80(0x21b)](_0x1f75ef,_0x352f80(0x214),(_0x368e21,{threadId:_0x422c66,isFromAdapter:_0x138e7e})=>{const _0x13296b=_0x352f80;if(_0x138e7e||!_0x17b579[_0x13296b(0x1c0)](_0x422c66))return;const _0x49e036=_0x17b579[_0x13296b(0x1e6)](_0x422c66);this[_0x13296b(0x1e0)][_0x13296b(0x1b8)](_0x49e036)[_0x13296b(0x1c3)][_0x13296b(0x1d4)]();},{'priority':_0x352f80(0x1b5)});}[_0x1b82e7(0x1d9)](){const _0x270bec=_0x1b82e7,_0x382273=this[_0x270bec(0x1a8)][_0x270bec(0x201)][_0x270bec(0x1b8)](_0x270bec(0x1ac)),_0x268df1=this[_0x270bec(0x1a8)][_0x270bec(0x201)][_0x270bec(0x1b8)](_0x270bec(0x1ec)),_0xc77239=Array[_0x270bec(0x194)](_0x382273[_0x270bec(0x1f1)],_0x284333=>_0x284333[_0x270bec(0x1a7)])[_0x270bec(0x21c)](_0x14d108=>this[_0x270bec(0x1f0)][_0x270bec(0x1d6)](_0x14d108)),_0x4e68f7=[];for(const _0x5ed663 of _0xc77239){const _0x5d019a=this[_0x270bec(0x1f0)][_0x270bec(0x1b8)](_0x5ed663)[_0x270bec(0x198)][_0x270bec(0x221)]();_0x4e68f7[_0x270bec(0x1ae)](..._0x5d019a[_0x270bec(0x1de)]((_0x2f4e03,_0x3cc36b)=>[..._0x2f4e03,..._0x3cc36b[_0x270bec(0x220)]()],[]));}_0x268df1[_0x270bec(0x1cb)]=_0x4e68f7;}[_0x1b82e7(0x1bf)](){const _0x2f7c06=_0x1b82e7,_0x50832b=this[_0x2f7c06(0x1a8)],_0x1ad9b0=_0x50832b[_0x2f7c06(0x1c6)],_0x2dc6f7=_0x55e18a(_0x1ad9b0,_0x2f7c06(0x1b6)),_0x468425=new _0x4606ff([{'type':_0x2f7c06(0x1e1),'model':new _0x1f689f({'withText':!0x0,'label':_0x2dc6f7,'commandName':_0x2f7c06(0x21f),'role':_0x2f7c06(0x1ba)})},{'type':_0x2f7c06(0x207)},{'type':_0x2f7c06(0x19c),'model':new _0x1f689f({'withText':!0x0,'label':_0x55e18a(_0x1ad9b0,_0x2f7c06(0x21a)),'commandName':_0x2f7c06(0x1dc),'role':_0x2f7c06(0x1c4)})},{'type':_0x2f7c06(0x19c),'model':new _0x1f689f({'withText':!0x0,'label':_0x55e18a(_0x1ad9b0,_0x2f7c06(0x1bd)),'commandName':_0x2f7c06(0x19b),'role':_0x2f7c06(0x1c4)})},{'type':_0x2f7c06(0x19c),'model':new _0x1f689f({'withText':!0x0,'label':_0x55e18a(_0x1ad9b0,_0x2f7c06(0x1ee)),'commandName':_0x2f7c06(0x1e7),'role':_0x2f7c06(0x1c4)})},{'type':_0x2f7c06(0x19c),'model':new _0x1f689f({'withText':!0x0,'label':_0x55e18a(_0x1ad9b0,_0x2f7c06(0x1be)),'commandName':_0x2f7c06(0x1bb),'role':_0x2f7c06(0x1c4)})}]);for(const _0x52bfb1 of _0x468425)if(ae(_0x52bfb1)){const _0x1eec79=_0x50832b[_0x2f7c06(0x1b0)][_0x2f7c06(0x1b8)](_0x52bfb1[_0x2f7c06(0x198)][_0x2f7c06(0x1a2)]);_0x52bfb1[_0x2f7c06(0x198)][_0x2f7c06(0x1fb)](_0x2f7c06(0x211),_0x2f7c06(0x191))['to'](_0x1eec79,_0x2f7c06(0x1df),_0x2f7c06(0x191));}_0x50832b['ui'][_0x2f7c06(0x197)][_0x2f7c06(0x190)](_0x2f7c06(0x21f),_0x1859ec=>this[_0x2f7c06(0x1d8)](_0x1859ec,_0x468425,_0x2dc6f7)),_0x50832b['ui'][_0x2f7c06(0x197)][_0x2f7c06(0x190)](_0x2f7c06(0x1f9),_0x350b7b=>this[_0x2f7c06(0x1f4)](_0x350b7b,_0x468425,_0x2dc6f7));}[_0x1b82e7(0x1d8)](_0x583eaf,_0x55980f,_0x5af45){const _0x45990a=_0x1b82e7,_0x264cc8=_0x947758(_0x583eaf,_0x22a7fc),_0x33c27e=this[_0x45990a(0x1a8)][_0x45990a(0x1b0)][_0x45990a(0x1b8)](_0x45990a(0x21f));_0x264cc8[_0x45990a(0x216)][_0x45990a(0x1d2)]({'tooltip':_0x5af45,'label':_0x5af45,'icon':_0x4c2877}),_0x264cc8[_0x45990a(0x216)][_0x45990a(0x1fb)](_0x45990a(0x211))['to'](_0x33c27e,_0x45990a(0x1df)),_0x264cc8[_0x45990a(0x216)]['on'](_0x45990a(0x1ca),()=>{const _0x2bc124=_0x45990a;_0x33c27e[_0x2bc124(0x1ca)](),this[_0x2bc124(0x1a8)][_0x2bc124(0x217)][_0x2bc124(0x1c3)][_0x2bc124(0x1d4)]();}),_0x5e664e(_0x264cc8,_0x55980f,{'role':_0x45990a(0x1c2)});const _0x4dd4c1=[];for(const _0x2a4827 of _0x55980f)ae(_0x2a4827)&&_0x4dd4c1[_0x45990a(0x1ae)](this[_0x45990a(0x1a8)][_0x45990a(0x1b0)][_0x45990a(0x1b8)](_0x2a4827[_0x45990a(0x198)][_0x45990a(0x1a2)]));const _0x2d67d6=_0x264cc8[_0x45990a(0x216)];return _0x2d67d6[_0x45990a(0x1f2)][_0x45990a(0x1ea)](_0x45990a(0x191)),_0x2d67d6[_0x45990a(0x195)][_0x45990a(0x1ea)](_0x45990a(0x191)),_0x2d67d6[_0x45990a(0x1f2)][_0x45990a(0x1fb)](_0x45990a(0x191))['to'](_0x33c27e,_0x45990a(0x191)),_0x2d67d6[_0x45990a(0x195)][_0x45990a(0x1fb)](_0x45990a(0x191))[_0x45990a(0x1da)](_0x4dd4c1,_0x45990a(0x191),(..._0x3185be)=>_0x3185be[_0x45990a(0x1d3)](_0xf61163=>_0xf61163)),_0x264cc8['on'](_0x45990a(0x1ca),_0x5a5d72=>{const _0x4af6b8=_0x45990a;this[_0x4af6b8(0x1a8)][_0x4af6b8(0x1ca)](_0x5a5d72[_0x4af6b8(0x1ad)][_0x4af6b8(0x1a2)]),this[_0x4af6b8(0x1a8)][_0x4af6b8(0x217)][_0x4af6b8(0x1c3)][_0x4af6b8(0x1d4)]();}),_0x264cc8;}[_0x1b82e7(0x1f4)](_0x52b215,_0x215d96,_0x3abccb){const _0x420556=_0x1b82e7,_0x480df9=new _0x538245(_0x52b215),_0x4ddd96=this[_0x420556(0x1a8)][_0x420556(0x1b0)][_0x420556(0x1b8)](_0x420556(0x21f));_0x480df9[_0x420556(0x216)][_0x420556(0x1d2)]({'label':_0x3abccb,'icon':_0x4c2877});const _0x522796=new _0x5cbc09(_0x52b215);for(const _0x1e04a8 of _0x215d96){if(_0x420556(0x207)==_0x1e04a8[_0x420556(0x1dd)]){_0x522796[_0x420556(0x215)][_0x420556(0x190)](new _0x416dbf(_0x52b215));continue;}const _0x2d2ff4=new _0x185321(_0x52b215,_0x480df9),_0x537c6c=new _0x1f8414(_0x52b215),_0x412699=_0x1e04a8[_0x420556(0x198)];_0x537c6c[_0x420556(0x1fb)](...Object[_0x420556(0x1e2)](_0x412699))['to'](_0x412699),_0x537c6c[_0x420556(0x199)](_0x420556(0x1ca))['to'](_0x480df9),_0x537c6c['on'](_0x420556(0x1ca),()=>{const _0x293318=_0x420556;this[_0x293318(0x1a8)][_0x293318(0x1ca)](_0x412699[_0x293318(0x1a2)]),this[_0x293318(0x1a8)][_0x293318(0x217)][_0x293318(0x1c3)][_0x293318(0x1d4)]();}),_0x2d2ff4[_0x420556(0x1b3)][_0x420556(0x190)](_0x537c6c),_0x522796[_0x420556(0x215)][_0x420556(0x190)](_0x2d2ff4);}return _0x480df9[_0x420556(0x1fb)](_0x420556(0x191))['to'](_0x4ddd96,_0x420556(0x191)),_0x480df9[_0x420556(0x213)][_0x420556(0x1b3)][_0x420556(0x190)](_0x522796),_0x480df9;}[_0x1b82e7(0x193)](_0x4401f0){const _0x187330=_0x1b82e7,_0x121351=this[_0x187330(0x1a8)],_0xa6342e=_0x121351[_0x187330(0x1a5)],_0x5094d9=_0x121351[_0x187330(0x201)][_0x187330(0x1b8)](_0x187330(0x1ac)),_0x3bd94e=_0x121351[_0x187330(0x201)][_0x187330(0x1b8)](_0x187330(0x212)),_0x5cff27=_0x121351[_0x187330(0x201)][_0x187330(0x1b8)](_0x187330(0x19d)),_0x1e95bb=_0x121351[_0x187330(0x201)][_0x187330(0x1b8)](_0x1b06a0)['me'],_0x519fb6=_0xa6342e[_0x187330(0x1b8)](_0x187330(0x21f))[_0x187330(0x1c7)],{CommentsListView:_0x1e87f0,CommentThreadInputView:_0x12d73e}=_0x121351[_0x187330(0x201)][_0x187330(0x1b8)](_0x187330(0x1f8));let _0x550d2a,_0x51b04f;this[_0x187330(0x203)][_0x187330(0x1d6)](_0x4401f0['id'])?(_0x51b04f=this[_0x187330(0x203)][_0x187330(0x1b8)](_0x4401f0['id']),_0x550d2a=_0x51b04f[_0x187330(0x1cc)]):(_0x550d2a=new _0x519fb6(_0x121351[_0x187330(0x1c6)],_0x4401f0,_0x1e95bb,{'disableComments':this[_0x187330(0x1e8)],'editorConfig':_0xa6342e[_0x187330(0x1b8)](_0x187330(0x1b4)),'maxCommentsWhenCollapsed':_0xa6342e[_0x187330(0x1b8)](_0x187330(0x219)),'maxThreadTotalWeight':_0xa6342e[_0x187330(0x1b8)](_0x187330(0x1f5)),'maxCommentCharsWhenCollapsed':_0xa6342e[_0x187330(0x1b8)](_0x187330(0x1cf)),'formatDateTime':_0x329a5c(_0xa6342e[_0x187330(0x1b8)](_0x187330(0x1c6))),'CommentView':_0xa6342e[_0x187330(0x1b8)](_0x187330(0x1db))[_0x187330(0x1c1)],'CommentsListView':_0x1e87f0,'CommentThreadInputView':_0x12d73e}),_0x550d2a[_0x187330(0x1a1)]['on'](_0x187330(0x1ca),()=>{const _0x95ef38=_0x187330;_0x121351[_0x95ef38(0x217)][_0x95ef38(0x1c3)][_0x95ef38(0x1d4)]();}),_0x550d2a[_0x187330(0x1fa)]['on'](_0x187330(0x1ca),()=>{const _0x3d01c1=_0x187330;_0x121351[_0x3d01c1(0x217)][_0x3d01c1(0x1c3)][_0x3d01c1(0x1d4)]();}),_0x51b04f=_0x5094d9[_0x187330(0x218)](this[_0x187330(0x1a8)][_0x187330(0x1c6)],_0x550d2a),_0x51b04f[_0x187330(0x1fb)](_0x187330(0x20f))['to'](_0x550d2a,_0x187330(0x20f)),_0x51b04f[_0x187330(0x1fb)](_0x187330(0x19a))['to'](_0x550d2a),_0x51b04f[_0x187330(0x1fb)](_0x187330(0x1dd))['to'](_0x550d2a,_0x187330(0x1dd),_0x2e8e6e=>_0x187330(0x1e5)+_0x2e8e6e),this[_0x187330(0x203)][_0x187330(0x1d2)](_0x4401f0['id'],_0x51b04f));const _0x321b80=_0x3bd94e[_0x187330(0x1ed)](_0x4401f0[_0x187330(0x206)],_0x550d2a),_0xee1b8d=new _0x1f08ee(_0x121351,_0x4401f0,_0x550d2a,_0x321b80),_0x27c489=_0x4401f0[_0x187330(0x221)]()[_0x187330(0x21c)](_0x218ec1=>_0x218ec1[_0x187330(0x21e)]);_0x550d2a[_0x187330(0x21d)]=_0x121351[_0x187330(0x201)][_0x187330(0x1b8)](_0x187330(0x1ec))[_0x187330(0x1a3)][_0x187330(0x1e4)](_0x27c489),this[_0x187330(0x1e0)][_0x187330(0x1d2)](_0x4401f0,_0xee1b8d),this[_0x187330(0x1f0)][_0x187330(0x1d2)](_0x550d2a,_0xee1b8d);const _0x35db18=_0x5094d9[_0x187330(0x1fc)]({'view':_0x51b04f,'target':()=>{const _0x104f15=_0x187330,_0x1418e5=[],_0x2cf6aa=_0x4401f0[_0x104f15(0x221)]()[_0x104f15(0x21c)](_0x25cd37=>_0x25cd37[_0x104f15(0x21e)]);for(const _0x17e8ff of _0x2cf6aa)_0x1418e5[_0x104f15(0x1ae)](..._0x17e8ff[_0x104f15(0x1aa)]());return _0x317b6f(_0x121351[_0x104f15(0x217)],_0x1418e5);},'type':()=>_0x187330(0x1e5)+_0xee1b8d[_0x187330(0x1c3)][_0x187330(0x1dd)]});_0x3bd94e[_0x187330(0x1d5)](_0x550d2a,_0x35db18),_0x5094d9[_0x187330(0x190)](_0x35db18),_0x5cff27[_0x187330(0x1cd)](_0x35db18);}[_0x1b82e7(0x1b7)](_0x368906){const _0xd0bdab=_0x1b82e7,_0x4acde0=this[_0xd0bdab(0x1a8)][_0xd0bdab(0x201)][_0xd0bdab(0x1b8)](_0xd0bdab(0x212)),_0x694721=this[_0xd0bdab(0x1a8)][_0xd0bdab(0x201)][_0xd0bdab(0x1b8)](_0xd0bdab(0x1ac)),_0x2b88a7=this[_0xd0bdab(0x1e0)][_0xd0bdab(0x1b8)](_0x368906),_0x490919=_0x2b88a7[_0xd0bdab(0x1c3)],_0x1bed0d=_0x694721[_0xd0bdab(0x205)](_0x490919);_0x4acde0[_0xd0bdab(0x1a9)](_0x490919),_0x1bed0d&&_0x694721[_0xd0bdab(0x200)](_0x1bed0d),this[_0xd0bdab(0x1e0)][_0xd0bdab(0x1b1)](_0x368906),this[_0xd0bdab(0x1f0)][_0xd0bdab(0x1b1)](_0x490919),_0x2b88a7[_0xd0bdab(0x1ce)]();}[_0x1b82e7(0x204)](_0xab6b8f){const _0x2381f2=_0x1b82e7;if(!_0xab6b8f[_0x2381f2(0x21e)]||!this[_0x2381f2(0x1e0)][_0x2381f2(0x1d6)](_0xab6b8f))return;const _0x261499=this[_0x2381f2(0x1a8)][_0x2381f2(0x201)][_0x2381f2(0x1b8)](_0x2381f2(0x1ec)),_0xa4aa73=this[_0x2381f2(0x1e0)][_0x2381f2(0x1b8)](_0xab6b8f),_0x59b579=_0xab6b8f[_0x2381f2(0x221)]();_0xa4aa73[_0x2381f2(0x1c3)][_0x2381f2(0x21d)]=_0x261499[_0x2381f2(0x1a3)][_0x2381f2(0x1e4)](_0x59b579);}[_0x1b82e7(0x1ce)](){const _0x3ab45f=_0x1b82e7;for(const _0x17f618 of this[_0x3ab45f(0x1e0)][_0x3ab45f(0x1e2)]())this[_0x3ab45f(0x1b7)](_0x17f618);for(const _0x59bb80 of this[_0x3ab45f(0x203)][_0x3ab45f(0x1c9)]())_0x59bb80[_0x3ab45f(0x1cc)][_0x3ab45f(0x1ce)]();super[_0x3ab45f(0x1ce)]();}}function ae(_0x381b76){const _0x47b056=_0x1b82e7;return _0x47b056(0x198)in _0x381b76;}
|
|
@@ -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
|
-
const
|
|
23
|
+
const _0x99302=_0x1b79;(function(_0x41dfc2,_0x41398b){const _0x5c0b55=_0x1b79,_0x2b076e=_0x41dfc2();while(!![]){try{const _0x5e64cd=-parseInt(_0x5c0b55(0x19e))/0x1+-parseInt(_0x5c0b55(0x18d))/0x2*(parseInt(_0x5c0b55(0x1ab))/0x3)+parseInt(_0x5c0b55(0x194))/0x4*(parseInt(_0x5c0b55(0x18e))/0x5)+-parseInt(_0x5c0b55(0x181))/0x6*(parseInt(_0x5c0b55(0x190))/0x7)+parseInt(_0x5c0b55(0x19d))/0x8*(parseInt(_0x5c0b55(0x191))/0x9)+-parseInt(_0x5c0b55(0x18a))/0xa+parseInt(_0x5c0b55(0x19a))/0xb;if(_0x5e64cd===_0x41398b)break;else _0x2b076e['push'](_0x2b076e['shift']());}catch(_0x5b5ea2){_0x2b076e['push'](_0x2b076e['shift']());}}}(_0x80fb,0xc6333));import{ObservableMixin as _0x159cf0}from'ckeditor5/src/utils.js';function _0x80fb(){const _0x20b60a=['26995155XMJLeE','getRanges','canEditAt','72IaSrTJ','737418gvRMDv','_setPendingAction','PENDING_ACTION_SUGGESTION','_removePendingAction','commentThreadController','execute','canAccept','isEnabled','PendingActions','locale','_acceptCommand','discardSuggestion','canDiscard','6vNpJUR','247542tydbJY','change:isDirty','unbind','commands','remove','listenTo','view','destroy','stopListening','15698680pzjBaE','add','_discardCommand','1168034OLFFbl','5aPOokp','bind','77OsHYbJ','711441WGsQBG','get','acceptSuggestion','6301712lwReEN','_editor','plugins','isDirty','_pendingAction','model'];_0x80fb=function(){return _0x20b60a;};return _0x80fb();}import{getTranslation as _0x5e322d}from'../utils/common-translations.js';function _0x1b79(_0x2ba8b9,_0x1a05a5){const _0x80fb27=_0x80fb();return _0x1b79=function(_0x1b796c,_0x14afa0){_0x1b796c=_0x1b796c-0x181;let _0x3aa6c7=_0x80fb27[_0x1b796c];return _0x3aa6c7;},_0x1b79(_0x2ba8b9,_0x1a05a5);}export default class oe extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x159cf0(){constructor(_0x2c4782,_0x43f50d,_0x5a5437,_0x16f937){const _0x2bfd6e=_0x1b79;super(),this[_0x2bfd6e(0x199)]=_0x43f50d,this[_0x2bfd6e(0x187)]=_0x5a5437,this[_0x2bfd6e(0x1a2)]=_0x16f937,this[_0x2bfd6e(0x195)]=_0x2c4782,this[_0x2bfd6e(0x1a8)]=_0x2c4782[_0x2bfd6e(0x184)][_0x2bfd6e(0x192)](_0x2bfd6e(0x193)),this[_0x2bfd6e(0x18c)]=_0x2c4782[_0x2bfd6e(0x184)][_0x2bfd6e(0x192)](_0x2bfd6e(0x1a9)),this[_0x2bfd6e(0x187)][_0x2bfd6e(0x18f)](_0x2bfd6e(0x1a5))['to'](this[_0x2bfd6e(0x1a8)],this[_0x2bfd6e(0x18c)],(_0x1b81b1,_0x5e9f30)=>_0x1b81b1||_0x5e9f30),this[_0x2bfd6e(0x187)][_0x2bfd6e(0x18f)](_0x2bfd6e(0x1a4))['to'](this[_0x2bfd6e(0x1a8)],_0x2bfd6e(0x1a5),_0x5c2d0b=>_0x5c2d0b&&this[_0x2bfd6e(0x195)][_0x2bfd6e(0x199)][_0x2bfd6e(0x19c)](_0x43f50d[_0x2bfd6e(0x19b)]())),this[_0x2bfd6e(0x187)][_0x2bfd6e(0x18f)](_0x2bfd6e(0x1aa))['to'](this[_0x2bfd6e(0x18c)],_0x2bfd6e(0x1a5),_0x3685c5=>_0x3685c5&&this[_0x2bfd6e(0x195)][_0x2bfd6e(0x199)][_0x2bfd6e(0x19c)](_0x43f50d[_0x2bfd6e(0x19b)]())),this[_0x2bfd6e(0x198)]=null,_0x5a5437[_0x2bfd6e(0x197)]&&this[_0x2bfd6e(0x19f)](),this[_0x2bfd6e(0x186)](_0x5a5437,_0x2bfd6e(0x193),()=>this[_0x2bfd6e(0x193)]()),this[_0x2bfd6e(0x186)](_0x5a5437,_0x2bfd6e(0x1a9),()=>this[_0x2bfd6e(0x1a9)]()),this[_0x2bfd6e(0x186)](_0x5a5437,_0x2bfd6e(0x182),()=>{const _0x4c4be9=_0x2bfd6e;_0x5a5437[_0x4c4be9(0x197)]?this[_0x4c4be9(0x19f)]():this[_0x4c4be9(0x1a1)]();});}[_0x99302(0x193)](){const _0x401124=_0x99302;this[_0x401124(0x1a8)][_0x401124(0x1a3)](this[_0x401124(0x199)]['id']);}[_0x99302(0x1a9)](){const _0x3e079c=_0x99302;this[_0x3e079c(0x18c)][_0x3e079c(0x1a3)](this[_0x3e079c(0x199)]['id']);}[_0x99302(0x188)](){const _0x3e6f6f=_0x99302;this[_0x3e6f6f(0x187)][_0x3e6f6f(0x183)](_0x3e6f6f(0x1a5)),this[_0x3e6f6f(0x187)][_0x3e6f6f(0x183)](_0x3e6f6f(0x1a4)),this[_0x3e6f6f(0x187)][_0x3e6f6f(0x183)](_0x3e6f6f(0x1aa)),this[_0x3e6f6f(0x189)](),this[_0x3e6f6f(0x1a2)][_0x3e6f6f(0x188)](),this[_0x3e6f6f(0x198)]&&this[_0x3e6f6f(0x1a1)]();}[_0x99302(0x19f)](){const _0xd456e1=_0x99302,_0x5656db=_0x5e322d(this[_0xd456e1(0x195)][_0xd456e1(0x1a7)],_0xd456e1(0x1a0));this[_0xd456e1(0x198)]=this[_0xd456e1(0x195)][_0xd456e1(0x196)][_0xd456e1(0x192)](_0xd456e1(0x1a6))[_0xd456e1(0x18b)](_0x5656db);}[_0x99302(0x1a1)](){const _0x128eae=_0x99302;null!==this[_0x128eae(0x198)]&&this[_0x128eae(0x195)][_0x128eae(0x196)][_0x128eae(0x192)](_0x128eae(0x1a6))[_0x128eae(0x185)](this[_0x128eae(0x198)]),this[_0x128eae(0x198)]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4e70af=_0x5024;(function(_0x2aaef8,_0x4c3c69){const _0x4c64bd=_0x5024,_0x2e51ec=_0x2aaef8();while(!![]){try{const _0x21d459=-parseInt(_0x4c64bd(0x1c3))/0x1+-parseInt(_0x4c64bd(0x19f))/0x2*(-parseInt(_0x4c64bd(0x1a2))/0x3)+parseInt(_0x4c64bd(0x1aa))/0x4*(parseInt(_0x4c64bd(0x1c1))/0x5)+-parseInt(_0x4c64bd(0x1bf))/0x6*(parseInt(_0x4c64bd(0x1a5))/0x7)+-parseInt(_0x4c64bd(0x19b))/0x8+-parseInt(_0x4c64bd(0x1b7))/0x9*(-parseInt(_0x4c64bd(0x1b9))/0xa)+parseInt(_0x4c64bd(0x1b6))/0xb*(parseInt(_0x4c64bd(0x1b1))/0xc);if(_0x21d459===_0x4c3c69)break;else _0x2e51ec['push'](_0x2e51ec['shift']());}catch(_0x11103){_0x2e51ec['push'](_0x2e51ec['shift']());}}}(_0x23b9,0x2a4d4));function _0x5024(_0x17be33,_0x5a9693){const _0x23b9c4=_0x23b9();return _0x5024=function(_0x5024fd,_0x1b6d6d){_0x5024fd=_0x5024fd-0x197;let _0x4dc348=_0x23b9c4[_0x5024fd];return _0x4dc348;},_0x5024(_0x17be33,_0x5a9693);}import{View as _0x415761}from'ckeditor5/src/ui.js';function _0x23b9(){const _0x1f43d8=['cancel','isDirty','value','showInput','canAccept','addComment','editor','hasDirtyComment','removeComment','297848BkrRxc','submit','isReadOnly','fire','10qGzpgl','disableComments','editorConfig','155787ufEjEk','focus','authoredAt','7lgfJeR','_createCommentThreadInputView','assign','commentThread','disabledSubmit','491704AWbIOS','canDiscard','bind','commentsListView','_model','element','destroy','588mabqgT','commentInputView','_createCommentViews','delegate','descriptionParts','33iiTUZY','855081yKvCcJ','CommentView','30rMWcTz','isActive','commentThreadInputView','isEnabled','length','setData','2030826NhuOaM','set','5CLfnZS','locale','118775JMbRSC','_config','_localUser','updateComment'];_0x23b9=function(){return _0x1f43d8;};return _0x23b9();}export default class es extends _0x415761{constructor(_0x367b95,_0x2b904c,_0x5448da,_0x59f996){const _0x1bb624=_0x5024;super(_0x367b95),this[_0x1bb624(0x1ad)]=null,this[_0x1bb624(0x1bb)]=null,this[_0x1bb624(0x1c0)](_0x1bb624(0x1ba),!0x1),this[_0x1bb624(0x1c0)](_0x1bb624(0x1a4),_0x2b904c[_0x1bb624(0x1a4)]),this[_0x1bb624(0x1ac)](_0x1bb624(0x1a4))['to'](_0x2b904c),this[_0x1bb624(0x1c0)](_0x1bb624(0x1b5),[]),this[_0x1bb624(0x1c0)](_0x1bb624(0x1c8),!0x1),this[_0x1bb624(0x1c0)](_0x1bb624(0x1bc),!0x1),this[_0x1bb624(0x1c0)](_0x1bb624(0x1cb),!0x1),this[_0x1bb624(0x1c0)](_0x1bb624(0x1ab),!0x1),this[_0x1bb624(0x1ae)]=_0x2b904c,this[_0x1bb624(0x1c5)]=_0x5448da,this[_0x1bb624(0x1c4)]=_0x59f996,_0x59f996[_0x1bb624(0x1a0)]?this[_0x1bb624(0x1c0)](_0x1bb624(0x1bd),0x1):this[_0x1bb624(0x1b3)]();}[_0x4e70af(0x1a3)](){const _0x54a17f=_0x4e70af;this[_0x54a17f(0x1af)][_0x54a17f(0x1a3)]();}[_0x4e70af(0x1b0)](){const _0x311a36=_0x4e70af;this[_0x311a36(0x1ad)]&&this[_0x311a36(0x1ad)][_0x311a36(0x1b0)](),this[_0x311a36(0x1bb)]&&this[_0x311a36(0x1bb)][_0x311a36(0x1b0)](),super[_0x311a36(0x1b0)]();}[_0x4e70af(0x1b3)](){const _0x2ed90c=_0x4e70af,{CommentsListView:_0x3a4832}=this[_0x2ed90c(0x1c4)];this[_0x2ed90c(0x1ad)]=new _0x3a4832(this[_0x2ed90c(0x1c2)],this[_0x2ed90c(0x1ae)][_0x2ed90c(0x1a8)],Object[_0x2ed90c(0x1a7)]({'CommentView':this[_0x2ed90c(0x1c4)][_0x2ed90c(0x1b8)]},this[_0x2ed90c(0x1c4)])),this[_0x2ed90c(0x1ad)][_0x2ed90c(0x1b4)](_0x2ed90c(0x19a))['to'](this),this[_0x2ed90c(0x1ad)][_0x2ed90c(0x1b4)](_0x2ed90c(0x1c6))['to'](this),this[_0x2ed90c(0x1ad)][_0x2ed90c(0x1ac)](_0x2ed90c(0x1ba))['to'](this),this[_0x2ed90c(0x1c0)](_0x2ed90c(0x1bd),this[_0x2ed90c(0x1ad)][_0x2ed90c(0x1bd)]+0x1),this[_0x2ed90c(0x1ac)](_0x2ed90c(0x1bd))['to'](this[_0x2ed90c(0x1ad)],_0x2ed90c(0x1bd),_0x1d53cc=>_0x1d53cc+0x1),this[_0x2ed90c(0x1bb)]=this[_0x2ed90c(0x1a6)](),this['on'](_0x2ed90c(0x19a),()=>this[_0x2ed90c(0x1a3)]()),this[_0x2ed90c(0x1ac)](_0x2ed90c(0x1c8))['to'](this[_0x2ed90c(0x1ad)],_0x2ed90c(0x199),this[_0x2ed90c(0x1bb)][_0x2ed90c(0x1b2)],_0x2ed90c(0x1c9),(_0x587aee,_0x65a318)=>_0x587aee||!!_0x65a318);}[_0x4e70af(0x1a6)](){const _0x1fb55c=_0x4e70af,{CommentThreadInputView:_0x4a2f4a}=this[_0x1fb55c(0x1c4)],_0x3defc5=new _0x4a2f4a(this[_0x1fb55c(0x1c2)],this[_0x1fb55c(0x1c5)],this[_0x1fb55c(0x1c4)][_0x1fb55c(0x1a1)]),_0x48c009=_0x3defc5[_0x1fb55c(0x1b2)];return _0x3defc5[_0x1fb55c(0x1ac)](_0x1fb55c(0x1ca))['to'](this,_0x1fb55c(0x1ba),this[_0x1fb55c(0x1ae)][_0x1fb55c(0x1a8)],_0x1fb55c(0x19d),_0x48c009,_0x1fb55c(0x1c9),(_0x117fcf,_0x3f2a42,_0x50c500)=>!!_0x50c500||_0x117fcf&&!_0x3f2a42),_0x48c009['on'](_0x1fb55c(0x19c),(_0x5e2818,_0x9f638b)=>{const _0x1d0a1f=_0x1fb55c;this[_0x1d0a1f(0x19e)](_0x1d0a1f(0x197),_0x9f638b),_0x48c009[_0x1d0a1f(0x198)][_0x1d0a1f(0x1be)]('');}),_0x48c009['on'](_0x1fb55c(0x1c7),()=>this[_0x1fb55c(0x1a3)]()),_0x48c009[_0x1fb55c(0x1ac)](_0x1fb55c(0x1a9))['to'](this[_0x1fb55c(0x1ae)][_0x1fb55c(0x1a8)],_0x1fb55c(0x19d)),_0x3defc5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x41ad(_0x16e0e6,_0x564bd9){const _0x9262fd=_0x9262();return _0x41ad=function(_0x41add4,_0x47720b){_0x41add4=_0x41add4-0x15f;let _0xccdb2=_0x9262fd[_0x41add4];return _0xccdb2;},_0x41ad(_0x16e0e6,_0x564bd9);}const _0x16d3e7=_0x41ad;(function(_0x38bb3e,_0x29cb92){const _0x2affb6=_0x41ad,_0x4859c6=_0x38bb3e();while(!![]){try{const _0xb0fadd=parseInt(_0x2affb6(0x18b))/0x1*(-parseInt(_0x2affb6(0x180))/0x2)+parseInt(_0x2affb6(0x17f))/0x3+parseInt(_0x2affb6(0x1ca))/0x4+-parseInt(_0x2affb6(0x1b6))/0x5+-parseInt(_0x2affb6(0x177))/0x6+parseInt(_0x2affb6(0x191))/0x7+parseInt(_0x2affb6(0x1bc))/0x8;if(_0xb0fadd===_0x29cb92)break;else _0x4859c6['push'](_0x4859c6['shift']());}catch(_0x1ebd69){_0x4859c6['push'](_0x4859c6['shift']());}}}(_0x9262,0x6a5e0));import{getTranslation as _0x1014c2}from'../../utils/common-translations.js';import{default as _0x60a5c5}from'./basesuggestionthreadview.js';function _0x9262(){const _0x3e1abd=['setTemplate','Discard\x20suggestion','ck-suggestion-wrapper','querySelector','acceptSuggestion','getTemplate','fire','737919eDFeNo','2WZdHta','color','getExternalSuggestionNote','ck-annotation__info-time','extendTemplate','editorDestroyed','</span>','ck-suggestion--accept','@external','importWord','<span\x20class=\x22ck-suggestion-type\x22>','263128oIKBRR','div','ck-annotation','isExternal','commentThreadInputView','ck-suggestion__main','3263806FjzIbE','ck-suggestion--disabled-comments','formatDateTime','_model','canAccept','ck-suggestion__user','.ck-annotation__content-wrapper','bindTemplate','ck-suggestion__actions','description','ck-annotation__user','ck-annotation__info-name','creator','\x22></span>','getUserViewNotificationText','ck-annotation__content-wrapper','</p>','isActive','author','locale','descriptionParts','set','bind','check','canDiscard','ck-suggestion__info-name','time','EXTERNAL_IMPORT_WORD_SUGGESTION','change:description','map','discardButton','ck-suggestion-','delegate','\x22\x20title=\x22','EXTERNAL_SUGGESTION','EXTERNAL_AVATAR','ck-annotation__info','3414160NFJOcl','isEnabled','join','Accept\x20suggestion','authoredAt','children','2177920kxZCei','render','innerHTML','commentThread','ck-comment__info-time','_descriptionElement','acceptButton','content','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-suggestion','ck-suggestion__info','discardSuggestion','editorReady','<p>','2689464laKvJC','commentsListView','type','_config','cancel','split','EXTERNAL_IMPORT_WORD_AVATAR','userView','attributes','execute','createElement','push','source','ck-suggestion-wrapper--active','title','ck-annotation__main','span','_createButton','disableComments','ck-comment__external','name','ck-suggestion--discard','value','ck-annotation__actions','element','innerText','1651182sVrpqm'];_0x9262=function(){return _0x3e1abd;};return _0x9262();}import{ButtonView as _0x132b80}from'ckeditor5/src/ui.js';import{icons as _0x13aca6}from'ckeditor5/src/core.js';import{trimHtml as _0x10e827,UserView as _0x5f5881}from'ckeditor5-collaboration/src/collaboration-core.js';export default class ne extends _0x60a5c5{constructor(_0x4de2d0,_0xbad685,_0x44fed4,_0xabac){const _0x250878=_0x41ad;super(_0x4de2d0,_0xbad685,_0x44fed4,_0xabac),this[_0x250878(0x1a6)](_0x250878(0x15f),''),this[_0x250878(0x1a7)](_0x250878(0x15f))['to'](this,_0x250878(0x1a5),_0x1b6d29=>_0x1b6d29&&_0x1b6d29[0x0]?_0x1b6d29[0x0][_0x250878(0x15f)]:''),this[_0x250878(0x1a7)](_0x250878(0x19a))['to'](this,_0x250878(0x1a5),this,_0x250878(0x1a2),(_0x5d2fea,_0x1690ec)=>{const _0x489361=_0x250878;let _0xd0469a='';for(const _0x4ce8a9 of _0x5d2fea)_0xd0469a+=_0x489361(0x1c9)+ds(_0x4ce8a9[_0x489361(0x1c3)],_0x4ce8a9[_0x489361(0x181)])+_0x489361(0x1a1);return _0x1690ec?_0xd0469a:_0x10e827(_0xd0469a,{'limit':0x8c});}),this[_0x250878(0x1c1)]=null,this[_0x250878(0x1c2)]=this[_0x250878(0x16e)](_0x1014c2(_0x4de2d0,_0x250878(0x1b9)),_0x13aca6[_0x250878(0x1a8)],_0x250878(0x187),_0x250878(0x17c),'sw'),this[_0x250878(0x1c2)][_0x250878(0x1a7)](_0x250878(0x1b7))['to'](this,_0x250878(0x195)),this[_0x250878(0x1af)]=this[_0x250878(0x16e)](_0x1014c2(_0x4de2d0,_0x250878(0x179)),_0x13aca6[_0x250878(0x161)],_0x250878(0x172),_0x250878(0x1c7),'sw'),this[_0x250878(0x1af)][_0x250878(0x1a7)](_0x250878(0x1b7))['to'](this,_0x250878(0x1a9)),this[_0x250878(0x164)]=new _0x5f5881(_0x4de2d0,this[_0x250878(0x194)][_0x250878(0x1a3)],this[_0x250878(0x19f)]()),this[_0x250878(0x164)][_0x250878(0x184)]({'attributes':{'class':[_0x250878(0x196),_0x250878(0x19b)]}}),this[_0x250878(0x178)](this[_0x250878(0x17d)]());}[_0x16d3e7(0x17d)](){const _0x1f33df=_0x16d3e7,_0x4dab63=this[_0x1f33df(0x198)],_0x337646=[{'tag':_0x1f33df(0x18c),'attributes':{'class':[_0x1f33df(0x1c6),_0x1f33df(0x1b5)]},'children':[{'tag':_0x1f33df(0x16d),'children':[{'text':this[_0x1f33df(0x164)][_0x1f33df(0x171)]}],'attributes':{'class':[_0x1f33df(0x1aa),_0x1f33df(0x19c)]}},{'tag':_0x1f33df(0x1ab),'attributes':{'datetime':_0x4dab63['to'](_0x1f33df(0x1ba)),'class':[_0x1f33df(0x1c0),_0x1f33df(0x183)]},'children':[{'text':_0x4dab63['to'](_0x1f33df(0x1ba),_0x2c641e=>this[_0x1f33df(0x160)][_0x1f33df(0x193)](_0x2c641e))}]}]},{'tag':_0x1f33df(0x18c),'attributes':{'class':[_0x1f33df(0x199),_0x1f33df(0x174)]},'children':[this[_0x1f33df(0x1c2)],this[_0x1f33df(0x1af)]]},{'tag':_0x1f33df(0x18c),'attributes':{'class':[_0x1f33df(0x1a0)]}}];this[_0x1f33df(0x194)][_0x1f33df(0x18e)]&&_0x337646[_0x1f33df(0x168)]({'tag':_0x1f33df(0x18c),'attributes':{'class':[_0x1f33df(0x170)]},'children':[{'text':this[_0x1f33df(0x182)]()}]});const _0x45f5c1={'tag':_0x1f33df(0x18c),'attributes':{'class':[_0x1f33df(0x17a),_0x4dab63['if'](_0x1f33df(0x1a2),_0x1f33df(0x16a)),_0x4dab63['to'](_0x1f33df(0x15f),_0x18ac07=>_0x1f33df(0x1b0)+_0x18ac07),this[_0x1f33df(0x160)][_0x1f33df(0x16f)]&&_0x1f33df(0x192)],'data-suggestion-id':this[_0x1f33df(0x194)]['id'],'data-thread-id':this[_0x1f33df(0x194)][_0x1f33df(0x1bf)]['id'],'data-author-id':this[_0x1f33df(0x194)][_0x1f33df(0x1a3)]['id'],'tabindex':-0x1},'children':[{'tag':_0x1f33df(0x18c),'attributes':{'class':[_0x1f33df(0x1c5),_0x1f33df(0x18d)]},'children':[this[_0x1f33df(0x164)],{'tag':_0x1f33df(0x18c),'attributes':{'class':[_0x1f33df(0x190),_0x1f33df(0x16c)]},'children':_0x337646}]}]};return this[_0x1f33df(0x1cb)]&&this[_0x1f33df(0x18f)]&&(_0x45f5c1[_0x1f33df(0x1bb)][_0x1f33df(0x168)](this[_0x1f33df(0x1cb)],this[_0x1f33df(0x18f)]),this[_0x1f33df(0x1cb)][_0x1f33df(0x1b1)](_0x1f33df(0x1c8))['to'](this),this[_0x1f33df(0x1cb)][_0x1f33df(0x1b1)](_0x1f33df(0x185))['to'](this),this[_0x1f33df(0x18f)][_0x1f33df(0x1b1)](_0x1f33df(0x1c8))['to'](this),this[_0x1f33df(0x18f)][_0x1f33df(0x1b1)](_0x1f33df(0x185))['to'](this)),_0x45f5c1;}[_0x16d3e7(0x1bd)](){const _0x517f49=_0x16d3e7;super[_0x517f49(0x1bd)](),this[_0x517f49(0x1c1)]=this[_0x517f49(0x175)][_0x517f49(0x17b)](_0x517f49(0x197)),this[_0x517f49(0x1c1)][_0x517f49(0x1be)]=this[_0x517f49(0x19a)],this['on'](_0x517f49(0x1ad),(_0x426343,_0x3cc212,_0x358787)=>{const _0x3702cf=_0x517f49;this[_0x3702cf(0x1c1)][_0x3702cf(0x1be)]=_0x358787;});}[_0x16d3e7(0x16e)](_0x18f41a,_0x12010b,_0x3b4ee2,_0x512eb1,_0x5e1080){const _0xc5cb96=_0x16d3e7,_0x51bc5a=new _0x132b80(this[_0xc5cb96(0x1a4)]);return _0x51bc5a[_0xc5cb96(0x1a6)]({'label':_0x18f41a,'icon':_0x12010b,'tooltip':!0x0,'tooltipPosition':_0x5e1080}),_0x51bc5a[_0xc5cb96(0x184)]({'attributes':{'class':_0x3b4ee2}}),_0x51bc5a['on'](_0xc5cb96(0x166),()=>{const _0x3f39cc=_0xc5cb96;this[_0x3f39cc(0x17e)](_0x512eb1,this[_0x3f39cc(0x194)]['id']);}),_0x51bc5a;}[_0x16d3e7(0x182)](){const _0x51a8cf=_0x16d3e7;return _0x51a8cf(0x189)===this[_0x51a8cf(0x194)][_0x51a8cf(0x165)][_0x51a8cf(0x188)][_0x51a8cf(0x169)]?_0x1014c2(this[_0x51a8cf(0x1a4)],_0x51a8cf(0x1ac)):_0x1014c2(this[_0x51a8cf(0x1a4)],_0x51a8cf(0x1b3));}[_0x16d3e7(0x19f)](){const _0x560b18=_0x16d3e7;return this[_0x560b18(0x194)][_0x560b18(0x18e)]?_0x560b18(0x189)===this[_0x560b18(0x194)][_0x560b18(0x165)][_0x560b18(0x188)][_0x560b18(0x169)]?_0x1014c2(this[_0x560b18(0x1a4)],_0x560b18(0x163),this[_0x560b18(0x194)][_0x560b18(0x19d)][_0x560b18(0x171)]):_0x1014c2(this[_0x560b18(0x1a4)],_0x560b18(0x1b4),this[_0x560b18(0x194)][_0x560b18(0x19d)][_0x560b18(0x171)]):null;}}function ds(_0x167743,_0x1ec8a8){const _0x7257b3=_0x16d3e7;let _0x597a85='';return _0x597a85+=_0x167743[_0x7257b3(0x162)]('*')[_0x7257b3(0x1ae)]((_0x1f9377,_0x490343)=>_0x490343%0x2!=0x0?_0x7257b3(0x18a)+us(_0x1f9377)+_0x7257b3(0x186):us(_0x1f9377))[_0x7257b3(0x1b8)](''),_0x1ec8a8&&(_0x597a85+=_0x7257b3(0x1c4)+_0x1ec8a8[_0x7257b3(0x173)]+_0x7257b3(0x1b2)+_0x1ec8a8[_0x7257b3(0x16b)]+_0x7257b3(0x19e)),_0x597a85;}function us(_0x334aa8){const _0x2888ed=_0x16d3e7,_0x4734eb=document[_0x2888ed(0x167)](_0x2888ed(0x16d));return _0x4734eb[_0x2888ed(0x176)]=_0x334aa8,_0x4734eb[_0x2888ed(0x1be)];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x5e27cd,_0x28146f,_0x3bbfe9){const t=_0x5e27cd['t'];switch(_0x28146f){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',_0x3bbfe9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3bbfe9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3bbfe9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3bbfe9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3bbfe9);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',_0x3bbfe9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3bbfe9);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',_0x3bbfe9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3bbfe9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3bbfe9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3bbfe9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3bbfe9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3bbfe9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3bbfe9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3bbfe9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3bbfe9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3bbfe9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3bbfe9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3bbfe9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3bbfe9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3bbfe9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3bbfe9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3bbfe9);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'},_0x3bbfe9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3bbfe9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3bbfe9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3bbfe9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3bbfe9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3bbfe9);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'},_0x3bbfe9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3bbfe9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3bbfe9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3bbfe9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3bbfe9);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'},_0x3bbfe9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3bbfe9);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'},_0x3bbfe9);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'},_0x3bbfe9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3bbfe9);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'},_0x3bbfe9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3bbfe9);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'},_0x3bbfe9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3bbfe9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3bbfe9);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'},_0x3bbfe9);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'},_0x3bbfe9);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 _0x28146f;}}
|
|
23
|
+
export function getTranslation(_0x2cfd92,_0x58df88,_0x382df6){const t=_0x2cfd92['t'];switch(_0x58df88){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',_0x382df6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x382df6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x382df6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x382df6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x382df6);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',_0x382df6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x382df6);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',_0x382df6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x382df6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x382df6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x382df6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x382df6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x382df6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x382df6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x382df6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x382df6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x382df6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x382df6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x382df6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x382df6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x382df6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x382df6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x382df6);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'},_0x382df6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x382df6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x382df6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x382df6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x382df6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x382df6);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'},_0x382df6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x382df6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x382df6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x382df6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x382df6);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'},_0x382df6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x382df6);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'},_0x382df6);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'},_0x382df6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x382df6);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'},_0x382df6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x382df6);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'},_0x382df6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x382df6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x382df6);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'},_0x382df6);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'},_0x382df6);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 _0x58df88;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x27a2ba,_0x12a2a4){const _0x303df5=_0xf95b,_0x49b7cb=_0x27a2ba();while(!![]){try{const _0x4e5489=parseInt(_0x303df5(0xf5))/0x1*(parseInt(_0x303df5(0xde))/0x2)+parseInt(_0x303df5(0xfa))/0x3+parseInt(_0x303df5(0xfc))/0x4+parseInt(_0x303df5(0xf3))/0x5*(-parseInt(_0x303df5(0xe6))/0x6)+-parseInt(_0x303df5(0xd9))/0x7+parseInt(_0x303df5(0x100))/0x8*(parseInt(_0x303df5(0xf1))/0x9)+-parseInt(_0x303df5(0xdb))/0xa*(parseInt(_0x303df5(0xff))/0xb);if(_0x4e5489===_0x12a2a4)break;else _0x49b7cb['push'](_0x49b7cb['shift']());}catch(_0xcfbb34){_0x49b7cb['push'](_0x49b7cb['shift']());}}}(_0xfd4f,0xa0c53));export function normalizeDescription(_0x50d886){const _0x2a196a=_0xf95b;return Array[_0x2a196a(0xda)](_0x50d886)||(_0x50d886=[_0x50d886]),_0x50d886[_0x2a196a(0xf9)](_0x3befd1=>{const _0x148977=_0x2a196a,_0x28ae8a=_0x3befd1[_0x148977(0x101)][_0x148977(0xe1)](/\*/g,''),_0x307f16=_0x3befd1[_0x148977(0xea)]?_0x148977(0xeb)+_0x3befd1[_0x148977(0xea)][_0x148977(0xd7)]+']':'';return'['+_0x3befd1[_0x148977(0xe9)]+']\x20'+_0x28ae8a+_0x307f16;})[_0x2a196a(0xee)](';\x20');}export function sortSuggestions(_0x3f69bf){const _0x442208=_0xf95b;return _0x3f69bf[_0x442208(0xd6)]((_0x390b4e,_0x4136f1)=>_0x442208(0xdf)==_0x390b4e[_0x442208(0xe9)]&&_0x442208(0xdf)!=_0x4136f1[_0x442208(0xe9)]?-0x1:_0x442208(0xdf)!=_0x390b4e[_0x442208(0xe9)]&&_0x442208(0xdf)==_0x4136f1[_0x442208(0xe9)]?0x1:0x0);}export function getSelectedSuggestions(_0x4c4e61,_0x3ebcba){const _0x17e272=_0xf95b,_0x394f2a=Array[_0x17e272(0xdc)](_0x4c4e61[_0x17e272(0xf0)]()),_0x95221c=new Set();for(const _0x2394eb of _0x3ebcba)if(_0x2394eb[_0x17e272(0xe3)]){for(const _0x46cfde of _0x394f2a)for(const _0xc76a6d of _0x2394eb[_0x17e272(0xf0)]())(_0x46cfde[_0x17e272(0xf4)](_0xc76a6d)||_0x4c4e61[_0x17e272(0xed)]&&!_0x2394eb[_0x17e272(0xf8)]&&_0x2394eb[_0x17e272(0xec)]&&_0xc76a6d[_0x17e272(0xef)][_0x17e272(0xe7)](_0x46cfde[_0x17e272(0xf7)]))&&_0x95221c[_0x17e272(0xe2)](_0x2394eb);}return _0x95221c;}export function getRangesOfBlockGroups(_0x449de3,_0x529ea4){const _0x598f41=_0xf95b;let _0x886258,_0x37aadc=0x0;const _0xf47035=[],_0x4b5ff7=_0x529ea4[_0x598f41(0xfd)];for(;_0x37aadc<_0x449de3[_0x598f41(0xf2)];){const _0x140337=_0x449de3[_0x37aadc],_0x2290b6=_0x449de3[_0x37aadc+0x1];_0x886258||(_0x886258=_0x529ea4[_0x598f41(0xe4)](_0x140337)),co(_0x529ea4,_0x140337,_0x2290b6)||(_0xf47035[_0x598f41(0xfb)](_0x529ea4[_0x598f41(0xd8)](_0x886258,_0x4b5ff7[_0x598f41(0xe0)](_0x140337)?_0x529ea4[_0x598f41(0xf6)](_0x140337):_0x529ea4[_0x598f41(0xfe)](_0x140337,_0x598f41(0xef)))),_0x886258=null),_0x37aadc++;}return _0xf47035;}function _0xf95b(_0x4d9018,_0x2731f3){const _0xfd4fd7=_0xfd4f();return _0xf95b=function(_0xf95b0b,_0x2562e9){_0xf95b0b=_0xf95b0b-0xd6;let _0x3a64ce=_0xfd4fd7[_0xf95b0b];return _0x3a64ce;},_0xf95b(_0x4d9018,_0x2731f3);}function _0xfd4f(){const _0x1b07bf=['color','\x20[color\x20','next','isCollapsed','join','end','getRanges','564012pMQMDm','length','3485rjDRLe','isIntersecting','415335RRnaKL','createPositionAfter','start','isMultiRange','map','173037TbdPRu','push','3633872srAOTF','schema','createPositionAt','209GjhvnO','16tGqmLi','content','sort','value','createRange','3461129QupuWu','isArray','151390nVojZj','from','execute','2GuOoBb','deletion','isObject','replace','add','isInContent','createPositionBefore','change','570ZxdWJT','isTouching','splice','type'];_0xfd4f=function(){return _0x1b07bf;};return _0xfd4f();}function co(_0x120959,_0x1a9387,_0x2061fc){const _0x4562c5=_0xf95b;if(!_0x2061fc)return!0x1;const _0x5270d4=_0x120959[_0x4562c5(0xf6)](_0x1a9387),_0x583a93=_0x120959[_0x4562c5(0xe4)](_0x2061fc);return _0x5270d4[_0x4562c5(0xe7)](_0x583a93);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0xbaaa44,_0x535157,_0x36fca3){const _0x2f307e=_0xf95b;for(;_0x36fca3[_0x2f307e(0xf2)];){const _0x39e249=_0x36fca3[_0x2f307e(0xe8)](0x0,0x64);_0xbaaa44[_0x2f307e(0xe5)](()=>{const _0x221f4e=_0x2f307e;for(const _0x310885 of _0x39e249)_0x310885[_0x221f4e(0xe3)]&&_0x535157[_0x221f4e(0xdd)](_0x310885['id']);});}}
|