@ckeditor/ckeditor5-comments 46.0.1-alpha.10 → 46.0.1-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/comments.js +1 -1
- package/dist/index.js +11 -11
- package/package.json +18 -18
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/integrations/clipboard.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheadercontextview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.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(_0x74cc63={}){function _0x5d3567(_0x2a8e0b){return _0x2a8e0b['map'](_0x5238d3=>String['fromCharCode'](_0x5238d3))['join']('');}(_0x74cc63=Object['assign']({},_0x74cc63))['plugins']||(_0x74cc63['plugins']=Rt['defaultPlugins']),super(_0x74cc63),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x5d3567([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d3567([0x76,0x69,0x65,0x77])][_0x5d3567([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d3567([0x61,0x75,0x74,0x6f]),this[_0x5d3567([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5d3567([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d3567([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5d3567([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5d3567([0x6f,0x6b])});}['create'](){const _0x4e175c=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x4e175c))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0x35a6e0=>{const _0x80f297=this['model']['document']['getRoot'](),_0x3908e0=_0x80f297&&_0x80f297['getChild'](_0x80f297['childCount']-0x1);_0x35a6e0['setSelection'](_0x3908e0,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x2a1f18=this['editing']['view'],_0x19f323=_0x2a1f18['document']['getRoot'](),_0x4daf3a=_0x19f323['getChild'](0x0);_0x19f323['childCount']>0x1||!_0x4daf3a||'p'!=_0x4daf3a['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x2a1f18,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x4daf3a['placeholder']=this['placeholder']),St({'view':_0x2a1f18,'element':_0x4daf3a,'keepOnFocus':!0x0}),this['placeholderElement']=_0x4daf3a);}}class os extends xt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x49e8e8,_0x87b17c={}){super(_0x49e8e8),this['editor']=null,this['_editorConfig']=_0x87b17c,this['set']('value',_0x87b17c['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x49e8e8,'Reply...')),this['set']('submitLabel',N(_0x49e8e8,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new Et(),this['focusTracker']=new _0x4d6aaa(),this['focusCycler']=new _0x169d91({'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',(_0x4e9dd9,_0x1ee0c5)=>{this['cancelButtonView']['fire']('execute'),_0x1ee0c5();}),this['keystrokes']['set']('Ctrl+Enter',(_0x27b16a,_0x4ed63a)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x4ed63a());}),this['on']('submit',(_0x3effa1,_0xdda2d9)=>{_0xdda2d9['length']>0xfde8?(alert(N(_0x49e8e8,'TOO_LONG_COMMENT_ALERT',[_0xdda2d9['length'],0xfde8])),_0x3effa1['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4aa2ac=this['editor'];this['element']['insertBefore'](_0x4aa2ac['ui']['element'],this['element']['firstChild']),_0x4aa2ac['model']['document']['on']('change',()=>this['value']=_0x4aa2ac['getData']()),_0x4aa2ac['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4aa2ac['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x33d725){-0x1===_0x33d725?(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:_0x46ecf3}=this,_0x100869=new _0x528043(_0x46ecf3);return _0x100869['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x100869['withText']=!0x0,_0x100869['bind']('label')['to'](this,'submitLabel'),_0x100869['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x100869['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x3339bd,_0x126c12)=>!_0x126c12&&!!_0x3339bd['trim']()),_0x100869;}['_createCancelButton'](){const {locale:_0x2db314}=this,_0x14d083=new _0x528043(_0x2db314);return _0x14d083['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x14d083['label']=N(_0x2db314,'Cancel'),_0x14d083['withText']=!0x0,_0x14d083['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x14d083;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x10f059=>{this['focusTracker']['add'](_0x10f059['element']);}),this['focusables']['on']('change',(_0x1b6b3e,_0x1d1f31)=>{for(const _0x1f3961 of Array['from'](_0x1d1f31['added'])['reverse']())this['focusTracker']['add'](_0x1f3961['element']);});}}class ie extends xt{constructor(_0xe86984,_0x206463,_0x1821d){super(_0xe86984),this['commentInputView']=new os(_0xe86984,_0x1821d),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x46881c,_0x2a5df3)=>_0x46881c||!!_0x2a5df3),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 _0x4d02d1(_0xe86984,_0x206463),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'](_0x5b4993){this['commentInputView']['focus'](_0x5b4993);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x47dba4,_0x2df5bb)=>{const {submitButtonView:_0x3c4fab,cancelButtonView:_0x58fa16,editor:_0x55e0c1}=this['commentInputView'];[_0x3c4fab['element'],_0x58fa16['element'],_0x55e0c1?_0x55e0c1['editing']['view']['getDomRoot']():null]['filter'](_0x506369=>_0x506369)['some'](_0x21fd19=>_0x21fd19['contains'](_0x2df5bb['target']))||(this['focus'](),_0x2df5bb['preventDefault']());});}}class rs extends xt{constructor(_0x2c029b){super(_0x2c029b);const _0x44881f=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x44881f['to']('count',_0x3a4c94=>N(_0x2c029b,'NUMBER_OF_COMMENTS',_0x3a4c94))}]});}}class te extends xt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x25e1aa,_0x39e7eb,_0x57aac1){super(_0x25e1aa);const _0x50b3e6=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x39e7eb['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x39e7eb,this['_config']=_0x57aac1,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x4d6aaa(),this['keystrokes']=new Et(),this['focusCycler']=new _0x169d91({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x419315=>this['commentViews']['map'](_0x2f0882=>_0x2f0882['element'])['includes'](_0x419315['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x25e1aa),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x5b1120=>_0x5b1120-this['_config']['maxCommentsWhenCollapsed']);for(const _0x158546 of _0x39e7eb['comments'])this['_handleNewCommentModel'](_0x158546);this['_handleInfoComment'](),this['listenTo'](_0x39e7eb['comments'],'add',(_0x20eef0,_0x2e5fc5)=>{const _0x3f4ee1=this['_calculatePosition'](_0x2e5fc5);this['length']++,this['_handleNewCommentModel'](_0x2e5fc5,_0x3f4ee1),this['refreshVisibleViews']();}),this['listenTo'](_0x39e7eb['comments'],'remove',(_0x305c1f,_0x1972ec)=>{this['length']--,this['_handleRemoveCommentModel'](_0x1972ec),this['refreshVisibleViews']();}),this['listenTo'](_0x39e7eb,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x39e7eb,'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',_0x50b3e6['if']('length','ck-hidden',_0x309bab=>!_0x309bab)],'aria-label':N(_0x25e1aa,'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'](_0x3b518c){-0x1===_0x3b518c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x2782ca of this['commentViews'])_0x2782ca['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x13a540,_0x3f3435){const _0x556395=new this['_config']['CommentView'](this['locale'],_0x13a540,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x556395['viewUid']=_0x13a540['id'],_0x556395['delegate']('removeComment')['to'](this),_0x556395['delegate']('updateComment')['to'](this),_0x556395['delegate']('resolveCommentThread')['to'](this),_0x556395['delegate']('editorReady')['to'](this),_0x556395['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x556395,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x556395,_0x3f3435);}['_calculatePosition'](_0x1422bf){const _0x1de627=this['_model']['_findOptimalIndex'](_0x1422bf);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x1422bf['authoredAt']?_0x1de627-0x1:_0x1de627:_0x1de627-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x1faf53={'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'],_0x1faf53,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x1faf53));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x465719){const _0x132288=this['commentViews']['remove'](_0x465719['id']);this['stopListening'](_0x132288),_0x132288['isEditMode']&&this['_updateHasDirtyComment'](),_0x132288['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x52928c=>_0x52928c['isEditMode']);}['_rearrangeCollapse'](){const _0x2fce59=function(_0x38dfb8){const _0x482998=new _0x717f3a();for(const _0x32c708 of _0x38dfb8)_0x482998['add'](_0x32c708);return _0x482998;}(this['commentViews']),_0x7565ae=this['_collapsedCommentsView']['count'];for(let _0x3fd0ac=0x1;_0x3fd0ac<=_0x7565ae;_0x3fd0ac++)_0x2fce59['remove'](0x1);for(const _0x3a3b5b of _0x2fce59)_0x3a3b5b['collapse']();_0x7565ae>0x0&&_0x2fce59['add'](this['_collapsedCommentsView'],0x1),ns(_0x408359(Array['from'](this['visibleViews']),Array['from'](_0x2fce59)),this['visibleViews'],_0x2fce59);}['_rearrangeExpand'](){ns(_0x408359(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x1b2723 of this['visibleViews'])_0x1b2723['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x1c9f20=>{this['focusTracker']['add'](_0x1c9f20['element']),this['keystrokes']['listenTo'](_0x1c9f20['element']);}),this['commentViews']['on']('change',(_0x3000e7,_0x4cefe7)=>{for(const _0x42464 of _0x4cefe7['removed'])this['focusTracker']['remove'](_0x42464['element']),this['keystrokes']['stopListening'](_0x42464['element']);for(const _0x38db49 of Array['from'](_0x4cefe7['added'])['reverse']())this['focusTracker']['add'](_0x38db49['element']),this['keystrokes']['listenTo'](_0x38db49['element']);});}}function ns(_0x1e9e24,_0x5727da,_0x3eeaed){let _0xf272d4=0x0;for(const _0x24b094 of _0x1e9e24)switch(_0x24b094){case'insert':_0x5727da['add'](_0x3eeaed['get'](_0xf272d4),_0xf272d4),_0xf272d4++;break;case'delete':_0x5727da['remove'](_0xf272d4);break;case'equal':_0xf272d4++;}}class oe extends xt{constructor(_0x289fff){super(_0x289fff);const _0x3c3e12=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x3c3e12['to']('contextValue',_0x2b62ce=>N(_0x289fff,'THREAD_CONTEXT_LABEL',_0x2b62ce)),'tabindex':-0x1},'children':[{'text':_0x3c3e12['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends xt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x168697,_0x48305a){super(_0x168697);const _0xb7d75d=this['bindTemplate'];this['_model']=_0x48305a,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x4d6aaa(),this['keystrokes']=new Et(),this['focusCycler']=new _0x169d91({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x15e411=>!!_0x15e411),this['bind']('contextValue')['to'](this['_model'],'context',_0x9c8344=>_0x9c8344&&_0x9c8344['value']?this['_trimContextValue'](_0x9c8344['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',_0xb7d75d['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 _0x6fc933=new _0x528043(this['locale']);return _0x6fc933['label']=N(this['locale'],'Reopen'),_0x6fc933['tooltip']=N(this['locale'],'Reopen'),_0x6fc933['icon']=_0x3a1128,_0x6fc933['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1ed049=>!_0x1ed049),_0x6fc933['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x3d98c5,_0x436902)=>_0x3d98c5&&_0x436902),_0x6fc933['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x6fc933;}['_trimContextValue'](_0x594b84){if(_0x594b84['length']<0x96)return _0x594b84;const _0x610f9e=_0x594b84['lastIndexOf']('\x20',0x93);return _0x594b84['substring'](0x0,_0x610f9e>-0x1?_0x610f9e:0x93)+'...';}['_attachContextActions'](){const _0x396f96=this['element']['querySelector']('.ck-context'),_0x10c923=_0x396f96['querySelector']('.ck-context__value');this['listenTo'](_0x396f96,'mouseenter',()=>{_0x10c923['offsetWidth']<_0x10c923['scrollWidth']&&_0x396f96['classList']['add']('overlay');}),this['listenTo'](_0x396f96,'mouseleave',()=>{_0x396f96['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x1ff866 of this['focusables'])this['focusTracker']['add'](_0x1ff866['element']),this['keystrokes']['listenTo'](_0x1ff866['element']);}['_createContextView'](){const _0x19daa5=new oe(this['locale']);return _0x19daa5['bind']('contextValue')['to'](this),_0x19daa5;}}class si extends xt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x5be2b7,_0xda838e,_0x2b2aa2,_0x33b496){super(_0x5be2b7),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0xda838e,this['_localUser']=_0x2b2aa2,this['_config']=_0x33b496,this['commentThreadHeaderView']=new Yt(_0x5be2b7,_0xda838e),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x5be2b7,N(_0x5be2b7,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x5be2b7,_0xda838e,Object['assign']({'CommentView':this['_config']['CommentView']},_0x33b496)),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',(_0x4673e8,_0x17d5dc)=>_0x4673e8||!!_0x17d5dc),this['bind']('isUnlinked')['to'](_0xda838e,'unlinkedAt',_0x1b6d30=>!!_0x1b6d30),this['bind']('ariaLabel')['to'](this,'length',_0x2ec56d=>{const _0x2548ac=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x2ec56d,_0x2548ac]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x4d6aaa(),this['keystrokes']=new Et(),this['focusCycler']=new _0x169d91({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c3f85=>_0x3c3f85['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x1355ed=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1b618e=_0x1355ed['commentInputView'];return _0x1355ed['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x1b618e,'value',(_0x3f0038,_0x1a05b2,_0x47d722,_0x27f955,_0x378748)=>!!_0x378748||!!_0x27f955&&_0x47d722&&!_0x1a05b2||_0x3f0038&&_0x47d722&&!_0x1a05b2),_0x1b618e['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x570f25,_0x29d6f2,_0x37a654)=>{let _0x24ab7e;return _0x24ab7e=_0x37a654&&_0x29d6f2?'Reply\x20to\x20reopen\x20discussion...':_0x570f25?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x24ab7e);}),_0x1b618e['bind']('submitLabel')['to'](this,'length',_0x32fffe=>N(this['locale'],_0x32fffe?'Reply':'Comment')),_0x1b618e['on']('submit',(_0x4f1398,_0x36437c)=>{this['fire']('addComment',_0x36437c),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x1b618e['on']('cancel',()=>{this['focus']();}),_0x1b618e['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x1b618e['on']('cancel',_0x1537b5=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x1537b5['stop']());}),this['on']('change:isActive',(_0x4a3b4b,_0x57fadf,_0x5689de)=>{_0x5689de||this['length']||_0x1b618e['value']||this['fire']('removeCommentThread');}),_0x1355ed;}}class gt extends/* #__PURE__ -- @preserve */
|
|
27
|
-
ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(
|
|
28
|
-
ti(di){['actionBar'];['userView'];constructor(
|
|
29
|
-
_0xc146ee(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x492c21,target:_0x2c8f16,type:_0x2a9660,isVisible:_0x12a309=!0x0}){super(),this['view']=_0x492c21,this['view']['element']||this['view']['render'](),this['_type']=_0x2a9660,this['_target']=_0x2c8f16,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x717f3a([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x293006,_0x72313a)=>{this['view']['focusTracker']['add'](_0x72313a);}),this['focusableElements']['on']('remove',(_0x37e1fe,_0x57a265)=>{this['view']['focusTracker']['remove'](_0x57a265);}),this['set']('isVisible',_0x12a309);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x2850d9=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x2850d9),_0x2850d9;}get['targetRect'](){const _0x5f3e57=this['target'];if(null===_0x5f3e57)return null;if(_0x5f3e57 instanceof _0x5199db)return _0x5f3e57;const _0x32caaa=_0x5f3e57['filter'](_0xad1432=>function(_0x565ce0){const _0x1e00b4=_0x565ce0['offsetParent'];if(_0x1e00b4)return!0x0;const _0x124ceb=_0x565ce0['getClientRects']()['item'](0x0);return!!_0x124ceb;}(_0xad1432));return 0x0===_0x32caaa['length']?null:new _0x5199db(_0x32caaa[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0xb01674){this['view']['isActive']=_0xb01674,this['view']['mainView']['isActive']=_0xb01674;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x334669){if(!(null===_0x334669||_0x334669 instanceof _0x5199db||Array['isArray'](_0x334669)&&_0x334669['every'](_0x12acc4=>fi(_0x12acc4))))throw new _0x53bd93('annotation-invalid-target',null,{'target':_0x334669});}['_getNormalizedTarget'](){const _0x50c4cf='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x50c4cf)?[_0x50c4cf]:_0x50c4cf;}}function fi(_0x334603){return null!==_0x334603&&'object'==typeof _0x334603&&'nodeType'in _0x334603&&0x1===_0x334603['nodeType'];}class S extends _0x717f3a{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x550c81=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x4d6aaa(),this['_focusTracker']['on']('change:isFocused',(_0xdaf659,_0x2abb49,_0x5601b8)=>{_0x5601b8||this['fire']('blur');});for(const _0x37cfb5 of _0x550c81)this['add'](_0x37cfb5);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x29e7e1){if(this['has'](_0x29e7e1))throw new _0x53bd93('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x29e7e1['innerView'],_0x29e7e1),this['_viewToAnnotation']['set'](_0x29e7e1['view'],_0x29e7e1);for(const _0x509ceb of _0x29e7e1['focusableElements'])this['_focusTracker']['add'](_0x509ceb);this['listenTo'](_0x29e7e1['focusableElements'],'add',(_0x2905e5,_0x5f443a)=>{this['_focusTracker']['add'](_0x5f443a);}),this['listenTo'](_0x29e7e1['focusableElements'],'remove',(_0x2dbdeb,_0x1959dc)=>{this['_focusTracker']['remove'](_0x1959dc);}),this['listenTo'](_0x29e7e1['view']['focusTracker'],'change:isFocused',(_0x198dea,_0xe1b92e,_0x37e683)=>{_0x37e683&&this['fire']('focus',_0x29e7e1);}),_0x29e7e1['updateTargetRect']();const _0x993ab2=this['_getOrderInContent'](_0x29e7e1['view']['targetRect']);return super['add'](_0x29e7e1,_0x993ab2);}['remove'](_0x39a19b){if(!this['has'](_0x39a19b))throw new _0x53bd93('annotationcollection-not-existing-item',null);this['stopListening'](_0x39a19b['view']['focusTracker']),this['stopListening'](_0x39a19b['focusableElements']);for(const _0xbe9672 of _0x39a19b['focusableElements'])this['_focusTracker']['remove'](_0xbe9672);return this['_viewToAnnotation']['delete'](_0x39a19b['view']),this['_innerViewToAnnotation']['delete'](_0x39a19b['innerView']),super['remove'](_0x39a19b);}['getByInnerView'](_0x3c7b5a){return this['_innerViewToAnnotation']['get'](_0x3c7b5a);}['getByView'](_0x4d8e79){return this['_viewToAnnotation']['get'](_0x4d8e79);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x17a3f9 of this)_0x17a3f9['updateTargetRect']();this['_sort']();}['_sort'](){const _0x30f7c4=Array['from'](this)['sort']((_0x2d3482,_0x2ba9b7)=>w(_0x2d3482['view']['targetRect'],_0x2ba9b7['view']['targetRect']));for(let _0x1c284f=_0x30f7c4['length']-0x1;_0x1c284f>0x0;_0x1c284f--){const _0x12b443=_0x30f7c4[_0x1c284f];_0x1c284f!==this['getIndex'](_0x12b443)&&(this['remove'](_0x12b443),this['add'](_0x12b443));}}['_getOrderInContent'](_0x12937f){let _0x5d0faa=0x0;if(!_0x12937f)return this['length'];for(const _0x1e3640 of this){const _0x6c9170=_0x1e3640['view']['targetRect'];if(_0x6c9170){if(w(_0x12937f,_0x6c9170)<0x0)return _0x5d0faa;_0x5d0faa++;}}return _0x5d0faa;}}function v({source:_0x52972d,target:_0x2ad5df,filter:_0x344927}){for(const _0x1564dd of _0x52972d)_0x344927(_0x1564dd)&&_0x2ad5df['add'](_0x1564dd);_0x2ad5df['listenTo'](_0x52972d,'add',(_0x41741c,_0x45d258)=>{_0x344927(_0x45d258)&&_0x2ad5df['add'](_0x45d258);}),_0x2ad5df['listenTo'](_0x52972d,'remove',(_0x26e042,_0x17e7e7)=>{_0x2ad5df['has'](_0x17e7e7)&&_0x2ad5df['remove'](_0x17e7e7);});}function w(_0x274f75,_0x45841e){if(null===_0x274f75&&null===_0x45841e)return 0x0;if(null===_0x274f75)return-0x1;if(null===_0x45841e)return 0x1;const _0x5649e1=_0x274f75['top']-_0x45841e['top'];return 0x0==_0x5649e1?_0x274f75['left']-_0x45841e['left']:_0x5649e1;}class y extends _0x233d6c{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cd84f){if(super(_0x2cd84f),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2cd84f instanceof _0x4bc116){const _0x1a7069=_0x2cd84f['locale'];_0x2cd84f['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x1a7069,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x1a7069,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x1a7069,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x1a7069,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x1a7069,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x1a7069,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x1a7069,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2f125b){this['collection']['add'](_0x2f125b);}['remove'](_0x208cb1){this['collection']['remove'](_0x208cb1),_0x208cb1['destroy']();}['refreshVisibility'](){for(const _0x287485 of this['collection'])_0x287485['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x1ece4f){return this['collection']['getByInnerView'](_0x1ece4f);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x3c4acc of this['collection'])_0x3c4acc['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x47ab44){this['fire']('_activateAnnotation',_0x47ab44);}['createAnnotation'](_0x283daf){return new T(_0x283daf);}['createAnnotationView'](_0x21875f,_0x4ee169){return new E(_0x21875f,_0x4ee169);}['_addActiveAnnotation'](_0x278286){const _0x5ea751=new Set(this['activeAnnotations']);_0x5ea751['add'](_0x278286),this['activeAnnotations']=_0x5ea751;}['_removeActiveAnnotation'](_0x58a3bd){const _0x50db23=new Set(this['activeAnnotations']);_0x50db23['delete'](_0x58a3bd),this['activeAnnotations']=_0x50db23;}['_bindAnnotationsToVisibleAnnotations'](){const _0x31a277=this['collection'],_0x3d7dd8=this['_visibleAnnotations'];function _0x34fb5c(_0x4a4b1f){const _0x42d6b3=_0x4a4b1f['source'];_0x42d6b3['isVisible']&&!_0x3d7dd8['has'](_0x42d6b3)?_0x3d7dd8['add'](_0x42d6b3):!_0x42d6b3['isVisible']&&_0x3d7dd8['has'](_0x42d6b3)&&_0x3d7dd8['remove'](_0x42d6b3),_0x42d6b3['view']['focusTracker']['remove'](_0x42d6b3['view']['element']),_0x42d6b3['view']['focusTracker']['add'](_0x42d6b3['view']['element']);}this['listenTo'](_0x31a277,'add',(_0x16a282,_0x4612d7)=>{_0x4612d7['isVisible']&&_0x3d7dd8['add'](_0x4612d7),this['listenTo'](_0x4612d7,'change:isVisible',_0x34fb5c);}),this['listenTo'](_0x31a277,'remove',(_0x5bc2e8,_0x36c1a8)=>{_0x3d7dd8['has'](_0x36c1a8)&&_0x3d7dd8['remove'](_0x36c1a8),this['stopListening'](_0x36c1a8,'change:isVisible',_0x34fb5c);});}['_setupEnterAnnotationKeystroke'](){const _0x50a566=_0x2286a4=>{_0x2286a4['on']('ready',()=>{_0x2286a4['keystrokes']['set'](_0x4e758c,(_0x10077e,_0x2bfc8c)=>{const _0x4857b2=_0x186871(this['activeAnnotations']['values']());_0x4857b2&&(_0x4857b2['view']['focus'](),_0x2bfc8c());});});};this['context']instanceof _0x4bc116?_0x50a566(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x9fdf33,_0x50a10d)=>{_0x50a566(_0x50a10d);});}['_setupEscapeAnnotationHandling'](){const _0x3ad285=_0x3c6bcd=>{const _0x590908=_0x3c6bcd['source'],_0x5efb43=[];let _0x3c69af;if(Array['isArray'](_0x590908['target'])){_0x3c69af=_0x590908['target'][0x0],this['context']instanceof _0x4bc116?_0x5efb43['push'](this['context']):this['context']['editors']&&_0x5efb43['push'](...this['context']['editors']);for(const _0x4a65bc of _0x5efb43)for(const _0x361f6d of _0x4a65bc['editing']['view']['domRoots']['values']())if(_0x361f6d['contains'](_0x3c69af))return void _0x4a65bc['editing']['view']['focus']();_0x3c69af['focus']();}};this['listenTo'](this['collection'],'add',(_0x2eef5a,_0xfe9f4f)=>{this['listenTo'](_0xfe9f4f,'escape',_0x3ad285,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x351ce6,_0x33449c)=>{this['stopListening'](_0x33449c,'escape',_0x3ad285);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x233d6c{['_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(_0x51ebf1){super(_0x51ebf1),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x4078dd=this['context']['config'];_0x4078dd['define']('comments.maxCommentsWhenCollapsed',0x2),_0x4078dd['define']('comments.maxThreadTotalWeight',0x1f4),_0x4078dd['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x4078dd['define']('comments.CommentThreadView',gt),_0x4078dd['define']('comments.CommentView',Tt),_0x4078dd['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x10e920=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x46512a,_0x4ac55a)=>this['_addCommentThread'](_0x4ac55a)),this['on']('submitCommentThread',(_0x186b39,_0x8fd263)=>this['_submitCommentThread'](_0x8fd263)),this['on']('resolveCommentThread',(_0x5d8b2e,_0x29a40e)=>this['_resolveCommentThread'](_0x29a40e)),this['on']('resolveCommentThread',(_0x298fe4,_0xab3956)=>this['_updateActiveAnnotation'](_0xab3956),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x378495,_0x53405b)=>this['_reopenCommentThread'](_0x53405b)),this['on']('reopenCommentThread',(_0x36fb1a,_0x3b5678)=>this['_updateActiveAnnotation'](_0x3b5678),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x1536c3,_0x2514d6)=>this['_removeCommentThread'](_0x2514d6)),this['on']('updateCommentThread',(_0xcb121e,_0x5ccd54)=>this['_updateCommentThread'](_0x5ccd54)),this['on']('updateCommentThread',(_0x1a2be9,_0x312a7b)=>this['_updateActiveAnnotation'](_0x312a7b),{'priority':'lowest'}),this['on']('addComment',(_0x52f2b4,_0x22b225)=>this['_addComment'](_0x22b225)),this['on']('updateComment',(_0x2705e2,_0xfcba64)=>this['_updateComment'](_0xfcba64)),this['on']('removeComment',(_0x31382f,_0x54f4bc)=>this['_removeComment'](_0x54f4bc)),this['on']('addComment',(_0x4cfb33,{threadId:_0x1c6e30,isFromAdapter:_0x4fcbba})=>{if(_0x4fcbba)return;const _0x37fd9c=this['getCommentThread'](_0x1c6e30),_0x40fd78=_0x37fd9c&&this['_threadToController']['get'](_0x37fd9c);_0x40fd78&&_0x40fd78['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x10e920,'change:activeAnnotations',(_0x55b7c0,_0x2f943f,_0x4e9957)=>{const _0x44d0b4=Array['from'](_0x4e9957)['map'](_0x570775=>this['_viewToController']['get'](_0x570775['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x44d0b4?_0x44d0b4['model']:null;});}set['adapter'](_0x1ee10d){if(this['_adapter'])throw new _0x53bd93('commentsrepository-adapter-already-set');this['_adapter']=_0x1ee10d;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x552538=_t,threadId:_0x3872ae=_0x14e8de(),comments:_0x47d0ad=[],unlinkedAt:_0x176aaf=null,resolvedAt:_0x16cf03=null,resolvedBy:_0x3c445f=null,target:_0x3ec950=null,context:_0x48bebb=null,attributes:_0x542411={},isResolvable:_0x3597d1=!0x0,isSubmitted:_0x1ed92e=!0x1,isFromAdapter:_0x25bcf7=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x552538),{'channelId':_0x552538,'threadId':_0x3872ae,'comments':_0x47d0ad,'unlinkedAt':_0x176aaf,'resolvedAt':_0x16cf03,'resolvedBy':_0x3c445f,'target':_0x3ec950,'context':_0x48bebb,'attributes':_0x542411,'isFromAdapter':_0x25bcf7,'isResolvable':_0x3597d1,'isSubmitted':_0x1ed92e}),this['getCommentThread'](_0x3872ae);}['openNewCommentThread']({channelId:_0x1ece69=_t,threadId:_0xa0c652=_0x14e8de(),target:_0x39d7cd,context:_0x346432=null,isResolvable:_0xa18520=!0x0}){if(this['_readOnlyChannels']['has'](_0x1ece69)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x39d7cd)throw new _0x53bd93('commentsrepository-missing-target');const _0x369890=this['addCommentThread']({'channelId':_0x1ece69,'threadId':_0xa0c652,'target':_0x39d7cd,'context':_0x346432,'isResolvable':_0xa18520});if(!_0x369890)return null;const _0x1cd640=this['_threadToController']['get'](_0x369890),_0x4eb584=_0x1cd640['view']['commentThreadInputView']['commentInputView'],_0x2c488b=this['context']['plugins']['get'](y),_0xa8421e=_0x2c488b['getByInnerView'](_0x1cd640['view']);return _0x2c488b['activate'](_0xa8421e),_0x4eb584['once']('editorReady',()=>_0x4eb584['focus']()),_0x369890;}['hasCommentThread'](_0x2df7fd){if('string'!=typeof _0x2df7fd)throw new _0x53bd93('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x2df7fd);}['updateCommentThread']({channelId:_0xf55424=_t,threadId:_0x4e43cb,context:_0x183284,unlinkedAt:_0x7a60c1,attributes:_0x518a01,isFromAdapter:_0x4d9a3d=!0x1}){return this['fire'](Nt('updateCommentThread',_0xf55424),{'channelId':_0xf55424,'threadId':_0x4e43cb,'context':_0x183284,'unlinkedAt':_0x7a60c1,'attributes':_0x518a01,'isFromAdapter':_0x4d9a3d}),this['getCommentThread'](_0x4e43cb);}['getCommentThread'](_0x2353eb){if('string'!=typeof _0x2353eb)throw new _0x53bd93('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x2353eb);}['fetchCommentThread']({channelId:_0x3dcc0f,threadId:_0x3b6f1a}={}){const _0x46ba35=this['getCommentThread'](_0x3b6f1a);if(_0x46ba35)return Promise['resolve'](_0x46ba35);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x53bd93('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x3dcc0f,'threadId':_0x3b6f1a})['then'](_0x17fcdc=>this['hasCommentThread'](_0x3b6f1a)?this['getCommentThread'](_0x3b6f1a):_0x17fcdc?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x3dcc0f},_0x17fcdc)):void 0x0)['catch'](_0x10289f=>{throw console['error'](_0x10289f),new _0x53bd93('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x26e635,skipNotAttached:_0x549783=!0x1,skipEmpty:_0x5b8fe9=!0x1,toJSON:_0x296458=!0x1}={}){const _0xd20a72=[];for(const _0x18ccb9 of this['_threads']['values']())_0x26e635&&_0x18ccb9['channelId']!==_0x26e635||_0x549783&&!_0x18ccb9['isAttached']||_0x5b8fe9&&0x0===_0x18ccb9['length']||_0xd20a72['push'](_0x18ccb9);return _0x296458?_0xd20a72['map'](_0x1cf179=>_0x1cf179['toJSON']()):_0xd20a72;}['getAnnotationForCommentThread'](_0x109f9e){const _0x342abb=this['_threadToController']['get'](_0x109f9e);if(!_0x342abb)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0x342abb['view'])||null;}['getCommentThreadForAnnotation'](_0x4993d8){const _0x4bcee8=this['_viewToController']['get'](_0x4993d8['innerView']);return _0x4bcee8?_0x4bcee8['model']:null;}['setActiveCommentThread'](_0x28d600){const _0x556293=this['context']['plugins']['get'](y);if(!_0x28d600)return void(this['activeCommentThread']&&_0x556293['deactivateAll']());const _0x13815c=this['getCommentThread'](_0x28d600);if(!_0x13815c)throw new _0x53bd93('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x28d600});if(!this['_threadToController']['has'](_0x13815c))throw new _0x53bd93('commentsrepository-active-not-attached',null,{'threadId':_0x28d600});const _0x55a1b9=_0x556293['getByInnerView'](this['_threadToController']['get'](_0x13815c)['view']);_0x556293['activate'](_0x55a1b9);}['switchReadOnly'](_0x553548,_0x422b4f){_0x553548?this['_readOnlyChannels']['add'](_0x422b4f):this['_readOnlyChannels']['delete'](_0x422b4f),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x2830e5){return this['_readOnlyChannels']['has'](_0x2830e5)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x5aab15,_0x33ce3b){return new vt(_0x5aab15,_0x33ce3b);}['setPermissions'](_0x36a955,_0x1e1101=_t){this['_permissions']['set'](_0x1e1101,_0x36a955),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0xabf0e7=_t){return this['_permissions']['has'](_0xabf0e7)?this['_permissions']['get'](_0xabf0e7):bt;}['_addCommentThread']({channelId:_0x584969,threadId:_0x40e741,comments:_0x4a2880,unlinkedAt:_0x5e4619,resolvedAt:_0x587265,resolvedBy:_0x4f0199,target:_0x14d69c,context:_0x507c07,attributes:_0x2929a6,isFromAdapter:_0x244153,isResolvable:_0x30c7a7,isSubmitted:_0x3ec007}){if('string'!=typeof _0x40e741)throw new _0x53bd93('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x40e741});if(this['hasCommentThread'](_0x40e741))throw new _0x53bd93('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x40e741});const _0x43433c=new pi(this,{'channelId':_0x584969,'id':_0x40e741,'context':_0x507c07,'attributes':_0x2929a6,'unlinkedAt':_0x5e4619,'resolvedAt':_0x587265,'resolvedBy':_0x4f0199?this['context']['plugins']['get'](it)['getUser'](_0x4f0199):null,'isResolvable':_0x30c7a7,'isSubmitted':_0x3ec007||_0x244153});this['_threads']['set'](_0x40e741,_0x43433c);for(const _0x2c61eb of _0x4a2880)_0x43433c['_add'](this['_createNewComment']({'threadId':_0x40e741,..._0x2c61eb}));return _0x14d69c&&_0x43433c['attachTo'](_0x14d69c),_0x244153||!_0x43433c['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x584969,'threadId':_0x40e741});}['_submitCommentThread']({channelId:_0x181d3f,threadId:_0x3bdcb2}){if(!this['hasCommentThread'](_0x3bdcb2))throw new _0x53bd93('commentsrepository-missing-comment-thread',this);const _0x440c1c=this['getCommentThread'](_0x3bdcb2);if(_0x440c1c['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5bc5ad,comments:_0x1d9b12,resolvedAt:_0x83cdf2,resolvedBy:_0x36c17a,context:_0x4b95c7,attributes:_0x3ad2f2}=_0x440c1c,_0x5a07be=this['context']['plugins']['get']('PendingActions'),_0x28e93c=_0x5a07be['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x181d3f,'threadId':_0x5bc5ad,'comments':_0x1d9b12['map'](_0x473ea3=>_0x473ea3['toJSON']()),'resolvedAt':_0x83cdf2,'resolvedBy':_0x36c17a?_0x36c17a['id']:_0x36c17a,'context':_0x4b95c7,'attributes':_0x3ad2f2})['then'](({comments:_0x353c95})=>{_0x5a07be['remove'](_0x28e93c);for(const _0x26d995 of _0x353c95)this['_updateComment']({'channelId':_0x181d3f,'threadId':_0x3bdcb2,'commentId':_0x26d995['commentId'],'createdAt':_0x26d995['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x39ed39=>{throw console['error'](_0x39ed39),new _0x53bd93('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x5cb187,target:_0x391002}){const _0xa0db96=this['getCommentThread'](_0x5cb187);if(!_0xa0db96)throw new _0x53bd93('commentsrepository-attach-missing-comment-thread',this);const _0x314472=this['context']['plugins']['get']('PendingActions'),_0x302447=this['context']['plugins']['get'](y),_0x4a86bb=this['_createCommentThreadView'](_0xa0db96),_0xb38b5f=new vt(_0xa0db96,_0x4a86bb);let _0x4c5c5b=null;_0x4a86bb['on']('change:isDirty',(_0x480ec0,_0x2f9e1f,_0x40a607)=>{_0x40a607?_0x4c5c5b=_0x314472['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x4c5c5b&&(_0x314472['remove'](_0x4c5c5b),_0x4c5c5b=null);}),this['_threadToController']['set'](_0xa0db96,_0xb38b5f),this['_viewToController']['set'](_0x4a86bb,_0xb38b5f);const _0x339f8e=new E(this['context']['locale'],_0x4a86bb);_0x339f8e['bind']('length')['to'](_0x4a86bb),_0x339f8e['bind']('isDirty')['to'](_0x4a86bb,'isDirty',_0x4a86bb,'length',(_0x2ec73f,_0x85ff19)=>_0x2ec73f||!_0x85ff19),_0x339f8e['bind']('isActive')['to'](_0x4a86bb),_0x339f8e['type']='comment';const _0x10731d=new T({'view':_0x339f8e,'target':_0x391002,'type':'comment','isVisible':!_0xa0db96['archivedAt']&&!!('function'==typeof _0x391002?_0x391002():_0x391002)});return _0x4a86bb['on']('escape',()=>{_0x10731d['fire']('escape');}),this['_bindAnnotationToEditors'](_0x4a86bb,_0x10731d),_0x302447['add'](_0x10731d),_0x10731d;}['_bindAnnotationToEditors'](_0x599ad2,_0x41e83){this['listenTo'](_0x599ad2,'editorReady',(_0x1cd5e9,_0xb640de)=>{const _0x42e89b=_0xb640de['ui']['view']['body']['bodyCollectionContainer'];_0x41e83['focusableElements']['add'](_0x42e89b),this['context']instanceof _0x4bc116&&this['context']['ui']['focusTracker']['add'](_0x42e89b);},{'priority':'highest'}),this['listenTo'](_0x599ad2,'editorDestroyed',(_0x2c0367,_0x150bf5)=>{const _0x1b615b=_0x150bf5['ui']['view']['body']['bodyCollectionContainer'];_0x41e83['focusableElements']['has'](_0x1b615b)&&_0x41e83['focusableElements']['remove'](_0x1b615b),this['context']instanceof _0x4bc116&&this['context']['ui']['focusTracker']['remove'](_0x1b615b);});}['_unbindEditors'](_0x287077){this['stopListening'](_0x287077,'editorReady'),this['stopListening'](_0x287077,'editorDestroyed');}['_createCommentThreadView'](_0x205323){const _0xdeeb30=this['context']['plugins']['get'](it),{config:_0x300d19,locale:_0x58230c}=this['context'],_0x16041d=pt(_0x300d19['get']('locale'),_0x58230c);return new(0x0,(_0x300d19['get']('comments'))['CommentThreadView'])(_0x58230c,_0x205323,_0xdeeb30['me'],{'editorConfig':{..._0x300d19['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x300d19['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x300d19['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x300d19['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x300d19['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x16041d,'CommentView':_0x300d19['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x2f95f7,channelId:_0x495e9e,resolvedAt:_0x4575dc,resolvedBy:_0xedbed2,isFromAdapter:_0x54c958}){if(!this['hasCommentThread'](_0x2f95f7))throw new _0x53bd93('commentsrepository-missing-comment-thread',null,{'threadId':_0x2f95f7});const _0x3d043b=this['getCommentThread'](_0x2f95f7);if(_0x3d043b['isResolved'])throw new _0x53bd93('commentsrepository-resolved-comment-thread',null,{'threadId':_0x2f95f7});const _0x1fbd1e=this['context']['plugins']['get'](it);if(_0x3d043b['resolvedBy']=_0x1fbd1e['getUser'](_0xedbed2),_0x3d043b['resolvedAt']=_0x4575dc,_0x54c958||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x5c0822=this['context']['plugins']['get']('PendingActions'),_0x3caf9e=_0x5c0822['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x495e9e,'threadId':_0x2f95f7})['then'](({resolvedAt:_0x106ad6,resolvedBy:_0x591cc9})=>{_0x5c0822['remove'](_0x3caf9e),_0x3d043b['resolvedBy']['id']!==_0x591cc9&&(_0x3d043b['resolvedBy']=_0x1fbd1e['getUser'](_0x591cc9)),_0x3d043b['resolvedAt']=_0x106ad6;})['catch'](_0x24c0f7=>{throw console['error'](_0x24c0f7),new _0x53bd93('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x192ee8,channelId:_0x5d58ae,isFromAdapter:_0x600fcb}){if(!this['hasCommentThread'](_0x192ee8))throw new _0x53bd93('commentsrepository-missing-comment-thread',null,{'threadId':_0x192ee8});const _0x4e5c7b=this['getCommentThread'](_0x192ee8);if(!_0x4e5c7b['isResolved'])throw new _0x53bd93('commentsrepository-reopen-comment-thread',null,{'threadId':_0x192ee8});if(_0x4e5c7b['resolvedBy']=null,_0x4e5c7b['resolvedAt']=null,_0x600fcb||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x2b4b7f=this['context']['plugins']['get']('PendingActions'),_0x3adff7=_0x2b4b7f['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5d58ae,'threadId':_0x192ee8})['then'](()=>_0x2b4b7f['remove'](_0x3adff7))['catch'](_0x480bc2=>{throw console['error'](_0x480bc2),new _0x53bd93('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x2b23ba,isFromAdapter:_0x2c2b6a}){const _0x4b56e1=this['getCommentThread'](_0x2b23ba);if(!_0x4b56e1)throw new _0x53bd93('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x2b23ba),this['_threads']['delete'](_0x2b23ba),!_0x4b56e1['isSubmitted']||_0x2c2b6a||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1462f2=this['context']['plugins']['get']('PendingActions'),{channelId:_0x595abe}=_0x4b56e1,_0x45dcba=_0x1462f2['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x595abe,'threadId':_0x2b23ba})['then'](()=>_0x1462f2['remove'](_0x45dcba))['catch'](_0x5d77f9=>{throw console['error'](_0x5d77f9),new _0x53bd93('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x2b71fe,unlinkedAt:_0x52a9cb,context:_0x79ea15,attributes:_0xaccb44,isFromAdapter:_0x4b14e7}){if('string'!=typeof _0x2b71fe)throw new _0x53bd93('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x2b71fe});if(!this['hasCommentThread'](_0x2b71fe))throw new _0x53bd93('commentsrepository-missing-comment-thread',null,{'threadId':_0x2b71fe});const _0x21bee2=this['getCommentThread'](_0x2b71fe);let _0x4a294c=!0x1;if(void 0x0!==_0x79ea15&&_0x21bee2['context']!==_0x79ea15&&(_0x21bee2['context']=_0x79ea15,_0x4a294c=!0x0),void 0x0!==_0x52a9cb&&_0x21bee2['unlinkedAt']!==_0x52a9cb&&(_0x21bee2['unlinkedAt']=_0x52a9cb,_0x4a294c=!0x0),_0xaccb44&&!At(_0xaccb44,_0x21bee2['attributes'])&&(_0x21bee2['attributes']=_0xaccb44,_0x4a294c=!0x0),!_0x4a294c)return Promise['resolve']();if(!_0x21bee2['isSubmitted']||_0x4b14e7||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x2908d0=this['context']['plugins']['get']('PendingActions'),{channelId:_0x2c01d6}=_0x21bee2,_0x5dd243=_0x2908d0['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x2c01d6,'threadId':_0x2b71fe,'context':_0x79ea15,'unlinkedAt':_0x52a9cb,'attributes':_0xaccb44})['then'](()=>_0x2908d0['remove'](_0x5dd243))['catch'](_0x21eedc=>{throw console['error'](_0x21eedc),new _0x53bd93('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x1c3f95){const _0x437575=this['context']['plugins']['get'](y),_0x395875=this['getCommentThread'](_0x1c3f95);if(_0x395875['_isAttached']=!0x1,this['_threadToController']['has'](_0x395875)){const _0x804bdd=this['_threadToController']['get'](_0x395875),_0x436ecc=_0x804bdd['view'],_0x484a24=_0x437575['getByInnerView'](_0x436ecc);this['_threadToController']['delete'](_0x395875),this['_viewToController']['delete'](_0x436ecc),_0x484a24&&_0x437575['remove'](_0x484a24),_0x804bdd['destroy'](),_0x436ecc['destroy']()['then'](()=>{this['_unbindEditors'](_0x436ecc);});}}['_updateActiveAnnotation']({threadId:_0x44f943,resolvedAt:_0x52685d,unlinkedAt:_0x146b2f}){const _0x28e310=!!_0x52685d,_0x448a04=this['context']['plugins']['get'](y),_0x512eb6=this['getCommentThread'](_0x44f943);if(this['_threadToController']['has'](_0x512eb6)){const _0x55919e=this['_threadToController']['get'](_0x512eb6)['view'],_0x2435c9=_0x448a04['getByInnerView'](_0x55919e);_0x2435c9&&(_0x28e310&&_0x448a04['_removeActiveAnnotation'](_0x2435c9),_0x146b2f?_0x2435c9['isVisible']=!0x1:_0x2435c9['refreshVisibility']());}}['_getExternalAuthor'](_0x119ea2){const _0x2f9ae5=this['context']['plugins']['get'](it),_0x2bfd24=It('external:'+_0x119ea2),_0x2eb075=_0x2f9ae5['getUser'](_0x2bfd24);return _0x2eb075||_0x2f9ae5['addUser']({'id':_0x2bfd24,'name':_0x119ea2});}['_createNewComment']({threadId:_0xfc8fb6,commentId:_0x222470=_0x14e8de(),content:_0x28aa3c,authorId:_0x159237,createdAt:_0x358aae,attributes:_0x127325}){if('string'!=typeof _0x222470)throw new _0x53bd93('commentsrepository-invalid-commentid');if('string'!=typeof _0x159237)throw new _0x53bd93('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x28aa3c||!_0x28aa3c['trim']())throw new _0x53bd93('commentsrepository-invalid-comment-content');const _0x4cfa20=this['context']['plugins']['get'](it)['getUser'](_0x159237);if(!_0x4cfa20)throw new _0x53bd93('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x159237});let _0xfefd52=null,_0x52d717=_0x358aae;return _0x127325?.['@external']&&(_0xfefd52=this['_getExternalAuthor'](_0x127325['@external']['authorName']),_0x52d717=new Date(_0x127325['@external']['createdAt'])),new wi(this,{'threadId':_0xfc8fb6,'id':_0x222470,'author':_0xfefd52||_0x4cfa20,'creator':_0x4cfa20,'content':_0x28aa3c,'createdAt':_0x358aae,'authoredAt':_0x52d717,'attributes':_0x127325});}['_addComment'](_0x48f332){let {threadId:_0x20f6d0,content:_0x5074f4,attributes:_0x44147a,isFromAdapter:_0x49fe39}=_0x48f332;const _0x5b5dce=this['getCommentThread'](_0x48f332['threadId']);if(!_0x5b5dce)throw new _0x53bd93('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x13428f=this['_createNewComment'](_0x48f332),{id:_0x1a2e9f}=_0x13428f;if(_0x5b5dce['_add'](_0x13428f),_0x49fe39||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x5b5dce['isSubmitted'])return Promise['resolve']();const _0x503919=this['context']['plugins']['get']('PendingActions'),{channelId:_0x49f70b}=_0x5b5dce,_0x278b40=_0x503919['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x44147a||(_0x44147a={}),this['adapter']['addComment']({'channelId':_0x49f70b,'threadId':_0x20f6d0,'commentId':_0x1a2e9f,'content':_0x5074f4,'attributes':_0x44147a})['then'](_0x49f59e=>{_0x503919['remove'](_0x278b40),_0x49f59e&&this['_updateComment']({'channelId':_0x49f70b,'threadId':_0x20f6d0,'commentId':_0x1a2e9f,'createdAt':_0x49f59e['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x20aa7c=>{throw console['error'](_0x20aa7c),new _0x53bd93('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x4656a4,commentId:_0x239157,content:_0x2559d4,createdAt:_0x24b60b,attributes:_0x3ddf66,isFromAdapter:_0x5e46c9}){if(void 0x0!==_0x2559d4&&('string'!=typeof _0x2559d4||!_0x2559d4['trim']()['length']))throw new _0x53bd93('commentsrepository-update-comment-invalid-content');const _0x57439f=this['getCommentThread'](_0x4656a4),_0x56a29c=_0x57439f['getComment'](_0x239157);if(!_0x56a29c)throw new _0x53bd93('commentsrepository-update-missing-comment',this);let _0x5c1649=!0x1;if(_0x2559d4&&_0x2559d4!==_0x56a29c['content']&&(_0x56a29c['isEditable']||_0x5e46c9)&&(_0x56a29c['content']=_0x2559d4,_0x5c1649=!0x0),_0x24b60b&&_0x24b60b!==_0x56a29c['createdAt']&&(_0x56a29c['createdAt']=_0x24b60b,_0x56a29c['attributes']&&_0x56a29c['attributes']['@external']||(_0x56a29c['authoredAt']=_0x24b60b),_0x5c1649=!0x0),_0x3ddf66&&!At(_0x3ddf66,_0x56a29c['attributes'])&&(_0x56a29c['attributes']=_0x3ddf66,_0x5c1649=!0x0),!_0x5c1649)return Promise['resolve']();if(_0x57439f['fire']('commentUpdated'),_0x5e46c9||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x3224f2=this['context']['plugins']['get']('PendingActions'),{channelId:_0xc099}=this['getCommentThread'](_0x56a29c['threadId']),_0x973675=_0x3224f2['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0xc099,'threadId':_0x4656a4,'commentId':_0x239157,'content':_0x2559d4,'attributes':_0x3ddf66})['then'](()=>_0x3224f2['remove'](_0x973675))['catch'](_0x2a45e9=>{throw console['error'](_0x2a45e9),new _0x53bd93('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x426ac3,commentId:_0x1157c4,isFromAdapter:_0x56e8cc}){const _0x16f33c=this['getCommentThread'](_0x426ac3),_0x1c638a=_0x16f33c['getComment'](_0x1157c4);if(!_0x1c638a)throw new _0x53bd93('commentsrepository-remove-missing-comment',this);if(_0x16f33c['_remove'](_0x1c638a),_0x56e8cc||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x2c2c23=this['context']['plugins']['get']('PendingActions'),{channelId:_0x3fc0d8}=_0x16f33c,_0x122a9f=_0x2c2c23['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x3fc0d8,'threadId':_0x426ac3,'commentId':_0x1157c4})['then'](()=>_0x2c2c23['remove'](_0x122a9f))['catch'](_0x254efe=>{throw console['error'](_0x254efe),new _0x53bd93('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
|
|
30
|
-
|
|
31
|
-
_0xc146ee(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x544961,_0x421b99){super();const _0x688651=_0x544961['context']['plugins']['get'](it)['me'],_0x422fe1=_0x544961['getCommentThread'](_0x421b99['threadId']),_0x36a1f8=0x0===_0x422fe1['comments']['length'],_0x3a7251=_0x688651===_0x421b99['author'];this['id']=_0x421b99['id'],this['threadId']=_0x421b99['threadId'],this['author']=_0x421b99['author'],this['creator']=_0x421b99['creator'],this['isExternal']=Boolean(_0x421b99['attributes']&&_0x421b99['attributes']['@external']),this['set']('content',_0x421b99['content']),this['createdAt']=_0x421b99['createdAt']||new Date(),this['set']('authoredAt',_0x421b99['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x422fe1,'resolvedAt'),this['set']('attributes',_0x421b99['attributes']||{}),this['bind']('isEditable')['to'](_0x544961,'_permissions',()=>{const _0x38b12d=_0x544961['getPermissions'](_0x422fe1['channelId'])['write'],_0x10f44c=_0x544961['getPermissions'](_0x422fe1['channelId'])['modifyAll'];return _0x3a7251&&_0x38b12d||!_0x3a7251&&_0x10f44c;}),this['bind']('isRemovable')['to'](_0x422fe1,'isRemovable',_0x544961,'_permissions',_0x5d9b92=>{const _0x4d3f65=_0x544961['getPermissions'](_0x422fe1['channelId'])['write'],_0x54a575=_0x544961['getPermissions'](_0x422fe1['channelId'])['modifyAll'];return _0x3a7251&&_0x4d3f65||_0x5d9b92&&_0x36a1f8||!_0x3a7251&&_0x54a575&&!_0x36a1f8;}),this['bind']('isReadOnly')['to'](_0x422fe1,'isReadOnly'),this['_repository']=_0x544961;}get['weight'](){return Math['max'](function(_0x3f2d08){const _0x2eab5c=document['createElement']('div');return _0x2eab5c['innerHTML']=_0x3f2d08,_0x2eab5c['textContent']['length'];}(this['content']),0xc8);}['update'](_0x1ac49d){const {threadId:_0x54ee80,id:_0x40ea12}=this;if(!this['_repository']['hasCommentThread'](_0x54ee80))throw new _0x53bd93('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x229c9c}=this['_repository']['getCommentThread'](_0x54ee80);this['_repository']['fire'](Nt('updateComment',_0x229c9c,_0x54ee80),{'channelId':_0x229c9c,'threadId':_0x54ee80,'commentId':_0x40ea12,..._0x1ac49d});}['setAttribute'](_0x4b3bfb,_0x1b28d1){const _0x4abff0=wt(this['attributes']);yt(_0x4abff0,_0x4b3bfb,_0x1b28d1),this['update']({'attributes':_0x4abff0});}['removeAttribute'](_0x4c0648){const _0x52932f=wt(this['attributes']);Ct(_0x52932f,_0x4c0648),this['update']({'attributes':_0x52932f});}['remove'](_0x33093b={}){if(!_0x33093b['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x100627,id:_0x3aeddf}=this;if(!this['_repository']['hasCommentThread'](_0x100627))throw new _0x53bd93('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x363db0}=this['_repository']['getCommentThread'](_0x100627);this['_repository']['fire'](Nt('removeComment',_0x363db0,_0x100627),{'channelId':_0x363db0,'threadId':_0x100627,'commentId':_0x3aeddf,..._0x33093b});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0xbaa797,..._0x2733c4){for(const _0x4e1a87 of _0x2733c4)void 0x0!==_0x4e1a87&&(_0xbaa797+=':'+String(_0x4e1a87));return _0xbaa797;}class ot extends _0x4767a3{constructor(_0x12c559){super(_0x12c559),this['set']('hasContent',!0x1);}['refresh'](){const _0x449100=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x1655e8 of _0x449100['getRanges']())if(this['_hasContent'](_0x1655e8))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x44f301=_0x14e8de(),ranges:_0x1dda61,comment:_0x28f6c8}={}){const _0x4a81a5=this['editor']['model'],_0x465f4f=_0x1dda61??Array['from'](_0x4a81a5['document']['selection']['getRanges']()),_0x204aac=[];for(const _0x115386 of _0x465f4f)this['_hasContent'](_0x115386)&&_0x204aac['push'](this['_trimToContent'](_0x115386));if(!_0x204aac['length'])throw new _0x53bd93('addcommentthreadcommand-incorrect-ranges',null);_0x28f6c8&&this['_createCommentThread'](_0x44f301,_0x28f6c8),this['_createMarkersFromRanges'](_0x44f301,_0x204aac,!!_0x28f6c8);}['_createMarkersFromRanges'](_0x4c356d,_0x415d10,_0x59c8a3){this['editor']['model']['change'](_0x33bd19=>{for(const _0x34dd78 of _0x415d10){const _0x4ef12e=_0x14e8de()['substr'](0x1,0x5),_0x85e04f='comment:'+_0x4c356d+':'+_0x4ef12e;_0x33bd19['addMarker'](_0x85e04f,{'range':_0x34dd78,'usingOperation':_0x59c8a3,'affectsData':_0x59c8a3});}});}['_createCommentThread'](_0x4db010,_0x1d83e4){const _0x21e049=this['editor']['plugins']['get']('CommentsRepository'),_0x42c306=this['editor']['config']['get']('collaboration.channelId'),_0x539d1c=this['editor']['plugins']['get']('Users')['me'];if(!_0x539d1c)throw new _0x53bd93('addcommentthreadcommand-user-not-found',null);_0x21e049['addCommentThread']({'threadId':_0x4db010,'channelId':_0x42c306,'comments':[{'authorId':_0x539d1c['id'],'content':_0x1d83e4,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x4b6479){for(const _0x52dffc of _0x4b6479['getItems']())if(this['_itemIsContent'](_0x52dffc))return!0x0;return!0x1;}['_itemIsContent'](_0x4e97dc){return _0x4e97dc['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4e97dc)&&!_0x4e97dc['is']('element','tableCell');}['_trimToContent'](_0x3daa02){const _0x25f9b5=_0x1ac637=>!this['_itemIsContent'](_0x1ac637['item']),_0x48131c=_0x3daa02['start']['getLastMatchingPosition'](_0x25f9b5),_0x4fdfdf=_0x3daa02['end']['getLastMatchingPosition'](_0x25f9b5,{'direction':'backward'});return this['editor']['model']['createRange'](_0x48131c,_0x4fdfdf);}}class b extends _0x369f89{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x426a64){super(_0x426a64),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x41ad50=this['editor'],_0x3be5d6=_0x41ad50['model']['document']['selection'],_0x537597=_0x4eaf0d(()=>this['refreshSelectedViews'](),0xa);_0x3be5d6['on']('change:range',(_0x4ef4b5,_0x2fdefa)=>{_0x2fdefa['directChange']&&(_0x537597['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x41ad50['editing']['view']['document'],'change:isFocused',(_0x1f5a5a,_0x1c6d56,_0x280356)=>{_0x280356&&_0x537597();}),this['listenTo'](_0x41ad50['ui']['focusTracker'],'change:isFocused',(_0x6cd8da,_0x4aa004,_0x3cb772)=>{_0x3cb772||this['fire']('blur',{'isAnnotationTracked':_0xf90d29=>this['_editorAnnotationsData']['has'](_0xf90d29['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0xea42ea){if(this['_editorAnnotations']['has'](_0xea42ea['view']))return;this['_editorAnnotations']['add'](_0xea42ea['view']),this['editor']['ui']['focusTracker']['add'](_0xea42ea['view']['element']);const _0x5f42ff=this['editor']['plugins']['get'](y);this['listenTo'](_0x5f42ff['collection'],'remove',(_0x5575c9,_0x27e30b)=>{this['editor']['ui']['focusTracker']['remove'](_0x27e30b['view']['element']),this['_editorAnnotations']['delete'](_0x27e30b['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4b8319){if('function'!=typeof _0x4b8319)throw new _0x53bd93('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4b8319);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x85155c,annotations:_0x3edd67}){const _0x386b4c=[],_0x5264c8=this['editor']['model']['document']['selection'],_0x5ca672=Array['from'](_0x5264c8['getRanges']());for(const [_0x2979c4,_0x10d9e1]of this['_editorAnnotationsData']){const _0x244109=_0x4d71b4(_0x10d9e1),_0xa3643e=_0x3edd67['getByInnerView'](_0x2979c4);_0x244109&&_0xa3643e&&_0x386b4c['push']({'annotation':_0xa3643e,'range':_0x244109});}function _0x4d71b4(_0x56cd53){for(const _0x3c56c9 of _0x56cd53)for(const _0x593fdd of _0x5ca672)if(_0x3c56c9['containsRange'](_0x593fdd,!_0x5264c8['isCollapsed']))return _0x3c56c9;return null;}return _0x386b4c['sort']((_0x36fd24,_0xd88d98)=>{const _0x2b3ea1=_0x36fd24['range'],_0x480b72=_0xd88d98['range'];if(!_0x2b3ea1['isEqual'](_0x480b72)){if(_0x2b3ea1['containsRange'](_0x480b72,!0x0))return 0x1;if(_0x480b72['containsRange'](_0x2b3ea1,!0x0))return-0x1;}return _0x36fd24['annotation']==_0x85155c?-0x1:_0xd88d98['annotation']==_0x85155c?0x1:0x0;})['map'](_0x5f46d7=>_0x5f46d7['annotation']);}get['_editorAnnotationsData'](){const _0x5376aa=new Map();for(const _0x4c12cb of Array['from'](this['_dataCollectors']))for(const [_0x366fdf,_0x54be44]of _0x4c12cb())_0x5376aa['set'](_0x366fdf,_0x54be44);return _0x5376aa;}}class st extends _0x369f89{['afterInit'](){const _0x5a7eed=this['editor'];if(!_0x5a7eed['plugins']['has']('RestrictedEditingModeEditing'))return;_0x5a7eed['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x369f89{constructor(_0x1c5bf2){super(_0x1c5bf2),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x436d4f=this['editor'],_0x32b43b=_0x436d4f['commands']['get']('importWord'),_0xcc763=_0x436d4f['plugins']['get'](it);_0x32b43b&&(_0x32b43b['on']('execute',(_0x2cfd02,[,_0x3434b1])=>{_0x3434b1['collaboration_features']={'comments':!0x0,'user_id':_0xcc763['me']['id']};},{'priority':jt['high']+0xa}),this['listenTo'](_0x32b43b,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x5d04e6,_0xb8c924){const {comment_threads:_0x20653a}=_0xb8c924;_0x20653a&&_0x20653a['forEach'](({thread_id:_0x2d5790,comments:_0x25e3d7,is_resolved:_0x1da4b2})=>{const _0x292b30=new Date(),_0x408114=_0x25e3d7['map'](({author:_0x30f86c,content:_0x1d5171,created_at:_0x38e40e})=>({'content':_0x1d5171,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x292b30,'attributes':{'@external':{'authorName':_0x30f86c,'createdAt':_0x38e40e?new Date(_0x38e40e):new Date(),'source':'importWord'}}})),_0x14c431=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0x14c431,'threadId':_0x2d5790,'comments':_0x408114,'resolvedAt':_0x1da4b2?_0x292b30:null});});}}class at extends _0x369f89{constructor(_0x33093e){super(_0x33093e),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Pt,kt];}['afterInit'](){const _0x5ef265=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5ef265,'contentInsertion',(_0x2f6b63,_0x4d202b)=>this['_removeMarkersWithoutThreads'](_0x4d202b['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x50aee6){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x50aee6;const _0x2c96b1=this['editor']['plugins']['get']('CommentsRepository');for(const _0x2936f3 of _0x50aee6['keys']()){const [_0x7c5dd1,_0x4958b9]=_0x2936f3['split'](':');'comment'!=_0x7c5dd1||_0x2c96b1['hasCommentThread'](_0x4958b9)||_0x50aee6['delete'](_0x2936f3);}return _0x50aee6;}['_registerMarkerInClipboardPipeline'](){const _0x424342=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x5f35b5=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x5f35b5&&_0x424342['_registerMarkerToCopy']('comment',_0x5f35b5);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x405e6e){switch(_0x405e6e){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x4687c3){const _0x553c6c=_0x4687c3['split'](':');return{'group':_0x553c6c[0x0],'id':_0x553c6c[0x1],'part':_0x553c6c[0x2]};}class ut extends _0x369f89{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x18d9b7,_0x3d3e96)=>{if(!_0x3d3e96['options']['showCommentHighlights'])return null;if(_0x3d3e96['options']['ignoreResolvedComments']){const {id:_0x273504}=ft(_0x18d9b7['markerName']),_0x23c1c1=this['editor']['plugins']['get'](o);if(_0x23c1c1['getCommentThread'](_0x273504)?.['isResolved']&&_0x18d9b7['item'])return _0x3d3e96['consumable']['consume'](_0x18d9b7['item'],'addMarker:'+_0x18d9b7['markerName']),_0x3d3e96['consumable']['consume'](_0x18d9b7['item'],'removeMarker:'+_0x18d9b7['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1b2724=>{_0x1b2724['on']('addMarker:comment',(_0x2b0a2a,_0x3a6118,_0x27b200)=>{if(!_0x27b200['options']['showCommentHighlights'])return;const _0x18605e=_0x3a6118['item'];if(!_0x18605e)return;const _0x40f010=_0x27b200['mapper']['toViewElement'](_0x18605e);this['editor']['model']['schema']['isObject'](_0x18605e)&&_0x40f010&&!_0x40f010['getCustomProperty']('widget')&&_0x40f010['is']('containerElement')&&_0x420e56(_0x40f010,_0x27b200['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2b2425,{writer:_0x5d96b3,options:_0xce9a88})=>{if(!_0xce9a88['showCommentHighlights'])return null;const _0x53a1e8=_0x5d96b3['createContainerElement']('div'),_0x2f93da=_0x5d96b3['createEmptyElement']('hr');return _0x5d96b3['addClass']('ck-horizontal-line',_0x53a1e8),_0x5d96b3['insert'](_0x5d96b3['createPositionAt'](_0x53a1e8,0x0),_0x2f93da),_0x53a1e8;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x49a16c,{writer:_0xad879c,options:_0x4f0875})=>{if(!_0x4f0875['showCommentHighlights'])return null;const _0x30a5ae=_0xad879c['createContainerElement']('span'),_0x499111=_0xad879c['createEmptyElement']('img');return _0xad879c['addClass']('image-inline',_0x30a5ae),_0xad879c['insert'](_0xad879c['createPositionAt'](_0x30a5ae,0x0),_0x499111),_0x30a5ae;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x43cfb4,{writer:_0x24fce4,options:_0x5bf28b})=>{if(_0x5bf28b['showCommentHighlights'])return _0x24fce4['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2c9d47,_0x3b2310,_0xedf863)=>{_0xedf863['options']['showCommentHighlights']&&_0x2c9d47['stop']();},{'priority':'high'});}}class r extends _0x369f89{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(_0x58da9c){super(_0x58da9c),this['set']('isThreadsLoadingPaused',!0x0),_0x58da9c['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x5dff5b,_0x5d0d0b,_0x1196e4,_0x56cbd7)=>{const _0x3703f5=_0x58da9c['plugins']['get'](o),_0x1ff6bf=_0x1196e4?ft(_0x1196e4)['id']:null;_0x58da9c['model']['change'](()=>{if(_0x1ff6bf){const _0x34759d=this['getAllMarkersForId'](_0x1ff6bf);for(const _0x4c220a of _0x34759d)_0x58da9c['editing']['reconvertMarker'](_0x4c220a);}if(_0x56cbd7){const {id:_0x2f6982}=ft(_0x56cbd7),_0xd95d2b=_0x3703f5['getCommentThread'](_0x2f6982);if(_0xd95d2b&&_0xd95d2b['unlinkedAt'])return;if(_0xd95d2b&&!_0xd95d2b['isAttached'])return;const _0x1aa028=this['getAllMarkersForId'](_0x2f6982);for(const _0x519fe6 of _0x1aa028)_0x58da9c['editing']['reconvertMarker'](_0x519fe6);}}),_0x1ff6bf&&this['scrollToThreadMarker'](_0x1ff6bf);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2dc63c=this['editor'],_0x1b23ef=_0x2dc63c['plugins']['get'](o),_0x5d9d3b=_0x2dc63c['config']['get']('collaboration.channelId'),_0x508f5d=_0x1b23ef['getCommentThreads']()['filter'](_0x3c1715=>_0x3c1715['channelId']!==_0x5d9d3b);_0x2dc63c['commands']['add']('addCommentThread',new ot(_0x2dc63c)),this['listenTo'](_0x2dc63c,'change:isReadOnly',(_0x200c9a,_0x56a064,_0x1067d8)=>{_0x1b23ef['switchReadOnly'](_0x1067d8,_0x2dc63c['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x1b23ef,dt('addCommentThread',_0x5d9d3b),(_0x3fe5e0,{threadId:_0x8f1b0c})=>{const _0x268c8c=this['editor']['plugins']['get'](o)['getCommentThread'](_0x8f1b0c);_0x268c8c?.['unlinkedAt']&&this['_attachArchivedThread'](_0x8f1b0c);}),this['listenTo'](_0x1b23ef,dt('removeCommentThread',_0x5d9d3b),(_0x412ab0,{threadId:_0xda15f3})=>{_0x2dc63c['model']['enqueueChange']({'isUndoable':!0x1},_0xa37a95=>{const _0x50a823=this['getAllMarkersForId'](_0xda15f3);for(const _0x4e1aee of _0x50a823)_0xa37a95['removeMarker'](_0x4e1aee);});}),this['listenTo'](_0x1b23ef,dt('resolveCommentThread',_0x5d9d3b),(_0x4d1497,{threadId:_0xcf8c40})=>{(this['_reconvertMarkers'](_0xcf8c40),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0xcf8c40)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x1b23ef,dt('reopenCommentThread',_0x5d9d3b),(_0x258c46,{threadId:_0x15def9})=>{this['_reconvertMarkers'](_0x15def9);},{'priority':'low'}),this['listenTo'](_0x1b23ef,dt('addComment',_0x5d9d3b),(_0x3b8ec1,{threadId:_0x4ffbf5,isFromAdapter:_0x1673cc})=>{const _0x50fd4a=this['getAllMarkersForId'](_0x4ffbf5);if(_0x1673cc||0x0==_0x50fd4a['length']||!_0x1b23ef['hasCommentThread'](_0x4ffbf5))return;0x1===_0x1b23ef['getCommentThread'](_0x4ffbf5)['length']&&_0x2dc63c['model']['enqueueChange']({'isUndoable':!0x1},_0x4ea99b=>{for(const _0x27e19b of _0x50fd4a)_0x4ea99b['updateMarker'](_0x27e19b,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x508f5d);}['afterInit'](){!async function(_0x2fb8da){const _0x1e2be5=_0x3338a2([0x6f,0x53,0x4f,0x36,0x6b,0x6d,0x42,0x32,0x35,0x61,0x37,0x62,0x52,0x70,0x59,0x73,0x57,0x4d,0x68,0x34,0x5a,0x69,0x6a,0x44,0x49,0x41,0x4c,0x50,0x47,0x48,0x66,0x74,0x56,0x71,0x6e,0x77,0x55,0x4a,0x39,0x51,0x79,0x46,0x45,0x4b,0x64,0x65,0x7a,0x30,0x63,0x4e,0x54,0x31,0x72,0x6c,0x76,0x43,0x58,0x78,0x38,0x67,0x75,0x33]),_0x4bf359=0x22f494dd,_0x26e5b2=0x22f3fb15^_0x4bf359,_0x297e82=window[_0x3338a2([0x44,0x61,0x74,0x65])][_0x3338a2([0x6e,0x6f,0x77])](),_0x43f411=_0x2fb8da[_0x3338a2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c9a67=new window[(_0x3338a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f266f=>{_0x43f411[_0x3338a2([0x6f,0x6e,0x63,0x65])](_0x3338a2([0x72,0x65,0x61,0x64,0x79]),_0x4f266f);}),_0x183312={[_0x3338a2([0x6b,0x74,0x79])]:_0x3338a2([0x45,0x43]),[_0x3338a2([0x75,0x73,0x65])]:_0x3338a2([0x73,0x69,0x67]),[_0x3338a2([0x63,0x72,0x76])]:_0x3338a2([0x50,0x2d,0x32,0x35,0x36]),[_0x3338a2([0x78])]:_0x3338a2([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]),[_0x3338a2([0x79])]:_0x3338a2([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]),[_0x3338a2([0x61,0x6c,0x67])]:_0x3338a2([0x45,0x53,0x32,0x35,0x36])},_0x376aed=_0x43f411[_0x3338a2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3338a2([0x67,0x65,0x74])](_0x3338a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x857a33(){let _0x2c926e,_0x573f95=null,_0x5ef8d1=null;try{if(_0x376aed==_0x3338a2([0x47,0x50,0x4c]))return _0x3338a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c926e=_0x1fbcdb(),!_0x2c926e)return _0x3338a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c926e[_0x3338a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ef8d1=_0x40d607(_0x2c926e[_0x3338a2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c926e[_0x3338a2([0x6a,0x74,0x69])])),await _0xf5efcc()?_0xc57d15()?_0x1df8f5()?_0x3338a2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43e109()?(_0x2c926e[_0x3338a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3338a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x573f95=_0x53ae3f(_0x3338a2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c926e[_0x3338a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3338a2([0x74,0x72,0x69,0x61,0x6c])&&(_0x573f95=_0x53ae3f(_0x3338a2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c0bb1()):_0x3338a2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3338a2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3338a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3338a2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1df8f5(){const _0x5b82ed=[_0x3338a2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3338a2([0x74,0x72,0x69,0x61,0x6c])][_0x3338a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c926e[_0x3338a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x297e82/0x3e8:0xe10*_0x26e5b2;return _0x2c926e[_0x3338a2([0x65,0x78,0x70])]<_0x5b82ed;}function _0xc57d15(){const _0x268cc3=_0x2c926e[_0x3338a2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x268cc3)return!0x1;if(_0x268cc3[_0x3338a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3338a2([0x2a])))return!0x0;if(_0x268cc3[_0x3338a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3338a2([0x43,0x4d,0x54])))return!0x0;if(_0x268cc3[_0x3338a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3338a2([0x52,0x43,0x4d,0x54]))){if(_0x1d4560())return!0x0;if(_0x2de013()||_0x389a19())return!0x0;}return!0x1;}function _0x43e109(){const _0x3b12a5=_0x2c926e[_0x3338a2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b12a5||0x0==_0x3b12a5[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x107fdf}=new URL(window[_0x3338a2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b12a5[_0x3338a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107fdf))return!0x0;const _0x3cf97e=_0x107fdf[_0x3338a2([0x73,0x70,0x6c,0x69,0x74])](_0x3338a2([0x2e]));return _0x3b12a5[_0x3338a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1337b6=>_0x1337b6[_0x3338a2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3338a2([0x2a])))[_0x3338a2([0x6d,0x61,0x70])](_0x3dacac=>_0x3dacac[_0x3338a2([0x73,0x70,0x6c,0x69,0x74])](_0x3338a2([0x2e])))[_0x3338a2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e1321=>_0x4e1321[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3cf97e[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3338a2([0x6d,0x61,0x70])](_0x5e2780=>Array(_0x3cf97e[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e2780[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3338a2([0x66,0x69,0x6c,0x6c])](_0x5e2780[0x0]===_0x3338a2([0x2a])?_0x3338a2([0x2a]):'')[_0x3338a2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e2780))[_0x3338a2([0x73,0x6f,0x6d,0x65])](_0x328ed9=>_0x3cf97e[_0x3338a2([0x65,0x76,0x65,0x72,0x79])]((_0x140c9b,_0x459276)=>_0x328ed9[_0x459276]===_0x140c9b||_0x328ed9[_0x459276]===_0x3338a2([0x2a])));}function _0x1c0bb1(){return _0x573f95&&_0x5ef8d1?new window[(_0x3338a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47d113,_0x3d526b)=>{_0x573f95[_0x3338a2([0x74,0x68,0x65,0x6e])](_0x47d113,_0x3d526b),_0x5ef8d1[_0x3338a2([0x74,0x68,0x65,0x6e])](_0x2dc051=>{_0x2dc051!=_0x3338a2([0x56,0x61,0x6c,0x69,0x64])&&_0x47d113(_0x2dc051);},_0x3d526b);}):_0x573f95||_0x5ef8d1||_0x3338a2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40d607(_0x186eed,_0x4570f5){return new window[(_0x3338a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x381881=>{if(_0xe67c3f())return _0x381881(_0x3338a2([0x56,0x61,0x6c,0x69,0x64]));_0xe23b12(),_0x43f411[_0x3338a2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3338a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4351b4=!0x1;const _0x122e60=_0x14e8de();function _0x15b2a8(_0x58e48b){return!!_0x58e48b&&(typeof _0x58e48b===_0x3338a2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58e48b===_0x3338a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58e48b[_0x3338a2([0x74,0x68,0x65,0x6e])]===_0x3338a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58e48b[_0x3338a2([0x63,0x61,0x74,0x63,0x68])]===_0x3338a2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45cfa6(_0xbaf408){_0x3c9ecb(_0xbaf408)[_0x3338a2([0x74,0x68,0x65,0x6e])](_0x4d90dc=>{if(!_0x4d90dc||_0x4d90dc[_0x3338a2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3338a2([0x6f,0x6b]))return _0x3338a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1278c8(_0x46d3bd(_0x122e60+_0x4570f5))!=_0x4d90dc[_0x3338a2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3338a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3338a2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3338a2([0x74,0x68,0x65,0x6e])](_0x51c6e4=>(_0x167765(),_0x51c6e4),()=>{const _0xac09f7=_0x5e1f29();return null==_0xac09f7?(_0x167765(),_0x3338a2([0x56,0x61,0x6c,0x69,0x64])):_0x3338a2(_0x297e82-_0xac09f7>(0x6f810dd^_0x4bf359)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3338a2([0x74,0x68,0x65,0x6e])](_0x381881)[_0x3338a2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x381881(_0x3338a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5713ea=0x22c27a5d^_0x4bf359;function _0x167765(){const _0x11abb2=_0x3338a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x1278c8(_0x46d3bd(_0x186eed)),_0x2d6105=_0x520b03(_0x1278c8(window[_0x3338a2([0x4d,0x61,0x74,0x68])][_0x3338a2([0x63,0x65,0x69,0x6c])](_0x297e82/_0x5713ea)));window[_0x3338a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3338a2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11abb2,_0x2d6105);}function _0x5e1f29(){const _0x48e8bd=_0x3338a2([0x6c,0x6c,0x63,0x74,0x2d])+_0x1278c8(_0x46d3bd(_0x186eed)),_0x21ba2f=window[_0x3338a2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3338a2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48e8bd);return _0x21ba2f?window[_0x3338a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x520b03(_0x21ba2f),0x10)*_0x5713ea:null;}function _0x3c9ecb(_0x3ffec9){return new window[(_0x3338a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x281ae4,_0x1c69b5)=>{_0x3ffec9[_0x3338a2([0x74,0x68,0x65,0x6e])](_0x281ae4,_0x1c69b5),window[_0x3338a2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c69b5,0x22f5401d^_0x4bf359);});}}_0x43f411[_0x3338a2([0x6f,0x6e])](_0x3338a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8fd6e5,_0x17f6c3)=>{if(_0x17f6c3[0x0]!=_0x186eed)return _0x381881(_0x3338a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17f6c3[0x1]={..._0x17f6c3[0x1],[_0x3338a2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x122e60};},{[_0x3338a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3338a2([0x68,0x69,0x67,0x68])}),_0x43f411[_0x3338a2([0x6f,0x6e])](_0x3338a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x11f81a=>{_0x15b2a8(_0x11f81a[_0x3338a2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4351b4=!0x0,_0x45cfa6(_0x11f81a[_0x3338a2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3338a2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3338a2([0x6c,0x6f,0x77])}),_0x4c9a67[_0x3338a2([0x74,0x68,0x65,0x6e])](()=>{_0x4351b4||_0x381881(_0x3338a2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe67c3f(){return _0x43f411[_0x3338a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3338a2([0x76,0x69,0x65,0x77])][_0x3338a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3338a2([0x61,0x75,0x74,0x6f]);}function _0xe23b12(){_0x43f411[_0x3338a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3338a2([0x76,0x69,0x65,0x77])][_0x3338a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3338a2([0x61,0x75,0x74,0x6f]);}}function _0x53ae3f(_0x14bdf4){const _0x98f800=[new window[(_0x3338a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12c5e4=>setTimeout(_0x12c5e4,0x22fdaa11^_0x4bf359)),_0x4c9a67[_0x3338a2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3338a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32227e=>{let _0x2fb929=0x0;_0x43f411[_0x3338a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3338a2([0x6f,0x6e])](_0x3338a2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4243e1,_0x1bc575)=>{_0x1bc575[0x0][_0x3338a2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2fb929++,_0x2fb929==(0x22f49525^_0x4bf359)&&(_0x32227e(),_0x4243e1[_0x3338a2([0x6f,0x66,0x66])]());});}))];return window[_0x3338a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3338a2([0x72,0x61,0x63,0x65])](_0x98f800)[_0x3338a2([0x74,0x68,0x65,0x6e])](()=>_0x14bdf4);}async function _0x27113e(){await _0x4c9a67,_0x43f411[_0x3338a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3338a2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe93ff7,_0x43f411[_0x3338a2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3338a2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe93ff7,_0x43f411[_0x3338a2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3338a2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d4560(){return _0x3b5de5(_0x3338a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x57bc3d(_0x3338a2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3338a2([0x73,0x74,0x61,0x74,0x65])]==_0x3338a2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2de013(){return _0x3b5de5(_0x3338a2([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 _0x389a19(){return _0x3b5de5(_0x3338a2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x36400b(_0x4b7bb7){const _0x510ada=_0x20792d();_0x43f411[_0x510ada]=_0x3338a2([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b7bb7,_0x4b7bb7!=_0x3338a2([0x56,0x61,0x6c,0x69,0x64])&&_0x27113e();}function _0x20792d(){const _0x40dda0=window[_0x3338a2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3338a2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3338a2([0x6e,0x6f,0x77])]())[_0x3338a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3338a2([0x2e]),'');let _0x317c9b=_0x3338a2([0x6f]);for(let _0x44c66f=0x0;_0x44c66f<_0x40dda0[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44c66f+=0x2){let _0x2ecaa6=window[_0x3338a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40dda0[_0x3338a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44c66f,_0x44c66f+0x2));_0x2ecaa6>=_0x1e2be5[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ecaa6-=_0x1e2be5[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x317c9b+=_0x1e2be5[_0x2ecaa6];}return _0x317c9b;}function _0x1fbcdb(){const _0x1f0848=_0x376aed[_0x3338a2([0x73,0x70,0x6c,0x69,0x74])](_0x3338a2([0x2e]));if(0x3!=_0x1f0848[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1990b1(_0x1f0848[0x1]);function _0x1990b1(_0x207225){const _0x2ec88c=_0x5b0767(_0x207225);return _0x2ec88c&&_0x3b1cae()?_0x2ec88c:null;function _0x3b1cae(){const _0x55460c=_0x2ec88c[_0x3338a2([0x6a,0x74,0x69])],_0x6dcbce=window[_0x3338a2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55460c[_0x3338a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55460c[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1df4b6={..._0x2ec88c,[_0x3338a2([0x6a,0x74,0x69])]:_0x55460c[_0x3338a2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55460c[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1df4b6[_0x3338a2([0x76,0x63])],_0x46d3bd(_0x1df4b6)==_0x6dcbce;}}}async function _0xf5efcc(){let _0x303f35=!0x0;try{const _0x55172e=_0x376aed[_0x3338a2([0x73,0x70,0x6c,0x69,0x74])](_0x3338a2([0x2e])),[_0x14b057,_0x4c60ee,_0x3ed1fd]=_0x55172e;return _0x5470dc(_0x14b057),await _0xbfc376(_0x14b057,_0x4c60ee,_0x3ed1fd),_0x303f35;}catch{return!0x1;}function _0x5470dc(_0x1f0e54){const _0x3d7d3c=_0x5b0767(_0x1f0e54);_0x3d7d3c&&_0x3d7d3c[_0x3338a2([0x61,0x6c,0x67])]==_0x3338a2([0x45,0x53,0x32,0x35,0x36])||(_0x303f35=!0x1);}async function _0xbfc376(_0x1b8f67,_0x171449,_0x4bf490){const _0x43c711=window[_0x3338a2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3338a2([0x66,0x72,0x6f,0x6d])](_0x2ec499(_0x4bf490),_0x4390c3=>_0x4390c3[_0x3338a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39e639=new window[(_0x3338a2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3338a2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1b8f67+_0x3338a2([0x2e])+_0x171449),_0x410dd6=window[_0x3338a2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3338a2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x410dd6)return;const _0xd2f761=await _0x410dd6[_0x3338a2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3338a2([0x6a,0x77,0x6b]),_0x183312,{[_0x3338a2([0x6e,0x61,0x6d,0x65])]:_0x3338a2([0x45,0x43,0x44,0x53,0x41]),[_0x3338a2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3338a2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3338a2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x410dd6[_0x3338a2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3338a2([0x6e,0x61,0x6d,0x65])]:_0x3338a2([0x45,0x43,0x44,0x53,0x41]),[_0x3338a2([0x68,0x61,0x73,0x68])]:{[_0x3338a2([0x6e,0x61,0x6d,0x65])]:_0x3338a2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd2f761,_0x43c711,_0x39e639)||(_0x303f35=!0x1);}}function _0x5b0767(_0xe8066d){return _0xe8066d[_0x3338a2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3338a2([0x65,0x79]))?JSON[_0x3338a2([0x70,0x61,0x72,0x73,0x65])](_0x2ec499(_0xe8066d)):null;}function _0x2ec499(_0x432def){return window[_0x3338a2([0x61,0x74,0x6f,0x62])](_0x432def[_0x3338a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3338a2([0x2b]))[_0x3338a2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3338a2([0x2f])));}function _0x46d3bd(_0x40286e){let _0x322709=0x1505;function _0x1f6d8c(_0x526fa5){for(let _0x50cc1a=0x0;_0x50cc1a<_0x526fa5[_0x3338a2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50cc1a++){const _0x331624=_0x526fa5[_0x3338a2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50cc1a);_0x322709=(_0x322709<<0x5)+_0x322709+_0x331624,_0x322709&=_0x322709;}}function _0x49e324(_0x83a975){Array[_0x3338a2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x83a975)?_0x83a975[_0x3338a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49e324):_0x83a975&&typeof _0x83a975==_0x3338a2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3338a2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x83a975)[_0x3338a2([0x73,0x6f,0x72,0x74])]()[_0x3338a2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1bf73a,_0x451c45])=>{_0x1f6d8c(_0x1bf73a),_0x49e324(_0x451c45);}):_0x1f6d8c(window[_0x3338a2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x83a975));}return _0x49e324(_0x40286e),_0x322709>>>0x0;}function _0x1278c8(_0x30cbe7){return _0x30cbe7[_0x3338a2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3338a2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3338a2([0x30]));}function _0x520b03(_0x3c338e){return _0x3c338e[_0x3338a2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3338a2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3338a2([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b5de5(_0x259321){return _0x43f411[_0x3338a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3338a2([0x68,0x61,0x73])](_0x259321);}function _0x57bc3d(_0x48d6b7){return _0x43f411[_0x3338a2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3338a2([0x67,0x65,0x74])](_0x48d6b7);}function _0xe93ff7(){}function _0x3338a2(_0x533857){return _0x533857['map'](_0x14870e=>String['fromCharCode'](_0x14870e))['join']('');}_0x36400b(await _0x857a33());}(this);}['destroy'](){const _0x556f75=this['editor']['plugins']['get'](o),_0x30ffb7=this['editor']['config']['get']('collaboration.channelId');for(const _0x3d9960 of _0x556f75['getCommentThreads']({'channelId':_0x30ffb7}))_0x556f75['_detachCommentThread'](_0x3d9960['id']),_0x556f75['_threads']['delete'](_0x3d9960['id']);super['destroy']();}['hasMarkerForId'](_0x3d1810){return this['getAllMarkersForId'](_0x3d1810)['length']>0x0;}['getAllMarkersForId'](_0x3f531b){const _0x1cedc2=[];for(const _0x1e9a28 of this['editor']['model']['markers'])_0x1e9a28['name']['startsWith']('comment:'+_0x3f531b)&&_0x1cedc2['push'](_0x1e9a28);return _0x1cedc2;}['scrollToThreadMarker'](_0x255ec){setTimeout(()=>{const _0x4964eb=this['_getTargetForId'](_0x255ec);if(!_0x4964eb)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x255ec&&nt({'target':_0x4964eb[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x255195){this['editor']['model']['change'](()=>{for(const _0x27d448 of this['getAllMarkersForId'](_0x255195))this['editor']['editing']['reconvertMarker'](_0x27d448);});}['_attachArchivedThread'](_0xf4202d){const _0x345431=this['editor']['plugins']['get'](o),_0x1f0800=this['editor']['plugins']['get'](b),_0x269329=_0x345431['getCommentThread'](_0xf4202d);if(!_0x269329['isAttached']){const _0x460144=_0x269329['attachTo'](()=>this['_getTargetForId'](_0x269329['id']));_0x1f0800['registerAnnotation'](_0x460144),_0x269329['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0xdd14c3=this['editor'],_0x7cd6c9=_0xdd14c3['plugins']['get'](it);_0xdd14c3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x12a576,_0x280284)=>{const {id:_0x3c6f9c}=ft(_0x12a576['markerName']),_0x5109c=_0xdd14c3['plugins']['get'](o)['getCommentThread'](_0x3c6f9c),_0x518276=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x3c6f9c;let _0x4aed05;if(_0x5109c&&_0x5109c['isResolved']&&!_0x518276&&_0x12a576['item'])return _0x280284['consumable']['consume'](_0x12a576['item'],'addMarker:'+_0x12a576['markerName']),_0x280284['consumable']['consume'](_0x12a576['item'],'removeMarker:'+_0x12a576['markerName']),null;const _0x124a28=['ck-comment-marker'];return _0x518276&&_0x124a28['push']('ck-comment-marker--active'),_0x4aed05=_0x5109c?.['length']?_0x5109c['comments']['first']['author']['id']:_0x7cd6c9['me']['id'],{'classes':_0x124a28,'attributes':{'data-comment':_0x3c6f9c,'data-author-id':_0x4aed05}};}}),_0xdd14c3['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x25d8c2,{options:_0x30d8b3})=>{if(_0x30d8b3['showCommentHighlights'])return null;const _0x10c819=_0xdd14c3['plugins']['get'](o),_0x54aafd=_0xdd14c3['model']['markers']['get'](_0x25d8c2),{id:_0x34ccb6,part:_0x23a0b0}=ft(_0x25d8c2);return _0x54aafd&&!_0x54aafd['affectsData']||_0x30d8b3['ignoreResolvedComments']&&_0x10c819['getCommentThread'](_0x34ccb6)?.['isResolved']?null:{'group':'comment','name':_0x23a0b0?_0x34ccb6+':'+_0x23a0b0:_0x34ccb6};}}),_0xdd14c3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x109fae,{writer:_0x132410})=>_0x132410['createElement']('$marker',{'data-name':'comment:'+_0x109fae['getAttribute']('id')})}),_0xdd14c3['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x31b15d=this['editor'],_0x43d434=_0x31b15d['plugins']['get'](o),_0x2505bc=new Set(),_0x39f44e=new Set();_0x31b15d['model']['document']['registerPostFixer'](_0x4c37e6=>{let _0x5d9f21=!0x1;for(const {name:_0x5154c2,data:_0x35a0b6}of _0x31b15d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4b18cc,id:_0x26f779}=ft(_0x5154c2);let _0x2659c3=_0x35a0b6['newRange'];if('comment'!==_0x4b18cc||!_0x2659c3)continue;const _0x5a1dff='$graveyard'===_0x2659c3['root']['rootName'];_0x5a1dff||(_0x2659c3=ht(_0x2659c3,_0x31b15d['model']),!_0x2659c3||_0x2659c3['isCollapsed']||!_0x35a0b6['newRange']||_0x2659c3['isEqual'](_0x35a0b6['newRange']))?_0x31b15d['model']['hasContent'](_0x2659c3)&&!_0x5a1dff?this['isThreadsLoadingPaused']?_0x2505bc['add'](_0x5154c2):this['_handleThreadMarker'](_0x5154c2,_0x26f779):(_0x39f44e['add'](_0x5154c2),_0x2505bc['delete'](_0x5154c2),_0x4c37e6['removeMarker'](_0x5154c2),_0x5d9f21=!0x0):(_0x4c37e6['updateMarker'](_0x5154c2,{'range':_0x2659c3}),_0x5d9f21=!0x0);}return _0x5d9f21;}),this['on']('change:isThreadsLoadingPaused',(_0x9e953f,_0x4ddcff,_0x47d2b8)=>{if(!_0x47d2b8&&_0x2505bc['size'])for(const _0x4e2fbb of _0x2505bc){const {id:_0xfd29cc}=ft(_0x4e2fbb);_0x2505bc['delete'](_0x4e2fbb),_0x31b15d['model']['markers']['get'](_0x4e2fbb)&&this['_handleThreadMarker'](_0x4e2fbb,_0xfd29cc);}}),this['listenTo'](_0x31b15d['model']['document'],'change',()=>{for(const {name:_0xf33a8b,data:{newRange:_0x4ab45c}}of _0x31b15d['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1c86a4,id:_0x44ebf0}=ft(_0xf33a8b);if('comment'!==_0x1c86a4)continue;const _0x57f726=_0x43d434['getCommentThread'](_0x44ebf0),_0x4b284c=this['hasMarkerForId'](_0x44ebf0);_0x57f726&&(!_0x57f726['_hasTargetInContent']&&_0x4ab45c&&_0x31b15d['editing']['view']['once']('render',()=>{const _0x4ad242=_0x31b15d['plugins']['get'](y),_0x7e5f4b=_0x43d434['_threadToController']['get'](_0x57f726)['view'];_0x4ad242['getByInnerView'](_0x7e5f4b)['refreshVisibility']();},{'priority':'low'}),_0x57f726['_hasTargetInContent']=_0x4b284c||!!_0x4ab45c),_0x4ab45c||(_0x39f44e['add'](_0xf33a8b),_0x2505bc['delete'](_0xf33a8b));}for(const _0x297595 of _0x39f44e){const {id:_0x3d39d0}=ft(_0x297595),_0x53395a=_0x43d434['getCommentThread'](_0x3d39d0);if(_0x2505bc['delete'](_0x297595),!_0x53395a)continue;const _0x12a2dc=this['hasMarkerForId'](_0x3d39d0);_0x12a2dc||_0x53395a['isSubmitted']?_0x12a2dc||_0x53395a['unlinkedAt']||_0x53395a['setUnlinkedAt'](new Date()):_0x53395a['remove']();}_0x39f44e['clear']();});}['_handleInitialThreads'](_0x41ab1f){_0x41ab1f['forEach'](_0x3119d7=>{_0x3119d7['unlinkedAt']&&this['_attachArchivedThread'](_0x3119d7['id']);});}['_getTargetForId'](_0x510772){const _0x1107e9=this['editor'],_0x4b058d=this['getAllMarkersForId'](_0x510772);return et(_0x1107e9['editing'],_0x4b058d);}['_getTextContext'](_0x3b1446){const _0x56c1c2=this['getAllMarkersForId'](_0x3b1446);let _0x2d8d00='',_0x150c27=!0x1;for(const _0x333807 of _0x56c1c2){const _0x9a5d30=_0x333807['getRange']();for(const _0x379ca2 of Array['from'](_0x9a5d30['getItems']()))_0x379ca2['is']('$textProxy')?(_0x2d8d00&&_0x150c27&&(_0x2d8d00+='\x20',_0x150c27=!0x1),_0x2d8d00+=_0x379ca2['data']):_0x150c27=!0x0;_0x150c27=!0x0;}return _0x2d8d00['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4ef2ab,_0x41e4f4){const _0x37abd1=this['editor'],_0x429afd=_0x37abd1['plugins']['get'](o);let _0x27d475=_0x429afd['getCommentThread'](_0x41e4f4);const _0x2ef7ba=_0x37abd1['config']['get']('collaboration.channelId'),_0x48b52e=_0x37abd1['plugins']['get'](b);if(_0x27d475&&(_0x27d475['unlinkedAt']&&_0x27d475['setUnlinkedAt'](null),_0x27d475['isAttached']))return _0x27d475;return!this['getAllMarkersForId'](_0x41e4f4)[0x0]['managedUsingOperations']?_0x37abd1['editing']['view']['once']('render',()=>{if(_0x429afd['getCommentThread'](_0x41e4f4))return;const _0x3795df=_0x37abd1['plugins']['get'](y);_0x27d475=_0x429afd['openNewCommentThread']({'channelId':_0x2ef7ba,'threadId':_0x41e4f4,'target':()=>this['_getTargetForId'](_0x41e4f4),'context':{'type':'text','value':this['_getTextContext'](_0x41e4f4)}});const _0x55d907=_0x429afd['_threadToController']['get'](_0x27d475)['view'],_0x6e3f9d=_0x3795df['getByInnerView'](_0x55d907);_0x6e3f9d&&_0x48b52e['registerAnnotation'](_0x6e3f9d);},{'priority':'low'}):_0x429afd['fetchCommentThread']({'channelId':_0x2ef7ba,'threadId':_0x41e4f4})['then'](_0x1f1b12=>{if('destroyed'!==_0x37abd1['state']){if(_0x27d475=_0x1f1b12,_0x27d475&&!_0x27d475['isAttached']){const _0x491d48=_0x27d475['attachTo'](()=>this['_getTargetForId'](_0x41e4f4));_0x48b52e['registerAnnotation'](_0x491d48),_0x27d475['isResolved']&&this['_reconvertMarkers'](_0x41e4f4);}else{if(!_0x27d475){const _0x4e250d=this['getAllMarkersForId'](_0x41e4f4);_0x37abd1['model']['change'](_0x5358a2=>{for(const _0x36d02c of _0x4e250d)_0x5358a2['removeMarker'](_0x36d02c);});}}}}),_0x27d475;}['_handleThreadMarker'](_0x6bf618,_0x180a8){const _0x1ffcbd=this['_attachMarkerToThread'](_0x6bf618,_0x180a8);_0x1ffcbd&&!_0x1ffcbd['context']&&_0x1ffcbd['setContext']({'type':'text','value':this['_getTextContext'](_0x180a8)});}['_initAriaMarkerChangeAnnouncements'](){const _0x1499e0=this['editor'];rt(_0x1499e0['model'],({left:_0x56e93b,entered:_0x3d4296})=>{for(const _0xf9efe3 of _0x56e93b)if(mt(_0xf9efe3)){_0x1499e0['ui']['ariaLiveAnnouncer']['announce'](N(_0x1499e0['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x5d48b1 of _0x3d4296)if(mt(_0x5d48b1)){_0x1499e0['ui']['ariaLiveAnnouncer']['announce'](N(_0x1499e0['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x1a0347)));break;}});}}function dt(_0x4ba6c0,_0x5d1472){return _0x5d1472?_0x4ba6c0+':'+_0x5d1472:_0x4ba6c0;}function ht(_0x3aa0ac,_0x51b6a1){const _0x5c167a=_0x51b6a1['schema'],_0x4aaac=_0x51b6a1['createRange'](_0x3aa0ac['start']);for(const _0x25d1cd of _0x3aa0ac['getWalker']()){const {type:_0x622460,item:_0x19e356,nextPosition:_0x51de7d}=_0x25d1cd;if('text'===_0x622460||_0x5c167a['isObject'](_0x19e356)){const _0x3c733b=_0x51b6a1['createPositionBefore'](_0x19e356);_0x4aaac['isCollapsed']&&(_0x4aaac['start']=_0x3c733b),_0x4aaac['end']=_0x51de7d;}}return _0x4aaac;}function mt(_0x309ef2){return'comment'===ft(_0x309ef2['name'])['group'];}class s extends _0x369f89{['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 _0x101e3d=this['editor'],_0x38d277=_0x101e3d['plugins']['get'](o),_0x3315c0=_0x101e3d['plugins']['get'](r),_0x144078=_0x101e3d['plugins']['get'](y),_0x3835a0=_0x101e3d['plugins']['get'](b);_0x101e3d['ui']['componentFactory']['add']('comment',()=>{const _0x4185d5=this['_createUIButton'](_0x528043);return _0x4185d5['tooltip']=!0x0,_0x4185d5;}),_0x101e3d['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x4cb2be)),_0x3835a0['addSourceCollector'](()=>{const _0x4c8055=[];for(const [_0x42019d,_0x58e24e]of _0x38d277['_threadToController']){const _0x5ba040=_0x3315c0['getAllMarkersForId'](_0x42019d['id']),_0x50cd26=_0x5ba040['map'](_0x5206af=>_0x5206af['getRange']());_0x5ba040['length']>0x0&&_0x4c8055['push']([_0x58e24e['view'],_0x50cd26]);}return _0x4c8055;}),this['listenTo'](_0x144078,'change:activeAnnotations',(_0x199d98,_0x1e5b83,_0x3d10c2)=>{const _0x5d4059=Array['from'](_0x3d10c2)['map'](_0x163c06=>_0x163c06['innerView'])['find'](_0x1d7bcc=>_0x38d277['_viewToController']['has'](_0x1d7bcc));if(!_0x5d4059)return void(_0x3315c0['activeMarker']=null);const _0x1240ed=_0x38d277['_viewToController']['get'](_0x5d4059)['model']['id'],_0x5710a5='comment:'+_0x1240ed;_0x1240ed&&_0x3315c0['hasMarkerForId'](_0x1240ed)?_0x3315c0['activeMarker']=_0x5710a5:_0x3315c0['activeMarker']&&(_0x3315c0['activeMarker']=null);}),this['listenTo'](_0x38d277,'removeCommentThread',(_0x121da4,{threadId:_0x331820,isFromAdapter:_0x1b35e8})=>{!_0x1b35e8&&_0x101e3d['ui']['focusTracker']['isFocused']&&_0x3315c0['hasMarkerForId'](_0x331820)&&_0x101e3d['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x38d277,'addComment',(_0x544ac5,{threadId:_0x726ce5,isFromAdapter:_0x5cdfe1})=>{if(_0x5cdfe1||!_0x3315c0['hasMarkerForId'](_0x726ce5)||!_0x38d277['hasCommentThread'](_0x726ce5))return;0x1===_0x38d277['getCommentThread'](_0x726ce5)['length']&&(_0x101e3d['editing']['view']['focus'](),_0x544ac5['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe35b60=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4de1ee;for(const _0x1d755f in _0xe35b60){const _0x1227c3=_0x1d755f,_0x45b9f1=_0xe35b60[_0x1227c3];if('commentsLicenseKeyValid'==_0x45b9f1||'commentsLicenseKeyInvalid'==_0x45b9f1||'commentsLicenseKeyExpired'==_0x45b9f1||'commentsLicenseKeyDomainLimit'==_0x45b9f1||'commentsLicenseKeyNotAllowed'==_0x45b9f1||'commentsLicenseKeyEvaluationLimit'==_0x45b9f1||'commentsLicenseKeyTrialLimit'==_0x45b9f1||'commentsLicenseKeyUsageLimit'==_0x45b9f1){delete _0xe35b60[_0x1227c3],_0x4de1ee=_0x45b9f1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x4de1ee&&_0xe35b60['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x4de1ee&&_0xe35b60['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x4de1ee&&_0xe35b60['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x4de1ee&&_0xe35b60['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x4de1ee&&_0xe35b60['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x4de1ee&&_0xe35b60['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x4de1ee&&_0xe35b60['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x30e4c0){const _0x32af89=this['editor'],_0x25b6c5=new _0x30e4c0(_0x32af89['locale']),_0x13b207=_0x32af89['commands']['get']('addCommentThread');return _0x25b6c5['set']({'label':N(_0x32af89['locale'],'Comment'),'icon':_0x3f02ea}),_0x25b6c5['bind']('isEnabled')['to'](_0x13b207,'hasContent'),this['listenTo'](_0x25b6c5,'execute',()=>{_0x13b207['execute']();}),_0x25b6c5;}}class i extends _0x369f89{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x5e62c9){super(_0x5e62c9),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x15de62,_0x5a8a0f,_0xa03459)=>{_0xa03459?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x128b5e,_0x1ba1e0]of this['editor']['commands'])_0x1ba1e0['affectsData']&&'addCommentThread'!==_0x128b5e&&_0x1ba1e0['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x4d76b9=this['editor']['editing']['view']['document'];this['listenTo'](_0x4d76b9,'cut',_0x4be9b3=>_0x4be9b3['stop'](),{'priority':'highest'}),this['listenTo'](_0x4d76b9,'clipboardInput',_0x38f676=>_0x38f676['stop'](),{'priority':'highest'}),this['listenTo'](_0x4d76b9,'delete',_0x10f29d=>_0x10f29d['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x2ff0f4,_0x4ef6bf]of this['editor']['commands'])_0x4ef6bf['affectsData']&&'addCommentThread'!==_0x2ff0f4&&_0x4ef6bf['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 _0x233d6c{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e7392){super(_0x3e7392),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x5e9c32=this['context']['plugins']['get'](y);this['listenTo'](_0x5e9c32,'_activateAnnotation',(_0x3aa4bc,_0x11f7ca)=>{for(const _0x3e6f7a of this['activeUIs']){const _0x589cfc=this['_uis']['get'](_0x3e6f7a);(0x0,this['uisData']['get'](_0x3e6f7a)['filter'])(_0x11f7ca)&&_0x589cfc['setActiveAnnotation'](_0x11f7ca);}}),this['listenTo'](_0x5e9c32,'_deactivateAllAnnotations',()=>{for(const _0x38642e of this['activeUIs']){this['_uis']['get'](_0x38642e)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5e9c32['_visibleAnnotations'],'add',(_0x36edd2,_0x45a14d)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x45a14d);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x591f56){return this['activeUIs']['has'](_0x591f56);}['activate'](_0x2b853b,_0x6e6935=this['defaultFilter']){const _0x23012d=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x2b853b))throw new _0x53bd93('annotationsuis-missing-ui',this,{'uiName':_0x2b853b});this['isActive'](_0x2b853b)&&this['deactivate'](_0x2b853b),this['activeUIs']['add'](_0x2b853b);const _0x2dba66=new S();v({'source':_0x23012d['_visibleAnnotations'],'target':_0x2dba66,'filter':_0x6e6935}),this['uisData']['set'](_0x2b853b,{'collection':_0x2dba66,'filter':_0x6e6935});const _0x125758=this['_uis']['get'](_0x2b853b);_0x125758['attach'](_0x2dba66),this['listenTo'](_0x125758,'change:activeAnnotation',(_0x17846e,_0x25fb58,_0x22bb76,_0x2efd52)=>{_0x2efd52&&_0x23012d['_removeActiveAnnotation'](_0x2efd52),_0x22bb76&&_0x23012d['_addActiveAnnotation'](_0x22bb76);});}['deactivate'](_0x2ade8c){if(this['activeUIs']['delete'](_0x2ade8c),!this['_uis']['has'](_0x2ade8c))throw new _0x53bd93('annotationsuis-missing-ui',this,{'uiName':_0x2ade8c});const _0xed11d3=this['_uis']['get'](_0x2ade8c);_0xed11d3['detach'](),this['stopListening'](_0xed11d3),this['uisData']['get'](_0x2ade8c)['collection']['destroy'](),this['uisData']['delete'](_0x2ade8c);}['switchTo'](_0x4d5e4a){if(!this['_uis']['has'](_0x4d5e4a))throw new _0x53bd93('annotationsuis-missing-ui',this,{'uiName':_0x4d5e4a});const _0x5c861c=this['context']['plugins']['get'](y),_0x159b08=Array['from'](_0x5c861c['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x4d5e4a);const _0x4101bd=this['_uis']['get'](_0x4d5e4a);_0x4101bd['setActiveAnnotation'](_0x159b08),_0x4101bd['_setSelectedAnnotations']&&_0x159b08&&_0x4101bd['_setSelectedAnnotations']([_0x159b08]);}['deactivateAll'](){for(const _0x21d5a5 of this['activeUIs'])this['deactivate'](_0x21d5a5);}['register'](_0x5d77d5,_0x20b365){if(this['_uis']['has'](_0x5d77d5))throw new _0x53bd93('annotationsuis-register-already-registered');if('function'!=typeof _0x20b365['attach']||'function'!=typeof _0x20b365['detach']||'function'!=typeof _0x20b365['setActiveAnnotation'])throw new _0x53bd93('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5d77d5,_0x20b365);}['refilterAnnotations'](){const _0x3f5b57=this['context']['plugins']['get'](y)['collection'],_0x499c87=new Map(),_0x19d7b8=Array['from'](this['activeUIs']);for(const _0x14a646 of this['activeUIs']){const _0x59dbc3=this['uisData']['get'](_0x14a646)['collection'];for(const _0x4c0c9a of _0x59dbc3)_0x499c87['set'](_0x4c0c9a,_0x14a646);}for(const _0x1d354c of _0x3f5b57){const _0x836f65=_0x499c87['get'](_0x1d354c);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1d354c);const _0x252f9d=_0x19d7b8['find'](_0x30c811=>this['uisData']['get'](_0x30c811)['filter'](_0x1d354c));_0x836f65!==_0x252f9d&&(_0x836f65&&this['uisData']['get'](_0x836f65)['collection']['remove'](_0x1d354c),_0x252f9d&&this['uisData']['get'](_0x252f9d)['collection']['add'](_0x1d354c));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x5ddafe){const _0x52f939=[];for(const _0x39b429 of this['activeUIs']){(0x0,this['uisData']['get'](_0x39b429)['filter'])(_0x5ddafe)&&_0x52f939['push'](_0x39b429);}if(_0x52f939['length']>0x1)throw new _0x53bd93('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x52f939,'annotationType':_0x5ddafe['type']});}}const _i=/* #__PURE__ -- @preserve */
|
|
32
|
-
Ht('px');class H extends
|
|
33
|
-
Ht('px');class R extends xt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x3d6935){super(_0x3d6935),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x3149ba,_0x12ca5e)=>_0x3149ba+_0x12ca5e),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=Vt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x4a7a20=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x4a7a20['to']('isAnimationDisabled',_0x49a243=>_0x49a243?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x4a7a20['to']('top',_0x4c6d3a=>Ot(_0x4c6d3a))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0xb17da6=this['element']['clientHeight'];_0xb17da6&&(this['height']=_0xb17da6);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x233d6c{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28db49){super(_0x28db49),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 _0x24c487=this['context']['config']['get']('sidebar.container');_0x24c487&&this['setContainer'](_0x24c487);}['setContainer'](_0x12ec6){if(!g(_0x12ec6))throw new _0x53bd93('sidebar-setcontainer-invalid-element');this['container']=_0x12ec6;}['_attachToContainer']({viewClass:_0x30b72f='',spaceBetweenItems:_0x29b85c=0x19}={}){if(!g(this['container']))throw new _0x53bd93('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x30b72f,this['_spaceBetweenItems']=_0x29b85c;}['rearrange']({removedAnnotation:_0x27a13e,previousAnnotation:_0x13e6df,nextAnnotation:_0xd34b7}){const _0x3c6079=this['getSidebarItemView'](_0x27a13e);this['view']['list']['remove'](_0x3c6079),this['_destroySidebarItemView'](_0x27a13e),_0x13e6df&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x13e6df)),_0xd34b7&&this['_alignToTargetRect'](this['getSidebarItemView'](_0xd34b7)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x34aa8e,activatedAnnotation:_0x4f3949,disableAnimationOnActivatedAnnotation:_0x29c426}){if(this['_activeAnnotation']=_0x4f3949,_0x34aa8e){_0x34aa8e['isActive']=!0x1;const _0xb2cbef=this['getSidebarItemView'](_0x34aa8e);_0xb2cbef&&_0x29c426&&(_0xb2cbef['isAnimationDisabled']=!0x1);}if(_0x4f3949){const _0x1bbb6d=this['getSidebarItemView'](_0x4f3949);_0x1bbb6d&&(_0x4f3949['isActive']=!0x0,_0x29c426&&(_0x1bbb6d['isAnimationDisabled']=!0x0,_0x1bbb6d['top']+=0x1),this['_alignToTargetRect'](_0x1bbb6d));}}['_detachFromContainer'](_0x4e861d){if(this['view']['element']['remove'](),_0x4e861d){for(const _0x4d2668 of _0x4e861d)this['_destroySidebarItemView'](_0x4d2668);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x52b486,_0x3888b6){_0x3888b6||(_0x3888b6=_0x52b486['view']);const _0x2d6b13=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x2d6b13,_0x52b486),this['_annotationToSidebarItemView']['set'](_0x52b486,_0x2d6b13),_0x2d6b13['content']['add'](_0x3888b6),this['listenTo'](_0x52b486['view'],'change:targetRect',(_0x3e00df,_0x22d677,_0x508253)=>{const _0x1e5086=this['_getTargetTop'](_0x52b486,_0x508253);_0x2d6b13['_targetTop']!=_0x1e5086&&(_0x2d6b13['_targetTop']=_0x1e5086,this['_setItemTop'](_0x2d6b13,_0x1e5086));}),this['listenTo'](_0x2d6b13,'change:top',()=>{this['_recalculate'](_0x2d6b13,'top');}),this['listenTo'](_0x2d6b13,'change:bottom',()=>{this['_recalculate'](_0x2d6b13,'bottom');}),this['_alignToTargetRect'](_0x2d6b13);const _0xdfc59c=this['_getItemBefore'](_0x2d6b13);if(_0xdfc59c)this['_alignAfterItem'](_0xdfc59c,_0x2d6b13)||this['_alignToTargetRect'](_0x2d6b13);else this['_alignToTargetRect'](_0x2d6b13);return this['_updateLastItem'](),this['view']['list']['add'](_0x2d6b13),_0x2d6b13;}['_alignForTopChange'](_0x2330b2){if(!_0x2330b2['content']['length'])return;const _0x2e8794=this['_getItemBefore'](_0x2330b2);if(!_0x2e8794)return;const _0x3bdaac=this['_sidebarItemViewToAnnotation']['get'](_0x2e8794),_0x5d8301=this['_activeAnnotation'];_0x5d8301&&_0x5d8301===_0x3bdaac?this['_alignAfterItem'](_0x2e8794,_0x2330b2):this['_alignBeforeItem'](_0x2330b2,_0x2e8794);}['_alignForBottomChange'](_0x257b77){if(!_0x257b77['content']['length'])return;const _0x53bc9c=this['_getItemAfter'](_0x257b77);if(!_0x53bc9c)return;const _0x1cd3b5=this['_sidebarItemViewToAnnotation']['get'](_0x53bc9c),_0x491bef=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x52687b=this['_activeAnnotation'];_0x52687b&&_0x52687b===_0x1cd3b5&&_0x491bef?(this['_alignBeforeItem'](_0x53bc9c,_0x257b77),this['_alignAfterItem'](_0x257b77,_0x53bc9c)):_0x52687b&&_0x52687b===_0x1cd3b5?this['_alignBeforeItem'](_0x53bc9c,_0x257b77):this['_alignAfterItem'](_0x257b77,_0x53bc9c);}['_recalculate'](_0x5c60ad,_0x49cb43){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x1bd23f,changedProp:_0x3aae9d}of this['_recalculateBuffer'])'top'===_0x3aae9d?this['_alignForTopChange'](_0x1bd23f):this['_alignForBottomChange'](_0x1bd23f);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x5c60ad,'changedProp':_0x49cb43});}['getSidebarItemView'](_0x429889){return this['_annotationToSidebarItemView']['get'](_0x429889);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x47e743){const _0x1fd942=this['getSidebarItemView'](_0x47e743);this['stopListening'](_0x1fd942),this['stopListening'](_0x47e743['view']),_0x1fd942['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x47e743),this['_sidebarItemViewToAnnotation']['delete'](_0x1fd942);}['_createSidebarView'](){const _0x2e64a3=new H(this['context']['locale']);return _0x2e64a3['render'](),this['on']('change:_lastItem',(_0x5afbfa,_0x27b61d,_0x37af2c,_0x272ea7)=>{_0x272ea7&&_0x2e64a3['unbind']('minHeight'),_0x37af2c?_0x2e64a3['bind']('minHeight')['to'](_0x37af2c,'bottom'):_0x2e64a3['minHeight']=null;}),_0x2e64a3;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x5e94b3){const _0x41b836=this['_sidebarItemViewToAnnotation']['get'](_0x5e94b3),_0x55962f=_0x41b836&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x41b836)-0x1);return _0x55962f&&this['getSidebarItemView'](_0x55962f)||null;}['_getItemAfter'](_0x40e95f){const _0x2884c8=this['_sidebarItemViewToAnnotation']['get'](_0x40e95f),_0x170843=_0x2884c8&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x2884c8)+0x1);return _0x170843&&this['getSidebarItemView'](_0x170843)||null;}['_alignBeforeItem'](_0x417466,_0x1505c6){_0x417466['updateHeight']();const _0x50f4b0=G(_0x1505c6['bottom']+this['_spaceBetweenItems'],_0x417466['top']);return!!_0x50f4b0&&(this['_setItemTop'](_0x1505c6,_0x1505c6['top']-_0x50f4b0),!0x0);}['_alignAfterItem'](_0x8b4e83,_0x30be3d){_0x8b4e83['updateHeight']();const _0xaac842=G(_0x8b4e83['bottom']+this['_spaceBetweenItems'],_0x30be3d['top']);return!!_0xaac842&&(this['_setItemTop'](_0x30be3d,_0x30be3d['top']+_0xaac842,!0x1),!0x0);}['_alignToTargetRect'](_0x1ceac3){const _0x598d37=this['_sidebarItemViewToAnnotation']['get'](_0x1ceac3);if(!_0x598d37||!_0x598d37['target']||!_0x598d37['targetRect'])return;const _0x328bf8=this['_getTargetTop'](_0x598d37,_0x598d37['targetRect']);this['_setItemTop'](_0x1ceac3,_0x328bf8);}['_getTargetTop'](_0x33a72d,_0x37969a){if(null===_0x37969a)return 0x0;if(_0x33a72d['target']instanceof _0x5199db)return _0x37969a['top'];{const _0xb02c40=new _0x5199db(this['view']['element'])['top'];return _0x37969a['top']-_0xb02c40;}}['_setItemTop'](_0x369a85,_0x28208e,_0x1c89b7=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x1c89b7&&(_0x28208e=Math['max'](_0x28208e,this['_getMaxAvailableTop'](_0x369a85))),_0x369a85['top']=_0x28208e;}['_getMaxAvailableTop'](_0x130ea0){let _0x349ef4=this['_getItemBefore'](_0x130ea0),_0x5aef6c=0x0;for(;_0x349ef4;)_0x349ef4['updateHeight'](),_0x5aef6c+=this['_spaceBetweenItems']+_0x349ef4['height'],_0x349ef4=this['_getItemBefore'](_0x349ef4);return _0x5aef6c;}}function G(_0x4f9347,_0x2f6096){return Math['max'](_0x4f9347-_0x2f6096,0x0);}function g(_0x213822){return null!==_0x213822&&'object'==typeof _0x213822&&0x1===_0x213822['nodeType'];}class e extends _0x233d6c{['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(_0x9cbdfc){super(_0x9cbdfc),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x717f3a(),this['_refreshPositioningDebounced']=_0x4eaf0d(()=>{_0x9cbdfc['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0xaca1aa=this['context']['plugins']['get'](j),_0x91d401=this['context']['plugins']['get'](z);_0xaca1aa['register']('wideSidebar',this),_0x91d401['container']&&_0xaca1aa['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x51cf60){if(_0x51cf60===this['activeAnnotation'])return;const _0x2af12c=this['context']['plugins']['get'](z);_0x2af12c['_activeAnnotation']=_0x51cf60;const _0x4dd1c8=this['activeAnnotation'];_0x2af12c['refresh']({'blurredAnnotation':_0x4dd1c8,'activatedAnnotation':_0x51cf60}),this['activeAnnotation']=_0x51cf60;}['attach'](_0x4e120d){this['annotations']=_0x4e120d;const _0x1c9b66=this['context']['plugins']['get'](z);if(_0x1c9b66['_annotations']=_0x4e120d,this['isAttached'])throw new _0x53bd93('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x1c9b66,'set:container',()=>{this['detach'](),this['listenTo'](_0x1c9b66,'change:container',_0x3aa810=>{_0x3aa810['off'](),this['attach'](_0x4e120d);});}),_0x1c9b66['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x5f578d=_0x3ba164=>{_0x3ba164['updateTargetRect'](),_0x1c9b66['addAnnotation'](_0x3ba164);};for(const _0x59c66e of _0x4e120d)_0x5f578d(_0x59c66e);this['listenTo'](_0x4e120d,'add',(_0x336dd9,_0x16b8c8)=>{_0x5f578d(_0x16b8c8);}),this['listenTo'](_0x4e120d,'remove',(_0x252f89,_0x2cf9a4,_0x1c7ec6)=>{_0x1c9b66['rearrange']({'removedAnnotation':_0x2cf9a4,'previousAnnotation':_0x4e120d['get'](_0x1c7ec6-0x1),'nextAnnotation':_0x4e120d['get'](_0x1c7ec6+0x1)}),_0x2cf9a4===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x4e120d,'focus',(_0x8d6d8,_0x494549)=>{this['setActiveAnnotation'](_0x494549);}),this['listenTo'](_0x4e120d,'blur',()=>{this['setActiveAnnotation'](null);});const _0x3548fb=this['context']instanceof _0xfa5877?this['context']['editors']:new _0x717f3a([this['context']]);for(const _0x5f5575 of _0x3548fb)this['_integrateWithEditorAnnotations'](_0x5f5575);this['listenTo'](_0x3548fb,'add',(_0x32e0b,_0x34c0c7)=>{this['listenTo'](_0x34c0c7,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x34c0c7);});}),this['listenTo'](_0x3548fb,'remove',(_0x30c6d5,_0x17322a)=>{_0x17322a['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x17322a['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x53bd93('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0xc8274b=this['context']['plugins']['get'](z);_0xc8274b['_detachFromContainer'](this['annotations']),this['stopListening'](_0xc8274b),this['stopListening'](this['annotations']),this['context']instanceof _0xfa5877&&this['stopListening'](this['context']['editors']);for(const _0x4f369e of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4f369e);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x5dc3ce){if(!_0x5dc3ce['plugins']['has']('EditorAnnotations'))return;const _0x2de586=_0x5dc3ce['plugins']['get']('EditorAnnotations'),_0x16a470=()=>{const _0x2443a1=_0x2de586['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x2443a1[0x0]||null);};this['listenTo'](_0x2de586,'refresh',_0x16a470),this['listenTo'](_0x2de586,'blur',(_0x559341,{isAnnotationTracked:_0x431bb4})=>{this['activeAnnotation']&&_0x431bb4(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x2de586,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x595e5f=>{_0x2de586['hasDomSelection']()&&(_0x16a470(),_0x595e5f['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x2de586);}['_destroyEditorAnnotationsIntegration'](_0x297582){this['stopListening'](_0x297582),this['_editorAnnotations']['remove'](_0x297582);}}class C extends _0x528043{['counterView'];constructor(_0x2b03f4){super(_0x2b03f4);const _0x4a7f27=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x45c3f8,_0x175e7a)=>_0x45c3f8?'...':_0x175e7a['toString']()),this['set']('annotationType',''),this['icon']=_0x3f02ea,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new xt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4a7f27['to']('annotationType',_0x1fea6b=>'ck-annotation-counter__badge--'+_0x1fea6b),_0x4a7f27['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x4a7f27['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x233d6c{['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(_0x4f7d1d){super(_0x4f7d1d),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x131473())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x717f3a(),this['_refreshPositioningDebounced']=_0x4eaf0d(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x3ae690(this['context']['locale']),this['balloonPanelView']=new _0x5547e8(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x2dc727){this['annotations']=_0x2dc727;const _0x344c00=this['context']['plugins']['get'](z),_0x117c7d=this['balloonPanelView'];if(_0x344c00['_annotations']=_0x2dc727,this['isAttached'])throw new _0x53bd93('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x344c00,'set:container',()=>{this['detach'](),this['listenTo'](_0x344c00,'change:container',_0x17c4ae=>{_0x17c4ae['off'](),this['attach'](_0x2dc727);});}),_0x344c00['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x513dd6=_0x446118=>{const _0x2de452=new C(this['context']['locale']);_0x344c00['addAnnotation'](_0x446118,_0x2de452),this['_annotationToNarrowView']['set'](_0x446118,_0x2de452),_0x2de452['bind']('isDirty','annotationType','number')['to'](_0x446118['view'],'isDirty','type','length'),_0x2de452['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x117c7d['content']['first']!==_0x446118['view']?(this['_showBalloon'](_0x446118),_0x446118['view']['element']['focus'](),this['setActiveAnnotation'](_0x446118)):this['setActiveAnnotation'](null);});};for(const _0x2f3a1a of _0x2dc727)_0x513dd6(_0x2f3a1a);this['listenTo'](_0x2dc727,'add',(_0x1f2a2f,_0x5238dd)=>{_0x513dd6(_0x5238dd);}),this['listenTo'](_0x2dc727,'remove',(_0x4b2130,_0x4a20ed,_0x1b5668)=>{this['_annotationToNarrowView']['get'](_0x4a20ed)['destroy'](),this['_annotationToNarrowView']['delete'](_0x4a20ed),_0x344c00['rearrange']({'removedAnnotation':_0x4a20ed,'previousAnnotation':_0x2dc727['get'](_0x1b5668-0x1),'nextAnnotation':_0x2dc727['get'](_0x1b5668+0x1)}),_0x4a20ed===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x2dc727,'focus',(_0xc8bb11,_0x42765c)=>{this['setActiveAnnotation'](_0x42765c);}),this['listenTo'](_0x2dc727,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x68412e,_0x29fd4c)=>{_0x29fd4c['keyCode']===_0x47c1fd['esc']&&_0x117c7d['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x117c7d['content']['first']),this['_hideBalloon'](),_0x29fd4c['stopPropagation'](),_0x29fd4c['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x230748,_0x164a13)=>{const _0x5db4ea=_0x164a13['target'];_0x117c7d['isVisible']&&_0x117c7d['element']['contains'](_0x5db4ea)||_0x344c00['view']['element']['contains'](_0x5db4ea)||_0x230748['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x10bb37=>_0x10bb37['contains'](_0x5db4ea))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x2b2660=this['context']instanceof _0xfa5877?this['context']['editors']:new _0x717f3a([this['context']]);for(const _0x1ad560 of _0x2b2660)this['_integrateWithEditorAnnotations'](_0x1ad560);this['listenTo'](_0x2b2660,'add',(_0x5f3bfd,_0x8aba8e)=>{this['listenTo'](_0x8aba8e,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x8aba8e);});}),this['listenTo'](_0x2b2660,'remove',(_0xd3a870,_0x2e5d9d)=>{_0x2e5d9d['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2e5d9d['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x48bc4e){if(_0x48bc4e===this['activeAnnotation'])return;const _0x4f3a53=this['context']['plugins']['get'](z);if(_0x4f3a53['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x48bc4e,'disableAnimationOnActivatedAnnotation':!0x0}),_0x48bc4e)_0x4f3a53['getSidebarItemView'](_0x48bc4e)?this['_showBalloon'](_0x48bc4e):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x48bc4e;}['detach'](){if(!this['isAttached'])throw new _0x53bd93('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x2ce938=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x29d7d4=>_0x29d7d4['destroy']()),this['_annotationToNarrowView']['clear'](),_0x2ce938['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0xfa5877&&this['stopListening'](this['context']['editors']);for(const _0x18444f of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x18444f);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'](_0x2ed8ac){if(!_0x2ed8ac['plugins']['has']('EditorAnnotations'))return;const _0x3fd907=_0x2ed8ac['plugins']['get']('EditorAnnotations'),_0x9c0ac4=this['context']['plugins']['get'](z),_0x344f67=this['annotations'],_0x2d2eb3=this['balloonPanelView'],_0x5df52d=()=>{const _0x149c5a=_0x3fd907['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x149c5a),this['setActiveAnnotation'](_0x149c5a[0x0]||null);};this['listenTo'](_0x3fd907,'refresh',_0x5df52d),this['listenTo'](_0x3fd907,'blur',(_0xfbcd98,{isAnnotationTracked:_0x2c45b6})=>{this['activeAnnotation']&&_0x2c45b6(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3fd907,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x344f67,'blur',_0x584f43=>{_0x3fd907['hasDomSelection']()&&_0x584f43['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x5628c3,_0x427e7b)=>{const _0x717aed=_0x427e7b['target'];_0x2d2eb3['isVisible']&&_0x2d2eb3['element']['contains'](_0x717aed)||_0x9c0ac4['view']['element']['contains'](_0x717aed)||this['activeAnnotation']&&_0x3fd907['hasDomSelection']()&&(_0x5df52d(),_0x5628c3['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3fd907);}['_destroyEditorAnnotationsIntegration'](_0x2ea59c){_0x2ea59c&&(this['stopListening'](_0x2ea59c),this['_editorAnnotations']['remove'](_0x2ea59c));}['_setSelectedAnnotations'](_0x843af8){for(const _0x5dcce0 of this['_selectedAnnotations'])_0x843af8['includes'](_0x5dcce0)||this['_manuallyClosedAnnotationViews']['delete'](_0x5dcce0['view']);this['_selectedAnnotations']=_0x843af8;}['_refreshPositioning'](){const _0x42d152=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x42d152['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0xf7845a){if(this['_manuallyClosedAnnotationViews']['has'](_0xf7845a['view']))return;const _0x6fc645=this['balloonPanelView']['content']['first'];_0x6fc645!==_0xf7845a['view']?(_0x6fc645&&this['_detachListeners'](_0x6fc645),this['_attachListeners'](_0xf7845a['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0xf7845a['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x394da0=this['balloonPanelView']['content']['first'],_0x157014=_0x394da0&&this['annotations']['getByView'](_0x394da0);if(!_0x157014||!this['_annotationToNarrowView']['has'](_0x157014))return;const _0x406fdf=this['_annotationToNarrowView']['get'](_0x157014)['element'],_0x52e627=(function(){const _0x409aea=_0x5547e8['defaultPositions'];return[_0x409aea['southArrowNorthEast'],_0x409aea['northArrowSouthEast'],_0x409aea['southArrowNorth'],_0x409aea['northArrowSouth'],_0x409aea['southArrowNorthWest'],_0x409aea['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x406fdf,'positions':_0x52e627});}['_hideBalloon'](){const _0x138fac=this['balloonPanelView'],_0x1a9da4=_0x138fac['content']['first'];_0x1a9da4&&(this['_detachListeners'](_0x1a9da4),_0x138fac['unpin'](),_0x138fac['content']['clear']());}['_attachListeners'](_0x1238da){this['listenTo'](_0x1238da,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x1238da,'Esc',(_0x5d5599,_0x3c8a95)=>{this['_manuallyClosedAnnotationViews']['add'](_0x1238da),this['_hideBalloon'](),_0x3c8a95();});}['_detachListeners'](_0x8c1a38){this['stopListening'](_0x8c1a38);}}class c extends _0x369f89{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x2878d2,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11c02c){super(_0x11c02c),_0x11c02c['editing']['view']['addObserver'](_0xe25f58),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x11c02c['plugins']['get'](_0x2878d2),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x51c8a9=this['editor']['plugins']['get'](j);_0x51c8a9['context']===this['editor']&&(_0x51c8a9['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x247f63,_0x3c3b81)=>{const _0x53235a=this['_balloon'];if(this['isAttached']&&_0x53235a['visibleView']){const _0x182bc9=this['annotations']['getByView'](_0x53235a['visibleView']);_0x182bc9&&this['_closeAnnotation'](_0x182bc9),_0x3c3b81();}}));}['afterInit'](){const _0x25241d=this['editor']['plugins']['get'](j);_0x25241d['context']===this['editor']&&(_0x25241d['hasActive']()||_0x25241d['switchTo']('inline'));}['setActiveAnnotation'](_0x4420c9){_0x4420c9!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x4420c9&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x4420c9)&&this['_addAnnotationToBalloon'](_0x4420c9,!0x0),_0x4420c9['isActive']=!0x0),_0x4420c9||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x4420c9);}['attach'](_0x3f9e6d){this['annotations']=_0x3f9e6d;const _0x2c740f=this['editor']['plugins']['get'](j),_0x1afd6a=this['_balloon'];if(this['isAttached'])throw new _0x53bd93('inlineannotations-attach-already-attached',this);if(_0x2c740f['context']!==this['editor'])throw new _0x53bd93('inlineannotations-not-allowed-with-context',this);const _0x2364f8=this['editor']['plugins']['get'](b);this['listenTo'](_0x2364f8,'refresh',()=>{const _0x458892=_0x2364f8['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x1ef393,_0x4f28fc;!this['_forceRefresh']&&(_0x1ef393=_0x458892,_0x4f28fc=this['_selectedAnnotations'],_0x1ef393['length']===_0x4f28fc['length']&&_0x1ef393['every'](_0x155857=>_0x4f28fc['includes'](_0x155857)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x458892),this['setActiveAnnotation'](_0x458892[0x0]||null));}),this['listenTo'](_0x2364f8,'blur',(_0x478616,{isAnnotationTracked:_0x1d3c67})=>{this['activeAnnotation']&&_0x1d3c67(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0xaa10a8,_0xa092fc,_0x4a9864)=>{_0x4a9864||this['setActiveAnnotation'](null);}),this['listenTo'](_0x3f9e6d,'remove',(_0x273841,_0x3ff3d)=>{this['_removeAnnotationFromBalloon'](_0x3ff3d),_0x3ff3d===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x1afd6a,'change:visibleView',(_0x5b23a1,_0x2f8975,_0x37d7b5,_0xe73d6f)=>{_0xe73d6f&&this['stopListening'](_0xe73d6f);const _0x3efe44=_0x3f9e6d['getByView'](_0x37d7b5);_0x37d7b5&&_0x3efe44&&(this['listenTo'](_0x37d7b5,'change:height',()=>{_0x1afd6a['updatePosition']();}),this['listenTo'](_0x37d7b5,'Esc',()=>{this['_closeAnnotation'](_0x3efe44),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x3efe44&&this['setActiveAnnotation'](_0x3efe44));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x1afd6a['visibleView']&&(_0x3f9e6d['getByView'](_0x1afd6a['visibleView'])&&_0x1afd6a['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 _0x53bd93('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x1c9116 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x1c9116);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x5c32ab){for(const _0x365c3e of this['_selectedAnnotations'])_0x5c32ab['includes'](_0x365c3e)||this['_manuallyClosed']['delete'](_0x365c3e);for(const _0x57d4cf of this['annotations'])_0x5c32ab['includes'](_0x57d4cf)||this['_removeAnnotationFromBalloon'](_0x57d4cf);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x416b04 of _0x5c32ab)this['_addAnnotationToBalloon'](_0x416b04);}this['_selectedAnnotations']=_0x5c32ab;}['_addAnnotationToBalloon'](_0x595f79,_0x5c59c6=!0x1){this['_manuallyClosed']['has'](_0x595f79)||(this['_addedAnnotations']['has'](_0x595f79)||this['_balloon']['hasView'](_0x595f79['view'])||(this['_addedAnnotations']['add'](_0x595f79),this['_balloon']['add']({'stackId':_0x595f79['view']['id'],'view':_0x595f79['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x595f79)}})),_0x5c59c6&&this['_balloon']['showStack'](_0x595f79['view']['id']));}['_getBalloonTargetForAnnotation'](_0x39ebc7){const _0x9e7218=_0x39ebc7['target'],_0x1bb09d=this['editor']['editing']['view'],_0x1bae6b=_0x1bb09d['document']['selection']['getFirstRange'](),_0x3d1358=_0x1bb09d['domConverter']['viewRangeToDom'](_0x1bae6b);if(_0x3d1358['collapse'](!0x0),_0x9e7218){if(_0x9e7218 instanceof _0x5199db)return _0x9e7218;let _0x447ebb=[];for(const _0x323a51 of _0x9e7218)_0x447ebb['push'](...F(_0x323a51['getClientRects']()));_0x447ebb=function(_0xd635ed){const _0x5db184=[];let _0x21dd41=_0xd635ed[0x0];for(let _0x9eb488=0x1;_0x9eb488<_0xd635ed['length'];_0x9eb488++)P(_0x21dd41,_0xd635ed[_0x9eb488])?_0x21dd41['width']+=_0xd635ed[_0x9eb488]['width']:(_0x5db184['push'](_0x21dd41),_0x21dd41=_0xd635ed[_0x9eb488]);return _0x5db184['push'](_0x21dd41),_0x5db184;}(_0x447ebb);const _0x4b37aa=_0x3d1358['getBoundingClientRect']();return _0x447ebb['find'](_0x4fd70c=>_0x4fd70c['top']<=_0x4b37aa['top']&&_0x4fd70c['bottom']>=_0x4b37aa['bottom']&&_0x4fd70c['left']<=_0x4b37aa['left']&&_0x4fd70c['right']>=_0x4b37aa['right'])||_0x447ebb[0x0];}return _0x39ebc7['targetRect']||_0x3d1358;}['_removeAnnotationFromBalloon'](_0xdf063d){this['_addedAnnotations']['has'](_0xdf063d)&&this['_balloon']['hasView'](_0xdf063d['view'])&&(this['_addedAnnotations']['delete'](_0xdf063d),this['_balloon']['remove'](_0xdf063d['view']));}['_closeAnnotation'](_0x133029){this['_manuallyClosed']['add'](_0x133029),this['_removeAnnotationFromBalloon'](_0x133029);}}function F(_0x22e558){return Array['from'](_0x22e558)['map'](DOMRect['fromRect']);}function P(_0x455705,_0x5c0140){return _0x455705['top']===_0x5c0140['top']&&_0x455705['bottom']===_0x5c0140['bottom']&&_0x455705['right']===_0x5c0140['left'];}class Z extends xt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x55b6dc,_0x5dab07){super(_0x55b6dc),this['set']('isEmpty',!_0x5dab07['length']),this['focusTracker']=new _0x4d6aaa(),this['_annotationViews']=_0x5dab07,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x169d91({'focusables':_0x5dab07,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5dab07,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5dab07,'remove',(_0x5beba2,_0x517664)=>{_0x517664['isActive']&&this['focus'](),_0x5dab07['length']||(this['isEmpty']=!0x0);});const _0x1c281b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x55b6dc,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5dab07},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x1c281b['if']('isEmpty','ck-hidden',_0x3fa82b=>!_0x3fa82b)]},'children':[{'text':N(_0x55b6dc,'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 _0x3bc2ad of this['_annotationViews'])this['focusTracker']['add'](_0x3bc2ad['element']);this['_annotationViews']['on']('change',(_0x213433,{added:_0x47e1f8,removed:_0x2c7018})=>{for(const _0x19de2e of _0x47e1f8)this['focusTracker']['add'](_0x19de2e['element']);for(const _0x32be8b of _0x2c7018)this['focusTracker']['remove'](_0x32be8b['element']);});}}class p extends _0x233d6c{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x88f984){super(_0x88f984),this['archivedThreads']=new _0x717f3a();}['init'](){const _0x3aafc2=this['context'],_0x252c55=_0x3aafc2['plugins']['get'](o),_0x16ab23=_0x3aafc2['plugins']['get'](y);this['listenTo'](_0x252c55,'addCommentThread',(_0x16e361,{threadId:_0x2e782c})=>{const _0x2a0870=_0x252c55['getCommentThread'](_0x2e782c);_0x2a0870['archivedAt']&&this['archivedThreads']['add'](_0x2a0870,this['_calculatePosition'](_0x2a0870['archivedAt'])),this['listenTo'](_0x2a0870,'change:archivedAt',(_0x1aa02d,_0x5f3a8d,_0x12078e)=>{_0x12078e?this['archivedThreads']['has'](_0x2a0870)||this['archivedThreads']['add'](_0x2a0870,this['_calculatePosition'](_0x2a0870['archivedAt'])):this['archivedThreads']['has'](_0x2a0870)&&this['archivedThreads']['remove'](_0x2a0870);});}),this['listenTo'](_0x252c55,'removeCommentThread',(_0x51bd46,{threadId:_0x24160c})=>{const _0x399d34=_0x252c55['getCommentThread'](_0x24160c);this['stopListening'](_0x399d34),this['archivedThreads']['has'](_0x399d34)&&this['archivedThreads']['remove'](_0x399d34);},{'priority':'highest'}),this['listenTo'](_0x16ab23['collection'],'focus',(_0x296101,_0xfb1bb7)=>{_0xfb1bb7['isVisible']||(_0xfb1bb7['isActive']=!0x0,_0x16ab23['activate'](_0xfb1bb7));});}['_calculatePosition'](_0x158a62){const _0x2379d2=[...this['archivedThreads']]['findIndex'](_0xfcd8e7=>_0xfcd8e7['archivedAt']<_0x158a62);return _0x2379d2>-0x1?_0x2379d2:this['archivedThreads']['length'];}}class a extends _0x369f89{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x46d5e2];}constructor(_0x49261a){super(_0x49261a),this['annotationViews']=new _0x50b2a9(),this['_pendingThreads']=[];}['init'](){const _0x3e0110=this['editor'],_0x165f47=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x3e0110['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x528043,!0x0)),_0x3e0110['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x5d8823=this['_createCommentsArchiveButton'](_0x4cb2be);return _0x5d8823['set']({'role':'menuitemcheckbox'}),_0x5d8823;});const _0x5a7485=_0x3e0110['plugins']['get'](p),_0x5419d8=_0x3e0110['plugins']['get']('Annotations'),_0x42e4df=_0x3e0110['plugins']['get']('CommentsRepository');_0x5a7485['archivedThreads']['forEach'](_0x3c4d63=>{this['_handleNewThread'](_0x3c4d63);}),this['listenTo'](_0x5a7485['archivedThreads'],'add',(_0x2ece9e,_0x3cff92)=>{this['_handleNewThread'](_0x3cff92);}),this['listenTo'](_0x5419d8['collection'],'add',(_0x4eae12,_0x57cd2b)=>{const _0xa49f78=this['_pendingThreads']['find'](_0x524a10=>{const _0x33a0de=_0x42e4df['_threadToController']['get'](_0x524a10);return _0x33a0de&&_0x57cd2b['innerView']===_0x33a0de['view'];});if(_0xa49f78){const _0x15bdd3=this['_calculatePosition'](_0xa49f78['archivedAt']);this['annotationViews']['add'](_0x57cd2b['view'],_0x15bdd3),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0xa49f78),0x1);}}),this['listenTo'](_0x5a7485['archivedThreads'],'remove',(_0x2adeba,_0x5ba1f9)=>{const _0x276fc8=_0x3e0110['config']['get']('collaboration.channelId');if(!_0x276fc8||_0x5ba1f9['channelId']===_0x276fc8){if(this['_pendingThreads']['includes'](_0x5ba1f9))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x5ba1f9),0x1);else{const _0x505f6a=_0x42e4df['_threadToController']['get'](_0x5ba1f9),_0x4beaed=_0x5419d8['getByInnerView'](_0x505f6a['view']);this['annotationViews']['remove'](_0x4beaed['view']),this['stopListening'](_0x4beaed['focusableElements']);}}}),this['listenTo'](_0x5419d8['collection'],'add',(_0x480701,_0x1e8dc2)=>{this['listenTo'](_0x1e8dc2,'escape',_0x165f47);}),this['listenTo'](_0x5419d8['collection'],'remove',(_0x3577ce,_0x5b866d)=>{this['stopListening'](_0x5b866d,'escape',_0x165f47);});}['_handleNewThread'](_0x4b96e3){const _0x55772b=this['editor']['plugins']['get']('CommentsRepository'),_0x27c45c=this['editor']['plugins']['get']('Annotations'),_0x5b1d90=this['editor']['config']['get']('collaboration.channelId');if(!_0x5b1d90||_0x4b96e3['channelId']===_0x5b1d90){const _0x5e9818=_0x55772b['_threadToController']['get'](_0x4b96e3);if(!_0x5e9818)return void this['_pendingThreads']['push'](_0x4b96e3);const _0x5a88a1=this['_calculatePosition'](_0x4b96e3['archivedAt']),_0x2e6348=_0x27c45c['getByInnerView'](_0x5e9818['view']);_0x2e6348['isVisible']&&_0x27c45c['_visibleAnnotations']['remove'](_0x2e6348),this['annotationViews']['add'](_0x2e6348['view'],_0x5a88a1);}}['_calculatePosition'](_0x28dc8d){const _0x2216c8=this['editor']['config']['get']('collaboration.channelId'),_0x228f2b=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0x5931c9=>_0x5931c9['channelId']===_0x2216c8)['findIndex'](_0x3ae4ad=>_0x3ae4ad['archivedAt']<_0x28dc8d);return _0x228f2b<0x0||_0x228f2b>this['annotationViews']['length']?this['annotationViews']['length']:_0x228f2b-0x1;}['_toggleDialog'](){const _0x3a1ccc=this['editor'],_0xe4585d=_0x3a1ccc['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x3a1ccc['locale'],this['annotationViews'])),'commentsArchive'===_0xe4585d['id']?_0xe4585d['hide']():_0xe4585d['show']({'id':'commentsArchive','title':N(_0x3a1ccc['locale'],'COMMENTS_ARCHIVE'),'icon':_0x4cd35c,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x3abbff['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x32a741,_0x3012be=!0x1){const _0x36b404=this['editor']['locale'],_0x26f48b=this['editor']['plugins']['get']('Dialog'),_0x493728=new _0x32a741(_0x36b404);return _0x493728['bind']('isEnabled')['to'](this,'isEnabled'),_0x493728['bind']('isOn')['to'](_0x26f48b,'id',_0x59928d=>'commentsArchive'===_0x59928d),_0x493728['set']({'label':N(_0x36b404,'COMMENTS_ARCHIVE'),'icon':_0x4cd35c,'isToggleable':!0x0}),_0x3012be&&(_0x493728['tooltip']=!0x0),this['listenTo'](_0x493728,'execute',()=>this['_toggleDialog']()),_0x493728;}['_hideDialogOnAnnotationEscape']=_0x2bd202=>{const _0x1afd9f=_0x2bd202['source'];if(!this['annotationViews']['has'](_0x1afd9f['view']))return;const _0x28d1d5=this['editor']['plugins']['get']('Dialog');_0x28d1d5['isOpen']&&'commentsArchive'===_0x28d1d5['id']&&(_0x28d1d5['hide'](),_0x2bd202['stop']());};}class gi extends _0x369f89{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 _0x74e6ba,ContextPlugin as _0x2228db,PendingActions as lt,Command as _0x164c61,Plugin as _0x41aca7,Context as _0xb420e9}from'@ckeditor/ckeditor5-core/dist/index.js';import{ObservableMixin as _0x2f7441,uid as _0x2388d3,KeystrokeHandler as jt,FocusTracker as _0x19913b,diff as _0x334924,Collection as _0x2a8245,Rect as _0x3fbc4e,CKEditorError as _0x2e6f8f,first as _0x4dfbcc,priorities as Wt,scrollViewportToShowTarget as nt,getEnvKeystrokeText as tt,toUnit as Ht,DomEmitterMixin as _0x5cce27,keyCodes as _0x3fe5b7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{UserView as _0x3be5f0,AriaDescriptionView as Zt,setupThreadKeyboardNavigation as ts,ConfirmMixin as ti,LateFocusButtonView as _0xa36bed,trimHtml as _0x3c0b88,LateFocusDropdownButtonView as _0x2fdf7f,Users as it,getDateTimeFormatter as pt,hashObject as It,getAllMarkersDomElementsSorted as et,surroundingMarkersDetector as rt,FOCUS_ANNOTATION_KEYSTROKE as _0x1d9801}from'ckeditor5-collaboration/dist/index.js';import{throttle as Dt,isEqual as At,cloneDeep as wt,set as yt,unset as Ct,debounce as _0x49b0b7}from'es-toolkit/compat';import{IconUndo as _0x23f74c,IconCheck as _0x19b11d,IconPencil as _0x1747b0,IconRemoveComment as _0x28f460,IconThreeVerticalDots as _0x508d6d,IconAddComment as _0x482462,IconCommentsArchive as _0x37db05}from'@ckeditor/ckeditor5-icons/dist/index.js';import{EditorUIView as Xt,InlineEditableUIView as $t,EditorUI as Ut,View as kt,FocusCycler as _0x7bfb99,ButtonView as _0x3c4ac3,ViewCollection as _0x5e227b,createDropdown as _0x53105e,ListView as _0xfedfda,focusChildOnDropdownOpen as _0x5c6167,ListItemView as _0x287548,MenuBarMenuListItemButtonView as _0x27f8f3,BodyCollection as _0x3b1e98,BalloonPanelView as _0x5ae522,ContextualBalloon as _0x300697,Dialog as _0x4c9c9e,DialogViewPosition as _0x2b4a03}from'@ckeditor/ckeditor5-ui/dist/index.js';import{disableViewPlaceholder as qt,enableViewPlaceholder as St,MouseObserver as _0x2b71be}from'@ckeditor/ckeditor5-engine/dist/index.js';import{Clipboard as zt,ClipboardMarkersUtils as Mt,ClipboardPipeline as Pt}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{Enter as Bt,ShiftEnter as Et}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 _0x4ddf4f}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{toWidget as _0x54dc86}from'@ckeditor/ckeditor5-widget/dist/index.js';class vt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2f7441(){['model'];['view'];constructor(_0x2dbcc6,_0x44245e){super(),this['model']=_0x2dbcc6,this['model']['_isAttached']=!0x0,this['view']=_0x44245e,this['listenTo'](_0x44245e,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x44245e,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x44245e,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x44245e,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x44245e,'addComment',(_0x5735c9,_0x206b9e)=>this['addComment'](_0x206b9e)),this['listenTo'](_0x44245e,'updateComment',(_0x15e0a5,_0x4199b3,_0x3b075e)=>this['updateComment'](_0x4199b3,_0x3b075e)),this['listenTo'](_0x44245e,'removeComment',(_0x5124f1,_0x14769c)=>this['removeComment'](_0x14769c));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x13188c){this['model']['addComment']({'content':_0x13188c,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x39002e,_0x849e0b){this['model']['getComment'](_0x39002e)['update']({'content':_0x849e0b});}['removeComment'](_0x5982ae){this['model']['getComment'](_0x5982ae)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function N(_0x5c2419,_0x37180e,_0x18803b){const t=_0x5c2419['t'];switch(_0x37180e){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'},_0x18803b);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'},_0x18803b);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'},_0x18803b);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'},_0x18803b);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x18803b);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'},_0x18803b);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'},_0x18803b);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'},_0x18803b);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 Vt extends Xt{['main'];['editable'];constructor(_0x4d00e7,_0x596067){super(_0x4d00e7);const _0x4b69d8=_0x2388d3();this['main']=this['createCollection'](),this['editable']=new $t(_0x4d00e7,_0x596067,void 0x0,{'label':()=>N(_0x4d00e7,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x4d00e7['uiLanguageDirection'],'lang':_0x4d00e7['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x4b69d8},'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 Ft extends Ut{['view'];constructor(_0x1e7835){super(_0x1e7835),this['view']=new Vt(_0x1e7835['locale'],_0x1e7835['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x424091=this['editor']['editing']['view'],_0x5b275c=this['view']['editable'],_0x12a9de=_0x424091['document']['getRoot']();_0x5b275c['name']=_0x12a9de['rootName'],this['view']['render']();const _0x38f79e=_0x5b275c['element'];this['setEditableElement'](_0x5b275c['name'],_0x38f79e),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x424091['attachDomRoot'](_0x38f79e),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const Qt=[zt,Bt,Et,Gt,Jt,Kt,Lt];class Rt extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2f7441(_0x74e6ba){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
|
|
26
|
+
((()=>Qt)());constructor(_0x4315dd={}){function _0x347e76(_0x3150c5){return _0x3150c5['map'](_0x58d0d0=>String['fromCharCode'](_0x58d0d0))['join']('');}(_0x4315dd=Object['assign']({},_0x4315dd))['plugins']||(_0x4315dd['plugins']=Rt['defaultPlugins']),super(_0x4315dd),this['ui']=new Ft(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x347e76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x347e76([0x76,0x69,0x65,0x77])][_0x347e76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x347e76([0x61,0x75,0x74,0x6f]),this[_0x347e76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x347e76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x347e76([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x347e76([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x347e76([0x6f,0x6b])});}['create'](){const _0x154050=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x154050))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0xa0d664=>{const _0x3ed495=this['model']['document']['getRoot'](),_0xc8a2f9=_0x3ed495&&_0x3ed495['getChild'](_0x3ed495['childCount']-0x1);_0xa0d664['setSelection'](_0xc8a2f9,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x47f8a1=this['editing']['view'],_0x373cc1=_0x47f8a1['document']['getRoot'](),_0x287348=_0x373cc1['getChild'](0x0);_0x373cc1['childCount']>0x1||!_0x287348||'p'!=_0x287348['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(qt(_0x47f8a1,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x287348['placeholder']=this['placeholder']),St({'view':_0x47f8a1,'element':_0x287348,'keepOnFocus':!0x0}),this['placeholderElement']=_0x287348);}}class os extends kt{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x56e579,_0x579230={}){super(_0x56e579),this['editor']=null,this['_editorConfig']=_0x579230,this['set']('value',_0x579230['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',N(_0x56e579,'Reply...')),this['set']('submitLabel',N(_0x56e579,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new jt(),this['focusTracker']=new _0x19913b(),this['focusCycler']=new _0x7bfb99({'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',(_0x2d1fd7,_0x578778)=>{this['cancelButtonView']['fire']('execute'),_0x578778();}),this['keystrokes']['set']('Ctrl+Enter',(_0x481a66,_0x394ec9)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x394ec9());}),this['on']('submit',(_0x18c919,_0x37ada8)=>{_0x37ada8['length']>0xfde8?(alert(N(_0x56e579,'TOO_LONG_COMMENT_ALERT',[_0x37ada8['length'],0xfde8])),_0x18c919['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new Rt(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x4e8c5c=this['editor'];this['element']['insertBefore'](_0x4e8c5c['ui']['element'],this['element']['firstChild']),_0x4e8c5c['model']['document']['on']('change',()=>this['value']=_0x4e8c5c['getData']()),_0x4e8c5c['bind']('placeholder')['to'](this),this['focusables']['add'](_0x4e8c5c['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x1886bc){-0x1===_0x1886bc?(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:_0x209b1a}=this,_0x28264b=new _0x3c4ac3(_0x209b1a);return _0x28264b['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x28264b['withText']=!0x0,_0x28264b['bind']('label')['to'](this,'submitLabel'),_0x28264b['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x28264b['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x2c857a,_0x5a89fa)=>!_0x5a89fa&&!!_0x2c857a['trim']()),_0x28264b;}['_createCancelButton'](){const {locale:_0x222455}=this,_0x3c8893=new _0x3c4ac3(_0x222455);return _0x3c8893['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x3c8893['label']=N(_0x222455,'Cancel'),_0x3c8893['withText']=!0x0,_0x3c8893['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x3c8893;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x165f44=>{this['focusTracker']['add'](_0x165f44['element']);}),this['focusables']['on']('change',(_0x3819e6,_0x5bcfd2)=>{for(const _0x4d6942 of Array['from'](_0x5bcfd2['added'])['reverse']())this['focusTracker']['add'](_0x4d6942['element']);});}}class ie extends kt{constructor(_0x5d21f3,_0x3f69aa,_0x260ad9){super(_0x5d21f3),this['commentInputView']=new os(_0x5d21f3,_0x260ad9),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x4703a5,_0x471a3c)=>_0x4703a5||!!_0x471a3c),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 _0x3be5f0(_0x5d21f3,_0x3f69aa),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'](_0x483b9b){this['commentInputView']['focus'](_0x483b9b);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x2deb1e,_0x1cf6a9)=>{const {submitButtonView:_0x54c060,cancelButtonView:_0x42f1df,editor:_0x3462dc}=this['commentInputView'];[_0x54c060['element'],_0x42f1df['element'],_0x3462dc?_0x3462dc['editing']['view']['getDomRoot']():null]['filter'](_0xf9fbce=>_0xf9fbce)['some'](_0x2221fa=>_0x2221fa['contains'](_0x1cf6a9['target']))||(this['focus'](),_0x1cf6a9['preventDefault']());});}}class rs extends kt{constructor(_0x4f23cf){super(_0x4f23cf);const _0x4259c5=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x4259c5['to']('count',_0x5840dd=>N(_0x4f23cf,'NUMBER_OF_COMMENTS',_0x5840dd))}]});}}class te extends kt{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x127335,_0x44c68d,_0x20b30a){super(_0x127335);const _0x546257=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x44c68d['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x44c68d,this['_config']=_0x20b30a,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new _0x19913b(),this['keystrokes']=new jt(),this['focusCycler']=new _0x7bfb99({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3a29e4=>this['commentViews']['map'](_0x3d4cb4=>_0x3d4cb4['element'])['includes'](_0x3a29e4['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new rs(_0x127335),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0xf400a3=>_0xf400a3-this['_config']['maxCommentsWhenCollapsed']);for(const _0xe79666 of _0x44c68d['comments'])this['_handleNewCommentModel'](_0xe79666);this['_handleInfoComment'](),this['listenTo'](_0x44c68d['comments'],'add',(_0x270877,_0x8cec45)=>{const _0x3aff8d=this['_calculatePosition'](_0x8cec45);this['length']++,this['_handleNewCommentModel'](_0x8cec45,_0x3aff8d),this['refreshVisibleViews']();}),this['listenTo'](_0x44c68d['comments'],'remove',(_0x47c6a0,_0x4cfe4e)=>{this['length']--,this['_handleRemoveCommentModel'](_0x4cfe4e),this['refreshVisibleViews']();}),this['listenTo'](_0x44c68d,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x44c68d,'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',_0x546257['if']('length','ck-hidden',_0x59e9c1=>!_0x59e9c1)],'aria-label':N(_0x127335,'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'](_0x2ad449){-0x1===_0x2ad449?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x2531d8 of this['commentViews'])_0x2531d8['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x136f70,_0x449985){const _0x4cadcd=new this['_config']['CommentView'](this['locale'],_0x136f70,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4cadcd['viewUid']=_0x136f70['id'],_0x4cadcd['delegate']('removeComment')['to'](this),_0x4cadcd['delegate']('updateComment')['to'](this),_0x4cadcd['delegate']('resolveCommentThread')['to'](this),_0x4cadcd['delegate']('editorReady')['to'](this),_0x4cadcd['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4cadcd,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4cadcd,_0x449985);}['_calculatePosition'](_0x83780d){const _0x151af7=this['_model']['_findOptimalIndex'](_0x83780d);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x83780d['authoredAt']?_0x151af7-0x1:_0x151af7:_0x151af7-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x2646da={'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'],_0x2646da,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x2646da));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0xa419f3){const _0x31f0f4=this['commentViews']['remove'](_0xa419f3['id']);this['stopListening'](_0x31f0f4),_0x31f0f4['isEditMode']&&this['_updateHasDirtyComment'](),_0x31f0f4['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x5da521=>_0x5da521['isEditMode']);}['_rearrangeCollapse'](){const _0x586b07=function(_0x9e51b6){const _0x513052=new _0x2a8245();for(const _0xe741c2 of _0x9e51b6)_0x513052['add'](_0xe741c2);return _0x513052;}(this['commentViews']),_0x3c1c6c=this['_collapsedCommentsView']['count'];for(let _0x1bc6d3=0x1;_0x1bc6d3<=_0x3c1c6c;_0x1bc6d3++)_0x586b07['remove'](0x1);for(const _0x25e15c of _0x586b07)_0x25e15c['collapse']();_0x3c1c6c>0x0&&_0x586b07['add'](this['_collapsedCommentsView'],0x1),ns(_0x334924(Array['from'](this['visibleViews']),Array['from'](_0x586b07)),this['visibleViews'],_0x586b07);}['_rearrangeExpand'](){ns(_0x334924(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x5193f5 of this['visibleViews'])_0x5193f5['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x4f22e0=>{this['focusTracker']['add'](_0x4f22e0['element']),this['keystrokes']['listenTo'](_0x4f22e0['element']);}),this['commentViews']['on']('change',(_0x3b8ee0,_0x197a68)=>{for(const _0x5b1332 of _0x197a68['removed'])this['focusTracker']['remove'](_0x5b1332['element']),this['keystrokes']['stopListening'](_0x5b1332['element']);for(const _0xa22e3e of Array['from'](_0x197a68['added'])['reverse']())this['focusTracker']['add'](_0xa22e3e['element']),this['keystrokes']['listenTo'](_0xa22e3e['element']);});}}function ns(_0x424f59,_0x11190b,_0x186c22){let _0x215aef=0x0;for(const _0x489733 of _0x424f59)switch(_0x489733){case'insert':_0x11190b['add'](_0x186c22['get'](_0x215aef),_0x215aef),_0x215aef++;break;case'delete':_0x11190b['remove'](_0x215aef);break;case'equal':_0x215aef++;}}class oe extends kt{constructor(_0x51903f){super(_0x51903f);const _0x2461a0=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x2461a0['to']('contextValue',_0x9fb5f7=>N(_0x51903f,'THREAD_CONTEXT_LABEL',_0x9fb5f7)),'tabindex':-0x1},'children':[{'text':_0x2461a0['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}class Yt extends kt{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x24aec4,_0x54748b){super(_0x24aec4);const _0x429b77=this['bindTemplate'];this['_model']=_0x54748b,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new _0x19913b(),this['keystrokes']=new jt(),this['focusCycler']=new _0x7bfb99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x52481f=>!!_0x52481f),this['bind']('contextValue')['to'](this['_model'],'context',_0x3afd4f=>_0x3afd4f&&_0x3afd4f['value']?this['_trimContextValue'](_0x3afd4f['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',_0x429b77['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 _0x1715ca=new _0x3c4ac3(this['locale']);return _0x1715ca['label']=N(this['locale'],'Reopen'),_0x1715ca['tooltip']=N(this['locale'],'Reopen'),_0x1715ca['icon']=_0x23f74c,_0x1715ca['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x2fa785=>!_0x2fa785),_0x1715ca['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x32bd0b,_0x374b1c)=>_0x32bd0b&&_0x374b1c),_0x1715ca['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x1715ca;}['_trimContextValue'](_0x23379f){if(_0x23379f['length']<0x96)return _0x23379f;const _0x388965=_0x23379f['lastIndexOf']('\x20',0x93);return _0x23379f['substring'](0x0,_0x388965>-0x1?_0x388965:0x93)+'...';}['_attachContextActions'](){const _0x2597e8=this['element']['querySelector']('.ck-context'),_0x27c38d=_0x2597e8['querySelector']('.ck-context__value');this['listenTo'](_0x2597e8,'mouseenter',()=>{_0x27c38d['offsetWidth']<_0x27c38d['scrollWidth']&&_0x2597e8['classList']['add']('overlay');}),this['listenTo'](_0x2597e8,'mouseleave',()=>{_0x2597e8['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x46c93 of this['focusables'])this['focusTracker']['add'](_0x46c93['element']),this['keystrokes']['listenTo'](_0x46c93['element']);}['_createContextView'](){const _0x178047=new oe(this['locale']);return _0x178047['bind']('contextValue')['to'](this),_0x178047;}}class si extends kt{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x43e697,_0x41a787,_0x2db3c7,_0x382431){super(_0x43e697),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x41a787,this['_localUser']=_0x2db3c7,this['_config']=_0x382431,this['commentThreadHeaderView']=new Yt(_0x43e697,_0x41a787),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new Zt(_0x43e697,N(_0x43e697,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new te(_0x43e697,_0x41a787,Object['assign']({'CommentView':this['_config']['CommentView']},_0x382431)),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',(_0x37bbb8,_0x5c557a)=>_0x37bbb8||!!_0x5c557a),this['bind']('isUnlinked')['to'](_0x41a787,'unlinkedAt',_0x23cc22=>!!_0x23cc22),this['bind']('ariaLabel')['to'](this,'length',_0x561784=>{const _0x5b61f1=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return N(this['locale'],'COMMENT_THREAD_LABEL',[_0x561784,_0x5b61f1]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new _0x19913b(),this['keystrokes']=new jt(),this['focusCycler']=new _0x7bfb99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xde034b=>_0xde034b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),ts(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x5c843a=new ie(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x19413a=_0x5c843a['commentInputView'];return _0x5c843a['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x19413a,'value',(_0x11560f,_0x53a41d,_0xdbc059,_0x508c89,_0x5ba9e4)=>!!_0x5ba9e4||!!_0x508c89&&_0xdbc059&&!_0x53a41d||_0x11560f&&_0xdbc059&&!_0x53a41d),_0x19413a['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x34b641,_0x2f1127,_0x1a88c1)=>{let _0x1c15a4;return _0x1c15a4=_0x1a88c1&&_0x2f1127?'Reply\x20to\x20reopen\x20discussion...':_0x34b641?'Reply...':'Write\x20a\x20comment...',N(this['locale'],_0x1c15a4);}),_0x19413a['bind']('submitLabel')['to'](this,'length',_0xe65446=>N(this['locale'],_0xe65446?'Reply':'Comment')),_0x19413a['on']('submit',(_0x32a640,_0x1c2676)=>{this['fire']('addComment',_0x1c2676),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x19413a['on']('cancel',()=>{this['focus']();}),_0x19413a['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x19413a['on']('cancel',_0x4ee972=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x4ee972['stop']());}),this['on']('change:isActive',(_0x3753a7,_0x1f47b5,_0x2a8cf5)=>{_0x2a8cf5||this['length']||_0x19413a['value']||this['fire']('removeCommentThread');}),_0x5c843a;}}class gt extends/* #__PURE__ -- @preserve */
|
|
27
|
+
ti(si){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x5d0409,_0x4014bf,_0x5a199b,_0x1358c5){super(_0x5d0409,_0x4014bf,_0x5a199b,_0x1358c5),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x5d0409,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x5f1b37,_0xa08936,_0x2dceb1)=>{_0x2dceb1||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x4b7d7b,_0x4909f4,_0xd01f9)=>{_0xd01f9&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x4f9765=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x4f9765['if']('isActive','ck-thread--active'),_0x4f9765['if']('isUnlinked','ck-thread--unlinked'),_0x4f9765['if']('isConfirm','ck-thread--remove-confirmation'),_0x4f9765['to']('actionIndicator',_0x299006=>_0x299006?'ck-thread--'+_0x299006:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4f9765['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 _0x3e7bc5 of this['commentsListView']['commentViews'])_0x3e7bc5['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x25e6ba}=this,_0x1d6516=this['commentsListView']['commentViews']['get'](0x0);_0x1d6516===this['_boundFirstCommentView']||_0x1d6516['isSystemComment']||(this['_boundFirstCommentView']=_0x1d6516,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x1d6516,'actionIndicator',_0x5c6671=>'remove'===_0x5c6671?'remove':null),_0x1d6516['placeholder']=N(_0x25e6ba,'Write\x20a\x20comment...'),_0x1d6516['removeButton']['on']('execute',_0x26528d=>{_0x26528d['stop'](),this['showConfirm'](N(_0x25e6ba,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x1d6516['focus']();}),_0x1d6516['actionBar']['add'](this['resolveButton'],0x0),_0x1d6516['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x57d69b=new _0xa36bed(this['locale']);return _0x57d69b['label']=N(this['locale'],'Resolve'),_0x57d69b['tooltip']=N(this['locale'],'Resolve'),_0x57d69b['icon']=_0x19b11d,_0x57d69b['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x57d69b['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x1a5657=>!_0x1a5657),_0x57d69b['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x46546c,_0x519cb5)=>_0x46546c&&!_0x519cb5),_0x57d69b['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x57d69b;}['_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 es extends kt{constructor(_0x5b03e5){super(_0x5b03e5),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x129d55,_0x2b2e1a,_0x267afd)=>{this['element']['innerHTML']=_0x267afd;}),this['element']['innerHTML']=this['content'];}}class di extends kt{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1ac88a,_0x10a83c,_0x44dd3e){super(_0x1ac88a),this['_model']=_0x10a83c,this['_config']=_0x44dd3e,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x10a83c,'content',_0x10a83c,'authoredAt',(_0x45cfd0,_0x14353b)=>N(_0x1ac88a,'COMMENT_ARIA_LABEL',[_0x10a83c['author']['name'],_0x44dd3e['formatDateTime'](_0x14353b),new DOMParser()['parseFromString'](_0x45cfd0,'text/html')['body']['textContent'],_0x10a83c['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new Zt(_0x1ac88a,N(_0x1ac88a,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new _0x5e227b(),this['focusTracker']=new _0x19913b(),this['keystrokes']=new jt(),this['focusCycler']=new _0x7bfb99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5250eb=>_0x5250eb['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 _0x329b44=new es(this['locale']);return _0x329b44['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x586de6,_0x561468)=>_0x561468?_0x3c0b88(_0x586de6,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x586de6),_0x329b44;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x2debe5=new os(this['locale'],this['_config']['editorConfig']);return _0x2debe5['value']=this['_model']['content'],_0x2debe5['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x2debe5['submitLabel']=N(this['locale'],'Save'),_0x2debe5['on']('submit',(_0x37b44f,_0x4d4b57)=>{this['fire']('updateComment',this['_model']['id'],_0x4d4b57),this['switchToDisplayMode'](),this['focus']();}),_0x2debe5['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x2debe5['once']('editorReady',()=>{_0x2debe5['focus']();}),_0x2debe5['createEditor'](),_0x2debe5['delegate']('editorReady')['to'](this),_0x2debe5['delegate']('editorDestroyed')['to'](this),_0x2debe5;}['_setupKeyboardNavigation'](){const _0x92cdb6=this['element'];this['keystrokes']['listenTo'](_0x92cdb6);for(const _0x2e93a8 of this['focusables'])this['focusTracker']['add'](_0x2e93a8['element']),this['keystrokes']['listenTo'](_0x2e93a8['element']);this['focusables']['on']('change',(_0x236117,_0xfff914)=>{for(const _0x3adb0f of _0xfff914['removed'])this['focusTracker']['remove'](_0x3adb0f['element']),this['keystrokes']['stopListening'](_0x3adb0f['element']);for(const _0x514cef of _0xfff914['added'])this['focusTracker']['add'](_0x514cef['element']),this['keystrokes']['listenTo'](_0x514cef['element']);}),this['keystrokes']['set']('enter',(_0xc2dc62,_0x165229)=>{_0x92cdb6===_0xc2dc62['target']&&(this['focusCycler']['focusFirst'](),_0x165229());}),this['keystrokes']['set']('esc',(_0xaf5690,_0x4bcb4a)=>{_0x92cdb6!==_0xaf5690['target']&&(this['focus'](),_0x4bcb4a());});}}class Tt extends/* #__PURE__ -- @preserve */
|
|
28
|
+
ti(di){['actionBar'];['userView'];constructor(_0x11886b,_0xaae130,_0x530cfb){super(_0x11886b,_0xaae130,_0x530cfb),this['set']('actionIndicator',null),this['set']('placeholder',N(_0x11886b,'Reply...')),this['bind']('authoredAt')['to'](_0xaae130),this['bind']('resolvedAt')['to'](_0xaae130),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 _0x3be5f0(_0x11886b,_0xaae130['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0xaae130,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x30e4f5=this['bindTemplate'],_0x44b386=[{'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':_0x30e4f5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x30e4f5['to']('authoredAt',_0x2a47b4=>this['_config']['formatDateTime'](_0x2a47b4))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x30e4f5['if']('isEditMode','ck-comment__actions--hidden'),_0x30e4f5['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']&&_0x44b386['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x30e4f5['if']('isConfirm','ck-comment--remove-confirmation')],'tabindex':-0x1,'aria-label':_0x30e4f5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x30e4f5['if']('isEditMode','ck-comment--edit'),_0x30e4f5['if']('isSystemComment','ck-comment--info'),_0x30e4f5['to']('actionIndicator',_0x1044be=>_0x1044be?'ck-comment--'+_0x1044be:'')],'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':_0x44b386}]}]};}['_createEditButton'](){const _0x2f03d6=new _0x3c4ac3(this['locale']);return _0x2f03d6['label']=N(this['locale'],'Edit'),_0x2f03d6['icon']=_0x1747b0,_0x2f03d6['withText']=!0x0,_0x2f03d6['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2f03d6['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x469748=>!_0x469748),_0x2f03d6['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2f03d6['on']('execute',()=>this['switchToEditMode']()),_0x2f03d6;}['_createRemoveButton'](){const _0x5cfd58=new _0x3c4ac3(this['locale']);return _0x5cfd58['label']=N(this['locale'],'Remove'),_0x5cfd58['icon']=_0x28f460,_0x5cfd58['withText']=!0x0,_0x5cfd58['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5cfd58['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x598ca7=>!_0x598ca7),_0x5cfd58['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5cfd58['on']('execute',()=>{this['showConfirm'](N(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5cfd58;}['_createDropdown'](){const _0x5c8238=_0x53105e(this['locale'],_0x2fdf7f),_0x3ee5ee=_0x5c8238['panelView']['children'],_0x3e8178=new _0xfedfda(this['locale']),_0x4b5b54=_0x5c8238['bindTemplate'];_0x5c6167(_0x5c8238,()=>this['items']['find'](_0x490458=>_0x490458['isVisible'])),_0x5c8238['extendTemplate']({'attributes':{'class':[_0x4b5b54['if']('isVisible','ck-hidden',_0x2d98b0=>!_0x2d98b0)]}});const _0x1bb74a=(_0x323391,_0x4761e0=-0x1)=>{const _0x3d9dc7=new _0x287548(this['locale']);_0x3d9dc7['children']['add'](_0x323391);const _0x23eed0=_0x4761e0>-0x1?_0x4761e0:_0x3e8178['items']['length'];_0x3e8178['items']['add'](_0x3d9dc7,_0x23eed0);const _0x3a8726=Array['from'](this['items']);_0x5c8238['unbind']('isEnabled','isVisible'),_0x5c8238['bind']('isEnabled')['toMany'](_0x3a8726,'isEnabled',(..._0x43cad9)=>_0x43cad9['some'](_0x4e8faf=>_0x4e8faf)),_0x5c8238['bind']('isVisible')['toMany'](_0x3a8726,'isVisible',(..._0x164b58)=>_0x164b58['some'](_0x5a6393=>_0x5a6393));};_0x5c8238['panelPosition']='sw',_0x5c8238['buttonView']['set']({'label':N(this['locale'],'Show\x20more\x20items'),'icon':_0x508d6d});for(const _0x57bb57 of this['items'])_0x1bb74a(_0x57bb57);return _0x3ee5ee['add'](_0x3e8178),_0x5c8238['listenTo'](this['items'],'add',(_0x34e350,_0x562513,_0x11fa4c)=>{_0x1bb74a(_0x562513,_0x11fa4c);}),_0x5c8238['listenTo'](this['items'],'remove',(_0xf8240a,_0xadbcf2,_0x2ae508)=>{_0x3e8178['items']['remove'](_0x2ae508);}),_0x5c8238;}['_attachActions'](_0x94daa6,_0x290d75){const _0x1f07ce=_0x94daa6&&_0x94daa6['element'];_0x1f07ce&&(this['listenTo'](_0x1f07ce,'mouseenter',()=>this['actionIndicator']=_0x290d75),this['listenTo'](_0x1f07ce,'focus',()=>this['actionIndicator']=_0x290d75),this['listenTo'](_0x1f07ce,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x1f07ce,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0xcaa048=super['_createCommentInputView']();return _0xcaa048['bind']('placeholder')['to'](this),_0xcaa048;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function xt(_0x5a311d){const _0x2d813e=Dt(_0x5a311d,0x1e),_0x446b3a=new MutationObserver(_0x58acd3=>{for(const _0x11fe01 of _0x58acd3)('attributes'==_0x11fe01['type']&&'class'==_0x11fe01['attributeName']||'childList'==_0x11fe01['type']||'characterData'==_0x11fe01['type'])&&_0x2d813e();});return{'attach'(_0x27c66c){_0x446b3a['observe'](_0x27c66c,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x446b3a['disconnect'](),_0x2d813e['cancel']();}};}class E extends kt{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x47e1bb,_0x302309){super(_0x47e1bb),this['id']=_0x2388d3(),this['focusTracker']=new _0x19913b(),this['keystrokes']=new jt(),this['keystrokes']['set']('Esc',(_0x334494,_0x2b3b1c)=>this['fire']('Esc',_0x2b3b1c)),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'](_0x302309),this['mainView']=_0x302309;const _0x294812=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x294812['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 _0x595e01=this['element']['clientHeight'];_0x595e01&&(this['height']=_0x595e01);}}class T extends/* #__PURE__ -- @preserve */
|
|
29
|
+
_0x2f7441(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x379c36,target:_0x459357,type:_0x1c7bd2,isVisible:_0x5ed618=!0x0}){super(),this['view']=_0x379c36,this['view']['element']||this['view']['render'](),this['_type']=_0x1c7bd2,this['_target']=_0x459357,T['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new _0x2a8245([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x4fe7ee,_0x56dbae)=>{this['view']['focusTracker']['add'](_0x56dbae);}),this['focusableElements']['on']('remove',(_0x11c5bc,_0x4a1270)=>{this['view']['focusTracker']['remove'](_0x4a1270);}),this['set']('isVisible',_0x5ed618);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x3388e0=this['_getNormalizedTarget']();return T['_assertCorrectTarget'](_0x3388e0),_0x3388e0;}get['targetRect'](){const _0x38b9f1=this['target'];if(null===_0x38b9f1)return null;if(_0x38b9f1 instanceof _0x3fbc4e)return _0x38b9f1;const _0x1209f3=_0x38b9f1['filter'](_0x4de2ca=>function(_0x5053fe){const _0x31fd98=_0x5053fe['offsetParent'];if(_0x31fd98)return!0x0;const _0x5a7558=_0x5053fe['getClientRects']()['item'](0x0);return!!_0x5a7558;}(_0x4de2ca));return 0x0===_0x1209f3['length']?null:new _0x3fbc4e(_0x1209f3[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x30ee53){this['view']['isActive']=_0x30ee53,this['view']['mainView']['isActive']=_0x30ee53;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0xfdbe9c){if(!(null===_0xfdbe9c||_0xfdbe9c instanceof _0x3fbc4e||Array['isArray'](_0xfdbe9c)&&_0xfdbe9c['every'](_0x41e58f=>fi(_0x41e58f))))throw new _0x2e6f8f('annotation-invalid-target',null,{'target':_0xfdbe9c});}['_getNormalizedTarget'](){const _0x2101d9='function'==typeof this['_target']?this['_target']():this['_target'];return fi(_0x2101d9)?[_0x2101d9]:_0x2101d9;}}function fi(_0xb37bda){return null!==_0xb37bda&&'object'==typeof _0xb37bda&&'nodeType'in _0xb37bda&&0x1===_0xb37bda['nodeType'];}class S extends _0x2a8245{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x3ebd06=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x19913b(),this['_focusTracker']['on']('change:isFocused',(_0x155df6,_0x52c8d2,_0x5a3a90)=>{_0x5a3a90||this['fire']('blur');});for(const _0x49663b of _0x3ebd06)this['add'](_0x49663b);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0xdd3961){if(this['has'](_0xdd3961))throw new _0x2e6f8f('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0xdd3961['innerView'],_0xdd3961),this['_viewToAnnotation']['set'](_0xdd3961['view'],_0xdd3961);for(const _0x4d7062 of _0xdd3961['focusableElements'])this['_focusTracker']['add'](_0x4d7062);this['listenTo'](_0xdd3961['focusableElements'],'add',(_0xc13dc5,_0x3af9cc)=>{this['_focusTracker']['add'](_0x3af9cc);}),this['listenTo'](_0xdd3961['focusableElements'],'remove',(_0x4d90c7,_0x3a7138)=>{this['_focusTracker']['remove'](_0x3a7138);}),this['listenTo'](_0xdd3961['view']['focusTracker'],'change:isFocused',(_0x7dcc1f,_0xcbea1e,_0x4a8abb)=>{_0x4a8abb&&this['fire']('focus',_0xdd3961);}),_0xdd3961['updateTargetRect']();const _0xfbfdd3=this['_getOrderInContent'](_0xdd3961['view']['targetRect']);return super['add'](_0xdd3961,_0xfbfdd3);}['remove'](_0xed1a7d){if(!this['has'](_0xed1a7d))throw new _0x2e6f8f('annotationcollection-not-existing-item',null);this['stopListening'](_0xed1a7d['view']['focusTracker']),this['stopListening'](_0xed1a7d['focusableElements']);for(const _0x4d8d93 of _0xed1a7d['focusableElements'])this['_focusTracker']['remove'](_0x4d8d93);return this['_viewToAnnotation']['delete'](_0xed1a7d['view']),this['_innerViewToAnnotation']['delete'](_0xed1a7d['innerView']),super['remove'](_0xed1a7d);}['getByInnerView'](_0x31c0f6){return this['_innerViewToAnnotation']['get'](_0x31c0f6);}['getByView'](_0x19da9f){return this['_viewToAnnotation']['get'](_0x19da9f);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x16bc63 of this)_0x16bc63['updateTargetRect']();this['_sort']();}['_sort'](){const _0x5e7a2a=Array['from'](this)['sort']((_0x456c12,_0x4eddde)=>w(_0x456c12['view']['targetRect'],_0x4eddde['view']['targetRect']));for(let _0x3770d3=_0x5e7a2a['length']-0x1;_0x3770d3>0x0;_0x3770d3--){const _0x1e8e1e=_0x5e7a2a[_0x3770d3];_0x3770d3!==this['getIndex'](_0x1e8e1e)&&(this['remove'](_0x1e8e1e),this['add'](_0x1e8e1e));}}['_getOrderInContent'](_0x167685){let _0x2bc353=0x0;if(!_0x167685)return this['length'];for(const _0x219505 of this){const _0x3ebe42=_0x219505['view']['targetRect'];if(_0x3ebe42){if(w(_0x167685,_0x3ebe42)<0x0)return _0x2bc353;_0x2bc353++;}}return _0x2bc353;}}function v({source:_0x5cf0e4,target:_0x3e7858,filter:_0x2b4a8f}){for(const _0x8916e6 of _0x5cf0e4)_0x2b4a8f(_0x8916e6)&&_0x3e7858['add'](_0x8916e6);_0x3e7858['listenTo'](_0x5cf0e4,'add',(_0x28bcb8,_0xe60868)=>{_0x2b4a8f(_0xe60868)&&_0x3e7858['add'](_0xe60868);}),_0x3e7858['listenTo'](_0x5cf0e4,'remove',(_0x346e39,_0x208f4b)=>{_0x3e7858['has'](_0x208f4b)&&_0x3e7858['remove'](_0x208f4b);});}function w(_0x2e49a7,_0xcd13c6){if(null===_0x2e49a7&&null===_0xcd13c6)return 0x0;if(null===_0x2e49a7)return-0x1;if(null===_0xcd13c6)return 0x1;const _0x54329d=_0x2e49a7['top']-_0xcd13c6['top'];return 0x0==_0x54329d?_0x2e49a7['left']-_0xcd13c6['left']:_0x54329d;}class y extends _0x2228db{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x163f48){if(super(_0x163f48),this['collection']=new S(),this['_visibleAnnotations']=new S(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x163f48 instanceof _0x74e6ba){const _0x2d971b=_0x163f48['locale'];_0x163f48['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':N(_0x2d971b,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':N(_0x2d971b,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':N(_0x2d971b,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':N(_0x2d971b,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':N(_0x2d971b,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':N(_0x2d971b,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':N(_0x2d971b,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x2144cb){this['collection']['add'](_0x2144cb);}['remove'](_0x22ed17){this['collection']['remove'](_0x22ed17),_0x22ed17['destroy']();}['refreshVisibility'](){for(const _0x422218 of this['collection'])_0x422218['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x32b724){return this['collection']['getByInnerView'](_0x32b724);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x16565c of this['collection'])_0x16565c['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x29897b){this['fire']('_activateAnnotation',_0x29897b);}['createAnnotation'](_0x17c1ec){return new T(_0x17c1ec);}['createAnnotationView'](_0x7bf4f6,_0x9808df){return new E(_0x7bf4f6,_0x9808df);}['_addActiveAnnotation'](_0x25f920){const _0x581995=new Set(this['activeAnnotations']);_0x581995['add'](_0x25f920),this['activeAnnotations']=_0x581995;}['_removeActiveAnnotation'](_0x156c75){const _0x2e85b2=new Set(this['activeAnnotations']);_0x2e85b2['delete'](_0x156c75),this['activeAnnotations']=_0x2e85b2;}['_bindAnnotationsToVisibleAnnotations'](){const _0xc12bce=this['collection'],_0x9d7908=this['_visibleAnnotations'];function _0x56fd56(_0x34188d){const _0x4149f6=_0x34188d['source'];_0x4149f6['isVisible']&&!_0x9d7908['has'](_0x4149f6)?_0x9d7908['add'](_0x4149f6):!_0x4149f6['isVisible']&&_0x9d7908['has'](_0x4149f6)&&_0x9d7908['remove'](_0x4149f6),_0x4149f6['view']['focusTracker']['remove'](_0x4149f6['view']['element']),_0x4149f6['view']['focusTracker']['add'](_0x4149f6['view']['element']);}this['listenTo'](_0xc12bce,'add',(_0x410ae1,_0x3855c8)=>{_0x3855c8['isVisible']&&_0x9d7908['add'](_0x3855c8),this['listenTo'](_0x3855c8,'change:isVisible',_0x56fd56);}),this['listenTo'](_0xc12bce,'remove',(_0x21c20b,_0x4166b7)=>{_0x9d7908['has'](_0x4166b7)&&_0x9d7908['remove'](_0x4166b7),this['stopListening'](_0x4166b7,'change:isVisible',_0x56fd56);});}['_setupEnterAnnotationKeystroke'](){const _0x5744a8=_0x5cc570=>{_0x5cc570['on']('ready',()=>{_0x5cc570['keystrokes']['set'](_0x4ddf4f,(_0x31d67c,_0x2083c5)=>{const _0x2097f8=_0x4dfbcc(this['activeAnnotations']['values']());_0x2097f8&&(_0x2097f8['view']['focus'](),_0x2083c5());});});};this['context']instanceof _0x74e6ba?_0x5744a8(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0x30b874,_0x53a79c)=>{_0x5744a8(_0x53a79c);});}['_setupEscapeAnnotationHandling'](){const _0x2a9c18=_0x24c33a=>{const _0x3519e7=_0x24c33a['source'],_0x1ed572=[];let _0x313c92;if(Array['isArray'](_0x3519e7['target'])){_0x313c92=_0x3519e7['target'][0x0],this['context']instanceof _0x74e6ba?_0x1ed572['push'](this['context']):this['context']['editors']&&_0x1ed572['push'](...this['context']['editors']);for(const _0x397cbf of _0x1ed572)for(const _0x35c87f of _0x397cbf['editing']['view']['domRoots']['values']())if(_0x35c87f['contains'](_0x313c92))return void _0x397cbf['editing']['view']['focus']();_0x313c92['focus']();}};this['listenTo'](this['collection'],'add',(_0x342612,_0x31877d)=>{this['listenTo'](_0x31877d,'escape',_0x2a9c18,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x459451,_0x237508)=>{this['stopListening'](_0x237508,'escape',_0x2a9c18);});}}const _t=Symbol('noChannel'),bt={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class o extends _0x2228db{['_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(_0x2f6094){super(_0x2f6094),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x580000=this['context']['config'];_0x580000['define']('comments.maxCommentsWhenCollapsed',0x2),_0x580000['define']('comments.maxThreadTotalWeight',0x1f4),_0x580000['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x580000['define']('comments.CommentThreadView',gt),_0x580000['define']('comments.CommentView',Tt),_0x580000['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x217a0a=this['context']['plugins']['get'](y);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x2c43ed,_0x164ba8)=>this['_addCommentThread'](_0x164ba8)),this['on']('submitCommentThread',(_0x59c2e3,_0x5980fb)=>this['_submitCommentThread'](_0x5980fb)),this['on']('resolveCommentThread',(_0x5e602f,_0x47e127)=>this['_resolveCommentThread'](_0x47e127)),this['on']('resolveCommentThread',(_0x4c93b2,_0x49a4ee)=>this['_updateActiveAnnotation'](_0x49a4ee),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x141eca,_0x12a5b8)=>this['_reopenCommentThread'](_0x12a5b8)),this['on']('reopenCommentThread',(_0x4afc7c,_0x29d1c8)=>this['_updateActiveAnnotation'](_0x29d1c8),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x167922,_0x2efdf7)=>this['_removeCommentThread'](_0x2efdf7)),this['on']('updateCommentThread',(_0x38474d,_0x3c4a6a)=>this['_updateCommentThread'](_0x3c4a6a)),this['on']('updateCommentThread',(_0x204d47,_0x280f8f)=>this['_updateActiveAnnotation'](_0x280f8f),{'priority':'lowest'}),this['on']('addComment',(_0xfeb222,_0x5be59e)=>this['_addComment'](_0x5be59e)),this['on']('updateComment',(_0x5b442a,_0x4ecab7)=>this['_updateComment'](_0x4ecab7)),this['on']('removeComment',(_0x5f3ddd,_0x24a2e0)=>this['_removeComment'](_0x24a2e0)),this['on']('addComment',(_0x2b5204,{threadId:_0x1abb7d,isFromAdapter:_0xfac848})=>{if(_0xfac848)return;const _0xf358ab=this['getCommentThread'](_0x1abb7d),_0x33e281=_0xf358ab&&this['_threadToController']['get'](_0xf358ab);_0x33e281&&_0x33e281['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x217a0a,'change:activeAnnotations',(_0xf301c7,_0x5af6af,_0x2398f1)=>{const _0x20569d=Array['from'](_0x2398f1)['map'](_0x4626b5=>this['_viewToController']['get'](_0x4626b5['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x20569d?_0x20569d['model']:null;});}set['adapter'](_0x51a67b){if(this['_adapter'])throw new _0x2e6f8f('commentsrepository-adapter-already-set');this['_adapter']=_0x51a67b;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x2063b6=_t,threadId:_0x5656b0=_0x2388d3(),comments:_0x3d3baf=[],unlinkedAt:_0x3737bc=null,resolvedAt:_0x113b35=null,resolvedBy:_0x1c7b6f=null,target:_0x5b6933=null,context:_0x445a4d=null,attributes:_0x49fb63={},isResolvable:_0x3049e1=!0x0,isSubmitted:_0x362e75=!0x1,isFromAdapter:_0x1b5869=!0x1}={}){return this['fire'](Nt('addCommentThread',_0x2063b6),{'channelId':_0x2063b6,'threadId':_0x5656b0,'comments':_0x3d3baf,'unlinkedAt':_0x3737bc,'resolvedAt':_0x113b35,'resolvedBy':_0x1c7b6f,'target':_0x5b6933,'context':_0x445a4d,'attributes':_0x49fb63,'isFromAdapter':_0x1b5869,'isResolvable':_0x3049e1,'isSubmitted':_0x362e75}),this['getCommentThread'](_0x5656b0);}['openNewCommentThread']({channelId:_0x29c7c9=_t,threadId:_0x5d07d5=_0x2388d3(),target:_0x20a21a,context:_0x58c33d=null,isResolvable:_0x4f4ce6=!0x0}){if(this['_readOnlyChannels']['has'](_0x29c7c9)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x20a21a)throw new _0x2e6f8f('commentsrepository-missing-target');const _0xc153b6=this['addCommentThread']({'channelId':_0x29c7c9,'threadId':_0x5d07d5,'target':_0x20a21a,'context':_0x58c33d,'isResolvable':_0x4f4ce6});if(!_0xc153b6)return null;const _0x3c98b0=this['_threadToController']['get'](_0xc153b6),_0x2b22eb=_0x3c98b0['view']['commentThreadInputView']['commentInputView'],_0x306fe9=this['context']['plugins']['get'](y),_0x2202b6=_0x306fe9['getByInnerView'](_0x3c98b0['view']);return _0x306fe9['activate'](_0x2202b6),_0x2b22eb['once']('editorReady',()=>_0x2b22eb['focus']()),_0xc153b6;}['hasCommentThread'](_0x435373){if('string'!=typeof _0x435373)throw new _0x2e6f8f('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x435373);}['updateCommentThread']({channelId:_0x50c285=_t,threadId:_0xf9184e,context:_0x442628,unlinkedAt:_0xcd1a37,attributes:_0x4179ec,isFromAdapter:_0x10c4b8=!0x1}){return this['fire'](Nt('updateCommentThread',_0x50c285),{'channelId':_0x50c285,'threadId':_0xf9184e,'context':_0x442628,'unlinkedAt':_0xcd1a37,'attributes':_0x4179ec,'isFromAdapter':_0x10c4b8}),this['getCommentThread'](_0xf9184e);}['getCommentThread'](_0x18fcb3){if('string'!=typeof _0x18fcb3)throw new _0x2e6f8f('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x18fcb3);}['fetchCommentThread']({channelId:_0x50c03a,threadId:_0x4c919c}={}){const _0x5d9369=this['getCommentThread'](_0x4c919c);if(_0x5d9369)return Promise['resolve'](_0x5d9369);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new _0x2e6f8f('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x50c03a,'threadId':_0x4c919c})['then'](_0x3c9795=>this['hasCommentThread'](_0x4c919c)?this['getCommentThread'](_0x4c919c):_0x3c9795?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x50c03a},_0x3c9795)):void 0x0)['catch'](_0x568634=>{throw console['error'](_0x568634),new _0x2e6f8f('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x4b3e59,skipNotAttached:_0x35981a=!0x1,skipEmpty:_0x1682e2=!0x1,toJSON:_0x281d9e=!0x1}={}){const _0x33ad7d=[];for(const _0x959a1f of this['_threads']['values']())_0x4b3e59&&_0x959a1f['channelId']!==_0x4b3e59||_0x35981a&&!_0x959a1f['isAttached']||_0x1682e2&&0x0===_0x959a1f['length']||_0x33ad7d['push'](_0x959a1f);return _0x281d9e?_0x33ad7d['map'](_0xe9e23=>_0xe9e23['toJSON']()):_0x33ad7d;}['getAnnotationForCommentThread'](_0x42b34a){const _0xa081f0=this['_threadToController']['get'](_0x42b34a);if(!_0xa081f0)return null;return this['context']['plugins']['get'](y)['getByInnerView'](_0xa081f0['view'])||null;}['getCommentThreadForAnnotation'](_0x533537){const _0x22e196=this['_viewToController']['get'](_0x533537['innerView']);return _0x22e196?_0x22e196['model']:null;}['setActiveCommentThread'](_0x4b02e5){const _0x36697a=this['context']['plugins']['get'](y);if(!_0x4b02e5)return void(this['activeCommentThread']&&_0x36697a['deactivateAll']());const _0x350d4e=this['getCommentThread'](_0x4b02e5);if(!_0x350d4e)throw new _0x2e6f8f('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x4b02e5});if(!this['_threadToController']['has'](_0x350d4e))throw new _0x2e6f8f('commentsrepository-active-not-attached',null,{'threadId':_0x4b02e5});const _0x4ffcbc=_0x36697a['getByInnerView'](this['_threadToController']['get'](_0x350d4e)['view']);_0x36697a['activate'](_0x4ffcbc);}['switchReadOnly'](_0x33b539,_0x387d27){_0x33b539?this['_readOnlyChannels']['add'](_0x387d27):this['_readOnlyChannels']['delete'](_0x387d27),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x33fc3f){return this['_readOnlyChannels']['has'](_0x33fc3f)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x35d8c0,_0x5c4967){return new vt(_0x35d8c0,_0x5c4967);}['setPermissions'](_0xad6efe,_0x9754dd=_t){this['_permissions']['set'](_0x9754dd,_0xad6efe),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x2399c4=_t){return this['_permissions']['has'](_0x2399c4)?this['_permissions']['get'](_0x2399c4):bt;}['_addCommentThread']({channelId:_0x14709e,threadId:_0x1583bb,comments:_0x111653,unlinkedAt:_0x16b923,resolvedAt:_0x31ebd3,resolvedBy:_0xba6b7a,target:_0x177031,context:_0x620bc8,attributes:_0x191ca8,isFromAdapter:_0x4451b4,isResolvable:_0x36cd7b,isSubmitted:_0x38310b}){if('string'!=typeof _0x1583bb)throw new _0x2e6f8f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x1583bb});if(this['hasCommentThread'](_0x1583bb))throw new _0x2e6f8f('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x1583bb});const _0x64cdfd=new pi(this,{'channelId':_0x14709e,'id':_0x1583bb,'context':_0x620bc8,'attributes':_0x191ca8,'unlinkedAt':_0x16b923,'resolvedAt':_0x31ebd3,'resolvedBy':_0xba6b7a?this['context']['plugins']['get'](it)['getUser'](_0xba6b7a):null,'isResolvable':_0x36cd7b,'isSubmitted':_0x38310b||_0x4451b4});this['_threads']['set'](_0x1583bb,_0x64cdfd);for(const _0x4536c7 of _0x111653)_0x64cdfd['_add'](this['_createNewComment']({'threadId':_0x1583bb,..._0x4536c7}));return _0x177031&&_0x64cdfd['attachTo'](_0x177031),_0x4451b4||!_0x64cdfd['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x14709e,'threadId':_0x1583bb});}['_submitCommentThread']({channelId:_0x111a51,threadId:_0x4f636a}){if(!this['hasCommentThread'](_0x4f636a))throw new _0x2e6f8f('commentsrepository-missing-comment-thread',this);const _0x5159cf=this['getCommentThread'](_0x4f636a);if(_0x5159cf['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x4b98e1,comments:_0x4e0c5e,resolvedAt:_0x3a5f23,resolvedBy:_0x56f025,context:_0x90e2c9,attributes:_0x4e2a7b}=_0x5159cf,_0x34b143=this['context']['plugins']['get']('PendingActions'),_0x3fcecf=_0x34b143['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x111a51,'threadId':_0x4b98e1,'comments':_0x4e0c5e['map'](_0x253fc3=>_0x253fc3['toJSON']()),'resolvedAt':_0x3a5f23,'resolvedBy':_0x56f025?_0x56f025['id']:_0x56f025,'context':_0x90e2c9,'attributes':_0x4e2a7b})['then'](({comments:_0x4a8a5d})=>{_0x34b143['remove'](_0x3fcecf);for(const _0x5bff2d of _0x4a8a5d)this['_updateComment']({'channelId':_0x111a51,'threadId':_0x4f636a,'commentId':_0x5bff2d['commentId'],'createdAt':_0x5bff2d['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x235a83=>{throw console['error'](_0x235a83),new _0x2e6f8f('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0x416f23,target:_0x3e2706}){const _0x4634e=this['getCommentThread'](_0x416f23);if(!_0x4634e)throw new _0x2e6f8f('commentsrepository-attach-missing-comment-thread',this);const _0x3e7269=this['context']['plugins']['get']('PendingActions'),_0x517323=this['context']['plugins']['get'](y),_0x3ebabd=this['_createCommentThreadView'](_0x4634e),_0x425138=new vt(_0x4634e,_0x3ebabd);let _0x5789d7=null;_0x3ebabd['on']('change:isDirty',(_0x48dd8a,_0x4f5cdd,_0x4172e0)=>{_0x4172e0?_0x5789d7=_0x3e7269['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5789d7&&(_0x3e7269['remove'](_0x5789d7),_0x5789d7=null);}),this['_threadToController']['set'](_0x4634e,_0x425138),this['_viewToController']['set'](_0x3ebabd,_0x425138);const _0x3dc0a3=new E(this['context']['locale'],_0x3ebabd);_0x3dc0a3['bind']('length')['to'](_0x3ebabd),_0x3dc0a3['bind']('isDirty')['to'](_0x3ebabd,'isDirty',_0x3ebabd,'length',(_0x8e923a,_0x2c2274)=>_0x8e923a||!_0x2c2274),_0x3dc0a3['bind']('isActive')['to'](_0x3ebabd),_0x3dc0a3['type']='comment';const _0x4c7da8=new T({'view':_0x3dc0a3,'target':_0x3e2706,'type':'comment','isVisible':!_0x4634e['archivedAt']&&!!('function'==typeof _0x3e2706?_0x3e2706():_0x3e2706)});return _0x3ebabd['on']('escape',()=>{_0x4c7da8['fire']('escape');}),this['_bindAnnotationToEditors'](_0x3ebabd,_0x4c7da8),_0x517323['add'](_0x4c7da8),_0x4c7da8;}['_bindAnnotationToEditors'](_0xf0f272,_0x5b56a6){this['listenTo'](_0xf0f272,'editorReady',(_0x133be8,_0x119bfc)=>{const _0x560a3e=_0x119bfc['ui']['view']['body']['bodyCollectionContainer'];_0x5b56a6['focusableElements']['add'](_0x560a3e),this['context']instanceof _0x74e6ba&&this['context']['ui']['focusTracker']['add'](_0x560a3e);},{'priority':'highest'}),this['listenTo'](_0xf0f272,'editorDestroyed',(_0x239554,_0x338213)=>{const _0x179494=_0x338213['ui']['view']['body']['bodyCollectionContainer'];_0x5b56a6['focusableElements']['has'](_0x179494)&&_0x5b56a6['focusableElements']['remove'](_0x179494),this['context']instanceof _0x74e6ba&&this['context']['ui']['focusTracker']['remove'](_0x179494);});}['_unbindEditors'](_0x463ee5){this['stopListening'](_0x463ee5,'editorReady'),this['stopListening'](_0x463ee5,'editorDestroyed');}['_createCommentThreadView'](_0x36a39c){const _0x1fc30e=this['context']['plugins']['get'](it),{config:_0x23cb62,locale:_0x6e8d47}=this['context'],_0xf8ccc6=pt(_0x23cb62['get']('locale'),_0x6e8d47);return new(0x0,(_0x23cb62['get']('comments'))['CommentThreadView'])(_0x6e8d47,_0x36a39c,_0x1fc30e['me'],{'editorConfig':{..._0x23cb62['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x23cb62['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x23cb62['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x23cb62['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x23cb62['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xf8ccc6,'CommentView':_0x23cb62['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x29b360,channelId:_0x42c4eb,resolvedAt:_0x114622,resolvedBy:_0x15ca86,isFromAdapter:_0x503ed8}){if(!this['hasCommentThread'](_0x29b360))throw new _0x2e6f8f('commentsrepository-missing-comment-thread',null,{'threadId':_0x29b360});const _0x49feec=this['getCommentThread'](_0x29b360);if(_0x49feec['isResolved'])throw new _0x2e6f8f('commentsrepository-resolved-comment-thread',null,{'threadId':_0x29b360});const _0x9018f0=this['context']['plugins']['get'](it);if(_0x49feec['resolvedBy']=_0x9018f0['getUser'](_0x15ca86),_0x49feec['resolvedAt']=_0x114622,_0x503ed8||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x385e69=this['context']['plugins']['get']('PendingActions'),_0x2b4f69=_0x385e69['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x42c4eb,'threadId':_0x29b360})['then'](({resolvedAt:_0x5ced5e,resolvedBy:_0xbeb7b4})=>{_0x385e69['remove'](_0x2b4f69),_0x49feec['resolvedBy']['id']!==_0xbeb7b4&&(_0x49feec['resolvedBy']=_0x9018f0['getUser'](_0xbeb7b4)),_0x49feec['resolvedAt']=_0x5ced5e;})['catch'](_0x2faad0=>{throw console['error'](_0x2faad0),new _0x2e6f8f('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x2e5149,channelId:_0x574417,isFromAdapter:_0x475b6e}){if(!this['hasCommentThread'](_0x2e5149))throw new _0x2e6f8f('commentsrepository-missing-comment-thread',null,{'threadId':_0x2e5149});const _0x46b781=this['getCommentThread'](_0x2e5149);if(!_0x46b781['isResolved'])throw new _0x2e6f8f('commentsrepository-reopen-comment-thread',null,{'threadId':_0x2e5149});if(_0x46b781['resolvedBy']=null,_0x46b781['resolvedAt']=null,_0x475b6e||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x3b1c40=this['context']['plugins']['get']('PendingActions'),_0xb88f83=_0x3b1c40['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x574417,'threadId':_0x2e5149})['then'](()=>_0x3b1c40['remove'](_0xb88f83))['catch'](_0x91cd6e=>{throw console['error'](_0x91cd6e),new _0x2e6f8f('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x49f204,isFromAdapter:_0x330e35}){const _0x3fb527=this['getCommentThread'](_0x49f204);if(!_0x3fb527)throw new _0x2e6f8f('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x49f204),this['_threads']['delete'](_0x49f204),!_0x3fb527['isSubmitted']||_0x330e35||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x1b2821=this['context']['plugins']['get']('PendingActions'),{channelId:_0x417af2}=_0x3fb527,_0x39573c=_0x1b2821['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x417af2,'threadId':_0x49f204})['then'](()=>_0x1b2821['remove'](_0x39573c))['catch'](_0x341fb8=>{throw console['error'](_0x341fb8),new _0x2e6f8f('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x4d56d0,unlinkedAt:_0x4d839c,context:_0x2a7341,attributes:_0x38a92a,isFromAdapter:_0x55f244}){if('string'!=typeof _0x4d56d0)throw new _0x2e6f8f('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4d56d0});if(!this['hasCommentThread'](_0x4d56d0))throw new _0x2e6f8f('commentsrepository-missing-comment-thread',null,{'threadId':_0x4d56d0});const _0x6c5797=this['getCommentThread'](_0x4d56d0);let _0x3c4a7a=!0x1;if(void 0x0!==_0x2a7341&&_0x6c5797['context']!==_0x2a7341&&(_0x6c5797['context']=_0x2a7341,_0x3c4a7a=!0x0),void 0x0!==_0x4d839c&&_0x6c5797['unlinkedAt']!==_0x4d839c&&(_0x6c5797['unlinkedAt']=_0x4d839c,_0x3c4a7a=!0x0),_0x38a92a&&!At(_0x38a92a,_0x6c5797['attributes'])&&(_0x6c5797['attributes']=_0x38a92a,_0x3c4a7a=!0x0),!_0x3c4a7a)return Promise['resolve']();if(!_0x6c5797['isSubmitted']||_0x55f244||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x2264ed=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5276e6}=_0x6c5797,_0x102400=_0x2264ed['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x5276e6,'threadId':_0x4d56d0,'context':_0x2a7341,'unlinkedAt':_0x4d839c,'attributes':_0x38a92a})['then'](()=>_0x2264ed['remove'](_0x102400))['catch'](_0x469c36=>{throw console['error'](_0x469c36),new _0x2e6f8f('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x31feae){const _0x4489d4=this['context']['plugins']['get'](y),_0x4a3a23=this['getCommentThread'](_0x31feae);if(_0x4a3a23['_isAttached']=!0x1,this['_threadToController']['has'](_0x4a3a23)){const _0x32cd10=this['_threadToController']['get'](_0x4a3a23),_0x301dbe=_0x32cd10['view'],_0x4ee05e=_0x4489d4['getByInnerView'](_0x301dbe);this['_threadToController']['delete'](_0x4a3a23),this['_viewToController']['delete'](_0x301dbe),_0x4ee05e&&_0x4489d4['remove'](_0x4ee05e),_0x32cd10['destroy'](),_0x301dbe['destroy']()['then'](()=>{this['_unbindEditors'](_0x301dbe);});}}['_updateActiveAnnotation']({threadId:_0x5628fa,resolvedAt:_0x14f0a9,unlinkedAt:_0x484335}){const _0x443d25=!!_0x14f0a9,_0x1cb9aa=this['context']['plugins']['get'](y),_0x35a974=this['getCommentThread'](_0x5628fa);if(this['_threadToController']['has'](_0x35a974)){const _0x46916c=this['_threadToController']['get'](_0x35a974)['view'],_0xb3d785=_0x1cb9aa['getByInnerView'](_0x46916c);_0xb3d785&&(_0x443d25&&_0x1cb9aa['_removeActiveAnnotation'](_0xb3d785),_0x484335?_0xb3d785['isVisible']=!0x1:_0xb3d785['refreshVisibility']());}}['_getExternalAuthor'](_0x41124f){const _0x1aadbe=this['context']['plugins']['get'](it),_0x9f0563=It('external:'+_0x41124f),_0x116c1a=_0x1aadbe['getUser'](_0x9f0563);return _0x116c1a||_0x1aadbe['addUser']({'id':_0x9f0563,'name':_0x41124f});}['_createNewComment']({threadId:_0x1815b0,commentId:_0x54ed88=_0x2388d3(),content:_0x9dde95,authorId:_0x826325,createdAt:_0x4048c8,attributes:_0x110f5f}){if('string'!=typeof _0x54ed88)throw new _0x2e6f8f('commentsrepository-invalid-commentid');if('string'!=typeof _0x826325)throw new _0x2e6f8f('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x9dde95||!_0x9dde95['trim']())throw new _0x2e6f8f('commentsrepository-invalid-comment-content');const _0x10a2e0=this['context']['plugins']['get'](it)['getUser'](_0x826325);if(!_0x10a2e0)throw new _0x2e6f8f('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x826325});let _0x4adf45=null,_0x3eb132=_0x4048c8;return _0x110f5f?.['@external']&&(_0x4adf45=this['_getExternalAuthor'](_0x110f5f['@external']['authorName']),_0x3eb132=new Date(_0x110f5f['@external']['createdAt'])),new wi(this,{'threadId':_0x1815b0,'id':_0x54ed88,'author':_0x4adf45||_0x10a2e0,'creator':_0x10a2e0,'content':_0x9dde95,'createdAt':_0x4048c8,'authoredAt':_0x3eb132,'attributes':_0x110f5f});}['_addComment'](_0x1da4eb){let {threadId:_0x137710,content:_0x182919,attributes:_0x5214dd,isFromAdapter:_0x40c52b}=_0x1da4eb;const _0x23198c=this['getCommentThread'](_0x1da4eb['threadId']);if(!_0x23198c)throw new _0x2e6f8f('commentsrepository-add-comment-to-missing-comment-thread',this);const _0xd726cd=this['_createNewComment'](_0x1da4eb),{id:_0x411d26}=_0xd726cd;if(_0x23198c['_add'](_0xd726cd),_0x40c52b||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x23198c['isSubmitted'])return Promise['resolve']();const _0x1bb58a=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5d3323}=_0x23198c,_0x55f1a8=_0x1bb58a['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x5214dd||(_0x5214dd={}),this['adapter']['addComment']({'channelId':_0x5d3323,'threadId':_0x137710,'commentId':_0x411d26,'content':_0x182919,'attributes':_0x5214dd})['then'](_0x678a73=>{_0x1bb58a['remove'](_0x55f1a8),_0x678a73&&this['_updateComment']({'channelId':_0x5d3323,'threadId':_0x137710,'commentId':_0x411d26,'createdAt':_0x678a73['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x17d69e=>{throw console['error'](_0x17d69e),new _0x2e6f8f('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x16f14b,commentId:_0x5ba669,content:_0x3edd23,createdAt:_0x29be55,attributes:_0x444275,isFromAdapter:_0x22fa23}){if(void 0x0!==_0x3edd23&&('string'!=typeof _0x3edd23||!_0x3edd23['trim']()['length']))throw new _0x2e6f8f('commentsrepository-update-comment-invalid-content');const _0x1182ad=this['getCommentThread'](_0x16f14b),_0x785633=_0x1182ad['getComment'](_0x5ba669);if(!_0x785633)throw new _0x2e6f8f('commentsrepository-update-missing-comment',this);let _0x2ce331=!0x1;if(_0x3edd23&&_0x3edd23!==_0x785633['content']&&(_0x785633['isEditable']||_0x22fa23)&&(_0x785633['content']=_0x3edd23,_0x2ce331=!0x0),_0x29be55&&_0x29be55!==_0x785633['createdAt']&&(_0x785633['createdAt']=_0x29be55,_0x785633['attributes']&&_0x785633['attributes']['@external']||(_0x785633['authoredAt']=_0x29be55),_0x2ce331=!0x0),_0x444275&&!At(_0x444275,_0x785633['attributes'])&&(_0x785633['attributes']=_0x444275,_0x2ce331=!0x0),!_0x2ce331)return Promise['resolve']();if(_0x1182ad['fire']('commentUpdated'),_0x22fa23||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x558d69=this['context']['plugins']['get']('PendingActions'),{channelId:_0x96bc44}=this['getCommentThread'](_0x785633['threadId']),_0xab0332=_0x558d69['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x96bc44,'threadId':_0x16f14b,'commentId':_0x5ba669,'content':_0x3edd23,'attributes':_0x444275})['then'](()=>_0x558d69['remove'](_0xab0332))['catch'](_0x14e0ca=>{throw console['error'](_0x14e0ca),new _0x2e6f8f('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0x40f74e,commentId:_0x53c77e,isFromAdapter:_0x15df4e}){const _0x4a754a=this['getCommentThread'](_0x40f74e),_0x5b457d=_0x4a754a['getComment'](_0x53c77e);if(!_0x5b457d)throw new _0x2e6f8f('commentsrepository-remove-missing-comment',this);if(_0x4a754a['_remove'](_0x5b457d),_0x15df4e||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x4fb2c1=this['context']['plugins']['get']('PendingActions'),{channelId:_0x50068c}=_0x4a754a,_0x587969=_0x4fb2c1['add'](N(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x50068c,'threadId':_0x40f74e,'commentId':_0x53c77e})['then'](()=>_0x4fb2c1['remove'](_0x587969))['catch'](_0xed74ef=>{throw console['error'](_0xed74ef),new _0x2e6f8f('commentsrepository-remove-comment-internal-error',this);});}}class pi extends/* #__PURE__ -- @preserve */
|
|
30
|
+
_0x2f7441(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x4edec1,_0x171a94){super();const _0x3b8662=_0x171a94['isResolvable'];this['channelId']=_0x171a94['channelId'],this['id']=_0x171a94['id'],this['comments']=new _0x2a8245(),this['_repository']=_0x4edec1,this['_isAttached']=!0x1,this['_isSubmitted']=_0x171a94['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x4edec1,'_permissions',_0x4edec1,'_readOnlyChannels',()=>_0x4edec1['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x4edec1,'_permissions',()=>_0x4edec1['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x4edec1,'_permissions',()=>{const _0x17a44d=_0x4edec1['getPermissions'](this['channelId']);return _0x17a44d['write']||_0x17a44d['admin'];}),this['bind']('isResolvable')['to'](_0x4edec1,'_permissions',()=>_0x3b8662&&_0x4edec1['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x171a94['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x2d964a,_0x7d9a2b)=>_0x2d964a?_0x7d9a2b?_0x2d964a<_0x7d9a2b?_0x2d964a:_0x7d9a2b:_0x2d964a:_0x7d9a2b),this['set']('unlinkedAt',_0x171a94['unlinkedAt']||null),this['set']('resolvedAt',_0x171a94['resolvedAt']||null),this['set']('resolvedBy',_0x171a94['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0x27468b=>!!_0x27468b),this['set']('attributes',_0x171a94['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x1bae46,_0x2fd13e)=>_0x1bae46+_0x2fd13e['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x19cc85,id:_0x5e1310}=this;this['_repository']['fire'](Nt('submitCommentThread',_0x19cc85),{'channelId':_0x19cc85,'threadId':_0x5e1310});}['setUnlinkedAt'](_0x4fe559){this['_update']({'unlinkedAt':_0x4fe559});}['resolve']({resolvedAt:_0x337477=new Date(),resolvedBy:_0x121374=null,isFromAdapter:_0x2220a9=!0x1}={}){const _0x298797=this['_repository']['context']['plugins']['get'](it)['me'],{channelId:_0x5954ee,id:_0x2870df}=this;this['_repository']['fire'](Nt('resolveCommentThread',_0x5954ee),{'channelId':_0x5954ee,'threadId':_0x2870df,'resolvedAt':_0x337477,'resolvedBy':_0x121374||_0x298797['id'],'isFromAdapter':_0x2220a9});}['reopen']({isFromAdapter:_0x598589=!0x1}={}){const {channelId:_0x13d98c,id:_0x3c3e0e}=this;this['_repository']['fire'](Nt('reopenCommentThread',_0x13d98c),{'channelId':_0x13d98c,'threadId':_0x3c3e0e,'isFromAdapter':_0x598589});}['setContext'](_0xe219d6){this['context']||this['_update']({'context':_0xe219d6});}['setAttribute'](_0x558e21,_0x40072f){const _0x120f7a=wt(this['attributes']);yt(_0x120f7a,_0x558e21,_0x40072f),this['_update']({'attributes':_0x120f7a});}['removeAttribute'](_0x424ca9){const _0x4c4457=wt(this['attributes']);Ct(_0x4c4457,_0x424ca9),this['_update']({'attributes':_0x4c4457});}['remove']({isFromAdapter:_0x37258e=!0x1}={}){const {channelId:_0x34ec20,id:_0x2ffaf5}=this;this['_repository']['fire'](Nt('removeCommentThread',_0x34ec20),{'channelId':_0x34ec20,'threadId':_0x2ffaf5,'isFromAdapter':_0x37258e});}['attachTo'](_0x24deed){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x24deed});}['addComment'](_0x43091a){const {channelId:_0x39686a,id:_0x382a73}=this;this['_repository']['fire'](Nt('addComment',_0x39686a,_0x382a73),Object['assign']({'channelId':_0x39686a,'threadId':_0x382a73},_0x43091a));}['getComment'](_0x405d2b){if('string'!=typeof _0x405d2b)throw new _0x2e6f8f('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x405d2b});return this['comments']['get'](_0x405d2b);}['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'](_0x24e28a=>_0x24e28a['toJSON']()),'attributes':this['attributes']};}['_add'](_0x1d9747){return this['listenTo'](_0x1d9747,'change:authoredAt',()=>{const _0x297d99=this['_findOptimalIndex'](_0x1d9747),_0x4bdf29=this['comments'];_0x297d99-0x1!=_0x4bdf29['getIndex'](_0x1d9747)&&_0x297d99+0x1!=_0x4bdf29['getIndex'](_0x1d9747)&&(this['_remove'](_0x1d9747),this['_add'](_0x1d9747));}),this['comments']['add'](_0x1d9747,this['_findOptimalIndex'](_0x1d9747));}['_update'](_0x55c355){const {channelId:_0x4d96d8,id:_0x3c2c69}=this;this['_repository']['fire'](Nt('updateCommentThread',_0x4d96d8),{..._0x55c355,'channelId':_0x4d96d8,'threadId':_0x3c2c69});}['_remove'](_0x4c1a37){return this['stopListening'](_0x4c1a37),_0x4c1a37['destroy'](),this['comments']['remove'](_0x4c1a37);}['_findOptimalIndex'](_0x4fbf2c){const _0x4aa1a5=this['comments']['find'](_0x595921=>new Date(_0x595921['authoredAt'])['getTime']()>new Date(_0x4fbf2c['authoredAt'])['getTime']());return _0x4aa1a5?this['comments']['getIndex'](_0x4aa1a5):this['length'];}}class wi extends/* #__PURE__ -- @preserve */
|
|
31
|
+
_0x2f7441(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x1bc3ae,_0x228c62){super();const _0x38a5b2=_0x1bc3ae['context']['plugins']['get'](it)['me'],_0x5cdba0=_0x1bc3ae['getCommentThread'](_0x228c62['threadId']),_0x339305=0x0===_0x5cdba0['comments']['length'],_0x535d2c=_0x38a5b2===_0x228c62['author'];this['id']=_0x228c62['id'],this['threadId']=_0x228c62['threadId'],this['author']=_0x228c62['author'],this['creator']=_0x228c62['creator'],this['isExternal']=Boolean(_0x228c62['attributes']&&_0x228c62['attributes']['@external']),this['set']('content',_0x228c62['content']),this['createdAt']=_0x228c62['createdAt']||new Date(),this['set']('authoredAt',_0x228c62['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x5cdba0,'resolvedAt'),this['set']('attributes',_0x228c62['attributes']||{}),this['bind']('isEditable')['to'](_0x1bc3ae,'_permissions',()=>{const _0xf6326a=_0x1bc3ae['getPermissions'](_0x5cdba0['channelId'])['write'],_0x20e579=_0x1bc3ae['getPermissions'](_0x5cdba0['channelId'])['modifyAll'];return _0x535d2c&&_0xf6326a||!_0x535d2c&&_0x20e579;}),this['bind']('isRemovable')['to'](_0x5cdba0,'isRemovable',_0x1bc3ae,'_permissions',_0x9f2867=>{const _0x2935e7=_0x1bc3ae['getPermissions'](_0x5cdba0['channelId'])['write'],_0x20929c=_0x1bc3ae['getPermissions'](_0x5cdba0['channelId'])['modifyAll'];return _0x535d2c&&_0x2935e7||_0x9f2867&&_0x339305||!_0x535d2c&&_0x20929c&&!_0x339305;}),this['bind']('isReadOnly')['to'](_0x5cdba0,'isReadOnly'),this['_repository']=_0x1bc3ae;}get['weight'](){return Math['max'](function(_0x5b9fce){const _0x5bb85c=document['createElement']('div');return _0x5bb85c['innerHTML']=_0x5b9fce,_0x5bb85c['textContent']['length'];}(this['content']),0xc8);}['update'](_0x34aadb){const {threadId:_0x511557,id:_0x6c0a99}=this;if(!this['_repository']['hasCommentThread'](_0x511557))throw new _0x2e6f8f('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x43a0e9}=this['_repository']['getCommentThread'](_0x511557);this['_repository']['fire'](Nt('updateComment',_0x43a0e9,_0x511557),{'channelId':_0x43a0e9,'threadId':_0x511557,'commentId':_0x6c0a99,..._0x34aadb});}['setAttribute'](_0x1fc197,_0x3f6947){const _0xbaa232=wt(this['attributes']);yt(_0xbaa232,_0x1fc197,_0x3f6947),this['update']({'attributes':_0xbaa232});}['removeAttribute'](_0x4ec170){const _0xc7c60=wt(this['attributes']);Ct(_0xc7c60,_0x4ec170),this['update']({'attributes':_0xc7c60});}['remove'](_0x34074b={}){if(!_0x34074b['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x689a42,id:_0x5e9539}=this;if(!this['_repository']['hasCommentThread'](_0x689a42))throw new _0x2e6f8f('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x25ebd2}=this['_repository']['getCommentThread'](_0x689a42);this['_repository']['fire'](Nt('removeComment',_0x25ebd2,_0x689a42),{'channelId':_0x25ebd2,'threadId':_0x689a42,'commentId':_0x5e9539,..._0x34074b});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function Nt(_0x105475,..._0x1c5e1b){for(const _0x352ddf of _0x1c5e1b)void 0x0!==_0x352ddf&&(_0x105475+=':'+String(_0x352ddf));return _0x105475;}class ot extends _0x164c61{constructor(_0x5a0fc4){super(_0x5a0fc4),this['set']('hasContent',!0x1);}['refresh'](){const _0x24bb07=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x364255 of _0x24bb07['getRanges']())if(this['_hasContent'](_0x364255))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x5064b7=_0x2388d3(),ranges:_0xecfe57,comment:_0x7c4fa8}={}){const _0x15eb1c=this['editor']['model'],_0x4d9036=_0xecfe57??Array['from'](_0x15eb1c['document']['selection']['getRanges']()),_0x5c6439=[];for(const _0x193f9a of _0x4d9036)this['_hasContent'](_0x193f9a)&&_0x5c6439['push'](this['_trimToContent'](_0x193f9a));if(!_0x5c6439['length'])throw new _0x2e6f8f('addcommentthreadcommand-incorrect-ranges',null);_0x7c4fa8&&this['_createCommentThread'](_0x5064b7,_0x7c4fa8),this['_createMarkersFromRanges'](_0x5064b7,_0x5c6439,!!_0x7c4fa8);}['_createMarkersFromRanges'](_0x455ad0,_0x2330e8,_0x1b1ec0){this['editor']['model']['change'](_0x3ac4bd=>{for(const _0x3d137b of _0x2330e8){const _0x31fc54=_0x2388d3()['substr'](0x1,0x5),_0x2016e='comment:'+_0x455ad0+':'+_0x31fc54;_0x3ac4bd['addMarker'](_0x2016e,{'range':_0x3d137b,'usingOperation':_0x1b1ec0,'affectsData':_0x1b1ec0});}});}['_createCommentThread'](_0x113ee0,_0x2c7118){const _0x218300=this['editor']['plugins']['get']('CommentsRepository'),_0x3102de=this['editor']['config']['get']('collaboration.channelId'),_0x31ecd8=this['editor']['plugins']['get']('Users')['me'];if(!_0x31ecd8)throw new _0x2e6f8f('addcommentthreadcommand-user-not-found',null);_0x218300['addCommentThread']({'threadId':_0x113ee0,'channelId':_0x3102de,'comments':[{'authorId':_0x31ecd8['id'],'content':_0x2c7118,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x3a3908){for(const _0x413310 of _0x3a3908['getItems']())if(this['_itemIsContent'](_0x413310))return!0x0;return!0x1;}['_itemIsContent'](_0x4aa5e8){return _0x4aa5e8['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x4aa5e8)&&!_0x4aa5e8['is']('element','tableCell');}['_trimToContent'](_0x375212){const _0xcb8b46=_0x86f866=>!this['_itemIsContent'](_0x86f866['item']),_0x23c51b=_0x375212['start']['getLastMatchingPosition'](_0xcb8b46),_0x5d4cce=_0x375212['end']['getLastMatchingPosition'](_0xcb8b46,{'direction':'backward'});return this['editor']['model']['createRange'](_0x23c51b,_0x5d4cce);}}class b extends _0x41aca7{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[y];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10c84f){super(_0x10c84f),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x1bcc99=this['editor'],_0x2d034b=_0x1bcc99['model']['document']['selection'],_0x5a63f3=_0x49b0b7(()=>this['refreshSelectedViews'](),0xa);_0x2d034b['on']('change:range',(_0x14e17d,_0x2d2364)=>{_0x2d2364['directChange']&&(_0x5a63f3['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x1bcc99['editing']['view']['document'],'change:isFocused',(_0x30c886,_0x595a4e,_0x327999)=>{_0x327999&&_0x5a63f3();}),this['listenTo'](_0x1bcc99['ui']['focusTracker'],'change:isFocused',(_0x7a0a5,_0x459cd9,_0x28bf53)=>{_0x28bf53||this['fire']('blur',{'isAnnotationTracked':_0x1f4231=>this['_editorAnnotationsData']['has'](_0x1f4231['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0x3bd57a){if(this['_editorAnnotations']['has'](_0x3bd57a['view']))return;this['_editorAnnotations']['add'](_0x3bd57a['view']),this['editor']['ui']['focusTracker']['add'](_0x3bd57a['view']['element']);const _0x2b1919=this['editor']['plugins']['get'](y);this['listenTo'](_0x2b1919['collection'],'remove',(_0xcf22a0,_0x47644b)=>{this['editor']['ui']['focusTracker']['remove'](_0x47644b['view']['element']),this['_editorAnnotations']['delete'](_0x47644b['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x4c53e2){if('function'!=typeof _0x4c53e2)throw new _0x2e6f8f('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x4c53e2);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x575846,annotations:_0x3fe532}){const _0x3dd8b1=[],_0x52da32=this['editor']['model']['document']['selection'],_0x5f43d0=Array['from'](_0x52da32['getRanges']());for(const [_0x4a7781,_0x59dccc]of this['_editorAnnotationsData']){const _0x25c4a2=_0x3abf21(_0x59dccc),_0x2eace3=_0x3fe532['getByInnerView'](_0x4a7781);_0x25c4a2&&_0x2eace3&&_0x3dd8b1['push']({'annotation':_0x2eace3,'range':_0x25c4a2});}function _0x3abf21(_0x331cce){for(const _0x653715 of _0x331cce)for(const _0x3a8738 of _0x5f43d0)if(_0x653715['containsRange'](_0x3a8738,!_0x52da32['isCollapsed']))return _0x653715;return null;}return _0x3dd8b1['sort']((_0xd67d1e,_0x50adcb)=>{const _0x219fc0=_0xd67d1e['range'],_0x72b8e=_0x50adcb['range'];if(!_0x219fc0['isEqual'](_0x72b8e)){if(_0x219fc0['containsRange'](_0x72b8e,!0x0))return 0x1;if(_0x72b8e['containsRange'](_0x219fc0,!0x0))return-0x1;}return _0xd67d1e['annotation']==_0x575846?-0x1:_0x50adcb['annotation']==_0x575846?0x1:0x0;})['map'](_0x3a91c7=>_0x3a91c7['annotation']);}get['_editorAnnotationsData'](){const _0x3aa83a=new Map();for(const _0x1b9333 of Array['from'](this['_dataCollectors']))for(const [_0x26e1ff,_0x4be67e]of _0x1b9333())_0x3aa83a['set'](_0x26e1ff,_0x4be67e);return _0x3aa83a;}}class st extends _0x41aca7{['afterInit'](){const _0x26ccce=this['editor'];if(!_0x26ccce['plugins']['has']('RestrictedEditingModeEditing'))return;_0x26ccce['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class ct extends _0x41aca7{constructor(_0x476684){super(_0x476684),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x2c1e77=this['editor'],_0x213524=_0x2c1e77['commands']['get']('importWord'),_0x2f5b78=_0x2c1e77['plugins']['get'](it);_0x213524&&(_0x213524['on']('execute',(_0x5120df,[,_0x3aedd7])=>{_0x3aedd7['collaboration_features']={'comments':!0x0,'user_id':_0x2f5b78['me']['id']};},{'priority':Wt['high']+0xa}),this['listenTo'](_0x213524,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x321a06,_0x1f19d3){const {comment_threads:_0x1ce19c}=_0x1f19d3;_0x1ce19c&&_0x1ce19c['forEach'](({thread_id:_0x37df72,comments:_0x524764,is_resolved:_0x5d6490})=>{const _0x2184af=new Date(),_0x5e5ff4=_0x524764['map'](({author:_0x4adebd,content:_0x5658ed,created_at:_0x1f63a9})=>({'content':_0x5658ed,'authorId':this['editor']['plugins']['get'](it)['me']['id'],'createdAt':_0x2184af,'attributes':{'@external':{'authorName':_0x4adebd,'createdAt':_0x1f63a9?new Date(_0x1f63a9):new Date(),'source':'importWord'}}})),_0xc87345=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](o)['addCommentThread']({'channelId':_0xc87345,'threadId':_0x37df72,'comments':_0x5e5ff4,'resolvedAt':_0x5d6490?_0x2184af:null});});}}class at extends _0x41aca7{constructor(_0x461bd6){super(_0x461bd6),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[Mt,Pt];}['afterInit'](){const _0x5e4007=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0x5e4007,'contentInsertion',(_0x44a3d5,_0x55b6b6)=>this['_removeMarkersWithoutThreads'](_0x55b6b6['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x225334){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x225334;const _0x3ebf4c=this['editor']['plugins']['get']('CommentsRepository');for(const _0xd75493 of _0x225334['keys']()){const [_0x3b4246,_0x2f84a9]=_0xd75493['split'](':');'comment'!=_0x3b4246||_0x3ebf4c['hasCommentThread'](_0x2f84a9)||_0x225334['delete'](_0xd75493);}return _0x225334;}['_registerMarkerInClipboardPipeline'](){const _0x50cf17=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x1a6c4c=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x1a6c4c&&_0x50cf17['_registerMarkerToCopy']('comment',_0x1a6c4c);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x10ea41){switch(_0x10ea41){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function ft(_0x48db6c){const _0x27c2c9=_0x48db6c['split'](':');return{'group':_0x27c2c9[0x0],'id':_0x27c2c9[0x1],'part':_0x27c2c9[0x2]};}class ut extends _0x41aca7{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x550566,_0x3a4f7a)=>{if(!_0x3a4f7a['options']['showCommentHighlights'])return null;if(_0x3a4f7a['options']['ignoreResolvedComments']){const {id:_0x540d8c}=ft(_0x550566['markerName']),_0x34b300=this['editor']['plugins']['get'](o);if(_0x34b300['getCommentThread'](_0x540d8c)?.['isResolved']&&_0x550566['item'])return _0x3a4f7a['consumable']['consume'](_0x550566['item'],'addMarker:'+_0x550566['markerName']),_0x3a4f7a['consumable']['consume'](_0x550566['item'],'removeMarker:'+_0x550566['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x31100f=>{_0x31100f['on']('addMarker:comment',(_0x316e3b,_0x25c908,_0x5bc82d)=>{if(!_0x5bc82d['options']['showCommentHighlights'])return;const _0x23176d=_0x25c908['item'];if(!_0x23176d)return;const _0x49eadd=_0x5bc82d['mapper']['toViewElement'](_0x23176d);this['editor']['model']['schema']['isObject'](_0x23176d)&&_0x49eadd&&!_0x49eadd['getCustomProperty']('widget')&&_0x49eadd['is']('containerElement')&&_0x54dc86(_0x49eadd,_0x5bc82d['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x21d2e1,{writer:_0x5d084b,options:_0x589cc9})=>{if(!_0x589cc9['showCommentHighlights'])return null;const _0x522040=_0x5d084b['createContainerElement']('div'),_0x3f1906=_0x5d084b['createEmptyElement']('hr');return _0x5d084b['addClass']('ck-horizontal-line',_0x522040),_0x5d084b['insert'](_0x5d084b['createPositionAt'](_0x522040,0x0),_0x3f1906),_0x522040;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x54f390,{writer:_0x60ecaa,options:_0x245133})=>{if(!_0x245133['showCommentHighlights'])return null;const _0x2ef52e=_0x60ecaa['createContainerElement']('span'),_0x4925af=_0x60ecaa['createEmptyElement']('img');return _0x60ecaa['addClass']('image-inline',_0x2ef52e),_0x60ecaa['insert'](_0x60ecaa['createPositionAt'](_0x2ef52e,0x0),_0x4925af),_0x2ef52e;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1b2cfe,{writer:_0x3cc0b6,options:_0x591039})=>{if(_0x591039['showCommentHighlights'])return _0x3cc0b6['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2a6251,_0x3541c4,_0x39b64b)=>{_0x39b64b['options']['showCommentHighlights']&&_0x2a6251['stop']();},{'priority':'high'});}}class r extends _0x41aca7{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(_0x5babc0){super(_0x5babc0),this['set']('isThreadsLoadingPaused',!0x0),_0x5babc0['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x5d5e53,_0x199b84,_0x540a61,_0x4a6b70)=>{const _0x2ef206=_0x5babc0['plugins']['get'](o),_0x5a7dc3=_0x540a61?ft(_0x540a61)['id']:null;_0x5babc0['model']['change'](()=>{if(_0x5a7dc3){const _0x5d6dd3=this['getAllMarkersForId'](_0x5a7dc3);for(const _0x46a209 of _0x5d6dd3)_0x5babc0['editing']['reconvertMarker'](_0x46a209);}if(_0x4a6b70){const {id:_0xd98974}=ft(_0x4a6b70),_0x39faf6=_0x2ef206['getCommentThread'](_0xd98974);if(_0x39faf6&&_0x39faf6['unlinkedAt'])return;if(_0x39faf6&&!_0x39faf6['isAttached'])return;const _0x9b42a4=this['getAllMarkersForId'](_0xd98974);for(const _0x13e4ff of _0x9b42a4)_0x5babc0['editing']['reconvertMarker'](_0x13e4ff);}}),_0x5a7dc3&&this['scrollToThreadMarker'](_0x5a7dc3);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x141ccf=this['editor'],_0x43a146=_0x141ccf['plugins']['get'](o),_0xc20b4e=_0x141ccf['config']['get']('collaboration.channelId'),_0x2efe1a=_0x43a146['getCommentThreads']()['filter'](_0x5a3d03=>_0x5a3d03['channelId']!==_0xc20b4e);_0x141ccf['commands']['add']('addCommentThread',new ot(_0x141ccf)),this['listenTo'](_0x141ccf,'change:isReadOnly',(_0x56feb9,_0x2a09b9,_0x2e3d39)=>{_0x43a146['switchReadOnly'](_0x2e3d39,_0x141ccf['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x43a146,dt('addCommentThread',_0xc20b4e),(_0x46406b,{threadId:_0x5c4778})=>{const _0xd64171=this['editor']['plugins']['get'](o)['getCommentThread'](_0x5c4778);_0xd64171?.['unlinkedAt']&&this['_attachArchivedThread'](_0x5c4778);}),this['listenTo'](_0x43a146,dt('removeCommentThread',_0xc20b4e),(_0x1fae0f,{threadId:_0x561cc7})=>{_0x141ccf['model']['enqueueChange']({'isUndoable':!0x1},_0x411f56=>{const _0x27f017=this['getAllMarkersForId'](_0x561cc7);for(const _0x22c121 of _0x27f017)_0x411f56['removeMarker'](_0x22c121);});}),this['listenTo'](_0x43a146,dt('resolveCommentThread',_0xc20b4e),(_0xb04747,{threadId:_0x1fe134})=>{(this['_reconvertMarkers'](_0x1fe134),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](o)['getCommentThread'](_0x1fe134)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x43a146,dt('reopenCommentThread',_0xc20b4e),(_0x5e2977,{threadId:_0x391642})=>{this['_reconvertMarkers'](_0x391642);},{'priority':'low'}),this['listenTo'](_0x43a146,dt('addComment',_0xc20b4e),(_0x20aeb5,{threadId:_0x547613,isFromAdapter:_0x47cf7b})=>{const _0x1f6266=this['getAllMarkersForId'](_0x547613);if(_0x47cf7b||0x0==_0x1f6266['length']||!_0x43a146['hasCommentThread'](_0x547613))return;0x1===_0x43a146['getCommentThread'](_0x547613)['length']&&_0x141ccf['model']['enqueueChange']({'isUndoable':!0x1},_0x856bb4=>{for(const _0x35fd80 of _0x1f6266)_0x856bb4['updateMarker'](_0x35fd80,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x2efe1a);}['afterInit'](){!async function(_0xf59ddc){const _0x4d1eab=_0x4ee43f([0x63,0x34,0x4d,0x31,0x57,0x52,0x68,0x36,0x75,0x41,0x43,0x4f,0x6d,0x35,0x55,0x54,0x49,0x4b,0x46,0x39,0x37,0x74,0x45,0x59,0x4c,0x48,0x66,0x51,0x78,0x5a,0x7a,0x6c,0x50,0x6b,0x4e,0x56,0x38,0x6e,0x70,0x6a,0x44,0x72,0x62,0x47,0x4a,0x65,0x77,0x71,0x73,0x76,0x61,0x58,0x79,0x67,0x69,0x64,0x53,0x32,0x33,0x42,0x30,0x6f]),_0xe0d733=0x3852b933,_0x1d9bb5=0x3855d6d3^_0xe0d733,_0x32fda1=window[_0x4ee43f([0x44,0x61,0x74,0x65])][_0x4ee43f([0x6e,0x6f,0x77])](),_0x30a814=_0xf59ddc[_0x4ee43f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x452262=new window[(_0x4ee43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2db9a9=>{_0x30a814[_0x4ee43f([0x6f,0x6e,0x63,0x65])](_0x4ee43f([0x72,0x65,0x61,0x64,0x79]),_0x2db9a9);}),_0x4f4847={[_0x4ee43f([0x6b,0x74,0x79])]:_0x4ee43f([0x45,0x43]),[_0x4ee43f([0x75,0x73,0x65])]:_0x4ee43f([0x73,0x69,0x67]),[_0x4ee43f([0x63,0x72,0x76])]:_0x4ee43f([0x50,0x2d,0x32,0x35,0x36]),[_0x4ee43f([0x78])]:_0x4ee43f([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]),[_0x4ee43f([0x79])]:_0x4ee43f([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]),[_0x4ee43f([0x61,0x6c,0x67])]:_0x4ee43f([0x45,0x53,0x32,0x35,0x36])},_0x391cc4=_0x30a814[_0x4ee43f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4ee43f([0x67,0x65,0x74])](_0x4ee43f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x479458(){let _0x18186d,_0xf4ae74=null,_0x841866=null;try{if(_0x391cc4==_0x4ee43f([0x47,0x50,0x4c]))return _0x4ee43f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18186d=_0x27c61f(),!_0x18186d)return _0x4ee43f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18186d[_0x4ee43f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x841866=_0x55752e(_0x18186d[_0x4ee43f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18186d[_0x4ee43f([0x6a,0x74,0x69])])),await _0x599a1a()?_0x2122ac()?_0x39bab5()?_0x4ee43f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x8a7d89()?(_0x18186d[_0x4ee43f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ee43f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf4ae74=_0xba1435(_0x4ee43f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x18186d[_0x4ee43f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4ee43f([0x74,0x72,0x69,0x61,0x6c])&&(_0xf4ae74=_0xba1435(_0x4ee43f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x242524()):_0x4ee43f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4ee43f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4ee43f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4ee43f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39bab5(){const _0x43fb90=[_0x4ee43f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4ee43f([0x74,0x72,0x69,0x61,0x6c])][_0x4ee43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18186d[_0x4ee43f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32fda1/0x3e8:0xe10*_0x1d9bb5;return _0x18186d[_0x4ee43f([0x65,0x78,0x70])]<_0x43fb90;}function _0x2122ac(){const _0x21bbd9=_0x18186d[_0x4ee43f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x21bbd9)return!0x1;if(_0x21bbd9[_0x4ee43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ee43f([0x2a])))return!0x0;if(_0x21bbd9[_0x4ee43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ee43f([0x43,0x4d,0x54])))return!0x0;if(_0x21bbd9[_0x4ee43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ee43f([0x52,0x43,0x4d,0x54]))){if(_0x48725e())return!0x0;if(_0x3cee5d()||_0x1bd447())return!0x0;}return!0x1;}function _0x8a7d89(){const _0x4c3ecb=_0x18186d[_0x4ee43f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c3ecb||0x0==_0x4c3ecb[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38a0b4}=new URL(window[_0x4ee43f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c3ecb[_0x4ee43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a0b4))return!0x0;const _0x201b8c=_0x38a0b4[_0x4ee43f([0x73,0x70,0x6c,0x69,0x74])](_0x4ee43f([0x2e]));return _0x4c3ecb[_0x4ee43f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e8731=>_0x1e8731[_0x4ee43f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ee43f([0x2a])))[_0x4ee43f([0x6d,0x61,0x70])](_0x3ec9ef=>_0x3ec9ef[_0x4ee43f([0x73,0x70,0x6c,0x69,0x74])](_0x4ee43f([0x2e])))[_0x4ee43f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e799c=>_0x1e799c[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x201b8c[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ee43f([0x6d,0x61,0x70])](_0x5540b7=>Array(_0x201b8c[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5540b7[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4ee43f([0x66,0x69,0x6c,0x6c])](_0x5540b7[0x0]===_0x4ee43f([0x2a])?_0x4ee43f([0x2a]):'')[_0x4ee43f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5540b7))[_0x4ee43f([0x73,0x6f,0x6d,0x65])](_0x28d015=>_0x201b8c[_0x4ee43f([0x65,0x76,0x65,0x72,0x79])]((_0x348916,_0x23ed55)=>_0x28d015[_0x23ed55]===_0x348916||_0x28d015[_0x23ed55]===_0x4ee43f([0x2a])));}function _0x242524(){return _0xf4ae74&&_0x841866?new window[(_0x4ee43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2860dc,_0x3cc6be)=>{_0xf4ae74[_0x4ee43f([0x74,0x68,0x65,0x6e])](_0x2860dc,_0x3cc6be),_0x841866[_0x4ee43f([0x74,0x68,0x65,0x6e])](_0x381c26=>{_0x381c26!=_0x4ee43f([0x56,0x61,0x6c,0x69,0x64])&&_0x2860dc(_0x381c26);},_0x3cc6be);}):_0xf4ae74||_0x841866||_0x4ee43f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55752e(_0x2b539c,_0x275983){return new window[(_0x4ee43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1260d3=>{if(_0x241b85())return _0x1260d3(_0x4ee43f([0x56,0x61,0x6c,0x69,0x64]));_0x46dc35(),_0x30a814[_0x4ee43f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4ee43f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6318c0=!0x1;const _0x55b063=_0x2388d3();function _0x1eb6a6(_0x23650e){return!!_0x23650e&&(typeof _0x23650e===_0x4ee43f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23650e===_0x4ee43f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23650e[_0x4ee43f([0x74,0x68,0x65,0x6e])]===_0x4ee43f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23650e[_0x4ee43f([0x63,0x61,0x74,0x63,0x68])]===_0x4ee43f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbd5608(_0x2cb2d4){_0x52120f(_0x2cb2d4)[_0x4ee43f([0x74,0x68,0x65,0x6e])](_0x447dc1=>{if(!_0x447dc1||_0x447dc1[_0x4ee43f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4ee43f([0x6f,0x6b]))return _0x4ee43f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d315c(_0x620ca5(_0x55b063+_0x275983))!=_0x447dc1[_0x4ee43f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4ee43f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4ee43f([0x56,0x61,0x6c,0x69,0x64]);})[_0x4ee43f([0x74,0x68,0x65,0x6e])](_0x3a4e2d=>(_0x29a795(),_0x3a4e2d),()=>{const _0x5e2e72=_0x34cb3b();return null==_0x5e2e72?(_0x29a795(),_0x4ee43f([0x56,0x61,0x6c,0x69,0x64])):_0x4ee43f(_0x32fda1-_0x5e2e72>(0x1c5e3d33^_0xe0d733)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4ee43f([0x74,0x68,0x65,0x6e])](_0x1260d3)[_0x4ee43f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1260d3(_0x4ee43f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x65816a=0x386457b3^_0xe0d733;function _0x29a795(){const _0x4428da=_0x4ee43f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d315c(_0x620ca5(_0x2b539c)),_0x3e9402=_0x33aa94(_0x4d315c(window[_0x4ee43f([0x4d,0x61,0x74,0x68])][_0x4ee43f([0x63,0x65,0x69,0x6c])](_0x32fda1/_0x65816a)));window[_0x4ee43f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ee43f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4428da,_0x3e9402);}function _0x34cb3b(){const _0x20cea6=_0x4ee43f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d315c(_0x620ca5(_0x2b539c)),_0x3f651d=window[_0x4ee43f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4ee43f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20cea6);return _0x3f651d?window[_0x4ee43f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33aa94(_0x3f651d),0x10)*_0x65816a:null;}function _0x52120f(_0x52c159){return new window[(_0x4ee43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57bd89,_0x63d07a)=>{_0x52c159[_0x4ee43f([0x74,0x68,0x65,0x6e])](_0x57bd89,_0x63d07a),window[_0x4ee43f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x63d07a,0x38536df3^_0xe0d733);});}}_0x30a814[_0x4ee43f([0x6f,0x6e])](_0x4ee43f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x280259,_0x47c07e)=>{if(_0x47c07e[0x0]!=_0x2b539c)return _0x1260d3(_0x4ee43f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47c07e[0x1]={..._0x47c07e[0x1],[_0x4ee43f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x55b063};},{[_0x4ee43f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ee43f([0x68,0x69,0x67,0x68])}),_0x30a814[_0x4ee43f([0x6f,0x6e])](_0x4ee43f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x382a43=>{_0x1eb6a6(_0x382a43[_0x4ee43f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6318c0=!0x0,_0xbd5608(_0x382a43[_0x4ee43f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4ee43f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4ee43f([0x6c,0x6f,0x77])}),_0x452262[_0x4ee43f([0x74,0x68,0x65,0x6e])](()=>{_0x6318c0||_0x1260d3(_0x4ee43f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x241b85(){return _0x30a814[_0x4ee43f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ee43f([0x76,0x69,0x65,0x77])][_0x4ee43f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4ee43f([0x61,0x75,0x74,0x6f]);}function _0x46dc35(){_0x30a814[_0x4ee43f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4ee43f([0x76,0x69,0x65,0x77])][_0x4ee43f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4ee43f([0x61,0x75,0x74,0x6f]);}}function _0xba1435(_0x57549a){const _0x529e0d=[new window[(_0x4ee43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x213543=>setTimeout(_0x213543,0x385b87ff^_0xe0d733)),_0x452262[_0x4ee43f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4ee43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x485fdc=>{let _0x42af6a=0x0;_0x30a814[_0x4ee43f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ee43f([0x6f,0x6e])](_0x4ee43f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b617b,_0x5b6307)=>{_0x5b6307[0x0][_0x4ee43f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42af6a++,_0x42af6a==(0x3852b8cb^_0xe0d733)&&(_0x485fdc(),_0x3b617b[_0x4ee43f([0x6f,0x66,0x66])]());});}))];return window[_0x4ee43f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4ee43f([0x72,0x61,0x63,0x65])](_0x529e0d)[_0x4ee43f([0x74,0x68,0x65,0x6e])](()=>_0x57549a);}async function _0x5bcdf6(){await _0x452262,_0x30a814[_0x4ee43f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ee43f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54a0d6,_0x30a814[_0x4ee43f([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ee43f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54a0d6,_0x30a814[_0x4ee43f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ee43f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48725e(){return _0x1a294e(_0x4ee43f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x118aac(_0x4ee43f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4ee43f([0x73,0x74,0x61,0x74,0x65])]==_0x4ee43f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3cee5d(){return _0x1a294e(_0x4ee43f([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 _0x1bd447(){return _0x1a294e(_0x4ee43f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4dfc93(_0x11af88){const _0x249a15=_0x380e34();_0x30a814[_0x249a15]=_0x4ee43f([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11af88,_0x11af88!=_0x4ee43f([0x56,0x61,0x6c,0x69,0x64])&&_0x5bcdf6();}function _0x380e34(){const _0x389406=window[_0x4ee43f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4ee43f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ee43f([0x6e,0x6f,0x77])]())[_0x4ee43f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ee43f([0x2e]),'');let _0x113f08=_0x4ee43f([0x63]);for(let _0x401eae=0x0;_0x401eae<_0x389406[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x401eae+=0x2){let _0x3ab284=window[_0x4ee43f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x389406[_0x4ee43f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x401eae,_0x401eae+0x2));_0x3ab284>=_0x4d1eab[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ab284-=_0x4d1eab[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x113f08+=_0x4d1eab[_0x3ab284];}return _0x113f08;}function _0x27c61f(){const _0x27b625=_0x391cc4[_0x4ee43f([0x73,0x70,0x6c,0x69,0x74])](_0x4ee43f([0x2e]));if(0x3!=_0x27b625[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x128b4b(_0x27b625[0x1]);function _0x128b4b(_0x1b725b){const _0x4b7ca4=_0x35d233(_0x1b725b);return _0x4b7ca4&&_0x412ec8()?_0x4b7ca4:null;function _0x412ec8(){const _0x2762ba=_0x4b7ca4[_0x4ee43f([0x6a,0x74,0x69])],_0x59c474=window[_0x4ee43f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2762ba[_0x4ee43f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2762ba[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cdbef={..._0x4b7ca4,[_0x4ee43f([0x6a,0x74,0x69])]:_0x2762ba[_0x4ee43f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2762ba[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cdbef[_0x4ee43f([0x76,0x63])],_0x620ca5(_0x2cdbef)==_0x59c474;}}}async function _0x599a1a(){let _0x1950af=!0x0;try{const _0x337311=_0x391cc4[_0x4ee43f([0x73,0x70,0x6c,0x69,0x74])](_0x4ee43f([0x2e])),[_0x114eaf,_0x2f4bfc,_0x92e105]=_0x337311;return _0x5d012c(_0x114eaf),await _0x4a9a2b(_0x114eaf,_0x2f4bfc,_0x92e105),_0x1950af;}catch{return!0x1;}function _0x5d012c(_0x1487a2){const _0xd49e8e=_0x35d233(_0x1487a2);_0xd49e8e&&_0xd49e8e[_0x4ee43f([0x61,0x6c,0x67])]==_0x4ee43f([0x45,0x53,0x32,0x35,0x36])||(_0x1950af=!0x1);}async function _0x4a9a2b(_0x574211,_0x592727,_0x172fbe){const _0x5de3ac=window[_0x4ee43f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4ee43f([0x66,0x72,0x6f,0x6d])](_0x2e4411(_0x172fbe),_0x332836=>_0x332836[_0x4ee43f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x220303=new window[(_0x4ee43f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4ee43f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x574211+_0x4ee43f([0x2e])+_0x592727),_0x9cd898=window[_0x4ee43f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4ee43f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9cd898)return;const _0x2dd61f=await _0x9cd898[_0x4ee43f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4ee43f([0x6a,0x77,0x6b]),_0x4f4847,{[_0x4ee43f([0x6e,0x61,0x6d,0x65])]:_0x4ee43f([0x45,0x43,0x44,0x53,0x41]),[_0x4ee43f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4ee43f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4ee43f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9cd898[_0x4ee43f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4ee43f([0x6e,0x61,0x6d,0x65])]:_0x4ee43f([0x45,0x43,0x44,0x53,0x41]),[_0x4ee43f([0x68,0x61,0x73,0x68])]:{[_0x4ee43f([0x6e,0x61,0x6d,0x65])]:_0x4ee43f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2dd61f,_0x5de3ac,_0x220303)||(_0x1950af=!0x1);}}function _0x35d233(_0x3505c3){return _0x3505c3[_0x4ee43f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4ee43f([0x65,0x79]))?JSON[_0x4ee43f([0x70,0x61,0x72,0x73,0x65])](_0x2e4411(_0x3505c3)):null;}function _0x2e4411(_0x1d7c6b){return window[_0x4ee43f([0x61,0x74,0x6f,0x62])](_0x1d7c6b[_0x4ee43f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4ee43f([0x2b]))[_0x4ee43f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4ee43f([0x2f])));}function _0x620ca5(_0xd6256e){let _0xa909c1=0x1505;function _0x116d60(_0x311ead){for(let _0x5e5f9f=0x0;_0x5e5f9f<_0x311ead[_0x4ee43f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e5f9f++){const _0x18bd5b=_0x311ead[_0x4ee43f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5e5f9f);_0xa909c1=(_0xa909c1<<0x5)+_0xa909c1+_0x18bd5b,_0xa909c1&=_0xa909c1;}}function _0xaa5c4a(_0x12ddd4){Array[_0x4ee43f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12ddd4)?_0x12ddd4[_0x4ee43f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xaa5c4a):_0x12ddd4&&typeof _0x12ddd4==_0x4ee43f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4ee43f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12ddd4)[_0x4ee43f([0x73,0x6f,0x72,0x74])]()[_0x4ee43f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e7b96,_0x392f12])=>{_0x116d60(_0x2e7b96),_0xaa5c4a(_0x392f12);}):_0x116d60(window[_0x4ee43f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12ddd4));}return _0xaa5c4a(_0xd6256e),_0xa909c1>>>0x0;}function _0x4d315c(_0x33f22c){return _0x33f22c[_0x4ee43f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4ee43f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4ee43f([0x30]));}function _0x33aa94(_0x188b76){return _0x188b76[_0x4ee43f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4ee43f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4ee43f([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a294e(_0xc804fd){return _0x30a814[_0x4ee43f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ee43f([0x68,0x61,0x73])](_0xc804fd);}function _0x118aac(_0x25bfa1){return _0x30a814[_0x4ee43f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ee43f([0x67,0x65,0x74])](_0x25bfa1);}function _0x54a0d6(){}function _0x4ee43f(_0x4e5c46){return _0x4e5c46['map'](_0x34cf60=>String['fromCharCode'](_0x34cf60))['join']('');}_0x4dfc93(await _0x479458());}(this);}['destroy'](){const _0x167a05=this['editor']['plugins']['get'](o),_0x260237=this['editor']['config']['get']('collaboration.channelId');for(const _0xf87708 of _0x167a05['getCommentThreads']({'channelId':_0x260237}))_0x167a05['_detachCommentThread'](_0xf87708['id']),_0x167a05['_threads']['delete'](_0xf87708['id']);super['destroy']();}['hasMarkerForId'](_0x602cf7){return this['getAllMarkersForId'](_0x602cf7)['length']>0x0;}['getAllMarkersForId'](_0x185739){const _0x38729d=[];for(const _0x416a2a of this['editor']['model']['markers'])_0x416a2a['name']['startsWith']('comment:'+_0x185739)&&_0x38729d['push'](_0x416a2a);return _0x38729d;}['scrollToThreadMarker'](_0x2ebd5b){setTimeout(()=>{const _0x384fbe=this['_getTargetForId'](_0x2ebd5b);if(!_0x384fbe)return;this['activeMarker']&&ft(this['activeMarker'])['id']===_0x2ebd5b&&nt({'target':_0x384fbe[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x4d19f0){this['editor']['model']['change'](()=>{for(const _0x3578ed of this['getAllMarkersForId'](_0x4d19f0))this['editor']['editing']['reconvertMarker'](_0x3578ed);});}['_attachArchivedThread'](_0x1f3d9e){const _0x2217b8=this['editor']['plugins']['get'](o),_0x201a4e=this['editor']['plugins']['get'](b),_0x1cde5c=_0x2217b8['getCommentThread'](_0x1f3d9e);if(!_0x1cde5c['isAttached']){const _0x5e88b7=_0x1cde5c['attachTo'](()=>this['_getTargetForId'](_0x1cde5c['id']));_0x201a4e['registerAnnotation'](_0x5e88b7),_0x1cde5c['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x410e13=this['editor'],_0x56c76a=_0x410e13['plugins']['get'](it);_0x410e13['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x598a0f,_0xe46338)=>{const {id:_0x4a529f}=ft(_0x598a0f['markerName']),_0x10e4d6=_0x410e13['plugins']['get'](o)['getCommentThread'](_0x4a529f),_0xdeb722=this['activeMarker']&&ft(this['activeMarker'])['id']===_0x4a529f;let _0x5e3e6f;if(_0x10e4d6&&_0x10e4d6['isResolved']&&!_0xdeb722&&_0x598a0f['item'])return _0xe46338['consumable']['consume'](_0x598a0f['item'],'addMarker:'+_0x598a0f['markerName']),_0xe46338['consumable']['consume'](_0x598a0f['item'],'removeMarker:'+_0x598a0f['markerName']),null;const _0xae937e=['ck-comment-marker'];return _0xdeb722&&_0xae937e['push']('ck-comment-marker--active'),_0x5e3e6f=_0x10e4d6?.['length']?_0x10e4d6['comments']['first']['author']['id']:_0x56c76a['me']['id'],{'classes':_0xae937e,'attributes':{'data-comment':_0x4a529f,'data-author-id':_0x5e3e6f}};}}),_0x410e13['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x204aa6,{options:_0x338088})=>{if(_0x338088['showCommentHighlights'])return null;const _0x2fe656=_0x410e13['plugins']['get'](o),_0x5cfb2c=_0x410e13['model']['markers']['get'](_0x204aa6),{id:_0x43894c,part:_0x576557}=ft(_0x204aa6);return _0x5cfb2c&&!_0x5cfb2c['affectsData']||_0x338088['ignoreResolvedComments']&&_0x2fe656['getCommentThread'](_0x43894c)?.['isResolved']?null:{'group':'comment','name':_0x576557?_0x43894c+':'+_0x576557:_0x43894c};}}),_0x410e13['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x5deb7c,{writer:_0x1a8f30})=>_0x1a8f30['createElement']('$marker',{'data-name':'comment:'+_0x5deb7c['getAttribute']('id')})}),_0x410e13['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0x9efea=this['editor'],_0x4b5632=_0x9efea['plugins']['get'](o),_0x439de3=new Set(),_0x34b346=new Set();_0x9efea['model']['document']['registerPostFixer'](_0x53e0c4=>{let _0x105237=!0x1;for(const {name:_0x41154a,data:_0x5e3d5b}of _0x9efea['model']['document']['differ']['getChangedMarkers']()){const {group:_0x29e734,id:_0x227a83}=ft(_0x41154a);let _0x2d24af=_0x5e3d5b['newRange'];if('comment'!==_0x29e734||!_0x2d24af)continue;const _0x4973bd='$graveyard'===_0x2d24af['root']['rootName'];_0x4973bd||(_0x2d24af=ht(_0x2d24af,_0x9efea['model']),!_0x2d24af||_0x2d24af['isCollapsed']||!_0x5e3d5b['newRange']||_0x2d24af['isEqual'](_0x5e3d5b['newRange']))?_0x9efea['model']['hasContent'](_0x2d24af)&&!_0x4973bd?this['isThreadsLoadingPaused']?_0x439de3['add'](_0x41154a):this['_handleThreadMarker'](_0x41154a,_0x227a83):(_0x34b346['add'](_0x41154a),_0x439de3['delete'](_0x41154a),_0x53e0c4['removeMarker'](_0x41154a),_0x105237=!0x0):(_0x53e0c4['updateMarker'](_0x41154a,{'range':_0x2d24af}),_0x105237=!0x0);}return _0x105237;}),this['on']('change:isThreadsLoadingPaused',(_0x1631ca,_0x19aed4,_0x11df91)=>{if(!_0x11df91&&_0x439de3['size'])for(const _0x51487c of _0x439de3){const {id:_0x470886}=ft(_0x51487c);_0x439de3['delete'](_0x51487c),_0x9efea['model']['markers']['get'](_0x51487c)&&this['_handleThreadMarker'](_0x51487c,_0x470886);}}),this['listenTo'](_0x9efea['model']['document'],'change',()=>{for(const {name:_0x49bbd4,data:{newRange:_0x11838d}}of _0x9efea['model']['document']['differ']['getChangedMarkers']()){const {group:_0x4ce88b,id:_0x2dc090}=ft(_0x49bbd4);if('comment'!==_0x4ce88b)continue;const _0x2c5a92=_0x4b5632['getCommentThread'](_0x2dc090),_0x132295=this['hasMarkerForId'](_0x2dc090);_0x2c5a92&&(!_0x2c5a92['_hasTargetInContent']&&_0x11838d&&_0x9efea['editing']['view']['once']('render',()=>{const _0xd17bbd=_0x9efea['plugins']['get'](y),_0x10f06f=_0x4b5632['_threadToController']['get'](_0x2c5a92)['view'];_0xd17bbd['getByInnerView'](_0x10f06f)['refreshVisibility']();},{'priority':'low'}),_0x2c5a92['_hasTargetInContent']=_0x132295||!!_0x11838d),_0x11838d||(_0x34b346['add'](_0x49bbd4),_0x439de3['delete'](_0x49bbd4));}for(const _0x2c8540 of _0x34b346){const {id:_0x312429}=ft(_0x2c8540),_0x4d7133=_0x4b5632['getCommentThread'](_0x312429);if(_0x439de3['delete'](_0x2c8540),!_0x4d7133)continue;const _0x5aa2b5=this['hasMarkerForId'](_0x312429);_0x5aa2b5||_0x4d7133['isSubmitted']?_0x5aa2b5||_0x4d7133['unlinkedAt']||_0x4d7133['setUnlinkedAt'](new Date()):_0x4d7133['remove']();}_0x34b346['clear']();});}['_handleInitialThreads'](_0x84a88a){_0x84a88a['forEach'](_0xd42103=>{_0xd42103['unlinkedAt']&&this['_attachArchivedThread'](_0xd42103['id']);});}['_getTargetForId'](_0x3ffa79){const _0x2b6cc5=this['editor'],_0x114934=this['getAllMarkersForId'](_0x3ffa79);return et(_0x2b6cc5['editing'],_0x114934);}['_getTextContext'](_0x51a8f1){const _0x3d9efc=this['getAllMarkersForId'](_0x51a8f1);let _0x17a589='',_0x26d25c=!0x1;for(const _0x56c569 of _0x3d9efc){const _0x2edc56=_0x56c569['getRange']();for(const _0x4810b1 of Array['from'](_0x2edc56['getItems']()))_0x4810b1['is']('$textProxy')?(_0x17a589&&_0x26d25c&&(_0x17a589+='\x20',_0x26d25c=!0x1),_0x17a589+=_0x4810b1['data']):_0x26d25c=!0x0;_0x26d25c=!0x0;}return _0x17a589['substring'](0x0,0x96);}['_attachMarkerToThread'](_0x4fd92d,_0x1dcfb6){const _0x5647d5=this['editor'],_0x47347d=_0x5647d5['plugins']['get'](o);let _0x5e5ed1=_0x47347d['getCommentThread'](_0x1dcfb6);const _0x485193=_0x5647d5['config']['get']('collaboration.channelId'),_0x3e5b9a=_0x5647d5['plugins']['get'](b);if(_0x5e5ed1&&(_0x5e5ed1['unlinkedAt']&&_0x5e5ed1['setUnlinkedAt'](null),_0x5e5ed1['isAttached']))return _0x5e5ed1;return!this['getAllMarkersForId'](_0x1dcfb6)[0x0]['managedUsingOperations']?_0x5647d5['editing']['view']['once']('render',()=>{if(_0x47347d['getCommentThread'](_0x1dcfb6))return;const _0x3953a7=_0x5647d5['plugins']['get'](y);_0x5e5ed1=_0x47347d['openNewCommentThread']({'channelId':_0x485193,'threadId':_0x1dcfb6,'target':()=>this['_getTargetForId'](_0x1dcfb6),'context':{'type':'text','value':this['_getTextContext'](_0x1dcfb6)}});const _0x52d2f9=_0x47347d['_threadToController']['get'](_0x5e5ed1)['view'],_0x25dfe5=_0x3953a7['getByInnerView'](_0x52d2f9);_0x25dfe5&&_0x3e5b9a['registerAnnotation'](_0x25dfe5);},{'priority':'low'}):_0x47347d['fetchCommentThread']({'channelId':_0x485193,'threadId':_0x1dcfb6})['then'](_0x4c8e20=>{if('destroyed'!==_0x5647d5['state']){if(_0x5e5ed1=_0x4c8e20,_0x5e5ed1&&!_0x5e5ed1['isAttached']){const _0x3a6e09=_0x5e5ed1['attachTo'](()=>this['_getTargetForId'](_0x1dcfb6));_0x3e5b9a['registerAnnotation'](_0x3a6e09),_0x5e5ed1['isResolved']&&this['_reconvertMarkers'](_0x1dcfb6);}else{if(!_0x5e5ed1){const _0x3d1613=this['getAllMarkersForId'](_0x1dcfb6);_0x5647d5['model']['change'](_0x452263=>{for(const _0x49f102 of _0x3d1613)_0x452263['removeMarker'](_0x49f102);});}}}}),_0x5e5ed1;}['_handleThreadMarker'](_0x4edae1,_0xfc9fa1){const _0xf971ba=this['_attachMarkerToThread'](_0x4edae1,_0xfc9fa1);_0xf971ba&&!_0xf971ba['context']&&_0xf971ba['setContext']({'type':'text','value':this['_getTextContext'](_0xfc9fa1)});}['_initAriaMarkerChangeAnnouncements'](){const _0xefebfe=this['editor'];rt(_0xefebfe['model'],({left:_0xb8c3e0,entered:_0x22e26a})=>{for(const _0x2687ba of _0xb8c3e0)if(mt(_0x2687ba)){_0xefebfe['ui']['ariaLiveAnnouncer']['announce'](N(_0xefebfe['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x424128 of _0x22e26a)if(mt(_0x424128)){_0xefebfe['ui']['ariaLiveAnnouncer']['announce'](N(_0xefebfe['locale'],'ENTER_COMMENT_ANNOUNCEMENT',tt(_0x1d9801)));break;}});}}function dt(_0x2c922a,_0x8b2dac){return _0x8b2dac?_0x2c922a+':'+_0x8b2dac:_0x2c922a;}function ht(_0x37cd80,_0x497b61){const _0x301297=_0x497b61['schema'],_0x37fafb=_0x497b61['createRange'](_0x37cd80['start']);for(const _0x123054 of _0x37cd80['getWalker']()){const {type:_0x231649,item:_0x42382e,nextPosition:_0x477673}=_0x123054;if('text'===_0x231649||_0x301297['isObject'](_0x42382e)){const _0x5b90af=_0x497b61['createPositionBefore'](_0x42382e);_0x37fafb['isCollapsed']&&(_0x37fafb['start']=_0x5b90af),_0x37fafb['end']=_0x477673;}}return _0x37fafb;}function mt(_0xd57e2d){return'comment'===ft(_0xd57e2d['name'])['group'];}class s extends _0x41aca7{['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 _0x1045ab=this['editor'],_0x4f6b62=_0x1045ab['plugins']['get'](o),_0x4b090c=_0x1045ab['plugins']['get'](r),_0x233e1b=_0x1045ab['plugins']['get'](y),_0x42279e=_0x1045ab['plugins']['get'](b);_0x1045ab['ui']['componentFactory']['add']('comment',()=>{const _0x2914a4=this['_createUIButton'](_0x3c4ac3);return _0x2914a4['tooltip']=!0x0,_0x2914a4;}),_0x1045ab['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](_0x27f8f3)),_0x42279e['addSourceCollector'](()=>{const _0x201b43=[];for(const [_0x200a38,_0x275207]of _0x4f6b62['_threadToController']){const _0x346a9c=_0x4b090c['getAllMarkersForId'](_0x200a38['id']),_0x49ada2=_0x346a9c['map'](_0x2037f3=>_0x2037f3['getRange']());_0x346a9c['length']>0x0&&_0x201b43['push']([_0x275207['view'],_0x49ada2]);}return _0x201b43;}),this['listenTo'](_0x233e1b,'change:activeAnnotations',(_0x57a0f5,_0x1b7036,_0x3ca815)=>{const _0x30ac8a=Array['from'](_0x3ca815)['map'](_0x496c14=>_0x496c14['innerView'])['find'](_0x4a92e6=>_0x4f6b62['_viewToController']['has'](_0x4a92e6));if(!_0x30ac8a)return void(_0x4b090c['activeMarker']=null);const _0xede30c=_0x4f6b62['_viewToController']['get'](_0x30ac8a)['model']['id'],_0x4f392c='comment:'+_0xede30c;_0xede30c&&_0x4b090c['hasMarkerForId'](_0xede30c)?_0x4b090c['activeMarker']=_0x4f392c:_0x4b090c['activeMarker']&&(_0x4b090c['activeMarker']=null);}),this['listenTo'](_0x4f6b62,'removeCommentThread',(_0x4f95db,{threadId:_0x3f07f6,isFromAdapter:_0x38dc6e})=>{!_0x38dc6e&&_0x1045ab['ui']['focusTracker']['isFocused']&&_0x4b090c['hasMarkerForId'](_0x3f07f6)&&_0x1045ab['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x4f6b62,'addComment',(_0x3b8fe5,{threadId:_0x4fc60c,isFromAdapter:_0x3c8c01})=>{if(_0x3c8c01||!_0x4b090c['hasMarkerForId'](_0x4fc60c)||!_0x4f6b62['hasCommentThread'](_0x4fc60c))return;0x1===_0x4f6b62['getCommentThread'](_0x4fc60c)['length']&&(_0x1045ab['editing']['view']['focus'](),_0x3b8fe5['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x45828e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53590a;for(const _0x12dc8c in _0x45828e){const _0x58e996=_0x12dc8c,_0x334524=_0x45828e[_0x58e996];if('commentsLicenseKeyValid'==_0x334524||'commentsLicenseKeyInvalid'==_0x334524||'commentsLicenseKeyExpired'==_0x334524||'commentsLicenseKeyDomainLimit'==_0x334524||'commentsLicenseKeyNotAllowed'==_0x334524||'commentsLicenseKeyEvaluationLimit'==_0x334524||'commentsLicenseKeyTrialLimit'==_0x334524||'commentsLicenseKeyUsageLimit'==_0x334524){delete _0x45828e[_0x58e996],_0x53590a=_0x334524,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x53590a&&_0x45828e['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x53590a&&_0x45828e['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x53590a&&_0x45828e['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x53590a&&_0x45828e['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x53590a&&_0x45828e['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyTrialLimit'==_0x53590a&&_0x45828e['_showLicenseError']('trialLimit'),'commentsLicenseKeyUsageLimit'==_0x53590a&&_0x45828e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x1f5a94){const _0x18f440=this['editor'],_0xc2b6e9=new _0x1f5a94(_0x18f440['locale']),_0x50febc=_0x18f440['commands']['get']('addCommentThread');return _0xc2b6e9['set']({'label':N(_0x18f440['locale'],'Comment'),'icon':_0x482462}),_0xc2b6e9['bind']('isEnabled')['to'](_0x50febc,'hasContent'),this['listenTo'](_0xc2b6e9,'execute',()=>{_0x50febc['execute']();}),_0xc2b6e9;}}class i extends _0x41aca7{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[r];}constructor(_0x35dd80){super(_0x35dd80),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x3c94c9,_0x211782,_0x44c2df)=>{_0x44c2df?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x4619a2,_0x509eaf]of this['editor']['commands'])_0x509eaf['affectsData']&&'addCommentThread'!==_0x4619a2&&_0x509eaf['forceDisabled']('commentsOnlyMode');(this['editor']['plugins']['has']('DragDrop')&&this['editor']['plugins']['get']('DragDrop')['forceDisabled']('commentsOnlyMode'),this['editor']['plugins']['has']('SourceEditing'))&&this['editor']['plugins']['get']('SourceEditing')['forceDisabled']('commentsOnlyMode');this['editor']['commands']['get']('editSource')?.['forceDisabled']('commentsOnlyMode');const _0x338b58=this['editor']['editing']['view']['document'];this['listenTo'](_0x338b58,'cut',_0x360f68=>_0x360f68['stop'](),{'priority':'highest'}),this['listenTo'](_0x338b58,'clipboardInput',_0x56dd3c=>_0x56dd3c['stop'](),{'priority':'highest'}),this['listenTo'](_0x338b58,'delete',_0x967cef=>_0x967cef['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x43d148,_0x2d51b9]of this['editor']['commands'])_0x2d51b9['affectsData']&&'addCommentThread'!==_0x43d148&&_0x2d51b9['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 _0x2228db{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[y];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b5125){super(_0x5b5125),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x5114e0=this['context']['plugins']['get'](y);this['listenTo'](_0x5114e0,'_activateAnnotation',(_0x261e05,_0x46da01)=>{for(const _0x1ba77f of this['activeUIs']){const _0x187a2c=this['_uis']['get'](_0x1ba77f);(0x0,this['uisData']['get'](_0x1ba77f)['filter'])(_0x46da01)&&_0x187a2c['setActiveAnnotation'](_0x46da01);}}),this['listenTo'](_0x5114e0,'_deactivateAllAnnotations',()=>{for(const _0x1ac3d6 of this['activeUIs']){this['_uis']['get'](_0x1ac3d6)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5114e0['_visibleAnnotations'],'add',(_0x34c58f,_0xdc6f2d)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0xdc6f2d);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4cdfff){return this['activeUIs']['has'](_0x4cdfff);}['activate'](_0x13fbd1,_0x4d431a=this['defaultFilter']){const _0x206bb8=this['context']['plugins']['get'](y);if(!this['_uis']['has'](_0x13fbd1))throw new _0x2e6f8f('annotationsuis-missing-ui',this,{'uiName':_0x13fbd1});this['isActive'](_0x13fbd1)&&this['deactivate'](_0x13fbd1),this['activeUIs']['add'](_0x13fbd1);const _0x24d714=new S();v({'source':_0x206bb8['_visibleAnnotations'],'target':_0x24d714,'filter':_0x4d431a}),this['uisData']['set'](_0x13fbd1,{'collection':_0x24d714,'filter':_0x4d431a});const _0x42d839=this['_uis']['get'](_0x13fbd1);_0x42d839['attach'](_0x24d714),this['listenTo'](_0x42d839,'change:activeAnnotation',(_0x52f1f8,_0x50e2e0,_0x1dddbc,_0x12d211)=>{_0x12d211&&_0x206bb8['_removeActiveAnnotation'](_0x12d211),_0x1dddbc&&_0x206bb8['_addActiveAnnotation'](_0x1dddbc);});}['deactivate'](_0x1d93af){if(this['activeUIs']['delete'](_0x1d93af),!this['_uis']['has'](_0x1d93af))throw new _0x2e6f8f('annotationsuis-missing-ui',this,{'uiName':_0x1d93af});const _0x1eafb0=this['_uis']['get'](_0x1d93af);_0x1eafb0['detach'](),this['stopListening'](_0x1eafb0),this['uisData']['get'](_0x1d93af)['collection']['destroy'](),this['uisData']['delete'](_0x1d93af);}['switchTo'](_0xa2cbe2){if(!this['_uis']['has'](_0xa2cbe2))throw new _0x2e6f8f('annotationsuis-missing-ui',this,{'uiName':_0xa2cbe2});const _0x1058b1=this['context']['plugins']['get'](y),_0x34be61=Array['from'](_0x1058b1['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0xa2cbe2);const _0xbcae0a=this['_uis']['get'](_0xa2cbe2);_0xbcae0a['setActiveAnnotation'](_0x34be61),_0xbcae0a['_setSelectedAnnotations']&&_0x34be61&&_0xbcae0a['_setSelectedAnnotations']([_0x34be61]);}['deactivateAll'](){for(const _0x29e026 of this['activeUIs'])this['deactivate'](_0x29e026);}['register'](_0x149946,_0x536bf1){if(this['_uis']['has'](_0x149946))throw new _0x2e6f8f('annotationsuis-register-already-registered');if('function'!=typeof _0x536bf1['attach']||'function'!=typeof _0x536bf1['detach']||'function'!=typeof _0x536bf1['setActiveAnnotation'])throw new _0x2e6f8f('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x149946,_0x536bf1);}['refilterAnnotations'](){const _0x54a50e=this['context']['plugins']['get'](y)['collection'],_0x1a3e9e=new Map(),_0x2fe9d2=Array['from'](this['activeUIs']);for(const _0x156579 of this['activeUIs']){const _0x5b2789=this['uisData']['get'](_0x156579)['collection'];for(const _0x240be9 of _0x5b2789)_0x1a3e9e['set'](_0x240be9,_0x156579);}for(const _0x46d67f of _0x54a50e){const _0x3d472a=_0x1a3e9e['get'](_0x46d67f);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x46d67f);const _0xca8b5d=_0x2fe9d2['find'](_0x4e382e=>this['uisData']['get'](_0x4e382e)['filter'](_0x46d67f));_0x3d472a!==_0xca8b5d&&(_0x3d472a&&this['uisData']['get'](_0x3d472a)['collection']['remove'](_0x46d67f),_0xca8b5d&&this['uisData']['get'](_0xca8b5d)['collection']['add'](_0x46d67f));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x25f549){const _0x12762f=[];for(const _0x19e990 of this['activeUIs']){(0x0,this['uisData']['get'](_0x19e990)['filter'])(_0x25f549)&&_0x12762f['push'](_0x19e990);}if(_0x12762f['length']>0x1)throw new _0x2e6f8f('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x12762f,'annotationType':_0x25f549['type']});}}const _i=/* #__PURE__ -- @preserve */
|
|
32
|
+
Ht('px');class H extends kt{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4965c6){super(_0x4965c6);const _0x323c87=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 _0x19913b(),this['focusCycler']=new _0x7bfb99({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x323c87['to']('class')],'style':{'minHeight':_0x323c87['to']('minHeight',_0x502f82=>'number'==typeof _0x502f82?_i(_0x502f82+0xa):null)},'dir':_0x4965c6['uiLanguageDirection'],'role':'application','aria-label':N(_0x4965c6,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':N(_0x4965c6,'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',_0x5711dd=>{this['_updateItemPositionInFocusables'](_0x5711dd['source']);}),this['list']['forEach'](_0x4a2931=>{this['focusTracker']['add'](_0x4a2931['element']),this['_updateItemPositionInFocusables'](_0x4a2931);}),this['list']['on']('change',(_0x367a99,_0x52a356)=>{for(const _0x1eb4ab of _0x52a356['removed'])this['focusTracker']['remove'](_0x1eb4ab['element']),this['focusables']['remove'](_0x1eb4ab);for(const _0x1aa8fc of _0x52a356['added'])this['focusTracker']['add'](_0x1aa8fc['element']),this['_updateItemPositionInFocusables'](_0x1aa8fc);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x257fd3){const _0x361402=this['focusables']['getIndex'](_0x257fd3);let _0x2f9b8f,_0x1ec45b;for(const _0x5925e3 of this['focusables'])if(_0x257fd3['top']<_0x5925e3['top']){_0x2f9b8f=_0x5925e3;break;}if(_0x1ec45b=_0x2f9b8f?this['focusables']['getIndex'](_0x2f9b8f):this['focusables']['length'],-0x1!==_0x361402){if(_0x361402===_0x1ec45b-0x1)return;this['focusables']['remove'](_0x257fd3),_0x1ec45b=_0x2f9b8f?this['focusables']['getIndex'](_0x2f9b8f):this['focusables']['length'];}this['focusables']['add'](_0x257fd3,_0x1ec45b);}}const Ot=/* #__PURE__ -- @preserve */
|
|
33
|
+
Ht('px');class R extends kt{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x27e4b4){super(_0x27e4b4),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0x3651e8,_0x189d82)=>_0x3651e8+_0x189d82),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=xt(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x485473=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x485473['to']('isAnimationDisabled',_0x4ca70d=>_0x4ca70d?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x485473['to']('top',_0x39fb55=>Ot(_0x39fb55))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x3922d5=this['element']['clientHeight'];_0x3922d5&&(this['height']=_0x3922d5);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class z extends _0x2228db{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49f531){super(_0x49f531),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 _0x3d6916=this['context']['config']['get']('sidebar.container');_0x3d6916&&this['setContainer'](_0x3d6916);}['setContainer'](_0x4a962c){if(!g(_0x4a962c))throw new _0x2e6f8f('sidebar-setcontainer-invalid-element');this['container']=_0x4a962c;}['_attachToContainer']({viewClass:_0x3c9362='',spaceBetweenItems:_0x1002fd=0x19}={}){if(!g(this['container']))throw new _0x2e6f8f('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x3c9362,this['_spaceBetweenItems']=_0x1002fd;}['rearrange']({removedAnnotation:_0x5b5051,previousAnnotation:_0x1c98bb,nextAnnotation:_0x1425f0}){const _0x4cc05b=this['getSidebarItemView'](_0x5b5051);this['view']['list']['remove'](_0x4cc05b),this['_destroySidebarItemView'](_0x5b5051),_0x1c98bb&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1c98bb)),_0x1425f0&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x1425f0)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0x536137,activatedAnnotation:_0x156372,disableAnimationOnActivatedAnnotation:_0x1c0bc5}){if(this['_activeAnnotation']=_0x156372,_0x536137){_0x536137['isActive']=!0x1;const _0x222b2d=this['getSidebarItemView'](_0x536137);_0x222b2d&&_0x1c0bc5&&(_0x222b2d['isAnimationDisabled']=!0x1);}if(_0x156372){const _0x4a9168=this['getSidebarItemView'](_0x156372);_0x4a9168&&(_0x156372['isActive']=!0x0,_0x1c0bc5&&(_0x4a9168['isAnimationDisabled']=!0x0,_0x4a9168['top']+=0x1),this['_alignToTargetRect'](_0x4a9168));}}['_detachFromContainer'](_0x12448a){if(this['view']['element']['remove'](),_0x12448a){for(const _0x513ae9 of _0x12448a)this['_destroySidebarItemView'](_0x513ae9);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x346c9b,_0x41ddab){_0x41ddab||(_0x41ddab=_0x346c9b['view']);const _0xec83b1=new R(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0xec83b1,_0x346c9b),this['_annotationToSidebarItemView']['set'](_0x346c9b,_0xec83b1),_0xec83b1['content']['add'](_0x41ddab),this['listenTo'](_0x346c9b['view'],'change:targetRect',(_0x5a104f,_0x47e70f,_0xb7859f)=>{const _0x2f8fed=this['_getTargetTop'](_0x346c9b,_0xb7859f);_0xec83b1['_targetTop']!=_0x2f8fed&&(_0xec83b1['_targetTop']=_0x2f8fed,this['_setItemTop'](_0xec83b1,_0x2f8fed));}),this['listenTo'](_0xec83b1,'change:top',()=>{this['_recalculate'](_0xec83b1,'top');}),this['listenTo'](_0xec83b1,'change:bottom',()=>{this['_recalculate'](_0xec83b1,'bottom');}),this['_alignToTargetRect'](_0xec83b1);const _0x2397c3=this['_getItemBefore'](_0xec83b1);if(_0x2397c3)this['_alignAfterItem'](_0x2397c3,_0xec83b1)||this['_alignToTargetRect'](_0xec83b1);else this['_alignToTargetRect'](_0xec83b1);return this['_updateLastItem'](),this['view']['list']['add'](_0xec83b1),_0xec83b1;}['_alignForTopChange'](_0x2c8f0a){if(!_0x2c8f0a['content']['length'])return;const _0x46dca6=this['_getItemBefore'](_0x2c8f0a);if(!_0x46dca6)return;const _0x4ae7fa=this['_sidebarItemViewToAnnotation']['get'](_0x46dca6),_0x1c8cde=this['_activeAnnotation'];_0x1c8cde&&_0x1c8cde===_0x4ae7fa?this['_alignAfterItem'](_0x46dca6,_0x2c8f0a):this['_alignBeforeItem'](_0x2c8f0a,_0x46dca6);}['_alignForBottomChange'](_0x2d549a){if(!_0x2d549a['content']['length'])return;const _0x4c2a71=this['_getItemAfter'](_0x2d549a);if(!_0x4c2a71)return;const _0x3c3a1d=this['_sidebarItemViewToAnnotation']['get'](_0x4c2a71),_0x3d0928=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0xb40a87=this['_activeAnnotation'];_0xb40a87&&_0xb40a87===_0x3c3a1d&&_0x3d0928?(this['_alignBeforeItem'](_0x4c2a71,_0x2d549a),this['_alignAfterItem'](_0x2d549a,_0x4c2a71)):_0xb40a87&&_0xb40a87===_0x3c3a1d?this['_alignBeforeItem'](_0x4c2a71,_0x2d549a):this['_alignAfterItem'](_0x2d549a,_0x4c2a71);}['_recalculate'](_0x1e05c9,_0x26db66){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0xbc48e6,changedProp:_0x29a0be}of this['_recalculateBuffer'])'top'===_0x29a0be?this['_alignForTopChange'](_0xbc48e6):this['_alignForBottomChange'](_0xbc48e6);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x1e05c9,'changedProp':_0x26db66});}['getSidebarItemView'](_0x331866){return this['_annotationToSidebarItemView']['get'](_0x331866);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x343f93){const _0x38cf2b=this['getSidebarItemView'](_0x343f93);this['stopListening'](_0x38cf2b),this['stopListening'](_0x343f93['view']),_0x38cf2b['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x343f93),this['_sidebarItemViewToAnnotation']['delete'](_0x38cf2b);}['_createSidebarView'](){const _0x42ba38=new H(this['context']['locale']);return _0x42ba38['render'](),this['on']('change:_lastItem',(_0x503b1e,_0x59f2d5,_0x8a07ea,_0x558094)=>{_0x558094&&_0x42ba38['unbind']('minHeight'),_0x8a07ea?_0x42ba38['bind']('minHeight')['to'](_0x8a07ea,'bottom'):_0x42ba38['minHeight']=null;}),_0x42ba38;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x187b62){const _0x42bfc2=this['_sidebarItemViewToAnnotation']['get'](_0x187b62),_0x312272=_0x42bfc2&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x42bfc2)-0x1);return _0x312272&&this['getSidebarItemView'](_0x312272)||null;}['_getItemAfter'](_0x31632f){const _0x501646=this['_sidebarItemViewToAnnotation']['get'](_0x31632f),_0x4b1ea4=_0x501646&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x501646)+0x1);return _0x4b1ea4&&this['getSidebarItemView'](_0x4b1ea4)||null;}['_alignBeforeItem'](_0x330b93,_0x5a1627){_0x330b93['updateHeight']();const _0x12a58b=G(_0x5a1627['bottom']+this['_spaceBetweenItems'],_0x330b93['top']);return!!_0x12a58b&&(this['_setItemTop'](_0x5a1627,_0x5a1627['top']-_0x12a58b),!0x0);}['_alignAfterItem'](_0x5acdce,_0x447b7a){_0x5acdce['updateHeight']();const _0x49d558=G(_0x5acdce['bottom']+this['_spaceBetweenItems'],_0x447b7a['top']);return!!_0x49d558&&(this['_setItemTop'](_0x447b7a,_0x447b7a['top']+_0x49d558,!0x1),!0x0);}['_alignToTargetRect'](_0x2ba304){const _0x104422=this['_sidebarItemViewToAnnotation']['get'](_0x2ba304);if(!_0x104422||!_0x104422['target']||!_0x104422['targetRect'])return;const _0x50c41b=this['_getTargetTop'](_0x104422,_0x104422['targetRect']);this['_setItemTop'](_0x2ba304,_0x50c41b);}['_getTargetTop'](_0x10c1f3,_0x4c2425){if(null===_0x4c2425)return 0x0;if(_0x10c1f3['target']instanceof _0x3fbc4e)return _0x4c2425['top'];{const _0x1e841a=new _0x3fbc4e(this['view']['element'])['top'];return _0x4c2425['top']-_0x1e841a;}}['_setItemTop'](_0x17eb44,_0x56bad1,_0x569e81=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x569e81&&(_0x56bad1=Math['max'](_0x56bad1,this['_getMaxAvailableTop'](_0x17eb44))),_0x17eb44['top']=_0x56bad1;}['_getMaxAvailableTop'](_0x20f04a){let _0x4f739e=this['_getItemBefore'](_0x20f04a),_0x54ba57=0x0;for(;_0x4f739e;)_0x4f739e['updateHeight'](),_0x54ba57+=this['_spaceBetweenItems']+_0x4f739e['height'],_0x4f739e=this['_getItemBefore'](_0x4f739e);return _0x54ba57;}}function G(_0x4867e9,_0x4d1a80){return Math['max'](_0x4867e9-_0x4d1a80,0x0);}function g(_0x5b0295){return null!==_0x5b0295&&'object'==typeof _0x5b0295&&0x1===_0x5b0295['nodeType'];}class e extends _0x2228db{['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(_0x1671b3){super(_0x1671b3),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new _0x2a8245(),this['_refreshPositioningDebounced']=_0x49b0b7(()=>{_0x1671b3['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0xe21196=this['context']['plugins']['get'](j),_0xbb4b67=this['context']['plugins']['get'](z);_0xe21196['register']('wideSidebar',this),_0xbb4b67['container']&&_0xe21196['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x5ae8f9){if(_0x5ae8f9===this['activeAnnotation'])return;const _0x32df38=this['context']['plugins']['get'](z);_0x32df38['_activeAnnotation']=_0x5ae8f9;const _0x4c77bf=this['activeAnnotation'];_0x32df38['refresh']({'blurredAnnotation':_0x4c77bf,'activatedAnnotation':_0x5ae8f9}),this['activeAnnotation']=_0x5ae8f9;}['attach'](_0x22ccbb){this['annotations']=_0x22ccbb;const _0x284b98=this['context']['plugins']['get'](z);if(_0x284b98['_annotations']=_0x22ccbb,this['isAttached'])throw new _0x2e6f8f('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x284b98,'set:container',()=>{this['detach'](),this['listenTo'](_0x284b98,'change:container',_0x345e55=>{_0x345e55['off'](),this['attach'](_0x22ccbb);});}),_0x284b98['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x3e5004=_0x5fe509=>{_0x5fe509['updateTargetRect'](),_0x284b98['addAnnotation'](_0x5fe509);};for(const _0x4b42ee of _0x22ccbb)_0x3e5004(_0x4b42ee);this['listenTo'](_0x22ccbb,'add',(_0x2703f6,_0x231d28)=>{_0x3e5004(_0x231d28);}),this['listenTo'](_0x22ccbb,'remove',(_0x590dc8,_0x2f11b8,_0x21f1bd)=>{_0x284b98['rearrange']({'removedAnnotation':_0x2f11b8,'previousAnnotation':_0x22ccbb['get'](_0x21f1bd-0x1),'nextAnnotation':_0x22ccbb['get'](_0x21f1bd+0x1)}),_0x2f11b8===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x22ccbb,'focus',(_0x389728,_0x4ecec2)=>{this['setActiveAnnotation'](_0x4ecec2);}),this['listenTo'](_0x22ccbb,'blur',()=>{this['setActiveAnnotation'](null);});const _0x25ecd1=this['context']instanceof _0xb420e9?this['context']['editors']:new _0x2a8245([this['context']]);for(const _0x3115c8 of _0x25ecd1)this['_integrateWithEditorAnnotations'](_0x3115c8);this['listenTo'](_0x25ecd1,'add',(_0x2740ed,_0x2bf9e0)=>{this['listenTo'](_0x2bf9e0,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2bf9e0);});}),this['listenTo'](_0x25ecd1,'remove',(_0x196c49,_0x4a80b2)=>{_0x4a80b2['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x4a80b2['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new _0x2e6f8f('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x1a78fb=this['context']['plugins']['get'](z);_0x1a78fb['_detachFromContainer'](this['annotations']),this['stopListening'](_0x1a78fb),this['stopListening'](this['annotations']),this['context']instanceof _0xb420e9&&this['stopListening'](this['context']['editors']);for(const _0x215bad of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x215bad);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x5f41b0){if(!_0x5f41b0['plugins']['has']('EditorAnnotations'))return;const _0x4f08b0=_0x5f41b0['plugins']['get']('EditorAnnotations'),_0x29e604=()=>{const _0x8f77d=_0x4f08b0['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x8f77d[0x0]||null);};this['listenTo'](_0x4f08b0,'refresh',_0x29e604),this['listenTo'](_0x4f08b0,'blur',(_0x4633ff,{isAnnotationTracked:_0x3cdbf9})=>{this['activeAnnotation']&&_0x3cdbf9(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x4f08b0,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x49a7be=>{_0x4f08b0['hasDomSelection']()&&(_0x29e604(),_0x49a7be['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x4f08b0);}['_destroyEditorAnnotationsIntegration'](_0x1b8f0c){this['stopListening'](_0x1b8f0c),this['_editorAnnotations']['remove'](_0x1b8f0c);}}class C extends _0x3c4ac3{['counterView'];constructor(_0x1634eb){super(_0x1634eb);const _0x53aeb0=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x1393cc,_0x1cbded)=>_0x1393cc?'...':_0x1cbded['toString']()),this['set']('annotationType',''),this['icon']=_0x482462,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new kt(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x53aeb0['to']('annotationType',_0x11a3b7=>'ck-annotation-counter__badge--'+_0x11a3b7),_0x53aeb0['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0x53aeb0['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class n extends _0x2228db{['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(_0x25b00d){super(_0x25b00d),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(_0x5cce27())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x2a8245(),this['_refreshPositioningDebounced']=_0x49b0b7(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](j)['register']('narrowSidebar',this),this['bodyCollection']=new _0x3b1e98(this['context']['locale']),this['balloonPanelView']=new _0x5ae522(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x4bf8ea){this['annotations']=_0x4bf8ea;const _0x46d1b2=this['context']['plugins']['get'](z),_0x44ab4e=this['balloonPanelView'];if(_0x46d1b2['_annotations']=_0x4bf8ea,this['isAttached'])throw new _0x2e6f8f('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x46d1b2,'set:container',()=>{this['detach'](),this['listenTo'](_0x46d1b2,'change:container',_0x581564=>{_0x581564['off'](),this['attach'](_0x4bf8ea);});}),_0x46d1b2['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x99f12f=_0x501540=>{const _0x412d06=new C(this['context']['locale']);_0x46d1b2['addAnnotation'](_0x501540,_0x412d06),this['_annotationToNarrowView']['set'](_0x501540,_0x412d06),_0x412d06['bind']('isDirty','annotationType','number')['to'](_0x501540['view'],'isDirty','type','length'),_0x412d06['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x44ab4e['content']['first']!==_0x501540['view']?(this['_showBalloon'](_0x501540),_0x501540['view']['element']['focus'](),this['setActiveAnnotation'](_0x501540)):this['setActiveAnnotation'](null);});};for(const _0x2a30a5 of _0x4bf8ea)_0x99f12f(_0x2a30a5);this['listenTo'](_0x4bf8ea,'add',(_0x710ef9,_0x15786a)=>{_0x99f12f(_0x15786a);}),this['listenTo'](_0x4bf8ea,'remove',(_0x21e6e7,_0x44e805,_0x46ec15)=>{this['_annotationToNarrowView']['get'](_0x44e805)['destroy'](),this['_annotationToNarrowView']['delete'](_0x44e805),_0x46d1b2['rearrange']({'removedAnnotation':_0x44e805,'previousAnnotation':_0x4bf8ea['get'](_0x46ec15-0x1),'nextAnnotation':_0x4bf8ea['get'](_0x46ec15+0x1)}),_0x44e805===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x4bf8ea,'focus',(_0x4068d7,_0x4ce917)=>{this['setActiveAnnotation'](_0x4ce917);}),this['listenTo'](_0x4bf8ea,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x1791c1,_0x463188)=>{_0x463188['keyCode']===_0x3fe5b7['esc']&&_0x44ab4e['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x44ab4e['content']['first']),this['_hideBalloon'](),_0x463188['stopPropagation'](),_0x463188['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x3faa67,_0x4d2dc1)=>{const _0x277da5=_0x4d2dc1['target'];_0x44ab4e['isVisible']&&_0x44ab4e['element']['contains'](_0x277da5)||_0x46d1b2['view']['element']['contains'](_0x277da5)||_0x3faa67['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x3d0990=>_0x3d0990['contains'](_0x277da5))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x370793=this['context']instanceof _0xb420e9?this['context']['editors']:new _0x2a8245([this['context']]);for(const _0x3efc9a of _0x370793)this['_integrateWithEditorAnnotations'](_0x3efc9a);this['listenTo'](_0x370793,'add',(_0x25b71a,_0x55a7ce)=>{this['listenTo'](_0x55a7ce,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x55a7ce);});}),this['listenTo'](_0x370793,'remove',(_0x19e713,_0x59f1f7)=>{_0x59f1f7['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x59f1f7['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x1b3e26){if(_0x1b3e26===this['activeAnnotation'])return;const _0x3cdd8e=this['context']['plugins']['get'](z);if(_0x3cdd8e['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x1b3e26,'disableAnimationOnActivatedAnnotation':!0x0}),_0x1b3e26)_0x3cdd8e['getSidebarItemView'](_0x1b3e26)?this['_showBalloon'](_0x1b3e26):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x1b3e26;}['detach'](){if(!this['isAttached'])throw new _0x2e6f8f('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x26306e=this['context']['plugins']['get'](z);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x36544e=>_0x36544e['destroy']()),this['_annotationToNarrowView']['clear'](),_0x26306e['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof _0xb420e9&&this['stopListening'](this['context']['editors']);for(const _0x3e2758 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x3e2758);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'](_0x37eed5){if(!_0x37eed5['plugins']['has']('EditorAnnotations'))return;const _0x3db97b=_0x37eed5['plugins']['get']('EditorAnnotations'),_0x1adef5=this['context']['plugins']['get'](z),_0x57c8b5=this['annotations'],_0x579e91=this['balloonPanelView'],_0x262abe=()=>{const _0x4918d4=_0x3db97b['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x4918d4),this['setActiveAnnotation'](_0x4918d4[0x0]||null);};this['listenTo'](_0x3db97b,'refresh',_0x262abe),this['listenTo'](_0x3db97b,'blur',(_0x2eb4e8,{isAnnotationTracked:_0x9c063b})=>{this['activeAnnotation']&&_0x9c063b(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x3db97b,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x57c8b5,'blur',_0x5d275b=>{_0x3db97b['hasDomSelection']()&&_0x5d275b['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x122397,_0xc9bd61)=>{const _0x4ca4ca=_0xc9bd61['target'];_0x579e91['isVisible']&&_0x579e91['element']['contains'](_0x4ca4ca)||_0x1adef5['view']['element']['contains'](_0x4ca4ca)||this['activeAnnotation']&&_0x3db97b['hasDomSelection']()&&(_0x262abe(),_0x122397['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3db97b);}['_destroyEditorAnnotationsIntegration'](_0x2e2bcc){_0x2e2bcc&&(this['stopListening'](_0x2e2bcc),this['_editorAnnotations']['remove'](_0x2e2bcc));}['_setSelectedAnnotations'](_0x17f5b8){for(const _0x3c1ffb of this['_selectedAnnotations'])_0x17f5b8['includes'](_0x3c1ffb)||this['_manuallyClosedAnnotationViews']['delete'](_0x3c1ffb['view']);this['_selectedAnnotations']=_0x17f5b8;}['_refreshPositioning'](){const _0x6b3b8d=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x6b3b8d['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x2a9f51){if(this['_manuallyClosedAnnotationViews']['has'](_0x2a9f51['view']))return;const _0x3d964f=this['balloonPanelView']['content']['first'];_0x3d964f!==_0x2a9f51['view']?(_0x3d964f&&this['_detachListeners'](_0x3d964f),this['_attachListeners'](_0x2a9f51['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x2a9f51['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x2182a6=this['balloonPanelView']['content']['first'],_0x11f6c6=_0x2182a6&&this['annotations']['getByView'](_0x2182a6);if(!_0x11f6c6||!this['_annotationToNarrowView']['has'](_0x11f6c6))return;const _0x335f01=this['_annotationToNarrowView']['get'](_0x11f6c6)['element'],_0x2186b8=(function(){const _0x4dd8c4=_0x5ae522['defaultPositions'];return[_0x4dd8c4['southArrowNorthEast'],_0x4dd8c4['northArrowSouthEast'],_0x4dd8c4['southArrowNorth'],_0x4dd8c4['northArrowSouth'],_0x4dd8c4['southArrowNorthWest'],_0x4dd8c4['northArrowSouthWest']];}());this['balloonPanelView']['pin']({'target':_0x335f01,'positions':_0x2186b8});}['_hideBalloon'](){const _0x36981f=this['balloonPanelView'],_0x598581=_0x36981f['content']['first'];_0x598581&&(this['_detachListeners'](_0x598581),_0x36981f['unpin'](),_0x36981f['content']['clear']());}['_attachListeners'](_0x4bddbf){this['listenTo'](_0x4bddbf,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x4bddbf,'Esc',(_0x5f0d32,_0x45e49a)=>{this['_manuallyClosedAnnotationViews']['add'](_0x4bddbf),this['_hideBalloon'](),_0x45e49a();});}['_detachListeners'](_0x10b6a1){this['stopListening'](_0x10b6a1);}}class c extends _0x41aca7{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];static get['requires'](){return[b,_0x300697,j];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x213cf1){super(_0x213cf1),_0x213cf1['editing']['view']['addObserver'](_0x2b71be),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x213cf1['plugins']['get'](_0x300697),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1;}['init'](){const _0x180d0c=this['editor']['plugins']['get'](j);_0x180d0c['context']===this['editor']&&(_0x180d0c['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0x36a04f,_0x2a8cc4)=>{const _0x5d76d4=this['_balloon'];if(this['isAttached']&&_0x5d76d4['visibleView']){const _0x2ac1e4=this['annotations']['getByView'](_0x5d76d4['visibleView']);_0x2ac1e4&&this['_closeAnnotation'](_0x2ac1e4),_0x2a8cc4();}}));}['afterInit'](){const _0x3c151a=this['editor']['plugins']['get'](j);_0x3c151a['context']===this['editor']&&(_0x3c151a['hasActive']()||_0x3c151a['switchTo']('inline'));}['setActiveAnnotation'](_0x1cc925){_0x1cc925!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1cc925&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1cc925)&&this['_addAnnotationToBalloon'](_0x1cc925,!0x0),_0x1cc925['isActive']=!0x0),_0x1cc925||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1cc925);}['attach'](_0x29174f){this['annotations']=_0x29174f;const _0xb2ca41=this['editor']['plugins']['get'](j),_0x23066f=this['_balloon'];if(this['isAttached'])throw new _0x2e6f8f('inlineannotations-attach-already-attached',this);if(_0xb2ca41['context']!==this['editor'])throw new _0x2e6f8f('inlineannotations-not-allowed-with-context',this);const _0x52596f=this['editor']['plugins']['get'](b);this['listenTo'](_0x52596f,'refresh',()=>{const _0x58f50c=_0x52596f['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});var _0x346c4e,_0x47e905;!this['_forceRefresh']&&(_0x346c4e=_0x58f50c,_0x47e905=this['_selectedAnnotations'],_0x346c4e['length']===_0x47e905['length']&&_0x346c4e['every'](_0x4969c0=>_0x47e905['includes'](_0x4969c0)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x58f50c),this['setActiveAnnotation'](_0x58f50c[0x0]||null));}),this['listenTo'](_0x52596f,'blur',(_0x11d196,{isAnnotationTracked:_0x524f4e})=>{this['activeAnnotation']&&_0x524f4e(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1a8f96,_0x37def5,_0x116af9)=>{_0x116af9||this['setActiveAnnotation'](null);}),this['listenTo'](_0x29174f,'remove',(_0x44b2e0,_0x58e578)=>{this['_removeAnnotationFromBalloon'](_0x58e578),_0x58e578===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x23066f,'change:visibleView',(_0x3312a5,_0x1cbc8e,_0x49f27a,_0x18c564)=>{_0x18c564&&this['stopListening'](_0x18c564);const _0x294272=_0x29174f['getByView'](_0x49f27a);_0x49f27a&&_0x294272&&(this['listenTo'](_0x49f27a,'change:height',()=>{_0x23066f['updatePosition']();}),this['listenTo'](_0x49f27a,'Esc',()=>{this['_closeAnnotation'](_0x294272),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x294272&&this['setActiveAnnotation'](_0x294272));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x23066f['visibleView']&&(_0x29174f['getByView'](_0x23066f['visibleView'])&&_0x23066f['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 _0x2e6f8f('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x52a444 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x52a444);this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_setSelectedAnnotations'](_0x16e912){for(const _0x1215db of this['_selectedAnnotations'])_0x16e912['includes'](_0x1215db)||this['_manuallyClosed']['delete'](_0x1215db);for(const _0x2bd44f of this['annotations'])_0x16e912['includes'](_0x2bd44f)||this['_removeAnnotationFromBalloon'](_0x2bd44f);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x1dd0fd of _0x16e912)this['_addAnnotationToBalloon'](_0x1dd0fd);}this['_selectedAnnotations']=_0x16e912;}['_addAnnotationToBalloon'](_0x4acb15,_0x1ee029=!0x1){this['_manuallyClosed']['has'](_0x4acb15)||(this['_addedAnnotations']['has'](_0x4acb15)||this['_balloon']['hasView'](_0x4acb15['view'])||(this['_addedAnnotations']['add'](_0x4acb15),this['_balloon']['add']({'stackId':_0x4acb15['view']['id'],'view':_0x4acb15['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x4acb15)}})),_0x1ee029&&this['_balloon']['showStack'](_0x4acb15['view']['id']));}['_getBalloonTargetForAnnotation'](_0x2fefe4){const _0x1f8330=_0x2fefe4['target'],_0x2e2300=this['editor']['editing']['view'],_0x486243=_0x2e2300['document']['selection']['getFirstRange'](),_0xb6235b=_0x2e2300['domConverter']['viewRangeToDom'](_0x486243);if(_0xb6235b['collapse'](!0x0),_0x1f8330){if(_0x1f8330 instanceof _0x3fbc4e)return _0x1f8330;let _0x19c965=[];for(const _0x53bf0d of _0x1f8330)_0x19c965['push'](...F(_0x53bf0d['getClientRects']()));_0x19c965=function(_0x258605){const _0x48f0e2=[];let _0x2974e9=_0x258605[0x0];for(let _0x231bed=0x1;_0x231bed<_0x258605['length'];_0x231bed++)P(_0x2974e9,_0x258605[_0x231bed])?_0x2974e9['width']+=_0x258605[_0x231bed]['width']:(_0x48f0e2['push'](_0x2974e9),_0x2974e9=_0x258605[_0x231bed]);return _0x48f0e2['push'](_0x2974e9),_0x48f0e2;}(_0x19c965);const _0x353eb9=_0xb6235b['getBoundingClientRect']();return _0x19c965['find'](_0x176c20=>_0x176c20['top']<=_0x353eb9['top']&&_0x176c20['bottom']>=_0x353eb9['bottom']&&_0x176c20['left']<=_0x353eb9['left']&&_0x176c20['right']>=_0x353eb9['right'])||_0x19c965[0x0];}return _0x2fefe4['targetRect']||_0xb6235b;}['_removeAnnotationFromBalloon'](_0x4278cc){this['_addedAnnotations']['has'](_0x4278cc)&&this['_balloon']['hasView'](_0x4278cc['view'])&&(this['_addedAnnotations']['delete'](_0x4278cc),this['_balloon']['remove'](_0x4278cc['view']));}['_closeAnnotation'](_0x4327f4){this['_manuallyClosed']['add'](_0x4327f4),this['_removeAnnotationFromBalloon'](_0x4327f4);}}function F(_0xb3316e){return Array['from'](_0xb3316e)['map'](DOMRect['fromRect']);}function P(_0x3156e1,_0x4737ba){return _0x3156e1['top']===_0x4737ba['top']&&_0x3156e1['bottom']===_0x4737ba['bottom']&&_0x3156e1['right']===_0x4737ba['left'];}class Z extends kt{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0x4cf704,_0x5cac8e){super(_0x4cf704),this['set']('isEmpty',!_0x5cac8e['length']),this['focusTracker']=new _0x19913b(),this['_annotationViews']=_0x5cac8e,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new _0x7bfb99({'focusables':_0x5cac8e,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5cac8e,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5cac8e,'remove',(_0x13a545,_0x88bcd1)=>{_0x88bcd1['isActive']&&this['focus'](),_0x5cac8e['length']||(this['isEmpty']=!0x0);});const _0x5576c0=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':N(_0x4cf704,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5cac8e},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x5576c0['if']('isEmpty','ck-hidden',_0x26f27c=>!_0x26f27c)]},'children':[{'text':N(_0x4cf704,'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 _0x514783 of this['_annotationViews'])this['focusTracker']['add'](_0x514783['element']);this['_annotationViews']['on']('change',(_0xbae1bb,{added:_0x445a37,removed:_0x49dea5})=>{for(const _0x5a792d of _0x445a37)this['focusTracker']['add'](_0x5a792d['element']);for(const _0x4275a5 of _0x49dea5)this['focusTracker']['remove'](_0x4275a5['element']);});}}class p extends _0x2228db{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[o,y];}constructor(_0x42b085){super(_0x42b085),this['archivedThreads']=new _0x2a8245();}['init'](){const _0x1a5411=this['context'],_0x29d562=_0x1a5411['plugins']['get'](o),_0x6a89ce=_0x1a5411['plugins']['get'](y);this['listenTo'](_0x29d562,'addCommentThread',(_0x330650,{threadId:_0x211c70})=>{const _0x149596=_0x29d562['getCommentThread'](_0x211c70);_0x149596['archivedAt']&&this['archivedThreads']['add'](_0x149596,this['_calculatePosition'](_0x149596['archivedAt'])),this['listenTo'](_0x149596,'change:archivedAt',(_0x5c122a,_0x4ac44f,_0x5bb6fc)=>{_0x5bb6fc?this['archivedThreads']['has'](_0x149596)||this['archivedThreads']['add'](_0x149596,this['_calculatePosition'](_0x149596['archivedAt'])):this['archivedThreads']['has'](_0x149596)&&this['archivedThreads']['remove'](_0x149596);});}),this['listenTo'](_0x29d562,'removeCommentThread',(_0x59810e,{threadId:_0x4fbbfd})=>{const _0x34bbca=_0x29d562['getCommentThread'](_0x4fbbfd);this['stopListening'](_0x34bbca),this['archivedThreads']['has'](_0x34bbca)&&this['archivedThreads']['remove'](_0x34bbca);},{'priority':'highest'}),this['listenTo'](_0x6a89ce['collection'],'focus',(_0x2b7477,_0x9f40ab)=>{_0x9f40ab['isVisible']||(_0x9f40ab['isActive']=!0x0,_0x6a89ce['activate'](_0x9f40ab));});}['_calculatePosition'](_0x22c321){const _0x44208d=[...this['archivedThreads']]['findIndex'](_0x418018=>_0x418018['archivedAt']<_0x22c321);return _0x44208d>-0x1?_0x44208d:this['archivedThreads']['length'];}}class a extends _0x41aca7{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[p,_0x4c9c9e];}constructor(_0x4e82ed){super(_0x4e82ed),this['annotationViews']=new _0x5e227b(),this['_pendingThreads']=[];}['init'](){const _0x6a355f=this['editor'],_0xd3c448=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x6a355f['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](_0x3c4ac3,!0x0)),_0x6a355f['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x2d84d9=this['_createCommentsArchiveButton'](_0x27f8f3);return _0x2d84d9['set']({'role':'menuitemcheckbox'}),_0x2d84d9;});const _0x362957=_0x6a355f['plugins']['get'](p),_0x283e8e=_0x6a355f['plugins']['get']('Annotations'),_0xa9e51e=_0x6a355f['plugins']['get']('CommentsRepository');_0x362957['archivedThreads']['forEach'](_0x4e0cf2=>{this['_handleNewThread'](_0x4e0cf2);}),this['listenTo'](_0x362957['archivedThreads'],'add',(_0x430af9,_0x208475)=>{this['_handleNewThread'](_0x208475);}),this['listenTo'](_0x283e8e['collection'],'add',(_0x1b6be5,_0x8c9fa4)=>{const _0x54a684=this['_pendingThreads']['find'](_0x1cc9b2=>{const _0x10961e=_0xa9e51e['_threadToController']['get'](_0x1cc9b2);return _0x10961e&&_0x8c9fa4['innerView']===_0x10961e['view'];});if(_0x54a684){const _0x1dd7d2=this['_calculatePosition'](_0x54a684['archivedAt']);this['annotationViews']['add'](_0x8c9fa4['view'],_0x1dd7d2),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x54a684),0x1);}}),this['listenTo'](_0x362957['archivedThreads'],'remove',(_0x337fd7,_0x1af30f)=>{const _0x509307=_0x6a355f['config']['get']('collaboration.channelId');if(!_0x509307||_0x1af30f['channelId']===_0x509307){if(this['_pendingThreads']['includes'](_0x1af30f))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x1af30f),0x1);else{const _0x354733=_0xa9e51e['_threadToController']['get'](_0x1af30f),_0x23019e=_0x283e8e['getByInnerView'](_0x354733['view']);this['annotationViews']['remove'](_0x23019e['view']),this['stopListening'](_0x23019e['focusableElements']);}}}),this['listenTo'](_0x283e8e['collection'],'add',(_0x4e830e,_0x5007b6)=>{this['listenTo'](_0x5007b6,'escape',_0xd3c448);}),this['listenTo'](_0x283e8e['collection'],'remove',(_0x252b79,_0x1eb96e)=>{this['stopListening'](_0x1eb96e,'escape',_0xd3c448);});}['_handleNewThread'](_0x33bb9a){const _0x34704b=this['editor']['plugins']['get']('CommentsRepository'),_0x2ea861=this['editor']['plugins']['get']('Annotations'),_0x314fc0=this['editor']['config']['get']('collaboration.channelId');if(!_0x314fc0||_0x33bb9a['channelId']===_0x314fc0){const _0x2dc6bd=_0x34704b['_threadToController']['get'](_0x33bb9a);if(!_0x2dc6bd)return void this['_pendingThreads']['push'](_0x33bb9a);const _0x529c00=this['_calculatePosition'](_0x33bb9a['archivedAt']),_0x6419f4=_0x2ea861['getByInnerView'](_0x2dc6bd['view']);_0x6419f4['isVisible']&&_0x2ea861['_visibleAnnotations']['remove'](_0x6419f4),this['annotationViews']['add'](_0x6419f4['view'],_0x529c00);}}['_calculatePosition'](_0x362247){const _0x128ac7=this['editor']['config']['get']('collaboration.channelId'),_0x432948=[...this['editor']['plugins']['get'](p)['archivedThreads']]['filter'](_0xfc74a1=>_0xfc74a1['channelId']===_0x128ac7)['findIndex'](_0x569c65=>_0x569c65['archivedAt']<_0x362247);return _0x432948<0x0||_0x432948>this['annotationViews']['length']?this['annotationViews']['length']:_0x432948-0x1;}['_toggleDialog'](){const _0x36a56f=this['editor'],_0x20c41a=_0x36a56f['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new Z(_0x36a56f['locale'],this['annotationViews'])),'commentsArchive'===_0x20c41a['id']?_0x20c41a['hide']():_0x20c41a['show']({'id':'commentsArchive','title':N(_0x36a56f['locale'],'COMMENTS_ARCHIVE'),'icon':_0x37db05,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':_0x2b4a03['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x1b017b,_0x56af73=!0x1){const _0x5bcbf2=this['editor']['locale'],_0x1fb88f=this['editor']['plugins']['get']('Dialog'),_0xd9c7b9=new _0x1b017b(_0x5bcbf2);return _0xd9c7b9['bind']('isEnabled')['to'](this,'isEnabled'),_0xd9c7b9['bind']('isOn')['to'](_0x1fb88f,'id',_0x2058f1=>'commentsArchive'===_0x2058f1),_0xd9c7b9['set']({'label':N(_0x5bcbf2,'COMMENTS_ARCHIVE'),'icon':_0x37db05,'isToggleable':!0x0}),_0x56af73&&(_0xd9c7b9['tooltip']=!0x0),this['listenTo'](_0xd9c7b9,'execute',()=>this['_toggleDialog']()),_0xd9c7b9;}['_hideDialogOnAnnotationEscape']=_0x4bb102=>{const _0x5db3aa=_0x4bb102['source'];if(!this['annotationViews']['has'](_0x5db3aa['view']))return;const _0x4875be=this['editor']['plugins']['get']('Dialog');_0x4875be['isOpen']&&'commentsArchive'===_0x4875be['id']&&(_0x4875be['hide'](),_0x4bb102['stop']());};}class gi extends _0x41aca7{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};
|