@ckeditor/ckeditor5-comments 47.6.0-alpha.4 → 47.6.0-alpha.5
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/comments.js +1 -1
- package/dist/index.js +11 -11
- package/package.json +19 -19
- package/src/comments/commentsediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Editor as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
((()=>Qt)());constructor(_0x1dbb2c={}){function _0x50c21a(_0x14dc5e){return _0x14dc5e['map'](_0xe25e05=>String['fromCharCode'](_0xe25e05))['join']('');}(_0x1dbb2c=Object['assign']({},_0x1dbb2c))['plugins']||(_0x1dbb2c['plugins']=hs['defaultPlugins']),super(_0x1dbb2c),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x50c21a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50c21a([0x76,0x69,0x65,0x77])][_0x50c21a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50c21a([0x61,0x75,0x74,0x6f]),this[_0x50c21a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x50c21a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50c21a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x50c21a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x50c21a([0x6f,0x6b])});}['create'](){const _0x21ae46=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x21ae46))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x50e3b2=>{const _0xb08c89=this['model']['document']['getRoot'](),_0x455462=_0xb08c89&&_0xb08c89['getChild'](_0xb08c89['childCount']-0x1);_0x50e3b2['setSelection'](_0x455462,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x43a7e5=this['editing']['view'],_0xf77461=_0x43a7e5['document']['getRoot'](),_0x14df7a=_0xf77461['getChild'](0x0);_0xf77461['childCount']>0x1||!_0x14df7a||'p'!=_0x14df7a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x43a7e5,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x14df7a['placeholder']=this['placeholder']),Ft({'view':_0x43a7e5,'element':_0x14df7a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x14df7a);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x431ad9,_0x377a10={}){super(_0x431ad9),this['editor']=null,this['_editorConfig']=_0x377a10,this['set']('value',_0x377a10['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x431ad9,'Reply...')),this['set']('submitLabel',N(_0x431ad9,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0xff5d19(),this['focusCycler']=new _0x445736({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x58e042,_0x2dee6b)=>{this['cancelButtonView']['fire']('execute'),_0x2dee6b();}),this['keystrokes']['set']('Ctrl+Enter',(_0x221f4e,_0xedd72e)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0xedd72e());}),this['on']('submit',(_0x1e5870,_0x4c9333)=>{_0x4c9333['length']>0xfde8?(alert(N(_0x431ad9,'TOO_LONG_COMMENT_ALERT',[_0x4c9333['length'],0xfde8])),_0x1e5870['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x28c561=this['editor'];this['element']['insertBefore'](_0x28c561['ui']['element'],this['element']['firstChild']),_0x28c561['model']['document']['on']('change',()=>this['value']=_0x28c561['getData']()),_0x28c561['bind']('placeholder')['to'](this),this['focusables']['add'](_0x28c561['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x833e9f){-0x1===_0x833e9f?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x11247b}=this,_0x31dd60=new _0x508f07(_0x11247b);return _0x31dd60['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x31dd60['withText']=!0x0,_0x31dd60['bind']('label')['to'](this,'submitLabel'),_0x31dd60['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x31dd60['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x582e7e,_0x587959)=>!_0x587959&&!!_0x582e7e['trim']()),_0x31dd60;}['_createCancelButton'](){const {locale:_0x4fe86e}=this,_0x1839ec=new _0x508f07(_0x4fe86e);return _0x1839ec['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1839ec['label']=N(_0x4fe86e,'Cancel'),_0x1839ec['withText']=!0x0,_0x1839ec['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1839ec;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3395c8=>{this['focusTracker']['add'](_0x3395c8['element']);}),this['focusables']['on']('change',(_0x15a2bc,_0x203f1f)=>{for(const _0x3f5ea7 of Array['from'](_0x203f1f['added'])['reverse']())this['focusTracker']['add'](_0x3f5ea7['element']);});}}class ie extends kt{constructor(_0x5f0677,_0x287847,_0x35b839){super(_0x5f0677),this['commentInputView']=new es(_0x5f0677,_0x35b839),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x1ad478,_0x4a75ca)=>_0x1ad478||!!_0x4a75ca),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x8ee33c(_0x5f0677,_0x287847),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x3209a1){this['commentInputView']['focus'](_0x3209a1);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x2df14e,_0x4badf1)=>{const {submitButtonView:_0xd6aee,cancelButtonView:_0x1f4a95,editor:_0x24f306}=this['commentInputView'];[_0xd6aee['element'],_0x1f4a95['element'],_0x24f306?_0x24f306['editing']['view']['getDomRoot']():null]['filter'](_0x547c6a=>_0x547c6a)['some'](_0x29fada=>_0x29fada['contains'](_0x4badf1['target']))||(this['focus'](),_0x4badf1['preventDefault']());});}}class rs extends kt{constructor(_0xd5ceed){super(_0xd5ceed);const _0x504a44=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x504a44['to']('count',_0xf830fa=>N(_0xd5ceed,'NUMBER_OF_COMMENTS',_0xf830fa))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x118a53,_0x1e324d,_0x10b1ef){super(_0x118a53);const _0x369b85=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x1e324d['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x1e324d,this['_config']=_0x10b1ef,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0xff5d19(),this['keystrokes']=new jt(),this['focusCycler']=new _0x445736({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4d315c=>this['commentViews']['map'](_0x214528=>_0x214528['element'])['includes'](_0x4d315c['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x118a53),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x220305=>_0x220305-this['_config']['maxCommentsWhenCollapsed']);for(const _0x577e19 of _0x1e324d['comments'])this['_handleNewCommentModel'](_0x577e19);this['_handleInfoComment'](),this['listenTo'](_0x1e324d['comments'],'add',(_0x5a2ba5,_0x35c1ef)=>{const _0x1ffa45=this['_calculatePosition'](_0x35c1ef);this['length']++,this['_handleNewCommentModel'](_0x35c1ef,_0x1ffa45),this['refreshVisibleViews']();}),this['listenTo'](_0x1e324d['comments'],'remove',(_0x34075a,_0x2187b8)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2187b8),this['refreshVisibleViews']();}),this['listenTo'](_0x1e324d,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x1e324d,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x369b85['if']('length','ck-hidden',_0x454f85=>!_0x454f85)],'aria-label':N(_0x118a53,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x546c2d){-0x1===_0x546c2d?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x3b91ee of this['commentViews'])_0x3b91ee['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x31ca08,_0x2e681c){const _0x1e00ac=new this['_config']['CommentView'](this['locale'],_0x31ca08,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x1e00ac['viewUid']=_0x31ca08['id'],_0x1e00ac['delegate']('removeComment')['to'](this),_0x1e00ac['delegate']('updateComment')['to'](this),_0x1e00ac['delegate']('resolveCommentThread')['to'](this),_0x1e00ac['delegate']('editorReady')['to'](this),_0x1e00ac['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x1e00ac,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x1e00ac,_0x2e681c);}['_calculatePosition'](_0x2eb5d6){const _0x5e9b96=this['_model']['_findOptimalIndex'](_0x2eb5d6);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x2eb5d6['authoredAt']?_0x5e9b96-0x1:_0x5e9b96:_0x5e9b96-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x18fa1d={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x18fa1d,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x18fa1d));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x192362){const _0x144836=this['commentViews']['remove'](_0x192362['id']);this['stopListening'](_0x144836),_0x144836['isEditMode']&&this['_updateHasDirtyComment'](),_0x144836['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x1775e6=>_0x1775e6['isEditMode']);}['_rearrangeCollapse'](){const _0x5c15bf=function(_0x13e034){const _0x20214c=new _0x3d5ab7();for(const _0x297282 of _0x13e034)_0x20214c['add'](_0x297282);return _0x20214c;}(this['commentViews']),_0x4138f2=this['_collapsedCommentsView']['count'];for(let _0x4292d7=0x1;_0x4292d7<=_0x4138f2;_0x4292d7++)_0x5c15bf['remove'](0x1);for(const _0x28182e of _0x5c15bf)_0x28182e['collapse']();_0x4138f2>0x0&&_0x5c15bf['add'](this['_collapsedCommentsView'],0x1),ns(_0x52a854(Array['from'](this['visibleViews']),Array['from'](_0x5c15bf)),this['visibleViews'],_0x5c15bf);}['_rearrangeExpand'](){ns(_0x52a854(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x58c098 of this['visibleViews'])_0x58c098['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0xb46af7=>{this['focusTracker']['add'](_0xb46af7['element']),this['keystrokes']['listenTo'](_0xb46af7['element']);}),this['commentViews']['on']('change',(_0x1daa2d,_0x1b64ec)=>{for(const _0x4008d6 of _0x1b64ec['removed'])this['focusTracker']['remove'](_0x4008d6['element']),this['keystrokes']['stopListening'](_0x4008d6['element']);for(const _0x4779ac of Array['from'](_0x1b64ec['added'])['reverse']())this['focusTracker']['add'](_0x4779ac['element']),this['keystrokes']['listenTo'](_0x4779ac['element']);});}}function ns(_0x284831,_0x53d0ab,_0x1cbabf){let _0x4c7447=0x0;for(const _0x29d14d of _0x284831)switch(_0x29d14d){case'insert':_0x53d0ab['add'](_0x1cbabf['get'](_0x4c7447),_0x4c7447),_0x4c7447++;break;case'delete':_0x53d0ab['remove'](_0x4c7447);break;case'equal':_0x4c7447++;}}class oe extends kt{constructor(_0x423302){super(_0x423302);const _0x4d8b6a=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x4d8b6a['to']('contextValue',_0x1a519f=>N(_0x423302,'THREAD_CONTEXT_LABEL',_0x1a519f)),'tabindex':-0x1},'children':[{'text':_0x4d8b6a['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x4aaf54,_0x143815){super(_0x4aaf54);const _0x496f86=this['bindTemplate'];this['_model']=_0x143815,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0xff5d19(),this['keystrokes']=new jt(),this['focusCycler']=new _0x445736({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x4c308d=>!!_0x4c308d),this['bind']('contextValue')['to'](this['_model'],'context',_0x3e2379=>_0x3e2379&&_0x3e2379['value']?this['_trimContextValue'](_0x3e2379['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x496f86['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x472217=new _0x508f07(this['locale']);return _0x472217['label']=N(this['locale'],'Reopen'),_0x472217['tooltip']=N(this['locale'],'Reopen'),_0x472217['icon']=_0x5b874c,_0x472217['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x28429a=>!_0x28429a),_0x472217['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0xccdc92,_0x263e46)=>_0xccdc92&&_0x263e46),_0x472217['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x472217;}['_trimContextValue'](_0xd15882){if(_0xd15882['length']<0x96)return _0xd15882;const _0x14f9a8=_0xd15882['lastIndexOf']('\x20',0x93);return _0xd15882['substring'](0x0,_0x14f9a8>-0x1?_0x14f9a8:0x93)+'...';}['_attachContextActions'](){const _0x206df6=this['element']['querySelector']('.ck-context'),_0xf41de7=_0x206df6['querySelector']('.ck-context__value');this['listenTo'](_0x206df6,'mouseenter',()=>{_0xf41de7['offsetWidth']<_0xf41de7['scrollWidth']&&_0x206df6['classList']['add']('overlay');}),this['listenTo'](_0x206df6,'mouseleave',()=>{_0x206df6['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x556324 of this['focusables'])this['focusTracker']['add'](_0x556324['element']),this['keystrokes']['listenTo'](_0x556324['element']);}['_createContextView'](){const _0x4b87c1=new oe(this['locale']);return _0x4b87c1['bind']('contextValue')['to'](this),_0x4b87c1;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1e455f,_0x2fe36c,_0x158330,_0x53a13f){super(_0x1e455f),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x2fe36c,this['_localUser']=_0x158330,this['_config']=_0x53a13f,this['commentThreadHeaderView']=new Xt(_0x1e455f,_0x2fe36c),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x1e455f,N(_0x1e455f,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1e455f,_0x2fe36c,Object['assign']({'CommentView':this['_config']['CommentView']},_0x53a13f)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x29cd91,_0x455ea3)=>_0x29cd91||!!_0x455ea3),this['bind']('isUnlinked')['to'](_0x2fe36c,'unlinkedAt',_0xaa727b=>!!_0xaa727b),this['bind']('ariaLabel')['to'](this,'length',_0x4cbb28=>{const _0x4a47ac=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x4cbb28,_0x4a47ac]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0xff5d19(),this['keystrokes']=new jt(),this['focusCycler']=new _0x445736({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x215db0=>_0x215db0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x2a77a4=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x30956e=_0x2a77a4['commentInputView'];return _0x2a77a4['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x30956e,'value',(_0x52ecbc,_0x161309,_0x26fa4b,_0x3fb00b,_0x523e0a)=>!!_0x523e0a||!!_0x3fb00b&&_0x26fa4b&&!_0x161309||_0x52ecbc&&_0x26fa4b&&!_0x161309),_0x30956e['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x5abc75,_0x5809ba,_0x5b0f4f)=>{let _0x103953;return _0x103953=_0x5b0f4f&&_0x5809ba?'Reply\x20to\x20reopen\x20discussion...':_0x5abc75?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x103953);}),_0x30956e['bind']('submitLabel')['to'](this,'length',_0x1d374a=>N(this['locale'],_0x1d374a?'Reply':'Comment')),_0x30956e['on']('submit',(_0x34a333,_0x26d58d)=>{this['fire']('addComment',_0x26d58d),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x30956e['on']('cancel',()=>{this['focus']();}),_0x30956e['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x30956e['on']('cancel',_0x4624ae=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4624ae['stop']());}),this['on']('change:isActive',(_0x5aaeef,_0x527736,_0xcb1bff)=>{_0xcb1bff||this['length']||_0x30956e['value']||this['fire']('removeCommentThread');}),_0x2a77a4;}}class gt extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(
|
|
28
|
-
ti(di){['actionBar'];['userView'];constructor(
|
|
29
|
-
_0x11db0(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x65f9e3,target:_0x1b56df,type:_0x44bec0,isVisible:_0xd92e03=!0x0}){super(),this['view']=_0x65f9e3,this['view']['element']||this['view']['render'](),this['_type']=_0x44bec0,this['_target']=_0x1b56df,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x3d5ab7([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x29f4f8,_0x14919c)=>{this['view']['focusTracker']['add'](_0x14919c);}),this['focusableElements']['on']('remove',(_0x2a01fb,_0x477960)=>{this['view']['focusTracker']['remove'](_0x477960);}),this['set']('isVisible',_0xd92e03);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1c0f04=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x1c0f04),_0x1c0f04;}get['targetRect'](){const _0x3a3034=this['target'];if(null===_0x3a3034)return null;if(_0x3a3034 instanceof _0xc27574)return _0x3a3034;const _0x20f80f=_0x3a3034['filter'](_0x5a70dd=>function(_0x50527e){const _0x8707ea=_0x50527e['offsetParent'];if(_0x8707ea)return!0x0;const _0x76e377=_0x50527e['getClientRects']()['item'](0x0);return!!_0x76e377;}(_0x5a70dd));return 0x0===_0x20f80f['length']?null:new _0xc27574(_0x20f80f[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0xcc5636){this['view']['isActive']=_0xcc5636,this['view']['mainView']['isActive']=_0xcc5636;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x4d6ada){if(!(null===_0x4d6ada||_0x4d6ada instanceof _0xc27574||Array['isArray'](_0x4d6ada)&&_0x4d6ada['every'](_0x41be8c=>fi(_0x41be8c))))throw new _0x48ecf8('annotation-invalid-target',null,{'target':_0x4d6ada});}['_getNormalizedTarget'](){const _0x4fe5c1='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x4fe5c1)?[_0x4fe5c1]:_0x4fe5c1;}}function fi(_0x5aa73e){return null!==_0x5aa73e&&'object'==typeof _0x5aa73e&&'nodeType'in _0x5aa73e&&0x1===_0x5aa73e['nodeType'];}class S extends _0x3d5ab7{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x228e55=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0xff5d19(),this['_focusTracker']['on']('change:isFocused',(_0x3f25b1,_0x34f775,_0x1a653d)=>{_0x1a653d||this['fire']('blur');});for(const _0x1868fa of _0x228e55)this['add'](_0x1868fa);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x125ef4){if(this['has'](_0x125ef4))throw new _0x48ecf8('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x125ef4['innerView'],_0x125ef4),this['_viewToAnnotation']['set'](_0x125ef4['view'],_0x125ef4);for(const _0x4ef267 of _0x125ef4['focusableElements'])this['_focusTracker']['add'](_0x4ef267);this['listenTo'](_0x125ef4['focusableElements'],'add',(_0x3e9836,_0x4f1266)=>{this['_focusTracker']['add'](_0x4f1266);}),this['listenTo'](_0x125ef4['focusableElements'],'remove',(_0x953b34,_0x5d99d0)=>{this['_focusTracker']['remove'](_0x5d99d0);}),this['listenTo'](_0x125ef4['view']['focusTracker'],'change:isFocused',(_0x2ecd62,_0x42af9d,_0x5b95aa)=>{_0x5b95aa&&this['fire']('focus',_0x125ef4);}),_0x125ef4['updateTargetRect']();const _0x4c810d=this['_getOrderInContent'](_0x125ef4['view']['targetRect']);return super['add'](_0x125ef4,_0x4c810d);}['remove'](_0x3a16d0){if(!this['has'](_0x3a16d0))throw new _0x48ecf8('annotationcollection-not-existing-item',null);this['stopListening'](_0x3a16d0['view']['focusTracker']),this['stopListening'](_0x3a16d0['focusableElements']);for(const _0x4f2753 of _0x3a16d0['focusableElements'])this['_focusTracker']['remove'](_0x4f2753);return this['_viewToAnnotation']['delete'](_0x3a16d0['view']),this['_innerViewToAnnotation']['delete'](_0x3a16d0['innerView']),super['remove'](_0x3a16d0);}['getByInnerView'](_0x275b36){return this['_innerViewToAnnotation']['get'](_0x275b36);}['getByView'](_0x2b70d7){return this['_viewToAnnotation']['get'](_0x2b70d7);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2da161 of this)_0x2da161['updateTargetRect']();this['_sort']();}['_sort'](){const _0x43f659=Array['from'](this)['sort']((_0x459444,_0x3ab345)=>w(_0x459444['view']['targetRect'],_0x3ab345['view']['targetRect']));for(let _0x2b08ed=_0x43f659['length']-0x1;_0x2b08ed>0x0;_0x2b08ed--){const _0x178e45=_0x43f659[_0x2b08ed];_0x2b08ed!==this['getIndex'](_0x178e45)&&(this['remove'](_0x178e45),this['add'](_0x178e45));}}['_getOrderInContent'](_0x3ad603){let _0x389b9e=0x0;if(!_0x3ad603)return this['length'];for(const _0x157b68 of this){const _0x289de2=_0x157b68['view']['targetRect'];if(_0x289de2){if(w(_0x3ad603,_0x289de2)<0x0)return _0x389b9e;_0x389b9e++;}}return _0x389b9e;}}function v({source:_0x5d6125,target:_0x50f739,filter:_0x26c1ac}){for(const _0x56631c of _0x5d6125)_0x26c1ac(_0x56631c)&&_0x50f739['add'](_0x56631c);_0x50f739['listenTo'](_0x5d6125,'add',(_0x55d2e9,_0xbf0a97)=>{_0x26c1ac(_0xbf0a97)&&_0x50f739['add'](_0xbf0a97);}),_0x50f739['listenTo'](_0x5d6125,'remove',(_0xa73424,_0x405cac)=>{_0x50f739['has'](_0x405cac)&&_0x50f739['remove'](_0x405cac);});}function w(_0x1b6ff1,_0x35a783){if(null===_0x1b6ff1&&null===_0x35a783)return 0x0;if(null===_0x1b6ff1)return-0x1;if(null===_0x35a783)return 0x1;const _0x34477a=_0x1b6ff1['top']-_0x35a783['top'];return 0x0==_0x34477a?_0x1b6ff1['left']-_0x35a783['left']:_0x34477a;}class y extends _0x298773{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26196d){if(super(_0x26196d),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x26196d instanceof _0x2a778b){const _0x20aecf=_0x26196d['locale'];_0x26196d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x20aecf,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x20aecf,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x20aecf,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x20aecf,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x20aecf,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x20aecf,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x20aecf,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x39ada0){this['collection']['add'](_0x39ada0);}['remove'](_0x333af3){this['collection']['remove'](_0x333af3),_0x333af3['destroy']();}['refreshVisibility'](){for(const _0x343022 of this['collection'])_0x343022['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x117511){return this['collection']['getByInnerView'](_0x117511);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x60c61 of this['collection'])_0x60c61['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x47921b){this['fire']('_activateAnnotation',_0x47921b);}['createAnnotation'](_0x3611bd){return new T(_0x3611bd);}['createAnnotationView'](_0x2b8153,_0x4389bd){return new E(_0x2b8153,_0x4389bd);}['_addActiveAnnotation'](_0x2e2276){const _0x57c5f1=new Set(this['activeAnnotations']);_0x57c5f1['add'](_0x2e2276),this['activeAnnotations']=_0x57c5f1;}['_removeActiveAnnotation'](_0xfafaef){const _0x2db81c=new Set(this['activeAnnotations']);_0x2db81c['delete'](_0xfafaef),this['activeAnnotations']=_0x2db81c;}['_bindAnnotationsToVisibleAnnotations'](){const _0x305f11=this['collection'],_0x54c908=this['_visibleAnnotations'];function _0x7fe7e4(_0x4ddb48){const _0xd4e7=_0x4ddb48['source'];_0xd4e7['isVisible']&&!_0x54c908['has'](_0xd4e7)?_0x54c908['add'](_0xd4e7):!_0xd4e7['isVisible']&&_0x54c908['has'](_0xd4e7)&&_0x54c908['remove'](_0xd4e7),_0xd4e7['view']['focusTracker']['remove'](_0xd4e7['view']['element']),_0xd4e7['view']['focusTracker']['add'](_0xd4e7['view']['element']);}this['listenTo'](_0x305f11,'add',(_0x404aed,_0x367958)=>{_0x367958['isVisible']&&_0x54c908['add'](_0x367958),this['listenTo'](_0x367958,'change:isVisible',_0x7fe7e4);}),this['listenTo'](_0x305f11,'remove',(_0x828907,_0x2c26f1)=>{_0x54c908['has'](_0x2c26f1)&&_0x54c908['remove'](_0x2c26f1),this['stopListening'](_0x2c26f1,'change:isVisible',_0x7fe7e4);});}['_setupEnterAnnotationKeystroke'](){const _0x92e3fc=_0x1acd7f=>{_0x1acd7f['on']('ready',()=>{_0x1acd7f['keystrokes']['set'](_0x2bbc1d,(_0x5bc18d,_0x32c0ae)=>{const _0xf6595d=_0x29db23(this['activeAnnotations']['values']());_0xf6595d&&(_0xf6595d['view']['focus'](),_0x32c0ae());});});};this['context']instanceof _0x2a778b?_0x92e3fc(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x4c8351,_0x59df3d)=>{_0x92e3fc(_0x59df3d);});}['_setupEscapeAnnotationHandling'](){const _0x5bbdb1=_0x30d86b=>{const _0x2b6960=_0x30d86b['source'],_0x551b64=[];let _0x11a279;if(Array['isArray'](_0x2b6960['target'])){_0x11a279=_0x2b6960['target'][0x0],this['context']instanceof _0x2a778b?_0x551b64['push'](this['context']):this['context']['editors']&&_0x551b64['push'](...this['context']['editors']);for(const _0x1d6754 of _0x551b64)for(const _0x4aa2bc of _0x1d6754['editing']['view']['domRoots']['values']())if(_0x4aa2bc['contains'](_0x11a279))return void _0x1d6754['editing']['view']['focus']();_0x11a279['focus']();}};this['listenTo'](this['collection'],'add',(_0x17f12a,_0x2ced6b)=>{this['listenTo'](_0x2ced6b,'escape',_0x5bbdb1,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x284256,_0x1f22d8)=>{this['stopListening'](_0x1f22d8,'escape',_0x5bbdb1);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x298773{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x385631){super(_0x385631),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x47fa0b=this['context']['config'];_0x47fa0b['define']('comments.maxCommentsWhenCollapsed',0x2),_0x47fa0b['define']('comments.maxThreadTotalWeight',0x1f4),_0x47fa0b['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x47fa0b['define']('comments.CommentThreadView',gt),_0x47fa0b['define']('comments.CommentView',Tt),_0x47fa0b['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x526290=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x14ee99,_0x11a68f)=>this['_addCommentThread'](_0x11a68f)),this['on']('submitCommentThread',(_0x1790fd,_0x43a5e5)=>this['_submitCommentThread'](_0x43a5e5)),this['on']('resolveCommentThread',(_0x3457ac,_0x3968ea)=>this['_resolveCommentThread'](_0x3968ea)),this['on']('resolveCommentThread',(_0x2e84d0,_0x3ea94e)=>this['_updateActiveAnnotation'](_0x3ea94e),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x4797ad,_0x2e0984)=>this['_reopenCommentThread'](_0x2e0984)),this['on']('reopenCommentThread',(_0x4e560c,_0x541bdb)=>this['_updateActiveAnnotation'](_0x541bdb),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x263093,_0xc278ff)=>this['_removeCommentThread'](_0xc278ff)),this['on']('updateCommentThread',(_0x4caeea,_0x4f7bff)=>this['_updateCommentThread'](_0x4f7bff)),this['on']('updateCommentThread',(_0x4a95d6,_0x1d738d)=>this['_updateActiveAnnotation'](_0x1d738d),{'priority':'lowest'}),this['on']('addComment',(_0x5a76bb,_0x4de1cc)=>this['_addComment'](_0x4de1cc)),this['on']('updateComment',(_0xd1810d,_0x4f9c9e)=>this['_updateComment'](_0x4f9c9e)),this['on']('removeComment',(_0x1fc47c,_0x590fc5)=>this['_removeComment'](_0x590fc5)),this['on']('addComment',(_0x28f25b,{threadId:_0x1d3e12,isFromAdapter:_0x1e4b2f})=>{if(_0x1e4b2f)return;const _0x5b175f=this['getCommentThread'](_0x1d3e12),_0x46400f=_0x5b175f&&this['_threadToController']['get'](_0x5b175f);_0x46400f&&_0x46400f['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x526290,'change:activeAnnotations',(_0x39ebb7,_0xdbae51,_0x4020ae)=>{const _0x4527e2=Array['from'](_0x4020ae)['map'](_0x1e5c32=>this['_viewToController']['get'](_0x1e5c32['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x4527e2?_0x4527e2['model']:null;});}set['adapter'](_0x3c929d){if(this['_adapter'])throw new _0x48ecf8('commentsrepository-adapter-already-set');this['_adapter']=_0x3c929d;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x3f84bd=_t,threadId:_0x20792d=_0x11d7cc(),comments:_0x234166=[],unlinkedAt:_0x13b3d4=null,resolvedAt:_0x498b83=null,resolvedBy:_0x1d0d6d=null,target:_0x104256=null,context:_0x6fbda6=null,attributes:_0x37a08f={},isResolvable:_0x1a1ec6=!0x0,isSubmitted:_0xb92566=!0x1,isFromAdapter:_0x3b08b8=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x3f84bd),{'channelId':_0x3f84bd,'threadId':_0x20792d,'comments':_0x234166,'unlinkedAt':_0x13b3d4,'resolvedAt':_0x498b83,'resolvedBy':_0x1d0d6d,'target':_0x104256,'context':_0x6fbda6,'attributes':_0x37a08f,'isFromAdapter':_0x3b08b8,'isResolvable':_0x1a1ec6,'isSubmitted':_0xb92566}),this['getCommentThread'](_0x20792d);}['openNewCommentThread']({channelId:_0x1e8792=_t,threadId:_0x115097=_0x11d7cc(),target:_0x52a4a7,context:_0x2ee418=null,isResolvable:_0x469d30=!0x0}){if(this['_readOnlyChannels']['has'](_0x1e8792)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x52a4a7)throw new _0x48ecf8('commentsrepository-missing-target');const _0x10220f=this['addCommentThread']({'channelId':_0x1e8792,'threadId':_0x115097,'target':_0x52a4a7,'context':_0x2ee418,'isResolvable':_0x469d30});if(!_0x10220f)return null;const _0xed1e46=this['_threadToController']['get'](_0x10220f),_0x387837=_0xed1e46['view']['commentThreadInputView']['commentInputView'],_0x187891=this['context']['plugins']['get'](y),_0x3acc8e=_0x187891['getByInnerView'](_0xed1e46['view']);return _0x187891['activate'](_0x3acc8e),_0x387837['once']('editorReady',()=>_0x387837['focus']()),_0x10220f;}['hasCommentThread'](_0xc31345){if('string'!=typeof _0xc31345)throw new _0x48ecf8('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0xc31345);}['updateCommentThread']({channelId:_0x2fbf8a=_t,threadId:_0x401c6c,context:_0x4f68a4,unlinkedAt:_0x37f81c,attributes:_0x4db030,isFromAdapter:_0x2185f2=!0x1}){return this['fire'](Nt('updateCommentThread',_0x2fbf8a),{'channelId':_0x2fbf8a,'threadId':_0x401c6c,'context':_0x4f68a4,'unlinkedAt':_0x37f81c,'attributes':_0x4db030,'isFromAdapter':_0x2185f2}),this['getCommentThread'](_0x401c6c);}['getCommentThread'](_0x50110b){if('string'!=typeof _0x50110b)throw new _0x48ecf8('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x50110b);}['fetchCommentThread']({channelId:_0x2a5a86,threadId:_0x3e5597}={}){const _0x3f91c7=this['getCommentThread'](_0x3e5597);if(_0x3f91c7)return Promise['resolve'](_0x3f91c7);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x48ecf8('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x2a5a86,'threadId':_0x3e5597})['then'](_0x24bc40=>this['hasCommentThread'](_0x3e5597)?this['getCommentThread'](_0x3e5597):_0x24bc40?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x2a5a86},_0x24bc40)):void 0x0)['catch'](_0x7bb248=>{throw console['error'](_0x7bb248),new _0x48ecf8('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5b3a37,skipNotAttached:_0x54342e=!0x1,skipEmpty:_0x4c01e1=!0x1,toJSON:_0x424fca=!0x1}={}){const _0xea6959=[];for(const _0x153cf1 of this['_threads']['values']())_0x5b3a37&&_0x153cf1['channelId']!==_0x5b3a37||_0x54342e&&!_0x153cf1['isAttached']||_0x4c01e1&&0x0===_0x153cf1['length']||_0xea6959['push'](_0x153cf1);return _0x424fca?_0xea6959['map'](_0x1b1dd9=>_0x1b1dd9['toJSON']()):_0xea6959;}['getAnnotationForCommentThread'](_0x5ba305){const _0x4c9dbf=this['_threadToController']['get'](_0x5ba305);if(!_0x4c9dbf)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x4c9dbf['view'])||null;}['getCommentThreadForAnnotation'](_0x32d49e){const _0x1eb018=this['_viewToController']['get'](_0x32d49e['innerView']);return _0x1eb018?_0x1eb018['model']:null;}['setActiveCommentThread'](_0x39b457){const _0x3eff00=this['context']['plugins']['get'](y);if(!_0x39b457)return void(this['activeCommentThread']&&_0x3eff00['deactivateAll']());const _0x8e0416=this['getCommentThread'](_0x39b457);if(!_0x8e0416)throw new _0x48ecf8('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x39b457});if(!this['_threadToController']['has'](_0x8e0416))throw new _0x48ecf8('commentsrepository-active-not-attached',null,{'threadId':_0x39b457});const _0x117390=_0x3eff00['getByInnerView'](this['_threadToController']['get'](_0x8e0416)['view']);_0x3eff00['activate'](_0x117390);}['switchReadOnly'](_0x3652f1,_0x4ee5ed){_0x3652f1?this['_readOnlyChannels']['add'](_0x4ee5ed):this['_readOnlyChannels']['delete'](_0x4ee5ed),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x58c852){return this['_readOnlyChannels']['has'](_0x58c852)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x5d8870,_0x5384a3){return new vt(_0x5d8870,_0x5384a3);}['setPermissions'](_0x8395a6,_0x3f33db=_t){this['_permissions']['set'](_0x3f33db,_0x8395a6),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4626b6=_t){return this['_permissions']['has'](_0x4626b6)?this['_permissions']['get'](_0x4626b6):bt;}['_addCommentThread']({channelId:_0x4cbb4f,threadId:_0x4e2375,comments:_0x52cd16,unlinkedAt:_0x518794,resolvedAt:_0x445e92,resolvedBy:_0x10b604,target:_0x304182,context:_0x36ef2c,attributes:_0xfd8219,isFromAdapter:_0x28ed25,isResolvable:_0x179ab3,isSubmitted:_0x1352d7}){if('string'!=typeof _0x4e2375)throw new _0x48ecf8('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4e2375});if(this['hasCommentThread'](_0x4e2375))throw new _0x48ecf8('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x4e2375});const _0x5dc987=new pi(this,{'channelId':_0x4cbb4f,'id':_0x4e2375,'context':_0x36ef2c,'attributes':_0xfd8219,'unlinkedAt':_0x518794,'resolvedAt':_0x445e92,'resolvedBy':_0x10b604?this['context']['plugins']['get'](it)['getUser'](_0x10b604):null,'isResolvable':_0x179ab3,'isSubmitted':_0x1352d7||_0x28ed25});this['_threads']['set'](_0x4e2375,_0x5dc987);for(const _0x2f6bf0 of _0x52cd16)_0x5dc987['_add'](this['_createNewComment']({'threadId':_0x4e2375,..._0x2f6bf0}));return _0x304182&&_0x5dc987['attachTo'](_0x304182),_0x28ed25||!_0x5dc987['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4cbb4f,'threadId':_0x4e2375});}['_submitCommentThread']({channelId:_0x12e3e4,threadId:_0x4e336c}){if(!this['hasCommentThread'](_0x4e336c))throw new _0x48ecf8('commentsrepository-missing-comment-thread',this);const _0x42452d=this['getCommentThread'](_0x4e336c);if(_0x42452d['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x56685b,comments:_0x5673a0,resolvedAt:_0x47fbc2,resolvedBy:_0x221680,context:_0x544846,attributes:_0x442069}=_0x42452d,_0x59721a=this['context']['plugins']['get']('PendingActions'),_0x4a6d5d=_0x59721a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x12e3e4,'threadId':_0x56685b,'comments':_0x5673a0['map'](_0x36f300=>_0x36f300['toJSON']()),'resolvedAt':_0x47fbc2,'resolvedBy':_0x221680?_0x221680['id']:_0x221680,'context':_0x544846,'attributes':_0x442069})['then'](({comments:_0x1ec3e2})=>{_0x59721a['remove'](_0x4a6d5d);for(const _0x4dd8f8 of _0x1ec3e2)this['_updateComment']({'channelId':_0x12e3e4,'threadId':_0x4e336c,'commentId':_0x4dd8f8['commentId'],'createdAt':_0x4dd8f8['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x262143=>{throw console['error'](_0x262143),new _0x48ecf8('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x4f7ce7,target:_0x56b177}){const _0x2c26af=this['getCommentThread'](_0x4f7ce7);if(!_0x2c26af)throw new _0x48ecf8('commentsrepository-attach-missing-comment-thread',this);const _0x42b839=this['context']['plugins']['get']('PendingActions'),_0x1b7cd6=this['context']['plugins']['get'](y),_0x3dea3c=this['_createCommentThreadView'](_0x2c26af),_0x949503=new vt(_0x2c26af,_0x3dea3c);let _0x5b3807=null;_0x3dea3c['on']('change:isDirty',(_0x1a80db,_0xb9188a,_0x119017)=>{_0x119017?_0x5b3807=_0x42b839['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5b3807&&(_0x42b839['remove'](_0x5b3807),_0x5b3807=null);}),this['_threadToController']['set'](_0x2c26af,_0x949503),this['_viewToController']['set'](_0x3dea3c,_0x949503);const _0x1502f7=new E(this['context']['locale'],_0x3dea3c);_0x1502f7['bind']('length')['to'](_0x3dea3c),_0x1502f7['bind']('isDirty')['to'](_0x3dea3c,'isDirty',_0x3dea3c,'length',(_0x35e26c,_0x4cab94)=>_0x35e26c||!_0x4cab94),_0x1502f7['bind']('isActive')['to'](_0x3dea3c),_0x1502f7['type']='comment';const _0x1e6a16=new T({'view':_0x1502f7,'target':_0x56b177,'type':'comment','isVisible':!_0x2c26af['archivedAt']&&!!('function'==typeof _0x56b177?_0x56b177():_0x56b177)});return _0x3dea3c['on']('escape',()=>{_0x1e6a16['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3dea3c,_0x1e6a16),_0x1b7cd6['add'](_0x1e6a16),_0x1e6a16;}['_bindAnnotationToEditors'](_0x2051ac,_0x2251e8){this['listenTo'](_0x2051ac,'editorReady',(_0x3745d2,_0x5b6191)=>{const _0x1ba7b5=_0x5b6191['ui']['view']['body']['bodyCollectionContainer'];_0x2251e8['focusableElements']['add'](_0x1ba7b5),this['context']instanceof _0x2a778b&&this['context']['ui']['focusTracker']['add'](_0x1ba7b5);},{'priority':'highest'}),this['listenTo'](_0x2051ac,'editorDestroyed',(_0x281b05,_0x82f95a)=>{const _0x3a51b5=_0x82f95a['ui']['view']['body']['bodyCollectionContainer'];_0x2251e8['focusableElements']['has'](_0x3a51b5)&&_0x2251e8['focusableElements']['remove'](_0x3a51b5),this['context']instanceof _0x2a778b&&this['context']['ui']['focusTracker']['remove'](_0x3a51b5);});}['_unbindEditors'](_0x16e593){this['stopListening'](_0x16e593,'editorReady'),this['stopListening'](_0x16e593,'editorDestroyed');}['_createCommentThreadView'](_0xe939aa){const _0xb7b784=this['context']['plugins']['get'](it),{config:_0x330a65,locale:_0x68536f}=this['context'],_0x52525e=pt(_0x330a65['get']('locale'),_0x68536f);return new(0x0,(_0x330a65['get']('comments'))['CommentThreadView'])(_0x68536f,_0xe939aa,_0xb7b784['me'],{'editorConfig':{..._0x330a65['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x330a65['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x330a65['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x330a65['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x330a65['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x52525e,'CommentView':_0x330a65['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x3e03be,channelId:_0x29e1ad,resolvedAt:_0x1f2108,resolvedBy:_0x417bf5,isFromAdapter:_0x3b6950}){if(!this['hasCommentThread'](_0x3e03be))throw new _0x48ecf8('commentsrepository-missing-comment-thread',null,{'threadId':_0x3e03be});const _0x3c61ea=this['getCommentThread'](_0x3e03be);if(_0x3c61ea['isResolved'])throw new _0x48ecf8('commentsrepository-resolved-comment-thread',null,{'threadId':_0x3e03be});const _0x5c2050=this['context']['plugins']['get'](it);if(_0x3c61ea['resolvedBy']=_0x5c2050['getUser'](_0x417bf5),_0x3c61ea['resolvedAt']=_0x1f2108,_0x3b6950||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x590e4c=this['context']['plugins']['get']('PendingActions'),_0x16e56e=_0x590e4c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x29e1ad,'threadId':_0x3e03be})['then'](({resolvedAt:_0x492b6c,resolvedBy:_0x2dbb7d})=>{_0x590e4c['remove'](_0x16e56e),_0x3c61ea['resolvedBy']['id']!==_0x2dbb7d&&(_0x3c61ea['resolvedBy']=_0x5c2050['getUser'](_0x2dbb7d)),_0x3c61ea['resolvedAt']=_0x492b6c;})['catch'](_0x38be98=>{throw console['error'](_0x38be98),new _0x48ecf8('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x4dbcf6,channelId:_0x5d2320,isFromAdapter:_0xb009fe}){if(!this['hasCommentThread'](_0x4dbcf6))throw new _0x48ecf8('commentsrepository-missing-comment-thread',null,{'threadId':_0x4dbcf6});const _0x47b6a6=this['getCommentThread'](_0x4dbcf6);if(!_0x47b6a6['isResolved'])throw new _0x48ecf8('commentsrepository-reopen-comment-thread',null,{'threadId':_0x4dbcf6});if(_0x47b6a6['resolvedBy']=null,_0x47b6a6['resolvedAt']=null,_0xb009fe||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x46bda7=this['context']['plugins']['get']('PendingActions'),_0x35d826=_0x46bda7['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5d2320,'threadId':_0x4dbcf6})['then'](()=>_0x46bda7['remove'](_0x35d826))['catch'](_0x41e92f=>{throw console['error'](_0x41e92f),new _0x48ecf8('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x53eac4,isFromAdapter:_0x1c4a3c}){const _0x28c146=this['getCommentThread'](_0x53eac4);if(!_0x28c146)throw new _0x48ecf8('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x53eac4),this['_threads']['delete'](_0x53eac4),!_0x28c146['isSubmitted']||_0x1c4a3c||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x310c61=this['context']['plugins']['get']('PendingActions'),{channelId:_0x65c894}=_0x28c146,_0x209f42=_0x310c61['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x65c894,'threadId':_0x53eac4})['then'](()=>_0x310c61['remove'](_0x209f42))['catch'](_0x39ba57=>{throw console['error'](_0x39ba57),new _0x48ecf8('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x38f6cc,unlinkedAt:_0x32ed7d,context:_0x5524b6,attributes:_0x94d575,isFromAdapter:_0x6315b}){if('string'!=typeof _0x38f6cc)throw new _0x48ecf8('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x38f6cc});if(!this['hasCommentThread'](_0x38f6cc))throw new _0x48ecf8('commentsrepository-missing-comment-thread',null,{'threadId':_0x38f6cc});const _0x2fba55=this['getCommentThread'](_0x38f6cc);let _0x525da0=!0x1;if(void 0x0!==_0x5524b6&&_0x2fba55['context']!==_0x5524b6&&(_0x2fba55['context']=_0x5524b6,_0x525da0=!0x0),void 0x0!==_0x32ed7d&&_0x2fba55['unlinkedAt']!==_0x32ed7d&&(_0x2fba55['unlinkedAt']=_0x32ed7d,_0x525da0=!0x0),_0x94d575&&!At(_0x94d575,_0x2fba55['attributes'])&&(_0x2fba55['attributes']=_0x94d575,_0x525da0=!0x0),!_0x525da0)return Promise['resolve']();if(!_0x2fba55['isSubmitted']||_0x6315b||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x44fd3e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x443fe8}=_0x2fba55,_0x430426=_0x44fd3e['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x443fe8,'threadId':_0x38f6cc,'context':_0x5524b6,'unlinkedAt':_0x32ed7d,'attributes':_0x94d575})['then'](()=>_0x44fd3e['remove'](_0x430426))['catch'](_0x5b1c36=>{throw console['error'](_0x5b1c36),new _0x48ecf8('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0xb40762){const _0x43019b=this['context']['plugins']['get'](y),_0x4e9c01=this['getCommentThread'](_0xb40762);if(_0x4e9c01['_isAttached']=!0x1,this['_threadToController']['has'](_0x4e9c01)){const _0x209da6=this['_threadToController']['get'](_0x4e9c01),_0xc11c52=_0x209da6['view'],_0x227de8=_0x43019b['getByInnerView'](_0xc11c52);this['_threadToController']['delete'](_0x4e9c01),this['_viewToController']['delete'](_0xc11c52),_0x227de8&&_0x43019b['remove'](_0x227de8),_0x209da6['destroy'](),_0xc11c52['destroy']()['then'](()=>{this['_unbindEditors'](_0xc11c52);});}}['_updateActiveAnnotation']({threadId:_0x267028,resolvedAt:_0x5507c7,unlinkedAt:_0x14e6c8}){const _0x4a2708=!!_0x5507c7,_0x33149f=this['context']['plugins']['get'](y),_0x4fa235=this['getCommentThread'](_0x267028);if(this['_threadToController']['has'](_0x4fa235)){const _0x5a14b4=this['_threadToController']['get'](_0x4fa235)['view'],_0x30474a=_0x33149f['getByInnerView'](_0x5a14b4);_0x30474a&&(_0x4a2708&&_0x33149f['_removeActiveAnnotation'](_0x30474a),_0x14e6c8?_0x30474a['isVisible']=!0x1:_0x30474a['refreshVisibility']());}}['_getExternalAuthor'](_0x3ba271){const _0xc67ff=this['context']['plugins']['get'](it),_0x2e9b1c=It('external:'+_0x3ba271),_0x12a3c9=_0xc67ff['getUser'](_0x2e9b1c);return _0x12a3c9||_0xc67ff['addUser']({'id':_0x2e9b1c,'name':_0x3ba271});}['_createNewComment']({threadId:_0xac09ba,commentId:_0x2914da=_0x11d7cc(),content:_0x3db60e,authorId:_0x68c513,createdAt:_0x220e15,attributes:_0x2c0ac7}){if('string'!=typeof _0x2914da)throw new _0x48ecf8('commentsrepository-invalid-commentid');if('string'!=typeof _0x68c513)throw new _0x48ecf8('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x3db60e||!_0x3db60e['trim']())throw new _0x48ecf8('commentsrepository-invalid-comment-content');const _0xeb5470=this['context']['plugins']['get'](it)['getUser'](_0x68c513);if(!_0xeb5470)throw new _0x48ecf8('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x68c513});let _0x42b676=null,_0x203dec=_0x220e15;return _0x2c0ac7?.['@external']&&(_0x42b676=this['_getExternalAuthor'](_0x2c0ac7['@external']['authorName']),_0x203dec=new Date(_0x2c0ac7['@external']['createdAt'])),new wi(this,{'threadId':_0xac09ba,'id':_0x2914da,'author':_0x42b676||_0xeb5470,'creator':_0xeb5470,'content':_0x3db60e,'createdAt':_0x220e15,'authoredAt':_0x203dec,'attributes':_0x2c0ac7});}['_addComment'](_0x59a434){let {threadId:_0x327fb7,content:_0xf3257b,attributes:_0x97ab4a,isFromAdapter:_0x54c654}=_0x59a434;const _0x422db4=this['getCommentThread'](_0x59a434['threadId']);if(!_0x422db4)throw new _0x48ecf8('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x20a587=this['_createNewComment'](_0x59a434),{id:_0x313121}=_0x20a587;if(_0x422db4['_add'](_0x20a587),_0x54c654||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x422db4['isSubmitted'])return Promise['resolve']();const _0x470f2f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1803dd}=_0x422db4,_0x47c39a=_0x470f2f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x97ab4a||(_0x97ab4a={}),this['adapter']['addComment']({'channelId':_0x1803dd,'threadId':_0x327fb7,'commentId':_0x313121,'content':_0xf3257b,'attributes':_0x97ab4a})['then'](_0x218114=>{_0x470f2f['remove'](_0x47c39a),_0x218114&&this['_updateComment']({'channelId':_0x1803dd,'threadId':_0x327fb7,'commentId':_0x313121,'createdAt':_0x218114['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5b8349=>{throw console['error'](_0x5b8349),new _0x48ecf8('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x4eed74,commentId:_0x483bda,content:_0x1b407b,createdAt:_0x2d8894,attributes:_0x3e12e8,isFromAdapter:_0x5c3666}){if(void 0x0!==_0x1b407b&&('string'!=typeof _0x1b407b||!_0x1b407b['trim']()['length']))throw new _0x48ecf8('commentsrepository-update-comment-invalid-content');const _0x3cef65=this['getCommentThread'](_0x4eed74),_0x22f0c0=_0x3cef65['getComment'](_0x483bda);if(!_0x22f0c0)throw new _0x48ecf8('commentsrepository-update-missing-comment',this);let _0x3b52f1=!0x1;if(_0x1b407b&&_0x1b407b!==_0x22f0c0['content']&&(_0x22f0c0['isEditable']||_0x5c3666)&&(_0x22f0c0['content']=_0x1b407b,_0x3b52f1=!0x0),_0x2d8894&&_0x2d8894!==_0x22f0c0['createdAt']&&(_0x22f0c0['createdAt']=_0x2d8894,_0x22f0c0['attributes']&&_0x22f0c0['attributes']['@external']||(_0x22f0c0['authoredAt']=_0x2d8894),_0x3b52f1=!0x0),_0x3e12e8&&!At(_0x3e12e8,_0x22f0c0['attributes'])&&(_0x22f0c0['attributes']=_0x3e12e8,_0x3b52f1=!0x0),!_0x3b52f1)return Promise['resolve']();if(_0x3cef65['fire']('commentUpdated'),_0x5c3666||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0xce63aa=this['context']['plugins']['get']('PendingActions'),{channelId:_0x25fac1}=this['getCommentThread'](_0x22f0c0['threadId']),_0x25ba5e=_0xce63aa['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x25fac1,'threadId':_0x4eed74,'commentId':_0x483bda,'content':_0x1b407b,'attributes':_0x3e12e8})['then'](()=>_0xce63aa['remove'](_0x25ba5e))['catch'](_0x593854=>{throw console['error'](_0x593854),new _0x48ecf8('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3d45a7,commentId:_0x2bb9ed,isFromAdapter:_0x4fb49e}){const _0x3bd8e9=this['getCommentThread'](_0x3d45a7),_0x44ccf6=_0x3bd8e9['getComment'](_0x2bb9ed);if(!_0x44ccf6)throw new _0x48ecf8('commentsrepository-remove-missing-comment',this);if(_0x3bd8e9['_remove'](_0x44ccf6),_0x4fb49e||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0xa17fd7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x43c16a}=_0x3bd8e9,_0x1d5f2e=_0xa17fd7['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x43c16a,'threadId':_0x3d45a7,'commentId':_0x2bb9ed})['then'](()=>_0xa17fd7['remove'](_0x1d5f2e))['catch'](_0x506a98=>{throw console['error'](_0x506a98),new _0x48ecf8('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x11db0(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5429d1,_0xdc2db1){super();const _0xaf052f=_0x5429d1['context']['plugins']['get'](it)['me'],_0x6365c8=_0x5429d1['getCommentThread'](_0xdc2db1['threadId']),_0x181c1b=0x0===_0x6365c8['comments']['length'],_0x3fc7a6=_0xaf052f===_0xdc2db1['author'];this['id']=_0xdc2db1['id'],this['threadId']=_0xdc2db1['threadId'],this['author']=_0xdc2db1['author'],this['creator']=_0xdc2db1['creator'],this['isExternal']=Boolean(_0xdc2db1['attributes']&&_0xdc2db1['attributes']['@external']),this['set']('content',_0xdc2db1['content']),this['createdAt']=_0xdc2db1['createdAt']||new Date(),this['set']('authoredAt',_0xdc2db1['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x6365c8,'resolvedAt'),this['set']('attributes',_0xdc2db1['attributes']||{}),this['bind']('isEditable')['to'](_0x5429d1,'_permissions',()=>{const _0x91771f=_0x5429d1['getPermissions'](_0x6365c8['channelId'])['write'],_0x20ef02=_0x5429d1['getPermissions'](_0x6365c8['channelId'])['modifyAll'];return _0x3fc7a6&&_0x91771f||!_0x3fc7a6&&_0x20ef02;}),this['bind']('isRemovable')['to'](_0x6365c8,'isRemovable',_0x5429d1,'_permissions',_0x217a2e=>{const _0x400cde=_0x5429d1['getPermissions'](_0x6365c8['channelId'])['write'],_0x3b746b=_0x5429d1['getPermissions'](_0x6365c8['channelId'])['modifyAll'];return _0x3fc7a6&&_0x400cde||_0x217a2e&&_0x181c1b||!_0x3fc7a6&&_0x3b746b&&!_0x181c1b;}),this['bind']('isReadOnly')['to'](_0x6365c8,'isReadOnly'),this['_repository']=_0x5429d1;}get['weight'](){return Math['max'](function(_0x4ead92){const _0x1ae7dd=document['createElement']('div');return _0x1ae7dd['innerHTML']=_0x4ead92,_0x1ae7dd['textContent']['length'];}(this['content']),0xc8);}['update'](_0x50a7c6){const {threadId:_0x2730ea,id:_0x2b259e}=this;if(!this['_repository']['hasCommentThread'](_0x2730ea))throw new _0x48ecf8('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x50ee39}=this['_repository']['getCommentThread'](_0x2730ea);this['_repository']['fire'](Nt('updateComment',_0x50ee39,_0x2730ea),{'channelId':_0x50ee39,'threadId':_0x2730ea,'commentId':_0x2b259e,..._0x50a7c6});}['setAttribute'](_0x455f4b,_0x24fdb3){const _0x508c37=wt(this['attributes']);yt(_0x508c37,_0x455f4b,_0x24fdb3),this['update']({'attributes':_0x508c37});}['removeAttribute'](_0x4f3dd2){const _0x49ec51=wt(this['attributes']);Ct(_0x49ec51,_0x4f3dd2),this['update']({'attributes':_0x49ec51});}['remove'](_0x2e5ef6={}){if(!_0x2e5ef6['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x370e39,id:_0x15090a}=this;if(!this['_repository']['hasCommentThread'](_0x370e39))throw new _0x48ecf8('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x5dd50b}=this['_repository']['getCommentThread'](_0x370e39);this['_repository']['fire'](Nt('removeComment',_0x5dd50b,_0x370e39),{'channelId':_0x5dd50b,'threadId':_0x370e39,'commentId':_0x15090a,..._0x2e5ef6});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x3499f2,..._0x322654){for(const _0x1bb5ae of _0x322654)void 0x0!==_0x1bb5ae&&(_0x3499f2+=':'+String(_0x1bb5ae));return _0x3499f2;}class ot extends _0x10c84a{constructor(_0x378c60){super(_0x378c60),this['set']('hasContent',!0x1);}['refresh'](){const _0x5bbd68=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x5c3c5a of _0x5bbd68['getRanges']())if(this['_hasContent'](_0x5c3c5a))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x30a2b5=_0x11d7cc(),ranges:_0x20bc16,comment:_0xa5fb72}={}){const _0x1139ea=this['editor']['model'],_0x3515a4=_0x20bc16??Array['from'](_0x1139ea['document']['selection']['getRanges']()),_0x253b95=[];for(const _0x36991d of _0x3515a4)this['_hasContent'](_0x36991d)&&_0x253b95['push'](this['_trimToContent'](_0x36991d));if(!_0x253b95['length'])throw new _0x48ecf8('addcommentthreadcommand-incorrect-ranges',null);_0xa5fb72&&this['_createCommentThread'](_0x30a2b5,_0xa5fb72),this['_createMarkersFromRanges'](_0x30a2b5,_0x253b95,!!_0xa5fb72);}['_createMarkersFromRanges'](_0x419fe1,_0x42253d,_0x414c77){this['editor']['model']['change'](_0x14ee2e=>{for(const _0x2aeae7 of _0x42253d){const _0x1d5612=_0x11d7cc()['substr'](0x1,0x5),_0x41e485='comment:'+_0x419fe1+':'+_0x1d5612;_0x14ee2e['addMarker'](_0x41e485,{'range':_0x2aeae7,'usingOperation':_0x414c77,'affectsData':_0x414c77});}});}['_createCommentThread'](_0x28261d,_0x20a7fa){const _0x11e8ee=this['editor']['plugins']['get']('CommentsRepository'),_0x3cfede=this['editor']['config']['get']('collaboration.channelId'),_0x4158ee=this['editor']['plugins']['get']('Users')['me'];if(!_0x4158ee)throw new _0x48ecf8('addcommentthreadcommand-user-not-found',null);_0x11e8ee['addCommentThread']({'threadId':_0x28261d,'channelId':_0x3cfede,'comments':[{'authorId':_0x4158ee['id'],'content':_0x20a7fa,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x4699e5){for(const _0x1b86f5 of _0x4699e5['getItems']())if(this['_itemIsContent'](_0x1b86f5))return!0x0;return!0x1;}['_itemIsContent'](_0x2a30f0){return _0x2a30f0['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x2a30f0)&&!_0x2a30f0['is']('element','tableCell');}['_trimToContent'](_0x5a74a3){const _0x80eb4b=_0x2f365a=>!this['_itemIsContent'](_0x2f365a['item']),_0x2264dd=_0x5a74a3['start']['getLastMatchingPosition'](_0x80eb4b),_0x212378=_0x5a74a3['end']['getLastMatchingPosition'](_0x80eb4b,{'direction':'backward'});return this['editor']['model']['createRange'](_0x2264dd,_0x212378);}}class b extends _0x5bb67e{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f0931){super(_0x5f0931),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0xc00ac5=this['editor'],_0xfe30a=_0xc00ac5['model']['document']['selection'],_0x2d09bd=_0x3aa37b(()=>this['refreshSelectedViews'](),0xa);_0xfe30a['on']('change:range',(_0x283248,_0x5894f4)=>{_0x5894f4['directChange']&&(_0x2d09bd['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0xc00ac5['editing']['view']['document'],'change:isFocused',(_0x1913ec,_0x2817e3,_0x5ae69e)=>{_0x5ae69e&&_0x2d09bd();}),this['listenTo'](_0xc00ac5['ui']['focusTracker'],'change:isFocused',(_0x1b23bd,_0x2961eb,_0x185555)=>{_0x185555||this['fire']('blur',{'isAnnotationTracked':_0x2fc216=>this['_editorAnnotationsData']['has'](_0x2fc216['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x10867e){if(this['_editorAnnotations']['has'](_0x10867e['view']))return;this['_editorAnnotations']['add'](_0x10867e['view']),this['editor']['ui']['focusTracker']['add'](_0x10867e['view']['element']);const _0xf2be4=this['editor']['plugins']['get'](y);this['listenTo'](_0xf2be4['collection'],'remove',(_0x513bea,_0x4db52b)=>{this['editor']['ui']['focusTracker']['remove'](_0x4db52b['view']['element']),this['_editorAnnotations']['delete'](_0x4db52b['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x2b209b){if('function'!=typeof _0x2b209b)throw new _0x48ecf8('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x2b209b);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x59f9ec,annotations:_0x4c2f87}){const _0x1188eb=[],_0x4fbef6=this['editor']['model']['document']['selection'],_0x5e4e2e=Array['from'](_0x4fbef6['getRanges']());for(const [_0x24dc98,_0xdabb75]of this['_editorAnnotationsData']){const _0x4304e2=_0x12f5c3(_0xdabb75),_0x549870=_0x4c2f87['getByInnerView'](_0x24dc98);_0x4304e2&&_0x549870&&_0x1188eb['push']({'annotation':_0x549870,'range':_0x4304e2});}function _0x12f5c3(_0x4d26e2){for(const _0x10423c of _0x4d26e2)for(const _0x579b1b of _0x5e4e2e)if(_0x10423c['containsRange'](_0x579b1b,!_0x4fbef6['isCollapsed']))return _0x10423c;return null;}return _0x1188eb['sort']((_0x554eda,_0xd61a19)=>{const _0x417279=_0x554eda['range'],_0x560606=_0xd61a19['range'];if(!_0x417279['isEqual'](_0x560606)){if(_0x417279['containsRange'](_0x560606,!0x0))return 0x1;if(_0x560606['containsRange'](_0x417279,!0x0))return-0x1;}return _0x554eda['annotation']==_0x59f9ec?-0x1:_0xd61a19['annotation']==_0x59f9ec?0x1:0x0;})['map'](_0x4c9004=>_0x4c9004['annotation']);}get['_editorAnnotationsData'](){const _0xf7bbb0=new Map();for(const _0x99b98c of Array['from'](this['_dataCollectors']))for(const [_0x15d8fb,_0x4334ef]of _0x99b98c())_0xf7bbb0['set'](_0x15d8fb,_0x4334ef);return _0xf7bbb0;}}class st extends _0x5bb67e{['afterInit'](){const _0x95b6a1=this['editor'];if(!_0x95b6a1['plugins']['has']('RestrictedEditingModeEditing'))return;_0x95b6a1['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x5bb67e{constructor(_0x5e31f5){super(_0x5e31f5),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x1743ee=this['editor'],_0x85a9c0=_0x1743ee['commands']['get']('importWord'),_0xcb5906=_0x1743ee['plugins']['get'](it);_0x85a9c0&&(_0x85a9c0['on']('execute',(_0x461aca,[,_0x566ef5])=>{_0x566ef5['collaboration_features']={'comments':!0x0,'user_id':_0xcb5906['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x85a9c0,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x38f437,_0x1bb92d){const {comment_threads:_0x2cf9c7}=_0x1bb92d;_0x2cf9c7&&_0x2cf9c7['forEach'](({thread_id:_0x333a2a,comments:_0xda7393,is_resolved:_0xc74e3c})=>{const _0x218d31=new Date(),_0x23bdc1=_0xda7393['map'](({author:_0x458588,content:_0x1ecefa,created_at:_0x21df4a})=>({'content':_0x1ecefa,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x218d31,'attributes':{'@external':{'authorName':_0x458588,'createdAt':_0x21df4a?new Date(_0x21df4a):new Date(),'source':'importWord'}}})),_0x5bae46=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x5bae46,'threadId':_0x333a2a,'comments':_0x23bdc1,'resolvedAt':_0xc74e3c?_0x218d31:null});});}}class at extends _0x5bb67e{constructor(_0x16b7fb){super(_0x16b7fb),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x1e590c=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x1e590c,'contentInsertion',(_0xb79f48,_0x42ecac)=>this['_removeMarkersWithoutThreads'](_0x42ecac['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x5f34a5){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x5f34a5;const _0x4c1821=this['editor']['plugins']['get']('CommentsRepository');for(const _0xd92f4a of _0x5f34a5['keys']()){const [_0x133f45,_0x401905]=_0xd92f4a['split'](':');'comment'!=_0x133f45||_0x4c1821['hasCommentThread'](_0x401905)||_0x5f34a5['delete'](_0xd92f4a);}return _0x5f34a5;}['_registerMarkerInClipboardPipeline'](){const _0x48651a=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1cf8fa=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1cf8fa&&_0x48651a['_registerMarkerToCopy']('comment',_0x1cf8fa);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0xb3b68){switch(_0xb3b68){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x30422f){const _0x2551e2=_0x30422f['split'](':');return{'group':_0x2551e2[0x0],'id':_0x2551e2[0x1],'part':_0x2551e2[0x2]};}class ut extends _0x5bb67e{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x44bebb,_0x47cc91)=>{if(!_0x47cc91['options']['showCommentHighlights'])return null;if(_0x47cc91['options']['ignoreResolvedComments']){const {id:_0x265893}=ft(_0x44bebb['markerName']),_0x5023e9=this['editor']['plugins']['get'](o);if(_0x5023e9['getCommentThread'](_0x265893)?.['isResolved']&&_0x44bebb['item'])return _0x47cc91['consumable']['consume'](_0x44bebb['item'],'addMarker:'+_0x44bebb['markerName']),_0x47cc91['consumable']['consume'](_0x44bebb['item'],'removeMarker:'+_0x44bebb['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2e3aad=>{_0x2e3aad['on']('addMarker:comment',(_0x25e7d2,_0x238a0b,_0x1932bd)=>{if(!_0x1932bd['options']['showCommentHighlights'])return;const _0x407fcc=_0x238a0b['item'];if(!_0x407fcc)return;const _0x2b39e3=_0x1932bd['mapper']['toViewElement'](_0x407fcc);this['editor']['model']['schema']['isObject'](_0x407fcc)&&_0x2b39e3&&!_0x2b39e3['getCustomProperty']('widget')&&_0x2b39e3['is']('containerElement')&&_0x1f4366(_0x2b39e3,_0x1932bd['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5193e4,{writer:_0x1b7d49,options:_0x442218})=>{if(!_0x442218['showCommentHighlights'])return null;const _0x4dd673=_0x1b7d49['createContainerElement']('div'),_0x63837f=_0x1b7d49['createEmptyElement']('hr');return _0x1b7d49['addClass']('ck-horizontal-line',_0x4dd673),_0x1b7d49['insert'](_0x1b7d49['createPositionAt'](_0x4dd673,0x0),_0x63837f),_0x4dd673;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x25590e,{writer:_0x48f0d4,options:_0x1d9644})=>{if(!_0x1d9644['showCommentHighlights'])return null;const _0x21ac74=_0x48f0d4['createContainerElement']('span'),_0x1cc5b1=_0x48f0d4['createEmptyElement']('img');return _0x48f0d4['addClass']('image-inline',_0x21ac74),_0x48f0d4['insert'](_0x48f0d4['createPositionAt'](_0x21ac74,0x0),_0x1cc5b1),_0x21ac74;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x446f88,{writer:_0x58b744,options:_0x5c211c})=>{if(_0x5c211c['showCommentHighlights'])return _0x58b744['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4c9753,_0x1d5742,_0x2d1a23)=>{_0x2d1a23['options']['showCommentHighlights']&&_0x4c9753['stop']();},{'priority':'high'});}}class r extends _0x5bb67e{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5758c3){super(_0x5758c3),this['set']('isThreadsLoadingPaused',!0x0),_0x5758c3['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x243464,_0x214972,_0x182d28,_0x8257c9)=>{const _0x9ed280=_0x5758c3['plugins']['get'](o),_0x2c4b81=_0x182d28?ft(_0x182d28)['id']:null;_0x5758c3['model']['change'](()=>{if(_0x2c4b81){const _0x4af9a8=this['getAllMarkersForId'](_0x2c4b81);for(const _0x87343a of _0x4af9a8)_0x5758c3['editing']['reconvertMarker'](_0x87343a);}if(_0x8257c9){const {id:_0x56fc73}=ft(_0x8257c9),_0x204109=_0x9ed280['getCommentThread'](_0x56fc73);if(_0x204109&&_0x204109['unlinkedAt'])return;if(_0x204109&&!_0x204109['isAttached'])return;const _0x5b1fd2=this['getAllMarkersForId'](_0x56fc73);for(const _0x69e683 of _0x5b1fd2)_0x5758c3['editing']['reconvertMarker'](_0x69e683);}}),_0x2c4b81&&this['scrollToThreadMarker'](_0x2c4b81);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3a507b=this['editor'],_0x5275c9=_0x3a507b['plugins']['get'](o),_0x1dde53=_0x3a507b['config']['get']('collaboration.channelId'),_0x20de2a=_0x5275c9['getCommentThreads']()['filter'](_0x2bc5ec=>_0x2bc5ec['channelId']!==_0x1dde53);_0x3a507b['commands']['add']('addCommentThread',new ot(_0x3a507b)),this['listenTo'](_0x3a507b,'change:isReadOnly',(_0x2aa795,_0x2717fb,_0x1661f7)=>{_0x5275c9['switchReadOnly'](_0x1661f7,_0x3a507b['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5275c9,dt('addCommentThread',_0x1dde53),(_0xe5148a,{threadId:_0xf48919})=>{const _0x16b8c8=this['editor']['plugins']['get'](o)['getCommentThread'](_0xf48919);_0x16b8c8?.['unlinkedAt']&&this['_attachArchivedThread'](_0xf48919);}),this['listenTo'](_0x5275c9,dt('removeCommentThread',_0x1dde53),(_0x57c08e,{threadId:_0x39a986})=>{_0x3a507b['model']['enqueueChange']({'isUndoable':!0x1},_0x1c0ad2=>{const _0x12977c=this['getAllMarkersForId'](_0x39a986);for(const _0x3f4447 of _0x12977c)_0x1c0ad2['removeMarker'](_0x3f4447);});}),this['listenTo'](_0x5275c9,dt('resolveCommentThread',_0x1dde53),(_0x1b4f56,{threadId:_0x283742})=>{(this['_reconvertMarkers'](_0x283742),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x283742)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5275c9,dt('reopenCommentThread',_0x1dde53),(_0x4a53aa,{threadId:_0x3845e1})=>{this['_reconvertMarkers'](_0x3845e1);},{'priority':'low'}),this['listenTo'](_0x5275c9,dt('addComment',_0x1dde53),(_0x4c0a64,{threadId:_0x5e24e6,isFromAdapter:_0x5b8ce4})=>{const _0x26991a=this['getAllMarkersForId'](_0x5e24e6);if(_0x5b8ce4||0x0==_0x26991a['length']||!_0x5275c9['hasCommentThread'](_0x5e24e6))return;0x1===_0x5275c9['getCommentThread'](_0x5e24e6)['length']&&_0x3a507b['model']['enqueueChange']({'isUndoable':!0x1},_0x4d1947=>{for(const _0x5736ff of _0x26991a)_0x4d1947['updateMarker'](_0x5736ff,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x20de2a);}['afterInit'](){!async function(_0x41e38d){const _0x548eb3=_0x24d559([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x12ec9a=0x73460ab3,_0x48b08=0x734189ab^_0x12ec9a,_0x4b604f=window[_0x24d559([0x44,0x61,0x74,0x65])][_0x24d559([0x6e,0x6f,0x77])](),_0x41dcca=_0x41e38d[_0x24d559([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38dd18=new window[(_0x24d559([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc97447=>{_0x41dcca[_0x24d559([0x6f,0x6e,0x63,0x65])](_0x24d559([0x72,0x65,0x61,0x64,0x79]),_0xc97447);}),_0x36bae7={[_0x24d559([0x6b,0x74,0x79])]:_0x24d559([0x45,0x43]),[_0x24d559([0x75,0x73,0x65])]:_0x24d559([0x73,0x69,0x67]),[_0x24d559([0x63,0x72,0x76])]:_0x24d559([0x50,0x2d,0x32,0x35,0x36]),[_0x24d559([0x78])]:_0x24d559([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x24d559([0x79])]:_0x24d559([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x24d559([0x61,0x6c,0x67])]:_0x24d559([0x45,0x53,0x32,0x35,0x36])},_0x57dc27=_0x41dcca[_0x24d559([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24d559([0x67,0x65,0x74])](_0x24d559([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2083a9(){let _0x20f5f5,_0x25c2f7=null,_0x1cf393=null;try{if(_0x57dc27==_0x24d559([0x47,0x50,0x4c]))return _0x24d559([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20f5f5=_0x53d67e(),!_0x20f5f5)return _0x24d559([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20f5f5[_0x24d559([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cf393=_0x535782(_0x20f5f5[_0x24d559([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20f5f5[_0x24d559([0x6a,0x74,0x69])])),await _0x21e1a1()?_0x5dfb33()?_0x2100f7()?_0x24d559([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6e3f8b()?(_0x20f5f5[_0x24d559([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24d559([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25c2f7=_0x4a771e(_0x24d559([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x180bda()):_0x24d559([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24d559([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24d559([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24d559([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2100f7(){const _0x47311e=[_0x24d559([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24d559([0x74,0x72,0x69,0x61,0x6c])][_0x24d559([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f5f5[_0x24d559([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b604f/0x3e8:0xe10*_0x48b08;return _0x20f5f5[_0x24d559([0x65,0x78,0x70])]<_0x47311e;}function _0x5dfb33(){const _0x39a6bf=_0x20f5f5[_0x24d559([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x39a6bf)return!0x1;if(_0x39a6bf[_0x24d559([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24d559([0x2a])))return!0x0;if(_0x39a6bf[_0x24d559([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24d559([0x43,0x4d,0x54])))return!0x0;if(_0x39a6bf[_0x24d559([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24d559([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x48b4ab())return!0x0;if(_0x39a6bf[_0x24d559([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24d559([0x52,0x43,0x4d,0x54]))){if(_0x2a5816())return!0x0;if(_0x5efd38()||_0x4de8c5())return!0x0;}return!0x1;}function _0x6e3f8b(){const _0xe9ee7a=_0x20f5f5[_0x24d559([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe9ee7a||0x0==_0xe9ee7a[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f0930}=new URL(window[_0x24d559([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe9ee7a[_0x24d559([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f0930))return!0x0;const _0x5a3c4d=_0x5f0930[_0x24d559([0x73,0x70,0x6c,0x69,0x74])](_0x24d559([0x2e]));return _0xe9ee7a[_0x24d559([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36d249=>_0x36d249[_0x24d559([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24d559([0x2a])))[_0x24d559([0x6d,0x61,0x70])](_0x40e7db=>_0x40e7db[_0x24d559([0x73,0x70,0x6c,0x69,0x74])](_0x24d559([0x2e])))[_0x24d559([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b54e8=>_0x1b54e8[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a3c4d[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24d559([0x6d,0x61,0x70])](_0x25a7d4=>Array(_0x5a3c4d[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x25a7d4[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24d559([0x66,0x69,0x6c,0x6c])](_0x25a7d4[0x0]===_0x24d559([0x2a])?_0x24d559([0x2a]):'')[_0x24d559([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x25a7d4))[_0x24d559([0x73,0x6f,0x6d,0x65])](_0x472ad3=>_0x5a3c4d[_0x24d559([0x65,0x76,0x65,0x72,0x79])]((_0x286afb,_0x482c54)=>_0x472ad3[_0x482c54]===_0x286afb||_0x472ad3[_0x482c54]===_0x24d559([0x2a])));}function _0x180bda(){return _0x25c2f7&&_0x1cf393?new window[(_0x24d559([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x544d09,_0x5aa670)=>{_0x25c2f7[_0x24d559([0x74,0x68,0x65,0x6e])](_0x544d09,_0x5aa670),_0x1cf393[_0x24d559([0x74,0x68,0x65,0x6e])](_0x5c3681=>{_0x5c3681!=_0x24d559([0x56,0x61,0x6c,0x69,0x64])&&_0x544d09(_0x5c3681);},_0x5aa670);}):_0x25c2f7||_0x1cf393||_0x24d559([0x56,0x61,0x6c,0x69,0x64]);}}function _0x535782(_0x9818c1,_0x7ef193){return new window[(_0x24d559([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5450c5=>{if(_0x592348())return _0x5450c5(_0x24d559([0x56,0x61,0x6c,0x69,0x64]));_0x149070(),_0x41dcca[_0x24d559([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24d559([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xcde3ae=!0x1;const _0x534f20=_0x11d7cc();function _0x1b56c0(_0x2b240e){return!!_0x2b240e&&(typeof _0x2b240e===_0x24d559([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b240e===_0x24d559([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b240e[_0x24d559([0x74,0x68,0x65,0x6e])]===_0x24d559([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b240e[_0x24d559([0x63,0x61,0x74,0x63,0x68])]===_0x24d559([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f2e6d(_0x45205d){_0xca8dab(_0x45205d)[_0x24d559([0x74,0x68,0x65,0x6e])](_0x333327=>{if(!_0x333327||_0x333327[_0x24d559([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24d559([0x6f,0x6b]))return _0x24d559([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5988dd(_0x593e29(_0x534f20+_0x7ef193))!=_0x333327[_0x24d559([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24d559([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24d559([0x56,0x61,0x6c,0x69,0x64]);})[_0x24d559([0x74,0x68,0x65,0x6e])](_0x4ac526=>(_0x351e0e(),_0x4ac526),()=>{const _0x30b248=_0x2e937e();return null==_0x30b248?(_0x351e0e(),_0x24d559([0x56,0x61,0x6c,0x69,0x64])):_0x24d559(_0x4b604f-_0x30b248>(0x574a8eb3^_0x12ec9a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24d559([0x74,0x68,0x65,0x6e])](_0x5450c5)[_0x24d559([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5450c5(_0x24d559([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2962bb=0x7370e433^_0x12ec9a;function _0x351e0e(){const _0x391c0f=_0x24d559([0x6c,0x6c,0x63,0x74,0x2d])+_0x5988dd(_0x593e29(_0x9818c1)),_0x506c2e=_0x4c5ecc(_0x5988dd(window[_0x24d559([0x4d,0x61,0x74,0x68])][_0x24d559([0x63,0x65,0x69,0x6c])](_0x4b604f/_0x2962bb)));window[_0x24d559([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24d559([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391c0f,_0x506c2e);}function _0x2e937e(){const _0x5d26a5=_0x24d559([0x6c,0x6c,0x63,0x74,0x2d])+_0x5988dd(_0x593e29(_0x9818c1)),_0x4f76c9=window[_0x24d559([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24d559([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d26a5);return _0x4f76c9?window[_0x24d559([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c5ecc(_0x4f76c9),0x10)*_0x2962bb:null;}function _0xca8dab(_0x1551e4){return new window[(_0x24d559([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14e1e9,_0x337c64)=>{_0x1551e4[_0x24d559([0x74,0x68,0x65,0x6e])](_0x14e1e9,_0x337c64),window[_0x24d559([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x337c64,0x7347de73^_0x12ec9a);});}}_0x41dcca[_0x24d559([0x6f,0x6e])](_0x24d559([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x32af87,_0x364105)=>{if(_0x364105[0x0]!=_0x9818c1)return _0x5450c5(_0x24d559([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x364105[0x1]={..._0x364105[0x1],[_0x24d559([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x534f20};},{[_0x24d559([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24d559([0x68,0x69,0x67,0x68])}),_0x41dcca[_0x24d559([0x6f,0x6e])](_0x24d559([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d00fc=>{_0x1b56c0(_0x5d00fc[_0x24d559([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xcde3ae=!0x0,_0x4f2e6d(_0x5d00fc[_0x24d559([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24d559([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24d559([0x6c,0x6f,0x77])}),_0x38dd18[_0x24d559([0x74,0x68,0x65,0x6e])](()=>{_0xcde3ae||_0x5450c5(_0x24d559([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x592348(){return _0x41dcca[_0x24d559([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24d559([0x76,0x69,0x65,0x77])][_0x24d559([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24d559([0x61,0x75,0x74,0x6f]);}function _0x149070(){_0x41dcca[_0x24d559([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24d559([0x76,0x69,0x65,0x77])][_0x24d559([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24d559([0x61,0x75,0x74,0x6f]);}}function _0x4a771e(_0x53b905){const _0x272b1d=[new window[(_0x24d559([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x447847=>setTimeout(_0x447847,0x734f347f^_0x12ec9a)),_0x38dd18[_0x24d559([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24d559([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x267523=>{let _0x1f7049=0x0;_0x41dcca[_0x24d559([0x6d,0x6f,0x64,0x65,0x6c])][_0x24d559([0x6f,0x6e])](_0x24d559([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3160d1,_0x3e3998)=>{_0x3e3998[0x0][_0x24d559([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f7049++,_0x1f7049==(0x73460f5b^_0x12ec9a)&&(_0x267523(),_0x3160d1[_0x24d559([0x6f,0x66,0x66])]());});}))];return window[_0x24d559([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24d559([0x72,0x61,0x63,0x65])](_0x272b1d)[_0x24d559([0x74,0x68,0x65,0x6e])](()=>_0x53b905);}async function _0x59da60(){await _0x38dd18,_0x41dcca[_0x24d559([0x6d,0x6f,0x64,0x65,0x6c])][_0x24d559([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34658c,_0x41dcca[_0x24d559([0x6d,0x6f,0x64,0x65,0x6c])][_0x24d559([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34658c,_0x41dcca[_0x24d559([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24d559([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48b4ab(){return window[_0x24d559([0x67,0x6c,0x6f,0x62])]&&window[_0x24d559([0x67,0x6c,0x6f,0x62])][_0x24d559([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2a5816(){return _0xe4220b(_0x24d559([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3a353c(_0x24d559([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x24d559([0x73,0x74,0x61,0x74,0x65])]==_0x24d559([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5efd38(){return _0xe4220b(_0x24d559([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4de8c5(){return _0xe4220b(_0x24d559([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2ec8ed(_0xdbc6a6){const _0x4e4a54=_0x4172aa();_0x41dcca[_0x4e4a54]=_0x24d559([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xdbc6a6,_0xdbc6a6!=_0x24d559([0x56,0x61,0x6c,0x69,0x64])&&_0x59da60();}function _0x4172aa(){const _0x4a3977=window[_0x24d559([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24d559([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24d559([0x6e,0x6f,0x77])]())[_0x24d559([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24d559([0x2e]),'');let _0x307a15=_0x24d559([0x4b]);for(let _0x49c0aa=0x0;_0x49c0aa<_0x4a3977[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49c0aa+=0x2){let _0x586a08=window[_0x24d559([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a3977[_0x24d559([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49c0aa,_0x49c0aa+0x2));_0x586a08>=_0x548eb3[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x586a08-=_0x548eb3[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x307a15+=_0x548eb3[_0x586a08];}return _0x307a15;}function _0x53d67e(){const _0x2e05a7=_0x57dc27[_0x24d559([0x73,0x70,0x6c,0x69,0x74])](_0x24d559([0x2e]));if(0x3!=_0x2e05a7[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4baade(_0x2e05a7[0x1]);function _0x4baade(_0x42f398){const _0x2a583d=_0x39b824(_0x42f398);return _0x2a583d&&_0x406378()?_0x2a583d:null;function _0x406378(){const _0x4bb2ac=_0x2a583d[_0x24d559([0x6a,0x74,0x69])],_0x53ea68=window[_0x24d559([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bb2ac[_0x24d559([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bb2ac[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x324d31={..._0x2a583d,[_0x24d559([0x6a,0x74,0x69])]:_0x4bb2ac[_0x24d559([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4bb2ac[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x324d31[_0x24d559([0x76,0x63])],_0x593e29(_0x324d31)==_0x53ea68;}}}async function _0x21e1a1(){let _0x257acf=!0x0;try{const _0x198599=_0x57dc27[_0x24d559([0x73,0x70,0x6c,0x69,0x74])](_0x24d559([0x2e])),[_0x57f06c,_0x5531c0,_0x4fd85d]=_0x198599;return _0x21b21a(_0x57f06c),await _0x2c00e6(_0x57f06c,_0x5531c0,_0x4fd85d),_0x257acf;}catch{return!0x1;}function _0x21b21a(_0x4fbb98){const _0x14a672=_0x39b824(_0x4fbb98);_0x14a672&&_0x14a672[_0x24d559([0x61,0x6c,0x67])]==_0x24d559([0x45,0x53,0x32,0x35,0x36])||(_0x257acf=!0x1);}async function _0x2c00e6(_0x52a210,_0x312d7e,_0x8f05a9){const _0x324202=window[_0x24d559([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24d559([0x66,0x72,0x6f,0x6d])](_0x19dc14(_0x8f05a9),_0xaeef06=>_0xaeef06[_0x24d559([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x582729=new window[(_0x24d559([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24d559([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52a210+_0x24d559([0x2e])+_0x312d7e),_0x3c233d=window[_0x24d559([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24d559([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c233d)return;const _0x5b74e9=await _0x3c233d[_0x24d559([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24d559([0x6a,0x77,0x6b]),_0x36bae7,{[_0x24d559([0x6e,0x61,0x6d,0x65])]:_0x24d559([0x45,0x43,0x44,0x53,0x41]),[_0x24d559([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24d559([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24d559([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c233d[_0x24d559([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24d559([0x6e,0x61,0x6d,0x65])]:_0x24d559([0x45,0x43,0x44,0x53,0x41]),[_0x24d559([0x68,0x61,0x73,0x68])]:{[_0x24d559([0x6e,0x61,0x6d,0x65])]:_0x24d559([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b74e9,_0x324202,_0x582729)||(_0x257acf=!0x1);}}function _0x39b824(_0x559b0a){return _0x559b0a[_0x24d559([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24d559([0x65,0x79]))?JSON[_0x24d559([0x70,0x61,0x72,0x73,0x65])](_0x19dc14(_0x559b0a)):null;}function _0x19dc14(_0x390ffc){return window[_0x24d559([0x61,0x74,0x6f,0x62])](_0x390ffc[_0x24d559([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24d559([0x2b]))[_0x24d559([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24d559([0x2f])));}function _0x593e29(_0x185d2f){let _0x4e413f=0x1505;function _0x18267f(_0x55e96c){for(let _0xeb8940=0x0;_0xeb8940<_0x55e96c[_0x24d559([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb8940++){const _0x5e500a=_0x55e96c[_0x24d559([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xeb8940);_0x4e413f=(_0x4e413f<<0x5)+_0x4e413f+_0x5e500a,_0x4e413f&=_0x4e413f;}}function _0x1a342d(_0x504428){Array[_0x24d559([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x504428)?_0x504428[_0x24d559([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a342d):_0x504428&&typeof _0x504428==_0x24d559([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24d559([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x504428)[_0x24d559([0x73,0x6f,0x72,0x74])]()[_0x24d559([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x224764,_0x28cff3])=>{_0x18267f(_0x224764),_0x1a342d(_0x28cff3);}):_0x18267f(window[_0x24d559([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x504428));}return _0x1a342d(_0x185d2f),_0x4e413f>>>0x0;}function _0x5988dd(_0x465544){return _0x465544[_0x24d559([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24d559([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24d559([0x30]));}function _0x4c5ecc(_0x32edd9){return _0x32edd9[_0x24d559([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24d559([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24d559([0x6a,0x6f,0x69,0x6e])]('');}function _0xe4220b(_0xdd9fec){return _0x41dcca[_0x24d559([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24d559([0x68,0x61,0x73])](_0xdd9fec);}function _0x3a353c(_0x457045){return _0x41dcca[_0x24d559([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24d559([0x67,0x65,0x74])](_0x457045);}function _0x34658c(){}function _0x24d559(_0x2cef6a){return _0x2cef6a['map'](_0x3ade1f=>String['fromCharCode'](_0x3ade1f))['join']('');}_0x2ec8ed(await _0x2083a9());}(this);}['destroy'](){const _0x4f1f95=this['editor']['plugins']['get'](o),_0x1f70b4=this['editor']['config']['get']('collaboration.channelId');for(const _0x2434d2 of _0x4f1f95['getCommentThreads']({'channelId':_0x1f70b4}))_0x4f1f95['_detachCommentThread'](_0x2434d2['id']),_0x4f1f95['_threads']['delete'](_0x2434d2['id']);super['destroy']();}['hasMarkerForId'](_0x503a64){return this['getAllMarkersForId'](_0x503a64)['length']>0x0;}['getAllMarkersForId'](_0x468270){const _0x510bbd=[];for(const _0x4155ac of this['editor']['model']['markers'])_0x4155ac['name']['startsWith']('comment:'+_0x468270)&&_0x510bbd['push'](_0x4155ac);return _0x510bbd;}['scrollToThreadMarker'](_0x12878f){setTimeout(()=>{const _0x4f1651=this['_getTargetForId'](_0x12878f);if(!_0x4f1651)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x12878f&&nt({'target':_0x4f1651[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x596f10){this['editor']['model']['change'](()=>{for(const _0x450fcd of this['getAllMarkersForId'](_0x596f10))this['editor']['editing']['reconvertMarker'](_0x450fcd);});}['_attachArchivedThread'](_0x4242f0){const _0x4321dc=this['editor']['plugins']['get'](o),_0x519a87=this['editor']['plugins']['get'](b),_0x55f028=_0x4321dc['getCommentThread'](_0x4242f0);if(!_0x55f028['isAttached']){const _0x27c14d=_0x55f028['attachTo'](()=>this['_getTargetForId'](_0x55f028['id']));_0x519a87['registerAnnotation'](_0x27c14d),_0x55f028['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x56b39d=this['editor'],_0x816b57=_0x56b39d['plugins']['get'](it);_0x56b39d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0xd41f54,_0x46c4ea)=>{const {id:_0x39bb6f}=ft(_0xd41f54['markerName']),_0x178e90=_0x56b39d['plugins']['get'](o)['getCommentThread'](_0x39bb6f),_0x1297f2=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x39bb6f;let _0x487e93;if(_0x178e90&&_0x178e90['isResolved']&&!_0x1297f2&&_0xd41f54['item'])return _0x46c4ea['consumable']['consume'](_0xd41f54['item'],'addMarker:'+_0xd41f54['markerName']),_0x46c4ea['consumable']['consume'](_0xd41f54['item'],'removeMarker:'+_0xd41f54['markerName']),null;const _0x4496eb=['ck-comment-marker'];return _0x1297f2&&_0x4496eb['push']('ck-comment-marker--active'),_0x487e93=_0x178e90?.['length']?_0x178e90['comments']['first']['author']['id']:_0x816b57['me']['id'],{'classes':_0x4496eb,'attributes':{'data-comment':_0x39bb6f,'data-author-id':_0x487e93}};}}),_0x56b39d['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x895e18,{options:_0x1b3dfb})=>{if(_0x1b3dfb['showCommentHighlights'])return null;const _0xa4c9c7=_0x56b39d['plugins']['get'](o),_0x579159=_0x56b39d['model']['markers']['get'](_0x895e18),{id:_0x4ce763,part:_0x1967a1}=ft(_0x895e18);return _0x579159&&!_0x579159['affectsData']||_0x1b3dfb['ignoreResolvedComments']&&_0xa4c9c7['getCommentThread'](_0x4ce763)?.['isResolved']?null:{'group':'comment','name':_0x1967a1?_0x4ce763+':'+_0x1967a1:_0x4ce763};}}),_0x56b39d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5e0b5e,{writer:_0x3b1d2c})=>_0x3b1d2c['createElement']('$marker',{'data-name':'comment:'+_0x5e0b5e['getAttribute']('id')})}),_0x56b39d['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x606a34=this['editor'],_0x51ae8d=_0x606a34['plugins']['get'](o),_0x499cbf=new Set(),_0x3da523=new Set();_0x606a34['model']['document']['registerPostFixer'](_0x3fd9a5=>{let _0x498f14=!0x1;for(const {name:_0x420701,data:_0x242f39}of _0x606a34['model']['document']['differ']['getChangedMarkers']()){const {group:_0x59c3ac,id:_0x153dac}=ft(_0x420701);let _0x1e0d5b=_0x242f39['newRange'];if('comment'!==_0x59c3ac||!_0x1e0d5b)continue;const _0x19b5ba='$graveyard'===_0x1e0d5b['root']['rootName'];_0x19b5ba||(_0x1e0d5b=ht(_0x1e0d5b,_0x606a34['model']),!_0x1e0d5b||_0x1e0d5b['isCollapsed']||!_0x242f39['newRange']||_0x1e0d5b['isEqual'](_0x242f39['newRange']))?_0x606a34['model']['hasContent'](_0x1e0d5b)&&!_0x19b5ba?this['isThreadsLoadingPaused']?_0x499cbf['add'](_0x420701):this['_handleThreadMarker'](_0x420701,_0x153dac):(_0x3da523['add'](_0x420701),_0x499cbf['delete'](_0x420701),_0x3fd9a5['removeMarker'](_0x420701),_0x498f14=!0x0):(_0x3fd9a5['updateMarker'](_0x420701,{'range':_0x1e0d5b}),_0x498f14=!0x0);}return _0x498f14;}),this['on']('change:isThreadsLoadingPaused',(_0x5bd56c,_0x3e035b,_0x427388)=>{if(!_0x427388&&_0x499cbf['size'])for(const _0x261eef of _0x499cbf){const {id:_0x3cd92b}=ft(_0x261eef);_0x499cbf['delete'](_0x261eef),_0x606a34['model']['markers']['get'](_0x261eef)&&this['_handleThreadMarker'](_0x261eef,_0x3cd92b);}}),this['listenTo'](_0x606a34['model']['document'],'change',()=>{for(const {name:_0x234268,data:{newRange:_0x377a6b}}of _0x606a34['model']['document']['differ']['getChangedMarkers']()){const {group:_0x309609,id:_0x33d384}=ft(_0x234268);if('comment'!==_0x309609)continue;const _0xab5d4c=_0x51ae8d['getCommentThread'](_0x33d384),_0x50b4b2=this['hasMarkerForId'](_0x33d384);_0xab5d4c&&(!_0xab5d4c['_hasTargetInContent']&&_0x377a6b&&_0x606a34['editing']['view']['once']('render',()=>{const _0x29141c=_0x606a34['plugins']['get'](y),_0x5304a6=_0x51ae8d['_threadToController']['get'](_0xab5d4c)['view'];_0x29141c['getByInnerView'](_0x5304a6)['refreshVisibility']();},{'priority':'low'}),_0xab5d4c['_hasTargetInContent']=_0x50b4b2||!!_0x377a6b),_0x377a6b||(_0x3da523['add'](_0x234268),_0x499cbf['delete'](_0x234268));}for(const _0x4cad4d of _0x3da523){const {id:_0x4b95ef}=ft(_0x4cad4d),_0x49be52=_0x51ae8d['getCommentThread'](_0x4b95ef);if(_0x499cbf['delete'](_0x4cad4d),!_0x49be52)continue;const _0x447cc3=this['hasMarkerForId'](_0x4b95ef);_0x447cc3||_0x49be52['isSubmitted']?_0x447cc3||_0x49be52['unlinkedAt']||_0x49be52['setUnlinkedAt'](new Date()):_0x49be52['remove']();}_0x3da523['clear']();});}['_handleInitialThreads'](_0x1648ec){_0x1648ec['forEach'](_0x4073c8=>{_0x4073c8['unlinkedAt']&&this['_attachArchivedThread'](_0x4073c8['id']);});}['_getTargetForId'](_0x9d62cd){const _0x557ddc=this['editor'],_0x4b2463=this['getAllMarkersForId'](_0x9d62cd);return et(_0x557ddc['editing'],_0x4b2463);}['_getTextContext'](_0x447b5d){const _0x2879fb=this['getAllMarkersForId'](_0x447b5d);let _0x403937='',_0x30109e=!0x1;for(const _0x1eb35a of _0x2879fb){const _0x1e86f2=_0x1eb35a['getRange']();for(const _0x1be931 of Array['from'](_0x1e86f2['getItems']()))_0x1be931['is']('$textProxy')?(_0x403937&&_0x30109e&&(_0x403937+='\x20',_0x30109e=!0x1),_0x403937+=_0x1be931['data']):_0x30109e=!0x0;_0x30109e=!0x0;}return _0x403937['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x1ce3cf,_0x4b5fb8){const _0x138781=this['editor'],_0x4ca2e8=_0x138781['plugins']['get'](o);let _0x4b1c4b=_0x4ca2e8['getCommentThread'](_0x4b5fb8);const _0x4b7b62=_0x138781['config']['get']('collaboration.channelId'),_0x3fe554=_0x138781['plugins']['get'](b);if(_0x4b1c4b&&(_0x4b1c4b['unlinkedAt']&&_0x4b1c4b['setUnlinkedAt'](null),_0x4b1c4b['isAttached']))return _0x4b1c4b;return!this['getAllMarkersForId'](_0x4b5fb8)[0x0]['managedUsingOperations']?_0x138781['editing']['view']['once']('render',()=>{if(_0x4ca2e8['getCommentThread'](_0x4b5fb8))return;const _0x1d039c=_0x138781['plugins']['get'](y);_0x4b1c4b=_0x4ca2e8['openNewCommentThread']({'channelId':_0x4b7b62,'threadId':_0x4b5fb8,'target':()=>this['_getTargetForId'](_0x4b5fb8),'context':{'type':'text','value':this['_getTextContext'](_0x4b5fb8)}});const _0x75a03a=_0x4ca2e8['_threadToController']['get'](_0x4b1c4b)['view'],_0x5550ff=_0x1d039c['getByInnerView'](_0x75a03a);_0x5550ff&&_0x3fe554['registerAnnotation'](_0x5550ff);},{'priority':'low'}):_0x4ca2e8['fetchCommentThread']({'channelId':_0x4b7b62,'threadId':_0x4b5fb8})['then'](_0x73a2d2=>{if('destroyed'!==_0x138781['state']){if(_0x4b1c4b=_0x73a2d2,_0x4b1c4b&&!_0x4b1c4b['isAttached']){const _0x372f75=_0x4b1c4b['attachTo'](()=>this['_getTargetForId'](_0x4b5fb8));_0x3fe554['registerAnnotation'](_0x372f75),_0x4b1c4b['isResolved']&&this['_reconvertMarkers'](_0x4b5fb8);}else{if(!_0x4b1c4b){const _0xc305cb=this['getAllMarkersForId'](_0x4b5fb8);_0x138781['model']['change'](_0x3d053f=>{for(const _0x4860c8 of _0xc305cb)_0x3d053f['removeMarker'](_0x4860c8);});}}}}),_0x4b1c4b;}['_handleThreadMarker'](_0x4c5b42,_0x21311e){const _0x558399=this['_attachMarkerToThread'](_0x4c5b42,_0x21311e);_0x558399&&!_0x558399['context']&&_0x558399['setContext']({'type':'text','value':this['_getTextContext'](_0x21311e)});}['_initAriaMarkerChangeAnnouncements'](){const _0x1a4106=this['editor'];rt(_0x1a4106['model'],({left:_0x3b0528,entered:_0xd345a2})=>{for(const _0x456473 of _0x3b0528)if(mt(_0x456473)){_0x1a4106['ui']['ariaLiveAnnouncer']['announce'](N(_0x1a4106['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x5a5236 of _0xd345a2)if(mt(_0x5a5236)){_0x1a4106['ui']['ariaLiveAnnouncer']['announce'](N(_0x1a4106['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x247b77)));break;}});}}function dt(_0xa09bc1,_0x721431){return _0x721431?_0xa09bc1+':'+_0x721431:_0xa09bc1;}function ht(_0x2a8d06,_0x44e684){const _0x2b7125=_0x44e684['schema'],_0x5b5c59=_0x44e684['createRange'](_0x2a8d06['start']);for(const _0x1a819b of _0x2a8d06['getWalker']()){const {type:_0x46af79,item:_0x3ffae6,nextPosition:_0x1cdac4}=_0x1a819b;if('text'===_0x46af79||_0x2b7125['isObject'](_0x3ffae6)){const _0x1468f4=_0x44e684['createPositionBefore'](_0x3ffae6);_0x5b5c59['isCollapsed']&&(_0x5b5c59['start']=_0x1468f4),_0x5b5c59['end']=_0x1cdac4;}}return _0x5b5c59;}function mt(_0x582531){return'comment'===ft(_0x582531['name'])['group'];}class s extends _0x5bb67e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x4ce357=this['editor'],_0x2dc84f=_0x4ce357['plugins']['get'](o),_0x1f89de=_0x4ce357['plugins']['get'](r),_0x3c2a1d=_0x4ce357['plugins']['get'](y),_0x2b48bb=_0x4ce357['plugins']['get'](b);_0x4ce357['ui']['componentFactory']['add']('comment',()=>{const _0x520985=this['_createUIButton'](_0x508f07);return _0x520985['tooltip']=!0x0,_0x520985;}),_0x4ce357['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x431b16)),_0x2b48bb['addSourceCollector'](()=>{const _0x253458=[];for(const [_0x5081ff,_0x163aa9]of _0x2dc84f['_threadToController']){const _0x34d4c5=_0x1f89de['getAllMarkersForId'](_0x5081ff['id']),_0x526fad=_0x34d4c5['map'](_0x57f4a1=>_0x57f4a1['getRange']());_0x34d4c5['length']>0x0&&_0x253458['push']([_0x163aa9['view'],_0x526fad]);}return _0x253458;}),this['listenTo'](_0x3c2a1d,'change:activeAnnotations',(_0x503daa,_0x214b87,_0x20e7b1)=>{const _0x3927fb=Array['from'](_0x20e7b1)['map'](_0x4af629=>_0x4af629['innerView'])['find'](_0xf36fb9=>_0x2dc84f['_viewToController']['has'](_0xf36fb9));if(!_0x3927fb)return void(_0x1f89de['activeMarker']=null);const _0x513717=_0x2dc84f['_viewToController']['get'](_0x3927fb)['model']['id'],_0x9be08e='comment:'+_0x513717;_0x513717&&_0x1f89de['hasMarkerForId'](_0x513717)?_0x1f89de['activeMarker']=_0x9be08e:_0x1f89de['activeMarker']&&(_0x1f89de['activeMarker']=null);}),this['listenTo'](_0x2dc84f,'removeCommentThread',(_0x33f14a,{threadId:_0x517189,isFromAdapter:_0x514040})=>{!_0x514040&&_0x4ce357['ui']['focusTracker']['isFocused']&&_0x1f89de['hasMarkerForId'](_0x517189)&&_0x4ce357['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x2dc84f,'addComment',(_0x547fa5,{threadId:_0x56a995,isFromAdapter:_0x549eaf})=>{if(_0x549eaf||!_0x1f89de['hasMarkerForId'](_0x56a995)||!_0x2dc84f['hasCommentThread'](_0x56a995))return;0x1===_0x2dc84f['getCommentThread'](_0x56a995)['length']&&(_0x4ce357['editing']['view']['focus'](),_0x547fa5['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x171e58=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x54e1df;for(const _0x3006cb in _0x171e58){const _0x44fa5a=_0x3006cb,_0x3d8411=_0x171e58[_0x44fa5a];if('commentsLicenseKeyValid'==_0x3d8411||'commentsLicenseKeyInvalid'==_0x3d8411||'commentsLicenseKeyExpired'==_0x3d8411||'commentsLicenseKeyDomainLimit'==_0x3d8411||'commentsLicenseKeyNotAllowed'==_0x3d8411||'commentsLicenseKeyEvaluationLimit'==_0x3d8411||'commentsLicenseKeyUsageLimit'==_0x3d8411){delete _0x171e58[_0x44fa5a],_0x54e1df=_0x3d8411,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x54e1df&&_0x171e58['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x54e1df&&_0x171e58['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x54e1df&&_0x171e58['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x54e1df&&_0x171e58['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x54e1df&&_0x171e58['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x54e1df&&_0x171e58['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x66567a){const _0x4fd0da=this['editor'],_0x481558=new _0x66567a(_0x4fd0da['locale']),_0x493fba=_0x4fd0da['commands']['get']('addCommentThread');return _0x481558['set']({'label':N(_0x4fd0da['locale'],'Comment'),'icon':_0x49da61}),_0x481558['bind']('isEnabled')['to'](_0x493fba,'isEnabled',_0x493fba,'hasContent',(_0xca3b7e,_0x212d65)=>_0xca3b7e&&_0x212d65),this['listenTo'](_0x481558,'execute',()=>{_0x493fba['execute']();}),_0x481558;}}class i extends _0x5bb67e{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x18a45a){super(_0x18a45a),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x51bea3,_0x2c0265,_0x2ebe42)=>{_0x2ebe42?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x294290,_0x5c10e5]of this['editor']['commands'])_0x5c10e5['affectsData']&&'addCommentThread'!==_0x294290&&_0x5c10e5['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0xb5eba1=this['editor']['editing']['view']['document'];this['listenTo'](_0xb5eba1,'cut',_0x389cf8=>_0x389cf8['stop'](),{'priority':'highest'}),this['listenTo'](_0xb5eba1,'clipboardInput',_0x3c32e0=>_0x3c32e0['stop'](),{'priority':'highest'}),this['listenTo'](_0xb5eba1,'delete',_0x2d3af4=>_0x2d3af4['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x3c8f03,_0x2fe7bc]of this['editor']['commands'])_0x2fe7bc['affectsData']&&'addCommentThread'!==_0x3c8f03&&_0x2fe7bc['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x298773{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x262930){super(_0x262930),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x22f49b=this['context']['plugins']['get'](y);this['listenTo'](_0x22f49b,'_activateAnnotation',(_0x281388,_0x3bc23b)=>{for(const _0x560b6d of this['activeUIs']){const _0x4f1698=this['_uis']['get'](_0x560b6d);(0x0,this['uisData']['get'](_0x560b6d)['filter'])(_0x3bc23b)&&_0x4f1698['setActiveAnnotation'](_0x3bc23b);}}),this['listenTo'](_0x22f49b,'_deactivateAllAnnotations',()=>{for(const _0x5df2bd of this['activeUIs']){this['_uis']['get'](_0x5df2bd)['setActiveAnnotation'](null);}}),this['listenTo'](_0x22f49b['_visibleAnnotations'],'add',(_0x1b646e,_0xa407f0)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xa407f0);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x51991c){return this['activeUIs']['has'](_0x51991c);}['activate'](_0x195756,_0x51799e=this['defaultFilter']){const _0xcf25f2=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x195756))throw new _0x48ecf8('annotationsuis-missing-ui',this,{'uiName':_0x195756});this['isActive'](_0x195756)&&this['deactivate'](_0x195756),this['activeUIs']['add'](_0x195756);const _0x208589=new S();v({'source':_0xcf25f2['_visibleAnnotations'],'target':_0x208589,'filter':_0x51799e}),this['uisData']['set'](_0x195756,{'collection':_0x208589,'filter':_0x51799e});const _0x4aa618=this['_uis']['get'](_0x195756);_0x4aa618['attach'](_0x208589),this['listenTo'](_0x4aa618,'change:activeAnnotation',(_0x56eedb,_0x3d6fdf,_0x4d064e,_0x169ca8)=>{_0x169ca8&&_0xcf25f2['_removeActiveAnnotation'](_0x169ca8),_0x4d064e&&_0xcf25f2['_addActiveAnnotation'](_0x4d064e);});}['deactivate'](_0x18c1f9){if(this['activeUIs']['delete'](_0x18c1f9),!this['_uis']['has'](_0x18c1f9))throw new _0x48ecf8('annotationsuis-missing-ui',this,{'uiName':_0x18c1f9});const _0x59297f=this['_uis']['get'](_0x18c1f9);_0x59297f['detach'](),this['stopListening'](_0x59297f),this['uisData']['get'](_0x18c1f9)['collection']['destroy'](),this['uisData']['delete'](_0x18c1f9);}['switchTo'](_0x9babe){if(!this['_uis']['has'](_0x9babe))throw new _0x48ecf8('annotationsuis-missing-ui',this,{'uiName':_0x9babe});const _0x48371f=this['context']['plugins']['get'](y),_0xb5af0e=Array['from'](_0x48371f['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x9babe);const _0x3b5cc0=this['_uis']['get'](_0x9babe);_0x3b5cc0['setActiveAnnotation'](_0xb5af0e),_0x3b5cc0['_setSelectedAnnotations']&&_0xb5af0e&&_0x3b5cc0['_setSelectedAnnotations']([_0xb5af0e]);}['deactivateAll'](){for(const _0x154cd6 of this['activeUIs'])this['deactivate'](_0x154cd6);}['register'](_0x351ddd,_0x72c8ca){if(this['_uis']['has'](_0x351ddd))throw new _0x48ecf8('annotationsuis-register-already-registered');if('function'!=typeof _0x72c8ca['attach']||'function'!=typeof _0x72c8ca['detach']||'function'!=typeof _0x72c8ca['setActiveAnnotation'])throw new _0x48ecf8('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x351ddd,_0x72c8ca);}['refilterAnnotations'](){const _0x3402b2=this['context']['plugins']['get'](y)['collection'],_0x38bb7b=new Map(),_0x3cf5e4=Array['from'](this['activeUIs']);for(const _0x255bf3 of this['activeUIs']){const _0x308637=this['uisData']['get'](_0x255bf3)['collection'];for(const _0xc1ccca of _0x308637)_0x38bb7b['set'](_0xc1ccca,_0x255bf3);}for(const _0x1671a4 of _0x3402b2){const _0x30172e=_0x38bb7b['get'](_0x1671a4);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1671a4);const _0xf829d=_0x3cf5e4['find'](_0x20befa=>this['uisData']['get'](_0x20befa)['filter'](_0x1671a4));_0x30172e!==_0xf829d&&(_0x30172e&&this['uisData']['get'](_0x30172e)['collection']['remove'](_0x1671a4),_0xf829d&&this['uisData']['get'](_0xf829d)['collection']['add'](_0x1671a4));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x278a1c){const _0x2cf56b=[];for(const _0x1a424a of this['activeUIs']){(0x0,this['uisData']['get'](_0x1a424a)['filter'])(_0x278a1c)&&_0x2cf56b['push'](_0x1a424a);}if(_0x2cf56b['length']>0x1)throw new _0x48ecf8('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x2cf56b,'annotationType':_0x278a1c['type']});}}const _i=/* #__PURE__ -- @preserve */
|
|
32
|
-
Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(
|
|
33
|
-
Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x5be8de){super(_0x5be8de),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x38d11d,_0x496ece)=>_0x38d11d+_0x496ece),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x6b6f5b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x6b6f5b['to']('isAnimationDisabled',_0x1dd42a=>_0x1dd42a?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x6b6f5b['to']('top',_0x8e4d40=>Ot(_0x8e4d40))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x91fb8=this['element']['clientHeight'];_0x91fb8&&(this['height']=_0x91fb8);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x298773{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x426254){super(_0x426254),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x282169=this['context']['config']['get']('sidebar.container');_0x282169&&this['setContainer'](_0x282169);}['setContainer'](_0x2b2221){if(!g(_0x2b2221))throw new _0x48ecf8('sidebar-setcontainer-invalid-element');this['container']=_0x2b2221;}['_attachToContainer']({viewClass:_0x209117='',spaceBetweenItems:_0x3a4553=0x19}={}){if(!g(this['container']))throw new _0x48ecf8('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x209117,this['_spaceBetweenItems']=_0x3a4553;}['rearrange']({removedAnnotation:_0x2f0f8a,previousAnnotation:_0x125ca5,nextAnnotation:_0x82f44f}){const _0x5836b2=this['getSidebarItemView'](_0x2f0f8a);this['view']['list']['remove'](_0x5836b2),this['_destroySidebarItemView'](_0x2f0f8a),_0x125ca5&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x125ca5)),_0x82f44f&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x82f44f)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x266d1d,activatedAnnotation:_0xfe9eb7,disableAnimationOnActivatedAnnotation:_0x2f0b84}){if(this['_activeAnnotation']=_0xfe9eb7,_0x266d1d){_0x266d1d['isActive']=!0x1;const _0x65ea2e=this['getSidebarItemView'](_0x266d1d);_0x65ea2e&&_0x2f0b84&&(_0x65ea2e['isAnimationDisabled']=!0x1);}if(_0xfe9eb7){const _0x18d32e=this['getSidebarItemView'](_0xfe9eb7);_0x18d32e&&(_0xfe9eb7['isActive']=!0x0,_0x2f0b84&&(_0x18d32e['isAnimationDisabled']=!0x0,_0x18d32e['top']+=0x1),this['_alignToTargetRect'](_0x18d32e));}}['_detachFromContainer'](_0x522a79){if(this['view']['element']['remove'](),_0x522a79){for(const _0x459702 of _0x522a79)this['_destroySidebarItemView'](_0x459702);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x5604eb,_0x23e71e){_0x23e71e||(_0x23e71e=_0x5604eb['view']);const _0x56d1a9=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x56d1a9,_0x5604eb),this['_annotationToSidebarItemView']['set'](_0x5604eb,_0x56d1a9),_0x56d1a9['content']['add'](_0x23e71e),this['listenTo'](_0x5604eb['view'],'change:targetRect',(_0x7d8c81,_0x43b894,_0x2edde1)=>{const _0x219177=this['_getTargetTop'](_0x5604eb,_0x2edde1);_0x56d1a9['_targetTop']!=_0x219177&&(_0x56d1a9['_targetTop']=_0x219177,this['_setItemTop'](_0x56d1a9,_0x219177));}),this['listenTo'](_0x56d1a9,'change:top',()=>{this['_recalculate'](_0x56d1a9,'top');}),this['listenTo'](_0x56d1a9,'change:bottom',()=>{this['_recalculate'](_0x56d1a9,'bottom');}),this['_alignToTargetRect'](_0x56d1a9);const _0x48f54a=this['_getItemBefore'](_0x56d1a9);if(_0x48f54a)this['_alignAfterItem'](_0x48f54a,_0x56d1a9)||this['_alignToTargetRect'](_0x56d1a9);else this['_alignToTargetRect'](_0x56d1a9);return this['_updateLastItem'](),this['view']['list']['add'](_0x56d1a9),_0x56d1a9;}['_alignForTopChange'](_0x3b6d50){if(!_0x3b6d50['content']['length'])return;const _0x2ba0fa=this['_getItemBefore'](_0x3b6d50);if(!_0x2ba0fa)return;const _0x54c205=this['_sidebarItemViewToAnnotation']['get'](_0x2ba0fa),_0x5404d6=this['_activeAnnotation'];_0x5404d6&&_0x5404d6===_0x54c205?this['_alignAfterItem'](_0x2ba0fa,_0x3b6d50):this['_alignBeforeItem'](_0x3b6d50,_0x2ba0fa);}['_alignForBottomChange'](_0xf8857d){if(!_0xf8857d['content']['length'])return;const _0x4bffdb=this['_getItemAfter'](_0xf8857d);if(!_0x4bffdb)return;const _0x1fd7a8=this['_sidebarItemViewToAnnotation']['get'](_0x4bffdb),_0x4997cb=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x49d17a=this['_activeAnnotation'];_0x49d17a&&_0x49d17a===_0x1fd7a8&&_0x4997cb?(this['_alignBeforeItem'](_0x4bffdb,_0xf8857d),this['_alignAfterItem'](_0xf8857d,_0x4bffdb)):_0x49d17a&&_0x49d17a===_0x1fd7a8?this['_alignBeforeItem'](_0x4bffdb,_0xf8857d):this['_alignAfterItem'](_0xf8857d,_0x4bffdb);}['_recalculate'](_0x26cf7f,_0x5da17e){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x47be22,changedProp:_0x5d9356}of this['_recalculateBuffer'])'top'===_0x5d9356?this['_alignForTopChange'](_0x47be22):this['_alignForBottomChange'](_0x47be22);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x26cf7f,'changedProp':_0x5da17e});}['getSidebarItemView'](_0x3d0919){return this['_annotationToSidebarItemView']['get'](_0x3d0919);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x4ac312){const _0x27aa62=this['getSidebarItemView'](_0x4ac312);this['stopListening'](_0x27aa62),this['stopListening'](_0x4ac312['view']),_0x27aa62['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x4ac312),this['_sidebarItemViewToAnnotation']['delete'](_0x27aa62);}['_createSidebarView'](){const _0x3c3f64=new H(this['context']['locale']);return _0x3c3f64['render'](),this['on']('change:_lastItem',(_0xefeeb8,_0x490ad9,_0x523d95,_0x432569)=>{_0x432569&&_0x3c3f64['unbind']('minHeight'),_0x523d95?_0x3c3f64['bind']('minHeight')['to'](_0x523d95,'bottom'):_0x3c3f64['minHeight']=null;}),_0x3c3f64;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x3d8807){const _0x296931=this['_sidebarItemViewToAnnotation']['get'](_0x3d8807),_0x22ed9f=_0x296931&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x296931)-0x1);return _0x22ed9f&&this['getSidebarItemView'](_0x22ed9f)||null;}['_getItemAfter'](_0x4427b3){const _0x43dea8=this['_sidebarItemViewToAnnotation']['get'](_0x4427b3),_0x17003a=_0x43dea8&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x43dea8)+0x1);return _0x17003a&&this['getSidebarItemView'](_0x17003a)||null;}['_alignBeforeItem'](_0x3cb2a9,_0x2b83a7){_0x3cb2a9['updateHeight']();const _0x4801a7=G(_0x2b83a7['bottom']+this['_spaceBetweenItems'],_0x3cb2a9['top']);return!!_0x4801a7&&(this['_setItemTop'](_0x2b83a7,_0x2b83a7['top']-_0x4801a7),!0x0);}['_alignAfterItem'](_0x11447a,_0x1f87dd){_0x11447a['updateHeight']();const _0x3a9b2a=G(_0x11447a['bottom']+this['_spaceBetweenItems'],_0x1f87dd['top']);return!!_0x3a9b2a&&(this['_setItemTop'](_0x1f87dd,_0x1f87dd['top']+_0x3a9b2a,!0x1),!0x0);}['_alignToTargetRect'](_0x253ccc){const _0x5cdddb=this['_sidebarItemViewToAnnotation']['get'](_0x253ccc);if(!_0x5cdddb||!_0x5cdddb['target']||!_0x5cdddb['targetRect'])return;const _0x22d666=this['_getTargetTop'](_0x5cdddb,_0x5cdddb['targetRect']);this['_setItemTop'](_0x253ccc,_0x22d666);}['_getTargetTop'](_0x369b9f,_0x41552d){if(null===_0x41552d)return 0x0;if(_0x369b9f['target']instanceof _0xc27574)return _0x41552d['top'];{const _0x1a685d=new _0xc27574(this['view']['element'])['top'];return _0x41552d['top']-_0x1a685d;}}['_setItemTop'](_0x134d42,_0x3af254,_0x416bf7=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x416bf7&&(_0x3af254=Math['max'](_0x3af254,this['_getMaxAvailableTop'](_0x134d42))),_0x134d42['top']=_0x3af254;}['_getMaxAvailableTop'](_0x35de5e){let _0x26bc80=this['_getItemBefore'](_0x35de5e),_0x4f2c62=0x0;for(;_0x26bc80;)_0x26bc80['updateHeight'](),_0x4f2c62+=this['_spaceBetweenItems']+_0x26bc80['height'],_0x26bc80=this['_getItemBefore'](_0x26bc80);return _0x4f2c62;}}function G(_0x430745,_0x24ea46){return Math['max'](_0x430745-_0x24ea46,0x0);}function g(_0x206084){return null!==_0x206084&&'object'==typeof _0x206084&&0x1===_0x206084['nodeType'];}class e extends _0x298773{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x181dc0){super(_0x181dc0),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x3d5ab7(),this['_refreshPositioningDebounced']=_0x3aa37b(()=>{_0x181dc0['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x2e13dc=this['context']['plugins']['get'](j),_0x3b1b53=this['context']['plugins']['get'](z);_0x2e13dc['register']('wideSidebar',this),_0x3b1b53['container']&&_0x2e13dc['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x240bd7){if(_0x240bd7===this['activeAnnotation'])return;const _0xf9f900=this['context']['plugins']['get'](z);_0xf9f900['_activeAnnotation']=_0x240bd7;const _0x196847=this['activeAnnotation'];_0xf9f900['refresh']({'blurredAnnotation':_0x196847,'activatedAnnotation':_0x240bd7}),this['activeAnnotation']=_0x240bd7;}['attach'](_0x5128ed){this['annotations']=_0x5128ed;const _0x2fd065=this['context']['plugins']['get'](z);if(_0x2fd065['_annotations']=_0x5128ed,this['isAttached'])throw new _0x48ecf8('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x2fd065,'set:container',()=>{this['detach'](),this['listenTo'](_0x2fd065,'change:container',_0x5d15ed=>{_0x5d15ed['off'](),this['attach'](_0x5128ed);});}),_0x2fd065['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x2a2351=_0xa60b4=>{_0xa60b4['updateTargetRect'](),_0x2fd065['addAnnotation'](_0xa60b4);};for(const _0x25b091 of _0x5128ed)_0x2a2351(_0x25b091);this['listenTo'](_0x5128ed,'add',(_0x615963,_0x22b619)=>{_0x2a2351(_0x22b619);}),this['listenTo'](_0x5128ed,'remove',(_0x1cd84e,_0xa8551,_0x2d3986)=>{_0x2fd065['rearrange']({'removedAnnotation':_0xa8551,'previousAnnotation':_0x5128ed['get'](_0x2d3986-0x1),'nextAnnotation':_0x5128ed['get'](_0x2d3986+0x1)}),_0xa8551===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x5128ed,'focus',(_0x37a685,_0x5c6e9e)=>{this['setActiveAnnotation'](_0x5c6e9e);}),this['listenTo'](_0x5128ed,'blur',()=>{this['setActiveAnnotation'](null);});const _0x339ad0=this['context']instanceof _0x4e0713?this['context']['editors']:new _0x3d5ab7([this['context']]);for(const _0x508db0 of _0x339ad0)this['_integrateWithEditorAnnotations'](_0x508db0);this['listenTo'](_0x339ad0,'add',(_0x5e4911,_0x465e4e)=>{this['listenTo'](_0x465e4e,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x465e4e);});}),this['listenTo'](_0x339ad0,'remove',(_0xc1081e,_0x16ace5)=>{_0x16ace5['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x16ace5['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x48ecf8('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4f3111=this['context']['plugins']['get'](z);_0x4f3111['_detachFromContainer'](this['annotations']),this['stopListening'](_0x4f3111),this['stopListening'](this['annotations']),this['context']instanceof _0x4e0713&&this['stopListening'](this['context']['editors']);for(const _0x4cb718 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4cb718);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x315b9e){if(!_0x315b9e['plugins']['has']('EditorAnnotations'))return;const _0x4ac3e3=_0x315b9e['plugins']['get']('EditorAnnotations'),_0x3b6077=()=>{const _0x3fc3ab=_0x4ac3e3['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x3fc3ab[0x0]||null);};this['listenTo'](_0x4ac3e3,'refresh',_0x3b6077),this['listenTo'](_0x4ac3e3,'blur',(_0x183825,{isAnnotationTracked:_0x3f3f1e})=>{this['activeAnnotation']&&_0x3f3f1e(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4ac3e3,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x3c54e8=>{_0x4ac3e3['hasDomSelection']()&&(_0x3b6077(),_0x3c54e8['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4ac3e3);}['_destroyEditorAnnotationsIntegration'](_0x394382){this['stopListening'](_0x394382),this['_editorAnnotations']['remove'](_0x394382);}}class C extends _0x508f07{['counterView'];constructor(_0x56e982){super(_0x56e982);const _0x5d72e3=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x5724d2,_0x30278f)=>_0x5724d2?'...':_0x30278f['toString']()),this['set']('annotationType',''),this['icon']=_0x49da61,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x5d72e3['to']('annotationType',_0x1ca283=>'ck-annotation-counter__badge--'+_0x1ca283),_0x5d72e3['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x5d72e3['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x298773{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12cecc){super(_0x12cecc),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x3581a0())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x3d5ab7(),this['_refreshPositioningDebounced']=_0x3aa37b(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0xf82a65(this['context']['locale']),this['balloonPanelView']=new _0x132bef(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x135379){this['annotations']=_0x135379;const _0x35b691=this['context']['plugins']['get'](z),_0x5d6390=this['balloonPanelView'];if(_0x35b691['_annotations']=_0x135379,this['isAttached'])throw new _0x48ecf8('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x35b691,'set:container',()=>{this['detach'](),this['listenTo'](_0x35b691,'change:container',_0x423cb4=>{_0x423cb4['off'](),this['attach'](_0x135379);});}),_0x35b691['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x34775d=_0x373b18=>{const _0x333371=new C(this['context']['locale']);_0x35b691['addAnnotation'](_0x373b18,_0x333371),this['_annotationToNarrowView']['set'](_0x373b18,_0x333371),_0x333371['bind']('isDirty','annotationType','number')['to'](_0x373b18['view'],'isDirty','type','length'),_0x333371['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x5d6390['content']['first']!==_0x373b18['view']?(this['_showBalloon'](_0x373b18),_0x373b18['view']['element']['focus'](),this['setActiveAnnotation'](_0x373b18)):this['setActiveAnnotation'](null);});};for(const _0x14a3da of _0x135379)_0x34775d(_0x14a3da);this['listenTo'](_0x135379,'add',(_0x269eb0,_0xbea69e)=>{_0x34775d(_0xbea69e);}),this['listenTo'](_0x135379,'remove',(_0x2e35f8,_0x5c5be5,_0x41e38a)=>{this['_annotationToNarrowView']['get'](_0x5c5be5)['destroy'](),this['_annotationToNarrowView']['delete'](_0x5c5be5),_0x35b691['rearrange']({'removedAnnotation':_0x5c5be5,'previousAnnotation':_0x135379['get'](_0x41e38a-0x1),'nextAnnotation':_0x135379['get'](_0x41e38a+0x1)}),_0x5c5be5===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x135379,'focus',(_0x34b54a,_0x23cdb0)=>{this['setActiveAnnotation'](_0x23cdb0);}),this['listenTo'](_0x135379,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x16127a,_0xf40d8b)=>{_0xf40d8b['keyCode']===_0x23fa1c['esc']&&_0x5d6390['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x5d6390['content']['first']),this['_hideBalloon'](),_0xf40d8b['stopPropagation'](),_0xf40d8b['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x17a021,_0xad6de7)=>{const _0x2dbd0c=_0xad6de7['target'];_0x5d6390['isVisible']&&_0x5d6390['element']['contains'](_0x2dbd0c)||_0x35b691['view']['element']['contains'](_0x2dbd0c)||_0x17a021['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x18a749=>_0x18a749['contains'](_0x2dbd0c))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x449a81=this['context']instanceof _0x4e0713?this['context']['editors']:new _0x3d5ab7([this['context']]);for(const _0x5a6949 of _0x449a81)this['_integrateWithEditorAnnotations'](_0x5a6949);this['listenTo'](_0x449a81,'add',(_0x1babf2,_0x11c6d8)=>{this['listenTo'](_0x11c6d8,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x11c6d8);});}),this['listenTo'](_0x449a81,'remove',(_0xb38962,_0x33bfaa)=>{_0x33bfaa['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x33bfaa['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x5c370c){if(_0x5c370c===this['activeAnnotation'])return;const _0x1ed2a7=this['context']['plugins']['get'](z);if(_0x1ed2a7['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x5c370c,'disableAnimationOnActivatedAnnotation':!0x0}),_0x5c370c)_0x1ed2a7['getSidebarItemView'](_0x5c370c)?this['_showBalloon'](_0x5c370c):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x5c370c;}['detach'](){if(!this['isAttached'])throw new _0x48ecf8('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x424fe0=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x3cac80=>_0x3cac80['destroy']()),this['_annotationToNarrowView']['clear'](),_0x424fe0['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x4e0713&&this['stopListening'](this['context']['editors']);for(const _0x2d3451 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2d3451);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x35208c){if(!_0x35208c['plugins']['has']('EditorAnnotations'))return;const _0x2288e6=_0x35208c['plugins']['get']('EditorAnnotations'),_0x32ab5f=this['context']['plugins']['get'](z),_0x5070fc=this['annotations'],_0x350780=this['balloonPanelView'],_0x14a6b4=()=>{const _0x35054c=_0x2288e6['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x35054c),this['setActiveAnnotation'](_0x35054c[0x0]||null);};this['listenTo'](_0x2288e6,'refresh',_0x14a6b4),this['listenTo'](_0x2288e6,'blur',(_0x1b6248,{isAnnotationTracked:_0x5a5856})=>{this['activeAnnotation']&&_0x5a5856(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x2288e6,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5070fc,'blur',_0x2b1047=>{_0x2288e6['hasDomSelection']()&&_0x2b1047['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5acc2f,_0x365977)=>{const _0x354b48=_0x365977['target'];_0x350780['isVisible']&&_0x350780['element']['contains'](_0x354b48)||_0x32ab5f['view']['element']['contains'](_0x354b48)||this['activeAnnotation']&&_0x2288e6['hasDomSelection']()&&(_0x14a6b4(),_0x5acc2f['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2288e6);}['_destroyEditorAnnotationsIntegration'](_0x1b2cb3){_0x1b2cb3&&(this['stopListening'](_0x1b2cb3),this['_editorAnnotations']['remove'](_0x1b2cb3));}['_setSelectedAnnotations'](_0x212be4){for(const _0x499573 of this['_selectedAnnotations'])_0x212be4['includes'](_0x499573)||this['_manuallyClosedAnnotationViews']['delete'](_0x499573['view']);this['_selectedAnnotations']=_0x212be4;}['_refreshPositioning'](){const _0x3a36c9=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x3a36c9['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x4ec69d){if(this['_manuallyClosedAnnotationViews']['has'](_0x4ec69d['view']))return;const _0x51708e=this['balloonPanelView']['content']['first'];_0x51708e!==_0x4ec69d['view']?(_0x51708e&&this['_detachListeners'](_0x51708e),this['_attachListeners'](_0x4ec69d['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x4ec69d['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x2b8cd8=this['balloonPanelView']['content']['first'],_0x35536c=_0x2b8cd8&&this['annotations']['getByView'](_0x2b8cd8);if(!_0x35536c||!this['_annotationToNarrowView']['has'](_0x35536c))return;const _0x3a55cf=this['_annotationToNarrowView']['get'](_0x35536c)['element'],_0x44e130=(function(){const _0x461d85=_0x132bef['defaultPositions'];return[_0x461d85['southArrowNorthEast'],_0x461d85['northArrowSouthEast'],_0x461d85['southArrowNorth'],_0x461d85['northArrowSouth'],_0x461d85['southArrowNorthWest'],_0x461d85['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x3a55cf,'positions':_0x44e130});}['_hideBalloon'](){const _0x1133a9=this['balloonPanelView'],_0x3841ec=_0x1133a9['content']['first'];_0x3841ec&&(this['_detachListeners'](_0x3841ec),_0x1133a9['unpin'](),_0x1133a9['content']['clear']());}['_attachListeners'](_0x4391b8){this['listenTo'](_0x4391b8,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4391b8,'Esc',(_0x145355,_0x7de931)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4391b8),this['_hideBalloon'](),_0x7de931();});}['_detachListeners'](_0x5d4288){this['stopListening'](_0x5d4288);}}class c extends _0x5bb67e{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x32c491,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58970b){super(_0x58970b),_0x58970b['editing']['view']['addObserver'](_0x39f157),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x58970b['plugins']['get'](_0x32c491),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x3aa37b(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x32838e=this['editor']['plugins']['get'](j);_0x32838e['context']===this['editor']&&(_0x32838e['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x512d2c,_0x317089)=>{const _0x54d07a=this['_balloon'];if(this['isAttached']&&_0x54d07a['visibleView']){const _0x1d2907=this['annotations']['getByView'](_0x54d07a['visibleView']);_0x1d2907&&this['_closeAnnotation'](_0x1d2907),_0x317089();}}));}['afterInit'](){const _0x5a4ae1=this['editor']['plugins']['get'](j);_0x5a4ae1['context']===this['editor']&&(_0x5a4ae1['hasActive']()||_0x5a4ae1['switchTo']('inline'));}['setActiveAnnotation'](_0x34c0a7){_0x34c0a7!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x34c0a7&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x34c0a7)&&this['_addAnnotationToBalloon'](_0x34c0a7,!0x0),_0x34c0a7['isActive']=!0x0),_0x34c0a7||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x34c0a7);}['attach'](_0x23e638){this['annotations']=_0x23e638;const _0x2ff679=this['editor']['plugins']['get'](j),_0x25ae46=this['_balloon'];if(this['isAttached'])throw new _0x48ecf8('inlineannotations-attach-already-attached',this);if(_0x2ff679['context']!==this['editor'])throw new _0x48ecf8('inlineannotations-not-allowed-with-context',this);const _0x3056db=this['editor']['plugins']['get'](b);this['listenTo'](_0x3056db,'refresh',()=>{const _0x7947b7=_0x3056db['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x37e138,_0x596818;!this['_forceRefresh']&&(_0x37e138=_0x7947b7,_0x596818=this['_selectedAnnotations'],_0x37e138['length']===_0x596818['length']&&_0x37e138['every'](_0x4f2918=>_0x596818['includes'](_0x4f2918)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x7947b7),this['setActiveAnnotation'](_0x7947b7[0x0]||null));}),this['listenTo'](_0x3056db,'blur',(_0x58e1ac,{isAnnotationTracked:_0x5cede9})=>{this['activeAnnotation']&&_0x5cede9(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3056db,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1d55f4,_0x242d66,_0x4d783b)=>{_0x4d783b||this['setActiveAnnotation'](null);}),this['listenTo'](_0x23e638,'remove',(_0x25cb51,_0x5bdad9)=>{this['_removeAnnotationFromBalloon'](_0x5bdad9),_0x5bdad9===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x25ae46,'change:visibleView',(_0x36a50e,_0x117df4,_0x2e21ce,_0x8bbeda)=>{_0x8bbeda&&this['stopListening'](_0x8bbeda);const _0x4bea8=_0x23e638['getByView'](_0x2e21ce);_0x2e21ce&&_0x4bea8&&(this['listenTo'](_0x2e21ce,'change:height',()=>{_0x25ae46['updatePosition']();}),this['listenTo'](_0x2e21ce,'Esc',()=>{this['_closeAnnotation'](_0x4bea8),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4bea8&&this['setActiveAnnotation'](_0x4bea8));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x25ae46['visibleView']&&(_0x23e638['getByView'](_0x25ae46['visibleView'])&&_0x25ae46['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x48ecf8('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x4a999c of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x4a999c);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x39021f){for(const _0x215b39 of this['_selectedAnnotations'])_0x39021f['includes'](_0x215b39)||this['_manuallyClosed']['delete'](_0x215b39);for(const _0x35ac16 of this['annotations'])_0x39021f['includes'](_0x35ac16)||this['_removeAnnotationFromBalloon'](_0x35ac16);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x1f0907 of _0x39021f)this['_addAnnotationToBalloon'](_0x1f0907);}this['_selectedAnnotations']=_0x39021f;}['_addAnnotationToBalloon'](_0x5ec084,_0x30a973=!0x1){this['_manuallyClosed']['has'](_0x5ec084)||(this['_addedAnnotations']['has'](_0x5ec084)||this['_balloon']['hasView'](_0x5ec084['view'])||(this['_addedAnnotations']['add'](_0x5ec084),this['_balloon']['add']({'stackId':_0x5ec084['view']['id'],'view':_0x5ec084['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5ec084)}})),_0x30a973&&this['_balloon']['showStack'](_0x5ec084['view']['id']));}['_getBalloonTargetForAnnotation'](_0x24ee9e){const _0x259d5d=_0x24ee9e['target'],_0x5c06da=this['editor']['editing']['view'],_0x6f2b2c=_0x5c06da['document']['selection']['getFirstRange'](),_0x3ae20a=_0x5c06da['domConverter']['viewRangeToDom'](_0x6f2b2c);if(_0x3ae20a['collapse'](!0x0),_0x259d5d){if(_0x259d5d instanceof _0xc27574)return _0x259d5d;let _0x599bbe=[];for(const _0x3db8c7 of _0x259d5d)_0x599bbe['push'](...F(_0x3db8c7['getClientRects']()));_0x599bbe=function(_0xab5dd0){const _0x3af991=[];let _0x348fad=_0xab5dd0[0x0];for(let _0xc0a367=0x1;_0xc0a367<_0xab5dd0['length'];_0xc0a367++)P(_0x348fad,_0xab5dd0[_0xc0a367])?_0x348fad['width']+=_0xab5dd0[_0xc0a367]['width']:(_0x3af991['push'](_0x348fad),_0x348fad=_0xab5dd0[_0xc0a367]);return _0x3af991['push'](_0x348fad),_0x3af991;}(_0x599bbe);const _0x8c32ed=_0x3ae20a['getBoundingClientRect']();return _0x599bbe['find'](_0x178bab=>_0x178bab['top']<=_0x8c32ed['top']&&_0x178bab['bottom']>=_0x8c32ed['bottom']&&_0x178bab['left']<=_0x8c32ed['left']&&_0x178bab['right']>=_0x8c32ed['right'])||_0x599bbe[0x0];}return _0x24ee9e['targetRect']||_0x3ae20a;}['_removeAnnotationFromBalloon'](_0x5daf9d){this['_addedAnnotations']['has'](_0x5daf9d)&&this['_balloon']['hasView'](_0x5daf9d['view'])&&(this['_addedAnnotations']['delete'](_0x5daf9d),this['_balloon']['remove'](_0x5daf9d['view']));}['_closeAnnotation'](_0x48ab3d){this['_manuallyClosed']['add'](_0x48ab3d),this['_removeAnnotationFromBalloon'](_0x48ab3d);}}function F(_0x6a6e5b){return Array['from'](_0x6a6e5b)['map'](DOMRect['fromRect']);}function P(_0x4895fe,_0x24b0b3){return _0x4895fe['top']===_0x24b0b3['top']&&_0x4895fe['bottom']===_0x24b0b3['bottom']&&_0x4895fe['right']===_0x24b0b3['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x144cb5,_0x4c9131){super(_0x144cb5),this['set']('isEmpty',!_0x4c9131['length']),this['focusTracker']=new _0xff5d19(),this['_annotationViews']=_0x4c9131,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x445736({'focusables':_0x4c9131,'focusTracker':this['focusTracker']}),this['listenTo'](_0x4c9131,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x4c9131,'remove',(_0x2fc65d,_0x2f9752)=>{_0x2f9752['isActive']&&this['focus'](),_0x4c9131['length']||(this['isEmpty']=!0x0);});const _0x404fb5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x144cb5,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x4c9131},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x404fb5['if']('isEmpty','ck-hidden',_0x318636=>!_0x318636)]},'children':[{'text':N(_0x144cb5,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x2c8ce2 of this['_annotationViews'])this['focusTracker']['add'](_0x2c8ce2['element']);this['_annotationViews']['on']('change',(_0x30998e,{added:_0x5f4659,removed:_0x3b1f09})=>{for(const _0x163fc4 of _0x5f4659)this['focusTracker']['add'](_0x163fc4['element']);for(const _0x5dcaf2 of _0x3b1f09)this['focusTracker']['remove'](_0x5dcaf2['element']);});}}class p extends _0x298773{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x48ab45){super(_0x48ab45),this['archivedThreads']=new _0x3d5ab7();}['init'](){const _0x3385b6=this['context'],_0x585ba0=_0x3385b6['plugins']['get'](o),_0x2f1c17=_0x3385b6['plugins']['get'](y);this['listenTo'](_0x585ba0,'addCommentThread',(_0x421c7b,{threadId:_0x24a1a})=>{const _0x221e18=_0x585ba0['getCommentThread'](_0x24a1a);_0x221e18['archivedAt']&&this['archivedThreads']['add'](_0x221e18,this['_calculatePosition'](_0x221e18['archivedAt'])),this['listenTo'](_0x221e18,'change:archivedAt',(_0x128f3c,_0x1de4aa,_0x56cc7d)=>{_0x56cc7d?this['archivedThreads']['has'](_0x221e18)||this['archivedThreads']['add'](_0x221e18,this['_calculatePosition'](_0x221e18['archivedAt'])):this['archivedThreads']['has'](_0x221e18)&&this['archivedThreads']['remove'](_0x221e18);});}),this['listenTo'](_0x585ba0,'removeCommentThread',(_0x110f35,{threadId:_0x1d3391})=>{const _0x3d9f44=_0x585ba0['getCommentThread'](_0x1d3391);this['stopListening'](_0x3d9f44),this['archivedThreads']['has'](_0x3d9f44)&&this['archivedThreads']['remove'](_0x3d9f44);},{'priority':'highest'}),this['listenTo'](_0x2f1c17['collection'],'focus',(_0x5efbf7,_0x1a7d70)=>{_0x1a7d70['isVisible']||(_0x1a7d70['isActive']=!0x0,_0x2f1c17['activate'](_0x1a7d70));});}['_calculatePosition'](_0x1fd093){const _0x1fa203=[...this['archivedThreads']]['findIndex'](_0x329ebe=>_0x329ebe['archivedAt']<_0x1fd093);return _0x1fa203>-0x1?_0x1fa203:this['archivedThreads']['length'];}}class a extends _0x5bb67e{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x1d7f05];}constructor(_0x5b2093){super(_0x5b2093),this['annotationViews']=new _0x146541(),this['_pendingThreads']=[];}['init'](){const _0x38a481=this['editor'],_0x24daa8=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x38a481['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x508f07,!0x0)),_0x38a481['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3dce27=this['_createCommentsArchiveButton'](_0x431b16);return _0x3dce27['set']({'role':'menuitemcheckbox'}),_0x3dce27;});const _0x2cde4c=_0x38a481['plugins']['get'](p),_0x217440=_0x38a481['plugins']['get']('Annotations'),_0x1c9b32=_0x38a481['plugins']['get']('CommentsRepository');_0x2cde4c['archivedThreads']['forEach'](_0x656ed7=>{this['_handleNewThread'](_0x656ed7);}),this['listenTo'](_0x2cde4c['archivedThreads'],'add',(_0x1d0ffe,_0x179ba8)=>{this['_handleNewThread'](_0x179ba8);}),this['listenTo'](_0x217440['collection'],'add',(_0x665648,_0x539abf)=>{const _0x5484d7=this['_pendingThreads']['find'](_0x13a217=>{const _0xe52c96=_0x1c9b32['_threadToController']['get'](_0x13a217);return _0xe52c96&&_0x539abf['innerView']===_0xe52c96['view'];});if(_0x5484d7){const _0x18aa99=this['_calculatePosition'](_0x5484d7['archivedAt']);this['_addAnnotationToArchive'](_0x539abf,_0x18aa99),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x5484d7),0x1);}}),this['listenTo'](_0x2cde4c['archivedThreads'],'remove',(_0x521c54,_0xe0ca02)=>{const _0x1c3251=_0x38a481['config']['get']('collaboration.channelId');if(!_0x1c3251||_0xe0ca02['channelId']===_0x1c3251){if(this['_pendingThreads']['includes'](_0xe0ca02))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xe0ca02),0x1);else{const _0x22557b=_0x1c9b32['_threadToController']['get'](_0xe0ca02),_0x4c3032=_0x217440['getByInnerView'](_0x22557b['view']);this['annotationViews']['remove'](_0x4c3032['view']),this['stopListening'](_0x4c3032),this['stopListening'](_0x4c3032['focusableElements']);}}}),this['listenTo'](_0x217440['collection'],'add',(_0x1179ff,_0x46368e)=>{this['listenTo'](_0x46368e,'escape',_0x24daa8);}),this['listenTo'](_0x217440['collection'],'remove',(_0x32cf9a,_0x5b2dad)=>{this['stopListening'](_0x5b2dad,'escape',_0x24daa8);});}['_addAnnotationToArchive'](_0x354573,_0x545e98){this['listenTo'](_0x354573,'set:isVisible',_0x36e2e3=>{_0x36e2e3['return']=!0x1,_0x36e2e3['stop']();}),this['annotationViews']['add'](_0x354573['view'],_0x545e98);}['_handleNewThread'](_0x532d78){const _0x5f0f1d=this['editor']['plugins']['get']('CommentsRepository'),_0xd92ec7=this['editor']['plugins']['get']('Annotations'),_0x34cc34=this['editor']['config']['get']('collaboration.channelId');if(!_0x34cc34||_0x532d78['channelId']===_0x34cc34){const _0x3a3fed=_0x5f0f1d['_threadToController']['get'](_0x532d78);if(!_0x3a3fed)return void this['_pendingThreads']['push'](_0x532d78);const _0x1e483a=this['_calculatePosition'](_0x532d78['archivedAt']),_0x48fa1b=_0xd92ec7['getByInnerView'](_0x3a3fed['view']);_0x48fa1b['isVisible']&&_0xd92ec7['_visibleAnnotations']['remove'](_0x48fa1b),this['_addAnnotationToArchive'](_0x48fa1b,_0x1e483a);}}['_calculatePosition'](_0x251456){const _0x347642=this['editor']['config']['get']('collaboration.channelId'),_0x419688=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x2a6ec4=>_0x2a6ec4['channelId']===_0x347642)['findIndex'](_0x3c2d29=>_0x3c2d29['archivedAt']<_0x251456);return _0x419688<0x0||_0x419688>this['annotationViews']['length']?this['annotationViews']['length']:_0x419688-0x1;}['_toggleDialog'](){const _0x5850a7=this['editor'],_0x2b1f4b=_0x5850a7['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x5850a7['locale'],this['annotationViews'])),'commentsArchive'===_0x2b1f4b['id']?_0x2b1f4b['hide']():_0x2b1f4b['show']({'id':'commentsArchive','title':N(_0x5850a7['locale'],'COMMENTS_ARCHIVE'),'icon':_0x35b5d8,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x427eb1['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x224f98,_0x19014f=!0x1){const _0x316e3e=this['editor']['locale'],_0x51240c=this['editor']['plugins']['get']('Dialog'),_0x343e72=new _0x224f98(_0x316e3e);return _0x343e72['bind']('isEnabled')['to'](this,'isEnabled'),_0x343e72['bind']('isOn')['to'](_0x51240c,'id',_0x4a4859=>'commentsArchive'===_0x4a4859),_0x343e72['set']({'label':N(_0x316e3e,'COMMENTS_ARCHIVE'),'icon':_0x35b5d8,'isToggleable':!0x0}),_0x19014f&&(_0x343e72['tooltip']=!0x0),this['listenTo'](_0x343e72,'execute',()=>this['_toggleDialog']()),_0x343e72;}['_hideDialogOnAnnotationEscape']=_0x51f6b8=>{const _0x170ec7=_0x51f6b8['source'];if(!this['annotationViews']['has'](_0x170ec7['view']))return;const _0x273edb=this['editor']['plugins']['get']('Dialog');_0x273edb['isOpen']&&'commentsArchive'===_0x273edb['id']&&(_0x273edb['hide'](),_0x51f6b8['stop']());};}class gi extends _0x5bb67e{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
|
|
23
|
+
import{Editor as _0x4f4c34,ContextPlugin as _0x545c79,PendingActions as lt,Command as _0x35ae39,Plugin as _0x23cf76,Context as _0x391341}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1f5238,uid as _0x17ea48,KeystrokeHandler as jt,FocusTracker as _0x2b2f3d,diff as _0x3fc1ba,Collection as _0xa3f224,Rect as _0x46af57,CKEditorError as _0x3c6477,first as _0x1de0ec,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x2ad553,keyCodes as _0x12b115}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1d2bdd,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x377dce,trimHtml as ts,LateFocusDropdownButtonView as _0x124d29,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x9ce898}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x5218cd}from'es-toolkit/compat';import{IconUndo as _0x16c8c0,IconCheck as _0x479cba,IconPencil as _0x42d721,IconRemoveComment as _0x2b206f,IconThreeVerticalDots as _0x2665c2,IconAddComment as _0x50c136,IconCommentsArchive as _0x307d20}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0xd32198,ButtonView as _0x28cfbe,ViewCollection as _0x10f58f,createDropdown as _0x1963c6,ListView as _0x2c610f,focusChildOnDropdownOpen as _0x4fd54f,ListItemView as _0x1fbd4b,MenuBarMenuListItemButtonView as _0x371c67,BodyCollection as _0x5b5349,BalloonPanelView as _0x135571,ContextualBalloon as _0xba2018,Dialog as _0x524ca0,DialogViewPosition as _0x1d0d6d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x2660de}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x280a59}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x354115}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f5238(){['model'];['view'];constructor(_0x501fed,_0x11d811){super(),this['model']=_0x501fed,this['model']['_isAttached']=!0x0,this['view']=_0x11d811,this['listenTo'](_0x11d811,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x11d811,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x11d811,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x11d811,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x11d811,'addComment',(_0x5af03a,_0x228b31)=>this['addComment'](_0x228b31)),this['listenTo'](_0x11d811,'updateComment',(_0xf28a22,_0x1523d0,_0x3382dc)=>this['updateComment'](_0x1523d0,_0x3382dc)),this['listenTo'](_0x11d811,'removeComment',(_0x3ea1bf,_0x47013c)=>this['removeComment'](_0x47013c));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x3d2a83){this['model']['addComment']({'content':_0x3d2a83,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x1c33d0,_0x5b2bf4){this['model']['getComment'](_0x1c33d0)['update']({'content':_0x5b2bf4});}['removeComment'](_0x2cdd22){this['model']['getComment'](_0x2cdd22)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x4aa764,_0x384644,_0x14c2b0){const t=_0x4aa764['t'];switch(_0x384644){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x14c2b0);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x14c2b0);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x14c2b0);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x14c2b0);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x14c2b0);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x14c2b0);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x14c2b0);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'},_0x14c2b0);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x14f49c,_0x452ed3){super(_0x14f49c);const _0x509c2e=_0x17ea48();this['main']=this['createCollection'](),this['editable']=new Vt(_0x14f49c,_0x452ed3,void 0x0,{'label':()=>N(_0x14f49c,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x14f49c['uiLanguageDirection'],'lang':_0x14f49c['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x509c2e},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x2587db){super(_0x2587db),this['view']=new Rt(_0x2587db['locale'],_0x2587db['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x343200=this['editor']['editing']['view'],_0x27777f=this['view']['editable'],_0x26bf9b=_0x343200['document']['getRoot']();_0x27777f['name']=_0x26bf9b['rootName'],this['view']['render']();const _0x7ad8f=_0x27777f['element'];this['setEditableElement'](_0x27777f['name'],_0x7ad8f),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x343200['attachDomRoot'](_0x7ad8f),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1f5238(_0x4f4c34){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Qt)());constructor(_0x54b507={}){function _0x219048(_0x47511d){return _0x47511d['map'](_0xa0a5a0=>String['fromCharCode'](_0xa0a5a0))['join']('');}(_0x54b507=Object['assign']({},_0x54b507))['plugins']||(_0x54b507['plugins']=hs['defaultPlugins']),super(_0x54b507),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x219048([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x219048([0x76,0x69,0x65,0x77])][_0x219048([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x219048([0x61,0x75,0x74,0x6f]),this[_0x219048([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x219048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x219048([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x219048([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x219048([0x6f,0x6b])});}['create'](){const _0x2576ec=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x2576ec))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5cb291=>{const _0x395925=this['model']['document']['getRoot'](),_0x142ceb=_0x395925&&_0x395925['getChild'](_0x395925['childCount']-0x1);_0x5cb291['setSelection'](_0x142ceb,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x463f37=this['editing']['view'],_0x586473=_0x463f37['document']['getRoot'](),_0x3ce3a4=_0x586473['getChild'](0x0);_0x586473['childCount']>0x1||!_0x3ce3a4||'p'!=_0x3ce3a4['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x463f37,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3ce3a4['placeholder']=this['placeholder']),Ft({'view':_0x463f37,'element':_0x3ce3a4,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3ce3a4);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4034b5,_0x1ad911={}){super(_0x4034b5),this['editor']=null,this['_editorConfig']=_0x1ad911,this['set']('value',_0x1ad911['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x4034b5,'Reply...')),this['set']('submitLabel',N(_0x4034b5,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x2b2f3d(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x438c17,_0x27d226)=>{this['cancelButtonView']['fire']('execute'),_0x27d226();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4a9e5d,_0x831659)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x831659());}),this['on']('submit',(_0x1eb007,_0x770104)=>{_0x770104['length']>0xfde8?(alert(N(_0x4034b5,'TOO_LONG_COMMENT_ALERT',[_0x770104['length'],0xfde8])),_0x1eb007['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x5eec65=this['editor'];this['element']['insertBefore'](_0x5eec65['ui']['element'],this['element']['firstChild']),_0x5eec65['model']['document']['on']('change',()=>this['value']=_0x5eec65['getData']()),_0x5eec65['bind']('placeholder')['to'](this),this['focusables']['add'](_0x5eec65['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x283021){-0x1===_0x283021?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x4e2acf}=this,_0x377a2e=new _0x28cfbe(_0x4e2acf);return _0x377a2e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x377a2e['withText']=!0x0,_0x377a2e['bind']('label')['to'](this,'submitLabel'),_0x377a2e['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x377a2e['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x5a78ee,_0x4945ab)=>!_0x4945ab&&!!_0x5a78ee['trim']()),_0x377a2e;}['_createCancelButton'](){const {locale:_0x2b0b43}=this,_0x1721c4=new _0x28cfbe(_0x2b0b43);return _0x1721c4['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1721c4['label']=N(_0x2b0b43,'Cancel'),_0x1721c4['withText']=!0x0,_0x1721c4['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1721c4;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4782ee=>{this['focusTracker']['add'](_0x4782ee['element']);}),this['focusables']['on']('change',(_0x472404,_0x3ea552)=>{for(const _0xb9f290 of Array['from'](_0x3ea552['added'])['reverse']())this['focusTracker']['add'](_0xb9f290['element']);});}}class ie extends kt{constructor(_0xca6113,_0xa6f30a,_0x33bfcd){super(_0xca6113),this['commentInputView']=new es(_0xca6113,_0x33bfcd),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x36226c,_0x18e7ba)=>_0x36226c||!!_0x18e7ba),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x1d2bdd(_0xca6113,_0xa6f30a),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x1679c7){this['commentInputView']['focus'](_0x1679c7);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x44f00a,_0x4e15e9)=>{const {submitButtonView:_0x216865,cancelButtonView:_0x3ca0df,editor:_0x392617}=this['commentInputView'];[_0x216865['element'],_0x3ca0df['element'],_0x392617?_0x392617['editing']['view']['getDomRoot']():null]['filter'](_0x24cc53=>_0x24cc53)['some'](_0x5913db=>_0x5913db['contains'](_0x4e15e9['target']))||(this['focus'](),_0x4e15e9['preventDefault']());});}}class rs extends kt{constructor(_0x14faf5){super(_0x14faf5);const _0x449141=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x449141['to']('count',_0x4723e7=>N(_0x14faf5,'NUMBER_OF_COMMENTS',_0x4723e7))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x3c8394,_0xbd4faa,_0x87a23){super(_0x3c8394);const _0x630c2a=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0xbd4faa['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0xbd4faa,this['_config']=_0x87a23,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x907763=>this['commentViews']['map'](_0x3cc7f7=>_0x3cc7f7['element'])['includes'](_0x907763['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x3c8394),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x3b8ebe=>_0x3b8ebe-this['_config']['maxCommentsWhenCollapsed']);for(const _0x46e9e1 of _0xbd4faa['comments'])this['_handleNewCommentModel'](_0x46e9e1);this['_handleInfoComment'](),this['listenTo'](_0xbd4faa['comments'],'add',(_0x319a0c,_0x5f1fe7)=>{const _0x21a2fb=this['_calculatePosition'](_0x5f1fe7);this['length']++,this['_handleNewCommentModel'](_0x5f1fe7,_0x21a2fb),this['refreshVisibleViews']();}),this['listenTo'](_0xbd4faa['comments'],'remove',(_0x47e45f,_0xdbc27b)=>{this['length']--,this['_handleRemoveCommentModel'](_0xdbc27b),this['refreshVisibleViews']();}),this['listenTo'](_0xbd4faa,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0xbd4faa,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x630c2a['if']('length','ck-hidden',_0x1150fa=>!_0x1150fa)],'aria-label':N(_0x3c8394,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x2d7e0c){-0x1===_0x2d7e0c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x310c77 of this['commentViews'])_0x310c77['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x316db1,_0x35df59){const _0x514bb6=new this['_config']['CommentView'](this['locale'],_0x316db1,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x514bb6['viewUid']=_0x316db1['id'],_0x514bb6['delegate']('removeComment')['to'](this),_0x514bb6['delegate']('updateComment')['to'](this),_0x514bb6['delegate']('resolveCommentThread')['to'](this),_0x514bb6['delegate']('editorReady')['to'](this),_0x514bb6['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x514bb6,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x514bb6,_0x35df59);}['_calculatePosition'](_0x11ecc6){const _0x204627=this['_model']['_findOptimalIndex'](_0x11ecc6);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x11ecc6['authoredAt']?_0x204627-0x1:_0x204627:_0x204627-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x2d31e6={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x2d31e6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x2d31e6));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4fd8dc){const _0x31dec9=this['commentViews']['remove'](_0x4fd8dc['id']);this['stopListening'](_0x31dec9),_0x31dec9['isEditMode']&&this['_updateHasDirtyComment'](),_0x31dec9['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2980f0=>_0x2980f0['isEditMode']);}['_rearrangeCollapse'](){const _0x29edfe=function(_0x3a4046){const _0x35672c=new _0xa3f224();for(const _0x86273a of _0x3a4046)_0x35672c['add'](_0x86273a);return _0x35672c;}(this['commentViews']),_0x571c49=this['_collapsedCommentsView']['count'];for(let _0x3e36dc=0x1;_0x3e36dc<=_0x571c49;_0x3e36dc++)_0x29edfe['remove'](0x1);for(const _0x2a4f2b of _0x29edfe)_0x2a4f2b['collapse']();_0x571c49>0x0&&_0x29edfe['add'](this['_collapsedCommentsView'],0x1),ns(_0x3fc1ba(Array['from'](this['visibleViews']),Array['from'](_0x29edfe)),this['visibleViews'],_0x29edfe);}['_rearrangeExpand'](){ns(_0x3fc1ba(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x513fbd of this['visibleViews'])_0x513fbd['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4ad88b=>{this['focusTracker']['add'](_0x4ad88b['element']),this['keystrokes']['listenTo'](_0x4ad88b['element']);}),this['commentViews']['on']('change',(_0x3fa431,_0x5d36a2)=>{for(const _0x153bce of _0x5d36a2['removed'])this['focusTracker']['remove'](_0x153bce['element']),this['keystrokes']['stopListening'](_0x153bce['element']);for(const _0x289f61 of Array['from'](_0x5d36a2['added'])['reverse']())this['focusTracker']['add'](_0x289f61['element']),this['keystrokes']['listenTo'](_0x289f61['element']);});}}function ns(_0x4cd143,_0x2e8b5c,_0xd4cce4){let _0x310b7a=0x0;for(const _0x2ac191 of _0x4cd143)switch(_0x2ac191){case'insert':_0x2e8b5c['add'](_0xd4cce4['get'](_0x310b7a),_0x310b7a),_0x310b7a++;break;case'delete':_0x2e8b5c['remove'](_0x310b7a);break;case'equal':_0x310b7a++;}}class oe extends kt{constructor(_0x36ff7e){super(_0x36ff7e);const _0x3cc328=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3cc328['to']('contextValue',_0x298df1=>N(_0x36ff7e,'THREAD_CONTEXT_LABEL',_0x298df1)),'tabindex':-0x1},'children':[{'text':_0x3cc328['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x503a15,_0x42edbe){super(_0x503a15);const _0x19796f=this['bindTemplate'];this['_model']=_0x42edbe,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x4ff14e=>!!_0x4ff14e),this['bind']('contextValue')['to'](this['_model'],'context',_0x4e4811=>_0x4e4811&&_0x4e4811['value']?this['_trimContextValue'](_0x4e4811['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x19796f['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x51908e=new _0x28cfbe(this['locale']);return _0x51908e['label']=N(this['locale'],'Reopen'),_0x51908e['tooltip']=N(this['locale'],'Reopen'),_0x51908e['icon']=_0x16c8c0,_0x51908e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x597cc2=>!_0x597cc2),_0x51908e['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x18c3cf,_0x3157b2)=>_0x18c3cf&&_0x3157b2),_0x51908e['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x51908e;}['_trimContextValue'](_0x2a2af0){if(_0x2a2af0['length']<0x96)return _0x2a2af0;const _0x3d5581=_0x2a2af0['lastIndexOf']('\x20',0x93);return _0x2a2af0['substring'](0x0,_0x3d5581>-0x1?_0x3d5581:0x93)+'...';}['_attachContextActions'](){const _0x1d471b=this['element']['querySelector']('.ck-context'),_0x2d1917=_0x1d471b['querySelector']('.ck-context__value');this['listenTo'](_0x1d471b,'mouseenter',()=>{_0x2d1917['offsetWidth']<_0x2d1917['scrollWidth']&&_0x1d471b['classList']['add']('overlay');}),this['listenTo'](_0x1d471b,'mouseleave',()=>{_0x1d471b['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x316ae1 of this['focusables'])this['focusTracker']['add'](_0x316ae1['element']),this['keystrokes']['listenTo'](_0x316ae1['element']);}['_createContextView'](){const _0x1947a5=new oe(this['locale']);return _0x1947a5['bind']('contextValue')['to'](this),_0x1947a5;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x18bd09,_0x15b33f,_0xdece42,_0x2f8ba0){super(_0x18bd09),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x15b33f,this['_localUser']=_0xdece42,this['_config']=_0x2f8ba0,this['commentThreadHeaderView']=new Xt(_0x18bd09,_0x15b33f),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x18bd09,N(_0x18bd09,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x18bd09,_0x15b33f,Object['assign']({'CommentView':this['_config']['CommentView']},_0x2f8ba0)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3dc475,_0x560c3b)=>_0x3dc475||!!_0x560c3b),this['bind']('isUnlinked')['to'](_0x15b33f,'unlinkedAt',_0x2466ea=>!!_0x2466ea),this['bind']('ariaLabel')['to'](this,'length',_0x2e4e90=>{const _0x4a5ac2=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x2e4e90,_0x4a5ac2]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2cb4bb=>_0x2cb4bb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4f3086=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x592c9c=_0x4f3086['commentInputView'];return _0x4f3086['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x592c9c,'value',(_0x3b2d1e,_0x251198,_0x45663e,_0x127e18,_0x30625f)=>!!_0x30625f||!!_0x127e18&&_0x45663e&&!_0x251198||_0x3b2d1e&&_0x45663e&&!_0x251198),_0x592c9c['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0xaf84ce,_0x1ce8f3,_0x387c6f)=>{let _0x1ef95e;return _0x1ef95e=_0x387c6f&&_0x1ce8f3?'Reply\x20to\x20reopen\x20discussion...':_0xaf84ce?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x1ef95e);}),_0x592c9c['bind']('submitLabel')['to'](this,'length',_0x22209a=>N(this['locale'],_0x22209a?'Reply':'Comment')),_0x592c9c['on']('submit',(_0x111625,_0x21affd)=>{this['fire']('addComment',_0x21affd),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x592c9c['on']('cancel',()=>{this['focus']();}),_0x592c9c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x592c9c['on']('cancel',_0x436ac0=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x436ac0['stop']());}),this['on']('change:isActive',(_0x33c7f5,_0xe66c25,_0x422d77)=>{_0x422d77||this['length']||_0x592c9c['value']||this['fire']('removeCommentThread');}),_0x4f3086;}}class gt extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x3a70d2,_0x47804b,_0xf3744,_0x5c3d95){super(_0x3a70d2,_0x47804b,_0xf3744,_0x5c3d95),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x3a70d2,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4e661b,_0x5acfc4,_0x38d1d3)=>{_0x38d1d3||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4cd663,_0x58f206,_0x1ca481)=>{_0x1ca481&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x587d97=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x587d97['if']('isActive','ck-thread--active'),_0x587d97['if']('isUnlinked','ck-thread--unlinked'),_0x587d97['to']('actionIndicator',_0x403984=>_0x403984?'ck-thread--'+_0x403984:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x587d97['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x133f6e of this['commentsListView']['commentViews'])_0x133f6e['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x2e702d}=this,_0x31006b=this['commentsListView']['commentViews']['get'](0x0);_0x31006b===this['_boundFirstCommentView']||_0x31006b['isSystemComment']||(this['_boundFirstCommentView']=_0x31006b,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x31006b,'actionIndicator',_0x4d5097=>'remove'===_0x4d5097?'remove':null),_0x31006b['placeholder']=N(_0x2e702d,'Write\x20a\x20comment...'),_0x31006b['removeButton']['on']('execute',_0x2b91fa=>{_0x2b91fa['stop'](),this['showConfirm'](N(_0x2e702d,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x31006b['focus']();}),_0x31006b['actionBar']['add'](this['resolveButton'],0x0),_0x31006b['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2986e0=new _0x377dce(this['locale']);return _0x2986e0['label']=N(this['locale'],'Resolve'),_0x2986e0['tooltip']=N(this['locale'],'Resolve'),_0x2986e0['icon']=_0x479cba,_0x2986e0['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2986e0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xdb9ec7=>!_0xdb9ec7),_0x2986e0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2f0d73,_0x2be2d7)=>_0x2f0d73&&!_0x2be2d7),_0x2986e0['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2986e0;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0x5b001f){super(_0x5b001f),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x2d71ff,_0x3a5bad,_0x4a6154)=>{this['element']['innerHTML']=_0x4a6154;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a0934,_0x5255e5,_0x2067c0){super(_0x2a0934),this['_model']=_0x5255e5,this['_config']=_0x2067c0,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x5255e5,'content',_0x5255e5,'authoredAt',(_0x40a8f9,_0x4e06c6)=>N(_0x2a0934,'COMMENT_ARIA_LABEL',[_0x5255e5['author']['name'],_0x2067c0['formatDateTime'](_0x4e06c6),new DOMParser()['parseFromString'](_0x40a8f9,'text/html')['body']['textContent'],_0x5255e5['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x2a0934,N(_0x2a0934,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x10f58f(),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x21a539=>_0x21a539['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x5b91a1=new is(this['locale']);return _0x5b91a1['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x4b65a0,_0x4a9216)=>_0x4a9216?ts(_0x4b65a0,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x4b65a0),_0x5b91a1;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0xbc45f5=new es(this['locale'],this['_config']['editorConfig']);return _0xbc45f5['value']=this['_model']['content'],_0xbc45f5['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xbc45f5['submitLabel']=N(this['locale'],'Save'),_0xbc45f5['on']('submit',(_0xbac10e,_0x52f248)=>{this['fire']('updateComment',this['_model']['id'],_0x52f248),this['switchToDisplayMode'](),this['focus']();}),_0xbc45f5['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0xbc45f5['once']('editorReady',()=>{_0xbc45f5['focus']();}),_0xbc45f5['createEditor'](),_0xbc45f5['delegate']('editorReady')['to'](this),_0xbc45f5['delegate']('editorDestroyed')['to'](this),_0xbc45f5;}['_setupKeyboardNavigation'](){const _0xdfea49=this['element'];this['keystrokes']['listenTo'](_0xdfea49);for(const _0x2e7d28 of this['focusables'])this['focusTracker']['add'](_0x2e7d28['element']),this['keystrokes']['listenTo'](_0x2e7d28['element']);this['focusables']['on']('change',(_0x3171ab,_0x3b92ac)=>{for(const _0x30fedf of _0x3b92ac['removed'])this['focusTracker']['remove'](_0x30fedf['element']),this['keystrokes']['stopListening'](_0x30fedf['element']);for(const _0xc28f90 of _0x3b92ac['added'])this['focusTracker']['add'](_0xc28f90['element']),this['keystrokes']['listenTo'](_0xc28f90['element']);}),this['keystrokes']['set']('enter',(_0x9bf314,_0x4b256f)=>{_0xdfea49===_0x9bf314['target']&&(this['focusCycler']['focusFirst'](),_0x4b256f());}),this['keystrokes']['set']('esc',(_0x4e5d1f,_0x179571)=>{_0xdfea49!==_0x4e5d1f['target']&&(this['focus'](),_0x179571());});}}class Tt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(di){['actionBar'];['userView'];constructor(_0x40c2a3,_0x2906b0,_0x1fd4f1){super(_0x40c2a3,_0x2906b0,_0x1fd4f1),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x40c2a3,'Reply...')),this['bind']('authoredAt')['to'](_0x2906b0),this['bind']('resolvedAt')['to'](_0x2906b0),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x1d2bdd(_0x40c2a3,_0x2906b0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2906b0,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2a055a=this['bindTemplate'],_0x2beb69=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2a055a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a055a['to']('authoredAt',_0x1ec6ac=>this['_config']['formatDateTime'](_0x1ec6ac))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2a055a['if']('isEditMode','ck-comment__actions--hidden'),_0x2a055a['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x2beb69['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x2a055a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2a055a['if']('isEditMode','ck-comment--edit'),_0x2a055a['if']('isSystemComment','ck-comment--info'),_0x2a055a['to']('actionIndicator',_0x5de84f=>_0x5de84f?'ck-comment--'+_0x5de84f:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x2beb69}]}]};}['_createEditButton'](){const _0x5d6c91=new _0x28cfbe(this['locale']);return _0x5d6c91['label']=N(this['locale'],'Edit'),_0x5d6c91['icon']=_0x42d721,_0x5d6c91['withText']=!0x0,_0x5d6c91['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x5d6c91['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x475e73=>!_0x475e73),_0x5d6c91['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x5d6c91['on']('execute',()=>this['switchToEditMode']()),_0x5d6c91;}['_createRemoveButton'](){const _0x30bcf4=new _0x28cfbe(this['locale']);return _0x30bcf4['label']=N(this['locale'],'Remove'),_0x30bcf4['icon']=_0x2b206f,_0x30bcf4['withText']=!0x0,_0x30bcf4['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x30bcf4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xf272fb=>!_0xf272fb),_0x30bcf4['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x30bcf4['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x30bcf4;}['_createDropdown'](){const _0x5f500e=_0x1963c6(this['locale'],_0x124d29),_0x20dcb3=_0x5f500e['panelView']['children'],_0x34ad9b=new _0x2c610f(this['locale']),_0x3fdf3e=_0x5f500e['bindTemplate'];_0x4fd54f(_0x5f500e,()=>this['items']['find'](_0x61b176=>_0x61b176['isVisible'])),_0x5f500e['extendTemplate']({'attributes':{'class':[_0x3fdf3e['if']('isVisible','ck-hidden',_0x4ffbaa=>!_0x4ffbaa)]}});const _0x22bd2c=(_0x58afd6,_0x184e0e=-0x1)=>{const _0x35f24a=new _0x1fbd4b(this['locale']);_0x35f24a['children']['add'](_0x58afd6);const _0x1d196c=_0x184e0e>-0x1?_0x184e0e:_0x34ad9b['items']['length'];_0x34ad9b['items']['add'](_0x35f24a,_0x1d196c);const _0x8e2c2e=Array['from'](this['items']);_0x5f500e['unbind']('isEnabled','isVisible'),_0x5f500e['bind']('isEnabled')['toMany'](_0x8e2c2e,'isEnabled',(..._0x1debec)=>_0x1debec['some'](_0x1ebceb=>_0x1ebceb)),_0x5f500e['bind']('isVisible')['toMany'](_0x8e2c2e,'isVisible',(..._0x2c22c1)=>_0x2c22c1['some'](_0x20bae1=>_0x20bae1));};_0x5f500e['panelPosition']='sw',_0x5f500e['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x2665c2});for(const _0x16ea35 of this['items'])_0x22bd2c(_0x16ea35);return _0x20dcb3['add'](_0x34ad9b),_0x5f500e['listenTo'](this['items'],'add',(_0x35907b,_0x51fe64,_0x4e0dd9)=>{_0x22bd2c(_0x51fe64,_0x4e0dd9);}),_0x5f500e['listenTo'](this['items'],'remove',(_0xb14cc7,_0x1f4ca6,_0x4d4571)=>{_0x34ad9b['items']['remove'](_0x4d4571);}),_0x5f500e;}['_attachActions'](_0x3072d5,_0x270bb5){const _0x404f02=_0x3072d5&&_0x3072d5['element'];_0x404f02&&(this['listenTo'](_0x404f02,'mouseenter',()=>this['actionIndicator']=_0x270bb5),this['listenTo'](_0x404f02,'focus',()=>this['actionIndicator']=_0x270bb5),this['listenTo'](_0x404f02,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x404f02,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x3211b2=super['_createCommentInputView']();return _0x3211b2['bind']('placeholder')['to'](this),_0x3211b2;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x388c29){const _0xf11d5d=Dt(_0x388c29,0x1e),_0x1a3182=new MutationObserver(_0x3262a8=>{for(const _0x58eae7 of _0x3262a8)('attributes'==_0x58eae7['type']&&'class'==_0x58eae7['attributeName']||'childList'==_0x58eae7['type']||'characterData'==_0x58eae7['type'])&&_0xf11d5d();});return{'attach'(_0x5a767c){_0x1a3182['observe'](_0x5a767c,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1a3182['disconnect'](),_0xf11d5d['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x205c04,_0x4a1a87){super(_0x205c04),this['id']=_0x17ea48(),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x282e6c,_0x5ea689)=>this['fire']('Esc',_0x5ea689)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x4a1a87),this['mainView']=_0x4a1a87;const _0x582b0a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x582b0a['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x4a3ea4=this['element']['clientHeight'];_0x4a3ea4&&(this['height']=_0x4a3ea4);}}class T extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x1f5238(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x495436,target:_0x3f86,type:_0xbdf0eb,isVisible:_0x2986ca=!0x0}){super(),this['view']=_0x495436,this['view']['element']||this['view']['render'](),this['_type']=_0xbdf0eb,this['_target']=_0x3f86,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0xa3f224([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x52863b,_0xed42fe)=>{this['view']['focusTracker']['add'](_0xed42fe);}),this['focusableElements']['on']('remove',(_0x173ad5,_0x299d9b)=>{this['view']['focusTracker']['remove'](_0x299d9b);}),this['set']('isVisible',_0x2986ca);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x445a7a=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x445a7a),_0x445a7a;}get['targetRect'](){const _0xd4bbd8=this['target'];if(null===_0xd4bbd8)return null;if(_0xd4bbd8 instanceof _0x46af57)return _0xd4bbd8;const _0x33f342=_0xd4bbd8['filter'](_0x88254=>function(_0x119e06){const _0x4bfc76=_0x119e06['offsetParent'];if(_0x4bfc76)return!0x0;const _0x3c9b57=_0x119e06['getClientRects']()['item'](0x0);return!!_0x3c9b57;}(_0x88254));return 0x0===_0x33f342['length']?null:new _0x46af57(_0x33f342[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x503ad8){this['view']['isActive']=_0x503ad8,this['view']['mainView']['isActive']=_0x503ad8;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x2e990c){if(!(null===_0x2e990c||_0x2e990c instanceof _0x46af57||Array['isArray'](_0x2e990c)&&_0x2e990c['every'](_0x3a39fa=>fi(_0x3a39fa))))throw new _0x3c6477('annotation-invalid-target',null,{'target':_0x2e990c});}['_getNormalizedTarget'](){const _0x521939='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x521939)?[_0x521939]:_0x521939;}}function fi(_0x2ece13){return null!==_0x2ece13&&'object'==typeof _0x2ece13&&'nodeType'in _0x2ece13&&0x1===_0x2ece13['nodeType'];}class S extends _0xa3f224{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x361c7c=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x2b2f3d(),this['_focusTracker']['on']('change:isFocused',(_0x2fbcd4,_0x12d933,_0x1cbbe6)=>{_0x1cbbe6||this['fire']('blur');});for(const _0x42dd96 of _0x361c7c)this['add'](_0x42dd96);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x60cf87){if(this['has'](_0x60cf87))throw new _0x3c6477('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x60cf87['innerView'],_0x60cf87),this['_viewToAnnotation']['set'](_0x60cf87['view'],_0x60cf87);for(const _0x52f9f2 of _0x60cf87['focusableElements'])this['_focusTracker']['add'](_0x52f9f2);this['listenTo'](_0x60cf87['focusableElements'],'add',(_0x568d11,_0x323324)=>{this['_focusTracker']['add'](_0x323324);}),this['listenTo'](_0x60cf87['focusableElements'],'remove',(_0x205ffc,_0x46de0c)=>{this['_focusTracker']['remove'](_0x46de0c);}),this['listenTo'](_0x60cf87['view']['focusTracker'],'change:isFocused',(_0x2f67b,_0x55c773,_0x23c94b)=>{_0x23c94b&&this['fire']('focus',_0x60cf87);}),_0x60cf87['updateTargetRect']();const _0x2d19cf=this['_getOrderInContent'](_0x60cf87['view']['targetRect']);return super['add'](_0x60cf87,_0x2d19cf);}['remove'](_0x516f47){if(!this['has'](_0x516f47))throw new _0x3c6477('annotationcollection-not-existing-item',null);this['stopListening'](_0x516f47['view']['focusTracker']),this['stopListening'](_0x516f47['focusableElements']);for(const _0x483355 of _0x516f47['focusableElements'])this['_focusTracker']['remove'](_0x483355);return this['_viewToAnnotation']['delete'](_0x516f47['view']),this['_innerViewToAnnotation']['delete'](_0x516f47['innerView']),super['remove'](_0x516f47);}['getByInnerView'](_0x452275){return this['_innerViewToAnnotation']['get'](_0x452275);}['getByView'](_0x5ea5fa){return this['_viewToAnnotation']['get'](_0x5ea5fa);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1a1f41 of this)_0x1a1f41['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3cfc47=Array['from'](this)['sort']((_0x2750b5,_0x52d6fa)=>w(_0x2750b5['view']['targetRect'],_0x52d6fa['view']['targetRect']));for(let _0x14aeb0=_0x3cfc47['length']-0x1;_0x14aeb0>0x0;_0x14aeb0--){const _0x247057=_0x3cfc47[_0x14aeb0];_0x14aeb0!==this['getIndex'](_0x247057)&&(this['remove'](_0x247057),this['add'](_0x247057));}}['_getOrderInContent'](_0x449236){let _0x4b8cb0=0x0;if(!_0x449236)return this['length'];for(const _0x4f953c of this){const _0x1d877=_0x4f953c['view']['targetRect'];if(_0x1d877){if(w(_0x449236,_0x1d877)<0x0)return _0x4b8cb0;_0x4b8cb0++;}}return _0x4b8cb0;}}function v({source:_0x57840f,target:_0x31df8e,filter:_0x16f883}){for(const _0x31abdd of _0x57840f)_0x16f883(_0x31abdd)&&_0x31df8e['add'](_0x31abdd);_0x31df8e['listenTo'](_0x57840f,'add',(_0x2ed925,_0xaaf5ce)=>{_0x16f883(_0xaaf5ce)&&_0x31df8e['add'](_0xaaf5ce);}),_0x31df8e['listenTo'](_0x57840f,'remove',(_0x32dc42,_0x277523)=>{_0x31df8e['has'](_0x277523)&&_0x31df8e['remove'](_0x277523);});}function w(_0x39dd61,_0x191029){if(null===_0x39dd61&&null===_0x191029)return 0x0;if(null===_0x39dd61)return-0x1;if(null===_0x191029)return 0x1;const _0x1287ae=_0x39dd61['top']-_0x191029['top'];return 0x0==_0x1287ae?_0x39dd61['left']-_0x191029['left']:_0x1287ae;}class y extends _0x545c79{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2514f2){if(super(_0x2514f2),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2514f2 instanceof _0x4f4c34){const _0x291b30=_0x2514f2['locale'];_0x2514f2['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3bc582){this['collection']['add'](_0x3bc582);}['remove'](_0x5c1cab){this['collection']['remove'](_0x5c1cab),_0x5c1cab['destroy']();}['refreshVisibility'](){for(const _0x2c978b of this['collection'])_0x2c978b['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x4fbf2b){return this['collection']['getByInnerView'](_0x4fbf2b);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3aac13 of this['collection'])_0x3aac13['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x16e286){this['fire']('_activateAnnotation',_0x16e286);}['createAnnotation'](_0x45837b){return new T(_0x45837b);}['createAnnotationView'](_0x9e8734,_0x37aed6){return new E(_0x9e8734,_0x37aed6);}['_addActiveAnnotation'](_0x20a12b){const _0x1f13ba=new Set(this['activeAnnotations']);_0x1f13ba['add'](_0x20a12b),this['activeAnnotations']=_0x1f13ba;}['_removeActiveAnnotation'](_0x403f4f){const _0x38d2fb=new Set(this['activeAnnotations']);_0x38d2fb['delete'](_0x403f4f),this['activeAnnotations']=_0x38d2fb;}['_bindAnnotationsToVisibleAnnotations'](){const _0x13f540=this['collection'],_0x2a4a91=this['_visibleAnnotations'];function _0x48e2b4(_0x591619){const _0x1ec4d1=_0x591619['source'];_0x1ec4d1['isVisible']&&!_0x2a4a91['has'](_0x1ec4d1)?_0x2a4a91['add'](_0x1ec4d1):!_0x1ec4d1['isVisible']&&_0x2a4a91['has'](_0x1ec4d1)&&_0x2a4a91['remove'](_0x1ec4d1),_0x1ec4d1['view']['focusTracker']['remove'](_0x1ec4d1['view']['element']),_0x1ec4d1['view']['focusTracker']['add'](_0x1ec4d1['view']['element']);}this['listenTo'](_0x13f540,'add',(_0x1cf53a,_0x280d72)=>{_0x280d72['isVisible']&&_0x2a4a91['add'](_0x280d72),this['listenTo'](_0x280d72,'change:isVisible',_0x48e2b4);}),this['listenTo'](_0x13f540,'remove',(_0x18d6d5,_0x460258)=>{_0x2a4a91['has'](_0x460258)&&_0x2a4a91['remove'](_0x460258),this['stopListening'](_0x460258,'change:isVisible',_0x48e2b4);});}['_setupEnterAnnotationKeystroke'](){const _0x518787=_0x1b8131=>{_0x1b8131['on']('ready',()=>{_0x1b8131['keystrokes']['set'](_0x280a59,(_0x3e35dd,_0x1f76b1)=>{const _0x1015c5=_0x1de0ec(this['activeAnnotations']['values']());_0x1015c5&&(_0x1015c5['view']['focus'](),_0x1f76b1());});});};this['context']instanceof _0x4f4c34?_0x518787(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x399b27,_0x398250)=>{_0x518787(_0x398250);});}['_setupEscapeAnnotationHandling'](){const _0x31e212=_0x5e313f=>{const _0x8aab13=_0x5e313f['source'],_0x34fc7b=[];let _0x145523;if(Array['isArray'](_0x8aab13['target'])){_0x145523=_0x8aab13['target'][0x0],this['context']instanceof _0x4f4c34?_0x34fc7b['push'](this['context']):this['context']['editors']&&_0x34fc7b['push'](...this['context']['editors']);for(const _0x304f6a of _0x34fc7b)for(const _0x17f649 of _0x304f6a['editing']['view']['domRoots']['values']())if(_0x17f649['contains'](_0x145523))return void _0x304f6a['editing']['view']['focus']();_0x145523['focus']();}};this['listenTo'](this['collection'],'add',(_0x326b1c,_0x414332)=>{this['listenTo'](_0x414332,'escape',_0x31e212,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x5f3bae,_0xf08573)=>{this['stopListening'](_0xf08573,'escape',_0x31e212);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x545c79{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c170){super(_0x5c170),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2f554f=this['context']['config'];_0x2f554f['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2f554f['define']('comments.maxThreadTotalWeight',0x1f4),_0x2f554f['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2f554f['define']('comments.CommentThreadView',gt),_0x2f554f['define']('comments.CommentView',Tt),_0x2f554f['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3d69f0=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x216fcf,_0x4c0b57)=>this['_addCommentThread'](_0x4c0b57)),this['on']('submitCommentThread',(_0x338126,_0x525777)=>this['_submitCommentThread'](_0x525777)),this['on']('resolveCommentThread',(_0x31813f,_0x34adbc)=>this['_resolveCommentThread'](_0x34adbc)),this['on']('resolveCommentThread',(_0x5a1446,_0x256fa1)=>this['_updateActiveAnnotation'](_0x256fa1),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x274389,_0x5efc60)=>this['_reopenCommentThread'](_0x5efc60)),this['on']('reopenCommentThread',(_0x545a38,_0x2475b0)=>this['_updateActiveAnnotation'](_0x2475b0),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x34bace,_0x1f1600)=>this['_removeCommentThread'](_0x1f1600)),this['on']('updateCommentThread',(_0x476906,_0x592141)=>this['_updateCommentThread'](_0x592141)),this['on']('updateCommentThread',(_0x2f36b0,_0x4e6a9d)=>this['_updateActiveAnnotation'](_0x4e6a9d),{'priority':'lowest'}),this['on']('addComment',(_0x5e9cd4,_0x337d9d)=>this['_addComment'](_0x337d9d)),this['on']('updateComment',(_0x3bd6ee,_0x28c207)=>this['_updateComment'](_0x28c207)),this['on']('removeComment',(_0x5a25e2,_0x330937)=>this['_removeComment'](_0x330937)),this['on']('addComment',(_0x8713b,{threadId:_0x4bf0cf,isFromAdapter:_0x4a3b0a})=>{if(_0x4a3b0a)return;const _0x479347=this['getCommentThread'](_0x4bf0cf),_0x18c42b=_0x479347&&this['_threadToController']['get'](_0x479347);_0x18c42b&&_0x18c42b['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3d69f0,'change:activeAnnotations',(_0x485296,_0x5653df,_0x5cfe71)=>{const _0x19e13b=Array['from'](_0x5cfe71)['map'](_0x1d9f72=>this['_viewToController']['get'](_0x1d9f72['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x19e13b?_0x19e13b['model']:null;});}set['adapter'](_0x59af53){if(this['_adapter'])throw new _0x3c6477('commentsrepository-adapter-already-set');this['_adapter']=_0x59af53;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x1e0631=_t,threadId:_0x3be6e1=_0x17ea48(),comments:_0x4c0660=[],unlinkedAt:_0x1161d3=null,resolvedAt:_0x68c6f3=null,resolvedBy:_0x73f0b3=null,target:_0xcabc8a=null,context:_0x3a6371=null,attributes:_0xc1a444={},isResolvable:_0x3137db=!0x0,isSubmitted:_0x381263=!0x1,isFromAdapter:_0x1cc17e=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x1e0631),{'channelId':_0x1e0631,'threadId':_0x3be6e1,'comments':_0x4c0660,'unlinkedAt':_0x1161d3,'resolvedAt':_0x68c6f3,'resolvedBy':_0x73f0b3,'target':_0xcabc8a,'context':_0x3a6371,'attributes':_0xc1a444,'isFromAdapter':_0x1cc17e,'isResolvable':_0x3137db,'isSubmitted':_0x381263}),this['getCommentThread'](_0x3be6e1);}['openNewCommentThread']({channelId:_0x50c73f=_t,threadId:_0x4be6fb=_0x17ea48(),target:_0x4dc441,context:_0x21420b=null,isResolvable:_0x2c391a=!0x0}){if(this['_readOnlyChannels']['has'](_0x50c73f)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4dc441)throw new _0x3c6477('commentsrepository-missing-target');const _0x50d75d=this['addCommentThread']({'channelId':_0x50c73f,'threadId':_0x4be6fb,'target':_0x4dc441,'context':_0x21420b,'isResolvable':_0x2c391a});if(!_0x50d75d)return null;const _0x20ac21=this['_threadToController']['get'](_0x50d75d),_0x39d63a=_0x20ac21['view']['commentThreadInputView']['commentInputView'],_0x2533e7=this['context']['plugins']['get'](y),_0x568b28=_0x2533e7['getByInnerView'](_0x20ac21['view']);return _0x2533e7['activate'](_0x568b28),_0x39d63a['once']('editorReady',()=>_0x39d63a['focus']()),_0x50d75d;}['hasCommentThread'](_0x28f9f4){if('string'!=typeof _0x28f9f4)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x28f9f4);}['updateCommentThread']({channelId:_0x2c9e4a=_t,threadId:_0x29ba42,context:_0x8fe513,unlinkedAt:_0x9357ac,attributes:_0x118937,isFromAdapter:_0x2571b9=!0x1}){return this['fire'](Nt('updateCommentThread',_0x2c9e4a),{'channelId':_0x2c9e4a,'threadId':_0x29ba42,'context':_0x8fe513,'unlinkedAt':_0x9357ac,'attributes':_0x118937,'isFromAdapter':_0x2571b9}),this['getCommentThread'](_0x29ba42);}['getCommentThread'](_0x18c319){if('string'!=typeof _0x18c319)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x18c319);}['fetchCommentThread']({channelId:_0x177709,threadId:_0x21d591}={}){const _0x1c4093=this['getCommentThread'](_0x21d591);if(_0x1c4093)return Promise['resolve'](_0x1c4093);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3c6477('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x177709,'threadId':_0x21d591})['then'](_0x2ed301=>this['hasCommentThread'](_0x21d591)?this['getCommentThread'](_0x21d591):_0x2ed301?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x177709},_0x2ed301)):void 0x0)['catch'](_0xe35f3e=>{throw console['error'](_0xe35f3e),new _0x3c6477('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x480ee5,skipNotAttached:_0x1fb594=!0x1,skipEmpty:_0x720c55=!0x1,toJSON:_0x4d7fd3=!0x1}={}){const _0x59ffa2=[];for(const _0x1f7cf2 of this['_threads']['values']())_0x480ee5&&_0x1f7cf2['channelId']!==_0x480ee5||_0x1fb594&&!_0x1f7cf2['isAttached']||_0x720c55&&0x0===_0x1f7cf2['length']||_0x59ffa2['push'](_0x1f7cf2);return _0x4d7fd3?_0x59ffa2['map'](_0x4bb61b=>_0x4bb61b['toJSON']()):_0x59ffa2;}['getAnnotationForCommentThread'](_0x2cb50e){const _0x32c827=this['_threadToController']['get'](_0x2cb50e);if(!_0x32c827)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x32c827['view'])||null;}['getCommentThreadForAnnotation'](_0x27f185){const _0x180fa0=this['_viewToController']['get'](_0x27f185['innerView']);return _0x180fa0?_0x180fa0['model']:null;}['setActiveCommentThread'](_0x4891c0){const _0xb70e37=this['context']['plugins']['get'](y);if(!_0x4891c0)return void(this['activeCommentThread']&&_0xb70e37['deactivateAll']());const _0x3006e2=this['getCommentThread'](_0x4891c0);if(!_0x3006e2)throw new _0x3c6477('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4891c0});if(!this['_threadToController']['has'](_0x3006e2))throw new _0x3c6477('commentsrepository-active-not-attached',null,{'threadId':_0x4891c0});const _0x223f62=_0xb70e37['getByInnerView'](this['_threadToController']['get'](_0x3006e2)['view']);_0xb70e37['activate'](_0x223f62);}['switchReadOnly'](_0x58ff87,_0x39fdad){_0x58ff87?this['_readOnlyChannels']['add'](_0x39fdad):this['_readOnlyChannels']['delete'](_0x39fdad),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x521b2c){return this['_readOnlyChannels']['has'](_0x521b2c)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x39699b,_0x1c3de8){return new vt(_0x39699b,_0x1c3de8);}['setPermissions'](_0x1a13fe,_0x22f0d9=_t){this['_permissions']['set'](_0x22f0d9,_0x1a13fe),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2f8487=_t){return this['_permissions']['has'](_0x2f8487)?this['_permissions']['get'](_0x2f8487):bt;}['_addCommentThread']({channelId:_0x3762a9,threadId:_0x7a33d3,comments:_0x6498ac,unlinkedAt:_0x167e59,resolvedAt:_0xe30afd,resolvedBy:_0x18f488,target:_0x48fa16,context:_0x28cff8,attributes:_0x7ad90c,isFromAdapter:_0x4ee3d4,isResolvable:_0xa2f3d2,isSubmitted:_0x19c269}){if('string'!=typeof _0x7a33d3)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x7a33d3});if(this['hasCommentThread'](_0x7a33d3))throw new _0x3c6477('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x7a33d3});const _0x45b1a3=new pi(this,{'channelId':_0x3762a9,'id':_0x7a33d3,'context':_0x28cff8,'attributes':_0x7ad90c,'unlinkedAt':_0x167e59,'resolvedAt':_0xe30afd,'resolvedBy':_0x18f488?this['context']['plugins']['get'](it)['getUser'](_0x18f488):null,'isResolvable':_0xa2f3d2,'isSubmitted':_0x19c269||_0x4ee3d4});this['_threads']['set'](_0x7a33d3,_0x45b1a3);for(const _0x31affe of _0x6498ac)_0x45b1a3['_add'](this['_createNewComment']({'threadId':_0x7a33d3,..._0x31affe}));return _0x48fa16&&_0x45b1a3['attachTo'](_0x48fa16),_0x4ee3d4||!_0x45b1a3['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3762a9,'threadId':_0x7a33d3});}['_submitCommentThread']({channelId:_0x1457e6,threadId:_0x1c5a10}){if(!this['hasCommentThread'](_0x1c5a10))throw new _0x3c6477('commentsrepository-missing-comment-thread',this);const _0x1e56cd=this['getCommentThread'](_0x1c5a10);if(_0x1e56cd['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x21de8a,comments:_0x1aadba,resolvedAt:_0x4d5b5a,resolvedBy:_0x4e09d5,context:_0x5b1d40,attributes:_0x6cb84f}=_0x1e56cd,_0xf481b0=this['context']['plugins']['get']('PendingActions'),_0x1c88c0=_0xf481b0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1457e6,'threadId':_0x21de8a,'comments':_0x1aadba['map'](_0x1f2354=>_0x1f2354['toJSON']()),'resolvedAt':_0x4d5b5a,'resolvedBy':_0x4e09d5?_0x4e09d5['id']:_0x4e09d5,'context':_0x5b1d40,'attributes':_0x6cb84f})['then'](({comments:_0x91480a})=>{_0xf481b0['remove'](_0x1c88c0);for(const _0x3df1d2 of _0x91480a)this['_updateComment']({'channelId':_0x1457e6,'threadId':_0x1c5a10,'commentId':_0x3df1d2['commentId'],'createdAt':_0x3df1d2['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x59e2f3=>{throw console['error'](_0x59e2f3),new _0x3c6477('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x219d1a,target:_0xb58c88}){const _0x490633=this['getCommentThread'](_0x219d1a);if(!_0x490633)throw new _0x3c6477('commentsrepository-attach-missing-comment-thread',this);const _0x129656=this['context']['plugins']['get']('PendingActions'),_0x5b04b8=this['context']['plugins']['get'](y),_0x8f4224=this['_createCommentThreadView'](_0x490633),_0x341a88=new vt(_0x490633,_0x8f4224);let _0x2900ab=null;_0x8f4224['on']('change:isDirty',(_0x14c382,_0x571d4c,_0x4accb8)=>{_0x4accb8?_0x2900ab=_0x129656['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x2900ab&&(_0x129656['remove'](_0x2900ab),_0x2900ab=null);}),this['_threadToController']['set'](_0x490633,_0x341a88),this['_viewToController']['set'](_0x8f4224,_0x341a88);const _0x4ac673=new E(this['context']['locale'],_0x8f4224);_0x4ac673['bind']('length')['to'](_0x8f4224),_0x4ac673['bind']('isDirty')['to'](_0x8f4224,'isDirty',_0x8f4224,'length',(_0x149332,_0x4d6a5e)=>_0x149332||!_0x4d6a5e),_0x4ac673['bind']('isActive')['to'](_0x8f4224),_0x4ac673['type']='comment';const _0x36e071=new T({'view':_0x4ac673,'target':_0xb58c88,'type':'comment','isVisible':!_0x490633['archivedAt']&&!!('function'==typeof _0xb58c88?_0xb58c88():_0xb58c88)});return _0x8f4224['on']('escape',()=>{_0x36e071['fire']('escape');}),this['_bindAnnotationToEditors'](_0x8f4224,_0x36e071),_0x5b04b8['add'](_0x36e071),_0x36e071;}['_bindAnnotationToEditors'](_0x42230d,_0x31e337){this['listenTo'](_0x42230d,'editorReady',(_0x30c14b,_0x338d00)=>{const _0x480fb8=_0x338d00['ui']['view']['body']['bodyCollectionContainer'];_0x31e337['focusableElements']['add'](_0x480fb8),this['context']instanceof _0x4f4c34&&this['context']['ui']['focusTracker']['add'](_0x480fb8);},{'priority':'highest'}),this['listenTo'](_0x42230d,'editorDestroyed',(_0x462436,_0x146fb3)=>{const _0x2039d4=_0x146fb3['ui']['view']['body']['bodyCollectionContainer'];_0x31e337['focusableElements']['has'](_0x2039d4)&&_0x31e337['focusableElements']['remove'](_0x2039d4),this['context']instanceof _0x4f4c34&&this['context']['ui']['focusTracker']['remove'](_0x2039d4);});}['_unbindEditors'](_0x1d1738){this['stopListening'](_0x1d1738,'editorReady'),this['stopListening'](_0x1d1738,'editorDestroyed');}['_createCommentThreadView'](_0x4c8b71){const _0x93516c=this['context']['plugins']['get'](it),{config:_0x4d743b,locale:_0x24e256}=this['context'],_0x3a178e=pt(_0x4d743b['get']('locale'),_0x24e256);return new(0x0,(_0x4d743b['get']('comments'))['CommentThreadView'])(_0x24e256,_0x4c8b71,_0x93516c['me'],{'editorConfig':{..._0x4d743b['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4d743b['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4d743b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4d743b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4d743b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3a178e,'CommentView':_0x4d743b['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x4b3bd4,channelId:_0x4a2118,resolvedAt:_0x43d6e3,resolvedBy:_0xd9f49d,isFromAdapter:_0xcb93e0}){if(!this['hasCommentThread'](_0x4b3bd4))throw new _0x3c6477('commentsrepository-missing-comment-thread',null,{'threadId':_0x4b3bd4});const _0x29777c=this['getCommentThread'](_0x4b3bd4);if(_0x29777c['isResolved'])throw new _0x3c6477('commentsrepository-resolved-comment-thread',null,{'threadId':_0x4b3bd4});const _0x46b48a=this['context']['plugins']['get'](it);if(_0x29777c['resolvedBy']=_0x46b48a['getUser'](_0xd9f49d),_0x29777c['resolvedAt']=_0x43d6e3,_0xcb93e0||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x251010=this['context']['plugins']['get']('PendingActions'),_0x2cd029=_0x251010['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x4a2118,'threadId':_0x4b3bd4})['then'](({resolvedAt:_0x436de3,resolvedBy:_0x4e41e7})=>{_0x251010['remove'](_0x2cd029),_0x29777c['resolvedBy']['id']!==_0x4e41e7&&(_0x29777c['resolvedBy']=_0x46b48a['getUser'](_0x4e41e7)),_0x29777c['resolvedAt']=_0x436de3;})['catch'](_0x3db9de=>{throw console['error'](_0x3db9de),new _0x3c6477('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1d3b00,channelId:_0x882747,isFromAdapter:_0x5cf1a8}){if(!this['hasCommentThread'](_0x1d3b00))throw new _0x3c6477('commentsrepository-missing-comment-thread',null,{'threadId':_0x1d3b00});const _0x1e6b9a=this['getCommentThread'](_0x1d3b00);if(!_0x1e6b9a['isResolved'])throw new _0x3c6477('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1d3b00});if(_0x1e6b9a['resolvedBy']=null,_0x1e6b9a['resolvedAt']=null,_0x5cf1a8||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x49ce1c=this['context']['plugins']['get']('PendingActions'),_0x4d8f40=_0x49ce1c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x882747,'threadId':_0x1d3b00})['then'](()=>_0x49ce1c['remove'](_0x4d8f40))['catch'](_0x289636=>{throw console['error'](_0x289636),new _0x3c6477('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x58d43a,isFromAdapter:_0x15fbd0}){const _0x4ee5c3=this['getCommentThread'](_0x58d43a);if(!_0x4ee5c3)throw new _0x3c6477('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x58d43a),this['_threads']['delete'](_0x58d43a),!_0x4ee5c3['isSubmitted']||_0x15fbd0||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1121dc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x46c31c}=_0x4ee5c3,_0x44d418=_0x1121dc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x46c31c,'threadId':_0x58d43a})['then'](()=>_0x1121dc['remove'](_0x44d418))['catch'](_0x2b709d=>{throw console['error'](_0x2b709d),new _0x3c6477('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x42585f,unlinkedAt:_0x46afd9,context:_0x40857a,attributes:_0x28d61f,isFromAdapter:_0x33b0a8}){if('string'!=typeof _0x42585f)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x42585f});if(!this['hasCommentThread'](_0x42585f))throw new _0x3c6477('commentsrepository-missing-comment-thread',null,{'threadId':_0x42585f});const _0x145963=this['getCommentThread'](_0x42585f);let _0x1115bb=!0x1;if(void 0x0!==_0x40857a&&_0x145963['context']!==_0x40857a&&(_0x145963['context']=_0x40857a,_0x1115bb=!0x0),void 0x0!==_0x46afd9&&_0x145963['unlinkedAt']!==_0x46afd9&&(_0x145963['unlinkedAt']=_0x46afd9,_0x1115bb=!0x0),_0x28d61f&&!At(_0x28d61f,_0x145963['attributes'])&&(_0x145963['attributes']=_0x28d61f,_0x1115bb=!0x0),!_0x1115bb)return Promise['resolve']();if(!_0x145963['isSubmitted']||_0x33b0a8||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x42e85c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2a0908}=_0x145963,_0x1074d5=_0x42e85c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x2a0908,'threadId':_0x42585f,'context':_0x40857a,'unlinkedAt':_0x46afd9,'attributes':_0x28d61f})['then'](()=>_0x42e85c['remove'](_0x1074d5))['catch'](_0x5e348b=>{throw console['error'](_0x5e348b),new _0x3c6477('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x11ae15){const _0x570647=this['context']['plugins']['get'](y),_0x2cfffe=this['getCommentThread'](_0x11ae15);if(_0x2cfffe['_isAttached']=!0x1,this['_threadToController']['has'](_0x2cfffe)){const _0x1995a7=this['_threadToController']['get'](_0x2cfffe),_0x10bc0a=_0x1995a7['view'],_0x2b357b=_0x570647['getByInnerView'](_0x10bc0a);this['_threadToController']['delete'](_0x2cfffe),this['_viewToController']['delete'](_0x10bc0a),_0x2b357b&&_0x570647['remove'](_0x2b357b),_0x1995a7['destroy'](),_0x10bc0a['destroy']()['then'](()=>{this['_unbindEditors'](_0x10bc0a);});}}['_updateActiveAnnotation']({threadId:_0x2e8796,resolvedAt:_0x2b44fd,unlinkedAt:_0x4434e2}){const _0x4a3617=!!_0x2b44fd,_0x4b5694=this['context']['plugins']['get'](y),_0x498924=this['getCommentThread'](_0x2e8796);if(this['_threadToController']['has'](_0x498924)){const _0x455804=this['_threadToController']['get'](_0x498924)['view'],_0x41bb97=_0x4b5694['getByInnerView'](_0x455804);_0x41bb97&&(_0x4a3617&&_0x4b5694['_removeActiveAnnotation'](_0x41bb97),_0x4434e2?_0x41bb97['isVisible']=!0x1:_0x41bb97['refreshVisibility']());}}['_getExternalAuthor'](_0x4f3af6){const _0x1e876e=this['context']['plugins']['get'](it),_0x4145c1=It('external:'+_0x4f3af6),_0x538cf2=_0x1e876e['getUser'](_0x4145c1);return _0x538cf2||_0x1e876e['addUser']({'id':_0x4145c1,'name':_0x4f3af6});}['_createNewComment']({threadId:_0xc2fa6a,commentId:_0x533052=_0x17ea48(),content:_0x4fa64f,authorId:_0x1b9ea6,createdAt:_0x1d823f,attributes:_0x418f17}){if('string'!=typeof _0x533052)throw new _0x3c6477('commentsrepository-invalid-commentid');if('string'!=typeof _0x1b9ea6)throw new _0x3c6477('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4fa64f||!_0x4fa64f['trim']())throw new _0x3c6477('commentsrepository-invalid-comment-content');const _0x2eae58=this['context']['plugins']['get'](it)['getUser'](_0x1b9ea6);if(!_0x2eae58)throw new _0x3c6477('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1b9ea6});let _0x588a27=null,_0x36c41d=_0x1d823f;return _0x418f17?.['@external']&&(_0x588a27=this['_getExternalAuthor'](_0x418f17['@external']['authorName']),_0x36c41d=new Date(_0x418f17['@external']['createdAt'])),new wi(this,{'threadId':_0xc2fa6a,'id':_0x533052,'author':_0x588a27||_0x2eae58,'creator':_0x2eae58,'content':_0x4fa64f,'createdAt':_0x1d823f,'authoredAt':_0x36c41d,'attributes':_0x418f17});}['_addComment'](_0x60d2c8){let {threadId:_0x33f5f7,content:_0x484af0,attributes:_0x43f2d5,isFromAdapter:_0x51686f}=_0x60d2c8;const _0x25cc02=this['getCommentThread'](_0x60d2c8['threadId']);if(!_0x25cc02)throw new _0x3c6477('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x1b0126=this['_createNewComment'](_0x60d2c8),{id:_0x546403}=_0x1b0126;if(_0x25cc02['_add'](_0x1b0126),_0x51686f||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x25cc02['isSubmitted'])return Promise['resolve']();const _0x32ffca=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1845b0}=_0x25cc02,_0x41b556=_0x32ffca['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x43f2d5||(_0x43f2d5={}),this['adapter']['addComment']({'channelId':_0x1845b0,'threadId':_0x33f5f7,'commentId':_0x546403,'content':_0x484af0,'attributes':_0x43f2d5})['then'](_0xbde51c=>{_0x32ffca['remove'](_0x41b556),_0xbde51c&&this['_updateComment']({'channelId':_0x1845b0,'threadId':_0x33f5f7,'commentId':_0x546403,'createdAt':_0xbde51c['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2966d9=>{throw console['error'](_0x2966d9),new _0x3c6477('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x10838c,commentId:_0x27eda2,content:_0x328e2d,createdAt:_0x25e1eb,attributes:_0x342c07,isFromAdapter:_0x3d5cfe}){if(void 0x0!==_0x328e2d&&('string'!=typeof _0x328e2d||!_0x328e2d['trim']()['length']))throw new _0x3c6477('commentsrepository-update-comment-invalid-content');const _0x4efa7b=this['getCommentThread'](_0x10838c),_0x1cd80f=_0x4efa7b['getComment'](_0x27eda2);if(!_0x1cd80f)throw new _0x3c6477('commentsrepository-update-missing-comment',this);let _0x2b21b7=!0x1;if(_0x328e2d&&_0x328e2d!==_0x1cd80f['content']&&(_0x1cd80f['isEditable']||_0x3d5cfe)&&(_0x1cd80f['content']=_0x328e2d,_0x2b21b7=!0x0),_0x25e1eb&&_0x25e1eb!==_0x1cd80f['createdAt']&&(_0x1cd80f['createdAt']=_0x25e1eb,_0x1cd80f['attributes']&&_0x1cd80f['attributes']['@external']||(_0x1cd80f['authoredAt']=_0x25e1eb),_0x2b21b7=!0x0),_0x342c07&&!At(_0x342c07,_0x1cd80f['attributes'])&&(_0x1cd80f['attributes']=_0x342c07,_0x2b21b7=!0x0),!_0x2b21b7)return Promise['resolve']();if(_0x4efa7b['fire']('commentUpdated'),_0x3d5cfe||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x111442=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3a6755}=this['getCommentThread'](_0x1cd80f['threadId']),_0x2c98cd=_0x111442['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x3a6755,'threadId':_0x10838c,'commentId':_0x27eda2,'content':_0x328e2d,'attributes':_0x342c07})['then'](()=>_0x111442['remove'](_0x2c98cd))['catch'](_0x35f1fa=>{throw console['error'](_0x35f1fa),new _0x3c6477('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x84d134,commentId:_0x2e24db,isFromAdapter:_0x40a2fd}){const _0x2c70d5=this['getCommentThread'](_0x84d134),_0x206aed=_0x2c70d5['getComment'](_0x2e24db);if(!_0x206aed)throw new _0x3c6477('commentsrepository-remove-missing-comment',this);if(_0x2c70d5['_remove'](_0x206aed),_0x40a2fd||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x148fac=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3ae6a4}=_0x2c70d5,_0x5cd42d=_0x148fac['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3ae6a4,'threadId':_0x84d134,'commentId':_0x2e24db})['then'](()=>_0x148fac['remove'](_0x5cd42d))['catch'](_0x4f2648=>{throw console['error'](_0x4f2648),new _0x3c6477('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x1f5238(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x5a0583,_0x4f07b3){super();const _0x201fcc=_0x4f07b3['isResolvable'];this['channelId']=_0x4f07b3['channelId'],this['id']=_0x4f07b3['id'],this['comments']=new _0xa3f224(),this['_repository']=_0x5a0583,this['_isAttached']=!0x1,this['_isSubmitted']=_0x4f07b3['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x5a0583,'_permissions',_0x5a0583,'_readOnlyChannels',()=>_0x5a0583['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x5a0583,'_permissions',()=>_0x5a0583['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x5a0583,'_permissions',()=>{const _0x53f8d2=_0x5a0583['getPermissions'](this['channelId']);return _0x53f8d2['write']||_0x53f8d2['admin'];}),this['bind']('isResolvable')['to'](_0x5a0583,'_permissions',()=>_0x201fcc&&_0x5a0583['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x4f07b3['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1da1ec,_0x2f4cd1)=>_0x1da1ec?_0x2f4cd1?_0x1da1ec<_0x2f4cd1?_0x1da1ec:_0x2f4cd1:_0x1da1ec:_0x2f4cd1),this['set']('unlinkedAt',_0x4f07b3['unlinkedAt']||null),this['set']('resolvedAt',_0x4f07b3['resolvedAt']||null),this['set']('resolvedBy',_0x4f07b3['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5eb5fe=>!!_0x5eb5fe),this['set']('attributes',_0x4f07b3['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x5e3a9f,_0x4ff23f)=>_0x5e3a9f+_0x4ff23f['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x511c77,id:_0x5008ae}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x511c77),{'channelId':_0x511c77,'threadId':_0x5008ae});}['setUnlinkedAt'](_0x219256){this['_update']({'unlinkedAt':_0x219256});}['resolve']({resolvedAt:_0x50fc2c=new Date(),resolvedBy:_0x2fd23e='',isFromAdapter:_0x2c9879=!0x1}={}){const _0x1f4dc8=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x23a640,id:_0x172879}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x23a640),{'channelId':_0x23a640,'threadId':_0x172879,'resolvedAt':_0x50fc2c,'resolvedBy':_0x2fd23e||_0x1f4dc8['id'],'isFromAdapter':_0x2c9879});}['reopen']({isFromAdapter:_0x336e1a=!0x1}={}){const {channelId:_0x22443f,id:_0x536658}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x22443f),{'channelId':_0x22443f,'threadId':_0x536658,'isFromAdapter':_0x336e1a});}['setContext'](_0x3db608){this['context']||this['_update']({'context':_0x3db608});}['setAttribute'](_0x38ecd0,_0x5e7d9c){const _0x47ab22=wt(this['attributes']);yt(_0x47ab22,_0x38ecd0,_0x5e7d9c),this['_update']({'attributes':_0x47ab22});}['removeAttribute'](_0x2cc119){const _0x3ac3d1=wt(this['attributes']);Ct(_0x3ac3d1,_0x2cc119),this['_update']({'attributes':_0x3ac3d1});}['remove']({isFromAdapter:_0x4c120e=!0x1}={}){const {channelId:_0x36d427,id:_0x2458fc}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x36d427),{'channelId':_0x36d427,'threadId':_0x2458fc,'isFromAdapter':_0x4c120e});}['attachTo'](_0x57facc){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x57facc});}['addComment'](_0x4645a2){const {channelId:_0xba1ad9,id:_0x165753}=this;this['_repository']['fire'](Nt('addComment',_0xba1ad9,_0x165753),Object['assign']({'channelId':_0xba1ad9,'threadId':_0x165753},_0x4645a2));}['getComment'](_0x30a5ca){if('string'!=typeof _0x30a5ca)throw new _0x3c6477('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x30a5ca});return this['comments']['get'](_0x30a5ca);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x498ed4=>_0x498ed4['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5e3b3c){return this['listenTo'](_0x5e3b3c,'change:authoredAt',()=>{const _0x5da82b=this['_findOptimalIndex'](_0x5e3b3c),_0x5158be=this['comments'];_0x5da82b-0x1!=_0x5158be['getIndex'](_0x5e3b3c)&&_0x5da82b+0x1!=_0x5158be['getIndex'](_0x5e3b3c)&&(this['_remove'](_0x5e3b3c),this['_add'](_0x5e3b3c));}),this['comments']['add'](_0x5e3b3c,this['_findOptimalIndex'](_0x5e3b3c));}['_update'](_0x3f8820){const {channelId:_0x42dd8a,id:_0x56f387}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x42dd8a),{..._0x3f8820,'channelId':_0x42dd8a,'threadId':_0x56f387});}['_remove'](_0xe94759){return this['stopListening'](_0xe94759),_0xe94759['destroy'](),this['comments']['remove'](_0xe94759);}['_findOptimalIndex'](_0x329414){const _0x476ae0=this['comments']['find'](_0x3990b4=>new Date(_0x3990b4['authoredAt'])['getTime']()>new Date(_0x329414['authoredAt'])['getTime']());return _0x476ae0?this['comments']['getIndex'](_0x476ae0):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x1f5238(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5788fb,_0x7f65da){super();const _0x440b48=_0x5788fb['context']['plugins']['get'](it)['me'],_0x2330b4=_0x5788fb['getCommentThread'](_0x7f65da['threadId']),_0x2046de=0x0===_0x2330b4['comments']['length'],_0x49d43c=_0x440b48===_0x7f65da['author'];this['id']=_0x7f65da['id'],this['threadId']=_0x7f65da['threadId'],this['author']=_0x7f65da['author'],this['creator']=_0x7f65da['creator'],this['isExternal']=Boolean(_0x7f65da['attributes']&&_0x7f65da['attributes']['@external']),this['set']('content',_0x7f65da['content']),this['createdAt']=_0x7f65da['createdAt']||new Date(),this['set']('authoredAt',_0x7f65da['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2330b4,'resolvedAt'),this['set']('attributes',_0x7f65da['attributes']||{}),this['bind']('isEditable')['to'](_0x5788fb,'_permissions',()=>{const _0x14dadc=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['write'],_0x57d18c=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['modifyAll'];return _0x49d43c&&_0x14dadc||!_0x49d43c&&_0x57d18c;}),this['bind']('isRemovable')['to'](_0x2330b4,'isRemovable',_0x5788fb,'_permissions',_0x262c76=>{const _0x17a3b0=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['write'],_0x50d7f1=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['modifyAll'];return _0x49d43c&&_0x17a3b0||_0x262c76&&_0x2046de||!_0x49d43c&&_0x50d7f1&&!_0x2046de;}),this['bind']('isReadOnly')['to'](_0x2330b4,'isReadOnly'),this['_repository']=_0x5788fb;}get['weight'](){return Math['max'](function(_0x428f50){const _0x183dde=document['createElement']('div');return _0x183dde['innerHTML']=_0x428f50,_0x183dde['textContent']['length'];}(this['content']),0xc8);}['update'](_0x315250){const {threadId:_0x588bd6,id:_0x1d7c66}=this;if(!this['_repository']['hasCommentThread'](_0x588bd6))throw new _0x3c6477('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x5cc2df}=this['_repository']['getCommentThread'](_0x588bd6);this['_repository']['fire'](Nt('updateComment',_0x5cc2df,_0x588bd6),{'channelId':_0x5cc2df,'threadId':_0x588bd6,'commentId':_0x1d7c66,..._0x315250});}['setAttribute'](_0x371704,_0x56a4ce){const _0x289acc=wt(this['attributes']);yt(_0x289acc,_0x371704,_0x56a4ce),this['update']({'attributes':_0x289acc});}['removeAttribute'](_0x1226c6){const _0x42065f=wt(this['attributes']);Ct(_0x42065f,_0x1226c6),this['update']({'attributes':_0x42065f});}['remove'](_0x417d09={}){if(!_0x417d09['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x2b12f8,id:_0x5ebe76}=this;if(!this['_repository']['hasCommentThread'](_0x2b12f8))throw new _0x3c6477('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1238ae}=this['_repository']['getCommentThread'](_0x2b12f8);this['_repository']['fire'](Nt('removeComment',_0x1238ae,_0x2b12f8),{'channelId':_0x1238ae,'threadId':_0x2b12f8,'commentId':_0x5ebe76,..._0x417d09});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x2b7e56,..._0x185df7){for(const _0x2480fe of _0x185df7)void 0x0!==_0x2480fe&&(_0x2b7e56+=':'+String(_0x2480fe));return _0x2b7e56;}class ot extends _0x35ae39{constructor(_0x37c90d){super(_0x37c90d),this['set']('hasContent',!0x1);}['refresh'](){const _0x2e48ad=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x1cf661 of _0x2e48ad['getRanges']())if(this['_hasContent'](_0x1cf661))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x4216a3=_0x17ea48(),ranges:_0x3aa76f,comment:_0x5d80c2}={}){const _0x18485f=this['editor']['model'],_0x370dbe=_0x3aa76f??Array['from'](_0x18485f['document']['selection']['getRanges']()),_0x3628a4=[];for(const _0x4ee9bf of _0x370dbe)this['_hasContent'](_0x4ee9bf)&&_0x3628a4['push'](this['_trimToContent'](_0x4ee9bf));if(!_0x3628a4['length'])throw new _0x3c6477('addcommentthreadcommand-incorrect-ranges',null);_0x5d80c2&&this['_createCommentThread'](_0x4216a3,_0x5d80c2),this['_createMarkersFromRanges'](_0x4216a3,_0x3628a4,!!_0x5d80c2);}['_createMarkersFromRanges'](_0xada9e1,_0x24d18b,_0xadbbde){this['editor']['model']['change'](_0x273996=>{for(const _0x577a83 of _0x24d18b){const _0x517f4f=_0x17ea48()['substr'](0x1,0x5),_0x4ed0e1='comment:'+_0xada9e1+':'+_0x517f4f;_0x273996['addMarker'](_0x4ed0e1,{'range':_0x577a83,'usingOperation':_0xadbbde,'affectsData':_0xadbbde});}});}['_createCommentThread'](_0x5649c4,_0x34f55c){const _0x4facef=this['editor']['plugins']['get']('CommentsRepository'),_0x3741b9=this['editor']['config']['get']('collaboration.channelId'),_0x152bd7=this['editor']['plugins']['get']('Users')['me'];if(!_0x152bd7)throw new _0x3c6477('addcommentthreadcommand-user-not-found',null);_0x4facef['addCommentThread']({'threadId':_0x5649c4,'channelId':_0x3741b9,'comments':[{'authorId':_0x152bd7['id'],'content':_0x34f55c,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x29b394){for(const _0x45944d of _0x29b394['getItems']())if(this['_itemIsContent'](_0x45944d))return!0x0;return!0x1;}['_itemIsContent'](_0xe3d741){return _0xe3d741['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xe3d741)&&!_0xe3d741['is']('element','tableCell');}['_trimToContent'](_0x2092e7){const _0x2bab8a=_0x522ab3=>!this['_itemIsContent'](_0x522ab3['item']),_0x8323ea=_0x2092e7['start']['getLastMatchingPosition'](_0x2bab8a),_0x5cfed6=_0x2092e7['end']['getLastMatchingPosition'](_0x2bab8a,{'direction':'backward'});return this['editor']['model']['createRange'](_0x8323ea,_0x5cfed6);}}class b extends _0x23cf76{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48cf85){super(_0x48cf85),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x1d7fbd=this['editor'],_0xd590d9=_0x1d7fbd['model']['document']['selection'],_0x3006a8=_0x5218cd(()=>this['refreshSelectedViews'](),0xa);_0xd590d9['on']('change:range',(_0x3b1edf,_0x2784b8)=>{_0x2784b8['directChange']&&(_0x3006a8['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x1d7fbd['editing']['view']['document'],'change:isFocused',(_0x2c0640,_0x20b52a,_0xc66540)=>{_0xc66540&&_0x3006a8();}),this['listenTo'](_0x1d7fbd['ui']['focusTracker'],'change:isFocused',(_0x11c6e7,_0x280d8a,_0x4e4655)=>{_0x4e4655||this['fire']('blur',{'isAnnotationTracked':_0x28ecca=>this['_editorAnnotationsData']['has'](_0x28ecca['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x11cc9a){if(this['_editorAnnotations']['has'](_0x11cc9a['view']))return;this['_editorAnnotations']['add'](_0x11cc9a['view']),this['editor']['ui']['focusTracker']['add'](_0x11cc9a['view']['element']);const _0x223b39=this['editor']['plugins']['get'](y);this['listenTo'](_0x223b39['collection'],'remove',(_0x14b6f3,_0x1a0d56)=>{this['editor']['ui']['focusTracker']['remove'](_0x1a0d56['view']['element']),this['_editorAnnotations']['delete'](_0x1a0d56['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x54c985){if('function'!=typeof _0x54c985)throw new _0x3c6477('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x54c985);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2b7184,annotations:_0x5e596f}){const _0x18a8a8=[],_0xb46670=this['editor']['model']['document']['selection'],_0xca5aee=Array['from'](_0xb46670['getRanges']());for(const [_0x12e503,_0x130198]of this['_editorAnnotationsData']){const _0x4d1769=_0x152124(_0x130198),_0x3f15f8=_0x5e596f['getByInnerView'](_0x12e503);_0x4d1769&&_0x3f15f8&&_0x18a8a8['push']({'annotation':_0x3f15f8,'range':_0x4d1769});}function _0x152124(_0x491d79){for(const _0x59b8d8 of _0x491d79)for(const _0x44b5e6 of _0xca5aee)if(_0x59b8d8['containsRange'](_0x44b5e6,!_0xb46670['isCollapsed']))return _0x59b8d8;return null;}return _0x18a8a8['sort']((_0x4b02a8,_0x857414)=>{const _0x288355=_0x4b02a8['range'],_0x28873e=_0x857414['range'];if(!_0x288355['isEqual'](_0x28873e)){if(_0x288355['containsRange'](_0x28873e,!0x0))return 0x1;if(_0x28873e['containsRange'](_0x288355,!0x0))return-0x1;}return _0x4b02a8['annotation']==_0x2b7184?-0x1:_0x857414['annotation']==_0x2b7184?0x1:0x0;})['map'](_0x37669c=>_0x37669c['annotation']);}get['_editorAnnotationsData'](){const _0xcf7ad4=new Map();for(const _0x1723c1 of Array['from'](this['_dataCollectors']))for(const [_0x2bda08,_0x5f1407]of _0x1723c1())_0xcf7ad4['set'](_0x2bda08,_0x5f1407);return _0xcf7ad4;}}class st extends _0x23cf76{['afterInit'](){const _0x263123=this['editor'];if(!_0x263123['plugins']['has']('RestrictedEditingModeEditing'))return;_0x263123['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x23cf76{constructor(_0x5e41a2){super(_0x5e41a2),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x195a7f=this['editor'],_0x227c1d=_0x195a7f['commands']['get']('importWord'),_0x5ce2ef=_0x195a7f['plugins']['get'](it);_0x227c1d&&(_0x227c1d['on']('execute',(_0x1baa57,[,_0x39e399])=>{_0x39e399['collaboration_features']={'comments':!0x0,'user_id':_0x5ce2ef['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x227c1d,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4edc1f,_0x4fbaae){const {comment_threads:_0x34af58}=_0x4fbaae;_0x34af58&&_0x34af58['forEach'](({thread_id:_0x528b22,comments:_0x5a5a9d,is_resolved:_0x35b69c})=>{const _0x14cc4b=new Date(),_0xce86b6=_0x5a5a9d['map'](({author:_0x1d6ab0,content:_0x30ffac,created_at:_0x32ff4f})=>({'content':_0x30ffac,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x14cc4b,'attributes':{'@external':{'authorName':_0x1d6ab0,'createdAt':_0x32ff4f?new Date(_0x32ff4f):new Date(),'source':'importWord'}}})),_0x26491c=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x26491c,'threadId':_0x528b22,'comments':_0xce86b6,'resolvedAt':_0x35b69c?_0x14cc4b:null});});}}class at extends _0x23cf76{constructor(_0x2435c4){super(_0x2435c4),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0xc09066=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0xc09066,'contentInsertion',(_0x1521ba,_0x2a0fd5)=>this['_removeMarkersWithoutThreads'](_0x2a0fd5['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xc5e262){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xc5e262;const _0x1023d6=this['editor']['plugins']['get']('CommentsRepository');for(const _0x13ccf8 of _0xc5e262['keys']()){const [_0x58423a,_0x6f9b9d]=_0x13ccf8['split'](':');'comment'!=_0x58423a||_0x1023d6['hasCommentThread'](_0x6f9b9d)||_0xc5e262['delete'](_0x13ccf8);}return _0xc5e262;}['_registerMarkerInClipboardPipeline'](){const _0x3fe90c=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3947e1=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3947e1&&_0x3fe90c['_registerMarkerToCopy']('comment',_0x3947e1);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2d9d28){switch(_0x2d9d28){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2628d1){const _0x43f1e9=_0x2628d1['split'](':');return{'group':_0x43f1e9[0x0],'id':_0x43f1e9[0x1],'part':_0x43f1e9[0x2]};}class ut extends _0x23cf76{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1253b5,_0x2dc67f)=>{if(!_0x2dc67f['options']['showCommentHighlights'])return null;if(_0x2dc67f['options']['ignoreResolvedComments']){const {id:_0x385885}=ft(_0x1253b5['markerName']),_0x393f38=this['editor']['plugins']['get'](o);if(_0x393f38['getCommentThread'](_0x385885)?.['isResolved']&&_0x1253b5['item'])return _0x2dc67f['consumable']['consume'](_0x1253b5['item'],'addMarker:'+_0x1253b5['markerName']),_0x2dc67f['consumable']['consume'](_0x1253b5['item'],'removeMarker:'+_0x1253b5['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2fc84b=>{_0x2fc84b['on']('addMarker:comment',(_0x8e7457,_0x289a33,_0x4d51ea)=>{if(!_0x4d51ea['options']['showCommentHighlights'])return;const _0x1c1c6a=_0x289a33['item'];if(!_0x1c1c6a)return;const _0x26b0bd=_0x4d51ea['mapper']['toViewElement'](_0x1c1c6a);this['editor']['model']['schema']['isObject'](_0x1c1c6a)&&_0x26b0bd&&!_0x26b0bd['getCustomProperty']('widget')&&_0x26b0bd['is']('containerElement')&&_0x354115(_0x26b0bd,_0x4d51ea['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x29d812,{writer:_0x56a1b5,options:_0x5f7904})=>{if(!_0x5f7904['showCommentHighlights'])return null;const _0x59ddc3=_0x56a1b5['createContainerElement']('div'),_0x3ac848=_0x56a1b5['createEmptyElement']('hr');return _0x56a1b5['addClass']('ck-horizontal-line',_0x59ddc3),_0x56a1b5['insert'](_0x56a1b5['createPositionAt'](_0x59ddc3,0x0),_0x3ac848),_0x59ddc3;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x22519a,{writer:_0x504563,options:_0x307428})=>{if(!_0x307428['showCommentHighlights'])return null;const _0x14f159=_0x504563['createContainerElement']('span'),_0x3aeeea=_0x504563['createEmptyElement']('img');return _0x504563['addClass']('image-inline',_0x14f159),_0x504563['insert'](_0x504563['createPositionAt'](_0x14f159,0x0),_0x3aeeea),_0x14f159;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x23ee18,{writer:_0x40773e,options:_0x300fd3})=>{if(_0x300fd3['showCommentHighlights'])return _0x40773e['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x203a1e,_0x52523d,_0x40827b)=>{_0x40827b['options']['showCommentHighlights']&&_0x203a1e['stop']();},{'priority':'high'});}}class r extends _0x23cf76{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1601c7){super(_0x1601c7),this['set']('isThreadsLoadingPaused',!0x0),_0x1601c7['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x105d10,_0x2da998,_0x3f9167,_0x3e2dce)=>{const _0x55408d=_0x1601c7['plugins']['get'](o),_0x2d33b6=_0x3f9167?ft(_0x3f9167)['id']:null;_0x1601c7['model']['change'](()=>{if(_0x2d33b6){const _0x44e8c5=this['getAllMarkersForId'](_0x2d33b6);for(const _0x3ba241 of _0x44e8c5)_0x1601c7['editing']['reconvertMarker'](_0x3ba241);}if(_0x3e2dce){const {id:_0x11e8dc}=ft(_0x3e2dce),_0x59427a=_0x55408d['getCommentThread'](_0x11e8dc);if(_0x59427a&&_0x59427a['unlinkedAt'])return;if(_0x59427a&&!_0x59427a['isAttached'])return;const _0x11e122=this['getAllMarkersForId'](_0x11e8dc);for(const _0x527086 of _0x11e122)_0x1601c7['editing']['reconvertMarker'](_0x527086);}}),_0x2d33b6&&this['scrollToThreadMarker'](_0x2d33b6);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1592c6=this['editor'],_0xfdbc3b=_0x1592c6['plugins']['get'](o),_0x34f6cc=_0x1592c6['config']['get']('collaboration.channelId'),_0xc8f308=_0xfdbc3b['getCommentThreads']()['filter'](_0x5675aa=>_0x5675aa['channelId']!==_0x34f6cc);_0x1592c6['commands']['add']('addCommentThread',new ot(_0x1592c6)),this['listenTo'](_0x1592c6,'change:isReadOnly',(_0xe4f874,_0x4df892,_0x42f2ef)=>{_0xfdbc3b['switchReadOnly'](_0x42f2ef,_0x1592c6['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xfdbc3b,dt('addCommentThread',_0x34f6cc),(_0x2d9a2c,{threadId:_0x2222c8})=>{const _0x3a3544=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2222c8);_0x3a3544?.['unlinkedAt']&&this['_attachArchivedThread'](_0x2222c8);}),this['listenTo'](_0xfdbc3b,dt('removeCommentThread',_0x34f6cc),(_0x32b016,{threadId:_0x2c6376})=>{_0x1592c6['model']['enqueueChange']({'isUndoable':!0x1},_0x39fb0f=>{const _0xf606a8=this['getAllMarkersForId'](_0x2c6376);for(const _0x1da15a of _0xf606a8)_0x39fb0f['removeMarker'](_0x1da15a);});}),this['listenTo'](_0xfdbc3b,dt('resolveCommentThread',_0x34f6cc),(_0x4697a9,{threadId:_0x1dc2d7})=>{(this['_reconvertMarkers'](_0x1dc2d7),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1dc2d7)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xfdbc3b,dt('reopenCommentThread',_0x34f6cc),(_0xa19219,{threadId:_0xcffcd9})=>{this['_reconvertMarkers'](_0xcffcd9);},{'priority':'low'}),this['listenTo'](_0xfdbc3b,dt('addComment',_0x34f6cc),(_0x23000b,{threadId:_0x417bb0,isFromAdapter:_0x531da4})=>{const _0x213db6=this['getAllMarkersForId'](_0x417bb0);if(_0x531da4||0x0==_0x213db6['length']||!_0xfdbc3b['hasCommentThread'](_0x417bb0))return;0x1===_0xfdbc3b['getCommentThread'](_0x417bb0)['length']&&_0x1592c6['model']['enqueueChange']({'isUndoable':!0x1},_0x496cb2=>{for(const _0x56da0f of _0x213db6)_0x496cb2['updateMarker'](_0x56da0f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0xc8f308);}['afterInit'](){!async function(_0x108df0){const _0x58ffaa=_0x3ace0a([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x21240e=0x73460ab3,_0x5b5216=0x73418983^_0x21240e,_0x4b2ad0=window[_0x3ace0a([0x44,0x61,0x74,0x65])][_0x3ace0a([0x6e,0x6f,0x77])](),_0x513cfe=_0x108df0[_0x3ace0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30a19f=new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdaa46b=>{_0x513cfe[_0x3ace0a([0x6f,0x6e,0x63,0x65])](_0x3ace0a([0x72,0x65,0x61,0x64,0x79]),_0xdaa46b);}),_0x5df680={[_0x3ace0a([0x6b,0x74,0x79])]:_0x3ace0a([0x45,0x43]),[_0x3ace0a([0x75,0x73,0x65])]:_0x3ace0a([0x73,0x69,0x67]),[_0x3ace0a([0x63,0x72,0x76])]:_0x3ace0a([0x50,0x2d,0x32,0x35,0x36]),[_0x3ace0a([0x78])]:_0x3ace0a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3ace0a([0x79])]:_0x3ace0a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3ace0a([0x61,0x6c,0x67])]:_0x3ace0a([0x45,0x53,0x32,0x35,0x36])},_0x1d83fb=_0x513cfe[_0x3ace0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ace0a([0x67,0x65,0x74])](_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52b5f8(){let _0x2d39c5,_0x171cfc=null,_0x45fe3a=null;try{if(_0x1d83fb==_0x3ace0a([0x47,0x50,0x4c]))return _0x3ace0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d39c5=_0x56998c(),!_0x2d39c5)return _0x3ace0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d39c5[_0x3ace0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45fe3a=_0x387667(_0x2d39c5[_0x3ace0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d39c5[_0x3ace0a([0x6a,0x74,0x69])])),await _0x33ebb3()?_0x5d37cc()?_0x2d8034()?_0x3ace0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5969aa()?(_0x2d39c5[_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ace0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x171cfc=_0x591a5a(_0x3ace0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b0e1f()):_0x3ace0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ace0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ace0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ace0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d8034(){const _0x1bccdb=[_0x3ace0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ace0a([0x74,0x72,0x69,0x61,0x6c])][_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d39c5[_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b2ad0/0x3e8:0xe10*_0x5b5216;return _0x2d39c5[_0x3ace0a([0x65,0x78,0x70])]<_0x1bccdb;}function _0x5d37cc(){const _0x596e0f=_0x2d39c5[_0x3ace0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x596e0f)return!0x1;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x2a])))return!0x0;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x43,0x4d,0x54])))return!0x0;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x2cf891())return!0x0;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x52,0x43,0x4d,0x54]))){if(_0x203efe())return!0x0;if(_0xe6cf55()||_0xcedb0f())return!0x0;}return!0x1;}function _0x5969aa(){const _0x5e6c24=_0x2d39c5[_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e6c24||0x0==_0x5e6c24[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d1707}=new URL(window[_0x3ace0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e6c24[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1707))return!0x0;const _0x307036=_0x5d1707[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e]));return _0x5e6c24[_0x3ace0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21f3b3=>_0x21f3b3[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x2a])))[_0x3ace0a([0x6d,0x61,0x70])](_0x3d3883=>_0x3d3883[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e])))[_0x3ace0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48ddac=>_0x48ddac[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x307036[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ace0a([0x6d,0x61,0x70])](_0x560ad2=>Array(_0x307036[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x560ad2[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ace0a([0x66,0x69,0x6c,0x6c])](_0x560ad2[0x0]===_0x3ace0a([0x2a])?_0x3ace0a([0x2a]):'')[_0x3ace0a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x560ad2))[_0x3ace0a([0x73,0x6f,0x6d,0x65])](_0x3956e5=>_0x307036[_0x3ace0a([0x65,0x76,0x65,0x72,0x79])]((_0x5cc550,_0x48ecdf)=>_0x3956e5[_0x48ecdf]===_0x5cc550||_0x3956e5[_0x48ecdf]===_0x3ace0a([0x2a])));}function _0x5b0e1f(){return _0x171cfc&&_0x45fe3a?new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c17a8,_0x3f2c79)=>{_0x171cfc[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x4c17a8,_0x3f2c79),_0x45fe3a[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x557b40=>{_0x557b40!=_0x3ace0a([0x56,0x61,0x6c,0x69,0x64])&&_0x4c17a8(_0x557b40);},_0x3f2c79);}):_0x171cfc||_0x45fe3a||_0x3ace0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x387667(_0x1facca,_0x25d66a){return new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7018=>{if(_0x8d1820())return _0x3b7018(_0x3ace0a([0x56,0x61,0x6c,0x69,0x64]));_0x11be84(),_0x513cfe[_0x3ace0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ace0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43f051=!0x1;const _0x14088c=_0x17ea48();function _0x344c5a(_0xe0270b){return!!_0xe0270b&&(typeof _0xe0270b===_0x3ace0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe0270b===_0x3ace0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe0270b[_0x3ace0a([0x74,0x68,0x65,0x6e])]===_0x3ace0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe0270b[_0x3ace0a([0x63,0x61,0x74,0x63,0x68])]===_0x3ace0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1434f5(_0x5fce96){_0x312ff2(_0x5fce96)[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x215b5d=>{if(!_0x215b5d||_0x215b5d[_0x3ace0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ace0a([0x6f,0x6b]))return _0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f7ac7(_0xd7559(_0x14088c+_0x25d66a))!=_0x215b5d[_0x3ace0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ace0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x3d4094=>(_0x51f17e(),_0x3d4094),()=>{const _0x3fc833=_0x211bf7();return null==_0x3fc833?(_0x51f17e(),_0x3ace0a([0x56,0x61,0x6c,0x69,0x64])):_0x3ace0a(_0x4b2ad0-_0x3fc833>(0x574a8eb3^_0x21240e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x3b7018)[_0x3ace0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b7018(_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x268401=0x7370e433^_0x21240e;function _0x51f17e(){const _0x4a6dc7=_0x3ace0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f7ac7(_0xd7559(_0x1facca)),_0x508e49=_0x2936db(_0x2f7ac7(window[_0x3ace0a([0x4d,0x61,0x74,0x68])][_0x3ace0a([0x63,0x65,0x69,0x6c])](_0x4b2ad0/_0x268401)));window[_0x3ace0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ace0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a6dc7,_0x508e49);}function _0x211bf7(){const _0x15d7c5=_0x3ace0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f7ac7(_0xd7559(_0x1facca)),_0x55b245=window[_0x3ace0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ace0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15d7c5);return _0x55b245?window[_0x3ace0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2936db(_0x55b245),0x10)*_0x268401:null;}function _0x312ff2(_0x1a5451){return new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44310c,_0x11627f)=>{_0x1a5451[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x44310c,_0x11627f),window[_0x3ace0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11627f,0x7347de73^_0x21240e);});}}_0x513cfe[_0x3ace0a([0x6f,0x6e])](_0x3ace0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x560c9c,_0x1cc0b0)=>{if(_0x1cc0b0[0x0]!=_0x1facca)return _0x3b7018(_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cc0b0[0x1]={..._0x1cc0b0[0x1],[_0x3ace0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14088c};},{[_0x3ace0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ace0a([0x68,0x69,0x67,0x68])}),_0x513cfe[_0x3ace0a([0x6f,0x6e])](_0x3ace0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3884c3=>{_0x344c5a(_0x3884c3[_0x3ace0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43f051=!0x0,_0x1434f5(_0x3884c3[_0x3ace0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ace0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ace0a([0x6c,0x6f,0x77])}),_0x30a19f[_0x3ace0a([0x74,0x68,0x65,0x6e])](()=>{_0x43f051||_0x3b7018(_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8d1820(){return _0x513cfe[_0x3ace0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ace0a([0x76,0x69,0x65,0x77])][_0x3ace0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ace0a([0x61,0x75,0x74,0x6f]);}function _0x11be84(){_0x513cfe[_0x3ace0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ace0a([0x76,0x69,0x65,0x77])][_0x3ace0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ace0a([0x61,0x75,0x74,0x6f]);}}function _0x591a5a(_0x661c12){const _0x2f714d=[new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x511ee2=>setTimeout(_0x511ee2,0x734f347f^_0x21240e)),_0x30a19f[_0x3ace0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ea580=>{let _0x590e5e=0x0;_0x513cfe[_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ace0a([0x6f,0x6e])](_0x3ace0a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24e3f7,_0x515fd8)=>{_0x515fd8[0x0][_0x3ace0a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x590e5e++,_0x590e5e==(0x73460f5b^_0x21240e)&&(_0x5ea580(),_0x24e3f7[_0x3ace0a([0x6f,0x66,0x66])]());});}))];return window[_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ace0a([0x72,0x61,0x63,0x65])](_0x2f714d)[_0x3ace0a([0x74,0x68,0x65,0x6e])](()=>_0x661c12);}async function _0x51e446(){await _0x30a19f,_0x513cfe[_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ace0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47844c,_0x513cfe[_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ace0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47844c,_0x513cfe[_0x3ace0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cf891(){return window[_0x3ace0a([0x67,0x6c,0x6f,0x62])]&&window[_0x3ace0a([0x67,0x6c,0x6f,0x62])][_0x3ace0a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x203efe(){return _0x30508b(_0x3ace0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x17de33(_0x3ace0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ace0a([0x73,0x74,0x61,0x74,0x65])]==_0x3ace0a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe6cf55(){return _0x30508b(_0x3ace0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0xcedb0f(){return _0x30508b(_0x3ace0a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3fcd52(_0x3949c9){const _0x263f17=_0x4e91ed();_0x513cfe[_0x263f17]=_0x3ace0a([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3949c9,_0x3949c9!=_0x3ace0a([0x56,0x61,0x6c,0x69,0x64])&&_0x51e446();}function _0x4e91ed(){const _0x1608db=window[_0x3ace0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ace0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ace0a([0x6e,0x6f,0x77])]())[_0x3ace0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ace0a([0x2e]),'');let _0x28da7a=_0x3ace0a([0x4b]);for(let _0x5c4779=0x0;_0x5c4779<_0x1608db[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c4779+=0x2){let _0x30d80c=window[_0x3ace0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1608db[_0x3ace0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c4779,_0x5c4779+0x2));_0x30d80c>=_0x58ffaa[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30d80c-=_0x58ffaa[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28da7a+=_0x58ffaa[_0x30d80c];}return _0x28da7a;}function _0x56998c(){const _0x3c88ee=_0x1d83fb[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e]));if(0x3!=_0x3c88ee[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16a867(_0x3c88ee[0x1]);function _0x16a867(_0x1fb6e8){const _0x24354a=_0x5a6c2c(_0x1fb6e8);return _0x24354a&&_0x54d4d1()?_0x24354a:null;function _0x54d4d1(){const _0x5f5a95=_0x24354a[_0x3ace0a([0x6a,0x74,0x69])],_0x5691ea=window[_0x3ace0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f5a95[_0x3ace0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f5a95[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39fb37={..._0x24354a,[_0x3ace0a([0x6a,0x74,0x69])]:_0x5f5a95[_0x3ace0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f5a95[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39fb37[_0x3ace0a([0x76,0x63])],_0xd7559(_0x39fb37)==_0x5691ea;}}}async function _0x33ebb3(){let _0x21975e=!0x0;try{const _0x17f150=_0x1d83fb[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e])),[_0x31fc4a,_0x32385f,_0x387fbe]=_0x17f150;return _0x10ec69(_0x31fc4a),await _0xe461e3(_0x31fc4a,_0x32385f,_0x387fbe),_0x21975e;}catch{return!0x1;}function _0x10ec69(_0x19bf2a){const _0x59f338=_0x5a6c2c(_0x19bf2a);_0x59f338&&_0x59f338[_0x3ace0a([0x61,0x6c,0x67])]==_0x3ace0a([0x45,0x53,0x32,0x35,0x36])||(_0x21975e=!0x1);}async function _0xe461e3(_0x3a2b2b,_0x463a2b,_0x23467a){const _0x2dae81=window[_0x3ace0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ace0a([0x66,0x72,0x6f,0x6d])](_0x9f9ae3(_0x23467a),_0x230945=>_0x230945[_0x3ace0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xfc63e=new window[(_0x3ace0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ace0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a2b2b+_0x3ace0a([0x2e])+_0x463a2b),_0x353e2b=window[_0x3ace0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ace0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x353e2b)return;const _0x4e6055=await _0x353e2b[_0x3ace0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ace0a([0x6a,0x77,0x6b]),_0x5df680,{[_0x3ace0a([0x6e,0x61,0x6d,0x65])]:_0x3ace0a([0x45,0x43,0x44,0x53,0x41]),[_0x3ace0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ace0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ace0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x353e2b[_0x3ace0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ace0a([0x6e,0x61,0x6d,0x65])]:_0x3ace0a([0x45,0x43,0x44,0x53,0x41]),[_0x3ace0a([0x68,0x61,0x73,0x68])]:{[_0x3ace0a([0x6e,0x61,0x6d,0x65])]:_0x3ace0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e6055,_0x2dae81,_0xfc63e)||(_0x21975e=!0x1);}}function _0x5a6c2c(_0x1a541b){return _0x1a541b[_0x3ace0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ace0a([0x65,0x79]))?JSON[_0x3ace0a([0x70,0x61,0x72,0x73,0x65])](_0x9f9ae3(_0x1a541b)):null;}function _0x9f9ae3(_0x10cf0f){return window[_0x3ace0a([0x61,0x74,0x6f,0x62])](_0x10cf0f[_0x3ace0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ace0a([0x2b]))[_0x3ace0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ace0a([0x2f])));}function _0xd7559(_0x28f1a0){let _0x2fd63e=0x1505;function _0x3d1ced(_0x3f6173){for(let _0x58b28c=0x0;_0x58b28c<_0x3f6173[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58b28c++){const _0x1f743f=_0x3f6173[_0x3ace0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x58b28c);_0x2fd63e=(_0x2fd63e<<0x5)+_0x2fd63e+_0x1f743f,_0x2fd63e&=_0x2fd63e;}}function _0x1264d4(_0x4ef103){Array[_0x3ace0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ef103)?_0x4ef103[_0x3ace0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1264d4):_0x4ef103&&typeof _0x4ef103==_0x3ace0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ace0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ef103)[_0x3ace0a([0x73,0x6f,0x72,0x74])]()[_0x3ace0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27f68c,_0x5d2c2d])=>{_0x3d1ced(_0x27f68c),_0x1264d4(_0x5d2c2d);}):_0x3d1ced(window[_0x3ace0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ef103));}return _0x1264d4(_0x28f1a0),_0x2fd63e>>>0x0;}function _0x2f7ac7(_0x5b22e2){return _0x5b22e2[_0x3ace0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ace0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ace0a([0x30]));}function _0x2936db(_0x35cd66){return _0x35cd66[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ace0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ace0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x30508b(_0x371dac){return _0x513cfe[_0x3ace0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ace0a([0x68,0x61,0x73])](_0x371dac);}function _0x17de33(_0x50fbf7){return _0x513cfe[_0x3ace0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ace0a([0x67,0x65,0x74])](_0x50fbf7);}function _0x47844c(){}function _0x3ace0a(_0x162aeb){return _0x162aeb['map'](_0x209c73=>String['fromCharCode'](_0x209c73))['join']('');}_0x3fcd52(await _0x52b5f8());}(this);}['destroy'](){const _0x2b2200=this['editor']['plugins']['get'](o),_0x35bd59=this['editor']['config']['get']('collaboration.channelId');for(const _0x37df35 of _0x2b2200['getCommentThreads']({'channelId':_0x35bd59}))_0x2b2200['_detachCommentThread'](_0x37df35['id']),_0x2b2200['_threads']['delete'](_0x37df35['id']);super['destroy']();}['hasMarkerForId'](_0x1ce9d9){return this['getAllMarkersForId'](_0x1ce9d9)['length']>0x0;}['getAllMarkersForId'](_0x1aaf70){const _0x215253=[];for(const _0x133044 of this['editor']['model']['markers'])_0x133044['name']['startsWith']('comment:'+_0x1aaf70)&&_0x215253['push'](_0x133044);return _0x215253;}['scrollToThreadMarker'](_0x3f1754){setTimeout(()=>{const _0x14c6d6=this['_getTargetForId'](_0x3f1754);if(!_0x14c6d6)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x3f1754&&nt({'target':_0x14c6d6[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xf1eb3){this['editor']['model']['change'](()=>{for(const _0x5bae32 of this['getAllMarkersForId'](_0xf1eb3))this['editor']['editing']['reconvertMarker'](_0x5bae32);});}['_attachArchivedThread'](_0x31f878){const _0x318d73=this['editor']['plugins']['get'](o),_0x2ed13f=this['editor']['plugins']['get'](b),_0x24879c=_0x318d73['getCommentThread'](_0x31f878);if(!_0x24879c['isAttached']){const _0x154609=_0x24879c['attachTo'](()=>this['_getTargetForId'](_0x24879c['id']));_0x2ed13f['registerAnnotation'](_0x154609),_0x24879c['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1aa97d=this['editor'],_0x22e6be=_0x1aa97d['plugins']['get'](it);_0x1aa97d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1df99d,_0x26d71b)=>{const {id:_0x4e1fe5}=ft(_0x1df99d['markerName']),_0xcc9149=_0x1aa97d['plugins']['get'](o)['getCommentThread'](_0x4e1fe5),_0x26eb90=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x4e1fe5;let _0x2a612b;if(_0xcc9149&&_0xcc9149['isResolved']&&!_0x26eb90&&_0x1df99d['item'])return _0x26d71b['consumable']['consume'](_0x1df99d['item'],'addMarker:'+_0x1df99d['markerName']),_0x26d71b['consumable']['consume'](_0x1df99d['item'],'removeMarker:'+_0x1df99d['markerName']),null;const _0x484f54=['ck-comment-marker'];return _0x26eb90&&_0x484f54['push']('ck-comment-marker--active'),_0x2a612b=_0xcc9149?.['length']?_0xcc9149['comments']['first']['author']['id']:_0x22e6be['me']['id'],{'classes':_0x484f54,'attributes':{'data-comment':_0x4e1fe5,'data-author-id':_0x2a612b}};}}),_0x1aa97d['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x17e2af,{options:_0x331ddc})=>{if(_0x331ddc['showCommentHighlights'])return null;const _0x4e6a1b=_0x1aa97d['plugins']['get'](o),_0x2c26df=_0x1aa97d['model']['markers']['get'](_0x17e2af),{id:_0x34bddb,part:_0x1cc6b7}=ft(_0x17e2af);return _0x2c26df&&!_0x2c26df['affectsData']||_0x331ddc['ignoreResolvedComments']&&_0x4e6a1b['getCommentThread'](_0x34bddb)?.['isResolved']?null:{'group':'comment','name':_0x1cc6b7?_0x34bddb+':'+_0x1cc6b7:_0x34bddb};}}),_0x1aa97d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3260f9,{writer:_0x15a401})=>_0x15a401['createElement']('$marker',{'data-name':'comment:'+_0x3260f9['getAttribute']('id')})}),_0x1aa97d['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x5c4134=this['editor'],_0x33f9f7=_0x5c4134['plugins']['get'](o),_0x41bc86=new Set(),_0x25ed98=new Set();_0x5c4134['model']['document']['registerPostFixer'](_0x46f205=>{let _0x15230e=!0x1;for(const {name:_0x31978e,data:_0x40d6ce}of _0x5c4134['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3e4dd9,id:_0x50f820}=ft(_0x31978e);let _0x18c4aa=_0x40d6ce['newRange'];if('comment'!==_0x3e4dd9||!_0x18c4aa)continue;const _0x43666b='$graveyard'===_0x18c4aa['root']['rootName'];_0x43666b||(_0x18c4aa=ht(_0x18c4aa,_0x5c4134['model']),!_0x18c4aa||_0x18c4aa['isCollapsed']||!_0x40d6ce['newRange']||_0x18c4aa['isEqual'](_0x40d6ce['newRange']))?_0x5c4134['model']['hasContent'](_0x18c4aa)&&!_0x43666b?this['isThreadsLoadingPaused']?_0x41bc86['add'](_0x31978e):this['_handleThreadMarker'](_0x31978e,_0x50f820):(_0x25ed98['add'](_0x31978e),_0x41bc86['delete'](_0x31978e),_0x46f205['removeMarker'](_0x31978e),_0x15230e=!0x0):(_0x46f205['updateMarker'](_0x31978e,{'range':_0x18c4aa}),_0x15230e=!0x0);}return _0x15230e;}),this['on']('change:isThreadsLoadingPaused',(_0x267475,_0x2aed02,_0x4fa042)=>{if(!_0x4fa042&&_0x41bc86['size'])for(const _0x1f2a59 of _0x41bc86){const {id:_0x591251}=ft(_0x1f2a59);_0x41bc86['delete'](_0x1f2a59),_0x5c4134['model']['markers']['get'](_0x1f2a59)&&this['_handleThreadMarker'](_0x1f2a59,_0x591251);}}),this['listenTo'](_0x5c4134['model']['document'],'change',()=>{for(const {name:_0xe2f669,data:{newRange:_0x313b34}}of _0x5c4134['model']['document']['differ']['getChangedMarkers']()){const {group:_0xd13067,id:_0x48e271}=ft(_0xe2f669);if('comment'!==_0xd13067)continue;const _0x1a1a6c=_0x33f9f7['getCommentThread'](_0x48e271),_0x23d8aa=this['hasMarkerForId'](_0x48e271);_0x1a1a6c&&(!_0x1a1a6c['_hasTargetInContent']&&_0x313b34&&_0x5c4134['editing']['view']['once']('render',()=>{const _0x5ad162=_0x5c4134['plugins']['get'](y),_0x405d9b=_0x33f9f7['_threadToController']['get'](_0x1a1a6c)['view'];_0x5ad162['getByInnerView'](_0x405d9b)['refreshVisibility']();},{'priority':'low'}),_0x1a1a6c['_hasTargetInContent']=_0x23d8aa||!!_0x313b34),_0x313b34||(_0x25ed98['add'](_0xe2f669),_0x41bc86['delete'](_0xe2f669));}for(const _0x227836 of _0x25ed98){const {id:_0x3aa6a2}=ft(_0x227836),_0x296baf=_0x33f9f7['getCommentThread'](_0x3aa6a2);if(_0x41bc86['delete'](_0x227836),!_0x296baf)continue;const _0xffc7d7=this['hasMarkerForId'](_0x3aa6a2);_0xffc7d7||_0x296baf['isSubmitted']?_0xffc7d7||_0x296baf['unlinkedAt']||_0x296baf['setUnlinkedAt'](new Date()):_0x296baf['remove']();}_0x25ed98['clear']();});}['_handleInitialThreads'](_0xd6267d){_0xd6267d['forEach'](_0x31b300=>{_0x31b300['unlinkedAt']&&this['_attachArchivedThread'](_0x31b300['id']);});}['_getTargetForId'](_0x2f2eb8){const _0x18129b=this['editor'],_0x4e4e16=this['getAllMarkersForId'](_0x2f2eb8);return et(_0x18129b['editing'],_0x4e4e16);}['_getTextContext'](_0x2d34c7){const _0x56914c=this['getAllMarkersForId'](_0x2d34c7);let _0x3ead6d='',_0x51c5f9=!0x1;for(const _0x25f20b of _0x56914c){const _0x478fc7=_0x25f20b['getRange']();for(const _0x2ed36e of Array['from'](_0x478fc7['getItems']()))_0x2ed36e['is']('$textProxy')?(_0x3ead6d&&_0x51c5f9&&(_0x3ead6d+='\x20',_0x51c5f9=!0x1),_0x3ead6d+=_0x2ed36e['data']):_0x51c5f9=!0x0;_0x51c5f9=!0x0;}return _0x3ead6d['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x37caa9,_0x3e6215){const _0x27c7f=this['editor'],_0x412b04=_0x27c7f['plugins']['get'](o);let _0x23fd7e=_0x412b04['getCommentThread'](_0x3e6215);const _0x1c68de=_0x27c7f['config']['get']('collaboration.channelId'),_0x53aaa8=_0x27c7f['plugins']['get'](b);if(_0x23fd7e&&(_0x23fd7e['unlinkedAt']&&_0x23fd7e['setUnlinkedAt'](null),_0x23fd7e['isAttached']))return _0x23fd7e;return!this['getAllMarkersForId'](_0x3e6215)[0x0]['managedUsingOperations']?_0x27c7f['editing']['view']['once']('render',()=>{if(_0x412b04['getCommentThread'](_0x3e6215))return;const _0x2c9173=_0x27c7f['plugins']['get'](y);_0x23fd7e=_0x412b04['openNewCommentThread']({'channelId':_0x1c68de,'threadId':_0x3e6215,'target':()=>this['_getTargetForId'](_0x3e6215),'context':{'type':'text','value':this['_getTextContext'](_0x3e6215)}});const _0x11b6be=_0x412b04['_threadToController']['get'](_0x23fd7e)['view'],_0x23fb27=_0x2c9173['getByInnerView'](_0x11b6be);_0x23fb27&&_0x53aaa8['registerAnnotation'](_0x23fb27);},{'priority':'low'}):_0x412b04['fetchCommentThread']({'channelId':_0x1c68de,'threadId':_0x3e6215})['then'](_0x1d25b6=>{if('destroyed'!==_0x27c7f['state']){if(_0x23fd7e=_0x1d25b6,_0x23fd7e&&!_0x23fd7e['isAttached']){const _0x561f4b=_0x23fd7e['attachTo'](()=>this['_getTargetForId'](_0x3e6215));_0x53aaa8['registerAnnotation'](_0x561f4b),_0x23fd7e['isResolved']&&this['_reconvertMarkers'](_0x3e6215);}else{if(!_0x23fd7e){const _0x43c614=this['getAllMarkersForId'](_0x3e6215);_0x27c7f['model']['change'](_0x2c8e46=>{for(const _0x12d8be of _0x43c614)_0x2c8e46['removeMarker'](_0x12d8be);});}}}}),_0x23fd7e;}['_handleThreadMarker'](_0x30f928,_0x44b208){const _0x50476b=this['_attachMarkerToThread'](_0x30f928,_0x44b208);_0x50476b&&!_0x50476b['context']&&_0x50476b['setContext']({'type':'text','value':this['_getTextContext'](_0x44b208)});}['_initAriaMarkerChangeAnnouncements'](){const _0x429406=this['editor'];rt(_0x429406['model'],({left:_0x300f37,entered:_0x3a485e})=>{for(const _0x238271 of _0x300f37)if(mt(_0x238271)){_0x429406['ui']['ariaLiveAnnouncer']['announce'](N(_0x429406['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x390e9d of _0x3a485e)if(mt(_0x390e9d)){_0x429406['ui']['ariaLiveAnnouncer']['announce'](N(_0x429406['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x9ce898)));break;}});}}function dt(_0xa76880,_0x473ffb){return _0x473ffb?_0xa76880+':'+_0x473ffb:_0xa76880;}function ht(_0xaa5df5,_0x249807){const _0xd1f59e=_0x249807['schema'],_0x3d70bd=_0x249807['createRange'](_0xaa5df5['start']);for(const _0x557d56 of _0xaa5df5['getWalker']()){const {type:_0x1dc69b,item:_0x13057c,nextPosition:_0x1866ef}=_0x557d56;if('text'===_0x1dc69b||_0xd1f59e['isObject'](_0x13057c)){const _0x5ba856=_0x249807['createPositionBefore'](_0x13057c);_0x3d70bd['isCollapsed']&&(_0x3d70bd['start']=_0x5ba856),_0x3d70bd['end']=_0x1866ef;}}return _0x3d70bd;}function mt(_0x50d740){return'comment'===ft(_0x50d740['name'])['group'];}class s extends _0x23cf76{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x180b3b=this['editor'],_0x3684cd=_0x180b3b['plugins']['get'](o),_0x3dfbc8=_0x180b3b['plugins']['get'](r),_0x4e07fa=_0x180b3b['plugins']['get'](y),_0xa0ab78=_0x180b3b['plugins']['get'](b);_0x180b3b['ui']['componentFactory']['add']('comment',()=>{const _0xa796a=this['_createUIButton'](_0x28cfbe);return _0xa796a['tooltip']=!0x0,_0xa796a;}),_0x180b3b['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x371c67)),_0xa0ab78['addSourceCollector'](()=>{const _0x3f3562=[];for(const [_0x588502,_0x4cbc9b]of _0x3684cd['_threadToController']){const _0x1eddb3=_0x3dfbc8['getAllMarkersForId'](_0x588502['id']),_0x353a72=_0x1eddb3['map'](_0x242cc4=>_0x242cc4['getRange']());_0x1eddb3['length']>0x0&&_0x3f3562['push']([_0x4cbc9b['view'],_0x353a72]);}return _0x3f3562;}),this['listenTo'](_0x4e07fa,'change:activeAnnotations',(_0x3fb6c6,_0x14d593,_0xf162ec)=>{const _0x592975=Array['from'](_0xf162ec)['map'](_0x1ecd16=>_0x1ecd16['innerView'])['find'](_0x86da57=>_0x3684cd['_viewToController']['has'](_0x86da57));if(!_0x592975)return void(_0x3dfbc8['activeMarker']=null);const _0xff134b=_0x3684cd['_viewToController']['get'](_0x592975)['model']['id'],_0x1961d7='comment:'+_0xff134b;_0xff134b&&_0x3dfbc8['hasMarkerForId'](_0xff134b)?_0x3dfbc8['activeMarker']=_0x1961d7:_0x3dfbc8['activeMarker']&&(_0x3dfbc8['activeMarker']=null);}),this['listenTo'](_0x3684cd,'removeCommentThread',(_0x55a6ad,{threadId:_0x572f75,isFromAdapter:_0x42a1c3})=>{!_0x42a1c3&&_0x180b3b['ui']['focusTracker']['isFocused']&&_0x3dfbc8['hasMarkerForId'](_0x572f75)&&_0x180b3b['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3684cd,'addComment',(_0x45e729,{threadId:_0x41eaae,isFromAdapter:_0x3236bb})=>{if(_0x3236bb||!_0x3dfbc8['hasMarkerForId'](_0x41eaae)||!_0x3684cd['hasCommentThread'](_0x41eaae))return;0x1===_0x3684cd['getCommentThread'](_0x41eaae)['length']&&(_0x180b3b['editing']['view']['focus'](),_0x45e729['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x47599b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a90ad;for(const _0x56f0dd in _0x47599b){const _0x4a6f35=_0x56f0dd,_0x3338d7=_0x47599b[_0x4a6f35];if('commentsLicenseKeyValid'==_0x3338d7||'commentsLicenseKeyInvalid'==_0x3338d7||'commentsLicenseKeyExpired'==_0x3338d7||'commentsLicenseKeyDomainLimit'==_0x3338d7||'commentsLicenseKeyNotAllowed'==_0x3338d7||'commentsLicenseKeyEvaluationLimit'==_0x3338d7||'commentsLicenseKeyUsageLimit'==_0x3338d7){delete _0x47599b[_0x4a6f35],_0x1a90ad=_0x3338d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x1a90ad&&_0x47599b['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x1a90ad&&_0x47599b['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x1a90ad&&_0x47599b['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x1a90ad&&_0x47599b['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x1a90ad&&_0x47599b['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x1a90ad&&_0x47599b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x171f8d){const _0x342c59=this['editor'],_0x113df3=new _0x171f8d(_0x342c59['locale']),_0x1daf3f=_0x342c59['commands']['get']('addCommentThread');return _0x113df3['set']({'label':N(_0x342c59['locale'],'Comment'),'icon':_0x50c136}),_0x113df3['bind']('isEnabled')['to'](_0x1daf3f,'isEnabled',_0x1daf3f,'hasContent',(_0x338152,_0x2a2807)=>_0x338152&&_0x2a2807),this['listenTo'](_0x113df3,'execute',()=>{_0x1daf3f['execute']();}),_0x113df3;}}class i extends _0x23cf76{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x4a9f5d){super(_0x4a9f5d),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1f93d7,_0x79ffe1,_0x3e1755)=>{_0x3e1755?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x404d72,_0x1460d7]of this['editor']['commands'])_0x1460d7['affectsData']&&'addCommentThread'!==_0x404d72&&_0x1460d7['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x1c9afc=this['editor']['editing']['view']['document'];this['listenTo'](_0x1c9afc,'cut',_0xbfc066=>_0xbfc066['stop'](),{'priority':'highest'}),this['listenTo'](_0x1c9afc,'clipboardInput',_0x52a2de=>_0x52a2de['stop'](),{'priority':'highest'}),this['listenTo'](_0x1c9afc,'delete',_0x45ee69=>_0x45ee69['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0xd41426,_0x2858e8]of this['editor']['commands'])_0x2858e8['affectsData']&&'addCommentThread'!==_0xd41426&&_0x2858e8['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x545c79{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x384e01){super(_0x384e01),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0xdf461b=this['context']['plugins']['get'](y);this['listenTo'](_0xdf461b,'_activateAnnotation',(_0x337e53,_0x4458b8)=>{for(const _0x22b11e of this['activeUIs']){const _0x2db77b=this['_uis']['get'](_0x22b11e);(0x0,this['uisData']['get'](_0x22b11e)['filter'])(_0x4458b8)&&_0x2db77b['setActiveAnnotation'](_0x4458b8);}}),this['listenTo'](_0xdf461b,'_deactivateAllAnnotations',()=>{for(const _0x2e84e1 of this['activeUIs']){this['_uis']['get'](_0x2e84e1)['setActiveAnnotation'](null);}}),this['listenTo'](_0xdf461b['_visibleAnnotations'],'add',(_0x192cb5,_0x29e255)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x29e255);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3a3d88){return this['activeUIs']['has'](_0x3a3d88);}['activate'](_0x16765d,_0x3d554e=this['defaultFilter']){const _0xb33df0=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x16765d))throw new _0x3c6477('annotationsuis-missing-ui',this,{'uiName':_0x16765d});this['isActive'](_0x16765d)&&this['deactivate'](_0x16765d),this['activeUIs']['add'](_0x16765d);const _0xfb77b=new S();v({'source':_0xb33df0['_visibleAnnotations'],'target':_0xfb77b,'filter':_0x3d554e}),this['uisData']['set'](_0x16765d,{'collection':_0xfb77b,'filter':_0x3d554e});const _0x23403e=this['_uis']['get'](_0x16765d);_0x23403e['attach'](_0xfb77b),this['listenTo'](_0x23403e,'change:activeAnnotation',(_0x26f244,_0x4b4558,_0x2012ee,_0x271b48)=>{_0x271b48&&_0xb33df0['_removeActiveAnnotation'](_0x271b48),_0x2012ee&&_0xb33df0['_addActiveAnnotation'](_0x2012ee);});}['deactivate'](_0x383bac){if(this['activeUIs']['delete'](_0x383bac),!this['_uis']['has'](_0x383bac))throw new _0x3c6477('annotationsuis-missing-ui',this,{'uiName':_0x383bac});const _0x52e014=this['_uis']['get'](_0x383bac);_0x52e014['detach'](),this['stopListening'](_0x52e014),this['uisData']['get'](_0x383bac)['collection']['destroy'](),this['uisData']['delete'](_0x383bac);}['switchTo'](_0x4ef4f3){if(!this['_uis']['has'](_0x4ef4f3))throw new _0x3c6477('annotationsuis-missing-ui',this,{'uiName':_0x4ef4f3});const _0x369767=this['context']['plugins']['get'](y),_0x37af30=Array['from'](_0x369767['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4ef4f3);const _0x2bab90=this['_uis']['get'](_0x4ef4f3);_0x2bab90['setActiveAnnotation'](_0x37af30),_0x2bab90['_setSelectedAnnotations']&&_0x37af30&&_0x2bab90['_setSelectedAnnotations']([_0x37af30]);}['deactivateAll'](){for(const _0x2415ea of this['activeUIs'])this['deactivate'](_0x2415ea);}['register'](_0x43e854,_0x2252ec){if(this['_uis']['has'](_0x43e854))throw new _0x3c6477('annotationsuis-register-already-registered');if('function'!=typeof _0x2252ec['attach']||'function'!=typeof _0x2252ec['detach']||'function'!=typeof _0x2252ec['setActiveAnnotation'])throw new _0x3c6477('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x43e854,_0x2252ec);}['refilterAnnotations'](){const _0x568945=this['context']['plugins']['get'](y)['collection'],_0x1b1b11=new Map(),_0x3a9256=Array['from'](this['activeUIs']);for(const _0x5b94ac of this['activeUIs']){const _0x13104e=this['uisData']['get'](_0x5b94ac)['collection'];for(const _0x49184a of _0x13104e)_0x1b1b11['set'](_0x49184a,_0x5b94ac);}for(const _0x5b592c of _0x568945){const _0x59164a=_0x1b1b11['get'](_0x5b592c);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5b592c);const _0x12bd19=_0x3a9256['find'](_0x94bc8e=>this['uisData']['get'](_0x94bc8e)['filter'](_0x5b592c));_0x59164a!==_0x12bd19&&(_0x59164a&&this['uisData']['get'](_0x59164a)['collection']['remove'](_0x5b592c),_0x12bd19&&this['uisData']['get'](_0x12bd19)['collection']['add'](_0x5b592c));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x383e2a){const _0xe615aa=[];for(const _0x1d510a of this['activeUIs']){(0x0,this['uisData']['get'](_0x1d510a)['filter'])(_0x383e2a)&&_0xe615aa['push'](_0x1d510a);}if(_0xe615aa['length']>0x1)throw new _0x3c6477('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xe615aa,'annotationType':_0x383e2a['type']});}}const _i=/* #__PURE__ -- @preserve */
|
|
32
|
+
Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x54136c){super(_0x54136c);const _0x2c717c=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x2b2f3d(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2c717c['to']('class')],'style':{'minHeight':_0x2c717c['to']('minHeight',_0x142ddd=>'number'==typeof _0x142ddd?_i(_0x142ddd+0xa):null)},'dir':_0x54136c['uiLanguageDirection'],'role':'application','aria-label':N(_0x54136c,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x54136c,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x267937=>{this['_updateItemPositionInFocusables'](_0x267937['source']);}),this['list']['forEach'](_0x1c81aa=>{this['focusTracker']['add'](_0x1c81aa['element']),this['_updateItemPositionInFocusables'](_0x1c81aa);}),this['list']['on']('change',(_0xc2952c,_0x4e7e11)=>{for(const _0x48a6d4 of _0x4e7e11['removed'])this['focusTracker']['remove'](_0x48a6d4['element']),this['focusables']['remove'](_0x48a6d4);for(const _0x2bb7de of _0x4e7e11['added'])this['focusTracker']['add'](_0x2bb7de['element']),this['_updateItemPositionInFocusables'](_0x2bb7de);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x37ab98){const _0x956eed=this['focusables']['getIndex'](_0x37ab98);let _0x2e6869,_0x1aa00b;for(const _0xc4a9d9 of this['focusables'])if(_0x37ab98['top']<_0xc4a9d9['top']){_0x2e6869=_0xc4a9d9;break;}if(_0x1aa00b=_0x2e6869?this['focusables']['getIndex'](_0x2e6869):this['focusables']['length'],-0x1!==_0x956eed){if(_0x956eed===_0x1aa00b-0x1)return;this['focusables']['remove'](_0x37ab98),_0x1aa00b=_0x2e6869?this['focusables']['getIndex'](_0x2e6869):this['focusables']['length'];}this['focusables']['add'](_0x37ab98,_0x1aa00b);}}const Ot=/* #__PURE__ -- @preserve */
|
|
33
|
+
Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2e9f39){super(_0x2e9f39),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x1d6b4a,_0x194e9a)=>_0x1d6b4a+_0x194e9a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x56cb74=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x56cb74['to']('isAnimationDisabled',_0x181f07=>_0x181f07?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x56cb74['to']('top',_0x38e15d=>Ot(_0x38e15d))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1a9305=this['element']['clientHeight'];_0x1a9305&&(this['height']=_0x1a9305);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x545c79{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x159d51){super(_0x159d51),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x284f70=this['context']['config']['get']('sidebar.container');_0x284f70&&this['setContainer'](_0x284f70);}['setContainer'](_0x8c28){if(!g(_0x8c28))throw new _0x3c6477('sidebar-setcontainer-invalid-element');this['container']=_0x8c28;}['_attachToContainer']({viewClass:_0x748ccf='',spaceBetweenItems:_0x328237=0x19}={}){if(!g(this['container']))throw new _0x3c6477('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x748ccf,this['_spaceBetweenItems']=_0x328237;}['rearrange']({removedAnnotation:_0x1d1bc9,previousAnnotation:_0x23939d,nextAnnotation:_0x29abc9}){const _0xefcfb6=this['getSidebarItemView'](_0x1d1bc9);this['view']['list']['remove'](_0xefcfb6),this['_destroySidebarItemView'](_0x1d1bc9),_0x23939d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x23939d)),_0x29abc9&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x29abc9)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x4cba5f,activatedAnnotation:_0x56437e,disableAnimationOnActivatedAnnotation:_0x19a5c6}){if(this['_activeAnnotation']=_0x56437e,_0x4cba5f){_0x4cba5f['isActive']=!0x1;const _0x2942a0=this['getSidebarItemView'](_0x4cba5f);_0x2942a0&&_0x19a5c6&&(_0x2942a0['isAnimationDisabled']=!0x1);}if(_0x56437e){const _0x3f34c1=this['getSidebarItemView'](_0x56437e);_0x3f34c1&&(_0x56437e['isActive']=!0x0,_0x19a5c6&&(_0x3f34c1['isAnimationDisabled']=!0x0,_0x3f34c1['top']+=0x1),this['_alignToTargetRect'](_0x3f34c1));}}['_detachFromContainer'](_0x5f25e2){if(this['view']['element']['remove'](),_0x5f25e2){for(const _0x3d57f1 of _0x5f25e2)this['_destroySidebarItemView'](_0x3d57f1);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2405bf,_0x5ecf12){_0x5ecf12||(_0x5ecf12=_0x2405bf['view']);const _0x163175=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x163175,_0x2405bf),this['_annotationToSidebarItemView']['set'](_0x2405bf,_0x163175),_0x163175['content']['add'](_0x5ecf12),this['listenTo'](_0x2405bf['view'],'change:targetRect',(_0x3f6436,_0x7997ef,_0x17030a)=>{const _0x505dc8=this['_getTargetTop'](_0x2405bf,_0x17030a);_0x163175['_targetTop']!=_0x505dc8&&(_0x163175['_targetTop']=_0x505dc8,this['_setItemTop'](_0x163175,_0x505dc8));}),this['listenTo'](_0x163175,'change:top',()=>{this['_recalculate'](_0x163175,'top');}),this['listenTo'](_0x163175,'change:bottom',()=>{this['_recalculate'](_0x163175,'bottom');}),this['_alignToTargetRect'](_0x163175);const _0x5dfa9e=this['_getItemBefore'](_0x163175);if(_0x5dfa9e)this['_alignAfterItem'](_0x5dfa9e,_0x163175)||this['_alignToTargetRect'](_0x163175);else this['_alignToTargetRect'](_0x163175);return this['_updateLastItem'](),this['view']['list']['add'](_0x163175),_0x163175;}['_alignForTopChange'](_0x42f71a){if(!_0x42f71a['content']['length'])return;const _0x3601f8=this['_getItemBefore'](_0x42f71a);if(!_0x3601f8)return;const _0x2522cd=this['_sidebarItemViewToAnnotation']['get'](_0x3601f8),_0x3e8985=this['_activeAnnotation'];_0x3e8985&&_0x3e8985===_0x2522cd?this['_alignAfterItem'](_0x3601f8,_0x42f71a):this['_alignBeforeItem'](_0x42f71a,_0x3601f8);}['_alignForBottomChange'](_0x1c7b4c){if(!_0x1c7b4c['content']['length'])return;const _0x5a1733=this['_getItemAfter'](_0x1c7b4c);if(!_0x5a1733)return;const _0xe3a2b9=this['_sidebarItemViewToAnnotation']['get'](_0x5a1733),_0x10515b=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x16cc0b=this['_activeAnnotation'];_0x16cc0b&&_0x16cc0b===_0xe3a2b9&&_0x10515b?(this['_alignBeforeItem'](_0x5a1733,_0x1c7b4c),this['_alignAfterItem'](_0x1c7b4c,_0x5a1733)):_0x16cc0b&&_0x16cc0b===_0xe3a2b9?this['_alignBeforeItem'](_0x5a1733,_0x1c7b4c):this['_alignAfterItem'](_0x1c7b4c,_0x5a1733);}['_recalculate'](_0x2bfa5d,_0x25f146){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x4e5794,changedProp:_0x4f183f}of this['_recalculateBuffer'])'top'===_0x4f183f?this['_alignForTopChange'](_0x4e5794):this['_alignForBottomChange'](_0x4e5794);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2bfa5d,'changedProp':_0x25f146});}['getSidebarItemView'](_0xc21a8e){return this['_annotationToSidebarItemView']['get'](_0xc21a8e);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2826b6){const _0x7b2128=this['getSidebarItemView'](_0x2826b6);this['stopListening'](_0x7b2128),this['stopListening'](_0x2826b6['view']),_0x7b2128['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2826b6),this['_sidebarItemViewToAnnotation']['delete'](_0x7b2128);}['_createSidebarView'](){const _0x4968c9=new H(this['context']['locale']);return _0x4968c9['render'](),this['on']('change:_lastItem',(_0x194890,_0x1cd8f6,_0x175eca,_0x5c1180)=>{_0x5c1180&&_0x4968c9['unbind']('minHeight'),_0x175eca?_0x4968c9['bind']('minHeight')['to'](_0x175eca,'bottom'):_0x4968c9['minHeight']=null;}),_0x4968c9;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x340edb){const _0x19a8b9=this['_sidebarItemViewToAnnotation']['get'](_0x340edb),_0x146c35=_0x19a8b9&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x19a8b9)-0x1);return _0x146c35&&this['getSidebarItemView'](_0x146c35)||null;}['_getItemAfter'](_0x34a136){const _0x11b49b=this['_sidebarItemViewToAnnotation']['get'](_0x34a136),_0x14e2db=_0x11b49b&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x11b49b)+0x1);return _0x14e2db&&this['getSidebarItemView'](_0x14e2db)||null;}['_alignBeforeItem'](_0x30e9a7,_0x25d31b){_0x30e9a7['updateHeight']();const _0x23ed2f=G(_0x25d31b['bottom']+this['_spaceBetweenItems'],_0x30e9a7['top']);return!!_0x23ed2f&&(this['_setItemTop'](_0x25d31b,_0x25d31b['top']-_0x23ed2f),!0x0);}['_alignAfterItem'](_0xbee3f4,_0x2c65b4){_0xbee3f4['updateHeight']();const _0x4a28e3=G(_0xbee3f4['bottom']+this['_spaceBetweenItems'],_0x2c65b4['top']);return!!_0x4a28e3&&(this['_setItemTop'](_0x2c65b4,_0x2c65b4['top']+_0x4a28e3,!0x1),!0x0);}['_alignToTargetRect'](_0x36e478){const _0x274b50=this['_sidebarItemViewToAnnotation']['get'](_0x36e478);if(!_0x274b50||!_0x274b50['target']||!_0x274b50['targetRect'])return;const _0x2b87b5=this['_getTargetTop'](_0x274b50,_0x274b50['targetRect']);this['_setItemTop'](_0x36e478,_0x2b87b5);}['_getTargetTop'](_0x103232,_0x24c9c7){if(null===_0x24c9c7)return 0x0;if(_0x103232['target']instanceof _0x46af57)return _0x24c9c7['top'];{const _0x14c3d0=new _0x46af57(this['view']['element'])['top'];return _0x24c9c7['top']-_0x14c3d0;}}['_setItemTop'](_0x26b574,_0x1f753e,_0x55e944=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x55e944&&(_0x1f753e=Math['max'](_0x1f753e,this['_getMaxAvailableTop'](_0x26b574))),_0x26b574['top']=_0x1f753e;}['_getMaxAvailableTop'](_0x42e0a3){let _0xa8b1eb=this['_getItemBefore'](_0x42e0a3),_0x1ed028=0x0;for(;_0xa8b1eb;)_0xa8b1eb['updateHeight'](),_0x1ed028+=this['_spaceBetweenItems']+_0xa8b1eb['height'],_0xa8b1eb=this['_getItemBefore'](_0xa8b1eb);return _0x1ed028;}}function G(_0x3a5ef7,_0x89df36){return Math['max'](_0x3a5ef7-_0x89df36,0x0);}function g(_0x13de4c){return null!==_0x13de4c&&'object'==typeof _0x13de4c&&0x1===_0x13de4c['nodeType'];}class e extends _0x545c79{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b483a){super(_0x3b483a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0xa3f224(),this['_refreshPositioningDebounced']=_0x5218cd(()=>{_0x3b483a['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x40efab=this['context']['plugins']['get'](j),_0x4def62=this['context']['plugins']['get'](z);_0x40efab['register']('wideSidebar',this),_0x4def62['container']&&_0x40efab['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3d26f6){if(_0x3d26f6===this['activeAnnotation'])return;const _0x175130=this['context']['plugins']['get'](z);_0x175130['_activeAnnotation']=_0x3d26f6;const _0x1fa00f=this['activeAnnotation'];_0x175130['refresh']({'blurredAnnotation':_0x1fa00f,'activatedAnnotation':_0x3d26f6}),this['activeAnnotation']=_0x3d26f6;}['attach'](_0x168ab6){this['annotations']=_0x168ab6;const _0x571791=this['context']['plugins']['get'](z);if(_0x571791['_annotations']=_0x168ab6,this['isAttached'])throw new _0x3c6477('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x571791,'set:container',()=>{this['detach'](),this['listenTo'](_0x571791,'change:container',_0x493f38=>{_0x493f38['off'](),this['attach'](_0x168ab6);});}),_0x571791['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x41f1a6=_0x794782=>{_0x794782['updateTargetRect'](),_0x571791['addAnnotation'](_0x794782);};for(const _0x203ea0 of _0x168ab6)_0x41f1a6(_0x203ea0);this['listenTo'](_0x168ab6,'add',(_0x1f01db,_0x393ae8)=>{_0x41f1a6(_0x393ae8);}),this['listenTo'](_0x168ab6,'remove',(_0x371de3,_0x7ed032,_0x236944)=>{_0x571791['rearrange']({'removedAnnotation':_0x7ed032,'previousAnnotation':_0x168ab6['get'](_0x236944-0x1),'nextAnnotation':_0x168ab6['get'](_0x236944+0x1)}),_0x7ed032===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x168ab6,'focus',(_0x177ad0,_0x287b2f)=>{this['setActiveAnnotation'](_0x287b2f);}),this['listenTo'](_0x168ab6,'blur',()=>{this['setActiveAnnotation'](null);});const _0x37fba5=this['context']instanceof _0x391341?this['context']['editors']:new _0xa3f224([this['context']]);for(const _0x80e72b of _0x37fba5)this['_integrateWithEditorAnnotations'](_0x80e72b);this['listenTo'](_0x37fba5,'add',(_0x528dbb,_0x4ba562)=>{this['listenTo'](_0x4ba562,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4ba562);});}),this['listenTo'](_0x37fba5,'remove',(_0x5b61aa,_0x5d6c08)=>{_0x5d6c08['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5d6c08['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3c6477('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x271fd4=this['context']['plugins']['get'](z);_0x271fd4['_detachFromContainer'](this['annotations']),this['stopListening'](_0x271fd4),this['stopListening'](this['annotations']),this['context']instanceof _0x391341&&this['stopListening'](this['context']['editors']);for(const _0x4198ab of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4198ab);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x5c08a5){if(!_0x5c08a5['plugins']['has']('EditorAnnotations'))return;const _0x53329c=_0x5c08a5['plugins']['get']('EditorAnnotations'),_0xdde19d=()=>{const _0x208a83=_0x53329c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x208a83[0x0]||null);};this['listenTo'](_0x53329c,'refresh',_0xdde19d),this['listenTo'](_0x53329c,'blur',(_0x257c40,{isAnnotationTracked:_0x4a39c5})=>{this['activeAnnotation']&&_0x4a39c5(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x53329c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0xf4b5a6=>{_0x53329c['hasDomSelection']()&&(_0xdde19d(),_0xf4b5a6['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x53329c);}['_destroyEditorAnnotationsIntegration'](_0x254b86){this['stopListening'](_0x254b86),this['_editorAnnotations']['remove'](_0x254b86);}}class C extends _0x28cfbe{['counterView'];constructor(_0x4f2d80){super(_0x4f2d80);const _0x1255f4=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1bde7d,_0x39e761)=>_0x1bde7d?'...':_0x39e761['toString']()),this['set']('annotationType',''),this['icon']=_0x50c136,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x1255f4['to']('annotationType',_0x3f37c9=>'ck-annotation-counter__badge--'+_0x3f37c9),_0x1255f4['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1255f4['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x545c79{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d7759){super(_0x4d7759),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x2ad553())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0xa3f224(),this['_refreshPositioningDebounced']=_0x5218cd(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x5b5349(this['context']['locale']),this['balloonPanelView']=new _0x135571(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x24efa2){this['annotations']=_0x24efa2;const _0x46205f=this['context']['plugins']['get'](z),_0x3cca7f=this['balloonPanelView'];if(_0x46205f['_annotations']=_0x24efa2,this['isAttached'])throw new _0x3c6477('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x46205f,'set:container',()=>{this['detach'](),this['listenTo'](_0x46205f,'change:container',_0x21ba4d=>{_0x21ba4d['off'](),this['attach'](_0x24efa2);});}),_0x46205f['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x282fda=_0x494d70=>{const _0x441c15=new C(this['context']['locale']);_0x46205f['addAnnotation'](_0x494d70,_0x441c15),this['_annotationToNarrowView']['set'](_0x494d70,_0x441c15),_0x441c15['bind']('isDirty','annotationType','number')['to'](_0x494d70['view'],'isDirty','type','length'),_0x441c15['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x3cca7f['content']['first']!==_0x494d70['view']?(this['_showBalloon'](_0x494d70),_0x494d70['view']['element']['focus'](),this['setActiveAnnotation'](_0x494d70)):this['setActiveAnnotation'](null);});};for(const _0x32bdcb of _0x24efa2)_0x282fda(_0x32bdcb);this['listenTo'](_0x24efa2,'add',(_0x310128,_0x21b764)=>{_0x282fda(_0x21b764);}),this['listenTo'](_0x24efa2,'remove',(_0x69ee8f,_0x493850,_0x4cfe0f)=>{this['_annotationToNarrowView']['get'](_0x493850)['destroy'](),this['_annotationToNarrowView']['delete'](_0x493850),_0x46205f['rearrange']({'removedAnnotation':_0x493850,'previousAnnotation':_0x24efa2['get'](_0x4cfe0f-0x1),'nextAnnotation':_0x24efa2['get'](_0x4cfe0f+0x1)}),_0x493850===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x24efa2,'focus',(_0x26ea03,_0x46d87f)=>{this['setActiveAnnotation'](_0x46d87f);}),this['listenTo'](_0x24efa2,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5e0ade,_0x1470c4)=>{_0x1470c4['keyCode']===_0x12b115['esc']&&_0x3cca7f['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x3cca7f['content']['first']),this['_hideBalloon'](),_0x1470c4['stopPropagation'](),_0x1470c4['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1b9ed0,_0x1a0f6e)=>{const _0x161211=_0x1a0f6e['target'];_0x3cca7f['isVisible']&&_0x3cca7f['element']['contains'](_0x161211)||_0x46205f['view']['element']['contains'](_0x161211)||_0x1b9ed0['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x20a9ba=>_0x20a9ba['contains'](_0x161211))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1e623f=this['context']instanceof _0x391341?this['context']['editors']:new _0xa3f224([this['context']]);for(const _0x11191a of _0x1e623f)this['_integrateWithEditorAnnotations'](_0x11191a);this['listenTo'](_0x1e623f,'add',(_0x342d57,_0x3c225f)=>{this['listenTo'](_0x3c225f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3c225f);});}),this['listenTo'](_0x1e623f,'remove',(_0x1b67ac,_0x44d441)=>{_0x44d441['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x44d441['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x53fe03){if(_0x53fe03===this['activeAnnotation'])return;const _0x1bd05d=this['context']['plugins']['get'](z);if(_0x1bd05d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x53fe03,'disableAnimationOnActivatedAnnotation':!0x0}),_0x53fe03)_0x1bd05d['getSidebarItemView'](_0x53fe03)?this['_showBalloon'](_0x53fe03):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x53fe03;}['detach'](){if(!this['isAttached'])throw new _0x3c6477('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x29df97=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x246a91=>_0x246a91['destroy']()),this['_annotationToNarrowView']['clear'](),_0x29df97['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x391341&&this['stopListening'](this['context']['editors']);for(const _0x410ceb of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x410ceb);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x5d7005){if(!_0x5d7005['plugins']['has']('EditorAnnotations'))return;const _0x642766=_0x5d7005['plugins']['get']('EditorAnnotations'),_0x51ba86=this['context']['plugins']['get'](z),_0x72f422=this['annotations'],_0x39763d=this['balloonPanelView'],_0x592d9d=()=>{const _0x444629=_0x642766['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x444629),this['setActiveAnnotation'](_0x444629[0x0]||null);};this['listenTo'](_0x642766,'refresh',_0x592d9d),this['listenTo'](_0x642766,'blur',(_0x17c731,{isAnnotationTracked:_0x1f68ae})=>{this['activeAnnotation']&&_0x1f68ae(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x642766,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x72f422,'blur',_0x481ea2=>{_0x642766['hasDomSelection']()&&_0x481ea2['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0xb947c8,_0x40676c)=>{const _0x59b5bc=_0x40676c['target'];_0x39763d['isVisible']&&_0x39763d['element']['contains'](_0x59b5bc)||_0x51ba86['view']['element']['contains'](_0x59b5bc)||this['activeAnnotation']&&_0x642766['hasDomSelection']()&&(_0x592d9d(),_0xb947c8['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x642766);}['_destroyEditorAnnotationsIntegration'](_0x3409a3){_0x3409a3&&(this['stopListening'](_0x3409a3),this['_editorAnnotations']['remove'](_0x3409a3));}['_setSelectedAnnotations'](_0x4919f6){for(const _0x327901 of this['_selectedAnnotations'])_0x4919f6['includes'](_0x327901)||this['_manuallyClosedAnnotationViews']['delete'](_0x327901['view']);this['_selectedAnnotations']=_0x4919f6;}['_refreshPositioning'](){const _0x170b64=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x170b64['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x12381b){if(this['_manuallyClosedAnnotationViews']['has'](_0x12381b['view']))return;const _0x2503e9=this['balloonPanelView']['content']['first'];_0x2503e9!==_0x12381b['view']?(_0x2503e9&&this['_detachListeners'](_0x2503e9),this['_attachListeners'](_0x12381b['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x12381b['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x25a33e=this['balloonPanelView']['content']['first'],_0x1a6f0f=_0x25a33e&&this['annotations']['getByView'](_0x25a33e);if(!_0x1a6f0f||!this['_annotationToNarrowView']['has'](_0x1a6f0f))return;const _0x7ec920=this['_annotationToNarrowView']['get'](_0x1a6f0f)['element'],_0x4d5b48=(function(){const _0x1a7c00=_0x135571['defaultPositions'];return[_0x1a7c00['southArrowNorthEast'],_0x1a7c00['northArrowSouthEast'],_0x1a7c00['southArrowNorth'],_0x1a7c00['northArrowSouth'],_0x1a7c00['southArrowNorthWest'],_0x1a7c00['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x7ec920,'positions':_0x4d5b48});}['_hideBalloon'](){const _0x4285b1=this['balloonPanelView'],_0x3debf0=_0x4285b1['content']['first'];_0x3debf0&&(this['_detachListeners'](_0x3debf0),_0x4285b1['unpin'](),_0x4285b1['content']['clear']());}['_attachListeners'](_0x3d60f9){this['listenTo'](_0x3d60f9,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x3d60f9,'Esc',(_0x5ce93c,_0x5c2223)=>{this['_manuallyClosedAnnotationViews']['add'](_0x3d60f9),this['_hideBalloon'](),_0x5c2223();});}['_detachListeners'](_0x1840e2){this['stopListening'](_0x1840e2);}}class c extends _0x23cf76{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0xba2018,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x95dda){super(_0x95dda),_0x95dda['editing']['view']['addObserver'](_0x2660de),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x95dda['plugins']['get'](_0xba2018),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x5218cd(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x452a83=this['editor']['plugins']['get'](j);_0x452a83['context']===this['editor']&&(_0x452a83['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x15d5d7,_0x387072)=>{const _0x165c4e=this['_balloon'];if(this['isAttached']&&_0x165c4e['visibleView']){const _0x223626=this['annotations']['getByView'](_0x165c4e['visibleView']);_0x223626&&this['_closeAnnotation'](_0x223626),_0x387072();}}));}['afterInit'](){const _0x245ea8=this['editor']['plugins']['get'](j);_0x245ea8['context']===this['editor']&&(_0x245ea8['hasActive']()||_0x245ea8['switchTo']('inline'));}['setActiveAnnotation'](_0x437827){_0x437827!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x437827&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x437827)&&this['_addAnnotationToBalloon'](_0x437827,!0x0),_0x437827['isActive']=!0x0),_0x437827||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x437827);}['attach'](_0x382d13){this['annotations']=_0x382d13;const _0x130934=this['editor']['plugins']['get'](j),_0x375d01=this['_balloon'];if(this['isAttached'])throw new _0x3c6477('inlineannotations-attach-already-attached',this);if(_0x130934['context']!==this['editor'])throw new _0x3c6477('inlineannotations-not-allowed-with-context',this);const _0x461209=this['editor']['plugins']['get'](b);this['listenTo'](_0x461209,'refresh',()=>{const _0x2e7bb2=_0x461209['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x49d247,_0xbd901d;!this['_forceRefresh']&&(_0x49d247=_0x2e7bb2,_0xbd901d=this['_selectedAnnotations'],_0x49d247['length']===_0xbd901d['length']&&_0x49d247['every'](_0x1878c9=>_0xbd901d['includes'](_0x1878c9)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2e7bb2),this['setActiveAnnotation'](_0x2e7bb2[0x0]||null));}),this['listenTo'](_0x461209,'blur',(_0x27bbf5,{isAnnotationTracked:_0xf81511})=>{this['activeAnnotation']&&_0xf81511(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x461209,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x480cc1,_0x371958,_0x2965f3)=>{_0x2965f3||this['setActiveAnnotation'](null);}),this['listenTo'](_0x382d13,'remove',(_0x864c36,_0x13f25f)=>{this['_removeAnnotationFromBalloon'](_0x13f25f),_0x13f25f===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x375d01,'change:visibleView',(_0x5232e0,_0x492227,_0x28aac0,_0x315e06)=>{_0x315e06&&this['stopListening'](_0x315e06);const _0x40c845=_0x382d13['getByView'](_0x28aac0);_0x28aac0&&_0x40c845&&(this['listenTo'](_0x28aac0,'change:height',()=>{_0x375d01['updatePosition']();}),this['listenTo'](_0x28aac0,'Esc',()=>{this['_closeAnnotation'](_0x40c845),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x40c845&&this['setActiveAnnotation'](_0x40c845));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x375d01['visibleView']&&(_0x382d13['getByView'](_0x375d01['visibleView'])&&_0x375d01['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x3c6477('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1474bd of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1474bd);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x414d34){for(const _0x4bd545 of this['_selectedAnnotations'])_0x414d34['includes'](_0x4bd545)||this['_manuallyClosed']['delete'](_0x4bd545);for(const _0x3aa32c of this['annotations'])_0x414d34['includes'](_0x3aa32c)||this['_removeAnnotationFromBalloon'](_0x3aa32c);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4a2574 of _0x414d34)this['_addAnnotationToBalloon'](_0x4a2574);}this['_selectedAnnotations']=_0x414d34;}['_addAnnotationToBalloon'](_0x283da2,_0x135d0b=!0x1){this['_manuallyClosed']['has'](_0x283da2)||(this['_addedAnnotations']['has'](_0x283da2)||this['_balloon']['hasView'](_0x283da2['view'])||(this['_addedAnnotations']['add'](_0x283da2),this['_balloon']['add']({'stackId':_0x283da2['view']['id'],'view':_0x283da2['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x283da2)}})),_0x135d0b&&this['_balloon']['showStack'](_0x283da2['view']['id']));}['_getBalloonTargetForAnnotation'](_0x58efb7){const _0x17656c=_0x58efb7['target'],_0xe4603b=this['editor']['editing']['view'],_0x529b4c=_0xe4603b['document']['selection']['getFirstRange'](),_0x27c9a0=_0xe4603b['domConverter']['viewRangeToDom'](_0x529b4c);if(_0x27c9a0['collapse'](!0x0),_0x17656c){if(_0x17656c instanceof _0x46af57)return _0x17656c;let _0x391694=[];for(const _0x67c00d of _0x17656c)_0x391694['push'](...F(_0x67c00d['getClientRects']()));_0x391694=function(_0x1adbf8){const _0x563dac=[];let _0x13cf64=_0x1adbf8[0x0];for(let _0x1b9539=0x1;_0x1b9539<_0x1adbf8['length'];_0x1b9539++)P(_0x13cf64,_0x1adbf8[_0x1b9539])?_0x13cf64['width']+=_0x1adbf8[_0x1b9539]['width']:(_0x563dac['push'](_0x13cf64),_0x13cf64=_0x1adbf8[_0x1b9539]);return _0x563dac['push'](_0x13cf64),_0x563dac;}(_0x391694);const _0x4c6ae5=_0x27c9a0['getBoundingClientRect']();return _0x391694['find'](_0x2275d3=>_0x2275d3['top']<=_0x4c6ae5['top']&&_0x2275d3['bottom']>=_0x4c6ae5['bottom']&&_0x2275d3['left']<=_0x4c6ae5['left']&&_0x2275d3['right']>=_0x4c6ae5['right'])||_0x391694[0x0];}return _0x58efb7['targetRect']||_0x27c9a0;}['_removeAnnotationFromBalloon'](_0x5af45a){this['_addedAnnotations']['has'](_0x5af45a)&&this['_balloon']['hasView'](_0x5af45a['view'])&&(this['_addedAnnotations']['delete'](_0x5af45a),this['_balloon']['remove'](_0x5af45a['view']));}['_closeAnnotation'](_0x4b4845){this['_manuallyClosed']['add'](_0x4b4845),this['_removeAnnotationFromBalloon'](_0x4b4845);}}function F(_0x1864b9){return Array['from'](_0x1864b9)['map'](DOMRect['fromRect']);}function P(_0x3392e4,_0x2e815b){return _0x3392e4['top']===_0x2e815b['top']&&_0x3392e4['bottom']===_0x2e815b['bottom']&&_0x3392e4['right']===_0x2e815b['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x657d22,_0x1dc112){super(_0x657d22),this['set']('isEmpty',!_0x1dc112['length']),this['focusTracker']=new _0x2b2f3d(),this['_annotationViews']=_0x1dc112,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0xd32198({'focusables':_0x1dc112,'focusTracker':this['focusTracker']}),this['listenTo'](_0x1dc112,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x1dc112,'remove',(_0x3f2f2b,_0x1e29b7)=>{_0x1e29b7['isActive']&&this['focus'](),_0x1dc112['length']||(this['isEmpty']=!0x0);});const _0x2efdd2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x657d22,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x1dc112},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2efdd2['if']('isEmpty','ck-hidden',_0x4aaf1d=>!_0x4aaf1d)]},'children':[{'text':N(_0x657d22,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x573e64 of this['_annotationViews'])this['focusTracker']['add'](_0x573e64['element']);this['_annotationViews']['on']('change',(_0x44ca2f,{added:_0x146ced,removed:_0x4004c6})=>{for(const _0x2be9c1 of _0x146ced)this['focusTracker']['add'](_0x2be9c1['element']);for(const _0x58c612 of _0x4004c6)this['focusTracker']['remove'](_0x58c612['element']);});}}class p extends _0x545c79{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x4ca135){super(_0x4ca135),this['archivedThreads']=new _0xa3f224();}['init'](){const _0x215a70=this['context'],_0x5acab8=_0x215a70['plugins']['get'](o),_0x2afd18=_0x215a70['plugins']['get'](y);this['listenTo'](_0x5acab8,'addCommentThread',(_0x28d48e,{threadId:_0x1f79d1})=>{const _0x1e9f06=_0x5acab8['getCommentThread'](_0x1f79d1);_0x1e9f06['archivedAt']&&this['archivedThreads']['add'](_0x1e9f06,this['_calculatePosition'](_0x1e9f06['archivedAt'])),this['listenTo'](_0x1e9f06,'change:archivedAt',(_0x5560ea,_0x326add,_0x4587fe)=>{_0x4587fe?this['archivedThreads']['has'](_0x1e9f06)||this['archivedThreads']['add'](_0x1e9f06,this['_calculatePosition'](_0x1e9f06['archivedAt'])):this['archivedThreads']['has'](_0x1e9f06)&&this['archivedThreads']['remove'](_0x1e9f06);});}),this['listenTo'](_0x5acab8,'removeCommentThread',(_0x57ce90,{threadId:_0x250c49})=>{const _0x3e2511=_0x5acab8['getCommentThread'](_0x250c49);this['stopListening'](_0x3e2511),this['archivedThreads']['has'](_0x3e2511)&&this['archivedThreads']['remove'](_0x3e2511);},{'priority':'highest'}),this['listenTo'](_0x2afd18['collection'],'focus',(_0x44b60c,_0x2ed1d1)=>{_0x2ed1d1['isVisible']||(_0x2ed1d1['isActive']=!0x0,_0x2afd18['activate'](_0x2ed1d1));});}['_calculatePosition'](_0x875f6f){const _0x16acd6=[...this['archivedThreads']]['findIndex'](_0x4c6dad=>_0x4c6dad['archivedAt']<_0x875f6f);return _0x16acd6>-0x1?_0x16acd6:this['archivedThreads']['length'];}}class a extends _0x23cf76{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x524ca0];}constructor(_0x4257ea){super(_0x4257ea),this['annotationViews']=new _0x10f58f(),this['_pendingThreads']=[];}['init'](){const _0x34e787=this['editor'],_0x4f5391=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x34e787['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x28cfbe,!0x0)),_0x34e787['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x243c90=this['_createCommentsArchiveButton'](_0x371c67);return _0x243c90['set']({'role':'menuitemcheckbox'}),_0x243c90;});const _0x494c13=_0x34e787['plugins']['get'](p),_0x459123=_0x34e787['plugins']['get']('Annotations'),_0xb13344=_0x34e787['plugins']['get']('CommentsRepository');_0x494c13['archivedThreads']['forEach'](_0x223e6e=>{this['_handleNewThread'](_0x223e6e);}),this['listenTo'](_0x494c13['archivedThreads'],'add',(_0x478eab,_0xb5970f)=>{this['_handleNewThread'](_0xb5970f);}),this['listenTo'](_0x459123['collection'],'add',(_0x246ea9,_0x5572ac)=>{const _0x253932=this['_pendingThreads']['find'](_0x42f449=>{const _0x45457c=_0xb13344['_threadToController']['get'](_0x42f449);return _0x45457c&&_0x5572ac['innerView']===_0x45457c['view'];});if(_0x253932){const _0x595cdc=this['_calculatePosition'](_0x253932['archivedAt']);this['_addAnnotationToArchive'](_0x5572ac,_0x595cdc),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x253932),0x1);}}),this['listenTo'](_0x494c13['archivedThreads'],'remove',(_0x14d177,_0x10542d)=>{const _0x3f9de7=_0x34e787['config']['get']('collaboration.channelId');if(!_0x3f9de7||_0x10542d['channelId']===_0x3f9de7){if(this['_pendingThreads']['includes'](_0x10542d))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x10542d),0x1);else{const _0x7c991d=_0xb13344['_threadToController']['get'](_0x10542d),_0x11f17c=_0x459123['getByInnerView'](_0x7c991d['view']);this['annotationViews']['remove'](_0x11f17c['view']),this['stopListening'](_0x11f17c),this['stopListening'](_0x11f17c['focusableElements']);}}}),this['listenTo'](_0x459123['collection'],'add',(_0x1de8f0,_0x312dec)=>{this['listenTo'](_0x312dec,'escape',_0x4f5391);}),this['listenTo'](_0x459123['collection'],'remove',(_0x2fa815,_0x15df40)=>{this['stopListening'](_0x15df40,'escape',_0x4f5391);});}['_addAnnotationToArchive'](_0x97726f,_0x281cad){this['listenTo'](_0x97726f,'set:isVisible',_0x5361cf=>{_0x5361cf['return']=!0x1,_0x5361cf['stop']();}),this['annotationViews']['add'](_0x97726f['view'],_0x281cad);}['_handleNewThread'](_0x287e6f){const _0x371dd6=this['editor']['plugins']['get']('CommentsRepository'),_0x54390a=this['editor']['plugins']['get']('Annotations'),_0x333549=this['editor']['config']['get']('collaboration.channelId');if(!_0x333549||_0x287e6f['channelId']===_0x333549){const _0x8af813=_0x371dd6['_threadToController']['get'](_0x287e6f);if(!_0x8af813)return void this['_pendingThreads']['push'](_0x287e6f);const _0x12c2ef=this['_calculatePosition'](_0x287e6f['archivedAt']),_0x374d6d=_0x54390a['getByInnerView'](_0x8af813['view']);_0x374d6d['isVisible']&&_0x54390a['_visibleAnnotations']['remove'](_0x374d6d),this['_addAnnotationToArchive'](_0x374d6d,_0x12c2ef);}}['_calculatePosition'](_0x32c581){const _0x503cf5=this['editor']['config']['get']('collaboration.channelId'),_0x5d26c4=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x10e30c=>_0x10e30c['channelId']===_0x503cf5)['findIndex'](_0x182b3f=>_0x182b3f['archivedAt']<_0x32c581);return _0x5d26c4<0x0||_0x5d26c4>this['annotationViews']['length']?this['annotationViews']['length']:_0x5d26c4-0x1;}['_toggleDialog'](){const _0x21faea=this['editor'],_0x30445c=_0x21faea['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x21faea['locale'],this['annotationViews'])),'commentsArchive'===_0x30445c['id']?_0x30445c['hide']():_0x30445c['show']({'id':'commentsArchive','title':N(_0x21faea['locale'],'COMMENTS_ARCHIVE'),'icon':_0x307d20,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x1d0d6d['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x1ff421,_0x495a13=!0x1){const _0x14a946=this['editor']['locale'],_0x3c60f9=this['editor']['plugins']['get']('Dialog'),_0x454ea0=new _0x1ff421(_0x14a946);return _0x454ea0['bind']('isEnabled')['to'](this,'isEnabled'),_0x454ea0['bind']('isOn')['to'](_0x3c60f9,'id',_0x3151a3=>'commentsArchive'===_0x3151a3),_0x454ea0['set']({'label':N(_0x14a946,'COMMENTS_ARCHIVE'),'icon':_0x307d20,'isToggleable':!0x0}),_0x495a13&&(_0x454ea0['tooltip']=!0x0),this['listenTo'](_0x454ea0,'execute',()=>this['_toggleDialog']()),_0x454ea0;}['_hideDialogOnAnnotationEscape']=_0x2345c1=>{const _0x375704=_0x2345c1['source'];if(!this['annotationViews']['has'](_0x375704['view']))return;const _0x52156a=this['editor']['plugins']['get']('Dialog');_0x52156a['isOpen']&&'commentsArchive'===_0x52156a['id']&&(_0x52156a['hide'](),_0x2345c1['stop']());};}class gi extends _0x23cf76{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
|