@ckeditor/ckeditor5-track-changes 41.1.0 → 41.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/pt.js +1 -1
- package/lang/translations/he.po +1 -4
- package/lang/translations/pt.po +26 -26
- 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/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3a7a=['change:previous','isMultiRange','isOn','CommentsRepository','head','SuggestionThreadView','add','activeMarkers','pluginName','set','_destroyController','reduce','trackChanges.disableComments','_handleSuggestionControllerDelayed','_viewToController','addComment','change:activeAnnotations','addSourceCollector','arrowView','getDescriptions','getByInnerView','config','actionView','_descriptionFactory','comments.maxCommentCharsWhenCollapsed','commandName','_unbindEditors','acceptSelectedSuggestions','discardSelectedSuggestions','define','comments.maxCommentsWhenCollapsed','_handleControllerBuffer','from','suggestionChanged','delete','toMany','refreshSelectedViews','createAnnotation','isDirty','CommentsUI','source','some','map','getMarkerNames','hasSuggestion','button','has','switchbutton','TrackChangesUI','separator','get','locale','view','type','EditorAnnotations','trackChanges','requires','Annotations','descriptionParts','lowest','isEnabled','mainView','_annotationViews','_updateController','values','bind','getMarkers','focus','commands','remove','_disableComments','filter','plugins','push','_suggestionToController','comments.editorConfig','execute','keys','comments.maxThreadTotalWeight','suggestionUnloaded','TrackChangesEditing','model','destroy','init','buttonView','CommentView','innerView','_bindAnnotationToEditors','editing','suggestion-','length','Accept\x20all\x20suggestions','componentFactory','getSuggestion','listenTo','editor','getAllAdjacentSuggestions','_createUIButton','acceptAllSuggestions','discardButton','Track\x20changes','discardAllSuggestions','_initializeController','commentThread','_refreshActiveMarkers','previous','unbind','isInContent'];(function(_0x1b3201,_0x3a7a1f){const _0x29be40=function(_0x315f6a){while(--_0x315f6a){_0x1b3201['push'](_0x1b3201['shift']());}};_0x29be40(++_0x3a7a1f);}(_0x3a7a,0xd6));const _0x29be=function(_0x1b3201,_0x3a7a1f){_0x1b3201=_0x1b3201-0x0;let _0x29be40=_0x3a7a[_0x1b3201];return _0x29be40;};import{Plugin as _0x470474}from'ckeditor5/src/core.js';import{Collection as _0x7785c2}from'ckeditor5/src/utils.js';import{ViewModel as _0x3c9101,SplitButtonView as _0x4af605,createDropdown as _0x3b2050,addListToDropdown as _0x5987b6}from'ckeditor5/src/ui.js';import{Users as _0x3676b2,getDateTimeFormatter as _0x48e4f4,getAllMarkersDomElementsSorted as _0x59498f}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x58a528 from'./trackchangesediting.js';import _0x4a5f4b from'./ui/suggestioncontroller.js';import _0x523fb8 from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x3a6d50}from'./utils/common-translations.js';import _0x5bc7b5 from'../theme/icons/track-changes.svg';export default class d extends _0x470474{static get[_0x29be('0x3a')](){return[_0x58a528,_0x3676b2,_0x29be('0x5'),'Annotations',_0x29be('0x38')];}static get[_0x29be('0xa')](){return _0x29be('0x32');}constructor(_0x36a27d){super(_0x36a27d),this[_0x29be('0x4c')]=new Map(),this['_viewToController']=new Map(),this[_0x29be('0x40')]=new Map(),this[_0x29be('0x21')]=new Map();const _0x50562b=this[_0x29be('0x61')][_0x29be('0x17')];_0x50562b[_0x29be('0x1f')]('trackChanges.SuggestionThreadView',_0x523fb8),_0x50562b[_0x29be('0x1f')]('trackChanges.disableComments',!0x1),this[_0x29be('0x48')]=_0x50562b['get'](_0x29be('0xe'));}[_0x29be('0xf')](_0x5f3961,_0x1df2f7){0x0===this[_0x29be('0x21')]['size']&&setTimeout(()=>{for(const [_0x8e6d5d,_0x49be2a]of this[_0x29be('0x21')]){const _0x325bfa=this['_suggestionToController'][_0x29be('0x30')](_0x8e6d5d);_0x325bfa||_0x49be2a?_0x325bfa&&_0x49be2a&&this['_destroyController'](_0x8e6d5d):this['_initializeController'](_0x8e6d5d);}this[_0x29be('0x21')]['clear'](),this['editor']['plugins'][_0x29be('0x34')](_0x29be('0x38'))[_0x29be('0x26')](),this[_0x29be('0x6a')]();},0xa),this[_0x29be('0x21')]['set'](_0x5f3961,_0x1df2f7);}[_0x29be('0x55')](){const _0x5c2c2f=this[_0x29be('0x61')],_0x299994=_0x5c2c2f['plugins']['get'](_0x29be('0x52')),_0x4b1551=_0x5c2c2f[_0x29be('0x4a')]['get'](_0x29be('0x3b')),_0x566553=_0x5c2c2f[_0x29be('0x4a')][_0x29be('0x34')](_0x29be('0x38')),_0x43a47b=_0x5c2c2f[_0x29be('0x4a')][_0x29be('0x34')](_0x29be('0x5'));_0x5c2c2f['ui'][_0x29be('0x5e')][_0x29be('0x8')](_0x29be('0x39'),_0x3924d2=>this[_0x29be('0x63')](_0x3924d2)),_0x566553[_0x29be('0x13')](()=>{const _0x24c95e=[];for(const [_0x1b8c1e,_0x1d8c57]of Array[_0x29be('0x22')](this[_0x29be('0x4c')])){const _0x13f90a=_0x1b8c1e[_0x29be('0x62')](),_0x36274a=[];for(const _0xf7051e of _0x13f90a){if(!_0xf7051e[_0x29be('0x1')])continue;if(_0xf7051e[_0x29be('0x3')]){_0x36274a['push'](..._0xf7051e['getRanges']());continue;}const _0x2708f4=_0xf7051e['getFirstRange']();if(_0x36274a[_0x29be('0x5c')]>0x0){const _0x48188e=_0x36274a[0x0]['getJoined'](_0x2708f4);if(_0x48188e){_0x36274a[0x0]=_0x48188e;continue;}}_0x36274a[_0x29be('0x4b')](_0x2708f4);}_0x24c95e[_0x29be('0x4b')]([_0x1d8c57['view'],_0x36274a]);}return _0x24c95e;}),this['listenTo'](_0x299994,'suggestionLoaded',(_0x557be2,_0x16c86c)=>{this['listenTo'](_0x16c86c,_0x29be('0x2'),(_0x6410c0,_0x3ae292,_0x34f049,_0x589928)=>{_0x16c86c['isInContent']&&(null==_0x34f049?(this[_0x29be('0x41')](_0x589928[_0x29be('0x6')]),this[_0x29be('0xf')](_0x16c86c,!0x1)):(this[_0x29be('0x41')](_0x34f049[_0x29be('0x6')]),null==_0x589928&&this['_handleSuggestionControllerDelayed'](_0x16c86c,!0x0)));}),null!==_0x16c86c[_0x29be('0x6b')]?this[_0x29be('0x41')](_0x16c86c[_0x29be('0x6')]):this['_handleSuggestionControllerDelayed'](_0x16c86c,!0x1);}),this[_0x29be('0x60')](_0x299994,_0x29be('0x51'),(_0x303c9c,_0x8be510,_0x2c85fa)=>{this['stopListening'](_0x8be510,_0x29be('0x2')),this['_handleControllerBuffer'][_0x29be('0x24')](_0x8be510),this[_0x29be('0x4c')][_0x29be('0x30')](_0x8be510)&&this['_destroyController'](_0x8be510),_0x2c85fa&&this[_0x29be('0x41')](_0x2c85fa[_0x29be('0x6')]);}),this['listenTo'](_0x299994,_0x29be('0x23'),(_0x45d26d,_0x1767fd)=>{this[_0x29be('0x41')](_0x1767fd);}),this[_0x29be('0x60')](_0x4b1551,_0x29be('0x12'),()=>{this[_0x29be('0x6a')]();}),this[_0x29be('0x60')](_0x43a47b,_0x29be('0x11'),(_0x439da9,{threadId:_0x5f1926,isFromAdapter:_0x13f723})=>{if(_0x13f723||!_0x299994[_0x29be('0x2e')](_0x5f1926))return;const _0x9063e4=_0x299994[_0x29be('0x5f')](_0x5f1926);this[_0x29be('0x4c')][_0x29be('0x34')](_0x9063e4)[_0x29be('0x36')][_0x29be('0x45')]();},{'priority':_0x29be('0x3d')});}[_0x29be('0x6a')](){const _0x14fea7=this['editor'][_0x29be('0x4a')]['get']('Annotations'),_0x543fbb=this['editor'][_0x29be('0x4a')][_0x29be('0x34')](_0x29be('0x52')),_0x4f32fa=Array['from'](_0x14fea7['activeAnnotations'],_0x109112=>_0x109112[_0x29be('0x58')])[_0x29be('0x49')](_0x5c2b94=>this[_0x29be('0x10')][_0x29be('0x30')](_0x5c2b94)),_0x2f1532=[];for(const _0x477a40 of _0x4f32fa){const _0x1de1e7=this[_0x29be('0x10')][_0x29be('0x34')](_0x477a40)['model']['getAllAdjacentSuggestions']();_0x2f1532['push'](..._0x1de1e7[_0x29be('0xd')]((_0x2a0a01,_0x37d62f)=>[..._0x2a0a01,..._0x37d62f[_0x29be('0x2d')]()],[]));}_0x543fbb[_0x29be('0x9')]=_0x2f1532;}[_0x29be('0x63')](_0x109c88){const _0x39e003=_0x3b2050(_0x109c88,_0x4af605),_0x1718bf=this[_0x29be('0x61')][_0x29be('0x46')][_0x29be('0x34')](_0x29be('0x39')),_0x4a8bf6=_0x3a6d50(_0x109c88,_0x29be('0x66'));_0x39e003[_0x29be('0x56')]['set']({'tooltip':_0x4a8bf6,'label':_0x4a8bf6,'icon':_0x5bc7b5}),_0x39e003[_0x29be('0x56')]['bind'](_0x29be('0x4'))['to'](_0x1718bf,'value'),_0x39e003[_0x29be('0x56')]['on'](_0x29be('0x4e'),()=>{_0x1718bf['execute'](),this[_0x29be('0x61')]['editing']['view'][_0x29be('0x45')]();});const _0x25a1fe=new _0x7785c2(),_0x5bec6d=[{'type':_0x29be('0x31'),'model':{'withText':!0x0,'label':_0x4a8bf6,'commandName':_0x29be('0x39')}},{'type':'separator'},{'type':_0x29be('0x2f'),'model':{'withText':!0x0,'label':_0x3a6d50(_0x109c88,_0x29be('0x5d')),'commandName':_0x29be('0x64')}},{'type':_0x29be('0x2f'),'model':{'withText':!0x0,'label':_0x3a6d50(_0x109c88,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x29be('0x1d')}},{'type':_0x29be('0x2f'),'model':{'withText':!0x0,'label':_0x3a6d50(_0x109c88,'Discard\x20all\x20suggestions'),'commandName':_0x29be('0x67')}},{'type':_0x29be('0x2f'),'model':{'withText':!0x0,'label':_0x3a6d50(_0x109c88,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x29be('0x1e')}}];for(const _0xb79a13 of _0x5bec6d){let _0x22b190={'type':_0x29be('0x33')};if(_0xb79a13['model']){const _0x2780c2=new _0x3c9101(_0xb79a13[_0x29be('0x53')]),_0x248431=this['editor']['commands'][_0x29be('0x34')](_0x2780c2[_0x29be('0x1b')]);_0x2780c2['bind'](_0x29be('0x4'),_0x29be('0x3e'))['to'](_0x248431,'value',_0x29be('0x3e')),_0x22b190={'type':_0xb79a13[_0x29be('0x37')],'model':_0x2780c2};}_0x25a1fe[_0x29be('0x8')](_0x22b190);}_0x5987b6(_0x39e003,_0x25a1fe);const _0x56c945=_0x5bec6d[_0x29be('0x49')](_0x3ecade=>null!=_0x3ecade[_0x29be('0x53')])[_0x29be('0x2c')](_0x28bfe7=>this[_0x29be('0x61')]['commands'][_0x29be('0x34')](_0x28bfe7[_0x29be('0x53')][_0x29be('0x1b')])),_0x4a1f79=_0x39e003[_0x29be('0x56')];return _0x4a1f79[_0x29be('0x18')][_0x29be('0x0')]('isEnabled'),_0x4a1f79[_0x29be('0x14')][_0x29be('0x0')]('isEnabled'),_0x4a1f79[_0x29be('0x18')][_0x29be('0x43')](_0x29be('0x3e'))['to'](_0x1718bf,_0x29be('0x3e')),_0x4a1f79['arrowView'][_0x29be('0x43')](_0x29be('0x3e'))[_0x29be('0x25')](_0x56c945,_0x29be('0x3e'),(..._0x14c8cc)=>_0x14c8cc[_0x29be('0x2b')](_0x5eee0e=>_0x5eee0e)),_0x39e003['on'](_0x29be('0x4e'),_0x5750ab=>{this[_0x29be('0x61')][_0x29be('0x4e')](_0x5750ab[_0x29be('0x2a')][_0x29be('0x1b')]),this[_0x29be('0x61')][_0x29be('0x5a')]['view'][_0x29be('0x45')]();}),_0x39e003;}[_0x29be('0x68')](_0x3d0018){const _0x53f59c=this[_0x29be('0x61')],_0x4be2a6=_0x53f59c['config'],_0xb07dd1=_0x53f59c[_0x29be('0x4a')][_0x29be('0x34')](_0x29be('0x3b')),_0x5787cf=_0x53f59c[_0x29be('0x4a')][_0x29be('0x34')](_0x29be('0x5')),_0x22ef3d=_0x53f59c[_0x29be('0x4a')][_0x29be('0x34')](_0x29be('0x38')),_0x26427a=_0x53f59c[_0x29be('0x4a')]['get'](_0x3676b2)['me'],_0x3e4360=_0x4be2a6[_0x29be('0x34')](_0x29be('0x39'))[_0x29be('0x7')],{CommentsListView:_0xde370b,CommentThreadInputView:_0x5971cc}=_0x53f59c[_0x29be('0x4a')]['get'](_0x29be('0x29'));let _0x6f778d,_0x368bca;this[_0x29be('0x40')][_0x29be('0x30')](_0x3d0018['id'])?(_0x368bca=this[_0x29be('0x40')][_0x29be('0x34')](_0x3d0018['id']),_0x6f778d=_0x368bca[_0x29be('0x3f')]):(_0x6f778d=new _0x3e4360(_0x53f59c[_0x29be('0x35')],_0x3d0018,_0x26427a,{'disableComments':this[_0x29be('0x48')],'editorConfig':_0x4be2a6[_0x29be('0x34')](_0x29be('0x4d')),'maxCommentsWhenCollapsed':_0x4be2a6['get'](_0x29be('0x20')),'maxThreadTotalWeight':_0x4be2a6['get'](_0x29be('0x50')),'maxCommentCharsWhenCollapsed':_0x4be2a6[_0x29be('0x34')](_0x29be('0x1a')),'formatDateTime':_0x48e4f4(_0x4be2a6[_0x29be('0x34')](_0x29be('0x35'))),'CommentView':_0x4be2a6[_0x29be('0x34')]('comments')[_0x29be('0x57')],'CommentsListView':_0xde370b,'CommentThreadInputView':_0x5971cc}),_0x6f778d['acceptButton']['on']('execute',()=>{_0x53f59c[_0x29be('0x5a')]['view'][_0x29be('0x45')]();}),_0x6f778d[_0x29be('0x65')]['on']('execute',()=>{_0x53f59c[_0x29be('0x5a')]['view'][_0x29be('0x45')]();}),_0x368bca=_0xb07dd1['createAnnotationView'](this['editor'][_0x29be('0x35')],_0x6f778d),_0x368bca[_0x29be('0x43')](_0x29be('0x28'))['to'](_0x6f778d,_0x29be('0x28')),_0x368bca['bind']('length')['to'](_0x6f778d),_0x368bca[_0x29be('0x43')]('type')['to'](_0x6f778d,_0x29be('0x37'),_0x4b6d23=>_0x29be('0x5b')+_0x4b6d23),this[_0x29be('0x40')][_0x29be('0xb')](_0x3d0018['id'],_0x368bca));const _0x2860a2=_0x5787cf['createCommentThreadController'](_0x3d0018[_0x29be('0x69')],_0x6f778d),_0x44176d=new _0x4a5f4b(_0x53f59c,_0x3d0018,_0x6f778d,_0x2860a2),_0x36e44a=_0x3d0018[_0x29be('0x62')]()['filter'](_0x10eb78=>_0x10eb78[_0x29be('0x1')]);_0x6f778d['descriptionParts']=_0x53f59c['plugins'][_0x29be('0x34')]('TrackChangesEditing')[_0x29be('0x19')][_0x29be('0x15')](_0x36e44a),this[_0x29be('0x4c')][_0x29be('0xb')](_0x3d0018,_0x44176d),this[_0x29be('0x10')][_0x29be('0xb')](_0x6f778d,_0x44176d);const _0x213293=_0xb07dd1[_0x29be('0x27')]({'view':_0x368bca,'target':()=>{const _0x206694=[],_0x23249d=_0x3d0018[_0x29be('0x62')]()[_0x29be('0x49')](_0x929142=>_0x929142[_0x29be('0x1')]);for(const _0x11261e of _0x23249d)_0x206694[_0x29be('0x4b')](..._0x11261e[_0x29be('0x44')]());return _0x59498f(_0x53f59c[_0x29be('0x5a')],_0x206694);},'type':()=>'suggestion-'+_0x44176d[_0x29be('0x36')][_0x29be('0x37')]});_0x5787cf[_0x29be('0x59')](_0x6f778d,_0x213293),_0xb07dd1['add'](_0x213293),_0x22ef3d['registerAnnotation'](_0x213293);}['_destroyController'](_0x11b9fa){const _0x2c8b2b=this['editor'][_0x29be('0x4a')][_0x29be('0x34')](_0x29be('0x5')),_0x501655=this[_0x29be('0x61')][_0x29be('0x4a')][_0x29be('0x34')](_0x29be('0x3b')),_0x30d816=this[_0x29be('0x4c')][_0x29be('0x34')](_0x11b9fa),_0x47c4bd=_0x30d816[_0x29be('0x36')],_0x529c4c=_0x501655[_0x29be('0x16')](_0x47c4bd);_0x2c8b2b[_0x29be('0x1c')](_0x47c4bd),_0x529c4c&&_0x501655[_0x29be('0x47')](_0x529c4c),this[_0x29be('0x4c')]['delete'](_0x11b9fa),this[_0x29be('0x10')]['delete'](_0x47c4bd),_0x30d816['destroy']();}['_updateController'](_0xfc6e82){if(!_0xfc6e82[_0x29be('0x1')]||!this['_suggestionToController']['has'](_0xfc6e82))return;const _0x558b14=this[_0x29be('0x61')]['plugins'][_0x29be('0x34')]('TrackChangesEditing'),_0x2cfe7c=this[_0x29be('0x4c')][_0x29be('0x34')](_0xfc6e82),_0x44cab3=_0xfc6e82['getAllAdjacentSuggestions']();_0x2cfe7c['view'][_0x29be('0x3c')]=_0x558b14[_0x29be('0x19')][_0x29be('0x15')](_0x44cab3);}[_0x29be('0x54')](){for(const _0xcda0f6 of this['_suggestionToController'][_0x29be('0x4f')]())this[_0x29be('0xc')](_0xcda0f6);for(const _0x331072 of this[_0x29be('0x40')][_0x29be('0x42')]())_0x331072[_0x29be('0x3f')][_0x29be('0x54')]();super[_0x29be('0x54')]();}}
|
|
23
|
+
const _0x2ac222=_0x5cf4;(function(_0x289c18,_0x16cb5d){const _0x5a216e=_0x5cf4,_0x577092=_0x289c18();while(!![]){try{const _0x33aa34=-parseInt(_0x5a216e(0xa4))/0x1+parseInt(_0x5a216e(0xcb))/0x2*(-parseInt(_0x5a216e(0x92))/0x3)+parseInt(_0x5a216e(0x8f))/0x4*(-parseInt(_0x5a216e(0xdc))/0x5)+-parseInt(_0x5a216e(0xe8))/0x6+-parseInt(_0x5a216e(0xd6))/0x7+-parseInt(_0x5a216e(0x7d))/0x8+parseInt(_0x5a216e(0xc5))/0x9;if(_0x33aa34===_0x16cb5d)break;else _0x577092['push'](_0x577092['shift']());}catch(_0x3e360f){_0x577092['push'](_0x577092['shift']());}}}(_0x167a,0x8cc73));import{Plugin as _0x142847}from'ckeditor5/src/core.js';import{Collection as _0x4fbb42}from'ckeditor5/src/utils.js';import{ViewModel as _0x3d0307,SplitButtonView as _0x478095,createDropdown as _0x428b1e,addListToDropdown as _0x32d1d0}from'ckeditor5/src/ui.js';function _0x5cf4(_0x4ffc7f,_0x2571ba){const _0x167a4c=_0x167a();return _0x5cf4=function(_0x5cf4a0,_0x54bfb6){_0x5cf4a0=_0x5cf4a0-0x69;let _0x1d55a2=_0x167a4c[_0x5cf4a0];return _0x1d55a2;},_0x5cf4(_0x4ffc7f,_0x2571ba);}import{Users as _0x6a439f,getDateTimeFormatter as _0x2396e2,getAllMarkersDomElementsSorted as _0x100e05}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x220d90 from'./trackchangesediting.js';import _0x2dac2b from'./ui/suggestioncontroller.js';import _0x59a3fd from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x37fc14}from'./utils/common-translations.js';import _0x357b95 from'../theme/icons/track-changes.svg';export default class d extends _0x142847{static get[_0x2ac222(0x72)](){const _0x1e2df2=_0x2ac222;return[_0x220d90,_0x6a439f,_0x1e2df2(0xb8),_0x1e2df2(0x7e),_0x1e2df2(0x6c)];}static get[_0x2ac222(0x9c)](){const _0xee0c8e=_0x2ac222;return _0xee0c8e(0xb9);}constructor(_0x35b45f){const _0x508bd2=_0x2ac222;super(_0x35b45f),this[_0x508bd2(0x6b)]=new Map(),this[_0x508bd2(0x8c)]=new Map(),this[_0x508bd2(0x82)]=new Map(),this[_0x508bd2(0x83)]=new Map();const _0x4034bc=this[_0x508bd2(0xbf)][_0x508bd2(0xdd)];_0x4034bc[_0x508bd2(0x9b)](_0x508bd2(0xea),_0x59a3fd),_0x4034bc[_0x508bd2(0x9b)](_0x508bd2(0xc9),!0x1),this[_0x508bd2(0x93)]=_0x4034bc[_0x508bd2(0xb2)](_0x508bd2(0xc9));}[_0x2ac222(0xe6)](_0x69e8c,_0x45bf2d){const _0x3fdeba=_0x2ac222;0x0===this[_0x3fdeba(0x83)][_0x3fdeba(0xc2)]&&setTimeout(()=>{const _0x4159ca=_0x3fdeba;for(const [_0x31f282,_0x4d3df4]of this[_0x4159ca(0x83)]){const _0x5b2490=this[_0x4159ca(0x6b)][_0x4159ca(0x6a)](_0x31f282);_0x5b2490||_0x4d3df4?_0x5b2490&&_0x4d3df4&&this[_0x4159ca(0xb3)](_0x31f282):this[_0x4159ca(0xe2)](_0x31f282);}this[_0x4159ca(0x83)][_0x4159ca(0xd0)](),this[_0x4159ca(0xbf)][_0x4159ca(0xac)][_0x4159ca(0xb2)](_0x4159ca(0x6c))[_0x4159ca(0x80)](),this[_0x4159ca(0xd1)]();},0xa),this[_0x3fdeba(0x83)][_0x3fdeba(0xa5)](_0x69e8c,_0x45bf2d);}[_0x2ac222(0x6d)](){const _0x2c79b0=_0x2ac222,_0x5a5d4d=this[_0x2c79b0(0xbf)],_0x301a38=_0x5a5d4d[_0x2c79b0(0xac)][_0x2c79b0(0xb2)](_0x2c79b0(0x94)),_0x25ba77=_0x5a5d4d[_0x2c79b0(0xac)][_0x2c79b0(0xb2)](_0x2c79b0(0x7e)),_0x3a63f9=_0x5a5d4d[_0x2c79b0(0xac)][_0x2c79b0(0xb2)](_0x2c79b0(0x6c)),_0x5ef773=_0x5a5d4d[_0x2c79b0(0xac)][_0x2c79b0(0xb2)](_0x2c79b0(0xb8));_0x5a5d4d['ui'][_0x2c79b0(0xc4)][_0x2c79b0(0x99)](_0x2c79b0(0xce),_0x576d40=>this[_0x2c79b0(0x9e)](_0x576d40)),_0x3a63f9[_0x2c79b0(0x7b)](()=>{const _0x14d3d7=_0x2c79b0,_0x1e63d4=[];for(const [_0x2e7739,_0x20c92f]of Array[_0x14d3d7(0xed)](this[_0x14d3d7(0x6b)])){const _0x392d84=_0x2e7739[_0x14d3d7(0xef)](),_0x670960=[];for(const _0x57b1e8 of _0x392d84){if(!_0x57b1e8[_0x14d3d7(0x73)])continue;if(_0x57b1e8[_0x14d3d7(0xb6)]){_0x670960[_0x14d3d7(0xe1)](..._0x57b1e8[_0x14d3d7(0xa0)]());continue;}const _0x4d4246=_0x57b1e8[_0x14d3d7(0x8e)]();if(_0x670960[_0x14d3d7(0xb0)]>0x0){const _0xd2a1a1=_0x670960[0x0][_0x14d3d7(0xdf)](_0x4d4246);if(_0xd2a1a1){_0x670960[0x0]=_0xd2a1a1;continue;}}_0x670960[_0x14d3d7(0xe1)](_0x4d4246);}_0x1e63d4[_0x14d3d7(0xe1)]([_0x20c92f[_0x14d3d7(0xbb)],_0x670960]);}return _0x1e63d4;}),this[_0x2c79b0(0xb4)](_0x301a38,_0x2c79b0(0xb5),(_0x4aa35e,_0x10df38)=>{const _0x203d40=_0x2c79b0;this[_0x203d40(0xb4)](_0x10df38,_0x203d40(0xc8),(_0x1f71df,_0xb8314a,_0x545ca9,_0x5d05d5)=>{const _0x14418f=_0x203d40;_0x10df38[_0x14418f(0x73)]&&(null==_0x545ca9?(this[_0x14418f(0xab)](_0x5d05d5[_0x14418f(0xde)]),this[_0x14418f(0xe6)](_0x10df38,!0x1)):(this[_0x14418f(0xab)](_0x545ca9[_0x14418f(0xde)]),null==_0x5d05d5&&this[_0x14418f(0xe6)](_0x10df38,!0x0)));}),null!==_0x10df38[_0x203d40(0x76)]?this[_0x203d40(0xab)](_0x10df38[_0x203d40(0xde)]):this[_0x203d40(0xe6)](_0x10df38,!0x1);}),this[_0x2c79b0(0xb4)](_0x301a38,_0x2c79b0(0xda),(_0x4a4464,_0x21aabd,_0xbef328)=>{const _0x397ecc=_0x2c79b0;this[_0x397ecc(0x96)](_0x21aabd,_0x397ecc(0xc8)),this[_0x397ecc(0x83)][_0x397ecc(0xc0)](_0x21aabd),this[_0x397ecc(0x6b)][_0x397ecc(0x6a)](_0x21aabd)&&this[_0x397ecc(0xb3)](_0x21aabd),_0xbef328&&this[_0x397ecc(0xab)](_0xbef328[_0x397ecc(0xde)]);}),this[_0x2c79b0(0xb4)](_0x301a38,_0x2c79b0(0xc7),(_0x5e39d5,_0x540450)=>{const _0x36e572=_0x2c79b0;this[_0x36e572(0xab)](_0x540450);}),this[_0x2c79b0(0xb4)](_0x25ba77,_0x2c79b0(0xe4),()=>{const _0x5b5d80=_0x2c79b0;this[_0x5b5d80(0xd1)]();}),this[_0x2c79b0(0xb4)](_0x5ef773,_0x2c79b0(0x6e),(_0x30076b,{threadId:_0x5afcb4,isFromAdapter:_0x79297a})=>{const _0x4876b6=_0x2c79b0;if(_0x79297a||!_0x301a38[_0x4876b6(0xd2)](_0x5afcb4))return;const _0x2992dd=_0x301a38[_0x4876b6(0xb1)](_0x5afcb4);this[_0x4876b6(0x6b)][_0x4876b6(0xb2)](_0x2992dd)[_0x4876b6(0xbb)][_0x4876b6(0xca)]();},{'priority':_0x2c79b0(0x85)});}[_0x2ac222(0xd1)](){const _0x1dcf7f=_0x2ac222,_0x14ddb6=this[_0x1dcf7f(0xbf)][_0x1dcf7f(0xac)][_0x1dcf7f(0xb2)](_0x1dcf7f(0x7e)),_0x163b50=this[_0x1dcf7f(0xbf)][_0x1dcf7f(0xac)][_0x1dcf7f(0xb2)](_0x1dcf7f(0x94)),_0x244da4=Array[_0x1dcf7f(0xed)](_0x14ddb6[_0x1dcf7f(0x9d)],_0x11cde8=>_0x11cde8[_0x1dcf7f(0x8a)])[_0x1dcf7f(0x7f)](_0x4869c6=>this[_0x1dcf7f(0x8c)][_0x1dcf7f(0x6a)](_0x4869c6)),_0x472f5a=[];for(const _0x3dcab2 of _0x244da4){const _0x5e0656=this[_0x1dcf7f(0x8c)][_0x1dcf7f(0xb2)](_0x3dcab2)[_0x1dcf7f(0xe3)][_0x1dcf7f(0xef)]();_0x472f5a[_0x1dcf7f(0xe1)](..._0x5e0656[_0x1dcf7f(0xee)]((_0x29f4b9,_0x2f4ae4)=>[..._0x29f4b9,..._0x2f4ae4[_0x1dcf7f(0xaa)]()],[]));}_0x163b50[_0x1dcf7f(0x8b)]=_0x472f5a;}[_0x2ac222(0x9e)](_0x24cada){const _0x30db7b=_0x2ac222,_0x499eb6=_0x428b1e(_0x24cada,_0x478095),_0x49463f=this[_0x30db7b(0xbf)][_0x30db7b(0x97)][_0x30db7b(0xb2)](_0x30db7b(0xce)),_0x49bd18=_0x37fc14(_0x24cada,_0x30db7b(0xbc));_0x499eb6[_0x30db7b(0xba)][_0x30db7b(0xa5)]({'tooltip':_0x49bd18,'label':_0x49bd18,'icon':_0x357b95}),_0x499eb6[_0x30db7b(0xba)][_0x30db7b(0x77)](_0x30db7b(0xa3))['to'](_0x49463f,_0x30db7b(0xe9)),_0x499eb6[_0x30db7b(0xba)]['on'](_0x30db7b(0xad),()=>{const _0x4f21d9=_0x30db7b;_0x49463f[_0x4f21d9(0xad)](),this[_0x4f21d9(0xbf)][_0x4f21d9(0xae)][_0x4f21d9(0xbb)][_0x4f21d9(0xca)]();});const _0x1183b0=new _0x4fbb42(),_0x4e0246=[{'type':_0x30db7b(0x88),'model':{'withText':!0x0,'label':_0x49bd18,'commandName':_0x30db7b(0xce)}},{'type':_0x30db7b(0xd9)},{'type':_0x30db7b(0x78),'model':{'withText':!0x0,'label':_0x37fc14(_0x24cada,_0x30db7b(0x90)),'commandName':_0x30db7b(0xd5)}},{'type':_0x30db7b(0x78),'model':{'withText':!0x0,'label':_0x37fc14(_0x24cada,_0x30db7b(0x81)),'commandName':_0x30db7b(0x7a)}},{'type':_0x30db7b(0x78),'model':{'withText':!0x0,'label':_0x37fc14(_0x24cada,_0x30db7b(0x70)),'commandName':_0x30db7b(0x71)}},{'type':_0x30db7b(0x78),'model':{'withText':!0x0,'label':_0x37fc14(_0x24cada,_0x30db7b(0xd8)),'commandName':_0x30db7b(0xcd)}}];for(const _0x1905fc of _0x4e0246){let _0x536dc4={'type':_0x30db7b(0xd9)};if(_0x1905fc[_0x30db7b(0xe3)]){const _0x1742e7=new _0x3d0307(_0x1905fc[_0x30db7b(0xe3)]),_0x26c361=this[_0x30db7b(0xbf)][_0x30db7b(0x97)][_0x30db7b(0xb2)](_0x1742e7[_0x30db7b(0x74)]);_0x1742e7[_0x30db7b(0x77)](_0x30db7b(0xa3),_0x30db7b(0xd3))['to'](_0x26c361,_0x30db7b(0xe9),_0x30db7b(0xd3)),_0x536dc4={'type':_0x1905fc[_0x30db7b(0xa6)],'model':_0x1742e7};}_0x1183b0[_0x30db7b(0x99)](_0x536dc4);}_0x32d1d0(_0x499eb6,_0x1183b0);const _0x4fd8cb=_0x4e0246[_0x30db7b(0x7f)](_0xb6beed=>null!=_0xb6beed[_0x30db7b(0xe3)])[_0x30db7b(0x69)](_0x419d95=>this[_0x30db7b(0xbf)][_0x30db7b(0x97)][_0x30db7b(0xb2)](_0x419d95[_0x30db7b(0xe3)][_0x30db7b(0x74)])),_0x560b83=_0x499eb6[_0x30db7b(0xba)];return _0x560b83[_0x30db7b(0x86)][_0x30db7b(0xaf)](_0x30db7b(0xd3)),_0x560b83[_0x30db7b(0xc3)][_0x30db7b(0xaf)](_0x30db7b(0xd3)),_0x560b83[_0x30db7b(0x86)][_0x30db7b(0x77)](_0x30db7b(0xd3))['to'](_0x49463f,_0x30db7b(0xd3)),_0x560b83[_0x30db7b(0xc3)][_0x30db7b(0x77)](_0x30db7b(0xd3))[_0x30db7b(0xbe)](_0x4fd8cb,_0x30db7b(0xd3),(..._0x6fa20c)=>_0x6fa20c[_0x30db7b(0xa9)](_0x58a31d=>_0x58a31d)),_0x499eb6['on'](_0x30db7b(0xad),_0x30d5ba=>{const _0x4547e0=_0x30db7b;this[_0x4547e0(0xbf)][_0x4547e0(0xad)](_0x30d5ba[_0x4547e0(0x7c)][_0x4547e0(0x74)]),this[_0x4547e0(0xbf)][_0x4547e0(0xae)][_0x4547e0(0xbb)][_0x4547e0(0xca)]();}),_0x499eb6;}[_0x2ac222(0xe2)](_0xa6dcf4){const _0x3eb174=_0x2ac222,_0x2debab=this[_0x3eb174(0xbf)],_0x4ca866=_0x2debab[_0x3eb174(0xdd)],_0x13007a=_0x2debab[_0x3eb174(0xac)][_0x3eb174(0xb2)](_0x3eb174(0x7e)),_0x19d087=_0x2debab[_0x3eb174(0xac)][_0x3eb174(0xb2)](_0x3eb174(0xb8)),_0x51f29f=_0x2debab[_0x3eb174(0xac)][_0x3eb174(0xb2)](_0x3eb174(0x6c)),_0xb2007b=_0x2debab[_0x3eb174(0xac)][_0x3eb174(0xb2)](_0x6a439f)['me'],_0x2c385f=_0x4ca866[_0x3eb174(0xb2)](_0x3eb174(0xce))[_0x3eb174(0xbd)],{CommentsListView:_0xe1d41e,CommentThreadInputView:_0x2a8b31}=_0x2debab[_0x3eb174(0xac)][_0x3eb174(0xb2)](_0x3eb174(0x95));let _0x5b5208,_0x3e06d2;this[_0x3eb174(0x82)][_0x3eb174(0x6a)](_0xa6dcf4['id'])?(_0x3e06d2=this[_0x3eb174(0x82)][_0x3eb174(0xb2)](_0xa6dcf4['id']),_0x5b5208=_0x3e06d2[_0x3eb174(0x9a)]):(_0x5b5208=new _0x2c385f(_0x2debab[_0x3eb174(0x91)],_0xa6dcf4,_0xb2007b,{'disableComments':this[_0x3eb174(0x93)],'editorConfig':_0x4ca866[_0x3eb174(0xb2)](_0x3eb174(0xb7)),'maxCommentsWhenCollapsed':_0x4ca866[_0x3eb174(0xb2)](_0x3eb174(0x9f)),'maxThreadTotalWeight':_0x4ca866[_0x3eb174(0xb2)](_0x3eb174(0x89)),'maxCommentCharsWhenCollapsed':_0x4ca866[_0x3eb174(0xb2)](_0x3eb174(0xe0)),'formatDateTime':_0x2396e2(_0x4ca866[_0x3eb174(0xb2)](_0x3eb174(0x91))),'CommentView':_0x4ca866[_0x3eb174(0xb2)](_0x3eb174(0x87))[_0x3eb174(0xe5)],'CommentsListView':_0xe1d41e,'CommentThreadInputView':_0x2a8b31}),_0x5b5208[_0x3eb174(0xa1)]['on'](_0x3eb174(0xad),()=>{const _0x24e817=_0x3eb174;_0x2debab[_0x24e817(0xae)][_0x24e817(0xbb)][_0x24e817(0xca)]();}),_0x5b5208[_0x3eb174(0x6f)]['on'](_0x3eb174(0xad),()=>{const _0x182624=_0x3eb174;_0x2debab[_0x182624(0xae)][_0x182624(0xbb)][_0x182624(0xca)]();}),_0x3e06d2=_0x13007a[_0x3eb174(0xa2)](this[_0x3eb174(0xbf)][_0x3eb174(0x91)],_0x5b5208),_0x3e06d2[_0x3eb174(0x77)](_0x3eb174(0xdb))['to'](_0x5b5208,_0x3eb174(0xdb)),_0x3e06d2[_0x3eb174(0x77)](_0x3eb174(0xb0))['to'](_0x5b5208),_0x3e06d2[_0x3eb174(0x77)](_0x3eb174(0xa6))['to'](_0x5b5208,_0x3eb174(0xa6),_0x3d72b4=>_0x3eb174(0xc6)+_0x3d72b4),this[_0x3eb174(0x82)][_0x3eb174(0xa5)](_0xa6dcf4['id'],_0x3e06d2));const _0x3fda7c=_0x19d087[_0x3eb174(0xeb)](_0xa6dcf4[_0x3eb174(0x8d)],_0x5b5208),_0x3e0cd2=new _0x2dac2b(_0x2debab,_0xa6dcf4,_0x5b5208,_0x3fda7c),_0x40b7d8=_0xa6dcf4[_0x3eb174(0xef)]()[_0x3eb174(0x7f)](_0x536b27=>_0x536b27[_0x3eb174(0x73)]);_0x5b5208[_0x3eb174(0xd7)]=_0x2debab[_0x3eb174(0xac)][_0x3eb174(0xb2)](_0x3eb174(0x94))[_0x3eb174(0xa7)][_0x3eb174(0x75)](_0x40b7d8),this[_0x3eb174(0x6b)][_0x3eb174(0xa5)](_0xa6dcf4,_0x3e0cd2),this[_0x3eb174(0x8c)][_0x3eb174(0xa5)](_0x5b5208,_0x3e0cd2);const _0x4419b0=_0x13007a[_0x3eb174(0x84)]({'view':_0x3e06d2,'target':()=>{const _0x50d883=_0x3eb174,_0x276d53=[],_0x15ef2e=_0xa6dcf4[_0x50d883(0xef)]()[_0x50d883(0x7f)](_0x3e13e0=>_0x3e13e0[_0x50d883(0x73)]);for(const _0x4290be of _0x15ef2e)_0x276d53[_0x50d883(0xe1)](..._0x4290be[_0x50d883(0xd4)]());return _0x100e05(_0x2debab[_0x50d883(0xae)],_0x276d53);},'type':()=>_0x3eb174(0xc6)+_0x3e0cd2[_0x3eb174(0xbb)][_0x3eb174(0xa6)]});_0x19d087[_0x3eb174(0xcc)](_0x5b5208,_0x4419b0),_0x13007a[_0x3eb174(0x99)](_0x4419b0),_0x51f29f[_0x3eb174(0xec)](_0x4419b0);}[_0x2ac222(0xb3)](_0x43b3c1){const _0x288cf1=_0x2ac222,_0x18511c=this[_0x288cf1(0xbf)][_0x288cf1(0xac)][_0x288cf1(0xb2)](_0x288cf1(0xb8)),_0x26228b=this[_0x288cf1(0xbf)][_0x288cf1(0xac)][_0x288cf1(0xb2)](_0x288cf1(0x7e)),_0x175eee=this[_0x288cf1(0x6b)][_0x288cf1(0xb2)](_0x43b3c1),_0x13e423=_0x175eee[_0x288cf1(0xbb)],_0x8f91c8=_0x26228b[_0x288cf1(0xe7)](_0x13e423);_0x18511c[_0x288cf1(0xc1)](_0x13e423),_0x8f91c8&&_0x26228b[_0x288cf1(0xa8)](_0x8f91c8),this[_0x288cf1(0x6b)][_0x288cf1(0xc0)](_0x43b3c1),this[_0x288cf1(0x8c)][_0x288cf1(0xc0)](_0x13e423),_0x175eee[_0x288cf1(0x79)]();}[_0x2ac222(0xab)](_0x369ad8){const _0x52194c=_0x2ac222;if(!_0x369ad8[_0x52194c(0x73)]||!this[_0x52194c(0x6b)][_0x52194c(0x6a)](_0x369ad8))return;const _0x1d8dd7=this[_0x52194c(0xbf)][_0x52194c(0xac)][_0x52194c(0xb2)](_0x52194c(0x94)),_0x1d11d7=this[_0x52194c(0x6b)][_0x52194c(0xb2)](_0x369ad8),_0x1398a0=_0x369ad8[_0x52194c(0xef)]();_0x1d11d7[_0x52194c(0xbb)][_0x52194c(0xd7)]=_0x1d8dd7[_0x52194c(0xa7)][_0x52194c(0x75)](_0x1398a0);}[_0x2ac222(0x79)](){const _0x44cb39=_0x2ac222;for(const _0x301ced of this[_0x44cb39(0x6b)][_0x44cb39(0xcf)]())this[_0x44cb39(0xb3)](_0x301ced);for(const _0x35e05f of this[_0x44cb39(0x82)][_0x44cb39(0x98)]())_0x35e05f[_0x44cb39(0x9a)][_0x44cb39(0x79)]();super[_0x44cb39(0x79)]();}}function _0x167a(){const _0x52d939=['get','_destroyController','listenTo','suggestionLoaded','isMultiRange','comments.editorConfig','CommentsRepository','TrackChangesUI','buttonView','view','Track\x20changes','SuggestionThreadView','toMany','editor','delete','_unbindEditors','size','arrowView','componentFactory','35693910xHeIHR','suggestion-','suggestionChanged','change:previous','trackChanges.disableComments','focus','1583834gPVjBD','_bindAnnotationToEditors','discardSelectedSuggestions','trackChanges','keys','clear','_refreshActiveMarkers','hasSuggestion','isEnabled','getMarkers','acceptAllSuggestions','1676192pOmXLl','descriptionParts','Discard\x20all\x20selected\x20suggestions','separator','suggestionUnloaded','isDirty','97515KrPTrs','config','head','getJoined','comments.maxCommentCharsWhenCollapsed','push','_initializeController','model','change:activeAnnotations','CommentView','_handleSuggestionControllerDelayed','getByInnerView','349824uzyqGA','value','trackChanges.SuggestionThreadView','createCommentThreadController','registerAnnotation','from','reduce','getAllAdjacentSuggestions','map','has','_suggestionToController','EditorAnnotations','init','addComment','discardButton','Discard\x20all\x20suggestions','discardAllSuggestions','requires','isInContent','commandName','getDescriptions','previous','bind','button','destroy','acceptSelectedSuggestions','addSourceCollector','source','2127656kTqawV','Annotations','filter','refreshSelectedViews','Accept\x20all\x20selected\x20suggestions','_annotationViews','_handleControllerBuffer','createAnnotation','lowest','actionView','comments','switchbutton','comments.maxThreadTotalWeight','innerView','activeMarkers','_viewToController','commentThread','getFirstRange','184YHYFoq','Accept\x20all\x20suggestions','locale','3tldIhM','_disableComments','TrackChangesEditing','CommentsUI','stopListening','commands','values','add','mainView','define','pluginName','activeAnnotations','_createUIButton','comments.maxCommentsWhenCollapsed','getRanges','acceptButton','createAnnotationView','isOn','1136591sNsuhh','set','type','_descriptionFactory','remove','some','getMarkerNames','_updateController','plugins','execute','editing','unbind','length','getSuggestion'];_0x167a=function(){return _0x52d939;};return _0x167a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x842f(_0x445a00,_0x4a7098){const _0x4ddf05=_0x4ddf();return _0x842f=function(_0x842fda,_0x19d2c3){_0x842fda=_0x842fda-0x83;let _0x16826d=_0x4ddf05[_0x842fda];return _0x16826d;},_0x842f(_0x445a00,_0x4a7098);}function _0x4ddf(){const _0x46cd6f=['47016380TZksMX','add','bind','4617235ZdUUeW','stopListening','commands','canAccept','model','5187660HgUwqE','view','isEnabled','commentThreadController','303632pGwXnt','_discardCommand','PendingActions','5229930zjdSXn','_removePendingAction','1105987KwCCpC','acceptSuggestion','canDiscard','listenTo','PENDING_ACTION_SUGGESTION','159fxYZtV','_editor','discardSuggestion','execute','change:isDirty','_setPendingAction','45586nwqWMK','destroy','locale','unbind','plugins','get','_acceptCommand','5FNQfYN','_pendingAction','remove','isDirty','canEditAt','getRanges','63ZerVjP'];_0x4ddf=function(){return _0x46cd6f;};return _0x4ddf();}const _0x3de9dd=_0x842f;(function(_0x2e73a3,_0x1f6516){const _0x178266=_0x842f,_0x3ece40=_0x2e73a3();while(!![]){try{const _0x374d5b=parseInt(_0x178266(0xa6))/0x1+parseInt(_0x178266(0x87))/0x2*(parseInt(_0x178266(0xab))/0x3)+parseInt(_0x178266(0x9d))/0x4+-parseInt(_0x178266(0x8e))/0x5*(-parseInt(_0x178266(0xa4))/0x6)+parseInt(_0x178266(0x98))/0x7+-parseInt(_0x178266(0xa1))/0x8*(-parseInt(_0x178266(0x94))/0x9)+-parseInt(_0x178266(0x95))/0xa;if(_0x374d5b===_0x1f6516)break;else _0x3ece40['push'](_0x3ece40['shift']());}catch(_0x384ad8){_0x3ece40['push'](_0x3ece40['shift']());}}}(_0x4ddf,0xac6b7));import{ObservableMixin as _0x3b483e}from'ckeditor5/src/utils.js';import{getTranslation as _0x366e77}from'../utils/common-translations.js';export default class Xt extends _0x3b483e(){constructor(_0x310440,_0x388d4f,_0x503acf,_0x256314){const _0x22ae6a=_0x842f;super(),this[_0x22ae6a(0x9c)]=_0x388d4f,this[_0x22ae6a(0x9e)]=_0x503acf,this[_0x22ae6a(0xa0)]=_0x256314,this[_0x22ae6a(0xac)]=_0x310440,this[_0x22ae6a(0x8d)]=_0x310440[_0x22ae6a(0x9a)][_0x22ae6a(0x8c)](_0x22ae6a(0xa7)),this[_0x22ae6a(0xa2)]=_0x310440[_0x22ae6a(0x9a)][_0x22ae6a(0x8c)](_0x22ae6a(0x83)),this[_0x22ae6a(0x9e)][_0x22ae6a(0x97)](_0x22ae6a(0x9f))['to'](this[_0x22ae6a(0x8d)],this[_0x22ae6a(0xa2)],(_0x303d2a,_0x1a2a06)=>_0x303d2a||_0x1a2a06),this[_0x22ae6a(0x9e)][_0x22ae6a(0x97)](_0x22ae6a(0x9b))['to'](this[_0x22ae6a(0x8d)],_0x22ae6a(0x9f),_0x39f07b=>_0x39f07b&&this[_0x22ae6a(0xac)][_0x22ae6a(0x9c)][_0x22ae6a(0x92)](_0x388d4f[_0x22ae6a(0x93)]())),this[_0x22ae6a(0x9e)][_0x22ae6a(0x97)](_0x22ae6a(0xa8))['to'](this[_0x22ae6a(0xa2)],_0x22ae6a(0x9f),_0x2be7a0=>_0x2be7a0&&this[_0x22ae6a(0xac)][_0x22ae6a(0x9c)][_0x22ae6a(0x92)](_0x388d4f[_0x22ae6a(0x93)]())),this[_0x22ae6a(0x8f)]=null,_0x503acf[_0x22ae6a(0x91)]&&this[_0x22ae6a(0x86)](),this[_0x22ae6a(0xa9)](_0x503acf,_0x22ae6a(0xa7),()=>this[_0x22ae6a(0xa7)]()),this[_0x22ae6a(0xa9)](_0x503acf,_0x22ae6a(0x83),()=>this[_0x22ae6a(0x83)]()),this[_0x22ae6a(0xa9)](_0x503acf,_0x22ae6a(0x85),()=>{const _0x456c8d=_0x22ae6a;_0x503acf[_0x456c8d(0x91)]?this[_0x456c8d(0x86)]():this[_0x456c8d(0xa5)]();});}[_0x3de9dd(0xa7)](){const _0xe6d68e=_0x3de9dd;this[_0xe6d68e(0x8d)][_0xe6d68e(0x84)](this[_0xe6d68e(0x9c)]['id']);}[_0x3de9dd(0x83)](){const _0x50266d=_0x3de9dd;this[_0x50266d(0xa2)][_0x50266d(0x84)](this[_0x50266d(0x9c)]['id']);}[_0x3de9dd(0x88)](){const _0x4fbb8b=_0x3de9dd;this[_0x4fbb8b(0x9e)][_0x4fbb8b(0x8a)](_0x4fbb8b(0x9f)),this[_0x4fbb8b(0x9e)][_0x4fbb8b(0x8a)](_0x4fbb8b(0x9b)),this[_0x4fbb8b(0x9e)][_0x4fbb8b(0x8a)](_0x4fbb8b(0xa8)),this[_0x4fbb8b(0x99)](),this[_0x4fbb8b(0xa0)][_0x4fbb8b(0x88)](),this[_0x4fbb8b(0x8f)]&&this[_0x4fbb8b(0xa5)]();}[_0x3de9dd(0x86)](){const _0x5e3cc0=_0x3de9dd,_0x9175f5=_0x366e77(this[_0x5e3cc0(0xac)][_0x5e3cc0(0x89)],_0x5e3cc0(0xaa));this[_0x5e3cc0(0x8f)]=this[_0x5e3cc0(0xac)][_0x5e3cc0(0x8b)][_0x5e3cc0(0x8c)](_0x5e3cc0(0xa3))[_0x5e3cc0(0x96)](_0x9175f5);}[_0x3de9dd(0xa5)](){const _0x3d5e45=_0x3de9dd;null!==this[_0x3d5e45(0x8f)]&&this[_0x3d5e45(0xac)][_0x3d5e45(0x8b)][_0x3d5e45(0x8c)](_0x3d5e45(0xa3))[_0x3d5e45(0x90)](this[_0x3d5e45(0x8f)]),this[_0x3d5e45(0x8f)]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e56c0=_0x5f36;(function(_0x33f6d7,_0x58224f){const _0x56e6fd=_0x5f36,_0x15e913=_0x33f6d7();while(!![]){try{const _0x16cbee=parseInt(_0x56e6fd(0x1ea))/0x1*(-parseInt(_0x56e6fd(0x203))/0x2)+-parseInt(_0x56e6fd(0x1eb))/0x3*(parseInt(_0x56e6fd(0x1f3))/0x4)+parseInt(_0x56e6fd(0x1e1))/0x5*(-parseInt(_0x56e6fd(0x1e5))/0x6)+-parseInt(_0x56e6fd(0x20f))/0x7+parseInt(_0x56e6fd(0x20d))/0x8+parseInt(_0x56e6fd(0x206))/0x9+-parseInt(_0x56e6fd(0x1e8))/0xa*(-parseInt(_0x56e6fd(0x1f1))/0xb);if(_0x16cbee===_0x58224f)break;else _0x15e913['push'](_0x15e913['shift']());}catch(_0x4e85b8){_0x15e913['push'](_0x15e913['shift']());}}}(_0x54d3,0x72624));function _0x5f36(_0x502f47,_0x35db97){const _0x54d339=_0x54d3();return _0x5f36=function(_0x5f360f,_0x5a835a){_0x5f360f=_0x5f360f-0x1e0;let _0x436804=_0x54d339[_0x5f360f];return _0x436804;},_0x5f36(_0x502f47,_0x35db97);}import{View as _0x24c26a}from'ckeditor5/src/ui.js';export default class es extends _0x24c26a{constructor(_0x478b76,_0x428488,_0xdd57d2,_0xecb963){const _0x2ae54b=_0x5f36;super(_0x478b76),this[_0x2ae54b(0x1f8)]=null,this[_0x2ae54b(0x1e0)]=null,this[_0x2ae54b(0x20e)](_0x2ae54b(0x1ed),!0x1),this[_0x2ae54b(0x20e)](_0x2ae54b(0x1f6),_0x428488[_0x2ae54b(0x1f6)]),this[_0x2ae54b(0x20c)](_0x2ae54b(0x1f6))['to'](_0x428488),this[_0x2ae54b(0x20e)](_0x2ae54b(0x1f0),[]),this[_0x2ae54b(0x20e)](_0x2ae54b(0x1e6),!0x1),this[_0x2ae54b(0x20e)](_0x2ae54b(0x213),!0x1),this[_0x2ae54b(0x20e)](_0x2ae54b(0x1f7),!0x1),this[_0x2ae54b(0x20e)](_0x2ae54b(0x1ff),!0x1),this[_0x2ae54b(0x211)]=_0x428488,this[_0x2ae54b(0x205)]=_0xdd57d2,this[_0x2ae54b(0x1e7)]=_0xecb963,_0xecb963[_0x2ae54b(0x1e4)]?this[_0x2ae54b(0x20e)](_0x2ae54b(0x1ef),0x1):this[_0x2ae54b(0x207)]();}[_0x4e56c0(0x1fa)](){const _0x4165e9=_0x4e56c0;this[_0x4165e9(0x20a)][_0x4165e9(0x1fa)]();}[_0x4e56c0(0x210)](){const _0x20d09a=_0x4e56c0;this[_0x20d09a(0x1f8)]&&this[_0x20d09a(0x1f8)][_0x20d09a(0x210)](),this[_0x20d09a(0x1e0)]&&this[_0x20d09a(0x1e0)][_0x20d09a(0x210)](),super[_0x20d09a(0x210)]();}[_0x4e56c0(0x207)](){const _0x2b5e4e=_0x4e56c0,{CommentsListView:_0x2ca915}=this[_0x2b5e4e(0x1e7)];this[_0x2b5e4e(0x1f8)]=new _0x2ca915(this[_0x2b5e4e(0x201)],this[_0x2b5e4e(0x211)][_0x2b5e4e(0x202)],Object[_0x2b5e4e(0x200)]({'CommentView':this[_0x2b5e4e(0x1e7)][_0x2b5e4e(0x1f9)]},this[_0x2b5e4e(0x1e7)])),this[_0x2b5e4e(0x1f8)][_0x2b5e4e(0x1f4)](_0x2b5e4e(0x1fe))['to'](this),this[_0x2b5e4e(0x1f8)][_0x2b5e4e(0x1f4)](_0x2b5e4e(0x1f2))['to'](this),this[_0x2b5e4e(0x1f8)][_0x2b5e4e(0x20c)](_0x2b5e4e(0x1ed))['to'](this),this[_0x2b5e4e(0x20e)](_0x2b5e4e(0x1ef),this[_0x2b5e4e(0x1f8)][_0x2b5e4e(0x1ef)]+0x1),this[_0x2b5e4e(0x20c)](_0x2b5e4e(0x1ef))['to'](this[_0x2b5e4e(0x1f8)],_0x2b5e4e(0x1ef),_0x2b9b45=>_0x2b9b45+0x1),this[_0x2b5e4e(0x1e0)]=this[_0x2b5e4e(0x20b)](),this['on'](_0x2b5e4e(0x1fe),()=>this[_0x2b5e4e(0x1fa)]()),this[_0x2b5e4e(0x20c)](_0x2b5e4e(0x1e6))['to'](this[_0x2b5e4e(0x1f8)],_0x2b5e4e(0x1f5),this[_0x2b5e4e(0x1e0)][_0x2b5e4e(0x1ec)],_0x2b5e4e(0x209),(_0x5bbb20,_0x1d7b91)=>_0x5bbb20||!!_0x1d7b91);}[_0x4e56c0(0x20b)](){const _0x8a0c7c=_0x4e56c0,{CommentThreadInputView:_0xaba8fc}=this[_0x8a0c7c(0x1e7)],_0x437c10=new _0xaba8fc(this[_0x8a0c7c(0x201)],this[_0x8a0c7c(0x205)],this[_0x8a0c7c(0x1e7)][_0x8a0c7c(0x1e9)]),_0x1b6744=_0x437c10[_0x8a0c7c(0x1ec)];return _0x437c10[_0x8a0c7c(0x20c)](_0x8a0c7c(0x1fc))['to'](this,_0x8a0c7c(0x1ed),this[_0x8a0c7c(0x211)][_0x8a0c7c(0x202)],_0x8a0c7c(0x1e2),_0x1b6744,_0x8a0c7c(0x209),(_0x330d35,_0x5e0689,_0x474b5f)=>!!_0x474b5f||_0x330d35&&!_0x5e0689),_0x1b6744['on'](_0x8a0c7c(0x208),(_0x329b33,_0x3cac1d)=>{const _0x4d43fc=_0x8a0c7c;this[_0x4d43fc(0x1ee)](_0x4d43fc(0x1fd),_0x3cac1d),_0x1b6744[_0x4d43fc(0x1fb)][_0x4d43fc(0x1e3)]('');}),_0x1b6744['on'](_0x8a0c7c(0x204),()=>this[_0x8a0c7c(0x1fa)]()),_0x1b6744[_0x8a0c7c(0x20c)](_0x8a0c7c(0x212))['to'](this[_0x8a0c7c(0x211)][_0x8a0c7c(0x202)],_0x8a0c7c(0x1e2)),_0x437c10;}}function _0x54d3(){const _0x417ad8=['CommentView','focus','editor','showInput','addComment','removeComment','canDiscard','assign','locale','commentThread','1054yezKHX','cancel','_localUser','1196667YEmBde','_createCommentViews','submit','value','element','_createCommentThreadInputView','bind','7303640uprWYT','set','1432473PKcmHy','destroy','_model','disabledSubmit','isEnabled','commentThreadInputView','615VdaHoF','isReadOnly','setData','disableComments','16068GddFfT','isDirty','_config','470wpeSBC','editorConfig','1367NWcFHC','492357MAXUtr','commentInputView','isActive','fire','length','descriptionParts','196867AaMFnQ','updateComment','4PxALhB','delegate','hasDirtyComment','authoredAt','canAccept','commentsListView'];_0x54d3=function(){return _0x417ad8;};return _0x54d3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27e75c=_0x46ac;function _0x46ac(_0x3c034a,_0x3363f5){const _0x3d481a=_0x3d48();return _0x46ac=function(_0x46acf4,_0x25d040){_0x46acf4=_0x46acf4-0x64;let _0xa59522=_0x3d481a[_0x46acf4];return _0xa59522;},_0x46ac(_0x3c034a,_0x3363f5);}(function(_0x48d0e3,_0x46318a){const _0x4af80d=_0x46ac,_0x687ae7=_0x48d0e3();while(!![]){try{const _0x3b9f02=parseInt(_0x4af80d(0x67))/0x1*(-parseInt(_0x4af80d(0xbe))/0x2)+-parseInt(_0x4af80d(0x8f))/0x3+-parseInt(_0x4af80d(0xc9))/0x4+parseInt(_0x4af80d(0x6f))/0x5+parseInt(_0x4af80d(0xa4))/0x6*(parseInt(_0x4af80d(0x76))/0x7)+parseInt(_0x4af80d(0x94))/0x8+parseInt(_0x4af80d(0xab))/0x9;if(_0x3b9f02===_0x46318a)break;else _0x687ae7['push'](_0x687ae7['shift']());}catch(_0x369ea8){_0x687ae7['push'](_0x687ae7['shift']());}}}(_0x3d48,0x53b09));import{getTranslation as _0x4fd5c8}from'../../utils/common-translations.js';import{default as _0x2e9303}from'./basesuggestionthreadview.js';function _0x3d48(){const _0x463354=['693369rYhcMb','descriptionParts','title','userView','execute','1687024LqTnwE','render','ck-suggestion-','\x22></span>','div','_config','ck-suggestion','discardSuggestion','Discard\x20suggestion','color','editorReady','isExternal','.ck-annotation__content-wrapper','fire','canDiscard','commentsListView','42uKcbFB','content','_descriptionElement','bind','getTemplate','attributes','setTemplate','5828184lNAdfQ','innerHTML','ck-suggestion--discard','ck-annotation__info-time','commentThreadInputView','delegate','canAccept','map','children','Accept\x20suggestion','ck-suggestion__info','ck-suggestion-wrapper--active','cancel','type','set','ck-annotation__actions','authoredAt','check','innerText','538OGWxIc','ck-comment__info-time','ck-suggestion__info-name','_createButton','createElement','extendTemplate','commentThread','ck-annotation__user','join','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','getUserViewNotificationText','1634952NXGQVn','getExternalSuggestionNote','time','value','span','EXTERNAL_IMPORT_WORD_SUGGESTION','name','<span\x20class=\x22ck-suggestion-type\x22>','</span>','creator','disableComments','isActive','1492cTCLKQ','ck-annotation__main','ck-suggestion--accept','_model','importWord','ck-annotation__info-name','element','description','1012595sVxKJe','ck-suggestion__actions','change:description','ck-suggestion-wrapper','ck-annotation__content-wrapper','<p>','ck-comment__external','323029FmzPnH','EXTERNAL_IMPORT_WORD_AVATAR','ck-annotation','\x22\x20title=\x22','isEnabled','ck-suggestion__main','acceptSuggestion','author','@external','acceptButton','querySelector','source','ck-suggestion--disabled-comments','ck-annotation__info','editorDestroyed','formatDateTime','discardButton','ck-suggestion__user','push','EXTERNAL_AVATAR','bindTemplate','</p>','locale','split','EXTERNAL_SUGGESTION'];_0x3d48=function(){return _0x463354;};return _0x3d48();}import{ButtonView as _0x17209c}from'ckeditor5/src/ui.js';import{icons as _0x276768}from'ckeditor5/src/core.js';import{trimHtml as _0x407154,UserView as _0x33a23d}from'ckeditor5-collaboration/src/collaboration-core.js';export default class Yt extends _0x2e9303{constructor(_0x12c04f,_0x47b5eb,_0x2c8739,_0x18b500){const _0x569a6d=_0x46ac;super(_0x12c04f,_0x47b5eb,_0x2c8739,_0x18b500),this[_0x569a6d(0xb9)](_0x569a6d(0xb8),''),this[_0x569a6d(0xa7)](_0x569a6d(0xb8))['to'](this,_0x569a6d(0x90),_0x4ee09a=>_0x4ee09a&&_0x4ee09a[0x0]?_0x4ee09a[0x0][_0x569a6d(0xb8)]:''),this[_0x569a6d(0xa7)](_0x569a6d(0x6e))['to'](this,_0x569a6d(0x90),this,_0x569a6d(0x66),(_0x39bacf,_0x386b7b)=>{const _0x304842=_0x569a6d;let _0xdc9691='';for(const _0x512273 of _0x39bacf)_0xdc9691+=_0x304842(0x74)+ds(_0x512273[_0x304842(0xa5)],_0x512273[_0x304842(0x9d)])+_0x304842(0x8b);return _0x386b7b?_0xdc9691:_0x407154(_0xdc9691,{'limit':0x8c});}),this[_0x569a6d(0xa6)]=null,this[_0x569a6d(0x7f)]=this[_0x569a6d(0xc1)](_0x4fd5c8(_0x12c04f,_0x569a6d(0xb4)),_0x276768[_0x569a6d(0xbc)],_0x569a6d(0x69),_0x569a6d(0x7c),'sw'),this[_0x569a6d(0x7f)][_0x569a6d(0xa7)](_0x569a6d(0x7a))['to'](this,_0x569a6d(0xb1)),this[_0x569a6d(0x86)]=this[_0x569a6d(0xc1)](_0x4fd5c8(_0x12c04f,_0x569a6d(0x9c)),_0x276768[_0x569a6d(0xb7)],_0x569a6d(0xad),_0x569a6d(0x9b),'sw'),this[_0x569a6d(0x86)][_0x569a6d(0xa7)](_0x569a6d(0x7a))['to'](this,_0x569a6d(0xa2)),this[_0x569a6d(0x92)]=new _0x33a23d(_0x12c04f,this[_0x569a6d(0x6a)][_0x569a6d(0x7d)],this[_0x569a6d(0xc8)]()),this[_0x569a6d(0x92)][_0x569a6d(0xc3)]({'attributes':{'class':[_0x569a6d(0x87),_0x569a6d(0xc5)]}}),this[_0x569a6d(0xaa)](this[_0x569a6d(0xa8)]());}[_0x27e75c(0xa8)](){const _0x2b0ae8=_0x27e75c,_0x2a53bc=this[_0x2b0ae8(0x8a)],_0x5501ff=[{'tag':_0x2b0ae8(0x98),'attributes':{'class':[_0x2b0ae8(0xb5),_0x2b0ae8(0x83)]},'children':[{'tag':_0x2b0ae8(0xcd),'children':[{'text':this[_0x2b0ae8(0x92)][_0x2b0ae8(0xcf)]}],'attributes':{'class':[_0x2b0ae8(0xc0),_0x2b0ae8(0x6c)]}},{'tag':_0x2b0ae8(0xcb),'attributes':{'datetime':_0x2a53bc['to'](_0x2b0ae8(0xbb)),'class':[_0x2b0ae8(0xbf),_0x2b0ae8(0xae)]},'children':[{'text':_0x2a53bc['to'](_0x2b0ae8(0xbb),_0x39b1be=>this[_0x2b0ae8(0x99)][_0x2b0ae8(0x85)](_0x39b1be))}]}]},{'tag':_0x2b0ae8(0x98),'attributes':{'class':[_0x2b0ae8(0x70),_0x2b0ae8(0xba)]},'children':[this[_0x2b0ae8(0x7f)],this[_0x2b0ae8(0x86)]]},{'tag':_0x2b0ae8(0x98),'attributes':{'class':[_0x2b0ae8(0x73)]}}];this[_0x2b0ae8(0x6a)][_0x2b0ae8(0x9f)]&&_0x5501ff[_0x2b0ae8(0x88)]({'tag':_0x2b0ae8(0x98),'attributes':{'class':[_0x2b0ae8(0x75)]},'children':[{'text':this[_0x2b0ae8(0xca)]()}]});const _0x4f0d42={'tag':_0x2b0ae8(0x98),'attributes':{'class':[_0x2b0ae8(0x72),_0x2a53bc['if'](_0x2b0ae8(0x66),_0x2b0ae8(0xb6)),_0x2a53bc['to'](_0x2b0ae8(0xb8),_0x376480=>_0x2b0ae8(0x96)+_0x376480),this[_0x2b0ae8(0x99)][_0x2b0ae8(0x65)]&&_0x2b0ae8(0x82)],'data-suggestion-id':this[_0x2b0ae8(0x6a)]['id'],'data-thread-id':this[_0x2b0ae8(0x6a)][_0x2b0ae8(0xc4)]['id'],'data-author-id':this[_0x2b0ae8(0x6a)][_0x2b0ae8(0x7d)]['id'],'tabindex':-0x1},'children':[{'tag':_0x2b0ae8(0x98),'attributes':{'class':[_0x2b0ae8(0x9a),_0x2b0ae8(0x78)]},'children':[this[_0x2b0ae8(0x92)],{'tag':_0x2b0ae8(0x98),'attributes':{'class':[_0x2b0ae8(0x7b),_0x2b0ae8(0x68)]},'children':_0x5501ff}]}]};return this[_0x2b0ae8(0xa3)]&&this[_0x2b0ae8(0xaf)]&&(_0x4f0d42[_0x2b0ae8(0xb3)][_0x2b0ae8(0x88)](this[_0x2b0ae8(0xa3)],this[_0x2b0ae8(0xaf)]),this[_0x2b0ae8(0xa3)][_0x2b0ae8(0xb0)](_0x2b0ae8(0x9e))['to'](this),this[_0x2b0ae8(0xa3)][_0x2b0ae8(0xb0)](_0x2b0ae8(0x84))['to'](this),this[_0x2b0ae8(0xaf)][_0x2b0ae8(0xb0)](_0x2b0ae8(0x9e))['to'](this),this[_0x2b0ae8(0xaf)][_0x2b0ae8(0xb0)](_0x2b0ae8(0x84))['to'](this)),_0x4f0d42;}[_0x27e75c(0x95)](){const _0xcf266=_0x27e75c;super[_0xcf266(0x95)](),this[_0xcf266(0xa6)]=this[_0xcf266(0x6d)][_0xcf266(0x80)](_0xcf266(0xa0)),this[_0xcf266(0xa6)][_0xcf266(0xac)]=this[_0xcf266(0x6e)],this['on'](_0xcf266(0x71),(_0x426286,_0x31dd86,_0x112acc)=>{const _0x2a977e=_0xcf266;this[_0x2a977e(0xa6)][_0x2a977e(0xac)]=_0x112acc;});}[_0x27e75c(0xc1)](_0x53ef92,_0x3f9e17,_0x2fa7c3,_0x24a2b9,_0x3f72ac){const _0xf6a5de=_0x27e75c,_0x45d129=new _0x17209c(this[_0xf6a5de(0x8c)]);return _0x45d129[_0xf6a5de(0xb9)]({'label':_0x53ef92,'icon':_0x3f9e17,'tooltip':!0x0,'tooltipPosition':_0x3f72ac}),_0x45d129[_0xf6a5de(0xc3)]({'attributes':{'class':_0x2fa7c3}}),_0x45d129['on'](_0xf6a5de(0x93),()=>{const _0x3c0ad2=_0xf6a5de;this[_0x3c0ad2(0xa1)](_0x24a2b9,this[_0x3c0ad2(0x6a)]['id']);}),_0x45d129;}[_0x27e75c(0xca)](){const _0x25345a=_0x27e75c;return _0x25345a(0x6b)===this[_0x25345a(0x6a)][_0x25345a(0xa9)][_0x25345a(0x7e)][_0x25345a(0x81)]?_0x4fd5c8(this[_0x25345a(0x8c)],_0x25345a(0xce)):_0x4fd5c8(this[_0x25345a(0x8c)],_0x25345a(0x8e));}[_0x27e75c(0xc8)](){const _0x270fbb=_0x27e75c;return this[_0x270fbb(0x6a)][_0x270fbb(0x9f)]?_0x270fbb(0x6b)===this[_0x270fbb(0x6a)][_0x270fbb(0xa9)][_0x270fbb(0x7e)][_0x270fbb(0x81)]?_0x4fd5c8(this[_0x270fbb(0x8c)],_0x270fbb(0x77),this[_0x270fbb(0x6a)][_0x270fbb(0x64)][_0x270fbb(0xcf)]):_0x4fd5c8(this[_0x270fbb(0x8c)],_0x270fbb(0x89),this[_0x270fbb(0x6a)][_0x270fbb(0x64)][_0x270fbb(0xcf)]):null;}}function ds(_0x330b6f,_0x28788){const _0x1424fc=_0x27e75c;let _0x9a3a13='';return _0x9a3a13+=_0x330b6f[_0x1424fc(0x8d)]('*')[_0x1424fc(0xb2)]((_0x31cb9c,_0x3d78ff)=>_0x3d78ff%0x2!=0x0?_0x1424fc(0xd0)+us(_0x31cb9c)+_0x1424fc(0xd1):us(_0x31cb9c))[_0x1424fc(0xc6)](''),_0x28788&&(_0x9a3a13+=_0x1424fc(0xc7)+_0x28788[_0x1424fc(0xcc)]+_0x1424fc(0x79)+_0x28788[_0x1424fc(0x91)]+_0x1424fc(0x97)),_0x9a3a13;}function us(_0x2df7bb){const _0x34dbcc=_0x27e75c,_0x30bad0=document[_0x34dbcc(0xc2)](_0x34dbcc(0xcd));return _0x30bad0[_0x34dbcc(0xbd)]=_0x2df7bb,_0x30bad0[_0x34dbcc(0xac)];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(_0x227990,_0x2ebdd3,_0x28a24e){const t=_0x227990['t'];switch(_0x2ebdd3){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',_0x28a24e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x28a24e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x28a24e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x28a24e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x28a24e);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',_0x28a24e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x28a24e);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',_0x28a24e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x28a24e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x28a24e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x28a24e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x28a24e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x28a24e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x28a24e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x28a24e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x28a24e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x28a24e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x28a24e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x28a24e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x28a24e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x28a24e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x28a24e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x28a24e);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'},_0x28a24e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x28a24e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x28a24e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x28a24e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x28a24e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x28a24e);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'},_0x28a24e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x28a24e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x28a24e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x28a24e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x28a24e);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'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x28a24e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x28a24e);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'},_0x28a24e);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'},_0x28a24e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x28a24e);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'},_0x28a24e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x28a24e);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'},_0x28a24e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x28a24e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x28a24e);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'},_0x28a24e);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'},_0x28a24e);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 _0x2ebdd3;}}
|
|
23
|
+
export function getTranslation(_0x1427b3,_0x519ee8,_0x24c4d2){const t=_0x1427b3['t'];switch(_0x519ee8){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',_0x24c4d2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x24c4d2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x24c4d2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x24c4d2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x24c4d2);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',_0x24c4d2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x24c4d2);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',_0x24c4d2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x24c4d2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x24c4d2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x24c4d2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x24c4d2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x24c4d2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x24c4d2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x24c4d2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x24c4d2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x24c4d2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x24c4d2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x24c4d2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x24c4d2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x24c4d2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x24c4d2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x24c4d2);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'},_0x24c4d2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x24c4d2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x24c4d2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x24c4d2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x24c4d2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x24c4d2);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'},_0x24c4d2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x24c4d2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x24c4d2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x24c4d2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x24c4d2);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'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x24c4d2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x24c4d2);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'},_0x24c4d2);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'},_0x24c4d2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x24c4d2);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'},_0x24c4d2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x24c4d2);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'},_0x24c4d2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x24c4d2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x24c4d2);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'},_0x24c4d2);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'},_0x24c4d2);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 _0x519ee8;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
(function(_0x30241d,_0x4c1c57){const _0x58038f=_0x1af1,_0xd11c38=_0x30241d();while(!![]){try{const _0x3838c3=parseInt(_0x58038f(0x1e7))/0x1*(-parseInt(_0x58038f(0x1c8))/0x2)+parseInt(_0x58038f(0x1c6))/0x3*(parseInt(_0x58038f(0x1e0))/0x4)+-parseInt(_0x58038f(0x1dd))/0x5+-parseInt(_0x58038f(0x1c9))/0x6+-parseInt(_0x58038f(0x1e6))/0x7+parseInt(_0x58038f(0x1d2))/0x8*(-parseInt(_0x58038f(0x1e1))/0x9)+-parseInt(_0x58038f(0x1ce))/0xa*(-parseInt(_0x58038f(0x1e4))/0xb);if(_0x3838c3===_0x4c1c57)break;else _0xd11c38['push'](_0xd11c38['shift']());}catch(_0x456e91){_0xd11c38['push'](_0xd11c38['shift']());}}}(_0x2dd2,0x234d2));export function normalizeDescription(_0x2f906d){const _0x10362c=_0x1af1;return Array[_0x10362c(0x1d4)](_0x2f906d)||(_0x2f906d=[_0x2f906d]),_0x2f906d[_0x10362c(0x1cd)](_0x40669c=>{const _0x1c7086=_0x10362c,_0x25c0b8=_0x40669c[_0x1c7086(0x1d6)][_0x1c7086(0x1eb)](/\*/g,''),_0x157c2a=_0x40669c[_0x1c7086(0x1c7)]?_0x1c7086(0x1ee)+_0x40669c[_0x1c7086(0x1c7)][_0x1c7086(0x1e5)]+']':'';return'['+_0x40669c[_0x1c7086(0x1d5)]+']\x20'+_0x25c0b8+_0x157c2a;})[_0x10362c(0x1dc)](';\x20');}export function sortSuggestions(_0x2dc227){const _0x2cddf9=_0x1af1;return _0x2dc227[_0x2cddf9(0x1c5)]((_0x583008,_0x16719f)=>_0x2cddf9(0x1ea)==_0x583008[_0x2cddf9(0x1d5)]&&_0x2cddf9(0x1ea)!=_0x16719f[_0x2cddf9(0x1d5)]?-0x1:_0x2cddf9(0x1ea)!=_0x583008[_0x2cddf9(0x1d5)]&&_0x2cddf9(0x1ea)==_0x16719f[_0x2cddf9(0x1d5)]?0x1:0x0);}export function getSelectedSuggestions(_0xd8ae26,_0x23051e){const _0x3d5f31=_0x1af1,_0x2889b6=Array[_0x3d5f31(0x1d0)](_0xd8ae26[_0x3d5f31(0x1ed)]()),_0x1a22e0=new Set();for(const _0x1d1287 of _0x23051e)if(_0x1d1287[_0x3d5f31(0x1cc)]){for(const _0x145a44 of _0x2889b6)for(const _0x1a9f51 of _0x1d1287[_0x3d5f31(0x1ed)]())(_0x145a44[_0x3d5f31(0x1e9)](_0x1a9f51)||_0xd8ae26[_0x3d5f31(0x1ec)]&&!_0x1d1287[_0x3d5f31(0x1d3)]&&_0x1d1287[_0x3d5f31(0x1da)]&&_0x1a9f51[_0x3d5f31(0x1d7)][_0x3d5f31(0x1ca)](_0x145a44[_0x3d5f31(0x1e8)]))&&_0x1a22e0[_0x3d5f31(0x1cb)](_0x1d1287);}return _0x1a22e0;}export function getRangesOfBlockGroups(_0x180eff,_0x5121e6){const _0x2fa7a3=_0x1af1;let _0x29da73,_0xd4ac76=0x0;const _0x4017bd=[],_0xa38c4c=_0x5121e6[_0x2fa7a3(0x1cf)];for(;_0xd4ac76<_0x180eff[_0x2fa7a3(0x1de)];){const _0x400962=_0x180eff[_0xd4ac76],_0x447a8e=_0x180eff[_0xd4ac76+0x1];_0x29da73||(_0x29da73=_0x5121e6[_0x2fa7a3(0x1c3)](_0x400962)),co(_0x5121e6,_0x400962,_0x447a8e)||(_0x4017bd[_0x2fa7a3(0x1df)](_0x5121e6[_0x2fa7a3(0x1e2)](_0x29da73,_0xa38c4c[_0x2fa7a3(0x1d8)](_0x400962)?_0x5121e6[_0x2fa7a3(0x1c4)](_0x400962):_0x5121e6[_0x2fa7a3(0x1e3)](_0x400962,_0x2fa7a3(0x1d7)))),_0x29da73=null),_0xd4ac76++;}return _0x4017bd;}function co(_0x2fd6e3,_0x41616c,_0x10b236){const _0x517869=_0x1af1;if(!_0x10b236)return!0x1;const _0x5a82a9=_0x2fd6e3[_0x517869(0x1c4)](_0x41616c),_0x28ed78=_0x2fd6e3[_0x517869(0x1c3)](_0x10b236);return _0x5a82a9[_0x517869(0x1ca)](_0x28ed78);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function _0x1af1(_0x20b3b0,_0xa4d6d9){const _0x2dd236=_0x2dd2();return _0x1af1=function(_0x1af162,_0x35c206){_0x1af162=_0x1af162-0x1c3;let _0x138a62=_0x2dd236[_0x1af162];return _0x138a62;},_0x1af1(_0x20b3b0,_0xa4d6d9);}export function executeCommandForSuggestions(_0x4fab76,_0x4a4508,_0x397d04){const _0x284d6a=_0x1af1;for(;_0x397d04[_0x284d6a(0x1de)];){const _0x2d368d=_0x397d04[_0x284d6a(0x1d9)](0x0,0x64);_0x4fab76[_0x284d6a(0x1d1)](()=>{const _0x16e38d=_0x284d6a;for(const _0x51b8ce of _0x2d368d)_0x51b8ce[_0x16e38d(0x1cc)]&&_0x4a4508[_0x16e38d(0x1db)](_0x51b8ce['id']);});}}function _0x2dd2(){const _0x41bb0f=['start','isIntersecting','deletion','replace','isCollapsed','getRanges','\x20[color\x20','createPositionBefore','createPositionAfter','sort','792ONNghT','color','2NqLzwT','1197108qrpHMT','isTouching','add','isInContent','map','7816450nUtCUk','schema','from','change','344WIvRmR','isMultiRange','isArray','type','content','end','isObject','splice','next','execute','join','310185cjCZbA','length','push','2068dpjBZA','14292vSoZJS','createRange','createPositionAt','11iBvprL','value','1963661TDsDCF','163177EnINkX'];_0x2dd2=function(){return _0x41bb0f;};return _0x2dd2();}
|