@ckeditor/ckeditor5-track-changes 41.1.0 → 41.2.1
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 _0x611581=_0x3f8b;(function(_0x167428,_0x2042bc){const _0x3c3919=_0x3f8b,_0x2b7a73=_0x167428();while(!![]){try{const _0x5e07d5=-parseInt(_0x3c3919(0x1ea))/0x1*(-parseInt(_0x3c3919(0x228))/0x2)+parseInt(_0x3c3919(0x225))/0x3*(parseInt(_0x3c3919(0x24a))/0x4)+parseInt(_0x3c3919(0x22e))/0x5+parseInt(_0x3c3919(0x216))/0x6+-parseInt(_0x3c3919(0x20c))/0x7+-parseInt(_0x3c3919(0x233))/0x8+-parseInt(_0x3c3919(0x24f))/0x9*(parseInt(_0x3c3919(0x257))/0xa);if(_0x5e07d5===_0x2042bc)break;else _0x2b7a73['push'](_0x2b7a73['shift']());}catch(_0x15e0a4){_0x2b7a73['push'](_0x2b7a73['shift']());}}}(_0x3b1f,0xa5dd1));import{Plugin as _0x24dd36}from'ckeditor5/src/core.js';function _0x3f8b(_0x1f8f35,_0x26312e){const _0x3b1f15=_0x3b1f();return _0x3f8b=function(_0x3f8bf5,_0x2e13b7){_0x3f8bf5=_0x3f8bf5-0x1da;let _0x246899=_0x3b1f15[_0x3f8bf5];return _0x246899;},_0x3f8b(_0x1f8f35,_0x26312e);}import{Collection as _0x17482f}from'ckeditor5/src/utils.js';import{ViewModel as _0x55db4f,SplitButtonView as _0x10db32,createDropdown as _0x139b0d,addListToDropdown as _0x50ea5d}from'ckeditor5/src/ui.js';import{Users as _0xecc107,getDateTimeFormatter as _0x30a588,getAllMarkersDomElementsSorted as _0x1e9b1a}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x34a930 from'./trackchangesediting.js';import _0x536ef6 from'./ui/suggestioncontroller.js';import _0x162b19 from'./ui/view/suggestionthreadview.js';function _0x3b1f(){const _0x21bb8f=['componentFactory','6044427PsikOh','suggestionLoaded','toMany','hasSuggestion','keys','innerView','comments.editorConfig','filter','30eVycOY','getMarkerNames','head','CommentsRepository','_descriptionFactory','trackChanges','_bindAnnotationToEditors','stopListening','getDescriptions','length','trackChanges.disableComments','execute','arrowView','Annotations','addSourceCollector','reduce','_handleSuggestionControllerDelayed','values','delete','Discard\x20all\x20selected\x20suggestions','actionView','createAnnotationView','_destroyController','_unbindEditors','mainView','unbind','_disableComments','1FYVoHb','add','_annotationViews','descriptionParts','discardButton','isOn','discardAllSuggestions','acceptSelectedSuggestions','switchbutton','config','isMultiRange','suggestionUnloaded','listenTo','previous','addComment','getAllAdjacentSuggestions','suggestionChanged','trackChanges.SuggestionThreadView','suggestion-','SuggestionThreadView','init','focus','getByInnerView','size','commandName','Discard\x20all\x20suggestions','button','map','isDirty','locale','remove','commands','comments.maxCommentsWhenCollapsed','TrackChangesEditing','2153767TZHUAN','define','set','Accept\x20all\x20selected\x20suggestions','from','CommentView','pluginName','source','_initializeController','change:activeAnnotations','6230922bSExXh','Accept\x20all\x20suggestions','model','requires','getFirstRange','_createUIButton','discardSelectedSuggestions','comments.maxCommentCharsWhenCollapsed','getSuggestion','destroy','CommentsUI','comments','editor','_updateController','getJoined','9627piFtCw','registerAnnotation','_refreshActiveMarkers','460968LWoPUO','acceptButton','view','getRanges','comments.maxThreadTotalWeight','Track\x20changes','5574050VNnlhN','createCommentThreadController','isEnabled','value','has','3655432BKOtFf','buttonView','plugins','commentThread','isInContent','createAnnotation','type','get','_viewToController','clear','refreshSelectedViews','getMarkers','editing','_handleControllerBuffer','acceptAllSuggestions','EditorAnnotations','activeMarkers','separator','bind','some','activeAnnotations','push','_suggestionToController','1340zVeZGS','change:previous','TrackChangesUI','lowest'];_0x3b1f=function(){return _0x21bb8f;};return _0x3b1f();}import{getTranslation as _0x3dc4b6}from'./utils/common-translations.js';import _0x578beb from'../theme/icons/track-changes.svg';export default class d extends _0x24dd36{static get[_0x611581(0x219)](){const _0x521b47=_0x611581;return[_0x34a930,_0xecc107,_0x521b47(0x25a),_0x521b47(0x1dc),_0x521b47(0x242)];}static get[_0x611581(0x212)](){const _0x2fa019=_0x611581;return _0x2fa019(0x24c);}constructor(_0x3edb34){const _0x4e7fc6=_0x611581;super(_0x3edb34),this[_0x4e7fc6(0x249)]=new Map(),this[_0x4e7fc6(0x23b)]=new Map(),this[_0x4e7fc6(0x1ec)]=new Map(),this[_0x4e7fc6(0x240)]=new Map();const _0x388a30=this[_0x4e7fc6(0x222)][_0x4e7fc6(0x1f3)];_0x388a30[_0x4e7fc6(0x20d)](_0x4e7fc6(0x1fb),_0x162b19),_0x388a30[_0x4e7fc6(0x20d)](_0x4e7fc6(0x261),!0x1),this[_0x4e7fc6(0x1e9)]=_0x388a30[_0x4e7fc6(0x23a)](_0x4e7fc6(0x261));}[_0x611581(0x1df)](_0x541729,_0x3753b9){const _0x1b2c6b=_0x611581;0x0===this[_0x1b2c6b(0x240)][_0x1b2c6b(0x201)]&&setTimeout(()=>{const _0x2ac4aa=_0x1b2c6b;for(const [_0x20f400,_0x54b34d]of this[_0x2ac4aa(0x240)]){const _0x4d38bf=this[_0x2ac4aa(0x249)][_0x2ac4aa(0x232)](_0x20f400);_0x4d38bf||_0x54b34d?_0x4d38bf&&_0x54b34d&&this[_0x2ac4aa(0x1e5)](_0x20f400):this[_0x2ac4aa(0x214)](_0x20f400);}this[_0x2ac4aa(0x240)][_0x2ac4aa(0x23c)](),this[_0x2ac4aa(0x222)][_0x2ac4aa(0x235)][_0x2ac4aa(0x23a)](_0x2ac4aa(0x242))[_0x2ac4aa(0x23d)](),this[_0x2ac4aa(0x227)]();},0xa),this[_0x1b2c6b(0x240)][_0x1b2c6b(0x20e)](_0x541729,_0x3753b9);}[_0x611581(0x1fe)](){const _0x50754c=_0x611581,_0x49bc1e=this[_0x50754c(0x222)],_0x2835f5=_0x49bc1e[_0x50754c(0x235)][_0x50754c(0x23a)](_0x50754c(0x20b)),_0x521dab=_0x49bc1e[_0x50754c(0x235)][_0x50754c(0x23a)](_0x50754c(0x1dc)),_0x1604a1=_0x49bc1e[_0x50754c(0x235)][_0x50754c(0x23a)](_0x50754c(0x242)),_0x212ee6=_0x49bc1e[_0x50754c(0x235)][_0x50754c(0x23a)](_0x50754c(0x25a));_0x49bc1e['ui'][_0x50754c(0x24e)][_0x50754c(0x1eb)](_0x50754c(0x25c),_0x4651ac=>this[_0x50754c(0x21b)](_0x4651ac)),_0x1604a1[_0x50754c(0x1dd)](()=>{const _0x536426=_0x50754c,_0x440b84=[];for(const [_0x5f141c,_0x8e373]of Array[_0x536426(0x210)](this[_0x536426(0x249)])){const _0x5350ed=_0x5f141c[_0x536426(0x1f9)](),_0x206727=[];for(const _0x3f30b4 of _0x5350ed){if(!_0x3f30b4[_0x536426(0x237)])continue;if(_0x3f30b4[_0x536426(0x1f4)]){_0x206727[_0x536426(0x248)](..._0x3f30b4[_0x536426(0x22b)]());continue;}const _0x1d5df7=_0x3f30b4[_0x536426(0x21a)]();if(_0x206727[_0x536426(0x260)]>0x0){const _0x2fcaf3=_0x206727[0x0][_0x536426(0x224)](_0x1d5df7);if(_0x2fcaf3){_0x206727[0x0]=_0x2fcaf3;continue;}}_0x206727[_0x536426(0x248)](_0x1d5df7);}_0x440b84[_0x536426(0x248)]([_0x8e373[_0x536426(0x22a)],_0x206727]);}return _0x440b84;}),this[_0x50754c(0x1f6)](_0x2835f5,_0x50754c(0x250),(_0x4cc49f,_0x50e925)=>{const _0x35caf7=_0x50754c;this[_0x35caf7(0x1f6)](_0x50e925,_0x35caf7(0x24b),(_0x115c3a,_0x4b7380,_0x3df383,_0x6c75cf)=>{const _0x162b5d=_0x35caf7;_0x50e925[_0x162b5d(0x237)]&&(null==_0x3df383?(this[_0x162b5d(0x223)](_0x6c75cf[_0x162b5d(0x259)]),this[_0x162b5d(0x1df)](_0x50e925,!0x1)):(this[_0x162b5d(0x223)](_0x3df383[_0x162b5d(0x259)]),null==_0x6c75cf&&this[_0x162b5d(0x1df)](_0x50e925,!0x0)));}),null!==_0x50e925[_0x35caf7(0x1f7)]?this[_0x35caf7(0x223)](_0x50e925[_0x35caf7(0x259)]):this[_0x35caf7(0x1df)](_0x50e925,!0x1);}),this[_0x50754c(0x1f6)](_0x2835f5,_0x50754c(0x1f5),(_0x4c0ac2,_0x34aa3b,_0x388680)=>{const _0x1ba364=_0x50754c;this[_0x1ba364(0x25e)](_0x34aa3b,_0x1ba364(0x24b)),this[_0x1ba364(0x240)][_0x1ba364(0x1e1)](_0x34aa3b),this[_0x1ba364(0x249)][_0x1ba364(0x232)](_0x34aa3b)&&this[_0x1ba364(0x1e5)](_0x34aa3b),_0x388680&&this[_0x1ba364(0x223)](_0x388680[_0x1ba364(0x259)]);}),this[_0x50754c(0x1f6)](_0x2835f5,_0x50754c(0x1fa),(_0x35c3aa,_0x3dec87)=>{const _0x4fbaef=_0x50754c;this[_0x4fbaef(0x223)](_0x3dec87);}),this[_0x50754c(0x1f6)](_0x521dab,_0x50754c(0x215),()=>{const _0xb2e83e=_0x50754c;this[_0xb2e83e(0x227)]();}),this[_0x50754c(0x1f6)](_0x212ee6,_0x50754c(0x1f8),(_0x58539d,{threadId:_0x33d042,isFromAdapter:_0x5dc665})=>{const _0x43e23d=_0x50754c;if(_0x5dc665||!_0x2835f5[_0x43e23d(0x252)](_0x33d042))return;const _0x12dc8f=_0x2835f5[_0x43e23d(0x21e)](_0x33d042);this[_0x43e23d(0x249)][_0x43e23d(0x23a)](_0x12dc8f)[_0x43e23d(0x22a)][_0x43e23d(0x1ff)]();},{'priority':_0x50754c(0x24d)});}[_0x611581(0x227)](){const _0x52235d=_0x611581,_0x4d3539=this[_0x52235d(0x222)][_0x52235d(0x235)][_0x52235d(0x23a)](_0x52235d(0x1dc)),_0x31b077=this[_0x52235d(0x222)][_0x52235d(0x235)][_0x52235d(0x23a)](_0x52235d(0x20b)),_0x52fbef=Array[_0x52235d(0x210)](_0x4d3539[_0x52235d(0x247)],_0x19a537=>_0x19a537[_0x52235d(0x254)])[_0x52235d(0x256)](_0x4838ae=>this[_0x52235d(0x23b)][_0x52235d(0x232)](_0x4838ae)),_0x65bf4d=[];for(const _0x2515c0 of _0x52fbef){const _0x1f4e14=this[_0x52235d(0x23b)][_0x52235d(0x23a)](_0x2515c0)[_0x52235d(0x218)][_0x52235d(0x1f9)]();_0x65bf4d[_0x52235d(0x248)](..._0x1f4e14[_0x52235d(0x1de)]((_0x323673,_0x46cd31)=>[..._0x323673,..._0x46cd31[_0x52235d(0x258)]()],[]));}_0x31b077[_0x52235d(0x243)]=_0x65bf4d;}[_0x611581(0x21b)](_0x120255){const _0x202c40=_0x611581,_0x1fbde0=_0x139b0d(_0x120255,_0x10db32),_0xed75d3=this[_0x202c40(0x222)][_0x202c40(0x209)][_0x202c40(0x23a)](_0x202c40(0x25c)),_0x12be1c=_0x3dc4b6(_0x120255,_0x202c40(0x22d));_0x1fbde0[_0x202c40(0x234)][_0x202c40(0x20e)]({'tooltip':_0x12be1c,'label':_0x12be1c,'icon':_0x578beb}),_0x1fbde0[_0x202c40(0x234)][_0x202c40(0x245)](_0x202c40(0x1ef))['to'](_0xed75d3,_0x202c40(0x231)),_0x1fbde0[_0x202c40(0x234)]['on'](_0x202c40(0x1da),()=>{const _0x16482d=_0x202c40;_0xed75d3[_0x16482d(0x1da)](),this[_0x16482d(0x222)][_0x16482d(0x23f)][_0x16482d(0x22a)][_0x16482d(0x1ff)]();});const _0x8d90db=new _0x17482f(),_0x1c3b1a=[{'type':_0x202c40(0x1f2),'model':{'withText':!0x0,'label':_0x12be1c,'commandName':_0x202c40(0x25c)}},{'type':_0x202c40(0x244)},{'type':_0x202c40(0x204),'model':{'withText':!0x0,'label':_0x3dc4b6(_0x120255,_0x202c40(0x217)),'commandName':_0x202c40(0x241)}},{'type':_0x202c40(0x204),'model':{'withText':!0x0,'label':_0x3dc4b6(_0x120255,_0x202c40(0x20f)),'commandName':_0x202c40(0x1f1)}},{'type':_0x202c40(0x204),'model':{'withText':!0x0,'label':_0x3dc4b6(_0x120255,_0x202c40(0x203)),'commandName':_0x202c40(0x1f0)}},{'type':_0x202c40(0x204),'model':{'withText':!0x0,'label':_0x3dc4b6(_0x120255,_0x202c40(0x1e2)),'commandName':_0x202c40(0x21c)}}];for(const _0x451e55 of _0x1c3b1a){let _0x273633={'type':_0x202c40(0x244)};if(_0x451e55[_0x202c40(0x218)]){const _0x4b8036=new _0x55db4f(_0x451e55[_0x202c40(0x218)]),_0x3f62cc=this[_0x202c40(0x222)][_0x202c40(0x209)][_0x202c40(0x23a)](_0x4b8036[_0x202c40(0x202)]);_0x4b8036[_0x202c40(0x245)](_0x202c40(0x1ef),_0x202c40(0x230))['to'](_0x3f62cc,_0x202c40(0x231),_0x202c40(0x230)),_0x273633={'type':_0x451e55[_0x202c40(0x239)],'model':_0x4b8036};}_0x8d90db[_0x202c40(0x1eb)](_0x273633);}_0x50ea5d(_0x1fbde0,_0x8d90db);const _0x36b93c=_0x1c3b1a[_0x202c40(0x256)](_0x56ca8b=>null!=_0x56ca8b[_0x202c40(0x218)])[_0x202c40(0x205)](_0x19d7ab=>this[_0x202c40(0x222)][_0x202c40(0x209)][_0x202c40(0x23a)](_0x19d7ab[_0x202c40(0x218)][_0x202c40(0x202)])),_0x1cec74=_0x1fbde0[_0x202c40(0x234)];return _0x1cec74[_0x202c40(0x1e3)][_0x202c40(0x1e8)](_0x202c40(0x230)),_0x1cec74[_0x202c40(0x1db)][_0x202c40(0x1e8)](_0x202c40(0x230)),_0x1cec74[_0x202c40(0x1e3)][_0x202c40(0x245)](_0x202c40(0x230))['to'](_0xed75d3,_0x202c40(0x230)),_0x1cec74[_0x202c40(0x1db)][_0x202c40(0x245)](_0x202c40(0x230))[_0x202c40(0x251)](_0x36b93c,_0x202c40(0x230),(..._0x1ea23d)=>_0x1ea23d[_0x202c40(0x246)](_0x2bac97=>_0x2bac97)),_0x1fbde0['on'](_0x202c40(0x1da),_0x27f7f4=>{const _0x18ae64=_0x202c40;this[_0x18ae64(0x222)][_0x18ae64(0x1da)](_0x27f7f4[_0x18ae64(0x213)][_0x18ae64(0x202)]),this[_0x18ae64(0x222)][_0x18ae64(0x23f)][_0x18ae64(0x22a)][_0x18ae64(0x1ff)]();}),_0x1fbde0;}[_0x611581(0x214)](_0xed8a6){const _0xdab230=_0x611581,_0xf4c12f=this[_0xdab230(0x222)],_0x13a1c0=_0xf4c12f[_0xdab230(0x1f3)],_0x45bdbb=_0xf4c12f[_0xdab230(0x235)][_0xdab230(0x23a)](_0xdab230(0x1dc)),_0x6eb5b6=_0xf4c12f[_0xdab230(0x235)][_0xdab230(0x23a)](_0xdab230(0x25a)),_0x171b20=_0xf4c12f[_0xdab230(0x235)][_0xdab230(0x23a)](_0xdab230(0x242)),_0x4abf36=_0xf4c12f[_0xdab230(0x235)][_0xdab230(0x23a)](_0xecc107)['me'],_0x2eafc1=_0x13a1c0[_0xdab230(0x23a)](_0xdab230(0x25c))[_0xdab230(0x1fd)],{CommentsListView:_0x2f40cf,CommentThreadInputView:_0xdde815}=_0xf4c12f[_0xdab230(0x235)][_0xdab230(0x23a)](_0xdab230(0x220));let _0x1551f8,_0x2809ef;this[_0xdab230(0x1ec)][_0xdab230(0x232)](_0xed8a6['id'])?(_0x2809ef=this[_0xdab230(0x1ec)][_0xdab230(0x23a)](_0xed8a6['id']),_0x1551f8=_0x2809ef[_0xdab230(0x1e7)]):(_0x1551f8=new _0x2eafc1(_0xf4c12f[_0xdab230(0x207)],_0xed8a6,_0x4abf36,{'disableComments':this[_0xdab230(0x1e9)],'editorConfig':_0x13a1c0[_0xdab230(0x23a)](_0xdab230(0x255)),'maxCommentsWhenCollapsed':_0x13a1c0[_0xdab230(0x23a)](_0xdab230(0x20a)),'maxThreadTotalWeight':_0x13a1c0[_0xdab230(0x23a)](_0xdab230(0x22c)),'maxCommentCharsWhenCollapsed':_0x13a1c0[_0xdab230(0x23a)](_0xdab230(0x21d)),'formatDateTime':_0x30a588(_0x13a1c0[_0xdab230(0x23a)](_0xdab230(0x207))),'CommentView':_0x13a1c0[_0xdab230(0x23a)](_0xdab230(0x221))[_0xdab230(0x211)],'CommentsListView':_0x2f40cf,'CommentThreadInputView':_0xdde815}),_0x1551f8[_0xdab230(0x229)]['on'](_0xdab230(0x1da),()=>{const _0x1034ef=_0xdab230;_0xf4c12f[_0x1034ef(0x23f)][_0x1034ef(0x22a)][_0x1034ef(0x1ff)]();}),_0x1551f8[_0xdab230(0x1ee)]['on'](_0xdab230(0x1da),()=>{const _0x1afd11=_0xdab230;_0xf4c12f[_0x1afd11(0x23f)][_0x1afd11(0x22a)][_0x1afd11(0x1ff)]();}),_0x2809ef=_0x45bdbb[_0xdab230(0x1e4)](this[_0xdab230(0x222)][_0xdab230(0x207)],_0x1551f8),_0x2809ef[_0xdab230(0x245)](_0xdab230(0x206))['to'](_0x1551f8,_0xdab230(0x206)),_0x2809ef[_0xdab230(0x245)](_0xdab230(0x260))['to'](_0x1551f8),_0x2809ef[_0xdab230(0x245)](_0xdab230(0x239))['to'](_0x1551f8,_0xdab230(0x239),_0x214dc3=>_0xdab230(0x1fc)+_0x214dc3),this[_0xdab230(0x1ec)][_0xdab230(0x20e)](_0xed8a6['id'],_0x2809ef));const _0x112cff=_0x6eb5b6[_0xdab230(0x22f)](_0xed8a6[_0xdab230(0x236)],_0x1551f8),_0x5cbe03=new _0x536ef6(_0xf4c12f,_0xed8a6,_0x1551f8,_0x112cff),_0x4dd2d6=_0xed8a6[_0xdab230(0x1f9)]()[_0xdab230(0x256)](_0xa7cbb3=>_0xa7cbb3[_0xdab230(0x237)]);_0x1551f8[_0xdab230(0x1ed)]=_0xf4c12f[_0xdab230(0x235)][_0xdab230(0x23a)](_0xdab230(0x20b))[_0xdab230(0x25b)][_0xdab230(0x25f)](_0x4dd2d6),this[_0xdab230(0x249)][_0xdab230(0x20e)](_0xed8a6,_0x5cbe03),this[_0xdab230(0x23b)][_0xdab230(0x20e)](_0x1551f8,_0x5cbe03);const _0x10de3d=_0x45bdbb[_0xdab230(0x238)]({'view':_0x2809ef,'target':()=>{const _0x4898c7=_0xdab230,_0x2969ea=[],_0x1aa361=_0xed8a6[_0x4898c7(0x1f9)]()[_0x4898c7(0x256)](_0x4ae745=>_0x4ae745[_0x4898c7(0x237)]);for(const _0x23deab of _0x1aa361)_0x2969ea[_0x4898c7(0x248)](..._0x23deab[_0x4898c7(0x23e)]());return _0x1e9b1a(_0xf4c12f[_0x4898c7(0x23f)],_0x2969ea);},'type':()=>_0xdab230(0x1fc)+_0x5cbe03[_0xdab230(0x22a)][_0xdab230(0x239)]});_0x6eb5b6[_0xdab230(0x25d)](_0x1551f8,_0x10de3d),_0x45bdbb[_0xdab230(0x1eb)](_0x10de3d),_0x171b20[_0xdab230(0x226)](_0x10de3d);}[_0x611581(0x1e5)](_0xd194c8){const _0x57eced=_0x611581,_0x47042f=this[_0x57eced(0x222)][_0x57eced(0x235)][_0x57eced(0x23a)](_0x57eced(0x25a)),_0x2e0007=this[_0x57eced(0x222)][_0x57eced(0x235)][_0x57eced(0x23a)](_0x57eced(0x1dc)),_0xbbe0d1=this[_0x57eced(0x249)][_0x57eced(0x23a)](_0xd194c8),_0x10b5b3=_0xbbe0d1[_0x57eced(0x22a)],_0x42833b=_0x2e0007[_0x57eced(0x200)](_0x10b5b3);_0x47042f[_0x57eced(0x1e6)](_0x10b5b3),_0x42833b&&_0x2e0007[_0x57eced(0x208)](_0x42833b),this[_0x57eced(0x249)][_0x57eced(0x1e1)](_0xd194c8),this[_0x57eced(0x23b)][_0x57eced(0x1e1)](_0x10b5b3),_0xbbe0d1[_0x57eced(0x21f)]();}[_0x611581(0x223)](_0x1cbe29){const _0x55db7b=_0x611581;if(!_0x1cbe29[_0x55db7b(0x237)]||!this[_0x55db7b(0x249)][_0x55db7b(0x232)](_0x1cbe29))return;const _0xb942b7=this[_0x55db7b(0x222)][_0x55db7b(0x235)][_0x55db7b(0x23a)](_0x55db7b(0x20b)),_0x173f89=this[_0x55db7b(0x249)][_0x55db7b(0x23a)](_0x1cbe29),_0x1c5f83=_0x1cbe29[_0x55db7b(0x1f9)]();_0x173f89[_0x55db7b(0x22a)][_0x55db7b(0x1ed)]=_0xb942b7[_0x55db7b(0x25b)][_0x55db7b(0x25f)](_0x1c5f83);}[_0x611581(0x21f)](){const _0x52ca50=_0x611581;for(const _0x54e82b of this[_0x52ca50(0x249)][_0x52ca50(0x253)]())this[_0x52ca50(0x1e5)](_0x54e82b);for(const _0x3717f4 of this[_0x52ca50(0x1ec)][_0x52ca50(0x1e0)]())_0x3717f4[_0x52ca50(0x1e7)][_0x52ca50(0x21f)]();super[_0x52ca50(0x21f)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a614a=_0x12c6;(function(_0x4bab2b,_0x266022){const _0x4d0573=_0x12c6,_0x37af48=_0x4bab2b();while(!![]){try{const _0x2c2326=-parseInt(_0x4d0573(0x87))/0x1+-parseInt(_0x4d0573(0x81))/0x2*(-parseInt(_0x4d0573(0x80))/0x3)+-parseInt(_0x4d0573(0x8d))/0x4+-parseInt(_0x4d0573(0x72))/0x5*(-parseInt(_0x4d0573(0x70))/0x6)+parseInt(_0x4d0573(0x8f))/0x7+-parseInt(_0x4d0573(0x84))/0x8+-parseInt(_0x4d0573(0x7d))/0x9*(-parseInt(_0x4d0573(0x91))/0xa);if(_0x2c2326===_0x266022)break;else _0x37af48['push'](_0x37af48['shift']());}catch(_0x58b585){_0x37af48['push'](_0x37af48['shift']());}}}(_0x2d7b,0x7e865));import{ObservableMixin as _0x253df4}from'ckeditor5/src/utils.js';import{getTranslation as _0x3476f8}from'../utils/common-translations.js';function _0x2d7b(){const _0x5bf86a=['_discardCommand','plugins','isEnabled','_editor','isDirty','locale','destroy','_acceptCommand','243GowmsH','getRanges','change:isDirty','3wvSCJg','449838leOpuD','unbind','canDiscard','3049856rqqQuy','_setPendingAction','canAccept','926781nPwNAV','remove','acceptSuggestion','_pendingAction','get','model','3300508pSkqgR','view','328230bvEqJq','PendingActions','515890GTovru','add','PENDING_ACTION_SUGGESTION','commentThreadController','discardSuggestion','stopListening','canEditAt','commands','execute','6mkMwdK','_removePendingAction','4933365XyWkXZ','listenTo','bind'];_0x2d7b=function(){return _0x5bf86a;};return _0x2d7b();}function _0x12c6(_0x1716e1,_0x29a23c){const _0x2d7b1c=_0x2d7b();return _0x12c6=function(_0x12c61e,_0xdd85e){_0x12c61e=_0x12c61e-0x6e;let _0x5d910e=_0x2d7b1c[_0x12c61e];return _0x5d910e;},_0x12c6(_0x1716e1,_0x29a23c);}export default class Xt extends _0x253df4(){constructor(_0x37cb25,_0x5562d0,_0x5c8d26,_0x530e07){const _0x5ec45f=_0x12c6;super(),this[_0x5ec45f(0x8c)]=_0x5562d0,this[_0x5ec45f(0x8e)]=_0x5c8d26,this[_0x5ec45f(0x94)]=_0x530e07,this[_0x5ec45f(0x78)]=_0x37cb25,this[_0x5ec45f(0x7c)]=_0x37cb25[_0x5ec45f(0x6e)][_0x5ec45f(0x8b)](_0x5ec45f(0x89)),this[_0x5ec45f(0x75)]=_0x37cb25[_0x5ec45f(0x6e)][_0x5ec45f(0x8b)](_0x5ec45f(0x95)),this[_0x5ec45f(0x8e)][_0x5ec45f(0x74)](_0x5ec45f(0x77))['to'](this[_0x5ec45f(0x7c)],this[_0x5ec45f(0x75)],(_0x1149db,_0x282db7)=>_0x1149db||_0x282db7),this[_0x5ec45f(0x8e)][_0x5ec45f(0x74)](_0x5ec45f(0x86))['to'](this[_0x5ec45f(0x7c)],_0x5ec45f(0x77),_0x2d10a9=>_0x2d10a9&&this[_0x5ec45f(0x78)][_0x5ec45f(0x8c)][_0x5ec45f(0x97)](_0x5562d0[_0x5ec45f(0x7e)]())),this[_0x5ec45f(0x8e)][_0x5ec45f(0x74)](_0x5ec45f(0x83))['to'](this[_0x5ec45f(0x75)],_0x5ec45f(0x77),_0x23d591=>_0x23d591&&this[_0x5ec45f(0x78)][_0x5ec45f(0x8c)][_0x5ec45f(0x97)](_0x5562d0[_0x5ec45f(0x7e)]())),this[_0x5ec45f(0x8a)]=null,_0x5c8d26[_0x5ec45f(0x79)]&&this[_0x5ec45f(0x85)](),this[_0x5ec45f(0x73)](_0x5c8d26,_0x5ec45f(0x89),()=>this[_0x5ec45f(0x89)]()),this[_0x5ec45f(0x73)](_0x5c8d26,_0x5ec45f(0x95),()=>this[_0x5ec45f(0x95)]()),this[_0x5ec45f(0x73)](_0x5c8d26,_0x5ec45f(0x7f),()=>{const _0x4ba503=_0x5ec45f;_0x5c8d26[_0x4ba503(0x79)]?this[_0x4ba503(0x85)]():this[_0x4ba503(0x71)]();});}[_0x5a614a(0x89)](){const _0x505073=_0x5a614a;this[_0x505073(0x7c)][_0x505073(0x6f)](this[_0x505073(0x8c)]['id']);}[_0x5a614a(0x95)](){const _0x3bdf9c=_0x5a614a;this[_0x3bdf9c(0x75)][_0x3bdf9c(0x6f)](this[_0x3bdf9c(0x8c)]['id']);}[_0x5a614a(0x7b)](){const _0x550e30=_0x5a614a;this[_0x550e30(0x8e)][_0x550e30(0x82)](_0x550e30(0x77)),this[_0x550e30(0x8e)][_0x550e30(0x82)](_0x550e30(0x86)),this[_0x550e30(0x8e)][_0x550e30(0x82)](_0x550e30(0x83)),this[_0x550e30(0x96)](),this[_0x550e30(0x94)][_0x550e30(0x7b)](),this[_0x550e30(0x8a)]&&this[_0x550e30(0x71)]();}[_0x5a614a(0x85)](){const _0x4489e3=_0x5a614a,_0xf97ea4=_0x3476f8(this[_0x4489e3(0x78)][_0x4489e3(0x7a)],_0x4489e3(0x93));this[_0x4489e3(0x8a)]=this[_0x4489e3(0x78)][_0x4489e3(0x76)][_0x4489e3(0x8b)](_0x4489e3(0x90))[_0x4489e3(0x92)](_0xf97ea4);}[_0x5a614a(0x71)](){const _0x22e05b=_0x5a614a;null!==this[_0x22e05b(0x8a)]&&this[_0x22e05b(0x78)][_0x22e05b(0x76)][_0x22e05b(0x8b)](_0x22e05b(0x90))[_0x22e05b(0x88)](this[_0x22e05b(0x8a)]),this[_0x22e05b(0x8a)]=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50bd7f=_0x1f36;(function(_0xb3a448,_0x4e181a){const _0x297071=_0x1f36,_0x468be9=_0xb3a448();while(!![]){try{const _0x57aa06=parseInt(_0x297071(0x1a3))/0x1+-parseInt(_0x297071(0x1be))/0x2*(parseInt(_0x297071(0x197))/0x3)+-parseInt(_0x297071(0x18f))/0x4*(-parseInt(_0x297071(0x1a4))/0x5)+-parseInt(_0x297071(0x1c1))/0x6*(-parseInt(_0x297071(0x1aa))/0x7)+parseInt(_0x297071(0x1c2))/0x8*(parseInt(_0x297071(0x19d))/0x9)+-parseInt(_0x297071(0x1ab))/0xa*(-parseInt(_0x297071(0x1bd))/0xb)+-parseInt(_0x297071(0x19b))/0xc;if(_0x57aa06===_0x4e181a)break;else _0x468be9['push'](_0x468be9['shift']());}catch(_0x225083){_0x468be9['push'](_0x468be9['shift']());}}}(_0x46b5,0xde9a4));import{View as _0x20b957}from'ckeditor5/src/ui.js';function _0x1f36(_0x396e60,_0x3cc3ce){const _0x46b58e=_0x46b5();return _0x1f36=function(_0x1f360e,_0x3893d2){_0x1f360e=_0x1f360e-0x18e;let _0x61fd42=_0x46b58e[_0x1f360e];return _0x61fd42;},_0x1f36(_0x396e60,_0x3cc3ce);}function _0x46b5(){const _0x424a89=['canDiscard','60591pNMEXg','_config','addComment','canAccept','14751780sMcXUB','isReadOnly','63aUQkfb','setData','isActive','assign','destroy','CommentView','87070MqjNRI','6890gMBYto','length','fire','cancel','_createCommentThreadInputView','updateComment','16051qjRZbu','4278830RoKYdJ','element','submit','commentThreadInputView','isDirty','editorConfig','set','bind','_createCommentViews','locale','commentInputView','disableComments','removeComment','value','delegate','showInput','authoredAt','_localUser','33tEovpo','134mAmtDk','hasDirtyComment','commentsListView','1230WXPuoq','475504LRHNRj','focus','3592ZFFGKJ','isEnabled','editor','descriptionParts','_model','disabledSubmit','commentThread'];_0x46b5=function(){return _0x424a89;};return _0x46b5();}export default class es extends _0x20b957{constructor(_0x2c21da,_0x58df42,_0x30379f,_0x210b24){const _0x362e1a=_0x1f36;super(_0x2c21da),this[_0x362e1a(0x1c0)]=null,this[_0x362e1a(0x1ae)]=null,this[_0x362e1a(0x1b1)](_0x362e1a(0x19f),!0x1),this[_0x362e1a(0x1b1)](_0x362e1a(0x1bb),_0x58df42[_0x362e1a(0x1bb)]),this[_0x362e1a(0x1b2)](_0x362e1a(0x1bb))['to'](_0x58df42),this[_0x362e1a(0x1b1)](_0x362e1a(0x192),[]),this[_0x362e1a(0x1b1)](_0x362e1a(0x1af),!0x1),this[_0x362e1a(0x1b1)](_0x362e1a(0x190),!0x1),this[_0x362e1a(0x1b1)](_0x362e1a(0x19a),!0x1),this[_0x362e1a(0x1b1)](_0x362e1a(0x196),!0x1),this[_0x362e1a(0x193)]=_0x58df42,this[_0x362e1a(0x1bc)]=_0x30379f,this[_0x362e1a(0x198)]=_0x210b24,_0x210b24[_0x362e1a(0x1b6)]?this[_0x362e1a(0x1b1)](_0x362e1a(0x1a5),0x1):this[_0x362e1a(0x1b3)]();}[_0x50bd7f(0x18e)](){const _0x5f4c0c=_0x50bd7f;this[_0x5f4c0c(0x1ac)][_0x5f4c0c(0x18e)]();}[_0x50bd7f(0x1a1)](){const _0x5acc6e=_0x50bd7f;this[_0x5acc6e(0x1c0)]&&this[_0x5acc6e(0x1c0)][_0x5acc6e(0x1a1)](),this[_0x5acc6e(0x1ae)]&&this[_0x5acc6e(0x1ae)][_0x5acc6e(0x1a1)](),super[_0x5acc6e(0x1a1)]();}[_0x50bd7f(0x1b3)](){const _0x1e61b9=_0x50bd7f,{CommentsListView:_0x40b31c}=this[_0x1e61b9(0x198)];this[_0x1e61b9(0x1c0)]=new _0x40b31c(this[_0x1e61b9(0x1b4)],this[_0x1e61b9(0x193)][_0x1e61b9(0x195)],Object[_0x1e61b9(0x1a0)]({'CommentView':this[_0x1e61b9(0x198)][_0x1e61b9(0x1a2)]},this[_0x1e61b9(0x198)])),this[_0x1e61b9(0x1c0)][_0x1e61b9(0x1b9)](_0x1e61b9(0x1b7))['to'](this),this[_0x1e61b9(0x1c0)][_0x1e61b9(0x1b9)](_0x1e61b9(0x1a9))['to'](this),this[_0x1e61b9(0x1c0)][_0x1e61b9(0x1b2)](_0x1e61b9(0x19f))['to'](this),this[_0x1e61b9(0x1b1)](_0x1e61b9(0x1a5),this[_0x1e61b9(0x1c0)][_0x1e61b9(0x1a5)]+0x1),this[_0x1e61b9(0x1b2)](_0x1e61b9(0x1a5))['to'](this[_0x1e61b9(0x1c0)],_0x1e61b9(0x1a5),_0x3082fa=>_0x3082fa+0x1),this[_0x1e61b9(0x1ae)]=this[_0x1e61b9(0x1a8)](),this['on'](_0x1e61b9(0x1b7),()=>this[_0x1e61b9(0x18e)]()),this[_0x1e61b9(0x1b2)](_0x1e61b9(0x1af))['to'](this[_0x1e61b9(0x1c0)],_0x1e61b9(0x1bf),this[_0x1e61b9(0x1ae)][_0x1e61b9(0x1b5)],_0x1e61b9(0x1b8),(_0x520e08,_0x5a1321)=>_0x520e08||!!_0x5a1321);}[_0x50bd7f(0x1a8)](){const _0x5ae108=_0x50bd7f,{CommentThreadInputView:_0x471b9e}=this[_0x5ae108(0x198)],_0x325ebb=new _0x471b9e(this[_0x5ae108(0x1b4)],this[_0x5ae108(0x1bc)],this[_0x5ae108(0x198)][_0x5ae108(0x1b0)]),_0x2dcff0=_0x325ebb[_0x5ae108(0x1b5)];return _0x325ebb[_0x5ae108(0x1b2)](_0x5ae108(0x1ba))['to'](this,_0x5ae108(0x19f),this[_0x5ae108(0x193)][_0x5ae108(0x195)],_0x5ae108(0x19c),_0x2dcff0,_0x5ae108(0x1b8),(_0x3b053e,_0x1acdbe,_0x50c7fd)=>!!_0x50c7fd||_0x3b053e&&!_0x1acdbe),_0x2dcff0['on'](_0x5ae108(0x1ad),(_0x3d91d7,_0x2f566a)=>{const _0x1ee339=_0x5ae108;this[_0x1ee339(0x1a6)](_0x1ee339(0x199),_0x2f566a),_0x2dcff0[_0x1ee339(0x191)][_0x1ee339(0x19e)]('');}),_0x2dcff0['on'](_0x5ae108(0x1a7),()=>this[_0x5ae108(0x18e)]()),_0x2dcff0[_0x5ae108(0x1b2)](_0x5ae108(0x194))['to'](this[_0x5ae108(0x193)][_0x5ae108(0x195)],_0x5ae108(0x19c)),_0x325ebb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47374c=_0x13df;(function(_0x331e2b,_0x1420db){const _0x16db32=_0x13df,_0x4ad1da=_0x331e2b();while(!![]){try{const _0x5843d8=parseInt(_0x16db32(0x18b))/0x1*(parseInt(_0x16db32(0x182))/0x2)+-parseInt(_0x16db32(0x1aa))/0x3+parseInt(_0x16db32(0x196))/0x4+-parseInt(_0x16db32(0x1ad))/0x5*(parseInt(_0x16db32(0x19d))/0x6)+-parseInt(_0x16db32(0x1ca))/0x7*(parseInt(_0x16db32(0x199))/0x8)+parseInt(_0x16db32(0x1ba))/0x9+-parseInt(_0x16db32(0x17a))/0xa;if(_0x5843d8===_0x1420db)break;else _0x4ad1da['push'](_0x4ad1da['shift']());}catch(_0x13e88e){_0x4ad1da['push'](_0x4ad1da['shift']());}}}(_0x205d,0xbc181));import{getTranslation as _0x1b0372}from'../../utils/common-translations.js';import{default as _0x427f50}from'./basesuggestionthreadview.js';import{ButtonView as _0x498719}from'ckeditor5/src/ui.js';import{icons as _0x117c22}from'ckeditor5/src/core.js';import{trimHtml as _0x581aa9,UserView as _0x341325}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x13df(_0x344a31,_0x580d5){const _0x205d7b=_0x205d();return _0x13df=function(_0x13df2a,_0x1386e6){_0x13df2a=_0x13df2a-0x16a;let _0x84776b=_0x205d7b[_0x13df2a];return _0x84776b;},_0x13df(_0x344a31,_0x580d5);}export default class Yt extends _0x427f50{constructor(_0x1f5851,_0x1b02c3,_0x3a5ed9,_0x5db7fe){const _0x55dbc7=_0x13df;super(_0x1f5851,_0x1b02c3,_0x3a5ed9,_0x5db7fe),this[_0x55dbc7(0x18f)](_0x55dbc7(0x184),''),this[_0x55dbc7(0x174)](_0x55dbc7(0x184))['to'](this,_0x55dbc7(0x1b8),_0x8cba17=>_0x8cba17&&_0x8cba17[0x0]?_0x8cba17[0x0][_0x55dbc7(0x184)]:''),this[_0x55dbc7(0x174)](_0x55dbc7(0x1b6))['to'](this,_0x55dbc7(0x1b8),this,_0x55dbc7(0x181),(_0x2df13d,_0x3e260d)=>{const _0x488134=_0x55dbc7;let _0x4ca514='';for(const _0x461b5b of _0x2df13d)_0x4ca514+=_0x488134(0x1a0)+ds(_0x461b5b[_0x488134(0x191)],_0x461b5b[_0x488134(0x1b7)])+_0x488134(0x1a8);return _0x3e260d?_0x4ca514:_0x581aa9(_0x4ca514,{'limit':0x8c});}),this[_0x55dbc7(0x1bd)]=null,this[_0x55dbc7(0x1b3)]=this[_0x55dbc7(0x17f)](_0x1b0372(_0x1f5851,_0x55dbc7(0x1a5)),_0x117c22[_0x55dbc7(0x1cd)],_0x55dbc7(0x1c6),_0x55dbc7(0x19a),'sw'),this[_0x55dbc7(0x1b3)][_0x55dbc7(0x174)](_0x55dbc7(0x1bc))['to'](this,_0x55dbc7(0x16f)),this[_0x55dbc7(0x19c)]=this[_0x55dbc7(0x17f)](_0x1b0372(_0x1f5851,_0x55dbc7(0x180)),_0x117c22[_0x55dbc7(0x1c1)],_0x55dbc7(0x1d0),_0x55dbc7(0x1c2),'sw'),this[_0x55dbc7(0x19c)][_0x55dbc7(0x174)](_0x55dbc7(0x1bc))['to'](this,_0x55dbc7(0x170)),this[_0x55dbc7(0x1c9)]=new _0x341325(_0x1f5851,this[_0x55dbc7(0x187)][_0x55dbc7(0x197)],this[_0x55dbc7(0x1a2)]()),this[_0x55dbc7(0x1c9)][_0x55dbc7(0x194)]({'attributes':{'class':[_0x55dbc7(0x1a9),_0x55dbc7(0x1b5)]}}),this[_0x55dbc7(0x1c7)](this[_0x55dbc7(0x16d)]());}[_0x47374c(0x16d)](){const _0x312f75=_0x47374c,_0x415bb1=this[_0x312f75(0x1c5)],_0x44c159=[{'tag':_0x312f75(0x1a3),'attributes':{'class':[_0x312f75(0x173),_0x312f75(0x1af)]},'children':[{'tag':_0x312f75(0x17b),'children':[{'text':this[_0x312f75(0x1c9)][_0x312f75(0x1cf)]}],'attributes':{'class':[_0x312f75(0x1b2),_0x312f75(0x17c)]}},{'tag':_0x312f75(0x16a),'attributes':{'datetime':_0x415bb1['to'](_0x312f75(0x1a4)),'class':[_0x312f75(0x1a1),_0x312f75(0x1b4)]},'children':[{'text':_0x415bb1['to'](_0x312f75(0x1a4),_0x15e72d=>this[_0x312f75(0x18e)][_0x312f75(0x1ab)](_0x15e72d))}]}]},{'tag':_0x312f75(0x1a3),'attributes':{'class':[_0x312f75(0x1cb),_0x312f75(0x189)]},'children':[this[_0x312f75(0x1b3)],this[_0x312f75(0x19c)]]},{'tag':_0x312f75(0x1a3),'attributes':{'class':[_0x312f75(0x185)]}}];this[_0x312f75(0x187)][_0x312f75(0x190)]&&_0x44c159[_0x312f75(0x172)]({'tag':_0x312f75(0x1a3),'attributes':{'class':[_0x312f75(0x1d7)]},'children':[{'text':this[_0x312f75(0x1a6)]()}]});const _0x308202={'tag':_0x312f75(0x1a3),'attributes':{'class':[_0x312f75(0x1c3),_0x415bb1['if'](_0x312f75(0x181),_0x312f75(0x1a7)),_0x415bb1['to'](_0x312f75(0x184),_0x5816cd=>_0x312f75(0x186)+_0x5816cd),this[_0x312f75(0x18e)][_0x312f75(0x1c4)]&&_0x312f75(0x175)],'data-suggestion-id':this[_0x312f75(0x187)]['id'],'data-thread-id':this[_0x312f75(0x187)][_0x312f75(0x188)]['id'],'data-author-id':this[_0x312f75(0x187)][_0x312f75(0x197)]['id'],'tabindex':-0x1},'children':[{'tag':_0x312f75(0x1a3),'attributes':{'class':[_0x312f75(0x16b),_0x312f75(0x1ac)]},'children':[this[_0x312f75(0x1c9)],{'tag':_0x312f75(0x1a3),'attributes':{'class':[_0x312f75(0x1be),_0x312f75(0x179)]},'children':_0x44c159}]}]};return this[_0x312f75(0x18d)]&&this[_0x312f75(0x1ae)]&&(_0x308202[_0x312f75(0x1bb)][_0x312f75(0x172)](this[_0x312f75(0x18d)],this[_0x312f75(0x1ae)]),this[_0x312f75(0x18d)][_0x312f75(0x1d6)](_0x312f75(0x19f))['to'](this),this[_0x312f75(0x18d)][_0x312f75(0x1d6)](_0x312f75(0x18a))['to'](this),this[_0x312f75(0x1ae)][_0x312f75(0x1d6)](_0x312f75(0x19f))['to'](this),this[_0x312f75(0x1ae)][_0x312f75(0x1d6)](_0x312f75(0x18a))['to'](this)),_0x308202;}[_0x47374c(0x177)](){const _0x2bd8e5=_0x47374c;super[_0x2bd8e5(0x177)](),this[_0x2bd8e5(0x1bd)]=this[_0x2bd8e5(0x17d)][_0x2bd8e5(0x1d1)](_0x2bd8e5(0x1b1)),this[_0x2bd8e5(0x1bd)][_0x2bd8e5(0x192)]=this[_0x2bd8e5(0x1b6)],this['on'](_0x2bd8e5(0x1ce),(_0x45b648,_0x1c7991,_0x2e0517)=>{const _0x22a2b5=_0x2bd8e5;this[_0x22a2b5(0x1bd)][_0x22a2b5(0x192)]=_0x2e0517;});}[_0x47374c(0x17f)](_0x5a9574,_0x328d65,_0x524553,_0x4274f8,_0x4aab6c){const _0x37f632=_0x47374c,_0xd3508d=new _0x498719(this[_0x37f632(0x18c)]);return _0xd3508d[_0x37f632(0x18f)]({'label':_0x5a9574,'icon':_0x328d65,'tooltip':!0x0,'tooltipPosition':_0x4aab6c}),_0xd3508d[_0x37f632(0x194)]({'attributes':{'class':_0x524553}}),_0xd3508d['on'](_0x37f632(0x1c0),()=>{const _0x169e8f=_0x37f632;this[_0x169e8f(0x193)](_0x4274f8,this[_0x169e8f(0x187)]['id']);}),_0xd3508d;}[_0x47374c(0x1a6)](){const _0x1ea58d=_0x47374c;return _0x1ea58d(0x176)===this[_0x1ea58d(0x187)][_0x1ea58d(0x16e)][_0x1ea58d(0x16c)][_0x1ea58d(0x1c8)]?_0x1b0372(this[_0x1ea58d(0x18c)],_0x1ea58d(0x198)):_0x1b0372(this[_0x1ea58d(0x18c)],_0x1ea58d(0x1d2));}[_0x47374c(0x1a2)](){const _0x18bde3=_0x47374c;return this[_0x18bde3(0x187)][_0x18bde3(0x190)]?_0x18bde3(0x176)===this[_0x18bde3(0x187)][_0x18bde3(0x16e)][_0x18bde3(0x16c)][_0x18bde3(0x1c8)]?_0x1b0372(this[_0x18bde3(0x18c)],_0x18bde3(0x1d8),this[_0x18bde3(0x187)][_0x18bde3(0x19b)][_0x18bde3(0x1cf)]):_0x1b0372(this[_0x18bde3(0x18c)],_0x18bde3(0x1bf),this[_0x18bde3(0x187)][_0x18bde3(0x19b)][_0x18bde3(0x1cf)]):null;}}function ds(_0x325d58,_0x10129f){const _0x246c83=_0x47374c;let _0x1041e4='';return _0x1041e4+=_0x325d58[_0x246c83(0x178)]('*')[_0x246c83(0x1cc)]((_0xd22b0a,_0x5ac5a4)=>_0x5ac5a4%0x2!=0x0?_0x246c83(0x171)+us(_0xd22b0a)+_0x246c83(0x1b9):us(_0xd22b0a))[_0x246c83(0x195)](''),_0x10129f&&(_0x1041e4+=_0x246c83(0x183)+_0x10129f[_0x246c83(0x1d4)]+_0x246c83(0x1d3)+_0x10129f[_0x246c83(0x17e)]+_0x246c83(0x19e)),_0x1041e4;}function _0x205d(){const _0x44110b=['ck-suggestion--disabled-comments','importWord','render','split','ck-annotation__main','699550WWXAAc','span','ck-annotation__info-name','element','title','_createButton','Discard\x20suggestion','isActive','4zBIsem','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','type','ck-annotation__content-wrapper','ck-suggestion-','_model','commentThread','ck-annotation__actions','editorDestroyed','667240pHAnrJ','locale','commentsListView','_config','set','isExternal','content','innerHTML','fire','extendTemplate','join','2317692kzDxMi','author','EXTERNAL_IMPORT_WORD_SUGGESTION','8iqCFzU','acceptSuggestion','creator','discardButton','18hwiLmM','\x22></span>','editorReady','<p>','ck-comment__info-time','getUserViewNotificationText','div','authoredAt','Accept\x20suggestion','getExternalSuggestionNote','ck-suggestion-wrapper--active','</p>','ck-suggestion__user','2381427WttzWt','formatDateTime','ck-annotation','549365EcMrnf','commentThreadInputView','ck-annotation__info','innerText','.ck-annotation__content-wrapper','ck-suggestion__info-name','acceptButton','ck-annotation__info-time','ck-annotation__user','description','color','descriptionParts','</span>','3790089tNwhrV','children','isEnabled','_descriptionElement','ck-suggestion__main','EXTERNAL_AVATAR','execute','cancel','discardSuggestion','ck-suggestion-wrapper','disableComments','bindTemplate','ck-suggestion--accept','setTemplate','source','userView','2598456WcITva','ck-suggestion__actions','map','check','change:description','name','ck-suggestion--discard','querySelector','EXTERNAL_SUGGESTION','\x22\x20title=\x22','value','createElement','delegate','ck-comment__external','EXTERNAL_IMPORT_WORD_AVATAR','time','ck-suggestion','@external','getTemplate','attributes','canAccept','canDiscard','<span\x20class=\x22ck-suggestion-type\x22>','push','ck-suggestion__info','bind'];_0x205d=function(){return _0x44110b;};return _0x205d();}function us(_0x2c1a3f){const _0x51aa7b=_0x47374c,_0x3eca77=document[_0x51aa7b(0x1d5)](_0x51aa7b(0x17b));return _0x3eca77[_0x51aa7b(0x1b0)]=_0x2c1a3f,_0x3eca77[_0x51aa7b(0x192)];}
|
|
@@ -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(_0x21ef91,_0xda70cb,_0x17d520){const t=_0x21ef91['t'];switch(_0xda70cb){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',_0x17d520);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x17d520);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x17d520);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x17d520);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x17d520);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',_0x17d520);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x17d520);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',_0x17d520);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x17d520);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x17d520);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x17d520);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x17d520);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x17d520);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x17d520);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x17d520);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x17d520);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x17d520);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x17d520);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x17d520);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x17d520);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x17d520);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x17d520);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x17d520);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'},_0x17d520);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x17d520);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x17d520);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x17d520);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x17d520);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x17d520);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'},_0x17d520);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x17d520);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x17d520);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x17d520);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x17d520);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'},_0x17d520);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x17d520);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'},_0x17d520);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'},_0x17d520);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x17d520);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'},_0x17d520);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x17d520);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'},_0x17d520);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x17d520);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x17d520);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'},_0x17d520);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'},_0x17d520);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 _0xda70cb;}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5b10a6,_0x35265c){const _0x3c73db=_0x5c41,_0x48322e=_0x5b10a6();while(!![]){try{const _0x13fd71=-parseInt(_0x3c73db(0x1e3))/0x1+parseInt(_0x3c73db(0x1e7))/0x2*(parseInt(_0x3c73db(0x1ed))/0x3)+parseInt(_0x3c73db(0x1f0))/0x4*(-parseInt(_0x3c73db(0x1f5))/0x5)+parseInt(_0x3c73db(0x1e6))/0x6+parseInt(_0x3c73db(0x1d5))/0x7*(parseInt(_0x3c73db(0x1de))/0x8)+-parseInt(_0x3c73db(0x1f6))/0x9*(-parseInt(_0x3c73db(0x1f3))/0xa)+-parseInt(_0x3c73db(0x1d0))/0xb*(parseInt(_0x3c73db(0x1ce))/0xc);if(_0x13fd71===_0x35265c)break;else _0x48322e['push'](_0x48322e['shift']());}catch(_0x5ef2fe){_0x48322e['push'](_0x48322e['shift']());}}}(_0x2025,0x8143c));export function normalizeDescription(_0x3d9e77){const _0x52d13d=_0x5c41;return Array[_0x52d13d(0x1d8)](_0x3d9e77)||(_0x3d9e77=[_0x3d9e77]),_0x3d9e77[_0x52d13d(0x1f8)](_0x2ecf42=>{const _0x1c4ee3=_0x52d13d,_0x49d671=_0x2ecf42[_0x1c4ee3(0x1e5)][_0x1c4ee3(0x1d9)](/\*/g,''),_0x5b5922=_0x2ecf42[_0x1c4ee3(0x1e8)]?_0x1c4ee3(0x1d2)+_0x2ecf42[_0x1c4ee3(0x1e8)][_0x1c4ee3(0x1d4)]+']':'';return'['+_0x2ecf42[_0x1c4ee3(0x1dd)]+']\x20'+_0x49d671+_0x5b5922;})[_0x52d13d(0x1e9)](';\x20');}export function sortSuggestions(_0x30a8d7){const _0x410b7a=_0x5c41;return _0x30a8d7[_0x410b7a(0x1df)]((_0x442077,_0x407a82)=>_0x410b7a(0x1f1)==_0x442077[_0x410b7a(0x1dd)]&&_0x410b7a(0x1f1)!=_0x407a82[_0x410b7a(0x1dd)]?-0x1:_0x410b7a(0x1f1)!=_0x442077[_0x410b7a(0x1dd)]&&_0x410b7a(0x1f1)==_0x407a82[_0x410b7a(0x1dd)]?0x1:0x0);}export function getSelectedSuggestions(_0x4400f3,_0x455686){const _0x3e5ede=_0x5c41,_0x519550=Array[_0x3e5ede(0x1d3)](_0x4400f3[_0x3e5ede(0x1db)]()),_0xcc32c4=new Set();for(const _0x1a9f19 of _0x455686)if(_0x1a9f19[_0x3e5ede(0x1e4)]){for(const _0x7d6370 of _0x519550)for(const _0x29f183 of _0x1a9f19[_0x3e5ede(0x1db)]())(_0x7d6370[_0x3e5ede(0x1ec)](_0x29f183)||_0x4400f3[_0x3e5ede(0x1e0)]&&!_0x1a9f19[_0x3e5ede(0x1cc)]&&_0x1a9f19[_0x3e5ede(0x1cd)]&&_0x29f183[_0x3e5ede(0x1dc)][_0x3e5ede(0x1ea)](_0x7d6370[_0x3e5ede(0x1d1)]))&&_0xcc32c4[_0x3e5ede(0x1d7)](_0x1a9f19);}return _0xcc32c4;}function _0x5c41(_0x333c14,_0x3206c3){const _0x202544=_0x2025();return _0x5c41=function(_0x5c41ba,_0x4da4f7){_0x5c41ba=_0x5c41ba-0x1cc;let _0x4421ad=_0x202544[_0x5c41ba];return _0x4421ad;},_0x5c41(_0x333c14,_0x3206c3);}export function getRangesOfBlockGroups(_0xaa97d6,_0x42ef0f){const _0x273ade=_0x5c41;let _0x2899f7,_0x87d768=0x0;const _0x41f6a6=[],_0x2a144a=_0x42ef0f[_0x273ade(0x1f7)];for(;_0x87d768<_0xaa97d6[_0x273ade(0x1f4)];){const _0x48b6f5=_0xaa97d6[_0x87d768],_0x43e0c7=_0xaa97d6[_0x87d768+0x1];_0x2899f7||(_0x2899f7=_0x42ef0f[_0x273ade(0x1da)](_0x48b6f5)),co(_0x42ef0f,_0x48b6f5,_0x43e0c7)||(_0x41f6a6[_0x273ade(0x1cf)](_0x42ef0f[_0x273ade(0x1ef)](_0x2899f7,_0x2a144a[_0x273ade(0x1d6)](_0x48b6f5)?_0x42ef0f[_0x273ade(0x1f2)](_0x48b6f5):_0x42ef0f[_0x273ade(0x1e1)](_0x48b6f5,_0x273ade(0x1dc)))),_0x2899f7=null),_0x87d768++;}return _0x41f6a6;}function _0x2025(){const _0x46caa=['length','35RWWcdB','1665uzjmYP','schema','map','isMultiRange','next','11208fdCqnS','push','19954DXfWlk','start','\x20[color\x20','from','value','7LGnLqX','isObject','add','isArray','replace','createPositionBefore','getRanges','end','type','6125224zyTctN','sort','isCollapsed','createPositionAt','execute','498916EnJBeh','isInContent','content','4104288xvOyNz','2062402OXiSWQ','color','join','isTouching','change','isIntersecting','3hlnuRA','splice','createRange','74444pFOPNX','deletion','createPositionAfter','20110Qubbos'];_0x2025=function(){return _0x46caa;};return _0x2025();}function co(_0x53d349,_0x595122,_0x556b6a){const _0x102e8b=_0x5c41;if(!_0x556b6a)return!0x1;const _0x567931=_0x53d349[_0x102e8b(0x1f2)](_0x595122),_0x4d73a7=_0x53d349[_0x102e8b(0x1da)](_0x556b6a);return _0x567931[_0x102e8b(0x1ea)](_0x4d73a7);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x45455a,_0xc758b8,_0x1404fb){const _0x3c9587=_0x5c41;for(;_0x1404fb[_0x3c9587(0x1f4)];){const _0x59dc2e=_0x1404fb[_0x3c9587(0x1ee)](0x0,0x64);_0x45455a[_0x3c9587(0x1eb)](()=>{const _0x15a089=_0x3c9587;for(const _0x4c07d6 of _0x59dc2e)_0x4c07d6[_0x15a089(0x1e4)]&&_0xc758b8[_0x15a089(0x1e2)](_0x4c07d6['id']);});}}
|