@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240604.1 → 0.0.0-nightly-20240605.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -6
- package/build/track-changes.js +1 -1
- package/dist/index.js +1 -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/dist/types/suggestion.d.ts +1 -1
- package/dist/types/ui/suggestioncontroller.d.ts +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +1 -1
- package/src/suggestion.js +1 -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.d.ts +1 -1
- package/src/ui/suggestioncontroller.js +1 -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 _0xd2e23c=_0x18cc;(function(_0x35cd02,_0x578641){const _0x3e2ae5=_0x18cc,_0xa0efd2=_0x35cd02();while(!![]){try{const _0x212150=parseInt(_0x3e2ae5(0x174))/0x1*(-parseInt(_0x3e2ae5(0x184))/0x2)+parseInt(_0x3e2ae5(0x177))/0x3+parseInt(_0x3e2ae5(0x1a3))/0x4*(-parseInt(_0x3e2ae5(0x14f))/0x5)+-parseInt(_0x3e2ae5(0x164))/0x6+-parseInt(_0x3e2ae5(0x15b))/0x7*(-parseInt(_0x3e2ae5(0x186))/0x8)+parseInt(_0x3e2ae5(0x146))/0x9+-parseInt(_0x3e2ae5(0x156))/0xa;if(_0x212150===_0x578641)break;else _0xa0efd2['push'](_0xa0efd2['shift']());}catch(_0x348206){_0xa0efd2['push'](_0xa0efd2['shift']());}}}(_0x488e,0x1b18d));import{Plugin as _0x4171ae}from'ckeditor5/src/core.js';import{Collection as _0x13b779}from'ckeditor5/src/utils.js';function _0x18cc(_0x5ca3b7,_0x52232c){const _0x488e14=_0x488e();return _0x18cc=function(_0x18ccf9,_0x448f64){_0x18ccf9=_0x18ccf9-0x137;let _0x2cbad2=_0x488e14[_0x18ccf9];return _0x2cbad2;},_0x18cc(_0x5ca3b7,_0x52232c);}import{addListToDropdown as _0x3f946b,createDropdown as _0x37ba53,ListSeparatorView as _0x1b5287,MenuBarMenuView as _0x3ccff6,MenuBarMenuListView as _0x1d5411,MenuBarMenuListItemView as _0x3ac11f,MenuBarMenuListItemButtonView as _0x4aef3c,SplitButtonView as _0x56298b,ViewModel as _0x4e3fd3}from'ckeditor5/src/ui.js';function _0x488e(){const _0x4be4a0=['682290mnDWFO','EditorAnnotations','discardButton','isDirty','remove','comments','_destroyController','discardSelectedSuggestions','delegate','22480RTYgEj','toMany','_handleControllerBuffer','config','suggestion-','_bindAnnotationToEditors','values','75390qGXMmX','isMultiRange','componentFactory','acceptButton','Discard\x20all\x20selected\x20suggestions','711893kGExwQ','arrowView','separator','switchbutton','isOn','items','clear','size','descriptionParts','1256604unQcdA','Discard\x20all\x20suggestions','view','set','Track\x20changes','push','_suggestionToController','has','getSuggestion','TrackChangesEditing','actionView','define','Accept\x20all\x20selected\x20suggestions','previous','add','isEnabled','101dFjbWQ','getRanges','getMarkers','368076uEypBH','activeAnnotations','Annotations','commentThread','execute','suggestionLoaded','comments.editorConfig','get','type','addSourceCollector','menuBar:trackChanges','bind','button','1108jdVeYH','_refreshActiveMarkers','16vKIbuD','change:activeAnnotations','init','editing','commandName','getByInnerView','descriptionFactory','requires','innerView','lowest','_addUIComponentsToFactory','trackChanges','_createMenuBarMenu','comments.maxCommentsWhenCollapsed','acceptSelectedSuggestions','change:previous','_disableComments','CommentView','pluginName','delete','editor','getDescriptions','comments.maxThreadTotalWeight','length','createCommentThreadController','getJoined','TrackChangesUI','source','menu','16VKDCkr','from','menuitemcheckbox','mainView','acceptAllSuggestions','filter','CommentsRepository','listenTo','registerAnnotation','_initializeController','destroy','_handleSuggestionControllerDelayed','_updateController','getFirstRange','focus','commands','panelView','discardAllSuggestions','stopListening','model','getAllAdjacentSuggestions','createAnnotation','comments.maxCommentCharsWhenCollapsed','refreshSelectedViews','SuggestionThreadView','plugins','isInContent','hasSuggestion','_createToolbarButton','_viewToController','children','CommentsUI','reduce','_unbindEditors','locale','trackChanges.disableComments','Accept\x20all\x20suggestions','createAnnotationView','keys','value','trackChanges.SuggestionThreadView','menuitem','activeMarkers','suggestionUnloaded','addComment','head','buttonView','some','suggestionChanged','_annotationViews','unbind','getMarkerNames'];_0x488e=function(){return _0x4be4a0;};return _0x488e();}import{Users as _0x2c65c4,getDateTimeFormatter as _0x10f820,getAllMarkersDomElementsSorted as _0x45785b}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x501494 from'./trackchangesediting.js';import _0x5ac4e8 from'./ui/suggestioncontroller.js';import _0x215d55 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x5b024e}from'./utils/common-translations.js';import _0xfa4c14 from'../theme/icons/track-changes.svg';export default class d extends _0x4171ae{static get[_0xd2e23c(0x18d)](){const _0x211c57=_0xd2e23c;return[_0x501494,_0x2c65c4,_0x211c57(0x1a9),_0x211c57(0x179),_0x211c57(0x147)];}static get[_0xd2e23c(0x198)](){const _0x5d6f5f=_0xd2e23c;return _0x5d6f5f(0x1a0);}constructor(_0x271224){const _0x303bcd=_0xd2e23c;super(_0x271224),this[_0x303bcd(0x16a)]=new Map(),this[_0x303bcd(0x1c0)]=new Map(),this[_0x303bcd(0x143)]=new Map(),this[_0x303bcd(0x151)]=new Map();const _0x4cba66=this[_0x303bcd(0x19a)][_0x303bcd(0x152)];_0x4cba66[_0x303bcd(0x16f)](_0x303bcd(0x13a),_0x215d55),_0x4cba66[_0x303bcd(0x16f)](_0x303bcd(0x1c6),!0x1),this[_0x303bcd(0x196)]=_0x4cba66[_0x303bcd(0x17e)](_0x303bcd(0x1c6));}[_0xd2e23c(0x1ae)](_0xf948b9,_0x502a8a){const _0xceab49=_0xd2e23c;0x0===this[_0xceab49(0x151)][_0xceab49(0x162)]&&setTimeout(()=>{const _0x3adb66=_0xceab49;for(const [_0x4fc1fe,_0x2d06d4]of this[_0x3adb66(0x151)]){const _0x47570b=this[_0x3adb66(0x16a)][_0x3adb66(0x16b)](_0x4fc1fe);_0x47570b||_0x2d06d4?_0x47570b&&_0x2d06d4&&this[_0x3adb66(0x14c)](_0x4fc1fe):this[_0x3adb66(0x1ac)](_0x4fc1fe);}this[_0x3adb66(0x151)][_0x3adb66(0x161)](),this[_0x3adb66(0x19a)][_0x3adb66(0x1bc)][_0x3adb66(0x17e)](_0x3adb66(0x147))[_0x3adb66(0x1ba)](),this[_0x3adb66(0x185)]();},0xa),this[_0xceab49(0x151)][_0xceab49(0x167)](_0xf948b9,_0x502a8a);}[_0xd2e23c(0x188)](){const _0x54ec03=_0xd2e23c,_0x5d3af6=this[_0x54ec03(0x19a)],_0x18d584=_0x5d3af6[_0x54ec03(0x1bc)][_0x54ec03(0x17e)](_0x54ec03(0x16d)),_0x40eda1=_0x5d3af6[_0x54ec03(0x1bc)][_0x54ec03(0x17e)](_0x54ec03(0x179)),_0x5c687e=_0x5d3af6[_0x54ec03(0x1bc)][_0x54ec03(0x17e)](_0x54ec03(0x147)),_0x4777ca=_0x5d3af6[_0x54ec03(0x1bc)][_0x54ec03(0x17e)](_0x54ec03(0x1a9));this[_0x54ec03(0x190)](),_0x5c687e[_0x54ec03(0x180)](()=>{const _0x1d5eb0=_0x54ec03,_0x8e813b=[];for(const [_0x120dcc,_0x405439]of Array[_0x1d5eb0(0x1a4)](this[_0x1d5eb0(0x16a)])){const _0x25df52=_0x120dcc[_0x1d5eb0(0x1b7)](),_0xd72cdc=[];for(const _0x15ce68 of _0x25df52){if(!_0x15ce68[_0x1d5eb0(0x1bd)])continue;if(_0x15ce68[_0x1d5eb0(0x157)]){_0xd72cdc[_0x1d5eb0(0x169)](..._0x15ce68[_0x1d5eb0(0x175)]());continue;}const _0xf91dd7=_0x15ce68[_0x1d5eb0(0x1b0)]();if(_0xd72cdc[_0x1d5eb0(0x19d)]>0x0){const _0x15243e=_0xd72cdc[0x0][_0x1d5eb0(0x19f)](_0xf91dd7);if(_0x15243e){_0xd72cdc[0x0]=_0x15243e;continue;}}_0xd72cdc[_0x1d5eb0(0x169)](_0xf91dd7);}_0x8e813b[_0x1d5eb0(0x169)]([_0x405439[_0x1d5eb0(0x166)],_0xd72cdc]);}return _0x8e813b;}),this[_0x54ec03(0x1aa)](_0x18d584,_0x54ec03(0x17c),(_0x3e0f31,_0x297ce1)=>{const _0x1d910b=_0x54ec03;this[_0x1d910b(0x1aa)](_0x297ce1,_0x1d910b(0x195),(_0x3c21c9,_0x30cdbd,_0x30fd4c,_0x44e933)=>{const _0x31c634=_0x1d910b;_0x297ce1[_0x31c634(0x1bd)]&&(null==_0x30fd4c?(this[_0x31c634(0x1af)](_0x44e933[_0x31c634(0x13f)]),this[_0x31c634(0x1ae)](_0x297ce1,!0x1)):(this[_0x31c634(0x1af)](_0x30fd4c[_0x31c634(0x13f)]),null==_0x44e933&&this[_0x31c634(0x1ae)](_0x297ce1,!0x0)));}),null!==_0x297ce1[_0x1d910b(0x171)]?this[_0x1d910b(0x1af)](_0x297ce1[_0x1d910b(0x13f)]):this[_0x1d910b(0x1ae)](_0x297ce1,!0x1);}),this[_0x54ec03(0x1aa)](_0x18d584,_0x54ec03(0x13d),(_0x6d4fff,_0x119ae0,_0x48e0a2)=>{const _0x4a21e7=_0x54ec03;this[_0x4a21e7(0x1b5)](_0x119ae0,_0x4a21e7(0x195)),this[_0x4a21e7(0x151)][_0x4a21e7(0x199)](_0x119ae0),this[_0x4a21e7(0x16a)][_0x4a21e7(0x16b)](_0x119ae0)&&this[_0x4a21e7(0x14c)](_0x119ae0),_0x48e0a2&&this[_0x4a21e7(0x1af)](_0x48e0a2[_0x4a21e7(0x13f)]);}),this[_0x54ec03(0x1aa)](_0x18d584,_0x54ec03(0x142),(_0x530585,_0x86e847)=>{const _0x542c19=_0x54ec03;this[_0x542c19(0x1af)](_0x86e847);}),this[_0x54ec03(0x1aa)](_0x40eda1,_0x54ec03(0x187),()=>{const _0x149886=_0x54ec03;this[_0x149886(0x185)]();}),this[_0x54ec03(0x1aa)](_0x4777ca,_0x54ec03(0x13e),(_0x1f5590,{threadId:_0x5424a5,isFromAdapter:_0x210660})=>{const _0x3a614b=_0x54ec03;if(_0x210660||!_0x18d584[_0x3a614b(0x1be)](_0x5424a5))return;const _0x12e78d=_0x18d584[_0x3a614b(0x16c)](_0x5424a5);this[_0x3a614b(0x16a)][_0x3a614b(0x17e)](_0x12e78d)[_0x3a614b(0x166)][_0x3a614b(0x1b1)]();},{'priority':_0x54ec03(0x18f)});}[_0xd2e23c(0x185)](){const _0x13aee5=_0xd2e23c,_0xea7364=this[_0x13aee5(0x19a)][_0x13aee5(0x1bc)][_0x13aee5(0x17e)](_0x13aee5(0x179)),_0x321615=this[_0x13aee5(0x19a)][_0x13aee5(0x1bc)][_0x13aee5(0x17e)](_0x13aee5(0x16d)),_0x2e1fd2=Array[_0x13aee5(0x1a4)](_0xea7364[_0x13aee5(0x178)],_0x2ab6d9=>_0x2ab6d9[_0x13aee5(0x18e)])[_0x13aee5(0x1a8)](_0x53923c=>this[_0x13aee5(0x1c0)][_0x13aee5(0x16b)](_0x53923c)),_0x2272bd=[];for(const _0x3993e8 of _0x2e1fd2){const _0x573636=this[_0x13aee5(0x1c0)][_0x13aee5(0x17e)](_0x3993e8)[_0x13aee5(0x1b6)][_0x13aee5(0x1b7)]();_0x2272bd[_0x13aee5(0x169)](..._0x573636[_0x13aee5(0x1c3)]((_0x46038b,_0x3f065a)=>[..._0x46038b,..._0x3f065a[_0x13aee5(0x145)]()],[]));}_0x321615[_0x13aee5(0x13c)]=_0x2272bd;}[_0xd2e23c(0x190)](){const _0x49748d=_0xd2e23c,_0x4ab7a6=this[_0x49748d(0x19a)],_0x18bb25=_0x4ab7a6[_0x49748d(0x1c5)],_0x28b1de=_0x5b024e(_0x18bb25,_0x49748d(0x168)),_0x4893b4=new _0x13b779([{'type':_0x49748d(0x15e),'model':new _0x4e3fd3({'withText':!0x0,'label':_0x28b1de,'commandName':_0x49748d(0x191),'role':_0x49748d(0x1a5)})},{'type':_0x49748d(0x15d)},{'type':_0x49748d(0x183),'model':new _0x4e3fd3({'withText':!0x0,'label':_0x5b024e(_0x18bb25,_0x49748d(0x1c7)),'commandName':_0x49748d(0x1a7),'role':_0x49748d(0x13b)})},{'type':_0x49748d(0x183),'model':new _0x4e3fd3({'withText':!0x0,'label':_0x5b024e(_0x18bb25,_0x49748d(0x170)),'commandName':_0x49748d(0x194),'role':_0x49748d(0x13b)})},{'type':_0x49748d(0x183),'model':new _0x4e3fd3({'withText':!0x0,'label':_0x5b024e(_0x18bb25,_0x49748d(0x165)),'commandName':_0x49748d(0x1b4),'role':_0x49748d(0x13b)})},{'type':_0x49748d(0x183),'model':new _0x4e3fd3({'withText':!0x0,'label':_0x5b024e(_0x18bb25,_0x49748d(0x15a)),'commandName':_0x49748d(0x14d),'role':_0x49748d(0x13b)})}]);for(const _0x422b2e of _0x4893b4)if(ae(_0x422b2e)){const _0x482830=_0x4ab7a6[_0x49748d(0x1b2)][_0x49748d(0x17e)](_0x422b2e[_0x49748d(0x1b6)][_0x49748d(0x18a)]);_0x422b2e[_0x49748d(0x1b6)][_0x49748d(0x182)](_0x49748d(0x15f),_0x49748d(0x173))['to'](_0x482830,_0x49748d(0x139),_0x49748d(0x173));}_0x4ab7a6['ui'][_0x49748d(0x158)][_0x49748d(0x172)](_0x49748d(0x191),_0x104fa9=>this[_0x49748d(0x1bf)](_0x104fa9,_0x4893b4,_0x28b1de)),_0x4ab7a6['ui'][_0x49748d(0x158)][_0x49748d(0x172)](_0x49748d(0x181),_0x305ce5=>this[_0x49748d(0x192)](_0x305ce5,_0x4893b4,_0x28b1de));}[_0xd2e23c(0x1bf)](_0x423b2b,_0x102088,_0x55633c){const _0x84eb3b=_0xd2e23c,_0x4e0527=_0x37ba53(_0x423b2b,_0x56298b),_0x16013b=this[_0x84eb3b(0x19a)][_0x84eb3b(0x1b2)][_0x84eb3b(0x17e)](_0x84eb3b(0x191));_0x4e0527[_0x84eb3b(0x140)][_0x84eb3b(0x167)]({'tooltip':_0x55633c,'label':_0x55633c,'icon':_0xfa4c14}),_0x4e0527[_0x84eb3b(0x140)][_0x84eb3b(0x182)](_0x84eb3b(0x15f))['to'](_0x16013b,_0x84eb3b(0x139)),_0x4e0527[_0x84eb3b(0x140)]['on'](_0x84eb3b(0x17b),()=>{const _0x3e478=_0x84eb3b;_0x16013b[_0x3e478(0x17b)](),this[_0x3e478(0x19a)][_0x3e478(0x189)][_0x3e478(0x166)][_0x3e478(0x1b1)]();}),_0x3f946b(_0x4e0527,_0x102088,{'role':_0x84eb3b(0x1a2)});const _0x3d589e=[];for(const _0x5089c4 of _0x102088)ae(_0x5089c4)&&_0x3d589e[_0x84eb3b(0x169)](this[_0x84eb3b(0x19a)][_0x84eb3b(0x1b2)][_0x84eb3b(0x17e)](_0x5089c4[_0x84eb3b(0x1b6)][_0x84eb3b(0x18a)]));const _0x18791d=_0x4e0527[_0x84eb3b(0x140)];return _0x18791d[_0x84eb3b(0x16e)][_0x84eb3b(0x144)](_0x84eb3b(0x173)),_0x18791d[_0x84eb3b(0x15c)][_0x84eb3b(0x144)](_0x84eb3b(0x173)),_0x18791d[_0x84eb3b(0x16e)][_0x84eb3b(0x182)](_0x84eb3b(0x173))['to'](_0x16013b,_0x84eb3b(0x173)),_0x18791d[_0x84eb3b(0x15c)][_0x84eb3b(0x182)](_0x84eb3b(0x173))[_0x84eb3b(0x150)](_0x3d589e,_0x84eb3b(0x173),(..._0x5b215c)=>_0x5b215c[_0x84eb3b(0x141)](_0x4ce432=>_0x4ce432)),_0x4e0527['on'](_0x84eb3b(0x17b),_0x21b50e=>{const _0x3097b8=_0x84eb3b;this[_0x3097b8(0x19a)][_0x3097b8(0x17b)](_0x21b50e[_0x3097b8(0x1a1)][_0x3097b8(0x18a)]),this[_0x3097b8(0x19a)][_0x3097b8(0x189)][_0x3097b8(0x166)][_0x3097b8(0x1b1)]();}),_0x4e0527;}[_0xd2e23c(0x192)](_0x5a6cf4,_0x2c1b68,_0x927b2d){const _0x473538=_0xd2e23c,_0x5f0357=new _0x3ccff6(_0x5a6cf4),_0x19391f=this[_0x473538(0x19a)][_0x473538(0x1b2)][_0x473538(0x17e)](_0x473538(0x191));_0x5f0357[_0x473538(0x140)][_0x473538(0x167)]({'label':_0x927b2d,'icon':_0xfa4c14});const _0x1b13d7=new _0x1d5411(_0x5a6cf4);for(const _0x2b42ff of _0x2c1b68){if(_0x473538(0x15d)==_0x2b42ff[_0x473538(0x17f)]){_0x1b13d7[_0x473538(0x160)][_0x473538(0x172)](new _0x1b5287(_0x5a6cf4));continue;}const _0x2eba6c=new _0x3ac11f(_0x5a6cf4,_0x5f0357),_0x576f50=new _0x4aef3c(_0x5a6cf4),_0x588c87=_0x2b42ff[_0x473538(0x1b6)];_0x576f50[_0x473538(0x182)](...Object[_0x473538(0x138)](_0x588c87))['to'](_0x588c87),_0x576f50[_0x473538(0x14e)](_0x473538(0x17b))['to'](_0x5f0357),_0x576f50['on'](_0x473538(0x17b),()=>{const _0x122cdc=_0x473538;this[_0x122cdc(0x19a)][_0x122cdc(0x17b)](_0x588c87[_0x122cdc(0x18a)]),this[_0x122cdc(0x19a)][_0x122cdc(0x189)][_0x122cdc(0x166)][_0x122cdc(0x1b1)]();}),_0x2eba6c[_0x473538(0x1c1)][_0x473538(0x172)](_0x576f50),_0x1b13d7[_0x473538(0x160)][_0x473538(0x172)](_0x2eba6c);}return _0x5f0357[_0x473538(0x182)](_0x473538(0x173))['to'](_0x19391f,_0x473538(0x173)),_0x5f0357[_0x473538(0x1b3)][_0x473538(0x1c1)][_0x473538(0x172)](_0x1b13d7),_0x5f0357;}[_0xd2e23c(0x1ac)](_0x351fe2){const _0x245c53=_0xd2e23c,_0x1d213e=this[_0x245c53(0x19a)],_0x2ccfb7=_0x1d213e[_0x245c53(0x152)],_0x2d4888=_0x1d213e[_0x245c53(0x1bc)][_0x245c53(0x17e)](_0x245c53(0x179)),_0x10dae8=_0x1d213e[_0x245c53(0x1bc)][_0x245c53(0x17e)](_0x245c53(0x1a9)),_0xcfe179=_0x1d213e[_0x245c53(0x1bc)][_0x245c53(0x17e)](_0x245c53(0x147)),_0x88ea5d=_0x1d213e[_0x245c53(0x1bc)][_0x245c53(0x17e)](_0x2c65c4)['me'],_0x1200a9=_0x2ccfb7[_0x245c53(0x17e)](_0x245c53(0x191))[_0x245c53(0x1bb)],{CommentsListView:_0x31dc75,CommentThreadInputView:_0x19cadc}=_0x1d213e[_0x245c53(0x1bc)][_0x245c53(0x17e)](_0x245c53(0x1c2));let _0x2a7a83,_0x19d25b;this[_0x245c53(0x143)][_0x245c53(0x16b)](_0x351fe2['id'])?(_0x19d25b=this[_0x245c53(0x143)][_0x245c53(0x17e)](_0x351fe2['id']),_0x2a7a83=_0x19d25b[_0x245c53(0x1a6)]):(_0x2a7a83=new _0x1200a9(_0x1d213e[_0x245c53(0x1c5)],_0x351fe2,_0x88ea5d,{'disableComments':this[_0x245c53(0x196)],'editorConfig':_0x2ccfb7[_0x245c53(0x17e)](_0x245c53(0x17d)),'maxCommentsWhenCollapsed':_0x2ccfb7[_0x245c53(0x17e)](_0x245c53(0x193)),'maxThreadTotalWeight':_0x2ccfb7[_0x245c53(0x17e)](_0x245c53(0x19c)),'maxCommentCharsWhenCollapsed':_0x2ccfb7[_0x245c53(0x17e)](_0x245c53(0x1b9)),'formatDateTime':_0x10f820(_0x2ccfb7[_0x245c53(0x17e)](_0x245c53(0x1c5))),'CommentView':_0x2ccfb7[_0x245c53(0x17e)](_0x245c53(0x14b))[_0x245c53(0x197)],'CommentsListView':_0x31dc75,'CommentThreadInputView':_0x19cadc}),_0x2a7a83[_0x245c53(0x159)]['on'](_0x245c53(0x17b),()=>{const _0x594cdc=_0x245c53;_0x1d213e[_0x594cdc(0x189)][_0x594cdc(0x166)][_0x594cdc(0x1b1)]();}),_0x2a7a83[_0x245c53(0x148)]['on'](_0x245c53(0x17b),()=>{const _0x2d1582=_0x245c53;_0x1d213e[_0x2d1582(0x189)][_0x2d1582(0x166)][_0x2d1582(0x1b1)]();}),_0x19d25b=_0x2d4888[_0x245c53(0x137)](this[_0x245c53(0x19a)][_0x245c53(0x1c5)],_0x2a7a83),_0x19d25b[_0x245c53(0x182)](_0x245c53(0x149))['to'](_0x2a7a83,_0x245c53(0x149)),_0x19d25b[_0x245c53(0x182)](_0x245c53(0x19d))['to'](_0x2a7a83),_0x19d25b[_0x245c53(0x182)](_0x245c53(0x17f))['to'](_0x2a7a83,_0x245c53(0x17f),_0x1ca04b=>_0x245c53(0x153)+_0x1ca04b),this[_0x245c53(0x143)][_0x245c53(0x167)](_0x351fe2['id'],_0x19d25b));const _0x466ca9=_0x10dae8[_0x245c53(0x19e)](_0x351fe2[_0x245c53(0x17a)],_0x2a7a83),_0x2af582=new _0x5ac4e8(_0x1d213e,_0x351fe2,_0x2a7a83,_0x466ca9),_0x58241a=_0x351fe2[_0x245c53(0x1b7)]()[_0x245c53(0x1a8)](_0x48b40f=>_0x48b40f[_0x245c53(0x1bd)]);_0x2a7a83[_0x245c53(0x163)]=_0x1d213e[_0x245c53(0x1bc)][_0x245c53(0x17e)](_0x245c53(0x16d))[_0x245c53(0x18c)][_0x245c53(0x19b)](_0x58241a),this[_0x245c53(0x16a)][_0x245c53(0x167)](_0x351fe2,_0x2af582),this[_0x245c53(0x1c0)][_0x245c53(0x167)](_0x2a7a83,_0x2af582);const _0x197bbd=_0x2d4888[_0x245c53(0x1b8)]({'view':_0x19d25b,'target':()=>{const _0x4f074a=_0x245c53,_0x5429b7=[],_0x5d5bbb=_0x351fe2[_0x4f074a(0x1b7)]()[_0x4f074a(0x1a8)](_0x45dafa=>_0x45dafa[_0x4f074a(0x1bd)]);for(const _0xf5d4e1 of _0x5d5bbb)_0x5429b7[_0x4f074a(0x169)](..._0xf5d4e1[_0x4f074a(0x176)]());return _0x45785b(_0x1d213e[_0x4f074a(0x189)],_0x5429b7);},'type':()=>_0x245c53(0x153)+_0x2af582[_0x245c53(0x166)][_0x245c53(0x17f)]});_0x10dae8[_0x245c53(0x154)](_0x2a7a83,_0x197bbd),_0x2d4888[_0x245c53(0x172)](_0x197bbd),_0xcfe179[_0x245c53(0x1ab)](_0x197bbd);}[_0xd2e23c(0x14c)](_0x1678cc){const _0xe3764e=_0xd2e23c,_0x50cd7c=this[_0xe3764e(0x19a)][_0xe3764e(0x1bc)][_0xe3764e(0x17e)](_0xe3764e(0x1a9)),_0x297c95=this[_0xe3764e(0x19a)][_0xe3764e(0x1bc)][_0xe3764e(0x17e)](_0xe3764e(0x179)),_0x4c887d=this[_0xe3764e(0x16a)][_0xe3764e(0x17e)](_0x1678cc),_0x554f9f=_0x4c887d[_0xe3764e(0x166)],_0x33b9b3=_0x297c95[_0xe3764e(0x18b)](_0x554f9f);_0x50cd7c[_0xe3764e(0x1c4)](_0x554f9f),_0x33b9b3&&_0x297c95[_0xe3764e(0x14a)](_0x33b9b3),this[_0xe3764e(0x16a)][_0xe3764e(0x199)](_0x1678cc),this[_0xe3764e(0x1c0)][_0xe3764e(0x199)](_0x554f9f),_0x4c887d[_0xe3764e(0x1ad)]();}[_0xd2e23c(0x1af)](_0x1dedb7){const _0x578f3d=_0xd2e23c;if(!_0x1dedb7[_0x578f3d(0x1bd)]||!this[_0x578f3d(0x16a)][_0x578f3d(0x16b)](_0x1dedb7))return;const _0x58e2f9=this[_0x578f3d(0x19a)][_0x578f3d(0x1bc)][_0x578f3d(0x17e)](_0x578f3d(0x16d)),_0x4e955f=this[_0x578f3d(0x16a)][_0x578f3d(0x17e)](_0x1dedb7),_0x232b9e=_0x1dedb7[_0x578f3d(0x1b7)]();_0x4e955f[_0x578f3d(0x166)][_0x578f3d(0x163)]=_0x58e2f9[_0x578f3d(0x18c)][_0x578f3d(0x19b)](_0x232b9e);}[_0xd2e23c(0x1ad)](){const _0x32fd79=_0xd2e23c;for(const _0x398591 of this[_0x32fd79(0x16a)][_0x32fd79(0x138)]())this[_0x32fd79(0x14c)](_0x398591);for(const _0x597d63 of this[_0x32fd79(0x143)][_0x32fd79(0x155)]())_0x597d63[_0x32fd79(0x1a6)][_0x32fd79(0x1ad)]();super[_0x32fd79(0x1ad)]();}}function ae(_0xe88df1){const _0x2d3825=_0xd2e23c;return _0x2d3825(0x1b6)in _0xe88df1;}
|
|
23
|
+
const _0x34a1d1=_0x52de;(function(_0x1fa56b,_0x13a015){const _0x15b5d1=_0x52de,_0x5afd15=_0x1fa56b();while(!![]){try{const _0x20a9ee=-parseInt(_0x15b5d1(0x1b5))/0x1+-parseInt(_0x15b5d1(0x1d7))/0x2+parseInt(_0x15b5d1(0x202))/0x3*(-parseInt(_0x15b5d1(0x181))/0x4)+parseInt(_0x15b5d1(0x178))/0x5*(parseInt(_0x15b5d1(0x175))/0x6)+-parseInt(_0x15b5d1(0x174))/0x7+parseInt(_0x15b5d1(0x1f2))/0x8+parseInt(_0x15b5d1(0x1a5))/0x9;if(_0x20a9ee===_0x13a015)break;else _0x5afd15['push'](_0x5afd15['shift']());}catch(_0xd35fbf){_0x5afd15['push'](_0x5afd15['shift']());}}}(_0x5e9e,0xbf633));import{Plugin as _0x180210}from'ckeditor5/src/core.js';import{Collection as _0x58187d}from'ckeditor5/src/utils.js';import{addListToDropdown as _0x363061,createDropdown as _0x2aba6b,ListSeparatorView as _0x47fcfd,MenuBarMenuView as _0x5d16c5,MenuBarMenuListView as _0x194bdc,MenuBarMenuListItemView as _0x5e9456,MenuBarMenuListItemButtonView as _0x2f8d0f,SplitButtonView as _0xf27f7,ViewModel as _0xf927da}from'ckeditor5/src/ui.js';import{Users as _0x328c2d,getDateTimeFormatter as _0x5cd02b,getAllMarkersDomElementsSorted as _0xfd5846}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x4d83a2 from'./trackchangesediting.js';function _0x52de(_0x426db2,_0x4e9290){const _0x5e9e36=_0x5e9e();return _0x52de=function(_0x52de65,_0x14c9c2){_0x52de65=_0x52de65-0x173;let _0x44d532=_0x5e9e36[_0x52de65];return _0x44d532;},_0x52de(_0x426db2,_0x4e9290);}import _0x4ae0b0 from'./ui/suggestioncontroller.js';import _0x25bc31 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x40bb89}from'./utils/common-translations.js';import _0x402e61 from'../theme/icons/track-changes.svg';function _0x5e9e(){const _0x1e6e5f=['listenTo','type','value','11537784OmKKnR','change:activeAnnotations','menu','trackChanges.SuggestionThreadView','isInContent','lowest','comments.editorConfig','delegate','isOn','_initializeController','_destroyController','Discard\x20all\x20selected\x20suggestions','addComment','_addUIComponentsToFactory','items','get','51vmnCkx','activeAnnotations','779499csNuuS','163926zeATAg','set','Accept\x20all\x20selected\x20suggestions','60QRSxiw','activeMarkers','isDirty','comments.maxCommentCharsWhenCollapsed','requires','isMultiRange','getJoined','buttonView','refreshSelectedViews','13280LyRodh','focus','getAllAdjacentSuggestions','clear','panelView','arrowView','define','view','_bindAnnotationToEditors','discardButton','remove','stopListening','from','Annotations','getRanges','switchbutton','descriptionFactory','CommentsRepository','change:previous','getSuggestion','getMarkerNames','createAnnotation','commentThread','getMarkers','reduce','createAnnotationView','_viewToController','getFirstRange','unbind','pluginName','suggestionChanged','size','trackChanges.disableComments','_updateController','head','locale','13240683ZKeeKe','discardSelectedSuggestions','_createToolbarButton','Track\x20changes','comments.maxThreadTotalWeight','getDescriptions','delete','bind','length','Discard\x20all\x20suggestions','_handleControllerBuffer','menuBar:trackChanges','hasSuggestion','commands','trackChanges','_disableComments','864324sKVgeM','suggestionLoaded','descriptionParts','_annotationViews','CommentView','execute','commandName','previous','_handleSuggestionControllerDelayed','some','acceptSelectedSuggestions','plugins','editor','registerAnnotation','values','_suggestionToController','comments','EditorAnnotations','createCommentThreadController','addSourceCollector','TrackChangesUI','isEnabled','children','_createMenuBarMenu','has','keys','source','_unbindEditors','menuitem','model','button','mainView','CommentsUI','componentFactory','2850436wwrMwE','discardAllSuggestions','TrackChangesEditing','getByInnerView','suggestion-','destroy','actionView','add','menuitemcheckbox','SuggestionThreadView','_refreshActiveMarkers','innerView','editing','init','acceptButton','comments.maxCommentsWhenCollapsed','suggestionUnloaded','config','separator','acceptAllSuggestions','toMany','Accept\x20all\x20suggestions','push','filter'];_0x5e9e=function(){return _0x1e6e5f;};return _0x5e9e();}export default class d extends _0x180210{static get[_0x34a1d1(0x17c)](){const _0x17e26e=_0x34a1d1;return[_0x4d83a2,_0x328c2d,_0x17e26e(0x192),_0x17e26e(0x18e),_0x17e26e(0x1c6)];}static get[_0x34a1d1(0x19e)](){const _0x555456=_0x34a1d1;return _0x555456(0x1c9);}constructor(_0x191f34){const _0xc6f16e=_0x34a1d1;super(_0x191f34),this[_0xc6f16e(0x1c4)]=new Map(),this[_0xc6f16e(0x19b)]=new Map(),this[_0xc6f16e(0x1b8)]=new Map(),this[_0xc6f16e(0x1af)]=new Map();const _0x5eeb6a=this[_0xc6f16e(0x1c1)][_0xc6f16e(0x1e8)];_0x5eeb6a[_0xc6f16e(0x187)](_0xc6f16e(0x1f5),_0x25bc31),_0x5eeb6a[_0xc6f16e(0x187)](_0xc6f16e(0x1a1),!0x1),this[_0xc6f16e(0x1b4)]=_0x5eeb6a[_0xc6f16e(0x201)](_0xc6f16e(0x1a1));}[_0x34a1d1(0x1bd)](_0x1ffb41,_0x49d709){const _0xb44b1d=_0x34a1d1;0x0===this[_0xb44b1d(0x1af)][_0xb44b1d(0x1a0)]&&setTimeout(()=>{const _0x93caa5=_0xb44b1d;for(const [_0x17f08d,_0x56ee45]of this[_0x93caa5(0x1af)]){const _0x51ba42=this[_0x93caa5(0x1c4)][_0x93caa5(0x1cd)](_0x17f08d);_0x51ba42||_0x56ee45?_0x51ba42&&_0x56ee45&&this[_0x93caa5(0x1fc)](_0x17f08d):this[_0x93caa5(0x1fb)](_0x17f08d);}this[_0x93caa5(0x1af)][_0x93caa5(0x184)](),this[_0x93caa5(0x1c1)][_0x93caa5(0x1c0)][_0x93caa5(0x201)](_0x93caa5(0x1c6))[_0x93caa5(0x180)](),this[_0x93caa5(0x1e1)]();},0xa),this[_0xb44b1d(0x1af)][_0xb44b1d(0x176)](_0x1ffb41,_0x49d709);}[_0x34a1d1(0x1e4)](){const _0x5622e5=_0x34a1d1,_0x4401e4=this[_0x5622e5(0x1c1)],_0x12c5b1=_0x4401e4[_0x5622e5(0x1c0)][_0x5622e5(0x201)](_0x5622e5(0x1d9)),_0x322046=_0x4401e4[_0x5622e5(0x1c0)][_0x5622e5(0x201)](_0x5622e5(0x18e)),_0x3e73c5=_0x4401e4[_0x5622e5(0x1c0)][_0x5622e5(0x201)](_0x5622e5(0x1c6)),_0x2d2cff=_0x4401e4[_0x5622e5(0x1c0)][_0x5622e5(0x201)](_0x5622e5(0x192));this[_0x5622e5(0x1ff)](),_0x3e73c5[_0x5622e5(0x1c8)](()=>{const _0x3b89e6=_0x5622e5,_0x359cae=[];for(const [_0x4d822f,_0x40cfe9]of Array[_0x3b89e6(0x18d)](this[_0x3b89e6(0x1c4)])){const _0x17c8dc=_0x4d822f[_0x3b89e6(0x183)](),_0xf89428=[];for(const _0xdcd3ea of _0x17c8dc){if(!_0xdcd3ea[_0x3b89e6(0x1f6)])continue;if(_0xdcd3ea[_0x3b89e6(0x17d)]){_0xf89428[_0x3b89e6(0x1ed)](..._0xdcd3ea[_0x3b89e6(0x18f)]());continue;}const _0x507b8e=_0xdcd3ea[_0x3b89e6(0x19c)]();if(_0xf89428[_0x3b89e6(0x1ad)]>0x0){const _0x5adda3=_0xf89428[0x0][_0x3b89e6(0x17e)](_0x507b8e);if(_0x5adda3){_0xf89428[0x0]=_0x5adda3;continue;}}_0xf89428[_0x3b89e6(0x1ed)](_0x507b8e);}_0x359cae[_0x3b89e6(0x1ed)]([_0x40cfe9[_0x3b89e6(0x188)],_0xf89428]);}return _0x359cae;}),this[_0x5622e5(0x1ef)](_0x12c5b1,_0x5622e5(0x1b6),(_0x179f39,_0x262b8b)=>{const _0x2f2d5a=_0x5622e5;this[_0x2f2d5a(0x1ef)](_0x262b8b,_0x2f2d5a(0x193),(_0x594c2d,_0x417cb1,_0x596195,_0x5ee911)=>{const _0x23da63=_0x2f2d5a;_0x262b8b[_0x23da63(0x1f6)]&&(null==_0x596195?(this[_0x23da63(0x1a2)](_0x5ee911[_0x23da63(0x1a3)]),this[_0x23da63(0x1bd)](_0x262b8b,!0x1)):(this[_0x23da63(0x1a2)](_0x596195[_0x23da63(0x1a3)]),null==_0x5ee911&&this[_0x23da63(0x1bd)](_0x262b8b,!0x0)));}),null!==_0x262b8b[_0x2f2d5a(0x1bc)]?this[_0x2f2d5a(0x1a2)](_0x262b8b[_0x2f2d5a(0x1a3)]):this[_0x2f2d5a(0x1bd)](_0x262b8b,!0x1);}),this[_0x5622e5(0x1ef)](_0x12c5b1,_0x5622e5(0x1e7),(_0x47e7ed,_0x4e29f3,_0x12ef16)=>{const _0x13b338=_0x5622e5;this[_0x13b338(0x18c)](_0x4e29f3,_0x13b338(0x193)),this[_0x13b338(0x1af)][_0x13b338(0x1ab)](_0x4e29f3),this[_0x13b338(0x1c4)][_0x13b338(0x1cd)](_0x4e29f3)&&this[_0x13b338(0x1fc)](_0x4e29f3),_0x12ef16&&this[_0x13b338(0x1a2)](_0x12ef16[_0x13b338(0x1a3)]);}),this[_0x5622e5(0x1ef)](_0x12c5b1,_0x5622e5(0x19f),(_0x192507,_0x23e2de)=>{const _0xb35d94=_0x5622e5;this[_0xb35d94(0x1a2)](_0x23e2de);}),this[_0x5622e5(0x1ef)](_0x322046,_0x5622e5(0x1f3),()=>{const _0x50c4e9=_0x5622e5;this[_0x50c4e9(0x1e1)]();}),this[_0x5622e5(0x1ef)](_0x2d2cff,_0x5622e5(0x1fe),(_0x43b38c,{threadId:_0x728a7a,isFromAdapter:_0x3a90ad})=>{const _0x176b61=_0x5622e5;if(_0x3a90ad||!_0x12c5b1[_0x176b61(0x1b1)](_0x728a7a))return;const _0x1824ea=_0x12c5b1[_0x176b61(0x194)](_0x728a7a);this[_0x176b61(0x1c4)][_0x176b61(0x201)](_0x1824ea)[_0x176b61(0x188)][_0x176b61(0x182)]();},{'priority':_0x5622e5(0x1f7)});}[_0x34a1d1(0x1e1)](){const _0x6ad86e=_0x34a1d1,_0x197ce2=this[_0x6ad86e(0x1c1)][_0x6ad86e(0x1c0)][_0x6ad86e(0x201)](_0x6ad86e(0x18e)),_0xf4cb85=this[_0x6ad86e(0x1c1)][_0x6ad86e(0x1c0)][_0x6ad86e(0x201)](_0x6ad86e(0x1d9)),_0x3b0f39=Array[_0x6ad86e(0x18d)](_0x197ce2[_0x6ad86e(0x173)],_0x565e69=>_0x565e69[_0x6ad86e(0x1e2)])[_0x6ad86e(0x1ee)](_0x548800=>this[_0x6ad86e(0x19b)][_0x6ad86e(0x1cd)](_0x548800)),_0x5c7718=[];for(const _0x8ada12 of _0x3b0f39){const _0x4b918d=this[_0x6ad86e(0x19b)][_0x6ad86e(0x201)](_0x8ada12)[_0x6ad86e(0x1d2)][_0x6ad86e(0x183)]();_0x5c7718[_0x6ad86e(0x1ed)](..._0x4b918d[_0x6ad86e(0x199)]((_0x26d9cd,_0x5def34)=>[..._0x26d9cd,..._0x5def34[_0x6ad86e(0x195)]()],[]));}_0xf4cb85[_0x6ad86e(0x179)]=_0x5c7718;}[_0x34a1d1(0x1ff)](){const _0x4c812e=_0x34a1d1,_0x3c5bfa=this[_0x4c812e(0x1c1)],_0x3cbb66=_0x3c5bfa[_0x4c812e(0x1a4)],_0x5db9fa=_0x40bb89(_0x3cbb66,_0x4c812e(0x1a8)),_0x169213=new _0x58187d([{'type':_0x4c812e(0x190),'model':new _0xf927da({'withText':!0x0,'label':_0x5db9fa,'commandName':_0x4c812e(0x1b3),'role':_0x4c812e(0x1df)})},{'type':_0x4c812e(0x1e9)},{'type':_0x4c812e(0x1d3),'model':new _0xf927da({'withText':!0x0,'label':_0x40bb89(_0x3cbb66,_0x4c812e(0x1ec)),'commandName':_0x4c812e(0x1ea),'role':_0x4c812e(0x1d1)})},{'type':_0x4c812e(0x1d3),'model':new _0xf927da({'withText':!0x0,'label':_0x40bb89(_0x3cbb66,_0x4c812e(0x177)),'commandName':_0x4c812e(0x1bf),'role':_0x4c812e(0x1d1)})},{'type':_0x4c812e(0x1d3),'model':new _0xf927da({'withText':!0x0,'label':_0x40bb89(_0x3cbb66,_0x4c812e(0x1ae)),'commandName':_0x4c812e(0x1d8),'role':_0x4c812e(0x1d1)})},{'type':_0x4c812e(0x1d3),'model':new _0xf927da({'withText':!0x0,'label':_0x40bb89(_0x3cbb66,_0x4c812e(0x1fd)),'commandName':_0x4c812e(0x1a6),'role':_0x4c812e(0x1d1)})}]);for(const _0x189f00 of _0x169213)if(ae(_0x189f00)){const _0x1395e5=_0x3c5bfa[_0x4c812e(0x1b2)][_0x4c812e(0x201)](_0x189f00[_0x4c812e(0x1d2)][_0x4c812e(0x1bb)]);_0x189f00[_0x4c812e(0x1d2)][_0x4c812e(0x1ac)](_0x4c812e(0x1fa),_0x4c812e(0x1ca))['to'](_0x1395e5,_0x4c812e(0x1f1),_0x4c812e(0x1ca));}_0x3c5bfa['ui'][_0x4c812e(0x1d6)][_0x4c812e(0x1de)](_0x4c812e(0x1b3),_0x4bfc37=>this[_0x4c812e(0x1a7)](_0x4bfc37,_0x169213,_0x5db9fa)),_0x3c5bfa['ui'][_0x4c812e(0x1d6)][_0x4c812e(0x1de)](_0x4c812e(0x1b0),_0xd2f9ac=>this[_0x4c812e(0x1cc)](_0xd2f9ac,_0x169213,_0x5db9fa));}[_0x34a1d1(0x1a7)](_0x4c66c4,_0x58fbe4,_0x210073){const _0x32a0e2=_0x34a1d1,_0x1c0d1f=_0x2aba6b(_0x4c66c4,_0xf27f7),_0x1542f6=this[_0x32a0e2(0x1c1)][_0x32a0e2(0x1b2)][_0x32a0e2(0x201)](_0x32a0e2(0x1b3));_0x1c0d1f[_0x32a0e2(0x17f)][_0x32a0e2(0x176)]({'tooltip':_0x210073,'label':_0x210073,'icon':_0x402e61}),_0x1c0d1f[_0x32a0e2(0x17f)][_0x32a0e2(0x1ac)](_0x32a0e2(0x1fa))['to'](_0x1542f6,_0x32a0e2(0x1f1)),_0x1c0d1f[_0x32a0e2(0x17f)]['on'](_0x32a0e2(0x1ba),()=>{const _0x340bfc=_0x32a0e2;_0x1542f6[_0x340bfc(0x1ba)](),this[_0x340bfc(0x1c1)][_0x340bfc(0x1e3)][_0x340bfc(0x188)][_0x340bfc(0x182)]();}),_0x363061(_0x1c0d1f,_0x58fbe4,{'role':_0x32a0e2(0x1f4)});const _0x5445bb=[];for(const _0x383d5d of _0x58fbe4)ae(_0x383d5d)&&_0x5445bb[_0x32a0e2(0x1ed)](this[_0x32a0e2(0x1c1)][_0x32a0e2(0x1b2)][_0x32a0e2(0x201)](_0x383d5d[_0x32a0e2(0x1d2)][_0x32a0e2(0x1bb)]));const _0x118c5d=_0x1c0d1f[_0x32a0e2(0x17f)];return _0x118c5d[_0x32a0e2(0x1dd)][_0x32a0e2(0x19d)](_0x32a0e2(0x1ca)),_0x118c5d[_0x32a0e2(0x186)][_0x32a0e2(0x19d)](_0x32a0e2(0x1ca)),_0x118c5d[_0x32a0e2(0x1dd)][_0x32a0e2(0x1ac)](_0x32a0e2(0x1ca))['to'](_0x1542f6,_0x32a0e2(0x1ca)),_0x118c5d[_0x32a0e2(0x186)][_0x32a0e2(0x1ac)](_0x32a0e2(0x1ca))[_0x32a0e2(0x1eb)](_0x5445bb,_0x32a0e2(0x1ca),(..._0x3a33a9)=>_0x3a33a9[_0x32a0e2(0x1be)](_0xae153=>_0xae153)),_0x1c0d1f['on'](_0x32a0e2(0x1ba),_0x531f59=>{const _0x2e0bd5=_0x32a0e2;this[_0x2e0bd5(0x1c1)][_0x2e0bd5(0x1ba)](_0x531f59[_0x2e0bd5(0x1cf)][_0x2e0bd5(0x1bb)]),this[_0x2e0bd5(0x1c1)][_0x2e0bd5(0x1e3)][_0x2e0bd5(0x188)][_0x2e0bd5(0x182)]();}),_0x1c0d1f;}[_0x34a1d1(0x1cc)](_0x4af617,_0x12c97f,_0x3c65aa){const _0x5ae888=_0x34a1d1,_0x52367c=new _0x5d16c5(_0x4af617),_0x14eb89=this[_0x5ae888(0x1c1)][_0x5ae888(0x1b2)][_0x5ae888(0x201)](_0x5ae888(0x1b3));_0x52367c[_0x5ae888(0x17f)][_0x5ae888(0x176)]({'label':_0x3c65aa,'icon':_0x402e61});const _0x3d3eca=new _0x194bdc(_0x4af617);for(const _0x5dc529 of _0x12c97f){if(_0x5ae888(0x1e9)==_0x5dc529[_0x5ae888(0x1f0)]){_0x3d3eca[_0x5ae888(0x200)][_0x5ae888(0x1de)](new _0x47fcfd(_0x4af617));continue;}const _0x32361=new _0x5e9456(_0x4af617,_0x52367c),_0x26b630=new _0x2f8d0f(_0x4af617),_0xcca2d6=_0x5dc529[_0x5ae888(0x1d2)];_0x26b630[_0x5ae888(0x1ac)](...Object[_0x5ae888(0x1ce)](_0xcca2d6))['to'](_0xcca2d6),_0x26b630[_0x5ae888(0x1f9)](_0x5ae888(0x1ba))['to'](_0x52367c),_0x26b630['on'](_0x5ae888(0x1ba),()=>{const _0xf62f95=_0x5ae888;this[_0xf62f95(0x1c1)][_0xf62f95(0x1ba)](_0xcca2d6[_0xf62f95(0x1bb)]),this[_0xf62f95(0x1c1)][_0xf62f95(0x1e3)][_0xf62f95(0x188)][_0xf62f95(0x182)]();}),_0x32361[_0x5ae888(0x1cb)][_0x5ae888(0x1de)](_0x26b630),_0x3d3eca[_0x5ae888(0x200)][_0x5ae888(0x1de)](_0x32361);}return _0x52367c[_0x5ae888(0x1ac)](_0x5ae888(0x1ca))['to'](_0x14eb89,_0x5ae888(0x1ca)),_0x52367c[_0x5ae888(0x185)][_0x5ae888(0x1cb)][_0x5ae888(0x1de)](_0x3d3eca),_0x52367c;}[_0x34a1d1(0x1fb)](_0x531550){const _0x5ccb74=_0x34a1d1,_0x29832f=this[_0x5ccb74(0x1c1)],_0xe6e842=_0x29832f[_0x5ccb74(0x1e8)],_0x3ec4c9=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x5ccb74(0x18e)),_0x2eff9e=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x5ccb74(0x192)),_0x49bb4e=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x5ccb74(0x1c6)),_0x5c68ba=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x328c2d)['me'],_0x5d8761=_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1b3))[_0x5ccb74(0x1e0)],{CommentsListView:_0x1d5de3,CommentThreadInputView:_0x21935f}=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x5ccb74(0x1d5));let _0x354928,_0x317662;this[_0x5ccb74(0x1b8)][_0x5ccb74(0x1cd)](_0x531550['id'])?(_0x317662=this[_0x5ccb74(0x1b8)][_0x5ccb74(0x201)](_0x531550['id']),_0x354928=_0x317662[_0x5ccb74(0x1d4)]):(_0x354928=new _0x5d8761(_0x29832f[_0x5ccb74(0x1a4)],_0x531550,_0x5c68ba,{'disableComments':this[_0x5ccb74(0x1b4)],'editorConfig':_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1f8)),'maxCommentsWhenCollapsed':_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1e6)),'maxThreadTotalWeight':_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1a9)),'maxCommentCharsWhenCollapsed':_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x17b)),'formatDateTime':_0x5cd02b(_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1a4))),'CommentView':_0xe6e842[_0x5ccb74(0x201)](_0x5ccb74(0x1c5))[_0x5ccb74(0x1b9)],'CommentsListView':_0x1d5de3,'CommentThreadInputView':_0x21935f}),_0x354928[_0x5ccb74(0x1e5)]['on'](_0x5ccb74(0x1ba),()=>{const _0x2e2ece=_0x5ccb74;_0x29832f[_0x2e2ece(0x1e3)][_0x2e2ece(0x188)][_0x2e2ece(0x182)]();}),_0x354928[_0x5ccb74(0x18a)]['on'](_0x5ccb74(0x1ba),()=>{const _0x447cad=_0x5ccb74;_0x29832f[_0x447cad(0x1e3)][_0x447cad(0x188)][_0x447cad(0x182)]();}),_0x317662=_0x3ec4c9[_0x5ccb74(0x19a)](this[_0x5ccb74(0x1c1)][_0x5ccb74(0x1a4)],_0x354928),_0x317662[_0x5ccb74(0x1ac)](_0x5ccb74(0x17a))['to'](_0x354928,_0x5ccb74(0x17a)),_0x317662[_0x5ccb74(0x1ac)](_0x5ccb74(0x1ad))['to'](_0x354928),_0x317662[_0x5ccb74(0x1ac)](_0x5ccb74(0x1f0))['to'](_0x354928,_0x5ccb74(0x1f0),_0x417c9b=>_0x5ccb74(0x1db)+_0x417c9b),this[_0x5ccb74(0x1b8)][_0x5ccb74(0x176)](_0x531550['id'],_0x317662));const _0x40697c=_0x2eff9e[_0x5ccb74(0x1c7)](_0x531550[_0x5ccb74(0x197)],_0x354928),_0x7ae12e=new _0x4ae0b0(_0x29832f,_0x531550,_0x354928,_0x40697c),_0x3e31de=_0x531550[_0x5ccb74(0x183)]()[_0x5ccb74(0x1ee)](_0x33e49a=>_0x33e49a[_0x5ccb74(0x1f6)]);_0x354928[_0x5ccb74(0x1b7)]=_0x29832f[_0x5ccb74(0x1c0)][_0x5ccb74(0x201)](_0x5ccb74(0x1d9))[_0x5ccb74(0x191)][_0x5ccb74(0x1aa)](_0x3e31de),this[_0x5ccb74(0x1c4)][_0x5ccb74(0x176)](_0x531550,_0x7ae12e),this[_0x5ccb74(0x19b)][_0x5ccb74(0x176)](_0x354928,_0x7ae12e);const _0x1fdf5b=_0x3ec4c9[_0x5ccb74(0x196)]({'view':_0x317662,'target':()=>{const _0x2622fa=_0x5ccb74,_0x1e36e3=[],_0x3dc4b6=_0x531550[_0x2622fa(0x183)]()[_0x2622fa(0x1ee)](_0x328238=>_0x328238[_0x2622fa(0x1f6)]);for(const _0x42c793 of _0x3dc4b6)_0x1e36e3[_0x2622fa(0x1ed)](..._0x42c793[_0x2622fa(0x198)]());return _0xfd5846(_0x29832f[_0x2622fa(0x1e3)],_0x1e36e3);},'type':()=>_0x5ccb74(0x1db)+_0x7ae12e[_0x5ccb74(0x188)][_0x5ccb74(0x1f0)]});_0x2eff9e[_0x5ccb74(0x189)](_0x354928,_0x1fdf5b),_0x3ec4c9[_0x5ccb74(0x1de)](_0x1fdf5b),_0x49bb4e[_0x5ccb74(0x1c2)](_0x1fdf5b);}[_0x34a1d1(0x1fc)](_0x19ef09){const _0xd8c12b=_0x34a1d1,_0x3b4111=this[_0xd8c12b(0x1c1)][_0xd8c12b(0x1c0)][_0xd8c12b(0x201)](_0xd8c12b(0x192)),_0x52ca8a=this[_0xd8c12b(0x1c1)][_0xd8c12b(0x1c0)][_0xd8c12b(0x201)](_0xd8c12b(0x18e)),_0x185353=this[_0xd8c12b(0x1c4)][_0xd8c12b(0x201)](_0x19ef09),_0x21b0e6=_0x185353[_0xd8c12b(0x188)],_0x6b5c0d=_0x52ca8a[_0xd8c12b(0x1da)](_0x21b0e6);_0x3b4111[_0xd8c12b(0x1d0)](_0x21b0e6),_0x6b5c0d&&_0x52ca8a[_0xd8c12b(0x18b)](_0x6b5c0d),this[_0xd8c12b(0x1c4)][_0xd8c12b(0x1ab)](_0x19ef09),this[_0xd8c12b(0x19b)][_0xd8c12b(0x1ab)](_0x21b0e6),_0x185353[_0xd8c12b(0x1dc)]();}[_0x34a1d1(0x1a2)](_0x5830d6){const _0x8c2deb=_0x34a1d1;if(!_0x5830d6[_0x8c2deb(0x1f6)]||!this[_0x8c2deb(0x1c4)][_0x8c2deb(0x1cd)](_0x5830d6))return;const _0x604c0a=this[_0x8c2deb(0x1c1)][_0x8c2deb(0x1c0)][_0x8c2deb(0x201)](_0x8c2deb(0x1d9)),_0x4efa46=this[_0x8c2deb(0x1c4)][_0x8c2deb(0x201)](_0x5830d6),_0x3d3cc2=_0x5830d6[_0x8c2deb(0x183)]();_0x4efa46[_0x8c2deb(0x188)][_0x8c2deb(0x1b7)]=_0x604c0a[_0x8c2deb(0x191)][_0x8c2deb(0x1aa)](_0x3d3cc2);}[_0x34a1d1(0x1dc)](){const _0x1c860c=_0x34a1d1;for(const _0x1e1cf8 of this[_0x1c860c(0x1c4)][_0x1c860c(0x1ce)]())this[_0x1c860c(0x1fc)](_0x1e1cf8);for(const _0x4bc5cb of this[_0x1c860c(0x1b8)][_0x1c860c(0x1c3)]())_0x4bc5cb[_0x1c860c(0x1d4)][_0x1c860c(0x1dc)]();super[_0x1c860c(0x1dc)]();}}function ae(_0x2b1bdd){const _0xb1706e=_0x34a1d1;return _0xb1706e(0x1d2)in _0x2b1bdd;}
|
|
@@ -16,7 +16,7 @@ declare const SuggestionController_base: {
|
|
|
16
16
|
* It takes a suggestion thread view, listens to events fired by that view and based on them performs actions
|
|
17
17
|
* on the provided suggestion model.
|
|
18
18
|
*/
|
|
19
|
-
export default class SuggestionController extends
|
|
19
|
+
export default class SuggestionController extends SuggestionController_base {
|
|
20
20
|
model: Suggestion;
|
|
21
21
|
view: BaseSuggestionThreadView;
|
|
22
22
|
commentThreadController: CommentThreadController;
|
|
@@ -20,5 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x5d24bf(){constructor(_0x26c54b,_0x36864,_0x5ea308,_0x472fa7){const _0x132494=_0x2281;super(),this[_0x132494(0x1e4)]=_0x36864,this[_0x132494(0x1fa)]=_0x5ea308,this[_0x132494(0x1e5)]=_0x472fa7,this[_0x132494(0x1ed)]=_0x26c54b,this[_0x132494(0x1f4)]=_0x26c54b[_0x132494(0x1da)][_0x132494(0x1e3)](_0x132494(0x1e2)),this[_0x132494(0x1e6)]=_0x26c54b[_0x132494(0x1da)][_0x132494(0x1e3)](_0x132494(0x202)),this[_0x132494(0x1fa)][_0x132494(0x1ec)](_0x132494(0x1ef))['to'](this[_0x132494(0x1f4)],this[_0x132494(0x1e6)],(_0x455763,_0x3273b0)=>_0x455763||_0x3273b0),this[_0x132494(0x1fa)][_0x132494(0x1ec)](_0x132494(0x1f1))['to'](this[_0x132494(0x1f4)],_0x132494(0x1ef),_0x4023f0=>_0x4023f0&&this[_0x132494(0x1ed)][_0x132494(0x1e4)][_0x132494(0x1f9)](_0x36864[_0x132494(0x1eb)]())),this[_0x132494(0x1fa)][_0x132494(0x1ec)](_0x132494(0x1f8))['to'](this[_0x132494(0x1e6)],_0x132494(0x1ef),_0x113380=>_0x113380&&this[_0x132494(0x1ed)][_0x132494(0x1e4)][_0x132494(0x1f9)](_0x36864[_0x132494(0x1eb)]())),this[_0x132494(0x1dc)]=null,_0x5ea308[_0x132494(0x1db)]&&this[_0x132494(0x1fe)](),this[_0x132494(0x1e7)](_0x5ea308,_0x132494(0x1e2),()=>this[_0x132494(0x1e2)]()),this[_0x132494(0x1e7)](_0x5ea308,_0x132494(0x202),()=>this[_0x132494(0x202)]()),this[_0x132494(0x1e7)](_0x5ea308,_0x132494(0x1e0),()=>{const _0x5792d2=_0x132494;_0x5ea308[_0x5792d2(0x1db)]?this[_0x5792d2(0x1fe)]():this[_0x5792d2(0x1f6)]();});}[_0x484358(0x1e2)](){const _0x5b242a=_0x484358;this[_0x5b242a(0x1f4)][_0x5b242a(0x1ea)](this[_0x5b242a(0x1e4)]['id']);}[_0x484358(0x202)](){const _0x429729=_0x484358;this[_0x429729(0x1e6)][_0x429729(0x1ea)](this[_0x429729(0x1e4)]['id']);}[_0x484358(0x1df)](){const _0x2b53bb=_0x484358;this[_0x2b53bb(0x1fa)][_0x2b53bb(0x1e9)](_0x2b53bb(0x1ef)),this[_0x2b53bb(0x1fa)][_0x2b53bb(0x1e9)](_0x2b53bb(0x1f1)),this[_0x2b53bb(0x1fa)][_0x2b53bb(0x1e9)](_0x2b53bb(0x1f8)),this[_0x2b53bb(0x1f5)](),this[_0x2b53bb(0x1e5)][_0x2b53bb(0x1df)](),this[_0x2b53bb(0x1dc)]&&this[_0x2b53bb(0x1f6)]();}[_0x484358(0x1fe)](){const _0x3539f5=_0x484358,_0x2aeeba=_0x8c90f2(this[_0x3539f5(0x1ed)][_0x3539f5(0x1fd)],_0x3539f5(0x203));this[_0x3539f5(0x1dc)]=this[_0x3539f5(0x1ed)][_0x3539f5(0x1f0)][_0x3539f5(0x1e3)](_0x3539f5(0x1ff))[_0x3539f5(0x1f7)](_0x2aeeba);}[_0x484358(0x1f6)](){const _0x3157ce=_0x484358;null!==this[_0x3157ce(0x1dc)]&&this[_0x3157ce(0x1ed)][_0x3157ce(0x1f0)][_0x3157ce(0x1e3)](_0x3157ce(0x1ff))[_0x3157ce(0x1fb)](this[_0x3157ce(0x1dc)]),this[_0x3157ce(0x1dc)]=null;}}
|
|
23
|
+
const _0x32781d=_0x4d60;(function(_0x47c896,_0x4fb7f3){const _0x4df218=_0x4d60,_0xdeeb0d=_0x47c896();while(!![]){try{const _0x4ae8e=-parseInt(_0x4df218(0xdb))/0x1*(parseInt(_0x4df218(0xe3))/0x2)+parseInt(_0x4df218(0xbe))/0x3*(parseInt(_0x4df218(0xd3))/0x4)+-parseInt(_0x4df218(0xd5))/0x5*(parseInt(_0x4df218(0xc9))/0x6)+parseInt(_0x4df218(0xca))/0x7*(-parseInt(_0x4df218(0xce))/0x8)+parseInt(_0x4df218(0xd0))/0x9+parseInt(_0x4df218(0xc3))/0xa+-parseInt(_0x4df218(0xcb))/0xb*(parseInt(_0x4df218(0xd6))/0xc);if(_0x4ae8e===_0x4fb7f3)break;else _0xdeeb0d['push'](_0xdeeb0d['shift']());}catch(_0x4807fe){_0xdeeb0d['push'](_0xdeeb0d['shift']());}}}(_0x44db,0x73323));import{ObservableMixin as _0x3922cb}from'ckeditor5/src/utils.js';function _0x44db(){const _0x3dad32=['bind','PENDING_ACTION_SUGGESTION','get','plugins','69403IBvFkd','_editor','model','canAccept','stopListening','commands','isDirty','_removePendingAction','10Ylralb','change:isDirty','remove','execute','locale','PendingActions','_setPendingAction','3KhfGkn','_acceptCommand','destroy','discardSuggestion','canDiscard','8637350vHCBcQ','listenTo','add','acceptSuggestion','commentThreadController','_discardCommand','60MRqMAU','1043sQFfdc','440506icPfzA','view','isEnabled','34296mvKTpi','canEditAt','5587047CPewDS','getRanges','_pendingAction','2732996NAstqL','unbind','335050zBqnfm','12PSLMLt'];_0x44db=function(){return _0x3dad32;};return _0x44db();}import{getTranslation as _0x1292b7}from'../utils/common-translations.js';function _0x4d60(_0x496951,_0xa717f0){const _0x44dbbc=_0x44db();return _0x4d60=function(_0x4d602b,_0x221662){_0x4d602b=_0x4d602b-0xb9;let _0x4def43=_0x44dbbc[_0x4d602b];return _0x4def43;},_0x4d60(_0x496951,_0xa717f0);}export default class oe extends _0x3922cb(){constructor(_0x45fc29,_0x410eeb,_0x226e17,_0x221c96){const _0x42f32b=_0x4d60;super(),this[_0x42f32b(0xdd)]=_0x410eeb,this[_0x42f32b(0xcc)]=_0x226e17,this[_0x42f32b(0xc7)]=_0x221c96,this[_0x42f32b(0xdc)]=_0x45fc29,this[_0x42f32b(0xbf)]=_0x45fc29[_0x42f32b(0xe0)][_0x42f32b(0xd9)](_0x42f32b(0xc6)),this[_0x42f32b(0xc8)]=_0x45fc29[_0x42f32b(0xe0)][_0x42f32b(0xd9)](_0x42f32b(0xc1)),this[_0x42f32b(0xcc)][_0x42f32b(0xd7)](_0x42f32b(0xcd))['to'](this[_0x42f32b(0xbf)],this[_0x42f32b(0xc8)],(_0xf45d5f,_0x38ff10)=>_0xf45d5f||_0x38ff10),this[_0x42f32b(0xcc)][_0x42f32b(0xd7)](_0x42f32b(0xde))['to'](this[_0x42f32b(0xbf)],_0x42f32b(0xcd),_0x3fb7dc=>_0x3fb7dc&&this[_0x42f32b(0xdc)][_0x42f32b(0xdd)][_0x42f32b(0xcf)](_0x410eeb[_0x42f32b(0xd1)]())),this[_0x42f32b(0xcc)][_0x42f32b(0xd7)](_0x42f32b(0xc2))['to'](this[_0x42f32b(0xc8)],_0x42f32b(0xcd),_0x29bb1a=>_0x29bb1a&&this[_0x42f32b(0xdc)][_0x42f32b(0xdd)][_0x42f32b(0xcf)](_0x410eeb[_0x42f32b(0xd1)]())),this[_0x42f32b(0xd2)]=null,_0x226e17[_0x42f32b(0xe1)]&&this[_0x42f32b(0xbd)](),this[_0x42f32b(0xc4)](_0x226e17,_0x42f32b(0xc6),()=>this[_0x42f32b(0xc6)]()),this[_0x42f32b(0xc4)](_0x226e17,_0x42f32b(0xc1),()=>this[_0x42f32b(0xc1)]()),this[_0x42f32b(0xc4)](_0x226e17,_0x42f32b(0xe4),()=>{const _0xfa19b8=_0x42f32b;_0x226e17[_0xfa19b8(0xe1)]?this[_0xfa19b8(0xbd)]():this[_0xfa19b8(0xe2)]();});}[_0x32781d(0xc6)](){const _0x39662f=_0x32781d;this[_0x39662f(0xbf)][_0x39662f(0xba)](this[_0x39662f(0xdd)]['id']);}[_0x32781d(0xc1)](){const _0x3c753b=_0x32781d;this[_0x3c753b(0xc8)][_0x3c753b(0xba)](this[_0x3c753b(0xdd)]['id']);}[_0x32781d(0xc0)](){const _0x289329=_0x32781d;this[_0x289329(0xcc)][_0x289329(0xd4)](_0x289329(0xcd)),this[_0x289329(0xcc)][_0x289329(0xd4)](_0x289329(0xde)),this[_0x289329(0xcc)][_0x289329(0xd4)](_0x289329(0xc2)),this[_0x289329(0xdf)](),this[_0x289329(0xc7)][_0x289329(0xc0)](),this[_0x289329(0xd2)]&&this[_0x289329(0xe2)]();}[_0x32781d(0xbd)](){const _0x1673bb=_0x32781d,_0x1ec246=_0x1292b7(this[_0x1673bb(0xdc)][_0x1673bb(0xbb)],_0x1673bb(0xd8));this[_0x1673bb(0xd2)]=this[_0x1673bb(0xdc)][_0x1673bb(0xda)][_0x1673bb(0xd9)](_0x1673bb(0xbc))[_0x1673bb(0xc5)](_0x1ec246);}[_0x32781d(0xe2)](){const _0x41cc2c=_0x32781d;null!==this[_0x41cc2c(0xd2)]&&this[_0x41cc2c(0xdc)][_0x41cc2c(0xda)][_0x41cc2c(0xd9)](_0x41cc2c(0xbc))[_0x41cc2c(0xb9)](this[_0x41cc2c(0xd2)]),this[_0x41cc2c(0xd2)]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5340(_0x313a16,_0x563e14){const _0x4f1309=_0x4f13();return _0x5340=function(_0x53407b,_0x11514e){_0x53407b=_0x53407b-0x1e6;let _0x3c8a65=_0x4f1309[_0x53407b];return _0x3c8a65;},_0x5340(_0x313a16,_0x563e14);}const _0x192eab=_0x5340;(function(_0x4b04a6,_0x229ae5){const _0x366f36=_0x5340,_0x3ee850=_0x4b04a6();while(!![]){try{const _0x3dd0dd=-parseInt(_0x366f36(0x1f5))/0x1*(parseInt(_0x366f36(0x1fa))/0x2)+-parseInt(_0x366f36(0x204))/0x3*(parseInt(_0x366f36(0x1e8))/0x4)+-parseInt(_0x366f36(0x1e9))/0x5+parseInt(_0x366f36(0x1f1))/0x6*(-parseInt(_0x366f36(0x21a))/0x7)+parseInt(_0x366f36(0x1f7))/0x8*(-parseInt(_0x366f36(0x215))/0x9)+parseInt(_0x366f36(0x1fb))/0xa*(parseInt(_0x366f36(0x1f6))/0xb)+-parseInt(_0x366f36(0x1f2))/0xc*(-parseInt(_0x366f36(0x20f))/0xd);if(_0x3dd0dd===_0x229ae5)break;else _0x3ee850['push'](_0x3ee850['shift']());}catch(_0x5d282f){_0x3ee850['push'](_0x3ee850['shift']());}}}(_0x4f13,0x99d8a));import{View as _0xcf0c43}from'ckeditor5/src/ui.js';function _0x4f13(){const _0x8349a6=['26287860xeDSZA','bind','commentThreadInputView','61807lZpKKQ','8019385tDkWcn','1096QBnuYS','isEnabled','_model','10kRxXtE','10eVsTSs','isReadOnly','isActive','editorConfig','disabledSubmit','_createCommentViews','_createCommentThreadInputView','focus','setData','6TxRssa','CommentView','delegate','commentsListView','updateComment','canDiscard','assign','_config','isDirty','removeComment','locale','13IKfvkd','cancel','_localUser','value','authoredAt','hasDirtyComment','52389tsZjTZ','showInput','addComment','editor','submit','63XzTZPR','element','commentInputView','canAccept','558988GOXAOd','3677635wsaHRk','disableComments','commentThread','fire','length','set','destroy','descriptionParts','112002euQPZI'];_0x4f13=function(){return _0x8349a6;};return _0x4f13();}export default class es extends _0xcf0c43{constructor(_0x360342,_0x1d57a2,_0x5d1486,_0x3c687e){const _0x2c3206=_0x5340;super(_0x360342),this[_0x2c3206(0x207)]=null,this[_0x2c3206(0x1f4)]=null,this[_0x2c3206(0x1ee)](_0x2c3206(0x1fd),!0x1),this[_0x2c3206(0x1ee)](_0x2c3206(0x213),_0x1d57a2[_0x2c3206(0x213)]),this[_0x2c3206(0x1f3)](_0x2c3206(0x213))['to'](_0x1d57a2),this[_0x2c3206(0x1ee)](_0x2c3206(0x1f0),[]),this[_0x2c3206(0x1ee)](_0x2c3206(0x20c),!0x1),this[_0x2c3206(0x1ee)](_0x2c3206(0x1f8),!0x1),this[_0x2c3206(0x1ee)](_0x2c3206(0x1e7),!0x1),this[_0x2c3206(0x1ee)](_0x2c3206(0x209),!0x1),this[_0x2c3206(0x1f9)]=_0x1d57a2,this[_0x2c3206(0x211)]=_0x5d1486,this[_0x2c3206(0x20b)]=_0x3c687e,_0x3c687e[_0x2c3206(0x1ea)]?this[_0x2c3206(0x1ee)](_0x2c3206(0x1ed),0x1):this[_0x2c3206(0x200)]();}[_0x192eab(0x202)](){const _0x107a19=_0x192eab;this[_0x107a19(0x21b)][_0x107a19(0x202)]();}[_0x192eab(0x1ef)](){const _0x2acbf1=_0x192eab;this[_0x2acbf1(0x207)]&&this[_0x2acbf1(0x207)][_0x2acbf1(0x1ef)](),this[_0x2acbf1(0x1f4)]&&this[_0x2acbf1(0x1f4)][_0x2acbf1(0x1ef)](),super[_0x2acbf1(0x1ef)]();}[_0x192eab(0x200)](){const _0x4ae667=_0x192eab,{CommentsListView:_0x2e9378}=this[_0x4ae667(0x20b)];this[_0x4ae667(0x207)]=new _0x2e9378(this[_0x4ae667(0x20e)],this[_0x4ae667(0x1f9)][_0x4ae667(0x1eb)],Object[_0x4ae667(0x20a)]({'CommentView':this[_0x4ae667(0x20b)][_0x4ae667(0x205)]},this[_0x4ae667(0x20b)])),this[_0x4ae667(0x207)][_0x4ae667(0x206)](_0x4ae667(0x20d))['to'](this),this[_0x4ae667(0x207)][_0x4ae667(0x206)](_0x4ae667(0x208))['to'](this),this[_0x4ae667(0x207)][_0x4ae667(0x1f3)](_0x4ae667(0x1fd))['to'](this),this[_0x4ae667(0x1ee)](_0x4ae667(0x1ed),this[_0x4ae667(0x207)][_0x4ae667(0x1ed)]+0x1),this[_0x4ae667(0x1f3)](_0x4ae667(0x1ed))['to'](this[_0x4ae667(0x207)],_0x4ae667(0x1ed),_0x16a18d=>_0x16a18d+0x1),this[_0x4ae667(0x1f4)]=this[_0x4ae667(0x201)](),this['on'](_0x4ae667(0x20d),()=>this[_0x4ae667(0x202)]()),this[_0x4ae667(0x1f3)](_0x4ae667(0x20c))['to'](this[_0x4ae667(0x207)],_0x4ae667(0x214),this[_0x4ae667(0x1f4)][_0x4ae667(0x1e6)],_0x4ae667(0x212),(_0xb9551,_0x355256)=>_0xb9551||!!_0x355256);}[_0x192eab(0x201)](){const _0x430abc=_0x192eab,{CommentThreadInputView:_0x26f5f8}=this[_0x430abc(0x20b)],_0x57ee1f=new _0x26f5f8(this[_0x430abc(0x20e)],this[_0x430abc(0x211)],this[_0x430abc(0x20b)][_0x430abc(0x1fe)]),_0x39784e=_0x57ee1f[_0x430abc(0x1e6)];return _0x57ee1f[_0x430abc(0x1f3)](_0x430abc(0x216))['to'](this,_0x430abc(0x1fd),this[_0x430abc(0x1f9)][_0x430abc(0x1eb)],_0x430abc(0x1fc),_0x39784e,_0x430abc(0x212),(_0x59d214,_0x49e96f,_0x1bfe06)=>!!_0x1bfe06||_0x59d214&&!_0x49e96f),_0x39784e['on'](_0x430abc(0x219),(_0x2ca8e3,_0x431dbc)=>{const _0x1d1b90=_0x430abc;this[_0x1d1b90(0x1ec)](_0x1d1b90(0x217),_0x431dbc),_0x39784e[_0x1d1b90(0x218)][_0x1d1b90(0x203)]('');}),_0x39784e['on'](_0x430abc(0x210),()=>this[_0x430abc(0x202)]()),_0x39784e[_0x430abc(0x1f3)](_0x430abc(0x1ff))['to'](this[_0x430abc(0x1f9)][_0x430abc(0x1eb)],_0x430abc(0x1fc)),_0x57ee1f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d9c4b=_0x53a4;function _0x2629(){const _0x1f217b=['ck-suggestion-wrapper--active','17612YdICXl','acceptButton','cancel','EXTERNAL_AVATAR','fire','editorDestroyed','_model','_createButton','2973005yASGhw','Accept\x20suggestion','extendTemplate','querySelector','content','map','setTemplate','render','ck-annotation__info-name','canAccept','bindTemplate','ck-comment__info-time','commentThreadInputView','ck-annotation__info-time','_descriptionElement','innerText','\x22></span>','2622696MbVouO','isEnabled','isExternal','ck-suggestion--accept','type','isActive','join','3621537qcJPYW','116756BzMhwx','getTemplate','ck-suggestion__info','source','authoredAt','ck-suggestion__main','div','commentThread','editorReady','name','ck-comment__external','children','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','ck-suggestion-wrapper','43422gapnfA','importWord','creator','</p>','ck-annotation__user','split','disableComments','_config','</span>','innerHTML','ck-annotation','<span\x20class=\x22ck-suggestion-type\x22>','ck-suggestion__user','ck-annotation__main','discardButton','value','color','author','check','3529816nqvYyz','ck-annotation__content-wrapper','165FJxOKb','title','Discard\x20suggestion','change:description','delegate','getExternalSuggestionNote','305UbJrFE','set','commentsListView','ck-suggestion--disabled-comments','@external','EXTERNAL_IMPORT_WORD_SUGGESTION','EXTERNAL_IMPORT_WORD_AVATAR','bind','ck-annotation__actions','userView','formatDateTime','getUserViewNotificationText','locale','.ck-annotation__content-wrapper','ck-suggestion-','descriptionParts','description','time','ck-suggestion','ck-suggestion__actions','ck-suggestion--discard','ck-annotation__info','span','execute','discardSuggestion','attributes','ck-suggestion__info-name','createElement','element','acceptSuggestion','<p>','\x22\x20title=\x22','10mYZeNs','push','canDiscard','EXTERNAL_SUGGESTION'];_0x2629=function(){return _0x1f217b;};return _0x2629();}(function(_0x4ee105,_0x1bd2b7){const _0x1cadad=_0x53a4,_0x2f1e61=_0x4ee105();while(!![]){try{const _0x377d14=parseInt(_0x1cadad(0x11c))/0x1+-parseInt(_0x1cadad(0xfb))/0x2*(-parseInt(_0x1cadad(0x13f))/0x3)+parseInt(_0x1cadad(0x13d))/0x4+parseInt(_0x1cadad(0x145))/0x5*(-parseInt(_0x1cadad(0x12a))/0x6)+-parseInt(_0x1cadad(0x103))/0x7+parseInt(_0x1cadad(0x114))/0x8+-parseInt(_0x1cadad(0x11b))/0x9*(parseInt(_0x1cadad(0xf6))/0xa);if(_0x377d14===_0x1bd2b7)break;else _0x2f1e61['push'](_0x2f1e61['shift']());}catch(_0x4517e1){_0x2f1e61['push'](_0x2f1e61['shift']());}}}(_0x2629,0x8485c));import{getTranslation as _0x4fdd97}from'../../utils/common-translations.js';import{default as _0x11a6ff}from'./basesuggestionthreadview.js';import{ButtonView as _0xd6c559}from'ckeditor5/src/ui.js';import{icons as _0x474b14}from'ckeditor5/src/core.js';import{trimHtml as _0x1a7f2f,UserView as _0x3ba254}from'ckeditor5-collaboration/src/collaboration-core.js';export default class ne extends _0x11a6ff{constructor(_0x53fa67,_0x5a28d7,_0x98a6cb,_0x283be7){const _0x393145=_0x53a4;super(_0x53fa67,_0x5a28d7,_0x98a6cb,_0x283be7),this[_0x393145(0x146)](_0x393145(0x118),''),this[_0x393145(0x14c)](_0x393145(0x118))['to'](this,_0x393145(0x154),_0x5db80d=>_0x5db80d&&_0x5db80d[0x0]?_0x5db80d[0x0][_0x393145(0x118)]:''),this[_0x393145(0x14c)](_0x393145(0x155))['to'](this,_0x393145(0x154),this,_0x393145(0x119),(_0x238c9e,_0x44cb88)=>{const _0x24218a=_0x393145;let _0x372e6d='';for(const _0x14039a of _0x238c9e)_0x372e6d+=_0x24218a(0xf4)+ds(_0x14039a[_0x24218a(0x107)],_0x14039a[_0x24218a(0x13a)])+_0x24218a(0x12d);return _0x44cb88?_0x372e6d:_0x1a7f2f(_0x372e6d,{'limit':0x8c});}),this[_0x393145(0x111)]=null,this[_0x393145(0xfc)]=this[_0x393145(0x102)](_0x4fdd97(_0x53fa67,_0x393145(0x104)),_0x474b14[_0x393145(0x13c)],_0x393145(0x117),_0x393145(0xf3),'sw'),this[_0x393145(0xfc)][_0x393145(0x14c)](_0x393145(0x115))['to'](this,_0x393145(0x10c)),this[_0x393145(0x138)]=this[_0x393145(0x102)](_0x4fdd97(_0x53fa67,_0x393145(0x141)),_0x474b14[_0x393145(0xfd)],_0x393145(0x159),_0x393145(0xee),'sw'),this[_0x393145(0x138)][_0x393145(0x14c)](_0x393145(0x115))['to'](this,_0x393145(0xf8)),this[_0x393145(0x14e)]=new _0x3ba254(_0x53fa67,this[_0x393145(0x101)][_0x393145(0x13b)],this[_0x393145(0x150)]()),this[_0x393145(0x14e)][_0x393145(0x105)]({'attributes':{'class':[_0x393145(0x136),_0x393145(0x12e)]}}),this[_0x393145(0x109)](this[_0x393145(0x11d)]());}[_0x3d9c4b(0x11d)](){const _0x3e03cf=_0x3d9c4b,_0xea8f4c=this[_0x3e03cf(0x10d)],_0x48d7a0=[{'tag':_0x3e03cf(0x122),'attributes':{'class':[_0x3e03cf(0x11e),_0x3e03cf(0x15a)]},'children':[{'tag':_0x3e03cf(0x15b),'children':[{'text':this[_0x3e03cf(0x14e)][_0x3e03cf(0x125)]}],'attributes':{'class':[_0x3e03cf(0xf0),_0x3e03cf(0x10b)]}},{'tag':_0x3e03cf(0x156),'attributes':{'datetime':_0xea8f4c['to'](_0x3e03cf(0x120)),'class':[_0x3e03cf(0x10e),_0x3e03cf(0x110)]},'children':[{'text':_0xea8f4c['to'](_0x3e03cf(0x120),_0x91b463=>this[_0x3e03cf(0x131)][_0x3e03cf(0x14f)](_0x91b463))}]}]},{'tag':_0x3e03cf(0x122),'attributes':{'class':[_0x3e03cf(0x158),_0x3e03cf(0x14d)]},'children':[this[_0x3e03cf(0xfc)],this[_0x3e03cf(0x138)]]},{'tag':_0x3e03cf(0x122),'attributes':{'class':[_0x3e03cf(0x13e)]}}];this[_0x3e03cf(0x101)][_0x3e03cf(0x116)]&&_0x48d7a0[_0x3e03cf(0xf7)]({'tag':_0x3e03cf(0x122),'attributes':{'class':[_0x3e03cf(0x126)]},'children':[{'text':this[_0x3e03cf(0x144)]()}]});const _0x394538={'tag':_0x3e03cf(0x122),'attributes':{'class':[_0x3e03cf(0x129),_0xea8f4c['if'](_0x3e03cf(0x119),_0x3e03cf(0xfa)),_0xea8f4c['to'](_0x3e03cf(0x118),_0x55ff3a=>_0x3e03cf(0x153)+_0x55ff3a),this[_0x3e03cf(0x131)][_0x3e03cf(0x130)]&&_0x3e03cf(0x148)],'data-suggestion-id':this[_0x3e03cf(0x101)]['id'],'data-thread-id':this[_0x3e03cf(0x101)][_0x3e03cf(0x123)]['id'],'data-author-id':this[_0x3e03cf(0x101)][_0x3e03cf(0x13b)]['id'],'tabindex':-0x1},'children':[{'tag':_0x3e03cf(0x122),'attributes':{'class':[_0x3e03cf(0x157),_0x3e03cf(0x134)]},'children':[this[_0x3e03cf(0x14e)],{'tag':_0x3e03cf(0x122),'attributes':{'class':[_0x3e03cf(0x121),_0x3e03cf(0x137)]},'children':_0x48d7a0}]}]};return this[_0x3e03cf(0x147)]&&this[_0x3e03cf(0x10f)]&&(_0x394538[_0x3e03cf(0x127)][_0x3e03cf(0xf7)](this[_0x3e03cf(0x147)],this[_0x3e03cf(0x10f)]),this[_0x3e03cf(0x147)][_0x3e03cf(0x143)](_0x3e03cf(0x124))['to'](this),this[_0x3e03cf(0x147)][_0x3e03cf(0x143)](_0x3e03cf(0x100))['to'](this),this[_0x3e03cf(0x10f)][_0x3e03cf(0x143)](_0x3e03cf(0x124))['to'](this),this[_0x3e03cf(0x10f)][_0x3e03cf(0x143)](_0x3e03cf(0x100))['to'](this)),_0x394538;}[_0x3d9c4b(0x10a)](){const _0x5ad1e0=_0x3d9c4b;super[_0x5ad1e0(0x10a)](),this[_0x5ad1e0(0x111)]=this[_0x5ad1e0(0xf2)][_0x5ad1e0(0x106)](_0x5ad1e0(0x152)),this[_0x5ad1e0(0x111)][_0x5ad1e0(0x133)]=this[_0x5ad1e0(0x155)],this['on'](_0x5ad1e0(0x142),(_0x42d53e,_0x477c59,_0x473d82)=>{const _0x4aafa5=_0x5ad1e0;this[_0x4aafa5(0x111)][_0x4aafa5(0x133)]=_0x473d82;});}[_0x3d9c4b(0x102)](_0x2c572d,_0x409be7,_0x5a8841,_0x3994fd,_0x355797){const _0x2960fa=_0x3d9c4b,_0x58f263=new _0xd6c559(this[_0x2960fa(0x151)]);return _0x58f263[_0x2960fa(0x146)]({'label':_0x2c572d,'icon':_0x409be7,'tooltip':!0x0,'tooltipPosition':_0x355797}),_0x58f263[_0x2960fa(0x105)]({'attributes':{'class':_0x5a8841}}),_0x58f263['on'](_0x2960fa(0x15c),()=>{const _0x33bf8d=_0x2960fa;this[_0x33bf8d(0xff)](_0x3994fd,this[_0x33bf8d(0x101)]['id']);}),_0x58f263;}[_0x3d9c4b(0x144)](){const _0x4a0e21=_0x3d9c4b;return _0x4a0e21(0x12b)===this[_0x4a0e21(0x101)][_0x4a0e21(0xef)][_0x4a0e21(0x149)][_0x4a0e21(0x11f)]?_0x4fdd97(this[_0x4a0e21(0x151)],_0x4a0e21(0x14a)):_0x4fdd97(this[_0x4a0e21(0x151)],_0x4a0e21(0xf9));}[_0x3d9c4b(0x150)](){const _0x41f561=_0x3d9c4b;return this[_0x41f561(0x101)][_0x41f561(0x116)]?_0x41f561(0x12b)===this[_0x41f561(0x101)][_0x41f561(0xef)][_0x41f561(0x149)][_0x41f561(0x11f)]?_0x4fdd97(this[_0x41f561(0x151)],_0x41f561(0x14b),this[_0x41f561(0x101)][_0x41f561(0x12c)][_0x41f561(0x125)]):_0x4fdd97(this[_0x41f561(0x151)],_0x41f561(0xfe),this[_0x41f561(0x101)][_0x41f561(0x12c)][_0x41f561(0x125)]):null;}}function _0x53a4(_0x47fcb1,_0x3b1db8){const _0x26295e=_0x2629();return _0x53a4=function(_0x53a46a,_0xb77dcd){_0x53a46a=_0x53a46a-0xee;let _0x542eaa=_0x26295e[_0x53a46a];return _0x542eaa;},_0x53a4(_0x47fcb1,_0x3b1db8);}function ds(_0x562a72,_0x27ac1f){const _0x254d92=_0x3d9c4b;let _0x5c0d22='';return _0x5c0d22+=_0x562a72[_0x254d92(0x12f)]('*')[_0x254d92(0x108)]((_0x45f4e9,_0x3eacc9)=>_0x3eacc9%0x2!=0x0?_0x254d92(0x135)+us(_0x45f4e9)+_0x254d92(0x132):us(_0x45f4e9))[_0x254d92(0x11a)](''),_0x27ac1f&&(_0x5c0d22+=_0x254d92(0x128)+_0x27ac1f[_0x254d92(0x139)]+_0x254d92(0xf5)+_0x27ac1f[_0x254d92(0x140)]+_0x254d92(0x113)),_0x5c0d22;}function us(_0x4e9d46){const _0x542d5b=_0x3d9c4b,_0x4b94bc=document[_0x542d5b(0xf1)](_0x542d5b(0x15b));return _0x4b94bc[_0x542d5b(0x112)]=_0x4e9d46,_0x4b94bc[_0x542d5b(0x133)];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x50ff75,_0x2bd196,_0x5ba194){const t=_0x50ff75['t'];switch(_0x2bd196){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',_0x5ba194);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5ba194);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5ba194);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5ba194);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5ba194);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',_0x5ba194);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5ba194);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',_0x5ba194);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5ba194);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5ba194);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5ba194);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5ba194);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5ba194);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5ba194);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5ba194);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5ba194);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5ba194);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5ba194);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5ba194);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5ba194);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5ba194);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5ba194);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5ba194);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'},_0x5ba194);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5ba194);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5ba194);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5ba194);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5ba194);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5ba194);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'},_0x5ba194);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5ba194);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5ba194);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5ba194);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5ba194);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'},_0x5ba194);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5ba194);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'},_0x5ba194);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'},_0x5ba194);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5ba194);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'},_0x5ba194);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5ba194);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'},_0x5ba194);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5ba194);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5ba194);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'},_0x5ba194);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'},_0x5ba194);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 _0x2bd196;}}
|
|
23
|
+
export function getTranslation(_0x5e27cd,_0x28146f,_0x3bbfe9){const t=_0x5e27cd['t'];switch(_0x28146f){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x3bbfe9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3bbfe9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3bbfe9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3bbfe9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3bbfe9);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x3bbfe9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3bbfe9);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3bbfe9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3bbfe9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3bbfe9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3bbfe9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3bbfe9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3bbfe9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3bbfe9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3bbfe9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3bbfe9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3bbfe9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3bbfe9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3bbfe9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3bbfe9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3bbfe9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3bbfe9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3bbfe9);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x3bbfe9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3bbfe9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3bbfe9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3bbfe9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3bbfe9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3bbfe9);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x3bbfe9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3bbfe9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3bbfe9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3bbfe9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3bbfe9);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3bbfe9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3bbfe9);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x3bbfe9);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3bbfe9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3bbfe9);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x3bbfe9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3bbfe9);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x3bbfe9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3bbfe9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3bbfe9);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3bbfe9);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3bbfe9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x28146f;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x352086,_0x3b3a53){const _0xd53113=_0x588c,_0x5bd8d2=_0x352086();while(!![]){try{const _0x3737a3=-parseInt(_0xd53113(0x191))/0x1*(-parseInt(_0xd53113(0x19e))/0x2)+parseInt(_0xd53113(0x1a7))/0x3+parseInt(_0xd53113(0x1b2))/0x4+-parseInt(_0xd53113(0x197))/0x5+parseInt(_0xd53113(0x1b1))/0x6+-parseInt(_0xd53113(0x192))/0x7*(parseInt(_0xd53113(0x1ad))/0x8)+parseInt(_0xd53113(0x199))/0x9;if(_0x3737a3===_0x3b3a53)break;else _0x5bd8d2['push'](_0x5bd8d2['shift']());}catch(_0x471689){_0x5bd8d2['push'](_0x5bd8d2['shift']());}}}(_0x4695,0x7703d));export function normalizeDescription(_0x598642){const _0x829158=_0x588c;return Array[_0x829158(0x1ae)](_0x598642)||(_0x598642=[_0x598642]),_0x598642[_0x829158(0x1a5)](_0x4b95ae=>{const _0x1e5138=_0x829158,_0x5f1b50=_0x4b95ae[_0x1e5138(0x1ac)][_0x1e5138(0x1a9)](/\*/g,''),_0x266373=_0x4b95ae[_0x1e5138(0x19d)]?_0x1e5138(0x1af)+_0x4b95ae[_0x1e5138(0x19d)][_0x1e5138(0x1b7)]+']':'';return'['+_0x4b95ae[_0x1e5138(0x1a4)]+']\x20'+_0x5f1b50+_0x266373;})[_0x829158(0x1aa)](';\x20');}export function sortSuggestions(_0x5289d8){const _0x4bbf2a=_0x588c;return _0x5289d8[_0x4bbf2a(0x19c)]((_0x276b05,_0x52d730)=>_0x4bbf2a(0x1a2)==_0x276b05[_0x4bbf2a(0x1a4)]&&_0x4bbf2a(0x1a2)!=_0x52d730[_0x4bbf2a(0x1a4)]?-0x1:_0x4bbf2a(0x1a2)!=_0x276b05[_0x4bbf2a(0x1a4)]&&_0x4bbf2a(0x1a2)==_0x52d730[_0x4bbf2a(0x1a4)]?0x1:0x0);}function _0x4695(){const _0x5cd29f=['sort','color','49482SIycBw','next','createPositionAfter','isTouching','deletion','splice','type','map','add','595347KKFsjM','length','replace','join','createPositionAt','content','6702440ttxTJk','isArray','\x20[color\x20','isInContent','10458bBRlcl','2203852zMRvsH','createPositionBefore','createRange','push','from','value','isObject','getRanges','end','23YLDtUd','7ccwmIu','change','isIntersecting','start','isCollapsed','2206690QbOxgQ','execute','4017870OuyOwX','schema','isMultiRange'];_0x4695=function(){return _0x5cd29f;};return _0x4695();}export function getSelectedSuggestions(_0x900419,_0x46d93b){const _0x1c5c68=_0x588c,_0x198a16=Array[_0x1c5c68(0x1b6)](_0x900419[_0x1c5c68(0x18f)]()),_0x8d01c4=new Set();for(const _0x20e5b2 of _0x46d93b)if(_0x20e5b2[_0x1c5c68(0x1b0)]){for(const _0x6ad55d of _0x198a16)for(const _0x1fe1c3 of _0x20e5b2[_0x1c5c68(0x18f)]())(_0x6ad55d[_0x1c5c68(0x194)](_0x1fe1c3)||_0x900419[_0x1c5c68(0x196)]&&!_0x20e5b2[_0x1c5c68(0x19b)]&&_0x20e5b2[_0x1c5c68(0x19f)]&&_0x1fe1c3[_0x1c5c68(0x190)][_0x1c5c68(0x1a1)](_0x6ad55d[_0x1c5c68(0x195)]))&&_0x8d01c4[_0x1c5c68(0x1a6)](_0x20e5b2);}return _0x8d01c4;}function _0x588c(_0x456dd9,_0x4b126c){const _0x469546=_0x4695();return _0x588c=function(_0x588cf0,_0x167290){_0x588cf0=_0x588cf0-0x18e;let _0x3e2898=_0x469546[_0x588cf0];return _0x3e2898;},_0x588c(_0x456dd9,_0x4b126c);}export function getRangesOfBlockGroups(_0x1a7809,_0x51b9b7){const _0x4f0de4=_0x588c;let _0x552ece,_0x287306=0x0;const _0x433662=[],_0x3bbfb2=_0x51b9b7[_0x4f0de4(0x19a)];for(;_0x287306<_0x1a7809[_0x4f0de4(0x1a8)];){const _0xe76931=_0x1a7809[_0x287306],_0x52884b=_0x1a7809[_0x287306+0x1];_0x552ece||(_0x552ece=_0x51b9b7[_0x4f0de4(0x1b3)](_0xe76931)),co(_0x51b9b7,_0xe76931,_0x52884b)||(_0x433662[_0x4f0de4(0x1b5)](_0x51b9b7[_0x4f0de4(0x1b4)](_0x552ece,_0x3bbfb2[_0x4f0de4(0x18e)](_0xe76931)?_0x51b9b7[_0x4f0de4(0x1a0)](_0xe76931):_0x51b9b7[_0x4f0de4(0x1ab)](_0xe76931,_0x4f0de4(0x190)))),_0x552ece=null),_0x287306++;}return _0x433662;}function co(_0x2f7930,_0x4a6cf8,_0x97408e){const _0x13eeda=_0x588c;if(!_0x97408e)return!0x1;const _0x4f7b11=_0x2f7930[_0x13eeda(0x1a0)](_0x4a6cf8),_0x57499f=_0x2f7930[_0x13eeda(0x1b3)](_0x97408e);return _0x4f7b11[_0x13eeda(0x1a1)](_0x57499f);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x308dfa,_0x219f17,_0x1b5901){const _0x3a31ec=_0x588c;for(;_0x1b5901[_0x3a31ec(0x1a8)];){const _0x10d52c=_0x1b5901[_0x3a31ec(0x1a3)](0x0,0x64);_0x308dfa[_0x3a31ec(0x193)](()=>{const _0xad8a1e=_0x3a31ec;for(const _0xed11e of _0x10d52c)_0xed11e[_0xad8a1e(0x1b0)]&&_0x219f17[_0xad8a1e(0x198)](_0xed11e['id']);});}}
|