@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240605.0 → 0.0.0-nightly-20240606.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
+
function _0x5241(_0x50ab9e,_0x1a2bce){const _0x32aa0c=_0x32aa();return _0x5241=function(_0x524155,_0x33ecae){_0x524155=_0x524155-0x66;let _0x482a61=_0x32aa0c[_0x524155];return _0x482a61;},_0x5241(_0x50ab9e,_0x1a2bce);}const _0x4cda54=_0x5241;(function(_0x6d464a,_0x2ea29e){const _0x3963a6=_0x5241,_0x2f78f9=_0x6d464a();while(!![]){try{const _0x3c91b1=-parseInt(_0x3963a6(0xc3))/0x1*(-parseInt(_0x3963a6(0xab))/0x2)+parseInt(_0x3963a6(0x90))/0x3+parseInt(_0x3963a6(0xa1))/0x4+-parseInt(_0x3963a6(0x89))/0x5*(-parseInt(_0x3963a6(0xd1))/0x6)+-parseInt(_0x3963a6(0x76))/0x7+-parseInt(_0x3963a6(0xc1))/0x8+-parseInt(_0x3963a6(0x74))/0x9;if(_0x3c91b1===_0x2ea29e)break;else _0x2f78f9['push'](_0x2f78f9['shift']());}catch(_0x3a7735){_0x2f78f9['push'](_0x2f78f9['shift']());}}}(_0x32aa,0x34d95));import{Plugin as _0x27c2fb}from'ckeditor5/src/core.js';import{Collection as _0x4a6db0}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x5df35a,createDropdown as _0x5ea48e,ListSeparatorView as _0x1444b6,MenuBarMenuView as _0x142bdb,MenuBarMenuListView as _0x2248d1,MenuBarMenuListItemView as _0xe916b1,MenuBarMenuListItemButtonView as _0xcd5a95,SplitButtonView as _0x500439,ViewModel as _0x3c45ad}from'ckeditor5/src/ui.js';import{Users as _0x13ad96,getDateTimeFormatter as _0x2db1cd,getAllMarkersDomElementsSorted as _0x29ebe6}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5e2145 from'./trackchangesediting.js';import _0x504f48 from'./ui/suggestioncontroller.js';import _0x5776e0 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x18bb1f}from'./utils/common-translations.js';import _0x4be60c from'../theme/icons/track-changes.svg';export default class d extends _0x27c2fb{static get[_0x4cda54(0x7d)](){const _0xc63d61=_0x4cda54;return[_0x5e2145,_0x13ad96,_0xc63d61(0xd0),_0xc63d61(0x9c),_0xc63d61(0xdc)];}static get[_0x4cda54(0x72)](){const _0x45e1ff=_0x4cda54;return _0x45e1ff(0xe1);}constructor(_0x457e5d){const _0x4ee888=_0x4cda54;super(_0x457e5d),this[_0x4ee888(0x68)]=new Map(),this[_0x4ee888(0x97)]=new Map(),this[_0x4ee888(0x96)]=new Map(),this[_0x4ee888(0x85)]=new Map();const _0x10f1e5=this[_0x4ee888(0x7b)][_0x4ee888(0x69)];_0x10f1e5[_0x4ee888(0xce)](_0x4ee888(0x8a),_0x5776e0),_0x10f1e5[_0x4ee888(0xce)](_0x4ee888(0x75),!0x1),this[_0x4ee888(0xc6)]=_0x10f1e5[_0x4ee888(0x8d)](_0x4ee888(0x75));}[_0x4cda54(0xbd)](_0x368c1a,_0xfb0f33){const _0x5ca972=_0x4cda54;0x0===this[_0x5ca972(0x85)][_0x5ca972(0xdf)]&&setTimeout(()=>{const _0x1d4a9f=_0x5ca972;for(const [_0x4f5a02,_0x35457e]of this[_0x1d4a9f(0x85)]){const _0xd3329c=this[_0x1d4a9f(0x68)][_0x1d4a9f(0x6e)](_0x4f5a02);_0xd3329c||_0x35457e?_0xd3329c&&_0x35457e&&this[_0x1d4a9f(0xe8)](_0x4f5a02):this[_0x1d4a9f(0xf4)](_0x4f5a02);}this[_0x1d4a9f(0x85)][_0x1d4a9f(0x78)](),this[_0x1d4a9f(0x7b)][_0x1d4a9f(0xae)][_0x1d4a9f(0x8d)](_0x1d4a9f(0xdc))[_0x1d4a9f(0x67)](),this[_0x1d4a9f(0xa8)]();},0xa),this[_0x5ca972(0x85)][_0x5ca972(0xee)](_0x368c1a,_0xfb0f33);}[_0x4cda54(0x6f)](){const _0x3a212f=_0x4cda54,_0x52e9c8=this[_0x3a212f(0x7b)],_0x1ce1f2=_0x52e9c8[_0x3a212f(0xae)][_0x3a212f(0x8d)](_0x3a212f(0xcd)),_0x1d5c60=_0x52e9c8[_0x3a212f(0xae)][_0x3a212f(0x8d)](_0x3a212f(0x9c)),_0x39efb7=_0x52e9c8[_0x3a212f(0xae)][_0x3a212f(0x8d)](_0x3a212f(0xdc)),_0x3ee8f0=_0x52e9c8[_0x3a212f(0xae)][_0x3a212f(0x8d)](_0x3a212f(0xd0));this[_0x3a212f(0xcc)](),_0x39efb7[_0x3a212f(0xb2)](()=>{const _0x33ee27=_0x3a212f,_0x529265=[];for(const [_0x5f560f,_0xed6297]of Array[_0x33ee27(0x79)](this[_0x33ee27(0x68)])){const _0x1f145e=_0x5f560f[_0x33ee27(0x80)](),_0x46a316=[];for(const _0x3d07e0 of _0x1f145e){if(!_0x3d07e0[_0x33ee27(0xd8)])continue;if(_0x3d07e0[_0x33ee27(0xb6)]){_0x46a316[_0x33ee27(0xa2)](..._0x3d07e0[_0x33ee27(0xc8)]());continue;}const _0x24dcbf=_0x3d07e0[_0x33ee27(0x9b)]();if(_0x46a316[_0x33ee27(0xe9)]>0x0){const _0x49ba4c=_0x46a316[0x0][_0x33ee27(0xbf)](_0x24dcbf);if(_0x49ba4c){_0x46a316[0x0]=_0x49ba4c;continue;}}_0x46a316[_0x33ee27(0xa2)](_0x24dcbf);}_0x529265[_0x33ee27(0xa2)]([_0xed6297[_0x33ee27(0x6c)],_0x46a316]);}return _0x529265;}),this[_0x3a212f(0xc7)](_0x1ce1f2,_0x3a212f(0x95),(_0x4f8176,_0x616596)=>{const _0xe6557=_0x3a212f;this[_0xe6557(0xc7)](_0x616596,_0xe6557(0xa0),(_0x423b2a,_0x20f2f8,_0x5db610,_0x155b8a)=>{const _0x346b71=_0xe6557;_0x616596[_0x346b71(0xd8)]&&(null==_0x5db610?(this[_0x346b71(0xdd)](_0x155b8a[_0x346b71(0xe2)]),this[_0x346b71(0xbd)](_0x616596,!0x1)):(this[_0x346b71(0xdd)](_0x5db610[_0x346b71(0xe2)]),null==_0x155b8a&&this[_0x346b71(0xbd)](_0x616596,!0x0)));}),null!==_0x616596[_0xe6557(0x92)]?this[_0xe6557(0xdd)](_0x616596[_0xe6557(0xe2)]):this[_0xe6557(0xbd)](_0x616596,!0x1);}),this[_0x3a212f(0xc7)](_0x1ce1f2,_0x3a212f(0xe0),(_0x2e50ba,_0x24c3a9,_0x3003dd)=>{const _0x109ad3=_0x3a212f;this[_0x109ad3(0x91)](_0x24c3a9,_0x109ad3(0xa0)),this[_0x109ad3(0x85)][_0x109ad3(0x8e)](_0x24c3a9),this[_0x109ad3(0x68)][_0x109ad3(0x6e)](_0x24c3a9)&&this[_0x109ad3(0xe8)](_0x24c3a9),_0x3003dd&&this[_0x109ad3(0xdd)](_0x3003dd[_0x109ad3(0xe2)]);}),this[_0x3a212f(0xc7)](_0x1ce1f2,_0x3a212f(0xbe),(_0x2cbfe0,_0x1fb30e)=>{const _0x4c6ea2=_0x3a212f;this[_0x4c6ea2(0xdd)](_0x1fb30e);}),this[_0x3a212f(0xc7)](_0x1d5c60,_0x3a212f(0x66),()=>{const _0x4ff4db=_0x3a212f;this[_0x4ff4db(0xa8)]();}),this[_0x3a212f(0xc7)](_0x3ee8f0,_0x3a212f(0xe4),(_0x17fd3e,{threadId:_0x1cc400,isFromAdapter:_0x649b3a})=>{const _0x355208=_0x3a212f;if(_0x649b3a||!_0x1ce1f2[_0x355208(0x88)](_0x1cc400))return;const _0x1db20b=_0x1ce1f2[_0x355208(0xb4)](_0x1cc400);this[_0x355208(0x68)][_0x355208(0x8d)](_0x1db20b)[_0x355208(0x6c)][_0x355208(0x82)]();},{'priority':_0x3a212f(0x7c)});}[_0x4cda54(0xa8)](){const _0x4e0eb3=_0x4cda54,_0x20411a=this[_0x4e0eb3(0x7b)][_0x4e0eb3(0xae)][_0x4e0eb3(0x8d)](_0x4e0eb3(0x9c)),_0x36e43c=this[_0x4e0eb3(0x7b)][_0x4e0eb3(0xae)][_0x4e0eb3(0x8d)](_0x4e0eb3(0xcd)),_0x51c7bf=Array[_0x4e0eb3(0x79)](_0x20411a[_0x4e0eb3(0xd2)],_0x4602d1=>_0x4602d1[_0x4e0eb3(0x7f)])[_0x4e0eb3(0x9a)](_0x2eb6ef=>this[_0x4e0eb3(0x97)][_0x4e0eb3(0x6e)](_0x2eb6ef)),_0x1900bc=[];for(const _0x57730b of _0x51c7bf){const _0x583319=this[_0x4e0eb3(0x97)][_0x4e0eb3(0x8d)](_0x57730b)[_0x4e0eb3(0xcb)][_0x4e0eb3(0x80)]();_0x1900bc[_0x4e0eb3(0xa2)](..._0x583319[_0x4e0eb3(0xa7)]((_0x371167,_0xdbb265)=>[..._0x371167,..._0xdbb265[_0x4e0eb3(0xea)]()],[]));}_0x36e43c[_0x4e0eb3(0xeb)]=_0x1900bc;}[_0x4cda54(0xcc)](){const _0x4d4e5b=_0x4cda54,_0x58af65=this[_0x4d4e5b(0x7b)],_0x1b5371=_0x58af65[_0x4d4e5b(0x94)],_0x3c9617=_0x18bb1f(_0x1b5371,_0x4d4e5b(0xf2)),_0x1c6ac0=new _0x4a6db0([{'type':_0x4d4e5b(0xd7),'model':new _0x3c45ad({'withText':!0x0,'label':_0x3c9617,'commandName':_0x4d4e5b(0x98),'role':_0x4d4e5b(0xc5)})},{'type':_0x4d4e5b(0x77)},{'type':_0x4d4e5b(0x87),'model':new _0x3c45ad({'withText':!0x0,'label':_0x18bb1f(_0x1b5371,_0x4d4e5b(0x6b)),'commandName':_0x4d4e5b(0xb1),'role':_0x4d4e5b(0xb3)})},{'type':_0x4d4e5b(0x87),'model':new _0x3c45ad({'withText':!0x0,'label':_0x18bb1f(_0x1b5371,_0x4d4e5b(0xcf)),'commandName':_0x4d4e5b(0xb9),'role':_0x4d4e5b(0xb3)})},{'type':_0x4d4e5b(0x87),'model':new _0x3c45ad({'withText':!0x0,'label':_0x18bb1f(_0x1b5371,_0x4d4e5b(0xdb)),'commandName':_0x4d4e5b(0xa6),'role':_0x4d4e5b(0xb3)})},{'type':_0x4d4e5b(0x87),'model':new _0x3c45ad({'withText':!0x0,'label':_0x18bb1f(_0x1b5371,_0x4d4e5b(0xb7)),'commandName':_0x4d4e5b(0xd9),'role':_0x4d4e5b(0xb3)})}]);for(const _0x2dd098 of _0x1c6ac0)if(ae(_0x2dd098)){const _0x54a326=_0x58af65[_0x4d4e5b(0x84)][_0x4d4e5b(0x8d)](_0x2dd098[_0x4d4e5b(0xcb)][_0x4d4e5b(0xba)]);_0x2dd098[_0x4d4e5b(0xcb)][_0x4d4e5b(0xf1)](_0x4d4e5b(0xe7),_0x4d4e5b(0xec))['to'](_0x54a326,_0x4d4e5b(0x8f),_0x4d4e5b(0xec));}_0x58af65['ui'][_0x4d4e5b(0xde)][_0x4d4e5b(0xbb)](_0x4d4e5b(0x98),_0x44fd00=>this[_0x4d4e5b(0xf3)](_0x44fd00,_0x1c6ac0,_0x3c9617)),_0x58af65['ui'][_0x4d4e5b(0xde)][_0x4d4e5b(0xbb)](_0x4d4e5b(0x9e),_0x4918b3=>this[_0x4d4e5b(0xef)](_0x4918b3,_0x1c6ac0,_0x3c9617));}[_0x4cda54(0xf3)](_0x3ea006,_0x477966,_0x2397fe){const _0x5d4791=_0x4cda54,_0x102137=_0x5ea48e(_0x3ea006,_0x500439),_0x5f1ff1=this[_0x5d4791(0x7b)][_0x5d4791(0x84)][_0x5d4791(0x8d)](_0x5d4791(0x98));_0x102137[_0x5d4791(0x99)][_0x5d4791(0xee)]({'tooltip':_0x2397fe,'label':_0x2397fe,'icon':_0x4be60c}),_0x102137[_0x5d4791(0x99)][_0x5d4791(0xf1)](_0x5d4791(0xe7))['to'](_0x5f1ff1,_0x5d4791(0x8f)),_0x102137[_0x5d4791(0x99)]['on'](_0x5d4791(0xb5),()=>{const _0x4a231a=_0x5d4791;_0x5f1ff1[_0x4a231a(0xb5)](),this[_0x4a231a(0x7b)][_0x4a231a(0xbc)][_0x4a231a(0x6c)][_0x4a231a(0x82)]();}),_0x5df35a(_0x102137,_0x477966,{'role':_0x5d4791(0x81)});const _0x244c54=[];for(const _0x150b7a of _0x477966)ae(_0x150b7a)&&_0x244c54[_0x5d4791(0xa2)](this[_0x5d4791(0x7b)][_0x5d4791(0x84)][_0x5d4791(0x8d)](_0x150b7a[_0x5d4791(0xcb)][_0x5d4791(0xba)]));const _0x20a8b1=_0x102137[_0x5d4791(0x99)];return _0x20a8b1[_0x5d4791(0xa4)][_0x5d4791(0xaf)](_0x5d4791(0xec)),_0x20a8b1[_0x5d4791(0x71)][_0x5d4791(0xaf)](_0x5d4791(0xec)),_0x20a8b1[_0x5d4791(0xa4)][_0x5d4791(0xf1)](_0x5d4791(0xec))['to'](_0x5f1ff1,_0x5d4791(0xec)),_0x20a8b1[_0x5d4791(0x71)][_0x5d4791(0xf1)](_0x5d4791(0xec))[_0x5d4791(0x6a)](_0x244c54,_0x5d4791(0xec),(..._0x3ff2c3)=>_0x3ff2c3[_0x5d4791(0x70)](_0x5b3a40=>_0x5b3a40)),_0x102137['on'](_0x5d4791(0xb5),_0x3685a1=>{const _0x5c337e=_0x5d4791;this[_0x5c337e(0x7b)][_0x5c337e(0xb5)](_0x3685a1[_0x5c337e(0x93)][_0x5c337e(0xba)]),this[_0x5c337e(0x7b)][_0x5c337e(0xbc)][_0x5c337e(0x6c)][_0x5c337e(0x82)]();}),_0x102137;}[_0x4cda54(0xef)](_0xa42b51,_0x265ccf,_0x2702d7){const _0x2be685=_0x4cda54,_0x311f28=new _0x142bdb(_0xa42b51),_0x2a01f7=this[_0x2be685(0x7b)][_0x2be685(0x84)][_0x2be685(0x8d)](_0x2be685(0x98));_0x311f28[_0x2be685(0x99)][_0x2be685(0xee)]({'label':_0x2702d7,'icon':_0x4be60c});const _0x4f432c=new _0x2248d1(_0xa42b51);for(const _0x596c2e of _0x265ccf){if(_0x2be685(0x77)==_0x596c2e[_0x2be685(0x9f)]){_0x4f432c[_0x2be685(0xb8)][_0x2be685(0xbb)](new _0x1444b6(_0xa42b51));continue;}const _0x15d756=new _0xe916b1(_0xa42b51,_0x311f28),_0x4b1e2d=new _0xcd5a95(_0xa42b51),_0x5e7ce5=_0x596c2e[_0x2be685(0xcb)];_0x4b1e2d[_0x2be685(0xf1)](...Object[_0x2be685(0x6d)](_0x5e7ce5))['to'](_0x5e7ce5),_0x4b1e2d[_0x2be685(0xd4)](_0x2be685(0xb5))['to'](_0x311f28),_0x4b1e2d['on'](_0x2be685(0xb5),()=>{const _0x1a71e2=_0x2be685;this[_0x1a71e2(0x7b)][_0x1a71e2(0xb5)](_0x5e7ce5[_0x1a71e2(0xba)]),this[_0x1a71e2(0x7b)][_0x1a71e2(0xbc)][_0x1a71e2(0x6c)][_0x1a71e2(0x82)]();}),_0x15d756[_0x2be685(0x8c)][_0x2be685(0xbb)](_0x4b1e2d),_0x4f432c[_0x2be685(0xb8)][_0x2be685(0xbb)](_0x15d756);}return _0x311f28[_0x2be685(0xf1)](_0x2be685(0xec))['to'](_0x2a01f7,_0x2be685(0xec)),_0x311f28[_0x2be685(0xe6)][_0x2be685(0x8c)][_0x2be685(0xbb)](_0x4f432c),_0x311f28;}[_0x4cda54(0xf4)](_0xe93d7f){const _0x370fd1=_0x4cda54,_0x18f63b=this[_0x370fd1(0x7b)],_0x5d7606=_0x18f63b[_0x370fd1(0x69)],_0x357353=_0x18f63b[_0x370fd1(0xae)][_0x370fd1(0x8d)](_0x370fd1(0x9c)),_0x18caf9=_0x18f63b[_0x370fd1(0xae)][_0x370fd1(0x8d)](_0x370fd1(0xd0)),_0x5bd864=_0x18f63b[_0x370fd1(0xae)][_0x370fd1(0x8d)](_0x370fd1(0xdc)),_0x3d6c63=_0x18f63b[_0x370fd1(0xae)][_0x370fd1(0x8d)](_0x13ad96)['me'],_0x5f4ca4=_0x5d7606[_0x370fd1(0x8d)](_0x370fd1(0x98))[_0x370fd1(0xa3)],{CommentsListView:_0x52b68e,CommentThreadInputView:_0x50539f}=_0x18f63b[_0x370fd1(0xae)][_0x370fd1(0x8d)](_0x370fd1(0xe5));let _0x487572,_0x28e766;this[_0x370fd1(0x96)][_0x370fd1(0x6e)](_0xe93d7f['id'])?(_0x28e766=this[_0x370fd1(0x96)][_0x370fd1(0x8d)](_0xe93d7f['id']),_0x487572=_0x28e766[_0x370fd1(0xf5)]):(_0x487572=new _0x5f4ca4(_0x18f63b[_0x370fd1(0x94)],_0xe93d7f,_0x3d6c63,{'disableComments':this[_0x370fd1(0xc6)],'editorConfig':_0x5d7606[_0x370fd1(0x8d)](_0x370fd1(0xa5)),'maxCommentsWhenCollapsed':_0x5d7606[_0x370fd1(0x8d)](_0x370fd1(0xda)),'maxThreadTotalWeight':_0x5d7606[_0x370fd1(0x8d)](_0x370fd1(0xac)),'maxCommentCharsWhenCollapsed':_0x5d7606[_0x370fd1(0x8d)](_0x370fd1(0xa9)),'formatDateTime':_0x2db1cd(_0x5d7606[_0x370fd1(0x8d)](_0x370fd1(0x94))),'CommentView':_0x5d7606[_0x370fd1(0x8d)](_0x370fd1(0xb0))[_0x370fd1(0xd5)],'CommentsListView':_0x52b68e,'CommentThreadInputView':_0x50539f}),_0x487572[_0x370fd1(0xca)]['on'](_0x370fd1(0xb5),()=>{const _0x3d1672=_0x370fd1;_0x18f63b[_0x3d1672(0xbc)][_0x3d1672(0x6c)][_0x3d1672(0x82)]();}),_0x487572[_0x370fd1(0x73)]['on'](_0x370fd1(0xb5),()=>{const _0x10d171=_0x370fd1;_0x18f63b[_0x10d171(0xbc)][_0x10d171(0x6c)][_0x10d171(0x82)]();}),_0x28e766=_0x357353[_0x370fd1(0xad)](this[_0x370fd1(0x7b)][_0x370fd1(0x94)],_0x487572),_0x28e766[_0x370fd1(0xf1)](_0x370fd1(0xed))['to'](_0x487572,_0x370fd1(0xed)),_0x28e766[_0x370fd1(0xf1)](_0x370fd1(0xe9))['to'](_0x487572),_0x28e766[_0x370fd1(0xf1)](_0x370fd1(0x9f))['to'](_0x487572,_0x370fd1(0x9f),_0x1437b1=>_0x370fd1(0xc4)+_0x1437b1),this[_0x370fd1(0x96)][_0x370fd1(0xee)](_0xe93d7f['id'],_0x28e766));const _0x57e27a=_0x18caf9[_0x370fd1(0x83)](_0xe93d7f[_0x370fd1(0xd3)],_0x487572),_0x4f02ef=new _0x504f48(_0x18f63b,_0xe93d7f,_0x487572,_0x57e27a),_0x1822e7=_0xe93d7f[_0x370fd1(0x80)]()[_0x370fd1(0x9a)](_0x4bd0c8=>_0x4bd0c8[_0x370fd1(0xd8)]);_0x487572[_0x370fd1(0x7a)]=_0x18f63b[_0x370fd1(0xae)][_0x370fd1(0x8d)](_0x370fd1(0xcd))[_0x370fd1(0xaa)][_0x370fd1(0xe3)](_0x1822e7),this[_0x370fd1(0x68)][_0x370fd1(0xee)](_0xe93d7f,_0x4f02ef),this[_0x370fd1(0x97)][_0x370fd1(0xee)](_0x487572,_0x4f02ef);const _0x2eb596=_0x357353[_0x370fd1(0xc9)]({'view':_0x28e766,'target':()=>{const _0xf0e23a=_0x370fd1,_0x51e5b8=[],_0x22b7b4=_0xe93d7f[_0xf0e23a(0x80)]()[_0xf0e23a(0x9a)](_0x57c8d1=>_0x57c8d1[_0xf0e23a(0xd8)]);for(const _0x4c647d of _0x22b7b4)_0x51e5b8[_0xf0e23a(0xa2)](..._0x4c647d[_0xf0e23a(0xc2)]());return _0x29ebe6(_0x18f63b[_0xf0e23a(0xbc)],_0x51e5b8);},'type':()=>_0x370fd1(0xc4)+_0x4f02ef[_0x370fd1(0x6c)][_0x370fd1(0x9f)]});_0x18caf9[_0x370fd1(0x7e)](_0x487572,_0x2eb596),_0x357353[_0x370fd1(0xbb)](_0x2eb596),_0x5bd864[_0x370fd1(0xd6)](_0x2eb596);}[_0x4cda54(0xe8)](_0x1614c4){const _0x4cea73=_0x4cda54,_0x44f330=this[_0x4cea73(0x7b)][_0x4cea73(0xae)][_0x4cea73(0x8d)](_0x4cea73(0xd0)),_0x2a66a5=this[_0x4cea73(0x7b)][_0x4cea73(0xae)][_0x4cea73(0x8d)](_0x4cea73(0x9c)),_0x15ce31=this[_0x4cea73(0x68)][_0x4cea73(0x8d)](_0x1614c4),_0x1f8206=_0x15ce31[_0x4cea73(0x6c)],_0x23386d=_0x2a66a5[_0x4cea73(0xc0)](_0x1f8206);_0x44f330[_0x4cea73(0xf0)](_0x1f8206),_0x23386d&&_0x2a66a5[_0x4cea73(0x86)](_0x23386d),this[_0x4cea73(0x68)][_0x4cea73(0x8e)](_0x1614c4),this[_0x4cea73(0x97)][_0x4cea73(0x8e)](_0x1f8206),_0x15ce31[_0x4cea73(0x8b)]();}[_0x4cda54(0xdd)](_0x472b7b){const _0x3debf0=_0x4cda54;if(!_0x472b7b[_0x3debf0(0xd8)]||!this[_0x3debf0(0x68)][_0x3debf0(0x6e)](_0x472b7b))return;const _0xafb1cb=this[_0x3debf0(0x7b)][_0x3debf0(0xae)][_0x3debf0(0x8d)](_0x3debf0(0xcd)),_0x5f3bc7=this[_0x3debf0(0x68)][_0x3debf0(0x8d)](_0x472b7b),_0x26ed51=_0x472b7b[_0x3debf0(0x80)]();_0x5f3bc7[_0x3debf0(0x6c)][_0x3debf0(0x7a)]=_0xafb1cb[_0x3debf0(0xaa)][_0x3debf0(0xe3)](_0x26ed51);}[_0x4cda54(0x8b)](){const _0x226eb4=_0x4cda54;for(const _0x4f36e3 of this[_0x226eb4(0x68)][_0x226eb4(0x6d)]())this[_0x226eb4(0xe8)](_0x4f36e3);for(const _0x2a0597 of this[_0x226eb4(0x96)][_0x226eb4(0x9d)]())_0x2a0597[_0x226eb4(0xf5)][_0x226eb4(0x8b)]();super[_0x226eb4(0x8b)]();}}function ae(_0x21cfd6){const _0xda3277=_0x4cda54;return _0xda3277(0xcb)in _0x21cfd6;}function _0x32aa(){const _0xb6ffe9=['_handleSuggestionControllerDelayed','suggestionChanged','getJoined','getByInnerView','2542248ZSSApO','getMarkers','53309yFpOQh','suggestion-','menuitemcheckbox','_disableComments','listenTo','getRanges','createAnnotation','acceptButton','model','_addUIComponentsToFactory','TrackChangesEditing','define','Accept\x20all\x20selected\x20suggestions','CommentsRepository','6HfXSTt','activeAnnotations','commentThread','delegate','CommentView','registerAnnotation','switchbutton','isInContent','discardSelectedSuggestions','comments.maxCommentsWhenCollapsed','Discard\x20all\x20suggestions','EditorAnnotations','_updateController','componentFactory','size','suggestionUnloaded','TrackChangesUI','head','getDescriptions','addComment','CommentsUI','panelView','isOn','_destroyController','length','getMarkerNames','activeMarkers','isEnabled','isDirty','set','_createMenuBarMenu','_unbindEditors','bind','Track\x20changes','_createToolbarButton','_initializeController','mainView','change:activeAnnotations','refreshSelectedViews','_suggestionToController','config','toMany','Accept\x20all\x20suggestions','view','keys','has','init','some','arrowView','pluginName','discardButton','968157vNribZ','trackChanges.disableComments','1469748TERXmW','separator','clear','from','descriptionParts','editor','lowest','requires','_bindAnnotationToEditors','innerView','getAllAdjacentSuggestions','menu','focus','createCommentThreadController','commands','_handleControllerBuffer','remove','button','hasSuggestion','45805iokvWY','trackChanges.SuggestionThreadView','destroy','children','get','delete','value','687375JjEuAv','stopListening','previous','source','locale','suggestionLoaded','_annotationViews','_viewToController','trackChanges','buttonView','filter','getFirstRange','Annotations','values','menuBar:trackChanges','type','change:previous','1174588AeFEDR','push','SuggestionThreadView','actionView','comments.editorConfig','discardAllSuggestions','reduce','_refreshActiveMarkers','comments.maxCommentCharsWhenCollapsed','descriptionFactory','12ElIuTp','comments.maxThreadTotalWeight','createAnnotationView','plugins','unbind','comments','acceptAllSuggestions','addSourceCollector','menuitem','getSuggestion','execute','isMultiRange','Discard\x20all\x20selected\x20suggestions','items','acceptSelectedSuggestions','commandName','add','editing'];_0x32aa=function(){return _0xb6ffe9;};return _0x32aa();}
|
|
@@ -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 _0x1bfda7=_0x2ce7;(function(_0x1ad57d,_0xf5d2bf){const _0x8702cb=_0x2ce7,_0x25487f=_0x1ad57d();while(!![]){try{const _0x50873a=-parseInt(_0x8702cb(0x1e7))/0x1*(parseInt(_0x8702cb(0x1e1))/0x2)+parseInt(_0x8702cb(0x20b))/0x3*(parseInt(_0x8702cb(0x209))/0x4)+parseInt(_0x8702cb(0x1f5))/0x5*(-parseInt(_0x8702cb(0x1fc))/0x6)+parseInt(_0x8702cb(0x1e0))/0x7+parseInt(_0x8702cb(0x1ff))/0x8*(-parseInt(_0x8702cb(0x1f9))/0x9)+parseInt(_0x8702cb(0x1ef))/0xa+-parseInt(_0x8702cb(0x1e5))/0xb*(-parseInt(_0x8702cb(0x1f1))/0xc);if(_0x50873a===_0xf5d2bf)break;else _0x25487f['push'](_0x25487f['shift']());}catch(_0x5dd6d7){_0x25487f['push'](_0x25487f['shift']());}}}(_0x1c75,0x8886c));import{ObservableMixin as _0x1af6fc}from'ckeditor5/src/utils.js';import{getTranslation as _0x293d73}from'../utils/common-translations.js';function _0x2ce7(_0x1b2e47,_0x3c09c4){const _0x1c7531=_0x1c75();return _0x2ce7=function(_0x2ce72c,_0x572304){_0x2ce72c=_0x2ce72c-0x1e0;let _0x23a118=_0x1c7531[_0x2ce72c];return _0x23a118;},_0x2ce7(_0x1b2e47,_0x3c09c4);}function _0x1c75(){const _0x273eed=['execute','remove','change:isDirty','4nJWMSG','plugins','944904WZSbxD','2911377eGusub','2eHufFJ','model','view','PENDING_ACTION_SUGGESTION','9660585jBGpoH','acceptSuggestion','702740RDWvIm','listenTo','destroy','unbind','canDiscard','_editor','_pendingAction','PendingActions','4586590OFMcjw','isEnabled','12eIgvFF','canAccept','_acceptCommand','stopListening','5nNpPLJ','bind','discardSuggestion','_setPendingAction','9XztYRG','commentThreadController','commands','932868ShTAgR','get','_removePendingAction','5202744oxqnbm','isDirty','_discardCommand','locale','getRanges','add','canEditAt'];_0x1c75=function(){return _0x273eed;};return _0x1c75();}export default class oe extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1af6fc(){constructor(_0x5777bc,_0x139474,_0x1afaef,_0x3e756c){const _0x470ff7=_0x2ce7;super(),this[_0x470ff7(0x1e2)]=_0x139474,this[_0x470ff7(0x1e3)]=_0x1afaef,this[_0x470ff7(0x1fa)]=_0x3e756c,this[_0x470ff7(0x1ec)]=_0x5777bc,this[_0x470ff7(0x1f3)]=_0x5777bc[_0x470ff7(0x1fb)][_0x470ff7(0x1fd)](_0x470ff7(0x1e6)),this[_0x470ff7(0x201)]=_0x5777bc[_0x470ff7(0x1fb)][_0x470ff7(0x1fd)](_0x470ff7(0x1f7)),this[_0x470ff7(0x1e3)][_0x470ff7(0x1f6)](_0x470ff7(0x1f0))['to'](this[_0x470ff7(0x1f3)],this[_0x470ff7(0x201)],(_0x3048c5,_0x268781)=>_0x3048c5||_0x268781),this[_0x470ff7(0x1e3)][_0x470ff7(0x1f6)](_0x470ff7(0x1f2))['to'](this[_0x470ff7(0x1f3)],_0x470ff7(0x1f0),_0x15a614=>_0x15a614&&this[_0x470ff7(0x1ec)][_0x470ff7(0x1e2)][_0x470ff7(0x205)](_0x139474[_0x470ff7(0x203)]())),this[_0x470ff7(0x1e3)][_0x470ff7(0x1f6)](_0x470ff7(0x1eb))['to'](this[_0x470ff7(0x201)],_0x470ff7(0x1f0),_0x2d6dc6=>_0x2d6dc6&&this[_0x470ff7(0x1ec)][_0x470ff7(0x1e2)][_0x470ff7(0x205)](_0x139474[_0x470ff7(0x203)]())),this[_0x470ff7(0x1ed)]=null,_0x1afaef[_0x470ff7(0x200)]&&this[_0x470ff7(0x1f8)](),this[_0x470ff7(0x1e8)](_0x1afaef,_0x470ff7(0x1e6),()=>this[_0x470ff7(0x1e6)]()),this[_0x470ff7(0x1e8)](_0x1afaef,_0x470ff7(0x1f7),()=>this[_0x470ff7(0x1f7)]()),this[_0x470ff7(0x1e8)](_0x1afaef,_0x470ff7(0x208),()=>{const _0x50566c=_0x470ff7;_0x1afaef[_0x50566c(0x200)]?this[_0x50566c(0x1f8)]():this[_0x50566c(0x1fe)]();});}[_0x1bfda7(0x1e6)](){const _0x5a31bb=_0x1bfda7;this[_0x5a31bb(0x1f3)][_0x5a31bb(0x206)](this[_0x5a31bb(0x1e2)]['id']);}[_0x1bfda7(0x1f7)](){const _0x34556a=_0x1bfda7;this[_0x34556a(0x201)][_0x34556a(0x206)](this[_0x34556a(0x1e2)]['id']);}[_0x1bfda7(0x1e9)](){const _0x8ef735=_0x1bfda7;this[_0x8ef735(0x1e3)][_0x8ef735(0x1ea)](_0x8ef735(0x1f0)),this[_0x8ef735(0x1e3)][_0x8ef735(0x1ea)](_0x8ef735(0x1f2)),this[_0x8ef735(0x1e3)][_0x8ef735(0x1ea)](_0x8ef735(0x1eb)),this[_0x8ef735(0x1f4)](),this[_0x8ef735(0x1fa)][_0x8ef735(0x1e9)](),this[_0x8ef735(0x1ed)]&&this[_0x8ef735(0x1fe)]();}[_0x1bfda7(0x1f8)](){const _0x41097f=_0x1bfda7,_0x4a6c1c=_0x293d73(this[_0x41097f(0x1ec)][_0x41097f(0x202)],_0x41097f(0x1e4));this[_0x41097f(0x1ed)]=this[_0x41097f(0x1ec)][_0x41097f(0x20a)][_0x41097f(0x1fd)](_0x41097f(0x1ee))[_0x41097f(0x204)](_0x4a6c1c);}[_0x1bfda7(0x1fe)](){const _0x577a6a=_0x1bfda7;null!==this[_0x577a6a(0x1ed)]&&this[_0x577a6a(0x1ec)][_0x577a6a(0x20a)][_0x577a6a(0x1fd)](_0x577a6a(0x1ee))[_0x577a6a(0x207)](this[_0x577a6a(0x1ed)]),this[_0x577a6a(0x1ed)]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x13f0(_0x114aa2,_0x47645f){const _0x1f1423=_0x1f14();return _0x13f0=function(_0x13f014,_0x58f9f3){_0x13f014=_0x13f014-0xec;let _0x20da9=_0x1f1423[_0x13f014];return _0x20da9;},_0x13f0(_0x114aa2,_0x47645f);}const _0x10e1da=_0x13f0;(function(_0x1b6f1f,_0x58541c){const _0x55636c=_0x13f0,_0x51c621=_0x1b6f1f();while(!![]){try{const _0x2591a4=parseInt(_0x55636c(0x11a))/0x1*(parseInt(_0x55636c(0x112))/0x2)+-parseInt(_0x55636c(0xf2))/0x3+-parseInt(_0x55636c(0x119))/0x4*(-parseInt(_0x55636c(0xff))/0x5)+-parseInt(_0x55636c(0xf9))/0x6*(-parseInt(_0x55636c(0xef))/0x7)+-parseInt(_0x55636c(0xf6))/0x8*(parseInt(_0x55636c(0xf7))/0x9)+parseInt(_0x55636c(0x11d))/0xa*(-parseInt(_0x55636c(0x116))/0xb)+parseInt(_0x55636c(0x10c))/0xc;if(_0x2591a4===_0x58541c)break;else _0x51c621['push'](_0x51c621['shift']());}catch(_0x9e39ad){_0x51c621['push'](_0x51c621['shift']());}}}(_0x1f14,0xcfb39));import{View as _0x105787}from'ckeditor5/src/ui.js';export default class es extends _0x105787{constructor(_0x1c8784,_0x4dc5c8,_0x2191e8,_0x4bb3db){const _0x4bc900=_0x13f0;super(_0x1c8784),this[_0x4bc900(0x120)]=null,this[_0x4bc900(0xf5)]=null,this[_0x4bc900(0x103)](_0x4bc900(0x102),!0x1),this[_0x4bc900(0x103)](_0x4bc900(0xf1),_0x4dc5c8[_0x4bc900(0xf1)]),this[_0x4bc900(0x10a)](_0x4bc900(0xf1))['to'](_0x4dc5c8),this[_0x4bc900(0x103)](_0x4bc900(0x118),[]),this[_0x4bc900(0x103)](_0x4bc900(0x108),!0x1),this[_0x4bc900(0x103)](_0x4bc900(0x106),!0x1),this[_0x4bc900(0x103)](_0x4bc900(0x11c),!0x1),this[_0x4bc900(0x103)](_0x4bc900(0xf3),!0x1),this[_0x4bc900(0x104)]=_0x4dc5c8,this[_0x4bc900(0x105)]=_0x2191e8,this[_0x4bc900(0x10b)]=_0x4bb3db,_0x4bb3db[_0x4bc900(0xf8)]?this[_0x4bc900(0x103)](_0x4bc900(0xf4),0x1):this[_0x4bc900(0x101)]();}[_0x10e1da(0x10e)](){const _0x2b19a3=_0x10e1da;this[_0x2b19a3(0x11f)][_0x2b19a3(0x10e)]();}[_0x10e1da(0x107)](){const _0x316788=_0x10e1da;this[_0x316788(0x120)]&&this[_0x316788(0x120)][_0x316788(0x107)](),this[_0x316788(0xf5)]&&this[_0x316788(0xf5)][_0x316788(0x107)](),super[_0x316788(0x107)]();}[_0x10e1da(0x101)](){const _0x3bfac1=_0x10e1da,{CommentsListView:_0x1b760b}=this[_0x3bfac1(0x10b)];this[_0x3bfac1(0x120)]=new _0x1b760b(this[_0x3bfac1(0x117)],this[_0x3bfac1(0x104)][_0x3bfac1(0xee)],Object[_0x3bfac1(0x111)]({'CommentView':this[_0x3bfac1(0x10b)][_0x3bfac1(0xed)]},this[_0x3bfac1(0x10b)])),this[_0x3bfac1(0x120)][_0x3bfac1(0x110)](_0x3bfac1(0x100))['to'](this),this[_0x3bfac1(0x120)][_0x3bfac1(0x110)](_0x3bfac1(0xfb))['to'](this),this[_0x3bfac1(0x120)][_0x3bfac1(0x10a)](_0x3bfac1(0x102))['to'](this),this[_0x3bfac1(0x103)](_0x3bfac1(0xf4),this[_0x3bfac1(0x120)][_0x3bfac1(0xf4)]+0x1),this[_0x3bfac1(0x10a)](_0x3bfac1(0xf4))['to'](this[_0x3bfac1(0x120)],_0x3bfac1(0xf4),_0x89711d=>_0x89711d+0x1),this[_0x3bfac1(0xf5)]=this[_0x3bfac1(0x109)](),this['on'](_0x3bfac1(0x100),()=>this[_0x3bfac1(0x10e)]()),this[_0x3bfac1(0x10a)](_0x3bfac1(0x108))['to'](this[_0x3bfac1(0x120)],_0x3bfac1(0xec),this[_0x3bfac1(0xf5)][_0x3bfac1(0x113)],_0x3bfac1(0x115),(_0x548736,_0x1702dd)=>_0x548736||!!_0x1702dd);}[_0x10e1da(0x109)](){const _0x50c70d=_0x10e1da,{CommentThreadInputView:_0x330739}=this[_0x50c70d(0x10b)],_0x2b6e78=new _0x330739(this[_0x50c70d(0x117)],this[_0x50c70d(0x105)],this[_0x50c70d(0x10b)][_0x50c70d(0x114)]),_0x2b5112=_0x2b6e78[_0x50c70d(0x113)];return _0x2b6e78[_0x50c70d(0x10a)](_0x50c70d(0xfa))['to'](this,_0x50c70d(0x102),this[_0x50c70d(0x104)][_0x50c70d(0xee)],_0x50c70d(0x10f),_0x2b5112,_0x50c70d(0x115),(_0x4533e2,_0x5b8f87,_0x11e2fa)=>!!_0x11e2fa||_0x4533e2&&!_0x5b8f87),_0x2b5112['on'](_0x50c70d(0xfc),(_0x3fde51,_0x407d40)=>{const _0x2d6618=_0x50c70d;this[_0x2d6618(0xfd)](_0x2d6618(0x11e),_0x407d40),_0x2b5112[_0x2d6618(0xf0)][_0x2d6618(0x11b)]('');}),_0x2b5112['on'](_0x50c70d(0xfe),()=>this[_0x50c70d(0x10e)]()),_0x2b5112[_0x50c70d(0x10a)](_0x50c70d(0x10d))['to'](this[_0x50c70d(0x104)][_0x50c70d(0xee)],_0x50c70d(0x10f)),_0x2b6e78;}}function _0x1f14(){const _0x6f7417=['showInput','updateComment','submit','fire','cancel','180bsDxds','removeComment','_createCommentViews','isActive','set','_model','_localUser','isEnabled','destroy','isDirty','_createCommentThreadInputView','bind','_config','23625552YJTsUJ','disabledSubmit','focus','isReadOnly','delegate','assign','998268NAHIKi','commentInputView','editorConfig','value','389411uAxwaF','locale','descriptionParts','5188dgnkug','1GGUUCT','setData','canAccept','410ynVcjN','addComment','element','commentsListView','hasDirtyComment','CommentView','commentThread','105511cDPzQm','editor','authoredAt','2759784FFiDhz','canDiscard','length','commentThreadInputView','8ODILFU','2721591zMKAio','disableComments','402AtvHkI'];_0x1f14=function(){return _0x6f7417;};return _0x1f14();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3dd1(){const _0x97553d=['ck-suggestion__info','set','\x22></span>','querySelector','check','children','ck-suggestion','132nJvvOJ','<p>','execute','formatDateTime','canDiscard','ck-suggestion__info-name','9641448KKeERh','\x22\x20title=\x22','ck-annotation__actions','@external','innerHTML','commentThread','ck-suggestion__actions','ck-annotation','_createButton','value','split','isEnabled','editorReady','8493633YsYbtF','isExternal','acceptButton','</span>','creator','ck-annotation__user','description','content','discardSuggestion','1032278IFyASm','getTemplate','extendTemplate','ck-annotation__main','attributes','span','ck-comment__external','fire','ck-annotation__info','5tYGvHt','locale','render','commentThreadInputView','disableComments','Discard\x20suggestion','userView','.ck-annotation__content-wrapper','importWord','color','ck-suggestion-wrapper--active','getUserViewNotificationText','authoredAt','getExternalSuggestionNote','ck-suggestion--discard','390607PeHNBV','discardButton','ck-suggestion__user','element','source','div','isActive','innerText','EXTERNAL_AVATAR','ck-annotation__info-time','author','EXTERNAL_SUGGESTION','acceptSuggestion','bind','ck-suggestion--accept','createElement','title','ck-suggestion__main','EXTERNAL_IMPORT_WORD_SUGGESTION','type','delegate','descriptionParts','editorDestroyed','commentsListView','1284796olqpXr','Accept\x20suggestion','</p>','ck-suggestion-wrapper','ck-annotation__info-name','map','_config','cancel','3063704YtMSYU','change:description','2084016csImZC','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','push','ck-comment__info-time','ck-annotation__content-wrapper','time','name','ck-suggestion--disabled-comments','_descriptionElement','join','canAccept','_model','ck-suggestion-','setTemplate','<span\x20class=\x22ck-suggestion-type\x22>','bindTemplate','EXTERNAL_IMPORT_WORD_AVATAR'];_0x3dd1=function(){return _0x97553d;};return _0x3dd1();}const _0x6b4fff=_0x52b6;(function(_0x278b96,_0x30e668){const _0x3fa1a9=_0x52b6,_0x33c42c=_0x278b96();while(!![]){try{const _0x526928=parseInt(_0x3fa1a9(0x180))/0x1+parseInt(_0x3fa1a9(0x142))/0x2+parseInt(_0x3fa1a9(0x14c))/0x3+parseInt(_0x3fa1a9(0x14a))/0x4*(-parseInt(_0x3fa1a9(0x189))/0x5)+-parseInt(_0x3fa1a9(0x164))/0x6*(-parseInt(_0x3fa1a9(0x198))/0x7)+-parseInt(_0x3fa1a9(0x16a))/0x8+-parseInt(_0x3fa1a9(0x177))/0x9;if(_0x526928===_0x30e668)break;else _0x33c42c['push'](_0x33c42c['shift']());}catch(_0x487b40){_0x33c42c['push'](_0x33c42c['shift']());}}}(_0x3dd1,0xa688e));import{getTranslation as _0x27d58b}from'../../utils/common-translations.js';import{default as _0x3b2366}from'./basesuggestionthreadview.js';import{ButtonView as _0x42872c}from'ckeditor5/src/ui.js';import{icons as _0x1dee53}from'ckeditor5/src/core.js';import{trimHtml as _0x4f8895,UserView as _0x367dae}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x52b6(_0x548ed7,_0x36a785){const _0x3dd111=_0x3dd1();return _0x52b6=function(_0x52b612,_0x48ca37){_0x52b612=_0x52b612-0x142;let _0x33363b=_0x3dd111[_0x52b612];return _0x33363b;},_0x52b6(_0x548ed7,_0x36a785);}export default class ne extends _0x3b2366{constructor(_0xb82b47,_0x4ca1cf,_0x805107,_0x43a9f4){const _0x4ef329=_0x52b6;super(_0xb82b47,_0x4ca1cf,_0x805107,_0x43a9f4),this[_0x4ef329(0x15e)](_0x4ef329(0x1ab),''),this[_0x4ef329(0x1a5)](_0x4ef329(0x1ab))['to'](this,_0x4ef329(0x1ad),_0x5bb796=>_0x5bb796&&_0x5bb796[0x0]?_0x5bb796[0x0][_0x4ef329(0x1ab)]:''),this[_0x4ef329(0x1a5)](_0x4ef329(0x17d))['to'](this,_0x4ef329(0x1ad),this,_0x4ef329(0x19e),(_0x2f009a,_0x4f52d1)=>{const _0x842a09=_0x4ef329;let _0x2e7385='';for(const _0x5dba4a of _0x2f009a)_0x2e7385+=_0x842a09(0x165)+ds(_0x5dba4a[_0x842a09(0x17e)],_0x5dba4a[_0x842a09(0x192)])+_0x842a09(0x144);return _0x4f52d1?_0x2e7385:_0x4f8895(_0x2e7385,{'limit':0x8c});}),this[_0x4ef329(0x154)]=null,this[_0x4ef329(0x179)]=this[_0x4ef329(0x172)](_0x27d58b(_0xb82b47,_0x4ef329(0x143)),_0x1dee53[_0x4ef329(0x161)],_0x4ef329(0x1a6),_0x4ef329(0x1a4),'sw'),this[_0x4ef329(0x179)][_0x4ef329(0x1a5)](_0x4ef329(0x175))['to'](this,_0x4ef329(0x156)),this[_0x4ef329(0x199)]=this[_0x4ef329(0x172)](_0x27d58b(_0xb82b47,_0x4ef329(0x18e)),_0x1dee53[_0x4ef329(0x149)],_0x4ef329(0x197),_0x4ef329(0x17f),'sw'),this[_0x4ef329(0x199)][_0x4ef329(0x1a5)](_0x4ef329(0x175))['to'](this,_0x4ef329(0x168)),this[_0x4ef329(0x18f)]=new _0x367dae(_0xb82b47,this[_0x4ef329(0x157)][_0x4ef329(0x1a2)],this[_0x4ef329(0x194)]()),this[_0x4ef329(0x18f)][_0x4ef329(0x182)]({'attributes':{'class':[_0x4ef329(0x19a),_0x4ef329(0x17c)]}}),this[_0x4ef329(0x159)](this[_0x4ef329(0x181)]());}[_0x6b4fff(0x181)](){const _0x358cc6=_0x6b4fff,_0x37c054=this[_0x358cc6(0x15b)],_0x895906=[{'tag':_0x358cc6(0x19d),'attributes':{'class':[_0x358cc6(0x15d),_0x358cc6(0x188)]},'children':[{'tag':_0x358cc6(0x185),'children':[{'text':this[_0x358cc6(0x18f)][_0x358cc6(0x152)]}],'attributes':{'class':[_0x358cc6(0x169),_0x358cc6(0x146)]}},{'tag':_0x358cc6(0x151),'attributes':{'datetime':_0x37c054['to'](_0x358cc6(0x195)),'class':[_0x358cc6(0x14f),_0x358cc6(0x1a1)]},'children':[{'text':_0x37c054['to'](_0x358cc6(0x195),_0x3c06bf=>this[_0x358cc6(0x148)][_0x358cc6(0x167)](_0x3c06bf))}]}]},{'tag':_0x358cc6(0x19d),'attributes':{'class':[_0x358cc6(0x170),_0x358cc6(0x16c)]},'children':[this[_0x358cc6(0x179)],this[_0x358cc6(0x199)]]},{'tag':_0x358cc6(0x19d),'attributes':{'class':[_0x358cc6(0x150)]}}];this[_0x358cc6(0x157)][_0x358cc6(0x178)]&&_0x895906[_0x358cc6(0x14e)]({'tag':_0x358cc6(0x19d),'attributes':{'class':[_0x358cc6(0x186)]},'children':[{'text':this[_0x358cc6(0x196)]()}]});const _0x2dbc9d={'tag':_0x358cc6(0x19d),'attributes':{'class':[_0x358cc6(0x145),_0x37c054['if'](_0x358cc6(0x19e),_0x358cc6(0x193)),_0x37c054['to'](_0x358cc6(0x1ab),_0x5dc0c3=>_0x358cc6(0x158)+_0x5dc0c3),this[_0x358cc6(0x148)][_0x358cc6(0x18d)]&&_0x358cc6(0x153)],'data-suggestion-id':this[_0x358cc6(0x157)]['id'],'data-thread-id':this[_0x358cc6(0x157)][_0x358cc6(0x16f)]['id'],'data-author-id':this[_0x358cc6(0x157)][_0x358cc6(0x1a2)]['id'],'tabindex':-0x1},'children':[{'tag':_0x358cc6(0x19d),'attributes':{'class':[_0x358cc6(0x163),_0x358cc6(0x171)]},'children':[this[_0x358cc6(0x18f)],{'tag':_0x358cc6(0x19d),'attributes':{'class':[_0x358cc6(0x1a9),_0x358cc6(0x183)]},'children':_0x895906}]}]};return this[_0x358cc6(0x1af)]&&this[_0x358cc6(0x18c)]&&(_0x2dbc9d[_0x358cc6(0x162)][_0x358cc6(0x14e)](this[_0x358cc6(0x1af)],this[_0x358cc6(0x18c)]),this[_0x358cc6(0x1af)][_0x358cc6(0x1ac)](_0x358cc6(0x176))['to'](this),this[_0x358cc6(0x1af)][_0x358cc6(0x1ac)](_0x358cc6(0x1ae))['to'](this),this[_0x358cc6(0x18c)][_0x358cc6(0x1ac)](_0x358cc6(0x176))['to'](this),this[_0x358cc6(0x18c)][_0x358cc6(0x1ac)](_0x358cc6(0x1ae))['to'](this)),_0x2dbc9d;}[_0x6b4fff(0x18b)](){const _0x2d5ce0=_0x6b4fff;super[_0x2d5ce0(0x18b)](),this[_0x2d5ce0(0x154)]=this[_0x2d5ce0(0x19b)][_0x2d5ce0(0x160)](_0x2d5ce0(0x190)),this[_0x2d5ce0(0x154)][_0x2d5ce0(0x16e)]=this[_0x2d5ce0(0x17d)],this['on'](_0x2d5ce0(0x14b),(_0x311bfa,_0x3c3382,_0x378fce)=>{const _0x330851=_0x2d5ce0;this[_0x330851(0x154)][_0x330851(0x16e)]=_0x378fce;});}[_0x6b4fff(0x172)](_0x3771cc,_0x1cf376,_0x41d386,_0xb45e18,_0xdeb350){const _0x5e42de=_0x6b4fff,_0x2f6147=new _0x42872c(this[_0x5e42de(0x18a)]);return _0x2f6147[_0x5e42de(0x15e)]({'label':_0x3771cc,'icon':_0x1cf376,'tooltip':!0x0,'tooltipPosition':_0xdeb350}),_0x2f6147[_0x5e42de(0x182)]({'attributes':{'class':_0x41d386}}),_0x2f6147['on'](_0x5e42de(0x166),()=>{const _0x16e03b=_0x5e42de;this[_0x16e03b(0x187)](_0xb45e18,this[_0x16e03b(0x157)]['id']);}),_0x2f6147;}[_0x6b4fff(0x196)](){const _0x38adf7=_0x6b4fff;return _0x38adf7(0x191)===this[_0x38adf7(0x157)][_0x38adf7(0x184)][_0x38adf7(0x16d)][_0x38adf7(0x19c)]?_0x27d58b(this[_0x38adf7(0x18a)],_0x38adf7(0x1aa)):_0x27d58b(this[_0x38adf7(0x18a)],_0x38adf7(0x1a3));}[_0x6b4fff(0x194)](){const _0x338430=_0x6b4fff;return this[_0x338430(0x157)][_0x338430(0x178)]?_0x338430(0x191)===this[_0x338430(0x157)][_0x338430(0x184)][_0x338430(0x16d)][_0x338430(0x19c)]?_0x27d58b(this[_0x338430(0x18a)],_0x338430(0x15c),this[_0x338430(0x157)][_0x338430(0x17b)][_0x338430(0x152)]):_0x27d58b(this[_0x338430(0x18a)],_0x338430(0x1a0),this[_0x338430(0x157)][_0x338430(0x17b)][_0x338430(0x152)]):null;}}function ds(_0x62b64e,_0x56f576){const _0xab38a2=_0x6b4fff;let _0x28a12c='';return _0x28a12c+=_0x62b64e[_0xab38a2(0x174)]('*')[_0xab38a2(0x147)]((_0x397885,_0x504f08)=>_0x504f08%0x2!=0x0?_0xab38a2(0x15a)+us(_0x397885)+_0xab38a2(0x17a):us(_0x397885))[_0xab38a2(0x155)](''),_0x56f576&&(_0x28a12c+=_0xab38a2(0x14d)+_0x56f576[_0xab38a2(0x173)]+_0xab38a2(0x16b)+_0x56f576[_0xab38a2(0x1a8)]+_0xab38a2(0x15f)),_0x28a12c;}function us(_0x42f971){const _0x5e82a8=_0x6b4fff,_0x35e0ac=document[_0x5e82a8(0x1a7)](_0x5e82a8(0x185));return _0x35e0ac[_0x5e82a8(0x19f)]=_0x42f971,_0x35e0ac[_0x5e82a8(0x16e)];}
|
|
@@ -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(_0x1a90a5,_0x3c789e,_0x46ad67){const t=_0x1a90a5['t'];switch(_0x3c789e){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',_0x46ad67);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46ad67);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46ad67);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46ad67);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46ad67);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',_0x46ad67);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46ad67);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',_0x46ad67);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46ad67);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46ad67);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46ad67);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46ad67);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46ad67);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46ad67);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46ad67);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46ad67);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46ad67);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46ad67);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46ad67);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46ad67);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46ad67);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46ad67);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46ad67);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'},_0x46ad67);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46ad67);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46ad67);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46ad67);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46ad67);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46ad67);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'},_0x46ad67);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46ad67);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46ad67);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46ad67);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46ad67);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'},_0x46ad67);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46ad67);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'},_0x46ad67);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'},_0x46ad67);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46ad67);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'},_0x46ad67);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46ad67);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'},_0x46ad67);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46ad67);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46ad67);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'},_0x46ad67);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'},_0x46ad67);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 _0x3c789e;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xaffbe2,_0x31e907){const _0x5f3645=_0x3785,_0x31cbe7=_0xaffbe2();while(!![]){try{const _0x2efcae=parseInt(_0x5f3645(0x1d0))/0x1+-parseInt(_0x5f3645(0x1dc))/0x2*(-parseInt(_0x5f3645(0x1e8))/0x3)+parseInt(_0x5f3645(0x1e7))/0x4*(parseInt(_0x5f3645(0x1e1))/0x5)+parseInt(_0x5f3645(0x1cd))/0x6+-parseInt(_0x5f3645(0x1d2))/0x7*(parseInt(_0x5f3645(0x1e2))/0x8)+-parseInt(_0x5f3645(0x1e0))/0x9+parseInt(_0x5f3645(0x1c9))/0xa*(-parseInt(_0x5f3645(0x1ca))/0xb);if(_0x2efcae===_0x31e907)break;else _0x31cbe7['push'](_0x31cbe7['shift']());}catch(_0x4aeead){_0x31cbe7['push'](_0x31cbe7['shift']());}}}(_0x3bd6,0x6aa00));export function normalizeDescription(_0x44bb1b){const _0x4c9b97=_0x3785;return Array[_0x4c9b97(0x1da)](_0x44bb1b)||(_0x44bb1b=[_0x44bb1b]),_0x44bb1b[_0x4c9b97(0x1d6)](_0x2b09f2=>{const _0x5aabf8=_0x4c9b97,_0x4a3a39=_0x2b09f2[_0x5aabf8(0x1c7)][_0x5aabf8(0x1c4)](/\*/g,''),_0x10532f=_0x2b09f2[_0x5aabf8(0x1d3)]?_0x5aabf8(0x1e4)+_0x2b09f2[_0x5aabf8(0x1d3)][_0x5aabf8(0x1d1)]+']':'';return'['+_0x2b09f2[_0x5aabf8(0x1c8)]+']\x20'+_0x4a3a39+_0x10532f;})[_0x4c9b97(0x1ed)](';\x20');}export function sortSuggestions(_0x5e7f0d){const _0x4a390a=_0x3785;return _0x5e7f0d[_0x4a390a(0x1dd)]((_0x95105c,_0x345f22)=>_0x4a390a(0x1ee)==_0x95105c[_0x4a390a(0x1c8)]&&_0x4a390a(0x1ee)!=_0x345f22[_0x4a390a(0x1c8)]?-0x1:_0x4a390a(0x1ee)!=_0x95105c[_0x4a390a(0x1c8)]&&_0x4a390a(0x1ee)==_0x345f22[_0x4a390a(0x1c8)]?0x1:0x0);}export function getSelectedSuggestions(_0x4ac062,_0x460a79){const _0x3f812d=_0x3785,_0x8d9f5b=Array[_0x3f812d(0x1df)](_0x4ac062[_0x3f812d(0x1ce)]()),_0x4b08dd=new Set();for(const _0x8141a8 of _0x460a79)if(_0x8141a8[_0x3f812d(0x1cb)]){for(const _0x30080 of _0x8d9f5b)for(const _0x5077da of _0x8141a8[_0x3f812d(0x1ce)]())(_0x30080[_0x3f812d(0x1d4)](_0x5077da)||_0x4ac062[_0x3f812d(0x1e6)]&&!_0x8141a8[_0x3f812d(0x1e9)]&&_0x8141a8[_0x3f812d(0x1d5)]&&_0x5077da[_0x3f812d(0x1d9)][_0x3f812d(0x1d8)](_0x30080[_0x3f812d(0x1ec)]))&&_0x4b08dd[_0x3f812d(0x1c5)](_0x8141a8);}return _0x4b08dd;}export function getRangesOfBlockGroups(_0x44fcdc,_0x19625b){const _0x2b1f47=_0x3785;let _0x7d2e99,_0x1c9fad=0x0;const _0x5c5453=[],_0x560478=_0x19625b[_0x2b1f47(0x1ea)];for(;_0x1c9fad<_0x44fcdc[_0x2b1f47(0x1e3)];){const _0x3036e2=_0x44fcdc[_0x1c9fad],_0x4a8ec0=_0x44fcdc[_0x1c9fad+0x1];_0x7d2e99||(_0x7d2e99=_0x19625b[_0x2b1f47(0x1cc)](_0x3036e2)),co(_0x19625b,_0x3036e2,_0x4a8ec0)||(_0x5c5453[_0x2b1f47(0x1d7)](_0x19625b[_0x2b1f47(0x1eb)](_0x7d2e99,_0x560478[_0x2b1f47(0x1cf)](_0x3036e2)?_0x19625b[_0x2b1f47(0x1db)](_0x3036e2):_0x19625b[_0x2b1f47(0x1e5)](_0x3036e2,_0x2b1f47(0x1d9)))),_0x7d2e99=null),_0x1c9fad++;}return _0x5c5453;}function _0x3bd6(){const _0x52b451=['1621940OdpacJ','4784kwudBg','length','\x20[color\x20','createPositionAt','isCollapsed','4JPZKaO','279QhUxZd','isMultiRange','schema','createRange','start','join','deletion','splice','replace','add','execute','content','type','20330lbyOxT','44pHqlUi','isInContent','createPositionBefore','1729788WLHFdE','getRanges','isObject','680589SxFKMr','value','9646HKIQQH','color','isIntersecting','next','map','push','isTouching','end','isArray','createPositionAfter','7398vkbLjP','sort','change','from','3315330gALOqX'];_0x3bd6=function(){return _0x52b451;};return _0x3bd6();}function co(_0x39bb16,_0x401b53,_0x4ce956){const _0x25e104=_0x3785;if(!_0x4ce956)return!0x1;const _0xceb465=_0x39bb16[_0x25e104(0x1db)](_0x401b53),_0xa55f3=_0x39bb16[_0x25e104(0x1cc)](_0x4ce956);return _0xceb465[_0x25e104(0x1d8)](_0xa55f3);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function _0x3785(_0x20059a,_0x58827c){const _0x3bd642=_0x3bd6();return _0x3785=function(_0x37859a,_0xfb2021){_0x37859a=_0x37859a-0x1c3;let _0x23e52b=_0x3bd642[_0x37859a];return _0x23e52b;},_0x3785(_0x20059a,_0x58827c);}export function executeCommandForSuggestions(_0x18a4d1,_0x8d8c6,_0x83545a){const _0x2049df=_0x3785;for(;_0x83545a[_0x2049df(0x1e3)];){const _0x192a5d=_0x83545a[_0x2049df(0x1c3)](0x0,0x64);_0x18a4d1[_0x2049df(0x1de)](()=>{const _0xa5be38=_0x2049df;for(const _0x4faa5a of _0x192a5d)_0x4faa5a[_0xa5be38(0x1cb)]&&_0x8d8c6[_0xa5be38(0x1c6)](_0x4faa5a['id']);});}}
|