@ckeditor/ckeditor5-track-changes 41.4.1 → 42.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 _0x290f5f=_0x51a6;(function(_0x2d45fc,_0x4aee70){const _0x53e24e=_0x51a6,_0x5c15f9=_0x2d45fc();while(!![]){try{const _0x4c890d=-parseInt(_0x53e24e(0x16c))/0x1+-parseInt(_0x53e24e(0x17d))/0x2+parseInt(_0x53e24e(0x190))/0x3*(parseInt(_0x53e24e(0x11f))/0x4)+-parseInt(_0x53e24e(0x163))/0x5*(-parseInt(_0x53e24e(0x14d))/0x6)+-parseInt(_0x53e24e(0x143))/0x7*(parseInt(_0x53e24e(0x154))/0x8)+-parseInt(_0x53e24e(0x114))/0x9+-parseInt(_0x53e24e(0x18f))/0xa*(-parseInt(_0x53e24e(0x148))/0xb);if(_0x4c890d===_0x4aee70)break;else _0x5c15f9['push'](_0x5c15f9['shift']());}catch(_0x356cf6){_0x5c15f9['push'](_0x5c15f9['shift']());}}}(_0x244d,0xb9e71));import{Plugin as _0x33ed9c}from'ckeditor5/src/core.js';import{Collection as _0x5a1238}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x35e49b,createDropdown as _0x1f0ff6,ListSeparatorView as _0x59b4b7,MenuBarMenuView as _0x5e3682,MenuBarMenuListView as _0x1470c0,MenuBarMenuListItemView as _0x347d8e,MenuBarMenuListItemButtonView as _0x2d2afb,SplitButtonView as _0x374f80,ViewModel as _0x43ebc3}from'ckeditor5/src/ui.js';import{Users as _0x4177eb,getDateTimeFormatter as _0x26162c,getAllMarkersDomElementsSorted as _0x54a1ce}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xb711a7 from'./trackchangesediting.js';function _0x51a6(_0x51cb2f,_0xace8d6){const _0x244d91=_0x244d();return _0x51a6=function(_0x51a66d,_0x263641){_0x51a66d=_0x51a66d-0x106;let _0xec90cb=_0x244d91[_0x51a66d];return _0xec90cb;},_0x51a6(_0x51cb2f,_0xace8d6);}import _0x2a0369 from'./ui/suggestioncontroller.js';function _0x244d(){const _0x4139c5=['discardSelectedSuggestions','hasSuggestion','getFirstRange','isDirty','editor','Discard\x20all\x20selected\x20suggestions','_refreshActiveMarkers','value','getByInnerView','suggestionLoaded','listenTo','refreshSelectedViews','trackChanges.disableComments','items','SuggestionThreadView','head','stopListening','Annotations','descriptionParts','locale','plugins','button','config','Accept\x20all\x20selected\x20suggestions','770DMBYVu','commandName','actionView','getDescriptions','buttonView','11iRnlVG','clear','keys','from','createAnnotation','1578fIRSro','Discard\x20all\x20suggestions','_disableComments','addComment','isOn','init','innerView','40216JNhzMc','toMany','_createToolbarButton','addSourceCollector','getSuggestion','menu','componentFactory','focus','separator','values','delete','acceptButton','createAnnotationView','change:activeAnnotations','suggestion-','1315jhMcuH','getMarkers','CommentView','_annotationViews','getRanges','bind','Track\x20changes','createCommentThreadController','descriptionFactory','907440xspdNK','length','model','acceptSelectedSuggestions','_addUIComponentsToFactory','getMarkerNames','panelView','comments.maxThreadTotalWeight','comments.editorConfig','previous','_initializeController','_unbindEditors','type','children','discardButton','menuitemcheckbox','suggestionUnloaded','2850038wBVhXf','has','acceptAllSuggestions','filter','_handleControllerBuffer','execute','menuitem','isInContent','lowest','comments','Accept\x20all\x20suggestions','change:previous','menuBar:trackChanges','TrackChangesEditing','CommentsRepository','reduce','isMultiRange','getJoined','35493340NZfhwL','2123256qnkzyV','activeMarkers','activeAnnotations','EditorAnnotations','registerAnnotation','add','requires','_destroyController','commentThread','_suggestionToController','mainView','pluginName','discardAllSuggestions','comments.maxCommentsWhenCollapsed','trackChanges','some','switchbutton','set','commands','unbind','source','isEnabled','12484089HtDYjQ','editing','CommentsUI','_createMenuBarMenu','delegate','suggestionChanged','_viewToController','_handleSuggestionControllerDelayed','push','remove','define','8TsTAIc','_updateController','size','comments.maxCommentCharsWhenCollapsed','TrackChangesUI','view','get','arrowView','destroy','trackChanges.SuggestionThreadView','_bindAnnotationToEditors','getAllAdjacentSuggestions'];_0x244d=function(){return _0x4139c5;};return _0x244d();}import _0xe3f982 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x4a09e3}from'./utils/common-translations.js';import _0x4a4aaf from'../theme/icons/track-changes.svg';export default class d extends _0x33ed9c{static get[_0x290f5f(0x196)](){const _0x201436=_0x290f5f;return[_0xb711a7,_0x4177eb,_0x201436(0x18b),_0x201436(0x13c),_0x201436(0x193)];}static get[_0x290f5f(0x109)](){const _0x301d23=_0x290f5f;return _0x301d23(0x123);}constructor(_0x4e641d){const _0x2ef5bb=_0x290f5f;super(_0x4e641d),this[_0x2ef5bb(0x107)]=new Map(),this[_0x2ef5bb(0x11a)]=new Map(),this[_0x2ef5bb(0x166)]=new Map(),this[_0x2ef5bb(0x181)]=new Map();const _0x5bdca7=this[_0x2ef5bb(0x12f)][_0x2ef5bb(0x141)];_0x5bdca7[_0x2ef5bb(0x11e)](_0x2ef5bb(0x128),_0xe3f982),_0x5bdca7[_0x2ef5bb(0x11e)](_0x2ef5bb(0x137),!0x1),this[_0x2ef5bb(0x14f)]=_0x5bdca7[_0x2ef5bb(0x125)](_0x2ef5bb(0x137));}[_0x290f5f(0x11b)](_0x15a23e,_0x15d21b){const _0x3b359c=_0x290f5f;0x0===this[_0x3b359c(0x181)][_0x3b359c(0x121)]&&setTimeout(()=>{const _0x643b8f=_0x3b359c;for(const [_0x330324,_0xebcee8]of this[_0x643b8f(0x181)]){const _0x450d3c=this[_0x643b8f(0x107)][_0x643b8f(0x17e)](_0x330324);_0x450d3c||_0xebcee8?_0x450d3c&&_0xebcee8&&this[_0x643b8f(0x197)](_0x330324):this[_0x643b8f(0x176)](_0x330324);}this[_0x643b8f(0x181)][_0x643b8f(0x149)](),this[_0x643b8f(0x12f)][_0x643b8f(0x13f)][_0x643b8f(0x125)](_0x643b8f(0x193))[_0x643b8f(0x136)](),this[_0x643b8f(0x131)]();},0xa),this[_0x3b359c(0x181)][_0x3b359c(0x10f)](_0x15a23e,_0x15d21b);}[_0x290f5f(0x152)](){const _0x404e66=_0x290f5f,_0xbbc540=this[_0x404e66(0x12f)],_0x508a88=_0xbbc540[_0x404e66(0x13f)][_0x404e66(0x125)](_0x404e66(0x18a)),_0x485f65=_0xbbc540[_0x404e66(0x13f)][_0x404e66(0x125)](_0x404e66(0x13c)),_0xf25240=_0xbbc540[_0x404e66(0x13f)][_0x404e66(0x125)](_0x404e66(0x193)),_0x6b44b5=_0xbbc540[_0x404e66(0x13f)][_0x404e66(0x125)](_0x404e66(0x18b));this[_0x404e66(0x170)](),_0xf25240[_0x404e66(0x157)](()=>{const _0x5bd1fe=_0x404e66,_0x908f55=[];for(const [_0x2daddf,_0xaf2e1]of Array[_0x5bd1fe(0x14b)](this[_0x5bd1fe(0x107)])){const _0x3ec0c4=_0x2daddf[_0x5bd1fe(0x12a)](),_0x1138ac=[];for(const _0x55de8d of _0x3ec0c4){if(!_0x55de8d[_0x5bd1fe(0x184)])continue;if(_0x55de8d[_0x5bd1fe(0x18d)]){_0x1138ac[_0x5bd1fe(0x11c)](..._0x55de8d[_0x5bd1fe(0x167)]());continue;}const _0x5c5215=_0x55de8d[_0x5bd1fe(0x12d)]();if(_0x1138ac[_0x5bd1fe(0x16d)]>0x0){const _0x2169f2=_0x1138ac[0x0][_0x5bd1fe(0x18e)](_0x5c5215);if(_0x2169f2){_0x1138ac[0x0]=_0x2169f2;continue;}}_0x1138ac[_0x5bd1fe(0x11c)](_0x5c5215);}_0x908f55[_0x5bd1fe(0x11c)]([_0xaf2e1[_0x5bd1fe(0x124)],_0x1138ac]);}return _0x908f55;}),this[_0x404e66(0x135)](_0x508a88,_0x404e66(0x134),(_0x381a00,_0x174afb)=>{const _0x440f8e=_0x404e66;this[_0x440f8e(0x135)](_0x174afb,_0x440f8e(0x188),(_0x2e5703,_0x2c582e,_0x27365f,_0x121769)=>{const _0x17affd=_0x440f8e;_0x174afb[_0x17affd(0x184)]&&(null==_0x27365f?(this[_0x17affd(0x120)](_0x121769[_0x17affd(0x13a)]),this[_0x17affd(0x11b)](_0x174afb,!0x1)):(this[_0x17affd(0x120)](_0x27365f[_0x17affd(0x13a)]),null==_0x121769&&this[_0x17affd(0x11b)](_0x174afb,!0x0)));}),null!==_0x174afb[_0x440f8e(0x175)]?this[_0x440f8e(0x120)](_0x174afb[_0x440f8e(0x13a)]):this[_0x440f8e(0x11b)](_0x174afb,!0x1);}),this[_0x404e66(0x135)](_0x508a88,_0x404e66(0x17c),(_0x50e15c,_0x10d012,_0x432584)=>{const _0x4f0897=_0x404e66;this[_0x4f0897(0x13b)](_0x10d012,_0x4f0897(0x188)),this[_0x4f0897(0x181)][_0x4f0897(0x15e)](_0x10d012),this[_0x4f0897(0x107)][_0x4f0897(0x17e)](_0x10d012)&&this[_0x4f0897(0x197)](_0x10d012),_0x432584&&this[_0x4f0897(0x120)](_0x432584[_0x4f0897(0x13a)]);}),this[_0x404e66(0x135)](_0x508a88,_0x404e66(0x119),(_0x378f09,_0x47d446)=>{const _0x15afd9=_0x404e66;this[_0x15afd9(0x120)](_0x47d446);}),this[_0x404e66(0x135)](_0x485f65,_0x404e66(0x161),()=>{const _0x1c3d95=_0x404e66;this[_0x1c3d95(0x131)]();}),this[_0x404e66(0x135)](_0x6b44b5,_0x404e66(0x150),(_0x56c68a,{threadId:_0x2286f1,isFromAdapter:_0x1a8770})=>{const _0x2a3caf=_0x404e66;if(_0x1a8770||!_0x508a88[_0x2a3caf(0x12c)](_0x2286f1))return;const _0x59deaf=_0x508a88[_0x2a3caf(0x158)](_0x2286f1);this[_0x2a3caf(0x107)][_0x2a3caf(0x125)](_0x59deaf)[_0x2a3caf(0x124)][_0x2a3caf(0x15b)]();},{'priority':_0x404e66(0x185)});}[_0x290f5f(0x131)](){const _0x56910b=_0x290f5f,_0x5e0ea5=this[_0x56910b(0x12f)][_0x56910b(0x13f)][_0x56910b(0x125)](_0x56910b(0x13c)),_0x23fda1=this[_0x56910b(0x12f)][_0x56910b(0x13f)][_0x56910b(0x125)](_0x56910b(0x18a)),_0x394336=Array[_0x56910b(0x14b)](_0x5e0ea5[_0x56910b(0x192)],_0x1c4e90=>_0x1c4e90[_0x56910b(0x153)])[_0x56910b(0x180)](_0x520ba7=>this[_0x56910b(0x11a)][_0x56910b(0x17e)](_0x520ba7)),_0xa92a90=[];for(const _0x30f508 of _0x394336){const _0xb5ef4=this[_0x56910b(0x11a)][_0x56910b(0x125)](_0x30f508)[_0x56910b(0x16e)][_0x56910b(0x12a)]();_0xa92a90[_0x56910b(0x11c)](..._0xb5ef4[_0x56910b(0x18c)]((_0x391dfd,_0x16eed6)=>[..._0x391dfd,..._0x16eed6[_0x56910b(0x171)]()],[]));}_0x23fda1[_0x56910b(0x191)]=_0xa92a90;}[_0x290f5f(0x170)](){const _0x2fac51=_0x290f5f,_0x333ae2=this[_0x2fac51(0x12f)],_0x1833fa=_0x333ae2[_0x2fac51(0x13e)],_0x24c307=_0x4a09e3(_0x1833fa,_0x2fac51(0x169)),_0x727d9a=new _0x5a1238([{'type':_0x2fac51(0x10e),'model':new _0x43ebc3({'withText':!0x0,'label':_0x24c307,'commandName':_0x2fac51(0x10c),'role':_0x2fac51(0x17b)})},{'type':_0x2fac51(0x15c)},{'type':_0x2fac51(0x140),'model':new _0x43ebc3({'withText':!0x0,'label':_0x4a09e3(_0x1833fa,_0x2fac51(0x187)),'commandName':_0x2fac51(0x17f),'role':_0x2fac51(0x183)})},{'type':_0x2fac51(0x140),'model':new _0x43ebc3({'withText':!0x0,'label':_0x4a09e3(_0x1833fa,_0x2fac51(0x142)),'commandName':_0x2fac51(0x16f),'role':_0x2fac51(0x183)})},{'type':_0x2fac51(0x140),'model':new _0x43ebc3({'withText':!0x0,'label':_0x4a09e3(_0x1833fa,_0x2fac51(0x14e)),'commandName':_0x2fac51(0x10a),'role':_0x2fac51(0x183)})},{'type':_0x2fac51(0x140),'model':new _0x43ebc3({'withText':!0x0,'label':_0x4a09e3(_0x1833fa,_0x2fac51(0x130)),'commandName':_0x2fac51(0x12b),'role':_0x2fac51(0x183)})}]);for(const _0x14dd18 of _0x727d9a)if(ae(_0x14dd18)){const _0x44cf30=_0x333ae2[_0x2fac51(0x110)][_0x2fac51(0x125)](_0x14dd18[_0x2fac51(0x16e)][_0x2fac51(0x144)]);_0x14dd18[_0x2fac51(0x16e)][_0x2fac51(0x168)](_0x2fac51(0x151),_0x2fac51(0x113))['to'](_0x44cf30,_0x2fac51(0x132),_0x2fac51(0x113));}_0x333ae2['ui'][_0x2fac51(0x15a)][_0x2fac51(0x195)](_0x2fac51(0x10c),_0x34d996=>this[_0x2fac51(0x156)](_0x34d996,_0x727d9a,_0x24c307)),_0x333ae2['ui'][_0x2fac51(0x15a)][_0x2fac51(0x195)](_0x2fac51(0x189),_0x1da147=>this[_0x2fac51(0x117)](_0x1da147,_0x727d9a,_0x24c307));}[_0x290f5f(0x156)](_0x5bd30f,_0x257c56,_0x53caab){const _0x2843a3=_0x290f5f,_0x31c56a=_0x1f0ff6(_0x5bd30f,_0x374f80),_0x5daf4d=this[_0x2843a3(0x12f)][_0x2843a3(0x110)][_0x2843a3(0x125)](_0x2843a3(0x10c));_0x31c56a[_0x2843a3(0x147)][_0x2843a3(0x10f)]({'tooltip':_0x53caab,'label':_0x53caab,'icon':_0x4a4aaf}),_0x31c56a[_0x2843a3(0x147)][_0x2843a3(0x168)](_0x2843a3(0x151))['to'](_0x5daf4d,_0x2843a3(0x132)),_0x31c56a[_0x2843a3(0x147)]['on'](_0x2843a3(0x182),()=>{const _0x597f8d=_0x2843a3;_0x5daf4d[_0x597f8d(0x182)](),this[_0x597f8d(0x12f)][_0x597f8d(0x115)][_0x597f8d(0x124)][_0x597f8d(0x15b)]();}),_0x35e49b(_0x31c56a,_0x257c56,{'role':_0x2843a3(0x159)});const _0x17e9bd=[];for(const _0x166993 of _0x257c56)ae(_0x166993)&&_0x17e9bd[_0x2843a3(0x11c)](this[_0x2843a3(0x12f)][_0x2843a3(0x110)][_0x2843a3(0x125)](_0x166993[_0x2843a3(0x16e)][_0x2843a3(0x144)]));const _0x4992fc=_0x31c56a[_0x2843a3(0x147)];return _0x4992fc[_0x2843a3(0x145)][_0x2843a3(0x111)](_0x2843a3(0x113)),_0x4992fc[_0x2843a3(0x126)][_0x2843a3(0x111)](_0x2843a3(0x113)),_0x4992fc[_0x2843a3(0x145)][_0x2843a3(0x168)](_0x2843a3(0x113))['to'](_0x5daf4d,_0x2843a3(0x113)),_0x4992fc[_0x2843a3(0x126)][_0x2843a3(0x168)](_0x2843a3(0x113))[_0x2843a3(0x155)](_0x17e9bd,_0x2843a3(0x113),(..._0x57a5ba)=>_0x57a5ba[_0x2843a3(0x10d)](_0x1f9c68=>_0x1f9c68)),_0x31c56a['on'](_0x2843a3(0x182),_0x142b9c=>{const _0x5d1b18=_0x2843a3;this[_0x5d1b18(0x12f)][_0x5d1b18(0x182)](_0x142b9c[_0x5d1b18(0x112)][_0x5d1b18(0x144)]),this[_0x5d1b18(0x12f)][_0x5d1b18(0x115)][_0x5d1b18(0x124)][_0x5d1b18(0x15b)]();}),_0x31c56a;}[_0x290f5f(0x117)](_0x4ad7f5,_0x1ec665,_0x2d1462){const _0x5677c8=_0x290f5f,_0x22a923=new _0x5e3682(_0x4ad7f5),_0x4bb325=this[_0x5677c8(0x12f)][_0x5677c8(0x110)][_0x5677c8(0x125)](_0x5677c8(0x10c));_0x22a923[_0x5677c8(0x147)][_0x5677c8(0x10f)]({'label':_0x2d1462,'icon':_0x4a4aaf});const _0x20c908=new _0x1470c0(_0x4ad7f5);for(const _0x283300 of _0x1ec665){if(_0x5677c8(0x15c)==_0x283300[_0x5677c8(0x178)]){_0x20c908[_0x5677c8(0x138)][_0x5677c8(0x195)](new _0x59b4b7(_0x4ad7f5));continue;}const _0x377467=new _0x347d8e(_0x4ad7f5,_0x22a923),_0x2296e5=new _0x2d2afb(_0x4ad7f5),_0x51f9e3=_0x283300[_0x5677c8(0x16e)];_0x2296e5[_0x5677c8(0x168)](...Object[_0x5677c8(0x14a)](_0x51f9e3))['to'](_0x51f9e3),_0x2296e5[_0x5677c8(0x118)](_0x5677c8(0x182))['to'](_0x22a923),_0x2296e5['on'](_0x5677c8(0x182),()=>{const _0x275531=_0x5677c8;this[_0x275531(0x12f)][_0x275531(0x182)](_0x51f9e3[_0x275531(0x144)]),this[_0x275531(0x12f)][_0x275531(0x115)][_0x275531(0x124)][_0x275531(0x15b)]();}),_0x377467[_0x5677c8(0x179)][_0x5677c8(0x195)](_0x2296e5),_0x20c908[_0x5677c8(0x138)][_0x5677c8(0x195)](_0x377467);}return _0x22a923[_0x5677c8(0x168)](_0x5677c8(0x113))['to'](_0x4bb325,_0x5677c8(0x113)),_0x22a923[_0x5677c8(0x172)][_0x5677c8(0x179)][_0x5677c8(0x195)](_0x20c908),_0x22a923;}[_0x290f5f(0x176)](_0x2f5dbf){const _0x1d243a=_0x290f5f,_0x4abaab=this[_0x1d243a(0x12f)],_0x3c38db=_0x4abaab[_0x1d243a(0x141)],_0x3f9b65=_0x4abaab[_0x1d243a(0x13f)][_0x1d243a(0x125)](_0x1d243a(0x13c)),_0x5ccf80=_0x4abaab[_0x1d243a(0x13f)][_0x1d243a(0x125)](_0x1d243a(0x18b)),_0xb9b42a=_0x4abaab[_0x1d243a(0x13f)][_0x1d243a(0x125)](_0x1d243a(0x193)),_0x4664a8=_0x4abaab[_0x1d243a(0x13f)][_0x1d243a(0x125)](_0x4177eb)['me'],_0x4ad581=_0x3c38db[_0x1d243a(0x125)](_0x1d243a(0x10c))[_0x1d243a(0x139)],{CommentsListView:_0x12f5e4,CommentThreadInputView:_0x31c8cb}=_0x4abaab[_0x1d243a(0x13f)][_0x1d243a(0x125)](_0x1d243a(0x116));let _0x66dde2,_0x5d93b7;this[_0x1d243a(0x166)][_0x1d243a(0x17e)](_0x2f5dbf['id'])?(_0x5d93b7=this[_0x1d243a(0x166)][_0x1d243a(0x125)](_0x2f5dbf['id']),_0x66dde2=_0x5d93b7[_0x1d243a(0x108)]):(_0x66dde2=new _0x4ad581(_0x4abaab[_0x1d243a(0x13e)],_0x2f5dbf,_0x4664a8,{'disableComments':this[_0x1d243a(0x14f)],'editorConfig':_0x3c38db[_0x1d243a(0x125)](_0x1d243a(0x174)),'maxCommentsWhenCollapsed':_0x3c38db[_0x1d243a(0x125)](_0x1d243a(0x10b)),'maxThreadTotalWeight':_0x3c38db[_0x1d243a(0x125)](_0x1d243a(0x173)),'maxCommentCharsWhenCollapsed':_0x3c38db[_0x1d243a(0x125)](_0x1d243a(0x122)),'formatDateTime':_0x26162c(_0x3c38db[_0x1d243a(0x125)](_0x1d243a(0x13e))),'CommentView':_0x3c38db[_0x1d243a(0x125)](_0x1d243a(0x186))[_0x1d243a(0x165)],'CommentsListView':_0x12f5e4,'CommentThreadInputView':_0x31c8cb}),_0x66dde2[_0x1d243a(0x15f)]['on'](_0x1d243a(0x182),()=>{const _0x4a3e04=_0x1d243a;_0x4abaab[_0x4a3e04(0x115)][_0x4a3e04(0x124)][_0x4a3e04(0x15b)]();}),_0x66dde2[_0x1d243a(0x17a)]['on'](_0x1d243a(0x182),()=>{const _0x226533=_0x1d243a;_0x4abaab[_0x226533(0x115)][_0x226533(0x124)][_0x226533(0x15b)]();}),_0x5d93b7=_0x3f9b65[_0x1d243a(0x160)](this[_0x1d243a(0x12f)][_0x1d243a(0x13e)],_0x66dde2),_0x5d93b7[_0x1d243a(0x168)](_0x1d243a(0x12e))['to'](_0x66dde2,_0x1d243a(0x12e)),_0x5d93b7[_0x1d243a(0x168)](_0x1d243a(0x16d))['to'](_0x66dde2),_0x5d93b7[_0x1d243a(0x168)](_0x1d243a(0x178))['to'](_0x66dde2,_0x1d243a(0x178),_0x1a11ce=>_0x1d243a(0x162)+_0x1a11ce),this[_0x1d243a(0x166)][_0x1d243a(0x10f)](_0x2f5dbf['id'],_0x5d93b7));const _0x3d02b6=_0x5ccf80[_0x1d243a(0x16a)](_0x2f5dbf[_0x1d243a(0x106)],_0x66dde2),_0x51222b=new _0x2a0369(_0x4abaab,_0x2f5dbf,_0x66dde2,_0x3d02b6),_0x4cc892=_0x2f5dbf[_0x1d243a(0x12a)]()[_0x1d243a(0x180)](_0x828544=>_0x828544[_0x1d243a(0x184)]);_0x66dde2[_0x1d243a(0x13d)]=_0x4abaab[_0x1d243a(0x13f)][_0x1d243a(0x125)](_0x1d243a(0x18a))[_0x1d243a(0x16b)][_0x1d243a(0x146)](_0x4cc892),this[_0x1d243a(0x107)][_0x1d243a(0x10f)](_0x2f5dbf,_0x51222b),this[_0x1d243a(0x11a)][_0x1d243a(0x10f)](_0x66dde2,_0x51222b);const _0x562662=_0x3f9b65[_0x1d243a(0x14c)]({'view':_0x5d93b7,'target':()=>{const _0x42a9f3=_0x1d243a,_0x378b2f=[],_0x4684d1=_0x2f5dbf[_0x42a9f3(0x12a)]()[_0x42a9f3(0x180)](_0xe4991d=>_0xe4991d[_0x42a9f3(0x184)]);for(const _0x876167 of _0x4684d1)_0x378b2f[_0x42a9f3(0x11c)](..._0x876167[_0x42a9f3(0x164)]());return _0x54a1ce(_0x4abaab[_0x42a9f3(0x115)],_0x378b2f);},'type':()=>_0x1d243a(0x162)+_0x51222b[_0x1d243a(0x124)][_0x1d243a(0x178)]});_0x5ccf80[_0x1d243a(0x129)](_0x66dde2,_0x562662),_0x3f9b65[_0x1d243a(0x195)](_0x562662),_0xb9b42a[_0x1d243a(0x194)](_0x562662);}[_0x290f5f(0x197)](_0x495995){const _0x365b68=_0x290f5f,_0x50c5c5=this[_0x365b68(0x12f)][_0x365b68(0x13f)][_0x365b68(0x125)](_0x365b68(0x18b)),_0x4fe371=this[_0x365b68(0x12f)][_0x365b68(0x13f)][_0x365b68(0x125)](_0x365b68(0x13c)),_0x870b77=this[_0x365b68(0x107)][_0x365b68(0x125)](_0x495995),_0x587f05=_0x870b77[_0x365b68(0x124)],_0x29e7ad=_0x4fe371[_0x365b68(0x133)](_0x587f05);_0x50c5c5[_0x365b68(0x177)](_0x587f05),_0x29e7ad&&_0x4fe371[_0x365b68(0x11d)](_0x29e7ad),this[_0x365b68(0x107)][_0x365b68(0x15e)](_0x495995),this[_0x365b68(0x11a)][_0x365b68(0x15e)](_0x587f05),_0x870b77[_0x365b68(0x127)]();}[_0x290f5f(0x120)](_0x8b2596){const _0x274b5b=_0x290f5f;if(!_0x8b2596[_0x274b5b(0x184)]||!this[_0x274b5b(0x107)][_0x274b5b(0x17e)](_0x8b2596))return;const _0x38f216=this[_0x274b5b(0x12f)][_0x274b5b(0x13f)][_0x274b5b(0x125)](_0x274b5b(0x18a)),_0x40643f=this[_0x274b5b(0x107)][_0x274b5b(0x125)](_0x8b2596),_0x1ff762=_0x8b2596[_0x274b5b(0x12a)]();_0x40643f[_0x274b5b(0x124)][_0x274b5b(0x13d)]=_0x38f216[_0x274b5b(0x16b)][_0x274b5b(0x146)](_0x1ff762);}[_0x290f5f(0x127)](){const _0x6ceb3d=_0x290f5f;for(const _0x2b0ed4 of this[_0x6ceb3d(0x107)][_0x6ceb3d(0x14a)]())this[_0x6ceb3d(0x197)](_0x2b0ed4);for(const _0x3a450b of this[_0x6ceb3d(0x166)][_0x6ceb3d(0x15d)]())_0x3a450b[_0x6ceb3d(0x108)][_0x6ceb3d(0x127)]();super[_0x6ceb3d(0x127)]();}}function ae(_0x580e87){const _0x3b07e9=_0x290f5f;return _0x3b07e9(0x16e)in _0x580e87;}
|
|
23
|
+
const _0x30bfc1=_0x53f4;(function(_0x3efb05,_0x54ca4a){const _0x1f7a88=_0x53f4,_0x4b75d5=_0x3efb05();while(!![]){try{const _0x55e3c3=parseInt(_0x1f7a88(0x1f7))/0x1+parseInt(_0x1f7a88(0x259))/0x2+-parseInt(_0x1f7a88(0x240))/0x3+-parseInt(_0x1f7a88(0x21c))/0x4*(-parseInt(_0x1f7a88(0x24b))/0x5)+-parseInt(_0x1f7a88(0x1da))/0x6*(parseInt(_0x1f7a88(0x20f))/0x7)+-parseInt(_0x1f7a88(0x234))/0x8*(-parseInt(_0x1f7a88(0x1f3))/0x9)+-parseInt(_0x1f7a88(0x262))/0xa;if(_0x55e3c3===_0x54ca4a)break;else _0x4b75d5['push'](_0x4b75d5['shift']());}catch(_0x3af974){_0x4b75d5['push'](_0x4b75d5['shift']());}}}(_0x3b0d,0x248f0));import{Plugin as _0x3c53e8}from'ckeditor5/src/core.js';function _0x53f4(_0x49ed2c,_0x18fbce){const _0x3b0d85=_0x3b0d();return _0x53f4=function(_0x53f415,_0x5bb3e5){_0x53f415=_0x53f415-0x1d4;let _0x3cb9d8=_0x3b0d85[_0x53f415];return _0x3cb9d8;},_0x53f4(_0x49ed2c,_0x18fbce);}import{Collection as _0x4a673d}from'ckeditor5/src/utils.js';function _0x3b0d(){const _0x379810=['registerAnnotation','buttonView','comments.maxCommentsWhenCollapsed','getRanges','comments.maxCommentCharsWhenCollapsed','157546WTxAWU','menuBar:trackChanges','discardAllSuggestions','comments','push','descriptionFactory','refreshSelectedViews','hasSuggestion','CommentsUI','794580RuAjEu','Accept\x20all\x20selected\x20suggestions','children','_createToolbarButton','_disableComments','discardButton','EditorAnnotations','_viewToController','comments.maxThreadTotalWeight','2814GQDOyJ','menuitem','_updateController','pluginName','delegate','Discard\x20all\x20selected\x20suggestions','init','set','descriptionParts','stopListening','_handleControllerBuffer','getAllAdjacentSuggestions','define','suggestion-','items','CommentsRepository','acceptAllSuggestions','addComment','_destroyController','plugins','execute','activeAnnotations','get','isDirty','panelView','9eOXORI','length','change:previous','getSuggestion','11839FkiEiN','commentThread','getDescriptions','isMultiRange','componentFactory','previous','_refreshActiveMarkers','getMarkers','_suggestionToController','_addUIComponentsToFactory','toMany','acceptSelectedSuggestions','_initializeController','getMarkerNames','clear','actionView','discardSelectedSuggestions','separator','isInContent','CommentView','menu','add','comments.editorConfig','reduce','742tKbxVU','mainView','Discard\x20all\x20suggestions','_createMenuBarMenu','delete','has','_bindAnnotationToEditors','some','editing','trackChanges.SuggestionThreadView','trackChanges.disableComments','menuitemcheckbox','getFirstRange','4UPOnqP','TrackChangesEditing','commandName','Accept\x20all\x20suggestions','values','Annotations','value','filter','destroy','createCommentThreadController','_handleSuggestionControllerDelayed','bind','createAnnotation','listenTo','remove','keys','lowest','unbind','isOn','commands','activeMarkers','trackChanges','suggestionLoaded','_unbindEditors','138272ThbzBH','Track\x20changes','type','config','addSourceCollector','isEnabled','editor','_annotationViews','TrackChangesUI','from','source','arrowView','326736qNXtwO','button','getJoined','suggestionUnloaded','change:activeAnnotations','size','switchbutton','requires','locale','model','head','1399660ZoaZrO','createAnnotationView','SuggestionThreadView','focus','view','suggestionChanged','innerView','getByInnerView','acceptButton'];_0x3b0d=function(){return _0x379810;};return _0x3b0d();}import{addListToDropdown as _0x28606d,createDropdown as _0x469012,ListSeparatorView as _0x8c6748,MenuBarMenuView as _0x582f57,MenuBarMenuListView as _0x5b873a,MenuBarMenuListItemView as _0x52c4d8,MenuBarMenuListItemButtonView as _0x44fa4a,SplitButtonView as _0x4eba56,ViewModel as _0x2a9606}from'ckeditor5/src/ui.js';import{Users as _0x546811,getDateTimeFormatter as _0x24113b,getAllMarkersDomElementsSorted as _0x5cf175}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x440793 from'./trackchangesediting.js';import _0x816d0e from'./ui/suggestioncontroller.js';import _0x578df7 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x4af58c}from'./utils/common-translations.js';import _0x4b94e5 from'../theme/icons/track-changes.svg';export default class d extends _0x3c53e8{static get[_0x30bfc1(0x247)](){const _0x530c16=_0x30bfc1;return[_0x440793,_0x546811,_0x530c16(0x1e9),_0x530c16(0x221),_0x530c16(0x1d7)];}static get[_0x30bfc1(0x1dd)](){const _0x3f358d=_0x30bfc1;return _0x3f358d(0x23c);}constructor(_0x452204){const _0x330696=_0x30bfc1;super(_0x452204),this[_0x330696(0x1ff)]=new Map(),this[_0x330696(0x1d8)]=new Map(),this[_0x330696(0x23b)]=new Map(),this[_0x330696(0x1e4)]=new Map();const _0x9b3847=this[_0x330696(0x23a)][_0x330696(0x237)];_0x9b3847[_0x330696(0x1e6)](_0x330696(0x218),_0x578df7),_0x9b3847[_0x330696(0x1e6)](_0x330696(0x219),!0x1),this[_0x330696(0x1d5)]=_0x9b3847[_0x330696(0x1f0)](_0x330696(0x219));}[_0x30bfc1(0x226)](_0x5b46b0,_0x2d72a6){const _0x52200c=_0x30bfc1;0x0===this[_0x52200c(0x1e4)][_0x52200c(0x245)]&&setTimeout(()=>{const _0x318536=_0x52200c;for(const [_0x552cf5,_0x5985e3]of this[_0x318536(0x1e4)]){const _0x34c7a5=this[_0x318536(0x1ff)][_0x318536(0x214)](_0x552cf5);_0x34c7a5||_0x5985e3?_0x34c7a5&&_0x5985e3&&this[_0x318536(0x1ec)](_0x552cf5):this[_0x318536(0x203)](_0x552cf5);}this[_0x318536(0x1e4)][_0x318536(0x205)](),this[_0x318536(0x23a)][_0x318536(0x1ed)][_0x318536(0x1f0)](_0x318536(0x1d7))[_0x318536(0x25f)](),this[_0x318536(0x1fd)]();},0xa),this[_0x52200c(0x1e4)][_0x52200c(0x1e1)](_0x5b46b0,_0x2d72a6);}[_0x30bfc1(0x1e0)](){const _0x290a30=_0x30bfc1,_0x297f5a=this[_0x290a30(0x23a)],_0x50aa07=_0x297f5a[_0x290a30(0x1ed)][_0x290a30(0x1f0)](_0x290a30(0x21d)),_0x39f548=_0x297f5a[_0x290a30(0x1ed)][_0x290a30(0x1f0)](_0x290a30(0x221)),_0x2c0673=_0x297f5a[_0x290a30(0x1ed)][_0x290a30(0x1f0)](_0x290a30(0x1d7)),_0x301d9b=_0x297f5a[_0x290a30(0x1ed)][_0x290a30(0x1f0)](_0x290a30(0x1e9));this[_0x290a30(0x200)](),_0x2c0673[_0x290a30(0x238)](()=>{const _0x440527=_0x290a30,_0x208dde=[];for(const [_0x27db1f,_0x9725dd]of Array[_0x440527(0x23d)](this[_0x440527(0x1ff)])){const _0x527630=_0x27db1f[_0x440527(0x1e5)](),_0x82ed9b=[];for(const _0x11f023 of _0x527630){if(!_0x11f023[_0x440527(0x209)])continue;if(_0x11f023[_0x440527(0x1fa)]){_0x82ed9b[_0x440527(0x25d)](..._0x11f023[_0x440527(0x257)]());continue;}const _0x36b036=_0x11f023[_0x440527(0x21b)]();if(_0x82ed9b[_0x440527(0x1f4)]>0x0){const _0x36801e=_0x82ed9b[0x0][_0x440527(0x242)](_0x36b036);if(_0x36801e){_0x82ed9b[0x0]=_0x36801e;continue;}}_0x82ed9b[_0x440527(0x25d)](_0x36b036);}_0x208dde[_0x440527(0x25d)]([_0x9725dd[_0x440527(0x24f)],_0x82ed9b]);}return _0x208dde;}),this[_0x290a30(0x229)](_0x50aa07,_0x290a30(0x232),(_0x14c786,_0x251033)=>{const _0x12111e=_0x290a30;this[_0x12111e(0x229)](_0x251033,_0x12111e(0x1f5),(_0x4f29a9,_0xb6f5f6,_0x73bae3,_0x1ae09f)=>{const _0x1ccaf0=_0x12111e;_0x251033[_0x1ccaf0(0x209)]&&(null==_0x73bae3?(this[_0x1ccaf0(0x1dc)](_0x1ae09f[_0x1ccaf0(0x24a)]),this[_0x1ccaf0(0x226)](_0x251033,!0x1)):(this[_0x1ccaf0(0x1dc)](_0x73bae3[_0x1ccaf0(0x24a)]),null==_0x1ae09f&&this[_0x1ccaf0(0x226)](_0x251033,!0x0)));}),null!==_0x251033[_0x12111e(0x1fc)]?this[_0x12111e(0x1dc)](_0x251033[_0x12111e(0x24a)]):this[_0x12111e(0x226)](_0x251033,!0x1);}),this[_0x290a30(0x229)](_0x50aa07,_0x290a30(0x243),(_0x1dd65c,_0x22a1c3,_0x5c1e4c)=>{const _0x3aac07=_0x290a30;this[_0x3aac07(0x1e3)](_0x22a1c3,_0x3aac07(0x1f5)),this[_0x3aac07(0x1e4)][_0x3aac07(0x213)](_0x22a1c3),this[_0x3aac07(0x1ff)][_0x3aac07(0x214)](_0x22a1c3)&&this[_0x3aac07(0x1ec)](_0x22a1c3),_0x5c1e4c&&this[_0x3aac07(0x1dc)](_0x5c1e4c[_0x3aac07(0x24a)]);}),this[_0x290a30(0x229)](_0x50aa07,_0x290a30(0x250),(_0x388a96,_0x2a254d)=>{const _0x3f9a8b=_0x290a30;this[_0x3f9a8b(0x1dc)](_0x2a254d);}),this[_0x290a30(0x229)](_0x39f548,_0x290a30(0x244),()=>{const _0x1b5f31=_0x290a30;this[_0x1b5f31(0x1fd)]();}),this[_0x290a30(0x229)](_0x301d9b,_0x290a30(0x1eb),(_0x22290a,{threadId:_0x14ae44,isFromAdapter:_0x3588de})=>{const _0x4830cd=_0x290a30;if(_0x3588de||!_0x50aa07[_0x4830cd(0x260)](_0x14ae44))return;const _0x5c7bd9=_0x50aa07[_0x4830cd(0x1f6)](_0x14ae44);this[_0x4830cd(0x1ff)][_0x4830cd(0x1f0)](_0x5c7bd9)[_0x4830cd(0x24f)][_0x4830cd(0x24e)]();},{'priority':_0x290a30(0x22c)});}[_0x30bfc1(0x1fd)](){const _0x2e99dd=_0x30bfc1,_0x4f0873=this[_0x2e99dd(0x23a)][_0x2e99dd(0x1ed)][_0x2e99dd(0x1f0)](_0x2e99dd(0x221)),_0x114cab=this[_0x2e99dd(0x23a)][_0x2e99dd(0x1ed)][_0x2e99dd(0x1f0)](_0x2e99dd(0x21d)),_0x15b799=Array[_0x2e99dd(0x23d)](_0x4f0873[_0x2e99dd(0x1ef)],_0x5819d7=>_0x5819d7[_0x2e99dd(0x251)])[_0x2e99dd(0x223)](_0x495c08=>this[_0x2e99dd(0x1d8)][_0x2e99dd(0x214)](_0x495c08)),_0x13927f=[];for(const _0x3edafe of _0x15b799){const _0x1aa27e=this[_0x2e99dd(0x1d8)][_0x2e99dd(0x1f0)](_0x3edafe)[_0x2e99dd(0x249)][_0x2e99dd(0x1e5)]();_0x13927f[_0x2e99dd(0x25d)](..._0x1aa27e[_0x2e99dd(0x20e)]((_0x4fd291,_0xdcb78)=>[..._0x4fd291,..._0xdcb78[_0x2e99dd(0x204)]()],[]));}_0x114cab[_0x2e99dd(0x230)]=_0x13927f;}[_0x30bfc1(0x200)](){const _0x50930a=_0x30bfc1,_0x415c16=this[_0x50930a(0x23a)],_0x5b9d74=_0x415c16[_0x50930a(0x248)],_0x3490ab=_0x4af58c(_0x5b9d74,_0x50930a(0x235)),_0x599e3b=new _0x4a673d([{'type':_0x50930a(0x246),'model':new _0x2a9606({'withText':!0x0,'label':_0x3490ab,'commandName':_0x50930a(0x231),'role':_0x50930a(0x21a)})},{'type':_0x50930a(0x208)},{'type':_0x50930a(0x241),'model':new _0x2a9606({'withText':!0x0,'label':_0x4af58c(_0x5b9d74,_0x50930a(0x21f)),'commandName':_0x50930a(0x1ea),'role':_0x50930a(0x1db)})},{'type':_0x50930a(0x241),'model':new _0x2a9606({'withText':!0x0,'label':_0x4af58c(_0x5b9d74,_0x50930a(0x263)),'commandName':_0x50930a(0x202),'role':_0x50930a(0x1db)})},{'type':_0x50930a(0x241),'model':new _0x2a9606({'withText':!0x0,'label':_0x4af58c(_0x5b9d74,_0x50930a(0x211)),'commandName':_0x50930a(0x25b),'role':_0x50930a(0x1db)})},{'type':_0x50930a(0x241),'model':new _0x2a9606({'withText':!0x0,'label':_0x4af58c(_0x5b9d74,_0x50930a(0x1df)),'commandName':_0x50930a(0x207),'role':_0x50930a(0x1db)})}]);for(const _0x22c3ac of _0x599e3b)if(ae(_0x22c3ac)){const _0x2d3377=_0x415c16[_0x50930a(0x22f)][_0x50930a(0x1f0)](_0x22c3ac[_0x50930a(0x249)][_0x50930a(0x21e)]);_0x22c3ac[_0x50930a(0x249)][_0x50930a(0x227)](_0x50930a(0x22e),_0x50930a(0x239))['to'](_0x2d3377,_0x50930a(0x222),_0x50930a(0x239));}_0x415c16['ui'][_0x50930a(0x1fb)][_0x50930a(0x20c)](_0x50930a(0x231),_0x39e931=>this[_0x50930a(0x1d4)](_0x39e931,_0x599e3b,_0x3490ab)),_0x415c16['ui'][_0x50930a(0x1fb)][_0x50930a(0x20c)](_0x50930a(0x25a),_0xaf6bff=>this[_0x50930a(0x212)](_0xaf6bff,_0x599e3b,_0x3490ab));}[_0x30bfc1(0x1d4)](_0x314060,_0x12fe51,_0x1f5707){const _0x3e6b36=_0x30bfc1,_0x166612=_0x469012(_0x314060,_0x4eba56),_0x47a490=this[_0x3e6b36(0x23a)][_0x3e6b36(0x22f)][_0x3e6b36(0x1f0)](_0x3e6b36(0x231));_0x166612[_0x3e6b36(0x255)][_0x3e6b36(0x1e1)]({'tooltip':_0x1f5707,'label':_0x1f5707,'icon':_0x4b94e5}),_0x166612[_0x3e6b36(0x255)][_0x3e6b36(0x227)](_0x3e6b36(0x22e))['to'](_0x47a490,_0x3e6b36(0x222)),_0x166612[_0x3e6b36(0x255)]['on'](_0x3e6b36(0x1ee),()=>{const _0x58e3b7=_0x3e6b36;_0x47a490[_0x58e3b7(0x1ee)](),this[_0x58e3b7(0x23a)][_0x58e3b7(0x217)][_0x58e3b7(0x24f)][_0x58e3b7(0x24e)]();}),_0x28606d(_0x166612,_0x12fe51,{'role':_0x3e6b36(0x20b)});const _0x20a75d=[];for(const _0x65e64e of _0x12fe51)ae(_0x65e64e)&&_0x20a75d[_0x3e6b36(0x25d)](this[_0x3e6b36(0x23a)][_0x3e6b36(0x22f)][_0x3e6b36(0x1f0)](_0x65e64e[_0x3e6b36(0x249)][_0x3e6b36(0x21e)]));const _0x2ac906=_0x166612[_0x3e6b36(0x255)];return _0x2ac906[_0x3e6b36(0x206)][_0x3e6b36(0x22d)](_0x3e6b36(0x239)),_0x2ac906[_0x3e6b36(0x23f)][_0x3e6b36(0x22d)](_0x3e6b36(0x239)),_0x2ac906[_0x3e6b36(0x206)][_0x3e6b36(0x227)](_0x3e6b36(0x239))['to'](_0x47a490,_0x3e6b36(0x239)),_0x2ac906[_0x3e6b36(0x23f)][_0x3e6b36(0x227)](_0x3e6b36(0x239))[_0x3e6b36(0x201)](_0x20a75d,_0x3e6b36(0x239),(..._0x5b0c13)=>_0x5b0c13[_0x3e6b36(0x216)](_0x2bb233=>_0x2bb233)),_0x166612['on'](_0x3e6b36(0x1ee),_0x26c05d=>{const _0x391750=_0x3e6b36;this[_0x391750(0x23a)][_0x391750(0x1ee)](_0x26c05d[_0x391750(0x23e)][_0x391750(0x21e)]),this[_0x391750(0x23a)][_0x391750(0x217)][_0x391750(0x24f)][_0x391750(0x24e)]();}),_0x166612;}[_0x30bfc1(0x212)](_0x54c603,_0x223d2c,_0x2e263d){const _0x301861=_0x30bfc1,_0x432202=new _0x582f57(_0x54c603),_0x298f4d=this[_0x301861(0x23a)][_0x301861(0x22f)][_0x301861(0x1f0)](_0x301861(0x231));_0x432202[_0x301861(0x255)][_0x301861(0x1e1)]({'label':_0x2e263d,'icon':_0x4b94e5});const _0x130177=new _0x5b873a(_0x54c603);for(const _0x5fb6a7 of _0x223d2c){if(_0x301861(0x208)==_0x5fb6a7[_0x301861(0x236)]){_0x130177[_0x301861(0x1e8)][_0x301861(0x20c)](new _0x8c6748(_0x54c603));continue;}const _0x279696=new _0x52c4d8(_0x54c603,_0x432202),_0x427cd8=new _0x44fa4a(_0x54c603),_0x3ebd0d=_0x5fb6a7[_0x301861(0x249)];_0x427cd8[_0x301861(0x227)](...Object[_0x301861(0x22b)](_0x3ebd0d))['to'](_0x3ebd0d),_0x427cd8[_0x301861(0x1de)](_0x301861(0x1ee))['to'](_0x432202),_0x427cd8['on'](_0x301861(0x1ee),()=>{const _0x554e04=_0x301861;this[_0x554e04(0x23a)][_0x554e04(0x1ee)](_0x3ebd0d[_0x554e04(0x21e)]),this[_0x554e04(0x23a)][_0x554e04(0x217)][_0x554e04(0x24f)][_0x554e04(0x24e)]();}),_0x279696[_0x301861(0x264)][_0x301861(0x20c)](_0x427cd8),_0x130177[_0x301861(0x1e8)][_0x301861(0x20c)](_0x279696);}return _0x432202[_0x301861(0x227)](_0x301861(0x239))['to'](_0x298f4d,_0x301861(0x239)),_0x432202[_0x301861(0x1f2)][_0x301861(0x264)][_0x301861(0x20c)](_0x130177),_0x432202;}[_0x30bfc1(0x203)](_0x2d671f){const _0x1700d2=_0x30bfc1,_0x10daf7=this[_0x1700d2(0x23a)],_0x4d478e=_0x10daf7[_0x1700d2(0x237)],_0x106d42=_0x10daf7[_0x1700d2(0x1ed)][_0x1700d2(0x1f0)](_0x1700d2(0x221)),_0x522831=_0x10daf7[_0x1700d2(0x1ed)][_0x1700d2(0x1f0)](_0x1700d2(0x1e9)),_0x87173e=_0x10daf7[_0x1700d2(0x1ed)][_0x1700d2(0x1f0)](_0x1700d2(0x1d7)),_0x5a8d69=_0x10daf7[_0x1700d2(0x1ed)][_0x1700d2(0x1f0)](_0x546811)['me'],_0x4409bc=_0x4d478e[_0x1700d2(0x1f0)](_0x1700d2(0x231))[_0x1700d2(0x24d)],{CommentsListView:_0x5e6e6b,CommentThreadInputView:_0x4e18ae}=_0x10daf7[_0x1700d2(0x1ed)][_0x1700d2(0x1f0)](_0x1700d2(0x261));let _0x1fd626,_0x2b8654;this[_0x1700d2(0x23b)][_0x1700d2(0x214)](_0x2d671f['id'])?(_0x2b8654=this[_0x1700d2(0x23b)][_0x1700d2(0x1f0)](_0x2d671f['id']),_0x1fd626=_0x2b8654[_0x1700d2(0x210)]):(_0x1fd626=new _0x4409bc(_0x10daf7[_0x1700d2(0x248)],_0x2d671f,_0x5a8d69,{'disableComments':this[_0x1700d2(0x1d5)],'editorConfig':_0x4d478e[_0x1700d2(0x1f0)](_0x1700d2(0x20d)),'maxCommentsWhenCollapsed':_0x4d478e[_0x1700d2(0x1f0)](_0x1700d2(0x256)),'maxThreadTotalWeight':_0x4d478e[_0x1700d2(0x1f0)](_0x1700d2(0x1d9)),'maxCommentCharsWhenCollapsed':_0x4d478e[_0x1700d2(0x1f0)](_0x1700d2(0x258)),'formatDateTime':_0x24113b(_0x4d478e[_0x1700d2(0x1f0)](_0x1700d2(0x248))),'CommentView':_0x4d478e[_0x1700d2(0x1f0)](_0x1700d2(0x25c))[_0x1700d2(0x20a)],'CommentsListView':_0x5e6e6b,'CommentThreadInputView':_0x4e18ae}),_0x1fd626[_0x1700d2(0x253)]['on'](_0x1700d2(0x1ee),()=>{const _0x26a45a=_0x1700d2;_0x10daf7[_0x26a45a(0x217)][_0x26a45a(0x24f)][_0x26a45a(0x24e)]();}),_0x1fd626[_0x1700d2(0x1d6)]['on'](_0x1700d2(0x1ee),()=>{const _0x5a34fa=_0x1700d2;_0x10daf7[_0x5a34fa(0x217)][_0x5a34fa(0x24f)][_0x5a34fa(0x24e)]();}),_0x2b8654=_0x106d42[_0x1700d2(0x24c)](this[_0x1700d2(0x23a)][_0x1700d2(0x248)],_0x1fd626),_0x2b8654[_0x1700d2(0x227)](_0x1700d2(0x1f1))['to'](_0x1fd626,_0x1700d2(0x1f1)),_0x2b8654[_0x1700d2(0x227)](_0x1700d2(0x1f4))['to'](_0x1fd626),_0x2b8654[_0x1700d2(0x227)](_0x1700d2(0x236))['to'](_0x1fd626,_0x1700d2(0x236),_0x5ea797=>_0x1700d2(0x1e7)+_0x5ea797),this[_0x1700d2(0x23b)][_0x1700d2(0x1e1)](_0x2d671f['id'],_0x2b8654));const _0xf89350=_0x522831[_0x1700d2(0x225)](_0x2d671f[_0x1700d2(0x1f8)],_0x1fd626),_0x3f18c1=new _0x816d0e(_0x10daf7,_0x2d671f,_0x1fd626,_0xf89350),_0x132d12=_0x2d671f[_0x1700d2(0x1e5)]()[_0x1700d2(0x223)](_0xdaffa4=>_0xdaffa4[_0x1700d2(0x209)]);_0x1fd626[_0x1700d2(0x1e2)]=_0x10daf7[_0x1700d2(0x1ed)][_0x1700d2(0x1f0)](_0x1700d2(0x21d))[_0x1700d2(0x25e)][_0x1700d2(0x1f9)](_0x132d12),this[_0x1700d2(0x1ff)][_0x1700d2(0x1e1)](_0x2d671f,_0x3f18c1),this[_0x1700d2(0x1d8)][_0x1700d2(0x1e1)](_0x1fd626,_0x3f18c1);const _0x3806af=_0x106d42[_0x1700d2(0x228)]({'view':_0x2b8654,'target':()=>{const _0x46704a=_0x1700d2,_0x33b47f=[],_0x2a67d5=_0x2d671f[_0x46704a(0x1e5)]()[_0x46704a(0x223)](_0x393dcd=>_0x393dcd[_0x46704a(0x209)]);for(const _0x563189 of _0x2a67d5)_0x33b47f[_0x46704a(0x25d)](..._0x563189[_0x46704a(0x1fe)]());return _0x5cf175(_0x10daf7[_0x46704a(0x217)],_0x33b47f);},'type':()=>_0x1700d2(0x1e7)+_0x3f18c1[_0x1700d2(0x24f)][_0x1700d2(0x236)]});_0x522831[_0x1700d2(0x215)](_0x1fd626,_0x3806af),_0x106d42[_0x1700d2(0x20c)](_0x3806af),_0x87173e[_0x1700d2(0x254)](_0x3806af);}[_0x30bfc1(0x1ec)](_0x425895){const _0x5e4c0c=_0x30bfc1,_0x52ba19=this[_0x5e4c0c(0x23a)][_0x5e4c0c(0x1ed)][_0x5e4c0c(0x1f0)](_0x5e4c0c(0x1e9)),_0x341808=this[_0x5e4c0c(0x23a)][_0x5e4c0c(0x1ed)][_0x5e4c0c(0x1f0)](_0x5e4c0c(0x221)),_0x22f5df=this[_0x5e4c0c(0x1ff)][_0x5e4c0c(0x1f0)](_0x425895),_0x2081b4=_0x22f5df[_0x5e4c0c(0x24f)],_0x263bd3=_0x341808[_0x5e4c0c(0x252)](_0x2081b4);_0x52ba19[_0x5e4c0c(0x233)](_0x2081b4),_0x263bd3&&_0x341808[_0x5e4c0c(0x22a)](_0x263bd3),this[_0x5e4c0c(0x1ff)][_0x5e4c0c(0x213)](_0x425895),this[_0x5e4c0c(0x1d8)][_0x5e4c0c(0x213)](_0x2081b4),_0x22f5df[_0x5e4c0c(0x224)]();}[_0x30bfc1(0x1dc)](_0x463171){const _0x430466=_0x30bfc1;if(!_0x463171[_0x430466(0x209)]||!this[_0x430466(0x1ff)][_0x430466(0x214)](_0x463171))return;const _0x490706=this[_0x430466(0x23a)][_0x430466(0x1ed)][_0x430466(0x1f0)](_0x430466(0x21d)),_0x2aabd0=this[_0x430466(0x1ff)][_0x430466(0x1f0)](_0x463171),_0x5edc40=_0x463171[_0x430466(0x1e5)]();_0x2aabd0[_0x430466(0x24f)][_0x430466(0x1e2)]=_0x490706[_0x430466(0x25e)][_0x430466(0x1f9)](_0x5edc40);}[_0x30bfc1(0x224)](){const _0x364669=_0x30bfc1;for(const _0x1a51c5 of this[_0x364669(0x1ff)][_0x364669(0x22b)]())this[_0x364669(0x1ec)](_0x1a51c5);for(const _0x5942ab of this[_0x364669(0x23b)][_0x364669(0x220)]())_0x5942ab[_0x364669(0x210)][_0x364669(0x224)]();super[_0x364669(0x224)]();}}function ae(_0x2581bd){const _0x2b7e7c=_0x30bfc1;return _0x2b7e7c(0x249)in _0x2581bd;}
|
|
@@ -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 _0x55fcba=_0x5752;function _0x5752(_0x34f5a3,_0x42bb1d){const _0x34565c=_0x3456();return _0x5752=function(_0x575265,_0x89992a){_0x575265=_0x575265-0x9e;let _0x256eba=_0x34565c[_0x575265];return _0x256eba;},_0x5752(_0x34f5a3,_0x42bb1d);}(function(_0x20e09b,_0x33da9f){const _0x64aa35=_0x5752,_0x416c0f=_0x20e09b();while(!![]){try{const _0x21e655=parseInt(_0x64aa35(0xbd))/0x1+-parseInt(_0x64aa35(0xc1))/0x2+-parseInt(_0x64aa35(0xa6))/0x3*(parseInt(_0x64aa35(0xab))/0x4)+parseInt(_0x64aa35(0xad))/0x5*(parseInt(_0x64aa35(0xc5))/0x6)+parseInt(_0x64aa35(0xb7))/0x7+parseInt(_0x64aa35(0xa1))/0x8+-parseInt(_0x64aa35(0xc6))/0x9*(-parseInt(_0x64aa35(0xb8))/0xa);if(_0x21e655===_0x33da9f)break;else _0x416c0f['push'](_0x416c0f['shift']());}catch(_0x4dbdd5){_0x416c0f['push'](_0x416c0f['shift']());}}}(_0x3456,0xe8122));import{ObservableMixin as _0x2ef475}from'ckeditor5/src/utils.js';function _0x3456(){const _0x37d085=['PENDING_ACTION_SUGGESTION','_editor','model','2961788qNhORu','stopListening','canEditAt','locale','6ShHcUQ','39177hKzJZu','isEnabled','plugins','_setPendingAction','PendingActions','9269456mjwcRg','discardSuggestion','commands','_acceptCommand','get','4032xBAFLB','getRanges','execute','change:isDirty','remove','3308nBClGM','listenTo','6601415xYDcFb','acceptSuggestion','_removePendingAction','canAccept','bind','_discardCommand','isDirty','view','canDiscard','destroy','5088188QXFrlQ','10kolKiz','add','commentThreadController','_pendingAction','unbind','332742bQvTBT'];_0x3456=function(){return _0x37d085;};return _0x3456();}import{getTranslation as _0x30ab9b}from'../utils/common-translations.js';export default class oe extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2ef475(){constructor(_0x581623,_0x28d1cb,_0xff967d,_0x3d1166){const _0x17a34a=_0x5752;super(),this[_0x17a34a(0xc0)]=_0x28d1cb,this[_0x17a34a(0xb4)]=_0xff967d,this[_0x17a34a(0xba)]=_0x3d1166,this[_0x17a34a(0xbf)]=_0x581623,this[_0x17a34a(0xa4)]=_0x581623[_0x17a34a(0xa3)][_0x17a34a(0xa5)](_0x17a34a(0xae)),this[_0x17a34a(0xb2)]=_0x581623[_0x17a34a(0xa3)][_0x17a34a(0xa5)](_0x17a34a(0xa2)),this[_0x17a34a(0xb4)][_0x17a34a(0xb1)](_0x17a34a(0xc7))['to'](this[_0x17a34a(0xa4)],this[_0x17a34a(0xb2)],(_0x2b54ea,_0x1f92ba)=>_0x2b54ea||_0x1f92ba),this[_0x17a34a(0xb4)][_0x17a34a(0xb1)](_0x17a34a(0xb0))['to'](this[_0x17a34a(0xa4)],_0x17a34a(0xc7),_0x781fc6=>_0x781fc6&&this[_0x17a34a(0xbf)][_0x17a34a(0xc0)][_0x17a34a(0xc3)](_0x28d1cb[_0x17a34a(0xa7)]())),this[_0x17a34a(0xb4)][_0x17a34a(0xb1)](_0x17a34a(0xb5))['to'](this[_0x17a34a(0xb2)],_0x17a34a(0xc7),_0x3a1c18=>_0x3a1c18&&this[_0x17a34a(0xbf)][_0x17a34a(0xc0)][_0x17a34a(0xc3)](_0x28d1cb[_0x17a34a(0xa7)]())),this[_0x17a34a(0xbb)]=null,_0xff967d[_0x17a34a(0xb3)]&&this[_0x17a34a(0x9f)](),this[_0x17a34a(0xac)](_0xff967d,_0x17a34a(0xae),()=>this[_0x17a34a(0xae)]()),this[_0x17a34a(0xac)](_0xff967d,_0x17a34a(0xa2),()=>this[_0x17a34a(0xa2)]()),this[_0x17a34a(0xac)](_0xff967d,_0x17a34a(0xa9),()=>{const _0x87c6f=_0x17a34a;_0xff967d[_0x87c6f(0xb3)]?this[_0x87c6f(0x9f)]():this[_0x87c6f(0xaf)]();});}[_0x55fcba(0xae)](){const _0x15e7c1=_0x55fcba;this[_0x15e7c1(0xa4)][_0x15e7c1(0xa8)](this[_0x15e7c1(0xc0)]['id']);}[_0x55fcba(0xa2)](){const _0x2c2f3e=_0x55fcba;this[_0x2c2f3e(0xb2)][_0x2c2f3e(0xa8)](this[_0x2c2f3e(0xc0)]['id']);}[_0x55fcba(0xb6)](){const _0x558dd8=_0x55fcba;this[_0x558dd8(0xb4)][_0x558dd8(0xbc)](_0x558dd8(0xc7)),this[_0x558dd8(0xb4)][_0x558dd8(0xbc)](_0x558dd8(0xb0)),this[_0x558dd8(0xb4)][_0x558dd8(0xbc)](_0x558dd8(0xb5)),this[_0x558dd8(0xc2)](),this[_0x558dd8(0xba)][_0x558dd8(0xb6)](),this[_0x558dd8(0xbb)]&&this[_0x558dd8(0xaf)]();}[_0x55fcba(0x9f)](){const _0x394d5b=_0x55fcba,_0x59c8e5=_0x30ab9b(this[_0x394d5b(0xbf)][_0x394d5b(0xc4)],_0x394d5b(0xbe));this[_0x394d5b(0xbb)]=this[_0x394d5b(0xbf)][_0x394d5b(0x9e)][_0x394d5b(0xa5)](_0x394d5b(0xa0))[_0x394d5b(0xb9)](_0x59c8e5);}[_0x55fcba(0xaf)](){const _0x660dc6=_0x55fcba;null!==this[_0x660dc6(0xbb)]&&this[_0x660dc6(0xbf)][_0x660dc6(0x9e)][_0x660dc6(0xa5)](_0x660dc6(0xa0))[_0x660dc6(0xaa)](this[_0x660dc6(0xbb)]),this[_0x660dc6(0xbb)]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1aea74=_0xd766;function _0xd766(_0x1f842a,_0x556296){const _0x1298e6=_0x1298();return _0xd766=function(_0xd7662c,_0x16991c){_0xd7662c=_0xd7662c-0x156;let _0x176c46=_0x1298e6[_0xd7662c];return _0x176c46;},_0xd766(_0x1f842a,_0x556296);}(function(_0x5322f1,_0x471ce2){const _0x2f6c58=_0xd766,_0x13c851=_0x5322f1();while(!![]){try{const _0x4103b=-parseInt(_0x2f6c58(0x159))/0x1*(parseInt(_0x2f6c58(0x16d))/0x2)+parseInt(_0x2f6c58(0x15c))/0x3+-parseInt(_0x2f6c58(0x165))/0x4*(-parseInt(_0x2f6c58(0x171))/0x5)+parseInt(_0x2f6c58(0x167))/0x6*(-parseInt(_0x2f6c58(0x174))/0x7)+-parseInt(_0x2f6c58(0x168))/0x8+-parseInt(_0x2f6c58(0x16f))/0x9*(parseInt(_0x2f6c58(0x16e))/0xa)+-parseInt(_0x2f6c58(0x15a))/0xb*(-parseInt(_0x2f6c58(0x17e))/0xc);if(_0x4103b===_0x471ce2)break;else _0x13c851['push'](_0x13c851['shift']());}catch(_0x1e9518){_0x13c851['push'](_0x13c851['shift']());}}}(_0x1298,0x73c95));function _0x1298(){const _0x6e3144=['addComment','delegate','locale','set','value','_model','bind','isActive','element','34682mDwjgR','2140303jsUiMH','hasDirtyComment','851256qdtIUE','disableComments','cancel','focus','canDiscard','disabledSubmit','updateComment','isDirty','commentThread','4oTobnB','_createCommentViews','76938eLunYd','16616iOezxc','showInput','commentsListView','editorConfig','setData','20xlIMPr','11030qbVMNZ','3186zpwrQp','commentInputView','2371895rnXOyE','descriptionParts','isReadOnly','70AjyFcH','fire','canAccept','editor','removeComment','_localUser','commentThreadInputView','_config','destroy','length','36wyfRRk','CommentView','isEnabled','authoredAt','assign','submit','_createCommentThreadInputView'];_0x1298=function(){return _0x6e3144;};return _0x1298();}import{View as _0x4f6ad3}from'ckeditor5/src/ui.js';export default class es extends _0x4f6ad3{constructor(_0xa68e05,_0x1df8f1,_0xc4394b,_0x330525){const _0x73082c=_0xd766;super(_0xa68e05),this[_0x73082c(0x16a)]=null,this[_0x73082c(0x17a)]=null,this[_0x73082c(0x188)](_0x73082c(0x157),!0x1),this[_0x73082c(0x188)](_0x73082c(0x181),_0x1df8f1[_0x73082c(0x181)]),this[_0x73082c(0x156)](_0x73082c(0x181))['to'](_0x1df8f1),this[_0x73082c(0x188)](_0x73082c(0x172),[]),this[_0x73082c(0x188)](_0x73082c(0x163),!0x1),this[_0x73082c(0x188)](_0x73082c(0x180),!0x1),this[_0x73082c(0x188)](_0x73082c(0x176),!0x1),this[_0x73082c(0x188)](_0x73082c(0x160),!0x1),this[_0x73082c(0x18a)]=_0x1df8f1,this[_0x73082c(0x179)]=_0xc4394b,this[_0x73082c(0x17b)]=_0x330525,_0x330525[_0x73082c(0x15d)]?this[_0x73082c(0x188)](_0x73082c(0x17d),0x1):this[_0x73082c(0x166)]();}[_0x1aea74(0x15f)](){const _0x224865=_0x1aea74;this[_0x224865(0x158)][_0x224865(0x15f)]();}[_0x1aea74(0x17c)](){const _0x23d566=_0x1aea74;this[_0x23d566(0x16a)]&&this[_0x23d566(0x16a)][_0x23d566(0x17c)](),this[_0x23d566(0x17a)]&&this[_0x23d566(0x17a)][_0x23d566(0x17c)](),super[_0x23d566(0x17c)]();}[_0x1aea74(0x166)](){const _0x338fef=_0x1aea74,{CommentsListView:_0x3a04f7}=this[_0x338fef(0x17b)];this[_0x338fef(0x16a)]=new _0x3a04f7(this[_0x338fef(0x187)],this[_0x338fef(0x18a)][_0x338fef(0x164)],Object[_0x338fef(0x182)]({'CommentView':this[_0x338fef(0x17b)][_0x338fef(0x17f)]},this[_0x338fef(0x17b)])),this[_0x338fef(0x16a)][_0x338fef(0x186)](_0x338fef(0x178))['to'](this),this[_0x338fef(0x16a)][_0x338fef(0x186)](_0x338fef(0x162))['to'](this),this[_0x338fef(0x16a)][_0x338fef(0x156)](_0x338fef(0x157))['to'](this),this[_0x338fef(0x188)](_0x338fef(0x17d),this[_0x338fef(0x16a)][_0x338fef(0x17d)]+0x1),this[_0x338fef(0x156)](_0x338fef(0x17d))['to'](this[_0x338fef(0x16a)],_0x338fef(0x17d),_0x3a2d71=>_0x3a2d71+0x1),this[_0x338fef(0x17a)]=this[_0x338fef(0x184)](),this['on'](_0x338fef(0x178),()=>this[_0x338fef(0x15f)]()),this[_0x338fef(0x156)](_0x338fef(0x163))['to'](this[_0x338fef(0x16a)],_0x338fef(0x15b),this[_0x338fef(0x17a)][_0x338fef(0x170)],_0x338fef(0x189),(_0x17e9b6,_0x22f1a7)=>_0x17e9b6||!!_0x22f1a7);}[_0x1aea74(0x184)](){const _0x3ee8b2=_0x1aea74,{CommentThreadInputView:_0x33908a}=this[_0x3ee8b2(0x17b)],_0x4194a1=new _0x33908a(this[_0x3ee8b2(0x187)],this[_0x3ee8b2(0x179)],this[_0x3ee8b2(0x17b)][_0x3ee8b2(0x16b)]),_0x54af1c=_0x4194a1[_0x3ee8b2(0x170)];return _0x4194a1[_0x3ee8b2(0x156)](_0x3ee8b2(0x169))['to'](this,_0x3ee8b2(0x157),this[_0x3ee8b2(0x18a)][_0x3ee8b2(0x164)],_0x3ee8b2(0x173),_0x54af1c,_0x3ee8b2(0x189),(_0x564850,_0x3a688e,_0x1a6d73)=>!!_0x1a6d73||_0x564850&&!_0x3a688e),_0x54af1c['on'](_0x3ee8b2(0x183),(_0x47520b,_0x244685)=>{const _0x54669e=_0x3ee8b2;this[_0x54669e(0x175)](_0x54669e(0x185),_0x244685),_0x54af1c[_0x54669e(0x177)][_0x54669e(0x16c)]('');}),_0x54af1c['on'](_0x3ee8b2(0x15e),()=>this[_0x3ee8b2(0x15f)]()),_0x54af1c[_0x3ee8b2(0x156)](_0x3ee8b2(0x161))['to'](this[_0x3ee8b2(0x18a)][_0x3ee8b2(0x164)],_0x3ee8b2(0x173)),_0x4194a1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x233698=_0x2002;(function(_0x1c3791,_0x724478){const _0x92b2da=_0x2002,_0x2ed9d0=_0x1c3791();while(!![]){try{const _0x455033=-parseInt(_0x92b2da(0x1ab))/0x1*(parseInt(_0x92b2da(0x1f0))/0x2)+parseInt(_0x92b2da(0x1ca))/0x3+parseInt(_0x92b2da(0x1ae))/0x4+-parseInt(_0x92b2da(0x1cd))/0x5*(parseInt(_0x92b2da(0x1cf))/0x6)+parseInt(_0x92b2da(0x1f2))/0x7+parseInt(_0x92b2da(0x1c9))/0x8*(-parseInt(_0x92b2da(0x1fe))/0x9)+parseInt(_0x92b2da(0x1a2))/0xa;if(_0x455033===_0x724478)break;else _0x2ed9d0['push'](_0x2ed9d0['shift']());}catch(_0x17f47f){_0x2ed9d0['push'](_0x2ed9d0['shift']());}}}(_0x565a,0xae841));import{getTranslation as _0x26053a}from'../../utils/common-translations.js';import{default as _0x2a42ea}from'./basesuggestionthreadview.js';function _0x2002(_0xe35953,_0x21cbea){const _0x565abc=_0x565a();return _0x2002=function(_0x200247,_0x1efa99){_0x200247=_0x200247-0x19f;let _0x8fcb2c=_0x565abc[_0x200247];return _0x8fcb2c;},_0x2002(_0xe35953,_0x21cbea);}import{ButtonView as _0x23a788}from'ckeditor5/src/ui.js';import{icons as _0x38a003}from'ckeditor5/src/core.js';import{trimHtml as _0x3db98d,UserView as _0x24c0e3}from'ckeditor5-collaboration/src/collaboration-core.js';export default class ne extends _0x2a42ea{constructor(_0x4e4e1c,_0x382a6f,_0x46a111,_0x1815ae){const _0x4f117e=_0x2002;super(_0x4e4e1c,_0x382a6f,_0x46a111,_0x1815ae),this[_0x4f117e(0x1f7)](_0x4f117e(0x1cc),''),this[_0x4f117e(0x1f8)](_0x4f117e(0x1cc))['to'](this,_0x4f117e(0x1b4),_0xa746aa=>_0xa746aa&&_0xa746aa[0x0]?_0xa746aa[0x0][_0x4f117e(0x1cc)]:''),this[_0x4f117e(0x1f8)](_0x4f117e(0x1f1))['to'](this,_0x4f117e(0x1b4),this,_0x4f117e(0x1d3),(_0x57c55a,_0x2ef853)=>{const _0x4312bd=_0x4f117e;let _0x45234f='';for(const _0x2adcdf of _0x57c55a)_0x45234f+=_0x4312bd(0x201)+ds(_0x2adcdf[_0x4312bd(0x1f4)],_0x2adcdf[_0x4312bd(0x1bd)])+_0x4312bd(0x1bb);return _0x2ef853?_0x45234f:_0x3db98d(_0x45234f,{'limit':0x8c});}),this[_0x4f117e(0x1d5)]=null,this[_0x4f117e(0x20a)]=this[_0x4f117e(0x1e2)](_0x26053a(_0x4e4e1c,_0x4f117e(0x20b)),_0x38a003[_0x4f117e(0x1d0)],_0x4f117e(0x1d2),_0x4f117e(0x1bf),'sw'),this[_0x4f117e(0x20a)][_0x4f117e(0x1f8)](_0x4f117e(0x1a5))['to'](this,_0x4f117e(0x1a1)),this[_0x4f117e(0x1a4)]=this[_0x4f117e(0x1e2)](_0x26053a(_0x4e4e1c,_0x4f117e(0x1a7)),_0x38a003[_0x4f117e(0x1da)],_0x4f117e(0x1c6),_0x4f117e(0x1e7),'sw'),this[_0x4f117e(0x1a4)][_0x4f117e(0x1f8)](_0x4f117e(0x1a5))['to'](this,_0x4f117e(0x1f9)),this[_0x4f117e(0x1b0)]=new _0x24c0e3(_0x4e4e1c,this[_0x4f117e(0x1b3)][_0x4f117e(0x1dc)],this[_0x4f117e(0x1e9)]()),this[_0x4f117e(0x1b0)][_0x4f117e(0x1d1)]({'attributes':{'class':[_0x4f117e(0x1e6),_0x4f117e(0x1a0)]}}),this[_0x4f117e(0x1de)](this[_0x4f117e(0x1e4)]());}[_0x233698(0x1e4)](){const _0x3bad0b=_0x233698,_0x52ed74=this[_0x3bad0b(0x1b2)],_0x944ff6=[{'tag':_0x3bad0b(0x203),'attributes':{'class':[_0x3bad0b(0x1c4),_0x3bad0b(0x1e5)]},'children':[{'tag':_0x3bad0b(0x1fa),'children':[{'text':this[_0x3bad0b(0x1b0)][_0x3bad0b(0x1ef)]}],'attributes':{'class':[_0x3bad0b(0x1b5),_0x3bad0b(0x20c)]}},{'tag':_0x3bad0b(0x1fb),'attributes':{'datetime':_0x52ed74['to'](_0x3bad0b(0x200)),'class':[_0x3bad0b(0x202),_0x3bad0b(0x1d7)]},'children':[{'text':_0x52ed74['to'](_0x3bad0b(0x200),_0x199ebd=>this[_0x3bad0b(0x1e1)][_0x3bad0b(0x1c2)](_0x199ebd))}]}]},{'tag':_0x3bad0b(0x203),'attributes':{'class':[_0x3bad0b(0x1ec),_0x3bad0b(0x1cb)]},'children':[this[_0x3bad0b(0x20a)],this[_0x3bad0b(0x1a4)]]},{'tag':_0x3bad0b(0x203),'attributes':{'class':[_0x3bad0b(0x1a3)]}}];this[_0x3bad0b(0x1b3)][_0x3bad0b(0x1fd)]&&_0x944ff6[_0x3bad0b(0x1aa)]({'tag':_0x3bad0b(0x203),'attributes':{'class':[_0x3bad0b(0x1b1)]},'children':[{'text':this[_0x3bad0b(0x1b9)]()}]});const _0x179e17={'tag':_0x3bad0b(0x203),'attributes':{'class':[_0x3bad0b(0x204),_0x52ed74['if'](_0x3bad0b(0x1d3),_0x3bad0b(0x1fc)),_0x52ed74['to'](_0x3bad0b(0x1cc),_0x4caebe=>_0x3bad0b(0x1f6)+_0x4caebe),this[_0x3bad0b(0x1e1)][_0x3bad0b(0x1ad)]&&_0x3bad0b(0x1c0)],'data-suggestion-id':this[_0x3bad0b(0x1b3)]['id'],'data-thread-id':this[_0x3bad0b(0x1b3)][_0x3bad0b(0x1c1)]['id'],'data-author-id':this[_0x3bad0b(0x1b3)][_0x3bad0b(0x1dc)]['id'],'tabindex':-0x1},'children':[{'tag':_0x3bad0b(0x203),'attributes':{'class':[_0x3bad0b(0x205),_0x3bad0b(0x1b6)]},'children':[this[_0x3bad0b(0x1b0)],{'tag':_0x3bad0b(0x203),'attributes':{'class':[_0x3bad0b(0x206),_0x3bad0b(0x1ff)]},'children':_0x944ff6}]}]};return this[_0x3bad0b(0x1ed)]&&this[_0x3bad0b(0x1c5)]&&(_0x179e17[_0x3bad0b(0x1ac)][_0x3bad0b(0x1aa)](this[_0x3bad0b(0x1ed)],this[_0x3bad0b(0x1c5)]),this[_0x3bad0b(0x1ed)][_0x3bad0b(0x1af)](_0x3bad0b(0x1d6))['to'](this),this[_0x3bad0b(0x1ed)][_0x3bad0b(0x1af)](_0x3bad0b(0x1b8))['to'](this),this[_0x3bad0b(0x1c5)][_0x3bad0b(0x1af)](_0x3bad0b(0x1d6))['to'](this),this[_0x3bad0b(0x1c5)][_0x3bad0b(0x1af)](_0x3bad0b(0x1b8))['to'](this)),_0x179e17;}[_0x233698(0x1bc)](){const _0x1b433f=_0x233698;super[_0x1b433f(0x1bc)](),this[_0x1b433f(0x1d5)]=this[_0x1b433f(0x1e0)][_0x1b433f(0x1db)](_0x1b433f(0x1ce)),this[_0x1b433f(0x1d5)][_0x1b433f(0x207)]=this[_0x1b433f(0x1f1)],this['on'](_0x1b433f(0x1d8),(_0x28a688,_0xee93e2,_0x18fc22)=>{const _0x1aeeb0=_0x1b433f;this[_0x1aeeb0(0x1d5)][_0x1aeeb0(0x207)]=_0x18fc22;});}[_0x233698(0x1e2)](_0x17a758,_0x262baa,_0xc29ea1,_0x588b1f,_0x3dc883){const _0x3f6645=_0x233698,_0x33a38d=new _0x23a788(this[_0x3f6645(0x1eb)]);return _0x33a38d[_0x3f6645(0x1f7)]({'label':_0x17a758,'icon':_0x262baa,'tooltip':!0x0,'tooltipPosition':_0x3dc883}),_0x33a38d[_0x3f6645(0x1d1)]({'attributes':{'class':_0xc29ea1}}),_0x33a38d['on'](_0x3f6645(0x208),()=>{const _0x4b0473=_0x3f6645;this[_0x4b0473(0x1c8)](_0x588b1f,this[_0x4b0473(0x1b3)]['id']);}),_0x33a38d;}[_0x233698(0x1b9)](){const _0x359827=_0x233698;return _0x359827(0x1f3)===this[_0x359827(0x1b3)][_0x359827(0x1c7)][_0x359827(0x1e8)][_0x359827(0x19f)]?_0x26053a(this[_0x359827(0x1eb)],_0x359827(0x1e3)):_0x26053a(this[_0x359827(0x1eb)],_0x359827(0x1ba));}[_0x233698(0x1e9)](){const _0x846d1e=_0x233698;return this[_0x846d1e(0x1b3)][_0x846d1e(0x1fd)]?_0x846d1e(0x1f3)===this[_0x846d1e(0x1b3)][_0x846d1e(0x1c7)][_0x846d1e(0x1e8)][_0x846d1e(0x19f)]?_0x26053a(this[_0x846d1e(0x1eb)],_0x846d1e(0x1d9),this[_0x846d1e(0x1b3)][_0x846d1e(0x1ea)][_0x846d1e(0x1ef)]):_0x26053a(this[_0x846d1e(0x1eb)],_0x846d1e(0x1a6),this[_0x846d1e(0x1b3)][_0x846d1e(0x1ea)][_0x846d1e(0x1ef)]):null;}}function ds(_0x4cdf5d,_0x1cea1d){const _0x595c3f=_0x233698;let _0x44223b='';return _0x44223b+=_0x4cdf5d[_0x595c3f(0x1d4)]('*')[_0x595c3f(0x1be)]((_0xb6e95d,_0x460578)=>_0x460578%0x2!=0x0?_0x595c3f(0x1ee)+us(_0xb6e95d)+_0x595c3f(0x1b7):us(_0xb6e95d))[_0x595c3f(0x1c3)](''),_0x1cea1d&&(_0x44223b+=_0x595c3f(0x209)+_0x1cea1d[_0x595c3f(0x1a9)]+_0x595c3f(0x1df)+_0x1cea1d[_0x595c3f(0x20d)]+_0x595c3f(0x1dd)),_0x44223b;}function us(_0x42e187){const _0x527f78=_0x233698,_0x248037=document[_0x527f78(0x1a8)](_0x527f78(0x1fa));return _0x248037[_0x527f78(0x1f5)]=_0x42e187,_0x248037[_0x527f78(0x207)];}function _0x565a(){const _0xca7e38=['ck-annotation__info-name','title','source','ck-annotation__user','canAccept','14283440DAxOBs','ck-annotation__content-wrapper','discardButton','isEnabled','EXTERNAL_AVATAR','Discard\x20suggestion','createElement','value','push','1RyrCQM','children','disableComments','1771880Qmpalj','delegate','userView','ck-comment__external','bindTemplate','_model','descriptionParts','ck-suggestion__info-name','ck-annotation','</span>','editorDestroyed','getExternalSuggestionNote','EXTERNAL_SUGGESTION','</p>','render','color','map','acceptSuggestion','ck-suggestion--disabled-comments','commentThread','formatDateTime','join','ck-suggestion__info','commentThreadInputView','ck-suggestion--discard','attributes','fire','32XhqJSP','2801661DgFsOl','ck-annotation__actions','type','2978565JTJuyn','.ck-annotation__content-wrapper','6kTuaHp','check','extendTemplate','ck-suggestion--accept','isActive','split','_descriptionElement','editorReady','ck-annotation__info-time','change:description','EXTERNAL_IMPORT_WORD_AVATAR','cancel','querySelector','author','\x22></span>','setTemplate','\x22\x20title=\x22','element','_config','_createButton','EXTERNAL_IMPORT_WORD_SUGGESTION','getTemplate','ck-annotation__info','ck-suggestion__user','discardSuggestion','@external','getUserViewNotificationText','creator','locale','ck-suggestion__actions','commentsListView','<span\x20class=\x22ck-suggestion-type\x22>','name','2768352qOmTIG','description','3406851MMviDB','importWord','content','innerText','ck-suggestion-','set','bind','canDiscard','span','time','ck-suggestion-wrapper--active','isExternal','1343673jTvpFo','ck-annotation__main','authoredAt','<p>','ck-comment__info-time','div','ck-suggestion-wrapper','ck-suggestion','ck-suggestion__main','innerHTML','execute','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','acceptButton','Accept\x20suggestion'];_0x565a=function(){return _0xca7e38;};return _0x565a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x301768,_0x3bdec3,_0x2f9d89){const t=_0x301768['t'];switch(_0x3bdec3){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',_0x2f9d89);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2f9d89);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2f9d89);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2f9d89);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2f9d89);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',_0x2f9d89);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2f9d89);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',_0x2f9d89);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2f9d89);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2f9d89);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2f9d89);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2f9d89);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2f9d89);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2f9d89);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2f9d89);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2f9d89);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2f9d89);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2f9d89);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2f9d89);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2f9d89);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2f9d89);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2f9d89);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2f9d89);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'},_0x2f9d89);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2f9d89);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2f9d89);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2f9d89);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2f9d89);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2f9d89);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'},_0x2f9d89);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2f9d89);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2f9d89);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2f9d89);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2f9d89);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'},_0x2f9d89);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2f9d89);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'},_0x2f9d89);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'},_0x2f9d89);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2f9d89);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'},_0x2f9d89);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2f9d89);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'},_0x2f9d89);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2f9d89);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2f9d89);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'},_0x2f9d89);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'},_0x2f9d89);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 _0x3bdec3;}}
|
|
23
|
+
export function getTranslation(_0x2990a0,_0x82afd,_0x1f6547){const t=_0x2990a0['t'];switch(_0x82afd){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',_0x1f6547);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1f6547);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1f6547);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1f6547);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1f6547);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',_0x1f6547);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1f6547);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',_0x1f6547);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1f6547);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1f6547);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1f6547);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1f6547);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1f6547);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1f6547);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1f6547);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1f6547);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1f6547);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1f6547);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1f6547);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1f6547);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1f6547);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1f6547);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1f6547);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'},_0x1f6547);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1f6547);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1f6547);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1f6547);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1f6547);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1f6547);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'},_0x1f6547);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1f6547);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1f6547);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1f6547);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1f6547);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'},_0x1f6547);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1f6547);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'},_0x1f6547);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'},_0x1f6547);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1f6547);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'},_0x1f6547);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1f6547);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'},_0x1f6547);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1f6547);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1f6547);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'},_0x1f6547);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'},_0x1f6547);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 _0x82afd;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x140b2a,_0x39f1ec){const _0x36cdfa=_0x3aba,_0x2bae94=_0x140b2a();while(!![]){try{const _0x57eedf=parseInt(_0x36cdfa(0x101))/0x1+-parseInt(_0x36cdfa(0xe7))/0x2+parseInt(_0x36cdfa(0xea))/0x3+parseInt(_0x36cdfa(0xe1))/0x4+parseInt(_0x36cdfa(0xfb))/0x5*(-parseInt(_0x36cdfa(0xf4))/0x6)+parseInt(_0x36cdfa(0x105))/0x7*(parseInt(_0x36cdfa(0xf7))/0x8)+-parseInt(_0x36cdfa(0x107))/0x9*(parseInt(_0x36cdfa(0x106))/0xa);if(_0x57eedf===_0x39f1ec)break;else _0x2bae94['push'](_0x2bae94['shift']());}catch(_0x5e25db){_0x2bae94['push'](_0x2bae94['shift']());}}}(_0x4afe,0x496c3));export function normalizeDescription(_0x470e96){const _0x1ef997=_0x3aba;return Array[_0x1ef997(0xf6)](_0x470e96)||(_0x470e96=[_0x470e96]),_0x470e96[_0x1ef997(0x104)](_0x406014=>{const _0xf8b304=_0x1ef997,_0x13bfe1=_0x406014[_0xf8b304(0xfc)][_0xf8b304(0xf1)](/\*/g,''),_0x97a85b=_0x406014[_0xf8b304(0xeb)]?_0xf8b304(0xf0)+_0x406014[_0xf8b304(0xeb)][_0xf8b304(0xe6)]+']':'';return'['+_0x406014[_0xf8b304(0xfd)]+']\x20'+_0x13bfe1+_0x97a85b;})[_0x1ef997(0xfe)](';\x20');}export function sortSuggestions(_0x583dec){const _0x2ef21d=_0x3aba;return _0x583dec[_0x2ef21d(0xef)]((_0x36487a,_0x27d223)=>_0x2ef21d(0x103)==_0x36487a[_0x2ef21d(0xfd)]&&_0x2ef21d(0x103)!=_0x27d223[_0x2ef21d(0xfd)]?-0x1:_0x2ef21d(0x103)!=_0x36487a[_0x2ef21d(0xfd)]&&_0x2ef21d(0x103)==_0x27d223[_0x2ef21d(0xfd)]?0x1:0x0);}export function getSelectedSuggestions(_0x1f2894,_0x2a5150){const _0x550d4e=_0x3aba,_0x1a5534=Array[_0x550d4e(0xe8)](_0x1f2894[_0x550d4e(0xe9)]()),_0x1f7b09=new Set();for(const _0xbdc9d9 of _0x2a5150)if(_0xbdc9d9[_0x550d4e(0xed)]){for(const _0x5c85f5 of _0x1a5534)for(const _0x1fb270 of _0xbdc9d9[_0x550d4e(0xe9)]())(_0x5c85f5[_0x550d4e(0xf8)](_0x1fb270)||_0x1f2894[_0x550d4e(0x100)]&&!_0xbdc9d9[_0x550d4e(0xec)]&&_0xbdc9d9[_0x550d4e(0xe0)]&&_0x1fb270[_0x550d4e(0xe2)][_0x550d4e(0xf5)](_0x5c85f5[_0x550d4e(0xe4)]))&&_0x1f7b09[_0x550d4e(0xee)](_0xbdc9d9);}return _0x1f7b09;}export function getRangesOfBlockGroups(_0x100786,_0x461cc8){const _0x51b9f1=_0x3aba;let _0x20fc1e,_0x43a023=0x0;const _0x553a49=[],_0x178304=_0x461cc8[_0x51b9f1(0xf3)];for(;_0x43a023<_0x100786[_0x51b9f1(0xff)];){const _0x40dcce=_0x100786[_0x43a023],_0xa7954d=_0x100786[_0x43a023+0x1];_0x20fc1e||(_0x20fc1e=_0x461cc8[_0x51b9f1(0xe3)](_0x40dcce)),co(_0x461cc8,_0x40dcce,_0xa7954d)||(_0x553a49[_0x51b9f1(0xdf)](_0x461cc8[_0x51b9f1(0xf2)](_0x20fc1e,_0x178304[_0x51b9f1(0xf9)](_0x40dcce)?_0x461cc8[_0x51b9f1(0xde)](_0x40dcce):_0x461cc8[_0x51b9f1(0x102)](_0x40dcce,_0x51b9f1(0xe2)))),_0x20fc1e=null),_0x43a023++;}return _0x553a49;}function _0x3aba(_0x356b8b,_0xdb277){const _0x4afe2c=_0x4afe();return _0x3aba=function(_0x3abab0,_0xe8444e){_0x3abab0=_0x3abab0-0xdd;let _0x18889f=_0x4afe2c[_0x3abab0];return _0x18889f;},_0x3aba(_0x356b8b,_0xdb277);}function co(_0x3a1267,_0x1f311f,_0x2fdbab){const _0x2419a6=_0x3aba;if(!_0x2fdbab)return!0x1;const _0x61ed98=_0x3a1267[_0x2419a6(0xde)](_0x1f311f),_0x4bcfbf=_0x3a1267[_0x2419a6(0xe3)](_0x2fdbab);return _0x61ed98[_0x2419a6(0xf5)](_0x4bcfbf);}function _0x4afe(){const _0x367c7e=['11382IXWiAN','50pqEJse','1197081LEibLl','splice','createPositionAfter','push','next','2156076MMJpWF','end','createPositionBefore','start','execute','value','534158YbaXSE','from','getRanges','1774644vjFgBy','color','isMultiRange','isInContent','add','sort','\x20[color\x20','replace','createRange','schema','17238keMCKA','isTouching','isArray','1528bRBdTa','isIntersecting','isObject','change','735YvlosA','content','type','join','length','isCollapsed','214061QSRoDW','createPositionAt','deletion','map'];_0x4afe=function(){return _0x367c7e;};return _0x4afe();}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x434819,_0x3f1144,_0x437dbc){const _0x2d41e6=_0x3aba;for(;_0x437dbc[_0x2d41e6(0xff)];){const _0x4ac41b=_0x437dbc[_0x2d41e6(0xdd)](0x0,0x64);_0x434819[_0x2d41e6(0xfa)](()=>{const _0x49a48b=_0x2d41e6;for(const _0x27deb2 of _0x4ac41b)_0x27deb2[_0x49a48b(0xed)]&&_0x3f1144[_0x49a48b(0xe5)](_0x27deb2['id']);});}}
|