@ckeditor/ckeditor5-comments 47.6.0-alpha.3 → 47.6.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/dist/index.js +11 -11
- package/package.json +19 -19
- package/src/comments/commentsediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Editor as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
((()=>Qt)());constructor(_0x234790={}){function _0x24e02d(_0x9f402a){return _0x9f402a['map'](_0x377791=>String['fromCharCode'](_0x377791))['join']('');}(_0x234790=Object['assign']({},_0x234790))['plugins']||(_0x234790['plugins']=hs['defaultPlugins']),super(_0x234790),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x24e02d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24e02d([0x76,0x69,0x65,0x77])][_0x24e02d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24e02d([0x61,0x75,0x74,0x6f]),this[_0x24e02d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x24e02d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24e02d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x24e02d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x24e02d([0x6f,0x6b])});}['create'](){const _0x241717=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x241717))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x2df2b4=>{const _0x27db09=this['model']['document']['getRoot'](),_0x271579=_0x27db09&&_0x27db09['getChild'](_0x27db09['childCount']-0x1);_0x2df2b4['setSelection'](_0x271579,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x45c022=this['editing']['view'],_0x11c79f=_0x45c022['document']['getRoot'](),_0x59790a=_0x11c79f['getChild'](0x0);_0x11c79f['childCount']>0x1||!_0x59790a||'p'!=_0x59790a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x45c022,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x59790a['placeholder']=this['placeholder']),Ft({'view':_0x45c022,'element':_0x59790a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x59790a);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x2b0906,_0x1a5c92={}){super(_0x2b0906),this['editor']=null,this['_editorConfig']=_0x1a5c92,this['set']('value',_0x1a5c92['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x2b0906,'Reply...')),this['set']('submitLabel',N(_0x2b0906,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x3fbfe5(),this['focusCycler']=new _0x39bd35({'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',(_0x139e91,_0x441e66)=>{this['cancelButtonView']['fire']('execute'),_0x441e66();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4cf81f,_0x569abb)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x569abb());}),this['on']('submit',(_0x315b38,_0x18931b)=>{_0x18931b['length']>0xfde8?(alert(N(_0x2b0906,'TOO_LONG_COMMENT_ALERT',[_0x18931b['length'],0xfde8])),_0x315b38['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x34df1d=this['editor'];this['element']['insertBefore'](_0x34df1d['ui']['element'],this['element']['firstChild']),_0x34df1d['model']['document']['on']('change',()=>this['value']=_0x34df1d['getData']()),_0x34df1d['bind']('placeholder')['to'](this),this['focusables']['add'](_0x34df1d['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x4a9635){-0x1===_0x4a9635?(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:_0x11987e}=this,_0x694e9b=new _0x2e2946(_0x11987e);return _0x694e9b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x694e9b['withText']=!0x0,_0x694e9b['bind']('label')['to'](this,'submitLabel'),_0x694e9b['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x694e9b['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x209dbb,_0x2ad6c9)=>!_0x2ad6c9&&!!_0x209dbb['trim']()),_0x694e9b;}['_createCancelButton'](){const {locale:_0x10f787}=this,_0x5a7207=new _0x2e2946(_0x10f787);return _0x5a7207['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x5a7207['label']=N(_0x10f787,'Cancel'),_0x5a7207['withText']=!0x0,_0x5a7207['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x5a7207;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x7f7cbb=>{this['focusTracker']['add'](_0x7f7cbb['element']);}),this['focusables']['on']('change',(_0xbff8d7,_0x5dad5d)=>{for(const _0x53f4c4 of Array['from'](_0x5dad5d['added'])['reverse']())this['focusTracker']['add'](_0x53f4c4['element']);});}}class ie extends kt{constructor(_0x3379c1,_0x252b01,_0x57ed2e){super(_0x3379c1),this['commentInputView']=new es(_0x3379c1,_0x57ed2e),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x76bd5,_0x346c35)=>_0x76bd5||!!_0x346c35),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 _0x121ef4(_0x3379c1,_0x252b01),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'](_0x3b685e){this['commentInputView']['focus'](_0x3b685e);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x25c936,_0x218581)=>{const {submitButtonView:_0x2ac97a,cancelButtonView:_0x111470,editor:_0x46277d}=this['commentInputView'];[_0x2ac97a['element'],_0x111470['element'],_0x46277d?_0x46277d['editing']['view']['getDomRoot']():null]['filter'](_0x39f4a6=>_0x39f4a6)['some'](_0x510158=>_0x510158['contains'](_0x218581['target']))||(this['focus'](),_0x218581['preventDefault']());});}}class rs extends kt{constructor(_0x3d1017){super(_0x3d1017);const _0x2119b8=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x2119b8['to']('count',_0x56fc86=>N(_0x3d1017,'NUMBER_OF_COMMENTS',_0x56fc86))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x3526a8,_0x41c9ed,_0xd8b6da){super(_0x3526a8);const _0x2c33f0=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x41c9ed['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x41c9ed,this['_config']=_0xd8b6da,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x3fbfe5(),this['keystrokes']=new jt(),this['focusCycler']=new _0x39bd35({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x595669=>this['commentViews']['map'](_0x20b6be=>_0x20b6be['element'])['includes'](_0x595669['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x3526a8),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x4bae50=>_0x4bae50-this['_config']['maxCommentsWhenCollapsed']);for(const _0x5afa17 of _0x41c9ed['comments'])this['_handleNewCommentModel'](_0x5afa17);this['_handleInfoComment'](),this['listenTo'](_0x41c9ed['comments'],'add',(_0x3c85f9,_0x4a53c0)=>{const _0xf9ceff=this['_calculatePosition'](_0x4a53c0);this['length']++,this['_handleNewCommentModel'](_0x4a53c0,_0xf9ceff),this['refreshVisibleViews']();}),this['listenTo'](_0x41c9ed['comments'],'remove',(_0x1b7ebb,_0x53ca67)=>{this['length']--,this['_handleRemoveCommentModel'](_0x53ca67),this['refreshVisibleViews']();}),this['listenTo'](_0x41c9ed,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x41c9ed,'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',_0x2c33f0['if']('length','ck-hidden',_0x2bd643=>!_0x2bd643)],'aria-label':N(_0x3526a8,'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'](_0x4f540d){-0x1===_0x4f540d?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0xc388f9 of this['commentViews'])_0xc388f9['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x536713,_0x5488d5){const _0x2a8808=new this['_config']['CommentView'](this['locale'],_0x536713,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x2a8808['viewUid']=_0x536713['id'],_0x2a8808['delegate']('removeComment')['to'](this),_0x2a8808['delegate']('updateComment')['to'](this),_0x2a8808['delegate']('resolveCommentThread')['to'](this),_0x2a8808['delegate']('editorReady')['to'](this),_0x2a8808['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x2a8808,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x2a8808,_0x5488d5);}['_calculatePosition'](_0x56b08){const _0x9947aa=this['_model']['_findOptimalIndex'](_0x56b08);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x56b08['authoredAt']?_0x9947aa-0x1:_0x9947aa:_0x9947aa-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x4e5c70={'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'],_0x4e5c70,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x4e5c70));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x30811a){const _0x4c9c66=this['commentViews']['remove'](_0x30811a['id']);this['stopListening'](_0x4c9c66),_0x4c9c66['isEditMode']&&this['_updateHasDirtyComment'](),_0x4c9c66['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2f0ab8=>_0x2f0ab8['isEditMode']);}['_rearrangeCollapse'](){const _0x513c29=function(_0x566d34){const _0xa69cfe=new _0x1ce026();for(const _0x37007a of _0x566d34)_0xa69cfe['add'](_0x37007a);return _0xa69cfe;}(this['commentViews']),_0x35cd38=this['_collapsedCommentsView']['count'];for(let _0x171e22=0x1;_0x171e22<=_0x35cd38;_0x171e22++)_0x513c29['remove'](0x1);for(const _0x1b1c94 of _0x513c29)_0x1b1c94['collapse']();_0x35cd38>0x0&&_0x513c29['add'](this['_collapsedCommentsView'],0x1),ns(_0x3ac826(Array['from'](this['visibleViews']),Array['from'](_0x513c29)),this['visibleViews'],_0x513c29);}['_rearrangeExpand'](){ns(_0x3ac826(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0xb84bd1 of this['visibleViews'])_0xb84bd1['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x19531f=>{this['focusTracker']['add'](_0x19531f['element']),this['keystrokes']['listenTo'](_0x19531f['element']);}),this['commentViews']['on']('change',(_0x32a7bb,_0x2574da)=>{for(const _0x5f2ffa of _0x2574da['removed'])this['focusTracker']['remove'](_0x5f2ffa['element']),this['keystrokes']['stopListening'](_0x5f2ffa['element']);for(const _0x23c841 of Array['from'](_0x2574da['added'])['reverse']())this['focusTracker']['add'](_0x23c841['element']),this['keystrokes']['listenTo'](_0x23c841['element']);});}}function ns(_0x13b9c4,_0x1d3c28,_0x118c35){let _0x47056c=0x0;for(const _0x569491 of _0x13b9c4)switch(_0x569491){case'insert':_0x1d3c28['add'](_0x118c35['get'](_0x47056c),_0x47056c),_0x47056c++;break;case'delete':_0x1d3c28['remove'](_0x47056c);break;case'equal':_0x47056c++;}}class oe extends kt{constructor(_0x92e981){super(_0x92e981);const _0x5f5c5b=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x5f5c5b['to']('contextValue',_0x4bac1e=>N(_0x92e981,'THREAD_CONTEXT_LABEL',_0x4bac1e)),'tabindex':-0x1},'children':[{'text':_0x5f5c5b['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x3dc69a,_0xea5d0){super(_0x3dc69a);const _0x24f544=this['bindTemplate'];this['_model']=_0xea5d0,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x3fbfe5(),this['keystrokes']=new jt(),this['focusCycler']=new _0x39bd35({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0xcc0685=>!!_0xcc0685),this['bind']('contextValue')['to'](this['_model'],'context',_0x3cf269=>_0x3cf269&&_0x3cf269['value']?this['_trimContextValue'](_0x3cf269['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',_0x24f544['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 _0x44bf69=new _0x2e2946(this['locale']);return _0x44bf69['label']=N(this['locale'],'Reopen'),_0x44bf69['tooltip']=N(this['locale'],'Reopen'),_0x44bf69['icon']=_0x126a71,_0x44bf69['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xf6d27d=>!_0xf6d27d),_0x44bf69['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x546da6,_0x36da53)=>_0x546da6&&_0x36da53),_0x44bf69['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x44bf69;}['_trimContextValue'](_0x29413a){if(_0x29413a['length']<0x96)return _0x29413a;const _0x38a28d=_0x29413a['lastIndexOf']('\x20',0x93);return _0x29413a['substring'](0x0,_0x38a28d>-0x1?_0x38a28d:0x93)+'...';}['_attachContextActions'](){const _0x1ffe30=this['element']['querySelector']('.ck-context'),_0x49a2fa=_0x1ffe30['querySelector']('.ck-context__value');this['listenTo'](_0x1ffe30,'mouseenter',()=>{_0x49a2fa['offsetWidth']<_0x49a2fa['scrollWidth']&&_0x1ffe30['classList']['add']('overlay');}),this['listenTo'](_0x1ffe30,'mouseleave',()=>{_0x1ffe30['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x28abc4 of this['focusables'])this['focusTracker']['add'](_0x28abc4['element']),this['keystrokes']['listenTo'](_0x28abc4['element']);}['_createContextView'](){const _0x5db501=new oe(this['locale']);return _0x5db501['bind']('contextValue')['to'](this),_0x5db501;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x214c76,_0x550328,_0x11fb49,_0x228a2a){super(_0x214c76),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x550328,this['_localUser']=_0x11fb49,this['_config']=_0x228a2a,this['commentThreadHeaderView']=new Xt(_0x214c76,_0x550328),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x214c76,N(_0x214c76,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x214c76,_0x550328,Object['assign']({'CommentView':this['_config']['CommentView']},_0x228a2a)),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',(_0x1ca844,_0x274076)=>_0x1ca844||!!_0x274076),this['bind']('isUnlinked')['to'](_0x550328,'unlinkedAt',_0x25b77a=>!!_0x25b77a),this['bind']('ariaLabel')['to'](this,'length',_0x19db66=>{const _0x13b9f3=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x19db66,_0x13b9f3]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x3fbfe5(),this['keystrokes']=new jt(),this['focusCycler']=new _0x39bd35({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4ca8d3=>_0x4ca8d3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x494411=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1a2a80=_0x494411['commentInputView'];return _0x494411['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x1a2a80,'value',(_0x453647,_0x25595f,_0x5a4043,_0x1e21e1,_0x5c05dd)=>!!_0x5c05dd||!!_0x1e21e1&&_0x5a4043&&!_0x25595f||_0x453647&&_0x5a4043&&!_0x25595f),_0x1a2a80['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0xd4eef8,_0x2a3737,_0x1671df)=>{let _0x2a51d8;return _0x2a51d8=_0x1671df&&_0x2a3737?'Reply\x20to\x20reopen\x20discussion...':_0xd4eef8?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x2a51d8);}),_0x1a2a80['bind']('submitLabel')['to'](this,'length',_0x3c05e8=>N(this['locale'],_0x3c05e8?'Reply':'Comment')),_0x1a2a80['on']('submit',(_0x5528cd,_0x3b89fd)=>{this['fire']('addComment',_0x3b89fd),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x1a2a80['on']('cancel',()=>{this['focus']();}),_0x1a2a80['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1a2a80['on']('cancel',_0x4515c0=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4515c0['stop']());}),this['on']('change:isActive',(_0x289347,_0x4b2a8e,_0x5c7e76)=>{_0x5c7e76||this['length']||_0x1a2a80['value']||this['fire']('removeCommentThread');}),_0x494411;}}class gt extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(
|
|
28
|
-
ti(di){['actionBar'];['userView'];constructor(
|
|
29
|
-
_0x27f26f(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x677860,target:_0x3a2a0e,type:_0xe25fe,isVisible:_0x2757c8=!0x0}){super(),this['view']=_0x677860,this['view']['element']||this['view']['render'](),this['_type']=_0xe25fe,this['_target']=_0x3a2a0e,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x1ce026([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x56fb49,_0x1a4c2a)=>{this['view']['focusTracker']['add'](_0x1a4c2a);}),this['focusableElements']['on']('remove',(_0x2004cf,_0x1df1ee)=>{this['view']['focusTracker']['remove'](_0x1df1ee);}),this['set']('isVisible',_0x2757c8);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x1b4666=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x1b4666),_0x1b4666;}get['targetRect'](){const _0x1b8696=this['target'];if(null===_0x1b8696)return null;if(_0x1b8696 instanceof _0x28ea8f)return _0x1b8696;const _0x204da0=_0x1b8696['filter'](_0x54085d=>function(_0x44e410){const _0x52c000=_0x44e410['offsetParent'];if(_0x52c000)return!0x0;const _0x564518=_0x44e410['getClientRects']()['item'](0x0);return!!_0x564518;}(_0x54085d));return 0x0===_0x204da0['length']?null:new _0x28ea8f(_0x204da0[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x5b7e7d){this['view']['isActive']=_0x5b7e7d,this['view']['mainView']['isActive']=_0x5b7e7d;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xedb8c6){if(!(null===_0xedb8c6||_0xedb8c6 instanceof _0x28ea8f||Array['isArray'](_0xedb8c6)&&_0xedb8c6['every'](_0x3e5efa=>fi(_0x3e5efa))))throw new _0x4c975e('annotation-invalid-target',null,{'target':_0xedb8c6});}['_getNormalizedTarget'](){const _0x4b7bc3='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x4b7bc3)?[_0x4b7bc3]:_0x4b7bc3;}}function fi(_0x29dd76){return null!==_0x29dd76&&'object'==typeof _0x29dd76&&'nodeType'in _0x29dd76&&0x1===_0x29dd76['nodeType'];}class S extends _0x1ce026{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x5379b5=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x3fbfe5(),this['_focusTracker']['on']('change:isFocused',(_0x1cad7b,_0x18651e,_0x54e3e9)=>{_0x54e3e9||this['fire']('blur');});for(const _0x115b44 of _0x5379b5)this['add'](_0x115b44);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2435d5){if(this['has'](_0x2435d5))throw new _0x4c975e('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2435d5['innerView'],_0x2435d5),this['_viewToAnnotation']['set'](_0x2435d5['view'],_0x2435d5);for(const _0x60d0bb of _0x2435d5['focusableElements'])this['_focusTracker']['add'](_0x60d0bb);this['listenTo'](_0x2435d5['focusableElements'],'add',(_0x1c1748,_0x5b9f5d)=>{this['_focusTracker']['add'](_0x5b9f5d);}),this['listenTo'](_0x2435d5['focusableElements'],'remove',(_0x3069b4,_0x41f672)=>{this['_focusTracker']['remove'](_0x41f672);}),this['listenTo'](_0x2435d5['view']['focusTracker'],'change:isFocused',(_0x5acb72,_0x1a1cf9,_0x3fd8ea)=>{_0x3fd8ea&&this['fire']('focus',_0x2435d5);}),_0x2435d5['updateTargetRect']();const _0x48d6f6=this['_getOrderInContent'](_0x2435d5['view']['targetRect']);return super['add'](_0x2435d5,_0x48d6f6);}['remove'](_0x482f3d){if(!this['has'](_0x482f3d))throw new _0x4c975e('annotationcollection-not-existing-item',null);this['stopListening'](_0x482f3d['view']['focusTracker']),this['stopListening'](_0x482f3d['focusableElements']);for(const _0x546140 of _0x482f3d['focusableElements'])this['_focusTracker']['remove'](_0x546140);return this['_viewToAnnotation']['delete'](_0x482f3d['view']),this['_innerViewToAnnotation']['delete'](_0x482f3d['innerView']),super['remove'](_0x482f3d);}['getByInnerView'](_0x4edd3e){return this['_innerViewToAnnotation']['get'](_0x4edd3e);}['getByView'](_0x40b845){return this['_viewToAnnotation']['get'](_0x40b845);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0xde902c of this)_0xde902c['updateTargetRect']();this['_sort']();}['_sort'](){const _0xb24503=Array['from'](this)['sort']((_0x2562cb,_0x1097b7)=>w(_0x2562cb['view']['targetRect'],_0x1097b7['view']['targetRect']));for(let _0x1108a8=_0xb24503['length']-0x1;_0x1108a8>0x0;_0x1108a8--){const _0x59a6bd=_0xb24503[_0x1108a8];_0x1108a8!==this['getIndex'](_0x59a6bd)&&(this['remove'](_0x59a6bd),this['add'](_0x59a6bd));}}['_getOrderInContent'](_0x47de9a){let _0x53ad1d=0x0;if(!_0x47de9a)return this['length'];for(const _0x507113 of this){const _0x1fe79c=_0x507113['view']['targetRect'];if(_0x1fe79c){if(w(_0x47de9a,_0x1fe79c)<0x0)return _0x53ad1d;_0x53ad1d++;}}return _0x53ad1d;}}function v({source:_0x15e4c3,target:_0x53b682,filter:_0x22b645}){for(const _0x2e5bb0 of _0x15e4c3)_0x22b645(_0x2e5bb0)&&_0x53b682['add'](_0x2e5bb0);_0x53b682['listenTo'](_0x15e4c3,'add',(_0x393289,_0x2ad5b7)=>{_0x22b645(_0x2ad5b7)&&_0x53b682['add'](_0x2ad5b7);}),_0x53b682['listenTo'](_0x15e4c3,'remove',(_0x59c4e0,_0x431f36)=>{_0x53b682['has'](_0x431f36)&&_0x53b682['remove'](_0x431f36);});}function w(_0x533222,_0x1b062a){if(null===_0x533222&&null===_0x1b062a)return 0x0;if(null===_0x533222)return-0x1;if(null===_0x1b062a)return 0x1;const _0x116101=_0x533222['top']-_0x1b062a['top'];return 0x0==_0x116101?_0x533222['left']-_0x1b062a['left']:_0x116101;}class y extends _0x1511aa{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10d115){if(super(_0x10d115),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x10d115 instanceof _0x4547d4){const _0x625cb8=_0x10d115['locale'];_0x10d115['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x625cb8,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x48cbfc){this['collection']['add'](_0x48cbfc);}['remove'](_0x376f44){this['collection']['remove'](_0x376f44),_0x376f44['destroy']();}['refreshVisibility'](){for(const _0x133d53 of this['collection'])_0x133d53['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x416cc8){return this['collection']['getByInnerView'](_0x416cc8);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x90db5e of this['collection'])_0x90db5e['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x5d6137){this['fire']('_activateAnnotation',_0x5d6137);}['createAnnotation'](_0x5e1529){return new T(_0x5e1529);}['createAnnotationView'](_0x25839f,_0x5c6c70){return new E(_0x25839f,_0x5c6c70);}['_addActiveAnnotation'](_0x1d82a3){const _0x102c10=new Set(this['activeAnnotations']);_0x102c10['add'](_0x1d82a3),this['activeAnnotations']=_0x102c10;}['_removeActiveAnnotation'](_0x2f5404){const _0x34bea5=new Set(this['activeAnnotations']);_0x34bea5['delete'](_0x2f5404),this['activeAnnotations']=_0x34bea5;}['_bindAnnotationsToVisibleAnnotations'](){const _0x37ddb5=this['collection'],_0x130088=this['_visibleAnnotations'];function _0x5e3d10(_0x13a9dc){const _0x446d0c=_0x13a9dc['source'];_0x446d0c['isVisible']&&!_0x130088['has'](_0x446d0c)?_0x130088['add'](_0x446d0c):!_0x446d0c['isVisible']&&_0x130088['has'](_0x446d0c)&&_0x130088['remove'](_0x446d0c),_0x446d0c['view']['focusTracker']['remove'](_0x446d0c['view']['element']),_0x446d0c['view']['focusTracker']['add'](_0x446d0c['view']['element']);}this['listenTo'](_0x37ddb5,'add',(_0x9067a1,_0x2ddfd6)=>{_0x2ddfd6['isVisible']&&_0x130088['add'](_0x2ddfd6),this['listenTo'](_0x2ddfd6,'change:isVisible',_0x5e3d10);}),this['listenTo'](_0x37ddb5,'remove',(_0x5ce5d5,_0x4a3100)=>{_0x130088['has'](_0x4a3100)&&_0x130088['remove'](_0x4a3100),this['stopListening'](_0x4a3100,'change:isVisible',_0x5e3d10);});}['_setupEnterAnnotationKeystroke'](){const _0x1e0fea=_0x55ccb2=>{_0x55ccb2['on']('ready',()=>{_0x55ccb2['keystrokes']['set'](_0x5199de,(_0x175076,_0x3c0ad6)=>{const _0x22aa14=_0x666d2d(this['activeAnnotations']['values']());_0x22aa14&&(_0x22aa14['view']['focus'](),_0x3c0ad6());});});};this['context']instanceof _0x4547d4?_0x1e0fea(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x41958b,_0x445309)=>{_0x1e0fea(_0x445309);});}['_setupEscapeAnnotationHandling'](){const _0x6657cd=_0x472529=>{const _0x35c0cb=_0x472529['source'],_0x49f403=[];let _0x26c811;if(Array['isArray'](_0x35c0cb['target'])){_0x26c811=_0x35c0cb['target'][0x0],this['context']instanceof _0x4547d4?_0x49f403['push'](this['context']):this['context']['editors']&&_0x49f403['push'](...this['context']['editors']);for(const _0x221f7e of _0x49f403)for(const _0x447fc2 of _0x221f7e['editing']['view']['domRoots']['values']())if(_0x447fc2['contains'](_0x26c811))return void _0x221f7e['editing']['view']['focus']();_0x26c811['focus']();}};this['listenTo'](this['collection'],'add',(_0x1686bc,_0x59b851)=>{this['listenTo'](_0x59b851,'escape',_0x6657cd,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0xbad892,_0x30cc0e)=>{this['stopListening'](_0x30cc0e,'escape',_0x6657cd);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x1511aa{['_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(_0x2601f7){super(_0x2601f7),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x50c20c=this['context']['config'];_0x50c20c['define']('comments.maxCommentsWhenCollapsed',0x2),_0x50c20c['define']('comments.maxThreadTotalWeight',0x1f4),_0x50c20c['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x50c20c['define']('comments.CommentThreadView',gt),_0x50c20c['define']('comments.CommentView',Tt),_0x50c20c['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x392e19=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x4158ef,_0x2a20f2)=>this['_addCommentThread'](_0x2a20f2)),this['on']('submitCommentThread',(_0x48d029,_0x55f8ba)=>this['_submitCommentThread'](_0x55f8ba)),this['on']('resolveCommentThread',(_0xa29ad3,_0x4d0e4c)=>this['_resolveCommentThread'](_0x4d0e4c)),this['on']('resolveCommentThread',(_0x186c3e,_0x38c656)=>this['_updateActiveAnnotation'](_0x38c656),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x31ba82,_0x46b072)=>this['_reopenCommentThread'](_0x46b072)),this['on']('reopenCommentThread',(_0x3d7cc9,_0x58b018)=>this['_updateActiveAnnotation'](_0x58b018),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x18f141,_0x16aef2)=>this['_removeCommentThread'](_0x16aef2)),this['on']('updateCommentThread',(_0x819620,_0x227341)=>this['_updateCommentThread'](_0x227341)),this['on']('updateCommentThread',(_0x899e7e,_0x46b92e)=>this['_updateActiveAnnotation'](_0x46b92e),{'priority':'lowest'}),this['on']('addComment',(_0x1d9825,_0x378796)=>this['_addComment'](_0x378796)),this['on']('updateComment',(_0x3f932a,_0x1308f1)=>this['_updateComment'](_0x1308f1)),this['on']('removeComment',(_0x431568,_0x27b955)=>this['_removeComment'](_0x27b955)),this['on']('addComment',(_0x779d83,{threadId:_0xfb6a5c,isFromAdapter:_0x2e3ce2})=>{if(_0x2e3ce2)return;const _0x37a662=this['getCommentThread'](_0xfb6a5c),_0xb781d7=_0x37a662&&this['_threadToController']['get'](_0x37a662);_0xb781d7&&_0xb781d7['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x392e19,'change:activeAnnotations',(_0x2b837e,_0x3e8b17,_0x27e184)=>{const _0xa6515a=Array['from'](_0x27e184)['map'](_0x20fd11=>this['_viewToController']['get'](_0x20fd11['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0xa6515a?_0xa6515a['model']:null;});}set['adapter'](_0x35fd8c){if(this['_adapter'])throw new _0x4c975e('commentsrepository-adapter-already-set');this['_adapter']=_0x35fd8c;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x5241a8=_t,threadId:_0x186ada=_0x288d35(),comments:_0x54593f=[],unlinkedAt:_0x29445d=null,resolvedAt:_0xae983b=null,resolvedBy:_0x44751a=null,target:_0xccf447=null,context:_0x4cc6a5=null,attributes:_0x58ade1={},isResolvable:_0x14c6bd=!0x0,isSubmitted:_0x5f2fa5=!0x1,isFromAdapter:_0x3a8660=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x5241a8),{'channelId':_0x5241a8,'threadId':_0x186ada,'comments':_0x54593f,'unlinkedAt':_0x29445d,'resolvedAt':_0xae983b,'resolvedBy':_0x44751a,'target':_0xccf447,'context':_0x4cc6a5,'attributes':_0x58ade1,'isFromAdapter':_0x3a8660,'isResolvable':_0x14c6bd,'isSubmitted':_0x5f2fa5}),this['getCommentThread'](_0x186ada);}['openNewCommentThread']({channelId:_0xd6d88a=_t,threadId:_0x2f1824=_0x288d35(),target:_0x33a3bd,context:_0x29ca36=null,isResolvable:_0x22bb22=!0x0}){if(this['_readOnlyChannels']['has'](_0xd6d88a)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x33a3bd)throw new _0x4c975e('commentsrepository-missing-target');const _0x193617=this['addCommentThread']({'channelId':_0xd6d88a,'threadId':_0x2f1824,'target':_0x33a3bd,'context':_0x29ca36,'isResolvable':_0x22bb22});if(!_0x193617)return null;const _0x27f4d3=this['_threadToController']['get'](_0x193617),_0x11d37a=_0x27f4d3['view']['commentThreadInputView']['commentInputView'],_0x185ae7=this['context']['plugins']['get'](y),_0x5aba51=_0x185ae7['getByInnerView'](_0x27f4d3['view']);return _0x185ae7['activate'](_0x5aba51),_0x11d37a['once']('editorReady',()=>_0x11d37a['focus']()),_0x193617;}['hasCommentThread'](_0x58e8a1){if('string'!=typeof _0x58e8a1)throw new _0x4c975e('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x58e8a1);}['updateCommentThread']({channelId:_0x5b5e43=_t,threadId:_0x42c66c,context:_0xabc278,unlinkedAt:_0x11c407,attributes:_0x28cd55,isFromAdapter:_0x548db7=!0x1}){return this['fire'](Nt('updateCommentThread',_0x5b5e43),{'channelId':_0x5b5e43,'threadId':_0x42c66c,'context':_0xabc278,'unlinkedAt':_0x11c407,'attributes':_0x28cd55,'isFromAdapter':_0x548db7}),this['getCommentThread'](_0x42c66c);}['getCommentThread'](_0x360380){if('string'!=typeof _0x360380)throw new _0x4c975e('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x360380);}['fetchCommentThread']({channelId:_0x19ccb6,threadId:_0x3dc7e1}={}){const _0x479cc4=this['getCommentThread'](_0x3dc7e1);if(_0x479cc4)return Promise['resolve'](_0x479cc4);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x4c975e('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x19ccb6,'threadId':_0x3dc7e1})['then'](_0x3d6a91=>this['hasCommentThread'](_0x3dc7e1)?this['getCommentThread'](_0x3dc7e1):_0x3d6a91?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x19ccb6},_0x3d6a91)):void 0x0)['catch'](_0x25bbb7=>{throw console['error'](_0x25bbb7),new _0x4c975e('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x5835c5,skipNotAttached:_0x7701f4=!0x1,skipEmpty:_0x16aaa6=!0x1,toJSON:_0x9af8d8=!0x1}={}){const _0xb8745a=[];for(const _0x2bb96e of this['_threads']['values']())_0x5835c5&&_0x2bb96e['channelId']!==_0x5835c5||_0x7701f4&&!_0x2bb96e['isAttached']||_0x16aaa6&&0x0===_0x2bb96e['length']||_0xb8745a['push'](_0x2bb96e);return _0x9af8d8?_0xb8745a['map'](_0x3389ea=>_0x3389ea['toJSON']()):_0xb8745a;}['getAnnotationForCommentThread'](_0x5f1e85){const _0x4fc921=this['_threadToController']['get'](_0x5f1e85);if(!_0x4fc921)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x4fc921['view'])||null;}['getCommentThreadForAnnotation'](_0x49b88a){const _0x3f47db=this['_viewToController']['get'](_0x49b88a['innerView']);return _0x3f47db?_0x3f47db['model']:null;}['setActiveCommentThread'](_0x29dd2b){const _0x210e0b=this['context']['plugins']['get'](y);if(!_0x29dd2b)return void(this['activeCommentThread']&&_0x210e0b['deactivateAll']());const _0x442ac9=this['getCommentThread'](_0x29dd2b);if(!_0x442ac9)throw new _0x4c975e('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x29dd2b});if(!this['_threadToController']['has'](_0x442ac9))throw new _0x4c975e('commentsrepository-active-not-attached',null,{'threadId':_0x29dd2b});const _0x3564e2=_0x210e0b['getByInnerView'](this['_threadToController']['get'](_0x442ac9)['view']);_0x210e0b['activate'](_0x3564e2);}['switchReadOnly'](_0x54c057,_0x36b23b){_0x54c057?this['_readOnlyChannels']['add'](_0x36b23b):this['_readOnlyChannels']['delete'](_0x36b23b),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x1059ed){return this['_readOnlyChannels']['has'](_0x1059ed)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0xa20998,_0x4272c8){return new vt(_0xa20998,_0x4272c8);}['setPermissions'](_0x2690e5,_0x25b46d=_t){this['_permissions']['set'](_0x25b46d,_0x2690e5),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x3f9709=_t){return this['_permissions']['has'](_0x3f9709)?this['_permissions']['get'](_0x3f9709):bt;}['_addCommentThread']({channelId:_0x204d74,threadId:_0x46f640,comments:_0x413243,unlinkedAt:_0x281633,resolvedAt:_0x51632a,resolvedBy:_0x2ae319,target:_0x2b9e07,context:_0x126498,attributes:_0x1e05f1,isFromAdapter:_0x429cd3,isResolvable:_0x51a096,isSubmitted:_0x49fc61}){if('string'!=typeof _0x46f640)throw new _0x4c975e('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x46f640});if(this['hasCommentThread'](_0x46f640))throw new _0x4c975e('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x46f640});const _0x1b5c0a=new pi(this,{'channelId':_0x204d74,'id':_0x46f640,'context':_0x126498,'attributes':_0x1e05f1,'unlinkedAt':_0x281633,'resolvedAt':_0x51632a,'resolvedBy':_0x2ae319?this['context']['plugins']['get'](it)['getUser'](_0x2ae319):null,'isResolvable':_0x51a096,'isSubmitted':_0x49fc61||_0x429cd3});this['_threads']['set'](_0x46f640,_0x1b5c0a);for(const _0x121e8c of _0x413243)_0x1b5c0a['_add'](this['_createNewComment']({'threadId':_0x46f640,..._0x121e8c}));return _0x2b9e07&&_0x1b5c0a['attachTo'](_0x2b9e07),_0x429cd3||!_0x1b5c0a['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x204d74,'threadId':_0x46f640});}['_submitCommentThread']({channelId:_0x4ca0c4,threadId:_0x2424b7}){if(!this['hasCommentThread'](_0x2424b7))throw new _0x4c975e('commentsrepository-missing-comment-thread',this);const _0x20987c=this['getCommentThread'](_0x2424b7);if(_0x20987c['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x44a933,comments:_0x469bcf,resolvedAt:_0x2c260e,resolvedBy:_0x1f58c6,context:_0xb2c190,attributes:_0x1ec217}=_0x20987c,_0x503753=this['context']['plugins']['get']('PendingActions'),_0x30fb6e=_0x503753['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x4ca0c4,'threadId':_0x44a933,'comments':_0x469bcf['map'](_0x27406b=>_0x27406b['toJSON']()),'resolvedAt':_0x2c260e,'resolvedBy':_0x1f58c6?_0x1f58c6['id']:_0x1f58c6,'context':_0xb2c190,'attributes':_0x1ec217})['then'](({comments:_0x18b8aa})=>{_0x503753['remove'](_0x30fb6e);for(const _0x4f1da8 of _0x18b8aa)this['_updateComment']({'channelId':_0x4ca0c4,'threadId':_0x2424b7,'commentId':_0x4f1da8['commentId'],'createdAt':_0x4f1da8['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x5c99a8=>{throw console['error'](_0x5c99a8),new _0x4c975e('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x2535d8,target:_0x19ce68}){const _0x154a8e=this['getCommentThread'](_0x2535d8);if(!_0x154a8e)throw new _0x4c975e('commentsrepository-attach-missing-comment-thread',this);const _0x2bb86a=this['context']['plugins']['get']('PendingActions'),_0x395989=this['context']['plugins']['get'](y),_0x13e612=this['_createCommentThreadView'](_0x154a8e),_0x349f11=new vt(_0x154a8e,_0x13e612);let _0x55d412=null;_0x13e612['on']('change:isDirty',(_0x5c2e91,_0x1d00ff,_0x1df26c)=>{_0x1df26c?_0x55d412=_0x2bb86a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x55d412&&(_0x2bb86a['remove'](_0x55d412),_0x55d412=null);}),this['_threadToController']['set'](_0x154a8e,_0x349f11),this['_viewToController']['set'](_0x13e612,_0x349f11);const _0x3e0610=new E(this['context']['locale'],_0x13e612);_0x3e0610['bind']('length')['to'](_0x13e612),_0x3e0610['bind']('isDirty')['to'](_0x13e612,'isDirty',_0x13e612,'length',(_0x2d78ac,_0x29352e)=>_0x2d78ac||!_0x29352e),_0x3e0610['bind']('isActive')['to'](_0x13e612),_0x3e0610['type']='comment';const _0x54cee1=new T({'view':_0x3e0610,'target':_0x19ce68,'type':'comment','isVisible':!_0x154a8e['archivedAt']&&!!('function'==typeof _0x19ce68?_0x19ce68():_0x19ce68)});return _0x13e612['on']('escape',()=>{_0x54cee1['fire']('escape');}),this['_bindAnnotationToEditors'](_0x13e612,_0x54cee1),_0x395989['add'](_0x54cee1),_0x54cee1;}['_bindAnnotationToEditors'](_0x16a97b,_0x2c546a){this['listenTo'](_0x16a97b,'editorReady',(_0x138f86,_0x26b3fe)=>{const _0x18cf6b=_0x26b3fe['ui']['view']['body']['bodyCollectionContainer'];_0x2c546a['focusableElements']['add'](_0x18cf6b),this['context']instanceof _0x4547d4&&this['context']['ui']['focusTracker']['add'](_0x18cf6b);},{'priority':'highest'}),this['listenTo'](_0x16a97b,'editorDestroyed',(_0x14bc2d,_0x3f82c6)=>{const _0x3d1026=_0x3f82c6['ui']['view']['body']['bodyCollectionContainer'];_0x2c546a['focusableElements']['has'](_0x3d1026)&&_0x2c546a['focusableElements']['remove'](_0x3d1026),this['context']instanceof _0x4547d4&&this['context']['ui']['focusTracker']['remove'](_0x3d1026);});}['_unbindEditors'](_0x3a9fed){this['stopListening'](_0x3a9fed,'editorReady'),this['stopListening'](_0x3a9fed,'editorDestroyed');}['_createCommentThreadView'](_0x52c5a2){const _0x34ea0d=this['context']['plugins']['get'](it),{config:_0x267965,locale:_0x251ad2}=this['context'],_0x11f5fd=pt(_0x267965['get']('locale'),_0x251ad2);return new(0x0,(_0x267965['get']('comments'))['CommentThreadView'])(_0x251ad2,_0x52c5a2,_0x34ea0d['me'],{'editorConfig':{..._0x267965['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x267965['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x267965['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x267965['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x267965['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x11f5fd,'CommentView':_0x267965['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x12e604,channelId:_0x321e60,resolvedAt:_0x470bb4,resolvedBy:_0x214f54,isFromAdapter:_0x52bbe5}){if(!this['hasCommentThread'](_0x12e604))throw new _0x4c975e('commentsrepository-missing-comment-thread',null,{'threadId':_0x12e604});const _0x354d13=this['getCommentThread'](_0x12e604);if(_0x354d13['isResolved'])throw new _0x4c975e('commentsrepository-resolved-comment-thread',null,{'threadId':_0x12e604});const _0xd8006e=this['context']['plugins']['get'](it);if(_0x354d13['resolvedBy']=_0xd8006e['getUser'](_0x214f54),_0x354d13['resolvedAt']=_0x470bb4,_0x52bbe5||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x492334=this['context']['plugins']['get']('PendingActions'),_0x25da61=_0x492334['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x321e60,'threadId':_0x12e604})['then'](({resolvedAt:_0x3b697e,resolvedBy:_0x5bdeb8})=>{_0x492334['remove'](_0x25da61),_0x354d13['resolvedBy']['id']!==_0x5bdeb8&&(_0x354d13['resolvedBy']=_0xd8006e['getUser'](_0x5bdeb8)),_0x354d13['resolvedAt']=_0x3b697e;})['catch'](_0x3f2d4d=>{throw console['error'](_0x3f2d4d),new _0x4c975e('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x3b2965,channelId:_0x135277,isFromAdapter:_0x105a3c}){if(!this['hasCommentThread'](_0x3b2965))throw new _0x4c975e('commentsrepository-missing-comment-thread',null,{'threadId':_0x3b2965});const _0x78d428=this['getCommentThread'](_0x3b2965);if(!_0x78d428['isResolved'])throw new _0x4c975e('commentsrepository-reopen-comment-thread',null,{'threadId':_0x3b2965});if(_0x78d428['resolvedBy']=null,_0x78d428['resolvedAt']=null,_0x105a3c||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x44044a=this['context']['plugins']['get']('PendingActions'),_0x10baf2=_0x44044a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x135277,'threadId':_0x3b2965})['then'](()=>_0x44044a['remove'](_0x10baf2))['catch'](_0x10f054=>{throw console['error'](_0x10f054),new _0x4c975e('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0xc08055,isFromAdapter:_0x1b7758}){const _0x434e8d=this['getCommentThread'](_0xc08055);if(!_0x434e8d)throw new _0x4c975e('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0xc08055),this['_threads']['delete'](_0xc08055),!_0x434e8d['isSubmitted']||_0x1b7758||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x161100=this['context']['plugins']['get']('PendingActions'),{channelId:_0x59e5a2}=_0x434e8d,_0x3281c7=_0x161100['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x59e5a2,'threadId':_0xc08055})['then'](()=>_0x161100['remove'](_0x3281c7))['catch'](_0x469c79=>{throw console['error'](_0x469c79),new _0x4c975e('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4003b1,unlinkedAt:_0x27c880,context:_0xef979d,attributes:_0xad8923,isFromAdapter:_0x2f033c}){if('string'!=typeof _0x4003b1)throw new _0x4c975e('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4003b1});if(!this['hasCommentThread'](_0x4003b1))throw new _0x4c975e('commentsrepository-missing-comment-thread',null,{'threadId':_0x4003b1});const _0x3ea8c3=this['getCommentThread'](_0x4003b1);let _0x56cea9=!0x1;if(void 0x0!==_0xef979d&&_0x3ea8c3['context']!==_0xef979d&&(_0x3ea8c3['context']=_0xef979d,_0x56cea9=!0x0),void 0x0!==_0x27c880&&_0x3ea8c3['unlinkedAt']!==_0x27c880&&(_0x3ea8c3['unlinkedAt']=_0x27c880,_0x56cea9=!0x0),_0xad8923&&!At(_0xad8923,_0x3ea8c3['attributes'])&&(_0x3ea8c3['attributes']=_0xad8923,_0x56cea9=!0x0),!_0x56cea9)return Promise['resolve']();if(!_0x3ea8c3['isSubmitted']||_0x2f033c||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x45e778=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1ae8e2}=_0x3ea8c3,_0x13e7de=_0x45e778['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x1ae8e2,'threadId':_0x4003b1,'context':_0xef979d,'unlinkedAt':_0x27c880,'attributes':_0xad8923})['then'](()=>_0x45e778['remove'](_0x13e7de))['catch'](_0x47d600=>{throw console['error'](_0x47d600),new _0x4c975e('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x43af8c){const _0x3c1a36=this['context']['plugins']['get'](y),_0x34a8a8=this['getCommentThread'](_0x43af8c);if(_0x34a8a8['_isAttached']=!0x1,this['_threadToController']['has'](_0x34a8a8)){const _0x8b3f71=this['_threadToController']['get'](_0x34a8a8),_0x3fd0e6=_0x8b3f71['view'],_0x5c30bd=_0x3c1a36['getByInnerView'](_0x3fd0e6);this['_threadToController']['delete'](_0x34a8a8),this['_viewToController']['delete'](_0x3fd0e6),_0x5c30bd&&_0x3c1a36['remove'](_0x5c30bd),_0x8b3f71['destroy'](),_0x3fd0e6['destroy']()['then'](()=>{this['_unbindEditors'](_0x3fd0e6);});}}['_updateActiveAnnotation']({threadId:_0x4eb9e8,resolvedAt:_0x24b309,unlinkedAt:_0x3f01e9}){const _0x2b5524=!!_0x24b309,_0x2455af=this['context']['plugins']['get'](y),_0x1b45e4=this['getCommentThread'](_0x4eb9e8);if(this['_threadToController']['has'](_0x1b45e4)){const _0x530d36=this['_threadToController']['get'](_0x1b45e4)['view'],_0x4ec6ca=_0x2455af['getByInnerView'](_0x530d36);_0x4ec6ca&&(_0x2b5524&&_0x2455af['_removeActiveAnnotation'](_0x4ec6ca),_0x3f01e9?_0x4ec6ca['isVisible']=!0x1:_0x4ec6ca['refreshVisibility']());}}['_getExternalAuthor'](_0x38a7b8){const _0x2cafef=this['context']['plugins']['get'](it),_0x1eacbe=It('external:'+_0x38a7b8),_0x45c78e=_0x2cafef['getUser'](_0x1eacbe);return _0x45c78e||_0x2cafef['addUser']({'id':_0x1eacbe,'name':_0x38a7b8});}['_createNewComment']({threadId:_0x5790f6,commentId:_0x47274b=_0x288d35(),content:_0x2ad3ff,authorId:_0x493e49,createdAt:_0x68f8e0,attributes:_0x43473f}){if('string'!=typeof _0x47274b)throw new _0x4c975e('commentsrepository-invalid-commentid');if('string'!=typeof _0x493e49)throw new _0x4c975e('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x2ad3ff||!_0x2ad3ff['trim']())throw new _0x4c975e('commentsrepository-invalid-comment-content');const _0x41124a=this['context']['plugins']['get'](it)['getUser'](_0x493e49);if(!_0x41124a)throw new _0x4c975e('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x493e49});let _0x22fb0c=null,_0x20b1e4=_0x68f8e0;return _0x43473f?.['@external']&&(_0x22fb0c=this['_getExternalAuthor'](_0x43473f['@external']['authorName']),_0x20b1e4=new Date(_0x43473f['@external']['createdAt'])),new wi(this,{'threadId':_0x5790f6,'id':_0x47274b,'author':_0x22fb0c||_0x41124a,'creator':_0x41124a,'content':_0x2ad3ff,'createdAt':_0x68f8e0,'authoredAt':_0x20b1e4,'attributes':_0x43473f});}['_addComment'](_0x2b925e){let {threadId:_0x3e6109,content:_0x3ab6df,attributes:_0x3c6119,isFromAdapter:_0x17daec}=_0x2b925e;const _0x12632d=this['getCommentThread'](_0x2b925e['threadId']);if(!_0x12632d)throw new _0x4c975e('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x16fc1e=this['_createNewComment'](_0x2b925e),{id:_0x44f0b2}=_0x16fc1e;if(_0x12632d['_add'](_0x16fc1e),_0x17daec||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x12632d['isSubmitted'])return Promise['resolve']();const _0x5c778f=this['context']['plugins']['get']('PendingActions'),{channelId:_0x78395f}=_0x12632d,_0x3f1c1b=_0x5c778f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x3c6119||(_0x3c6119={}),this['adapter']['addComment']({'channelId':_0x78395f,'threadId':_0x3e6109,'commentId':_0x44f0b2,'content':_0x3ab6df,'attributes':_0x3c6119})['then'](_0x3da3a7=>{_0x5c778f['remove'](_0x3f1c1b),_0x3da3a7&&this['_updateComment']({'channelId':_0x78395f,'threadId':_0x3e6109,'commentId':_0x44f0b2,'createdAt':_0x3da3a7['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x178acf=>{throw console['error'](_0x178acf),new _0x4c975e('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x435e4e,commentId:_0x3d3d2b,content:_0x27c49d,createdAt:_0x25d19f,attributes:_0x2559bf,isFromAdapter:_0x50afc9}){if(void 0x0!==_0x27c49d&&('string'!=typeof _0x27c49d||!_0x27c49d['trim']()['length']))throw new _0x4c975e('commentsrepository-update-comment-invalid-content');const _0x4cfb5f=this['getCommentThread'](_0x435e4e),_0x384fed=_0x4cfb5f['getComment'](_0x3d3d2b);if(!_0x384fed)throw new _0x4c975e('commentsrepository-update-missing-comment',this);let _0x1c809e=!0x1;if(_0x27c49d&&_0x27c49d!==_0x384fed['content']&&(_0x384fed['isEditable']||_0x50afc9)&&(_0x384fed['content']=_0x27c49d,_0x1c809e=!0x0),_0x25d19f&&_0x25d19f!==_0x384fed['createdAt']&&(_0x384fed['createdAt']=_0x25d19f,_0x384fed['attributes']&&_0x384fed['attributes']['@external']||(_0x384fed['authoredAt']=_0x25d19f),_0x1c809e=!0x0),_0x2559bf&&!At(_0x2559bf,_0x384fed['attributes'])&&(_0x384fed['attributes']=_0x2559bf,_0x1c809e=!0x0),!_0x1c809e)return Promise['resolve']();if(_0x4cfb5f['fire']('commentUpdated'),_0x50afc9||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x28dce9=this['context']['plugins']['get']('PendingActions'),{channelId:_0x54d4af}=this['getCommentThread'](_0x384fed['threadId']),_0x133851=_0x28dce9['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x54d4af,'threadId':_0x435e4e,'commentId':_0x3d3d2b,'content':_0x27c49d,'attributes':_0x2559bf})['then'](()=>_0x28dce9['remove'](_0x133851))['catch'](_0x265c58=>{throw console['error'](_0x265c58),new _0x4c975e('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x3a91f8,commentId:_0x4af8a2,isFromAdapter:_0x1dc945}){const _0x1187ad=this['getCommentThread'](_0x3a91f8),_0x414152=_0x1187ad['getComment'](_0x4af8a2);if(!_0x414152)throw new _0x4c975e('commentsrepository-remove-missing-comment',this);if(_0x1187ad['_remove'](_0x414152),_0x1dc945||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x101678=this['context']['plugins']['get']('PendingActions'),{channelId:_0x228a95}=_0x1187ad,_0x4f05c4=_0x101678['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x228a95,'threadId':_0x3a91f8,'commentId':_0x4af8a2})['then'](()=>_0x101678['remove'](_0x4f05c4))['catch'](_0x879b87=>{throw console['error'](_0x879b87),new _0x4c975e('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0x27f26f(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x56a486,_0x1e78f3){super();const _0x233df2=_0x56a486['context']['plugins']['get'](it)['me'],_0xb374e9=_0x56a486['getCommentThread'](_0x1e78f3['threadId']),_0x15380f=0x0===_0xb374e9['comments']['length'],_0x123dff=_0x233df2===_0x1e78f3['author'];this['id']=_0x1e78f3['id'],this['threadId']=_0x1e78f3['threadId'],this['author']=_0x1e78f3['author'],this['creator']=_0x1e78f3['creator'],this['isExternal']=Boolean(_0x1e78f3['attributes']&&_0x1e78f3['attributes']['@external']),this['set']('content',_0x1e78f3['content']),this['createdAt']=_0x1e78f3['createdAt']||new Date(),this['set']('authoredAt',_0x1e78f3['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0xb374e9,'resolvedAt'),this['set']('attributes',_0x1e78f3['attributes']||{}),this['bind']('isEditable')['to'](_0x56a486,'_permissions',()=>{const _0x4d09c1=_0x56a486['getPermissions'](_0xb374e9['channelId'])['write'],_0x198cfb=_0x56a486['getPermissions'](_0xb374e9['channelId'])['modifyAll'];return _0x123dff&&_0x4d09c1||!_0x123dff&&_0x198cfb;}),this['bind']('isRemovable')['to'](_0xb374e9,'isRemovable',_0x56a486,'_permissions',_0x30a1d1=>{const _0x5a2428=_0x56a486['getPermissions'](_0xb374e9['channelId'])['write'],_0x37cdb1=_0x56a486['getPermissions'](_0xb374e9['channelId'])['modifyAll'];return _0x123dff&&_0x5a2428||_0x30a1d1&&_0x15380f||!_0x123dff&&_0x37cdb1&&!_0x15380f;}),this['bind']('isReadOnly')['to'](_0xb374e9,'isReadOnly'),this['_repository']=_0x56a486;}get['weight'](){return Math['max'](function(_0x3c4ee6){const _0x59162c=document['createElement']('div');return _0x59162c['innerHTML']=_0x3c4ee6,_0x59162c['textContent']['length'];}(this['content']),0xc8);}['update'](_0xf1c86d){const {threadId:_0x498326,id:_0x36b36d}=this;if(!this['_repository']['hasCommentThread'](_0x498326))throw new _0x4c975e('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x263699}=this['_repository']['getCommentThread'](_0x498326);this['_repository']['fire'](Nt('updateComment',_0x263699,_0x498326),{'channelId':_0x263699,'threadId':_0x498326,'commentId':_0x36b36d,..._0xf1c86d});}['setAttribute'](_0xa31c58,_0x633cff){const _0x1b35f2=wt(this['attributes']);yt(_0x1b35f2,_0xa31c58,_0x633cff),this['update']({'attributes':_0x1b35f2});}['removeAttribute'](_0x4ba8d5){const _0x1f8d0a=wt(this['attributes']);Ct(_0x1f8d0a,_0x4ba8d5),this['update']({'attributes':_0x1f8d0a});}['remove'](_0x5aa9ed={}){if(!_0x5aa9ed['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x31c519,id:_0x5a6fd8}=this;if(!this['_repository']['hasCommentThread'](_0x31c519))throw new _0x4c975e('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x215c06}=this['_repository']['getCommentThread'](_0x31c519);this['_repository']['fire'](Nt('removeComment',_0x215c06,_0x31c519),{'channelId':_0x215c06,'threadId':_0x31c519,'commentId':_0x5a6fd8,..._0x5aa9ed});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x47a702,..._0x332716){for(const _0x119197 of _0x332716)void 0x0!==_0x119197&&(_0x47a702+=':'+String(_0x119197));return _0x47a702;}class ot extends _0x4344f0{constructor(_0x465c94){super(_0x465c94),this['set']('hasContent',!0x1);}['refresh'](){const _0x37dbfe=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x432bbb of _0x37dbfe['getRanges']())if(this['_hasContent'](_0x432bbb))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x162e43=_0x288d35(),ranges:_0x25dfcd,comment:_0x356334}={}){const _0x343df1=this['editor']['model'],_0x369231=_0x25dfcd??Array['from'](_0x343df1['document']['selection']['getRanges']()),_0x5f2024=[];for(const _0x2fb58b of _0x369231)this['_hasContent'](_0x2fb58b)&&_0x5f2024['push'](this['_trimToContent'](_0x2fb58b));if(!_0x5f2024['length'])throw new _0x4c975e('addcommentthreadcommand-incorrect-ranges',null);_0x356334&&this['_createCommentThread'](_0x162e43,_0x356334),this['_createMarkersFromRanges'](_0x162e43,_0x5f2024,!!_0x356334);}['_createMarkersFromRanges'](_0x52c0b9,_0xfd7543,_0x3a1bea){this['editor']['model']['change'](_0x45b75c=>{for(const _0x5dbe67 of _0xfd7543){const _0x5ae4d5=_0x288d35()['substr'](0x1,0x5),_0x399e6='comment:'+_0x52c0b9+':'+_0x5ae4d5;_0x45b75c['addMarker'](_0x399e6,{'range':_0x5dbe67,'usingOperation':_0x3a1bea,'affectsData':_0x3a1bea});}});}['_createCommentThread'](_0x435ee6,_0x122fea){const _0x30c53d=this['editor']['plugins']['get']('CommentsRepository'),_0x20a260=this['editor']['config']['get']('collaboration.channelId'),_0x23ce18=this['editor']['plugins']['get']('Users')['me'];if(!_0x23ce18)throw new _0x4c975e('addcommentthreadcommand-user-not-found',null);_0x30c53d['addCommentThread']({'threadId':_0x435ee6,'channelId':_0x20a260,'comments':[{'authorId':_0x23ce18['id'],'content':_0x122fea,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x30a110){for(const _0x3bc443 of _0x30a110['getItems']())if(this['_itemIsContent'](_0x3bc443))return!0x0;return!0x1;}['_itemIsContent'](_0x175c0c){return _0x175c0c['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x175c0c)&&!_0x175c0c['is']('element','tableCell');}['_trimToContent'](_0x5c5803){const _0x147b1a=_0x4b08e6=>!this['_itemIsContent'](_0x4b08e6['item']),_0x234572=_0x5c5803['start']['getLastMatchingPosition'](_0x147b1a),_0x2cf156=_0x5c5803['end']['getLastMatchingPosition'](_0x147b1a,{'direction':'backward'});return this['editor']['model']['createRange'](_0x234572,_0x2cf156);}}class b extends _0x562ab1{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2085e9){super(_0x2085e9),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x5ab26f=this['editor'],_0x12661a=_0x5ab26f['model']['document']['selection'],_0xe995ac=_0x192048(()=>this['refreshSelectedViews'](),0xa);_0x12661a['on']('change:range',(_0x34657e,_0x1eaccd)=>{_0x1eaccd['directChange']&&(_0xe995ac['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5ab26f['editing']['view']['document'],'change:isFocused',(_0x7d15f7,_0x19da1e,_0x2b2e97)=>{_0x2b2e97&&_0xe995ac();}),this['listenTo'](_0x5ab26f['ui']['focusTracker'],'change:isFocused',(_0x124d95,_0x2fbf3c,_0x50ae48)=>{_0x50ae48||this['fire']('blur',{'isAnnotationTracked':_0x4a5e05=>this['_editorAnnotationsData']['has'](_0x4a5e05['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x4fcad2){if(this['_editorAnnotations']['has'](_0x4fcad2['view']))return;this['_editorAnnotations']['add'](_0x4fcad2['view']),this['editor']['ui']['focusTracker']['add'](_0x4fcad2['view']['element']);const _0x228e9f=this['editor']['plugins']['get'](y);this['listenTo'](_0x228e9f['collection'],'remove',(_0x1035fa,_0x414a44)=>{this['editor']['ui']['focusTracker']['remove'](_0x414a44['view']['element']),this['_editorAnnotations']['delete'](_0x414a44['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x463fae){if('function'!=typeof _0x463fae)throw new _0x4c975e('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x463fae);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x327627,annotations:_0x276ad3}){const _0x45ca74=[],_0x5292f8=this['editor']['model']['document']['selection'],_0x4d22b1=Array['from'](_0x5292f8['getRanges']());for(const [_0x46996a,_0x5cf46f]of this['_editorAnnotationsData']){const _0xff098f=_0x61c6ea(_0x5cf46f),_0x18507f=_0x276ad3['getByInnerView'](_0x46996a);_0xff098f&&_0x18507f&&_0x45ca74['push']({'annotation':_0x18507f,'range':_0xff098f});}function _0x61c6ea(_0x2a814e){for(const _0x395aad of _0x2a814e)for(const _0x159234 of _0x4d22b1)if(_0x395aad['containsRange'](_0x159234,!_0x5292f8['isCollapsed']))return _0x395aad;return null;}return _0x45ca74['sort']((_0xc150a5,_0x367093)=>{const _0x282258=_0xc150a5['range'],_0x121694=_0x367093['range'];if(!_0x282258['isEqual'](_0x121694)){if(_0x282258['containsRange'](_0x121694,!0x0))return 0x1;if(_0x121694['containsRange'](_0x282258,!0x0))return-0x1;}return _0xc150a5['annotation']==_0x327627?-0x1:_0x367093['annotation']==_0x327627?0x1:0x0;})['map'](_0x5272b3=>_0x5272b3['annotation']);}get['_editorAnnotationsData'](){const _0x539867=new Map();for(const _0x3e3e10 of Array['from'](this['_dataCollectors']))for(const [_0x3e1768,_0x4794bd]of _0x3e3e10())_0x539867['set'](_0x3e1768,_0x4794bd);return _0x539867;}}class st extends _0x562ab1{['afterInit'](){const _0x2d371e=this['editor'];if(!_0x2d371e['plugins']['has']('RestrictedEditingModeEditing'))return;_0x2d371e['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x562ab1{constructor(_0x4272ad){super(_0x4272ad),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x56bee8=this['editor'],_0x12d24a=_0x56bee8['commands']['get']('importWord'),_0x39f52a=_0x56bee8['plugins']['get'](it);_0x12d24a&&(_0x12d24a['on']('execute',(_0x182832,[,_0x8ca383])=>{_0x8ca383['collaboration_features']={'comments':!0x0,'user_id':_0x39f52a['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x12d24a,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4186cf,_0x3de3a6){const {comment_threads:_0x47eef9}=_0x3de3a6;_0x47eef9&&_0x47eef9['forEach'](({thread_id:_0x2c7e3e,comments:_0x58d185,is_resolved:_0x35b263})=>{const _0x5713eb=new Date(),_0x43618=_0x58d185['map'](({author:_0x103d9e,content:_0x446da7,created_at:_0x1a023c})=>({'content':_0x446da7,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x5713eb,'attributes':{'@external':{'authorName':_0x103d9e,'createdAt':_0x1a023c?new Date(_0x1a023c):new Date(),'source':'importWord'}}})),_0xd7a479=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xd7a479,'threadId':_0x2c7e3e,'comments':_0x43618,'resolvedAt':_0x35b263?_0x5713eb:null});});}}class at extends _0x562ab1{constructor(_0x5e24c0){super(_0x5e24c0),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x381e3f=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x381e3f,'contentInsertion',(_0x352ebd,_0x50aaeb)=>this['_removeMarkersWithoutThreads'](_0x50aaeb['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x2965dc){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x2965dc;const _0x37f36b=this['editor']['plugins']['get']('CommentsRepository');for(const _0x5a2fbf of _0x2965dc['keys']()){const [_0x22a4fd,_0x2a167f]=_0x5a2fbf['split'](':');'comment'!=_0x22a4fd||_0x37f36b['hasCommentThread'](_0x2a167f)||_0x2965dc['delete'](_0x5a2fbf);}return _0x2965dc;}['_registerMarkerInClipboardPipeline'](){const _0x390a50=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0xc1cedf=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0xc1cedf&&_0x390a50['_registerMarkerToCopy']('comment',_0xc1cedf);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x55e461){switch(_0x55e461){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x162195){const _0x5a0f7e=_0x162195['split'](':');return{'group':_0x5a0f7e[0x0],'id':_0x5a0f7e[0x1],'part':_0x5a0f7e[0x2]};}class ut extends _0x562ab1{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x4fe259,_0x395e21)=>{if(!_0x395e21['options']['showCommentHighlights'])return null;if(_0x395e21['options']['ignoreResolvedComments']){const {id:_0xcef28}=ft(_0x4fe259['markerName']),_0x373659=this['editor']['plugins']['get'](o);if(_0x373659['getCommentThread'](_0xcef28)?.['isResolved']&&_0x4fe259['item'])return _0x395e21['consumable']['consume'](_0x4fe259['item'],'addMarker:'+_0x4fe259['markerName']),_0x395e21['consumable']['consume'](_0x4fe259['item'],'removeMarker:'+_0x4fe259['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x7d5ee9=>{_0x7d5ee9['on']('addMarker:comment',(_0xbfe4b8,_0x2fb61f,_0x5c6cd2)=>{if(!_0x5c6cd2['options']['showCommentHighlights'])return;const _0x184089=_0x2fb61f['item'];if(!_0x184089)return;const _0x78ddc3=_0x5c6cd2['mapper']['toViewElement'](_0x184089);this['editor']['model']['schema']['isObject'](_0x184089)&&_0x78ddc3&&!_0x78ddc3['getCustomProperty']('widget')&&_0x78ddc3['is']('containerElement')&&_0x272216(_0x78ddc3,_0x5c6cd2['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x282ec4,{writer:_0x5858aa,options:_0x1798ff})=>{if(!_0x1798ff['showCommentHighlights'])return null;const _0x8ce348=_0x5858aa['createContainerElement']('div'),_0x2e337a=_0x5858aa['createEmptyElement']('hr');return _0x5858aa['addClass']('ck-horizontal-line',_0x8ce348),_0x5858aa['insert'](_0x5858aa['createPositionAt'](_0x8ce348,0x0),_0x2e337a),_0x8ce348;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1e4ae7,{writer:_0xc5379b,options:_0xe17c6e})=>{if(!_0xe17c6e['showCommentHighlights'])return null;const _0x4706f0=_0xc5379b['createContainerElement']('span'),_0x193c12=_0xc5379b['createEmptyElement']('img');return _0xc5379b['addClass']('image-inline',_0x4706f0),_0xc5379b['insert'](_0xc5379b['createPositionAt'](_0x4706f0,0x0),_0x193c12),_0x4706f0;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3acae4,{writer:_0x23730c,options:_0x1a34b8})=>{if(_0x1a34b8['showCommentHighlights'])return _0x23730c['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x569868,_0x278197,_0x5a4a51)=>{_0x5a4a51['options']['showCommentHighlights']&&_0x569868['stop']();},{'priority':'high'});}}class r extends _0x562ab1{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(_0x402ff9){super(_0x402ff9),this['set']('isThreadsLoadingPaused',!0x0),_0x402ff9['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x179026,_0x39f2d9,_0x4fd378,_0x181f1b)=>{const _0x2a3c8a=_0x402ff9['plugins']['get'](o),_0x4b3c1c=_0x4fd378?ft(_0x4fd378)['id']:null;_0x402ff9['model']['change'](()=>{if(_0x4b3c1c){const _0x3da876=this['getAllMarkersForId'](_0x4b3c1c);for(const _0x2b58d3 of _0x3da876)_0x402ff9['editing']['reconvertMarker'](_0x2b58d3);}if(_0x181f1b){const {id:_0x354cf3}=ft(_0x181f1b),_0x376a6c=_0x2a3c8a['getCommentThread'](_0x354cf3);if(_0x376a6c&&_0x376a6c['unlinkedAt'])return;if(_0x376a6c&&!_0x376a6c['isAttached'])return;const _0x2f6988=this['getAllMarkersForId'](_0x354cf3);for(const _0x5b13f4 of _0x2f6988)_0x402ff9['editing']['reconvertMarker'](_0x5b13f4);}}),_0x4b3c1c&&this['scrollToThreadMarker'](_0x4b3c1c);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x35085c=this['editor'],_0x52ffb2=_0x35085c['plugins']['get'](o),_0x51f0d7=_0x35085c['config']['get']('collaboration.channelId'),_0x55dc87=_0x52ffb2['getCommentThreads']()['filter'](_0x3b1e71=>_0x3b1e71['channelId']!==_0x51f0d7);_0x35085c['commands']['add']('addCommentThread',new ot(_0x35085c)),this['listenTo'](_0x35085c,'change:isReadOnly',(_0x469903,_0x24bad7,_0x231973)=>{_0x52ffb2['switchReadOnly'](_0x231973,_0x35085c['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x52ffb2,dt('addCommentThread',_0x51f0d7),(_0x9b9114,{threadId:_0x2fbfb4})=>{const _0x43818f=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2fbfb4);_0x43818f?.['unlinkedAt']&&this['_attachArchivedThread'](_0x2fbfb4);}),this['listenTo'](_0x52ffb2,dt('removeCommentThread',_0x51f0d7),(_0x334dc9,{threadId:_0x3ea945})=>{_0x35085c['model']['enqueueChange']({'isUndoable':!0x1},_0x4ec9e1=>{const _0x49846b=this['getAllMarkersForId'](_0x3ea945);for(const _0x572f2f of _0x49846b)_0x4ec9e1['removeMarker'](_0x572f2f);});}),this['listenTo'](_0x52ffb2,dt('resolveCommentThread',_0x51f0d7),(_0x1692d4,{threadId:_0x2cd970})=>{(this['_reconvertMarkers'](_0x2cd970),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x2cd970)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x52ffb2,dt('reopenCommentThread',_0x51f0d7),(_0x592234,{threadId:_0x2427d1})=>{this['_reconvertMarkers'](_0x2427d1);},{'priority':'low'}),this['listenTo'](_0x52ffb2,dt('addComment',_0x51f0d7),(_0x16d998,{threadId:_0x1924d6,isFromAdapter:_0x55ab1b})=>{const _0x83cbda=this['getAllMarkersForId'](_0x1924d6);if(_0x55ab1b||0x0==_0x83cbda['length']||!_0x52ffb2['hasCommentThread'](_0x1924d6))return;0x1===_0x52ffb2['getCommentThread'](_0x1924d6)['length']&&_0x35085c['model']['enqueueChange']({'isUndoable':!0x1},_0x5660f7=>{for(const _0x58b549 of _0x83cbda)_0x5660f7['updateMarker'](_0x58b549,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x55dc87);}['afterInit'](){!async function(_0x49ddd5){const _0x5d663c=_0x2b388e([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]),_0x17af02=0x73460ab3,_0x21b4fd=0x734189b3^_0x17af02,_0xd558ec=window[_0x2b388e([0x44,0x61,0x74,0x65])][_0x2b388e([0x6e,0x6f,0x77])](),_0x577e05=_0x49ddd5[_0x2b388e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x214a83=new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2996ed=>{_0x577e05[_0x2b388e([0x6f,0x6e,0x63,0x65])](_0x2b388e([0x72,0x65,0x61,0x64,0x79]),_0x2996ed);}),_0x45a86e={[_0x2b388e([0x6b,0x74,0x79])]:_0x2b388e([0x45,0x43]),[_0x2b388e([0x75,0x73,0x65])]:_0x2b388e([0x73,0x69,0x67]),[_0x2b388e([0x63,0x72,0x76])]:_0x2b388e([0x50,0x2d,0x32,0x35,0x36]),[_0x2b388e([0x78])]:_0x2b388e([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]),[_0x2b388e([0x79])]:_0x2b388e([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]),[_0x2b388e([0x61,0x6c,0x67])]:_0x2b388e([0x45,0x53,0x32,0x35,0x36])},_0x54ef9e=_0x577e05[_0x2b388e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b388e([0x67,0x65,0x74])](_0x2b388e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f4768(){let _0x47f0bd,_0x4bc423=null,_0x121ac2=null;try{if(_0x54ef9e==_0x2b388e([0x47,0x50,0x4c]))return _0x2b388e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47f0bd=_0x46e20b(),!_0x47f0bd)return _0x2b388e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47f0bd[_0x2b388e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x121ac2=_0x326510(_0x47f0bd[_0x2b388e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47f0bd[_0x2b388e([0x6a,0x74,0x69])])),await _0x549ac9()?_0x2013fb()?_0x1ba978()?_0x2b388e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x552fbc()?(_0x47f0bd[_0x2b388e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b388e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bc423=_0x422799(_0x2b388e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ddf10()):_0x2b388e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b388e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b388e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b388e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ba978(){const _0xa9fc92=[_0x2b388e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b388e([0x74,0x72,0x69,0x61,0x6c])][_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47f0bd[_0x2b388e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd558ec/0x3e8:0xe10*_0x21b4fd;return _0x47f0bd[_0x2b388e([0x65,0x78,0x70])]<_0xa9fc92;}function _0x2013fb(){const _0x323f10=_0x47f0bd[_0x2b388e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x323f10)return!0x1;if(_0x323f10[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b388e([0x2a])))return!0x0;if(_0x323f10[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b388e([0x43,0x4d,0x54])))return!0x0;if(_0x323f10[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b388e([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x5e6712())return!0x0;if(_0x323f10[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b388e([0x52,0x43,0x4d,0x54]))){if(_0x492f02())return!0x0;if(_0x35bd0d()||_0x491627())return!0x0;}return!0x1;}function _0x552fbc(){const _0x4a133d=_0x47f0bd[_0x2b388e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a133d||0x0==_0x4a133d[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3bd323}=new URL(window[_0x2b388e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4a133d[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bd323))return!0x0;const _0x463a6c=_0x3bd323[_0x2b388e([0x73,0x70,0x6c,0x69,0x74])](_0x2b388e([0x2e]));return _0x4a133d[_0x2b388e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c8815=>_0x4c8815[_0x2b388e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b388e([0x2a])))[_0x2b388e([0x6d,0x61,0x70])](_0x5707ec=>_0x5707ec[_0x2b388e([0x73,0x70,0x6c,0x69,0x74])](_0x2b388e([0x2e])))[_0x2b388e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3950b6=>_0x3950b6[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x463a6c[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b388e([0x6d,0x61,0x70])](_0x54cfd7=>Array(_0x463a6c[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54cfd7[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b388e([0x66,0x69,0x6c,0x6c])](_0x54cfd7[0x0]===_0x2b388e([0x2a])?_0x2b388e([0x2a]):'')[_0x2b388e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54cfd7))[_0x2b388e([0x73,0x6f,0x6d,0x65])](_0x2d3e9b=>_0x463a6c[_0x2b388e([0x65,0x76,0x65,0x72,0x79])]((_0x3ecc14,_0x10beca)=>_0x2d3e9b[_0x10beca]===_0x3ecc14||_0x2d3e9b[_0x10beca]===_0x2b388e([0x2a])));}function _0x4ddf10(){return _0x4bc423&&_0x121ac2?new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x99ecf0,_0x39487e)=>{_0x4bc423[_0x2b388e([0x74,0x68,0x65,0x6e])](_0x99ecf0,_0x39487e),_0x121ac2[_0x2b388e([0x74,0x68,0x65,0x6e])](_0x25ce65=>{_0x25ce65!=_0x2b388e([0x56,0x61,0x6c,0x69,0x64])&&_0x99ecf0(_0x25ce65);},_0x39487e);}):_0x4bc423||_0x121ac2||_0x2b388e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x326510(_0x17f19b,_0x2661a4){return new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48def9=>{if(_0x3bebdd())return _0x48def9(_0x2b388e([0x56,0x61,0x6c,0x69,0x64]));_0x772cff(),_0x577e05[_0x2b388e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b388e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b0826=!0x1;const _0xbd3d46=_0x288d35();function _0x895157(_0x56f2d2){return!!_0x56f2d2&&(typeof _0x56f2d2===_0x2b388e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56f2d2===_0x2b388e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56f2d2[_0x2b388e([0x74,0x68,0x65,0x6e])]===_0x2b388e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56f2d2[_0x2b388e([0x63,0x61,0x74,0x63,0x68])]===_0x2b388e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20aa2b(_0x191178){_0x51257b(_0x191178)[_0x2b388e([0x74,0x68,0x65,0x6e])](_0x6e6726=>{if(!_0x6e6726||_0x6e6726[_0x2b388e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b388e([0x6f,0x6b]))return _0x2b388e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24e11b(_0x257cd8(_0xbd3d46+_0x2661a4))!=_0x6e6726[_0x2b388e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b388e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b388e([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b388e([0x74,0x68,0x65,0x6e])](_0xd8688=>(_0x1cc16b(),_0xd8688),()=>{const _0x34e5ac=_0x8f1d29();return null==_0x34e5ac?(_0x1cc16b(),_0x2b388e([0x56,0x61,0x6c,0x69,0x64])):_0x2b388e(_0xd558ec-_0x34e5ac>(0x574a8eb3^_0x17af02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b388e([0x74,0x68,0x65,0x6e])](_0x48def9)[_0x2b388e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48def9(_0x2b388e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd7ca14=0x7370e433^_0x17af02;function _0x1cc16b(){const _0x39383b=_0x2b388e([0x6c,0x6c,0x63,0x74,0x2d])+_0x24e11b(_0x257cd8(_0x17f19b)),_0x66542e=_0x4087bc(_0x24e11b(window[_0x2b388e([0x4d,0x61,0x74,0x68])][_0x2b388e([0x63,0x65,0x69,0x6c])](_0xd558ec/_0xd7ca14)));window[_0x2b388e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b388e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39383b,_0x66542e);}function _0x8f1d29(){const _0x4f51b3=_0x2b388e([0x6c,0x6c,0x63,0x74,0x2d])+_0x24e11b(_0x257cd8(_0x17f19b)),_0x2f7a90=window[_0x2b388e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b388e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f51b3);return _0x2f7a90?window[_0x2b388e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4087bc(_0x2f7a90),0x10)*_0xd7ca14:null;}function _0x51257b(_0x5040bf){return new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11c6ec,_0x440116)=>{_0x5040bf[_0x2b388e([0x74,0x68,0x65,0x6e])](_0x11c6ec,_0x440116),window[_0x2b388e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x440116,0x7347de73^_0x17af02);});}}_0x577e05[_0x2b388e([0x6f,0x6e])](_0x2b388e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e022f,_0x2f7f8e)=>{if(_0x2f7f8e[0x0]!=_0x17f19b)return _0x48def9(_0x2b388e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f7f8e[0x1]={..._0x2f7f8e[0x1],[_0x2b388e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xbd3d46};},{[_0x2b388e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b388e([0x68,0x69,0x67,0x68])}),_0x577e05[_0x2b388e([0x6f,0x6e])](_0x2b388e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x195156=>{_0x895157(_0x195156[_0x2b388e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b0826=!0x0,_0x20aa2b(_0x195156[_0x2b388e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b388e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b388e([0x6c,0x6f,0x77])}),_0x214a83[_0x2b388e([0x74,0x68,0x65,0x6e])](()=>{_0x1b0826||_0x48def9(_0x2b388e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3bebdd(){return _0x577e05[_0x2b388e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b388e([0x76,0x69,0x65,0x77])][_0x2b388e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b388e([0x61,0x75,0x74,0x6f]);}function _0x772cff(){_0x577e05[_0x2b388e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b388e([0x76,0x69,0x65,0x77])][_0x2b388e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b388e([0x61,0x75,0x74,0x6f]);}}function _0x422799(_0x3ec223){const _0x48112e=[new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4521d8=>setTimeout(_0x4521d8,0x734f347f^_0x17af02)),_0x214a83[_0x2b388e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x99169d=>{let _0x1a6e85=0x0;_0x577e05[_0x2b388e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b388e([0x6f,0x6e])](_0x2b388e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23ed31,_0x4e6839)=>{_0x4e6839[0x0][_0x2b388e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a6e85++,_0x1a6e85==(0x73460f5b^_0x17af02)&&(_0x99169d(),_0x23ed31[_0x2b388e([0x6f,0x66,0x66])]());});}))];return window[_0x2b388e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b388e([0x72,0x61,0x63,0x65])](_0x48112e)[_0x2b388e([0x74,0x68,0x65,0x6e])](()=>_0x3ec223);}async function _0x2e6a16(){await _0x214a83,_0x577e05[_0x2b388e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b388e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x182e1a,_0x577e05[_0x2b388e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b388e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x182e1a,_0x577e05[_0x2b388e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b388e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e6712(){return window[_0x2b388e([0x67,0x6c,0x6f,0x62])]&&window[_0x2b388e([0x67,0x6c,0x6f,0x62])][_0x2b388e([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x492f02(){return _0x41738b(_0x2b388e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x199e95(_0x2b388e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2b388e([0x73,0x74,0x61,0x74,0x65])]==_0x2b388e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x35bd0d(){return _0x41738b(_0x2b388e([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 _0x491627(){return _0x41738b(_0x2b388e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x283096(_0x32a8b8){const _0x5d26f2=_0x154125();_0x577e05[_0x5d26f2]=_0x2b388e([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x32a8b8,_0x32a8b8!=_0x2b388e([0x56,0x61,0x6c,0x69,0x64])&&_0x2e6a16();}function _0x154125(){const _0x2992f6=window[_0x2b388e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b388e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b388e([0x6e,0x6f,0x77])]())[_0x2b388e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b388e([0x2e]),'');let _0x63f3f1=_0x2b388e([0x4b]);for(let _0x45be4a=0x0;_0x45be4a<_0x2992f6[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45be4a+=0x2){let _0xb51c89=window[_0x2b388e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2992f6[_0x2b388e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45be4a,_0x45be4a+0x2));_0xb51c89>=_0x5d663c[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb51c89-=_0x5d663c[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x63f3f1+=_0x5d663c[_0xb51c89];}return _0x63f3f1;}function _0x46e20b(){const _0x145129=_0x54ef9e[_0x2b388e([0x73,0x70,0x6c,0x69,0x74])](_0x2b388e([0x2e]));if(0x3!=_0x145129[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ce9e1(_0x145129[0x1]);function _0x5ce9e1(_0x5aea49){const _0x5ed0e8=_0x7db382(_0x5aea49);return _0x5ed0e8&&_0x254ce1()?_0x5ed0e8:null;function _0x254ce1(){const _0x3adb76=_0x5ed0e8[_0x2b388e([0x6a,0x74,0x69])],_0x21a87c=window[_0x2b388e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3adb76[_0x2b388e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3adb76[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x534089={..._0x5ed0e8,[_0x2b388e([0x6a,0x74,0x69])]:_0x3adb76[_0x2b388e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3adb76[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x534089[_0x2b388e([0x76,0x63])],_0x257cd8(_0x534089)==_0x21a87c;}}}async function _0x549ac9(){let _0x48a445=!0x0;try{const _0x5d3666=_0x54ef9e[_0x2b388e([0x73,0x70,0x6c,0x69,0x74])](_0x2b388e([0x2e])),[_0x6c35a2,_0x46299d,_0x1915ae]=_0x5d3666;return _0x3c524c(_0x6c35a2),await _0x4d4524(_0x6c35a2,_0x46299d,_0x1915ae),_0x48a445;}catch{return!0x1;}function _0x3c524c(_0x441541){const _0x2dce1a=_0x7db382(_0x441541);_0x2dce1a&&_0x2dce1a[_0x2b388e([0x61,0x6c,0x67])]==_0x2b388e([0x45,0x53,0x32,0x35,0x36])||(_0x48a445=!0x1);}async function _0x4d4524(_0x392e45,_0x3dd7e4,_0x3194e8){const _0x5af355=window[_0x2b388e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b388e([0x66,0x72,0x6f,0x6d])](_0x44a40b(_0x3194e8),_0x203ff5=>_0x203ff5[_0x2b388e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x58d57d=new window[(_0x2b388e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b388e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x392e45+_0x2b388e([0x2e])+_0x3dd7e4),_0x36e113=window[_0x2b388e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b388e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36e113)return;const _0x416ef4=await _0x36e113[_0x2b388e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b388e([0x6a,0x77,0x6b]),_0x45a86e,{[_0x2b388e([0x6e,0x61,0x6d,0x65])]:_0x2b388e([0x45,0x43,0x44,0x53,0x41]),[_0x2b388e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b388e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b388e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36e113[_0x2b388e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b388e([0x6e,0x61,0x6d,0x65])]:_0x2b388e([0x45,0x43,0x44,0x53,0x41]),[_0x2b388e([0x68,0x61,0x73,0x68])]:{[_0x2b388e([0x6e,0x61,0x6d,0x65])]:_0x2b388e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x416ef4,_0x5af355,_0x58d57d)||(_0x48a445=!0x1);}}function _0x7db382(_0x848d23){return _0x848d23[_0x2b388e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b388e([0x65,0x79]))?JSON[_0x2b388e([0x70,0x61,0x72,0x73,0x65])](_0x44a40b(_0x848d23)):null;}function _0x44a40b(_0x475284){return window[_0x2b388e([0x61,0x74,0x6f,0x62])](_0x475284[_0x2b388e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b388e([0x2b]))[_0x2b388e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b388e([0x2f])));}function _0x257cd8(_0x1dac0e){let _0x4b8506=0x1505;function _0x1b4c85(_0x4eb5a7){for(let _0x391033=0x0;_0x391033<_0x4eb5a7[_0x2b388e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x391033++){const _0x1fc4c4=_0x4eb5a7[_0x2b388e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x391033);_0x4b8506=(_0x4b8506<<0x5)+_0x4b8506+_0x1fc4c4,_0x4b8506&=_0x4b8506;}}function _0x384f6d(_0x2931d2){Array[_0x2b388e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2931d2)?_0x2931d2[_0x2b388e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x384f6d):_0x2931d2&&typeof _0x2931d2==_0x2b388e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b388e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2931d2)[_0x2b388e([0x73,0x6f,0x72,0x74])]()[_0x2b388e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a4473,_0x1918ad])=>{_0x1b4c85(_0x5a4473),_0x384f6d(_0x1918ad);}):_0x1b4c85(window[_0x2b388e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2931d2));}return _0x384f6d(_0x1dac0e),_0x4b8506>>>0x0;}function _0x24e11b(_0x30b0e2){return _0x30b0e2[_0x2b388e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b388e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b388e([0x30]));}function _0x4087bc(_0x1e8844){return _0x1e8844[_0x2b388e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b388e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b388e([0x6a,0x6f,0x69,0x6e])]('');}function _0x41738b(_0xc7a45f){return _0x577e05[_0x2b388e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b388e([0x68,0x61,0x73])](_0xc7a45f);}function _0x199e95(_0x4bfbb6){return _0x577e05[_0x2b388e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b388e([0x67,0x65,0x74])](_0x4bfbb6);}function _0x182e1a(){}function _0x2b388e(_0xeed76){return _0xeed76['map'](_0x28ae35=>String['fromCharCode'](_0x28ae35))['join']('');}_0x283096(await _0x4f4768());}(this);}['destroy'](){const _0x55d518=this['editor']['plugins']['get'](o),_0x17e3aa=this['editor']['config']['get']('collaboration.channelId');for(const _0x50a0e4 of _0x55d518['getCommentThreads']({'channelId':_0x17e3aa}))_0x55d518['_detachCommentThread'](_0x50a0e4['id']),_0x55d518['_threads']['delete'](_0x50a0e4['id']);super['destroy']();}['hasMarkerForId'](_0x372137){return this['getAllMarkersForId'](_0x372137)['length']>0x0;}['getAllMarkersForId'](_0x382cb3){const _0x4c3e03=[];for(const _0x57cca7 of this['editor']['model']['markers'])_0x57cca7['name']['startsWith']('comment:'+_0x382cb3)&&_0x4c3e03['push'](_0x57cca7);return _0x4c3e03;}['scrollToThreadMarker'](_0x45e4a2){setTimeout(()=>{const _0x180dc7=this['_getTargetForId'](_0x45e4a2);if(!_0x180dc7)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x45e4a2&&nt({'target':_0x180dc7[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x44afff){this['editor']['model']['change'](()=>{for(const _0x316e73 of this['getAllMarkersForId'](_0x44afff))this['editor']['editing']['reconvertMarker'](_0x316e73);});}['_attachArchivedThread'](_0x17104d){const _0x3cc396=this['editor']['plugins']['get'](o),_0x3accc2=this['editor']['plugins']['get'](b),_0x324569=_0x3cc396['getCommentThread'](_0x17104d);if(!_0x324569['isAttached']){const _0x3ba111=_0x324569['attachTo'](()=>this['_getTargetForId'](_0x324569['id']));_0x3accc2['registerAnnotation'](_0x3ba111),_0x324569['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x4a9299=this['editor'],_0x59c1b0=_0x4a9299['plugins']['get'](it);_0x4a9299['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4c3636,_0x3646d1)=>{const {id:_0x522e43}=ft(_0x4c3636['markerName']),_0xb5fa9=_0x4a9299['plugins']['get'](o)['getCommentThread'](_0x522e43),_0x1966fd=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x522e43;let _0x6cff7;if(_0xb5fa9&&_0xb5fa9['isResolved']&&!_0x1966fd&&_0x4c3636['item'])return _0x3646d1['consumable']['consume'](_0x4c3636['item'],'addMarker:'+_0x4c3636['markerName']),_0x3646d1['consumable']['consume'](_0x4c3636['item'],'removeMarker:'+_0x4c3636['markerName']),null;const _0x47f882=['ck-comment-marker'];return _0x1966fd&&_0x47f882['push']('ck-comment-marker--active'),_0x6cff7=_0xb5fa9?.['length']?_0xb5fa9['comments']['first']['author']['id']:_0x59c1b0['me']['id'],{'classes':_0x47f882,'attributes':{'data-comment':_0x522e43,'data-author-id':_0x6cff7}};}}),_0x4a9299['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x283f8d,{options:_0x2f5f71})=>{if(_0x2f5f71['showCommentHighlights'])return null;const _0x131839=_0x4a9299['plugins']['get'](o),_0x569c22=_0x4a9299['model']['markers']['get'](_0x283f8d),{id:_0x194ea1,part:_0x2166a3}=ft(_0x283f8d);return _0x569c22&&!_0x569c22['affectsData']||_0x2f5f71['ignoreResolvedComments']&&_0x131839['getCommentThread'](_0x194ea1)?.['isResolved']?null:{'group':'comment','name':_0x2166a3?_0x194ea1+':'+_0x2166a3:_0x194ea1};}}),_0x4a9299['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x50a9f5,{writer:_0x1a6c9b})=>_0x1a6c9b['createElement']('$marker',{'data-name':'comment:'+_0x50a9f5['getAttribute']('id')})}),_0x4a9299['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x2576a5=this['editor'],_0x516488=_0x2576a5['plugins']['get'](o),_0x4b13f8=new Set(),_0x1b4de4=new Set();_0x2576a5['model']['document']['registerPostFixer'](_0x445e32=>{let _0x2f2a0c=!0x1;for(const {name:_0x297821,data:_0x44064c}of _0x2576a5['model']['document']['differ']['getChangedMarkers']()){const {group:_0x2766f9,id:_0x3fdf7a}=ft(_0x297821);let _0x1fef07=_0x44064c['newRange'];if('comment'!==_0x2766f9||!_0x1fef07)continue;const _0x234e12='$graveyard'===_0x1fef07['root']['rootName'];_0x234e12||(_0x1fef07=ht(_0x1fef07,_0x2576a5['model']),!_0x1fef07||_0x1fef07['isCollapsed']||!_0x44064c['newRange']||_0x1fef07['isEqual'](_0x44064c['newRange']))?_0x2576a5['model']['hasContent'](_0x1fef07)&&!_0x234e12?this['isThreadsLoadingPaused']?_0x4b13f8['add'](_0x297821):this['_handleThreadMarker'](_0x297821,_0x3fdf7a):(_0x1b4de4['add'](_0x297821),_0x4b13f8['delete'](_0x297821),_0x445e32['removeMarker'](_0x297821),_0x2f2a0c=!0x0):(_0x445e32['updateMarker'](_0x297821,{'range':_0x1fef07}),_0x2f2a0c=!0x0);}return _0x2f2a0c;}),this['on']('change:isThreadsLoadingPaused',(_0x12b10b,_0x241929,_0x296aea)=>{if(!_0x296aea&&_0x4b13f8['size'])for(const _0x50baa1 of _0x4b13f8){const {id:_0xf43948}=ft(_0x50baa1);_0x4b13f8['delete'](_0x50baa1),_0x2576a5['model']['markers']['get'](_0x50baa1)&&this['_handleThreadMarker'](_0x50baa1,_0xf43948);}}),this['listenTo'](_0x2576a5['model']['document'],'change',()=>{for(const {name:_0x1f14a4,data:{newRange:_0x30d3c4}}of _0x2576a5['model']['document']['differ']['getChangedMarkers']()){const {group:_0x335ae4,id:_0xb8a33a}=ft(_0x1f14a4);if('comment'!==_0x335ae4)continue;const _0x2403a3=_0x516488['getCommentThread'](_0xb8a33a),_0xb96688=this['hasMarkerForId'](_0xb8a33a);_0x2403a3&&(!_0x2403a3['_hasTargetInContent']&&_0x30d3c4&&_0x2576a5['editing']['view']['once']('render',()=>{const _0x48a220=_0x2576a5['plugins']['get'](y),_0x5943c2=_0x516488['_threadToController']['get'](_0x2403a3)['view'];_0x48a220['getByInnerView'](_0x5943c2)['refreshVisibility']();},{'priority':'low'}),_0x2403a3['_hasTargetInContent']=_0xb96688||!!_0x30d3c4),_0x30d3c4||(_0x1b4de4['add'](_0x1f14a4),_0x4b13f8['delete'](_0x1f14a4));}for(const _0x5051b8 of _0x1b4de4){const {id:_0x11b1c0}=ft(_0x5051b8),_0x3f3fa9=_0x516488['getCommentThread'](_0x11b1c0);if(_0x4b13f8['delete'](_0x5051b8),!_0x3f3fa9)continue;const _0x3b052b=this['hasMarkerForId'](_0x11b1c0);_0x3b052b||_0x3f3fa9['isSubmitted']?_0x3b052b||_0x3f3fa9['unlinkedAt']||_0x3f3fa9['setUnlinkedAt'](new Date()):_0x3f3fa9['remove']();}_0x1b4de4['clear']();});}['_handleInitialThreads'](_0x140a16){_0x140a16['forEach'](_0x2d59cc=>{_0x2d59cc['unlinkedAt']&&this['_attachArchivedThread'](_0x2d59cc['id']);});}['_getTargetForId'](_0x2259f8){const _0x256c6d=this['editor'],_0x44ebea=this['getAllMarkersForId'](_0x2259f8);return et(_0x256c6d['editing'],_0x44ebea);}['_getTextContext'](_0xd76d91){const _0x199fcf=this['getAllMarkersForId'](_0xd76d91);let _0x47bd50='',_0x5162db=!0x1;for(const _0x8eef2c of _0x199fcf){const _0x40beda=_0x8eef2c['getRange']();for(const _0x3ed9c6 of Array['from'](_0x40beda['getItems']()))_0x3ed9c6['is']('$textProxy')?(_0x47bd50&&_0x5162db&&(_0x47bd50+='\x20',_0x5162db=!0x1),_0x47bd50+=_0x3ed9c6['data']):_0x5162db=!0x0;_0x5162db=!0x0;}return _0x47bd50['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x268ca5,_0x5f0e15){const _0x23ab48=this['editor'],_0x3cfbda=_0x23ab48['plugins']['get'](o);let _0x5da49a=_0x3cfbda['getCommentThread'](_0x5f0e15);const _0x42bc35=_0x23ab48['config']['get']('collaboration.channelId'),_0x286751=_0x23ab48['plugins']['get'](b);if(_0x5da49a&&(_0x5da49a['unlinkedAt']&&_0x5da49a['setUnlinkedAt'](null),_0x5da49a['isAttached']))return _0x5da49a;return!this['getAllMarkersForId'](_0x5f0e15)[0x0]['managedUsingOperations']?_0x23ab48['editing']['view']['once']('render',()=>{if(_0x3cfbda['getCommentThread'](_0x5f0e15))return;const _0x2b5be9=_0x23ab48['plugins']['get'](y);_0x5da49a=_0x3cfbda['openNewCommentThread']({'channelId':_0x42bc35,'threadId':_0x5f0e15,'target':()=>this['_getTargetForId'](_0x5f0e15),'context':{'type':'text','value':this['_getTextContext'](_0x5f0e15)}});const _0x55d757=_0x3cfbda['_threadToController']['get'](_0x5da49a)['view'],_0x3b1143=_0x2b5be9['getByInnerView'](_0x55d757);_0x3b1143&&_0x286751['registerAnnotation'](_0x3b1143);},{'priority':'low'}):_0x3cfbda['fetchCommentThread']({'channelId':_0x42bc35,'threadId':_0x5f0e15})['then'](_0x1659a7=>{if('destroyed'!==_0x23ab48['state']){if(_0x5da49a=_0x1659a7,_0x5da49a&&!_0x5da49a['isAttached']){const _0x50bb36=_0x5da49a['attachTo'](()=>this['_getTargetForId'](_0x5f0e15));_0x286751['registerAnnotation'](_0x50bb36),_0x5da49a['isResolved']&&this['_reconvertMarkers'](_0x5f0e15);}else{if(!_0x5da49a){const _0x4a0295=this['getAllMarkersForId'](_0x5f0e15);_0x23ab48['model']['change'](_0x3d280d=>{for(const _0xf4bef3 of _0x4a0295)_0x3d280d['removeMarker'](_0xf4bef3);});}}}}),_0x5da49a;}['_handleThreadMarker'](_0x47a4d4,_0x4078f6){const _0x39bb7a=this['_attachMarkerToThread'](_0x47a4d4,_0x4078f6);_0x39bb7a&&!_0x39bb7a['context']&&_0x39bb7a['setContext']({'type':'text','value':this['_getTextContext'](_0x4078f6)});}['_initAriaMarkerChangeAnnouncements'](){const _0x141730=this['editor'];rt(_0x141730['model'],({left:_0x1afaab,entered:_0x186211})=>{for(const _0x19d964 of _0x1afaab)if(mt(_0x19d964)){_0x141730['ui']['ariaLiveAnnouncer']['announce'](N(_0x141730['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x21ffb3 of _0x186211)if(mt(_0x21ffb3)){_0x141730['ui']['ariaLiveAnnouncer']['announce'](N(_0x141730['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x51ab26)));break;}});}}function dt(_0x2f497b,_0x5bedaa){return _0x5bedaa?_0x2f497b+':'+_0x5bedaa:_0x2f497b;}function ht(_0xafd9b2,_0x12e642){const _0x192901=_0x12e642['schema'],_0x2486f1=_0x12e642['createRange'](_0xafd9b2['start']);for(const _0x5af8c6 of _0xafd9b2['getWalker']()){const {type:_0x4d74a3,item:_0x449dbb,nextPosition:_0xadaf9a}=_0x5af8c6;if('text'===_0x4d74a3||_0x192901['isObject'](_0x449dbb)){const _0x4b7ee3=_0x12e642['createPositionBefore'](_0x449dbb);_0x2486f1['isCollapsed']&&(_0x2486f1['start']=_0x4b7ee3),_0x2486f1['end']=_0xadaf9a;}}return _0x2486f1;}function mt(_0x2dbf6c){return'comment'===ft(_0x2dbf6c['name'])['group'];}class s extends _0x562ab1{['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 _0x587d98=this['editor'],_0x4f7973=_0x587d98['plugins']['get'](o),_0x4e05f2=_0x587d98['plugins']['get'](r),_0xf6c77e=_0x587d98['plugins']['get'](y),_0x46a55f=_0x587d98['plugins']['get'](b);_0x587d98['ui']['componentFactory']['add']('comment',()=>{const _0x60e59f=this['_createUIButton'](_0x2e2946);return _0x60e59f['tooltip']=!0x0,_0x60e59f;}),_0x587d98['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x1b61d8)),_0x46a55f['addSourceCollector'](()=>{const _0x11ccb7=[];for(const [_0x2c8a12,_0x16101b]of _0x4f7973['_threadToController']){const _0x5779fb=_0x4e05f2['getAllMarkersForId'](_0x2c8a12['id']),_0x4188f7=_0x5779fb['map'](_0x6c844a=>_0x6c844a['getRange']());_0x5779fb['length']>0x0&&_0x11ccb7['push']([_0x16101b['view'],_0x4188f7]);}return _0x11ccb7;}),this['listenTo'](_0xf6c77e,'change:activeAnnotations',(_0x558c9a,_0x437222,_0x5ab12f)=>{const _0xcbd497=Array['from'](_0x5ab12f)['map'](_0x1d214d=>_0x1d214d['innerView'])['find'](_0x222816=>_0x4f7973['_viewToController']['has'](_0x222816));if(!_0xcbd497)return void(_0x4e05f2['activeMarker']=null);const _0x4e4d26=_0x4f7973['_viewToController']['get'](_0xcbd497)['model']['id'],_0x128018='comment:'+_0x4e4d26;_0x4e4d26&&_0x4e05f2['hasMarkerForId'](_0x4e4d26)?_0x4e05f2['activeMarker']=_0x128018:_0x4e05f2['activeMarker']&&(_0x4e05f2['activeMarker']=null);}),this['listenTo'](_0x4f7973,'removeCommentThread',(_0x484a58,{threadId:_0x1dfaad,isFromAdapter:_0x3e0bf4})=>{!_0x3e0bf4&&_0x587d98['ui']['focusTracker']['isFocused']&&_0x4e05f2['hasMarkerForId'](_0x1dfaad)&&_0x587d98['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x4f7973,'addComment',(_0x4bfbad,{threadId:_0x4a0171,isFromAdapter:_0x2e8bae})=>{if(_0x2e8bae||!_0x4e05f2['hasMarkerForId'](_0x4a0171)||!_0x4f7973['hasCommentThread'](_0x4a0171))return;0x1===_0x4f7973['getCommentThread'](_0x4a0171)['length']&&(_0x587d98['editing']['view']['focus'](),_0x4bfbad['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x609179=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf0c63c;for(const _0x2475ce in _0x609179){const _0xa62d09=_0x2475ce,_0x5595b7=_0x609179[_0xa62d09];if('commentsLicenseKeyValid'==_0x5595b7||'commentsLicenseKeyInvalid'==_0x5595b7||'commentsLicenseKeyExpired'==_0x5595b7||'commentsLicenseKeyDomainLimit'==_0x5595b7||'commentsLicenseKeyNotAllowed'==_0x5595b7||'commentsLicenseKeyEvaluationLimit'==_0x5595b7||'commentsLicenseKeyUsageLimit'==_0x5595b7){delete _0x609179[_0xa62d09],_0xf0c63c=_0x5595b7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0xf0c63c&&_0x609179['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0xf0c63c&&_0x609179['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0xf0c63c&&_0x609179['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0xf0c63c&&_0x609179['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0xf0c63c&&_0x609179['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0xf0c63c&&_0x609179['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0xc68cca){const _0x1119fc=this['editor'],_0x29eca2=new _0xc68cca(_0x1119fc['locale']),_0x156d21=_0x1119fc['commands']['get']('addCommentThread');return _0x29eca2['set']({'label':N(_0x1119fc['locale'],'Comment'),'icon':_0x38a6cc}),_0x29eca2['bind']('isEnabled')['to'](_0x156d21,'isEnabled',_0x156d21,'hasContent',(_0x1d3e85,_0x154aee)=>_0x1d3e85&&_0x154aee),this['listenTo'](_0x29eca2,'execute',()=>{_0x156d21['execute']();}),_0x29eca2;}}class i extends _0x562ab1{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x88feeb){super(_0x88feeb),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x190526,_0x55080d,_0x424763)=>{_0x424763?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x51c100,_0x5bd99f]of this['editor']['commands'])_0x5bd99f['affectsData']&&'addCommentThread'!==_0x51c100&&_0x5bd99f['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x42bec0=this['editor']['editing']['view']['document'];this['listenTo'](_0x42bec0,'cut',_0x38bd14=>_0x38bd14['stop'](),{'priority':'highest'}),this['listenTo'](_0x42bec0,'clipboardInput',_0x31b055=>_0x31b055['stop'](),{'priority':'highest'}),this['listenTo'](_0x42bec0,'delete',_0x56c514=>_0x56c514['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x24a77b,_0x296a20]of this['editor']['commands'])_0x296a20['affectsData']&&'addCommentThread'!==_0x24a77b&&_0x296a20['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x1511aa{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x315ae1){super(_0x315ae1),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x2a7d11=this['context']['plugins']['get'](y);this['listenTo'](_0x2a7d11,'_activateAnnotation',(_0x3ba24e,_0x3941d2)=>{for(const _0x45b57c of this['activeUIs']){const _0x5093e4=this['_uis']['get'](_0x45b57c);(0x0,this['uisData']['get'](_0x45b57c)['filter'])(_0x3941d2)&&_0x5093e4['setActiveAnnotation'](_0x3941d2);}}),this['listenTo'](_0x2a7d11,'_deactivateAllAnnotations',()=>{for(const _0x2a6ef5 of this['activeUIs']){this['_uis']['get'](_0x2a6ef5)['setActiveAnnotation'](null);}}),this['listenTo'](_0x2a7d11['_visibleAnnotations'],'add',(_0x36d567,_0x457f87)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x457f87);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x340334){return this['activeUIs']['has'](_0x340334);}['activate'](_0x1c27fc,_0x455fde=this['defaultFilter']){const _0x5a574d=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x1c27fc))throw new _0x4c975e('annotationsuis-missing-ui',this,{'uiName':_0x1c27fc});this['isActive'](_0x1c27fc)&&this['deactivate'](_0x1c27fc),this['activeUIs']['add'](_0x1c27fc);const _0x334417=new S();v({'source':_0x5a574d['_visibleAnnotations'],'target':_0x334417,'filter':_0x455fde}),this['uisData']['set'](_0x1c27fc,{'collection':_0x334417,'filter':_0x455fde});const _0x4bbbf6=this['_uis']['get'](_0x1c27fc);_0x4bbbf6['attach'](_0x334417),this['listenTo'](_0x4bbbf6,'change:activeAnnotation',(_0x46d417,_0x390cbd,_0x30df11,_0x315c71)=>{_0x315c71&&_0x5a574d['_removeActiveAnnotation'](_0x315c71),_0x30df11&&_0x5a574d['_addActiveAnnotation'](_0x30df11);});}['deactivate'](_0x182d28){if(this['activeUIs']['delete'](_0x182d28),!this['_uis']['has'](_0x182d28))throw new _0x4c975e('annotationsuis-missing-ui',this,{'uiName':_0x182d28});const _0x37618b=this['_uis']['get'](_0x182d28);_0x37618b['detach'](),this['stopListening'](_0x37618b),this['uisData']['get'](_0x182d28)['collection']['destroy'](),this['uisData']['delete'](_0x182d28);}['switchTo'](_0x4c94da){if(!this['_uis']['has'](_0x4c94da))throw new _0x4c975e('annotationsuis-missing-ui',this,{'uiName':_0x4c94da});const _0x3f3058=this['context']['plugins']['get'](y),_0x49d401=Array['from'](_0x3f3058['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4c94da);const _0x3314e1=this['_uis']['get'](_0x4c94da);_0x3314e1['setActiveAnnotation'](_0x49d401),_0x3314e1['_setSelectedAnnotations']&&_0x49d401&&_0x3314e1['_setSelectedAnnotations']([_0x49d401]);}['deactivateAll'](){for(const _0x391b15 of this['activeUIs'])this['deactivate'](_0x391b15);}['register'](_0x4d4c27,_0x873db8){if(this['_uis']['has'](_0x4d4c27))throw new _0x4c975e('annotationsuis-register-already-registered');if('function'!=typeof _0x873db8['attach']||'function'!=typeof _0x873db8['detach']||'function'!=typeof _0x873db8['setActiveAnnotation'])throw new _0x4c975e('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x4d4c27,_0x873db8);}['refilterAnnotations'](){const _0x56d7d1=this['context']['plugins']['get'](y)['collection'],_0x5a4cd3=new Map(),_0xdfdbaf=Array['from'](this['activeUIs']);for(const _0x465ea7 of this['activeUIs']){const _0x3b66b4=this['uisData']['get'](_0x465ea7)['collection'];for(const _0x14f313 of _0x3b66b4)_0x5a4cd3['set'](_0x14f313,_0x465ea7);}for(const _0x2628f3 of _0x56d7d1){const _0x1540b5=_0x5a4cd3['get'](_0x2628f3);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2628f3);const _0x4d578f=_0xdfdbaf['find'](_0x414e8f=>this['uisData']['get'](_0x414e8f)['filter'](_0x2628f3));_0x1540b5!==_0x4d578f&&(_0x1540b5&&this['uisData']['get'](_0x1540b5)['collection']['remove'](_0x2628f3),_0x4d578f&&this['uisData']['get'](_0x4d578f)['collection']['add'](_0x2628f3));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x372ba9){const _0x52092e=[];for(const _0x5c1691 of this['activeUIs']){(0x0,this['uisData']['get'](_0x5c1691)['filter'])(_0x372ba9)&&_0x52092e['push'](_0x5c1691);}if(_0x52092e['length']>0x1)throw new _0x4c975e('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x52092e,'annotationType':_0x372ba9['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(_0x248ad0){super(_0x248ad0),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x37cd6d,_0x4c1291)=>_0x37cd6d+_0x4c1291),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x428edc=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x428edc['to']('isAnimationDisabled',_0x1ca54c=>_0x1ca54c?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x428edc['to']('top',_0x1601c6=>Ot(_0x1601c6))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x413ab0=this['element']['clientHeight'];_0x413ab0&&(this['height']=_0x413ab0);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x1511aa{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d7590){super(_0x1d7590),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 _0x1b2829=this['context']['config']['get']('sidebar.container');_0x1b2829&&this['setContainer'](_0x1b2829);}['setContainer'](_0x1da5db){if(!g(_0x1da5db))throw new _0x4c975e('sidebar-setcontainer-invalid-element');this['container']=_0x1da5db;}['_attachToContainer']({viewClass:_0x2d1480='',spaceBetweenItems:_0x43d8f7=0x19}={}){if(!g(this['container']))throw new _0x4c975e('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x2d1480,this['_spaceBetweenItems']=_0x43d8f7;}['rearrange']({removedAnnotation:_0x1d3d67,previousAnnotation:_0x165ab5,nextAnnotation:_0x2486c0}){const _0xfa6ca4=this['getSidebarItemView'](_0x1d3d67);this['view']['list']['remove'](_0xfa6ca4),this['_destroySidebarItemView'](_0x1d3d67),_0x165ab5&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x165ab5)),_0x2486c0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x2486c0)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x20e7fe,activatedAnnotation:_0x2db1f7,disableAnimationOnActivatedAnnotation:_0x145b1d}){if(this['_activeAnnotation']=_0x2db1f7,_0x20e7fe){_0x20e7fe['isActive']=!0x1;const _0x320dfb=this['getSidebarItemView'](_0x20e7fe);_0x320dfb&&_0x145b1d&&(_0x320dfb['isAnimationDisabled']=!0x1);}if(_0x2db1f7){const _0x426481=this['getSidebarItemView'](_0x2db1f7);_0x426481&&(_0x2db1f7['isActive']=!0x0,_0x145b1d&&(_0x426481['isAnimationDisabled']=!0x0,_0x426481['top']+=0x1),this['_alignToTargetRect'](_0x426481));}}['_detachFromContainer'](_0x529990){if(this['view']['element']['remove'](),_0x529990){for(const _0x340ea4 of _0x529990)this['_destroySidebarItemView'](_0x340ea4);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x9ba1da,_0x3122cd){_0x3122cd||(_0x3122cd=_0x9ba1da['view']);const _0x43d272=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x43d272,_0x9ba1da),this['_annotationToSidebarItemView']['set'](_0x9ba1da,_0x43d272),_0x43d272['content']['add'](_0x3122cd),this['listenTo'](_0x9ba1da['view'],'change:targetRect',(_0x19909b,_0x48a3ed,_0x2ca1cc)=>{const _0x54b0f6=this['_getTargetTop'](_0x9ba1da,_0x2ca1cc);_0x43d272['_targetTop']!=_0x54b0f6&&(_0x43d272['_targetTop']=_0x54b0f6,this['_setItemTop'](_0x43d272,_0x54b0f6));}),this['listenTo'](_0x43d272,'change:top',()=>{this['_recalculate'](_0x43d272,'top');}),this['listenTo'](_0x43d272,'change:bottom',()=>{this['_recalculate'](_0x43d272,'bottom');}),this['_alignToTargetRect'](_0x43d272);const _0x4228ec=this['_getItemBefore'](_0x43d272);if(_0x4228ec)this['_alignAfterItem'](_0x4228ec,_0x43d272)||this['_alignToTargetRect'](_0x43d272);else this['_alignToTargetRect'](_0x43d272);return this['_updateLastItem'](),this['view']['list']['add'](_0x43d272),_0x43d272;}['_alignForTopChange'](_0x328aac){if(!_0x328aac['content']['length'])return;const _0x571057=this['_getItemBefore'](_0x328aac);if(!_0x571057)return;const _0x2164c3=this['_sidebarItemViewToAnnotation']['get'](_0x571057),_0x4ff163=this['_activeAnnotation'];_0x4ff163&&_0x4ff163===_0x2164c3?this['_alignAfterItem'](_0x571057,_0x328aac):this['_alignBeforeItem'](_0x328aac,_0x571057);}['_alignForBottomChange'](_0x401f01){if(!_0x401f01['content']['length'])return;const _0x913dcb=this['_getItemAfter'](_0x401f01);if(!_0x913dcb)return;const _0x39cd2b=this['_sidebarItemViewToAnnotation']['get'](_0x913dcb),_0x3d3ce8=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x31560b=this['_activeAnnotation'];_0x31560b&&_0x31560b===_0x39cd2b&&_0x3d3ce8?(this['_alignBeforeItem'](_0x913dcb,_0x401f01),this['_alignAfterItem'](_0x401f01,_0x913dcb)):_0x31560b&&_0x31560b===_0x39cd2b?this['_alignBeforeItem'](_0x913dcb,_0x401f01):this['_alignAfterItem'](_0x401f01,_0x913dcb);}['_recalculate'](_0x4675a7,_0x2b6ba5){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x58e118,changedProp:_0x591189}of this['_recalculateBuffer'])'top'===_0x591189?this['_alignForTopChange'](_0x58e118):this['_alignForBottomChange'](_0x58e118);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x4675a7,'changedProp':_0x2b6ba5});}['getSidebarItemView'](_0x2d4ef0){return this['_annotationToSidebarItemView']['get'](_0x2d4ef0);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x1e6201){const _0x39af5a=this['getSidebarItemView'](_0x1e6201);this['stopListening'](_0x39af5a),this['stopListening'](_0x1e6201['view']),_0x39af5a['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x1e6201),this['_sidebarItemViewToAnnotation']['delete'](_0x39af5a);}['_createSidebarView'](){const _0x258adb=new H(this['context']['locale']);return _0x258adb['render'](),this['on']('change:_lastItem',(_0x962ea0,_0x253d0e,_0x2951df,_0x4513e3)=>{_0x4513e3&&_0x258adb['unbind']('minHeight'),_0x2951df?_0x258adb['bind']('minHeight')['to'](_0x2951df,'bottom'):_0x258adb['minHeight']=null;}),_0x258adb;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x489e7c){const _0x328cf8=this['_sidebarItemViewToAnnotation']['get'](_0x489e7c),_0x37e958=_0x328cf8&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x328cf8)-0x1);return _0x37e958&&this['getSidebarItemView'](_0x37e958)||null;}['_getItemAfter'](_0x50da30){const _0x16fa2e=this['_sidebarItemViewToAnnotation']['get'](_0x50da30),_0x401601=_0x16fa2e&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x16fa2e)+0x1);return _0x401601&&this['getSidebarItemView'](_0x401601)||null;}['_alignBeforeItem'](_0x4dbe1d,_0x518c94){_0x4dbe1d['updateHeight']();const _0x2beda7=G(_0x518c94['bottom']+this['_spaceBetweenItems'],_0x4dbe1d['top']);return!!_0x2beda7&&(this['_setItemTop'](_0x518c94,_0x518c94['top']-_0x2beda7),!0x0);}['_alignAfterItem'](_0x5483e2,_0x5f2359){_0x5483e2['updateHeight']();const _0x1638dc=G(_0x5483e2['bottom']+this['_spaceBetweenItems'],_0x5f2359['top']);return!!_0x1638dc&&(this['_setItemTop'](_0x5f2359,_0x5f2359['top']+_0x1638dc,!0x1),!0x0);}['_alignToTargetRect'](_0x17c779){const _0x4ed1f8=this['_sidebarItemViewToAnnotation']['get'](_0x17c779);if(!_0x4ed1f8||!_0x4ed1f8['target']||!_0x4ed1f8['targetRect'])return;const _0x4fa507=this['_getTargetTop'](_0x4ed1f8,_0x4ed1f8['targetRect']);this['_setItemTop'](_0x17c779,_0x4fa507);}['_getTargetTop'](_0x25b4ec,_0x47a0e6){if(null===_0x47a0e6)return 0x0;if(_0x25b4ec['target']instanceof _0x28ea8f)return _0x47a0e6['top'];{const _0x5ea8ca=new _0x28ea8f(this['view']['element'])['top'];return _0x47a0e6['top']-_0x5ea8ca;}}['_setItemTop'](_0x344bd9,_0x4e2d68,_0x4fdc10=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x4fdc10&&(_0x4e2d68=Math['max'](_0x4e2d68,this['_getMaxAvailableTop'](_0x344bd9))),_0x344bd9['top']=_0x4e2d68;}['_getMaxAvailableTop'](_0x3a5808){let _0x2d3c00=this['_getItemBefore'](_0x3a5808),_0x457688=0x0;for(;_0x2d3c00;)_0x2d3c00['updateHeight'](),_0x457688+=this['_spaceBetweenItems']+_0x2d3c00['height'],_0x2d3c00=this['_getItemBefore'](_0x2d3c00);return _0x457688;}}function G(_0x31fa56,_0x1978d6){return Math['max'](_0x31fa56-_0x1978d6,0x0);}function g(_0x31500d){return null!==_0x31500d&&'object'==typeof _0x31500d&&0x1===_0x31500d['nodeType'];}class e extends _0x1511aa{['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(_0x3e8341){super(_0x3e8341),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x1ce026(),this['_refreshPositioningDebounced']=_0x192048(()=>{_0x3e8341['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x1cde03=this['context']['plugins']['get'](j),_0x3e2294=this['context']['plugins']['get'](z);_0x1cde03['register']('wideSidebar',this),_0x3e2294['container']&&_0x1cde03['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x441bcc){if(_0x441bcc===this['activeAnnotation'])return;const _0x248da2=this['context']['plugins']['get'](z);_0x248da2['_activeAnnotation']=_0x441bcc;const _0x4de49a=this['activeAnnotation'];_0x248da2['refresh']({'blurredAnnotation':_0x4de49a,'activatedAnnotation':_0x441bcc}),this['activeAnnotation']=_0x441bcc;}['attach'](_0x27a9a9){this['annotations']=_0x27a9a9;const _0x25c510=this['context']['plugins']['get'](z);if(_0x25c510['_annotations']=_0x27a9a9,this['isAttached'])throw new _0x4c975e('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x25c510,'set:container',()=>{this['detach'](),this['listenTo'](_0x25c510,'change:container',_0xbf657c=>{_0xbf657c['off'](),this['attach'](_0x27a9a9);});}),_0x25c510['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x376c72=_0x497955=>{_0x497955['updateTargetRect'](),_0x25c510['addAnnotation'](_0x497955);};for(const _0x240eef of _0x27a9a9)_0x376c72(_0x240eef);this['listenTo'](_0x27a9a9,'add',(_0x259f3,_0x3a7b6f)=>{_0x376c72(_0x3a7b6f);}),this['listenTo'](_0x27a9a9,'remove',(_0x36cdbf,_0x39e9e7,_0x41a88b)=>{_0x25c510['rearrange']({'removedAnnotation':_0x39e9e7,'previousAnnotation':_0x27a9a9['get'](_0x41a88b-0x1),'nextAnnotation':_0x27a9a9['get'](_0x41a88b+0x1)}),_0x39e9e7===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x27a9a9,'focus',(_0x4cd661,_0x819451)=>{this['setActiveAnnotation'](_0x819451);}),this['listenTo'](_0x27a9a9,'blur',()=>{this['setActiveAnnotation'](null);});const _0x113848=this['context']instanceof _0x1f800c?this['context']['editors']:new _0x1ce026([this['context']]);for(const _0x4a095a of _0x113848)this['_integrateWithEditorAnnotations'](_0x4a095a);this['listenTo'](_0x113848,'add',(_0x1d5abc,_0x39e881)=>{this['listenTo'](_0x39e881,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x39e881);});}),this['listenTo'](_0x113848,'remove',(_0x7706a9,_0xcdc84d)=>{_0xcdc84d['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0xcdc84d['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x4c975e('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3a3718=this['context']['plugins']['get'](z);_0x3a3718['_detachFromContainer'](this['annotations']),this['stopListening'](_0x3a3718),this['stopListening'](this['annotations']),this['context']instanceof _0x1f800c&&this['stopListening'](this['context']['editors']);for(const _0x439821 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x439821);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x3edca1){if(!_0x3edca1['plugins']['has']('EditorAnnotations'))return;const _0x5598de=_0x3edca1['plugins']['get']('EditorAnnotations'),_0x18d500=()=>{const _0xe64cad=_0x5598de['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0xe64cad[0x0]||null);};this['listenTo'](_0x5598de,'refresh',_0x18d500),this['listenTo'](_0x5598de,'blur',(_0x3b8d75,{isAnnotationTracked:_0x4b9a88})=>{this['activeAnnotation']&&_0x4b9a88(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5598de,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0xb47144=>{_0x5598de['hasDomSelection']()&&(_0x18d500(),_0xb47144['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x5598de);}['_destroyEditorAnnotationsIntegration'](_0x330b87){this['stopListening'](_0x330b87),this['_editorAnnotations']['remove'](_0x330b87);}}class C extends _0x2e2946{['counterView'];constructor(_0x47ee06){super(_0x47ee06);const _0x1e26e5=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x440485,_0x1d117f)=>_0x440485?'...':_0x1d117f['toString']()),this['set']('annotationType',''),this['icon']=_0x38a6cc,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x1e26e5['to']('annotationType',_0x87b52f=>'ck-annotation-counter__badge--'+_0x87b52f),_0x1e26e5['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1e26e5['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x1511aa{['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(_0x5129bd){super(_0x5129bd),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x400570())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x1ce026(),this['_refreshPositioningDebounced']=_0x192048(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x41fe53(this['context']['locale']),this['balloonPanelView']=new _0x29a8fe(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x5f4779){this['annotations']=_0x5f4779;const _0x79a9b1=this['context']['plugins']['get'](z),_0x4e006a=this['balloonPanelView'];if(_0x79a9b1['_annotations']=_0x5f4779,this['isAttached'])throw new _0x4c975e('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x79a9b1,'set:container',()=>{this['detach'](),this['listenTo'](_0x79a9b1,'change:container',_0x3d4019=>{_0x3d4019['off'](),this['attach'](_0x5f4779);});}),_0x79a9b1['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x2562ba=_0x5b7537=>{const _0x440e49=new C(this['context']['locale']);_0x79a9b1['addAnnotation'](_0x5b7537,_0x440e49),this['_annotationToNarrowView']['set'](_0x5b7537,_0x440e49),_0x440e49['bind']('isDirty','annotationType','number')['to'](_0x5b7537['view'],'isDirty','type','length'),_0x440e49['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x4e006a['content']['first']!==_0x5b7537['view']?(this['_showBalloon'](_0x5b7537),_0x5b7537['view']['element']['focus'](),this['setActiveAnnotation'](_0x5b7537)):this['setActiveAnnotation'](null);});};for(const _0x460ce1 of _0x5f4779)_0x2562ba(_0x460ce1);this['listenTo'](_0x5f4779,'add',(_0x3a2428,_0x50dfcf)=>{_0x2562ba(_0x50dfcf);}),this['listenTo'](_0x5f4779,'remove',(_0x591f96,_0x83887b,_0x3088ba)=>{this['_annotationToNarrowView']['get'](_0x83887b)['destroy'](),this['_annotationToNarrowView']['delete'](_0x83887b),_0x79a9b1['rearrange']({'removedAnnotation':_0x83887b,'previousAnnotation':_0x5f4779['get'](_0x3088ba-0x1),'nextAnnotation':_0x5f4779['get'](_0x3088ba+0x1)}),_0x83887b===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x5f4779,'focus',(_0x314f31,_0x3a2ae5)=>{this['setActiveAnnotation'](_0x3a2ae5);}),this['listenTo'](_0x5f4779,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0xf18420,_0x1da51e)=>{_0x1da51e['keyCode']===_0x586f43['esc']&&_0x4e006a['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x4e006a['content']['first']),this['_hideBalloon'](),_0x1da51e['stopPropagation'](),_0x1da51e['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x47bc39,_0x6b9093)=>{const _0x484960=_0x6b9093['target'];_0x4e006a['isVisible']&&_0x4e006a['element']['contains'](_0x484960)||_0x79a9b1['view']['element']['contains'](_0x484960)||_0x47bc39['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x499191=>_0x499191['contains'](_0x484960))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x48b1f9=this['context']instanceof _0x1f800c?this['context']['editors']:new _0x1ce026([this['context']]);for(const _0x432e6b of _0x48b1f9)this['_integrateWithEditorAnnotations'](_0x432e6b);this['listenTo'](_0x48b1f9,'add',(_0x14cefa,_0x264f4a)=>{this['listenTo'](_0x264f4a,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x264f4a);});}),this['listenTo'](_0x48b1f9,'remove',(_0x42645a,_0x515016)=>{_0x515016['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x515016['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x21a8c7){if(_0x21a8c7===this['activeAnnotation'])return;const _0x15a092=this['context']['plugins']['get'](z);if(_0x15a092['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x21a8c7,'disableAnimationOnActivatedAnnotation':!0x0}),_0x21a8c7)_0x15a092['getSidebarItemView'](_0x21a8c7)?this['_showBalloon'](_0x21a8c7):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x21a8c7;}['detach'](){if(!this['isAttached'])throw new _0x4c975e('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x3c290f=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x572da1=>_0x572da1['destroy']()),this['_annotationToNarrowView']['clear'](),_0x3c290f['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x1f800c&&this['stopListening'](this['context']['editors']);for(const _0x1e6ce9 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x1e6ce9);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'](_0x4f1440){if(!_0x4f1440['plugins']['has']('EditorAnnotations'))return;const _0x55142d=_0x4f1440['plugins']['get']('EditorAnnotations'),_0x423d25=this['context']['plugins']['get'](z),_0x5198f7=this['annotations'],_0x557846=this['balloonPanelView'],_0x1da922=()=>{const _0x365739=_0x55142d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x365739),this['setActiveAnnotation'](_0x365739[0x0]||null);};this['listenTo'](_0x55142d,'refresh',_0x1da922),this['listenTo'](_0x55142d,'blur',(_0x345aa7,{isAnnotationTracked:_0x3c22fc})=>{this['activeAnnotation']&&_0x3c22fc(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x55142d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x5198f7,'blur',_0x96194=>{_0x55142d['hasDomSelection']()&&_0x96194['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x1fd27d,_0x5b4c60)=>{const _0x31f732=_0x5b4c60['target'];_0x557846['isVisible']&&_0x557846['element']['contains'](_0x31f732)||_0x423d25['view']['element']['contains'](_0x31f732)||this['activeAnnotation']&&_0x55142d['hasDomSelection']()&&(_0x1da922(),_0x1fd27d['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x55142d);}['_destroyEditorAnnotationsIntegration'](_0x160cc5){_0x160cc5&&(this['stopListening'](_0x160cc5),this['_editorAnnotations']['remove'](_0x160cc5));}['_setSelectedAnnotations'](_0x41b094){for(const _0x320ca7 of this['_selectedAnnotations'])_0x41b094['includes'](_0x320ca7)||this['_manuallyClosedAnnotationViews']['delete'](_0x320ca7['view']);this['_selectedAnnotations']=_0x41b094;}['_refreshPositioning'](){const _0xa02096=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0xa02096['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x4d9b53){if(this['_manuallyClosedAnnotationViews']['has'](_0x4d9b53['view']))return;const _0xccf44e=this['balloonPanelView']['content']['first'];_0xccf44e!==_0x4d9b53['view']?(_0xccf44e&&this['_detachListeners'](_0xccf44e),this['_attachListeners'](_0x4d9b53['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x4d9b53['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x4eb110=this['balloonPanelView']['content']['first'],_0x2f4ca2=_0x4eb110&&this['annotations']['getByView'](_0x4eb110);if(!_0x2f4ca2||!this['_annotationToNarrowView']['has'](_0x2f4ca2))return;const _0x59a355=this['_annotationToNarrowView']['get'](_0x2f4ca2)['element'],_0x3c4bb3=(function(){const _0x392711=_0x29a8fe['defaultPositions'];return[_0x392711['southArrowNorthEast'],_0x392711['northArrowSouthEast'],_0x392711['southArrowNorth'],_0x392711['northArrowSouth'],_0x392711['southArrowNorthWest'],_0x392711['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x59a355,'positions':_0x3c4bb3});}['_hideBalloon'](){const _0x16c5f0=this['balloonPanelView'],_0x1fd4dc=_0x16c5f0['content']['first'];_0x1fd4dc&&(this['_detachListeners'](_0x1fd4dc),_0x16c5f0['unpin'](),_0x16c5f0['content']['clear']());}['_attachListeners'](_0x252ad7){this['listenTo'](_0x252ad7,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x252ad7,'Esc',(_0x51000c,_0x1b54c6)=>{this['_manuallyClosedAnnotationViews']['add'](_0x252ad7),this['_hideBalloon'](),_0x1b54c6();});}['_detachListeners'](_0x543b17){this['stopListening'](_0x543b17);}}class c extends _0x562ab1{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0x3dbc3d,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x250c58){super(_0x250c58),_0x250c58['editing']['view']['addObserver'](_0x4c6600),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x250c58['plugins']['get'](_0x3dbc3d),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x192048(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x58d500=this['editor']['plugins']['get'](j);_0x58d500['context']===this['editor']&&(_0x58d500['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x4601ba,_0x47aa69)=>{const _0x478bd3=this['_balloon'];if(this['isAttached']&&_0x478bd3['visibleView']){const _0x59a112=this['annotations']['getByView'](_0x478bd3['visibleView']);_0x59a112&&this['_closeAnnotation'](_0x59a112),_0x47aa69();}}));}['afterInit'](){const _0x3e0c30=this['editor']['plugins']['get'](j);_0x3e0c30['context']===this['editor']&&(_0x3e0c30['hasActive']()||_0x3e0c30['switchTo']('inline'));}['setActiveAnnotation'](_0x2d789d){_0x2d789d!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x2d789d&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x2d789d)&&this['_addAnnotationToBalloon'](_0x2d789d,!0x0),_0x2d789d['isActive']=!0x0),_0x2d789d||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x2d789d);}['attach'](_0x7e8280){this['annotations']=_0x7e8280;const _0x3fa3f7=this['editor']['plugins']['get'](j),_0x5bf4e6=this['_balloon'];if(this['isAttached'])throw new _0x4c975e('inlineannotations-attach-already-attached',this);if(_0x3fa3f7['context']!==this['editor'])throw new _0x4c975e('inlineannotations-not-allowed-with-context',this);const _0x20ac1c=this['editor']['plugins']['get'](b);this['listenTo'](_0x20ac1c,'refresh',()=>{const _0x72084b=_0x20ac1c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x636a2,_0x1b5fb6;!this['_forceRefresh']&&(_0x636a2=_0x72084b,_0x1b5fb6=this['_selectedAnnotations'],_0x636a2['length']===_0x1b5fb6['length']&&_0x636a2['every'](_0x4440df=>_0x1b5fb6['includes'](_0x4440df)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x72084b),this['setActiveAnnotation'](_0x72084b[0x0]||null));}),this['listenTo'](_0x20ac1c,'blur',(_0x360f84,{isAnnotationTracked:_0x265078})=>{this['activeAnnotation']&&_0x265078(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x20ac1c,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x5ae18f,_0x15ea90,_0x18299)=>{_0x18299||this['setActiveAnnotation'](null);}),this['listenTo'](_0x7e8280,'remove',(_0x77bb4e,_0x5b8b78)=>{this['_removeAnnotationFromBalloon'](_0x5b8b78),_0x5b8b78===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x5bf4e6,'change:visibleView',(_0x514863,_0x1cf919,_0x296dde,_0x500b17)=>{_0x500b17&&this['stopListening'](_0x500b17);const _0xa7767b=_0x7e8280['getByView'](_0x296dde);_0x296dde&&_0xa7767b&&(this['listenTo'](_0x296dde,'change:height',()=>{_0x5bf4e6['updatePosition']();}),this['listenTo'](_0x296dde,'Esc',()=>{this['_closeAnnotation'](_0xa7767b),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0xa7767b&&this['setActiveAnnotation'](_0xa7767b));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x5bf4e6['visibleView']&&(_0x7e8280['getByView'](_0x5bf4e6['visibleView'])&&_0x5bf4e6['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 _0x4c975e('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1135f9 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1135f9);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x49963a){for(const _0x57f9dc of this['_selectedAnnotations'])_0x49963a['includes'](_0x57f9dc)||this['_manuallyClosed']['delete'](_0x57f9dc);for(const _0x485509 of this['annotations'])_0x49963a['includes'](_0x485509)||this['_removeAnnotationFromBalloon'](_0x485509);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x214bdc of _0x49963a)this['_addAnnotationToBalloon'](_0x214bdc);}this['_selectedAnnotations']=_0x49963a;}['_addAnnotationToBalloon'](_0xd274d6,_0x8047e9=!0x1){this['_manuallyClosed']['has'](_0xd274d6)||(this['_addedAnnotations']['has'](_0xd274d6)||this['_balloon']['hasView'](_0xd274d6['view'])||(this['_addedAnnotations']['add'](_0xd274d6),this['_balloon']['add']({'stackId':_0xd274d6['view']['id'],'view':_0xd274d6['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xd274d6)}})),_0x8047e9&&this['_balloon']['showStack'](_0xd274d6['view']['id']));}['_getBalloonTargetForAnnotation'](_0x44cc15){const _0x2cbfef=_0x44cc15['target'],_0x2b49dc=this['editor']['editing']['view'],_0x5249fd=_0x2b49dc['document']['selection']['getFirstRange'](),_0x58af3a=_0x2b49dc['domConverter']['viewRangeToDom'](_0x5249fd);if(_0x58af3a['collapse'](!0x0),_0x2cbfef){if(_0x2cbfef instanceof _0x28ea8f)return _0x2cbfef;let _0x56aae5=[];for(const _0xfd4f39 of _0x2cbfef)_0x56aae5['push'](...F(_0xfd4f39['getClientRects']()));_0x56aae5=function(_0x187acb){const _0x1130aa=[];let _0xc2d210=_0x187acb[0x0];for(let _0x44fdca=0x1;_0x44fdca<_0x187acb['length'];_0x44fdca++)P(_0xc2d210,_0x187acb[_0x44fdca])?_0xc2d210['width']+=_0x187acb[_0x44fdca]['width']:(_0x1130aa['push'](_0xc2d210),_0xc2d210=_0x187acb[_0x44fdca]);return _0x1130aa['push'](_0xc2d210),_0x1130aa;}(_0x56aae5);const _0x109a35=_0x58af3a['getBoundingClientRect']();return _0x56aae5['find'](_0x33512c=>_0x33512c['top']<=_0x109a35['top']&&_0x33512c['bottom']>=_0x109a35['bottom']&&_0x33512c['left']<=_0x109a35['left']&&_0x33512c['right']>=_0x109a35['right'])||_0x56aae5[0x0];}return _0x44cc15['targetRect']||_0x58af3a;}['_removeAnnotationFromBalloon'](_0x443f47){this['_addedAnnotations']['has'](_0x443f47)&&this['_balloon']['hasView'](_0x443f47['view'])&&(this['_addedAnnotations']['delete'](_0x443f47),this['_balloon']['remove'](_0x443f47['view']));}['_closeAnnotation'](_0x393872){this['_manuallyClosed']['add'](_0x393872),this['_removeAnnotationFromBalloon'](_0x393872);}}function F(_0x51165f){return Array['from'](_0x51165f)['map'](DOMRect['fromRect']);}function P(_0x364285,_0x46f3ef){return _0x364285['top']===_0x46f3ef['top']&&_0x364285['bottom']===_0x46f3ef['bottom']&&_0x364285['right']===_0x46f3ef['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x160ac4,_0x301609){super(_0x160ac4),this['set']('isEmpty',!_0x301609['length']),this['focusTracker']=new _0x3fbfe5(),this['_annotationViews']=_0x301609,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x39bd35({'focusables':_0x301609,'focusTracker':this['focusTracker']}),this['listenTo'](_0x301609,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x301609,'remove',(_0x2c8aa7,_0x186c7c)=>{_0x186c7c['isActive']&&this['focus'](),_0x301609['length']||(this['isEmpty']=!0x0);});const _0x4ee43c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x160ac4,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x301609},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4ee43c['if']('isEmpty','ck-hidden',_0x3c1cf0=>!_0x3c1cf0)]},'children':[{'text':N(_0x160ac4,'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 _0x348cc0 of this['_annotationViews'])this['focusTracker']['add'](_0x348cc0['element']);this['_annotationViews']['on']('change',(_0x35fc15,{added:_0x381dab,removed:_0x54803b})=>{for(const _0x563c26 of _0x381dab)this['focusTracker']['add'](_0x563c26['element']);for(const _0xca39c0 of _0x54803b)this['focusTracker']['remove'](_0xca39c0['element']);});}}class p extends _0x1511aa{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x459550){super(_0x459550),this['archivedThreads']=new _0x1ce026();}['init'](){const _0x5c7bae=this['context'],_0x2d8996=_0x5c7bae['plugins']['get'](o),_0x56dfa7=_0x5c7bae['plugins']['get'](y);this['listenTo'](_0x2d8996,'addCommentThread',(_0x535df7,{threadId:_0x2c1cfc})=>{const _0x3eb57f=_0x2d8996['getCommentThread'](_0x2c1cfc);_0x3eb57f['archivedAt']&&this['archivedThreads']['add'](_0x3eb57f,this['_calculatePosition'](_0x3eb57f['archivedAt'])),this['listenTo'](_0x3eb57f,'change:archivedAt',(_0x3e4fba,_0x3249eb,_0x1f4a21)=>{_0x1f4a21?this['archivedThreads']['has'](_0x3eb57f)||this['archivedThreads']['add'](_0x3eb57f,this['_calculatePosition'](_0x3eb57f['archivedAt'])):this['archivedThreads']['has'](_0x3eb57f)&&this['archivedThreads']['remove'](_0x3eb57f);});}),this['listenTo'](_0x2d8996,'removeCommentThread',(_0x551dfc,{threadId:_0x2e3efd})=>{const _0x1c5be2=_0x2d8996['getCommentThread'](_0x2e3efd);this['stopListening'](_0x1c5be2),this['archivedThreads']['has'](_0x1c5be2)&&this['archivedThreads']['remove'](_0x1c5be2);},{'priority':'highest'}),this['listenTo'](_0x56dfa7['collection'],'focus',(_0x210c22,_0x2b02c8)=>{_0x2b02c8['isVisible']||(_0x2b02c8['isActive']=!0x0,_0x56dfa7['activate'](_0x2b02c8));});}['_calculatePosition'](_0x51feb7){const _0x3c1898=[...this['archivedThreads']]['findIndex'](_0x6d230d=>_0x6d230d['archivedAt']<_0x51feb7);return _0x3c1898>-0x1?_0x3c1898:this['archivedThreads']['length'];}}class a extends _0x562ab1{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x3ab7ac];}constructor(_0x4ad530){super(_0x4ad530),this['annotationViews']=new _0x24b505(),this['_pendingThreads']=[];}['init'](){const _0x29fa78=this['editor'],_0x1b1f35=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x29fa78['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x2e2946,!0x0)),_0x29fa78['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x1b7b7c=this['_createCommentsArchiveButton'](_0x1b61d8);return _0x1b7b7c['set']({'role':'menuitemcheckbox'}),_0x1b7b7c;});const _0xf35ca0=_0x29fa78['plugins']['get'](p),_0x1a7a9d=_0x29fa78['plugins']['get']('Annotations'),_0x31e35f=_0x29fa78['plugins']['get']('CommentsRepository');_0xf35ca0['archivedThreads']['forEach'](_0xfb4e04=>{this['_handleNewThread'](_0xfb4e04);}),this['listenTo'](_0xf35ca0['archivedThreads'],'add',(_0x26d9e2,_0x5b1b38)=>{this['_handleNewThread'](_0x5b1b38);}),this['listenTo'](_0x1a7a9d['collection'],'add',(_0x3da3c4,_0x4670d5)=>{const _0x1bbd43=this['_pendingThreads']['find'](_0x3c94cd=>{const _0x894b6=_0x31e35f['_threadToController']['get'](_0x3c94cd);return _0x894b6&&_0x4670d5['innerView']===_0x894b6['view'];});if(_0x1bbd43){const _0x1acef1=this['_calculatePosition'](_0x1bbd43['archivedAt']);this['_addAnnotationToArchive'](_0x4670d5,_0x1acef1),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1bbd43),0x1);}}),this['listenTo'](_0xf35ca0['archivedThreads'],'remove',(_0x574771,_0x2112bd)=>{const _0x32a9a=_0x29fa78['config']['get']('collaboration.channelId');if(!_0x32a9a||_0x2112bd['channelId']===_0x32a9a){if(this['_pendingThreads']['includes'](_0x2112bd))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x2112bd),0x1);else{const _0x111a11=_0x31e35f['_threadToController']['get'](_0x2112bd),_0xe54c86=_0x1a7a9d['getByInnerView'](_0x111a11['view']);this['annotationViews']['remove'](_0xe54c86['view']),this['stopListening'](_0xe54c86),this['stopListening'](_0xe54c86['focusableElements']);}}}),this['listenTo'](_0x1a7a9d['collection'],'add',(_0x4b3a12,_0x48d44f)=>{this['listenTo'](_0x48d44f,'escape',_0x1b1f35);}),this['listenTo'](_0x1a7a9d['collection'],'remove',(_0x2dcb87,_0x461ccc)=>{this['stopListening'](_0x461ccc,'escape',_0x1b1f35);});}['_addAnnotationToArchive'](_0x2e86e6,_0x301db8){this['listenTo'](_0x2e86e6,'set:isVisible',_0x3465ee=>{_0x3465ee['return']=!0x1,_0x3465ee['stop']();}),this['annotationViews']['add'](_0x2e86e6['view'],_0x301db8);}['_handleNewThread'](_0x3e9bd2){const _0x35bd3a=this['editor']['plugins']['get']('CommentsRepository'),_0x1a4252=this['editor']['plugins']['get']('Annotations'),_0x345a0f=this['editor']['config']['get']('collaboration.channelId');if(!_0x345a0f||_0x3e9bd2['channelId']===_0x345a0f){const _0x198c6e=_0x35bd3a['_threadToController']['get'](_0x3e9bd2);if(!_0x198c6e)return void this['_pendingThreads']['push'](_0x3e9bd2);const _0xae5d05=this['_calculatePosition'](_0x3e9bd2['archivedAt']),_0x4c7c8d=_0x1a4252['getByInnerView'](_0x198c6e['view']);_0x4c7c8d['isVisible']&&_0x1a4252['_visibleAnnotations']['remove'](_0x4c7c8d),this['_addAnnotationToArchive'](_0x4c7c8d,_0xae5d05);}}['_calculatePosition'](_0x508cda){const _0x28bab8=this['editor']['config']['get']('collaboration.channelId'),_0x4b8646=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x520107=>_0x520107['channelId']===_0x28bab8)['findIndex'](_0x3b52be=>_0x3b52be['archivedAt']<_0x508cda);return _0x4b8646<0x0||_0x4b8646>this['annotationViews']['length']?this['annotationViews']['length']:_0x4b8646-0x1;}['_toggleDialog'](){const _0x2fd813=this['editor'],_0xe85600=_0x2fd813['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x2fd813['locale'],this['annotationViews'])),'commentsArchive'===_0xe85600['id']?_0xe85600['hide']():_0xe85600['show']({'id':'commentsArchive','title':N(_0x2fd813['locale'],'COMMENTS_ARCHIVE'),'icon':_0x49e813,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x388cbc['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x11dc38,_0x40fc1a=!0x1){const _0x547546=this['editor']['locale'],_0xed5a91=this['editor']['plugins']['get']('Dialog'),_0x2603f9=new _0x11dc38(_0x547546);return _0x2603f9['bind']('isEnabled')['to'](this,'isEnabled'),_0x2603f9['bind']('isOn')['to'](_0xed5a91,'id',_0x4ef39d=>'commentsArchive'===_0x4ef39d),_0x2603f9['set']({'label':N(_0x547546,'COMMENTS_ARCHIVE'),'icon':_0x49e813,'isToggleable':!0x0}),_0x40fc1a&&(_0x2603f9['tooltip']=!0x0),this['listenTo'](_0x2603f9,'execute',()=>this['_toggleDialog']()),_0x2603f9;}['_hideDialogOnAnnotationEscape']=_0x445a3e=>{const _0x34b7b1=_0x445a3e['source'];if(!this['annotationViews']['has'](_0x34b7b1['view']))return;const _0x29b70c=this['editor']['plugins']['get']('Dialog');_0x29b70c['isOpen']&&'commentsArchive'===_0x29b70c['id']&&(_0x29b70c['hide'](),_0x445a3e['stop']());};}class gi extends _0x562ab1{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
|
|
23
|
+
import{Editor as _0x4f4c34,ContextPlugin as _0x545c79,PendingActions as lt,Command as _0x35ae39,Plugin as _0x23cf76,Context as _0x391341}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x1f5238,uid as _0x17ea48,KeystrokeHandler as jt,FocusTracker as _0x2b2f3d,diff as _0x3fc1ba,Collection as _0xa3f224,Rect as _0x46af57,CKEditorError as _0x3c6477,first as _0x1de0ec,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x2ad553,keyCodes as _0x12b115}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x1d2bdd,AriaDescriptionView as Yt,setupThreadKeyboardNavigation as Zt,ConfirmMixin as ti,LateFocusButtonView as _0x377dce,trimHtml as ts,LateFocusDropdownButtonView as _0x124d29,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x9ce898}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x5218cd}from'es-toolkit/compat';import{IconUndo as _0x16c8c0,IconCheck as _0x479cba,IconPencil as _0x42d721,IconRemoveComment as _0x2b206f,IconThreeVerticalDots as _0x2665c2,IconAddComment as _0x50c136,IconCommentsArchive as _0x307d20}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as $t,InlineEditableUIView as Vt,EditorUI as Ut,View as kt,FocusCycler as _0xd32198,ButtonView as _0x28cfbe,ViewCollection as _0x10f58f,createDropdown as _0x1963c6,ListView as _0x2c610f,focusChildOnDropdownOpen as _0x4fd54f,ListItemView as _0x1fbd4b,MenuBarMenuListItemButtonView as _0x371c67,BodyCollection as _0x5b5349,BalloonPanelView as _0x135571,ContextualBalloon as _0xba2018,Dialog as _0x524ca0,DialogViewPosition as _0x1d0d6d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as St,enableViewPlaceholder as Ft,MouseObserver as _0x2660de}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as qt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as zt,ShiftEnter as Bt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{SelectAll as Gt}from'@ckeditor/ckeditor5-select-all/dist/index.js';import{Typing as Jt}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Undo as Kt}from'@ckeditor/ckeditor5-undo/dist/index.js';import{Paragraph as Lt}from'@ckeditor/ckeditor5-paragraph/dist/index.js';import{FOCUS_ANNOTATION_KEYSTROKE as _0x280a59}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x354115}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f5238(){['model'];['view'];constructor(_0x501fed,_0x11d811){super(),this['model']=_0x501fed,this['model']['_isAttached']=!0x0,this['view']=_0x11d811,this['listenTo'](_0x11d811,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x11d811,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x11d811,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x11d811,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x11d811,'addComment',(_0x5af03a,_0x228b31)=>this['addComment'](_0x228b31)),this['listenTo'](_0x11d811,'updateComment',(_0xf28a22,_0x1523d0,_0x3382dc)=>this['updateComment'](_0x1523d0,_0x3382dc)),this['listenTo'](_0x11d811,'removeComment',(_0x3ea1bf,_0x47013c)=>this['removeComment'](_0x47013c));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x3d2a83){this['model']['addComment']({'content':_0x3d2a83,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x1c33d0,_0x5b2bf4){this['model']['getComment'](_0x1c33d0)['update']({'content':_0x5b2bf4});}['removeComment'](_0x2cdd22){this['model']['getComment'](_0x2cdd22)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x4aa764,_0x384644,_0x14c2b0){const t=_0x4aa764['t'];switch(_0x384644){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'Annotations\x20sidebar':return t('Annotations\x20sidebar');case'Annotations\x20list':return t('Annotations\x20list');case'Thread\x20comments':return t('Thread\x20comments');case'THREAD_CONTEXT_LABEL':return t({'string':'Thread\x20context:\x20%0','id':'THREAD_CONTEXT_LABEL'},_0x14c2b0);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x14c2b0);case'COMMENT_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'COMMENT_THREAD_DESCRIPTION'});case'COMMENT_ARIA_LABEL':return t({'string':'Comment\x20by\x20%0.\x20Created\x20on\x20%1.\x20%2.\x20%3','id':'COMMENT_ARIA_LABEL'},_0x14c2b0);case'LEAVE_COMMENT_ANNOUNCEMENT':return t({'string':'Leaving\x20a\x20content\x20with\x20comments.','id':'LEAVE_COMMENT_ANNOUNCEMENT'});case'ENTER_COMMENT_ANNOUNCEMENT':return t({'string':'Entering\x20a\x20content\x20with\x20comments.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_COMMENT_ANNOUNCEMENT'},_0x14c2b0);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x14c2b0);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x14c2b0);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x14c2b0);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x14c2b0);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});case'COMMENTS_ARCHIVE_LIST_LABEL':return t({'string':'List\x20of\x20comments','id':'COMMENTS_ARCHIVE_LIST_LABEL'});case'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP':return t({'string':'Keystrokes\x20for\x20interacting\x20with\x20annotation\x20threads\x20(e.g.\x20comments,\x20track\x20changes\x20suggestions)','id':'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'});case'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO':return t({'string':'Move\x20focus\x20to\x20the\x20thread\x20when\x20the\x20selection\x20is\x20anchored\x20in\x20its\x20marker','id':'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'});case'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT':return t({'string':'Exit\x20the\x20annotation\x20and\x20move\x20focus\x20back\x20to\x20the\x20edited\x20content','id':'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER':return t({'string':'Browse\x20the\x20focused\x20annotation\x20thread\x20or\x20thread\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'});case'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS':return t({'string':'Move\x20across\x20internals\x20of\x20the\x20annotation\x20thread','id':'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'});case'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT':return t({'string':'Submit\x20the\x20reply\x20while\x20writing\x20a\x20comment','id':'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'});case'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS':return t({'string':'Move\x20to\x20the\x20previous\x20or\x20next\x20thread\x20in\x20the\x20annotations\x20sidebar\x20or\x20comments\x20archive','id':'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'});default:return'';}}class Rt extends $t{['main'];['editable'];constructor(_0x14f49c,_0x452ed3){super(_0x14f49c);const _0x509c2e=_0x17ea48();this['main']=this['createCollection'](),this['editable']=new Vt(_0x14f49c,_0x452ed3,void 0x0,{'label':()=>N(_0x14f49c,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x14f49c['uiLanguageDirection'],'lang':_0x14f49c['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x509c2e},'children':[{'tag':'div','attributes':{'class':'ck-editor__main','role':'presentation'},'children':this['main']}]});}['render'](){super['render'](),this['main']['add'](this['editable']);}['focus'](){this['editable']['element']['focus']();}}class Et extends Ut{['view'];constructor(_0x2587db){super(_0x2587db),this['view']=new Rt(_0x2587db['locale'],_0x2587db['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x343200=this['editor']['editing']['view'],_0x27777f=this['view']['editable'],_0x26bf9b=_0x343200['document']['getRoot']();_0x27777f['name']=_0x26bf9b['rootName'],this['view']['render']();const _0x7ad8f=_0x27777f['element'];this['setEditableElement'](_0x27777f['name'],_0x7ad8f),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x343200['attachDomRoot'](_0x7ad8f),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[qt,zt,Bt,Gt,Jt,Kt,Lt];class hs extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1f5238(_0x4f4c34){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Qt)());constructor(_0x54b507={}){function _0x219048(_0x47511d){return _0x47511d['map'](_0xa0a5a0=>String['fromCharCode'](_0xa0a5a0))['join']('');}(_0x54b507=Object['assign']({},_0x54b507))['plugins']||(_0x54b507['plugins']=hs['defaultPlugins']),super(_0x54b507),this['ui']=new Et(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x219048([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x219048([0x76,0x69,0x65,0x77])][_0x219048([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x219048([0x61,0x75,0x74,0x6f]),this[_0x219048([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x219048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x219048([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x219048([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x219048([0x6f,0x6b])});}['create'](){const _0x2576ec=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x2576ec))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x5cb291=>{const _0x395925=this['model']['document']['getRoot'](),_0x142ceb=_0x395925&&_0x395925['getChild'](_0x395925['childCount']-0x1);_0x5cb291['setSelection'](_0x142ceb,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x463f37=this['editing']['view'],_0x586473=_0x463f37['document']['getRoot'](),_0x3ce3a4=_0x586473['getChild'](0x0);_0x586473['childCount']>0x1||!_0x3ce3a4||'p'!=_0x3ce3a4['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(St(_0x463f37,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x3ce3a4['placeholder']=this['placeholder']),Ft({'view':_0x463f37,'element':_0x3ce3a4,'keepOnFocus':!0x0}),this['placeholderElement']=_0x3ce3a4);}}class es extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x4034b5,_0x1ad911={}){super(_0x4034b5),this['editor']=null,this['_editorConfig']=_0x1ad911,this['set']('value',_0x1ad911['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x4034b5,'Reply...')),this['set']('submitLabel',N(_0x4034b5,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x2b2f3d(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-comment__input-actions',this['bindTemplate']['if']('showButtons','ck-comment__input-actions--active')]},'children':[this['submitButtonView'],this['cancelButtonView']]}]}),this['keystrokes']['set']('Esc',(_0x438c17,_0x27d226)=>{this['cancelButtonView']['fire']('execute'),_0x27d226();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4a9e5d,_0x831659)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x831659());}),this['on']('submit',(_0x1eb007,_0x770104)=>{_0x770104['length']>0xfde8?(alert(N(_0x4034b5,'TOO_LONG_COMMENT_ALERT',[_0x770104['length'],0xfde8])),_0x1eb007['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new hs(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x5eec65=this['editor'];this['element']['insertBefore'](_0x5eec65['ui']['element'],this['element']['firstChild']),_0x5eec65['model']['document']['on']('change',()=>this['value']=_0x5eec65['getData']()),_0x5eec65['bind']('placeholder')['to'](this),this['focusables']['add'](_0x5eec65['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x283021){-0x1===_0x283021?(this['focusCycler']['focusFirst'](),this['focusCycler']['focusLast']()):this['focusCycler']['focusFirst']();}async['destroy'](){this['_isDestroyed']||(this['_isDestroyed']=!0x0,this['editor']&&(await this['_editorCreationPromise'],await this['editor']['destroy'](),this['fire']('editorDestroyed',this['editor'])),await super['destroy']());}['_createSubmitButton'](){const {locale:_0x4e2acf}=this,_0x377a2e=new _0x28cfbe(_0x4e2acf);return _0x377a2e['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x377a2e['withText']=!0x0,_0x377a2e['bind']('label')['to'](this,'submitLabel'),_0x377a2e['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x377a2e['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x5a78ee,_0x4945ab)=>!_0x4945ab&&!!_0x5a78ee['trim']()),_0x377a2e;}['_createCancelButton'](){const {locale:_0x2b0b43}=this,_0x1721c4=new _0x28cfbe(_0x2b0b43);return _0x1721c4['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x1721c4['label']=N(_0x2b0b43,'Cancel'),_0x1721c4['withText']=!0x0,_0x1721c4['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x1721c4;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x4782ee=>{this['focusTracker']['add'](_0x4782ee['element']);}),this['focusables']['on']('change',(_0x472404,_0x3ea552)=>{for(const _0xb9f290 of Array['from'](_0x3ea552['added'])['reverse']())this['focusTracker']['add'](_0xb9f290['element']);});}}class ie extends kt{constructor(_0xca6113,_0xa6f30a,_0x33bfcd){super(_0xca6113),this['commentInputView']=new es(_0xca6113,_0x33bfcd),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x36226c,_0x18e7ba)=>_0x36226c||!!_0x18e7ba),this['set']('showInput',!0x1),this['on']('change:showInput',()=>{this['showInput']&&!this['commentInputView']['editor']&&this['commentInputView']['createEditor']();}),this['commentInputView']['delegate']('editorReady')['to'](this),this['commentInputView']['delegate']('editorDestroyed')['to'](this),this['userView']=new _0x1d2bdd(_0xca6113,_0xa6f30a),this['userView']['extendTemplate']({'attributes':{'class':'ck-thread__user','aria-hidden':!0x0}}),this['commentInputView']['extendTemplate']({'attributes':{'class':'ck-thread__input'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-comment__input-container',this['bindTemplate']['if']('showInput','ck-comment__input-container--active')]},'children':[this['userView'],this['commentInputView']]});}['render'](){super['render'](),this['_focusOnNonInteractiveMouseDown']();}['destroy'](){return this['commentInputView']['destroy']()['then'](()=>super['destroy']());}['focus'](_0x1679c7){this['commentInputView']['focus'](_0x1679c7);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x44f00a,_0x4e15e9)=>{const {submitButtonView:_0x216865,cancelButtonView:_0x3ca0df,editor:_0x392617}=this['commentInputView'];[_0x216865['element'],_0x3ca0df['element'],_0x392617?_0x392617['editing']['view']['getDomRoot']():null]['filter'](_0x24cc53=>_0x24cc53)['some'](_0x5913db=>_0x5913db['contains'](_0x4e15e9['target']))||(this['focus'](),_0x4e15e9['preventDefault']());});}}class rs extends kt{constructor(_0x14faf5){super(_0x14faf5);const _0x449141=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x449141['to']('count',_0x4723e7=>N(_0x14faf5,'NUMBER_OF_COMMENTS',_0x4723e7))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x3c8394,_0xbd4faa,_0x87a23){super(_0x3c8394);const _0x630c2a=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0xbd4faa['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0xbd4faa,this['_config']=_0x87a23,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x907763=>this['commentViews']['map'](_0x3cc7f7=>_0x3cc7f7['element'])['includes'](_0x907763['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x3c8394),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x3b8ebe=>_0x3b8ebe-this['_config']['maxCommentsWhenCollapsed']);for(const _0x46e9e1 of _0xbd4faa['comments'])this['_handleNewCommentModel'](_0x46e9e1);this['_handleInfoComment'](),this['listenTo'](_0xbd4faa['comments'],'add',(_0x319a0c,_0x5f1fe7)=>{const _0x21a2fb=this['_calculatePosition'](_0x5f1fe7);this['length']++,this['_handleNewCommentModel'](_0x5f1fe7,_0x21a2fb),this['refreshVisibleViews']();}),this['listenTo'](_0xbd4faa['comments'],'remove',(_0x47e45f,_0xdbc27b)=>{this['length']--,this['_handleRemoveCommentModel'](_0xdbc27b),this['refreshVisibleViews']();}),this['listenTo'](_0xbd4faa,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0xbd4faa,'change:isResolved',()=>this['_handleInfoComment']()),this['on']('change:isActive',()=>this['refreshVisibleViews']()),this['on']('change:hasDirtyComment',()=>this['refreshVisibleViews']()),this['setTemplate']({'tag':'ul','attributes':{'class':['ck-thread__comments',_0x630c2a['if']('length','ck-hidden',_0x1150fa=>!_0x1150fa)],'aria-label':N(_0x3c8394,'Thread\x20comments')},'children':this['visibleViews']});}get['_shouldCollapse'](){return this['_model']['weight']>this['_config']['maxThreadTotalWeight']&&!this['isActive']&&!this['hasDirtyComment'];}['render'](){super['render'](),this['refreshVisibleViews'](),this['_setupKeyboardNavigation']();}['focus'](_0x2d7e0c){-0x1===_0x2d7e0c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x310c77 of this['commentViews'])_0x310c77['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x316db1,_0x35df59){const _0x514bb6=new this['_config']['CommentView'](this['locale'],_0x316db1,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x514bb6['viewUid']=_0x316db1['id'],_0x514bb6['delegate']('removeComment')['to'](this),_0x514bb6['delegate']('updateComment')['to'](this),_0x514bb6['delegate']('resolveCommentThread')['to'](this),_0x514bb6['delegate']('editorReady')['to'](this),_0x514bb6['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x514bb6,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x514bb6,_0x35df59);}['_calculatePosition'](_0x11ecc6){const _0x204627=this['_model']['_findOptimalIndex'](_0x11ecc6);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x11ecc6['authoredAt']?_0x204627-0x1:_0x204627:_0x204627-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x2d31e6={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':N(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x2d31e6,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x2d31e6));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x4fd8dc){const _0x31dec9=this['commentViews']['remove'](_0x4fd8dc['id']);this['stopListening'](_0x31dec9),_0x31dec9['isEditMode']&&this['_updateHasDirtyComment'](),_0x31dec9['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x2980f0=>_0x2980f0['isEditMode']);}['_rearrangeCollapse'](){const _0x29edfe=function(_0x3a4046){const _0x35672c=new _0xa3f224();for(const _0x86273a of _0x3a4046)_0x35672c['add'](_0x86273a);return _0x35672c;}(this['commentViews']),_0x571c49=this['_collapsedCommentsView']['count'];for(let _0x3e36dc=0x1;_0x3e36dc<=_0x571c49;_0x3e36dc++)_0x29edfe['remove'](0x1);for(const _0x2a4f2b of _0x29edfe)_0x2a4f2b['collapse']();_0x571c49>0x0&&_0x29edfe['add'](this['_collapsedCommentsView'],0x1),ns(_0x3fc1ba(Array['from'](this['visibleViews']),Array['from'](_0x29edfe)),this['visibleViews'],_0x29edfe);}['_rearrangeExpand'](){ns(_0x3fc1ba(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x513fbd of this['visibleViews'])_0x513fbd['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4ad88b=>{this['focusTracker']['add'](_0x4ad88b['element']),this['keystrokes']['listenTo'](_0x4ad88b['element']);}),this['commentViews']['on']('change',(_0x3fa431,_0x5d36a2)=>{for(const _0x153bce of _0x5d36a2['removed'])this['focusTracker']['remove'](_0x153bce['element']),this['keystrokes']['stopListening'](_0x153bce['element']);for(const _0x289f61 of Array['from'](_0x5d36a2['added'])['reverse']())this['focusTracker']['add'](_0x289f61['element']),this['keystrokes']['listenTo'](_0x289f61['element']);});}}function ns(_0x4cd143,_0x2e8b5c,_0xd4cce4){let _0x310b7a=0x0;for(const _0x2ac191 of _0x4cd143)switch(_0x2ac191){case'insert':_0x2e8b5c['add'](_0xd4cce4['get'](_0x310b7a),_0x310b7a),_0x310b7a++;break;case'delete':_0x2e8b5c['remove'](_0x310b7a);break;case'equal':_0x310b7a++;}}class oe extends kt{constructor(_0x36ff7e){super(_0x36ff7e);const _0x3cc328=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3cc328['to']('contextValue',_0x298df1=>N(_0x36ff7e,'THREAD_CONTEXT_LABEL',_0x298df1)),'tabindex':-0x1},'children':[{'text':_0x3cc328['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Xt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x503a15,_0x42edbe){super(_0x503a15);const _0x19796f=this['bindTemplate'];this['_model']=_0x42edbe,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x4ff14e=>!!_0x4ff14e),this['bind']('contextValue')['to'](this['_model'],'context',_0x4e4811=>_0x4e4811&&_0x4e4811['value']?this['_trimContextValue'](_0x4e4811['value']):N(this['locale'],'Comment\x20was\x20made\x20on\x20an\x20element')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__header']},'children':[{'tag':'div','attributes':{'class':['ck-context-wrapper']},'children':[{'tag':'div','attributes':{'class':['ck-context',_0x19796f['if']('hasContext','ck-context--quotes')]},'children':[this['contextView']]}]},{'tag':'div','attributes':{'class':['ck-annotation__actions']},'children':[this['reopenButtonView']]}]});}['render'](){super['render'](),this['_attachContextActions'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_createReopenButton'](){const _0x51908e=new _0x28cfbe(this['locale']);return _0x51908e['label']=N(this['locale'],'Reopen'),_0x51908e['tooltip']=N(this['locale'],'Reopen'),_0x51908e['icon']=_0x16c8c0,_0x51908e['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x597cc2=>!_0x597cc2),_0x51908e['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x18c3cf,_0x3157b2)=>_0x18c3cf&&_0x3157b2),_0x51908e['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x51908e;}['_trimContextValue'](_0x2a2af0){if(_0x2a2af0['length']<0x96)return _0x2a2af0;const _0x3d5581=_0x2a2af0['lastIndexOf']('\x20',0x93);return _0x2a2af0['substring'](0x0,_0x3d5581>-0x1?_0x3d5581:0x93)+'...';}['_attachContextActions'](){const _0x1d471b=this['element']['querySelector']('.ck-context'),_0x2d1917=_0x1d471b['querySelector']('.ck-context__value');this['listenTo'](_0x1d471b,'mouseenter',()=>{_0x2d1917['offsetWidth']<_0x2d1917['scrollWidth']&&_0x1d471b['classList']['add']('overlay');}),this['listenTo'](_0x1d471b,'mouseleave',()=>{_0x1d471b['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x316ae1 of this['focusables'])this['focusTracker']['add'](_0x316ae1['element']),this['keystrokes']['listenTo'](_0x316ae1['element']);}['_createContextView'](){const _0x1947a5=new oe(this['locale']);return _0x1947a5['bind']('contextValue')['to'](this),_0x1947a5;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x18bd09,_0x15b33f,_0xdece42,_0x2f8ba0){super(_0x18bd09),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x15b33f,this['_localUser']=_0xdece42,this['_config']=_0x2f8ba0,this['commentThreadHeaderView']=new Xt(_0x18bd09,_0x15b33f),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Yt(_0x18bd09,N(_0x18bd09,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x18bd09,_0x15b33f,Object['assign']({'CommentView':this['_config']['CommentView']},_0x2f8ba0)),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['delegate']('resolveCommentThread')['to'](this),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['listenTo'](this,'resolveCommentThread',()=>{this['focus']();}),this['set']('length',this['commentsListView']['length']),this['bind']('length')['to'](this['commentsListView'],'length'),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3dc475,_0x560c3b)=>_0x3dc475||!!_0x560c3b),this['bind']('isUnlinked')['to'](_0x15b33f,'unlinkedAt',_0x2466ea=>!!_0x2466ea),this['bind']('ariaLabel')['to'](this,'length',_0x2e4e90=>{const _0x4a5ac2=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x2e4e90,_0x4a5ac2]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2cb4bb=>_0x2cb4bb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),Zt(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x4f3086=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x592c9c=_0x4f3086['commentInputView'];return _0x4f3086['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x592c9c,'value',(_0x3b2d1e,_0x251198,_0x45663e,_0x127e18,_0x30625f)=>!!_0x30625f||!!_0x127e18&&_0x45663e&&!_0x251198||_0x3b2d1e&&_0x45663e&&!_0x251198),_0x592c9c['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0xaf84ce,_0x1ce8f3,_0x387c6f)=>{let _0x1ef95e;return _0x1ef95e=_0x387c6f&&_0x1ce8f3?'Reply\x20to\x20reopen\x20discussion...':_0xaf84ce?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x1ef95e);}),_0x592c9c['bind']('submitLabel')['to'](this,'length',_0x22209a=>N(this['locale'],_0x22209a?'Reply':'Comment')),_0x592c9c['on']('submit',(_0x111625,_0x21affd)=>{this['fire']('addComment',_0x21affd),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x592c9c['on']('cancel',()=>{this['focus']();}),_0x592c9c['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x592c9c['on']('cancel',_0x436ac0=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x436ac0['stop']());}),this['on']('change:isActive',(_0x33c7f5,_0xe66c25,_0x422d77)=>{_0x422d77||this['length']||_0x592c9c['value']||this['fire']('removeCommentThread');}),_0x4f3086;}}class gt extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x3a70d2,_0x47804b,_0xf3744,_0x5c3d95){super(_0x3a70d2,_0x47804b,_0xf3744,_0x5c3d95),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x3a70d2,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x4e661b,_0x5acfc4,_0x38d1d3)=>{_0x38d1d3||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4cd663,_0x58f206,_0x1ca481)=>{_0x1ca481&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x587d97=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x587d97['if']('isActive','ck-thread--active'),_0x587d97['if']('isUnlinked','ck-thread--unlinked'),_0x587d97['to']('actionIndicator',_0x403984=>_0x403984?'ck-thread--'+_0x403984:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x587d97['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':'ck-thread__container'},'children':this['commentThreadChildren']}]};}['render'](){super['render'](),this['containerElement']=this['element']['querySelector']('.ck-thread__container'),this['_model']['on']('change:archivedAt',()=>{this['_updateArchivedThreadHeader']();}),this['_updateArchivedThreadHeader']();}['_cancelAllConfirms'](){this['cancelConfirm']();for(const _0x133f6e of this['commentsListView']['commentViews'])_0x133f6e['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x2e702d}=this,_0x31006b=this['commentsListView']['commentViews']['get'](0x0);_0x31006b===this['_boundFirstCommentView']||_0x31006b['isSystemComment']||(this['_boundFirstCommentView']=_0x31006b,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x31006b,'actionIndicator',_0x4d5097=>'remove'===_0x4d5097?'remove':null),_0x31006b['placeholder']=N(_0x2e702d,'Write\x20a\x20comment...'),_0x31006b['removeButton']['on']('execute',_0x2b91fa=>{_0x2b91fa['stop'](),this['showConfirm'](N(_0x2e702d,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x31006b['focus']();}),_0x31006b['actionBar']['add'](this['resolveButton'],0x0),_0x31006b['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x2986e0=new _0x377dce(this['locale']);return _0x2986e0['label']=N(this['locale'],'Resolve'),_0x2986e0['tooltip']=N(this['locale'],'Resolve'),_0x2986e0['icon']=_0x479cba,_0x2986e0['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x2986e0['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xdb9ec7=>!_0xdb9ec7),_0x2986e0['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x2f0d73,_0x2be2d7)=>_0x2f0d73&&!_0x2be2d7),_0x2986e0['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x2986e0;}['_updateArchivedThreadHeader'](){this['_model']['archivedAt']?this['commentThreadChildren']['has'](this['commentThreadHeaderView'])||(this['commentThreadChildren']['add'](this['commentThreadHeaderView'],0x0),this['focusables']['add'](this['commentThreadHeaderView'],0x0)):this['commentThreadChildren']['has'](this['commentThreadHeaderView'])&&(this['commentThreadChildren']['remove'](this['commentThreadHeaderView']),this['focusables']['remove'](this['commentThreadHeaderView']));}}class is extends kt{constructor(_0x5b001f){super(_0x5b001f),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x2d71ff,_0x3a5bad,_0x4a6154)=>{this['element']['innerHTML']=_0x4a6154;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a0934,_0x5255e5,_0x2067c0){super(_0x2a0934),this['_model']=_0x5255e5,this['_config']=_0x2067c0,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x5255e5,'content',_0x5255e5,'authoredAt',(_0x40a8f9,_0x4e06c6)=>N(_0x2a0934,'COMMENT_ARIA_LABEL',[_0x5255e5['author']['name'],_0x2067c0['formatDateTime'](_0x4e06c6),new DOMParser()['parseFromString'](_0x40a8f9,'text/html')['body']['textContent'],_0x5255e5['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Yt(_0x2a0934,N(_0x2a0934,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x10f58f(),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x21a539=>_0x21a539['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['expand'](){this['isCollapsed']=!0x1;}['collapse'](){this['isEditMode']||(this['isCollapsed']=!0x0);}['focus'](){this['element']['focus']();}['render'](){super['render'](),this['_setupKeyboardNavigation']();}async['destroy'](){await this['visibleView']['get'](0x0)['destroy'](),super['destroy']();}['switchToEditMode'](){this['isEditMode']||(this['isEditMode']=!0x0,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentInputView']()));}['switchToDisplayMode'](){this['isEditMode']&&(this['isEditMode']=!0x1,this['visibleView']['remove'](0x0)['destroy'](),this['visibleView']['add'](this['_createCommentContentView']()));}['getExternalCommentNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):N(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?N(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):N(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x5b91a1=new is(this['locale']);return _0x5b91a1['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x4b65a0,_0x4a9216)=>_0x4a9216?ts(_0x4b65a0,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x4b65a0),_0x5b91a1;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0xbc45f5=new es(this['locale'],this['_config']['editorConfig']);return _0xbc45f5['value']=this['_model']['content'],_0xbc45f5['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0xbc45f5['submitLabel']=N(this['locale'],'Save'),_0xbc45f5['on']('submit',(_0xbac10e,_0x52f248)=>{this['fire']('updateComment',this['_model']['id'],_0x52f248),this['switchToDisplayMode'](),this['focus']();}),_0xbc45f5['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0xbc45f5['once']('editorReady',()=>{_0xbc45f5['focus']();}),_0xbc45f5['createEditor'](),_0xbc45f5['delegate']('editorReady')['to'](this),_0xbc45f5['delegate']('editorDestroyed')['to'](this),_0xbc45f5;}['_setupKeyboardNavigation'](){const _0xdfea49=this['element'];this['keystrokes']['listenTo'](_0xdfea49);for(const _0x2e7d28 of this['focusables'])this['focusTracker']['add'](_0x2e7d28['element']),this['keystrokes']['listenTo'](_0x2e7d28['element']);this['focusables']['on']('change',(_0x3171ab,_0x3b92ac)=>{for(const _0x30fedf of _0x3b92ac['removed'])this['focusTracker']['remove'](_0x30fedf['element']),this['keystrokes']['stopListening'](_0x30fedf['element']);for(const _0xc28f90 of _0x3b92ac['added'])this['focusTracker']['add'](_0xc28f90['element']),this['keystrokes']['listenTo'](_0xc28f90['element']);}),this['keystrokes']['set']('enter',(_0x9bf314,_0x4b256f)=>{_0xdfea49===_0x9bf314['target']&&(this['focusCycler']['focusFirst'](),_0x4b256f());}),this['keystrokes']['set']('esc',(_0x4e5d1f,_0x179571)=>{_0xdfea49!==_0x4e5d1f['target']&&(this['focus'](),_0x179571());});}}class Tt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(di){['actionBar'];['userView'];constructor(_0x40c2a3,_0x2906b0,_0x1fd4f1){super(_0x40c2a3,_0x2906b0,_0x1fd4f1),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x40c2a3,'Reply...')),this['bind']('authoredAt')['to'](_0x2906b0),this['bind']('resolvedAt')['to'](_0x2906b0),this['actionBar']=this['createCollection'](),this['isSystemComment']||(this['editButton']=this['_createEditButton'](),this['removeButton']=this['_createRemoveButton'](),this['items']=this['createCollection'](),this['items']['addMany']([this['editButton'],this['removeButton']]),this['dropdown']=this['_createDropdown'](),this['actionBar']['add'](this['dropdown']),this['focusables']['add'](this['dropdown'])),this['userView']=new _0x1d2bdd(_0x40c2a3,_0x2906b0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x2906b0,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2a055a=this['bindTemplate'],_0x2beb69=[{'tag':'div','attributes':{'class':['ck-comment__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2a055a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a055a['to']('authoredAt',_0x1ec6ac=>this['_config']['formatDateTime'](_0x1ec6ac))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x2a055a['if']('isEditMode','ck-comment__actions--hidden'),_0x2a055a['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this['actionBar']},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']},'children':this['visibleView']},this['ariaDescriptionView']];return this['_model']['isExternal']&&_0x2beb69['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x2a055a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x2a055a['if']('isEditMode','ck-comment--edit'),_0x2a055a['if']('isSystemComment','ck-comment--info'),_0x2a055a['to']('actionIndicator',_0x5de84f=>_0x5de84f?'ck-comment--'+_0x5de84f:'')],'data-author-id':this['_model']['author']['id'],'data-comment-id':this['_model']['id'],'role':'group'},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-comment__main','ck-annotation__main']},'children':_0x2beb69}]}]};}['_createEditButton'](){const _0x5d6c91=new _0x28cfbe(this['locale']);return _0x5d6c91['label']=N(this['locale'],'Edit'),_0x5d6c91['icon']=_0x42d721,_0x5d6c91['withText']=!0x0,_0x5d6c91['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x5d6c91['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x475e73=>!_0x475e73),_0x5d6c91['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x5d6c91['on']('execute',()=>this['switchToEditMode']()),_0x5d6c91;}['_createRemoveButton'](){const _0x30bcf4=new _0x28cfbe(this['locale']);return _0x30bcf4['label']=N(this['locale'],'Remove'),_0x30bcf4['icon']=_0x2b206f,_0x30bcf4['withText']=!0x0,_0x30bcf4['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x30bcf4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0xf272fb=>!_0xf272fb),_0x30bcf4['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x30bcf4['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x30bcf4;}['_createDropdown'](){const _0x5f500e=_0x1963c6(this['locale'],_0x124d29),_0x20dcb3=_0x5f500e['panelView']['children'],_0x34ad9b=new _0x2c610f(this['locale']),_0x3fdf3e=_0x5f500e['bindTemplate'];_0x4fd54f(_0x5f500e,()=>this['items']['find'](_0x61b176=>_0x61b176['isVisible'])),_0x5f500e['extendTemplate']({'attributes':{'class':[_0x3fdf3e['if']('isVisible','ck-hidden',_0x4ffbaa=>!_0x4ffbaa)]}});const _0x22bd2c=(_0x58afd6,_0x184e0e=-0x1)=>{const _0x35f24a=new _0x1fbd4b(this['locale']);_0x35f24a['children']['add'](_0x58afd6);const _0x1d196c=_0x184e0e>-0x1?_0x184e0e:_0x34ad9b['items']['length'];_0x34ad9b['items']['add'](_0x35f24a,_0x1d196c);const _0x8e2c2e=Array['from'](this['items']);_0x5f500e['unbind']('isEnabled','isVisible'),_0x5f500e['bind']('isEnabled')['toMany'](_0x8e2c2e,'isEnabled',(..._0x1debec)=>_0x1debec['some'](_0x1ebceb=>_0x1ebceb)),_0x5f500e['bind']('isVisible')['toMany'](_0x8e2c2e,'isVisible',(..._0x2c22c1)=>_0x2c22c1['some'](_0x20bae1=>_0x20bae1));};_0x5f500e['panelPosition']='sw',_0x5f500e['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x2665c2});for(const _0x16ea35 of this['items'])_0x22bd2c(_0x16ea35);return _0x20dcb3['add'](_0x34ad9b),_0x5f500e['listenTo'](this['items'],'add',(_0x35907b,_0x51fe64,_0x4e0dd9)=>{_0x22bd2c(_0x51fe64,_0x4e0dd9);}),_0x5f500e['listenTo'](this['items'],'remove',(_0xb14cc7,_0x1f4ca6,_0x4d4571)=>{_0x34ad9b['items']['remove'](_0x4d4571);}),_0x5f500e;}['_attachActions'](_0x3072d5,_0x270bb5){const _0x404f02=_0x3072d5&&_0x3072d5['element'];_0x404f02&&(this['listenTo'](_0x404f02,'mouseenter',()=>this['actionIndicator']=_0x270bb5),this['listenTo'](_0x404f02,'focus',()=>this['actionIndicator']=_0x270bb5),this['listenTo'](_0x404f02,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x404f02,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x3211b2=super['_createCommentInputView']();return _0x3211b2['bind']('placeholder')['to'](this),_0x3211b2;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x388c29){const _0xf11d5d=Dt(_0x388c29,0x1e),_0x1a3182=new MutationObserver(_0x3262a8=>{for(const _0x58eae7 of _0x3262a8)('attributes'==_0x58eae7['type']&&'class'==_0x58eae7['attributeName']||'childList'==_0x58eae7['type']||'characterData'==_0x58eae7['type'])&&_0xf11d5d();});return{'attach'(_0x5a767c){_0x1a3182['observe'](_0x5a767c,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x1a3182['disconnect'](),_0xf11d5d['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x205c04,_0x4a1a87){super(_0x205c04),this['id']=_0x17ea48(),this['focusTracker']=new _0x2b2f3d(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x282e6c,_0x5ea689)=>this['fire']('Esc',_0x5ea689)),this['set']('targetRect',{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set']('height',0x0),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['set']('length',0x0),this['set']('type',''),this['_mutationObserver']=xt(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x4a1a87),this['mainView']=_0x4a1a87;const _0x582b0a=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x582b0a['if']('isActive','ck-annotation-wrapper--active')],'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['focusTracker']['add'](this['element']),this['keystrokes']['listenTo'](this['element']),this['_mutationObserver']['attach'](this['element']);}['destroy'](){this['content']['clear'](),this['keystrokes']['destroy'](),this['focusTracker']['destroy'](),this['_mutationObserver']['detach'](),super['destroy']();}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['_updateHeight'](){const _0x4a3ea4=this['element']['clientHeight'];_0x4a3ea4&&(this['height']=_0x4a3ea4);}}class T extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x1f5238(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x495436,target:_0x3f86,type:_0xbdf0eb,isVisible:_0x2986ca=!0x0}){super(),this['view']=_0x495436,this['view']['element']||this['view']['render'](),this['_type']=_0xbdf0eb,this['_target']=_0x3f86,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0xa3f224([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x52863b,_0xed42fe)=>{this['view']['focusTracker']['add'](_0xed42fe);}),this['focusableElements']['on']('remove',(_0x173ad5,_0x299d9b)=>{this['view']['focusTracker']['remove'](_0x299d9b);}),this['set']('isVisible',_0x2986ca);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x445a7a=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x445a7a),_0x445a7a;}get['targetRect'](){const _0xd4bbd8=this['target'];if(null===_0xd4bbd8)return null;if(_0xd4bbd8 instanceof _0x46af57)return _0xd4bbd8;const _0x33f342=_0xd4bbd8['filter'](_0x88254=>function(_0x119e06){const _0x4bfc76=_0x119e06['offsetParent'];if(_0x4bfc76)return!0x0;const _0x3c9b57=_0x119e06['getClientRects']()['item'](0x0);return!!_0x3c9b57;}(_0x88254));return 0x0===_0x33f342['length']?null:new _0x46af57(_0x33f342[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x503ad8){this['view']['isActive']=_0x503ad8,this['view']['mainView']['isActive']=_0x503ad8;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x2e990c){if(!(null===_0x2e990c||_0x2e990c instanceof _0x46af57||Array['isArray'](_0x2e990c)&&_0x2e990c['every'](_0x3a39fa=>fi(_0x3a39fa))))throw new _0x3c6477('annotation-invalid-target',null,{'target':_0x2e990c});}['_getNormalizedTarget'](){const _0x521939='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x521939)?[_0x521939]:_0x521939;}}function fi(_0x2ece13){return null!==_0x2ece13&&'object'==typeof _0x2ece13&&'nodeType'in _0x2ece13&&0x1===_0x2ece13['nodeType'];}class S extends _0xa3f224{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x361c7c=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x2b2f3d(),this['_focusTracker']['on']('change:isFocused',(_0x2fbcd4,_0x12d933,_0x1cbbe6)=>{_0x1cbbe6||this['fire']('blur');});for(const _0x42dd96 of _0x361c7c)this['add'](_0x42dd96);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x60cf87){if(this['has'](_0x60cf87))throw new _0x3c6477('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x60cf87['innerView'],_0x60cf87),this['_viewToAnnotation']['set'](_0x60cf87['view'],_0x60cf87);for(const _0x52f9f2 of _0x60cf87['focusableElements'])this['_focusTracker']['add'](_0x52f9f2);this['listenTo'](_0x60cf87['focusableElements'],'add',(_0x568d11,_0x323324)=>{this['_focusTracker']['add'](_0x323324);}),this['listenTo'](_0x60cf87['focusableElements'],'remove',(_0x205ffc,_0x46de0c)=>{this['_focusTracker']['remove'](_0x46de0c);}),this['listenTo'](_0x60cf87['view']['focusTracker'],'change:isFocused',(_0x2f67b,_0x55c773,_0x23c94b)=>{_0x23c94b&&this['fire']('focus',_0x60cf87);}),_0x60cf87['updateTargetRect']();const _0x2d19cf=this['_getOrderInContent'](_0x60cf87['view']['targetRect']);return super['add'](_0x60cf87,_0x2d19cf);}['remove'](_0x516f47){if(!this['has'](_0x516f47))throw new _0x3c6477('annotationcollection-not-existing-item',null);this['stopListening'](_0x516f47['view']['focusTracker']),this['stopListening'](_0x516f47['focusableElements']);for(const _0x483355 of _0x516f47['focusableElements'])this['_focusTracker']['remove'](_0x483355);return this['_viewToAnnotation']['delete'](_0x516f47['view']),this['_innerViewToAnnotation']['delete'](_0x516f47['innerView']),super['remove'](_0x516f47);}['getByInnerView'](_0x452275){return this['_innerViewToAnnotation']['get'](_0x452275);}['getByView'](_0x5ea5fa){return this['_viewToAnnotation']['get'](_0x5ea5fa);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x1a1f41 of this)_0x1a1f41['updateTargetRect']();this['_sort']();}['_sort'](){const _0x3cfc47=Array['from'](this)['sort']((_0x2750b5,_0x52d6fa)=>w(_0x2750b5['view']['targetRect'],_0x52d6fa['view']['targetRect']));for(let _0x14aeb0=_0x3cfc47['length']-0x1;_0x14aeb0>0x0;_0x14aeb0--){const _0x247057=_0x3cfc47[_0x14aeb0];_0x14aeb0!==this['getIndex'](_0x247057)&&(this['remove'](_0x247057),this['add'](_0x247057));}}['_getOrderInContent'](_0x449236){let _0x4b8cb0=0x0;if(!_0x449236)return this['length'];for(const _0x4f953c of this){const _0x1d877=_0x4f953c['view']['targetRect'];if(_0x1d877){if(w(_0x449236,_0x1d877)<0x0)return _0x4b8cb0;_0x4b8cb0++;}}return _0x4b8cb0;}}function v({source:_0x57840f,target:_0x31df8e,filter:_0x16f883}){for(const _0x31abdd of _0x57840f)_0x16f883(_0x31abdd)&&_0x31df8e['add'](_0x31abdd);_0x31df8e['listenTo'](_0x57840f,'add',(_0x2ed925,_0xaaf5ce)=>{_0x16f883(_0xaaf5ce)&&_0x31df8e['add'](_0xaaf5ce);}),_0x31df8e['listenTo'](_0x57840f,'remove',(_0x32dc42,_0x277523)=>{_0x31df8e['has'](_0x277523)&&_0x31df8e['remove'](_0x277523);});}function w(_0x39dd61,_0x191029){if(null===_0x39dd61&&null===_0x191029)return 0x0;if(null===_0x39dd61)return-0x1;if(null===_0x191029)return 0x1;const _0x1287ae=_0x39dd61['top']-_0x191029['top'];return 0x0==_0x1287ae?_0x39dd61['left']-_0x191029['left']:_0x1287ae;}class y extends _0x545c79{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2514f2){if(super(_0x2514f2),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2514f2 instanceof _0x4f4c34){const _0x291b30=_0x2514f2['locale'];_0x2514f2['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x291b30,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x3bc582){this['collection']['add'](_0x3bc582);}['remove'](_0x5c1cab){this['collection']['remove'](_0x5c1cab),_0x5c1cab['destroy']();}['refreshVisibility'](){for(const _0x2c978b of this['collection'])_0x2c978b['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x4fbf2b){return this['collection']['getByInnerView'](_0x4fbf2b);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3aac13 of this['collection'])_0x3aac13['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x16e286){this['fire']('_activateAnnotation',_0x16e286);}['createAnnotation'](_0x45837b){return new T(_0x45837b);}['createAnnotationView'](_0x9e8734,_0x37aed6){return new E(_0x9e8734,_0x37aed6);}['_addActiveAnnotation'](_0x20a12b){const _0x1f13ba=new Set(this['activeAnnotations']);_0x1f13ba['add'](_0x20a12b),this['activeAnnotations']=_0x1f13ba;}['_removeActiveAnnotation'](_0x403f4f){const _0x38d2fb=new Set(this['activeAnnotations']);_0x38d2fb['delete'](_0x403f4f),this['activeAnnotations']=_0x38d2fb;}['_bindAnnotationsToVisibleAnnotations'](){const _0x13f540=this['collection'],_0x2a4a91=this['_visibleAnnotations'];function _0x48e2b4(_0x591619){const _0x1ec4d1=_0x591619['source'];_0x1ec4d1['isVisible']&&!_0x2a4a91['has'](_0x1ec4d1)?_0x2a4a91['add'](_0x1ec4d1):!_0x1ec4d1['isVisible']&&_0x2a4a91['has'](_0x1ec4d1)&&_0x2a4a91['remove'](_0x1ec4d1),_0x1ec4d1['view']['focusTracker']['remove'](_0x1ec4d1['view']['element']),_0x1ec4d1['view']['focusTracker']['add'](_0x1ec4d1['view']['element']);}this['listenTo'](_0x13f540,'add',(_0x1cf53a,_0x280d72)=>{_0x280d72['isVisible']&&_0x2a4a91['add'](_0x280d72),this['listenTo'](_0x280d72,'change:isVisible',_0x48e2b4);}),this['listenTo'](_0x13f540,'remove',(_0x18d6d5,_0x460258)=>{_0x2a4a91['has'](_0x460258)&&_0x2a4a91['remove'](_0x460258),this['stopListening'](_0x460258,'change:isVisible',_0x48e2b4);});}['_setupEnterAnnotationKeystroke'](){const _0x518787=_0x1b8131=>{_0x1b8131['on']('ready',()=>{_0x1b8131['keystrokes']['set'](_0x280a59,(_0x3e35dd,_0x1f76b1)=>{const _0x1015c5=_0x1de0ec(this['activeAnnotations']['values']());_0x1015c5&&(_0x1015c5['view']['focus'](),_0x1f76b1());});});};this['context']instanceof _0x4f4c34?_0x518787(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x399b27,_0x398250)=>{_0x518787(_0x398250);});}['_setupEscapeAnnotationHandling'](){const _0x31e212=_0x5e313f=>{const _0x8aab13=_0x5e313f['source'],_0x34fc7b=[];let _0x145523;if(Array['isArray'](_0x8aab13['target'])){_0x145523=_0x8aab13['target'][0x0],this['context']instanceof _0x4f4c34?_0x34fc7b['push'](this['context']):this['context']['editors']&&_0x34fc7b['push'](...this['context']['editors']);for(const _0x304f6a of _0x34fc7b)for(const _0x17f649 of _0x304f6a['editing']['view']['domRoots']['values']())if(_0x17f649['contains'](_0x145523))return void _0x304f6a['editing']['view']['focus']();_0x145523['focus']();}};this['listenTo'](this['collection'],'add',(_0x326b1c,_0x414332)=>{this['listenTo'](_0x414332,'escape',_0x31e212,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x5f3bae,_0xf08573)=>{this['stopListening'](_0xf08573,'escape',_0x31e212);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x545c79{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[y,lt,it];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c170){super(_0x5c170),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x2f554f=this['context']['config'];_0x2f554f['define']('comments.maxCommentsWhenCollapsed',0x2),_0x2f554f['define']('comments.maxThreadTotalWeight',0x1f4),_0x2f554f['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x2f554f['define']('comments.CommentThreadView',gt),_0x2f554f['define']('comments.CommentView',Tt),_0x2f554f['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x3d69f0=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x216fcf,_0x4c0b57)=>this['_addCommentThread'](_0x4c0b57)),this['on']('submitCommentThread',(_0x338126,_0x525777)=>this['_submitCommentThread'](_0x525777)),this['on']('resolveCommentThread',(_0x31813f,_0x34adbc)=>this['_resolveCommentThread'](_0x34adbc)),this['on']('resolveCommentThread',(_0x5a1446,_0x256fa1)=>this['_updateActiveAnnotation'](_0x256fa1),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x274389,_0x5efc60)=>this['_reopenCommentThread'](_0x5efc60)),this['on']('reopenCommentThread',(_0x545a38,_0x2475b0)=>this['_updateActiveAnnotation'](_0x2475b0),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x34bace,_0x1f1600)=>this['_removeCommentThread'](_0x1f1600)),this['on']('updateCommentThread',(_0x476906,_0x592141)=>this['_updateCommentThread'](_0x592141)),this['on']('updateCommentThread',(_0x2f36b0,_0x4e6a9d)=>this['_updateActiveAnnotation'](_0x4e6a9d),{'priority':'lowest'}),this['on']('addComment',(_0x5e9cd4,_0x337d9d)=>this['_addComment'](_0x337d9d)),this['on']('updateComment',(_0x3bd6ee,_0x28c207)=>this['_updateComment'](_0x28c207)),this['on']('removeComment',(_0x5a25e2,_0x330937)=>this['_removeComment'](_0x330937)),this['on']('addComment',(_0x8713b,{threadId:_0x4bf0cf,isFromAdapter:_0x4a3b0a})=>{if(_0x4a3b0a)return;const _0x479347=this['getCommentThread'](_0x4bf0cf),_0x18c42b=_0x479347&&this['_threadToController']['get'](_0x479347);_0x18c42b&&_0x18c42b['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x3d69f0,'change:activeAnnotations',(_0x485296,_0x5653df,_0x5cfe71)=>{const _0x19e13b=Array['from'](_0x5cfe71)['map'](_0x1d9f72=>this['_viewToController']['get'](_0x1d9f72['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x19e13b?_0x19e13b['model']:null;});}set['adapter'](_0x59af53){if(this['_adapter'])throw new _0x3c6477('commentsrepository-adapter-already-set');this['_adapter']=_0x59af53;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x1e0631=_t,threadId:_0x3be6e1=_0x17ea48(),comments:_0x4c0660=[],unlinkedAt:_0x1161d3=null,resolvedAt:_0x68c6f3=null,resolvedBy:_0x73f0b3=null,target:_0xcabc8a=null,context:_0x3a6371=null,attributes:_0xc1a444={},isResolvable:_0x3137db=!0x0,isSubmitted:_0x381263=!0x1,isFromAdapter:_0x1cc17e=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x1e0631),{'channelId':_0x1e0631,'threadId':_0x3be6e1,'comments':_0x4c0660,'unlinkedAt':_0x1161d3,'resolvedAt':_0x68c6f3,'resolvedBy':_0x73f0b3,'target':_0xcabc8a,'context':_0x3a6371,'attributes':_0xc1a444,'isFromAdapter':_0x1cc17e,'isResolvable':_0x3137db,'isSubmitted':_0x381263}),this['getCommentThread'](_0x3be6e1);}['openNewCommentThread']({channelId:_0x50c73f=_t,threadId:_0x4be6fb=_0x17ea48(),target:_0x4dc441,context:_0x21420b=null,isResolvable:_0x2c391a=!0x0}){if(this['_readOnlyChannels']['has'](_0x50c73f)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x4dc441)throw new _0x3c6477('commentsrepository-missing-target');const _0x50d75d=this['addCommentThread']({'channelId':_0x50c73f,'threadId':_0x4be6fb,'target':_0x4dc441,'context':_0x21420b,'isResolvable':_0x2c391a});if(!_0x50d75d)return null;const _0x20ac21=this['_threadToController']['get'](_0x50d75d),_0x39d63a=_0x20ac21['view']['commentThreadInputView']['commentInputView'],_0x2533e7=this['context']['plugins']['get'](y),_0x568b28=_0x2533e7['getByInnerView'](_0x20ac21['view']);return _0x2533e7['activate'](_0x568b28),_0x39d63a['once']('editorReady',()=>_0x39d63a['focus']()),_0x50d75d;}['hasCommentThread'](_0x28f9f4){if('string'!=typeof _0x28f9f4)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x28f9f4);}['updateCommentThread']({channelId:_0x2c9e4a=_t,threadId:_0x29ba42,context:_0x8fe513,unlinkedAt:_0x9357ac,attributes:_0x118937,isFromAdapter:_0x2571b9=!0x1}){return this['fire'](Nt('updateCommentThread',_0x2c9e4a),{'channelId':_0x2c9e4a,'threadId':_0x29ba42,'context':_0x8fe513,'unlinkedAt':_0x9357ac,'attributes':_0x118937,'isFromAdapter':_0x2571b9}),this['getCommentThread'](_0x29ba42);}['getCommentThread'](_0x18c319){if('string'!=typeof _0x18c319)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x18c319);}['fetchCommentThread']({channelId:_0x177709,threadId:_0x21d591}={}){const _0x1c4093=this['getCommentThread'](_0x21d591);if(_0x1c4093)return Promise['resolve'](_0x1c4093);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x3c6477('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x177709,'threadId':_0x21d591})['then'](_0x2ed301=>this['hasCommentThread'](_0x21d591)?this['getCommentThread'](_0x21d591):_0x2ed301?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x177709},_0x2ed301)):void 0x0)['catch'](_0xe35f3e=>{throw console['error'](_0xe35f3e),new _0x3c6477('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x480ee5,skipNotAttached:_0x1fb594=!0x1,skipEmpty:_0x720c55=!0x1,toJSON:_0x4d7fd3=!0x1}={}){const _0x59ffa2=[];for(const _0x1f7cf2 of this['_threads']['values']())_0x480ee5&&_0x1f7cf2['channelId']!==_0x480ee5||_0x1fb594&&!_0x1f7cf2['isAttached']||_0x720c55&&0x0===_0x1f7cf2['length']||_0x59ffa2['push'](_0x1f7cf2);return _0x4d7fd3?_0x59ffa2['map'](_0x4bb61b=>_0x4bb61b['toJSON']()):_0x59ffa2;}['getAnnotationForCommentThread'](_0x2cb50e){const _0x32c827=this['_threadToController']['get'](_0x2cb50e);if(!_0x32c827)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x32c827['view'])||null;}['getCommentThreadForAnnotation'](_0x27f185){const _0x180fa0=this['_viewToController']['get'](_0x27f185['innerView']);return _0x180fa0?_0x180fa0['model']:null;}['setActiveCommentThread'](_0x4891c0){const _0xb70e37=this['context']['plugins']['get'](y);if(!_0x4891c0)return void(this['activeCommentThread']&&_0xb70e37['deactivateAll']());const _0x3006e2=this['getCommentThread'](_0x4891c0);if(!_0x3006e2)throw new _0x3c6477('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4891c0});if(!this['_threadToController']['has'](_0x3006e2))throw new _0x3c6477('commentsrepository-active-not-attached',null,{'threadId':_0x4891c0});const _0x223f62=_0xb70e37['getByInnerView'](this['_threadToController']['get'](_0x3006e2)['view']);_0xb70e37['activate'](_0x223f62);}['switchReadOnly'](_0x58ff87,_0x39fdad){_0x58ff87?this['_readOnlyChannels']['add'](_0x39fdad):this['_readOnlyChannels']['delete'](_0x39fdad),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x521b2c){return this['_readOnlyChannels']['has'](_0x521b2c)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x39699b,_0x1c3de8){return new vt(_0x39699b,_0x1c3de8);}['setPermissions'](_0x1a13fe,_0x22f0d9=_t){this['_permissions']['set'](_0x22f0d9,_0x1a13fe),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2f8487=_t){return this['_permissions']['has'](_0x2f8487)?this['_permissions']['get'](_0x2f8487):bt;}['_addCommentThread']({channelId:_0x3762a9,threadId:_0x7a33d3,comments:_0x6498ac,unlinkedAt:_0x167e59,resolvedAt:_0xe30afd,resolvedBy:_0x18f488,target:_0x48fa16,context:_0x28cff8,attributes:_0x7ad90c,isFromAdapter:_0x4ee3d4,isResolvable:_0xa2f3d2,isSubmitted:_0x19c269}){if('string'!=typeof _0x7a33d3)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x7a33d3});if(this['hasCommentThread'](_0x7a33d3))throw new _0x3c6477('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x7a33d3});const _0x45b1a3=new pi(this,{'channelId':_0x3762a9,'id':_0x7a33d3,'context':_0x28cff8,'attributes':_0x7ad90c,'unlinkedAt':_0x167e59,'resolvedAt':_0xe30afd,'resolvedBy':_0x18f488?this['context']['plugins']['get'](it)['getUser'](_0x18f488):null,'isResolvable':_0xa2f3d2,'isSubmitted':_0x19c269||_0x4ee3d4});this['_threads']['set'](_0x7a33d3,_0x45b1a3);for(const _0x31affe of _0x6498ac)_0x45b1a3['_add'](this['_createNewComment']({'threadId':_0x7a33d3,..._0x31affe}));return _0x48fa16&&_0x45b1a3['attachTo'](_0x48fa16),_0x4ee3d4||!_0x45b1a3['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x3762a9,'threadId':_0x7a33d3});}['_submitCommentThread']({channelId:_0x1457e6,threadId:_0x1c5a10}){if(!this['hasCommentThread'](_0x1c5a10))throw new _0x3c6477('commentsrepository-missing-comment-thread',this);const _0x1e56cd=this['getCommentThread'](_0x1c5a10);if(_0x1e56cd['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x21de8a,comments:_0x1aadba,resolvedAt:_0x4d5b5a,resolvedBy:_0x4e09d5,context:_0x5b1d40,attributes:_0x6cb84f}=_0x1e56cd,_0xf481b0=this['context']['plugins']['get']('PendingActions'),_0x1c88c0=_0xf481b0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x1457e6,'threadId':_0x21de8a,'comments':_0x1aadba['map'](_0x1f2354=>_0x1f2354['toJSON']()),'resolvedAt':_0x4d5b5a,'resolvedBy':_0x4e09d5?_0x4e09d5['id']:_0x4e09d5,'context':_0x5b1d40,'attributes':_0x6cb84f})['then'](({comments:_0x91480a})=>{_0xf481b0['remove'](_0x1c88c0);for(const _0x3df1d2 of _0x91480a)this['_updateComment']({'channelId':_0x1457e6,'threadId':_0x1c5a10,'commentId':_0x3df1d2['commentId'],'createdAt':_0x3df1d2['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x59e2f3=>{throw console['error'](_0x59e2f3),new _0x3c6477('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x219d1a,target:_0xb58c88}){const _0x490633=this['getCommentThread'](_0x219d1a);if(!_0x490633)throw new _0x3c6477('commentsrepository-attach-missing-comment-thread',this);const _0x129656=this['context']['plugins']['get']('PendingActions'),_0x5b04b8=this['context']['plugins']['get'](y),_0x8f4224=this['_createCommentThreadView'](_0x490633),_0x341a88=new vt(_0x490633,_0x8f4224);let _0x2900ab=null;_0x8f4224['on']('change:isDirty',(_0x14c382,_0x571d4c,_0x4accb8)=>{_0x4accb8?_0x2900ab=_0x129656['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x2900ab&&(_0x129656['remove'](_0x2900ab),_0x2900ab=null);}),this['_threadToController']['set'](_0x490633,_0x341a88),this['_viewToController']['set'](_0x8f4224,_0x341a88);const _0x4ac673=new E(this['context']['locale'],_0x8f4224);_0x4ac673['bind']('length')['to'](_0x8f4224),_0x4ac673['bind']('isDirty')['to'](_0x8f4224,'isDirty',_0x8f4224,'length',(_0x149332,_0x4d6a5e)=>_0x149332||!_0x4d6a5e),_0x4ac673['bind']('isActive')['to'](_0x8f4224),_0x4ac673['type']='comment';const _0x36e071=new T({'view':_0x4ac673,'target':_0xb58c88,'type':'comment','isVisible':!_0x490633['archivedAt']&&!!('function'==typeof _0xb58c88?_0xb58c88():_0xb58c88)});return _0x8f4224['on']('escape',()=>{_0x36e071['fire']('escape');}),this['_bindAnnotationToEditors'](_0x8f4224,_0x36e071),_0x5b04b8['add'](_0x36e071),_0x36e071;}['_bindAnnotationToEditors'](_0x42230d,_0x31e337){this['listenTo'](_0x42230d,'editorReady',(_0x30c14b,_0x338d00)=>{const _0x480fb8=_0x338d00['ui']['view']['body']['bodyCollectionContainer'];_0x31e337['focusableElements']['add'](_0x480fb8),this['context']instanceof _0x4f4c34&&this['context']['ui']['focusTracker']['add'](_0x480fb8);},{'priority':'highest'}),this['listenTo'](_0x42230d,'editorDestroyed',(_0x462436,_0x146fb3)=>{const _0x2039d4=_0x146fb3['ui']['view']['body']['bodyCollectionContainer'];_0x31e337['focusableElements']['has'](_0x2039d4)&&_0x31e337['focusableElements']['remove'](_0x2039d4),this['context']instanceof _0x4f4c34&&this['context']['ui']['focusTracker']['remove'](_0x2039d4);});}['_unbindEditors'](_0x1d1738){this['stopListening'](_0x1d1738,'editorReady'),this['stopListening'](_0x1d1738,'editorDestroyed');}['_createCommentThreadView'](_0x4c8b71){const _0x93516c=this['context']['plugins']['get'](it),{config:_0x4d743b,locale:_0x24e256}=this['context'],_0x3a178e=pt(_0x4d743b['get']('locale'),_0x24e256);return new(0x0,(_0x4d743b['get']('comments'))['CommentThreadView'])(_0x24e256,_0x4c8b71,_0x93516c['me'],{'editorConfig':{..._0x4d743b['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x4d743b['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x4d743b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4d743b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4d743b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3a178e,'CommentView':_0x4d743b['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x4b3bd4,channelId:_0x4a2118,resolvedAt:_0x43d6e3,resolvedBy:_0xd9f49d,isFromAdapter:_0xcb93e0}){if(!this['hasCommentThread'](_0x4b3bd4))throw new _0x3c6477('commentsrepository-missing-comment-thread',null,{'threadId':_0x4b3bd4});const _0x29777c=this['getCommentThread'](_0x4b3bd4);if(_0x29777c['isResolved'])throw new _0x3c6477('commentsrepository-resolved-comment-thread',null,{'threadId':_0x4b3bd4});const _0x46b48a=this['context']['plugins']['get'](it);if(_0x29777c['resolvedBy']=_0x46b48a['getUser'](_0xd9f49d),_0x29777c['resolvedAt']=_0x43d6e3,_0xcb93e0||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x251010=this['context']['plugins']['get']('PendingActions'),_0x2cd029=_0x251010['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x4a2118,'threadId':_0x4b3bd4})['then'](({resolvedAt:_0x436de3,resolvedBy:_0x4e41e7})=>{_0x251010['remove'](_0x2cd029),_0x29777c['resolvedBy']['id']!==_0x4e41e7&&(_0x29777c['resolvedBy']=_0x46b48a['getUser'](_0x4e41e7)),_0x29777c['resolvedAt']=_0x436de3;})['catch'](_0x3db9de=>{throw console['error'](_0x3db9de),new _0x3c6477('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x1d3b00,channelId:_0x882747,isFromAdapter:_0x5cf1a8}){if(!this['hasCommentThread'](_0x1d3b00))throw new _0x3c6477('commentsrepository-missing-comment-thread',null,{'threadId':_0x1d3b00});const _0x1e6b9a=this['getCommentThread'](_0x1d3b00);if(!_0x1e6b9a['isResolved'])throw new _0x3c6477('commentsrepository-reopen-comment-thread',null,{'threadId':_0x1d3b00});if(_0x1e6b9a['resolvedBy']=null,_0x1e6b9a['resolvedAt']=null,_0x5cf1a8||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x49ce1c=this['context']['plugins']['get']('PendingActions'),_0x4d8f40=_0x49ce1c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x882747,'threadId':_0x1d3b00})['then'](()=>_0x49ce1c['remove'](_0x4d8f40))['catch'](_0x289636=>{throw console['error'](_0x289636),new _0x3c6477('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x58d43a,isFromAdapter:_0x15fbd0}){const _0x4ee5c3=this['getCommentThread'](_0x58d43a);if(!_0x4ee5c3)throw new _0x3c6477('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x58d43a),this['_threads']['delete'](_0x58d43a),!_0x4ee5c3['isSubmitted']||_0x15fbd0||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1121dc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x46c31c}=_0x4ee5c3,_0x44d418=_0x1121dc['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x46c31c,'threadId':_0x58d43a})['then'](()=>_0x1121dc['remove'](_0x44d418))['catch'](_0x2b709d=>{throw console['error'](_0x2b709d),new _0x3c6477('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x42585f,unlinkedAt:_0x46afd9,context:_0x40857a,attributes:_0x28d61f,isFromAdapter:_0x33b0a8}){if('string'!=typeof _0x42585f)throw new _0x3c6477('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x42585f});if(!this['hasCommentThread'](_0x42585f))throw new _0x3c6477('commentsrepository-missing-comment-thread',null,{'threadId':_0x42585f});const _0x145963=this['getCommentThread'](_0x42585f);let _0x1115bb=!0x1;if(void 0x0!==_0x40857a&&_0x145963['context']!==_0x40857a&&(_0x145963['context']=_0x40857a,_0x1115bb=!0x0),void 0x0!==_0x46afd9&&_0x145963['unlinkedAt']!==_0x46afd9&&(_0x145963['unlinkedAt']=_0x46afd9,_0x1115bb=!0x0),_0x28d61f&&!At(_0x28d61f,_0x145963['attributes'])&&(_0x145963['attributes']=_0x28d61f,_0x1115bb=!0x0),!_0x1115bb)return Promise['resolve']();if(!_0x145963['isSubmitted']||_0x33b0a8||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x42e85c=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2a0908}=_0x145963,_0x1074d5=_0x42e85c['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x2a0908,'threadId':_0x42585f,'context':_0x40857a,'unlinkedAt':_0x46afd9,'attributes':_0x28d61f})['then'](()=>_0x42e85c['remove'](_0x1074d5))['catch'](_0x5e348b=>{throw console['error'](_0x5e348b),new _0x3c6477('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x11ae15){const _0x570647=this['context']['plugins']['get'](y),_0x2cfffe=this['getCommentThread'](_0x11ae15);if(_0x2cfffe['_isAttached']=!0x1,this['_threadToController']['has'](_0x2cfffe)){const _0x1995a7=this['_threadToController']['get'](_0x2cfffe),_0x10bc0a=_0x1995a7['view'],_0x2b357b=_0x570647['getByInnerView'](_0x10bc0a);this['_threadToController']['delete'](_0x2cfffe),this['_viewToController']['delete'](_0x10bc0a),_0x2b357b&&_0x570647['remove'](_0x2b357b),_0x1995a7['destroy'](),_0x10bc0a['destroy']()['then'](()=>{this['_unbindEditors'](_0x10bc0a);});}}['_updateActiveAnnotation']({threadId:_0x2e8796,resolvedAt:_0x2b44fd,unlinkedAt:_0x4434e2}){const _0x4a3617=!!_0x2b44fd,_0x4b5694=this['context']['plugins']['get'](y),_0x498924=this['getCommentThread'](_0x2e8796);if(this['_threadToController']['has'](_0x498924)){const _0x455804=this['_threadToController']['get'](_0x498924)['view'],_0x41bb97=_0x4b5694['getByInnerView'](_0x455804);_0x41bb97&&(_0x4a3617&&_0x4b5694['_removeActiveAnnotation'](_0x41bb97),_0x4434e2?_0x41bb97['isVisible']=!0x1:_0x41bb97['refreshVisibility']());}}['_getExternalAuthor'](_0x4f3af6){const _0x1e876e=this['context']['plugins']['get'](it),_0x4145c1=It('external:'+_0x4f3af6),_0x538cf2=_0x1e876e['getUser'](_0x4145c1);return _0x538cf2||_0x1e876e['addUser']({'id':_0x4145c1,'name':_0x4f3af6});}['_createNewComment']({threadId:_0xc2fa6a,commentId:_0x533052=_0x17ea48(),content:_0x4fa64f,authorId:_0x1b9ea6,createdAt:_0x1d823f,attributes:_0x418f17}){if('string'!=typeof _0x533052)throw new _0x3c6477('commentsrepository-invalid-commentid');if('string'!=typeof _0x1b9ea6)throw new _0x3c6477('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x4fa64f||!_0x4fa64f['trim']())throw new _0x3c6477('commentsrepository-invalid-comment-content');const _0x2eae58=this['context']['plugins']['get'](it)['getUser'](_0x1b9ea6);if(!_0x2eae58)throw new _0x3c6477('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x1b9ea6});let _0x588a27=null,_0x36c41d=_0x1d823f;return _0x418f17?.['@external']&&(_0x588a27=this['_getExternalAuthor'](_0x418f17['@external']['authorName']),_0x36c41d=new Date(_0x418f17['@external']['createdAt'])),new wi(this,{'threadId':_0xc2fa6a,'id':_0x533052,'author':_0x588a27||_0x2eae58,'creator':_0x2eae58,'content':_0x4fa64f,'createdAt':_0x1d823f,'authoredAt':_0x36c41d,'attributes':_0x418f17});}['_addComment'](_0x60d2c8){let {threadId:_0x33f5f7,content:_0x484af0,attributes:_0x43f2d5,isFromAdapter:_0x51686f}=_0x60d2c8;const _0x25cc02=this['getCommentThread'](_0x60d2c8['threadId']);if(!_0x25cc02)throw new _0x3c6477('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x1b0126=this['_createNewComment'](_0x60d2c8),{id:_0x546403}=_0x1b0126;if(_0x25cc02['_add'](_0x1b0126),_0x51686f||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x25cc02['isSubmitted'])return Promise['resolve']();const _0x32ffca=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1845b0}=_0x25cc02,_0x41b556=_0x32ffca['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x43f2d5||(_0x43f2d5={}),this['adapter']['addComment']({'channelId':_0x1845b0,'threadId':_0x33f5f7,'commentId':_0x546403,'content':_0x484af0,'attributes':_0x43f2d5})['then'](_0xbde51c=>{_0x32ffca['remove'](_0x41b556),_0xbde51c&&this['_updateComment']({'channelId':_0x1845b0,'threadId':_0x33f5f7,'commentId':_0x546403,'createdAt':_0xbde51c['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x2966d9=>{throw console['error'](_0x2966d9),new _0x3c6477('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x10838c,commentId:_0x27eda2,content:_0x328e2d,createdAt:_0x25e1eb,attributes:_0x342c07,isFromAdapter:_0x3d5cfe}){if(void 0x0!==_0x328e2d&&('string'!=typeof _0x328e2d||!_0x328e2d['trim']()['length']))throw new _0x3c6477('commentsrepository-update-comment-invalid-content');const _0x4efa7b=this['getCommentThread'](_0x10838c),_0x1cd80f=_0x4efa7b['getComment'](_0x27eda2);if(!_0x1cd80f)throw new _0x3c6477('commentsrepository-update-missing-comment',this);let _0x2b21b7=!0x1;if(_0x328e2d&&_0x328e2d!==_0x1cd80f['content']&&(_0x1cd80f['isEditable']||_0x3d5cfe)&&(_0x1cd80f['content']=_0x328e2d,_0x2b21b7=!0x0),_0x25e1eb&&_0x25e1eb!==_0x1cd80f['createdAt']&&(_0x1cd80f['createdAt']=_0x25e1eb,_0x1cd80f['attributes']&&_0x1cd80f['attributes']['@external']||(_0x1cd80f['authoredAt']=_0x25e1eb),_0x2b21b7=!0x0),_0x342c07&&!At(_0x342c07,_0x1cd80f['attributes'])&&(_0x1cd80f['attributes']=_0x342c07,_0x2b21b7=!0x0),!_0x2b21b7)return Promise['resolve']();if(_0x4efa7b['fire']('commentUpdated'),_0x3d5cfe||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x111442=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3a6755}=this['getCommentThread'](_0x1cd80f['threadId']),_0x2c98cd=_0x111442['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x3a6755,'threadId':_0x10838c,'commentId':_0x27eda2,'content':_0x328e2d,'attributes':_0x342c07})['then'](()=>_0x111442['remove'](_0x2c98cd))['catch'](_0x35f1fa=>{throw console['error'](_0x35f1fa),new _0x3c6477('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x84d134,commentId:_0x2e24db,isFromAdapter:_0x40a2fd}){const _0x2c70d5=this['getCommentThread'](_0x84d134),_0x206aed=_0x2c70d5['getComment'](_0x2e24db);if(!_0x206aed)throw new _0x3c6477('commentsrepository-remove-missing-comment',this);if(_0x2c70d5['_remove'](_0x206aed),_0x40a2fd||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x148fac=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3ae6a4}=_0x2c70d5,_0x5cd42d=_0x148fac['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3ae6a4,'threadId':_0x84d134,'commentId':_0x2e24db})['then'](()=>_0x148fac['remove'](_0x5cd42d))['catch'](_0x4f2648=>{throw console['error'](_0x4f2648),new _0x3c6477('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x1f5238(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x5a0583,_0x4f07b3){super();const _0x201fcc=_0x4f07b3['isResolvable'];this['channelId']=_0x4f07b3['channelId'],this['id']=_0x4f07b3['id'],this['comments']=new _0xa3f224(),this['_repository']=_0x5a0583,this['_isAttached']=!0x1,this['_isSubmitted']=_0x4f07b3['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x5a0583,'_permissions',_0x5a0583,'_readOnlyChannels',()=>_0x5a0583['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x5a0583,'_permissions',()=>_0x5a0583['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x5a0583,'_permissions',()=>{const _0x53f8d2=_0x5a0583['getPermissions'](this['channelId']);return _0x53f8d2['write']||_0x53f8d2['admin'];}),this['bind']('isResolvable')['to'](_0x5a0583,'_permissions',()=>_0x201fcc&&_0x5a0583['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x4f07b3['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x1da1ec,_0x2f4cd1)=>_0x1da1ec?_0x2f4cd1?_0x1da1ec<_0x2f4cd1?_0x1da1ec:_0x2f4cd1:_0x1da1ec:_0x2f4cd1),this['set']('unlinkedAt',_0x4f07b3['unlinkedAt']||null),this['set']('resolvedAt',_0x4f07b3['resolvedAt']||null),this['set']('resolvedBy',_0x4f07b3['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x5eb5fe=>!!_0x5eb5fe),this['set']('attributes',_0x4f07b3['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x5e3a9f,_0x4ff23f)=>_0x5e3a9f+_0x4ff23f['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x511c77,id:_0x5008ae}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x511c77),{'channelId':_0x511c77,'threadId':_0x5008ae});}['setUnlinkedAt'](_0x219256){this['_update']({'unlinkedAt':_0x219256});}['resolve']({resolvedAt:_0x50fc2c=new Date(),resolvedBy:_0x2fd23e='',isFromAdapter:_0x2c9879=!0x1}={}){const _0x1f4dc8=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x23a640,id:_0x172879}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x23a640),{'channelId':_0x23a640,'threadId':_0x172879,'resolvedAt':_0x50fc2c,'resolvedBy':_0x2fd23e||_0x1f4dc8['id'],'isFromAdapter':_0x2c9879});}['reopen']({isFromAdapter:_0x336e1a=!0x1}={}){const {channelId:_0x22443f,id:_0x536658}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x22443f),{'channelId':_0x22443f,'threadId':_0x536658,'isFromAdapter':_0x336e1a});}['setContext'](_0x3db608){this['context']||this['_update']({'context':_0x3db608});}['setAttribute'](_0x38ecd0,_0x5e7d9c){const _0x47ab22=wt(this['attributes']);yt(_0x47ab22,_0x38ecd0,_0x5e7d9c),this['_update']({'attributes':_0x47ab22});}['removeAttribute'](_0x2cc119){const _0x3ac3d1=wt(this['attributes']);Ct(_0x3ac3d1,_0x2cc119),this['_update']({'attributes':_0x3ac3d1});}['remove']({isFromAdapter:_0x4c120e=!0x1}={}){const {channelId:_0x36d427,id:_0x2458fc}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x36d427),{'channelId':_0x36d427,'threadId':_0x2458fc,'isFromAdapter':_0x4c120e});}['attachTo'](_0x57facc){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x57facc});}['addComment'](_0x4645a2){const {channelId:_0xba1ad9,id:_0x165753}=this;this['_repository']['fire'](Nt('addComment',_0xba1ad9,_0x165753),Object['assign']({'channelId':_0xba1ad9,'threadId':_0x165753},_0x4645a2));}['getComment'](_0x30a5ca){if('string'!=typeof _0x30a5ca)throw new _0x3c6477('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x30a5ca});return this['comments']['get'](_0x30a5ca);}['toJSON'](){return{'threadId':this['id'],'context':this['context'],'unlinkedAt':this['unlinkedAt'],'resolvedAt':this['resolvedAt'],'resolvedBy':this['resolvedBy']?this['resolvedBy']['id']:null,'archivedAt':this['archivedAt'],'comments':this['comments']['map'](_0x498ed4=>_0x498ed4['toJSON']()),'attributes':this['attributes']};}['_add'](_0x5e3b3c){return this['listenTo'](_0x5e3b3c,'change:authoredAt',()=>{const _0x5da82b=this['_findOptimalIndex'](_0x5e3b3c),_0x5158be=this['comments'];_0x5da82b-0x1!=_0x5158be['getIndex'](_0x5e3b3c)&&_0x5da82b+0x1!=_0x5158be['getIndex'](_0x5e3b3c)&&(this['_remove'](_0x5e3b3c),this['_add'](_0x5e3b3c));}),this['comments']['add'](_0x5e3b3c,this['_findOptimalIndex'](_0x5e3b3c));}['_update'](_0x3f8820){const {channelId:_0x42dd8a,id:_0x56f387}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x42dd8a),{..._0x3f8820,'channelId':_0x42dd8a,'threadId':_0x56f387});}['_remove'](_0xe94759){return this['stopListening'](_0xe94759),_0xe94759['destroy'](),this['comments']['remove'](_0xe94759);}['_findOptimalIndex'](_0x329414){const _0x476ae0=this['comments']['find'](_0x3990b4=>new Date(_0x3990b4['authoredAt'])['getTime']()>new Date(_0x329414['authoredAt'])['getTime']());return _0x476ae0?this['comments']['getIndex'](_0x476ae0):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x1f5238(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x5788fb,_0x7f65da){super();const _0x440b48=_0x5788fb['context']['plugins']['get'](it)['me'],_0x2330b4=_0x5788fb['getCommentThread'](_0x7f65da['threadId']),_0x2046de=0x0===_0x2330b4['comments']['length'],_0x49d43c=_0x440b48===_0x7f65da['author'];this['id']=_0x7f65da['id'],this['threadId']=_0x7f65da['threadId'],this['author']=_0x7f65da['author'],this['creator']=_0x7f65da['creator'],this['isExternal']=Boolean(_0x7f65da['attributes']&&_0x7f65da['attributes']['@external']),this['set']('content',_0x7f65da['content']),this['createdAt']=_0x7f65da['createdAt']||new Date(),this['set']('authoredAt',_0x7f65da['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x2330b4,'resolvedAt'),this['set']('attributes',_0x7f65da['attributes']||{}),this['bind']('isEditable')['to'](_0x5788fb,'_permissions',()=>{const _0x14dadc=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['write'],_0x57d18c=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['modifyAll'];return _0x49d43c&&_0x14dadc||!_0x49d43c&&_0x57d18c;}),this['bind']('isRemovable')['to'](_0x2330b4,'isRemovable',_0x5788fb,'_permissions',_0x262c76=>{const _0x17a3b0=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['write'],_0x50d7f1=_0x5788fb['getPermissions'](_0x2330b4['channelId'])['modifyAll'];return _0x49d43c&&_0x17a3b0||_0x262c76&&_0x2046de||!_0x49d43c&&_0x50d7f1&&!_0x2046de;}),this['bind']('isReadOnly')['to'](_0x2330b4,'isReadOnly'),this['_repository']=_0x5788fb;}get['weight'](){return Math['max'](function(_0x428f50){const _0x183dde=document['createElement']('div');return _0x183dde['innerHTML']=_0x428f50,_0x183dde['textContent']['length'];}(this['content']),0xc8);}['update'](_0x315250){const {threadId:_0x588bd6,id:_0x1d7c66}=this;if(!this['_repository']['hasCommentThread'](_0x588bd6))throw new _0x3c6477('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x5cc2df}=this['_repository']['getCommentThread'](_0x588bd6);this['_repository']['fire'](Nt('updateComment',_0x5cc2df,_0x588bd6),{'channelId':_0x5cc2df,'threadId':_0x588bd6,'commentId':_0x1d7c66,..._0x315250});}['setAttribute'](_0x371704,_0x56a4ce){const _0x289acc=wt(this['attributes']);yt(_0x289acc,_0x371704,_0x56a4ce),this['update']({'attributes':_0x289acc});}['removeAttribute'](_0x1226c6){const _0x42065f=wt(this['attributes']);Ct(_0x42065f,_0x1226c6),this['update']({'attributes':_0x42065f});}['remove'](_0x417d09={}){if(!_0x417d09['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x2b12f8,id:_0x5ebe76}=this;if(!this['_repository']['hasCommentThread'](_0x2b12f8))throw new _0x3c6477('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x1238ae}=this['_repository']['getCommentThread'](_0x2b12f8);this['_repository']['fire'](Nt('removeComment',_0x1238ae,_0x2b12f8),{'channelId':_0x1238ae,'threadId':_0x2b12f8,'commentId':_0x5ebe76,..._0x417d09});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x2b7e56,..._0x185df7){for(const _0x2480fe of _0x185df7)void 0x0!==_0x2480fe&&(_0x2b7e56+=':'+String(_0x2480fe));return _0x2b7e56;}class ot extends _0x35ae39{constructor(_0x37c90d){super(_0x37c90d),this['set']('hasContent',!0x1);}['refresh'](){const _0x2e48ad=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x1cf661 of _0x2e48ad['getRanges']())if(this['_hasContent'](_0x1cf661))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x4216a3=_0x17ea48(),ranges:_0x3aa76f,comment:_0x5d80c2}={}){const _0x18485f=this['editor']['model'],_0x370dbe=_0x3aa76f??Array['from'](_0x18485f['document']['selection']['getRanges']()),_0x3628a4=[];for(const _0x4ee9bf of _0x370dbe)this['_hasContent'](_0x4ee9bf)&&_0x3628a4['push'](this['_trimToContent'](_0x4ee9bf));if(!_0x3628a4['length'])throw new _0x3c6477('addcommentthreadcommand-incorrect-ranges',null);_0x5d80c2&&this['_createCommentThread'](_0x4216a3,_0x5d80c2),this['_createMarkersFromRanges'](_0x4216a3,_0x3628a4,!!_0x5d80c2);}['_createMarkersFromRanges'](_0xada9e1,_0x24d18b,_0xadbbde){this['editor']['model']['change'](_0x273996=>{for(const _0x577a83 of _0x24d18b){const _0x517f4f=_0x17ea48()['substr'](0x1,0x5),_0x4ed0e1='comment:'+_0xada9e1+':'+_0x517f4f;_0x273996['addMarker'](_0x4ed0e1,{'range':_0x577a83,'usingOperation':_0xadbbde,'affectsData':_0xadbbde});}});}['_createCommentThread'](_0x5649c4,_0x34f55c){const _0x4facef=this['editor']['plugins']['get']('CommentsRepository'),_0x3741b9=this['editor']['config']['get']('collaboration.channelId'),_0x152bd7=this['editor']['plugins']['get']('Users')['me'];if(!_0x152bd7)throw new _0x3c6477('addcommentthreadcommand-user-not-found',null);_0x4facef['addCommentThread']({'threadId':_0x5649c4,'channelId':_0x3741b9,'comments':[{'authorId':_0x152bd7['id'],'content':_0x34f55c,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x29b394){for(const _0x45944d of _0x29b394['getItems']())if(this['_itemIsContent'](_0x45944d))return!0x0;return!0x1;}['_itemIsContent'](_0xe3d741){return _0xe3d741['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0xe3d741)&&!_0xe3d741['is']('element','tableCell');}['_trimToContent'](_0x2092e7){const _0x2bab8a=_0x522ab3=>!this['_itemIsContent'](_0x522ab3['item']),_0x8323ea=_0x2092e7['start']['getLastMatchingPosition'](_0x2bab8a),_0x5cfed6=_0x2092e7['end']['getLastMatchingPosition'](_0x2bab8a,{'direction':'backward'});return this['editor']['model']['createRange'](_0x8323ea,_0x5cfed6);}}class b extends _0x23cf76{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48cf85){super(_0x48cf85),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x1d7fbd=this['editor'],_0xd590d9=_0x1d7fbd['model']['document']['selection'],_0x3006a8=_0x5218cd(()=>this['refreshSelectedViews'](),0xa);_0xd590d9['on']('change:range',(_0x3b1edf,_0x2784b8)=>{_0x2784b8['directChange']&&(_0x3006a8['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x1d7fbd['editing']['view']['document'],'change:isFocused',(_0x2c0640,_0x20b52a,_0xc66540)=>{_0xc66540&&_0x3006a8();}),this['listenTo'](_0x1d7fbd['ui']['focusTracker'],'change:isFocused',(_0x11c6e7,_0x280d8a,_0x4e4655)=>{_0x4e4655||this['fire']('blur',{'isAnnotationTracked':_0x28ecca=>this['_editorAnnotationsData']['has'](_0x28ecca['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x11cc9a){if(this['_editorAnnotations']['has'](_0x11cc9a['view']))return;this['_editorAnnotations']['add'](_0x11cc9a['view']),this['editor']['ui']['focusTracker']['add'](_0x11cc9a['view']['element']);const _0x223b39=this['editor']['plugins']['get'](y);this['listenTo'](_0x223b39['collection'],'remove',(_0x14b6f3,_0x1a0d56)=>{this['editor']['ui']['focusTracker']['remove'](_0x1a0d56['view']['element']),this['_editorAnnotations']['delete'](_0x1a0d56['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x54c985){if('function'!=typeof _0x54c985)throw new _0x3c6477('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x54c985);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x2b7184,annotations:_0x5e596f}){const _0x18a8a8=[],_0xb46670=this['editor']['model']['document']['selection'],_0xca5aee=Array['from'](_0xb46670['getRanges']());for(const [_0x12e503,_0x130198]of this['_editorAnnotationsData']){const _0x4d1769=_0x152124(_0x130198),_0x3f15f8=_0x5e596f['getByInnerView'](_0x12e503);_0x4d1769&&_0x3f15f8&&_0x18a8a8['push']({'annotation':_0x3f15f8,'range':_0x4d1769});}function _0x152124(_0x491d79){for(const _0x59b8d8 of _0x491d79)for(const _0x44b5e6 of _0xca5aee)if(_0x59b8d8['containsRange'](_0x44b5e6,!_0xb46670['isCollapsed']))return _0x59b8d8;return null;}return _0x18a8a8['sort']((_0x4b02a8,_0x857414)=>{const _0x288355=_0x4b02a8['range'],_0x28873e=_0x857414['range'];if(!_0x288355['isEqual'](_0x28873e)){if(_0x288355['containsRange'](_0x28873e,!0x0))return 0x1;if(_0x28873e['containsRange'](_0x288355,!0x0))return-0x1;}return _0x4b02a8['annotation']==_0x2b7184?-0x1:_0x857414['annotation']==_0x2b7184?0x1:0x0;})['map'](_0x37669c=>_0x37669c['annotation']);}get['_editorAnnotationsData'](){const _0xcf7ad4=new Map();for(const _0x1723c1 of Array['from'](this['_dataCollectors']))for(const [_0x2bda08,_0x5f1407]of _0x1723c1())_0xcf7ad4['set'](_0x2bda08,_0x5f1407);return _0xcf7ad4;}}class st extends _0x23cf76{['afterInit'](){const _0x263123=this['editor'];if(!_0x263123['plugins']['has']('RestrictedEditingModeEditing'))return;_0x263123['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x23cf76{constructor(_0x5e41a2){super(_0x5e41a2),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x195a7f=this['editor'],_0x227c1d=_0x195a7f['commands']['get']('importWord'),_0x5ce2ef=_0x195a7f['plugins']['get'](it);_0x227c1d&&(_0x227c1d['on']('execute',(_0x1baa57,[,_0x39e399])=>{_0x39e399['collaboration_features']={'comments':!0x0,'user_id':_0x5ce2ef['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x227c1d,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x4edc1f,_0x4fbaae){const {comment_threads:_0x34af58}=_0x4fbaae;_0x34af58&&_0x34af58['forEach'](({thread_id:_0x528b22,comments:_0x5a5a9d,is_resolved:_0x35b69c})=>{const _0x14cc4b=new Date(),_0xce86b6=_0x5a5a9d['map'](({author:_0x1d6ab0,content:_0x30ffac,created_at:_0x32ff4f})=>({'content':_0x30ffac,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x14cc4b,'attributes':{'@external':{'authorName':_0x1d6ab0,'createdAt':_0x32ff4f?new Date(_0x32ff4f):new Date(),'source':'importWord'}}})),_0x26491c=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x26491c,'threadId':_0x528b22,'comments':_0xce86b6,'resolvedAt':_0x35b69c?_0x14cc4b:null});});}}class at extends _0x23cf76{constructor(_0x2435c4){super(_0x2435c4),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0xc09066=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0xc09066,'contentInsertion',(_0x1521ba,_0x2a0fd5)=>this['_removeMarkersWithoutThreads'](_0x2a0fd5['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0xc5e262){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0xc5e262;const _0x1023d6=this['editor']['plugins']['get']('CommentsRepository');for(const _0x13ccf8 of _0xc5e262['keys']()){const [_0x58423a,_0x6f9b9d]=_0x13ccf8['split'](':');'comment'!=_0x58423a||_0x1023d6['hasCommentThread'](_0x6f9b9d)||_0xc5e262['delete'](_0x13ccf8);}return _0xc5e262;}['_registerMarkerInClipboardPipeline'](){const _0x3fe90c=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x3947e1=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x3947e1&&_0x3fe90c['_registerMarkerToCopy']('comment',_0x3947e1);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x2d9d28){switch(_0x2d9d28){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x2628d1){const _0x43f1e9=_0x2628d1['split'](':');return{'group':_0x43f1e9[0x0],'id':_0x43f1e9[0x1],'part':_0x43f1e9[0x2]};}class ut extends _0x23cf76{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x1253b5,_0x2dc67f)=>{if(!_0x2dc67f['options']['showCommentHighlights'])return null;if(_0x2dc67f['options']['ignoreResolvedComments']){const {id:_0x385885}=ft(_0x1253b5['markerName']),_0x393f38=this['editor']['plugins']['get'](o);if(_0x393f38['getCommentThread'](_0x385885)?.['isResolved']&&_0x1253b5['item'])return _0x2dc67f['consumable']['consume'](_0x1253b5['item'],'addMarker:'+_0x1253b5['markerName']),_0x2dc67f['consumable']['consume'](_0x1253b5['item'],'removeMarker:'+_0x1253b5['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2fc84b=>{_0x2fc84b['on']('addMarker:comment',(_0x8e7457,_0x289a33,_0x4d51ea)=>{if(!_0x4d51ea['options']['showCommentHighlights'])return;const _0x1c1c6a=_0x289a33['item'];if(!_0x1c1c6a)return;const _0x26b0bd=_0x4d51ea['mapper']['toViewElement'](_0x1c1c6a);this['editor']['model']['schema']['isObject'](_0x1c1c6a)&&_0x26b0bd&&!_0x26b0bd['getCustomProperty']('widget')&&_0x26b0bd['is']('containerElement')&&_0x354115(_0x26b0bd,_0x4d51ea['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x29d812,{writer:_0x56a1b5,options:_0x5f7904})=>{if(!_0x5f7904['showCommentHighlights'])return null;const _0x59ddc3=_0x56a1b5['createContainerElement']('div'),_0x3ac848=_0x56a1b5['createEmptyElement']('hr');return _0x56a1b5['addClass']('ck-horizontal-line',_0x59ddc3),_0x56a1b5['insert'](_0x56a1b5['createPositionAt'](_0x59ddc3,0x0),_0x3ac848),_0x59ddc3;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x22519a,{writer:_0x504563,options:_0x307428})=>{if(!_0x307428['showCommentHighlights'])return null;const _0x14f159=_0x504563['createContainerElement']('span'),_0x3aeeea=_0x504563['createEmptyElement']('img');return _0x504563['addClass']('image-inline',_0x14f159),_0x504563['insert'](_0x504563['createPositionAt'](_0x14f159,0x0),_0x3aeeea),_0x14f159;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x23ee18,{writer:_0x40773e,options:_0x300fd3})=>{if(_0x300fd3['showCommentHighlights'])return _0x40773e['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x203a1e,_0x52523d,_0x40827b)=>{_0x40827b['options']['showCommentHighlights']&&_0x203a1e['stop']();},{'priority':'high'});}}class r extends _0x23cf76{static get['requires'](){return[o,b,it,st,ct,at,ut];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1601c7){super(_0x1601c7),this['set']('isThreadsLoadingPaused',!0x0),_0x1601c7['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x105d10,_0x2da998,_0x3f9167,_0x3e2dce)=>{const _0x55408d=_0x1601c7['plugins']['get'](o),_0x2d33b6=_0x3f9167?ft(_0x3f9167)['id']:null;_0x1601c7['model']['change'](()=>{if(_0x2d33b6){const _0x44e8c5=this['getAllMarkersForId'](_0x2d33b6);for(const _0x3ba241 of _0x44e8c5)_0x1601c7['editing']['reconvertMarker'](_0x3ba241);}if(_0x3e2dce){const {id:_0x11e8dc}=ft(_0x3e2dce),_0x59427a=_0x55408d['getCommentThread'](_0x11e8dc);if(_0x59427a&&_0x59427a['unlinkedAt'])return;if(_0x59427a&&!_0x59427a['isAttached'])return;const _0x11e122=this['getAllMarkersForId'](_0x11e8dc);for(const _0x527086 of _0x11e122)_0x1601c7['editing']['reconvertMarker'](_0x527086);}}),_0x2d33b6&&this['scrollToThreadMarker'](_0x2d33b6);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1592c6=this['editor'],_0xfdbc3b=_0x1592c6['plugins']['get'](o),_0x34f6cc=_0x1592c6['config']['get']('collaboration.channelId'),_0xc8f308=_0xfdbc3b['getCommentThreads']()['filter'](_0x5675aa=>_0x5675aa['channelId']!==_0x34f6cc);_0x1592c6['commands']['add']('addCommentThread',new ot(_0x1592c6)),this['listenTo'](_0x1592c6,'change:isReadOnly',(_0xe4f874,_0x4df892,_0x42f2ef)=>{_0xfdbc3b['switchReadOnly'](_0x42f2ef,_0x1592c6['config']['get']('collaboration.channelId'));}),this['listenTo'](_0xfdbc3b,dt('addCommentThread',_0x34f6cc),(_0x2d9a2c,{threadId:_0x2222c8})=>{const _0x3a3544=this['editor']['plugins']['get'](o)['getCommentThread'](_0x2222c8);_0x3a3544?.['unlinkedAt']&&this['_attachArchivedThread'](_0x2222c8);}),this['listenTo'](_0xfdbc3b,dt('removeCommentThread',_0x34f6cc),(_0x32b016,{threadId:_0x2c6376})=>{_0x1592c6['model']['enqueueChange']({'isUndoable':!0x1},_0x39fb0f=>{const _0xf606a8=this['getAllMarkersForId'](_0x2c6376);for(const _0x1da15a of _0xf606a8)_0x39fb0f['removeMarker'](_0x1da15a);});}),this['listenTo'](_0xfdbc3b,dt('resolveCommentThread',_0x34f6cc),(_0x4697a9,{threadId:_0x1dc2d7})=>{(this['_reconvertMarkers'](_0x1dc2d7),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1dc2d7)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0xfdbc3b,dt('reopenCommentThread',_0x34f6cc),(_0xa19219,{threadId:_0xcffcd9})=>{this['_reconvertMarkers'](_0xcffcd9);},{'priority':'low'}),this['listenTo'](_0xfdbc3b,dt('addComment',_0x34f6cc),(_0x23000b,{threadId:_0x417bb0,isFromAdapter:_0x531da4})=>{const _0x213db6=this['getAllMarkersForId'](_0x417bb0);if(_0x531da4||0x0==_0x213db6['length']||!_0xfdbc3b['hasCommentThread'](_0x417bb0))return;0x1===_0xfdbc3b['getCommentThread'](_0x417bb0)['length']&&_0x1592c6['model']['enqueueChange']({'isUndoable':!0x1},_0x496cb2=>{for(const _0x56da0f of _0x213db6)_0x496cb2['updateMarker'](_0x56da0f,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0xc8f308);}['afterInit'](){!async function(_0x108df0){const _0x58ffaa=_0x3ace0a([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x21240e=0x73460ab3,_0x5b5216=0x73418983^_0x21240e,_0x4b2ad0=window[_0x3ace0a([0x44,0x61,0x74,0x65])][_0x3ace0a([0x6e,0x6f,0x77])](),_0x513cfe=_0x108df0[_0x3ace0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30a19f=new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdaa46b=>{_0x513cfe[_0x3ace0a([0x6f,0x6e,0x63,0x65])](_0x3ace0a([0x72,0x65,0x61,0x64,0x79]),_0xdaa46b);}),_0x5df680={[_0x3ace0a([0x6b,0x74,0x79])]:_0x3ace0a([0x45,0x43]),[_0x3ace0a([0x75,0x73,0x65])]:_0x3ace0a([0x73,0x69,0x67]),[_0x3ace0a([0x63,0x72,0x76])]:_0x3ace0a([0x50,0x2d,0x32,0x35,0x36]),[_0x3ace0a([0x78])]:_0x3ace0a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3ace0a([0x79])]:_0x3ace0a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3ace0a([0x61,0x6c,0x67])]:_0x3ace0a([0x45,0x53,0x32,0x35,0x36])},_0x1d83fb=_0x513cfe[_0x3ace0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ace0a([0x67,0x65,0x74])](_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52b5f8(){let _0x2d39c5,_0x171cfc=null,_0x45fe3a=null;try{if(_0x1d83fb==_0x3ace0a([0x47,0x50,0x4c]))return _0x3ace0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d39c5=_0x56998c(),!_0x2d39c5)return _0x3ace0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d39c5[_0x3ace0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45fe3a=_0x387667(_0x2d39c5[_0x3ace0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d39c5[_0x3ace0a([0x6a,0x74,0x69])])),await _0x33ebb3()?_0x5d37cc()?_0x2d8034()?_0x3ace0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5969aa()?(_0x2d39c5[_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ace0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x171cfc=_0x591a5a(_0x3ace0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b0e1f()):_0x3ace0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ace0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ace0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ace0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d8034(){const _0x1bccdb=[_0x3ace0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ace0a([0x74,0x72,0x69,0x61,0x6c])][_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d39c5[_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b2ad0/0x3e8:0xe10*_0x5b5216;return _0x2d39c5[_0x3ace0a([0x65,0x78,0x70])]<_0x1bccdb;}function _0x5d37cc(){const _0x596e0f=_0x2d39c5[_0x3ace0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x596e0f)return!0x1;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x2a])))return!0x0;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x43,0x4d,0x54])))return!0x0;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&_0x2cf891())return!0x0;if(_0x596e0f[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x52,0x43,0x4d,0x54]))){if(_0x203efe())return!0x0;if(_0xe6cf55()||_0xcedb0f())return!0x0;}return!0x1;}function _0x5969aa(){const _0x5e6c24=_0x2d39c5[_0x3ace0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e6c24||0x0==_0x5e6c24[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5d1707}=new URL(window[_0x3ace0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e6c24[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1707))return!0x0;const _0x307036=_0x5d1707[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e]));return _0x5e6c24[_0x3ace0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21f3b3=>_0x21f3b3[_0x3ace0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ace0a([0x2a])))[_0x3ace0a([0x6d,0x61,0x70])](_0x3d3883=>_0x3d3883[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e])))[_0x3ace0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48ddac=>_0x48ddac[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x307036[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ace0a([0x6d,0x61,0x70])](_0x560ad2=>Array(_0x307036[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x560ad2[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ace0a([0x66,0x69,0x6c,0x6c])](_0x560ad2[0x0]===_0x3ace0a([0x2a])?_0x3ace0a([0x2a]):'')[_0x3ace0a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x560ad2))[_0x3ace0a([0x73,0x6f,0x6d,0x65])](_0x3956e5=>_0x307036[_0x3ace0a([0x65,0x76,0x65,0x72,0x79])]((_0x5cc550,_0x48ecdf)=>_0x3956e5[_0x48ecdf]===_0x5cc550||_0x3956e5[_0x48ecdf]===_0x3ace0a([0x2a])));}function _0x5b0e1f(){return _0x171cfc&&_0x45fe3a?new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c17a8,_0x3f2c79)=>{_0x171cfc[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x4c17a8,_0x3f2c79),_0x45fe3a[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x557b40=>{_0x557b40!=_0x3ace0a([0x56,0x61,0x6c,0x69,0x64])&&_0x4c17a8(_0x557b40);},_0x3f2c79);}):_0x171cfc||_0x45fe3a||_0x3ace0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x387667(_0x1facca,_0x25d66a){return new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b7018=>{if(_0x8d1820())return _0x3b7018(_0x3ace0a([0x56,0x61,0x6c,0x69,0x64]));_0x11be84(),_0x513cfe[_0x3ace0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ace0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43f051=!0x1;const _0x14088c=_0x17ea48();function _0x344c5a(_0xe0270b){return!!_0xe0270b&&(typeof _0xe0270b===_0x3ace0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe0270b===_0x3ace0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe0270b[_0x3ace0a([0x74,0x68,0x65,0x6e])]===_0x3ace0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe0270b[_0x3ace0a([0x63,0x61,0x74,0x63,0x68])]===_0x3ace0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1434f5(_0x5fce96){_0x312ff2(_0x5fce96)[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x215b5d=>{if(!_0x215b5d||_0x215b5d[_0x3ace0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ace0a([0x6f,0x6b]))return _0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f7ac7(_0xd7559(_0x14088c+_0x25d66a))!=_0x215b5d[_0x3ace0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ace0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x3d4094=>(_0x51f17e(),_0x3d4094),()=>{const _0x3fc833=_0x211bf7();return null==_0x3fc833?(_0x51f17e(),_0x3ace0a([0x56,0x61,0x6c,0x69,0x64])):_0x3ace0a(_0x4b2ad0-_0x3fc833>(0x574a8eb3^_0x21240e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x3b7018)[_0x3ace0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b7018(_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x268401=0x7370e433^_0x21240e;function _0x51f17e(){const _0x4a6dc7=_0x3ace0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f7ac7(_0xd7559(_0x1facca)),_0x508e49=_0x2936db(_0x2f7ac7(window[_0x3ace0a([0x4d,0x61,0x74,0x68])][_0x3ace0a([0x63,0x65,0x69,0x6c])](_0x4b2ad0/_0x268401)));window[_0x3ace0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ace0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a6dc7,_0x508e49);}function _0x211bf7(){const _0x15d7c5=_0x3ace0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f7ac7(_0xd7559(_0x1facca)),_0x55b245=window[_0x3ace0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ace0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15d7c5);return _0x55b245?window[_0x3ace0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2936db(_0x55b245),0x10)*_0x268401:null;}function _0x312ff2(_0x1a5451){return new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44310c,_0x11627f)=>{_0x1a5451[_0x3ace0a([0x74,0x68,0x65,0x6e])](_0x44310c,_0x11627f),window[_0x3ace0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11627f,0x7347de73^_0x21240e);});}}_0x513cfe[_0x3ace0a([0x6f,0x6e])](_0x3ace0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x560c9c,_0x1cc0b0)=>{if(_0x1cc0b0[0x0]!=_0x1facca)return _0x3b7018(_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cc0b0[0x1]={..._0x1cc0b0[0x1],[_0x3ace0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14088c};},{[_0x3ace0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ace0a([0x68,0x69,0x67,0x68])}),_0x513cfe[_0x3ace0a([0x6f,0x6e])](_0x3ace0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3884c3=>{_0x344c5a(_0x3884c3[_0x3ace0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43f051=!0x0,_0x1434f5(_0x3884c3[_0x3ace0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ace0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ace0a([0x6c,0x6f,0x77])}),_0x30a19f[_0x3ace0a([0x74,0x68,0x65,0x6e])](()=>{_0x43f051||_0x3b7018(_0x3ace0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8d1820(){return _0x513cfe[_0x3ace0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ace0a([0x76,0x69,0x65,0x77])][_0x3ace0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ace0a([0x61,0x75,0x74,0x6f]);}function _0x11be84(){_0x513cfe[_0x3ace0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ace0a([0x76,0x69,0x65,0x77])][_0x3ace0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ace0a([0x61,0x75,0x74,0x6f]);}}function _0x591a5a(_0x661c12){const _0x2f714d=[new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x511ee2=>setTimeout(_0x511ee2,0x734f347f^_0x21240e)),_0x30a19f[_0x3ace0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ea580=>{let _0x590e5e=0x0;_0x513cfe[_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ace0a([0x6f,0x6e])](_0x3ace0a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24e3f7,_0x515fd8)=>{_0x515fd8[0x0][_0x3ace0a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x590e5e++,_0x590e5e==(0x73460f5b^_0x21240e)&&(_0x5ea580(),_0x24e3f7[_0x3ace0a([0x6f,0x66,0x66])]());});}))];return window[_0x3ace0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ace0a([0x72,0x61,0x63,0x65])](_0x2f714d)[_0x3ace0a([0x74,0x68,0x65,0x6e])](()=>_0x661c12);}async function _0x51e446(){await _0x30a19f,_0x513cfe[_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ace0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47844c,_0x513cfe[_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ace0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47844c,_0x513cfe[_0x3ace0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ace0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cf891(){return window[_0x3ace0a([0x67,0x6c,0x6f,0x62])]&&window[_0x3ace0a([0x67,0x6c,0x6f,0x62])][_0x3ace0a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x203efe(){return _0x30508b(_0x3ace0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x17de33(_0x3ace0a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ace0a([0x73,0x74,0x61,0x74,0x65])]==_0x3ace0a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xe6cf55(){return _0x30508b(_0x3ace0a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0xcedb0f(){return _0x30508b(_0x3ace0a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3fcd52(_0x3949c9){const _0x263f17=_0x4e91ed();_0x513cfe[_0x263f17]=_0x3ace0a([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3949c9,_0x3949c9!=_0x3ace0a([0x56,0x61,0x6c,0x69,0x64])&&_0x51e446();}function _0x4e91ed(){const _0x1608db=window[_0x3ace0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ace0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ace0a([0x6e,0x6f,0x77])]())[_0x3ace0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ace0a([0x2e]),'');let _0x28da7a=_0x3ace0a([0x4b]);for(let _0x5c4779=0x0;_0x5c4779<_0x1608db[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c4779+=0x2){let _0x30d80c=window[_0x3ace0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1608db[_0x3ace0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c4779,_0x5c4779+0x2));_0x30d80c>=_0x58ffaa[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30d80c-=_0x58ffaa[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28da7a+=_0x58ffaa[_0x30d80c];}return _0x28da7a;}function _0x56998c(){const _0x3c88ee=_0x1d83fb[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e]));if(0x3!=_0x3c88ee[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16a867(_0x3c88ee[0x1]);function _0x16a867(_0x1fb6e8){const _0x24354a=_0x5a6c2c(_0x1fb6e8);return _0x24354a&&_0x54d4d1()?_0x24354a:null;function _0x54d4d1(){const _0x5f5a95=_0x24354a[_0x3ace0a([0x6a,0x74,0x69])],_0x5691ea=window[_0x3ace0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f5a95[_0x3ace0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f5a95[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39fb37={..._0x24354a,[_0x3ace0a([0x6a,0x74,0x69])]:_0x5f5a95[_0x3ace0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f5a95[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39fb37[_0x3ace0a([0x76,0x63])],_0xd7559(_0x39fb37)==_0x5691ea;}}}async function _0x33ebb3(){let _0x21975e=!0x0;try{const _0x17f150=_0x1d83fb[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])](_0x3ace0a([0x2e])),[_0x31fc4a,_0x32385f,_0x387fbe]=_0x17f150;return _0x10ec69(_0x31fc4a),await _0xe461e3(_0x31fc4a,_0x32385f,_0x387fbe),_0x21975e;}catch{return!0x1;}function _0x10ec69(_0x19bf2a){const _0x59f338=_0x5a6c2c(_0x19bf2a);_0x59f338&&_0x59f338[_0x3ace0a([0x61,0x6c,0x67])]==_0x3ace0a([0x45,0x53,0x32,0x35,0x36])||(_0x21975e=!0x1);}async function _0xe461e3(_0x3a2b2b,_0x463a2b,_0x23467a){const _0x2dae81=window[_0x3ace0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ace0a([0x66,0x72,0x6f,0x6d])](_0x9f9ae3(_0x23467a),_0x230945=>_0x230945[_0x3ace0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xfc63e=new window[(_0x3ace0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ace0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a2b2b+_0x3ace0a([0x2e])+_0x463a2b),_0x353e2b=window[_0x3ace0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ace0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x353e2b)return;const _0x4e6055=await _0x353e2b[_0x3ace0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ace0a([0x6a,0x77,0x6b]),_0x5df680,{[_0x3ace0a([0x6e,0x61,0x6d,0x65])]:_0x3ace0a([0x45,0x43,0x44,0x53,0x41]),[_0x3ace0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ace0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ace0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x353e2b[_0x3ace0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ace0a([0x6e,0x61,0x6d,0x65])]:_0x3ace0a([0x45,0x43,0x44,0x53,0x41]),[_0x3ace0a([0x68,0x61,0x73,0x68])]:{[_0x3ace0a([0x6e,0x61,0x6d,0x65])]:_0x3ace0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e6055,_0x2dae81,_0xfc63e)||(_0x21975e=!0x1);}}function _0x5a6c2c(_0x1a541b){return _0x1a541b[_0x3ace0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ace0a([0x65,0x79]))?JSON[_0x3ace0a([0x70,0x61,0x72,0x73,0x65])](_0x9f9ae3(_0x1a541b)):null;}function _0x9f9ae3(_0x10cf0f){return window[_0x3ace0a([0x61,0x74,0x6f,0x62])](_0x10cf0f[_0x3ace0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ace0a([0x2b]))[_0x3ace0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ace0a([0x2f])));}function _0xd7559(_0x28f1a0){let _0x2fd63e=0x1505;function _0x3d1ced(_0x3f6173){for(let _0x58b28c=0x0;_0x58b28c<_0x3f6173[_0x3ace0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58b28c++){const _0x1f743f=_0x3f6173[_0x3ace0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x58b28c);_0x2fd63e=(_0x2fd63e<<0x5)+_0x2fd63e+_0x1f743f,_0x2fd63e&=_0x2fd63e;}}function _0x1264d4(_0x4ef103){Array[_0x3ace0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ef103)?_0x4ef103[_0x3ace0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1264d4):_0x4ef103&&typeof _0x4ef103==_0x3ace0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ace0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ef103)[_0x3ace0a([0x73,0x6f,0x72,0x74])]()[_0x3ace0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27f68c,_0x5d2c2d])=>{_0x3d1ced(_0x27f68c),_0x1264d4(_0x5d2c2d);}):_0x3d1ced(window[_0x3ace0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ef103));}return _0x1264d4(_0x28f1a0),_0x2fd63e>>>0x0;}function _0x2f7ac7(_0x5b22e2){return _0x5b22e2[_0x3ace0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ace0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ace0a([0x30]));}function _0x2936db(_0x35cd66){return _0x35cd66[_0x3ace0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ace0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ace0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x30508b(_0x371dac){return _0x513cfe[_0x3ace0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ace0a([0x68,0x61,0x73])](_0x371dac);}function _0x17de33(_0x50fbf7){return _0x513cfe[_0x3ace0a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ace0a([0x67,0x65,0x74])](_0x50fbf7);}function _0x47844c(){}function _0x3ace0a(_0x162aeb){return _0x162aeb['map'](_0x209c73=>String['fromCharCode'](_0x209c73))['join']('');}_0x3fcd52(await _0x52b5f8());}(this);}['destroy'](){const _0x2b2200=this['editor']['plugins']['get'](o),_0x35bd59=this['editor']['config']['get']('collaboration.channelId');for(const _0x37df35 of _0x2b2200['getCommentThreads']({'channelId':_0x35bd59}))_0x2b2200['_detachCommentThread'](_0x37df35['id']),_0x2b2200['_threads']['delete'](_0x37df35['id']);super['destroy']();}['hasMarkerForId'](_0x1ce9d9){return this['getAllMarkersForId'](_0x1ce9d9)['length']>0x0;}['getAllMarkersForId'](_0x1aaf70){const _0x215253=[];for(const _0x133044 of this['editor']['model']['markers'])_0x133044['name']['startsWith']('comment:'+_0x1aaf70)&&_0x215253['push'](_0x133044);return _0x215253;}['scrollToThreadMarker'](_0x3f1754){setTimeout(()=>{const _0x14c6d6=this['_getTargetForId'](_0x3f1754);if(!_0x14c6d6)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x3f1754&&nt({'target':_0x14c6d6[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0xf1eb3){this['editor']['model']['change'](()=>{for(const _0x5bae32 of this['getAllMarkersForId'](_0xf1eb3))this['editor']['editing']['reconvertMarker'](_0x5bae32);});}['_attachArchivedThread'](_0x31f878){const _0x318d73=this['editor']['plugins']['get'](o),_0x2ed13f=this['editor']['plugins']['get'](b),_0x24879c=_0x318d73['getCommentThread'](_0x31f878);if(!_0x24879c['isAttached']){const _0x154609=_0x24879c['attachTo'](()=>this['_getTargetForId'](_0x24879c['id']));_0x2ed13f['registerAnnotation'](_0x154609),_0x24879c['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x1aa97d=this['editor'],_0x22e6be=_0x1aa97d['plugins']['get'](it);_0x1aa97d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x1df99d,_0x26d71b)=>{const {id:_0x4e1fe5}=ft(_0x1df99d['markerName']),_0xcc9149=_0x1aa97d['plugins']['get'](o)['getCommentThread'](_0x4e1fe5),_0x26eb90=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x4e1fe5;let _0x2a612b;if(_0xcc9149&&_0xcc9149['isResolved']&&!_0x26eb90&&_0x1df99d['item'])return _0x26d71b['consumable']['consume'](_0x1df99d['item'],'addMarker:'+_0x1df99d['markerName']),_0x26d71b['consumable']['consume'](_0x1df99d['item'],'removeMarker:'+_0x1df99d['markerName']),null;const _0x484f54=['ck-comment-marker'];return _0x26eb90&&_0x484f54['push']('ck-comment-marker--active'),_0x2a612b=_0xcc9149?.['length']?_0xcc9149['comments']['first']['author']['id']:_0x22e6be['me']['id'],{'classes':_0x484f54,'attributes':{'data-comment':_0x4e1fe5,'data-author-id':_0x2a612b}};}}),_0x1aa97d['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x17e2af,{options:_0x331ddc})=>{if(_0x331ddc['showCommentHighlights'])return null;const _0x4e6a1b=_0x1aa97d['plugins']['get'](o),_0x2c26df=_0x1aa97d['model']['markers']['get'](_0x17e2af),{id:_0x34bddb,part:_0x1cc6b7}=ft(_0x17e2af);return _0x2c26df&&!_0x2c26df['affectsData']||_0x331ddc['ignoreResolvedComments']&&_0x4e6a1b['getCommentThread'](_0x34bddb)?.['isResolved']?null:{'group':'comment','name':_0x1cc6b7?_0x34bddb+':'+_0x1cc6b7:_0x34bddb};}}),_0x1aa97d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x3260f9,{writer:_0x15a401})=>_0x15a401['createElement']('$marker',{'data-name':'comment:'+_0x3260f9['getAttribute']('id')})}),_0x1aa97d['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x5c4134=this['editor'],_0x33f9f7=_0x5c4134['plugins']['get'](o),_0x41bc86=new Set(),_0x25ed98=new Set();_0x5c4134['model']['document']['registerPostFixer'](_0x46f205=>{let _0x15230e=!0x1;for(const {name:_0x31978e,data:_0x40d6ce}of _0x5c4134['model']['document']['differ']['getChangedMarkers']()){const {group:_0x3e4dd9,id:_0x50f820}=ft(_0x31978e);let _0x18c4aa=_0x40d6ce['newRange'];if('comment'!==_0x3e4dd9||!_0x18c4aa)continue;const _0x43666b='$graveyard'===_0x18c4aa['root']['rootName'];_0x43666b||(_0x18c4aa=ht(_0x18c4aa,_0x5c4134['model']),!_0x18c4aa||_0x18c4aa['isCollapsed']||!_0x40d6ce['newRange']||_0x18c4aa['isEqual'](_0x40d6ce['newRange']))?_0x5c4134['model']['hasContent'](_0x18c4aa)&&!_0x43666b?this['isThreadsLoadingPaused']?_0x41bc86['add'](_0x31978e):this['_handleThreadMarker'](_0x31978e,_0x50f820):(_0x25ed98['add'](_0x31978e),_0x41bc86['delete'](_0x31978e),_0x46f205['removeMarker'](_0x31978e),_0x15230e=!0x0):(_0x46f205['updateMarker'](_0x31978e,{'range':_0x18c4aa}),_0x15230e=!0x0);}return _0x15230e;}),this['on']('change:isThreadsLoadingPaused',(_0x267475,_0x2aed02,_0x4fa042)=>{if(!_0x4fa042&&_0x41bc86['size'])for(const _0x1f2a59 of _0x41bc86){const {id:_0x591251}=ft(_0x1f2a59);_0x41bc86['delete'](_0x1f2a59),_0x5c4134['model']['markers']['get'](_0x1f2a59)&&this['_handleThreadMarker'](_0x1f2a59,_0x591251);}}),this['listenTo'](_0x5c4134['model']['document'],'change',()=>{for(const {name:_0xe2f669,data:{newRange:_0x313b34}}of _0x5c4134['model']['document']['differ']['getChangedMarkers']()){const {group:_0xd13067,id:_0x48e271}=ft(_0xe2f669);if('comment'!==_0xd13067)continue;const _0x1a1a6c=_0x33f9f7['getCommentThread'](_0x48e271),_0x23d8aa=this['hasMarkerForId'](_0x48e271);_0x1a1a6c&&(!_0x1a1a6c['_hasTargetInContent']&&_0x313b34&&_0x5c4134['editing']['view']['once']('render',()=>{const _0x5ad162=_0x5c4134['plugins']['get'](y),_0x405d9b=_0x33f9f7['_threadToController']['get'](_0x1a1a6c)['view'];_0x5ad162['getByInnerView'](_0x405d9b)['refreshVisibility']();},{'priority':'low'}),_0x1a1a6c['_hasTargetInContent']=_0x23d8aa||!!_0x313b34),_0x313b34||(_0x25ed98['add'](_0xe2f669),_0x41bc86['delete'](_0xe2f669));}for(const _0x227836 of _0x25ed98){const {id:_0x3aa6a2}=ft(_0x227836),_0x296baf=_0x33f9f7['getCommentThread'](_0x3aa6a2);if(_0x41bc86['delete'](_0x227836),!_0x296baf)continue;const _0xffc7d7=this['hasMarkerForId'](_0x3aa6a2);_0xffc7d7||_0x296baf['isSubmitted']?_0xffc7d7||_0x296baf['unlinkedAt']||_0x296baf['setUnlinkedAt'](new Date()):_0x296baf['remove']();}_0x25ed98['clear']();});}['_handleInitialThreads'](_0xd6267d){_0xd6267d['forEach'](_0x31b300=>{_0x31b300['unlinkedAt']&&this['_attachArchivedThread'](_0x31b300['id']);});}['_getTargetForId'](_0x2f2eb8){const _0x18129b=this['editor'],_0x4e4e16=this['getAllMarkersForId'](_0x2f2eb8);return et(_0x18129b['editing'],_0x4e4e16);}['_getTextContext'](_0x2d34c7){const _0x56914c=this['getAllMarkersForId'](_0x2d34c7);let _0x3ead6d='',_0x51c5f9=!0x1;for(const _0x25f20b of _0x56914c){const _0x478fc7=_0x25f20b['getRange']();for(const _0x2ed36e of Array['from'](_0x478fc7['getItems']()))_0x2ed36e['is']('$textProxy')?(_0x3ead6d&&_0x51c5f9&&(_0x3ead6d+='\x20',_0x51c5f9=!0x1),_0x3ead6d+=_0x2ed36e['data']):_0x51c5f9=!0x0;_0x51c5f9=!0x0;}return _0x3ead6d['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x37caa9,_0x3e6215){const _0x27c7f=this['editor'],_0x412b04=_0x27c7f['plugins']['get'](o);let _0x23fd7e=_0x412b04['getCommentThread'](_0x3e6215);const _0x1c68de=_0x27c7f['config']['get']('collaboration.channelId'),_0x53aaa8=_0x27c7f['plugins']['get'](b);if(_0x23fd7e&&(_0x23fd7e['unlinkedAt']&&_0x23fd7e['setUnlinkedAt'](null),_0x23fd7e['isAttached']))return _0x23fd7e;return!this['getAllMarkersForId'](_0x3e6215)[0x0]['managedUsingOperations']?_0x27c7f['editing']['view']['once']('render',()=>{if(_0x412b04['getCommentThread'](_0x3e6215))return;const _0x2c9173=_0x27c7f['plugins']['get'](y);_0x23fd7e=_0x412b04['openNewCommentThread']({'channelId':_0x1c68de,'threadId':_0x3e6215,'target':()=>this['_getTargetForId'](_0x3e6215),'context':{'type':'text','value':this['_getTextContext'](_0x3e6215)}});const _0x11b6be=_0x412b04['_threadToController']['get'](_0x23fd7e)['view'],_0x23fb27=_0x2c9173['getByInnerView'](_0x11b6be);_0x23fb27&&_0x53aaa8['registerAnnotation'](_0x23fb27);},{'priority':'low'}):_0x412b04['fetchCommentThread']({'channelId':_0x1c68de,'threadId':_0x3e6215})['then'](_0x1d25b6=>{if('destroyed'!==_0x27c7f['state']){if(_0x23fd7e=_0x1d25b6,_0x23fd7e&&!_0x23fd7e['isAttached']){const _0x561f4b=_0x23fd7e['attachTo'](()=>this['_getTargetForId'](_0x3e6215));_0x53aaa8['registerAnnotation'](_0x561f4b),_0x23fd7e['isResolved']&&this['_reconvertMarkers'](_0x3e6215);}else{if(!_0x23fd7e){const _0x43c614=this['getAllMarkersForId'](_0x3e6215);_0x27c7f['model']['change'](_0x2c8e46=>{for(const _0x12d8be of _0x43c614)_0x2c8e46['removeMarker'](_0x12d8be);});}}}}),_0x23fd7e;}['_handleThreadMarker'](_0x30f928,_0x44b208){const _0x50476b=this['_attachMarkerToThread'](_0x30f928,_0x44b208);_0x50476b&&!_0x50476b['context']&&_0x50476b['setContext']({'type':'text','value':this['_getTextContext'](_0x44b208)});}['_initAriaMarkerChangeAnnouncements'](){const _0x429406=this['editor'];rt(_0x429406['model'],({left:_0x300f37,entered:_0x3a485e})=>{for(const _0x238271 of _0x300f37)if(mt(_0x238271)){_0x429406['ui']['ariaLiveAnnouncer']['announce'](N(_0x429406['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x390e9d of _0x3a485e)if(mt(_0x390e9d)){_0x429406['ui']['ariaLiveAnnouncer']['announce'](N(_0x429406['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x9ce898)));break;}});}}function dt(_0xa76880,_0x473ffb){return _0x473ffb?_0xa76880+':'+_0x473ffb:_0xa76880;}function ht(_0xaa5df5,_0x249807){const _0xd1f59e=_0x249807['schema'],_0x3d70bd=_0x249807['createRange'](_0xaa5df5['start']);for(const _0x557d56 of _0xaa5df5['getWalker']()){const {type:_0x1dc69b,item:_0x13057c,nextPosition:_0x1866ef}=_0x557d56;if('text'===_0x1dc69b||_0xd1f59e['isObject'](_0x13057c)){const _0x5ba856=_0x249807['createPositionBefore'](_0x13057c);_0x3d70bd['isCollapsed']&&(_0x3d70bd['start']=_0x5ba856),_0x3d70bd['end']=_0x1866ef;}}return _0x3d70bd;}function mt(_0x50d740){return'comment'===ft(_0x50d740['name'])['group'];}class s extends _0x23cf76{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,r,b,y];}get['CommentsListView'](){return te;}get['CommentThreadInputView'](){return ie;}['init'](){const _0x180b3b=this['editor'],_0x3684cd=_0x180b3b['plugins']['get'](o),_0x3dfbc8=_0x180b3b['plugins']['get'](r),_0x4e07fa=_0x180b3b['plugins']['get'](y),_0xa0ab78=_0x180b3b['plugins']['get'](b);_0x180b3b['ui']['componentFactory']['add']('comment',()=>{const _0xa796a=this['_createUIButton'](_0x28cfbe);return _0xa796a['tooltip']=!0x0,_0xa796a;}),_0x180b3b['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x371c67)),_0xa0ab78['addSourceCollector'](()=>{const _0x3f3562=[];for(const [_0x588502,_0x4cbc9b]of _0x3684cd['_threadToController']){const _0x1eddb3=_0x3dfbc8['getAllMarkersForId'](_0x588502['id']),_0x353a72=_0x1eddb3['map'](_0x242cc4=>_0x242cc4['getRange']());_0x1eddb3['length']>0x0&&_0x3f3562['push']([_0x4cbc9b['view'],_0x353a72]);}return _0x3f3562;}),this['listenTo'](_0x4e07fa,'change:activeAnnotations',(_0x3fb6c6,_0x14d593,_0xf162ec)=>{const _0x592975=Array['from'](_0xf162ec)['map'](_0x1ecd16=>_0x1ecd16['innerView'])['find'](_0x86da57=>_0x3684cd['_viewToController']['has'](_0x86da57));if(!_0x592975)return void(_0x3dfbc8['activeMarker']=null);const _0xff134b=_0x3684cd['_viewToController']['get'](_0x592975)['model']['id'],_0x1961d7='comment:'+_0xff134b;_0xff134b&&_0x3dfbc8['hasMarkerForId'](_0xff134b)?_0x3dfbc8['activeMarker']=_0x1961d7:_0x3dfbc8['activeMarker']&&(_0x3dfbc8['activeMarker']=null);}),this['listenTo'](_0x3684cd,'removeCommentThread',(_0x55a6ad,{threadId:_0x572f75,isFromAdapter:_0x42a1c3})=>{!_0x42a1c3&&_0x180b3b['ui']['focusTracker']['isFocused']&&_0x3dfbc8['hasMarkerForId'](_0x572f75)&&_0x180b3b['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x3684cd,'addComment',(_0x45e729,{threadId:_0x41eaae,isFromAdapter:_0x3236bb})=>{if(_0x3236bb||!_0x3dfbc8['hasMarkerForId'](_0x41eaae)||!_0x3684cd['hasCommentThread'](_0x41eaae))return;0x1===_0x3684cd['getCommentThread'](_0x41eaae)['length']&&(_0x180b3b['editing']['view']['focus'](),_0x45e729['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x47599b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1a90ad;for(const _0x56f0dd in _0x47599b){const _0x4a6f35=_0x56f0dd,_0x3338d7=_0x47599b[_0x4a6f35];if('commentsLicenseKeyValid'==_0x3338d7||'commentsLicenseKeyInvalid'==_0x3338d7||'commentsLicenseKeyExpired'==_0x3338d7||'commentsLicenseKeyDomainLimit'==_0x3338d7||'commentsLicenseKeyNotAllowed'==_0x3338d7||'commentsLicenseKeyEvaluationLimit'==_0x3338d7||'commentsLicenseKeyUsageLimit'==_0x3338d7){delete _0x47599b[_0x4a6f35],_0x1a90ad=_0x3338d7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x1a90ad&&_0x47599b['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x1a90ad&&_0x47599b['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x1a90ad&&_0x47599b['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x1a90ad&&_0x47599b['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x1a90ad&&_0x47599b['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x1a90ad&&_0x47599b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x171f8d){const _0x342c59=this['editor'],_0x113df3=new _0x171f8d(_0x342c59['locale']),_0x1daf3f=_0x342c59['commands']['get']('addCommentThread');return _0x113df3['set']({'label':N(_0x342c59['locale'],'Comment'),'icon':_0x50c136}),_0x113df3['bind']('isEnabled')['to'](_0x1daf3f,'isEnabled',_0x1daf3f,'hasContent',(_0x338152,_0x2a2807)=>_0x338152&&_0x2a2807),this['listenTo'](_0x113df3,'execute',()=>{_0x1daf3f['execute']();}),_0x113df3;}}class i extends _0x23cf76{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x4a9f5d){super(_0x4a9f5d),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x1f93d7,_0x79ffe1,_0x3e1755)=>{_0x3e1755?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x404d72,_0x1460d7]of this['editor']['commands'])_0x1460d7['affectsData']&&'addCommentThread'!==_0x404d72&&_0x1460d7['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('RevisionTracker'))&&this['editor']['plugins']['get']('RevisionTracker')['forceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x1c9afc=this['editor']['editing']['view']['document'];this['listenTo'](_0x1c9afc,'cut',_0xbfc066=>_0xbfc066['stop'](),{'priority':'highest'}),this['listenTo'](_0x1c9afc,'clipboardInput',_0x52a2de=>_0x52a2de['stop'](),{'priority':'highest'}),this['listenTo'](_0x1c9afc,'delete',_0x45ee69=>_0x45ee69['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0xd41426,_0x2858e8]of this['editor']['commands'])_0x2858e8['affectsData']&&'addCommentThread'!==_0xd41426&&_0x2858e8['clearForceDisabled']('commentsOnlyMode');this['editor']['plugins']['has']('RevisionTracker')&&this['editor']['plugins']['get']('RevisionTracker')['clearForceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing')&&this['editor']['plugins']['get']('SourceEditing')['clearForceDisabled']('commentsOnlyMode'),this['editor']['commands']['get']('editSource')?.['clearForceDisabled']('commentsOnlyMode'),this['stopListening'](this['editor']['editing']['view']['document']);}}class j extends _0x545c79{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x384e01){super(_0x384e01),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0xdf461b=this['context']['plugins']['get'](y);this['listenTo'](_0xdf461b,'_activateAnnotation',(_0x337e53,_0x4458b8)=>{for(const _0x22b11e of this['activeUIs']){const _0x2db77b=this['_uis']['get'](_0x22b11e);(0x0,this['uisData']['get'](_0x22b11e)['filter'])(_0x4458b8)&&_0x2db77b['setActiveAnnotation'](_0x4458b8);}}),this['listenTo'](_0xdf461b,'_deactivateAllAnnotations',()=>{for(const _0x2e84e1 of this['activeUIs']){this['_uis']['get'](_0x2e84e1)['setActiveAnnotation'](null);}}),this['listenTo'](_0xdf461b['_visibleAnnotations'],'add',(_0x192cb5,_0x29e255)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x29e255);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x3a3d88){return this['activeUIs']['has'](_0x3a3d88);}['activate'](_0x16765d,_0x3d554e=this['defaultFilter']){const _0xb33df0=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x16765d))throw new _0x3c6477('annotationsuis-missing-ui',this,{'uiName':_0x16765d});this['isActive'](_0x16765d)&&this['deactivate'](_0x16765d),this['activeUIs']['add'](_0x16765d);const _0xfb77b=new S();v({'source':_0xb33df0['_visibleAnnotations'],'target':_0xfb77b,'filter':_0x3d554e}),this['uisData']['set'](_0x16765d,{'collection':_0xfb77b,'filter':_0x3d554e});const _0x23403e=this['_uis']['get'](_0x16765d);_0x23403e['attach'](_0xfb77b),this['listenTo'](_0x23403e,'change:activeAnnotation',(_0x26f244,_0x4b4558,_0x2012ee,_0x271b48)=>{_0x271b48&&_0xb33df0['_removeActiveAnnotation'](_0x271b48),_0x2012ee&&_0xb33df0['_addActiveAnnotation'](_0x2012ee);});}['deactivate'](_0x383bac){if(this['activeUIs']['delete'](_0x383bac),!this['_uis']['has'](_0x383bac))throw new _0x3c6477('annotationsuis-missing-ui',this,{'uiName':_0x383bac});const _0x52e014=this['_uis']['get'](_0x383bac);_0x52e014['detach'](),this['stopListening'](_0x52e014),this['uisData']['get'](_0x383bac)['collection']['destroy'](),this['uisData']['delete'](_0x383bac);}['switchTo'](_0x4ef4f3){if(!this['_uis']['has'](_0x4ef4f3))throw new _0x3c6477('annotationsuis-missing-ui',this,{'uiName':_0x4ef4f3});const _0x369767=this['context']['plugins']['get'](y),_0x37af30=Array['from'](_0x369767['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4ef4f3);const _0x2bab90=this['_uis']['get'](_0x4ef4f3);_0x2bab90['setActiveAnnotation'](_0x37af30),_0x2bab90['_setSelectedAnnotations']&&_0x37af30&&_0x2bab90['_setSelectedAnnotations']([_0x37af30]);}['deactivateAll'](){for(const _0x2415ea of this['activeUIs'])this['deactivate'](_0x2415ea);}['register'](_0x43e854,_0x2252ec){if(this['_uis']['has'](_0x43e854))throw new _0x3c6477('annotationsuis-register-already-registered');if('function'!=typeof _0x2252ec['attach']||'function'!=typeof _0x2252ec['detach']||'function'!=typeof _0x2252ec['setActiveAnnotation'])throw new _0x3c6477('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x43e854,_0x2252ec);}['refilterAnnotations'](){const _0x568945=this['context']['plugins']['get'](y)['collection'],_0x1b1b11=new Map(),_0x3a9256=Array['from'](this['activeUIs']);for(const _0x5b94ac of this['activeUIs']){const _0x13104e=this['uisData']['get'](_0x5b94ac)['collection'];for(const _0x49184a of _0x13104e)_0x1b1b11['set'](_0x49184a,_0x5b94ac);}for(const _0x5b592c of _0x568945){const _0x59164a=_0x1b1b11['get'](_0x5b592c);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5b592c);const _0x12bd19=_0x3a9256['find'](_0x94bc8e=>this['uisData']['get'](_0x94bc8e)['filter'](_0x5b592c));_0x59164a!==_0x12bd19&&(_0x59164a&&this['uisData']['get'](_0x59164a)['collection']['remove'](_0x5b592c),_0x12bd19&&this['uisData']['get'](_0x12bd19)['collection']['add'](_0x5b592c));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x383e2a){const _0xe615aa=[];for(const _0x1d510a of this['activeUIs']){(0x0,this['uisData']['get'](_0x1d510a)['filter'])(_0x383e2a)&&_0xe615aa['push'](_0x1d510a);}if(_0xe615aa['length']>0x1)throw new _0x3c6477('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0xe615aa,'annotationType':_0x383e2a['type']});}}const _i=/* #__PURE__ -- @preserve */
|
|
32
|
+
Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x54136c){super(_0x54136c);const _0x2c717c=this['bindTemplate'];this['set']('minHeight',0x0),this['set']('class',''),this['list']=this['createCollection'](),this['focusables']=this['createCollection'](),this['list']['delegate']('arrowup','arrowdown')['to'](this),this['focusTracker']=new _0x2b2f3d(),this['focusCycler']=new _0xd32198({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x2c717c['to']('class')],'style':{'minHeight':_0x2c717c['to']('minHeight',_0x142ddd=>'number'==typeof _0x142ddd?_i(_0x142ddd+0xa):null)},'dir':_0x54136c['uiLanguageDirection'],'role':'application','aria-label':N(_0x54136c,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x54136c,'Annotations\x20list')},'children':this['list']}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['focusCycler']['focusFirst']();}['_setupKeyboardNavigation'](){this['list']['delegate']('change:top')['to'](this),this['on']('change:top',_0x267937=>{this['_updateItemPositionInFocusables'](_0x267937['source']);}),this['list']['forEach'](_0x1c81aa=>{this['focusTracker']['add'](_0x1c81aa['element']),this['_updateItemPositionInFocusables'](_0x1c81aa);}),this['list']['on']('change',(_0xc2952c,_0x4e7e11)=>{for(const _0x48a6d4 of _0x4e7e11['removed'])this['focusTracker']['remove'](_0x48a6d4['element']),this['focusables']['remove'](_0x48a6d4);for(const _0x2bb7de of _0x4e7e11['added'])this['focusTracker']['add'](_0x2bb7de['element']),this['_updateItemPositionInFocusables'](_0x2bb7de);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x37ab98){const _0x956eed=this['focusables']['getIndex'](_0x37ab98);let _0x2e6869,_0x1aa00b;for(const _0xc4a9d9 of this['focusables'])if(_0x37ab98['top']<_0xc4a9d9['top']){_0x2e6869=_0xc4a9d9;break;}if(_0x1aa00b=_0x2e6869?this['focusables']['getIndex'](_0x2e6869):this['focusables']['length'],-0x1!==_0x956eed){if(_0x956eed===_0x1aa00b-0x1)return;this['focusables']['remove'](_0x37ab98),_0x1aa00b=_0x2e6869?this['focusables']['getIndex'](_0x2e6869):this['focusables']['length'];}this['focusables']['add'](_0x37ab98,_0x1aa00b);}}const Ot=/* #__PURE__ -- @preserve */
|
|
33
|
+
Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x2e9f39){super(_0x2e9f39),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x1d6b4a,_0x194e9a)=>_0x1d6b4a+_0x194e9a),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x56cb74=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x56cb74['to']('isAnimationDisabled',_0x181f07=>_0x181f07?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x56cb74['to']('top',_0x38e15d=>Ot(_0x38e15d))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x1a9305=this['element']['clientHeight'];_0x1a9305&&(this['height']=_0x1a9305);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x545c79{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x159d51){super(_0x159d51),this['set']('_lastItem',void 0x0),this['view']=this['_createSidebarView'](),this['set']('container',null),this['_spaceBetweenItems']=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context']['config']['define']('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}['init'](){const _0x284f70=this['context']['config']['get']('sidebar.container');_0x284f70&&this['setContainer'](_0x284f70);}['setContainer'](_0x8c28){if(!g(_0x8c28))throw new _0x3c6477('sidebar-setcontainer-invalid-element');this['container']=_0x8c28;}['_attachToContainer']({viewClass:_0x748ccf='',spaceBetweenItems:_0x328237=0x19}={}){if(!g(this['container']))throw new _0x3c6477('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x748ccf,this['_spaceBetweenItems']=_0x328237;}['rearrange']({removedAnnotation:_0x1d1bc9,previousAnnotation:_0x23939d,nextAnnotation:_0x29abc9}){const _0xefcfb6=this['getSidebarItemView'](_0x1d1bc9);this['view']['list']['remove'](_0xefcfb6),this['_destroySidebarItemView'](_0x1d1bc9),_0x23939d&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x23939d)),_0x29abc9&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x29abc9)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x4cba5f,activatedAnnotation:_0x56437e,disableAnimationOnActivatedAnnotation:_0x19a5c6}){if(this['_activeAnnotation']=_0x56437e,_0x4cba5f){_0x4cba5f['isActive']=!0x1;const _0x2942a0=this['getSidebarItemView'](_0x4cba5f);_0x2942a0&&_0x19a5c6&&(_0x2942a0['isAnimationDisabled']=!0x1);}if(_0x56437e){const _0x3f34c1=this['getSidebarItemView'](_0x56437e);_0x3f34c1&&(_0x56437e['isActive']=!0x0,_0x19a5c6&&(_0x3f34c1['isAnimationDisabled']=!0x0,_0x3f34c1['top']+=0x1),this['_alignToTargetRect'](_0x3f34c1));}}['_detachFromContainer'](_0x5f25e2){if(this['view']['element']['remove'](),_0x5f25e2){for(const _0x3d57f1 of _0x5f25e2)this['_destroySidebarItemView'](_0x3d57f1);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x2405bf,_0x5ecf12){_0x5ecf12||(_0x5ecf12=_0x2405bf['view']);const _0x163175=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x163175,_0x2405bf),this['_annotationToSidebarItemView']['set'](_0x2405bf,_0x163175),_0x163175['content']['add'](_0x5ecf12),this['listenTo'](_0x2405bf['view'],'change:targetRect',(_0x3f6436,_0x7997ef,_0x17030a)=>{const _0x505dc8=this['_getTargetTop'](_0x2405bf,_0x17030a);_0x163175['_targetTop']!=_0x505dc8&&(_0x163175['_targetTop']=_0x505dc8,this['_setItemTop'](_0x163175,_0x505dc8));}),this['listenTo'](_0x163175,'change:top',()=>{this['_recalculate'](_0x163175,'top');}),this['listenTo'](_0x163175,'change:bottom',()=>{this['_recalculate'](_0x163175,'bottom');}),this['_alignToTargetRect'](_0x163175);const _0x5dfa9e=this['_getItemBefore'](_0x163175);if(_0x5dfa9e)this['_alignAfterItem'](_0x5dfa9e,_0x163175)||this['_alignToTargetRect'](_0x163175);else this['_alignToTargetRect'](_0x163175);return this['_updateLastItem'](),this['view']['list']['add'](_0x163175),_0x163175;}['_alignForTopChange'](_0x42f71a){if(!_0x42f71a['content']['length'])return;const _0x3601f8=this['_getItemBefore'](_0x42f71a);if(!_0x3601f8)return;const _0x2522cd=this['_sidebarItemViewToAnnotation']['get'](_0x3601f8),_0x3e8985=this['_activeAnnotation'];_0x3e8985&&_0x3e8985===_0x2522cd?this['_alignAfterItem'](_0x3601f8,_0x42f71a):this['_alignBeforeItem'](_0x42f71a,_0x3601f8);}['_alignForBottomChange'](_0x1c7b4c){if(!_0x1c7b4c['content']['length'])return;const _0x5a1733=this['_getItemAfter'](_0x1c7b4c);if(!_0x5a1733)return;const _0xe3a2b9=this['_sidebarItemViewToAnnotation']['get'](_0x5a1733),_0x10515b=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x16cc0b=this['_activeAnnotation'];_0x16cc0b&&_0x16cc0b===_0xe3a2b9&&_0x10515b?(this['_alignBeforeItem'](_0x5a1733,_0x1c7b4c),this['_alignAfterItem'](_0x1c7b4c,_0x5a1733)):_0x16cc0b&&_0x16cc0b===_0xe3a2b9?this['_alignBeforeItem'](_0x5a1733,_0x1c7b4c):this['_alignAfterItem'](_0x1c7b4c,_0x5a1733);}['_recalculate'](_0x2bfa5d,_0x25f146){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x4e5794,changedProp:_0x4f183f}of this['_recalculateBuffer'])'top'===_0x4f183f?this['_alignForTopChange'](_0x4e5794):this['_alignForBottomChange'](_0x4e5794);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x2bfa5d,'changedProp':_0x25f146});}['getSidebarItemView'](_0xc21a8e){return this['_annotationToSidebarItemView']['get'](_0xc21a8e);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x2826b6){const _0x7b2128=this['getSidebarItemView'](_0x2826b6);this['stopListening'](_0x7b2128),this['stopListening'](_0x2826b6['view']),_0x7b2128['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x2826b6),this['_sidebarItemViewToAnnotation']['delete'](_0x7b2128);}['_createSidebarView'](){const _0x4968c9=new H(this['context']['locale']);return _0x4968c9['render'](),this['on']('change:_lastItem',(_0x194890,_0x1cd8f6,_0x175eca,_0x5c1180)=>{_0x5c1180&&_0x4968c9['unbind']('minHeight'),_0x175eca?_0x4968c9['bind']('minHeight')['to'](_0x175eca,'bottom'):_0x4968c9['minHeight']=null;}),_0x4968c9;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x340edb){const _0x19a8b9=this['_sidebarItemViewToAnnotation']['get'](_0x340edb),_0x146c35=_0x19a8b9&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x19a8b9)-0x1);return _0x146c35&&this['getSidebarItemView'](_0x146c35)||null;}['_getItemAfter'](_0x34a136){const _0x11b49b=this['_sidebarItemViewToAnnotation']['get'](_0x34a136),_0x14e2db=_0x11b49b&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x11b49b)+0x1);return _0x14e2db&&this['getSidebarItemView'](_0x14e2db)||null;}['_alignBeforeItem'](_0x30e9a7,_0x25d31b){_0x30e9a7['updateHeight']();const _0x23ed2f=G(_0x25d31b['bottom']+this['_spaceBetweenItems'],_0x30e9a7['top']);return!!_0x23ed2f&&(this['_setItemTop'](_0x25d31b,_0x25d31b['top']-_0x23ed2f),!0x0);}['_alignAfterItem'](_0xbee3f4,_0x2c65b4){_0xbee3f4['updateHeight']();const _0x4a28e3=G(_0xbee3f4['bottom']+this['_spaceBetweenItems'],_0x2c65b4['top']);return!!_0x4a28e3&&(this['_setItemTop'](_0x2c65b4,_0x2c65b4['top']+_0x4a28e3,!0x1),!0x0);}['_alignToTargetRect'](_0x36e478){const _0x274b50=this['_sidebarItemViewToAnnotation']['get'](_0x36e478);if(!_0x274b50||!_0x274b50['target']||!_0x274b50['targetRect'])return;const _0x2b87b5=this['_getTargetTop'](_0x274b50,_0x274b50['targetRect']);this['_setItemTop'](_0x36e478,_0x2b87b5);}['_getTargetTop'](_0x103232,_0x24c9c7){if(null===_0x24c9c7)return 0x0;if(_0x103232['target']instanceof _0x46af57)return _0x24c9c7['top'];{const _0x14c3d0=new _0x46af57(this['view']['element'])['top'];return _0x24c9c7['top']-_0x14c3d0;}}['_setItemTop'](_0x26b574,_0x1f753e,_0x55e944=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x55e944&&(_0x1f753e=Math['max'](_0x1f753e,this['_getMaxAvailableTop'](_0x26b574))),_0x26b574['top']=_0x1f753e;}['_getMaxAvailableTop'](_0x42e0a3){let _0xa8b1eb=this['_getItemBefore'](_0x42e0a3),_0x1ed028=0x0;for(;_0xa8b1eb;)_0xa8b1eb['updateHeight'](),_0x1ed028+=this['_spaceBetweenItems']+_0xa8b1eb['height'],_0xa8b1eb=this['_getItemBefore'](_0xa8b1eb);return _0x1ed028;}}function G(_0x3a5ef7,_0x89df36){return Math['max'](_0x3a5ef7-_0x89df36,0x0);}function g(_0x13de4c){return null!==_0x13de4c&&'object'==typeof _0x13de4c&&0x1===_0x13de4c['nodeType'];}class e extends _0x545c79{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b483a){super(_0x3b483a),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0xa3f224(),this['_refreshPositioningDebounced']=_0x5218cd(()=>{_0x3b483a['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0x40efab=this['context']['plugins']['get'](j),_0x4def62=this['context']['plugins']['get'](z);_0x40efab['register']('wideSidebar',this),_0x4def62['container']&&_0x40efab['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x3d26f6){if(_0x3d26f6===this['activeAnnotation'])return;const _0x175130=this['context']['plugins']['get'](z);_0x175130['_activeAnnotation']=_0x3d26f6;const _0x1fa00f=this['activeAnnotation'];_0x175130['refresh']({'blurredAnnotation':_0x1fa00f,'activatedAnnotation':_0x3d26f6}),this['activeAnnotation']=_0x3d26f6;}['attach'](_0x168ab6){this['annotations']=_0x168ab6;const _0x571791=this['context']['plugins']['get'](z);if(_0x571791['_annotations']=_0x168ab6,this['isAttached'])throw new _0x3c6477('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x571791,'set:container',()=>{this['detach'](),this['listenTo'](_0x571791,'change:container',_0x493f38=>{_0x493f38['off'](),this['attach'](_0x168ab6);});}),_0x571791['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x41f1a6=_0x794782=>{_0x794782['updateTargetRect'](),_0x571791['addAnnotation'](_0x794782);};for(const _0x203ea0 of _0x168ab6)_0x41f1a6(_0x203ea0);this['listenTo'](_0x168ab6,'add',(_0x1f01db,_0x393ae8)=>{_0x41f1a6(_0x393ae8);}),this['listenTo'](_0x168ab6,'remove',(_0x371de3,_0x7ed032,_0x236944)=>{_0x571791['rearrange']({'removedAnnotation':_0x7ed032,'previousAnnotation':_0x168ab6['get'](_0x236944-0x1),'nextAnnotation':_0x168ab6['get'](_0x236944+0x1)}),_0x7ed032===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x168ab6,'focus',(_0x177ad0,_0x287b2f)=>{this['setActiveAnnotation'](_0x287b2f);}),this['listenTo'](_0x168ab6,'blur',()=>{this['setActiveAnnotation'](null);});const _0x37fba5=this['context']instanceof _0x391341?this['context']['editors']:new _0xa3f224([this['context']]);for(const _0x80e72b of _0x37fba5)this['_integrateWithEditorAnnotations'](_0x80e72b);this['listenTo'](_0x37fba5,'add',(_0x528dbb,_0x4ba562)=>{this['listenTo'](_0x4ba562,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x4ba562);});}),this['listenTo'](_0x37fba5,'remove',(_0x5b61aa,_0x5d6c08)=>{_0x5d6c08['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x5d6c08['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x3c6477('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x271fd4=this['context']['plugins']['get'](z);_0x271fd4['_detachFromContainer'](this['annotations']),this['stopListening'](_0x271fd4),this['stopListening'](this['annotations']),this['context']instanceof _0x391341&&this['stopListening'](this['context']['editors']);for(const _0x4198ab of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4198ab);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x5c08a5){if(!_0x5c08a5['plugins']['has']('EditorAnnotations'))return;const _0x53329c=_0x5c08a5['plugins']['get']('EditorAnnotations'),_0xdde19d=()=>{const _0x208a83=_0x53329c['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x208a83[0x0]||null);};this['listenTo'](_0x53329c,'refresh',_0xdde19d),this['listenTo'](_0x53329c,'blur',(_0x257c40,{isAnnotationTracked:_0x4a39c5})=>{this['activeAnnotation']&&_0x4a39c5(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x53329c,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0xf4b5a6=>{_0x53329c['hasDomSelection']()&&(_0xdde19d(),_0xf4b5a6['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x53329c);}['_destroyEditorAnnotationsIntegration'](_0x254b86){this['stopListening'](_0x254b86),this['_editorAnnotations']['remove'](_0x254b86);}}class C extends _0x28cfbe{['counterView'];constructor(_0x4f2d80){super(_0x4f2d80);const _0x1255f4=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1bde7d,_0x39e761)=>_0x1bde7d?'...':_0x39e761['toString']()),this['set']('annotationType',''),this['icon']=_0x50c136,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x1255f4['to']('annotationType',_0x3f37c9=>'ck-annotation-counter__badge--'+_0x3f37c9),_0x1255f4['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x1255f4['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x545c79{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[z,j];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d7759){super(_0x4d7759),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x2ad553())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0xa3f224(),this['_refreshPositioningDebounced']=_0x5218cd(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x5b5349(this['context']['locale']),this['balloonPanelView']=new _0x135571(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x24efa2){this['annotations']=_0x24efa2;const _0x46205f=this['context']['plugins']['get'](z),_0x3cca7f=this['balloonPanelView'];if(_0x46205f['_annotations']=_0x24efa2,this['isAttached'])throw new _0x3c6477('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x46205f,'set:container',()=>{this['detach'](),this['listenTo'](_0x46205f,'change:container',_0x21ba4d=>{_0x21ba4d['off'](),this['attach'](_0x24efa2);});}),_0x46205f['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x282fda=_0x494d70=>{const _0x441c15=new C(this['context']['locale']);_0x46205f['addAnnotation'](_0x494d70,_0x441c15),this['_annotationToNarrowView']['set'](_0x494d70,_0x441c15),_0x441c15['bind']('isDirty','annotationType','number')['to'](_0x494d70['view'],'isDirty','type','length'),_0x441c15['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x3cca7f['content']['first']!==_0x494d70['view']?(this['_showBalloon'](_0x494d70),_0x494d70['view']['element']['focus'](),this['setActiveAnnotation'](_0x494d70)):this['setActiveAnnotation'](null);});};for(const _0x32bdcb of _0x24efa2)_0x282fda(_0x32bdcb);this['listenTo'](_0x24efa2,'add',(_0x310128,_0x21b764)=>{_0x282fda(_0x21b764);}),this['listenTo'](_0x24efa2,'remove',(_0x69ee8f,_0x493850,_0x4cfe0f)=>{this['_annotationToNarrowView']['get'](_0x493850)['destroy'](),this['_annotationToNarrowView']['delete'](_0x493850),_0x46205f['rearrange']({'removedAnnotation':_0x493850,'previousAnnotation':_0x24efa2['get'](_0x4cfe0f-0x1),'nextAnnotation':_0x24efa2['get'](_0x4cfe0f+0x1)}),_0x493850===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x24efa2,'focus',(_0x26ea03,_0x46d87f)=>{this['setActiveAnnotation'](_0x46d87f);}),this['listenTo'](_0x24efa2,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x5e0ade,_0x1470c4)=>{_0x1470c4['keyCode']===_0x12b115['esc']&&_0x3cca7f['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x3cca7f['content']['first']),this['_hideBalloon'](),_0x1470c4['stopPropagation'](),_0x1470c4['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x1b9ed0,_0x1a0f6e)=>{const _0x161211=_0x1a0f6e['target'];_0x3cca7f['isVisible']&&_0x3cca7f['element']['contains'](_0x161211)||_0x46205f['view']['element']['contains'](_0x161211)||_0x1b9ed0['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x20a9ba=>_0x20a9ba['contains'](_0x161211))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x1e623f=this['context']instanceof _0x391341?this['context']['editors']:new _0xa3f224([this['context']]);for(const _0x11191a of _0x1e623f)this['_integrateWithEditorAnnotations'](_0x11191a);this['listenTo'](_0x1e623f,'add',(_0x342d57,_0x3c225f)=>{this['listenTo'](_0x3c225f,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x3c225f);});}),this['listenTo'](_0x1e623f,'remove',(_0x1b67ac,_0x44d441)=>{_0x44d441['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x44d441['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x53fe03){if(_0x53fe03===this['activeAnnotation'])return;const _0x1bd05d=this['context']['plugins']['get'](z);if(_0x1bd05d['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x53fe03,'disableAnimationOnActivatedAnnotation':!0x0}),_0x53fe03)_0x1bd05d['getSidebarItemView'](_0x53fe03)?this['_showBalloon'](_0x53fe03):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x53fe03;}['detach'](){if(!this['isAttached'])throw new _0x3c6477('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x29df97=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x246a91=>_0x246a91['destroy']()),this['_annotationToNarrowView']['clear'](),_0x29df97['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0x391341&&this['stopListening'](this['context']['editors']);for(const _0x410ceb of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x410ceb);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['bodyCollection']['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x5d7005){if(!_0x5d7005['plugins']['has']('EditorAnnotations'))return;const _0x642766=_0x5d7005['plugins']['get']('EditorAnnotations'),_0x51ba86=this['context']['plugins']['get'](z),_0x72f422=this['annotations'],_0x39763d=this['balloonPanelView'],_0x592d9d=()=>{const _0x444629=_0x642766['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x444629),this['setActiveAnnotation'](_0x444629[0x0]||null);};this['listenTo'](_0x642766,'refresh',_0x592d9d),this['listenTo'](_0x642766,'blur',(_0x17c731,{isAnnotationTracked:_0x1f68ae})=>{this['activeAnnotation']&&_0x1f68ae(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x642766,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x72f422,'blur',_0x481ea2=>{_0x642766['hasDomSelection']()&&_0x481ea2['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0xb947c8,_0x40676c)=>{const _0x59b5bc=_0x40676c['target'];_0x39763d['isVisible']&&_0x39763d['element']['contains'](_0x59b5bc)||_0x51ba86['view']['element']['contains'](_0x59b5bc)||this['activeAnnotation']&&_0x642766['hasDomSelection']()&&(_0x592d9d(),_0xb947c8['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x642766);}['_destroyEditorAnnotationsIntegration'](_0x3409a3){_0x3409a3&&(this['stopListening'](_0x3409a3),this['_editorAnnotations']['remove'](_0x3409a3));}['_setSelectedAnnotations'](_0x4919f6){for(const _0x327901 of this['_selectedAnnotations'])_0x4919f6['includes'](_0x327901)||this['_manuallyClosedAnnotationViews']['delete'](_0x327901['view']);this['_selectedAnnotations']=_0x4919f6;}['_refreshPositioning'](){const _0x170b64=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x170b64['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x12381b){if(this['_manuallyClosedAnnotationViews']['has'](_0x12381b['view']))return;const _0x2503e9=this['balloonPanelView']['content']['first'];_0x2503e9!==_0x12381b['view']?(_0x2503e9&&this['_detachListeners'](_0x2503e9),this['_attachListeners'](_0x12381b['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x12381b['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x25a33e=this['balloonPanelView']['content']['first'],_0x1a6f0f=_0x25a33e&&this['annotations']['getByView'](_0x25a33e);if(!_0x1a6f0f||!this['_annotationToNarrowView']['has'](_0x1a6f0f))return;const _0x7ec920=this['_annotationToNarrowView']['get'](_0x1a6f0f)['element'],_0x4d5b48=(function(){const _0x1a7c00=_0x135571['defaultPositions'];return[_0x1a7c00['southArrowNorthEast'],_0x1a7c00['northArrowSouthEast'],_0x1a7c00['southArrowNorth'],_0x1a7c00['northArrowSouth'],_0x1a7c00['southArrowNorthWest'],_0x1a7c00['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x7ec920,'positions':_0x4d5b48});}['_hideBalloon'](){const _0x4285b1=this['balloonPanelView'],_0x3debf0=_0x4285b1['content']['first'];_0x3debf0&&(this['_detachListeners'](_0x3debf0),_0x4285b1['unpin'](),_0x4285b1['content']['clear']());}['_attachListeners'](_0x3d60f9){this['listenTo'](_0x3d60f9,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x3d60f9,'Esc',(_0x5ce93c,_0x5c2223)=>{this['_manuallyClosedAnnotationViews']['add'](_0x3d60f9),this['_hideBalloon'](),_0x5c2223();});}['_detachListeners'](_0x1840e2){this['stopListening'](_0x1840e2);}}class c extends _0x23cf76{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[b,_0xba2018,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x95dda){super(_0x95dda),_0x95dda['editing']['view']['addObserver'](_0x2660de),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x95dda['plugins']['get'](_0xba2018),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=_0x5218cd(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x452a83=this['editor']['plugins']['get'](j);_0x452a83['context']===this['editor']&&(_0x452a83['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x15d5d7,_0x387072)=>{const _0x165c4e=this['_balloon'];if(this['isAttached']&&_0x165c4e['visibleView']){const _0x223626=this['annotations']['getByView'](_0x165c4e['visibleView']);_0x223626&&this['_closeAnnotation'](_0x223626),_0x387072();}}));}['afterInit'](){const _0x245ea8=this['editor']['plugins']['get'](j);_0x245ea8['context']===this['editor']&&(_0x245ea8['hasActive']()||_0x245ea8['switchTo']('inline'));}['setActiveAnnotation'](_0x437827){_0x437827!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x437827&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x437827)&&this['_addAnnotationToBalloon'](_0x437827,!0x0),_0x437827['isActive']=!0x0),_0x437827||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x437827);}['attach'](_0x382d13){this['annotations']=_0x382d13;const _0x130934=this['editor']['plugins']['get'](j),_0x375d01=this['_balloon'];if(this['isAttached'])throw new _0x3c6477('inlineannotations-attach-already-attached',this);if(_0x130934['context']!==this['editor'])throw new _0x3c6477('inlineannotations-not-allowed-with-context',this);const _0x461209=this['editor']['plugins']['get'](b);this['listenTo'](_0x461209,'refresh',()=>{const _0x2e7bb2=_0x461209['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x49d247,_0xbd901d;!this['_forceRefresh']&&(_0x49d247=_0x2e7bb2,_0xbd901d=this['_selectedAnnotations'],_0x49d247['length']===_0xbd901d['length']&&_0x49d247['every'](_0x1878c9=>_0xbd901d['includes'](_0x1878c9)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2e7bb2),this['setActiveAnnotation'](_0x2e7bb2[0x0]||null));}),this['listenTo'](_0x461209,'blur',(_0x27bbf5,{isAnnotationTracked:_0xf81511})=>{this['activeAnnotation']&&_0xf81511(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x461209,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x480cc1,_0x371958,_0x2965f3)=>{_0x2965f3||this['setActiveAnnotation'](null);}),this['listenTo'](_0x382d13,'remove',(_0x864c36,_0x13f25f)=>{this['_removeAnnotationFromBalloon'](_0x13f25f),_0x13f25f===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x375d01,'change:visibleView',(_0x5232e0,_0x492227,_0x28aac0,_0x315e06)=>{_0x315e06&&this['stopListening'](_0x315e06);const _0x40c845=_0x382d13['getByView'](_0x28aac0);_0x28aac0&&_0x40c845&&(this['listenTo'](_0x28aac0,'change:height',()=>{_0x375d01['updatePosition']();}),this['listenTo'](_0x28aac0,'Esc',()=>{this['_closeAnnotation'](_0x40c845),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x40c845&&this['setActiveAnnotation'](_0x40c845));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x375d01['visibleView']&&(_0x382d13['getByView'](_0x375d01['visibleView'])&&_0x375d01['updatePosition']());}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',()=>{this['_forceRefresh']=!0x0,this['_manuallyClosed']['clear']();}),this['editor']['editing']['view']['document']['selection']['editableElement']&&this['editor']['editing']['view']['focus'](),this['isAttached']=!0x0;}['detach'](){if(!this['isAttached'])throw new _0x3c6477('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1474bd of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1474bd);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x414d34){for(const _0x4bd545 of this['_selectedAnnotations'])_0x414d34['includes'](_0x4bd545)||this['_manuallyClosed']['delete'](_0x4bd545);for(const _0x3aa32c of this['annotations'])_0x414d34['includes'](_0x3aa32c)||this['_removeAnnotationFromBalloon'](_0x3aa32c);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x4a2574 of _0x414d34)this['_addAnnotationToBalloon'](_0x4a2574);}this['_selectedAnnotations']=_0x414d34;}['_addAnnotationToBalloon'](_0x283da2,_0x135d0b=!0x1){this['_manuallyClosed']['has'](_0x283da2)||(this['_addedAnnotations']['has'](_0x283da2)||this['_balloon']['hasView'](_0x283da2['view'])||(this['_addedAnnotations']['add'](_0x283da2),this['_balloon']['add']({'stackId':_0x283da2['view']['id'],'view':_0x283da2['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x283da2)}})),_0x135d0b&&this['_balloon']['showStack'](_0x283da2['view']['id']));}['_getBalloonTargetForAnnotation'](_0x58efb7){const _0x17656c=_0x58efb7['target'],_0xe4603b=this['editor']['editing']['view'],_0x529b4c=_0xe4603b['document']['selection']['getFirstRange'](),_0x27c9a0=_0xe4603b['domConverter']['viewRangeToDom'](_0x529b4c);if(_0x27c9a0['collapse'](!0x0),_0x17656c){if(_0x17656c instanceof _0x46af57)return _0x17656c;let _0x391694=[];for(const _0x67c00d of _0x17656c)_0x391694['push'](...F(_0x67c00d['getClientRects']()));_0x391694=function(_0x1adbf8){const _0x563dac=[];let _0x13cf64=_0x1adbf8[0x0];for(let _0x1b9539=0x1;_0x1b9539<_0x1adbf8['length'];_0x1b9539++)P(_0x13cf64,_0x1adbf8[_0x1b9539])?_0x13cf64['width']+=_0x1adbf8[_0x1b9539]['width']:(_0x563dac['push'](_0x13cf64),_0x13cf64=_0x1adbf8[_0x1b9539]);return _0x563dac['push'](_0x13cf64),_0x563dac;}(_0x391694);const _0x4c6ae5=_0x27c9a0['getBoundingClientRect']();return _0x391694['find'](_0x2275d3=>_0x2275d3['top']<=_0x4c6ae5['top']&&_0x2275d3['bottom']>=_0x4c6ae5['bottom']&&_0x2275d3['left']<=_0x4c6ae5['left']&&_0x2275d3['right']>=_0x4c6ae5['right'])||_0x391694[0x0];}return _0x58efb7['targetRect']||_0x27c9a0;}['_removeAnnotationFromBalloon'](_0x5af45a){this['_addedAnnotations']['has'](_0x5af45a)&&this['_balloon']['hasView'](_0x5af45a['view'])&&(this['_addedAnnotations']['delete'](_0x5af45a),this['_balloon']['remove'](_0x5af45a['view']));}['_closeAnnotation'](_0x4b4845){this['_manuallyClosed']['add'](_0x4b4845),this['_removeAnnotationFromBalloon'](_0x4b4845);}}function F(_0x1864b9){return Array['from'](_0x1864b9)['map'](DOMRect['fromRect']);}function P(_0x3392e4,_0x2e815b){return _0x3392e4['top']===_0x2e815b['top']&&_0x3392e4['bottom']===_0x2e815b['bottom']&&_0x3392e4['right']===_0x2e815b['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x657d22,_0x1dc112){super(_0x657d22),this['set']('isEmpty',!_0x1dc112['length']),this['focusTracker']=new _0x2b2f3d(),this['_annotationViews']=_0x1dc112,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0xd32198({'focusables':_0x1dc112,'focusTracker':this['focusTracker']}),this['listenTo'](_0x1dc112,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x1dc112,'remove',(_0x3f2f2b,_0x1e29b7)=>{_0x1e29b7['isActive']&&this['focus'](),_0x1dc112['length']||(this['isEmpty']=!0x0);});const _0x2efdd2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x657d22,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x1dc112},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x2efdd2['if']('isEmpty','ck-hidden',_0x4aaf1d=>!_0x4aaf1d)]},'children':[{'text':N(_0x657d22,'EMPTY_COMMENTS_ARCHIVE')}]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy']();}['focus'](){this['focusCycler']['first']?this['focusCycler']['focusFirst']():this['element']['focus']();}['_setupKeyboardNavigation'](){for(const _0x573e64 of this['_annotationViews'])this['focusTracker']['add'](_0x573e64['element']);this['_annotationViews']['on']('change',(_0x44ca2f,{added:_0x146ced,removed:_0x4004c6})=>{for(const _0x2be9c1 of _0x146ced)this['focusTracker']['add'](_0x2be9c1['element']);for(const _0x58c612 of _0x4004c6)this['focusTracker']['remove'](_0x58c612['element']);});}}class p extends _0x545c79{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x4ca135){super(_0x4ca135),this['archivedThreads']=new _0xa3f224();}['init'](){const _0x215a70=this['context'],_0x5acab8=_0x215a70['plugins']['get'](o),_0x2afd18=_0x215a70['plugins']['get'](y);this['listenTo'](_0x5acab8,'addCommentThread',(_0x28d48e,{threadId:_0x1f79d1})=>{const _0x1e9f06=_0x5acab8['getCommentThread'](_0x1f79d1);_0x1e9f06['archivedAt']&&this['archivedThreads']['add'](_0x1e9f06,this['_calculatePosition'](_0x1e9f06['archivedAt'])),this['listenTo'](_0x1e9f06,'change:archivedAt',(_0x5560ea,_0x326add,_0x4587fe)=>{_0x4587fe?this['archivedThreads']['has'](_0x1e9f06)||this['archivedThreads']['add'](_0x1e9f06,this['_calculatePosition'](_0x1e9f06['archivedAt'])):this['archivedThreads']['has'](_0x1e9f06)&&this['archivedThreads']['remove'](_0x1e9f06);});}),this['listenTo'](_0x5acab8,'removeCommentThread',(_0x57ce90,{threadId:_0x250c49})=>{const _0x3e2511=_0x5acab8['getCommentThread'](_0x250c49);this['stopListening'](_0x3e2511),this['archivedThreads']['has'](_0x3e2511)&&this['archivedThreads']['remove'](_0x3e2511);},{'priority':'highest'}),this['listenTo'](_0x2afd18['collection'],'focus',(_0x44b60c,_0x2ed1d1)=>{_0x2ed1d1['isVisible']||(_0x2ed1d1['isActive']=!0x0,_0x2afd18['activate'](_0x2ed1d1));});}['_calculatePosition'](_0x875f6f){const _0x16acd6=[...this['archivedThreads']]['findIndex'](_0x4c6dad=>_0x4c6dad['archivedAt']<_0x875f6f);return _0x16acd6>-0x1?_0x16acd6:this['archivedThreads']['length'];}}class a extends _0x23cf76{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x524ca0];}constructor(_0x4257ea){super(_0x4257ea),this['annotationViews']=new _0x10f58f(),this['_pendingThreads']=[];}['init'](){const _0x34e787=this['editor'],_0x4f5391=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x34e787['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x28cfbe,!0x0)),_0x34e787['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x243c90=this['_createCommentsArchiveButton'](_0x371c67);return _0x243c90['set']({'role':'menuitemcheckbox'}),_0x243c90;});const _0x494c13=_0x34e787['plugins']['get'](p),_0x459123=_0x34e787['plugins']['get']('Annotations'),_0xb13344=_0x34e787['plugins']['get']('CommentsRepository');_0x494c13['archivedThreads']['forEach'](_0x223e6e=>{this['_handleNewThread'](_0x223e6e);}),this['listenTo'](_0x494c13['archivedThreads'],'add',(_0x478eab,_0xb5970f)=>{this['_handleNewThread'](_0xb5970f);}),this['listenTo'](_0x459123['collection'],'add',(_0x246ea9,_0x5572ac)=>{const _0x253932=this['_pendingThreads']['find'](_0x42f449=>{const _0x45457c=_0xb13344['_threadToController']['get'](_0x42f449);return _0x45457c&&_0x5572ac['innerView']===_0x45457c['view'];});if(_0x253932){const _0x595cdc=this['_calculatePosition'](_0x253932['archivedAt']);this['_addAnnotationToArchive'](_0x5572ac,_0x595cdc),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x253932),0x1);}}),this['listenTo'](_0x494c13['archivedThreads'],'remove',(_0x14d177,_0x10542d)=>{const _0x3f9de7=_0x34e787['config']['get']('collaboration.channelId');if(!_0x3f9de7||_0x10542d['channelId']===_0x3f9de7){if(this['_pendingThreads']['includes'](_0x10542d))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x10542d),0x1);else{const _0x7c991d=_0xb13344['_threadToController']['get'](_0x10542d),_0x11f17c=_0x459123['getByInnerView'](_0x7c991d['view']);this['annotationViews']['remove'](_0x11f17c['view']),this['stopListening'](_0x11f17c),this['stopListening'](_0x11f17c['focusableElements']);}}}),this['listenTo'](_0x459123['collection'],'add',(_0x1de8f0,_0x312dec)=>{this['listenTo'](_0x312dec,'escape',_0x4f5391);}),this['listenTo'](_0x459123['collection'],'remove',(_0x2fa815,_0x15df40)=>{this['stopListening'](_0x15df40,'escape',_0x4f5391);});}['_addAnnotationToArchive'](_0x97726f,_0x281cad){this['listenTo'](_0x97726f,'set:isVisible',_0x5361cf=>{_0x5361cf['return']=!0x1,_0x5361cf['stop']();}),this['annotationViews']['add'](_0x97726f['view'],_0x281cad);}['_handleNewThread'](_0x287e6f){const _0x371dd6=this['editor']['plugins']['get']('CommentsRepository'),_0x54390a=this['editor']['plugins']['get']('Annotations'),_0x333549=this['editor']['config']['get']('collaboration.channelId');if(!_0x333549||_0x287e6f['channelId']===_0x333549){const _0x8af813=_0x371dd6['_threadToController']['get'](_0x287e6f);if(!_0x8af813)return void this['_pendingThreads']['push'](_0x287e6f);const _0x12c2ef=this['_calculatePosition'](_0x287e6f['archivedAt']),_0x374d6d=_0x54390a['getByInnerView'](_0x8af813['view']);_0x374d6d['isVisible']&&_0x54390a['_visibleAnnotations']['remove'](_0x374d6d),this['_addAnnotationToArchive'](_0x374d6d,_0x12c2ef);}}['_calculatePosition'](_0x32c581){const _0x503cf5=this['editor']['config']['get']('collaboration.channelId'),_0x5d26c4=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x10e30c=>_0x10e30c['channelId']===_0x503cf5)['findIndex'](_0x182b3f=>_0x182b3f['archivedAt']<_0x32c581);return _0x5d26c4<0x0||_0x5d26c4>this['annotationViews']['length']?this['annotationViews']['length']:_0x5d26c4-0x1;}['_toggleDialog'](){const _0x21faea=this['editor'],_0x30445c=_0x21faea['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x21faea['locale'],this['annotationViews'])),'commentsArchive'===_0x30445c['id']?_0x30445c['hide']():_0x30445c['show']({'id':'commentsArchive','title':N(_0x21faea['locale'],'COMMENTS_ARCHIVE'),'icon':_0x307d20,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x1d0d6d['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x1ff421,_0x495a13=!0x1){const _0x14a946=this['editor']['locale'],_0x3c60f9=this['editor']['plugins']['get']('Dialog'),_0x454ea0=new _0x1ff421(_0x14a946);return _0x454ea0['bind']('isEnabled')['to'](this,'isEnabled'),_0x454ea0['bind']('isOn')['to'](_0x3c60f9,'id',_0x3151a3=>'commentsArchive'===_0x3151a3),_0x454ea0['set']({'label':N(_0x14a946,'COMMENTS_ARCHIVE'),'icon':_0x307d20,'isToggleable':!0x0}),_0x495a13&&(_0x454ea0['tooltip']=!0x0),this['listenTo'](_0x454ea0,'execute',()=>this['_toggleDialog']()),_0x454ea0;}['_hideDialogOnAnnotationEscape']=_0x2345c1=>{const _0x375704=_0x2345c1['source'];if(!this['annotationViews']['has'](_0x375704['view']))return;const _0x52156a=this['editor']['plugins']['get']('Dialog');_0x52156a['isOpen']&&'commentsArchive'===_0x52156a['id']&&(_0x52156a['hide'](),_0x2345c1['stop']());};}class gi extends _0x23cf76{static get['requires'](){return[o,r,s,p,a,i,e,n,c];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{ot as AddCommentThreadCommand,T as Annotation,S as AnnotationCollection,C as AnnotationCounterButtonView,E as AnnotationView,y as Annotations,R as AnnotationsSidebarItemView,H as AnnotationsSidebarView,j as AnnotationsUIs,si as BaseCommentThreadView,di as BaseCommentView,wi as Comment,pi as CommentThread,vt as CommentThreadController,ie as CommentThreadInputView,gt as CommentThreadView,Tt as CommentView,gi as Comments,p as CommentsArchive,a as CommentsArchiveUI,r as CommentsEditing,te as CommentsListView,i as CommentsOnly,o as CommentsRepository,s as CommentsUI,b as EditorAnnotations,c as InlineAnnotations,n as NarrowSidebar,z as Sidebar,e as WideSidebar,v as bindAnnotationCollections};
|