@ckeditor/ckeditor5-comments 46.1.1-alpha.1 → 46.1.1-alpha.2
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 +18 -18
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.js +2 -2
package/dist/index.js
CHANGED
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Editor as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
((()=>Qt)());constructor(_0xf05c66={}){function _0x3dd676(_0x5bfd2b){return _0x5bfd2b['map'](_0x2285ed=>String['fromCharCode'](_0x2285ed))['join']('');}(_0xf05c66=Object['assign']({},_0xf05c66))['plugins']||(_0xf05c66['plugins']=Rt['defaultPlugins']),super(_0xf05c66),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x3dd676([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3dd676([0x76,0x69,0x65,0x77])][_0x3dd676([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3dd676([0x61,0x75,0x74,0x6f]),this[_0x3dd676([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3dd676([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3dd676([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3dd676([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3dd676([0x6f,0x6b])});}['create'](){const _0x3cca89=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x3cca89))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x46ea2d=>{const _0x237851=this['model']['document']['getRoot'](),_0x4430d3=_0x237851&&_0x237851['getChild'](_0x237851['childCount']-0x1);_0x46ea2d['setSelection'](_0x4430d3,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x1374f8=this['editing']['view'],_0xccd9f3=_0x1374f8['document']['getRoot'](),_0x2d7fef=_0xccd9f3['getChild'](0x0);_0xccd9f3['childCount']>0x1||!_0x2d7fef||'p'!=_0x2d7fef['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x1374f8,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x2d7fef['placeholder']=this['placeholder']),St({'view':_0x1374f8,'element':_0x2d7fef,'keepOnFocus':!0x0}),this['placeholderElement']=_0x2d7fef);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x5ed39b,_0x462f21={}){super(_0x5ed39b),this['editor']=null,this['_editorConfig']=_0x462f21,this['set']('value',_0x462f21['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x5ed39b,'Reply...')),this['set']('submitLabel',N(_0x5ed39b,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0xeb7998(),this['focusCycler']=new _0x2fb93a({'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',(_0x51c15b,_0x4b904f)=>{this['cancelButtonView']['fire']('execute'),_0x4b904f();}),this['keystrokes']['set']('Ctrl+Enter',(_0x25b599,_0x3763fc)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3763fc());}),this['on']('submit',(_0x442cd8,_0x475c03)=>{_0x475c03['length']>0xfde8?(alert(N(_0x5ed39b,'TOO_LONG_COMMENT_ALERT',[_0x475c03['length'],0xfde8])),_0x442cd8['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x274441=this['editor'];this['element']['insertBefore'](_0x274441['ui']['element'],this['element']['firstChild']),_0x274441['model']['document']['on']('change',()=>this['value']=_0x274441['getData']()),_0x274441['bind']('placeholder')['to'](this),this['focusables']['add'](_0x274441['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x52a7e7){-0x1===_0x52a7e7?(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:_0x445597}=this,_0x15e925=new _0x56f2fa(_0x445597);return _0x15e925['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x15e925['withText']=!0x0,_0x15e925['bind']('label')['to'](this,'submitLabel'),_0x15e925['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x15e925['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x5b2746,_0x386187)=>!_0x386187&&!!_0x5b2746['trim']()),_0x15e925;}['_createCancelButton'](){const {locale:_0x1de053}=this,_0x16a49a=new _0x56f2fa(_0x1de053);return _0x16a49a['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x16a49a['label']=N(_0x1de053,'Cancel'),_0x16a49a['withText']=!0x0,_0x16a49a['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x16a49a;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3e283f=>{this['focusTracker']['add'](_0x3e283f['element']);}),this['focusables']['on']('change',(_0x381112,_0x4ae2cd)=>{for(const _0x3b24a2 of Array['from'](_0x4ae2cd['added'])['reverse']())this['focusTracker']['add'](_0x3b24a2['element']);});}}class ie extends kt{constructor(_0x5380a4,_0x4add55,_0x2376fe){super(_0x5380a4),this['commentInputView']=new os(_0x5380a4,_0x2376fe),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x532e97,_0x1be79a)=>_0x532e97||!!_0x1be79a),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 _0x5d5a77(_0x5380a4,_0x4add55),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'](_0x1ddaeb){this['commentInputView']['focus'](_0x1ddaeb);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x1561c3,_0xbf6ef5)=>{const {submitButtonView:_0x110362,cancelButtonView:_0x461087,editor:_0x26b2af}=this['commentInputView'];[_0x110362['element'],_0x461087['element'],_0x26b2af?_0x26b2af['editing']['view']['getDomRoot']():null]['filter'](_0xf18629=>_0xf18629)['some'](_0x4db36e=>_0x4db36e['contains'](_0xbf6ef5['target']))||(this['focus'](),_0xbf6ef5['preventDefault']());});}}class rs extends kt{constructor(_0xc74c7d){super(_0xc74c7d);const _0x8ab2fe=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x8ab2fe['to']('count',_0x515c49=>N(_0xc74c7d,'NUMBER_OF_COMMENTS',_0x515c49))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x5e60ea,_0x22147e,_0x544d2b){super(_0x5e60ea);const _0x4f5630=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x22147e['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x22147e,this['_config']=_0x544d2b,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29f7a8=>this['commentViews']['map'](_0xd96607=>_0xd96607['element'])['includes'](_0x29f7a8['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x5e60ea),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0xee7be1=>_0xee7be1-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5e17e1 of _0x22147e['comments'])this['_handleNewCommentModel'](_0x5e17e1);this['_handleInfoComment'](),this['listenTo'](_0x22147e['comments'],'add',(_0x1f2fe,_0x3f38f8)=>{const _0x234a15=this['_calculatePosition'](_0x3f38f8);this['length']++,this['_handleNewCommentModel'](_0x3f38f8,_0x234a15),this['refreshVisibleViews']();}),this['listenTo'](_0x22147e['comments'],'remove',(_0x47130a,_0x2c65fe)=>{this['length']--,this['_handleRemoveCommentModel'](_0x2c65fe),this['refreshVisibleViews']();}),this['listenTo'](_0x22147e,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x22147e,'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',_0x4f5630['if']('length','ck-hidden',_0x42c213=>!_0x42c213)],'aria-label':N(_0x5e60ea,'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'](_0x430e26){-0x1===_0x430e26?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4723f4 of this['commentViews'])_0x4723f4['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x24c3b4,_0x2e6465){const _0x697671=new this['_config']['CommentView'](this['locale'],_0x24c3b4,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x697671['viewUid']=_0x24c3b4['id'],_0x697671['delegate']('removeComment')['to'](this),_0x697671['delegate']('updateComment')['to'](this),_0x697671['delegate']('resolveCommentThread')['to'](this),_0x697671['delegate']('editorReady')['to'](this),_0x697671['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x697671,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x697671,_0x2e6465);}['_calculatePosition'](_0x52d0ce){const _0x1783e8=this['_model']['_findOptimalIndex'](_0x52d0ce);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x52d0ce['authoredAt']?_0x1783e8-0x1:_0x1783e8:_0x1783e8-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x54bbb9={'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'],_0x54bbb9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x54bbb9));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x39edcb){const _0x3dde39=this['commentViews']['remove'](_0x39edcb['id']);this['stopListening'](_0x3dde39),_0x3dde39['isEditMode']&&this['_updateHasDirtyComment'](),_0x3dde39['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x186c43=>_0x186c43['isEditMode']);}['_rearrangeCollapse'](){const _0x4f8df3=function(_0x2aee0f){const _0x412ba2=new _0x1b1bd5();for(const _0x38f1e7 of _0x2aee0f)_0x412ba2['add'](_0x38f1e7);return _0x412ba2;}(this['commentViews']),_0x3563a8=this['_collapsedCommentsView']['count'];for(let _0x507c3c=0x1;_0x507c3c<=_0x3563a8;_0x507c3c++)_0x4f8df3['remove'](0x1);for(const _0x191dde of _0x4f8df3)_0x191dde['collapse']();_0x3563a8>0x0&&_0x4f8df3['add'](this['_collapsedCommentsView'],0x1),ns(_0x4a1d9a(Array['from'](this['visibleViews']),Array['from'](_0x4f8df3)),this['visibleViews'],_0x4f8df3);}['_rearrangeExpand'](){ns(_0x4a1d9a(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x173c97 of this['visibleViews'])_0x173c97['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x1bcf72=>{this['focusTracker']['add'](_0x1bcf72['element']),this['keystrokes']['listenTo'](_0x1bcf72['element']);}),this['commentViews']['on']('change',(_0x1c8808,_0x84e82)=>{for(const _0xf7189a of _0x84e82['removed'])this['focusTracker']['remove'](_0xf7189a['element']),this['keystrokes']['stopListening'](_0xf7189a['element']);for(const _0x39c2d2 of Array['from'](_0x84e82['added'])['reverse']())this['focusTracker']['add'](_0x39c2d2['element']),this['keystrokes']['listenTo'](_0x39c2d2['element']);});}}function ns(_0x44ffb4,_0x241540,_0x5074cd){let _0x4a4145=0x0;for(const _0x376e19 of _0x44ffb4)switch(_0x376e19){case'insert':_0x241540['add'](_0x5074cd['get'](_0x4a4145),_0x4a4145),_0x4a4145++;break;case'delete':_0x241540['remove'](_0x4a4145);break;case'equal':_0x4a4145++;}}class oe extends kt{constructor(_0x3c1a87){super(_0x3c1a87);const _0x454886=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x454886['to']('contextValue',_0x51a388=>N(_0x3c1a87,'THREAD_CONTEXT_LABEL',_0x51a388)),'tabindex':-0x1},'children':[{'text':_0x454886['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x446176,_0x5debd9){super(_0x446176);const _0x62d8a0=this['bindTemplate'];this['_model']=_0x5debd9,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x591c1f=>!!_0x591c1f),this['bind']('contextValue')['to'](this['_model'],'context',_0x5a0c03=>_0x5a0c03&&_0x5a0c03['value']?this['_trimContextValue'](_0x5a0c03['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',_0x62d8a0['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 _0x17fb88=new _0x56f2fa(this['locale']);return _0x17fb88['label']=N(this['locale'],'Reopen'),_0x17fb88['tooltip']=N(this['locale'],'Reopen'),_0x17fb88['icon']=_0x2ba54b,_0x17fb88['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2b3f21=>!_0x2b3f21),_0x17fb88['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x782a30,_0x3d9953)=>_0x782a30&&_0x3d9953),_0x17fb88['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x17fb88;}['_trimContextValue'](_0x5de310){if(_0x5de310['length']<0x96)return _0x5de310;const _0x408890=_0x5de310['lastIndexOf']('\x20',0x93);return _0x5de310['substring'](0x0,_0x408890>-0x1?_0x408890:0x93)+'...';}['_attachContextActions'](){const _0x5587cc=this['element']['querySelector']('.ck-context'),_0x1b831c=_0x5587cc['querySelector']('.ck-context__value');this['listenTo'](_0x5587cc,'mouseenter',()=>{_0x1b831c['offsetWidth']<_0x1b831c['scrollWidth']&&_0x5587cc['classList']['add']('overlay');}),this['listenTo'](_0x5587cc,'mouseleave',()=>{_0x5587cc['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x112add of this['focusables'])this['focusTracker']['add'](_0x112add['element']),this['keystrokes']['listenTo'](_0x112add['element']);}['_createContextView'](){const _0x1cec8c=new oe(this['locale']);return _0x1cec8c['bind']('contextValue')['to'](this),_0x1cec8c;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1ca89a,_0x56a2f2,_0x177d22,_0x5911c8){super(_0x1ca89a),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x56a2f2,this['_localUser']=_0x177d22,this['_config']=_0x5911c8,this['commentThreadHeaderView']=new Yt(_0x1ca89a,_0x56a2f2),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x1ca89a,N(_0x1ca89a,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x1ca89a,_0x56a2f2,Object['assign']({'CommentView':this['_config']['CommentView']},_0x5911c8)),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',(_0x33e5f3,_0x33b9f3)=>_0x33e5f3||!!_0x33b9f3),this['bind']('isUnlinked')['to'](_0x56a2f2,'unlinkedAt',_0x4c0696=>!!_0x4c0696),this['bind']('ariaLabel')['to'](this,'length',_0x531c7b=>{const _0x328586=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x531c7b,_0x328586]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0xeb7998(),this['keystrokes']=new jt(),this['focusCycler']=new _0x2fb93a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x58250f=>_0x58250f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4f7dc8=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x33819b=_0x4f7dc8['commentInputView'];return _0x4f7dc8['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x33819b,'value',(_0x52eef4,_0x578cdb,_0x5938a3,_0x2c86b6,_0x46aaee)=>!!_0x46aaee||!!_0x2c86b6&&_0x5938a3&&!_0x578cdb||_0x52eef4&&_0x5938a3&&!_0x578cdb),_0x33819b['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4df7f7,_0x27afdd,_0x11b3b4)=>{let _0x20accb;return _0x20accb=_0x11b3b4&&_0x27afdd?'Reply\x20to\x20reopen\x20discussion...':_0x4df7f7?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x20accb);}),_0x33819b['bind']('submitLabel')['to'](this,'length',_0x589ac7=>N(this['locale'],_0x589ac7?'Reply':'Comment')),_0x33819b['on']('submit',(_0x1113ce,_0x1c5883)=>{this['fire']('addComment',_0x1c5883),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x33819b['on']('cancel',()=>{this['focus']();}),_0x33819b['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x33819b['on']('cancel',_0x434e86=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x434e86['stop']());}),this['on']('change:isActive',(_0x4038f4,_0x3ffd60,_0x292520)=>{_0x292520||this['length']||_0x33819b['value']||this['fire']('removeCommentThread');}),_0x4f7dc8;}}class gt extends/* #__PURE__ -- @preserve */
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
_0x240a0a(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x231bed,target:_0x16162c,type:_0x478cf6,isVisible:_0x5b79b2=!0x0}){super(),this['view']=_0x231bed,this['view']['element']||this['view']['render'](),this['_type']=_0x478cf6,this['_target']=_0x16162c,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1b1bd5([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x225c3a,_0x4ebf21)=>{this['view']['focusTracker']['add'](_0x4ebf21);}),this['focusableElements']['on']('remove',(_0x4a6c49,_0x4244be)=>{this['view']['focusTracker']['remove'](_0x4244be);}),this['set']('isVisible',_0x5b79b2);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x57b684=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x57b684),_0x57b684;}get['targetRect'](){const _0x1fd539=this['target'];if(null===_0x1fd539)return null;if(_0x1fd539 instanceof _0x4d09a0)return _0x1fd539;const _0x75d601=_0x1fd539['filter'](_0x10f496=>function(_0x206500){const _0x117c87=_0x206500['offsetParent'];if(_0x117c87)return!0x0;const _0x255d87=_0x206500['getClientRects']()['item'](0x0);return!!_0x255d87;}(_0x10f496));return 0x0===_0x75d601['length']?null:new _0x4d09a0(_0x75d601[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x9ec5b0){this['view']['isActive']=_0x9ec5b0,this['view']['mainView']['isActive']=_0x9ec5b0;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x36b8af){if(!(null===_0x36b8af||_0x36b8af instanceof _0x4d09a0||Array['isArray'](_0x36b8af)&&_0x36b8af['every'](_0x498dc9=>fi(_0x498dc9))))throw new _0x3e31b7('annotation-invalid-target',null,{'target':_0x36b8af});}['_getNormalizedTarget'](){const _0x14e38b='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x14e38b)?[_0x14e38b]:_0x14e38b;}}function fi(_0x32a96d){return null!==_0x32a96d&&'object'==typeof _0x32a96d&&'nodeType'in _0x32a96d&&0x1===_0x32a96d['nodeType'];}class S extends _0x1b1bd5{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x23966a=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0xeb7998(),this['_focusTracker']['on']('change:isFocused',(_0x141804,_0x487655,_0x2fa4eb)=>{_0x2fa4eb||this['fire']('blur');});for(const _0x585133 of _0x23966a)this['add'](_0x585133);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x162337){if(this['has'](_0x162337))throw new _0x3e31b7('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x162337['innerView'],_0x162337),this['_viewToAnnotation']['set'](_0x162337['view'],_0x162337);for(const _0xa5fca5 of _0x162337['focusableElements'])this['_focusTracker']['add'](_0xa5fca5);this['listenTo'](_0x162337['focusableElements'],'add',(_0x96e666,_0x457860)=>{this['_focusTracker']['add'](_0x457860);}),this['listenTo'](_0x162337['focusableElements'],'remove',(_0x450981,_0x1570a6)=>{this['_focusTracker']['remove'](_0x1570a6);}),this['listenTo'](_0x162337['view']['focusTracker'],'change:isFocused',(_0x159de5,_0x27719f,_0x1662c5)=>{_0x1662c5&&this['fire']('focus',_0x162337);}),_0x162337['updateTargetRect']();const _0x1c3ad0=this['_getOrderInContent'](_0x162337['view']['targetRect']);return super['add'](_0x162337,_0x1c3ad0);}['remove'](_0x279690){if(!this['has'](_0x279690))throw new _0x3e31b7('annotationcollection-not-existing-item',null);this['stopListening'](_0x279690['view']['focusTracker']),this['stopListening'](_0x279690['focusableElements']);for(const _0x4353bb of _0x279690['focusableElements'])this['_focusTracker']['remove'](_0x4353bb);return this['_viewToAnnotation']['delete'](_0x279690['view']),this['_innerViewToAnnotation']['delete'](_0x279690['innerView']),super['remove'](_0x279690);}['getByInnerView'](_0x4b1965){return this['_innerViewToAnnotation']['get'](_0x4b1965);}['getByView'](_0x4d423c){return this['_viewToAnnotation']['get'](_0x4d423c);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1718f7 of this)_0x1718f7['updateTargetRect']();this['_sort']();}['_sort'](){const _0xf5a083=Array['from'](this)['sort']((_0xfc7cc4,_0x39e650)=>w(_0xfc7cc4['view']['targetRect'],_0x39e650['view']['targetRect']));for(let _0x240438=_0xf5a083['length']-0x1;_0x240438>0x0;_0x240438--){const _0x17340c=_0xf5a083[_0x240438];_0x240438!==this['getIndex'](_0x17340c)&&(this['remove'](_0x17340c),this['add'](_0x17340c));}}['_getOrderInContent'](_0x20dbe2){let _0x29d02a=0x0;if(!_0x20dbe2)return this['length'];for(const _0x300252 of this){const _0x33e464=_0x300252['view']['targetRect'];if(_0x33e464){if(w(_0x20dbe2,_0x33e464)<0x0)return _0x29d02a;_0x29d02a++;}}return _0x29d02a;}}function v({source:_0x40126b,target:_0x2803b0,filter:_0x2c53e6}){for(const _0x3dabf9 of _0x40126b)_0x2c53e6(_0x3dabf9)&&_0x2803b0['add'](_0x3dabf9);_0x2803b0['listenTo'](_0x40126b,'add',(_0x51d31a,_0x366ec8)=>{_0x2c53e6(_0x366ec8)&&_0x2803b0['add'](_0x366ec8);}),_0x2803b0['listenTo'](_0x40126b,'remove',(_0x1f2f4f,_0x7cc647)=>{_0x2803b0['has'](_0x7cc647)&&_0x2803b0['remove'](_0x7cc647);});}function w(_0x32452c,_0x4f4dd7){if(null===_0x32452c&&null===_0x4f4dd7)return 0x0;if(null===_0x32452c)return-0x1;if(null===_0x4f4dd7)return 0x1;const _0x43c140=_0x32452c['top']-_0x4f4dd7['top'];return 0x0==_0x43c140?_0x32452c['left']-_0x4f4dd7['left']:_0x43c140;}class y extends _0x5769e4{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x76a85d){if(super(_0x76a85d),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x76a85d instanceof _0x3b8c1f){const _0x5e0cac=_0x76a85d['locale'];_0x76a85d['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x5e0cac,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3300e5){this['collection']['add'](_0x3300e5);}['remove'](_0x5a4c89){this['collection']['remove'](_0x5a4c89),_0x5a4c89['destroy']();}['refreshVisibility'](){for(const _0x4d81d5 of this['collection'])_0x4d81d5['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x27b457){return this['collection']['getByInnerView'](_0x27b457);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x1d0b3f of this['collection'])_0x1d0b3f['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x5b9ee1){this['fire']('_activateAnnotation',_0x5b9ee1);}['createAnnotation'](_0xbe7405){return new T(_0xbe7405);}['createAnnotationView'](_0x1444da,_0x38a2cc){return new E(_0x1444da,_0x38a2cc);}['_addActiveAnnotation'](_0x47401a){const _0xf527cd=new Set(this['activeAnnotations']);_0xf527cd['add'](_0x47401a),this['activeAnnotations']=_0xf527cd;}['_removeActiveAnnotation'](_0xfc47c6){const _0x5198e5=new Set(this['activeAnnotations']);_0x5198e5['delete'](_0xfc47c6),this['activeAnnotations']=_0x5198e5;}['_bindAnnotationsToVisibleAnnotations'](){const _0x5af278=this['collection'],_0xb392a7=this['_visibleAnnotations'];function _0x38dd48(_0x3e1288){const _0xff385a=_0x3e1288['source'];_0xff385a['isVisible']&&!_0xb392a7['has'](_0xff385a)?_0xb392a7['add'](_0xff385a):!_0xff385a['isVisible']&&_0xb392a7['has'](_0xff385a)&&_0xb392a7['remove'](_0xff385a),_0xff385a['view']['focusTracker']['remove'](_0xff385a['view']['element']),_0xff385a['view']['focusTracker']['add'](_0xff385a['view']['element']);}this['listenTo'](_0x5af278,'add',(_0x4441d8,_0x763bf8)=>{_0x763bf8['isVisible']&&_0xb392a7['add'](_0x763bf8),this['listenTo'](_0x763bf8,'change:isVisible',_0x38dd48);}),this['listenTo'](_0x5af278,'remove',(_0x3ef44f,_0x3db0dd)=>{_0xb392a7['has'](_0x3db0dd)&&_0xb392a7['remove'](_0x3db0dd),this['stopListening'](_0x3db0dd,'change:isVisible',_0x38dd48);});}['_setupEnterAnnotationKeystroke'](){const _0x17f737=_0x1641f6=>{_0x1641f6['on']('ready',()=>{_0x1641f6['keystrokes']['set'](_0x48ecb2,(_0x1a8ecc,_0x5e2710)=>{const _0x2f9784=_0xa7a780(this['activeAnnotations']['values']());_0x2f9784&&(_0x2f9784['view']['focus'](),_0x5e2710());});});};this['context']instanceof _0x3b8c1f?_0x17f737(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x7a5222,_0x1dcdc5)=>{_0x17f737(_0x1dcdc5);});}['_setupEscapeAnnotationHandling'](){const _0x35585b=_0x4a4d8a=>{const _0x307c93=_0x4a4d8a['source'],_0x5875f5=[];let _0x3431f2;if(Array['isArray'](_0x307c93['target'])){_0x3431f2=_0x307c93['target'][0x0],this['context']instanceof _0x3b8c1f?_0x5875f5['push'](this['context']):this['context']['editors']&&_0x5875f5['push'](...this['context']['editors']);for(const _0x263375 of _0x5875f5)for(const _0x58d79a of _0x263375['editing']['view']['domRoots']['values']())if(_0x58d79a['contains'](_0x3431f2))return void _0x263375['editing']['view']['focus']();_0x3431f2['focus']();}};this['listenTo'](this['collection'],'add',(_0x59b940,_0x40786a)=>{this['listenTo'](_0x40786a,'escape',_0x35585b,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x1e66c0,_0x5c7fa4)=>{this['stopListening'](_0x5c7fa4,'escape',_0x35585b);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x5769e4{['_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(_0x2354cf){super(_0x2354cf),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x1142cf=this['context']['config'];_0x1142cf['define']('comments.maxCommentsWhenCollapsed',0x2),_0x1142cf['define']('comments.maxThreadTotalWeight',0x1f4),_0x1142cf['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x1142cf['define']('comments.CommentThreadView',gt),_0x1142cf['define']('comments.CommentView',Tt),_0x1142cf['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3be396=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x1cc69f,_0x124daa)=>this['_addCommentThread'](_0x124daa)),this['on']('submitCommentThread',(_0x2bda4b,_0x1106a9)=>this['_submitCommentThread'](_0x1106a9)),this['on']('resolveCommentThread',(_0xa9d0d,_0x12505b)=>this['_resolveCommentThread'](_0x12505b)),this['on']('resolveCommentThread',(_0x4ceb2b,_0xf28e14)=>this['_updateActiveAnnotation'](_0xf28e14),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x5ac771,_0x10c926)=>this['_reopenCommentThread'](_0x10c926)),this['on']('reopenCommentThread',(_0x3c4fc2,_0x23558b)=>this['_updateActiveAnnotation'](_0x23558b),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x47b7a1,_0x171d9c)=>this['_removeCommentThread'](_0x171d9c)),this['on']('updateCommentThread',(_0x1379ff,_0x1c3fef)=>this['_updateCommentThread'](_0x1c3fef)),this['on']('updateCommentThread',(_0x508023,_0x17484e)=>this['_updateActiveAnnotation'](_0x17484e),{'priority':'lowest'}),this['on']('addComment',(_0x32aefe,_0x2152cd)=>this['_addComment'](_0x2152cd)),this['on']('updateComment',(_0x4bc1da,_0x278b7e)=>this['_updateComment'](_0x278b7e)),this['on']('removeComment',(_0x1f4c57,_0x9827ea)=>this['_removeComment'](_0x9827ea)),this['on']('addComment',(_0x5bf288,{threadId:_0x25cd0f,isFromAdapter:_0xae1e83})=>{if(_0xae1e83)return;const _0x53218f=this['getCommentThread'](_0x25cd0f),_0x11f776=_0x53218f&&this['_threadToController']['get'](_0x53218f);_0x11f776&&_0x11f776['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3be396,'change:activeAnnotations',(_0x4529f8,_0x5b3b8d,_0x167a3f)=>{const _0xc46b81=Array['from'](_0x167a3f)['map'](_0x208f7b=>this['_viewToController']['get'](_0x208f7b['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xc46b81?_0xc46b81['model']:null;});}set['adapter'](_0x510e5c){if(this['_adapter'])throw new _0x3e31b7('commentsrepository-adapter-already-set');this['_adapter']=_0x510e5c;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x51060f=_t,threadId:_0x26c744=_0x4e4e67(),comments:_0x3c666b=[],unlinkedAt:_0x56bec1=null,resolvedAt:_0x59ae82=null,resolvedBy:_0x43dd9d=null,target:_0x4e7176=null,context:_0x1eb3b1=null,attributes:_0x3ef044={},isResolvable:_0x1f5ca4=!0x0,isSubmitted:_0x3ee63d=!0x1,isFromAdapter:_0x1807dc=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x51060f),{'channelId':_0x51060f,'threadId':_0x26c744,'comments':_0x3c666b,'unlinkedAt':_0x56bec1,'resolvedAt':_0x59ae82,'resolvedBy':_0x43dd9d,'target':_0x4e7176,'context':_0x1eb3b1,'attributes':_0x3ef044,'isFromAdapter':_0x1807dc,'isResolvable':_0x1f5ca4,'isSubmitted':_0x3ee63d}),this['getCommentThread'](_0x26c744);}['openNewCommentThread']({channelId:_0x3aadd6=_t,threadId:_0x3c5605=_0x4e4e67(),target:_0x527afc,context:_0x4ae6d0=null,isResolvable:_0x2fcd94=!0x0}){if(this['_readOnlyChannels']['has'](_0x3aadd6)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x527afc)throw new _0x3e31b7('commentsrepository-missing-target');const _0x441eed=this['addCommentThread']({'channelId':_0x3aadd6,'threadId':_0x3c5605,'target':_0x527afc,'context':_0x4ae6d0,'isResolvable':_0x2fcd94});if(!_0x441eed)return null;const _0x1ebef8=this['_threadToController']['get'](_0x441eed),_0x2cfa85=_0x1ebef8['view']['commentThreadInputView']['commentInputView'],_0xd0fe22=this['context']['plugins']['get'](y),_0x1de9a6=_0xd0fe22['getByInnerView'](_0x1ebef8['view']);return _0xd0fe22['activate'](_0x1de9a6),_0x2cfa85['once']('editorReady',()=>_0x2cfa85['focus']()),_0x441eed;}['hasCommentThread'](_0x241eb9){if('string'!=typeof _0x241eb9)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x241eb9);}['updateCommentThread']({channelId:_0x3bcda1=_t,threadId:_0x575dab,context:_0x31fac9,unlinkedAt:_0x412e88,attributes:_0x51a7b6,isFromAdapter:_0x3c617d=!0x1}){return this['fire'](Nt('updateCommentThread',_0x3bcda1),{'channelId':_0x3bcda1,'threadId':_0x575dab,'context':_0x31fac9,'unlinkedAt':_0x412e88,'attributes':_0x51a7b6,'isFromAdapter':_0x3c617d}),this['getCommentThread'](_0x575dab);}['getCommentThread'](_0x53bef8){if('string'!=typeof _0x53bef8)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x53bef8);}['fetchCommentThread']({channelId:_0x23e2e0,threadId:_0x4d7036}={}){const _0x323589=this['getCommentThread'](_0x4d7036);if(_0x323589)return Promise['resolve'](_0x323589);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3e31b7('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x23e2e0,'threadId':_0x4d7036})['then'](_0x206fa0=>this['hasCommentThread'](_0x4d7036)?this['getCommentThread'](_0x4d7036):_0x206fa0?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x23e2e0},_0x206fa0)):void 0x0)['catch'](_0x37d3e9=>{throw console['error'](_0x37d3e9),new _0x3e31b7('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x9951ac,skipNotAttached:_0x12d15f=!0x1,skipEmpty:_0x210baa=!0x1,toJSON:_0x292305=!0x1}={}){const _0x3212ed=[];for(const _0x408f94 of this['_threads']['values']())_0x9951ac&&_0x408f94['channelId']!==_0x9951ac||_0x12d15f&&!_0x408f94['isAttached']||_0x210baa&&0x0===_0x408f94['length']||_0x3212ed['push'](_0x408f94);return _0x292305?_0x3212ed['map'](_0x29fc4b=>_0x29fc4b['toJSON']()):_0x3212ed;}['getAnnotationForCommentThread'](_0x3e9518){const _0xcd40a4=this['_threadToController']['get'](_0x3e9518);if(!_0xcd40a4)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0xcd40a4['view'])||null;}['getCommentThreadForAnnotation'](_0x2c99ee){const _0x5dfbda=this['_viewToController']['get'](_0x2c99ee['innerView']);return _0x5dfbda?_0x5dfbda['model']:null;}['setActiveCommentThread'](_0x30a56a){const _0x1641aa=this['context']['plugins']['get'](y);if(!_0x30a56a)return void(this['activeCommentThread']&&_0x1641aa['deactivateAll']());const _0x254571=this['getCommentThread'](_0x30a56a);if(!_0x254571)throw new _0x3e31b7('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x30a56a});if(!this['_threadToController']['has'](_0x254571))throw new _0x3e31b7('commentsrepository-active-not-attached',null,{'threadId':_0x30a56a});const _0x153360=_0x1641aa['getByInnerView'](this['_threadToController']['get'](_0x254571)['view']);_0x1641aa['activate'](_0x153360);}['switchReadOnly'](_0x4f74e7,_0x48f74e){_0x4f74e7?this['_readOnlyChannels']['add'](_0x48f74e):this['_readOnlyChannels']['delete'](_0x48f74e),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x76db19){return this['_readOnlyChannels']['has'](_0x76db19)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x4c7249,_0x42b92c){return new vt(_0x4c7249,_0x42b92c);}['setPermissions'](_0x24a330,_0x1404f6=_t){this['_permissions']['set'](_0x1404f6,_0x24a330),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x109242=_t){return this['_permissions']['has'](_0x109242)?this['_permissions']['get'](_0x109242):bt;}['_addCommentThread']({channelId:_0x4d66dd,threadId:_0x548a81,comments:_0x424ca0,unlinkedAt:_0x57959b,resolvedAt:_0x46cd62,resolvedBy:_0x521c50,target:_0x241876,context:_0x58ae1,attributes:_0x2958cd,isFromAdapter:_0x20e506,isResolvable:_0x4a7ea5,isSubmitted:_0x427a60}){if('string'!=typeof _0x548a81)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x548a81});if(this['hasCommentThread'](_0x548a81))throw new _0x3e31b7('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x548a81});const _0xd077e1=new pi(this,{'channelId':_0x4d66dd,'id':_0x548a81,'context':_0x58ae1,'attributes':_0x2958cd,'unlinkedAt':_0x57959b,'resolvedAt':_0x46cd62,'resolvedBy':_0x521c50?this['context']['plugins']['get'](it)['getUser'](_0x521c50):null,'isResolvable':_0x4a7ea5,'isSubmitted':_0x427a60||_0x20e506});this['_threads']['set'](_0x548a81,_0xd077e1);for(const _0x44e7c2 of _0x424ca0)_0xd077e1['_add'](this['_createNewComment']({'threadId':_0x548a81,..._0x44e7c2}));return _0x241876&&_0xd077e1['attachTo'](_0x241876),_0x20e506||!_0xd077e1['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x4d66dd,'threadId':_0x548a81});}['_submitCommentThread']({channelId:_0x27bef3,threadId:_0x4cc189}){if(!this['hasCommentThread'](_0x4cc189))throw new _0x3e31b7('commentsrepository-missing-comment-thread',this);const _0x21a6e4=this['getCommentThread'](_0x4cc189);if(_0x21a6e4['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5c45f4,comments:_0x27c625,resolvedAt:_0xd00e7f,resolvedBy:_0x23de1c,context:_0x31c4ad,attributes:_0x17d356}=_0x21a6e4,_0x580537=this['context']['plugins']['get']('PendingActions'),_0x3abbea=_0x580537['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x27bef3,'threadId':_0x5c45f4,'comments':_0x27c625['map'](_0x7f4a7=>_0x7f4a7['toJSON']()),'resolvedAt':_0xd00e7f,'resolvedBy':_0x23de1c?_0x23de1c['id']:_0x23de1c,'context':_0x31c4ad,'attributes':_0x17d356})['then'](({comments:_0x1782e1})=>{_0x580537['remove'](_0x3abbea);for(const _0xb227c4 of _0x1782e1)this['_updateComment']({'channelId':_0x27bef3,'threadId':_0x4cc189,'commentId':_0xb227c4['commentId'],'createdAt':_0xb227c4['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x37fd90=>{throw console['error'](_0x37fd90),new _0x3e31b7('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x5acb9c,target:_0x459855}){const _0xcf9e20=this['getCommentThread'](_0x5acb9c);if(!_0xcf9e20)throw new _0x3e31b7('commentsrepository-attach-missing-comment-thread',this);const _0x296856=this['context']['plugins']['get']('PendingActions'),_0x33ef05=this['context']['plugins']['get'](y),_0x4a4147=this['_createCommentThreadView'](_0xcf9e20),_0x24dd93=new vt(_0xcf9e20,_0x4a4147);let _0x298683=null;_0x4a4147['on']('change:isDirty',(_0x50fef5,_0x3f5e55,_0x20d012)=>{_0x20d012?_0x298683=_0x296856['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x298683&&(_0x296856['remove'](_0x298683),_0x298683=null);}),this['_threadToController']['set'](_0xcf9e20,_0x24dd93),this['_viewToController']['set'](_0x4a4147,_0x24dd93);const _0x2d9d51=new E(this['context']['locale'],_0x4a4147);_0x2d9d51['bind']('length')['to'](_0x4a4147),_0x2d9d51['bind']('isDirty')['to'](_0x4a4147,'isDirty',_0x4a4147,'length',(_0x456a2c,_0x5a89f0)=>_0x456a2c||!_0x5a89f0),_0x2d9d51['bind']('isActive')['to'](_0x4a4147),_0x2d9d51['type']='comment';const _0x166d6c=new T({'view':_0x2d9d51,'target':_0x459855,'type':'comment','isVisible':!_0xcf9e20['archivedAt']&&!!('function'==typeof _0x459855?_0x459855():_0x459855)});return _0x4a4147['on']('escape',()=>{_0x166d6c['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4a4147,_0x166d6c),_0x33ef05['add'](_0x166d6c),_0x166d6c;}['_bindAnnotationToEditors'](_0xd2791c,_0xc4068a){this['listenTo'](_0xd2791c,'editorReady',(_0x5311c8,_0x5095ba)=>{const _0x4df4f3=_0x5095ba['ui']['view']['body']['bodyCollectionContainer'];_0xc4068a['focusableElements']['add'](_0x4df4f3),this['context']instanceof _0x3b8c1f&&this['context']['ui']['focusTracker']['add'](_0x4df4f3);},{'priority':'highest'}),this['listenTo'](_0xd2791c,'editorDestroyed',(_0x548650,_0x473119)=>{const _0x5d2957=_0x473119['ui']['view']['body']['bodyCollectionContainer'];_0xc4068a['focusableElements']['has'](_0x5d2957)&&_0xc4068a['focusableElements']['remove'](_0x5d2957),this['context']instanceof _0x3b8c1f&&this['context']['ui']['focusTracker']['remove'](_0x5d2957);});}['_unbindEditors'](_0x1ec96a){this['stopListening'](_0x1ec96a,'editorReady'),this['stopListening'](_0x1ec96a,'editorDestroyed');}['_createCommentThreadView'](_0x44ea23){const _0x35b24b=this['context']['plugins']['get'](it),{config:_0x22a77b,locale:_0x3df030}=this['context'],_0xaaa8a=pt(_0x22a77b['get']('locale'),_0x3df030);return new(0x0,(_0x22a77b['get']('comments'))['CommentThreadView'])(_0x3df030,_0x44ea23,_0x35b24b['me'],{'editorConfig':{..._0x22a77b['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x22a77b['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x22a77b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22a77b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22a77b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xaaa8a,'CommentView':_0x22a77b['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x5792c1,channelId:_0x1aec89,resolvedAt:_0x2773a1,resolvedBy:_0x3bfd07,isFromAdapter:_0x4d513b}){if(!this['hasCommentThread'](_0x5792c1))throw new _0x3e31b7('commentsrepository-missing-comment-thread',null,{'threadId':_0x5792c1});const _0x36605e=this['getCommentThread'](_0x5792c1);if(_0x36605e['isResolved'])throw new _0x3e31b7('commentsrepository-resolved-comment-thread',null,{'threadId':_0x5792c1});const _0x2857f8=this['context']['plugins']['get'](it);if(_0x36605e['resolvedBy']=_0x2857f8['getUser'](_0x3bfd07),_0x36605e['resolvedAt']=_0x2773a1,_0x4d513b||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5b6761=this['context']['plugins']['get']('PendingActions'),_0xa2f746=_0x5b6761['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x1aec89,'threadId':_0x5792c1})['then'](({resolvedAt:_0x23c646,resolvedBy:_0x500bc6})=>{_0x5b6761['remove'](_0xa2f746),_0x36605e['resolvedBy']['id']!==_0x500bc6&&(_0x36605e['resolvedBy']=_0x2857f8['getUser'](_0x500bc6)),_0x36605e['resolvedAt']=_0x23c646;})['catch'](_0x43aef6=>{throw console['error'](_0x43aef6),new _0x3e31b7('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x389691,channelId:_0x799669,isFromAdapter:_0x43f393}){if(!this['hasCommentThread'](_0x389691))throw new _0x3e31b7('commentsrepository-missing-comment-thread',null,{'threadId':_0x389691});const _0x4186b5=this['getCommentThread'](_0x389691);if(!_0x4186b5['isResolved'])throw new _0x3e31b7('commentsrepository-reopen-comment-thread',null,{'threadId':_0x389691});if(_0x4186b5['resolvedBy']=null,_0x4186b5['resolvedAt']=null,_0x43f393||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x1bf372=this['context']['plugins']['get']('PendingActions'),_0x455db1=_0x1bf372['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x799669,'threadId':_0x389691})['then'](()=>_0x1bf372['remove'](_0x455db1))['catch'](_0x105aa6=>{throw console['error'](_0x105aa6),new _0x3e31b7('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xf5b469,isFromAdapter:_0xdd0ccd}){const _0x38373c=this['getCommentThread'](_0xf5b469);if(!_0x38373c)throw new _0x3e31b7('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xf5b469),this['_threads']['delete'](_0xf5b469),!_0x38373c['isSubmitted']||_0xdd0ccd||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x3b67fe=this['context']['plugins']['get']('PendingActions'),{channelId:_0x469c24}=_0x38373c,_0x257d78=_0x3b67fe['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x469c24,'threadId':_0xf5b469})['then'](()=>_0x3b67fe['remove'](_0x257d78))['catch'](_0x2802c1=>{throw console['error'](_0x2802c1),new _0x3e31b7('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x585cf5,unlinkedAt:_0x1d325a,context:_0x34c25a,attributes:_0x9a3624,isFromAdapter:_0x7bd6d2}){if('string'!=typeof _0x585cf5)throw new _0x3e31b7('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x585cf5});if(!this['hasCommentThread'](_0x585cf5))throw new _0x3e31b7('commentsrepository-missing-comment-thread',null,{'threadId':_0x585cf5});const _0x5a78bf=this['getCommentThread'](_0x585cf5);let _0x370a76=!0x1;if(void 0x0!==_0x34c25a&&_0x5a78bf['context']!==_0x34c25a&&(_0x5a78bf['context']=_0x34c25a,_0x370a76=!0x0),void 0x0!==_0x1d325a&&_0x5a78bf['unlinkedAt']!==_0x1d325a&&(_0x5a78bf['unlinkedAt']=_0x1d325a,_0x370a76=!0x0),_0x9a3624&&!At(_0x9a3624,_0x5a78bf['attributes'])&&(_0x5a78bf['attributes']=_0x9a3624,_0x370a76=!0x0),!_0x370a76)return Promise['resolve']();if(!_0x5a78bf['isSubmitted']||_0x7bd6d2||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x560000=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1ed94e}=_0x5a78bf,_0x10b5df=_0x560000['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1ed94e,'threadId':_0x585cf5,'context':_0x34c25a,'unlinkedAt':_0x1d325a,'attributes':_0x9a3624})['then'](()=>_0x560000['remove'](_0x10b5df))['catch'](_0x304234=>{throw console['error'](_0x304234),new _0x3e31b7('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x42bba1){const _0x4b8a04=this['context']['plugins']['get'](y),_0x5b05b8=this['getCommentThread'](_0x42bba1);if(_0x5b05b8['_isAttached']=!0x1,this['_threadToController']['has'](_0x5b05b8)){const _0x2a81b2=this['_threadToController']['get'](_0x5b05b8),_0x52df6f=_0x2a81b2['view'],_0x12fe90=_0x4b8a04['getByInnerView'](_0x52df6f);this['_threadToController']['delete'](_0x5b05b8),this['_viewToController']['delete'](_0x52df6f),_0x12fe90&&_0x4b8a04['remove'](_0x12fe90),_0x2a81b2['destroy'](),_0x52df6f['destroy']()['then'](()=>{this['_unbindEditors'](_0x52df6f);});}}['_updateActiveAnnotation']({threadId:_0xccf0d1,resolvedAt:_0x466a81,unlinkedAt:_0x16590e}){const _0x2f9a48=!!_0x466a81,_0x543568=this['context']['plugins']['get'](y),_0x598812=this['getCommentThread'](_0xccf0d1);if(this['_threadToController']['has'](_0x598812)){const _0x33037b=this['_threadToController']['get'](_0x598812)['view'],_0x10a333=_0x543568['getByInnerView'](_0x33037b);_0x10a333&&(_0x2f9a48&&_0x543568['_removeActiveAnnotation'](_0x10a333),_0x16590e?_0x10a333['isVisible']=!0x1:_0x10a333['refreshVisibility']());}}['_getExternalAuthor'](_0x13e238){const _0xfcd950=this['context']['plugins']['get'](it),_0x29f056=It('external:'+_0x13e238),_0x36b927=_0xfcd950['getUser'](_0x29f056);return _0x36b927||_0xfcd950['addUser']({'id':_0x29f056,'name':_0x13e238});}['_createNewComment']({threadId:_0x4ea450,commentId:_0x22762b=_0x4e4e67(),content:_0x162085,authorId:_0x529610,createdAt:_0x17f695,attributes:_0x11f8b4}){if('string'!=typeof _0x22762b)throw new _0x3e31b7('commentsrepository-invalid-commentid');if('string'!=typeof _0x529610)throw new _0x3e31b7('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x162085||!_0x162085['trim']())throw new _0x3e31b7('commentsrepository-invalid-comment-content');const _0x197869=this['context']['plugins']['get'](it)['getUser'](_0x529610);if(!_0x197869)throw new _0x3e31b7('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x529610});let _0x2c690b=null,_0x39c294=_0x17f695;return _0x11f8b4?.['@external']&&(_0x2c690b=this['_getExternalAuthor'](_0x11f8b4['@external']['authorName']),_0x39c294=new Date(_0x11f8b4['@external']['createdAt'])),new wi(this,{'threadId':_0x4ea450,'id':_0x22762b,'author':_0x2c690b||_0x197869,'creator':_0x197869,'content':_0x162085,'createdAt':_0x17f695,'authoredAt':_0x39c294,'attributes':_0x11f8b4});}['_addComment'](_0x3d8c2f){let {threadId:_0x3a320d,content:_0xf6900c,attributes:_0x1eec8b,isFromAdapter:_0x26af6f}=_0x3d8c2f;const _0x1409cf=this['getCommentThread'](_0x3d8c2f['threadId']);if(!_0x1409cf)throw new _0x3e31b7('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x55759b=this['_createNewComment'](_0x3d8c2f),{id:_0x5cfe71}=_0x55759b;if(_0x1409cf['_add'](_0x55759b),_0x26af6f||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x1409cf['isSubmitted'])return Promise['resolve']();const _0x5aa655=this['context']['plugins']['get']('PendingActions'),{channelId:_0xbb3821}=_0x1409cf,_0x1a386b=_0x5aa655['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x1eec8b||(_0x1eec8b={}),this['adapter']['addComment']({'channelId':_0xbb3821,'threadId':_0x3a320d,'commentId':_0x5cfe71,'content':_0xf6900c,'attributes':_0x1eec8b})['then'](_0x1fbd27=>{_0x5aa655['remove'](_0x1a386b),_0x1fbd27&&this['_updateComment']({'channelId':_0xbb3821,'threadId':_0x3a320d,'commentId':_0x5cfe71,'createdAt':_0x1fbd27['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x4e5710=>{throw console['error'](_0x4e5710),new _0x3e31b7('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x55c46d,commentId:_0x28439d,content:_0x37002a,createdAt:_0x15bc97,attributes:_0x9fee72,isFromAdapter:_0x365dc5}){if(void 0x0!==_0x37002a&&('string'!=typeof _0x37002a||!_0x37002a['trim']()['length']))throw new _0x3e31b7('commentsrepository-update-comment-invalid-content');const _0x88ba9a=this['getCommentThread'](_0x55c46d),_0x1e4c4d=_0x88ba9a['getComment'](_0x28439d);if(!_0x1e4c4d)throw new _0x3e31b7('commentsrepository-update-missing-comment',this);let _0x3cbbc8=!0x1;if(_0x37002a&&_0x37002a!==_0x1e4c4d['content']&&(_0x1e4c4d['isEditable']||_0x365dc5)&&(_0x1e4c4d['content']=_0x37002a,_0x3cbbc8=!0x0),_0x15bc97&&_0x15bc97!==_0x1e4c4d['createdAt']&&(_0x1e4c4d['createdAt']=_0x15bc97,_0x1e4c4d['attributes']&&_0x1e4c4d['attributes']['@external']||(_0x1e4c4d['authoredAt']=_0x15bc97),_0x3cbbc8=!0x0),_0x9fee72&&!At(_0x9fee72,_0x1e4c4d['attributes'])&&(_0x1e4c4d['attributes']=_0x9fee72,_0x3cbbc8=!0x0),!_0x3cbbc8)return Promise['resolve']();if(_0x88ba9a['fire']('commentUpdated'),_0x365dc5||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x354bce=this['context']['plugins']['get']('PendingActions'),{channelId:_0x65740a}=this['getCommentThread'](_0x1e4c4d['threadId']),_0x167412=_0x354bce['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x65740a,'threadId':_0x55c46d,'commentId':_0x28439d,'content':_0x37002a,'attributes':_0x9fee72})['then'](()=>_0x354bce['remove'](_0x167412))['catch'](_0x3eee57=>{throw console['error'](_0x3eee57),new _0x3e31b7('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x5974be,commentId:_0x1878fd,isFromAdapter:_0x8857d2}){const _0x191102=this['getCommentThread'](_0x5974be),_0x4d6328=_0x191102['getComment'](_0x1878fd);if(!_0x4d6328)throw new _0x3e31b7('commentsrepository-remove-missing-comment',this);if(_0x191102['_remove'](_0x4d6328),_0x8857d2||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4a44f4=this['context']['plugins']['get']('PendingActions'),{channelId:_0x14b9a5}=_0x191102,_0x5b2914=_0x4a44f4['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x14b9a5,'threadId':_0x5974be,'commentId':_0x1878fd})['then'](()=>_0x4a44f4['remove'](_0x5b2914))['catch'](_0x59f0e5=>{throw console['error'](_0x59f0e5),new _0x3e31b7('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x240a0a(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x47e012,_0x224d3b){super();const _0x4c906c=_0x47e012['context']['plugins']['get'](it)['me'],_0x1240ac=_0x47e012['getCommentThread'](_0x224d3b['threadId']),_0x3eb5fc=0x0===_0x1240ac['comments']['length'],_0x3b1495=_0x4c906c===_0x224d3b['author'];this['id']=_0x224d3b['id'],this['threadId']=_0x224d3b['threadId'],this['author']=_0x224d3b['author'],this['creator']=_0x224d3b['creator'],this['isExternal']=Boolean(_0x224d3b['attributes']&&_0x224d3b['attributes']['@external']),this['set']('content',_0x224d3b['content']),this['createdAt']=_0x224d3b['createdAt']||new Date(),this['set']('authoredAt',_0x224d3b['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x1240ac,'resolvedAt'),this['set']('attributes',_0x224d3b['attributes']||{}),this['bind']('isEditable')['to'](_0x47e012,'_permissions',()=>{const _0x560eb3=_0x47e012['getPermissions'](_0x1240ac['channelId'])['write'],_0x5a30fa=_0x47e012['getPermissions'](_0x1240ac['channelId'])['modifyAll'];return _0x3b1495&&_0x560eb3||!_0x3b1495&&_0x5a30fa;}),this['bind']('isRemovable')['to'](_0x1240ac,'isRemovable',_0x47e012,'_permissions',_0x50df09=>{const _0x444609=_0x47e012['getPermissions'](_0x1240ac['channelId'])['write'],_0x49f483=_0x47e012['getPermissions'](_0x1240ac['channelId'])['modifyAll'];return _0x3b1495&&_0x444609||_0x50df09&&_0x3eb5fc||!_0x3b1495&&_0x49f483&&!_0x3eb5fc;}),this['bind']('isReadOnly')['to'](_0x1240ac,'isReadOnly'),this['_repository']=_0x47e012;}get['weight'](){return Math['max'](function(_0x2febb7){const _0x46e864=document['createElement']('div');return _0x46e864['innerHTML']=_0x2febb7,_0x46e864['textContent']['length'];}(this['content']),0xc8);}['update'](_0x13aef5){const {threadId:_0x44525c,id:_0x5cff3b}=this;if(!this['_repository']['hasCommentThread'](_0x44525c))throw new _0x3e31b7('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x341a62}=this['_repository']['getCommentThread'](_0x44525c);this['_repository']['fire'](Nt('updateComment',_0x341a62,_0x44525c),{'channelId':_0x341a62,'threadId':_0x44525c,'commentId':_0x5cff3b,..._0x13aef5});}['setAttribute'](_0x1eb50c,_0xc7a243){const _0x4399d8=wt(this['attributes']);yt(_0x4399d8,_0x1eb50c,_0xc7a243),this['update']({'attributes':_0x4399d8});}['removeAttribute'](_0x4d2bc2){const _0x3540ba=wt(this['attributes']);Ct(_0x3540ba,_0x4d2bc2),this['update']({'attributes':_0x3540ba});}['remove'](_0x9c9a4f={}){if(!_0x9c9a4f['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x14fcbd,id:_0x372d33}=this;if(!this['_repository']['hasCommentThread'](_0x14fcbd))throw new _0x3e31b7('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x45a072}=this['_repository']['getCommentThread'](_0x14fcbd);this['_repository']['fire'](Nt('removeComment',_0x45a072,_0x14fcbd),{'channelId':_0x45a072,'threadId':_0x14fcbd,'commentId':_0x372d33,..._0x9c9a4f});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x4a2dcf,..._0x2d638d){for(const _0x25f085 of _0x2d638d)void 0x0!==_0x25f085&&(_0x4a2dcf+=':'+String(_0x25f085));return _0x4a2dcf;}class ot extends _0x46685b{constructor(_0x3f795f){super(_0x3f795f),this['set']('hasContent',!0x1);}['refresh'](){const _0x317209=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x37f0ce of _0x317209['getRanges']())if(this['_hasContent'](_0x37f0ce))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x160bbc=_0x4e4e67(),ranges:_0x17f1c2,comment:_0x361198}={}){const _0x492bf0=this['editor']['model'],_0x6fdfc=_0x17f1c2??Array['from'](_0x492bf0['document']['selection']['getRanges']()),_0x134f49=[];for(const _0x1dab29 of _0x6fdfc)this['_hasContent'](_0x1dab29)&&_0x134f49['push'](this['_trimToContent'](_0x1dab29));if(!_0x134f49['length'])throw new _0x3e31b7('addcommentthreadcommand-incorrect-ranges',null);_0x361198&&this['_createCommentThread'](_0x160bbc,_0x361198),this['_createMarkersFromRanges'](_0x160bbc,_0x134f49,!!_0x361198);}['_createMarkersFromRanges'](_0x23d833,_0x53db4b,_0x489b4a){this['editor']['model']['change'](_0x3ff48c=>{for(const _0x8b82d4 of _0x53db4b){const _0x1a3008=_0x4e4e67()['substr'](0x1,0x5),_0x17163c='comment:'+_0x23d833+':'+_0x1a3008;_0x3ff48c['addMarker'](_0x17163c,{'range':_0x8b82d4,'usingOperation':_0x489b4a,'affectsData':_0x489b4a});}});}['_createCommentThread'](_0x12e286,_0x5c17c6){const _0x79c8dc=this['editor']['plugins']['get']('CommentsRepository'),_0x1e1a9a=this['editor']['config']['get']('collaboration.channelId'),_0x4b7cc0=this['editor']['plugins']['get']('Users')['me'];if(!_0x4b7cc0)throw new _0x3e31b7('addcommentthreadcommand-user-not-found',null);_0x79c8dc['addCommentThread']({'threadId':_0x12e286,'channelId':_0x1e1a9a,'comments':[{'authorId':_0x4b7cc0['id'],'content':_0x5c17c6,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x314c10){for(const _0x374606 of _0x314c10['getItems']())if(this['_itemIsContent'](_0x374606))return!0x0;return!0x1;}['_itemIsContent'](_0x446353){return _0x446353['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x446353)&&!_0x446353['is']('element','tableCell');}['_trimToContent'](_0x5037a2){const _0x41ded3=_0x3eab7a=>!this['_itemIsContent'](_0x3eab7a['item']),_0x513f83=_0x5037a2['start']['getLastMatchingPosition'](_0x41ded3),_0x432739=_0x5037a2['end']['getLastMatchingPosition'](_0x41ded3,{'direction':'backward'});return this['editor']['model']['createRange'](_0x513f83,_0x432739);}}class b extends _0x3d233f{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcfa39d){super(_0xcfa39d),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5497ce=this['editor'],_0x3dccff=_0x5497ce['model']['document']['selection'],_0x45e949=_0x1f36ab(()=>this['refreshSelectedViews'](),0xa);_0x3dccff['on']('change:range',(_0x1dc283,_0x23eec4)=>{_0x23eec4['directChange']&&(_0x45e949['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5497ce['editing']['view']['document'],'change:isFocused',(_0x5cd5d5,_0x446c0b,_0x276445)=>{_0x276445&&_0x45e949();}),this['listenTo'](_0x5497ce['ui']['focusTracker'],'change:isFocused',(_0x48a351,_0x1ce536,_0x5363ac)=>{_0x5363ac||this['fire']('blur',{'isAnnotationTracked':_0x2822ec=>this['_editorAnnotationsData']['has'](_0x2822ec['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x3c9f60){if(this['_editorAnnotations']['has'](_0x3c9f60['view']))return;this['_editorAnnotations']['add'](_0x3c9f60['view']),this['editor']['ui']['focusTracker']['add'](_0x3c9f60['view']['element']);const _0x48c9b0=this['editor']['plugins']['get'](y);this['listenTo'](_0x48c9b0['collection'],'remove',(_0x828e82,_0x55de5c)=>{this['editor']['ui']['focusTracker']['remove'](_0x55de5c['view']['element']),this['_editorAnnotations']['delete'](_0x55de5c['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x1ad011){if('function'!=typeof _0x1ad011)throw new _0x3e31b7('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x1ad011);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x327837,annotations:_0x114340}){const _0x4c023f=[],_0x1e2854=this['editor']['model']['document']['selection'],_0x21b000=Array['from'](_0x1e2854['getRanges']());for(const [_0x4fa381,_0x431f17]of this['_editorAnnotationsData']){const _0x276097=_0x4e6c4c(_0x431f17),_0x555fb8=_0x114340['getByInnerView'](_0x4fa381);_0x276097&&_0x555fb8&&_0x4c023f['push']({'annotation':_0x555fb8,'range':_0x276097});}function _0x4e6c4c(_0x1a7448){for(const _0x2cb533 of _0x1a7448)for(const _0x3a0bb2 of _0x21b000)if(_0x2cb533['containsRange'](_0x3a0bb2,!_0x1e2854['isCollapsed']))return _0x2cb533;return null;}return _0x4c023f['sort']((_0x318078,_0x23a14f)=>{const _0x5ac4e9=_0x318078['range'],_0x4a36b5=_0x23a14f['range'];if(!_0x5ac4e9['isEqual'](_0x4a36b5)){if(_0x5ac4e9['containsRange'](_0x4a36b5,!0x0))return 0x1;if(_0x4a36b5['containsRange'](_0x5ac4e9,!0x0))return-0x1;}return _0x318078['annotation']==_0x327837?-0x1:_0x23a14f['annotation']==_0x327837?0x1:0x0;})['map'](_0xb4054=>_0xb4054['annotation']);}get['_editorAnnotationsData'](){const _0xad9ed7=new Map();for(const _0x1c55b2 of Array['from'](this['_dataCollectors']))for(const [_0x37fff0,_0x33dab4]of _0x1c55b2())_0xad9ed7['set'](_0x37fff0,_0x33dab4);return _0xad9ed7;}}class st extends _0x3d233f{['afterInit'](){const _0x4d564d=this['editor'];if(!_0x4d564d['plugins']['has']('RestrictedEditingModeEditing'))return;_0x4d564d['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x3d233f{constructor(_0xe0c7fd){super(_0xe0c7fd),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x36d534=this['editor'],_0x5139d6=_0x36d534['commands']['get']('importWord'),_0xb9bacd=_0x36d534['plugins']['get'](it);_0x5139d6&&(_0x5139d6['on']('execute',(_0x1f0ac8,[,_0x3f3695])=>{_0x3f3695['collaboration_features']={'comments':!0x0,'user_id':_0xb9bacd['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x5139d6,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x220d15,_0x2aca9b){const {comment_threads:_0x4fa80a}=_0x2aca9b;_0x4fa80a&&_0x4fa80a['forEach'](({thread_id:_0x5e050a,comments:_0x4f9555,is_resolved:_0x3b7e42})=>{const _0xe30061=new Date(),_0x359d02=_0x4f9555['map'](({author:_0x4e4a97,content:_0x1ade19,created_at:_0x3b4fcb})=>({'content':_0x1ade19,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0xe30061,'attributes':{'@external':{'authorName':_0x4e4a97,'createdAt':_0x3b4fcb?new Date(_0x3b4fcb):new Date(),'source':'importWord'}}})),_0x4e11ab=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x4e11ab,'threadId':_0x5e050a,'comments':_0x359d02,'resolvedAt':_0x3b7e42?_0xe30061:null});});}}class at extends _0x3d233f{constructor(_0x3a3d6d){super(_0x3a3d6d),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x32fdf1=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x32fdf1,'contentInsertion',(_0x3e7eea,_0x545d4f)=>this['_removeMarkersWithoutThreads'](_0x545d4f['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x4438f6){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x4438f6;const _0x2a4e9d=this['editor']['plugins']['get']('CommentsRepository');for(const _0x2121a5 of _0x4438f6['keys']()){const [_0x3b54ab,_0x53271f]=_0x2121a5['split'](':');'comment'!=_0x3b54ab||_0x2a4e9d['hasCommentThread'](_0x53271f)||_0x4438f6['delete'](_0x2121a5);}return _0x4438f6;}['_registerMarkerInClipboardPipeline'](){const _0x4622f5=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xa11c07=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xa11c07&&_0x4622f5['_registerMarkerToCopy']('comment',_0xa11c07);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2f6875){switch(_0x2f6875){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x3cdba8){const _0xd7e833=_0x3cdba8['split'](':');return{'group':_0xd7e833[0x0],'id':_0xd7e833[0x1],'part':_0xd7e833[0x2]};}class ut extends _0x3d233f{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1ecc43,_0x95321b)=>{if(!_0x95321b['options']['showCommentHighlights'])return null;if(_0x95321b['options']['ignoreResolvedComments']){const {id:_0x442a26}=ft(_0x1ecc43['markerName']),_0x1dc838=this['editor']['plugins']['get'](o);if(_0x1dc838['getCommentThread'](_0x442a26)?.['isResolved']&&_0x1ecc43['item'])return _0x95321b['consumable']['consume'](_0x1ecc43['item'],'addMarker:'+_0x1ecc43['markerName']),_0x95321b['consumable']['consume'](_0x1ecc43['item'],'removeMarker:'+_0x1ecc43['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x31f11e=>{_0x31f11e['on']('addMarker:comment',(_0x49105c,_0x309667,_0x4e5473)=>{if(!_0x4e5473['options']['showCommentHighlights'])return;const _0x1dd680=_0x309667['item'];if(!_0x1dd680)return;const _0x54f973=_0x4e5473['mapper']['toViewElement'](_0x1dd680);this['editor']['model']['schema']['isObject'](_0x1dd680)&&_0x54f973&&!_0x54f973['getCustomProperty']('widget')&&_0x54f973['is']('containerElement')&&_0x156cb0(_0x54f973,_0x4e5473['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5991b5,{writer:_0x12ce05,options:_0xd98655})=>{if(!_0xd98655['showCommentHighlights'])return null;const _0xed4321=_0x12ce05['createContainerElement']('div'),_0x2c74cd=_0x12ce05['createEmptyElement']('hr');return _0x12ce05['addClass']('ck-horizontal-line',_0xed4321),_0x12ce05['insert'](_0x12ce05['createPositionAt'](_0xed4321,0x0),_0x2c74cd),_0xed4321;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x19ea7c,{writer:_0x131d84,options:_0x45946b})=>{if(!_0x45946b['showCommentHighlights'])return null;const _0xd4bcf8=_0x131d84['createContainerElement']('span'),_0x2ff293=_0x131d84['createEmptyElement']('img');return _0x131d84['addClass']('image-inline',_0xd4bcf8),_0x131d84['insert'](_0x131d84['createPositionAt'](_0xd4bcf8,0x0),_0x2ff293),_0xd4bcf8;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5fb38e,{writer:_0x44423e,options:_0xf6dd26})=>{if(_0xf6dd26['showCommentHighlights'])return _0x44423e['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2a7918,_0x53f93f,_0x420ae2)=>{_0x420ae2['options']['showCommentHighlights']&&_0x2a7918['stop']();},{'priority':'high'});}}class r extends _0x3d233f{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(_0x9bffc2){super(_0x9bffc2),this['set']('isThreadsLoadingPaused',!0x0),_0x9bffc2['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0xf14b7,_0x28e8bb,_0x4d67d4,_0x33bad7)=>{const _0x1924ec=_0x9bffc2['plugins']['get'](o),_0x4ac3fd=_0x4d67d4?ft(_0x4d67d4)['id']:null;_0x9bffc2['model']['change'](()=>{if(_0x4ac3fd){const _0x3e37f2=this['getAllMarkersForId'](_0x4ac3fd);for(const _0x527729 of _0x3e37f2)_0x9bffc2['editing']['reconvertMarker'](_0x527729);}if(_0x33bad7){const {id:_0x2704fc}=ft(_0x33bad7),_0x1e4dbe=_0x1924ec['getCommentThread'](_0x2704fc);if(_0x1e4dbe&&_0x1e4dbe['unlinkedAt'])return;if(_0x1e4dbe&&!_0x1e4dbe['isAttached'])return;const _0x259505=this['getAllMarkersForId'](_0x2704fc);for(const _0x4a6ea7 of _0x259505)_0x9bffc2['editing']['reconvertMarker'](_0x4a6ea7);}}),_0x4ac3fd&&this['scrollToThreadMarker'](_0x4ac3fd);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x57fb45=this['editor'],_0x3cfc16=_0x57fb45['plugins']['get'](o),_0x43083a=_0x57fb45['config']['get']('collaboration.channelId'),_0x5fc88d=_0x3cfc16['getCommentThreads']()['filter'](_0x3dab0b=>_0x3dab0b['channelId']!==_0x43083a);_0x57fb45['commands']['add']('addCommentThread',new ot(_0x57fb45)),this['listenTo'](_0x57fb45,'change:isReadOnly',(_0x52e738,_0x43a27c,_0x547404)=>{_0x3cfc16['switchReadOnly'](_0x547404,_0x57fb45['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x3cfc16,dt('addCommentThread',_0x43083a),(_0xcc7e89,{threadId:_0x51aae5})=>{const _0x594130=this['editor']['plugins']['get'](o)['getCommentThread'](_0x51aae5);_0x594130?.['unlinkedAt']&&this['_attachArchivedThread'](_0x51aae5);}),this['listenTo'](_0x3cfc16,dt('removeCommentThread',_0x43083a),(_0xbdc149,{threadId:_0x72c14f})=>{_0x57fb45['model']['enqueueChange']({'isUndoable':!0x1},_0x373929=>{const _0x4995e5=this['getAllMarkersForId'](_0x72c14f);for(const _0x8b456 of _0x4995e5)_0x373929['removeMarker'](_0x8b456);});}),this['listenTo'](_0x3cfc16,dt('resolveCommentThread',_0x43083a),(_0x423038,{threadId:_0x5eed48})=>{(this['_reconvertMarkers'](_0x5eed48),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x5eed48)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x3cfc16,dt('reopenCommentThread',_0x43083a),(_0xd164e9,{threadId:_0x403198})=>{this['_reconvertMarkers'](_0x403198);},{'priority':'low'}),this['listenTo'](_0x3cfc16,dt('addComment',_0x43083a),(_0x2a2a21,{threadId:_0x3d5c35,isFromAdapter:_0x48b9cf})=>{const _0x186269=this['getAllMarkersForId'](_0x3d5c35);if(_0x48b9cf||0x0==_0x186269['length']||!_0x3cfc16['hasCommentThread'](_0x3d5c35))return;0x1===_0x3cfc16['getCommentThread'](_0x3d5c35)['length']&&_0x57fb45['model']['enqueueChange']({'isUndoable':!0x1},_0x2add84=>{for(const _0x2b1a86 of _0x186269)_0x2add84['updateMarker'](_0x2b1a86,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x5fc88d);}['afterInit'](){!async function(_0x121f7c){const _0x1bbbf3=_0x30451c([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]),_0x3ea085=0x73460ab3,_0x20bd55=0x734179f3^_0x3ea085,_0x2ee5c9=window[_0x30451c([0x44,0x61,0x74,0x65])][_0x30451c([0x6e,0x6f,0x77])](),_0x488a4a=_0x121f7c[_0x30451c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x366bc5=new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20c988=>{_0x488a4a[_0x30451c([0x6f,0x6e,0x63,0x65])](_0x30451c([0x72,0x65,0x61,0x64,0x79]),_0x20c988);}),_0x4e105c={[_0x30451c([0x6b,0x74,0x79])]:_0x30451c([0x45,0x43]),[_0x30451c([0x75,0x73,0x65])]:_0x30451c([0x73,0x69,0x67]),[_0x30451c([0x63,0x72,0x76])]:_0x30451c([0x50,0x2d,0x32,0x35,0x36]),[_0x30451c([0x78])]:_0x30451c([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]),[_0x30451c([0x79])]:_0x30451c([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]),[_0x30451c([0x61,0x6c,0x67])]:_0x30451c([0x45,0x53,0x32,0x35,0x36])},_0x1c7cb2=_0x488a4a[_0x30451c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30451c([0x67,0x65,0x74])](_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cec0f(){let _0x349c35,_0x1c32bf=null,_0xc6d45b=null;try{if(_0x1c7cb2==_0x30451c([0x47,0x50,0x4c]))return _0x30451c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x349c35=_0x5f1cad(),!_0x349c35)return _0x30451c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x349c35[_0x30451c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc6d45b=_0xe25b47(_0x349c35[_0x30451c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x349c35[_0x30451c([0x6a,0x74,0x69])])),await _0x502921()?_0x104b20()?_0x116142()?_0x30451c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2276a2()?(_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30451c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c32bf=_0x3bc421(_0x30451c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30451c([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c32bf=_0x3bc421(_0x30451c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3aa10b()):_0x30451c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30451c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30451c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30451c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x116142(){const _0x22ed09=[_0x30451c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30451c([0x74,0x72,0x69,0x61,0x6c])][_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2ee5c9/0x3e8:0xe10*_0x20bd55;return _0x349c35[_0x30451c([0x65,0x78,0x70])]<_0x22ed09;}function _0x104b20(){const _0x4022ce=_0x349c35[_0x30451c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4022ce)return!0x1;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x2a])))return!0x0;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x43,0x4d,0x54])))return!0x0;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x25f50c())return!0x0;if(_0x4022ce[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x52,0x43,0x4d,0x54]))){if(_0x2c24e6())return!0x0;if(_0xbca993()||_0x2e885f())return!0x0;}return!0x1;}function _0x2276a2(){const _0x2cf091=_0x349c35[_0x30451c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cf091||0x0==_0x2cf091[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d37f6}=new URL(window[_0x30451c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2cf091[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d37f6))return!0x0;const _0x3473b4=_0x2d37f6[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e]));return _0x2cf091[_0x30451c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e9ddc=>_0x1e9ddc[_0x30451c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30451c([0x2a])))[_0x30451c([0x6d,0x61,0x70])](_0x335a30=>_0x335a30[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e])))[_0x30451c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4dc60d=>_0x4dc60d[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3473b4[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30451c([0x6d,0x61,0x70])](_0x3d789d=>Array(_0x3473b4[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d789d[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30451c([0x66,0x69,0x6c,0x6c])](_0x3d789d[0x0]===_0x30451c([0x2a])?_0x30451c([0x2a]):'')[_0x30451c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d789d))[_0x30451c([0x73,0x6f,0x6d,0x65])](_0xda64f1=>_0x3473b4[_0x30451c([0x65,0x76,0x65,0x72,0x79])]((_0x342bcf,_0x2fb188)=>_0xda64f1[_0x2fb188]===_0x342bcf||_0xda64f1[_0x2fb188]===_0x30451c([0x2a])));}function _0x3aa10b(){return _0x1c32bf&&_0xc6d45b?new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa5fe1c,_0x1a9719)=>{_0x1c32bf[_0x30451c([0x74,0x68,0x65,0x6e])](_0xa5fe1c,_0x1a9719),_0xc6d45b[_0x30451c([0x74,0x68,0x65,0x6e])](_0x4dd4de=>{_0x4dd4de!=_0x30451c([0x56,0x61,0x6c,0x69,0x64])&&_0xa5fe1c(_0x4dd4de);},_0x1a9719);}):_0x1c32bf||_0xc6d45b||_0x30451c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe25b47(_0x492d89,_0x17dc31){return new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393cec=>{if(_0x5cbab3())return _0x393cec(_0x30451c([0x56,0x61,0x6c,0x69,0x64]));_0x3322d9(),_0x488a4a[_0x30451c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30451c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x234550=!0x1;const _0x1715c2=_0x4e4e67();function _0x200646(_0x559eca){return!!_0x559eca&&(typeof _0x559eca===_0x30451c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x559eca===_0x30451c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x559eca[_0x30451c([0x74,0x68,0x65,0x6e])]===_0x30451c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x559eca[_0x30451c([0x63,0x61,0x74,0x63,0x68])]===_0x30451c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x280e25(_0x29d9bd){_0x4c682f(_0x29d9bd)[_0x30451c([0x74,0x68,0x65,0x6e])](_0x295d42=>{if(!_0x295d42||_0x295d42[_0x30451c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30451c([0x6f,0x6b]))return _0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x439da1(_0x42b473(_0x1715c2+_0x17dc31))!=_0x295d42[_0x30451c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30451c([0x56,0x61,0x6c,0x69,0x64]);})[_0x30451c([0x74,0x68,0x65,0x6e])](_0x368952=>(_0x27d0a5(),_0x368952),()=>{const _0x38e213=_0x2c99d1();return null==_0x38e213?(_0x27d0a5(),_0x30451c([0x56,0x61,0x6c,0x69,0x64])):_0x30451c(_0x2ee5c9-_0x38e213>(0x574a8eb3^_0x3ea085)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30451c([0x74,0x68,0x65,0x6e])](_0x393cec)[_0x30451c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x393cec(_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x154f1a=0x7370e433^_0x3ea085;function _0x27d0a5(){const _0x2b80bf=_0x30451c([0x6c,0x6c,0x63,0x74,0x2d])+_0x439da1(_0x42b473(_0x492d89)),_0x279956=_0x21c325(_0x439da1(window[_0x30451c([0x4d,0x61,0x74,0x68])][_0x30451c([0x63,0x65,0x69,0x6c])](_0x2ee5c9/_0x154f1a)));window[_0x30451c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30451c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b80bf,_0x279956);}function _0x2c99d1(){const _0x5200ad=_0x30451c([0x6c,0x6c,0x63,0x74,0x2d])+_0x439da1(_0x42b473(_0x492d89)),_0x4efc87=window[_0x30451c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30451c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5200ad);return _0x4efc87?window[_0x30451c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c325(_0x4efc87),0x10)*_0x154f1a:null;}function _0x4c682f(_0x2d6ef3){return new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4dae6a,_0x538280)=>{_0x2d6ef3[_0x30451c([0x74,0x68,0x65,0x6e])](_0x4dae6a,_0x538280),window[_0x30451c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x538280,0x7347de73^_0x3ea085);});}}_0x488a4a[_0x30451c([0x6f,0x6e])](_0x30451c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59666e,_0x547d89)=>{if(_0x547d89[0x0]!=_0x492d89)return _0x393cec(_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x547d89[0x1]={..._0x547d89[0x1],[_0x30451c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1715c2};},{[_0x30451c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30451c([0x68,0x69,0x67,0x68])}),_0x488a4a[_0x30451c([0x6f,0x6e])](_0x30451c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10e04e=>{_0x200646(_0x10e04e[_0x30451c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x234550=!0x0,_0x280e25(_0x10e04e[_0x30451c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30451c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30451c([0x6c,0x6f,0x77])}),_0x366bc5[_0x30451c([0x74,0x68,0x65,0x6e])](()=>{_0x234550||_0x393cec(_0x30451c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cbab3(){return _0x488a4a[_0x30451c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30451c([0x76,0x69,0x65,0x77])][_0x30451c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30451c([0x61,0x75,0x74,0x6f]);}function _0x3322d9(){_0x488a4a[_0x30451c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30451c([0x76,0x69,0x65,0x77])][_0x30451c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30451c([0x61,0x75,0x74,0x6f]);}}function _0x3bc421(_0x31960d){const _0x5031d9=[new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c10da=>setTimeout(_0x5c10da,0x734f347f^_0x3ea085)),_0x366bc5[_0x30451c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b5ee=>{let _0x3888d8=0x0;_0x488a4a[_0x30451c([0x6d,0x6f,0x64,0x65,0x6c])][_0x30451c([0x6f,0x6e])](_0x30451c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f0c92,_0x581f87)=>{_0x581f87[0x0][_0x30451c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3888d8++,_0x3888d8==(0x73460b4b^_0x3ea085)&&(_0x21b5ee(),_0x3f0c92[_0x30451c([0x6f,0x66,0x66])]());});}))];return window[_0x30451c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30451c([0x72,0x61,0x63,0x65])](_0x5031d9)[_0x30451c([0x74,0x68,0x65,0x6e])](()=>_0x31960d);}async function _0x4034c6(){await _0x366bc5,_0x488a4a[_0x30451c([0x6d,0x6f,0x64,0x65,0x6c])][_0x30451c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee88a,_0x488a4a[_0x30451c([0x6d,0x6f,0x64,0x65,0x6c])][_0x30451c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee88a,_0x488a4a[_0x30451c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30451c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25f50c(){return window[_0x30451c([0x67,0x6c,0x6f,0x62])]&&window[_0x30451c([0x67,0x6c,0x6f,0x62])][_0x30451c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2c24e6(){return _0x304f3e(_0x30451c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x876bad(_0x30451c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x30451c([0x73,0x74,0x61,0x74,0x65])]==_0x30451c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xbca993(){return _0x304f3e(_0x30451c([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 _0x2e885f(){return _0x304f3e(_0x30451c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x44257e(_0x2edb95){const _0x19002a=_0x143bf7();_0x488a4a[_0x19002a]=_0x30451c([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2edb95,_0x2edb95!=_0x30451c([0x56,0x61,0x6c,0x69,0x64])&&_0x4034c6();}function _0x143bf7(){const _0x8d40c5=window[_0x30451c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30451c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30451c([0x6e,0x6f,0x77])]())[_0x30451c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30451c([0x2e]),'');let _0x58d3cc=_0x30451c([0x4b]);for(let _0x256a73=0x0;_0x256a73<_0x8d40c5[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x256a73+=0x2){let _0x85ea3=window[_0x30451c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8d40c5[_0x30451c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x256a73,_0x256a73+0x2));_0x85ea3>=_0x1bbbf3[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x85ea3-=_0x1bbbf3[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58d3cc+=_0x1bbbf3[_0x85ea3];}return _0x58d3cc;}function _0x5f1cad(){const _0x5c8aa4=_0x1c7cb2[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e]));if(0x3!=_0x5c8aa4[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18614e(_0x5c8aa4[0x1]);function _0x18614e(_0x136062){const _0x2ab6be=_0x345d9f(_0x136062);return _0x2ab6be&&_0x2d5133()?_0x2ab6be:null;function _0x2d5133(){const _0x1fee80=_0x2ab6be[_0x30451c([0x6a,0x74,0x69])],_0x511ea9=window[_0x30451c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fee80[_0x30451c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fee80[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x460327={..._0x2ab6be,[_0x30451c([0x6a,0x74,0x69])]:_0x1fee80[_0x30451c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fee80[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x460327[_0x30451c([0x76,0x63])],_0x42b473(_0x460327)==_0x511ea9;}}}async function _0x502921(){let _0x5510d6=!0x0;try{const _0x3789db=_0x1c7cb2[_0x30451c([0x73,0x70,0x6c,0x69,0x74])](_0x30451c([0x2e])),[_0x345bd3,_0x14b74e,_0x2f4f1f]=_0x3789db;return _0xf55514(_0x345bd3),await _0x4bc19a(_0x345bd3,_0x14b74e,_0x2f4f1f),_0x5510d6;}catch{return!0x1;}function _0xf55514(_0x17fcaa){const _0x4ebb00=_0x345d9f(_0x17fcaa);_0x4ebb00&&_0x4ebb00[_0x30451c([0x61,0x6c,0x67])]==_0x30451c([0x45,0x53,0x32,0x35,0x36])||(_0x5510d6=!0x1);}async function _0x4bc19a(_0x397323,_0x55fa04,_0xd9a32a){const _0xe4c9af=window[_0x30451c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30451c([0x66,0x72,0x6f,0x6d])](_0x114eba(_0xd9a32a),_0x3cd9a6=>_0x3cd9a6[_0x30451c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe3350=new window[(_0x30451c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30451c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x397323+_0x30451c([0x2e])+_0x55fa04),_0x82149c=window[_0x30451c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30451c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x82149c)return;const _0x1855cd=await _0x82149c[_0x30451c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30451c([0x6a,0x77,0x6b]),_0x4e105c,{[_0x30451c([0x6e,0x61,0x6d,0x65])]:_0x30451c([0x45,0x43,0x44,0x53,0x41]),[_0x30451c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30451c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30451c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x82149c[_0x30451c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30451c([0x6e,0x61,0x6d,0x65])]:_0x30451c([0x45,0x43,0x44,0x53,0x41]),[_0x30451c([0x68,0x61,0x73,0x68])]:{[_0x30451c([0x6e,0x61,0x6d,0x65])]:_0x30451c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1855cd,_0xe4c9af,_0xe3350)||(_0x5510d6=!0x1);}}function _0x345d9f(_0x135885){return _0x135885[_0x30451c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30451c([0x65,0x79]))?JSON[_0x30451c([0x70,0x61,0x72,0x73,0x65])](_0x114eba(_0x135885)):null;}function _0x114eba(_0x15fee1){return window[_0x30451c([0x61,0x74,0x6f,0x62])](_0x15fee1[_0x30451c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30451c([0x2b]))[_0x30451c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30451c([0x2f])));}function _0x42b473(_0x32ad5a){let _0x6c7c6d=0x1505;function _0x26b82b(_0x3cfbd7){for(let _0x4771b6=0x0;_0x4771b6<_0x3cfbd7[_0x30451c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4771b6++){const _0x1e6e6d=_0x3cfbd7[_0x30451c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4771b6);_0x6c7c6d=(_0x6c7c6d<<0x5)+_0x6c7c6d+_0x1e6e6d,_0x6c7c6d&=_0x6c7c6d;}}function _0x2f1a2b(_0x5e806b){Array[_0x30451c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e806b)?_0x5e806b[_0x30451c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f1a2b):_0x5e806b&&typeof _0x5e806b==_0x30451c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30451c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e806b)[_0x30451c([0x73,0x6f,0x72,0x74])]()[_0x30451c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4347a2,_0x542df0])=>{_0x26b82b(_0x4347a2),_0x2f1a2b(_0x542df0);}):_0x26b82b(window[_0x30451c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e806b));}return _0x2f1a2b(_0x32ad5a),_0x6c7c6d>>>0x0;}function _0x439da1(_0x10fd6e){return _0x10fd6e[_0x30451c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30451c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30451c([0x30]));}function _0x21c325(_0x59230a){return _0x59230a[_0x30451c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30451c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30451c([0x6a,0x6f,0x69,0x6e])]('');}function _0x304f3e(_0x311f02){return _0x488a4a[_0x30451c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30451c([0x68,0x61,0x73])](_0x311f02);}function _0x876bad(_0x35fa96){return _0x488a4a[_0x30451c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x30451c([0x67,0x65,0x74])](_0x35fa96);}function _0x3ee88a(){}function _0x30451c(_0x305a2e){return _0x305a2e['map'](_0x48c81f=>String['fromCharCode'](_0x48c81f))['join']('');}_0x44257e(await _0x5cec0f());}(this);}['destroy'](){const _0x5c6c73=this['editor']['plugins']['get'](o),_0x485fb5=this['editor']['config']['get']('collaboration.channelId');for(const _0x2670ab of _0x5c6c73['getCommentThreads']({'channelId':_0x485fb5}))_0x5c6c73['_detachCommentThread'](_0x2670ab['id']),_0x5c6c73['_threads']['delete'](_0x2670ab['id']);super['destroy']();}['hasMarkerForId'](_0x288fd8){return this['getAllMarkersForId'](_0x288fd8)['length']>0x0;}['getAllMarkersForId'](_0x4e89e2){const _0x1dc02e=[];for(const _0x47a7f7 of this['editor']['model']['markers'])_0x47a7f7['name']['startsWith']('comment:'+_0x4e89e2)&&_0x1dc02e['push'](_0x47a7f7);return _0x1dc02e;}['scrollToThreadMarker'](_0x584fa1){setTimeout(()=>{const _0x5b2fa4=this['_getTargetForId'](_0x584fa1);if(!_0x5b2fa4)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x584fa1&&nt({'target':_0x5b2fa4[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x47cc52){this['editor']['model']['change'](()=>{for(const _0x3c8f62 of this['getAllMarkersForId'](_0x47cc52))this['editor']['editing']['reconvertMarker'](_0x3c8f62);});}['_attachArchivedThread'](_0x31588c){const _0x4d2035=this['editor']['plugins']['get'](o),_0x1df49d=this['editor']['plugins']['get'](b),_0x27a95f=_0x4d2035['getCommentThread'](_0x31588c);if(!_0x27a95f['isAttached']){const _0x38cbd2=_0x27a95f['attachTo'](()=>this['_getTargetForId'](_0x27a95f['id']));_0x1df49d['registerAnnotation'](_0x38cbd2),_0x27a95f['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x2082e7=this['editor'],_0x5b2cce=_0x2082e7['plugins']['get'](it);_0x2082e7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4d7a05,_0x3c23db)=>{const {id:_0x20f917}=ft(_0x4d7a05['markerName']),_0x1b9cba=_0x2082e7['plugins']['get'](o)['getCommentThread'](_0x20f917),_0x312d07=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x20f917;let _0x19cda8;if(_0x1b9cba&&_0x1b9cba['isResolved']&&!_0x312d07&&_0x4d7a05['item'])return _0x3c23db['consumable']['consume'](_0x4d7a05['item'],'addMarker:'+_0x4d7a05['markerName']),_0x3c23db['consumable']['consume'](_0x4d7a05['item'],'removeMarker:'+_0x4d7a05['markerName']),null;const _0x155fc1=['ck-comment-marker'];return _0x312d07&&_0x155fc1['push']('ck-comment-marker--active'),_0x19cda8=_0x1b9cba?.['length']?_0x1b9cba['comments']['first']['author']['id']:_0x5b2cce['me']['id'],{'classes':_0x155fc1,'attributes':{'data-comment':_0x20f917,'data-author-id':_0x19cda8}};}}),_0x2082e7['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1bf637,{options:_0x3473fa})=>{if(_0x3473fa['showCommentHighlights'])return null;const _0x19245f=_0x2082e7['plugins']['get'](o),_0x5a9d88=_0x2082e7['model']['markers']['get'](_0x1bf637),{id:_0x2c6dc3,part:_0xeb7e2f}=ft(_0x1bf637);return _0x5a9d88&&!_0x5a9d88['affectsData']||_0x3473fa['ignoreResolvedComments']&&_0x19245f['getCommentThread'](_0x2c6dc3)?.['isResolved']?null:{'group':'comment','name':_0xeb7e2f?_0x2c6dc3+':'+_0xeb7e2f:_0x2c6dc3};}}),_0x2082e7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x500d7a,{writer:_0x4a0b5d})=>_0x4a0b5d['createElement']('$marker',{'data-name':'comment:'+_0x500d7a['getAttribute']('id')})}),_0x2082e7['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3aa05d=this['editor'],_0x9026d9=_0x3aa05d['plugins']['get'](o),_0x41bd3a=new Set(),_0x22c323=new Set();_0x3aa05d['model']['document']['registerPostFixer'](_0x474693=>{let _0x58cce0=!0x1;for(const {name:_0x14ea95,data:_0x153721}of _0x3aa05d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x542538,id:_0x4fd806}=ft(_0x14ea95);let _0x130cd7=_0x153721['newRange'];if('comment'!==_0x542538||!_0x130cd7)continue;const _0x548e59='$graveyard'===_0x130cd7['root']['rootName'];_0x548e59||(_0x130cd7=ht(_0x130cd7,_0x3aa05d['model']),!_0x130cd7||_0x130cd7['isCollapsed']||!_0x153721['newRange']||_0x130cd7['isEqual'](_0x153721['newRange']))?_0x3aa05d['model']['hasContent'](_0x130cd7)&&!_0x548e59?this['isThreadsLoadingPaused']?_0x41bd3a['add'](_0x14ea95):this['_handleThreadMarker'](_0x14ea95,_0x4fd806):(_0x22c323['add'](_0x14ea95),_0x41bd3a['delete'](_0x14ea95),_0x474693['removeMarker'](_0x14ea95),_0x58cce0=!0x0):(_0x474693['updateMarker'](_0x14ea95,{'range':_0x130cd7}),_0x58cce0=!0x0);}return _0x58cce0;}),this['on']('change:isThreadsLoadingPaused',(_0x149157,_0x1b339e,_0x520048)=>{if(!_0x520048&&_0x41bd3a['size'])for(const _0x4f2be8 of _0x41bd3a){const {id:_0x18885f}=ft(_0x4f2be8);_0x41bd3a['delete'](_0x4f2be8),_0x3aa05d['model']['markers']['get'](_0x4f2be8)&&this['_handleThreadMarker'](_0x4f2be8,_0x18885f);}}),this['listenTo'](_0x3aa05d['model']['document'],'change',()=>{for(const {name:_0x129e5a,data:{newRange:_0x12e460}}of _0x3aa05d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x5e1071,id:_0x1b2a73}=ft(_0x129e5a);if('comment'!==_0x5e1071)continue;const _0x185996=_0x9026d9['getCommentThread'](_0x1b2a73),_0x3c0246=this['hasMarkerForId'](_0x1b2a73);_0x185996&&(!_0x185996['_hasTargetInContent']&&_0x12e460&&_0x3aa05d['editing']['view']['once']('render',()=>{const _0x1788a9=_0x3aa05d['plugins']['get'](y),_0x2190ea=_0x9026d9['_threadToController']['get'](_0x185996)['view'];_0x1788a9['getByInnerView'](_0x2190ea)['refreshVisibility']();},{'priority':'low'}),_0x185996['_hasTargetInContent']=_0x3c0246||!!_0x12e460),_0x12e460||(_0x22c323['add'](_0x129e5a),_0x41bd3a['delete'](_0x129e5a));}for(const _0x259449 of _0x22c323){const {id:_0x537e4f}=ft(_0x259449),_0x4c8764=_0x9026d9['getCommentThread'](_0x537e4f);if(_0x41bd3a['delete'](_0x259449),!_0x4c8764)continue;const _0x4ab060=this['hasMarkerForId'](_0x537e4f);_0x4ab060||_0x4c8764['isSubmitted']?_0x4ab060||_0x4c8764['unlinkedAt']||_0x4c8764['setUnlinkedAt'](new Date()):_0x4c8764['remove']();}_0x22c323['clear']();});}['_handleInitialThreads'](_0x1613dc){_0x1613dc['forEach'](_0x4d7d49=>{_0x4d7d49['unlinkedAt']&&this['_attachArchivedThread'](_0x4d7d49['id']);});}['_getTargetForId'](_0x11893a){const _0x1ff00b=this['editor'],_0x44c832=this['getAllMarkersForId'](_0x11893a);return et(_0x1ff00b['editing'],_0x44c832);}['_getTextContext'](_0x3dfd6c){const _0x4c67a4=this['getAllMarkersForId'](_0x3dfd6c);let _0x5cb030='',_0x3ff508=!0x1;for(const _0x2cf6f1 of _0x4c67a4){const _0x21717e=_0x2cf6f1['getRange']();for(const _0x505186 of Array['from'](_0x21717e['getItems']()))_0x505186['is']('$textProxy')?(_0x5cb030&&_0x3ff508&&(_0x5cb030+='\x20',_0x3ff508=!0x1),_0x5cb030+=_0x505186['data']):_0x3ff508=!0x0;_0x3ff508=!0x0;}return _0x5cb030['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x10434f,_0x1bd66c){const _0x3540bf=this['editor'],_0x56af04=_0x3540bf['plugins']['get'](o);let _0x34656b=_0x56af04['getCommentThread'](_0x1bd66c);const _0x22c46b=_0x3540bf['config']['get']('collaboration.channelId'),_0x196a71=_0x3540bf['plugins']['get'](b);if(_0x34656b&&(_0x34656b['unlinkedAt']&&_0x34656b['setUnlinkedAt'](null),_0x34656b['isAttached']))return _0x34656b;return!this['getAllMarkersForId'](_0x1bd66c)[0x0]['managedUsingOperations']?_0x3540bf['editing']['view']['once']('render',()=>{if(_0x56af04['getCommentThread'](_0x1bd66c))return;const _0x49ba32=_0x3540bf['plugins']['get'](y);_0x34656b=_0x56af04['openNewCommentThread']({'channelId':_0x22c46b,'threadId':_0x1bd66c,'target':()=>this['_getTargetForId'](_0x1bd66c),'context':{'type':'text','value':this['_getTextContext'](_0x1bd66c)}});const _0x21b7f0=_0x56af04['_threadToController']['get'](_0x34656b)['view'],_0x22c9b7=_0x49ba32['getByInnerView'](_0x21b7f0);_0x22c9b7&&_0x196a71['registerAnnotation'](_0x22c9b7);},{'priority':'low'}):_0x56af04['fetchCommentThread']({'channelId':_0x22c46b,'threadId':_0x1bd66c})['then'](_0x5d950c=>{if('destroyed'!==_0x3540bf['state']){if(_0x34656b=_0x5d950c,_0x34656b&&!_0x34656b['isAttached']){const _0x29813b=_0x34656b['attachTo'](()=>this['_getTargetForId'](_0x1bd66c));_0x196a71['registerAnnotation'](_0x29813b),_0x34656b['isResolved']&&this['_reconvertMarkers'](_0x1bd66c);}else{if(!_0x34656b){const _0xfb15ca=this['getAllMarkersForId'](_0x1bd66c);_0x3540bf['model']['change'](_0x1423d5=>{for(const _0x204263 of _0xfb15ca)_0x1423d5['removeMarker'](_0x204263);});}}}}),_0x34656b;}['_handleThreadMarker'](_0x1c0c55,_0x7633e0){const _0x2558d3=this['_attachMarkerToThread'](_0x1c0c55,_0x7633e0);_0x2558d3&&!_0x2558d3['context']&&_0x2558d3['setContext']({'type':'text','value':this['_getTextContext'](_0x7633e0)});}['_initAriaMarkerChangeAnnouncements'](){const _0x4f331b=this['editor'];rt(_0x4f331b['model'],({left:_0x27c124,entered:_0x1ca1a1})=>{for(const _0x4ebe02 of _0x27c124)if(mt(_0x4ebe02)){_0x4f331b['ui']['ariaLiveAnnouncer']['announce'](N(_0x4f331b['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x4bc853 of _0x1ca1a1)if(mt(_0x4bc853)){_0x4f331b['ui']['ariaLiveAnnouncer']['announce'](N(_0x4f331b['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x5c46b2)));break;}});}}function dt(_0x100c44,_0x29bca1){return _0x29bca1?_0x100c44+':'+_0x29bca1:_0x100c44;}function ht(_0x1d514e,_0x2a466a){const _0x190e53=_0x2a466a['schema'],_0x4d3b7f=_0x2a466a['createRange'](_0x1d514e['start']);for(const _0x4eda5a of _0x1d514e['getWalker']()){const {type:_0x9e4572,item:_0xd13f38,nextPosition:_0x1a63b2}=_0x4eda5a;if('text'===_0x9e4572||_0x190e53['isObject'](_0xd13f38)){const _0x43227b=_0x2a466a['createPositionBefore'](_0xd13f38);_0x4d3b7f['isCollapsed']&&(_0x4d3b7f['start']=_0x43227b),_0x4d3b7f['end']=_0x1a63b2;}}return _0x4d3b7f;}function mt(_0x151827){return'comment'===ft(_0x151827['name'])['group'];}class s extends _0x3d233f{['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 _0x55cb54=this['editor'],_0x1d79e4=_0x55cb54['plugins']['get'](o),_0x297f8e=_0x55cb54['plugins']['get'](r),_0x4a8090=_0x55cb54['plugins']['get'](y),_0x427dfd=_0x55cb54['plugins']['get'](b);_0x55cb54['ui']['componentFactory']['add']('comment',()=>{const _0x1c3977=this['_createUIButton'](_0x56f2fa);return _0x1c3977['tooltip']=!0x0,_0x1c3977;}),_0x55cb54['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0xf31b41)),_0x427dfd['addSourceCollector'](()=>{const _0x5575e2=[];for(const [_0x15e999,_0x4c372f]of _0x1d79e4['_threadToController']){const _0xb32b1e=_0x297f8e['getAllMarkersForId'](_0x15e999['id']),_0x19a11c=_0xb32b1e['map'](_0x358a9e=>_0x358a9e['getRange']());_0xb32b1e['length']>0x0&&_0x5575e2['push']([_0x4c372f['view'],_0x19a11c]);}return _0x5575e2;}),this['listenTo'](_0x4a8090,'change:activeAnnotations',(_0x5dc306,_0x263159,_0x5921c4)=>{const _0x52cb40=Array['from'](_0x5921c4)['map'](_0xe4509e=>_0xe4509e['innerView'])['find'](_0x57f197=>_0x1d79e4['_viewToController']['has'](_0x57f197));if(!_0x52cb40)return void(_0x297f8e['activeMarker']=null);const _0x3f59a6=_0x1d79e4['_viewToController']['get'](_0x52cb40)['model']['id'],_0x55b4bc='comment:'+_0x3f59a6;_0x3f59a6&&_0x297f8e['hasMarkerForId'](_0x3f59a6)?_0x297f8e['activeMarker']=_0x55b4bc:_0x297f8e['activeMarker']&&(_0x297f8e['activeMarker']=null);}),this['listenTo'](_0x1d79e4,'removeCommentThread',(_0x383981,{threadId:_0x2074ab,isFromAdapter:_0x5a4741})=>{!_0x5a4741&&_0x55cb54['ui']['focusTracker']['isFocused']&&_0x297f8e['hasMarkerForId'](_0x2074ab)&&_0x55cb54['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x1d79e4,'addComment',(_0x56a708,{threadId:_0x328e29,isFromAdapter:_0x42edd8})=>{if(_0x42edd8||!_0x297f8e['hasMarkerForId'](_0x328e29)||!_0x1d79e4['hasCommentThread'](_0x328e29))return;0x1===_0x1d79e4['getCommentThread'](_0x328e29)['length']&&(_0x55cb54['editing']['view']['focus'](),_0x56a708['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x115e45=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59a2cc;for(const _0x5097a4 in _0x115e45){const _0x18f29e=_0x5097a4,_0x32ee0e=_0x115e45[_0x18f29e];if('commentsLicenseKeyValid'==_0x32ee0e||'commentsLicenseKeyInvalid'==_0x32ee0e||'commentsLicenseKeyExpired'==_0x32ee0e||'commentsLicenseKeyDomainLimit'==_0x32ee0e||'commentsLicenseKeyNotAllowed'==_0x32ee0e||'commentsLicenseKeyEvaluationLimit'==_0x32ee0e||'commentsLicenseKeyTrialLimit'==_0x32ee0e||'commentsLicenseKeyUsageLimit'==_0x32ee0e){delete _0x115e45[_0x18f29e],_0x59a2cc=_0x32ee0e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x59a2cc&&_0x115e45['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x59a2cc&&_0x115e45['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x59a2cc&&_0x115e45['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x59a2cc&&_0x115e45['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x398a20){const _0x8175fb=this['editor'],_0x441327=new _0x398a20(_0x8175fb['locale']),_0x28b826=_0x8175fb['commands']['get']('addCommentThread');return _0x441327['set']({'label':N(_0x8175fb['locale'],'Comment'),'icon':_0x417cca}),_0x441327['bind']('isEnabled')['to'](_0x28b826,'hasContent'),this['listenTo'](_0x441327,'execute',()=>{_0x28b826['execute']();}),_0x441327;}}class i extends _0x3d233f{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x4926a3){super(_0x4926a3),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x5e719a,_0x110804,_0x34eb31)=>{_0x34eb31?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x7f0638,_0x224b54]of this['editor']['commands'])_0x224b54['affectsData']&&'addCommentThread'!==_0x7f0638&&_0x224b54['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x1b8b82=this['editor']['editing']['view']['document'];this['listenTo'](_0x1b8b82,'cut',_0x31d3dc=>_0x31d3dc['stop'](),{'priority':'highest'}),this['listenTo'](_0x1b8b82,'clipboardInput',_0x10ed4d=>_0x10ed4d['stop'](),{'priority':'highest'}),this['listenTo'](_0x1b8b82,'delete',_0x41b51f=>_0x41b51f['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5645a0,_0x11729c]of this['editor']['commands'])_0x11729c['affectsData']&&'addCommentThread'!==_0x5645a0&&_0x11729c['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 _0x5769e4{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x72bad4){super(_0x72bad4),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x410860=this['context']['plugins']['get'](y);this['listenTo'](_0x410860,'_activateAnnotation',(_0x405a4c,_0x11363f)=>{for(const _0x309b78 of this['activeUIs']){const _0x320ac7=this['_uis']['get'](_0x309b78);(0x0,this['uisData']['get'](_0x309b78)['filter'])(_0x11363f)&&_0x320ac7['setActiveAnnotation'](_0x11363f);}}),this['listenTo'](_0x410860,'_deactivateAllAnnotations',()=>{for(const _0x2901df of this['activeUIs']){this['_uis']['get'](_0x2901df)['setActiveAnnotation'](null);}}),this['listenTo'](_0x410860['_visibleAnnotations'],'add',(_0x1de8ed,_0x482a42)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x482a42);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x2b0498){return this['activeUIs']['has'](_0x2b0498);}['activate'](_0x1b69fd,_0xb16033=this['defaultFilter']){const _0x574b87=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x1b69fd))throw new _0x3e31b7('annotationsuis-missing-ui',this,{'uiName':_0x1b69fd});this['isActive'](_0x1b69fd)&&this['deactivate'](_0x1b69fd),this['activeUIs']['add'](_0x1b69fd);const _0x48783c=new S();v({'source':_0x574b87['_visibleAnnotations'],'target':_0x48783c,'filter':_0xb16033}),this['uisData']['set'](_0x1b69fd,{'collection':_0x48783c,'filter':_0xb16033});const _0x3b1980=this['_uis']['get'](_0x1b69fd);_0x3b1980['attach'](_0x48783c),this['listenTo'](_0x3b1980,'change:activeAnnotation',(_0x542bfa,_0x169bf5,_0x3b02d7,_0x4b8328)=>{_0x4b8328&&_0x574b87['_removeActiveAnnotation'](_0x4b8328),_0x3b02d7&&_0x574b87['_addActiveAnnotation'](_0x3b02d7);});}['deactivate'](_0x13f114){if(this['activeUIs']['delete'](_0x13f114),!this['_uis']['has'](_0x13f114))throw new _0x3e31b7('annotationsuis-missing-ui',this,{'uiName':_0x13f114});const _0x35287b=this['_uis']['get'](_0x13f114);_0x35287b['detach'](),this['stopListening'](_0x35287b),this['uisData']['get'](_0x13f114)['collection']['destroy'](),this['uisData']['delete'](_0x13f114);}['switchTo'](_0x4c3681){if(!this['_uis']['has'](_0x4c3681))throw new _0x3e31b7('annotationsuis-missing-ui',this,{'uiName':_0x4c3681});const _0x3a67f8=this['context']['plugins']['get'](y),_0x1ded80=Array['from'](_0x3a67f8['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4c3681);const _0x347848=this['_uis']['get'](_0x4c3681);_0x347848['setActiveAnnotation'](_0x1ded80),_0x347848['_setSelectedAnnotations']&&_0x1ded80&&_0x347848['_setSelectedAnnotations']([_0x1ded80]);}['deactivateAll'](){for(const _0x4e4b75 of this['activeUIs'])this['deactivate'](_0x4e4b75);}['register'](_0x1be95d,_0x1b19d5){if(this['_uis']['has'](_0x1be95d))throw new _0x3e31b7('annotationsuis-register-already-registered');if('function'!=typeof _0x1b19d5['attach']||'function'!=typeof _0x1b19d5['detach']||'function'!=typeof _0x1b19d5['setActiveAnnotation'])throw new _0x3e31b7('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x1be95d,_0x1b19d5);}['refilterAnnotations'](){const _0x5b9f2f=this['context']['plugins']['get'](y)['collection'],_0x1dc06d=new Map(),_0x32b45e=Array['from'](this['activeUIs']);for(const _0x44d0de of this['activeUIs']){const _0x5c7164=this['uisData']['get'](_0x44d0de)['collection'];for(const _0xa3e7f2 of _0x5c7164)_0x1dc06d['set'](_0xa3e7f2,_0x44d0de);}for(const _0x5322d3 of _0x5b9f2f){const _0x1678c3=_0x1dc06d['get'](_0x5322d3);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5322d3);const _0x3f7fb0=_0x32b45e['find'](_0x255716=>this['uisData']['get'](_0x255716)['filter'](_0x5322d3));_0x1678c3!==_0x3f7fb0&&(_0x1678c3&&this['uisData']['get'](_0x1678c3)['collection']['remove'](_0x5322d3),_0x3f7fb0&&this['uisData']['get'](_0x3f7fb0)['collection']['add'](_0x5322d3));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x22720a){const _0x54911c=[];for(const _0x582f4e of this['activeUIs']){(0x0,this['uisData']['get'](_0x582f4e)['filter'])(_0x22720a)&&_0x54911c['push'](_0x582f4e);}if(_0x54911c['length']>0x1)throw new _0x3e31b7('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x54911c,'annotationType':_0x22720a['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(_0x1f8c7c){super(_0x1f8c7c),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x227e61,_0x2a4685)=>_0x227e61+_0x2a4685),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1a630a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1a630a['to']('isAnimationDisabled',_0x16d49a=>_0x16d49a?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1a630a['to']('top',_0x39b368=>Ot(_0x39b368))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x112b7f=this['element']['clientHeight'];_0x112b7f&&(this['height']=_0x112b7f);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x5769e4{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50f109){super(_0x50f109),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 _0x1220c1=this['context']['config']['get']('sidebar.container');_0x1220c1&&this['setContainer'](_0x1220c1);}['setContainer'](_0x389e4d){if(!g(_0x389e4d))throw new _0x3e31b7('sidebar-setcontainer-invalid-element');this['container']=_0x389e4d;}['_attachToContainer']({viewClass:_0x3b7cfa='',spaceBetweenItems:_0x41cc45=0x19}={}){if(!g(this['container']))throw new _0x3e31b7('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3b7cfa,this['_spaceBetweenItems']=_0x41cc45;}['rearrange']({removedAnnotation:_0x3e4db7,previousAnnotation:_0x3f7f56,nextAnnotation:_0x3f9881}){const _0x543b60=this['getSidebarItemView'](_0x3e4db7);this['view']['list']['remove'](_0x543b60),this['_destroySidebarItemView'](_0x3e4db7),_0x3f7f56&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3f7f56)),_0x3f9881&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3f9881)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x1e1611,activatedAnnotation:_0x58f4f4,disableAnimationOnActivatedAnnotation:_0x23ecdb}){if(this['_activeAnnotation']=_0x58f4f4,_0x1e1611){_0x1e1611['isActive']=!0x1;const _0x30c441=this['getSidebarItemView'](_0x1e1611);_0x30c441&&_0x23ecdb&&(_0x30c441['isAnimationDisabled']=!0x1);}if(_0x58f4f4){const _0x5843a8=this['getSidebarItemView'](_0x58f4f4);_0x5843a8&&(_0x58f4f4['isActive']=!0x0,_0x23ecdb&&(_0x5843a8['isAnimationDisabled']=!0x0,_0x5843a8['top']+=0x1),this['_alignToTargetRect'](_0x5843a8));}}['_detachFromContainer'](_0x1d56e1){if(this['view']['element']['remove'](),_0x1d56e1){for(const _0x501a0c of _0x1d56e1)this['_destroySidebarItemView'](_0x501a0c);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x35277c,_0x34153e){_0x34153e||(_0x34153e=_0x35277c['view']);const _0x3587ed=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x3587ed,_0x35277c),this['_annotationToSidebarItemView']['set'](_0x35277c,_0x3587ed),_0x3587ed['content']['add'](_0x34153e),this['listenTo'](_0x35277c['view'],'change:targetRect',(_0x392343,_0x114d5e,_0x293c9f)=>{const _0x179bfc=this['_getTargetTop'](_0x35277c,_0x293c9f);_0x3587ed['_targetTop']!=_0x179bfc&&(_0x3587ed['_targetTop']=_0x179bfc,this['_setItemTop'](_0x3587ed,_0x179bfc));}),this['listenTo'](_0x3587ed,'change:top',()=>{this['_recalculate'](_0x3587ed,'top');}),this['listenTo'](_0x3587ed,'change:bottom',()=>{this['_recalculate'](_0x3587ed,'bottom');}),this['_alignToTargetRect'](_0x3587ed);const _0x2ca47f=this['_getItemBefore'](_0x3587ed);if(_0x2ca47f)this['_alignAfterItem'](_0x2ca47f,_0x3587ed)||this['_alignToTargetRect'](_0x3587ed);else this['_alignToTargetRect'](_0x3587ed);return this['_updateLastItem'](),this['view']['list']['add'](_0x3587ed),_0x3587ed;}['_alignForTopChange'](_0x287229){if(!_0x287229['content']['length'])return;const _0x1cf261=this['_getItemBefore'](_0x287229);if(!_0x1cf261)return;const _0x5d50ca=this['_sidebarItemViewToAnnotation']['get'](_0x1cf261),_0x57ff59=this['_activeAnnotation'];_0x57ff59&&_0x57ff59===_0x5d50ca?this['_alignAfterItem'](_0x1cf261,_0x287229):this['_alignBeforeItem'](_0x287229,_0x1cf261);}['_alignForBottomChange'](_0x1f74bd){if(!_0x1f74bd['content']['length'])return;const _0x651546=this['_getItemAfter'](_0x1f74bd);if(!_0x651546)return;const _0x1e51bd=this['_sidebarItemViewToAnnotation']['get'](_0x651546),_0x1222c5=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x181730=this['_activeAnnotation'];_0x181730&&_0x181730===_0x1e51bd&&_0x1222c5?(this['_alignBeforeItem'](_0x651546,_0x1f74bd),this['_alignAfterItem'](_0x1f74bd,_0x651546)):_0x181730&&_0x181730===_0x1e51bd?this['_alignBeforeItem'](_0x651546,_0x1f74bd):this['_alignAfterItem'](_0x1f74bd,_0x651546);}['_recalculate'](_0x5e1fa3,_0x238f42){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x377a17,changedProp:_0x150b3c}of this['_recalculateBuffer'])'top'===_0x150b3c?this['_alignForTopChange'](_0x377a17):this['_alignForBottomChange'](_0x377a17);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5e1fa3,'changedProp':_0x238f42});}['getSidebarItemView'](_0x1c4ebb){return this['_annotationToSidebarItemView']['get'](_0x1c4ebb);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x47f6fc){const _0xff12c4=this['getSidebarItemView'](_0x47f6fc);this['stopListening'](_0xff12c4),this['stopListening'](_0x47f6fc['view']),_0xff12c4['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x47f6fc),this['_sidebarItemViewToAnnotation']['delete'](_0xff12c4);}['_createSidebarView'](){const _0x432f9e=new H(this['context']['locale']);return _0x432f9e['render'](),this['on']('change:_lastItem',(_0x274e50,_0x4ad10b,_0x5dfbc2,_0x4669d0)=>{_0x4669d0&&_0x432f9e['unbind']('minHeight'),_0x5dfbc2?_0x432f9e['bind']('minHeight')['to'](_0x5dfbc2,'bottom'):_0x432f9e['minHeight']=null;}),_0x432f9e;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x263f3f){const _0x29aeab=this['_sidebarItemViewToAnnotation']['get'](_0x263f3f),_0x2c1a1f=_0x29aeab&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x29aeab)-0x1);return _0x2c1a1f&&this['getSidebarItemView'](_0x2c1a1f)||null;}['_getItemAfter'](_0x16396f){const _0x5a995d=this['_sidebarItemViewToAnnotation']['get'](_0x16396f),_0xbccf91=_0x5a995d&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x5a995d)+0x1);return _0xbccf91&&this['getSidebarItemView'](_0xbccf91)||null;}['_alignBeforeItem'](_0x1c800a,_0x5a0805){_0x1c800a['updateHeight']();const _0xc38a15=G(_0x5a0805['bottom']+this['_spaceBetweenItems'],_0x1c800a['top']);return!!_0xc38a15&&(this['_setItemTop'](_0x5a0805,_0x5a0805['top']-_0xc38a15),!0x0);}['_alignAfterItem'](_0x1bda2e,_0x2405f4){_0x1bda2e['updateHeight']();const _0x28a019=G(_0x1bda2e['bottom']+this['_spaceBetweenItems'],_0x2405f4['top']);return!!_0x28a019&&(this['_setItemTop'](_0x2405f4,_0x2405f4['top']+_0x28a019,!0x1),!0x0);}['_alignToTargetRect'](_0x1aca48){const _0x395e03=this['_sidebarItemViewToAnnotation']['get'](_0x1aca48);if(!_0x395e03||!_0x395e03['target']||!_0x395e03['targetRect'])return;const _0x4a6ad9=this['_getTargetTop'](_0x395e03,_0x395e03['targetRect']);this['_setItemTop'](_0x1aca48,_0x4a6ad9);}['_getTargetTop'](_0x1be1f6,_0x58a9be){if(null===_0x58a9be)return 0x0;if(_0x1be1f6['target']instanceof _0x4d09a0)return _0x58a9be['top'];{const _0x599ca2=new _0x4d09a0(this['view']['element'])['top'];return _0x58a9be['top']-_0x599ca2;}}['_setItemTop'](_0x5475df,_0x1a50c6,_0x478323=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x478323&&(_0x1a50c6=Math['max'](_0x1a50c6,this['_getMaxAvailableTop'](_0x5475df))),_0x5475df['top']=_0x1a50c6;}['_getMaxAvailableTop'](_0x154712){let _0x42aa89=this['_getItemBefore'](_0x154712),_0x4b3c47=0x0;for(;_0x42aa89;)_0x42aa89['updateHeight'](),_0x4b3c47+=this['_spaceBetweenItems']+_0x42aa89['height'],_0x42aa89=this['_getItemBefore'](_0x42aa89);return _0x4b3c47;}}function G(_0x344ef4,_0x256e9c){return Math['max'](_0x344ef4-_0x256e9c,0x0);}function g(_0x3490a3){return null!==_0x3490a3&&'object'==typeof _0x3490a3&&0x1===_0x3490a3['nodeType'];}class e extends _0x5769e4{['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(_0x1e4d0a){super(_0x1e4d0a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1b1bd5(),this['_refreshPositioningDebounced']=_0x1f36ab(()=>{_0x1e4d0a['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x284de8=this['context']['plugins']['get'](j),_0x4ebadb=this['context']['plugins']['get'](z);_0x284de8['register']('wideSidebar',this),_0x4ebadb['container']&&_0x284de8['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x15973c){if(_0x15973c===this['activeAnnotation'])return;const _0x522e01=this['context']['plugins']['get'](z);_0x522e01['_activeAnnotation']=_0x15973c;const _0x40a49f=this['activeAnnotation'];_0x522e01['refresh']({'blurredAnnotation':_0x40a49f,'activatedAnnotation':_0x15973c}),this['activeAnnotation']=_0x15973c;}['attach'](_0x1091a9){this['annotations']=_0x1091a9;const _0x281c2a=this['context']['plugins']['get'](z);if(_0x281c2a['_annotations']=_0x1091a9,this['isAttached'])throw new _0x3e31b7('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x281c2a,'set:container',()=>{this['detach'](),this['listenTo'](_0x281c2a,'change:container',_0x2adf6b=>{_0x2adf6b['off'](),this['attach'](_0x1091a9);});}),_0x281c2a['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3e2873=_0x24169f=>{_0x24169f['updateTargetRect'](),_0x281c2a['addAnnotation'](_0x24169f);};for(const _0x222aeb of _0x1091a9)_0x3e2873(_0x222aeb);this['listenTo'](_0x1091a9,'add',(_0x3577fe,_0xa6c356)=>{_0x3e2873(_0xa6c356);}),this['listenTo'](_0x1091a9,'remove',(_0x2785c0,_0x4b8481,_0x1e79de)=>{_0x281c2a['rearrange']({'removedAnnotation':_0x4b8481,'previousAnnotation':_0x1091a9['get'](_0x1e79de-0x1),'nextAnnotation':_0x1091a9['get'](_0x1e79de+0x1)}),_0x4b8481===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x1091a9,'focus',(_0x3250aa,_0x799a30)=>{this['setActiveAnnotation'](_0x799a30);}),this['listenTo'](_0x1091a9,'blur',()=>{this['setActiveAnnotation'](null);});const _0x3de035=this['context']instanceof _0x18e5c3?this['context']['editors']:new _0x1b1bd5([this['context']]);for(const _0x44b8be of _0x3de035)this['_integrateWithEditorAnnotations'](_0x44b8be);this['listenTo'](_0x3de035,'add',(_0x185580,_0x187f44)=>{this['listenTo'](_0x187f44,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x187f44);});}),this['listenTo'](_0x3de035,'remove',(_0xe312c0,_0x1f70a4)=>{_0x1f70a4['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x1f70a4['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3e31b7('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x45bade=this['context']['plugins']['get'](z);_0x45bade['_detachFromContainer'](this['annotations']),this['stopListening'](_0x45bade),this['stopListening'](this['annotations']),this['context']instanceof _0x18e5c3&&this['stopListening'](this['context']['editors']);for(const _0x270299 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x270299);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x36bdc4){if(!_0x36bdc4['plugins']['has']('EditorAnnotations'))return;const _0x22e0e7=_0x36bdc4['plugins']['get']('EditorAnnotations'),_0x36af33=()=>{const _0x27c5bd=_0x22e0e7['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x27c5bd[0x0]||null);};this['listenTo'](_0x22e0e7,'refresh',_0x36af33),this['listenTo'](_0x22e0e7,'blur',(_0x33d5cc,{isAnnotationTracked:_0x104e18})=>{this['activeAnnotation']&&_0x104e18(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x22e0e7,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x272f4a=>{_0x22e0e7['hasDomSelection']()&&(_0x36af33(),_0x272f4a['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x22e0e7);}['_destroyEditorAnnotationsIntegration'](_0x47f6a8){this['stopListening'](_0x47f6a8),this['_editorAnnotations']['remove'](_0x47f6a8);}}class C extends _0x56f2fa{['counterView'];constructor(_0x59daaa){super(_0x59daaa);const _0x4ce452=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x16b73b,_0x3449ca)=>_0x16b73b?'...':_0x3449ca['toString']()),this['set']('annotationType',''),this['icon']=_0x417cca,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4ce452['to']('annotationType',_0x35f7e7=>'ck-annotation-counter__badge--'+_0x35f7e7),_0x4ce452['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4ce452['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x5769e4{['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(_0x2c850b){super(_0x2c850b),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x1a9ea6())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1b1bd5(),this['_refreshPositioningDebounced']=_0x1f36ab(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x21805a(this['context']['locale']),this['balloonPanelView']=new _0x251547(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4da67f){this['annotations']=_0x4da67f;const _0x226852=this['context']['plugins']['get'](z),_0x5a53de=this['balloonPanelView'];if(_0x226852['_annotations']=_0x4da67f,this['isAttached'])throw new _0x3e31b7('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x226852,'set:container',()=>{this['detach'](),this['listenTo'](_0x226852,'change:container',_0x3888b2=>{_0x3888b2['off'](),this['attach'](_0x4da67f);});}),_0x226852['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2f9a20=_0x12a98e=>{const _0x2479b8=new C(this['context']['locale']);_0x226852['addAnnotation'](_0x12a98e,_0x2479b8),this['_annotationToNarrowView']['set'](_0x12a98e,_0x2479b8),_0x2479b8['bind']('isDirty','annotationType','number')['to'](_0x12a98e['view'],'isDirty','type','length'),_0x2479b8['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x5a53de['content']['first']!==_0x12a98e['view']?(this['_showBalloon'](_0x12a98e),_0x12a98e['view']['element']['focus'](),this['setActiveAnnotation'](_0x12a98e)):this['setActiveAnnotation'](null);});};for(const _0x1228b9 of _0x4da67f)_0x2f9a20(_0x1228b9);this['listenTo'](_0x4da67f,'add',(_0x48dea4,_0x50581e)=>{_0x2f9a20(_0x50581e);}),this['listenTo'](_0x4da67f,'remove',(_0x10ef34,_0x671dce,_0x43e43e)=>{this['_annotationToNarrowView']['get'](_0x671dce)['destroy'](),this['_annotationToNarrowView']['delete'](_0x671dce),_0x226852['rearrange']({'removedAnnotation':_0x671dce,'previousAnnotation':_0x4da67f['get'](_0x43e43e-0x1),'nextAnnotation':_0x4da67f['get'](_0x43e43e+0x1)}),_0x671dce===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4da67f,'focus',(_0x47e619,_0x40f70a)=>{this['setActiveAnnotation'](_0x40f70a);}),this['listenTo'](_0x4da67f,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x38af0e,_0x4dce4b)=>{_0x4dce4b['keyCode']===_0x496e11['esc']&&_0x5a53de['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x5a53de['content']['first']),this['_hideBalloon'](),_0x4dce4b['stopPropagation'](),_0x4dce4b['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1b72e6,_0x41c8c2)=>{const _0x41d4f4=_0x41c8c2['target'];_0x5a53de['isVisible']&&_0x5a53de['element']['contains'](_0x41d4f4)||_0x226852['view']['element']['contains'](_0x41d4f4)||_0x1b72e6['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x4bc842=>_0x4bc842['contains'](_0x41d4f4))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x4e11be=this['context']instanceof _0x18e5c3?this['context']['editors']:new _0x1b1bd5([this['context']]);for(const _0x38e8eb of _0x4e11be)this['_integrateWithEditorAnnotations'](_0x38e8eb);this['listenTo'](_0x4e11be,'add',(_0x4ff6ab,_0x263569)=>{this['listenTo'](_0x263569,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x263569);});}),this['listenTo'](_0x4e11be,'remove',(_0x1f0176,_0x3428ca)=>{_0x3428ca['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x3428ca['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x4de885){if(_0x4de885===this['activeAnnotation'])return;const _0x3c336d=this['context']['plugins']['get'](z);if(_0x3c336d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x4de885,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4de885)_0x3c336d['getSidebarItemView'](_0x4de885)?this['_showBalloon'](_0x4de885):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x4de885;}['detach'](){if(!this['isAttached'])throw new _0x3e31b7('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3cbc06=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x5b0638=>_0x5b0638['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3cbc06['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x18e5c3&&this['stopListening'](this['context']['editors']);for(const _0x5a4ffe of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x5a4ffe);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'](_0x50c87b){if(!_0x50c87b['plugins']['has']('EditorAnnotations'))return;const _0x497311=_0x50c87b['plugins']['get']('EditorAnnotations'),_0x4bebe8=this['context']['plugins']['get'](z),_0x9146a0=this['annotations'],_0x113aca=this['balloonPanelView'],_0x19e029=()=>{const _0x1bc62d=_0x497311['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x1bc62d),this['setActiveAnnotation'](_0x1bc62d[0x0]||null);};this['listenTo'](_0x497311,'refresh',_0x19e029),this['listenTo'](_0x497311,'blur',(_0x200e16,{isAnnotationTracked:_0xf24cea})=>{this['activeAnnotation']&&_0xf24cea(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x497311,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x9146a0,'blur',_0x150cfd=>{_0x497311['hasDomSelection']()&&_0x150cfd['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x251e2a,_0x148ed9)=>{const _0x42613b=_0x148ed9['target'];_0x113aca['isVisible']&&_0x113aca['element']['contains'](_0x42613b)||_0x4bebe8['view']['element']['contains'](_0x42613b)||this['activeAnnotation']&&_0x497311['hasDomSelection']()&&(_0x19e029(),_0x251e2a['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x497311);}['_destroyEditorAnnotationsIntegration'](_0x1ee603){_0x1ee603&&(this['stopListening'](_0x1ee603),this['_editorAnnotations']['remove'](_0x1ee603));}['_setSelectedAnnotations'](_0x52bcf6){for(const _0x223178 of this['_selectedAnnotations'])_0x52bcf6['includes'](_0x223178)||this['_manuallyClosedAnnotationViews']['delete'](_0x223178['view']);this['_selectedAnnotations']=_0x52bcf6;}['_refreshPositioning'](){const _0x4d9604=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x4d9604['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xa19634){if(this['_manuallyClosedAnnotationViews']['has'](_0xa19634['view']))return;const _0x2c481b=this['balloonPanelView']['content']['first'];_0x2c481b!==_0xa19634['view']?(_0x2c481b&&this['_detachListeners'](_0x2c481b),this['_attachListeners'](_0xa19634['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xa19634['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x1e693c=this['balloonPanelView']['content']['first'],_0x12f4dd=_0x1e693c&&this['annotations']['getByView'](_0x1e693c);if(!_0x12f4dd||!this['_annotationToNarrowView']['has'](_0x12f4dd))return;const _0x4c981f=this['_annotationToNarrowView']['get'](_0x12f4dd)['element'],_0x2f0b7c=(function(){const _0x36a47c=_0x251547['defaultPositions'];return[_0x36a47c['southArrowNorthEast'],_0x36a47c['northArrowSouthEast'],_0x36a47c['southArrowNorth'],_0x36a47c['northArrowSouth'],_0x36a47c['southArrowNorthWest'],_0x36a47c['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x4c981f,'positions':_0x2f0b7c});}['_hideBalloon'](){const _0x18c8a1=this['balloonPanelView'],_0x2a2ec4=_0x18c8a1['content']['first'];_0x2a2ec4&&(this['_detachListeners'](_0x2a2ec4),_0x18c8a1['unpin'](),_0x18c8a1['content']['clear']());}['_attachListeners'](_0x45cd45){this['listenTo'](_0x45cd45,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x45cd45,'Esc',(_0x47bb3d,_0x55475c)=>{this['_manuallyClosedAnnotationViews']['add'](_0x45cd45),this['_hideBalloon'](),_0x55475c();});}['_detachListeners'](_0x285354){this['stopListening'](_0x285354);}}class c extends _0x3d233f{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x1d3115,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1388c7){super(_0x1388c7),_0x1388c7['editing']['view']['addObserver'](_0x30b63e),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1388c7['plugins']['get'](_0x1d3115),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0xa3ce97=this['editor']['plugins']['get'](j);_0xa3ce97['context']===this['editor']&&(_0xa3ce97['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xfdc084,_0x8ba29a)=>{const _0x3284ac=this['_balloon'];if(this['isAttached']&&_0x3284ac['visibleView']){const _0x2465cd=this['annotations']['getByView'](_0x3284ac['visibleView']);_0x2465cd&&this['_closeAnnotation'](_0x2465cd),_0x8ba29a();}}));}['afterInit'](){const _0x1ccc20=this['editor']['plugins']['get'](j);_0x1ccc20['context']===this['editor']&&(_0x1ccc20['hasActive']()||_0x1ccc20['switchTo']('inline'));}['setActiveAnnotation'](_0x355839){_0x355839!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x355839&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x355839)&&this['_addAnnotationToBalloon'](_0x355839,!0x0),_0x355839['isActive']=!0x0),_0x355839||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x355839);}['attach'](_0x31c808){this['annotations']=_0x31c808;const _0x237e42=this['editor']['plugins']['get'](j),_0x18236e=this['_balloon'];if(this['isAttached'])throw new _0x3e31b7('inlineannotations-attach-already-attached',this);if(_0x237e42['context']!==this['editor'])throw new _0x3e31b7('inlineannotations-not-allowed-with-context',this);const _0x37ea9b=this['editor']['plugins']['get'](b);this['listenTo'](_0x37ea9b,'refresh',()=>{const _0x45c1bc=_0x37ea9b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x11267d,_0x40fad7;!this['_forceRefresh']&&(_0x11267d=_0x45c1bc,_0x40fad7=this['_selectedAnnotations'],_0x11267d['length']===_0x40fad7['length']&&_0x11267d['every'](_0x44f24=>_0x40fad7['includes'](_0x44f24)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x45c1bc),this['setActiveAnnotation'](_0x45c1bc[0x0]||null));}),this['listenTo'](_0x37ea9b,'blur',(_0x1cb8fa,{isAnnotationTracked:_0x5287a0})=>{this['activeAnnotation']&&_0x5287a0(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x52f9b9,_0x4f24fe,_0x57ec14)=>{_0x57ec14||this['setActiveAnnotation'](null);}),this['listenTo'](_0x31c808,'remove',(_0x2b9a1f,_0x5cebff)=>{this['_removeAnnotationFromBalloon'](_0x5cebff),_0x5cebff===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x18236e,'change:visibleView',(_0x3040cf,_0xb21668,_0x3098fd,_0xffcdbb)=>{_0xffcdbb&&this['stopListening'](_0xffcdbb);const _0x3b7229=_0x31c808['getByView'](_0x3098fd);_0x3098fd&&_0x3b7229&&(this['listenTo'](_0x3098fd,'change:height',()=>{_0x18236e['updatePosition']();}),this['listenTo'](_0x3098fd,'Esc',()=>{this['_closeAnnotation'](_0x3b7229),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x3b7229&&this['setActiveAnnotation'](_0x3b7229));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x18236e['visibleView']&&(_0x31c808['getByView'](_0x18236e['visibleView'])&&_0x18236e['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 _0x3e31b7('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0xd84a19 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0xd84a19);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0xff18cf){for(const _0xf85df6 of this['_selectedAnnotations'])_0xff18cf['includes'](_0xf85df6)||this['_manuallyClosed']['delete'](_0xf85df6);for(const _0xf63592 of this['annotations'])_0xff18cf['includes'](_0xf63592)||this['_removeAnnotationFromBalloon'](_0xf63592);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x25bfcd of _0xff18cf)this['_addAnnotationToBalloon'](_0x25bfcd);}this['_selectedAnnotations']=_0xff18cf;}['_addAnnotationToBalloon'](_0x173c10,_0x3dd9c3=!0x1){this['_manuallyClosed']['has'](_0x173c10)||(this['_addedAnnotations']['has'](_0x173c10)||this['_balloon']['hasView'](_0x173c10['view'])||(this['_addedAnnotations']['add'](_0x173c10),this['_balloon']['add']({'stackId':_0x173c10['view']['id'],'view':_0x173c10['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x173c10)}})),_0x3dd9c3&&this['_balloon']['showStack'](_0x173c10['view']['id']));}['_getBalloonTargetForAnnotation'](_0xc286c1){const _0xa11ac=_0xc286c1['target'],_0x5d8b5f=this['editor']['editing']['view'],_0x5dade4=_0x5d8b5f['document']['selection']['getFirstRange'](),_0x342e2f=_0x5d8b5f['domConverter']['viewRangeToDom'](_0x5dade4);if(_0x342e2f['collapse'](!0x0),_0xa11ac){if(_0xa11ac instanceof _0x4d09a0)return _0xa11ac;let _0x49ff62=[];for(const _0x1a69ec of _0xa11ac)_0x49ff62['push'](...F(_0x1a69ec['getClientRects']()));_0x49ff62=function(_0x9acb7c){const _0x2edb5a=[];let _0x53c8ba=_0x9acb7c[0x0];for(let _0x124792=0x1;_0x124792<_0x9acb7c['length'];_0x124792++)P(_0x53c8ba,_0x9acb7c[_0x124792])?_0x53c8ba['width']+=_0x9acb7c[_0x124792]['width']:(_0x2edb5a['push'](_0x53c8ba),_0x53c8ba=_0x9acb7c[_0x124792]);return _0x2edb5a['push'](_0x53c8ba),_0x2edb5a;}(_0x49ff62);const _0x720903=_0x342e2f['getBoundingClientRect']();return _0x49ff62['find'](_0x24d4e7=>_0x24d4e7['top']<=_0x720903['top']&&_0x24d4e7['bottom']>=_0x720903['bottom']&&_0x24d4e7['left']<=_0x720903['left']&&_0x24d4e7['right']>=_0x720903['right'])||_0x49ff62[0x0];}return _0xc286c1['targetRect']||_0x342e2f;}['_removeAnnotationFromBalloon'](_0x204373){this['_addedAnnotations']['has'](_0x204373)&&this['_balloon']['hasView'](_0x204373['view'])&&(this['_addedAnnotations']['delete'](_0x204373),this['_balloon']['remove'](_0x204373['view']));}['_closeAnnotation'](_0x4f142e){this['_manuallyClosed']['add'](_0x4f142e),this['_removeAnnotationFromBalloon'](_0x4f142e);}}function F(_0x4d2f46){return Array['from'](_0x4d2f46)['map'](DOMRect['fromRect']);}function P(_0x4fad32,_0x21d10b){return _0x4fad32['top']===_0x21d10b['top']&&_0x4fad32['bottom']===_0x21d10b['bottom']&&_0x4fad32['right']===_0x21d10b['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1954b7,_0x342869){super(_0x1954b7),this['set']('isEmpty',!_0x342869['length']),this['focusTracker']=new _0xeb7998(),this['_annotationViews']=_0x342869,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x2fb93a({'focusables':_0x342869,'focusTracker':this['focusTracker']}),this['listenTo'](_0x342869,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x342869,'remove',(_0x108503,_0x13e762)=>{_0x13e762['isActive']&&this['focus'](),_0x342869['length']||(this['isEmpty']=!0x0);});const _0x257a92=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x1954b7,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x342869},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x257a92['if']('isEmpty','ck-hidden',_0x9bff4a=>!_0x9bff4a)]},'children':[{'text':N(_0x1954b7,'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 _0x19bf06 of this['_annotationViews'])this['focusTracker']['add'](_0x19bf06['element']);this['_annotationViews']['on']('change',(_0x3c285c,{added:_0x1638c2,removed:_0x25a21e})=>{for(const _0x37baa0 of _0x1638c2)this['focusTracker']['add'](_0x37baa0['element']);for(const _0x1e9938 of _0x25a21e)this['focusTracker']['remove'](_0x1e9938['element']);});}}class p extends _0x5769e4{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x2c99b6){super(_0x2c99b6),this['archivedThreads']=new _0x1b1bd5();}['init'](){const _0x4a6ac9=this['context'],_0x49532d=_0x4a6ac9['plugins']['get'](o),_0x159dc6=_0x4a6ac9['plugins']['get'](y);this['listenTo'](_0x49532d,'addCommentThread',(_0x525cd1,{threadId:_0x35f735})=>{const _0x55eb42=_0x49532d['getCommentThread'](_0x35f735);_0x55eb42['archivedAt']&&this['archivedThreads']['add'](_0x55eb42,this['_calculatePosition'](_0x55eb42['archivedAt'])),this['listenTo'](_0x55eb42,'change:archivedAt',(_0x5014b1,_0x361930,_0x15d65d)=>{_0x15d65d?this['archivedThreads']['has'](_0x55eb42)||this['archivedThreads']['add'](_0x55eb42,this['_calculatePosition'](_0x55eb42['archivedAt'])):this['archivedThreads']['has'](_0x55eb42)&&this['archivedThreads']['remove'](_0x55eb42);});}),this['listenTo'](_0x49532d,'removeCommentThread',(_0x282e5d,{threadId:_0x4a723b})=>{const _0x344dd5=_0x49532d['getCommentThread'](_0x4a723b);this['stopListening'](_0x344dd5),this['archivedThreads']['has'](_0x344dd5)&&this['archivedThreads']['remove'](_0x344dd5);},{'priority':'highest'}),this['listenTo'](_0x159dc6['collection'],'focus',(_0x315a6e,_0x5a94d0)=>{_0x5a94d0['isVisible']||(_0x5a94d0['isActive']=!0x0,_0x159dc6['activate'](_0x5a94d0));});}['_calculatePosition'](_0x16e192){const _0x49d6ec=[...this['archivedThreads']]['findIndex'](_0x91a3dc=>_0x91a3dc['archivedAt']<_0x16e192);return _0x49d6ec>-0x1?_0x49d6ec:this['archivedThreads']['length'];}}class a extends _0x3d233f{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x30ecf7];}constructor(_0x2f0ba6){super(_0x2f0ba6),this['annotationViews']=new _0x16b584(),this['_pendingThreads']=[];}['init'](){const _0x1aa02f=this['editor'],_0xcae9ed=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x1aa02f['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x56f2fa,!0x0)),_0x1aa02f['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2190a6=this['_createCommentsArchiveButton'](_0xf31b41);return _0x2190a6['set']({'role':'menuitemcheckbox'}),_0x2190a6;});const _0x1abfb7=_0x1aa02f['plugins']['get'](p),_0x1ac732=_0x1aa02f['plugins']['get']('Annotations'),_0x3bb107=_0x1aa02f['plugins']['get']('CommentsRepository');_0x1abfb7['archivedThreads']['forEach'](_0x1544f6=>{this['_handleNewThread'](_0x1544f6);}),this['listenTo'](_0x1abfb7['archivedThreads'],'add',(_0x52001e,_0x10b819)=>{this['_handleNewThread'](_0x10b819);}),this['listenTo'](_0x1ac732['collection'],'add',(_0x10d456,_0xe48a79)=>{const _0x1a54c8=this['_pendingThreads']['find'](_0x339bd9=>{const _0x10d368=_0x3bb107['_threadToController']['get'](_0x339bd9);return _0x10d368&&_0xe48a79['innerView']===_0x10d368['view'];});if(_0x1a54c8){const _0x59d98b=this['_calculatePosition'](_0x1a54c8['archivedAt']);this['_addAnnotationToArchive'](_0xe48a79,_0x59d98b),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1a54c8),0x1);}}),this['listenTo'](_0x1abfb7['archivedThreads'],'remove',(_0x1fd613,_0x87027d)=>{const _0xccabaf=_0x1aa02f['config']['get']('collaboration.channelId');if(!_0xccabaf||_0x87027d['channelId']===_0xccabaf){if(this['_pendingThreads']['includes'](_0x87027d))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x87027d),0x1);else{const _0x5ee458=_0x3bb107['_threadToController']['get'](_0x87027d),_0x4ba413=_0x1ac732['getByInnerView'](_0x5ee458['view']);this['annotationViews']['remove'](_0x4ba413['view']),this['stopListening'](_0x4ba413),this['stopListening'](_0x4ba413['focusableElements']);}}}),this['listenTo'](_0x1ac732['collection'],'add',(_0x2ec778,_0x19df92)=>{this['listenTo'](_0x19df92,'escape',_0xcae9ed);}),this['listenTo'](_0x1ac732['collection'],'remove',(_0xc2c7,_0x56de7e)=>{this['stopListening'](_0x56de7e,'escape',_0xcae9ed);});}['_addAnnotationToArchive'](_0x5c66e8,_0x58a320){this['listenTo'](_0x5c66e8,'set:isVisible',_0x3a8b34=>{_0x3a8b34['return']=!0x1,_0x3a8b34['stop']();}),this['annotationViews']['add'](_0x5c66e8['view'],_0x58a320);}['_handleNewThread'](_0x3db7c6){const _0x11cc6b=this['editor']['plugins']['get']('CommentsRepository'),_0x39c0a1=this['editor']['plugins']['get']('Annotations'),_0x8ed0ea=this['editor']['config']['get']('collaboration.channelId');if(!_0x8ed0ea||_0x3db7c6['channelId']===_0x8ed0ea){const _0x16e72e=_0x11cc6b['_threadToController']['get'](_0x3db7c6);if(!_0x16e72e)return void this['_pendingThreads']['push'](_0x3db7c6);const _0x17b43b=this['_calculatePosition'](_0x3db7c6['archivedAt']),_0x10e9bd=_0x39c0a1['getByInnerView'](_0x16e72e['view']);_0x10e9bd['isVisible']&&_0x39c0a1['_visibleAnnotations']['remove'](_0x10e9bd),this['_addAnnotationToArchive'](_0x10e9bd,_0x17b43b);}}['_calculatePosition'](_0x11b7e2){const _0x57055f=this['editor']['config']['get']('collaboration.channelId'),_0x27faf5=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x4a1a5e=>_0x4a1a5e['channelId']===_0x57055f)['findIndex'](_0x54b043=>_0x54b043['archivedAt']<_0x11b7e2);return _0x27faf5<0x0||_0x27faf5>this['annotationViews']['length']?this['annotationViews']['length']:_0x27faf5-0x1;}['_toggleDialog'](){const _0x34234e=this['editor'],_0x25e299=_0x34234e['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x34234e['locale'],this['annotationViews'])),'commentsArchive'===_0x25e299['id']?_0x25e299['hide']():_0x25e299['show']({'id':'commentsArchive','title':N(_0x34234e['locale'],'COMMENTS_ARCHIVE'),'icon':_0x13c696,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3e7464['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x128e25,_0x2a93e3=!0x1){const _0x51ee79=this['editor']['locale'],_0x358ae1=this['editor']['plugins']['get']('Dialog'),_0x24c8bd=new _0x128e25(_0x51ee79);return _0x24c8bd['bind']('isEnabled')['to'](this,'isEnabled'),_0x24c8bd['bind']('isOn')['to'](_0x358ae1,'id',_0x3adf62=>'commentsArchive'===_0x3adf62),_0x24c8bd['set']({'label':N(_0x51ee79,'COMMENTS_ARCHIVE'),'icon':_0x13c696,'isToggleable':!0x0}),_0x2a93e3&&(_0x24c8bd['tooltip']=!0x0),this['listenTo'](_0x24c8bd,'execute',()=>this['_toggleDialog']()),_0x24c8bd;}['_hideDialogOnAnnotationEscape']=_0xd3175d=>{const _0x328acd=_0xd3175d['source'];if(!this['annotationViews']['has'](_0x328acd['view']))return;const _0x521b69=this['editor']['plugins']['get']('Dialog');_0x521b69['isOpen']&&'commentsArchive'===_0x521b69['id']&&(_0x521b69['hide'](),_0xd3175d['stop']());};}class gi extends _0x3d233f{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 _0x464974,ContextPlugin as _0x3e241b,PendingActions as lt,Command as _0x2768e0,Plugin as _0x5753fc,Context as _0x492057}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x457f69,uid as _0x29df72,KeystrokeHandler as jt,FocusTracker as _0x529579,diff as qt,Collection as _0x214515,Rect as _0x305cf4,CKEditorError as _0xc716c1,first as _0x3a1931,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x7dec1f,keyCodes as _0x3316b1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as Ft,AriaDescriptionView as Et,setupThreadKeyboardNavigation as Vt,ConfirmMixin as $t,LateFocusButtonView as Jt,trimHtml as Lt,LateFocusDropdownButtonView as _0x3fec06,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x35e476}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x324384}from'es-toolkit/compat';import{IconUndo as Gt,IconCheck as Qt,IconPencil as ti,IconRemoveComment as Zt,IconThreeVerticalDots as _0x35dbda,IconAddComment as _0x601cc9,IconCommentsArchive as _0x5913f2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as _0x2673a1,InlineEditableUIView as _0x48f58c,EditorUI as ts,View as kt,FocusCycler as _0x1fd229,ButtonView as _0x37ddc6,ViewCollection as _0x15d44a,createDropdown as _0x4aa4a0,ListView as _0x18860f,focusChildOnDropdownOpen as _0x11ba4d,ListItemView as _0x157730,MenuBarMenuListItemButtonView as _0x427723,BodyCollection as _0x4a9de3,BalloonPanelView as _0xeedbd9,ContextualBalloon as _0x314700,Dialog as _0x570c6b,DialogViewPosition as _0x4f9160}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as _0xbd9234,enableViewPlaceholder as _0x4e3bb8,MouseObserver as _0x59b6e8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as _0x41fefe,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as _0x4c1ebe,ShiftEnter as _0x33bc93}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as _0x466236}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as _0xae3d92}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as _0x520430}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as _0x17c1d1}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x4c09c6}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x2a2fd1}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x457f69(){['model'];['view'];constructor(_0x3e6a4e,_0x207e9b){super(),this['model']=_0x3e6a4e,this['model']['_isAttached']=!0x0,this['view']=_0x207e9b,this['listenTo'](_0x207e9b,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x207e9b,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x207e9b,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x207e9b,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x207e9b,'addComment',(_0x248ae8,_0x530777)=>this['addComment'](_0x530777)),this['listenTo'](_0x207e9b,'updateComment',(_0xe3fea6,_0x2221d5,_0x13803f)=>this['updateComment'](_0x2221d5,_0x13803f)),this['listenTo'](_0x207e9b,'removeComment',(_0x5ef9bd,_0x4f6248)=>this['removeComment'](_0x4f6248));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x143511){this['model']['addComment']({'content':_0x143511,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x713303,_0x304109){this['model']['getComment'](_0x713303)['update']({'content':_0x304109});}['removeComment'](_0x44efae){this['model']['getComment'](_0x44efae)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x463144,_0x377d47,_0x2b5c9c){const t=_0x463144['t'];switch(_0x377d47){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'},_0x2b5c9c);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'},_0x2b5c9c);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'},_0x2b5c9c);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'},_0x2b5c9c);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x2b5c9c);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'},_0x2b5c9c);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'},_0x2b5c9c);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'},_0x2b5c9c);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 is extends _0x2673a1{['main'];['editable'];constructor(_0x53a0e3,_0x4cb735){super(_0x53a0e3);const _0x1e2539=_0x29df72();this['main']=this['createCollection'](),this['editable']=new _0x48f58c(_0x53a0e3,_0x4cb735,void 0x0,{'label':()=>N(_0x53a0e3,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x53a0e3['uiLanguageDirection'],'lang':_0x53a0e3['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x1e2539},'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 ri extends ts{['view'];constructor(_0x4d5d50){super(_0x4d5d50),this['view']=new is(_0x4d5d50['locale'],_0x4d5d50['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x44f1f3=this['editor']['editing']['view'],_0x377d5c=this['view']['editable'],_0x271f18=_0x44f1f3['document']['getRoot']();_0x377d5c['name']=_0x271f18['rootName'],this['view']['render']();const _0x97c9bd=_0x377d5c['element'];this['setEditableElement'](_0x377d5c['name'],_0x97c9bd),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x44f1f3['attachDomRoot'](_0x97c9bd),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const gi=[_0x41fefe,_0x4c1ebe,_0x33bc93,_0x466236,_0xae3d92,_0x520430,_0x17c1d1];class Bt extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x457f69(_0x464974){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>gi)());constructor(_0x458095={}){function _0x10406e(_0xdf9762){return _0xdf9762['map'](_0x4cfdc3=>String['fromCharCode'](_0x4cfdc3))['join']('');}(_0x458095=Object['assign']({},_0x458095))['plugins']||(_0x458095['plugins']=Bt['defaultPlugins']),super(_0x458095),this['ui']=new ri(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x10406e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10406e([0x76,0x69,0x65,0x77])][_0x10406e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10406e([0x61,0x75,0x74,0x6f]),this[_0x10406e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x10406e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10406e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x10406e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x10406e([0x6f,0x6b])});}['create'](){const _0xfe84b8=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0xfe84b8))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x54a6d1=>{const _0x1d8640=this['model']['document']['getRoot'](),_0x5e2837=_0x1d8640&&_0x1d8640['getChild'](_0x1d8640['childCount']-0x1);_0x54a6d1['setSelection'](_0x5e2837,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x14c6ab=this['editing']['view'],_0x4b2633=_0x14c6ab['document']['getRoot'](),_0x17503d=_0x4b2633['getChild'](0x0);_0x4b2633['childCount']>0x1||!_0x17503d||'p'!=_0x17503d['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(_0xbd9234(_0x14c6ab,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x17503d['placeholder']=this['placeholder']),_0x4e3bb8({'view':_0x14c6ab,'element':_0x17503d,'keepOnFocus':!0x0}),this['placeholderElement']=_0x17503d);}}class St extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x3a9062,_0xf73ad4={}){super(_0x3a9062),this['editor']=null,this['_editorConfig']=_0xf73ad4,this['set']('value',_0xf73ad4['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x3a9062,'Reply...')),this['set']('submitLabel',N(_0x3a9062,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x529579(),this['focusCycler']=new _0x1fd229({'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',(_0x26c9c5,_0x2738d1)=>{this['cancelButtonView']['fire']('execute'),_0x2738d1();}),this['keystrokes']['set']('Ctrl+Enter',(_0x3137f8,_0x3e84ac)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x3e84ac());}),this['on']('submit',(_0x53bcb4,_0x4ed968)=>{_0x4ed968['length']>0xfde8?(alert(N(_0x3a9062,'TOO_LONG_COMMENT_ALERT',[_0x4ed968['length'],0xfde8])),_0x53bcb4['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Bt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x532def=this['editor'];this['element']['insertBefore'](_0x532def['ui']['element'],this['element']['firstChild']),_0x532def['model']['document']['on']('change',()=>this['value']=_0x532def['getData']()),_0x532def['bind']('placeholder')['to'](this),this['focusables']['add'](_0x532def['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x2b3e23){-0x1===_0x2b3e23?(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:_0x4b9674}=this,_0x3ee6b2=new _0x37ddc6(_0x4b9674);return _0x3ee6b2['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x3ee6b2['withText']=!0x0,_0x3ee6b2['bind']('label')['to'](this,'submitLabel'),_0x3ee6b2['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x3ee6b2['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x3d9536,_0x2a02e4)=>!_0x2a02e4&&!!_0x3d9536['trim']()),_0x3ee6b2;}['_createCancelButton'](){const {locale:_0x519ca7}=this,_0x570b4c=new _0x37ddc6(_0x519ca7);return _0x570b4c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x570b4c['label']=N(_0x519ca7,'Cancel'),_0x570b4c['withText']=!0x0,_0x570b4c['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x570b4c;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x139001=>{this['focusTracker']['add'](_0x139001['element']);}),this['focusables']['on']('change',(_0x32da31,_0x3f51f1)=>{for(const _0x270a1b of Array['from'](_0x3f51f1['added'])['reverse']())this['focusTracker']['add'](_0x270a1b['element']);});}}class ie extends kt{constructor(_0x4874f9,_0x23111c,_0x42ba92){super(_0x4874f9),this['commentInputView']=new St(_0x4874f9,_0x42ba92),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x589dc2,_0x5cf40f)=>_0x589dc2||!!_0x5cf40f),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 Ft(_0x4874f9,_0x23111c),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'](_0x157a71){this['commentInputView']['focus'](_0x157a71);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x57828e,_0x4a8a81)=>{const {submitButtonView:_0x429424,cancelButtonView:_0x2b3ec4,editor:_0x180b6e}=this['commentInputView'];[_0x429424['element'],_0x2b3ec4['element'],_0x180b6e?_0x180b6e['editing']['view']['getDomRoot']():null]['filter'](_0x10b213=>_0x10b213)['some'](_0x5b7d69=>_0x5b7d69['contains'](_0x4a8a81['target']))||(this['focus'](),_0x4a8a81['preventDefault']());});}}class Kt extends kt{constructor(_0x29f631){super(_0x29f631);const _0x51e128=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x51e128['to']('count',_0xebac98=>N(_0x29f631,'NUMBER_OF_COMMENTS',_0xebac98))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x18db71,_0x3b8019,_0x48c93f){super(_0x18db71);const _0xc783b5=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x3b8019['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x3b8019,this['_config']=_0x48c93f,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x529579(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1fd229({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x314bfb=>this['commentViews']['map'](_0x231910=>_0x231910['element'])['includes'](_0x314bfb['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new Kt(_0x18db71),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x1120e6=>_0x1120e6-this['_config']['maxCommentsWhenCollapsed']);for(const _0x3f2b8e of _0x3b8019['comments'])this['_handleNewCommentModel'](_0x3f2b8e);this['_handleInfoComment'](),this['listenTo'](_0x3b8019['comments'],'add',(_0x33abcf,_0x5a5168)=>{const _0x20e96e=this['_calculatePosition'](_0x5a5168);this['length']++,this['_handleNewCommentModel'](_0x5a5168,_0x20e96e),this['refreshVisibleViews']();}),this['listenTo'](_0x3b8019['comments'],'remove',(_0x261263,_0x56a32c)=>{this['length']--,this['_handleRemoveCommentModel'](_0x56a32c),this['refreshVisibleViews']();}),this['listenTo'](_0x3b8019,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x3b8019,'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',_0xc783b5['if']('length','ck-hidden',_0x4a6b05=>!_0x4a6b05)],'aria-label':N(_0x18db71,'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'](_0x24b7e3){-0x1===_0x24b7e3?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x2bb23f of this['commentViews'])_0x2bb23f['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x51219e,_0x1c3437){const _0x5bf91b=new this['_config']['CommentView'](this['locale'],_0x51219e,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x5bf91b['viewUid']=_0x51219e['id'],_0x5bf91b['delegate']('removeComment')['to'](this),_0x5bf91b['delegate']('updateComment')['to'](this),_0x5bf91b['delegate']('resolveCommentThread')['to'](this),_0x5bf91b['delegate']('editorReady')['to'](this),_0x5bf91b['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x5bf91b,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x5bf91b,_0x1c3437);}['_calculatePosition'](_0x1b15c3){const _0x3b7f61=this['_model']['_findOptimalIndex'](_0x1b15c3);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x1b15c3['authoredAt']?_0x3b7f61-0x1:_0x3b7f61:_0x3b7f61-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x379e07={'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'],_0x379e07,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x379e07));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x5e82e4){const _0x3b3ba2=this['commentViews']['remove'](_0x5e82e4['id']);this['stopListening'](_0x3b3ba2),_0x3b3ba2['isEditMode']&&this['_updateHasDirtyComment'](),_0x3b3ba2['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x46d676=>_0x46d676['isEditMode']);}['_rearrangeCollapse'](){const _0x58f458=function(_0x4501c4){const _0x31da27=new _0x214515();for(const _0x4e5e3b of _0x4501c4)_0x31da27['add'](_0x4e5e3b);return _0x31da27;}(this['commentViews']),_0x2304a7=this['_collapsedCommentsView']['count'];for(let _0xea42ed=0x1;_0xea42ed<=_0x2304a7;_0xea42ed++)_0x58f458['remove'](0x1);for(const _0x2602f8 of _0x58f458)_0x2602f8['collapse']();_0x2304a7>0x0&&_0x58f458['add'](this['_collapsedCommentsView'],0x1),Ut(qt(Array['from'](this['visibleViews']),Array['from'](_0x58f458)),this['visibleViews'],_0x58f458);}['_rearrangeExpand'](){Ut(qt(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1a12ea of this['visibleViews'])_0x1a12ea['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x56a67f=>{this['focusTracker']['add'](_0x56a67f['element']),this['keystrokes']['listenTo'](_0x56a67f['element']);}),this['commentViews']['on']('change',(_0x493117,_0x57c279)=>{for(const _0x5c22cd of _0x57c279['removed'])this['focusTracker']['remove'](_0x5c22cd['element']),this['keystrokes']['stopListening'](_0x5c22cd['element']);for(const _0x43c472 of Array['from'](_0x57c279['added'])['reverse']())this['focusTracker']['add'](_0x43c472['element']),this['keystrokes']['listenTo'](_0x43c472['element']);});}}function Ut(_0x556073,_0x5b4e7a,_0x44f684){let _0x473c7d=0x0;for(const _0x5bd5aa of _0x556073)switch(_0x5bd5aa){case'insert':_0x5b4e7a['add'](_0x44f684['get'](_0x473c7d),_0x473c7d),_0x473c7d++;break;case'delete':_0x5b4e7a['remove'](_0x473c7d);break;case'equal':_0x473c7d++;}}class zt extends kt{constructor(_0x2144ab){super(_0x2144ab);const _0x5a4785=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x5a4785['to']('contextValue',_0x9d4140=>N(_0x2144ab,'THREAD_CONTEXT_LABEL',_0x9d4140)),'tabindex':-0x1},'children':[{'text':_0x5a4785['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Rt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5c78e6,_0x65a55b){super(_0x5c78e6);const _0x41a4db=this['bindTemplate'];this['_model']=_0x65a55b,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x529579(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1fd229({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x452bcb=>!!_0x452bcb),this['bind']('contextValue')['to'](this['_model'],'context',_0x3e3d5e=>_0x3e3d5e&&_0x3e3d5e['value']?this['_trimContextValue'](_0x3e3d5e['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',_0x41a4db['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 _0x3412ed=new _0x37ddc6(this['locale']);return _0x3412ed['label']=N(this['locale'],'Reopen'),_0x3412ed['tooltip']=N(this['locale'],'Reopen'),_0x3412ed['icon']=Gt,_0x3412ed['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x445181=>!_0x445181),_0x3412ed['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0xd3ed88,_0x5f27ea)=>_0xd3ed88&&_0x5f27ea),_0x3412ed['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x3412ed;}['_trimContextValue'](_0x3d0fa0){if(_0x3d0fa0['length']<0x96)return _0x3d0fa0;const _0x58bf07=_0x3d0fa0['lastIndexOf']('\x20',0x93);return _0x3d0fa0['substring'](0x0,_0x58bf07>-0x1?_0x58bf07:0x93)+'...';}['_attachContextActions'](){const _0x3aef48=this['element']['querySelector']('.ck-context'),_0xa334f5=_0x3aef48['querySelector']('.ck-context__value');this['listenTo'](_0x3aef48,'mouseenter',()=>{_0xa334f5['offsetWidth']<_0xa334f5['scrollWidth']&&_0x3aef48['classList']['add']('overlay');}),this['listenTo'](_0x3aef48,'mouseleave',()=>{_0x3aef48['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x5d62a3 of this['focusables'])this['focusTracker']['add'](_0x5d62a3['element']),this['keystrokes']['listenTo'](_0x5d62a3['element']);}['_createContextView'](){const _0x3f0f54=new zt(this['locale']);return _0x3f0f54['bind']('contextValue')['to'](this),_0x3f0f54;}}class Yt extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x29753b,_0x68950b,_0x2aa1ba,_0x1999e1){super(_0x29753b),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x68950b,this['_localUser']=_0x2aa1ba,this['_config']=_0x1999e1,this['commentThreadHeaderView']=new Rt(_0x29753b,_0x68950b),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Et(_0x29753b,N(_0x29753b,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x29753b,_0x68950b,Object['assign']({'CommentView':this['_config']['CommentView']},_0x1999e1)),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',(_0x1ca1bc,_0xe51ff7)=>_0x1ca1bc||!!_0xe51ff7),this['bind']('isUnlinked')['to'](_0x68950b,'unlinkedAt',_0x94c7dd=>!!_0x94c7dd),this['bind']('ariaLabel')['to'](this,'length',_0x3082d4=>{const _0x4a7137=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x3082d4,_0x4a7137]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x529579(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1fd229({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x50c008=>_0x50c008['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Vt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x483920=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x31da98=_0x483920['commentInputView'];return _0x483920['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x31da98,'value',(_0x5c51a0,_0x1ff462,_0x4fa44e,_0x3adb2c,_0xb04297)=>!!_0xb04297||!!_0x3adb2c&&_0x4fa44e&&!_0x1ff462||_0x5c51a0&&_0x4fa44e&&!_0x1ff462),_0x31da98['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x124380,_0x2be660,_0x256985)=>{let _0x3b7e58;return _0x3b7e58=_0x256985&&_0x2be660?'Reply\x20to\x20reopen\x20discussion...':_0x124380?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x3b7e58);}),_0x31da98['bind']('submitLabel')['to'](this,'length',_0x5cd5ce=>N(this['locale'],_0x5cd5ce?'Reply':'Comment')),_0x31da98['on']('submit',(_0xbf80a9,_0x14f20e)=>{this['fire']('addComment',_0x14f20e),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x31da98['on']('cancel',()=>{this['focus']();}),_0x31da98['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x31da98['on']('cancel',_0x217a98=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x217a98['stop']());}),this['on']('change:isActive',(_0x31eeac,_0xeb5874,_0xe82549)=>{_0xe82549||this['length']||_0x31da98['value']||this['fire']('removeCommentThread');}),_0x483920;}}class gt extends/* #__PURE__ -- @preserve */
|
|
27
|
+
$t(Yt){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x26a56b,_0x137f0a,_0x2f5ebc,_0x191cb7){super(_0x26a56b,_0x137f0a,_0x2f5ebc,_0x191cb7),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x26a56b,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x52edab,_0x24f844,_0x90ad40)=>{_0x90ad40||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4ee490,_0x2f97c2,_0x241206)=>{_0x241206&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x197b2d=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x197b2d['if']('isActive','ck-thread--active'),_0x197b2d['if']('isUnlinked','ck-thread--unlinked'),_0x197b2d['if']('isConfirm','ck-thread--remove-confirmation'),_0x197b2d['to']('actionIndicator',_0x8fbc5b=>_0x8fbc5b?'ck-thread--'+_0x8fbc5b:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x197b2d['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 _0x1facea of this['commentsListView']['commentViews'])_0x1facea['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x5b5449}=this,_0x509b8c=this['commentsListView']['commentViews']['get'](0x0);_0x509b8c===this['_boundFirstCommentView']||_0x509b8c['isSystemComment']||(this['_boundFirstCommentView']=_0x509b8c,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x509b8c,'actionIndicator',_0x556c8b=>'remove'===_0x556c8b?'remove':null),_0x509b8c['placeholder']=N(_0x5b5449,'Write\x20a\x20comment...'),_0x509b8c['removeButton']['on']('execute',_0x57828d=>{_0x57828d['stop'](),this['showConfirm'](N(_0x5b5449,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x509b8c['focus']();}),_0x509b8c['actionBar']['add'](this['resolveButton'],0x0),_0x509b8c['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x316338=new Jt(this['locale']);return _0x316338['label']=N(this['locale'],'Resolve'),_0x316338['tooltip']=N(this['locale'],'Resolve'),_0x316338['icon']=Qt,_0x316338['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x316338['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x4f0e15=>!_0x4f0e15),_0x316338['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2c874e,_0xba4ed1)=>_0x2c874e&&!_0xba4ed1),_0x316338['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x316338;}['_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 Xt extends kt{constructor(_0xe84f06){super(_0xe84f06),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x486657,_0x6614dc,_0x3ed2be)=>{this['element']['innerHTML']=_0x3ed2be;}),this['element']['innerHTML']=this['content'];}}class ci extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1dde9a,_0x42b127,_0x403d93){super(_0x1dde9a),this['_model']=_0x42b127,this['_config']=_0x403d93,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x42b127,'content',_0x42b127,'authoredAt',(_0x392125,_0x4b93ef)=>N(_0x1dde9a,'COMMENT_ARIA_LABEL',[_0x42b127['author']['name'],_0x403d93['formatDateTime'](_0x4b93ef),new DOMParser()['parseFromString'](_0x392125,'text/html')['body']['textContent'],_0x42b127['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Et(_0x1dde9a,N(_0x1dde9a,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x15d44a(),this['focusTracker']=new _0x529579(),this['keystrokes']=new jt(),this['focusCycler']=new _0x1fd229({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x13d77a=>_0x13d77a['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 _0x2de2b=new Xt(this['locale']);return _0x2de2b['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x53607b,_0x1f492c)=>_0x1f492c?Lt(_0x53607b,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x53607b),_0x2de2b;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x5eb661=new St(this['locale'],this['_config']['editorConfig']);return _0x5eb661['value']=this['_model']['content'],_0x5eb661['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x5eb661['submitLabel']=N(this['locale'],'Save'),_0x5eb661['on']('submit',(_0x2f3eec,_0x55dde0)=>{this['fire']('updateComment',this['_model']['id'],_0x55dde0),this['switchToDisplayMode'](),this['focus']();}),_0x5eb661['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x5eb661['once']('editorReady',()=>{_0x5eb661['focus']();}),_0x5eb661['createEditor'](),_0x5eb661['delegate']('editorReady')['to'](this),_0x5eb661['delegate']('editorDestroyed')['to'](this),_0x5eb661;}['_setupKeyboardNavigation'](){const _0x4c8441=this['element'];this['keystrokes']['listenTo'](_0x4c8441);for(const _0x59b5e1 of this['focusables'])this['focusTracker']['add'](_0x59b5e1['element']),this['keystrokes']['listenTo'](_0x59b5e1['element']);this['focusables']['on']('change',(_0x24e2fb,_0x29400c)=>{for(const _0x996419 of _0x29400c['removed'])this['focusTracker']['remove'](_0x996419['element']),this['keystrokes']['stopListening'](_0x996419['element']);for(const _0x40f5d6 of _0x29400c['added'])this['focusTracker']['add'](_0x40f5d6['element']),this['keystrokes']['listenTo'](_0x40f5d6['element']);}),this['keystrokes']['set']('enter',(_0x3e0ce2,_0x4f8307)=>{_0x4c8441===_0x3e0ce2['target']&&(this['focusCycler']['focusFirst'](),_0x4f8307());}),this['keystrokes']['set']('esc',(_0x4d77f4,_0x3de126)=>{_0x4c8441!==_0x4d77f4['target']&&(this['focus'](),_0x3de126());});}}class Tt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
$t(ci){['actionBar'];['userView'];constructor(_0x7c82a,_0x205f5b,_0x4df1f5){super(_0x7c82a,_0x205f5b,_0x4df1f5),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x7c82a,'Reply...')),this['bind']('authoredAt')['to'](_0x205f5b),this['bind']('resolvedAt')['to'](_0x205f5b),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 Ft(_0x7c82a,_0x205f5b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x205f5b,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x43d0d4=this['bindTemplate'],_0x363887=[{'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':_0x43d0d4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x43d0d4['to']('authoredAt',_0x4ec48a=>this['_config']['formatDateTime'](_0x4ec48a))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x43d0d4['if']('isEditMode','ck-comment__actions--hidden'),_0x43d0d4['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']&&_0x363887['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x43d0d4['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x43d0d4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x43d0d4['if']('isEditMode','ck-comment--edit'),_0x43d0d4['if']('isSystemComment','ck-comment--info'),_0x43d0d4['to']('actionIndicator',_0x2e7b7a=>_0x2e7b7a?'ck-comment--'+_0x2e7b7a:'')],'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':_0x363887}]}]};}['_createEditButton'](){const _0x2c679b=new _0x37ddc6(this['locale']);return _0x2c679b['label']=N(this['locale'],'Edit'),_0x2c679b['icon']=ti,_0x2c679b['withText']=!0x0,_0x2c679b['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2c679b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x49a68a=>!_0x49a68a),_0x2c679b['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2c679b['on']('execute',()=>this['switchToEditMode']()),_0x2c679b;}['_createRemoveButton'](){const _0x33526d=new _0x37ddc6(this['locale']);return _0x33526d['label']=N(this['locale'],'Remove'),_0x33526d['icon']=Zt,_0x33526d['withText']=!0x0,_0x33526d['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x33526d['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x147081=>!_0x147081),_0x33526d['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x33526d['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x33526d;}['_createDropdown'](){const _0x44d71b=_0x4aa4a0(this['locale'],_0x3fec06),_0x457101=_0x44d71b['panelView']['children'],_0x39d398=new _0x18860f(this['locale']),_0x509331=_0x44d71b['bindTemplate'];_0x11ba4d(_0x44d71b,()=>this['items']['find'](_0x462d19=>_0x462d19['isVisible'])),_0x44d71b['extendTemplate']({'attributes':{'class':[_0x509331['if']('isVisible','ck-hidden',_0x2417c2=>!_0x2417c2)]}});const _0x4a667e=(_0x1868c7,_0x4840eb=-0x1)=>{const _0x52096e=new _0x157730(this['locale']);_0x52096e['children']['add'](_0x1868c7);const _0x498e92=_0x4840eb>-0x1?_0x4840eb:_0x39d398['items']['length'];_0x39d398['items']['add'](_0x52096e,_0x498e92);const _0x1d61e6=Array['from'](this['items']);_0x44d71b['unbind']('isEnabled','isVisible'),_0x44d71b['bind']('isEnabled')['toMany'](_0x1d61e6,'isEnabled',(..._0x2fab70)=>_0x2fab70['some'](_0x4f2d55=>_0x4f2d55)),_0x44d71b['bind']('isVisible')['toMany'](_0x1d61e6,'isVisible',(..._0x202222)=>_0x202222['some'](_0x25d2f7=>_0x25d2f7));};_0x44d71b['panelPosition']='sw',_0x44d71b['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x35dbda});for(const _0xdba9ca of this['items'])_0x4a667e(_0xdba9ca);return _0x457101['add'](_0x39d398),_0x44d71b['listenTo'](this['items'],'add',(_0x236ecd,_0x24aed1,_0x5d9675)=>{_0x4a667e(_0x24aed1,_0x5d9675);}),_0x44d71b['listenTo'](this['items'],'remove',(_0x5133ee,_0x1c824c,_0x1d790a)=>{_0x39d398['items']['remove'](_0x1d790a);}),_0x44d71b;}['_attachActions'](_0x3a3160,_0x2df88f){const _0x1c05f6=_0x3a3160&&_0x3a3160['element'];_0x1c05f6&&(this['listenTo'](_0x1c05f6,'mouseenter',()=>this['actionIndicator']=_0x2df88f),this['listenTo'](_0x1c05f6,'focus',()=>this['actionIndicator']=_0x2df88f),this['listenTo'](_0x1c05f6,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x1c05f6,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xff3855=super['_createCommentInputView']();return _0xff3855['bind']('placeholder')['to'](this),_0xff3855;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x2db823){const _0x494d0e=Dt(_0x2db823,0x1e),_0x35e647=new MutationObserver(_0x4f2c84=>{for(const _0x114681 of _0x4f2c84)('attributes'==_0x114681['type']&&'class'==_0x114681['attributeName']||'childList'==_0x114681['type']||'characterData'==_0x114681['type'])&&_0x494d0e();});return{'attach'(_0x24da9e){_0x35e647['observe'](_0x24da9e,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x35e647['disconnect'](),_0x494d0e['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x303d81,_0x354abb){super(_0x303d81),this['id']=_0x29df72(),this['focusTracker']=new _0x529579(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x4fbf94,_0x5c1289)=>this['fire']('Esc',_0x5c1289)),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'](_0x354abb),this['mainView']=_0x354abb;const _0xc8ab97=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0xc8ab97['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 _0x59ce41=this['element']['clientHeight'];_0x59ce41&&(this['height']=_0x59ce41);}}class T extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x457f69(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x32688d,target:_0x152824,type:_0x36d9ed,isVisible:_0x29d4c1=!0x0}){super(),this['view']=_0x32688d,this['view']['element']||this['view']['render'](),this['_type']=_0x36d9ed,this['_target']=_0x152824,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x214515([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x39876a,_0x4c499f)=>{this['view']['focusTracker']['add'](_0x4c499f);}),this['focusableElements']['on']('remove',(_0xe1040b,_0x507b44)=>{this['view']['focusTracker']['remove'](_0x507b44);}),this['set']('isVisible',_0x29d4c1);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x380f5b=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x380f5b),_0x380f5b;}get['targetRect'](){const _0x30a66c=this['target'];if(null===_0x30a66c)return null;if(_0x30a66c instanceof _0x305cf4)return _0x30a66c;const _0x3f15e7=_0x30a66c['filter'](_0x43a97e=>function(_0x45ae7a){const _0xab45f0=_0x45ae7a['offsetParent'];if(_0xab45f0)return!0x0;const _0x9f9097=_0x45ae7a['getClientRects']()['item'](0x0);return!!_0x9f9097;}(_0x43a97e));return 0x0===_0x3f15e7['length']?null:new _0x305cf4(_0x3f15e7[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x45b7d1){this['view']['isActive']=_0x45b7d1,this['view']['mainView']['isActive']=_0x45b7d1;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x43df4c){if(!(null===_0x43df4c||_0x43df4c instanceof _0x305cf4||Array['isArray'](_0x43df4c)&&_0x43df4c['every'](_0x36d026=>Ai(_0x36d026))))throw new _0xc716c1('annotation-invalid-target',null,{'target':_0x43df4c});}['_getNormalizedTarget'](){const _0x2eded5='function'==typeof this['_target']?this['_target']():this['_target'];return Ai(_0x2eded5)?[_0x2eded5]:_0x2eded5;}}function Ai(_0x287200){return null!==_0x287200&&'object'==typeof _0x287200&&'nodeType'in _0x287200&&0x1===_0x287200['nodeType'];}class S extends _0x214515{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x3d58b9=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x529579(),this['_focusTracker']['on']('change:isFocused',(_0x43f842,_0x238a49,_0x4c89fa)=>{_0x4c89fa||this['fire']('blur');});for(const _0x24419e of _0x3d58b9)this['add'](_0x24419e);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x3e8575){if(this['has'](_0x3e8575))throw new _0xc716c1('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x3e8575['innerView'],_0x3e8575),this['_viewToAnnotation']['set'](_0x3e8575['view'],_0x3e8575);for(const _0x22a8ef of _0x3e8575['focusableElements'])this['_focusTracker']['add'](_0x22a8ef);this['listenTo'](_0x3e8575['focusableElements'],'add',(_0x3d994e,_0x518fa4)=>{this['_focusTracker']['add'](_0x518fa4);}),this['listenTo'](_0x3e8575['focusableElements'],'remove',(_0x1a50d1,_0x3ae8f8)=>{this['_focusTracker']['remove'](_0x3ae8f8);}),this['listenTo'](_0x3e8575['view']['focusTracker'],'change:isFocused',(_0x11eeac,_0x2125b3,_0x223140)=>{_0x223140&&this['fire']('focus',_0x3e8575);}),_0x3e8575['updateTargetRect']();const _0x140955=this['_getOrderInContent'](_0x3e8575['view']['targetRect']);return super['add'](_0x3e8575,_0x140955);}['remove'](_0x57587f){if(!this['has'](_0x57587f))throw new _0xc716c1('annotationcollection-not-existing-item',null);this['stopListening'](_0x57587f['view']['focusTracker']),this['stopListening'](_0x57587f['focusableElements']);for(const _0xbf186f of _0x57587f['focusableElements'])this['_focusTracker']['remove'](_0xbf186f);return this['_viewToAnnotation']['delete'](_0x57587f['view']),this['_innerViewToAnnotation']['delete'](_0x57587f['innerView']),super['remove'](_0x57587f);}['getByInnerView'](_0x3f8f76){return this['_innerViewToAnnotation']['get'](_0x3f8f76);}['getByView'](_0x1b5c72){return this['_viewToAnnotation']['get'](_0x1b5c72);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1c8d39 of this)_0x1c8d39['updateTargetRect']();this['_sort']();}['_sort'](){const _0x5704fc=Array['from'](this)['sort']((_0x2b7a93,_0x329a80)=>w(_0x2b7a93['view']['targetRect'],_0x329a80['view']['targetRect']));for(let _0x5ea485=_0x5704fc['length']-0x1;_0x5ea485>0x0;_0x5ea485--){const _0x455e13=_0x5704fc[_0x5ea485];_0x5ea485!==this['getIndex'](_0x455e13)&&(this['remove'](_0x455e13),this['add'](_0x455e13));}}['_getOrderInContent'](_0x2c9e3d){let _0x3b1b8e=0x0;if(!_0x2c9e3d)return this['length'];for(const _0x1701c9 of this){const _0x1fe96b=_0x1701c9['view']['targetRect'];if(_0x1fe96b){if(w(_0x2c9e3d,_0x1fe96b)<0x0)return _0x3b1b8e;_0x3b1b8e++;}}return _0x3b1b8e;}}function v({source:_0x500d07,target:_0x4e992f,filter:_0x47d32c}){for(const _0x216976 of _0x500d07)_0x47d32c(_0x216976)&&_0x4e992f['add'](_0x216976);_0x4e992f['listenTo'](_0x500d07,'add',(_0x4c8722,_0x2cc941)=>{_0x47d32c(_0x2cc941)&&_0x4e992f['add'](_0x2cc941);}),_0x4e992f['listenTo'](_0x500d07,'remove',(_0x390230,_0x46d0df)=>{_0x4e992f['has'](_0x46d0df)&&_0x4e992f['remove'](_0x46d0df);});}function w(_0xd630d1,_0x146fd4){if(null===_0xd630d1&&null===_0x146fd4)return 0x0;if(null===_0xd630d1)return-0x1;if(null===_0x146fd4)return 0x1;const _0x49d5ff=_0xd630d1['top']-_0x146fd4['top'];return 0x0==_0x49d5ff?_0xd630d1['left']-_0x146fd4['left']:_0x49d5ff;}class y extends _0x3e241b{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bc99c){if(super(_0x2bc99c),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2bc99c instanceof _0x464974){const _0x1df173=_0x2bc99c['locale'];_0x2bc99c['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x1df173,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x1df173,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x1df173,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x1df173,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x1df173,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x1df173,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x1df173,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x305b82){this['collection']['add'](_0x305b82);}['remove'](_0x2fb56a){this['collection']['remove'](_0x2fb56a),_0x2fb56a['destroy']();}['refreshVisibility'](){for(const _0x1fe557 of this['collection'])_0x1fe557['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x3a0082){return this['collection']['getByInnerView'](_0x3a0082);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x30aedd of this['collection'])_0x30aedd['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x22f346){this['fire']('_activateAnnotation',_0x22f346);}['createAnnotation'](_0x2ceb13){return new T(_0x2ceb13);}['createAnnotationView'](_0x930b46,_0x231da8){return new E(_0x930b46,_0x231da8);}['_addActiveAnnotation'](_0x24794f){const _0x4acc77=new Set(this['activeAnnotations']);_0x4acc77['add'](_0x24794f),this['activeAnnotations']=_0x4acc77;}['_removeActiveAnnotation'](_0x5421e6){const _0x31975=new Set(this['activeAnnotations']);_0x31975['delete'](_0x5421e6),this['activeAnnotations']=_0x31975;}['_bindAnnotationsToVisibleAnnotations'](){const _0xf0990b=this['collection'],_0x333e21=this['_visibleAnnotations'];function _0x3ac22c(_0x16ca60){const _0x25c20d=_0x16ca60['source'];_0x25c20d['isVisible']&&!_0x333e21['has'](_0x25c20d)?_0x333e21['add'](_0x25c20d):!_0x25c20d['isVisible']&&_0x333e21['has'](_0x25c20d)&&_0x333e21['remove'](_0x25c20d),_0x25c20d['view']['focusTracker']['remove'](_0x25c20d['view']['element']),_0x25c20d['view']['focusTracker']['add'](_0x25c20d['view']['element']);}this['listenTo'](_0xf0990b,'add',(_0x34b188,_0x3ab2f2)=>{_0x3ab2f2['isVisible']&&_0x333e21['add'](_0x3ab2f2),this['listenTo'](_0x3ab2f2,'change:isVisible',_0x3ac22c);}),this['listenTo'](_0xf0990b,'remove',(_0x22f1d6,_0x34112e)=>{_0x333e21['has'](_0x34112e)&&_0x333e21['remove'](_0x34112e),this['stopListening'](_0x34112e,'change:isVisible',_0x3ac22c);});}['_setupEnterAnnotationKeystroke'](){const _0x1eead4=_0x1469c9=>{_0x1469c9['on']('ready',()=>{_0x1469c9['keystrokes']['set'](_0x4c09c6,(_0x5d8cea,_0xb915b6)=>{const _0x256bed=_0x3a1931(this['activeAnnotations']['values']());_0x256bed&&(_0x256bed['view']['focus'](),_0xb915b6());});});};this['context']instanceof _0x464974?_0x1eead4(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x268ab1,_0x5eada1)=>{_0x1eead4(_0x5eada1);});}['_setupEscapeAnnotationHandling'](){const _0x5de2f2=_0x329ee2=>{const _0x11af70=_0x329ee2['source'],_0x3fcc4d=[];let _0x114a2d;if(Array['isArray'](_0x11af70['target'])){_0x114a2d=_0x11af70['target'][0x0],this['context']instanceof _0x464974?_0x3fcc4d['push'](this['context']):this['context']['editors']&&_0x3fcc4d['push'](...this['context']['editors']);for(const _0x233248 of _0x3fcc4d)for(const _0x53654a of _0x233248['editing']['view']['domRoots']['values']())if(_0x53654a['contains'](_0x114a2d))return void _0x233248['editing']['view']['focus']();_0x114a2d['focus']();}};this['listenTo'](this['collection'],'add',(_0x5179d6,_0x4eb47)=>{this['listenTo'](_0x4eb47,'escape',_0x5de2f2,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x52fb77,_0x26e397)=>{this['stopListening'](_0x26e397,'escape',_0x5de2f2);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x3e241b{['_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(_0x3cd3f6){super(_0x3cd3f6),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0xacadc4=this['context']['config'];_0xacadc4['define']('comments.maxCommentsWhenCollapsed',0x2),_0xacadc4['define']('comments.maxThreadTotalWeight',0x1f4),_0xacadc4['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0xacadc4['define']('comments.CommentThreadView',gt),_0xacadc4['define']('comments.CommentView',Tt),_0xacadc4['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x5db853=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x793f89,_0x28dc02)=>this['_addCommentThread'](_0x28dc02)),this['on']('submitCommentThread',(_0x125f23,_0x358787)=>this['_submitCommentThread'](_0x358787)),this['on']('resolveCommentThread',(_0x332a90,_0x1e64fa)=>this['_resolveCommentThread'](_0x1e64fa)),this['on']('resolveCommentThread',(_0x3bb6d5,_0x511f3d)=>this['_updateActiveAnnotation'](_0x511f3d),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x55c0aa,_0x457183)=>this['_reopenCommentThread'](_0x457183)),this['on']('reopenCommentThread',(_0x2c7a33,_0x43c4a7)=>this['_updateActiveAnnotation'](_0x43c4a7),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x2a721f,_0x3a7744)=>this['_removeCommentThread'](_0x3a7744)),this['on']('updateCommentThread',(_0x4bc62b,_0x1837f9)=>this['_updateCommentThread'](_0x1837f9)),this['on']('updateCommentThread',(_0x1e76ee,_0x5c6e75)=>this['_updateActiveAnnotation'](_0x5c6e75),{'priority':'lowest'}),this['on']('addComment',(_0x1a8006,_0x33eeb2)=>this['_addComment'](_0x33eeb2)),this['on']('updateComment',(_0x46a829,_0x2149c9)=>this['_updateComment'](_0x2149c9)),this['on']('removeComment',(_0x469b79,_0x490bd1)=>this['_removeComment'](_0x490bd1)),this['on']('addComment',(_0x86629d,{threadId:_0x523d8b,isFromAdapter:_0x3be36e})=>{if(_0x3be36e)return;const _0x56a2d5=this['getCommentThread'](_0x523d8b),_0xe58e56=_0x56a2d5&&this['_threadToController']['get'](_0x56a2d5);_0xe58e56&&_0xe58e56['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x5db853,'change:activeAnnotations',(_0x21d0c7,_0x39adf8,_0xcd2ff9)=>{const _0x648bc9=Array['from'](_0xcd2ff9)['map'](_0x33c651=>this['_viewToController']['get'](_0x33c651['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x648bc9?_0x648bc9['model']:null;});}set['adapter'](_0x49a180){if(this['_adapter'])throw new _0xc716c1('commentsrepository-adapter-already-set');this['_adapter']=_0x49a180;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x56fb13=_t,threadId:_0x59eea2=_0x29df72(),comments:_0x9f6f3f=[],unlinkedAt:_0x58b6ac=null,resolvedAt:_0xc62baa=null,resolvedBy:_0x1036a1=null,target:_0x20c93f=null,context:_0x42de23=null,attributes:_0x568781={},isResolvable:_0x33b4a0=!0x0,isSubmitted:_0x25cbcc=!0x1,isFromAdapter:_0x3e589e=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x56fb13),{'channelId':_0x56fb13,'threadId':_0x59eea2,'comments':_0x9f6f3f,'unlinkedAt':_0x58b6ac,'resolvedAt':_0xc62baa,'resolvedBy':_0x1036a1,'target':_0x20c93f,'context':_0x42de23,'attributes':_0x568781,'isFromAdapter':_0x3e589e,'isResolvable':_0x33b4a0,'isSubmitted':_0x25cbcc}),this['getCommentThread'](_0x59eea2);}['openNewCommentThread']({channelId:_0xb65da7=_t,threadId:_0x41c857=_0x29df72(),target:_0x341cba,context:_0x126581=null,isResolvable:_0x48ae89=!0x0}){if(this['_readOnlyChannels']['has'](_0xb65da7)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x341cba)throw new _0xc716c1('commentsrepository-missing-target');const _0x5d5f4e=this['addCommentThread']({'channelId':_0xb65da7,'threadId':_0x41c857,'target':_0x341cba,'context':_0x126581,'isResolvable':_0x48ae89});if(!_0x5d5f4e)return null;const _0x26b21c=this['_threadToController']['get'](_0x5d5f4e),_0x2b7a2f=_0x26b21c['view']['commentThreadInputView']['commentInputView'],_0x4775d7=this['context']['plugins']['get'](y),_0x344177=_0x4775d7['getByInnerView'](_0x26b21c['view']);return _0x4775d7['activate'](_0x344177),_0x2b7a2f['once']('editorReady',()=>_0x2b7a2f['focus']()),_0x5d5f4e;}['hasCommentThread'](_0x72aef5){if('string'!=typeof _0x72aef5)throw new _0xc716c1('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x72aef5);}['updateCommentThread']({channelId:_0x5ecb42=_t,threadId:_0x5733c7,context:_0x4c0cdf,unlinkedAt:_0x67d0f0,attributes:_0x25fd65,isFromAdapter:_0x1dd161=!0x1}){return this['fire'](Nt('updateCommentThread',_0x5ecb42),{'channelId':_0x5ecb42,'threadId':_0x5733c7,'context':_0x4c0cdf,'unlinkedAt':_0x67d0f0,'attributes':_0x25fd65,'isFromAdapter':_0x1dd161}),this['getCommentThread'](_0x5733c7);}['getCommentThread'](_0x46ed69){if('string'!=typeof _0x46ed69)throw new _0xc716c1('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x46ed69);}['fetchCommentThread']({channelId:_0x319dad,threadId:_0x5f17ed}={}){const _0x2b8768=this['getCommentThread'](_0x5f17ed);if(_0x2b8768)return Promise['resolve'](_0x2b8768);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0xc716c1('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x319dad,'threadId':_0x5f17ed})['then'](_0x2672e6=>this['hasCommentThread'](_0x5f17ed)?this['getCommentThread'](_0x5f17ed):_0x2672e6?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x319dad},_0x2672e6)):void 0x0)['catch'](_0x13e62b=>{throw console['error'](_0x13e62b),new _0xc716c1('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x31f661,skipNotAttached:_0x53af8c=!0x1,skipEmpty:_0x35c537=!0x1,toJSON:_0x249a5c=!0x1}={}){const _0x168c12=[];for(const _0x2756c4 of this['_threads']['values']())_0x31f661&&_0x2756c4['channelId']!==_0x31f661||_0x53af8c&&!_0x2756c4['isAttached']||_0x35c537&&0x0===_0x2756c4['length']||_0x168c12['push'](_0x2756c4);return _0x249a5c?_0x168c12['map'](_0x19573b=>_0x19573b['toJSON']()):_0x168c12;}['getAnnotationForCommentThread'](_0x3a3197){const _0x4d0b88=this['_threadToController']['get'](_0x3a3197);if(!_0x4d0b88)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x4d0b88['view'])||null;}['getCommentThreadForAnnotation'](_0x1bb729){const _0x2a3662=this['_viewToController']['get'](_0x1bb729['innerView']);return _0x2a3662?_0x2a3662['model']:null;}['setActiveCommentThread'](_0x4a39bd){const _0x4e8395=this['context']['plugins']['get'](y);if(!_0x4a39bd)return void(this['activeCommentThread']&&_0x4e8395['deactivateAll']());const _0x2f9554=this['getCommentThread'](_0x4a39bd);if(!_0x2f9554)throw new _0xc716c1('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4a39bd});if(!this['_threadToController']['has'](_0x2f9554))throw new _0xc716c1('commentsrepository-active-not-attached',null,{'threadId':_0x4a39bd});const _0x30010c=_0x4e8395['getByInnerView'](this['_threadToController']['get'](_0x2f9554)['view']);_0x4e8395['activate'](_0x30010c);}['switchReadOnly'](_0x356004,_0x4386e1){_0x356004?this['_readOnlyChannels']['add'](_0x4386e1):this['_readOnlyChannels']['delete'](_0x4386e1),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1d423e){return this['_readOnlyChannels']['has'](_0x1d423e)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x134708,_0x37112b){return new vt(_0x134708,_0x37112b);}['setPermissions'](_0xc87370,_0x2c0e33=_t){this['_permissions']['set'](_0x2c0e33,_0xc87370),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x33553f=_t){return this['_permissions']['has'](_0x33553f)?this['_permissions']['get'](_0x33553f):bt;}['_addCommentThread']({channelId:_0x1e6c04,threadId:_0x1f7e08,comments:_0x48475b,unlinkedAt:_0x288426,resolvedAt:_0x34da70,resolvedBy:_0x4420e6,target:_0x4fef66,context:_0x407cc7,attributes:_0x1a3aaf,isFromAdapter:_0x4be012,isResolvable:_0x480c96,isSubmitted:_0x32c77f}){if('string'!=typeof _0x1f7e08)throw new _0xc716c1('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1f7e08});if(this['hasCommentThread'](_0x1f7e08))throw new _0xc716c1('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x1f7e08});const _0x9219c=new Ti(this,{'channelId':_0x1e6c04,'id':_0x1f7e08,'context':_0x407cc7,'attributes':_0x1a3aaf,'unlinkedAt':_0x288426,'resolvedAt':_0x34da70,'resolvedBy':_0x4420e6?this['context']['plugins']['get'](it)['getUser'](_0x4420e6):null,'isResolvable':_0x480c96,'isSubmitted':_0x32c77f||_0x4be012});this['_threads']['set'](_0x1f7e08,_0x9219c);for(const _0x1eabfd of _0x48475b)_0x9219c['_add'](this['_createNewComment']({'threadId':_0x1f7e08,..._0x1eabfd}));return _0x4fef66&&_0x9219c['attachTo'](_0x4fef66),_0x4be012||!_0x9219c['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x1e6c04,'threadId':_0x1f7e08});}['_submitCommentThread']({channelId:_0x418d14,threadId:_0x4359fd}){if(!this['hasCommentThread'](_0x4359fd))throw new _0xc716c1('commentsrepository-missing-comment-thread',this);const _0x5de95c=this['getCommentThread'](_0x4359fd);if(_0x5de95c['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x119d2a,comments:_0x3413c0,resolvedAt:_0x57dd35,resolvedBy:_0xdbddb5,context:_0x3a2300,attributes:_0x261973}=_0x5de95c,_0x42ec40=this['context']['plugins']['get']('PendingActions'),_0x31c10f=_0x42ec40['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x418d14,'threadId':_0x119d2a,'comments':_0x3413c0['map'](_0x2ae8e9=>_0x2ae8e9['toJSON']()),'resolvedAt':_0x57dd35,'resolvedBy':_0xdbddb5?_0xdbddb5['id']:_0xdbddb5,'context':_0x3a2300,'attributes':_0x261973})['then'](({comments:_0x311585})=>{_0x42ec40['remove'](_0x31c10f);for(const _0x5ba865 of _0x311585)this['_updateComment']({'channelId':_0x418d14,'threadId':_0x4359fd,'commentId':_0x5ba865['commentId'],'createdAt':_0x5ba865['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x6e457f=>{throw console['error'](_0x6e457f),new _0xc716c1('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x403397,target:_0x557c92}){const _0xedfb94=this['getCommentThread'](_0x403397);if(!_0xedfb94)throw new _0xc716c1('commentsrepository-attach-missing-comment-thread',this);const _0x215707=this['context']['plugins']['get']('PendingActions'),_0x2263ff=this['context']['plugins']['get'](y),_0x14350d=this['_createCommentThreadView'](_0xedfb94),_0x50b248=new vt(_0xedfb94,_0x14350d);let _0x4c37b3=null;_0x14350d['on']('change:isDirty',(_0x494074,_0x3e9e5b,_0x1f214a)=>{_0x1f214a?_0x4c37b3=_0x215707['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4c37b3&&(_0x215707['remove'](_0x4c37b3),_0x4c37b3=null);}),this['_threadToController']['set'](_0xedfb94,_0x50b248),this['_viewToController']['set'](_0x14350d,_0x50b248);const _0x38d3ab=new E(this['context']['locale'],_0x14350d);_0x38d3ab['bind']('length')['to'](_0x14350d),_0x38d3ab['bind']('isDirty')['to'](_0x14350d,'isDirty',_0x14350d,'length',(_0x2dece0,_0x4c261e)=>_0x2dece0||!_0x4c261e),_0x38d3ab['bind']('isActive')['to'](_0x14350d),_0x38d3ab['type']='comment';const _0x3ffd6b=new T({'view':_0x38d3ab,'target':_0x557c92,'type':'comment','isVisible':!_0xedfb94['archivedAt']&&!!('function'==typeof _0x557c92?_0x557c92():_0x557c92)});return _0x14350d['on']('escape',()=>{_0x3ffd6b['fire']('escape');}),this['_bindAnnotationToEditors'](_0x14350d,_0x3ffd6b),_0x2263ff['add'](_0x3ffd6b),_0x3ffd6b;}['_bindAnnotationToEditors'](_0x3fdd37,_0x48d4d0){this['listenTo'](_0x3fdd37,'editorReady',(_0x44fc36,_0x16e541)=>{const _0x22d5d1=_0x16e541['ui']['view']['body']['bodyCollectionContainer'];_0x48d4d0['focusableElements']['add'](_0x22d5d1),this['context']instanceof _0x464974&&this['context']['ui']['focusTracker']['add'](_0x22d5d1);},{'priority':'highest'}),this['listenTo'](_0x3fdd37,'editorDestroyed',(_0x3f894e,_0x1d86a3)=>{const _0x3f96b7=_0x1d86a3['ui']['view']['body']['bodyCollectionContainer'];_0x48d4d0['focusableElements']['has'](_0x3f96b7)&&_0x48d4d0['focusableElements']['remove'](_0x3f96b7),this['context']instanceof _0x464974&&this['context']['ui']['focusTracker']['remove'](_0x3f96b7);});}['_unbindEditors'](_0x56c3d2){this['stopListening'](_0x56c3d2,'editorReady'),this['stopListening'](_0x56c3d2,'editorDestroyed');}['_createCommentThreadView'](_0x319328){const _0x36887f=this['context']['plugins']['get'](it),{config:_0x158f13,locale:_0x1987bb}=this['context'],_0x1d673a=pt(_0x158f13['get']('locale'),_0x1987bb);return new(0x0,(_0x158f13['get']('comments'))['CommentThreadView'])(_0x1987bb,_0x319328,_0x36887f['me'],{'editorConfig':{..._0x158f13['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x158f13['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x158f13['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x158f13['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x158f13['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1d673a,'CommentView':_0x158f13['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x111295,channelId:_0x18f003,resolvedAt:_0x28243a,resolvedBy:_0x28caa4,isFromAdapter:_0x353034}){if(!this['hasCommentThread'](_0x111295))throw new _0xc716c1('commentsrepository-missing-comment-thread',null,{'threadId':_0x111295});const _0x12d38c=this['getCommentThread'](_0x111295);if(_0x12d38c['isResolved'])throw new _0xc716c1('commentsrepository-resolved-comment-thread',null,{'threadId':_0x111295});const _0x5172d1=this['context']['plugins']['get'](it);if(_0x12d38c['resolvedBy']=_0x5172d1['getUser'](_0x28caa4),_0x12d38c['resolvedAt']=_0x28243a,_0x353034||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x1bb194=this['context']['plugins']['get']('PendingActions'),_0x11ecfb=_0x1bb194['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x18f003,'threadId':_0x111295})['then'](({resolvedAt:_0xf265ed,resolvedBy:_0x5d683d})=>{_0x1bb194['remove'](_0x11ecfb),_0x12d38c['resolvedBy']['id']!==_0x5d683d&&(_0x12d38c['resolvedBy']=_0x5172d1['getUser'](_0x5d683d)),_0x12d38c['resolvedAt']=_0xf265ed;})['catch'](_0xfaa146=>{throw console['error'](_0xfaa146),new _0xc716c1('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x441f4b,channelId:_0x1d1d8a,isFromAdapter:_0x37e895}){if(!this['hasCommentThread'](_0x441f4b))throw new _0xc716c1('commentsrepository-missing-comment-thread',null,{'threadId':_0x441f4b});const _0x3ab3a2=this['getCommentThread'](_0x441f4b);if(!_0x3ab3a2['isResolved'])throw new _0xc716c1('commentsrepository-reopen-comment-thread',null,{'threadId':_0x441f4b});if(_0x3ab3a2['resolvedBy']=null,_0x3ab3a2['resolvedAt']=null,_0x37e895||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x14d703=this['context']['plugins']['get']('PendingActions'),_0x3faa63=_0x14d703['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x1d1d8a,'threadId':_0x441f4b})['then'](()=>_0x14d703['remove'](_0x3faa63))['catch'](_0x5a8d02=>{throw console['error'](_0x5a8d02),new _0xc716c1('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x1f3e08,isFromAdapter:_0xa5f0ae}){const _0x85dc1c=this['getCommentThread'](_0x1f3e08);if(!_0x85dc1c)throw new _0xc716c1('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x1f3e08),this['_threads']['delete'](_0x1f3e08),!_0x85dc1c['isSubmitted']||_0xa5f0ae||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x4dab00=this['context']['plugins']['get']('PendingActions'),{channelId:_0x31feee}=_0x85dc1c,_0x2d8c7c=_0x4dab00['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x31feee,'threadId':_0x1f3e08})['then'](()=>_0x4dab00['remove'](_0x2d8c7c))['catch'](_0xd033dd=>{throw console['error'](_0xd033dd),new _0xc716c1('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x1efe5a,unlinkedAt:_0x1606f6,context:_0x2827b9,attributes:_0x2e29c7,isFromAdapter:_0x4fc23f}){if('string'!=typeof _0x1efe5a)throw new _0xc716c1('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1efe5a});if(!this['hasCommentThread'](_0x1efe5a))throw new _0xc716c1('commentsrepository-missing-comment-thread',null,{'threadId':_0x1efe5a});const _0x59ed52=this['getCommentThread'](_0x1efe5a);let _0x3b2e91=!0x1;if(void 0x0!==_0x2827b9&&_0x59ed52['context']!==_0x2827b9&&(_0x59ed52['context']=_0x2827b9,_0x3b2e91=!0x0),void 0x0!==_0x1606f6&&_0x59ed52['unlinkedAt']!==_0x1606f6&&(_0x59ed52['unlinkedAt']=_0x1606f6,_0x3b2e91=!0x0),_0x2e29c7&&!At(_0x2e29c7,_0x59ed52['attributes'])&&(_0x59ed52['attributes']=_0x2e29c7,_0x3b2e91=!0x0),!_0x3b2e91)return Promise['resolve']();if(!_0x59ed52['isSubmitted']||_0x4fc23f||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x241b75=this['context']['plugins']['get']('PendingActions'),{channelId:_0x4f68df}=_0x59ed52,_0x4a3f02=_0x241b75['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x4f68df,'threadId':_0x1efe5a,'context':_0x2827b9,'unlinkedAt':_0x1606f6,'attributes':_0x2e29c7})['then'](()=>_0x241b75['remove'](_0x4a3f02))['catch'](_0x401e0b=>{throw console['error'](_0x401e0b),new _0xc716c1('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x3d4b61){const _0x281e57=this['context']['plugins']['get'](y),_0x3197a5=this['getCommentThread'](_0x3d4b61);if(_0x3197a5['_isAttached']=!0x1,this['_threadToController']['has'](_0x3197a5)){const _0x3a879f=this['_threadToController']['get'](_0x3197a5),_0x550240=_0x3a879f['view'],_0x126c9d=_0x281e57['getByInnerView'](_0x550240);this['_threadToController']['delete'](_0x3197a5),this['_viewToController']['delete'](_0x550240),_0x126c9d&&_0x281e57['remove'](_0x126c9d),_0x3a879f['destroy'](),_0x550240['destroy']()['then'](()=>{this['_unbindEditors'](_0x550240);});}}['_updateActiveAnnotation']({threadId:_0xa9f410,resolvedAt:_0x27c61f,unlinkedAt:_0x47e999}){const _0x1433a2=!!_0x27c61f,_0x563452=this['context']['plugins']['get'](y),_0x5d2c56=this['getCommentThread'](_0xa9f410);if(this['_threadToController']['has'](_0x5d2c56)){const _0x517ff9=this['_threadToController']['get'](_0x5d2c56)['view'],_0xe0326c=_0x563452['getByInnerView'](_0x517ff9);_0xe0326c&&(_0x1433a2&&_0x563452['_removeActiveAnnotation'](_0xe0326c),_0x47e999?_0xe0326c['isVisible']=!0x1:_0xe0326c['refreshVisibility']());}}['_getExternalAuthor'](_0xb4498a){const _0x47581c=this['context']['plugins']['get'](it),_0x1737ff=It('external:'+_0xb4498a),_0x91e79=_0x47581c['getUser'](_0x1737ff);return _0x91e79||_0x47581c['addUser']({'id':_0x1737ff,'name':_0xb4498a});}['_createNewComment']({threadId:_0x209d61,commentId:_0x443684=_0x29df72(),content:_0x2f3c8e,authorId:_0x366bac,createdAt:_0x45c512,attributes:_0x46dd88}){if('string'!=typeof _0x443684)throw new _0xc716c1('commentsrepository-invalid-commentid');if('string'!=typeof _0x366bac)throw new _0xc716c1('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2f3c8e||!_0x2f3c8e['trim']())throw new _0xc716c1('commentsrepository-invalid-comment-content');const _0x4ca38a=this['context']['plugins']['get'](it)['getUser'](_0x366bac);if(!_0x4ca38a)throw new _0xc716c1('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x366bac});let _0x5b0f71=null,_0x4f798b=_0x45c512;return _0x46dd88?.['@external']&&(_0x5b0f71=this['_getExternalAuthor'](_0x46dd88['@external']['authorName']),_0x4f798b=new Date(_0x46dd88['@external']['createdAt'])),new yi(this,{'threadId':_0x209d61,'id':_0x443684,'author':_0x5b0f71||_0x4ca38a,'creator':_0x4ca38a,'content':_0x2f3c8e,'createdAt':_0x45c512,'authoredAt':_0x4f798b,'attributes':_0x46dd88});}['_addComment'](_0x360a8c){let {threadId:_0x4767f7,content:_0x9cb5b8,attributes:_0x22d8d8,isFromAdapter:_0x2b85a2}=_0x360a8c;const _0x14dcef=this['getCommentThread'](_0x360a8c['threadId']);if(!_0x14dcef)throw new _0xc716c1('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x35da18=this['_createNewComment'](_0x360a8c),{id:_0x1414b7}=_0x35da18;if(_0x14dcef['_add'](_0x35da18),_0x2b85a2||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x14dcef['isSubmitted'])return Promise['resolve']();const _0x369eee=this['context']['plugins']['get']('PendingActions'),{channelId:_0x31a663}=_0x14dcef,_0x14578d=_0x369eee['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x22d8d8||(_0x22d8d8={}),this['adapter']['addComment']({'channelId':_0x31a663,'threadId':_0x4767f7,'commentId':_0x1414b7,'content':_0x9cb5b8,'attributes':_0x22d8d8})['then'](_0x5d68a4=>{_0x369eee['remove'](_0x14578d),_0x5d68a4&&this['_updateComment']({'channelId':_0x31a663,'threadId':_0x4767f7,'commentId':_0x1414b7,'createdAt':_0x5d68a4['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x805ae9=>{throw console['error'](_0x805ae9),new _0xc716c1('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x20c049,commentId:_0x5f0204,content:_0x41e1d5,createdAt:_0x54cb62,attributes:_0x213f4b,isFromAdapter:_0x252d6c}){if(void 0x0!==_0x41e1d5&&('string'!=typeof _0x41e1d5||!_0x41e1d5['trim']()['length']))throw new _0xc716c1('commentsrepository-update-comment-invalid-content');const _0x42b5c1=this['getCommentThread'](_0x20c049),_0x3e92e9=_0x42b5c1['getComment'](_0x5f0204);if(!_0x3e92e9)throw new _0xc716c1('commentsrepository-update-missing-comment',this);let _0x147324=!0x1;if(_0x41e1d5&&_0x41e1d5!==_0x3e92e9['content']&&(_0x3e92e9['isEditable']||_0x252d6c)&&(_0x3e92e9['content']=_0x41e1d5,_0x147324=!0x0),_0x54cb62&&_0x54cb62!==_0x3e92e9['createdAt']&&(_0x3e92e9['createdAt']=_0x54cb62,_0x3e92e9['attributes']&&_0x3e92e9['attributes']['@external']||(_0x3e92e9['authoredAt']=_0x54cb62),_0x147324=!0x0),_0x213f4b&&!At(_0x213f4b,_0x3e92e9['attributes'])&&(_0x3e92e9['attributes']=_0x213f4b,_0x147324=!0x0),!_0x147324)return Promise['resolve']();if(_0x42b5c1['fire']('commentUpdated'),_0x252d6c||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x41bd3b=this['context']['plugins']['get']('PendingActions'),{channelId:_0x49e9dd}=this['getCommentThread'](_0x3e92e9['threadId']),_0x7bbdaa=_0x41bd3b['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x49e9dd,'threadId':_0x20c049,'commentId':_0x5f0204,'content':_0x41e1d5,'attributes':_0x213f4b})['then'](()=>_0x41bd3b['remove'](_0x7bbdaa))['catch'](_0x576d76=>{throw console['error'](_0x576d76),new _0xc716c1('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x15a87a,commentId:_0x3bf7b5,isFromAdapter:_0x5d6d65}){const _0x1961e8=this['getCommentThread'](_0x15a87a),_0x582d70=_0x1961e8['getComment'](_0x3bf7b5);if(!_0x582d70)throw new _0xc716c1('commentsrepository-remove-missing-comment',this);if(_0x1961e8['_remove'](_0x582d70),_0x5d6d65||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0xa9adfe=this['context']['plugins']['get']('PendingActions'),{channelId:_0x256839}=_0x1961e8,_0xbaaef6=_0xa9adfe['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x256839,'threadId':_0x15a87a,'commentId':_0x3bf7b5})['then'](()=>_0xa9adfe['remove'](_0xbaaef6))['catch'](_0x1ed5e7=>{throw console['error'](_0x1ed5e7),new _0xc716c1('commentsrepository-remove-comment-internal-error',this);});}}class Ti extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x457f69(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0xed4317,_0x494408){super();const _0x44275f=_0x494408['isResolvable'];this['channelId']=_0x494408['channelId'],this['id']=_0x494408['id'],this['comments']=new _0x214515(),this['_repository']=_0xed4317,this['_isAttached']=!0x1,this['_isSubmitted']=_0x494408['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0xed4317,'_permissions',_0xed4317,'_readOnlyChannels',()=>_0xed4317['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0xed4317,'_permissions',()=>_0xed4317['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0xed4317,'_permissions',()=>{const _0x22a68b=_0xed4317['getPermissions'](this['channelId']);return _0x22a68b['write']||_0x22a68b['admin'];}),this['bind']('isResolvable')['to'](_0xed4317,'_permissions',()=>_0x44275f&&_0xed4317['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x494408['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x504233,_0x5f06ed)=>_0x504233?_0x5f06ed?_0x504233<_0x5f06ed?_0x504233:_0x5f06ed:_0x504233:_0x5f06ed),this['set']('unlinkedAt',_0x494408['unlinkedAt']||null),this['set']('resolvedAt',_0x494408['resolvedAt']||null),this['set']('resolvedBy',_0x494408['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x18e4c0=>!!_0x18e4c0),this['set']('attributes',_0x494408['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x44838a,_0x262bb5)=>_0x44838a+_0x262bb5['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x2741d9,id:_0x47286f}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x2741d9),{'channelId':_0x2741d9,'threadId':_0x47286f});}['setUnlinkedAt'](_0x43f4e8){this['_update']({'unlinkedAt':_0x43f4e8});}['resolve']({resolvedAt:_0x594d5c=new Date(),resolvedBy:_0x2ee12d=null,isFromAdapter:_0xfc8624=!0x1}={}){const _0x35b999=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0xfd77b8,id:_0x2a00f2}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0xfd77b8),{'channelId':_0xfd77b8,'threadId':_0x2a00f2,'resolvedAt':_0x594d5c,'resolvedBy':_0x2ee12d||_0x35b999['id'],'isFromAdapter':_0xfc8624});}['reopen']({isFromAdapter:_0x11a2f1=!0x1}={}){const {channelId:_0x2398db,id:_0x163f94}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x2398db),{'channelId':_0x2398db,'threadId':_0x163f94,'isFromAdapter':_0x11a2f1});}['setContext'](_0x3d9553){this['context']||this['_update']({'context':_0x3d9553});}['setAttribute'](_0x9148dd,_0x3adb82){const _0x20ba0c=wt(this['attributes']);yt(_0x20ba0c,_0x9148dd,_0x3adb82),this['_update']({'attributes':_0x20ba0c});}['removeAttribute'](_0x19a412){const _0x50ee43=wt(this['attributes']);Ct(_0x50ee43,_0x19a412),this['_update']({'attributes':_0x50ee43});}['remove']({isFromAdapter:_0x26e1e1=!0x1}={}){const {channelId:_0x2d3935,id:_0x359c69}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x2d3935),{'channelId':_0x2d3935,'threadId':_0x359c69,'isFromAdapter':_0x26e1e1});}['attachTo'](_0xa0b9a3){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0xa0b9a3});}['addComment'](_0x4446d7){const {channelId:_0x4d5767,id:_0x2d3fb8}=this;this['_repository']['fire'](Nt('addComment',_0x4d5767,_0x2d3fb8),Object['assign']({'channelId':_0x4d5767,'threadId':_0x2d3fb8},_0x4446d7));}['getComment'](_0x562d5f){if('string'!=typeof _0x562d5f)throw new _0xc716c1('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x562d5f});return this['comments']['get'](_0x562d5f);}['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'](_0x37bbef=>_0x37bbef['toJSON']()),'attributes':this['attributes']};}['_add'](_0x2b0196){return this['listenTo'](_0x2b0196,'change:authoredAt',()=>{const _0x2d63f8=this['_findOptimalIndex'](_0x2b0196),_0x197217=this['comments'];_0x2d63f8-0x1!=_0x197217['getIndex'](_0x2b0196)&&_0x2d63f8+0x1!=_0x197217['getIndex'](_0x2b0196)&&(this['_remove'](_0x2b0196),this['_add'](_0x2b0196));}),this['comments']['add'](_0x2b0196,this['_findOptimalIndex'](_0x2b0196));}['_update'](_0x25fe54){const {channelId:_0x2e29f1,id:_0x322dfc}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x2e29f1),{..._0x25fe54,'channelId':_0x2e29f1,'threadId':_0x322dfc});}['_remove'](_0x23e335){return this['stopListening'](_0x23e335),_0x23e335['destroy'](),this['comments']['remove'](_0x23e335);}['_findOptimalIndex'](_0x45c7d3){const _0x5ca8d5=this['comments']['find'](_0x15f1c9=>new Date(_0x15f1c9['authoredAt'])['getTime']()>new Date(_0x45c7d3['authoredAt'])['getTime']());return _0x5ca8d5?this['comments']['getIndex'](_0x5ca8d5):this['length'];}}class yi extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x457f69(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5ceb88,_0x217995){super();const _0x5171f0=_0x5ceb88['context']['plugins']['get'](it)['me'],_0x289462=_0x5ceb88['getCommentThread'](_0x217995['threadId']),_0x56b94a=0x0===_0x289462['comments']['length'],_0x277f00=_0x5171f0===_0x217995['author'];this['id']=_0x217995['id'],this['threadId']=_0x217995['threadId'],this['author']=_0x217995['author'],this['creator']=_0x217995['creator'],this['isExternal']=Boolean(_0x217995['attributes']&&_0x217995['attributes']['@external']),this['set']('content',_0x217995['content']),this['createdAt']=_0x217995['createdAt']||new Date(),this['set']('authoredAt',_0x217995['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x289462,'resolvedAt'),this['set']('attributes',_0x217995['attributes']||{}),this['bind']('isEditable')['to'](_0x5ceb88,'_permissions',()=>{const _0x539d4a=_0x5ceb88['getPermissions'](_0x289462['channelId'])['write'],_0x540579=_0x5ceb88['getPermissions'](_0x289462['channelId'])['modifyAll'];return _0x277f00&&_0x539d4a||!_0x277f00&&_0x540579;}),this['bind']('isRemovable')['to'](_0x289462,'isRemovable',_0x5ceb88,'_permissions',_0x582063=>{const _0x3a3d48=_0x5ceb88['getPermissions'](_0x289462['channelId'])['write'],_0x57c85b=_0x5ceb88['getPermissions'](_0x289462['channelId'])['modifyAll'];return _0x277f00&&_0x3a3d48||_0x582063&&_0x56b94a||!_0x277f00&&_0x57c85b&&!_0x56b94a;}),this['bind']('isReadOnly')['to'](_0x289462,'isReadOnly'),this['_repository']=_0x5ceb88;}get['weight'](){return Math['max'](function(_0x4a95c2){const _0x5b99b7=document['createElement']('div');return _0x5b99b7['innerHTML']=_0x4a95c2,_0x5b99b7['textContent']['length'];}(this['content']),0xc8);}['update'](_0x3c25f2){const {threadId:_0x300e51,id:_0x972bbd}=this;if(!this['_repository']['hasCommentThread'](_0x300e51))throw new _0xc716c1('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x43b71d}=this['_repository']['getCommentThread'](_0x300e51);this['_repository']['fire'](Nt('updateComment',_0x43b71d,_0x300e51),{'channelId':_0x43b71d,'threadId':_0x300e51,'commentId':_0x972bbd,..._0x3c25f2});}['setAttribute'](_0x452f23,_0x2e1bcb){const _0x3460f9=wt(this['attributes']);yt(_0x3460f9,_0x452f23,_0x2e1bcb),this['update']({'attributes':_0x3460f9});}['removeAttribute'](_0x68faff){const _0x31cc78=wt(this['attributes']);Ct(_0x31cc78,_0x68faff),this['update']({'attributes':_0x31cc78});}['remove'](_0x225f42={}){if(!_0x225f42['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x4cb13f,id:_0x1e49bb}=this;if(!this['_repository']['hasCommentThread'](_0x4cb13f))throw new _0xc716c1('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x382c26}=this['_repository']['getCommentThread'](_0x4cb13f);this['_repository']['fire'](Nt('removeComment',_0x382c26,_0x4cb13f),{'channelId':_0x382c26,'threadId':_0x4cb13f,'commentId':_0x1e49bb,..._0x225f42});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0xdb15cc,..._0x34618f){for(const _0x1680a9 of _0x34618f)void 0x0!==_0x1680a9&&(_0xdb15cc+=':'+String(_0x1680a9));return _0xdb15cc;}class ot extends _0x2768e0{constructor(_0x47b2fb){super(_0x47b2fb),this['set']('hasContent',!0x1);}['refresh'](){const _0x1269af=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x50592c of _0x1269af['getRanges']())if(this['_hasContent'](_0x50592c))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x3beefe=_0x29df72(),ranges:_0x3f8dd1,comment:_0x5e87b7}={}){const _0x11d22e=this['editor']['model'],_0x222905=_0x3f8dd1??Array['from'](_0x11d22e['document']['selection']['getRanges']()),_0x47633a=[];for(const _0x3418a0 of _0x222905)this['_hasContent'](_0x3418a0)&&_0x47633a['push'](this['_trimToContent'](_0x3418a0));if(!_0x47633a['length'])throw new _0xc716c1('addcommentthreadcommand-incorrect-ranges',null);_0x5e87b7&&this['_createCommentThread'](_0x3beefe,_0x5e87b7),this['_createMarkersFromRanges'](_0x3beefe,_0x47633a,!!_0x5e87b7);}['_createMarkersFromRanges'](_0x61db8b,_0x5ddcef,_0x16ae79){this['editor']['model']['change'](_0x3346e0=>{for(const _0x2b4934 of _0x5ddcef){const _0x367f73=_0x29df72()['substr'](0x1,0x5),_0x4cbf10='comment:'+_0x61db8b+':'+_0x367f73;_0x3346e0['addMarker'](_0x4cbf10,{'range':_0x2b4934,'usingOperation':_0x16ae79,'affectsData':_0x16ae79});}});}['_createCommentThread'](_0x45a24e,_0x3ae3cb){const _0xb008c4=this['editor']['plugins']['get']('CommentsRepository'),_0x1d9785=this['editor']['config']['get']('collaboration.channelId'),_0x16e7f4=this['editor']['plugins']['get']('Users')['me'];if(!_0x16e7f4)throw new _0xc716c1('addcommentthreadcommand-user-not-found',null);_0xb008c4['addCommentThread']({'threadId':_0x45a24e,'channelId':_0x1d9785,'comments':[{'authorId':_0x16e7f4['id'],'content':_0x3ae3cb,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x203f42){for(const _0x35365f of _0x203f42['getItems']())if(this['_itemIsContent'](_0x35365f))return!0x0;return!0x1;}['_itemIsContent'](_0x381fc5){return _0x381fc5['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x381fc5)&&!_0x381fc5['is']('element','tableCell');}['_trimToContent'](_0x395e70){const _0x75b7a3=_0x5ee811=>!this['_itemIsContent'](_0x5ee811['item']),_0x398a08=_0x395e70['start']['getLastMatchingPosition'](_0x75b7a3),_0x42f9af=_0x395e70['end']['getLastMatchingPosition'](_0x75b7a3,{'direction':'backward'});return this['editor']['model']['createRange'](_0x398a08,_0x42f9af);}}class b extends _0x5753fc{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3aa501){super(_0x3aa501),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x3059ef=this['editor'],_0x4a7463=_0x3059ef['model']['document']['selection'],_0xe0cd99=_0x324384(()=>this['refreshSelectedViews'](),0xa);_0x4a7463['on']('change:range',(_0x1daebf,_0x45dc40)=>{_0x45dc40['directChange']&&(_0xe0cd99['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x3059ef['editing']['view']['document'],'change:isFocused',(_0x2de8c6,_0x433c49,_0x1bcc86)=>{_0x1bcc86&&_0xe0cd99();}),this['listenTo'](_0x3059ef['ui']['focusTracker'],'change:isFocused',(_0x53ff18,_0x3dc7f9,_0x3c1bf4)=>{_0x3c1bf4||this['fire']('blur',{'isAnnotationTracked':_0x524641=>this['_editorAnnotationsData']['has'](_0x524641['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x35da86){if(this['_editorAnnotations']['has'](_0x35da86['view']))return;this['_editorAnnotations']['add'](_0x35da86['view']),this['editor']['ui']['focusTracker']['add'](_0x35da86['view']['element']);const _0x1e2d12=this['editor']['plugins']['get'](y);this['listenTo'](_0x1e2d12['collection'],'remove',(_0x244908,_0xe7fad0)=>{this['editor']['ui']['focusTracker']['remove'](_0xe7fad0['view']['element']),this['_editorAnnotations']['delete'](_0xe7fad0['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x5320aa){if('function'!=typeof _0x5320aa)throw new _0xc716c1('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x5320aa);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x42e12d,annotations:_0xeb2ccf}){const _0x93b511=[],_0x51f178=this['editor']['model']['document']['selection'],_0x365155=Array['from'](_0x51f178['getRanges']());for(const [_0x1e12d3,_0x3e0401]of this['_editorAnnotationsData']){const _0x5d8032=_0x4f1103(_0x3e0401),_0xa7dc44=_0xeb2ccf['getByInnerView'](_0x1e12d3);_0x5d8032&&_0xa7dc44&&_0x93b511['push']({'annotation':_0xa7dc44,'range':_0x5d8032});}function _0x4f1103(_0x50f4ce){for(const _0x56889b of _0x50f4ce)for(const _0xf5815d of _0x365155)if(_0x56889b['containsRange'](_0xf5815d,!_0x51f178['isCollapsed']))return _0x56889b;return null;}return _0x93b511['sort']((_0x4765e2,_0xc4caf8)=>{const _0x2d0eca=_0x4765e2['range'],_0x46d600=_0xc4caf8['range'];if(!_0x2d0eca['isEqual'](_0x46d600)){if(_0x2d0eca['containsRange'](_0x46d600,!0x0))return 0x1;if(_0x46d600['containsRange'](_0x2d0eca,!0x0))return-0x1;}return _0x4765e2['annotation']==_0x42e12d?-0x1:_0xc4caf8['annotation']==_0x42e12d?0x1:0x0;})['map'](_0x3d5eb0=>_0x3d5eb0['annotation']);}get['_editorAnnotationsData'](){const _0x1ffb4e=new Map();for(const _0x9bd387 of Array['from'](this['_dataCollectors']))for(const [_0x407273,_0x575a0d]of _0x9bd387())_0x1ffb4e['set'](_0x407273,_0x575a0d);return _0x1ffb4e;}}class st extends _0x5753fc{['afterInit'](){const _0x4fa733=this['editor'];if(!_0x4fa733['plugins']['has']('RestrictedEditingModeEditing'))return;_0x4fa733['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x5753fc{constructor(_0x33b2e2){super(_0x33b2e2),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x51d1ed=this['editor'],_0x7700fe=_0x51d1ed['commands']['get']('importWord'),_0xd892b8=_0x51d1ed['plugins']['get'](it);_0x7700fe&&(_0x7700fe['on']('execute',(_0x57ffd5,[,_0x18659b])=>{_0x18659b['collaboration_features']={'comments':!0x0,'user_id':_0xd892b8['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x7700fe,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x1448c4,_0x24bb98){const {comment_threads:_0x5be6f9}=_0x24bb98;_0x5be6f9&&_0x5be6f9['forEach'](({thread_id:_0x43c677,comments:_0x240c22,is_resolved:_0x1599a7})=>{const _0x27f2c7=new Date(),_0x45149e=_0x240c22['map'](({author:_0x3989d9,content:_0x24de51,created_at:_0x3b34c7})=>({'content':_0x24de51,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x27f2c7,'attributes':{'@external':{'authorName':_0x3989d9,'createdAt':_0x3b34c7?new Date(_0x3b34c7):new Date(),'source':'importWord'}}})),_0x419281=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x419281,'threadId':_0x43c677,'comments':_0x45149e,'resolvedAt':_0x1599a7?_0x27f2c7:null});});}}class at extends _0x5753fc{constructor(_0x4d11d3){super(_0x4d11d3),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x30dfe2=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x30dfe2,'contentInsertion',(_0x5f4e6c,_0x4fda85)=>this['_removeMarkersWithoutThreads'](_0x4fda85['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x74db4d){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x74db4d;const _0x2b8e89=this['editor']['plugins']['get']('CommentsRepository');for(const _0xfa63b of _0x74db4d['keys']()){const [_0x23420f,_0x4329ca]=_0xfa63b['split'](':');'comment'!=_0x23420f||_0x2b8e89['hasCommentThread'](_0x4329ca)||_0x74db4d['delete'](_0xfa63b);}return _0x74db4d;}['_registerMarkerInClipboardPipeline'](){const _0x342804=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x427013=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x427013&&_0x342804['_registerMarkerToCopy']('comment',_0x427013);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x45234d){switch(_0x45234d){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x25025b){const _0x292275=_0x25025b['split'](':');return{'group':_0x292275[0x0],'id':_0x292275[0x1],'part':_0x292275[0x2]};}class ut extends _0x5753fc{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x5130cd,_0x4c32c2)=>{if(!_0x4c32c2['options']['showCommentHighlights'])return null;if(_0x4c32c2['options']['ignoreResolvedComments']){const {id:_0x81772c}=ft(_0x5130cd['markerName']),_0x32a26e=this['editor']['plugins']['get'](o);if(_0x32a26e['getCommentThread'](_0x81772c)?.['isResolved']&&_0x5130cd['item'])return _0x4c32c2['consumable']['consume'](_0x5130cd['item'],'addMarker:'+_0x5130cd['markerName']),_0x4c32c2['consumable']['consume'](_0x5130cd['item'],'removeMarker:'+_0x5130cd['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3def4e=>{_0x3def4e['on']('addMarker:comment',(_0x33174a,_0x5c174c,_0x1c7323)=>{if(!_0x1c7323['options']['showCommentHighlights'])return;const _0x4b99f0=_0x5c174c['item'];if(!_0x4b99f0)return;const _0x579ebe=_0x1c7323['mapper']['toViewElement'](_0x4b99f0);this['editor']['model']['schema']['isObject'](_0x4b99f0)&&_0x579ebe&&!_0x579ebe['getCustomProperty']('widget')&&_0x579ebe['is']('containerElement')&&_0x2a2fd1(_0x579ebe,_0x1c7323['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2fc906,{writer:_0x280a8d,options:_0x12fbfc})=>{if(!_0x12fbfc['showCommentHighlights'])return null;const _0x5244c3=_0x280a8d['createContainerElement']('div'),_0x2b4d02=_0x280a8d['createEmptyElement']('hr');return _0x280a8d['addClass']('ck-horizontal-line',_0x5244c3),_0x280a8d['insert'](_0x280a8d['createPositionAt'](_0x5244c3,0x0),_0x2b4d02),_0x5244c3;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x27c8fb,{writer:_0x5eda45,options:_0x537173})=>{if(!_0x537173['showCommentHighlights'])return null;const _0x47971c=_0x5eda45['createContainerElement']('span'),_0xd28a05=_0x5eda45['createEmptyElement']('img');return _0x5eda45['addClass']('image-inline',_0x47971c),_0x5eda45['insert'](_0x5eda45['createPositionAt'](_0x47971c,0x0),_0xd28a05),_0x47971c;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4a90ec,{writer:_0x41e821,options:_0x315587})=>{if(_0x315587['showCommentHighlights'])return _0x41e821['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1c9323,_0x5190e3,_0x66d0e1)=>{_0x66d0e1['options']['showCommentHighlights']&&_0x1c9323['stop']();},{'priority':'high'});}}class r extends _0x5753fc{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(_0x1629f8){super(_0x1629f8),this['set']('isThreadsLoadingPaused',!0x0),_0x1629f8['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x45fd66,_0x5239d4,_0x9fa8b9,_0x52f53a)=>{const _0x10ad20=_0x1629f8['plugins']['get'](o),_0x92e82f=_0x9fa8b9?ft(_0x9fa8b9)['id']:null;_0x1629f8['model']['change'](()=>{if(_0x92e82f){const _0x59408c=this['getAllMarkersForId'](_0x92e82f);for(const _0x1b34aa of _0x59408c)_0x1629f8['editing']['reconvertMarker'](_0x1b34aa);}if(_0x52f53a){const {id:_0x2289c0}=ft(_0x52f53a),_0x4210e9=_0x10ad20['getCommentThread'](_0x2289c0);if(_0x4210e9&&_0x4210e9['unlinkedAt'])return;if(_0x4210e9&&!_0x4210e9['isAttached'])return;const _0x545886=this['getAllMarkersForId'](_0x2289c0);for(const _0x2f31e9 of _0x545886)_0x1629f8['editing']['reconvertMarker'](_0x2f31e9);}}),_0x92e82f&&this['scrollToThreadMarker'](_0x92e82f);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4cce65=this['editor'],_0x463d32=_0x4cce65['plugins']['get'](o),_0x44626c=_0x4cce65['config']['get']('collaboration.channelId'),_0x3e868c=_0x463d32['getCommentThreads']()['filter'](_0x58b15e=>_0x58b15e['channelId']!==_0x44626c);_0x4cce65['commands']['add']('addCommentThread',new ot(_0x4cce65)),this['listenTo'](_0x4cce65,'change:isReadOnly',(_0x59f472,_0x111811,_0xd3a0b4)=>{_0x463d32['switchReadOnly'](_0xd3a0b4,_0x4cce65['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x463d32,dt('addCommentThread',_0x44626c),(_0x4ded58,{threadId:_0x4b2887})=>{const _0x22ee7d=this['editor']['plugins']['get'](o)['getCommentThread'](_0x4b2887);_0x22ee7d?.['unlinkedAt']&&this['_attachArchivedThread'](_0x4b2887);}),this['listenTo'](_0x463d32,dt('removeCommentThread',_0x44626c),(_0x48340d,{threadId:_0x4ae046})=>{_0x4cce65['model']['enqueueChange']({'isUndoable':!0x1},_0x30dfbc=>{const _0x21c769=this['getAllMarkersForId'](_0x4ae046);for(const _0x14ba5a of _0x21c769)_0x30dfbc['removeMarker'](_0x14ba5a);});}),this['listenTo'](_0x463d32,dt('resolveCommentThread',_0x44626c),(_0x16154d,{threadId:_0x4d8492})=>{(this['_reconvertMarkers'](_0x4d8492),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x4d8492)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x463d32,dt('reopenCommentThread',_0x44626c),(_0x5d9215,{threadId:_0x3f1623})=>{this['_reconvertMarkers'](_0x3f1623);},{'priority':'low'}),this['listenTo'](_0x463d32,dt('addComment',_0x44626c),(_0x550cf1,{threadId:_0x48ebdb,isFromAdapter:_0xed4ff3})=>{const _0x160232=this['getAllMarkersForId'](_0x48ebdb);if(_0xed4ff3||0x0==_0x160232['length']||!_0x463d32['hasCommentThread'](_0x48ebdb))return;0x1===_0x463d32['getCommentThread'](_0x48ebdb)['length']&&_0x4cce65['model']['enqueueChange']({'isUndoable':!0x1},_0x260fac=>{for(const _0x46241f of _0x160232)_0x260fac['updateMarker'](_0x46241f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x3e868c);}['afterInit'](){!async function(_0x198fbe){const _0x3b0dc1=_0x4ee41c([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]),_0x4af546=0x73460ab3,_0x1b6668=0x734179eb^_0x4af546,_0x1c12de=window[_0x4ee41c([0x44,0x61,0x74,0x65])][_0x4ee41c([0x6e,0x6f,0x77])](),_0x55aaa8=_0x198fbe[_0x4ee41c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe94ed7=new window[(_0x4ee41c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14122d=>{_0x55aaa8[_0x4ee41c([0x6f,0x6e,0x63,0x65])](_0x4ee41c([0x72,0x65,0x61,0x64,0x79]),_0x14122d);}),_0x1d02e6={[_0x4ee41c([0x6b,0x74,0x79])]:_0x4ee41c([0x45,0x43]),[_0x4ee41c([0x75,0x73,0x65])]:_0x4ee41c([0x73,0x69,0x67]),[_0x4ee41c([0x63,0x72,0x76])]:_0x4ee41c([0x50,0x2d,0x32,0x35,0x36]),[_0x4ee41c([0x78])]:_0x4ee41c([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]),[_0x4ee41c([0x79])]:_0x4ee41c([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]),[_0x4ee41c([0x61,0x6c,0x67])]:_0x4ee41c([0x45,0x53,0x32,0x35,0x36])},_0xdb5ee3=_0x55aaa8[_0x4ee41c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ee41c([0x67,0x65,0x74])](_0x4ee41c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46b5b2(){let _0x5ca0ea,_0x483358=null,_0x2fd7ca=null;try{if(_0xdb5ee3==_0x4ee41c([0x47,0x50,0x4c]))return _0x4ee41c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ca0ea=_0x1e64ca(),!_0x5ca0ea)return _0x4ee41c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ca0ea[_0x4ee41c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2fd7ca=_0x9b7920(_0x5ca0ea[_0x4ee41c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ca0ea[_0x4ee41c([0x6a,0x74,0x69])])),await _0x30ef68()?_0x4953ca()?_0x57dc55()?_0x4ee41c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x431ef6()?(_0x5ca0ea[_0x4ee41c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ee41c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x483358=_0xfbd8de(_0x4ee41c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ca0ea[_0x4ee41c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ee41c([0x74,0x72,0x69,0x61,0x6c])&&(_0x483358=_0xfbd8de(_0x4ee41c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x491f7d()):_0x4ee41c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ee41c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ee41c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ee41c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57dc55(){const _0x1321f7=[_0x4ee41c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ee41c([0x74,0x72,0x69,0x61,0x6c])][_0x4ee41c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ca0ea[_0x4ee41c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c12de/0x3e8:0xe10*_0x1b6668;return _0x5ca0ea[_0x4ee41c([0x65,0x78,0x70])]<_0x1321f7;}function _0x4953ca(){const _0x4545b4=_0x5ca0ea[_0x4ee41c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4545b4)return!0x1;if(_0x4545b4[_0x4ee41c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ee41c([0x2a])))return!0x0;if(_0x4545b4[_0x4ee41c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ee41c([0x43,0x4d,0x54])))return!0x0;if(_0x4545b4[_0x4ee41c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ee41c([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x55bed3())return!0x0;if(_0x4545b4[_0x4ee41c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ee41c([0x52,0x43,0x4d,0x54]))){if(_0x3b4c10())return!0x0;if(_0x2ff1e3()||_0x1e0e76())return!0x0;}return!0x1;}function _0x431ef6(){const _0x517192=_0x5ca0ea[_0x4ee41c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x517192||0x0==_0x517192[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21c036}=new URL(window[_0x4ee41c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x517192[_0x4ee41c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c036))return!0x0;const _0x323cd8=_0x21c036[_0x4ee41c([0x73,0x70,0x6c,0x69,0x74])](_0x4ee41c([0x2e]));return _0x517192[_0x4ee41c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e8638=>_0x5e8638[_0x4ee41c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ee41c([0x2a])))[_0x4ee41c([0x6d,0x61,0x70])](_0x394ddc=>_0x394ddc[_0x4ee41c([0x73,0x70,0x6c,0x69,0x74])](_0x4ee41c([0x2e])))[_0x4ee41c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x589ef7=>_0x589ef7[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x323cd8[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ee41c([0x6d,0x61,0x70])](_0x2af2ba=>Array(_0x323cd8[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2af2ba[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ee41c([0x66,0x69,0x6c,0x6c])](_0x2af2ba[0x0]===_0x4ee41c([0x2a])?_0x4ee41c([0x2a]):'')[_0x4ee41c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2af2ba))[_0x4ee41c([0x73,0x6f,0x6d,0x65])](_0x4f1bd3=>_0x323cd8[_0x4ee41c([0x65,0x76,0x65,0x72,0x79])]((_0x12f12d,_0x55ce2e)=>_0x4f1bd3[_0x55ce2e]===_0x12f12d||_0x4f1bd3[_0x55ce2e]===_0x4ee41c([0x2a])));}function _0x491f7d(){return _0x483358&&_0x2fd7ca?new window[(_0x4ee41c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31e8c,_0x31ba84)=>{_0x483358[_0x4ee41c([0x74,0x68,0x65,0x6e])](_0x31e8c,_0x31ba84),_0x2fd7ca[_0x4ee41c([0x74,0x68,0x65,0x6e])](_0xc8c30f=>{_0xc8c30f!=_0x4ee41c([0x56,0x61,0x6c,0x69,0x64])&&_0x31e8c(_0xc8c30f);},_0x31ba84);}):_0x483358||_0x2fd7ca||_0x4ee41c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9b7920(_0x10b5c2,_0x42c9b8){return new window[(_0x4ee41c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57565b=>{if(_0x170a11())return _0x57565b(_0x4ee41c([0x56,0x61,0x6c,0x69,0x64]));_0x53d01d(),_0x55aaa8[_0x4ee41c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ee41c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16a4db=!0x1;const _0x30a175=_0x29df72();function _0x37b370(_0x51d962){return!!_0x51d962&&(typeof _0x51d962===_0x4ee41c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51d962===_0x4ee41c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51d962[_0x4ee41c([0x74,0x68,0x65,0x6e])]===_0x4ee41c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51d962[_0x4ee41c([0x63,0x61,0x74,0x63,0x68])]===_0x4ee41c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42bc1c(_0x21079c){_0x257a2c(_0x21079c)[_0x4ee41c([0x74,0x68,0x65,0x6e])](_0x2a51fe=>{if(!_0x2a51fe||_0x2a51fe[_0x4ee41c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ee41c([0x6f,0x6b]))return _0x4ee41c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12eaa2(_0x53c969(_0x30a175+_0x42c9b8))!=_0x2a51fe[_0x4ee41c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ee41c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ee41c([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ee41c([0x74,0x68,0x65,0x6e])](_0x392afc=>(_0x19bd86(),_0x392afc),()=>{const _0x4fb74e=_0x1fad38();return null==_0x4fb74e?(_0x19bd86(),_0x4ee41c([0x56,0x61,0x6c,0x69,0x64])):_0x4ee41c(_0x1c12de-_0x4fb74e>(0x574a8eb3^_0x4af546)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ee41c([0x74,0x68,0x65,0x6e])](_0x57565b)[_0x4ee41c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57565b(_0x4ee41c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e10f6=0x7370e433^_0x4af546;function _0x19bd86(){const _0x2a5498=_0x4ee41c([0x6c,0x6c,0x63,0x74,0x2d])+_0x12eaa2(_0x53c969(_0x10b5c2)),_0x1b3a91=_0x2afe83(_0x12eaa2(window[_0x4ee41c([0x4d,0x61,0x74,0x68])][_0x4ee41c([0x63,0x65,0x69,0x6c])](_0x1c12de/_0x1e10f6)));window[_0x4ee41c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ee41c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a5498,_0x1b3a91);}function _0x1fad38(){const _0x57ed30=_0x4ee41c([0x6c,0x6c,0x63,0x74,0x2d])+_0x12eaa2(_0x53c969(_0x10b5c2)),_0x3dda82=window[_0x4ee41c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ee41c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57ed30);return _0x3dda82?window[_0x4ee41c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2afe83(_0x3dda82),0x10)*_0x1e10f6:null;}function _0x257a2c(_0x25567e){return new window[(_0x4ee41c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51947c,_0xf82bac)=>{_0x25567e[_0x4ee41c([0x74,0x68,0x65,0x6e])](_0x51947c,_0xf82bac),window[_0x4ee41c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf82bac,0x7347de73^_0x4af546);});}}_0x55aaa8[_0x4ee41c([0x6f,0x6e])](_0x4ee41c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12f231,_0x232fbe)=>{if(_0x232fbe[0x0]!=_0x10b5c2)return _0x57565b(_0x4ee41c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x232fbe[0x1]={..._0x232fbe[0x1],[_0x4ee41c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30a175};},{[_0x4ee41c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ee41c([0x68,0x69,0x67,0x68])}),_0x55aaa8[_0x4ee41c([0x6f,0x6e])](_0x4ee41c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fa5b8=>{_0x37b370(_0x4fa5b8[_0x4ee41c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16a4db=!0x0,_0x42bc1c(_0x4fa5b8[_0x4ee41c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ee41c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ee41c([0x6c,0x6f,0x77])}),_0xe94ed7[_0x4ee41c([0x74,0x68,0x65,0x6e])](()=>{_0x16a4db||_0x57565b(_0x4ee41c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x170a11(){return _0x55aaa8[_0x4ee41c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ee41c([0x76,0x69,0x65,0x77])][_0x4ee41c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ee41c([0x61,0x75,0x74,0x6f]);}function _0x53d01d(){_0x55aaa8[_0x4ee41c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ee41c([0x76,0x69,0x65,0x77])][_0x4ee41c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ee41c([0x61,0x75,0x74,0x6f]);}}function _0xfbd8de(_0x404e1c){const _0x10ee10=[new window[(_0x4ee41c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x851c08=>setTimeout(_0x851c08,0x734f347f^_0x4af546)),_0xe94ed7[_0x4ee41c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ee41c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21f5a0=>{let _0x4f238e=0x0;_0x55aaa8[_0x4ee41c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ee41c([0x6f,0x6e])](_0x4ee41c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x286612,_0x48033a)=>{_0x48033a[0x0][_0x4ee41c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f238e++,_0x4f238e==(0x73460b4b^_0x4af546)&&(_0x21f5a0(),_0x286612[_0x4ee41c([0x6f,0x66,0x66])]());});}))];return window[_0x4ee41c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ee41c([0x72,0x61,0x63,0x65])](_0x10ee10)[_0x4ee41c([0x74,0x68,0x65,0x6e])](()=>_0x404e1c);}async function _0x30e48a(){await _0xe94ed7,_0x55aaa8[_0x4ee41c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ee41c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3056e8,_0x55aaa8[_0x4ee41c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ee41c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3056e8,_0x55aaa8[_0x4ee41c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ee41c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55bed3(){return window[_0x4ee41c([0x67,0x6c,0x6f,0x62])]&&window[_0x4ee41c([0x67,0x6c,0x6f,0x62])][_0x4ee41c([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x3b4c10(){return _0x304fdd(_0x4ee41c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3bd8bb(_0x4ee41c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4ee41c([0x73,0x74,0x61,0x74,0x65])]==_0x4ee41c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2ff1e3(){return _0x304fdd(_0x4ee41c([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 _0x1e0e76(){return _0x304fdd(_0x4ee41c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2ebedd(_0xdcf567){const _0x278b43=_0x13609c();_0x55aaa8[_0x278b43]=_0x4ee41c([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xdcf567,_0xdcf567!=_0x4ee41c([0x56,0x61,0x6c,0x69,0x64])&&_0x30e48a();}function _0x13609c(){const _0x41e073=window[_0x4ee41c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ee41c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ee41c([0x6e,0x6f,0x77])]())[_0x4ee41c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ee41c([0x2e]),'');let _0x124e26=_0x4ee41c([0x4b]);for(let _0x344f50=0x0;_0x344f50<_0x41e073[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x344f50+=0x2){let _0x2f962e=window[_0x4ee41c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41e073[_0x4ee41c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x344f50,_0x344f50+0x2));_0x2f962e>=_0x3b0dc1[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f962e-=_0x3b0dc1[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x124e26+=_0x3b0dc1[_0x2f962e];}return _0x124e26;}function _0x1e64ca(){const _0x3e6791=_0xdb5ee3[_0x4ee41c([0x73,0x70,0x6c,0x69,0x74])](_0x4ee41c([0x2e]));if(0x3!=_0x3e6791[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ac6d9(_0x3e6791[0x1]);function _0x3ac6d9(_0x27acb0){const _0x56045d=_0x3cff43(_0x27acb0);return _0x56045d&&_0x2732cf()?_0x56045d:null;function _0x2732cf(){const _0x3bb7a=_0x56045d[_0x4ee41c([0x6a,0x74,0x69])],_0x50b414=window[_0x4ee41c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bb7a[_0x4ee41c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bb7a[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50188e={..._0x56045d,[_0x4ee41c([0x6a,0x74,0x69])]:_0x3bb7a[_0x4ee41c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3bb7a[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50188e[_0x4ee41c([0x76,0x63])],_0x53c969(_0x50188e)==_0x50b414;}}}async function _0x30ef68(){let _0x48e058=!0x0;try{const _0x413b47=_0xdb5ee3[_0x4ee41c([0x73,0x70,0x6c,0x69,0x74])](_0x4ee41c([0x2e])),[_0x516990,_0x34917e,_0x23d2a0]=_0x413b47;return _0x1528f4(_0x516990),await _0x359d64(_0x516990,_0x34917e,_0x23d2a0),_0x48e058;}catch{return!0x1;}function _0x1528f4(_0x48c2bf){const _0x1d6a11=_0x3cff43(_0x48c2bf);_0x1d6a11&&_0x1d6a11[_0x4ee41c([0x61,0x6c,0x67])]==_0x4ee41c([0x45,0x53,0x32,0x35,0x36])||(_0x48e058=!0x1);}async function _0x359d64(_0x73b3c8,_0x2c798a,_0x4237c7){const _0x56f31e=window[_0x4ee41c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ee41c([0x66,0x72,0x6f,0x6d])](_0x1eb786(_0x4237c7),_0x143f25=>_0x143f25[_0x4ee41c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1835ff=new window[(_0x4ee41c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ee41c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x73b3c8+_0x4ee41c([0x2e])+_0x2c798a),_0x54521f=window[_0x4ee41c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ee41c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54521f)return;const _0x2805ba=await _0x54521f[_0x4ee41c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ee41c([0x6a,0x77,0x6b]),_0x1d02e6,{[_0x4ee41c([0x6e,0x61,0x6d,0x65])]:_0x4ee41c([0x45,0x43,0x44,0x53,0x41]),[_0x4ee41c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ee41c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ee41c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54521f[_0x4ee41c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ee41c([0x6e,0x61,0x6d,0x65])]:_0x4ee41c([0x45,0x43,0x44,0x53,0x41]),[_0x4ee41c([0x68,0x61,0x73,0x68])]:{[_0x4ee41c([0x6e,0x61,0x6d,0x65])]:_0x4ee41c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2805ba,_0x56f31e,_0x1835ff)||(_0x48e058=!0x1);}}function _0x3cff43(_0x4209c3){return _0x4209c3[_0x4ee41c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ee41c([0x65,0x79]))?JSON[_0x4ee41c([0x70,0x61,0x72,0x73,0x65])](_0x1eb786(_0x4209c3)):null;}function _0x1eb786(_0x13367a){return window[_0x4ee41c([0x61,0x74,0x6f,0x62])](_0x13367a[_0x4ee41c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ee41c([0x2b]))[_0x4ee41c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ee41c([0x2f])));}function _0x53c969(_0x33c0e5){let _0xc087d8=0x1505;function _0x5b15cc(_0x4739ad){for(let _0x75a71f=0x0;_0x75a71f<_0x4739ad[_0x4ee41c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x75a71f++){const _0x4dcfe6=_0x4739ad[_0x4ee41c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x75a71f);_0xc087d8=(_0xc087d8<<0x5)+_0xc087d8+_0x4dcfe6,_0xc087d8&=_0xc087d8;}}function _0x3bc8e8(_0x2d684d){Array[_0x4ee41c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d684d)?_0x2d684d[_0x4ee41c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3bc8e8):_0x2d684d&&typeof _0x2d684d==_0x4ee41c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ee41c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d684d)[_0x4ee41c([0x73,0x6f,0x72,0x74])]()[_0x4ee41c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ed6c8,_0x24e2e2])=>{_0x5b15cc(_0x4ed6c8),_0x3bc8e8(_0x24e2e2);}):_0x5b15cc(window[_0x4ee41c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d684d));}return _0x3bc8e8(_0x33c0e5),_0xc087d8>>>0x0;}function _0x12eaa2(_0x4a6e6b){return _0x4a6e6b[_0x4ee41c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ee41c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ee41c([0x30]));}function _0x2afe83(_0x3e5d9b){return _0x3e5d9b[_0x4ee41c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ee41c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ee41c([0x6a,0x6f,0x69,0x6e])]('');}function _0x304fdd(_0x71efd0){return _0x55aaa8[_0x4ee41c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ee41c([0x68,0x61,0x73])](_0x71efd0);}function _0x3bd8bb(_0x264a25){return _0x55aaa8[_0x4ee41c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ee41c([0x67,0x65,0x74])](_0x264a25);}function _0x3056e8(){}function _0x4ee41c(_0x4c9cc8){return _0x4c9cc8['map'](_0x40a027=>String['fromCharCode'](_0x40a027))['join']('');}_0x2ebedd(await _0x46b5b2());}(this);}['destroy'](){const _0x2b3a44=this['editor']['plugins']['get'](o),_0x26c6f2=this['editor']['config']['get']('collaboration.channelId');for(const _0x43b69c of _0x2b3a44['getCommentThreads']({'channelId':_0x26c6f2}))_0x2b3a44['_detachCommentThread'](_0x43b69c['id']),_0x2b3a44['_threads']['delete'](_0x43b69c['id']);super['destroy']();}['hasMarkerForId'](_0x20dff9){return this['getAllMarkersForId'](_0x20dff9)['length']>0x0;}['getAllMarkersForId'](_0x37df5b){const _0x4a3700=[];for(const _0x1481c5 of this['editor']['model']['markers'])_0x1481c5['name']['startsWith']('comment:'+_0x37df5b)&&_0x4a3700['push'](_0x1481c5);return _0x4a3700;}['scrollToThreadMarker'](_0x5d66d8){setTimeout(()=>{const _0x235cdd=this['_getTargetForId'](_0x5d66d8);if(!_0x235cdd)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x5d66d8&&nt({'target':_0x235cdd[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x32dd9f){this['editor']['model']['change'](()=>{for(const _0x1ee401 of this['getAllMarkersForId'](_0x32dd9f))this['editor']['editing']['reconvertMarker'](_0x1ee401);});}['_attachArchivedThread'](_0x5581a8){const _0x3f289f=this['editor']['plugins']['get'](o),_0xbfd717=this['editor']['plugins']['get'](b),_0x12abc1=_0x3f289f['getCommentThread'](_0x5581a8);if(!_0x12abc1['isAttached']){const _0x293a0b=_0x12abc1['attachTo'](()=>this['_getTargetForId'](_0x12abc1['id']));_0xbfd717['registerAnnotation'](_0x293a0b),_0x12abc1['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x53162e=this['editor'],_0x42a762=_0x53162e['plugins']['get'](it);_0x53162e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x552521,_0xb2bd2e)=>{const {id:_0x23c0fb}=ft(_0x552521['markerName']),_0x20fbbf=_0x53162e['plugins']['get'](o)['getCommentThread'](_0x23c0fb),_0x19e90f=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x23c0fb;let _0x2835fa;if(_0x20fbbf&&_0x20fbbf['isResolved']&&!_0x19e90f&&_0x552521['item'])return _0xb2bd2e['consumable']['consume'](_0x552521['item'],'addMarker:'+_0x552521['markerName']),_0xb2bd2e['consumable']['consume'](_0x552521['item'],'removeMarker:'+_0x552521['markerName']),null;const _0x21c928=['ck-comment-marker'];return _0x19e90f&&_0x21c928['push']('ck-comment-marker--active'),_0x2835fa=_0x20fbbf?.['length']?_0x20fbbf['comments']['first']['author']['id']:_0x42a762['me']['id'],{'classes':_0x21c928,'attributes':{'data-comment':_0x23c0fb,'data-author-id':_0x2835fa}};}}),_0x53162e['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x1f9571,{options:_0x174ebf})=>{if(_0x174ebf['showCommentHighlights'])return null;const _0x24ba20=_0x53162e['plugins']['get'](o),_0x2daa8a=_0x53162e['model']['markers']['get'](_0x1f9571),{id:_0x2f645e,part:_0xe7a461}=ft(_0x1f9571);return _0x2daa8a&&!_0x2daa8a['affectsData']||_0x174ebf['ignoreResolvedComments']&&_0x24ba20['getCommentThread'](_0x2f645e)?.['isResolved']?null:{'group':'comment','name':_0xe7a461?_0x2f645e+':'+_0xe7a461:_0x2f645e};}}),_0x53162e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x59e7b3,{writer:_0x5419a3})=>_0x5419a3['createElement']('$marker',{'data-name':'comment:'+_0x59e7b3['getAttribute']('id')})}),_0x53162e['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x3f8763=this['editor'],_0x5765ad=_0x3f8763['plugins']['get'](o),_0x5129d5=new Set(),_0x3322e8=new Set();_0x3f8763['model']['document']['registerPostFixer'](_0xc16490=>{let _0x533248=!0x1;for(const {name:_0x446d84,data:_0x6f3790}of _0x3f8763['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1c3b68,id:_0x5bc111}=ft(_0x446d84);let _0x10a5da=_0x6f3790['newRange'];if('comment'!==_0x1c3b68||!_0x10a5da)continue;const _0x2f330f='$graveyard'===_0x10a5da['root']['rootName'];_0x2f330f||(_0x10a5da=ht(_0x10a5da,_0x3f8763['model']),!_0x10a5da||_0x10a5da['isCollapsed']||!_0x6f3790['newRange']||_0x10a5da['isEqual'](_0x6f3790['newRange']))?_0x3f8763['model']['hasContent'](_0x10a5da)&&!_0x2f330f?this['isThreadsLoadingPaused']?_0x5129d5['add'](_0x446d84):this['_handleThreadMarker'](_0x446d84,_0x5bc111):(_0x3322e8['add'](_0x446d84),_0x5129d5['delete'](_0x446d84),_0xc16490['removeMarker'](_0x446d84),_0x533248=!0x0):(_0xc16490['updateMarker'](_0x446d84,{'range':_0x10a5da}),_0x533248=!0x0);}return _0x533248;}),this['on']('change:isThreadsLoadingPaused',(_0x1a1238,_0x73863d,_0xf6f084)=>{if(!_0xf6f084&&_0x5129d5['size'])for(const _0x27a717 of _0x5129d5){const {id:_0x118cd1}=ft(_0x27a717);_0x5129d5['delete'](_0x27a717),_0x3f8763['model']['markers']['get'](_0x27a717)&&this['_handleThreadMarker'](_0x27a717,_0x118cd1);}}),this['listenTo'](_0x3f8763['model']['document'],'change',()=>{for(const {name:_0x481eff,data:{newRange:_0x4b93fe}}of _0x3f8763['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1a8f66,id:_0x2d36fc}=ft(_0x481eff);if('comment'!==_0x1a8f66)continue;const _0x46e83b=_0x5765ad['getCommentThread'](_0x2d36fc),_0x3667ea=this['hasMarkerForId'](_0x2d36fc);_0x46e83b&&(!_0x46e83b['_hasTargetInContent']&&_0x4b93fe&&_0x3f8763['editing']['view']['once']('render',()=>{const _0x13e9b1=_0x3f8763['plugins']['get'](y),_0x1eb078=_0x5765ad['_threadToController']['get'](_0x46e83b)['view'];_0x13e9b1['getByInnerView'](_0x1eb078)['refreshVisibility']();},{'priority':'low'}),_0x46e83b['_hasTargetInContent']=_0x3667ea||!!_0x4b93fe),_0x4b93fe||(_0x3322e8['add'](_0x481eff),_0x5129d5['delete'](_0x481eff));}for(const _0x5fe31a of _0x3322e8){const {id:_0x1d8c8d}=ft(_0x5fe31a),_0x479b71=_0x5765ad['getCommentThread'](_0x1d8c8d);if(_0x5129d5['delete'](_0x5fe31a),!_0x479b71)continue;const _0x9a68e=this['hasMarkerForId'](_0x1d8c8d);_0x9a68e||_0x479b71['isSubmitted']?_0x9a68e||_0x479b71['unlinkedAt']||_0x479b71['setUnlinkedAt'](new Date()):_0x479b71['remove']();}_0x3322e8['clear']();});}['_handleInitialThreads'](_0xccef63){_0xccef63['forEach'](_0x4b396c=>{_0x4b396c['unlinkedAt']&&this['_attachArchivedThread'](_0x4b396c['id']);});}['_getTargetForId'](_0x2d4fc7){const _0x497a84=this['editor'],_0x195617=this['getAllMarkersForId'](_0x2d4fc7);return et(_0x497a84['editing'],_0x195617);}['_getTextContext'](_0x519a29){const _0x5ebd7a=this['getAllMarkersForId'](_0x519a29);let _0x142eaa='',_0x33bd7e=!0x1;for(const _0x4d8147 of _0x5ebd7a){const _0x375f45=_0x4d8147['getRange']();for(const _0x4eb981 of Array['from'](_0x375f45['getItems']()))_0x4eb981['is']('$textProxy')?(_0x142eaa&&_0x33bd7e&&(_0x142eaa+='\x20',_0x33bd7e=!0x1),_0x142eaa+=_0x4eb981['data']):_0x33bd7e=!0x0;_0x33bd7e=!0x0;}return _0x142eaa['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x753f03,_0xacde74){const _0x1dffbd=this['editor'],_0x44f648=_0x1dffbd['plugins']['get'](o);let _0x553179=_0x44f648['getCommentThread'](_0xacde74);const _0x2d0f32=_0x1dffbd['config']['get']('collaboration.channelId'),_0x88c41d=_0x1dffbd['plugins']['get'](b);if(_0x553179&&(_0x553179['unlinkedAt']&&_0x553179['setUnlinkedAt'](null),_0x553179['isAttached']))return _0x553179;return!this['getAllMarkersForId'](_0xacde74)[0x0]['managedUsingOperations']?_0x1dffbd['editing']['view']['once']('render',()=>{if(_0x44f648['getCommentThread'](_0xacde74))return;const _0x41c795=_0x1dffbd['plugins']['get'](y);_0x553179=_0x44f648['openNewCommentThread']({'channelId':_0x2d0f32,'threadId':_0xacde74,'target':()=>this['_getTargetForId'](_0xacde74),'context':{'type':'text','value':this['_getTextContext'](_0xacde74)}});const _0x1c326b=_0x44f648['_threadToController']['get'](_0x553179)['view'],_0x5b34c8=_0x41c795['getByInnerView'](_0x1c326b);_0x5b34c8&&_0x88c41d['registerAnnotation'](_0x5b34c8);},{'priority':'low'}):_0x44f648['fetchCommentThread']({'channelId':_0x2d0f32,'threadId':_0xacde74})['then'](_0x3bf952=>{if('destroyed'!==_0x1dffbd['state']){if(_0x553179=_0x3bf952,_0x553179&&!_0x553179['isAttached']){const _0x59f559=_0x553179['attachTo'](()=>this['_getTargetForId'](_0xacde74));_0x88c41d['registerAnnotation'](_0x59f559),_0x553179['isResolved']&&this['_reconvertMarkers'](_0xacde74);}else{if(!_0x553179){const _0x3221f4=this['getAllMarkersForId'](_0xacde74);_0x1dffbd['model']['change'](_0x57c51a=>{for(const _0x2f243a of _0x3221f4)_0x57c51a['removeMarker'](_0x2f243a);});}}}}),_0x553179;}['_handleThreadMarker'](_0x33b9c1,_0x38f8f3){const _0x2c529e=this['_attachMarkerToThread'](_0x33b9c1,_0x38f8f3);_0x2c529e&&!_0x2c529e['context']&&_0x2c529e['setContext']({'type':'text','value':this['_getTextContext'](_0x38f8f3)});}['_initAriaMarkerChangeAnnouncements'](){const _0x1c3c8a=this['editor'];rt(_0x1c3c8a['model'],({left:_0x336991,entered:_0x4ed02f})=>{for(const _0x3c57ea of _0x336991)if(mt(_0x3c57ea)){_0x1c3c8a['ui']['ariaLiveAnnouncer']['announce'](N(_0x1c3c8a['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x20a474 of _0x4ed02f)if(mt(_0x20a474)){_0x1c3c8a['ui']['ariaLiveAnnouncer']['announce'](N(_0x1c3c8a['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x35e476)));break;}});}}function dt(_0xdb68eb,_0x55279d){return _0x55279d?_0xdb68eb+':'+_0x55279d:_0xdb68eb;}function ht(_0x7ca486,_0x3f3f97){const _0x113b77=_0x3f3f97['schema'],_0x4c18c2=_0x3f3f97['createRange'](_0x7ca486['start']);for(const _0x1ff402 of _0x7ca486['getWalker']()){const {type:_0x59e390,item:_0x3c09ab,nextPosition:_0x4bf7b4}=_0x1ff402;if('text'===_0x59e390||_0x113b77['isObject'](_0x3c09ab)){const _0x432d3b=_0x3f3f97['createPositionBefore'](_0x3c09ab);_0x4c18c2['isCollapsed']&&(_0x4c18c2['start']=_0x432d3b),_0x4c18c2['end']=_0x4bf7b4;}}return _0x4c18c2;}function mt(_0xfea3f6){return'comment'===ft(_0xfea3f6['name'])['group'];}class s extends _0x5753fc{['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 _0x3106ba=this['editor'],_0x245f4b=_0x3106ba['plugins']['get'](o),_0x39501a=_0x3106ba['plugins']['get'](r),_0x579fbb=_0x3106ba['plugins']['get'](y),_0x2229e9=_0x3106ba['plugins']['get'](b);_0x3106ba['ui']['componentFactory']['add']('comment',()=>{const _0x5fd9af=this['_createUIButton'](_0x37ddc6);return _0x5fd9af['tooltip']=!0x0,_0x5fd9af;}),_0x3106ba['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x427723)),_0x2229e9['addSourceCollector'](()=>{const _0x39fb33=[];for(const [_0xe1e2ab,_0x4add72]of _0x245f4b['_threadToController']){const _0x52c9d4=_0x39501a['getAllMarkersForId'](_0xe1e2ab['id']),_0x332247=_0x52c9d4['map'](_0x1cbc01=>_0x1cbc01['getRange']());_0x52c9d4['length']>0x0&&_0x39fb33['push']([_0x4add72['view'],_0x332247]);}return _0x39fb33;}),this['listenTo'](_0x579fbb,'change:activeAnnotations',(_0x195699,_0x3a4d40,_0x14fb1b)=>{const _0x4b5cb6=Array['from'](_0x14fb1b)['map'](_0x212b9b=>_0x212b9b['innerView'])['find'](_0x4dcccb=>_0x245f4b['_viewToController']['has'](_0x4dcccb));if(!_0x4b5cb6)return void(_0x39501a['activeMarker']=null);const _0x1f2fa6=_0x245f4b['_viewToController']['get'](_0x4b5cb6)['model']['id'],_0x2052ca='comment:'+_0x1f2fa6;_0x1f2fa6&&_0x39501a['hasMarkerForId'](_0x1f2fa6)?_0x39501a['activeMarker']=_0x2052ca:_0x39501a['activeMarker']&&(_0x39501a['activeMarker']=null);}),this['listenTo'](_0x245f4b,'removeCommentThread',(_0x2dcf44,{threadId:_0x851c12,isFromAdapter:_0x111c0b})=>{!_0x111c0b&&_0x3106ba['ui']['focusTracker']['isFocused']&&_0x39501a['hasMarkerForId'](_0x851c12)&&_0x3106ba['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x245f4b,'addComment',(_0x4e056b,{threadId:_0x44e80c,isFromAdapter:_0x43624e})=>{if(_0x43624e||!_0x39501a['hasMarkerForId'](_0x44e80c)||!_0x245f4b['hasCommentThread'](_0x44e80c))return;0x1===_0x245f4b['getCommentThread'](_0x44e80c)['length']&&(_0x3106ba['editing']['view']['focus'](),_0x4e056b['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3c95d5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4bd25c;for(const _0x11633e in _0x3c95d5){const _0x379589=_0x11633e,_0x35bc91=_0x3c95d5[_0x379589];if('commentsLicenseKeyValid'==_0x35bc91||'commentsLicenseKeyInvalid'==_0x35bc91||'commentsLicenseKeyExpired'==_0x35bc91||'commentsLicenseKeyDomainLimit'==_0x35bc91||'commentsLicenseKeyNotAllowed'==_0x35bc91||'commentsLicenseKeyEvaluationLimit'==_0x35bc91||'commentsLicenseKeyTrialLimit'==_0x35bc91||'commentsLicenseKeyUsageLimit'==_0x35bc91){delete _0x3c95d5[_0x379589],_0x4bd25c=_0x35bc91,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4bd25c&&_0x3c95d5['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4bd25c&&_0x3c95d5['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4bd25c&&_0x3c95d5['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4bd25c&&_0x3c95d5['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4bd25c&&_0x3c95d5['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4bd25c&&_0x3c95d5['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x4bd25c&&_0x3c95d5['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x3ebab8){const _0x36da68=this['editor'],_0x55ed92=new _0x3ebab8(_0x36da68['locale']),_0x1c9f8c=_0x36da68['commands']['get']('addCommentThread');return _0x55ed92['set']({'label':N(_0x36da68['locale'],'Comment'),'icon':_0x601cc9}),_0x55ed92['bind']('isEnabled')['to'](_0x1c9f8c,'hasContent'),this['listenTo'](_0x55ed92,'execute',()=>{_0x1c9f8c['execute']();}),_0x55ed92;}}class i extends _0x5753fc{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x4d3da8){super(_0x4d3da8),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x500485,_0x3f70c5,_0x23f614)=>{_0x23f614?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x368c41,_0x5cb8f4]of this['editor']['commands'])_0x5cb8f4['affectsData']&&'addCommentThread'!==_0x368c41&&_0x5cb8f4['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x1482da=this['editor']['editing']['view']['document'];this['listenTo'](_0x1482da,'cut',_0x467b58=>_0x467b58['stop'](),{'priority':'highest'}),this['listenTo'](_0x1482da,'clipboardInput',_0x17db52=>_0x17db52['stop'](),{'priority':'highest'}),this['listenTo'](_0x1482da,'delete',_0x2ccde9=>_0x2ccde9['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x5ecaf2,_0x3ff388]of this['editor']['commands'])_0x3ff388['affectsData']&&'addCommentThread'!==_0x5ecaf2&&_0x3ff388['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 _0x3e241b{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49ce68){super(_0x49ce68),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x7105f1=this['context']['plugins']['get'](y);this['listenTo'](_0x7105f1,'_activateAnnotation',(_0x16547c,_0x4ede92)=>{for(const _0x520548 of this['activeUIs']){const _0x514756=this['_uis']['get'](_0x520548);(0x0,this['uisData']['get'](_0x520548)['filter'])(_0x4ede92)&&_0x514756['setActiveAnnotation'](_0x4ede92);}}),this['listenTo'](_0x7105f1,'_deactivateAllAnnotations',()=>{for(const _0x49014b of this['activeUIs']){this['_uis']['get'](_0x49014b)['setActiveAnnotation'](null);}}),this['listenTo'](_0x7105f1['_visibleAnnotations'],'add',(_0x299368,_0x274816)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x274816);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x41e707){return this['activeUIs']['has'](_0x41e707);}['activate'](_0x398bce,_0x1af6f6=this['defaultFilter']){const _0x3689b0=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x398bce))throw new _0xc716c1('annotationsuis-missing-ui',this,{'uiName':_0x398bce});this['isActive'](_0x398bce)&&this['deactivate'](_0x398bce),this['activeUIs']['add'](_0x398bce);const _0x37b197=new S();v({'source':_0x3689b0['_visibleAnnotations'],'target':_0x37b197,'filter':_0x1af6f6}),this['uisData']['set'](_0x398bce,{'collection':_0x37b197,'filter':_0x1af6f6});const _0x41c7e0=this['_uis']['get'](_0x398bce);_0x41c7e0['attach'](_0x37b197),this['listenTo'](_0x41c7e0,'change:activeAnnotation',(_0x3f9495,_0x202818,_0x191ec8,_0x4c39a5)=>{_0x4c39a5&&_0x3689b0['_removeActiveAnnotation'](_0x4c39a5),_0x191ec8&&_0x3689b0['_addActiveAnnotation'](_0x191ec8);});}['deactivate'](_0x385827){if(this['activeUIs']['delete'](_0x385827),!this['_uis']['has'](_0x385827))throw new _0xc716c1('annotationsuis-missing-ui',this,{'uiName':_0x385827});const _0xe29934=this['_uis']['get'](_0x385827);_0xe29934['detach'](),this['stopListening'](_0xe29934),this['uisData']['get'](_0x385827)['collection']['destroy'](),this['uisData']['delete'](_0x385827);}['switchTo'](_0x45aa51){if(!this['_uis']['has'](_0x45aa51))throw new _0xc716c1('annotationsuis-missing-ui',this,{'uiName':_0x45aa51});const _0x3bc91d=this['context']['plugins']['get'](y),_0x3bf6eb=Array['from'](_0x3bc91d['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x45aa51);const _0x28dc6f=this['_uis']['get'](_0x45aa51);_0x28dc6f['setActiveAnnotation'](_0x3bf6eb),_0x28dc6f['_setSelectedAnnotations']&&_0x3bf6eb&&_0x28dc6f['_setSelectedAnnotations']([_0x3bf6eb]);}['deactivateAll'](){for(const _0x1c6643 of this['activeUIs'])this['deactivate'](_0x1c6643);}['register'](_0x291d56,_0x1b464e){if(this['_uis']['has'](_0x291d56))throw new _0xc716c1('annotationsuis-register-already-registered');if('function'!=typeof _0x1b464e['attach']||'function'!=typeof _0x1b464e['detach']||'function'!=typeof _0x1b464e['setActiveAnnotation'])throw new _0xc716c1('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x291d56,_0x1b464e);}['refilterAnnotations'](){const _0x50b77b=this['context']['plugins']['get'](y)['collection'],_0x5cbf1e=new Map(),_0x58a654=Array['from'](this['activeUIs']);for(const _0xc7c660 of this['activeUIs']){const _0x456639=this['uisData']['get'](_0xc7c660)['collection'];for(const _0xc62078 of _0x456639)_0x5cbf1e['set'](_0xc62078,_0xc7c660);}for(const _0x294a1c of _0x50b77b){const _0x3d2e6e=_0x5cbf1e['get'](_0x294a1c);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x294a1c);const _0x48c9bf=_0x58a654['find'](_0x382613=>this['uisData']['get'](_0x382613)['filter'](_0x294a1c));_0x3d2e6e!==_0x48c9bf&&(_0x3d2e6e&&this['uisData']['get'](_0x3d2e6e)['collection']['remove'](_0x294a1c),_0x48c9bf&&this['uisData']['get'](_0x48c9bf)['collection']['add'](_0x294a1c));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x63e9c){const _0x5a2b35=[];for(const _0x56a802 of this['activeUIs']){(0x0,this['uisData']['get'](_0x56a802)['filter'])(_0x63e9c)&&_0x5a2b35['push'](_0x56a802);}if(_0x5a2b35['length']>0x1)throw new _0xc716c1('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x5a2b35,'annotationType':_0x63e9c['type']});}}const Ci=/* #__PURE__ -- @preserve */
|
|
32
|
+
Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4c62b4){super(_0x4c62b4);const _0x2f013f=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 _0x529579(),this['focusCycler']=new _0x1fd229({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2f013f['to']('class')],'style':{'minHeight':_0x2f013f['to']('minHeight',_0x47b211=>'number'==typeof _0x47b211?Ci(_0x47b211+0xa):null)},'dir':_0x4c62b4['uiLanguageDirection'],'role':'application','aria-label':N(_0x4c62b4,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x4c62b4,'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',_0x56e236=>{this['_updateItemPositionInFocusables'](_0x56e236['source']);}),this['list']['forEach'](_0x2a54dc=>{this['focusTracker']['add'](_0x2a54dc['element']),this['_updateItemPositionInFocusables'](_0x2a54dc);}),this['list']['on']('change',(_0x4c2928,_0x5c4abf)=>{for(const _0x39bdf0 of _0x5c4abf['removed'])this['focusTracker']['remove'](_0x39bdf0['element']),this['focusables']['remove'](_0x39bdf0);for(const _0x215d13 of _0x5c4abf['added'])this['focusTracker']['add'](_0x215d13['element']),this['_updateItemPositionInFocusables'](_0x215d13);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3568a6){const _0x1941c3=this['focusables']['getIndex'](_0x3568a6);let _0x5ba614,_0x3a92d4;for(const _0x4942a2 of this['focusables'])if(_0x3568a6['top']<_0x4942a2['top']){_0x5ba614=_0x4942a2;break;}if(_0x3a92d4=_0x5ba614?this['focusables']['getIndex'](_0x5ba614):this['focusables']['length'],-0x1!==_0x1941c3){if(_0x1941c3===_0x3a92d4-0x1)return;this['focusables']['remove'](_0x3568a6),_0x3a92d4=_0x5ba614?this['focusables']['getIndex'](_0x5ba614):this['focusables']['length'];}this['focusables']['add'](_0x3568a6,_0x3a92d4);}}const Ot=/* #__PURE__ -- @preserve */
|
|
33
|
+
Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x4d9bdc){super(_0x4d9bdc),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x2af51e,_0x42c46b)=>_0x2af51e+_0x42c46b),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x281e97=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x281e97['to']('isAnimationDisabled',_0x401628=>_0x401628?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x281e97['to']('top',_0x9df150=>Ot(_0x9df150))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x479e90=this['element']['clientHeight'];_0x479e90&&(this['height']=_0x479e90);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x3e241b{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a7aed){super(_0x4a7aed),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 _0x5168d1=this['context']['config']['get']('sidebar.container');_0x5168d1&&this['setContainer'](_0x5168d1);}['setContainer'](_0x3d79c2){if(!g(_0x3d79c2))throw new _0xc716c1('sidebar-setcontainer-invalid-element');this['container']=_0x3d79c2;}['_attachToContainer']({viewClass:_0x519285='',spaceBetweenItems:_0x33d637=0x19}={}){if(!g(this['container']))throw new _0xc716c1('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x519285,this['_spaceBetweenItems']=_0x33d637;}['rearrange']({removedAnnotation:_0x122702,previousAnnotation:_0x2e6117,nextAnnotation:_0x484c34}){const _0xd7dcab=this['getSidebarItemView'](_0x122702);this['view']['list']['remove'](_0xd7dcab),this['_destroySidebarItemView'](_0x122702),_0x2e6117&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2e6117)),_0x484c34&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x484c34)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x4bb709,activatedAnnotation:_0x5aa76a,disableAnimationOnActivatedAnnotation:_0x1f8221}){if(this['_activeAnnotation']=_0x5aa76a,_0x4bb709){_0x4bb709['isActive']=!0x1;const _0x50c26d=this['getSidebarItemView'](_0x4bb709);_0x50c26d&&_0x1f8221&&(_0x50c26d['isAnimationDisabled']=!0x1);}if(_0x5aa76a){const _0x1e995a=this['getSidebarItemView'](_0x5aa76a);_0x1e995a&&(_0x5aa76a['isActive']=!0x0,_0x1f8221&&(_0x1e995a['isAnimationDisabled']=!0x0,_0x1e995a['top']+=0x1),this['_alignToTargetRect'](_0x1e995a));}}['_detachFromContainer'](_0xa865a0){if(this['view']['element']['remove'](),_0xa865a0){for(const _0x198625 of _0xa865a0)this['_destroySidebarItemView'](_0x198625);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2f756f,_0x542545){_0x542545||(_0x542545=_0x2f756f['view']);const _0xd2489d=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0xd2489d,_0x2f756f),this['_annotationToSidebarItemView']['set'](_0x2f756f,_0xd2489d),_0xd2489d['content']['add'](_0x542545),this['listenTo'](_0x2f756f['view'],'change:targetRect',(_0x12b1f5,_0x59dfa0,_0x504eb9)=>{const _0x386e07=this['_getTargetTop'](_0x2f756f,_0x504eb9);_0xd2489d['_targetTop']!=_0x386e07&&(_0xd2489d['_targetTop']=_0x386e07,this['_setItemTop'](_0xd2489d,_0x386e07));}),this['listenTo'](_0xd2489d,'change:top',()=>{this['_recalculate'](_0xd2489d,'top');}),this['listenTo'](_0xd2489d,'change:bottom',()=>{this['_recalculate'](_0xd2489d,'bottom');}),this['_alignToTargetRect'](_0xd2489d);const _0x53e799=this['_getItemBefore'](_0xd2489d);if(_0x53e799)this['_alignAfterItem'](_0x53e799,_0xd2489d)||this['_alignToTargetRect'](_0xd2489d);else this['_alignToTargetRect'](_0xd2489d);return this['_updateLastItem'](),this['view']['list']['add'](_0xd2489d),_0xd2489d;}['_alignForTopChange'](_0x3afa2c){if(!_0x3afa2c['content']['length'])return;const _0x1e0c08=this['_getItemBefore'](_0x3afa2c);if(!_0x1e0c08)return;const _0x26a9f9=this['_sidebarItemViewToAnnotation']['get'](_0x1e0c08),_0x598de9=this['_activeAnnotation'];_0x598de9&&_0x598de9===_0x26a9f9?this['_alignAfterItem'](_0x1e0c08,_0x3afa2c):this['_alignBeforeItem'](_0x3afa2c,_0x1e0c08);}['_alignForBottomChange'](_0x109ccf){if(!_0x109ccf['content']['length'])return;const _0x19360e=this['_getItemAfter'](_0x109ccf);if(!_0x19360e)return;const _0x508306=this['_sidebarItemViewToAnnotation']['get'](_0x19360e),_0x37d9f0=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x2531dc=this['_activeAnnotation'];_0x2531dc&&_0x2531dc===_0x508306&&_0x37d9f0?(this['_alignBeforeItem'](_0x19360e,_0x109ccf),this['_alignAfterItem'](_0x109ccf,_0x19360e)):_0x2531dc&&_0x2531dc===_0x508306?this['_alignBeforeItem'](_0x19360e,_0x109ccf):this['_alignAfterItem'](_0x109ccf,_0x19360e);}['_recalculate'](_0x911474,_0x2b3c10){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x1b6bca,changedProp:_0x28af91}of this['_recalculateBuffer'])'top'===_0x28af91?this['_alignForTopChange'](_0x1b6bca):this['_alignForBottomChange'](_0x1b6bca);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x911474,'changedProp':_0x2b3c10});}['getSidebarItemView'](_0x5c8d4c){return this['_annotationToSidebarItemView']['get'](_0x5c8d4c);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x3a9562){const _0x1eb049=this['getSidebarItemView'](_0x3a9562);this['stopListening'](_0x1eb049),this['stopListening'](_0x3a9562['view']),_0x1eb049['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x3a9562),this['_sidebarItemViewToAnnotation']['delete'](_0x1eb049);}['_createSidebarView'](){const _0x19a01e=new H(this['context']['locale']);return _0x19a01e['render'](),this['on']('change:_lastItem',(_0xf49d7e,_0x3b12a6,_0x42b5d4,_0x3749af)=>{_0x3749af&&_0x19a01e['unbind']('minHeight'),_0x42b5d4?_0x19a01e['bind']('minHeight')['to'](_0x42b5d4,'bottom'):_0x19a01e['minHeight']=null;}),_0x19a01e;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x16789c){const _0x20a24a=this['_sidebarItemViewToAnnotation']['get'](_0x16789c),_0xf1aa3=_0x20a24a&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x20a24a)-0x1);return _0xf1aa3&&this['getSidebarItemView'](_0xf1aa3)||null;}['_getItemAfter'](_0x7a5882){const _0x54bb95=this['_sidebarItemViewToAnnotation']['get'](_0x7a5882),_0x152307=_0x54bb95&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x54bb95)+0x1);return _0x152307&&this['getSidebarItemView'](_0x152307)||null;}['_alignBeforeItem'](_0x1e36d8,_0x1d2ddb){_0x1e36d8['updateHeight']();const _0x16a86e=G(_0x1d2ddb['bottom']+this['_spaceBetweenItems'],_0x1e36d8['top']);return!!_0x16a86e&&(this['_setItemTop'](_0x1d2ddb,_0x1d2ddb['top']-_0x16a86e),!0x0);}['_alignAfterItem'](_0x3ecb36,_0x134a5){_0x3ecb36['updateHeight']();const _0x1bf9ea=G(_0x3ecb36['bottom']+this['_spaceBetweenItems'],_0x134a5['top']);return!!_0x1bf9ea&&(this['_setItemTop'](_0x134a5,_0x134a5['top']+_0x1bf9ea,!0x1),!0x0);}['_alignToTargetRect'](_0x80cecc){const _0xa951bb=this['_sidebarItemViewToAnnotation']['get'](_0x80cecc);if(!_0xa951bb||!_0xa951bb['target']||!_0xa951bb['targetRect'])return;const _0xe8927d=this['_getTargetTop'](_0xa951bb,_0xa951bb['targetRect']);this['_setItemTop'](_0x80cecc,_0xe8927d);}['_getTargetTop'](_0x25f077,_0x26d091){if(null===_0x26d091)return 0x0;if(_0x25f077['target']instanceof _0x305cf4)return _0x26d091['top'];{const _0x3eebd3=new _0x305cf4(this['view']['element'])['top'];return _0x26d091['top']-_0x3eebd3;}}['_setItemTop'](_0x387b5c,_0x58e292,_0x396c07=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x396c07&&(_0x58e292=Math['max'](_0x58e292,this['_getMaxAvailableTop'](_0x387b5c))),_0x387b5c['top']=_0x58e292;}['_getMaxAvailableTop'](_0x77a15f){let _0x20c460=this['_getItemBefore'](_0x77a15f),_0x19da3d=0x0;for(;_0x20c460;)_0x20c460['updateHeight'](),_0x19da3d+=this['_spaceBetweenItems']+_0x20c460['height'],_0x20c460=this['_getItemBefore'](_0x20c460);return _0x19da3d;}}function G(_0x6f29b7,_0x2c70ed){return Math['max'](_0x6f29b7-_0x2c70ed,0x0);}function g(_0x2b8230){return null!==_0x2b8230&&'object'==typeof _0x2b8230&&0x1===_0x2b8230['nodeType'];}class e extends _0x3e241b{['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(_0x364431){super(_0x364431),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x214515(),this['_refreshPositioningDebounced']=_0x324384(()=>{_0x364431['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x5e4d5c=this['context']['plugins']['get'](j),_0xfea015=this['context']['plugins']['get'](z);_0x5e4d5c['register']('wideSidebar',this),_0xfea015['container']&&_0x5e4d5c['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3bad94){if(_0x3bad94===this['activeAnnotation'])return;const _0x1b4656=this['context']['plugins']['get'](z);_0x1b4656['_activeAnnotation']=_0x3bad94;const _0x2171bf=this['activeAnnotation'];_0x1b4656['refresh']({'blurredAnnotation':_0x2171bf,'activatedAnnotation':_0x3bad94}),this['activeAnnotation']=_0x3bad94;}['attach'](_0x468d6a){this['annotations']=_0x468d6a;const _0x5f4327=this['context']['plugins']['get'](z);if(_0x5f4327['_annotations']=_0x468d6a,this['isAttached'])throw new _0xc716c1('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5f4327,'set:container',()=>{this['detach'](),this['listenTo'](_0x5f4327,'change:container',_0x5e45b5=>{_0x5e45b5['off'](),this['attach'](_0x468d6a);});}),_0x5f4327['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x243cf7=_0x2dadec=>{_0x2dadec['updateTargetRect'](),_0x5f4327['addAnnotation'](_0x2dadec);};for(const _0x39ea7e of _0x468d6a)_0x243cf7(_0x39ea7e);this['listenTo'](_0x468d6a,'add',(_0x39001d,_0x35c633)=>{_0x243cf7(_0x35c633);}),this['listenTo'](_0x468d6a,'remove',(_0x40af21,_0x237eb1,_0xe0caf2)=>{_0x5f4327['rearrange']({'removedAnnotation':_0x237eb1,'previousAnnotation':_0x468d6a['get'](_0xe0caf2-0x1),'nextAnnotation':_0x468d6a['get'](_0xe0caf2+0x1)}),_0x237eb1===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x468d6a,'focus',(_0x3a0d2e,_0x55d01c)=>{this['setActiveAnnotation'](_0x55d01c);}),this['listenTo'](_0x468d6a,'blur',()=>{this['setActiveAnnotation'](null);});const _0x2759e6=this['context']instanceof _0x492057?this['context']['editors']:new _0x214515([this['context']]);for(const _0x5c44b3 of _0x2759e6)this['_integrateWithEditorAnnotations'](_0x5c44b3);this['listenTo'](_0x2759e6,'add',(_0x459835,_0x42c091)=>{this['listenTo'](_0x42c091,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x42c091);});}),this['listenTo'](_0x2759e6,'remove',(_0x4256a7,_0x9ada74)=>{_0x9ada74['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x9ada74['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0xc716c1('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x454213=this['context']['plugins']['get'](z);_0x454213['_detachFromContainer'](this['annotations']),this['stopListening'](_0x454213),this['stopListening'](this['annotations']),this['context']instanceof _0x492057&&this['stopListening'](this['context']['editors']);for(const _0x3847af of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3847af);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x5dd1ca){if(!_0x5dd1ca['plugins']['has']('EditorAnnotations'))return;const _0x3efcfd=_0x5dd1ca['plugins']['get']('EditorAnnotations'),_0x458162=()=>{const _0x4ff7c5=_0x3efcfd['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x4ff7c5[0x0]||null);};this['listenTo'](_0x3efcfd,'refresh',_0x458162),this['listenTo'](_0x3efcfd,'blur',(_0x4a4ddf,{isAnnotationTracked:_0xa0492b})=>{this['activeAnnotation']&&_0xa0492b(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3efcfd,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x48d26f=>{_0x3efcfd['hasDomSelection']()&&(_0x458162(),_0x48d26f['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3efcfd);}['_destroyEditorAnnotationsIntegration'](_0x35c1f3){this['stopListening'](_0x35c1f3),this['_editorAnnotations']['remove'](_0x35c1f3);}}class C extends _0x37ddc6{['counterView'];constructor(_0x16f274){super(_0x16f274);const _0x38804b=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x16f789,_0x331a5f)=>_0x16f789?'...':_0x331a5f['toString']()),this['set']('annotationType',''),this['icon']=_0x601cc9,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x38804b['to']('annotationType',_0x4af043=>'ck-annotation-counter__badge--'+_0x4af043),_0x38804b['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x38804b['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x3e241b{['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(_0x4b6dbe){super(_0x4b6dbe),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x7dec1f())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x214515(),this['_refreshPositioningDebounced']=_0x324384(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x4a9de3(this['context']['locale']),this['balloonPanelView']=new _0xeedbd9(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x47ab30){this['annotations']=_0x47ab30;const _0x47c626=this['context']['plugins']['get'](z),_0x5a0590=this['balloonPanelView'];if(_0x47c626['_annotations']=_0x47ab30,this['isAttached'])throw new _0xc716c1('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x47c626,'set:container',()=>{this['detach'](),this['listenTo'](_0x47c626,'change:container',_0x311637=>{_0x311637['off'](),this['attach'](_0x47ab30);});}),_0x47c626['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x56e05c=_0x214d34=>{const _0x2639fe=new C(this['context']['locale']);_0x47c626['addAnnotation'](_0x214d34,_0x2639fe),this['_annotationToNarrowView']['set'](_0x214d34,_0x2639fe),_0x2639fe['bind']('isDirty','annotationType','number')['to'](_0x214d34['view'],'isDirty','type','length'),_0x2639fe['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x5a0590['content']['first']!==_0x214d34['view']?(this['_showBalloon'](_0x214d34),_0x214d34['view']['element']['focus'](),this['setActiveAnnotation'](_0x214d34)):this['setActiveAnnotation'](null);});};for(const _0xd725ec of _0x47ab30)_0x56e05c(_0xd725ec);this['listenTo'](_0x47ab30,'add',(_0x3e0317,_0x3e9ed5)=>{_0x56e05c(_0x3e9ed5);}),this['listenTo'](_0x47ab30,'remove',(_0x407d37,_0x336203,_0x34fd24)=>{this['_annotationToNarrowView']['get'](_0x336203)['destroy'](),this['_annotationToNarrowView']['delete'](_0x336203),_0x47c626['rearrange']({'removedAnnotation':_0x336203,'previousAnnotation':_0x47ab30['get'](_0x34fd24-0x1),'nextAnnotation':_0x47ab30['get'](_0x34fd24+0x1)}),_0x336203===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x47ab30,'focus',(_0x541b94,_0x214972)=>{this['setActiveAnnotation'](_0x214972);}),this['listenTo'](_0x47ab30,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x1ecc15,_0x3134c2)=>{_0x3134c2['keyCode']===_0x3316b1['esc']&&_0x5a0590['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x5a0590['content']['first']),this['_hideBalloon'](),_0x3134c2['stopPropagation'](),_0x3134c2['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x5c2f36,_0x2618ad)=>{const _0x48a776=_0x2618ad['target'];_0x5a0590['isVisible']&&_0x5a0590['element']['contains'](_0x48a776)||_0x47c626['view']['element']['contains'](_0x48a776)||_0x5c2f36['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x448221=>_0x448221['contains'](_0x48a776))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x4c8eae=this['context']instanceof _0x492057?this['context']['editors']:new _0x214515([this['context']]);for(const _0x59a84e of _0x4c8eae)this['_integrateWithEditorAnnotations'](_0x59a84e);this['listenTo'](_0x4c8eae,'add',(_0x38891a,_0x1fd346)=>{this['listenTo'](_0x1fd346,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x1fd346);});}),this['listenTo'](_0x4c8eae,'remove',(_0x72922b,_0x30a35f)=>{_0x30a35f['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x30a35f['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x45fce5){if(_0x45fce5===this['activeAnnotation'])return;const _0x588b82=this['context']['plugins']['get'](z);if(_0x588b82['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x45fce5,'disableAnimationOnActivatedAnnotation':!0x0}),_0x45fce5)_0x588b82['getSidebarItemView'](_0x45fce5)?this['_showBalloon'](_0x45fce5):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x45fce5;}['detach'](){if(!this['isAttached'])throw new _0xc716c1('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x4aedb0=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x2075c3=>_0x2075c3['destroy']()),this['_annotationToNarrowView']['clear'](),_0x4aedb0['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x492057&&this['stopListening'](this['context']['editors']);for(const _0x2ca21e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x2ca21e);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'](_0x3e359d){if(!_0x3e359d['plugins']['has']('EditorAnnotations'))return;const _0x1f4e7d=_0x3e359d['plugins']['get']('EditorAnnotations'),_0x2bb393=this['context']['plugins']['get'](z),_0x37fd34=this['annotations'],_0x401c06=this['balloonPanelView'],_0x3e12d7=()=>{const _0x369107=_0x1f4e7d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x369107),this['setActiveAnnotation'](_0x369107[0x0]||null);};this['listenTo'](_0x1f4e7d,'refresh',_0x3e12d7),this['listenTo'](_0x1f4e7d,'blur',(_0xbf39b1,{isAnnotationTracked:_0x524184})=>{this['activeAnnotation']&&_0x524184(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x1f4e7d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x37fd34,'blur',_0x188c97=>{_0x1f4e7d['hasDomSelection']()&&_0x188c97['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x537e8a,_0x5b2a59)=>{const _0x525c63=_0x5b2a59['target'];_0x401c06['isVisible']&&_0x401c06['element']['contains'](_0x525c63)||_0x2bb393['view']['element']['contains'](_0x525c63)||this['activeAnnotation']&&_0x1f4e7d['hasDomSelection']()&&(_0x3e12d7(),_0x537e8a['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x1f4e7d);}['_destroyEditorAnnotationsIntegration'](_0x31face){_0x31face&&(this['stopListening'](_0x31face),this['_editorAnnotations']['remove'](_0x31face));}['_setSelectedAnnotations'](_0x62767d){for(const _0x2f8e4 of this['_selectedAnnotations'])_0x62767d['includes'](_0x2f8e4)||this['_manuallyClosedAnnotationViews']['delete'](_0x2f8e4['view']);this['_selectedAnnotations']=_0x62767d;}['_refreshPositioning'](){const _0x1e04fc=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x1e04fc['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x15d43f){if(this['_manuallyClosedAnnotationViews']['has'](_0x15d43f['view']))return;const _0x325cec=this['balloonPanelView']['content']['first'];_0x325cec!==_0x15d43f['view']?(_0x325cec&&this['_detachListeners'](_0x325cec),this['_attachListeners'](_0x15d43f['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x15d43f['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x367c3e=this['balloonPanelView']['content']['first'],_0x3ba7b1=_0x367c3e&&this['annotations']['getByView'](_0x367c3e);if(!_0x3ba7b1||!this['_annotationToNarrowView']['has'](_0x3ba7b1))return;const _0x5ee453=this['_annotationToNarrowView']['get'](_0x3ba7b1)['element'],_0x1a18e3=(function(){const _0x22c29b=_0xeedbd9['defaultPositions'];return[_0x22c29b['southArrowNorthEast'],_0x22c29b['northArrowSouthEast'],_0x22c29b['southArrowNorth'],_0x22c29b['northArrowSouth'],_0x22c29b['southArrowNorthWest'],_0x22c29b['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x5ee453,'positions':_0x1a18e3});}['_hideBalloon'](){const _0x390d03=this['balloonPanelView'],_0x213223=_0x390d03['content']['first'];_0x213223&&(this['_detachListeners'](_0x213223),_0x390d03['unpin'](),_0x390d03['content']['clear']());}['_attachListeners'](_0x10c072){this['listenTo'](_0x10c072,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x10c072,'Esc',(_0x5f3fc4,_0x10a440)=>{this['_manuallyClosedAnnotationViews']['add'](_0x10c072),this['_hideBalloon'](),_0x10a440();});}['_detachListeners'](_0x14ab9d){this['stopListening'](_0x14ab9d);}}class c extends _0x5753fc{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x314700,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1078bc){super(_0x1078bc),_0x1078bc['editing']['view']['addObserver'](_0x59b6e8),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x1078bc['plugins']['get'](_0x314700),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x484b06=this['editor']['plugins']['get'](j);_0x484b06['context']===this['editor']&&(_0x484b06['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x49249d,_0x4e436f)=>{const _0x28d266=this['_balloon'];if(this['isAttached']&&_0x28d266['visibleView']){const _0x928049=this['annotations']['getByView'](_0x28d266['visibleView']);_0x928049&&this['_closeAnnotation'](_0x928049),_0x4e436f();}}));}['afterInit'](){const _0x289411=this['editor']['plugins']['get'](j);_0x289411['context']===this['editor']&&(_0x289411['hasActive']()||_0x289411['switchTo']('inline'));}['setActiveAnnotation'](_0x32fc05){_0x32fc05!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x32fc05&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x32fc05)&&this['_addAnnotationToBalloon'](_0x32fc05,!0x0),_0x32fc05['isActive']=!0x0),_0x32fc05||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x32fc05);}['attach'](_0x765290){this['annotations']=_0x765290;const _0x139499=this['editor']['plugins']['get'](j),_0x117f8e=this['_balloon'];if(this['isAttached'])throw new _0xc716c1('inlineannotations-attach-already-attached',this);if(_0x139499['context']!==this['editor'])throw new _0xc716c1('inlineannotations-not-allowed-with-context',this);const _0x5e2b8b=this['editor']['plugins']['get'](b);this['listenTo'](_0x5e2b8b,'refresh',()=>{const _0x4ef9f9=_0x5e2b8b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x1e9fcb,_0x343e8c;!this['_forceRefresh']&&(_0x1e9fcb=_0x4ef9f9,_0x343e8c=this['_selectedAnnotations'],_0x1e9fcb['length']===_0x343e8c['length']&&_0x1e9fcb['every'](_0x3ca2b6=>_0x343e8c['includes'](_0x3ca2b6)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x4ef9f9),this['setActiveAnnotation'](_0x4ef9f9[0x0]||null));}),this['listenTo'](_0x5e2b8b,'blur',(_0x113804,{isAnnotationTracked:_0xf5e4b3})=>{this['activeAnnotation']&&_0xf5e4b3(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x59453d,_0x3c8e0c,_0x188b9d)=>{_0x188b9d||this['setActiveAnnotation'](null);}),this['listenTo'](_0x765290,'remove',(_0x2f539a,_0x58b58b)=>{this['_removeAnnotationFromBalloon'](_0x58b58b),_0x58b58b===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x117f8e,'change:visibleView',(_0x153195,_0x6b6c1f,_0x4bfd36,_0x549284)=>{_0x549284&&this['stopListening'](_0x549284);const _0xd5974f=_0x765290['getByView'](_0x4bfd36);_0x4bfd36&&_0xd5974f&&(this['listenTo'](_0x4bfd36,'change:height',()=>{_0x117f8e['updatePosition']();}),this['listenTo'](_0x4bfd36,'Esc',()=>{this['_closeAnnotation'](_0xd5974f),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xd5974f&&this['setActiveAnnotation'](_0xd5974f));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x117f8e['visibleView']&&(_0x765290['getByView'](_0x117f8e['visibleView'])&&_0x117f8e['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 _0xc716c1('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x58d1fb of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x58d1fb);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x828295){for(const _0x69f762 of this['_selectedAnnotations'])_0x828295['includes'](_0x69f762)||this['_manuallyClosed']['delete'](_0x69f762);for(const _0x2ea882 of this['annotations'])_0x828295['includes'](_0x2ea882)||this['_removeAnnotationFromBalloon'](_0x2ea882);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x17752d of _0x828295)this['_addAnnotationToBalloon'](_0x17752d);}this['_selectedAnnotations']=_0x828295;}['_addAnnotationToBalloon'](_0xc2f097,_0x526fa9=!0x1){this['_manuallyClosed']['has'](_0xc2f097)||(this['_addedAnnotations']['has'](_0xc2f097)||this['_balloon']['hasView'](_0xc2f097['view'])||(this['_addedAnnotations']['add'](_0xc2f097),this['_balloon']['add']({'stackId':_0xc2f097['view']['id'],'view':_0xc2f097['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xc2f097)}})),_0x526fa9&&this['_balloon']['showStack'](_0xc2f097['view']['id']));}['_getBalloonTargetForAnnotation'](_0x12c89e){const _0x3dfef4=_0x12c89e['target'],_0x4313d9=this['editor']['editing']['view'],_0x34d543=_0x4313d9['document']['selection']['getFirstRange'](),_0x41d62b=_0x4313d9['domConverter']['viewRangeToDom'](_0x34d543);if(_0x41d62b['collapse'](!0x0),_0x3dfef4){if(_0x3dfef4 instanceof _0x305cf4)return _0x3dfef4;let _0x176d4b=[];for(const _0x3f5eb5 of _0x3dfef4)_0x176d4b['push'](...F(_0x3f5eb5['getClientRects']()));_0x176d4b=function(_0x42d40a){const _0x29de8a=[];let _0x2cdc15=_0x42d40a[0x0];for(let _0x33f504=0x1;_0x33f504<_0x42d40a['length'];_0x33f504++)P(_0x2cdc15,_0x42d40a[_0x33f504])?_0x2cdc15['width']+=_0x42d40a[_0x33f504]['width']:(_0x29de8a['push'](_0x2cdc15),_0x2cdc15=_0x42d40a[_0x33f504]);return _0x29de8a['push'](_0x2cdc15),_0x29de8a;}(_0x176d4b);const _0x3619b6=_0x41d62b['getBoundingClientRect']();return _0x176d4b['find'](_0x44efbe=>_0x44efbe['top']<=_0x3619b6['top']&&_0x44efbe['bottom']>=_0x3619b6['bottom']&&_0x44efbe['left']<=_0x3619b6['left']&&_0x44efbe['right']>=_0x3619b6['right'])||_0x176d4b[0x0];}return _0x12c89e['targetRect']||_0x41d62b;}['_removeAnnotationFromBalloon'](_0x3b9d55){this['_addedAnnotations']['has'](_0x3b9d55)&&this['_balloon']['hasView'](_0x3b9d55['view'])&&(this['_addedAnnotations']['delete'](_0x3b9d55),this['_balloon']['remove'](_0x3b9d55['view']));}['_closeAnnotation'](_0xfd109b){this['_manuallyClosed']['add'](_0xfd109b),this['_removeAnnotationFromBalloon'](_0xfd109b);}}function F(_0x54c964){return Array['from'](_0x54c964)['map'](DOMRect['fromRect']);}function P(_0x33c542,_0x181339){return _0x33c542['top']===_0x181339['top']&&_0x33c542['bottom']===_0x181339['bottom']&&_0x33c542['right']===_0x181339['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x1774d9,_0x2d4cda){super(_0x1774d9),this['set']('isEmpty',!_0x2d4cda['length']),this['focusTracker']=new _0x529579(),this['_annotationViews']=_0x2d4cda,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x1fd229({'focusables':_0x2d4cda,'focusTracker':this['focusTracker']}),this['listenTo'](_0x2d4cda,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x2d4cda,'remove',(_0x20e0df,_0x52555e)=>{_0x52555e['isActive']&&this['focus'](),_0x2d4cda['length']||(this['isEmpty']=!0x0);});const _0x5b749e=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x1774d9,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x2d4cda},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x5b749e['if']('isEmpty','ck-hidden',_0x118dbe=>!_0x118dbe)]},'children':[{'text':N(_0x1774d9,'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 _0x4118cc of this['_annotationViews'])this['focusTracker']['add'](_0x4118cc['element']);this['_annotationViews']['on']('change',(_0x5ef2e5,{added:_0x12fc92,removed:_0x59e448})=>{for(const _0x1f916b of _0x12fc92)this['focusTracker']['add'](_0x1f916b['element']);for(const _0xcfb43b of _0x59e448)this['focusTracker']['remove'](_0xcfb43b['element']);});}}class p extends _0x3e241b{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x537c7c){super(_0x537c7c),this['archivedThreads']=new _0x214515();}['init'](){const _0x5d3e19=this['context'],_0x21c6c1=_0x5d3e19['plugins']['get'](o),_0x76016b=_0x5d3e19['plugins']['get'](y);this['listenTo'](_0x21c6c1,'addCommentThread',(_0x39da00,{threadId:_0x33c148})=>{const _0x26c00d=_0x21c6c1['getCommentThread'](_0x33c148);_0x26c00d['archivedAt']&&this['archivedThreads']['add'](_0x26c00d,this['_calculatePosition'](_0x26c00d['archivedAt'])),this['listenTo'](_0x26c00d,'change:archivedAt',(_0x40f216,_0x48ffb6,_0x278098)=>{_0x278098?this['archivedThreads']['has'](_0x26c00d)||this['archivedThreads']['add'](_0x26c00d,this['_calculatePosition'](_0x26c00d['archivedAt'])):this['archivedThreads']['has'](_0x26c00d)&&this['archivedThreads']['remove'](_0x26c00d);});}),this['listenTo'](_0x21c6c1,'removeCommentThread',(_0x8377e3,{threadId:_0x55e6cc})=>{const _0x28c20b=_0x21c6c1['getCommentThread'](_0x55e6cc);this['stopListening'](_0x28c20b),this['archivedThreads']['has'](_0x28c20b)&&this['archivedThreads']['remove'](_0x28c20b);},{'priority':'highest'}),this['listenTo'](_0x76016b['collection'],'focus',(_0x5caabe,_0x43fa5a)=>{_0x43fa5a['isVisible']||(_0x43fa5a['isActive']=!0x0,_0x76016b['activate'](_0x43fa5a));});}['_calculatePosition'](_0x1313c1){const _0xf836c4=[...this['archivedThreads']]['findIndex'](_0x10e1b0=>_0x10e1b0['archivedAt']<_0x1313c1);return _0xf836c4>-0x1?_0xf836c4:this['archivedThreads']['length'];}}class a extends _0x5753fc{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x570c6b];}constructor(_0x505994){super(_0x505994),this['annotationViews']=new _0x15d44a(),this['_pendingThreads']=[];}['init'](){const _0x229730=this['editor'],_0x4c39b3=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x229730['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x37ddc6,!0x0)),_0x229730['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x35e640=this['_createCommentsArchiveButton'](_0x427723);return _0x35e640['set']({'role':'menuitemcheckbox'}),_0x35e640;});const _0x1fea06=_0x229730['plugins']['get'](p),_0x37a263=_0x229730['plugins']['get']('Annotations'),_0x4afa54=_0x229730['plugins']['get']('CommentsRepository');_0x1fea06['archivedThreads']['forEach'](_0x13573c=>{this['_handleNewThread'](_0x13573c);}),this['listenTo'](_0x1fea06['archivedThreads'],'add',(_0x5a4e18,_0x1d3993)=>{this['_handleNewThread'](_0x1d3993);}),this['listenTo'](_0x37a263['collection'],'add',(_0x301226,_0x210ec8)=>{const _0xff0dcc=this['_pendingThreads']['find'](_0x8c8707=>{const _0x1bb2db=_0x4afa54['_threadToController']['get'](_0x8c8707);return _0x1bb2db&&_0x210ec8['innerView']===_0x1bb2db['view'];});if(_0xff0dcc){const _0x2598d0=this['_calculatePosition'](_0xff0dcc['archivedAt']);this['_addAnnotationToArchive'](_0x210ec8,_0x2598d0),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xff0dcc),0x1);}}),this['listenTo'](_0x1fea06['archivedThreads'],'remove',(_0x4fa680,_0x318293)=>{const _0x1b6c8a=_0x229730['config']['get']('collaboration.channelId');if(!_0x1b6c8a||_0x318293['channelId']===_0x1b6c8a){if(this['_pendingThreads']['includes'](_0x318293))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x318293),0x1);else{const _0x2efdc7=_0x4afa54['_threadToController']['get'](_0x318293),_0x431922=_0x37a263['getByInnerView'](_0x2efdc7['view']);this['annotationViews']['remove'](_0x431922['view']),this['stopListening'](_0x431922),this['stopListening'](_0x431922['focusableElements']);}}}),this['listenTo'](_0x37a263['collection'],'add',(_0x8563f6,_0x1c3523)=>{this['listenTo'](_0x1c3523,'escape',_0x4c39b3);}),this['listenTo'](_0x37a263['collection'],'remove',(_0x779fed,_0x4d85dd)=>{this['stopListening'](_0x4d85dd,'escape',_0x4c39b3);});}['_addAnnotationToArchive'](_0x4c9b84,_0x264324){this['listenTo'](_0x4c9b84,'set:isVisible',_0x366aef=>{_0x366aef['return']=!0x1,_0x366aef['stop']();}),this['annotationViews']['add'](_0x4c9b84['view'],_0x264324);}['_handleNewThread'](_0x2eee3d){const _0x110d0e=this['editor']['plugins']['get']('CommentsRepository'),_0x3dd934=this['editor']['plugins']['get']('Annotations'),_0x31f39b=this['editor']['config']['get']('collaboration.channelId');if(!_0x31f39b||_0x2eee3d['channelId']===_0x31f39b){const _0x206d9a=_0x110d0e['_threadToController']['get'](_0x2eee3d);if(!_0x206d9a)return void this['_pendingThreads']['push'](_0x2eee3d);const _0x2f82d3=this['_calculatePosition'](_0x2eee3d['archivedAt']),_0x541860=_0x3dd934['getByInnerView'](_0x206d9a['view']);_0x541860['isVisible']&&_0x3dd934['_visibleAnnotations']['remove'](_0x541860),this['_addAnnotationToArchive'](_0x541860,_0x2f82d3);}}['_calculatePosition'](_0x54e11d){const _0xdef90b=this['editor']['config']['get']('collaboration.channelId'),_0x1ef6a7=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x33f7d1=>_0x33f7d1['channelId']===_0xdef90b)['findIndex'](_0x57d6e8=>_0x57d6e8['archivedAt']<_0x54e11d);return _0x1ef6a7<0x0||_0x1ef6a7>this['annotationViews']['length']?this['annotationViews']['length']:_0x1ef6a7-0x1;}['_toggleDialog'](){const _0x1d7218=this['editor'],_0x4af817=_0x1d7218['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x1d7218['locale'],this['annotationViews'])),'commentsArchive'===_0x4af817['id']?_0x4af817['hide']():_0x4af817['show']({'id':'commentsArchive','title':N(_0x1d7218['locale'],'COMMENTS_ARCHIVE'),'icon':_0x5913f2,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x4f9160['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x24119e,_0x48b828=!0x1){const _0x130a60=this['editor']['locale'],_0x47c8a6=this['editor']['plugins']['get']('Dialog'),_0x49262c=new _0x24119e(_0x130a60);return _0x49262c['bind']('isEnabled')['to'](this,'isEnabled'),_0x49262c['bind']('isOn')['to'](_0x47c8a6,'id',_0x16e19d=>'commentsArchive'===_0x16e19d),_0x49262c['set']({'label':N(_0x130a60,'COMMENTS_ARCHIVE'),'icon':_0x5913f2,'isToggleable':!0x0}),_0x48b828&&(_0x49262c['tooltip']=!0x0),this['listenTo'](_0x49262c,'execute',()=>this['_toggleDialog']()),_0x49262c;}['_hideDialogOnAnnotationEscape']=_0x499aa2=>{const _0x3288de=_0x499aa2['source'];if(!this['annotationViews']['has'](_0x3288de['view']))return;const _0x50235b=this['editor']['plugins']['get']('Dialog');_0x50235b['isOpen']&&'commentsArchive'===_0x50235b['id']&&(_0x50235b['hide'](),_0x499aa2['stop']());};}class vi extends _0x5753fc{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,Yt as BaseCommentThreadView,ci as BaseCommentView,yi as Comment,Ti as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,vi 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};
|