@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240707.0 → 0.0.0-nightly-20240709.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/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- 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/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.js +2 -2
- 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.js +2 -2
- 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 _0x1794e3=_0x12db;function _0x12db(_0x56ee5e,_0x57a582){const _0x2e5e91=_0x2e5e();return _0x12db=function(_0x12dbf8,_0x5ad2b8){_0x12dbf8=_0x12dbf8-0xee;let _0x445094=_0x2e5e91[_0x12dbf8];return _0x445094;},_0x12db(_0x56ee5e,_0x57a582);}function _0x2e5e(){const _0x40b183=['2671944gYIdKN','createAnnotationView','5iSDuPQ','getMarkers','switchbutton','acceptAllSuggestions','TrackChangesUI','requires','getMarkerNames','trackChanges','menuBar:trackChanges','Accept\x20all\x20selected\x20suggestions','locale','Discard\x20all\x20suggestions','comments','isMultiRange','comments.maxCommentsWhenCollapsed','getDescriptions','destroy','getFirstRange','_refreshActiveMarkers','keys','Annotations','createAnnotation','menuitemcheckbox','459649CLjZOI','activeAnnotations','editor','head','discardSelectedSuggestions','from','values','bind','_destroyController','discardButton','refreshSelectedViews','toMany','commandName','config','arrowView','init','suggestionChanged','previous','_addUIComponentsToFactory','createCommentThreadController','change:previous','CommentsUI','stopListening','reduce','actionView','view','buttonView','menu','source','_handleControllerBuffer','isEnabled','acceptSelectedSuggestions','commentThread','_annotationViews','innerView','activeMarkers','change:activeAnnotations','set','commands','SuggestionThreadView','addComment','length','trackChanges.SuggestionThreadView','panelView','Accept\x20all\x20suggestions','1237220WaVatC','_updateController','discardAllSuggestions','getSuggestion','lowest','descriptionFactory','19449522TSTRer','menuitem','model','listenTo','descriptionParts','561267MUBTbn','editing','type','trackChanges.disableComments','369687WSVTfC','comments.maxCommentCharsWhenCollapsed','size','getRanges','suggestionLoaded','EditorAnnotations','getAllAdjacentSuggestions','push','mainView','getByInnerView','TrackChangesEditing','remove','children','separator','_createMenuBarMenu','hasSuggestion','8uJHInw','filter','delete','pluginName','Track\x20changes','componentFactory','CommentView','Discard\x20all\x20selected\x20suggestions','addSourceCollector','button','add','_createToolbarButton','_viewToController','plugins','suggestionUnloaded','acceptButton','_unbindEditors','_suggestionToController','isOn','isDirty','clear','comments.maxThreadTotalWeight','831618GKVunB','isInContent','get','suggestion-','CommentsRepository','delegate','_handleSuggestionControllerDelayed','items','some','comments.editorConfig','define','getJoined','execute','focus','registerAnnotation','_disableComments','has','_bindAnnotationToEditors','unbind','value','_initializeController'];_0x2e5e=function(){return _0x40b183;};return _0x2e5e();}(function(_0x370055,_0x253831){const _0x3c9bdb=_0x12db,_0x2e4a62=_0x370055();while(!![]){try{const _0x3c32df=-parseInt(_0x3c9bdb(0xff))/0x1+-parseInt(_0x3c9bdb(0x161))/0x2+-parseInt(_0x3c9bdb(0x13b))/0x3+parseInt(_0x3c9bdb(0x12c))/0x4*(-parseInt(_0x3c9bdb(0x178))/0x5)+-parseInt(_0x3c9bdb(0x176))/0x6+-parseInt(_0x3c9bdb(0x137))/0x7+parseInt(_0x3c9bdb(0x14b))/0x8*(parseInt(_0x3c9bdb(0x132))/0x9);if(_0x3c32df===_0x253831)break;else _0x2e4a62['push'](_0x2e4a62['shift']());}catch(_0x2ec246){_0x2e4a62['push'](_0x2e4a62['shift']());}}}(_0x2e5e,0x4ff89));import{Plugin as _0x142452}from'ckeditor5/src/core.js';import{Collection as _0xf55c7f}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x278471,createDropdown as _0x4f3685,ListSeparatorView as _0x5465e5,MenuBarMenuView as _0xa2b581,MenuBarMenuListView as _0x54835a,MenuBarMenuListItemView as _0x16549b,MenuBarMenuListItemButtonView as _0x284649,SplitButtonView as _0x2c04d3,ViewModel as _0x41831c}from'ckeditor5/src/ui.js';import{Users as _0xb380b8,getDateTimeFormatter as _0x1472d8,getAllMarkersDomElementsSorted as _0x1f1e5f}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3bcf57 from'./trackchangesediting.js';import _0x3d402a from'./ui/suggestioncontroller.js';import _0x3923a3 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x56e09d}from'./utils/common-translations.js';import _0x5b8536 from'../theme/icons/track-changes.svg';export default class d extends _0x142452{static get[_0x1794e3(0x17d)](){const _0x469e8f=_0x1794e3;return[_0x3bcf57,_0xb380b8,_0x469e8f(0x165),_0x469e8f(0xfc),_0x469e8f(0x140)];}static get[_0x1794e3(0x14e)](){const _0xf457dc=_0x1794e3;return _0xf457dc(0x17c);}constructor(_0x43bc78){const _0x4372b1=_0x1794e3;super(_0x43bc78),this[_0x4372b1(0x15c)]=new Map(),this[_0x4372b1(0x157)]=new Map(),this[_0x4372b1(0x120)]=new Map(),this[_0x4372b1(0x11c)]=new Map();const _0x39733f=this[_0x4372b1(0x101)][_0x4372b1(0x10c)];_0x39733f[_0x4372b1(0x16b)](_0x4372b1(0x129),_0x3923a3),_0x39733f[_0x4372b1(0x16b)](_0x4372b1(0x13a),!0x1),this[_0x4372b1(0x170)]=_0x39733f[_0x4372b1(0x163)](_0x4372b1(0x13a));}[_0x1794e3(0x167)](_0x2ed6b3,_0x9a6049){const _0x4c19c7=_0x1794e3;0x0===this[_0x4c19c7(0x11c)][_0x4c19c7(0x13d)]&&setTimeout(()=>{const _0x18bc99=_0x4c19c7;for(const [_0x5b96e0,_0x57ce0b]of this[_0x18bc99(0x11c)]){const _0x594fc0=this[_0x18bc99(0x15c)][_0x18bc99(0x171)](_0x5b96e0);_0x594fc0||_0x57ce0b?_0x594fc0&&_0x57ce0b&&this[_0x18bc99(0x107)](_0x5b96e0):this[_0x18bc99(0x175)](_0x5b96e0);}this[_0x18bc99(0x11c)][_0x18bc99(0x15f)](),this[_0x18bc99(0x101)][_0x18bc99(0x158)][_0x18bc99(0x163)](_0x18bc99(0x140))[_0x18bc99(0x109)](),this[_0x18bc99(0xfa)]();},0xa),this[_0x4c19c7(0x11c)][_0x4c19c7(0x124)](_0x2ed6b3,_0x9a6049);}[_0x1794e3(0x10e)](){const _0x32c3bf=_0x1794e3,_0x2931da=this[_0x32c3bf(0x101)],_0x5e4730=_0x2931da[_0x32c3bf(0x158)][_0x32c3bf(0x163)](_0x32c3bf(0x145)),_0x230699=_0x2931da[_0x32c3bf(0x158)][_0x32c3bf(0x163)](_0x32c3bf(0xfc)),_0x1f8746=_0x2931da[_0x32c3bf(0x158)][_0x32c3bf(0x163)](_0x32c3bf(0x140)),_0x4afd3e=_0x2931da[_0x32c3bf(0x158)][_0x32c3bf(0x163)](_0x32c3bf(0x165));this[_0x32c3bf(0x111)](),_0x1f8746[_0x32c3bf(0x153)](()=>{const _0x3823a7=_0x32c3bf,_0x962331=[];for(const [_0x329599,_0x2cee49]of Array[_0x3823a7(0x104)](this[_0x3823a7(0x15c)])){const _0x2a3dc6=_0x329599[_0x3823a7(0x141)](),_0xa2d8a7=[];for(const _0x4e3d24 of _0x2a3dc6){if(!_0x4e3d24[_0x3823a7(0x162)])continue;if(_0x4e3d24[_0x3823a7(0xf5)]){_0xa2d8a7[_0x3823a7(0x142)](..._0x4e3d24[_0x3823a7(0x13e)]());continue;}const _0x1e43f3=_0x4e3d24[_0x3823a7(0xf9)]();if(_0xa2d8a7[_0x3823a7(0x128)]>0x0){const _0x4fc50a=_0xa2d8a7[0x0][_0x3823a7(0x16c)](_0x1e43f3);if(_0x4fc50a){_0xa2d8a7[0x0]=_0x4fc50a;continue;}}_0xa2d8a7[_0x3823a7(0x142)](_0x1e43f3);}_0x962331[_0x3823a7(0x142)]([_0x2cee49[_0x3823a7(0x118)],_0xa2d8a7]);}return _0x962331;}),this[_0x32c3bf(0x135)](_0x5e4730,_0x32c3bf(0x13f),(_0x55a2a5,_0x5730da)=>{const _0x5ad8c9=_0x32c3bf;this[_0x5ad8c9(0x135)](_0x5730da,_0x5ad8c9(0x113),(_0x422540,_0x4a25a7,_0xe44c4e,_0x437456)=>{const _0x406b27=_0x5ad8c9;_0x5730da[_0x406b27(0x162)]&&(null==_0xe44c4e?(this[_0x406b27(0x12d)](_0x437456[_0x406b27(0x102)]),this[_0x406b27(0x167)](_0x5730da,!0x1)):(this[_0x406b27(0x12d)](_0xe44c4e[_0x406b27(0x102)]),null==_0x437456&&this[_0x406b27(0x167)](_0x5730da,!0x0)));}),null!==_0x5730da[_0x5ad8c9(0x110)]?this[_0x5ad8c9(0x12d)](_0x5730da[_0x5ad8c9(0x102)]):this[_0x5ad8c9(0x167)](_0x5730da,!0x1);}),this[_0x32c3bf(0x135)](_0x5e4730,_0x32c3bf(0x159),(_0x3b701c,_0x5739d9,_0x29c6a7)=>{const _0x3e7192=_0x32c3bf;this[_0x3e7192(0x115)](_0x5739d9,_0x3e7192(0x113)),this[_0x3e7192(0x11c)][_0x3e7192(0x14d)](_0x5739d9),this[_0x3e7192(0x15c)][_0x3e7192(0x171)](_0x5739d9)&&this[_0x3e7192(0x107)](_0x5739d9),_0x29c6a7&&this[_0x3e7192(0x12d)](_0x29c6a7[_0x3e7192(0x102)]);}),this[_0x32c3bf(0x135)](_0x5e4730,_0x32c3bf(0x10f),(_0x2e186e,_0x3614ae)=>{const _0xb38f32=_0x32c3bf;this[_0xb38f32(0x12d)](_0x3614ae);}),this[_0x32c3bf(0x135)](_0x230699,_0x32c3bf(0x123),()=>{const _0x7b8039=_0x32c3bf;this[_0x7b8039(0xfa)]();}),this[_0x32c3bf(0x135)](_0x4afd3e,_0x32c3bf(0x127),(_0x4307d0,{threadId:_0x4741f5,isFromAdapter:_0x27f90c})=>{const _0x113d74=_0x32c3bf;if(_0x27f90c||!_0x5e4730[_0x113d74(0x14a)](_0x4741f5))return;const _0x488fe3=_0x5e4730[_0x113d74(0x12f)](_0x4741f5);this[_0x113d74(0x15c)][_0x113d74(0x163)](_0x488fe3)[_0x113d74(0x118)][_0x113d74(0x16e)]();},{'priority':_0x32c3bf(0x130)});}[_0x1794e3(0xfa)](){const _0x3afde4=_0x1794e3,_0x11fbbf=this[_0x3afde4(0x101)][_0x3afde4(0x158)][_0x3afde4(0x163)](_0x3afde4(0xfc)),_0x3bfe31=this[_0x3afde4(0x101)][_0x3afde4(0x158)][_0x3afde4(0x163)](_0x3afde4(0x145)),_0x4d1bcc=Array[_0x3afde4(0x104)](_0x11fbbf[_0x3afde4(0x100)],_0x1474c3=>_0x1474c3[_0x3afde4(0x121)])[_0x3afde4(0x14c)](_0x113742=>this[_0x3afde4(0x157)][_0x3afde4(0x171)](_0x113742)),_0x37b037=[];for(const _0x5214b1 of _0x4d1bcc){const _0xff304f=this[_0x3afde4(0x157)][_0x3afde4(0x163)](_0x5214b1)[_0x3afde4(0x134)][_0x3afde4(0x141)]();_0x37b037[_0x3afde4(0x142)](..._0xff304f[_0x3afde4(0x116)]((_0xc393b9,_0x32c78e)=>[..._0xc393b9,..._0x32c78e[_0x3afde4(0xee)]()],[]));}_0x3bfe31[_0x3afde4(0x122)]=_0x37b037;}[_0x1794e3(0x111)](){const _0x12788c=_0x1794e3,_0x4c3218=this[_0x12788c(0x101)],_0x50349c=_0x4c3218[_0x12788c(0xf2)],_0x3dc22f=_0x56e09d(_0x50349c,_0x12788c(0x14f)),_0x1af313=new _0xf55c7f([{'type':_0x12788c(0x17a),'model':new _0x41831c({'withText':!0x0,'isToggleable':!0x0,'label':_0x3dc22f,'commandName':_0x12788c(0xef),'role':_0x12788c(0xfe)})},{'type':_0x12788c(0x148)},{'type':_0x12788c(0x154),'model':new _0x41831c({'withText':!0x0,'label':_0x56e09d(_0x50349c,_0x12788c(0x12b)),'commandName':_0x12788c(0x17b),'role':_0x12788c(0x133)})},{'type':_0x12788c(0x154),'model':new _0x41831c({'withText':!0x0,'label':_0x56e09d(_0x50349c,_0x12788c(0xf1)),'commandName':_0x12788c(0x11e),'role':_0x12788c(0x133)})},{'type':_0x12788c(0x154),'model':new _0x41831c({'withText':!0x0,'label':_0x56e09d(_0x50349c,_0x12788c(0xf3)),'commandName':_0x12788c(0x12e),'role':_0x12788c(0x133)})},{'type':_0x12788c(0x154),'model':new _0x41831c({'withText':!0x0,'label':_0x56e09d(_0x50349c,_0x12788c(0x152)),'commandName':_0x12788c(0x103),'role':_0x12788c(0x133)})}]);for(const _0x2e9ac4 of _0x1af313)if(ae(_0x2e9ac4)){const _0x1c902a=_0x4c3218[_0x12788c(0x125)][_0x12788c(0x163)](_0x2e9ac4[_0x12788c(0x134)][_0x12788c(0x10b)]);_0x2e9ac4[_0x12788c(0x134)][_0x12788c(0x106)](_0x12788c(0x15d),_0x12788c(0x11d))['to'](_0x1c902a,_0x12788c(0x174),_0x12788c(0x11d));}_0x4c3218['ui'][_0x12788c(0x150)][_0x12788c(0x155)](_0x12788c(0xef),_0x59e59d=>this[_0x12788c(0x156)](_0x59e59d,_0x1af313,_0x3dc22f)),_0x4c3218['ui'][_0x12788c(0x150)][_0x12788c(0x155)](_0x12788c(0xf0),_0x28fc41=>this[_0x12788c(0x149)](_0x28fc41,_0x1af313,_0x3dc22f));}[_0x1794e3(0x156)](_0x2a1fd2,_0x5b10c0,_0x177967){const _0x58e8a3=_0x1794e3,_0x6c5b53=_0x4f3685(_0x2a1fd2,_0x2c04d3),_0x28be6c=this[_0x58e8a3(0x101)][_0x58e8a3(0x125)][_0x58e8a3(0x163)](_0x58e8a3(0xef));_0x6c5b53[_0x58e8a3(0x119)][_0x58e8a3(0x124)]({'tooltip':_0x177967,'label':_0x177967,'icon':_0x5b8536}),_0x6c5b53[_0x58e8a3(0x119)][_0x58e8a3(0x106)](_0x58e8a3(0x15d))['to'](_0x28be6c,_0x58e8a3(0x174)),_0x6c5b53[_0x58e8a3(0x119)]['on'](_0x58e8a3(0x16d),()=>{const _0x1f1f39=_0x58e8a3;_0x28be6c[_0x1f1f39(0x16d)](),this[_0x1f1f39(0x101)][_0x1f1f39(0x138)][_0x1f1f39(0x118)][_0x1f1f39(0x16e)]();}),_0x278471(_0x6c5b53,_0x5b10c0,{'role':_0x58e8a3(0x11a)});const _0x18d2d7=[];for(const _0x390b76 of _0x5b10c0)ae(_0x390b76)&&_0x18d2d7[_0x58e8a3(0x142)](this[_0x58e8a3(0x101)][_0x58e8a3(0x125)][_0x58e8a3(0x163)](_0x390b76[_0x58e8a3(0x134)][_0x58e8a3(0x10b)]));const _0x391020=_0x6c5b53[_0x58e8a3(0x119)];return _0x391020[_0x58e8a3(0x117)][_0x58e8a3(0x173)](_0x58e8a3(0x11d)),_0x391020[_0x58e8a3(0x10d)][_0x58e8a3(0x173)](_0x58e8a3(0x11d)),_0x391020[_0x58e8a3(0x117)][_0x58e8a3(0x106)](_0x58e8a3(0x11d))['to'](_0x28be6c,_0x58e8a3(0x11d)),_0x391020[_0x58e8a3(0x10d)][_0x58e8a3(0x106)](_0x58e8a3(0x11d))[_0x58e8a3(0x10a)](_0x18d2d7,_0x58e8a3(0x11d),(..._0x5ca1a5)=>_0x5ca1a5[_0x58e8a3(0x169)](_0x2aec19=>_0x2aec19)),_0x6c5b53['on'](_0x58e8a3(0x16d),_0x25928d=>{const _0x2422b2=_0x58e8a3;this[_0x2422b2(0x101)][_0x2422b2(0x16d)](_0x25928d[_0x2422b2(0x11b)][_0x2422b2(0x10b)]),this[_0x2422b2(0x101)][_0x2422b2(0x138)][_0x2422b2(0x118)][_0x2422b2(0x16e)]();}),_0x6c5b53;}[_0x1794e3(0x149)](_0x553ecc,_0x5e7096,_0x299b7e){const _0x575152=_0x1794e3,_0x26b654=new _0xa2b581(_0x553ecc),_0x1dd2d0=this[_0x575152(0x101)][_0x575152(0x125)][_0x575152(0x163)](_0x575152(0xef));_0x26b654[_0x575152(0x119)][_0x575152(0x124)]({'label':_0x299b7e,'icon':_0x5b8536});const _0x5cf726=new _0x54835a(_0x553ecc);for(const _0x4bbf77 of _0x5e7096){if(_0x575152(0x148)==_0x4bbf77[_0x575152(0x139)]){_0x5cf726[_0x575152(0x168)][_0x575152(0x155)](new _0x5465e5(_0x553ecc));continue;}const _0x28860e=new _0x16549b(_0x553ecc,_0x26b654),_0x4b8487=new _0x284649(_0x553ecc),_0x14285a=_0x4bbf77[_0x575152(0x134)];_0x4b8487[_0x575152(0x106)](...Object[_0x575152(0xfb)](_0x14285a))['to'](_0x14285a),_0x4b8487[_0x575152(0x166)](_0x575152(0x16d))['to'](_0x26b654),_0x4b8487['on'](_0x575152(0x16d),()=>{const _0x551221=_0x575152;this[_0x551221(0x101)][_0x551221(0x16d)](_0x14285a[_0x551221(0x10b)]),this[_0x551221(0x101)][_0x551221(0x138)][_0x551221(0x118)][_0x551221(0x16e)]();}),_0x28860e[_0x575152(0x147)][_0x575152(0x155)](_0x4b8487),_0x5cf726[_0x575152(0x168)][_0x575152(0x155)](_0x28860e);}return _0x26b654[_0x575152(0x106)](_0x575152(0x11d))['to'](_0x1dd2d0,_0x575152(0x11d)),_0x26b654[_0x575152(0x12a)][_0x575152(0x147)][_0x575152(0x155)](_0x5cf726),_0x26b654;}[_0x1794e3(0x175)](_0x4585bd){const _0x369620=_0x1794e3,_0x162839=this[_0x369620(0x101)],_0x1376b5=_0x162839[_0x369620(0x10c)],_0x203a30=_0x162839[_0x369620(0x158)][_0x369620(0x163)](_0x369620(0xfc)),_0x19feea=_0x162839[_0x369620(0x158)][_0x369620(0x163)](_0x369620(0x165)),_0x4b9073=_0x162839[_0x369620(0x158)][_0x369620(0x163)](_0x369620(0x140)),_0x4c547b=_0x162839[_0x369620(0x158)][_0x369620(0x163)](_0xb380b8)['me'],_0x3e8071=_0x1376b5[_0x369620(0x163)](_0x369620(0xef))[_0x369620(0x126)],{CommentsListView:_0x230e9c,CommentThreadInputView:_0x4c90b5}=_0x162839[_0x369620(0x158)][_0x369620(0x163)](_0x369620(0x114));let _0x407e4e,_0x984bf5;this[_0x369620(0x120)][_0x369620(0x171)](_0x4585bd['id'])?(_0x984bf5=this[_0x369620(0x120)][_0x369620(0x163)](_0x4585bd['id']),_0x407e4e=_0x984bf5[_0x369620(0x143)]):(_0x407e4e=new _0x3e8071(_0x162839[_0x369620(0xf2)],_0x4585bd,_0x4c547b,{'disableComments':this[_0x369620(0x170)],'editorConfig':_0x1376b5[_0x369620(0x163)](_0x369620(0x16a)),'maxCommentsWhenCollapsed':_0x1376b5[_0x369620(0x163)](_0x369620(0xf6)),'maxThreadTotalWeight':_0x1376b5[_0x369620(0x163)](_0x369620(0x160)),'maxCommentCharsWhenCollapsed':_0x1376b5[_0x369620(0x163)](_0x369620(0x13c)),'formatDateTime':_0x1472d8(_0x1376b5[_0x369620(0x163)](_0x369620(0xf2))),'CommentView':_0x1376b5[_0x369620(0x163)](_0x369620(0xf4))[_0x369620(0x151)],'CommentsListView':_0x230e9c,'CommentThreadInputView':_0x4c90b5}),_0x407e4e[_0x369620(0x15a)]['on'](_0x369620(0x16d),()=>{const _0x4c696d=_0x369620;_0x162839[_0x4c696d(0x138)][_0x4c696d(0x118)][_0x4c696d(0x16e)]();}),_0x407e4e[_0x369620(0x108)]['on'](_0x369620(0x16d),()=>{const _0x1227e9=_0x369620;_0x162839[_0x1227e9(0x138)][_0x1227e9(0x118)][_0x1227e9(0x16e)]();}),_0x984bf5=_0x203a30[_0x369620(0x177)](this[_0x369620(0x101)][_0x369620(0xf2)],_0x407e4e),_0x984bf5[_0x369620(0x106)](_0x369620(0x15e))['to'](_0x407e4e,_0x369620(0x15e)),_0x984bf5[_0x369620(0x106)](_0x369620(0x128))['to'](_0x407e4e),_0x984bf5[_0x369620(0x106)](_0x369620(0x139))['to'](_0x407e4e,_0x369620(0x139),_0x44b8de=>_0x369620(0x164)+_0x44b8de),this[_0x369620(0x120)][_0x369620(0x124)](_0x4585bd['id'],_0x984bf5));const _0x5a7d47=_0x19feea[_0x369620(0x112)](_0x4585bd[_0x369620(0x11f)],_0x407e4e),_0xd8ed49=new _0x3d402a(_0x162839,_0x4585bd,_0x407e4e,_0x5a7d47),_0x164e33=_0x4585bd[_0x369620(0x141)]()[_0x369620(0x14c)](_0x408fd1=>_0x408fd1[_0x369620(0x162)]);_0x407e4e[_0x369620(0x136)]=_0x162839[_0x369620(0x158)][_0x369620(0x163)](_0x369620(0x145))[_0x369620(0x131)][_0x369620(0xf7)](_0x164e33),this[_0x369620(0x15c)][_0x369620(0x124)](_0x4585bd,_0xd8ed49),this[_0x369620(0x157)][_0x369620(0x124)](_0x407e4e,_0xd8ed49);const _0x48c423=_0x203a30[_0x369620(0xfd)]({'view':_0x984bf5,'target':()=>{const _0x227123=_0x369620,_0x1ca278=[],_0x451bbb=_0x4585bd[_0x227123(0x141)]()[_0x227123(0x14c)](_0xa6094e=>_0xa6094e[_0x227123(0x162)]);for(const _0x424d58 of _0x451bbb)_0x1ca278[_0x227123(0x142)](..._0x424d58[_0x227123(0x179)]());return _0x1f1e5f(_0x162839[_0x227123(0x138)],_0x1ca278);},'type':()=>_0x369620(0x164)+_0xd8ed49[_0x369620(0x118)][_0x369620(0x139)]});_0x19feea[_0x369620(0x172)](_0x407e4e,_0x48c423),_0x203a30[_0x369620(0x155)](_0x48c423),_0x4b9073[_0x369620(0x16f)](_0x48c423);}[_0x1794e3(0x107)](_0x18554c){const _0x33cba2=_0x1794e3,_0x4c71b7=this[_0x33cba2(0x101)][_0x33cba2(0x158)][_0x33cba2(0x163)](_0x33cba2(0x165)),_0x42d925=this[_0x33cba2(0x101)][_0x33cba2(0x158)][_0x33cba2(0x163)](_0x33cba2(0xfc)),_0x27311c=this[_0x33cba2(0x15c)][_0x33cba2(0x163)](_0x18554c),_0x381c47=_0x27311c[_0x33cba2(0x118)],_0x1851cc=_0x42d925[_0x33cba2(0x144)](_0x381c47);_0x4c71b7[_0x33cba2(0x15b)](_0x381c47),_0x1851cc&&_0x42d925[_0x33cba2(0x146)](_0x1851cc),this[_0x33cba2(0x15c)][_0x33cba2(0x14d)](_0x18554c),this[_0x33cba2(0x157)][_0x33cba2(0x14d)](_0x381c47),_0x27311c[_0x33cba2(0xf8)]();}[_0x1794e3(0x12d)](_0x23d177){const _0x1efde0=_0x1794e3;if(!_0x23d177[_0x1efde0(0x162)]||!this[_0x1efde0(0x15c)][_0x1efde0(0x171)](_0x23d177))return;const _0x5eb1bc=this[_0x1efde0(0x101)][_0x1efde0(0x158)][_0x1efde0(0x163)](_0x1efde0(0x145)),_0x253d20=this[_0x1efde0(0x15c)][_0x1efde0(0x163)](_0x23d177),_0x527d07=_0x23d177[_0x1efde0(0x141)]();_0x253d20[_0x1efde0(0x118)][_0x1efde0(0x136)]=_0x5eb1bc[_0x1efde0(0x131)][_0x1efde0(0xf7)](_0x527d07);}[_0x1794e3(0xf8)](){const _0x5d045f=_0x1794e3;for(const _0x1c2d1a of this[_0x5d045f(0x15c)][_0x5d045f(0xfb)]())this[_0x5d045f(0x107)](_0x1c2d1a);for(const _0x167c69 of this[_0x5d045f(0x120)][_0x5d045f(0x105)]())_0x167c69[_0x5d045f(0x143)][_0x5d045f(0xf8)]();super[_0x5d045f(0xf8)]();}}function ae(_0x2c59b8){const _0x568401=_0x1794e3;return _0x568401(0x134)in _0x2c59b8;}
|
|
23
|
+
function _0x41e8(_0x19abc7,_0x380fb9){const _0x42834c=_0x4283();return _0x41e8=function(_0x41e80e,_0xb9fc1c){_0x41e80e=_0x41e80e-0x97;let _0x2406a6=_0x42834c[_0x41e80e];return _0x2406a6;},_0x41e8(_0x19abc7,_0x380fb9);}const _0x1c57ac=_0x41e8;(function(_0x34f100,_0x442f6c){const _0x133495=_0x41e8,_0x518ee2=_0x34f100();while(!![]){try{const _0x5cccb1=-parseInt(_0x133495(0xc0))/0x1*(-parseInt(_0x133495(0x116))/0x2)+-parseInt(_0x133495(0xbb))/0x3+parseInt(_0x133495(0xdc))/0x4*(parseInt(_0x133495(0xdb))/0x5)+parseInt(_0x133495(0x119))/0x6+parseInt(_0x133495(0xe9))/0x7+-parseInt(_0x133495(0x98))/0x8+-parseInt(_0x133495(0x114))/0x9;if(_0x5cccb1===_0x442f6c)break;else _0x518ee2['push'](_0x518ee2['shift']());}catch(_0x55f9fb){_0x518ee2['push'](_0x518ee2['shift']());}}}(_0x4283,0x2cd76));import{Plugin as _0x2026ef}from'ckeditor5/src/core.js';import{Collection as _0x571ecf}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x187050,createDropdown as _0x22093f,ListSeparatorView as _0x5d5ade,MenuBarMenuView as _0x54f119,MenuBarMenuListView as _0x58367d,MenuBarMenuListItemView as _0x204b64,MenuBarMenuListItemButtonView as _0x1f1f9f,SplitButtonView as _0x335cb8,ViewModel as _0x39361e}from'ckeditor5/src/ui.js';import{Users as _0x39547a,getDateTimeFormatter as _0x3a3431,getAllMarkersDomElementsSorted as _0x121ed3}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x388097 from'./trackchangesediting.js';import _0x492da5 from'./ui/suggestioncontroller.js';import _0x2489c1 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x2306fc}from'./utils/common-translations.js';import _0x3d75f1 from'../theme/icons/track-changes.svg';function _0x4283(){const _0x5b8c96=['menu','Discard\x20all\x20selected\x20suggestions','_handleControllerBuffer','value','addSourceCollector','push','componentFactory','focus','_updateController','unbind','_disableComments','getRanges','menuitemcheckbox','createCommentThreadController','change:activeAnnotations','add','comments','children','Track\x20changes','_bindAnnotationToEditors','listenTo','descriptionParts','createAnnotationView','values','bind','1389830gfwRgI','4Ejrsku','CommentsRepository','mainView','delete','getSuggestion','isOn','init','menuitem','getMarkers','suggestion-','Annotations','define','set','1292690UcRZYe','isDirty','TrackChangesUI','switchbutton','separator','config','button','toMany','Accept\x20all\x20suggestions','Accept\x20all\x20selected\x20suggestions','requires','previous','addComment','descriptionFactory','discardButton','comments.maxThreadTotalWeight','arrowView','getAllAdjacentSuggestions','refreshSelectedViews','CommentsUI','destroy','activeAnnotations','view','getByInnerView','commentThread','getMarkerNames','commands','_refreshActiveMarkers','actionView','_annotationViews','editing','_initializeController','CommentView','getJoined','_suggestionToController','clear','EditorAnnotations','type','isEnabled','_createToolbarButton','panelView','trackChanges.disableComments','getDescriptions','5443371GhMcfF','head','89862jFTrXO','discardSelectedSuggestions','_unbindEditors','473892uQtspF','TrackChangesEditing','change:previous','locale','acceptAllSuggestions','registerAnnotation','source','trackChanges','innerView','createAnnotation','comments.editorConfig','some','pluginName','length','commandName','240792CERmET','size','model','suggestionChanged','comments.maxCommentCharsWhenCollapsed','isMultiRange','stopListening','comments.maxCommentsWhenCollapsed','delegate','activeMarkers','from','lowest','_createMenuBarMenu','trackChanges.SuggestionThreadView','_handleSuggestionControllerDelayed','has','get','suggestionLoaded','suggestionUnloaded','buttonView','getFirstRange','_addUIComponentsToFactory','plugins','discardAllSuggestions','menuBar:trackChanges','acceptSelectedSuggestions','keys','filter','execute','remove','hasSuggestion','_destroyController','reduce','isInContent','acceptButton','247434hCulIp','editor','_viewToController','items','SuggestionThreadView','8UWuUPr','Discard\x20all\x20suggestions'];_0x4283=function(){return _0x5b8c96;};return _0x4283();}export default class d extends _0x2026ef{static get[_0x1c57ac(0xf3)](){const _0x23cdae=_0x1c57ac;return[_0x388097,_0x39547a,_0x23cdae(0xdd),_0x23cdae(0xe6),_0x23cdae(0x10d)];}static get[_0x1c57ac(0x125)](){const _0x4c453e=_0x1c57ac;return _0x4c453e(0xeb);}constructor(_0x3e0bb3){const _0xe8c207=_0x1c57ac;super(_0x3e0bb3),this[_0xe8c207(0x10b)]=new Map(),this[_0xe8c207(0xbd)]=new Map(),this[_0xe8c207(0x106)]=new Map(),this[_0xe8c207(0xc4)]=new Map();const _0x13090d=this[_0xe8c207(0xbc)][_0xe8c207(0xee)];_0x13090d[_0xe8c207(0xe7)](_0xe8c207(0xa5),_0x2489c1),_0x13090d[_0xe8c207(0xe7)](_0xe8c207(0x112),!0x1),this[_0xe8c207(0xcc)]=_0x13090d[_0xe8c207(0xa8)](_0xe8c207(0x112));}[_0x1c57ac(0xa6)](_0x33d9af,_0x467f32){const _0x5cf9cc=_0x1c57ac;0x0===this[_0x5cf9cc(0xc4)][_0x5cf9cc(0x99)]&&setTimeout(()=>{const _0x52b32c=_0x5cf9cc;for(const [_0x5c5804,_0x3c8f43]of this[_0x52b32c(0xc4)]){const _0x470e8e=this[_0x52b32c(0x10b)][_0x52b32c(0xa7)](_0x5c5804);_0x470e8e||_0x3c8f43?_0x470e8e&&_0x3c8f43&&this[_0x52b32c(0xb7)](_0x5c5804):this[_0x52b32c(0x108)](_0x5c5804);}this[_0x52b32c(0xc4)][_0x52b32c(0x10c)](),this[_0x52b32c(0xbc)][_0x52b32c(0xae)][_0x52b32c(0xa8)](_0x52b32c(0x10d))[_0x52b32c(0xfb)](),this[_0x52b32c(0x104)]();},0xa),this[_0x5cf9cc(0xc4)][_0x5cf9cc(0xe8)](_0x33d9af,_0x467f32);}[_0x1c57ac(0xe2)](){const _0x493f14=_0x1c57ac,_0x3ceb51=this[_0x493f14(0xbc)],_0x1fa93c=_0x3ceb51[_0x493f14(0xae)][_0x493f14(0xa8)](_0x493f14(0x11a)),_0x94fcd=_0x3ceb51[_0x493f14(0xae)][_0x493f14(0xa8)](_0x493f14(0xe6)),_0x58dc43=_0x3ceb51[_0x493f14(0xae)][_0x493f14(0xa8)](_0x493f14(0x10d)),_0x463059=_0x3ceb51[_0x493f14(0xae)][_0x493f14(0xa8)](_0x493f14(0xdd));this[_0x493f14(0xad)](),_0x58dc43[_0x493f14(0xc6)](()=>{const _0xa06c08=_0x493f14,_0x1cf223=[];for(const [_0x1aaf4e,_0x468de0]of Array[_0xa06c08(0xa2)](this[_0xa06c08(0x10b)])){const _0x1baebc=_0x1aaf4e[_0xa06c08(0xfa)](),_0x55bae3=[];for(const _0x184445 of _0x1baebc){if(!_0x184445[_0xa06c08(0xb9)])continue;if(_0x184445[_0xa06c08(0x9d)]){_0x55bae3[_0xa06c08(0xc7)](..._0x184445[_0xa06c08(0xcd)]());continue;}const _0x44b315=_0x184445[_0xa06c08(0xac)]();if(_0x55bae3[_0xa06c08(0x126)]>0x0){const _0x5290a4=_0x55bae3[0x0][_0xa06c08(0x10a)](_0x44b315);if(_0x5290a4){_0x55bae3[0x0]=_0x5290a4;continue;}}_0x55bae3[_0xa06c08(0xc7)](_0x44b315);}_0x1cf223[_0xa06c08(0xc7)]([_0x468de0[_0xa06c08(0xff)],_0x55bae3]);}return _0x1cf223;}),this[_0x493f14(0xd6)](_0x1fa93c,_0x493f14(0xa9),(_0xe1158,_0x31765e)=>{const _0x3860ab=_0x493f14;this[_0x3860ab(0xd6)](_0x31765e,_0x3860ab(0x11b),(_0x1a233,_0x502106,_0x3df0dc,_0x39647f)=>{const _0x5d42a4=_0x3860ab;_0x31765e[_0x5d42a4(0xb9)]&&(null==_0x3df0dc?(this[_0x5d42a4(0xca)](_0x39647f[_0x5d42a4(0x115)]),this[_0x5d42a4(0xa6)](_0x31765e,!0x1)):(this[_0x5d42a4(0xca)](_0x3df0dc[_0x5d42a4(0x115)]),null==_0x39647f&&this[_0x5d42a4(0xa6)](_0x31765e,!0x0)));}),null!==_0x31765e[_0x3860ab(0xf4)]?this[_0x3860ab(0xca)](_0x31765e[_0x3860ab(0x115)]):this[_0x3860ab(0xa6)](_0x31765e,!0x1);}),this[_0x493f14(0xd6)](_0x1fa93c,_0x493f14(0xaa),(_0x56d6e9,_0x319720,_0x2548fb)=>{const _0x368294=_0x493f14;this[_0x368294(0x9e)](_0x319720,_0x368294(0x11b)),this[_0x368294(0xc4)][_0x368294(0xdf)](_0x319720),this[_0x368294(0x10b)][_0x368294(0xa7)](_0x319720)&&this[_0x368294(0xb7)](_0x319720),_0x2548fb&&this[_0x368294(0xca)](_0x2548fb[_0x368294(0x115)]);}),this[_0x493f14(0xd6)](_0x1fa93c,_0x493f14(0x9b),(_0x2b3e82,_0x3761ae)=>{const _0x5c31da=_0x493f14;this[_0x5c31da(0xca)](_0x3761ae);}),this[_0x493f14(0xd6)](_0x94fcd,_0x493f14(0xd0),()=>{const _0x461b69=_0x493f14;this[_0x461b69(0x104)]();}),this[_0x493f14(0xd6)](_0x463059,_0x493f14(0xf5),(_0x53a0cb,{threadId:_0x5e7b03,isFromAdapter:_0x363c66})=>{const _0x55fd3c=_0x493f14;if(_0x363c66||!_0x1fa93c[_0x55fd3c(0xb6)](_0x5e7b03))return;const _0x24364f=_0x1fa93c[_0x55fd3c(0xe0)](_0x5e7b03);this[_0x55fd3c(0x10b)][_0x55fd3c(0xa8)](_0x24364f)[_0x55fd3c(0xff)][_0x55fd3c(0xc9)]();},{'priority':_0x493f14(0xa3)});}[_0x1c57ac(0x104)](){const _0x43d622=_0x1c57ac,_0x42c008=this[_0x43d622(0xbc)][_0x43d622(0xae)][_0x43d622(0xa8)](_0x43d622(0xe6)),_0x2194c2=this[_0x43d622(0xbc)][_0x43d622(0xae)][_0x43d622(0xa8)](_0x43d622(0x11a)),_0x25eb63=Array[_0x43d622(0xa2)](_0x42c008[_0x43d622(0xfe)],_0x4c6d8a=>_0x4c6d8a[_0x43d622(0x121)])[_0x43d622(0xb3)](_0x1c70d4=>this[_0x43d622(0xbd)][_0x43d622(0xa7)](_0x1c70d4)),_0x4adb14=[];for(const _0x3289e8 of _0x25eb63){const _0x4a8fda=this[_0x43d622(0xbd)][_0x43d622(0xa8)](_0x3289e8)[_0x43d622(0x9a)][_0x43d622(0xfa)]();_0x4adb14[_0x43d622(0xc7)](..._0x4a8fda[_0x43d622(0xb8)]((_0x4bd81b,_0x4951b5)=>[..._0x4bd81b,..._0x4951b5[_0x43d622(0x102)]()],[]));}_0x2194c2[_0x43d622(0xa1)]=_0x4adb14;}[_0x1c57ac(0xad)](){const _0x45d35b=_0x1c57ac,_0x3e26cb=this[_0x45d35b(0xbc)],_0x4cba67=_0x3e26cb[_0x45d35b(0x11c)],_0x2f412b=_0x2306fc(_0x4cba67,_0x45d35b(0xd4)),_0x55cd80=new _0x571ecf([{'type':_0x45d35b(0xec),'model':new _0x39361e({'withText':!0x0,'isToggleable':!0x0,'label':_0x2f412b,'commandName':_0x45d35b(0x120),'role':_0x45d35b(0xce)})},{'type':_0x45d35b(0xed)},{'type':_0x45d35b(0xef),'model':new _0x39361e({'withText':!0x0,'label':_0x2306fc(_0x4cba67,_0x45d35b(0xf1)),'commandName':_0x45d35b(0x11d),'role':_0x45d35b(0xe3)})},{'type':_0x45d35b(0xef),'model':new _0x39361e({'withText':!0x0,'label':_0x2306fc(_0x4cba67,_0x45d35b(0xf2)),'commandName':_0x45d35b(0xb1),'role':_0x45d35b(0xe3)})},{'type':_0x45d35b(0xef),'model':new _0x39361e({'withText':!0x0,'label':_0x2306fc(_0x4cba67,_0x45d35b(0xc1)),'commandName':_0x45d35b(0xaf),'role':_0x45d35b(0xe3)})},{'type':_0x45d35b(0xef),'model':new _0x39361e({'withText':!0x0,'label':_0x2306fc(_0x4cba67,_0x45d35b(0xc3)),'commandName':_0x45d35b(0x117),'role':_0x45d35b(0xe3)})}]);for(const _0x5865f8 of _0x55cd80)if(ae(_0x5865f8)){const _0x261e8d=_0x3e26cb[_0x45d35b(0x103)][_0x45d35b(0xa8)](_0x5865f8[_0x45d35b(0x9a)][_0x45d35b(0x97)]);_0x5865f8[_0x45d35b(0x9a)][_0x45d35b(0xda)](_0x45d35b(0xe1),_0x45d35b(0x10f))['to'](_0x261e8d,_0x45d35b(0xc5),_0x45d35b(0x10f));}_0x3e26cb['ui'][_0x45d35b(0xc8)][_0x45d35b(0xd1)](_0x45d35b(0x120),_0x222d8b=>this[_0x45d35b(0x110)](_0x222d8b,_0x55cd80,_0x2f412b)),_0x3e26cb['ui'][_0x45d35b(0xc8)][_0x45d35b(0xd1)](_0x45d35b(0xb0),_0x5d56f7=>this[_0x45d35b(0xa4)](_0x5d56f7,_0x55cd80,_0x2f412b));}[_0x1c57ac(0x110)](_0x22d593,_0x5e59eb,_0x1fd141){const _0x57da5d=_0x1c57ac,_0x115b0=_0x22093f(_0x22d593,_0x335cb8),_0x5366f6=this[_0x57da5d(0xbc)][_0x57da5d(0x103)][_0x57da5d(0xa8)](_0x57da5d(0x120));_0x115b0[_0x57da5d(0xab)][_0x57da5d(0xe8)]({'tooltip':_0x1fd141,'label':_0x1fd141,'icon':_0x3d75f1}),_0x115b0[_0x57da5d(0xab)][_0x57da5d(0xda)](_0x57da5d(0xe1))['to'](_0x5366f6,_0x57da5d(0xc5)),_0x115b0[_0x57da5d(0xab)]['on'](_0x57da5d(0xb4),()=>{const _0x3a0f49=_0x57da5d;_0x5366f6[_0x3a0f49(0xb4)](),this[_0x3a0f49(0xbc)][_0x3a0f49(0x107)][_0x3a0f49(0xff)][_0x3a0f49(0xc9)]();}),_0x187050(_0x115b0,_0x5e59eb,{'role':_0x57da5d(0xc2)});const _0x2d2ca7=[];for(const _0x68fda9 of _0x5e59eb)ae(_0x68fda9)&&_0x2d2ca7[_0x57da5d(0xc7)](this[_0x57da5d(0xbc)][_0x57da5d(0x103)][_0x57da5d(0xa8)](_0x68fda9[_0x57da5d(0x9a)][_0x57da5d(0x97)]));const _0x372d2e=_0x115b0[_0x57da5d(0xab)];return _0x372d2e[_0x57da5d(0x105)][_0x57da5d(0xcb)](_0x57da5d(0x10f)),_0x372d2e[_0x57da5d(0xf9)][_0x57da5d(0xcb)](_0x57da5d(0x10f)),_0x372d2e[_0x57da5d(0x105)][_0x57da5d(0xda)](_0x57da5d(0x10f))['to'](_0x5366f6,_0x57da5d(0x10f)),_0x372d2e[_0x57da5d(0xf9)][_0x57da5d(0xda)](_0x57da5d(0x10f))[_0x57da5d(0xf0)](_0x2d2ca7,_0x57da5d(0x10f),(..._0x140495)=>_0x140495[_0x57da5d(0x124)](_0x44c7b4=>_0x44c7b4)),_0x115b0['on'](_0x57da5d(0xb4),_0x41c8b3=>{const _0x4f0c43=_0x57da5d;this[_0x4f0c43(0xbc)][_0x4f0c43(0xb4)](_0x41c8b3[_0x4f0c43(0x11f)][_0x4f0c43(0x97)]),this[_0x4f0c43(0xbc)][_0x4f0c43(0x107)][_0x4f0c43(0xff)][_0x4f0c43(0xc9)]();}),_0x115b0;}[_0x1c57ac(0xa4)](_0x1d8e03,_0x30d6d8,_0x120b40){const _0x28d8a0=_0x1c57ac,_0x403dc0=new _0x54f119(_0x1d8e03),_0x49eefa=this[_0x28d8a0(0xbc)][_0x28d8a0(0x103)][_0x28d8a0(0xa8)](_0x28d8a0(0x120));_0x403dc0[_0x28d8a0(0xab)][_0x28d8a0(0xe8)]({'label':_0x120b40,'icon':_0x3d75f1});const _0x5cabdd=new _0x58367d(_0x1d8e03);for(const _0xf5f112 of _0x30d6d8){if(_0x28d8a0(0xed)==_0xf5f112[_0x28d8a0(0x10e)]){_0x5cabdd[_0x28d8a0(0xbe)][_0x28d8a0(0xd1)](new _0x5d5ade(_0x1d8e03));continue;}const _0x593fca=new _0x204b64(_0x1d8e03,_0x403dc0),_0x4b1f9a=new _0x1f1f9f(_0x1d8e03),_0x39b5c1=_0xf5f112[_0x28d8a0(0x9a)];_0x4b1f9a[_0x28d8a0(0xda)](...Object[_0x28d8a0(0xb2)](_0x39b5c1))['to'](_0x39b5c1),_0x4b1f9a[_0x28d8a0(0xa0)](_0x28d8a0(0xb4))['to'](_0x403dc0),_0x4b1f9a['on'](_0x28d8a0(0xb4),()=>{const _0x2ed963=_0x28d8a0;this[_0x2ed963(0xbc)][_0x2ed963(0xb4)](_0x39b5c1[_0x2ed963(0x97)]),this[_0x2ed963(0xbc)][_0x2ed963(0x107)][_0x2ed963(0xff)][_0x2ed963(0xc9)]();}),_0x593fca[_0x28d8a0(0xd3)][_0x28d8a0(0xd1)](_0x4b1f9a),_0x5cabdd[_0x28d8a0(0xbe)][_0x28d8a0(0xd1)](_0x593fca);}return _0x403dc0[_0x28d8a0(0xda)](_0x28d8a0(0x10f))['to'](_0x49eefa,_0x28d8a0(0x10f)),_0x403dc0[_0x28d8a0(0x111)][_0x28d8a0(0xd3)][_0x28d8a0(0xd1)](_0x5cabdd),_0x403dc0;}[_0x1c57ac(0x108)](_0xd73f77){const _0x29f3cd=_0x1c57ac,_0x35c7f9=this[_0x29f3cd(0xbc)],_0x1be163=_0x35c7f9[_0x29f3cd(0xee)],_0x4b84f6=_0x35c7f9[_0x29f3cd(0xae)][_0x29f3cd(0xa8)](_0x29f3cd(0xe6)),_0xeb2f3f=_0x35c7f9[_0x29f3cd(0xae)][_0x29f3cd(0xa8)](_0x29f3cd(0xdd)),_0x10e4da=_0x35c7f9[_0x29f3cd(0xae)][_0x29f3cd(0xa8)](_0x29f3cd(0x10d)),_0xc0dda2=_0x35c7f9[_0x29f3cd(0xae)][_0x29f3cd(0xa8)](_0x39547a)['me'],_0x415ba0=_0x1be163[_0x29f3cd(0xa8)](_0x29f3cd(0x120))[_0x29f3cd(0xbf)],{CommentsListView:_0x4f014f,CommentThreadInputView:_0x3bf1a1}=_0x35c7f9[_0x29f3cd(0xae)][_0x29f3cd(0xa8)](_0x29f3cd(0xfc));let _0x213fa5,_0x49df84;this[_0x29f3cd(0x106)][_0x29f3cd(0xa7)](_0xd73f77['id'])?(_0x49df84=this[_0x29f3cd(0x106)][_0x29f3cd(0xa8)](_0xd73f77['id']),_0x213fa5=_0x49df84[_0x29f3cd(0xde)]):(_0x213fa5=new _0x415ba0(_0x35c7f9[_0x29f3cd(0x11c)],_0xd73f77,_0xc0dda2,{'disableComments':this[_0x29f3cd(0xcc)],'editorConfig':_0x1be163[_0x29f3cd(0xa8)](_0x29f3cd(0x123)),'maxCommentsWhenCollapsed':_0x1be163[_0x29f3cd(0xa8)](_0x29f3cd(0x9f)),'maxThreadTotalWeight':_0x1be163[_0x29f3cd(0xa8)](_0x29f3cd(0xf8)),'maxCommentCharsWhenCollapsed':_0x1be163[_0x29f3cd(0xa8)](_0x29f3cd(0x9c)),'formatDateTime':_0x3a3431(_0x1be163[_0x29f3cd(0xa8)](_0x29f3cd(0x11c))),'CommentView':_0x1be163[_0x29f3cd(0xa8)](_0x29f3cd(0xd2))[_0x29f3cd(0x109)],'CommentsListView':_0x4f014f,'CommentThreadInputView':_0x3bf1a1}),_0x213fa5[_0x29f3cd(0xba)]['on'](_0x29f3cd(0xb4),()=>{const _0x3d9f3b=_0x29f3cd;_0x35c7f9[_0x3d9f3b(0x107)][_0x3d9f3b(0xff)][_0x3d9f3b(0xc9)]();}),_0x213fa5[_0x29f3cd(0xf7)]['on'](_0x29f3cd(0xb4),()=>{const _0x1f4891=_0x29f3cd;_0x35c7f9[_0x1f4891(0x107)][_0x1f4891(0xff)][_0x1f4891(0xc9)]();}),_0x49df84=_0x4b84f6[_0x29f3cd(0xd8)](this[_0x29f3cd(0xbc)][_0x29f3cd(0x11c)],_0x213fa5),_0x49df84[_0x29f3cd(0xda)](_0x29f3cd(0xea))['to'](_0x213fa5,_0x29f3cd(0xea)),_0x49df84[_0x29f3cd(0xda)](_0x29f3cd(0x126))['to'](_0x213fa5),_0x49df84[_0x29f3cd(0xda)](_0x29f3cd(0x10e))['to'](_0x213fa5,_0x29f3cd(0x10e),_0x50b973=>_0x29f3cd(0xe5)+_0x50b973),this[_0x29f3cd(0x106)][_0x29f3cd(0xe8)](_0xd73f77['id'],_0x49df84));const _0x2e995b=_0xeb2f3f[_0x29f3cd(0xcf)](_0xd73f77[_0x29f3cd(0x101)],_0x213fa5),_0x5571c0=new _0x492da5(_0x35c7f9,_0xd73f77,_0x213fa5,_0x2e995b),_0x39907f=_0xd73f77[_0x29f3cd(0xfa)]()[_0x29f3cd(0xb3)](_0x447b21=>_0x447b21[_0x29f3cd(0xb9)]);_0x213fa5[_0x29f3cd(0xd7)]=_0x35c7f9[_0x29f3cd(0xae)][_0x29f3cd(0xa8)](_0x29f3cd(0x11a))[_0x29f3cd(0xf6)][_0x29f3cd(0x113)](_0x39907f),this[_0x29f3cd(0x10b)][_0x29f3cd(0xe8)](_0xd73f77,_0x5571c0),this[_0x29f3cd(0xbd)][_0x29f3cd(0xe8)](_0x213fa5,_0x5571c0);const _0x7d6d8b=_0x4b84f6[_0x29f3cd(0x122)]({'view':_0x49df84,'target':()=>{const _0x10934a=_0x29f3cd,_0x889b2d=[],_0x27134e=_0xd73f77[_0x10934a(0xfa)]()[_0x10934a(0xb3)](_0x24fe1b=>_0x24fe1b[_0x10934a(0xb9)]);for(const _0x35454f of _0x27134e)_0x889b2d[_0x10934a(0xc7)](..._0x35454f[_0x10934a(0xe4)]());return _0x121ed3(_0x35c7f9[_0x10934a(0x107)],_0x889b2d);},'type':()=>_0x29f3cd(0xe5)+_0x5571c0[_0x29f3cd(0xff)][_0x29f3cd(0x10e)]});_0xeb2f3f[_0x29f3cd(0xd5)](_0x213fa5,_0x7d6d8b),_0x4b84f6[_0x29f3cd(0xd1)](_0x7d6d8b),_0x10e4da[_0x29f3cd(0x11e)](_0x7d6d8b);}[_0x1c57ac(0xb7)](_0xf3b44e){const _0x2cdf30=_0x1c57ac,_0x2ce844=this[_0x2cdf30(0xbc)][_0x2cdf30(0xae)][_0x2cdf30(0xa8)](_0x2cdf30(0xdd)),_0xed6eac=this[_0x2cdf30(0xbc)][_0x2cdf30(0xae)][_0x2cdf30(0xa8)](_0x2cdf30(0xe6)),_0xf9033b=this[_0x2cdf30(0x10b)][_0x2cdf30(0xa8)](_0xf3b44e),_0x1ae7f4=_0xf9033b[_0x2cdf30(0xff)],_0xd365e=_0xed6eac[_0x2cdf30(0x100)](_0x1ae7f4);_0x2ce844[_0x2cdf30(0x118)](_0x1ae7f4),_0xd365e&&_0xed6eac[_0x2cdf30(0xb5)](_0xd365e),this[_0x2cdf30(0x10b)][_0x2cdf30(0xdf)](_0xf3b44e),this[_0x2cdf30(0xbd)][_0x2cdf30(0xdf)](_0x1ae7f4),_0xf9033b[_0x2cdf30(0xfd)]();}[_0x1c57ac(0xca)](_0x298d01){const _0x53d9cf=_0x1c57ac;if(!_0x298d01[_0x53d9cf(0xb9)]||!this[_0x53d9cf(0x10b)][_0x53d9cf(0xa7)](_0x298d01))return;const _0x2e9a98=this[_0x53d9cf(0xbc)][_0x53d9cf(0xae)][_0x53d9cf(0xa8)](_0x53d9cf(0x11a)),_0x58be2b=this[_0x53d9cf(0x10b)][_0x53d9cf(0xa8)](_0x298d01),_0x5f104b=_0x298d01[_0x53d9cf(0xfa)]();_0x58be2b[_0x53d9cf(0xff)][_0x53d9cf(0xd7)]=_0x2e9a98[_0x53d9cf(0xf6)][_0x53d9cf(0x113)](_0x5f104b);}[_0x1c57ac(0xfd)](){const _0x78559f=_0x1c57ac;for(const _0x5716f4 of this[_0x78559f(0x10b)][_0x78559f(0xb2)]())this[_0x78559f(0xb7)](_0x5716f4);for(const _0x38d811 of this[_0x78559f(0x106)][_0x78559f(0xd9)]())_0x38d811[_0x78559f(0xde)][_0x78559f(0xfd)]();super[_0x78559f(0xfd)]();}}function ae(_0x10b5fd){const _0xe24226=_0x1c57ac;return _0xe24226(0x9a)in _0x10b5fd;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
const _0x5c52e9=_0x4791;function _0x4791(_0xddba27,_0x349662){const _0x12e2d4=_0x12e2();return _0x4791=function(_0x479197,_0x3e8c50){_0x479197=_0x479197-0x178;let _0x105479=_0x12e2d4[_0x479197];return _0x105479;},_0x4791(_0xddba27,_0x349662);}(function(_0x52c947,_0x112fd6){const _0x37dcab=_0x4791,_0x1208bd=_0x52c947();while(!![]){try{const _0x296cf9=parseInt(_0x37dcab(0x186))/0x1*(-parseInt(_0x37dcab(0x19b))/0x2)+parseInt(_0x37dcab(0x196))/0x3+parseInt(_0x37dcab(0x193))/0x4+parseInt(_0x37dcab(0x192))/0x5+parseInt(_0x37dcab(0x18a))/0x6+-parseInt(_0x37dcab(0x19d))/0x7*(-parseInt(_0x37dcab(0x195))/0x8)+parseInt(_0x37dcab(0x19e))/0x9*(-parseInt(_0x37dcab(0x197))/0xa);if(_0x296cf9===_0x112fd6)break;else _0x1208bd['push'](_0x1208bd['shift']());}catch(_0x2c97e9){_0x1208bd['push'](_0x1208bd['shift']());}}}(_0x12e2,0x82026));import{ObservableMixin as _0x187525}from'ckeditor5/src/utils.js';import{getTranslation as _0x4102fe}from'../utils/common-translations.js';function _0x12e2(){const _0x489573=['model','remove','add','getRanges','view','9304FmUKzW','PendingActions','unbind','_setPendingAction','3291888waZYgu','acceptSuggestion','_discardCommand','locale','_editor','canEditAt','PENDING_ACTION_SUGGESTION','stopListening','2321855rVkbJQ','3381304cIYMWL','isDirty','96KATZwK','2723097CBupme','30JXfnTp','_removePendingAction','plugins','canAccept','58SDmxJH','change:isDirty','366478EiTifg','7775874SCnTbZ','canDiscard','discardSuggestion','destroy','_acceptCommand','get','listenTo','isEnabled','commands','execute','_pendingAction','bind','commentThreadController'];_0x12e2=function(){return _0x489573;};return _0x12e2();}export default class oe extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x187525(){constructor(_0x527edb,_0x493ca1,_0x258ea0,_0x311b39){const _0x6f655f=_0x4791;super(),this[_0x6f655f(0x181)]=_0x493ca1,this[_0x6f655f(0x185)]=_0x258ea0,this[_0x6f655f(0x180)]=_0x311b39,this[_0x6f655f(0x18e)]=_0x527edb,this[_0x6f655f(0x178)]=_0x527edb[_0x6f655f(0x17c)][_0x6f655f(0x179)](_0x6f655f(0x18b)),this[_0x6f655f(0x18c)]=_0x527edb[_0x6f655f(0x17c)][_0x6f655f(0x179)](_0x6f655f(0x1a0)),this[_0x6f655f(0x185)][_0x6f655f(0x17f)](_0x6f655f(0x17b))['to'](this[_0x6f655f(0x178)],this[_0x6f655f(0x18c)],(_0x38c166,_0x3198f6)=>_0x38c166||_0x3198f6),this[_0x6f655f(0x185)][_0x6f655f(0x17f)](_0x6f655f(0x19a))['to'](this[_0x6f655f(0x178)],_0x6f655f(0x17b),_0x21ce14=>_0x21ce14&&this[_0x6f655f(0x18e)][_0x6f655f(0x181)][_0x6f655f(0x18f)](_0x493ca1[_0x6f655f(0x184)]())),this[_0x6f655f(0x185)][_0x6f655f(0x17f)](_0x6f655f(0x19f))['to'](this[_0x6f655f(0x18c)],_0x6f655f(0x17b),_0x167fa5=>_0x167fa5&&this[_0x6f655f(0x18e)][_0x6f655f(0x181)][_0x6f655f(0x18f)](_0x493ca1[_0x6f655f(0x184)]())),this[_0x6f655f(0x17e)]=null,_0x258ea0[_0x6f655f(0x194)]&&this[_0x6f655f(0x189)](),this[_0x6f655f(0x17a)](_0x258ea0,_0x6f655f(0x18b),()=>this[_0x6f655f(0x18b)]()),this[_0x6f655f(0x17a)](_0x258ea0,_0x6f655f(0x1a0),()=>this[_0x6f655f(0x1a0)]()),this[_0x6f655f(0x17a)](_0x258ea0,_0x6f655f(0x19c),()=>{const _0x51b5e9=_0x6f655f;_0x258ea0[_0x51b5e9(0x194)]?this[_0x51b5e9(0x189)]():this[_0x51b5e9(0x198)]();});}[_0x5c52e9(0x18b)](){const _0x3cb289=_0x5c52e9;this[_0x3cb289(0x178)][_0x3cb289(0x17d)](this[_0x3cb289(0x181)]['id']);}[_0x5c52e9(0x1a0)](){const _0x5024a5=_0x5c52e9;this[_0x5024a5(0x18c)][_0x5024a5(0x17d)](this[_0x5024a5(0x181)]['id']);}[_0x5c52e9(0x1a1)](){const _0x3b3314=_0x5c52e9;this[_0x3b3314(0x185)][_0x3b3314(0x188)](_0x3b3314(0x17b)),this[_0x3b3314(0x185)][_0x3b3314(0x188)](_0x3b3314(0x19a)),this[_0x3b3314(0x185)][_0x3b3314(0x188)](_0x3b3314(0x19f)),this[_0x3b3314(0x191)](),this[_0x3b3314(0x180)][_0x3b3314(0x1a1)](),this[_0x3b3314(0x17e)]&&this[_0x3b3314(0x198)]();}[_0x5c52e9(0x189)](){const _0x2dd983=_0x5c52e9,_0x4fa8dc=_0x4102fe(this[_0x2dd983(0x18e)][_0x2dd983(0x18d)],_0x2dd983(0x190));this[_0x2dd983(0x17e)]=this[_0x2dd983(0x18e)][_0x2dd983(0x199)][_0x2dd983(0x179)](_0x2dd983(0x187))[_0x2dd983(0x183)](_0x4fa8dc);}[_0x5c52e9(0x198)](){const _0x154c10=_0x5c52e9;null!==this[_0x154c10(0x17e)]&&this[_0x154c10(0x18e)][_0x154c10(0x199)][_0x154c10(0x179)](_0x154c10(0x187))[_0x154c10(0x182)](this[_0x154c10(0x17e)]),this[_0x154c10(0x17e)]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44024c=_0x30fa;function _0xd58c(){const _0x4c0734=['commentsListView','hasDirtyComment','assign','7904128OdvtTC','delegate','isReadOnly','destroy','editor','bind','_model','1398000bSxSHU','CommentView','element','_config','1362748cuYGEb','focus','removeComment','length','fire','locale','canDiscard','isEnabled','disabledSubmit','cancel','143469KweuAk','value','canAccept','commentThreadInputView','_createCommentThreadInputView','9nlhvug','_localUser','addComment','_createCommentViews','setData','descriptionParts','showInput','1568399rZbmmj','disableComments','set','1837910jiDmVm','submit','authoredAt','editorConfig','6MyFXWV','updateComment','isActive','commentInputView','4017888XkkVqE','commentThread','isDirty'];_0xd58c=function(){return _0x4c0734;};return _0xd58c();}(function(_0x133836,_0x5d5cf5){const _0x224880=_0x30fa,_0x3ab4ea=_0x133836();while(!![]){try{const _0x1a90e7=parseInt(_0x224880(0x180))/0x1+-parseInt(_0x224880(0x1a4))/0x2+parseInt(_0x224880(0x185))/0x3*(parseInt(_0x224880(0x1a8))/0x4)+parseInt(_0x224880(0x18f))/0x5+parseInt(_0x224880(0x193))/0x6*(parseInt(_0x224880(0x18c))/0x7)+-parseInt(_0x224880(0x19d))/0x8+parseInt(_0x224880(0x197))/0x9;if(_0x1a90e7===_0x5d5cf5)break;else _0x3ab4ea['push'](_0x3ab4ea['shift']());}catch(_0x29b30a){_0x3ab4ea['push'](_0x3ab4ea['shift']());}}}(_0xd58c,0x7e1e9));import{View as _0x11016b}from'ckeditor5/src/ui.js';function _0x30fa(_0x883bd9,_0x498e50){const _0xd58c17=_0xd58c();return _0x30fa=function(_0x30faf7,_0x22dbb7){_0x30faf7=_0x30faf7-0x17e;let _0x354c51=_0xd58c17[_0x30faf7];return _0x354c51;},_0x30fa(_0x883bd9,_0x498e50);}export default class es extends _0x11016b{constructor(_0x37bf95,_0x16fa4a,_0x5302fa,_0x303593){const _0x3bdc10=_0x30fa;super(_0x37bf95),this[_0x3bdc10(0x19a)]=null,this[_0x3bdc10(0x183)]=null,this[_0x3bdc10(0x18e)](_0x3bdc10(0x195),!0x1),this[_0x3bdc10(0x18e)](_0x3bdc10(0x191),_0x16fa4a[_0x3bdc10(0x191)]),this[_0x3bdc10(0x1a2)](_0x3bdc10(0x191))['to'](_0x16fa4a),this[_0x3bdc10(0x18e)](_0x3bdc10(0x18a),[]),this[_0x3bdc10(0x18e)](_0x3bdc10(0x199),!0x1),this[_0x3bdc10(0x18e)](_0x3bdc10(0x1af),!0x1),this[_0x3bdc10(0x18e)](_0x3bdc10(0x182),!0x1),this[_0x3bdc10(0x18e)](_0x3bdc10(0x1ae),!0x1),this[_0x3bdc10(0x1a3)]=_0x16fa4a,this[_0x3bdc10(0x186)]=_0x5302fa,this[_0x3bdc10(0x1a7)]=_0x303593,_0x303593[_0x3bdc10(0x18d)]?this[_0x3bdc10(0x18e)](_0x3bdc10(0x1ab),0x1):this[_0x3bdc10(0x188)]();}[_0x44024c(0x1a9)](){const _0x1bd101=_0x44024c;this[_0x1bd101(0x1a6)][_0x1bd101(0x1a9)]();}[_0x44024c(0x1a0)](){const _0x47ec65=_0x44024c;this[_0x47ec65(0x19a)]&&this[_0x47ec65(0x19a)][_0x47ec65(0x1a0)](),this[_0x47ec65(0x183)]&&this[_0x47ec65(0x183)][_0x47ec65(0x1a0)](),super[_0x47ec65(0x1a0)]();}[_0x44024c(0x188)](){const _0x5a5489=_0x44024c,{CommentsListView:_0x73d440}=this[_0x5a5489(0x1a7)];this[_0x5a5489(0x19a)]=new _0x73d440(this[_0x5a5489(0x1ad)],this[_0x5a5489(0x1a3)][_0x5a5489(0x198)],Object[_0x5a5489(0x19c)]({'CommentView':this[_0x5a5489(0x1a7)][_0x5a5489(0x1a5)]},this[_0x5a5489(0x1a7)])),this[_0x5a5489(0x19a)][_0x5a5489(0x19e)](_0x5a5489(0x1aa))['to'](this),this[_0x5a5489(0x19a)][_0x5a5489(0x19e)](_0x5a5489(0x194))['to'](this),this[_0x5a5489(0x19a)][_0x5a5489(0x1a2)](_0x5a5489(0x195))['to'](this),this[_0x5a5489(0x18e)](_0x5a5489(0x1ab),this[_0x5a5489(0x19a)][_0x5a5489(0x1ab)]+0x1),this[_0x5a5489(0x1a2)](_0x5a5489(0x1ab))['to'](this[_0x5a5489(0x19a)],_0x5a5489(0x1ab),_0x514f61=>_0x514f61+0x1),this[_0x5a5489(0x183)]=this[_0x5a5489(0x184)](),this['on'](_0x5a5489(0x1aa),()=>this[_0x5a5489(0x1a9)]()),this[_0x5a5489(0x1a2)](_0x5a5489(0x199))['to'](this[_0x5a5489(0x19a)],_0x5a5489(0x19b),this[_0x5a5489(0x183)][_0x5a5489(0x196)],_0x5a5489(0x181),(_0x203154,_0x233e85)=>_0x203154||!!_0x233e85);}[_0x44024c(0x184)](){const _0x390cd9=_0x44024c,{CommentThreadInputView:_0x25d71b}=this[_0x390cd9(0x1a7)],_0xc010b9=new _0x25d71b(this[_0x390cd9(0x1ad)],this[_0x390cd9(0x186)],this[_0x390cd9(0x1a7)][_0x390cd9(0x192)]),_0x5edefc=_0xc010b9[_0x390cd9(0x196)];return _0xc010b9[_0x390cd9(0x1a2)](_0x390cd9(0x18b))['to'](this,_0x390cd9(0x195),this[_0x390cd9(0x1a3)][_0x390cd9(0x198)],_0x390cd9(0x19f),_0x5edefc,_0x390cd9(0x181),(_0x446eb2,_0x71cf8b,_0x3075fc)=>!!_0x3075fc||_0x446eb2&&!_0x71cf8b),_0x5edefc['on'](_0x390cd9(0x190),(_0x597664,_0x547c82)=>{const _0x22c627=_0x390cd9;this[_0x22c627(0x1ac)](_0x22c627(0x187),_0x547c82),_0x5edefc[_0x22c627(0x1a1)][_0x22c627(0x189)]('');}),_0x5edefc['on'](_0x390cd9(0x17f),()=>this[_0x390cd9(0x1a9)]()),_0x5edefc[_0x390cd9(0x1a2)](_0x390cd9(0x17e))['to'](this[_0x390cd9(0x1a3)][_0x390cd9(0x198)],_0x390cd9(0x19f)),_0xc010b9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x91d9(_0x35d1a9,_0x156b43){const _0x2ba1a9=_0x2ba1();return _0x91d9=function(_0x91d9cc,_0x4f7992){_0x91d9cc=_0x91d9cc-0x18d;let _0x2217a2=_0x2ba1a9[_0x91d9cc];return _0x2217a2;},_0x91d9(_0x35d1a9,_0x156b43);}function _0x2ba1(){const _0x28148a=['ck-annotation__info-time','ck-annotation__actions','EXTERNAL_IMPORT_WORD_SUGGESTION','children','5RxXFzq','</span>','commentThread','ck-suggestion--accept','ck-annotation__info','commentThreadInputView','EXTERNAL_SUGGESTION','ck-suggestion','time','ck-annotation__info-name','ck-suggestion-wrapper','ck-suggestion__actions','importWord','attributes','color','div','editorReady','\x22\x20title=\x22','createElement','canAccept','_createButton','description','ck-suggestion__main','getUserViewNotificationText','ck-suggestion__user','delegate','Accept\x20suggestion','ck-suggestion__info-name','getExternalSuggestionNote','discardButton','formatDateTime','8667168joMLjS','bind','render','push','cancel','userView','set','change:description','isExternal','ck-suggestion--disabled-comments','342128AjlAXg','element','@external','8257578pJcxRx','check','authoredAt','1686ymORMQ','ck-suggestion__info','ck-suggestion-','ck-annotation__main','isActive','source','innerHTML','ck-annotation__content-wrapper','acceptButton','descriptionParts','ck-annotation','632355pLoUYQ','1967391CagDSq','_descriptionElement','title','disableComments','discardSuggestion','acceptSuggestion','ck-suggestion-wrapper--active','value','execute','EXTERNAL_IMPORT_WORD_AVATAR','innerText','ck-comment__info-time','editorDestroyed','\x22></span>','getTemplate','content','ck-annotation__user','Discard\x20suggestion','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','1452iZBTyU','EXTERNAL_AVATAR','<p>','name','_model','author','querySelector','commentsListView','span','</p>','ck-comment__external','4057050YKjgja','creator','type','isEnabled','map','_config','extendTemplate','join','<span\x20class=\x22ck-suggestion-type\x22>','setTemplate','locale','fire','.ck-annotation__content-wrapper','canDiscard','ck-suggestion--discard','split','bindTemplate'];_0x2ba1=function(){return _0x28148a;};return _0x2ba1();}const _0x483382=_0x91d9;(function(_0x87dfc4,_0x16fda1){const _0x2c0d1a=_0x91d9,_0x315cdc=_0x87dfc4();while(!![]){try{const _0x4e6916=-parseInt(_0x2c0d1a(0x1ec))/0x1+-parseInt(_0x2c0d1a(0x192))/0x2*(parseInt(_0x2c0d1a(0x1e1))/0x3)+parseInt(_0x2c0d1a(0x1db))/0x4*(-parseInt(_0x2c0d1a(0x1b2))/0x5)+-parseInt(_0x2c0d1a(0x19d))/0x6+parseInt(_0x2c0d1a(0x1de))/0x7+parseInt(_0x2c0d1a(0x1d1))/0x8+parseInt(_0x2c0d1a(0x1ed))/0x9;if(_0x4e6916===_0x16fda1)break;else _0x315cdc['push'](_0x315cdc['shift']());}catch(_0x42908f){_0x315cdc['push'](_0x315cdc['shift']());}}}(_0x2ba1,0xa5e97));import{getTranslation as _0x3acf10}from'../../utils/common-translations.js';import{default as _0x366f49}from'./basesuggestionthreadview.js';import{ButtonView as _0x10c6dc}from'ckeditor5/src/ui.js';import{icons as _0x44c1c9}from'ckeditor5/src/core.js';import{trimHtml as _0x16d536,UserView as _0x4d1818}from'ckeditor5-collaboration/src/collaboration-core.js';export default class ne extends _0x366f49{constructor(_0xf484e8,_0xe65ac9,_0x48f855,_0x2f6a24){const _0x3cf33a=_0x91d9;super(_0xf484e8,_0xe65ac9,_0x48f855,_0x2f6a24),this[_0x3cf33a(0x1d7)](_0x3cf33a(0x19f),''),this[_0x3cf33a(0x1d2)](_0x3cf33a(0x19f))['to'](this,_0x3cf33a(0x1ea),_0x5ba3e2=>_0x5ba3e2&&_0x5ba3e2[0x0]?_0x5ba3e2[0x0][_0x3cf33a(0x19f)]:''),this[_0x3cf33a(0x1d2)](_0x3cf33a(0x1c7))['to'](this,_0x3cf33a(0x1ea),this,_0x3cf33a(0x1e5),(_0x39d9ef,_0x4db4f5)=>{const _0x44bf55=_0x3cf33a;let _0x5bc3f4='';for(const _0x20cfe4 of _0x39d9ef)_0x5bc3f4+=_0x44bf55(0x194)+ds(_0x20cfe4[_0x44bf55(0x18e)],_0x20cfe4[_0x44bf55(0x1c0)])+_0x44bf55(0x19b);return _0x4db4f5?_0x5bc3f4:_0x16d536(_0x5bc3f4,{'limit':0x8c});}),this[_0x3cf33a(0x1ee)]=null,this[_0x3cf33a(0x1e9)]=this[_0x3cf33a(0x1c6)](_0x3acf10(_0xf484e8,_0x3cf33a(0x1cc)),_0x44c1c9[_0x3cf33a(0x1df)],_0x3cf33a(0x1b5),_0x3cf33a(0x1f2),'sw'),this[_0x3cf33a(0x1e9)][_0x3cf33a(0x1d2)](_0x3cf33a(0x1a0))['to'](this,_0x3cf33a(0x1c5)),this[_0x3cf33a(0x1cf)]=this[_0x3cf33a(0x1c6)](_0x3acf10(_0xf484e8,_0x3cf33a(0x190)),_0x44c1c9[_0x3cf33a(0x1d5)],_0x3cf33a(0x1ab),_0x3cf33a(0x1f1),'sw'),this[_0x3cf33a(0x1cf)][_0x3cf33a(0x1d2)](_0x3cf33a(0x1a0))['to'](this,_0x3cf33a(0x1aa)),this[_0x3cf33a(0x1d6)]=new _0x4d1818(_0xf484e8,this[_0x3cf33a(0x196)][_0x3cf33a(0x197)],this[_0x3cf33a(0x1c9)]()),this[_0x3cf33a(0x1d6)][_0x3cf33a(0x1a3)]({'attributes':{'class':[_0x3cf33a(0x1ca),_0x3cf33a(0x18f)]}}),this[_0x3cf33a(0x1a6)](this[_0x3cf33a(0x18d)]());}[_0x483382(0x18d)](){const _0x2e53d1=_0x483382,_0x189dc6=this[_0x2e53d1(0x1ad)],_0x12d57f=[{'tag':_0x2e53d1(0x1c1),'attributes':{'class':[_0x2e53d1(0x1e2),_0x2e53d1(0x1b6)]},'children':[{'tag':_0x2e53d1(0x19a),'children':[{'text':this[_0x2e53d1(0x1d6)][_0x2e53d1(0x195)]}],'attributes':{'class':[_0x2e53d1(0x1cd),_0x2e53d1(0x1bb)]}},{'tag':_0x2e53d1(0x1ba),'attributes':{'datetime':_0x189dc6['to'](_0x2e53d1(0x1e0)),'class':[_0x2e53d1(0x1f8),_0x2e53d1(0x1ae)]},'children':[{'text':_0x189dc6['to'](_0x2e53d1(0x1e0),_0x3927fe=>this[_0x2e53d1(0x1a2)][_0x2e53d1(0x1d0)](_0x3927fe))}]}]},{'tag':_0x2e53d1(0x1c1),'attributes':{'class':[_0x2e53d1(0x1bd),_0x2e53d1(0x1af)]},'children':[this[_0x2e53d1(0x1e9)],this[_0x2e53d1(0x1cf)]]},{'tag':_0x2e53d1(0x1c1),'attributes':{'class':[_0x2e53d1(0x1e8)]}}];this[_0x2e53d1(0x196)][_0x2e53d1(0x1d9)]&&_0x12d57f[_0x2e53d1(0x1d4)]({'tag':_0x2e53d1(0x1c1),'attributes':{'class':[_0x2e53d1(0x19c)]},'children':[{'text':this[_0x2e53d1(0x1ce)]()}]});const _0x2bb8af={'tag':_0x2e53d1(0x1c1),'attributes':{'class':[_0x2e53d1(0x1bc),_0x189dc6['if'](_0x2e53d1(0x1e5),_0x2e53d1(0x1f3)),_0x189dc6['to'](_0x2e53d1(0x19f),_0x39c1e9=>_0x2e53d1(0x1e3)+_0x39c1e9),this[_0x2e53d1(0x1a2)][_0x2e53d1(0x1f0)]&&_0x2e53d1(0x1da)],'data-suggestion-id':this[_0x2e53d1(0x196)]['id'],'data-thread-id':this[_0x2e53d1(0x196)][_0x2e53d1(0x1b4)]['id'],'data-author-id':this[_0x2e53d1(0x196)][_0x2e53d1(0x197)]['id'],'tabindex':-0x1},'children':[{'tag':_0x2e53d1(0x1c1),'attributes':{'class':[_0x2e53d1(0x1b9),_0x2e53d1(0x1eb)]},'children':[this[_0x2e53d1(0x1d6)],{'tag':_0x2e53d1(0x1c1),'attributes':{'class':[_0x2e53d1(0x1c8),_0x2e53d1(0x1e4)]},'children':_0x12d57f}]}]};return this[_0x2e53d1(0x199)]&&this[_0x2e53d1(0x1b7)]&&(_0x2bb8af[_0x2e53d1(0x1b1)][_0x2e53d1(0x1d4)](this[_0x2e53d1(0x199)],this[_0x2e53d1(0x1b7)]),this[_0x2e53d1(0x199)][_0x2e53d1(0x1cb)](_0x2e53d1(0x1c2))['to'](this),this[_0x2e53d1(0x199)][_0x2e53d1(0x1cb)](_0x2e53d1(0x1f9))['to'](this),this[_0x2e53d1(0x1b7)][_0x2e53d1(0x1cb)](_0x2e53d1(0x1c2))['to'](this),this[_0x2e53d1(0x1b7)][_0x2e53d1(0x1cb)](_0x2e53d1(0x1f9))['to'](this)),_0x2bb8af;}[_0x483382(0x1d3)](){const _0x5c5e40=_0x483382;super[_0x5c5e40(0x1d3)](),this[_0x5c5e40(0x1ee)]=this[_0x5c5e40(0x1dc)][_0x5c5e40(0x198)](_0x5c5e40(0x1a9)),this[_0x5c5e40(0x1ee)][_0x5c5e40(0x1e7)]=this[_0x5c5e40(0x1c7)],this['on'](_0x5c5e40(0x1d8),(_0x132984,_0x51018a,_0x39958a)=>{const _0x571b20=_0x5c5e40;this[_0x571b20(0x1ee)][_0x571b20(0x1e7)]=_0x39958a;});}[_0x483382(0x1c6)](_0x34e12b,_0x282723,_0x423ab8,_0x3246c9,_0xee8c9){const _0x21c79c=_0x483382,_0x2a0e43=new _0x10c6dc(this[_0x21c79c(0x1a7)]);return _0x2a0e43[_0x21c79c(0x1d7)]({'label':_0x34e12b,'icon':_0x282723,'tooltip':!0x0,'tooltipPosition':_0xee8c9}),_0x2a0e43[_0x21c79c(0x1a3)]({'attributes':{'class':_0x423ab8}}),_0x2a0e43['on'](_0x21c79c(0x1f5),()=>{const _0x43f84a=_0x21c79c;this[_0x43f84a(0x1a8)](_0x3246c9,this[_0x43f84a(0x196)]['id']);}),_0x2a0e43;}[_0x483382(0x1ce)](){const _0x520315=_0x483382;return _0x520315(0x1be)===this[_0x520315(0x196)][_0x520315(0x1bf)][_0x520315(0x1dd)][_0x520315(0x1e6)]?_0x3acf10(this[_0x520315(0x1a7)],_0x520315(0x1b0)):_0x3acf10(this[_0x520315(0x1a7)],_0x520315(0x1b8));}[_0x483382(0x1c9)](){const _0x37bd91=_0x483382;return this[_0x37bd91(0x196)][_0x37bd91(0x1d9)]?_0x37bd91(0x1be)===this[_0x37bd91(0x196)][_0x37bd91(0x1bf)][_0x37bd91(0x1dd)][_0x37bd91(0x1e6)]?_0x3acf10(this[_0x37bd91(0x1a7)],_0x37bd91(0x1f6),this[_0x37bd91(0x196)][_0x37bd91(0x19e)][_0x37bd91(0x195)]):_0x3acf10(this[_0x37bd91(0x1a7)],_0x37bd91(0x193),this[_0x37bd91(0x196)][_0x37bd91(0x19e)][_0x37bd91(0x195)]):null;}}function ds(_0x1618b7,_0x107d15){const _0x165da6=_0x483382;let _0x4c7c63='';return _0x4c7c63+=_0x1618b7[_0x165da6(0x1ac)]('*')[_0x165da6(0x1a1)]((_0x25f18c,_0x53aa5d)=>_0x53aa5d%0x2!=0x0?_0x165da6(0x1a5)+us(_0x25f18c)+_0x165da6(0x1b3):us(_0x25f18c))[_0x165da6(0x1a4)](''),_0x107d15&&(_0x4c7c63+=_0x165da6(0x191)+_0x107d15[_0x165da6(0x1f4)]+_0x165da6(0x1c3)+_0x107d15[_0x165da6(0x1ef)]+_0x165da6(0x1fa)),_0x4c7c63;}function us(_0x33c2e3){const _0x4c3202=_0x483382,_0xf29463=document[_0x4c3202(0x1c4)](_0x4c3202(0x19a));return _0xf29463[_0x4c3202(0x1f7)]=_0x33c2e3,_0xf29463[_0x4c3202(0x1e7)];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x1d4f3d,_0x343225,_0x6f7f8e){const t=_0x1d4f3d['t'];switch(_0x343225){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',_0x6f7f8e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x6f7f8e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x6f7f8e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x6f7f8e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x6f7f8e);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',_0x6f7f8e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x6f7f8e);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',_0x6f7f8e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x6f7f8e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x6f7f8e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x6f7f8e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x6f7f8e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x6f7f8e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x6f7f8e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x6f7f8e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x6f7f8e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x6f7f8e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x6f7f8e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x6f7f8e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x6f7f8e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x6f7f8e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x6f7f8e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x6f7f8e);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'},_0x6f7f8e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x6f7f8e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x6f7f8e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x6f7f8e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x6f7f8e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x6f7f8e);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'},_0x6f7f8e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x6f7f8e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x6f7f8e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x6f7f8e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x6f7f8e);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'},_0x6f7f8e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x6f7f8e);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'},_0x6f7f8e);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'},_0x6f7f8e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x6f7f8e);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'},_0x6f7f8e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x6f7f8e);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'},_0x6f7f8e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x6f7f8e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x6f7f8e);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'},_0x6f7f8e);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'},_0x6f7f8e);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 _0x343225;}}
|
|
23
|
+
export function getTranslation(_0x181bbb,_0x19d01a,_0x1eb70d){const t=_0x181bbb['t'];switch(_0x19d01a){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',_0x1eb70d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1eb70d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1eb70d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1eb70d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1eb70d);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',_0x1eb70d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1eb70d);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',_0x1eb70d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1eb70d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1eb70d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1eb70d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1eb70d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1eb70d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1eb70d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1eb70d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1eb70d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1eb70d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1eb70d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1eb70d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1eb70d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1eb70d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1eb70d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1eb70d);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'},_0x1eb70d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1eb70d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1eb70d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1eb70d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1eb70d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1eb70d);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'},_0x1eb70d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1eb70d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1eb70d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1eb70d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1eb70d);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'},_0x1eb70d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1eb70d);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'},_0x1eb70d);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'},_0x1eb70d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1eb70d);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'},_0x1eb70d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1eb70d);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'},_0x1eb70d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1eb70d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1eb70d);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'},_0x1eb70d);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'},_0x1eb70d);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 _0x19d01a;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x531719,_0x1e6d50){const _0x2427a2=_0x2984,_0x2570e6=_0x531719();while(!![]){try{const _0x43b7a9=-parseInt(_0x2427a2(0xfd))/0x1*(parseInt(_0x2427a2(0xe1))/0x2)+parseInt(_0x2427a2(0xf3))/0x3*(-parseInt(_0x2427a2(0x10b))/0x4)+-parseInt(_0x2427a2(0xe4))/0x5*(-parseInt(_0x2427a2(0x108))/0x6)+parseInt(_0x2427a2(0xf2))/0x7*(-parseInt(_0x2427a2(0xe8))/0x8)+parseInt(_0x2427a2(0x109))/0x9*(-parseInt(_0x2427a2(0xe3))/0xa)+-parseInt(_0x2427a2(0xe6))/0xb+parseInt(_0x2427a2(0x106))/0xc;if(_0x43b7a9===_0x1e6d50)break;else _0x2570e6['push'](_0x2570e6['shift']());}catch(_0x82bfab){_0x2570e6['push'](_0x2570e6['shift']());}}}(_0x18db,0x3054d));export function normalizeDescription(_0x5ccbf0){const _0x19a1de=_0x2984;return Array[_0x19a1de(0xed)](_0x5ccbf0)||(_0x5ccbf0=[_0x5ccbf0]),_0x5ccbf0[_0x19a1de(0xf0)](_0x2bbc11=>{const _0x4fcca7=_0x19a1de,_0x35d377=_0x2bbc11[_0x4fcca7(0xef)][_0x4fcca7(0xee)](/\*/g,''),_0x337c8f=_0x2bbc11[_0x4fcca7(0xf1)]?_0x4fcca7(0xf9)+_0x2bbc11[_0x4fcca7(0xf1)][_0x4fcca7(0x10c)]+']':'';return'['+_0x2bbc11[_0x4fcca7(0x107)]+']\x20'+_0x35d377+_0x337c8f;})[_0x19a1de(0xf8)](';\x20');}export function sortSuggestions(_0x16d555){const _0x2091ef=_0x2984;return _0x16d555[_0x2091ef(0x102)]((_0x110e1a,_0x1124c2)=>_0x2091ef(0xec)==_0x110e1a[_0x2091ef(0x107)]&&_0x2091ef(0xec)!=_0x1124c2[_0x2091ef(0x107)]?-0x1:_0x2091ef(0xec)!=_0x110e1a[_0x2091ef(0x107)]&&_0x2091ef(0xec)==_0x1124c2[_0x2091ef(0x107)]?0x1:0x0);}export function getSelectedSuggestions(_0x5eecdc,_0x48ebc2){const _0x2f471d=_0x2984,_0x16173c=Array[_0x2f471d(0xff)](_0x5eecdc[_0x2f471d(0xe5)]()),_0x42ffbc=new Set();for(const _0x6d050f of _0x48ebc2)if(_0x6d050f[_0x2f471d(0x100)]){for(const _0xa1b1db of _0x16173c)for(const _0x32f524 of _0x6d050f[_0x2f471d(0xe5)]())(_0xa1b1db[_0x2f471d(0x104)](_0x32f524)||_0x5eecdc[_0x2f471d(0xe9)]&&!_0x6d050f[_0x2f471d(0xeb)]&&_0x6d050f[_0x2f471d(0xfa)]&&_0x32f524[_0x2f471d(0xe7)][_0x2f471d(0xf6)](_0xa1b1db[_0x2f471d(0xe2)]))&&_0x42ffbc[_0x2f471d(0xfe)](_0x6d050f);}return _0x42ffbc;}export function getRangesOfBlockGroups(_0x3ddb56,_0x3e5357){const _0xf6a1d4=_0x2984;let _0xd9e31b,_0x55408a=0x0;const _0x5ee947=[],_0x2d7e1c=_0x3e5357[_0xf6a1d4(0xfc)];for(;_0x55408a<_0x3ddb56[_0xf6a1d4(0x103)];){const _0x413d7b=_0x3ddb56[_0x55408a],_0x3519d3=_0x3ddb56[_0x55408a+0x1];_0xd9e31b||(_0xd9e31b=_0x3e5357[_0xf6a1d4(0xfb)](_0x413d7b)),co(_0x3e5357,_0x413d7b,_0x3519d3)||(_0x5ee947[_0xf6a1d4(0xe0)](_0x3e5357[_0xf6a1d4(0xf4)](_0xd9e31b,_0x2d7e1c[_0xf6a1d4(0xf7)](_0x413d7b)?_0x3e5357[_0xf6a1d4(0x101)](_0x413d7b):_0x3e5357[_0xf6a1d4(0x10a)](_0x413d7b,_0xf6a1d4(0xe7)))),_0xd9e31b=null),_0x55408a++;}return _0x5ee947;}function co(_0x589a4a,_0x319d88,_0x38487a){const _0x390ab2=_0x2984;if(!_0x38487a)return!0x1;const _0x3ec204=_0x589a4a[_0x390ab2(0x101)](_0x319d88),_0x1ebf4f=_0x589a4a[_0x390ab2(0xfb)](_0x38487a);return _0x3ec204[_0x390ab2(0xf6)](_0x1ebf4f);}function _0x2984(_0x4f073f,_0x381ab0){const _0x18db24=_0x18db();return _0x2984=function(_0x298405,_0x2cdd84){_0x298405=_0x298405-0xe0;let _0x176eb8=_0x18db24[_0x298405];return _0x176eb8;},_0x2984(_0x4f073f,_0x381ab0);}function _0x18db(){const _0x7b244e=['14gPUiKF','9bdPtYc','createRange','change','isTouching','isObject','join','\x20[color\x20','next','createPositionBefore','schema','1IANspy','add','from','isInContent','createPositionAfter','sort','length','isIntersecting','splice','16795332Wixjgd','type','144RVBFpu','2403NWsHUb','createPositionAt','294596lBkZVu','value','push','279218bUJdQz','start','9390bEYhLe','28415jlpRmu','getRanges','3746127EJaFab','end','1544848REwZvI','isCollapsed','execute','isMultiRange','deletion','isArray','replace','content','map','color'];_0x18db=function(){return _0x7b244e;};return _0x18db();}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x2a00c9,_0x303045,_0x38c6cf){const _0x50f32a=_0x2984;for(;_0x38c6cf[_0x50f32a(0x103)];){const _0x114628=_0x38c6cf[_0x50f32a(0x105)](0x0,0x64);_0x2a00c9[_0x50f32a(0xf5)](()=>{const _0x52005e=_0x50f32a;for(const _0x498a35 of _0x114628)_0x498a35[_0x52005e(0x100)]&&_0x303045[_0x52005e(0xea)](_0x498a35['id']);});}}
|