@ckeditor/ckeditor5-collaboration-core 45.2.1-alpha.7 → 45.2.1-alpha.9

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/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ContextPlugin as _0x8f5900,Editor as _0x116d95}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4f6062,Collection as _0x3fae75,uid as _0x4694f9,first as _0x30443e,FocusTracker as _0x1e1ede,KeystrokeHandler as _0x52e395}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x25cbaa,IconView as _0x175aef,ButtonView as _0x423e9e,DropdownButtonView as _0x2ae889,FocusCycler as _0x3a0c2f,isViewWithFocusCycler as _0x51734a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x504bbd,IconCheck as _0x1b46d4,IconCancel as _0x395324}from'@ckeditor/ckeditor5-icons/dist/index.js';import{DateTime as _0x30d7c2}from'luxon';class n extends _0x8f5900{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x38a7a7,_0x152bac){let _0x27b683;if(_0x152bac||(_0x152bac=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x152bac?_0x27b683=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x27b683=this['context']['editors']['find'](_0x3a9f71=>_0x3a9f71['config']['get']('collaboration.channelId')==_0x152bac)),!_0x27b683)throw new _0x4f6062('permissions-set-permissions-invalid-channel-id',null);const _0x1c5fa0=_0x27b683['plugins'],_0x47dbfb=_0x1c5fa0['has']('CommentsRepository')?_0x1c5fa0['get']('CommentsRepository'):void 0x0,_0x27acfa=_0x1c5fa0['has']('CommentsOnly')&&_0x1c5fa0['get']('CommentsOnly'),_0x2d6e7d=_0x38a7a7['includes']('document:write'),_0xff521c=_0x38a7a7['includes']('comment:modify_all'),_0x57229f=_0x38a7a7['includes']('comment:admin'),_0x2c3f58=_0x38a7a7['includes']('comment:write'),_0x47d8c3=_0x2c3f58||_0x57229f,_0x1c7256=_0x47d8c3||_0xff521c,_0xafdcd1=_0x2d6e7d||_0x47d8c3;(_0x27acfa&&(_0x27acfa['isEnabled']=!_0x2d6e7d&&_0x1c7256),_0x27b683 instanceof _0x116d95)&&(!(_0x2d6e7d||_0x1c7256&&_0x47dbfb)?_0x27b683['enableReadOnlyMode']('no-permissions'):_0x27b683['disableReadOnlyMode']('no-permissions'));if(_0x47dbfb){_0x47dbfb['setPermissions']({'admin':_0x57229f,'modifyAll':_0xff521c,'write':_0x2c3f58,'resolve':_0xafdcd1},_0x152bac);const _0x20ea0f=_0x27b683 instanceof _0x116d95&&_0x27b683['commands']['get']('addCommentThread');_0x20ea0f&&(_0x47d8c3?_0x20ea0f['clearForceDisabled']('noPermissions'):_0x20ea0f['forceDisabled']('noPermissions'));}}}function o(_0x1bea1c,_0xfdeca1){const t=_0x1bea1c['t'];switch(_0xfdeca1){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class u extends _0x8f5900{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[n];}constructor(_0x3f3ec6){super(_0x3f3ec6),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x3fae75(),this['_locale']=_0x3f3ec6['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0x1a68a9,name:_0x59d89e,..._0x2f5411}){if(!_0x1a68a9||'string'!=typeof _0x1a68a9)throw new _0x4f6062('users-add-invalid-id');if(this['users']['has'](_0x1a68a9))throw new _0x4f6062('users-add-duplicated-id',null,{'id':_0x1a68a9});const _0x35fa04=this['context']['config']['get']('users.getInitialsCallback'),_0x409e2e={..._0x2f5411,'id':_0x1a68a9,'name':h(this['_locale'],_0x59d89e),'color':this['_getNextColor']()};_0x409e2e['name']=h(this['_locale'],_0x409e2e['name']);const _0x4f99ee=new P(_0x409e2e,_0x35fa04);return this['users']['add'](_0x4f99ee),_0x4f99ee;}['getUser'](_0x5ad74b){return this['users']['get'](_0x5ad74b);}['useAnonymousUser'](){const _0x19c708=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x19c708);}['defineMe'](_0x2cc4cd){if(this['_myId'])throw new _0x4f6062('users-me-already-defined',null);const _0x3bc0f6=this['getUser'](_0x2cc4cd);if(!_0x3bc0f6)throw new _0x4f6062('users-me-missing-user',null);this['_myId']=_0x2cc4cd,_0x3bc0f6['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x136db2=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x136db2&&(this['_lastColor']=0x0),new l(this['_lastColor']++);}['_addAnonymousUser'](){const _0x3ffb8e=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3ffb8e,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x4bf3a5,_0x3a6391){this['id']=_0x4bf3a5['id'],this['color']=_0x4bf3a5['color'],this['name']=_0x4bf3a5['name'],this['initials']=_0x3a6391?_0x3a6391(this['name']):this['_computeInitials'](),this['avatar']=_0x4bf3a5['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x1fd71d=this['name']['split']('\x20')['filter'](_0xb9ca95=>/^[\p{Letter}]/u['test'](_0xb9ca95));return 0x1===_0x1fd71d['length']?this['_getInitial'](_0x1fd71d[0x0]):0x0===_0x1fd71d['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x1fd71d[0x0])+this['_getInitial'](_0x1fd71d[_0x1fd71d['length']-0x1]);}['_getInitial'](_0x3edb4f){return String['fromCodePoint'](_0x3edb4f['codePointAt'](0x0))['toUpperCase']();}}function h(_0x3384f5,_0x337bfd=''){return''==(_0x337bfd=_0x337bfd['trim']())?o(_0x3384f5,'Anonymous'):_0x337bfd;}class l{['_id'];constructor(_0x33a095){this['_id']=_0x33a095;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}class I extends _0x25cbaa{['name'];['notificationView'];constructor(_0x4ba3af,_0x19c79d,_0x55042d){super(_0x4ba3af),this['name']=_0x19c79d['name'],this['notificationView']=null;const _0x36d46d=['ck','ck-user'],_0x400ceb=['ck','ck-user__img'];if(_0x19c79d['isAnonymous']&&_0x400ceb['push']('ck-user__anonymous'),!_0x19c79d['isAnonymous']&&_0x19c79d['isMe']&&_0x36d46d['push']('ck-user_me'),_0x19c79d['avatar']&&_0x400ceb['push']('ck-user__avatar'),_0x55042d){const _0x4a606b=new _0x175aef();_0x4a606b['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x4a606b['content']=_0x504bbd,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x55042d},'children':[_0x4a606b]};}const _0x197073=[{'tag':'div','attributes':{'class':_0x400ceb,'style':{'background-image':_0x19c79d['avatar']?'url(\x27'+_0x19c79d['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x19c79d['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x19c79d['name']},'children':[{'text':_0x19c79d['initials']}]}];this['notificationView']&&_0x197073['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x36d46d,'data-user-id':_0x19c79d['id']},'children':_0x197073});}}class F extends _0x25cbaa{['id'];constructor(_0x5047f9,_0x4516df){super(_0x5047f9),this['id']='ck-aria-description-'+_0x4694f9(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x4516df}]});}}class U extends _0x423e9e{['render'](){super['render'](),V(this);}}class Y extends _0x2ae889{['render'](){super['render'](),V(this);}}function V(_0x3b887){_0x3b887['listenTo'](_0x3b887['element'],'mousedown',(_0x2c3322,_0x3bf04a)=>{_0x3bf04a['stopPropagation'](),_0x3bf04a['preventDefault']();}),_0x3b887['listenTo'](_0x3b887['element'],'mouseup',()=>{_0x3b887['element']['focus']();});}function E(_0x3dc03b={},_0x550945){if(void 0x0!==_0x3dc03b['dateTimeFormat']&&'function'!=typeof _0x3dc03b['dateTimeFormat'])throw new _0x4f6062('invalid-date-time-format');return _0x1daf69=>{const _0x3ac74d='string'==typeof _0x1daf69?_0x30d7c2['fromISO'](_0x1daf69):_0x30d7c2['fromJSDate'](_0x1daf69),_0x1a8037=_0x30d7c2['now'](),_0x5421dd=Math['floor'](_0x1a8037['diff'](_0x3ac74d,'days')['days']);return _0x3dc03b['dateTimeFormat']?_0x3dc03b['dateTimeFormat'](_0x3ac74d['toJSDate'](),_0x550945&&_0x550945['t']?_0x550945['t']:void 0x0):0x0===_0x5421dd?_0x550945?o(_0x550945,'Today')+'\x20'+_0x3ac74d['toFormat']('hh:mma'):_0x3ac74d['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x5421dd?_0x550945?o(_0x550945,'Yesterday')+'\x20'+_0x3ac74d['toFormat']('hh:mma'):_0x3ac74d['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x5421dd<0x7?_0x550945?o(_0x550945,'Last')+'\x20'+o(_0x550945,_0x3ac74d['toFormat']('EEEE'))+'\x20'+_0x3ac74d['toFormat']('hh:mma'):_0x3ac74d['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x3ac74d['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x1e9930,_0x14db34){const _0x555dbe=_0x1e9930['mapper']['markerNameToElements'](_0x14db34['name']);if(!_0x555dbe)return null;const _0x1a3a95=_0x30443e(_0x555dbe['values']());return _0x1e9930['view']['domConverter']['mapViewToDom'](_0x1a3a95)||null;}function R(_0x403cc8,_0x300a19){if(0x0===_0x300a19['length'])return null;const _0x469b41=[],_0x378da0=_0x403cc8['view']['domConverter'];for(const _0x34829e of _0x300a19){const _0x3a8c31=_0x403cc8['mapper']['markerNameToElements'](_0x34829e['name']);if(!_0x3a8c31)continue;const _0x5d5b40=Array['from'](_0x3a8c31)['map'](_0x4c24f1=>_0x378da0['mapViewToDom'](_0x4c24f1))['filter'](_0x3be091=>!!_0x3be091);_0x469b41['push'](..._0x5d5b40);}if(0x0===_0x469b41['length'])return null;const _0x3ba88d=[];for(const _0x32e6ed of _0x469b41){const _0x12aa6d=_0x32e6ed['getClientRects']()['item'](0x0);_0x12aa6d&&_0x3ba88d['push']({'x':_0x12aa6d['x'],'y':_0x12aa6d['y'],'domElement':_0x32e6ed});}return 0x0===_0x3ba88d['length']?null:(_0x3ba88d['sort']((_0x3c2793,_0x5903e1)=>_0x3c2793['y']-_0x5903e1['y']||_0x3c2793['x']-_0x5903e1['x']),_0x3ba88d['map'](_0x131472=>_0x131472['domElement']));}function Z(_0x3fad34,{limit:_0x2bcf08,suffix:_0x3c4eff='...'}){const _0x23ac63=[];let _0x492a17=0x0;const _0xf2285b=_0x3fad34['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x2d3cd5=0x0;_0x2d3cd5<_0xf2285b['length'];_0x2d3cd5++){let _0x2f6408=_0xf2285b[_0x2d3cd5];const _0x513996=$(_0x2f6408);if(_0x2f6408['startsWith']('<')){if(_0x492a17>=_0x2bcf08){const _0x5c470d=_0x2f6408['match'](/[a-zA-Z]+/);if(!_0x5c470d){_0xf2285b[_0x2d3cd5]='';continue;}const _0x21bc12=_0x5c470d[0x0];_0x2f6408['startsWith']('</')?(_0x23ac63['length']&&(_0x2f6408=''),_0x23ac63['pop']()):(_0x23ac63['push'](_0x21bc12),_0x2f6408='');}}else{if(_0x492a17>=_0x2bcf08)_0x2f6408='';else{if(_0x492a17+_0x513996['length']>=_0x2bcf08){let _0x342e34=_0x2bcf08-_0x492a17;if('\x20'===_0x513996[_0x342e34-0x1])_0x342e34--;else{const _0x31b5db=_0x513996['slice'](_0x342e34)['indexOf']('\x20');-0x1!==_0x31b5db?_0x342e34+=_0x31b5db:_0x342e34=_0x2f6408['length'];}_0x2f6408=_0x513996['slice'](0x0,_0x342e34)['join']('')+_0x3c4eff,_0x492a17=_0x2bcf08;}else _0x492a17+=_0x513996['length'];}}_0xf2285b[_0x2d3cd5]=_0x2f6408;}return _0xf2285b['join']('\x0a')['replace'](/\n/g,'');}function $(_0xad4757){const _0xcd0b13=[];for(let _0x568ad4=0x0;_0x568ad4<_0xad4757['length'];_0x568ad4++){const _0x1e28a9=_0xad4757['substring'](_0x568ad4)['match'](/^&[a-z0-9#]+;/);if(_0x1e28a9){const _0x50a92b=_0x1e28a9[0x0];_0xcd0b13['push'](_0x50a92b),_0x568ad4+=_0x50a92b['length']-0x1;}else _0xcd0b13['push'](_0xad4757[_0x568ad4]);}return _0xcd0b13;}class m extends _0x25cbaa{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x3c7a62){super(_0x3c7a62);const _0x192891=this['bindTemplate'];this['set']('message',o(_0x3c7a62,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x3c7a62,o(_0x3c7a62,'Yes'),_0x1b46d4,'submit'),this['cancelView']=this['_createButtonView'](_0x3c7a62,o(_0x3c7a62,'No'),_0x395324,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x1e1ede(),this['keystrokes']=new _0x52e395(),this['focusCycler']=new _0x3a0c2f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-thread__remove-confirm'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x192891['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x588a6e,_0x2d0321,_0x5ec53e,_0xdf1d11){const _0x2062a8=new _0x423e9e(_0x588a6e);return _0x2062a8['label']=_0x2d0321,_0x2062a8['icon']=_0x5ec53e,_0x2062a8['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0xdf1d11}}),_0x2062a8['on']('execute',()=>this['fire'](_0xdf1d11)),_0x2062a8;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x369244=>{this['keystrokes']['listenTo'](_0x369244['element']),this['focusTracker']['add'](_0x369244['element']);}),this['keystrokes']['set']('esc',(_0x54c4f2,_0x378a2c)=>{this['fire']('cancel'),_0x378a2c();});}}function c(_0x24e1a3){return class extends _0x24e1a3{['showConfirm'](_0xc0a5cf,_0x46ab25){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0xc0a5cf,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x46ab25['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x5a3a67=>this['confirmView']['on']('submit',_0x5a3a67));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function j(_0x5a4b4c){let _0x45fe36=0x0,_0x5ee104=0x0;for(const _0x2f03a2 of M(_0x5a4b4c))_0x45fe36=(_0x45fe36<<0x5)-_0x45fe36+_0x2f03a2,_0x45fe36&=_0x45fe36,[_0x45fe36,_0x5ee104]=[_0x5ee104,_0x45fe36];return w(_0x45fe36)+w(_0x5ee104);}function*g(_0xc55674){null==_0xc55674||null==_0xc55674?yield 0x12b9b0a1:0x0===_0xc55674||!0x1===_0xc55674?yield 0x0:0x1===_0xc55674||0x1==_0xc55674?yield 0x1:Array['isArray'](_0xc55674)?yield*function*(_0x20a91b){for(const _0x2dde33 of _0x20a91b)yield*g(_0x2dde33);}(_0xc55674):'object'==typeof _0xc55674?yield*M(_0xc55674):'string'==typeof _0xc55674?yield*O(_0xc55674):'number'==typeof _0xc55674&&(yield _0xc55674);}function*M(_0x5b145d){if(yield q('{'),_0x5b145d){const _0x1e1d6c=Object['keys'](_0x5b145d)['sort']();for(const _0x49a7c7 of _0x1e1d6c){yield*O(_0x49a7c7),yield q(':');const _0x5f30e1=_0x5b145d[_0x49a7c7];yield*g(_0x5f30e1);}}yield q('}');}function*O(_0x35258f){yield q('\x22');for(const _0x1a2f7b of _0x35258f)yield q(_0x1a2f7b);yield q('\x22');}function q(_0x24532e){return _0x24532e['charCodeAt'](0x0);}function w(_0x13a6ed){return(_0x13a6ed*=Math['sign'](_0x13a6ed))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],D=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function S(_0x52669b,_0x2305c5,_0x528518,_0x571a49=[]){const _0x1b8a17='string'==typeof _0x52669b?_0x528518['get'](_0x52669b)['constructor']:_0x52669b['prototype']['constructor'];if(_0x2305c5['has'](_0x1b8a17))return _0x2305c5['get'](_0x1b8a17);_0x2305c5['set'](_0x1b8a17,!0x0);const _0x343577=[...D,..._0x571a49]['map'](_0xa92fde=>{if(_0x528518['has'](_0xa92fde))return _0x528518['get'](_0xa92fde)['constructor'];})['filter'](_0x2e67e9=>_0x2e67e9);if(_0x1b8a17&&_0x343577['includes'](_0x1b8a17))return _0x2305c5['set'](_0x1b8a17,!0x1),!0x1;if(!_0x1b8a17['requires'])return _0x2305c5['set'](_0x1b8a17,!0x0),!0x0;const _0xc2c039=_0x1b8a17['requires']['every'](_0x7fbac3=>S(_0x7fbac3,_0x2305c5,_0x528518,_0x571a49));return _0x2305c5['set'](_0x1b8a17,_0xc2c039),_0xc2c039;}function C(_0x5c8231,_0x5f081f){const _0x68b9f4={};for(const _0x3ebca7 of _0x5c8231['config']['names']())W['includes'](_0x3ebca7)||(_0x68b9f4[_0x3ebca7]=_0x5c8231['config']['get'](_0x3ebca7));const _0x508ff2=_0x68b9f4['plugins']||[],_0x4fb632=_0x5c8231['constructor']['builtinPlugins']||[],_0x3f4746=_0x508ff2['length']?_0x508ff2:_0x4fb632,_0x1ae16e=_0x68b9f4['extraPlugins']||[];delete _0x68b9f4['extraPlugins'];const _0x53c936=_0x68b9f4['removePlugins']||[];delete _0x68b9f4['removePlugins'];const _0x48e1ef=_0x5c8231['_context']['config']['get']('plugins')||[],_0x10b924=_0x3f4746['concat'](_0x1ae16e)['concat'](_0x48e1ef)['map'](_0x2a9298=>'string'==typeof _0x2a9298?_0x4fb632['find'](_0x939073=>_0x939073['pluginName']==_0x2a9298):_0x2a9298)['filter'](_0x329efd=>!_0x53c936['includes'](_0x329efd)&&!_0x53c936['includes'](_0x329efd['pluginName'])),_0x25bfe0=Array['from'](new Set(_0x10b924)),_0x483cad=new Map();return _0x68b9f4['plugins']=_0x25bfe0['filter'](_0x17f0f7=>S(_0x17f0f7,_0x483cad,_0x5c8231['plugins'],_0x5f081f)),_0x68b9f4;}function z(_0x3ecdfd,_0x1a17e5){const _0x249661=[];_0x3ecdfd['document']['selection']['on']('change:range',()=>{const _0xcec9a6=function(_0x57ddb0,_0x5b3cf7){const _0x402ccf=[];for(const _0x5df485 of _0x57ddb0['markers']){const _0x43fae2=_0x5df485['getRange']();(_0x43fae2['containsPosition'](_0x5b3cf7)||_0x43fae2['start']['isEqual'](_0x5b3cf7)||_0x43fae2['end']['isEqual'](_0x5b3cf7))&&_0x402ccf['push'](_0x5df485);}return _0x402ccf;}(_0x3ecdfd,_0x3ecdfd['document']['selection']['focus']),_0x37ddc1=[],_0x56fa81=[],_0xdcd870=[];for(const _0x4c5403 of _0x249661)_0xcec9a6['includes'](_0x4c5403)||_0x37ddc1['push'](_0x4c5403);for(const _0x505735 of _0xcec9a6)_0x249661['includes'](_0x505735)||_0x56fa81['push'](_0x505735),_0xdcd870['push'](_0x505735);(_0x37ddc1['length']||_0x56fa81['length'])&&_0x1a17e5({'left':_0x37ddc1,'entered':_0x56fa81}),_0x249661['length']=0x0,_0x249661['push'](..._0xdcd870);});}const J='Ctrl+Shift+E';function T(_0x6541ff,_0x178545){const _0x4a42ee=_0x6541ff['element'];_0x6541ff['keystrokes']['listenTo'](_0x4a42ee);for(const _0xe64363 of _0x178545)K(_0x6541ff,_0xe64363);_0x178545['on']('change',(_0x1c441b,_0x3804d3)=>{for(const _0x529ba0 of _0x3804d3['removed'])_(_0x6541ff,_0x529ba0);for(const _0x402157 of Array['from'](_0x3804d3['added'])['reverse']())K(_0x6541ff,_0x402157);}),_0x6541ff['keystrokes']['set']('enter',(_0x1ba08d,_0x2a60c5)=>{_0x4a42ee===_0x1ba08d['target']&&(_0x6541ff['focusCycler']['focusFirst'](),_0x2a60c5());},{'filter':_0x513ea3=>_0x513ea3['target']===_0x4a42ee}),_0x6541ff['keystrokes']['set']('esc',(_0x7e9468,_0x3eb6df)=>{_0x4a42ee!==_0x7e9468['target']?_0x6541ff['focus']():_0x6541ff['fire']('escape'),_0x3eb6df();}),_0x6541ff['keystrokes']['set']('arrowdown',(_0x2b3426,_0x5c7d00)=>{_0x4a42ee===_0x2b3426['target']&&(_0x6541ff['fire']('arrowdown'),_0x5c7d00());}),_0x6541ff['keystrokes']['set']('arrowup',(_0xc030ab,_0x5e73d7)=>{_0x4a42ee===_0xc030ab['target']&&(_0x6541ff['fire']('arrowup'),_0x5e73d7());});}function K(_0x17a024,_0x381b85){_0x381b85['isRendered']&&(_0x17a024['focusTracker']['add'](_0x381b85['element']),_0x17a024['keystrokes']['listenTo'](_0x381b85['element']),_0x51734a(_0x381b85)&&function(_0xa6535d,_0x53f194){const _0x1fc66f=_0xa6535d['actions'],_0x473659=_0x53f194['actions'];for(const _0x10fbf7 of Object['keys'](_0x1fc66f))if(_0x10fbf7 in _0x473659&&_0x1fc66f[_0x10fbf7]!==_0x473659[_0x10fbf7])return!0x1;return!0x0;}(_0x17a024['focusCycler'],_0x381b85['focusCycler'])&&_0x17a024['focusCycler']['chain'](_0x381b85['focusCycler']));}function _(_0x524f11,_0x144bcd){_0x524f11['focusTracker']['remove'](_0x144bcd['element']),_0x524f11['keystrokes']['stopListening'](_0x144bcd['element']),_0x51734a(_0x144bcd)&&_0x524f11['focusCycler']['unchain'](_0x144bcd['focusCycler']);}export{F as AriaDescriptionView,c as ConfirmMixin,J as FOCUS_ANNOTATION_KEYSTROKE,U as LateFocusButtonView,Y as LateFocusDropdownButtonView,n as Permissions,I as UserView,u as Users,R as getAllMarkersDomElementsSorted,E as getDateTimeFormatter,A as getMarkerDomElement,j as hashObject,C as sanitizeEditorConfig,T as setupThreadKeyboardNavigation,z as surroundingMarkersDetector,Z as trimHtml};
23
+ import{ContextPlugin as _0x279321,Editor as _0x4f4182}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2212c6,Collection as _0x96a6a2,uid as _0x38179b,first as _0x2b9571,FocusTracker as _0x318fac,KeystrokeHandler as _0x268b6c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x4c58b5,IconView as _0x53f884,ButtonView as _0x113a4f,DropdownButtonView as _0x3e0ab6,FocusCycler as _0x15e150,isViewWithFocusCycler as _0x15d299}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0xdaec22,IconCheck as _0x1065dc,IconCancel as _0x5a74e0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{DateTime as _0x5001a3}from'luxon';class n extends _0x279321{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x51c08e,_0x317d07){let _0x27bdef;if(_0x317d07||(_0x317d07=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x317d07?_0x27bdef=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x27bdef=this['context']['editors']['find'](_0x51608b=>_0x51608b['config']['get']('collaboration.channelId')==_0x317d07)),!_0x27bdef)throw new _0x2212c6('permissions-set-permissions-invalid-channel-id',null);const _0x4dc2d2=_0x27bdef['plugins'],_0x298349=_0x4dc2d2['has']('CommentsRepository')?_0x4dc2d2['get']('CommentsRepository'):void 0x0,_0x2b7eae=_0x4dc2d2['has']('CommentsOnly')&&_0x4dc2d2['get']('CommentsOnly'),_0x5674fa=_0x51c08e['includes']('document:write'),_0x293868=_0x51c08e['includes']('comment:modify_all'),_0x3410ce=_0x51c08e['includes']('comment:admin'),_0x45b56b=_0x51c08e['includes']('comment:write'),_0x4e14b9=_0x45b56b||_0x3410ce,_0x442b82=_0x4e14b9||_0x293868,_0x441e71=_0x5674fa||_0x4e14b9;(_0x2b7eae&&(_0x2b7eae['isEnabled']=!_0x5674fa&&_0x442b82),_0x27bdef instanceof _0x4f4182)&&(!(_0x5674fa||_0x442b82&&_0x298349)?_0x27bdef['enableReadOnlyMode']('no-permissions'):_0x27bdef['disableReadOnlyMode']('no-permissions'));if(_0x298349){_0x298349['setPermissions']({'admin':_0x3410ce,'modifyAll':_0x293868,'write':_0x45b56b,'resolve':_0x441e71},_0x317d07);const _0x311b42=_0x27bdef instanceof _0x4f4182&&_0x27bdef['commands']['get']('addCommentThread');_0x311b42&&(_0x4e14b9?_0x311b42['clearForceDisabled']('noPermissions'):_0x311b42['forceDisabled']('noPermissions'));}}}function o(_0x560a80,_0x40f166){const t=_0x560a80['t'];switch(_0x40f166){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');case'Today':return t('Today');case'Yesterday':return t('Yesterday');case'Last':return t('Last');case'Monday':return t('Monday');case'Tuesday':return t('Tuesday');case'Wednesday':return t('Wednesday');case'Thursday':return t('Thursday');case'Friday':return t('Friday');case'Saturday':return t('Saturday');case'Sunday':return t('Sunday');default:return'';}}class u extends _0x279321{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[n];}constructor(_0x3fe6c8){super(_0x3fe6c8),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x96a6a2(),this['_locale']=_0x3fe6c8['locale'],this['_lastColor']=0x0,this['_myId']=null,this['decorate']('getOperationAuthor');}['init'](){this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this['_myId']);}['addUser']({id:_0xa6c6dd,name:_0x5508a8,..._0x24b423}){if(!_0xa6c6dd||'string'!=typeof _0xa6c6dd)throw new _0x2212c6('users-add-invalid-id');if(this['users']['has'](_0xa6c6dd))throw new _0x2212c6('users-add-duplicated-id',null,{'id':_0xa6c6dd});const _0x4b4f81=this['context']['config']['get']('users.getInitialsCallback'),_0x5cd8a6={..._0x24b423,'id':_0xa6c6dd,'name':h(this['_locale'],_0x5508a8),'color':this['_getNextColor']()};_0x5cd8a6['name']=h(this['_locale'],_0x5cd8a6['name']);const _0x40e674=new P(_0x5cd8a6,_0x4b4f81);return this['users']['add'](_0x40e674),_0x40e674;}['getUser'](_0x5e5247){return this['users']['get'](_0x5e5247);}['useAnonymousUser'](){const _0x55e970=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x55e970);}['defineMe'](_0x25b760){if(this['_myId'])throw new _0x2212c6('users-me-already-defined',null);const _0x5aea06=this['getUser'](_0x25b760);if(!_0x5aea06)throw new _0x2212c6('users-me-missing-user',null);this['_myId']=_0x25b760,_0x5aea06['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x5129a7=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x5129a7&&(this['_lastColor']=0x0),new l(this['_lastColor']++);}['_addAnonymousUser'](){const _0x16b300=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x16b300,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x1eb2ca,_0x54ee61){this['id']=_0x1eb2ca['id'],this['color']=_0x1eb2ca['color'],this['name']=_0x1eb2ca['name'],this['initials']=_0x54ee61?_0x54ee61(this['name']):this['_computeInitials'](),this['avatar']=_0x1eb2ca['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x3e228d=this['name']['split']('\x20')['filter'](_0x44dcf0=>/^[\p{Letter}]/u['test'](_0x44dcf0));return 0x1===_0x3e228d['length']?this['_getInitial'](_0x3e228d[0x0]):0x0===_0x3e228d['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x3e228d[0x0])+this['_getInitial'](_0x3e228d[_0x3e228d['length']-0x1]);}['_getInitial'](_0x18ec22){return String['fromCodePoint'](_0x18ec22['codePointAt'](0x0))['toUpperCase']();}}function h(_0x5c002e,_0x1ad2fa=''){return''==(_0x1ad2fa=_0x1ad2fa['trim']())?o(_0x5c002e,'Anonymous'):_0x1ad2fa;}class l{['_id'];constructor(_0x17443b){this['_id']=_0x17443b;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}class F extends _0x4c58b5{['name'];['notificationView'];constructor(_0x2c0b87,_0x29b727,_0x268177){super(_0x2c0b87),this['name']=_0x29b727['name'],this['notificationView']=null;const _0x58b263=['ck','ck-user'],_0x3eecee=['ck','ck-user__img'];if(_0x29b727['isAnonymous']&&_0x3eecee['push']('ck-user__anonymous'),!_0x29b727['isAnonymous']&&_0x29b727['isMe']&&_0x58b263['push']('ck-user_me'),_0x29b727['avatar']&&_0x3eecee['push']('ck-user__avatar'),_0x268177){const _0x2acb1d=new _0x53f884();_0x2acb1d['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x2acb1d['content']=_0xdaec22,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x268177},'children':[_0x2acb1d]};}const _0x410ba9=[{'tag':'div','attributes':{'class':_0x3eecee,'style':{'background-image':_0x29b727['avatar']?'url(\x27'+_0x29b727['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x29b727['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x29b727['name']},'children':[{'text':_0x29b727['initials']}]}];this['notificationView']&&_0x410ba9['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x58b263,'data-user-id':_0x29b727['id']},'children':_0x410ba9});}}class H extends _0x4c58b5{['id'];constructor(_0x1bec9f,_0x57c39e){super(_0x1bec9f),this['id']='ck-aria-description-'+_0x38179b(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x57c39e}]});}}class U extends _0x113a4f{['render'](){super['render'](),I(this);}}class Y extends _0x3e0ab6{['render'](){super['render'](),I(this);}}function I(_0x584b1d){_0x584b1d['listenTo'](_0x584b1d['element'],'mousedown',(_0x433b96,_0x6f8924)=>{_0x6f8924['stopPropagation'](),_0x6f8924['preventDefault']();}),_0x584b1d['listenTo'](_0x584b1d['element'],'mouseup',()=>{_0x584b1d['element']['focus']();});}function E(_0xbc712c={},_0x5de34b){if(void 0x0!==_0xbc712c['dateTimeFormat']&&'function'!=typeof _0xbc712c['dateTimeFormat'])throw new _0x2212c6('invalid-date-time-format');return _0x7c8d9d=>{const _0x525523='string'==typeof _0x7c8d9d?_0x5001a3['fromISO'](_0x7c8d9d):_0x5001a3['fromJSDate'](_0x7c8d9d),_0x3dc9ca=_0x5001a3['now'](),_0x5853bb=Math['floor'](_0x3dc9ca['diff'](_0x525523,'days')['days']);return _0xbc712c['dateTimeFormat']?_0xbc712c['dateTimeFormat'](_0x525523['toJSDate'](),_0x5de34b&&_0x5de34b['t']?_0x5de34b['t']:void 0x0):0x0===_0x5853bb?_0x5de34b?o(_0x5de34b,'Today')+'\x20'+_0x525523['toFormat']('hh:mma'):_0x525523['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x5853bb?_0x5de34b?o(_0x5de34b,'Yesterday')+'\x20'+_0x525523['toFormat']('hh:mma'):_0x525523['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x5853bb<0x7?_0x5de34b?o(_0x5de34b,'Last')+'\x20'+o(_0x5de34b,_0x525523['toFormat']('EEEE'))+'\x20'+_0x525523['toFormat']('hh:mma'):_0x525523['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x525523['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x3195a5,_0x294549){const _0x283e46=_0x3195a5['mapper']['markerNameToElements'](_0x294549['name']);if(!_0x283e46)return null;const _0x19dd27=_0x2b9571(_0x283e46['values']());return _0x3195a5['view']['domConverter']['mapViewToDom'](_0x19dd27)||null;}function R(_0x5241fe,_0x295249){if(0x0===_0x295249['length'])return null;const _0x1415ba=[],_0x3ce281=_0x5241fe['view']['domConverter'];for(const _0x44a911 of _0x295249){const _0x58d9d0=_0x5241fe['mapper']['markerNameToElements'](_0x44a911['name']);if(!_0x58d9d0)continue;const _0x372ddc=Array['from'](_0x58d9d0)['map'](_0x45c671=>_0x3ce281['mapViewToDom'](_0x45c671))['filter'](_0xf7d72=>!!_0xf7d72);_0x1415ba['push'](..._0x372ddc);}if(0x0===_0x1415ba['length'])return null;const _0x3bac05=[];for(const _0x1ae9e2 of _0x1415ba){const _0x526e26=_0x1ae9e2['getClientRects']()['item'](0x0);_0x526e26&&_0x3bac05['push']({'x':_0x526e26['x'],'y':_0x526e26['y'],'domElement':_0x1ae9e2});}return 0x0===_0x3bac05['length']?null:(_0x3bac05['sort']((_0x1e002e,_0xaa7e3e)=>_0x1e002e['y']-_0xaa7e3e['y']||_0x1e002e['x']-_0xaa7e3e['x']),_0x3bac05['map'](_0x1eef83=>_0x1eef83['domElement']));}function Z(_0x446758,{limit:_0x2d29f5,suffix:_0x10ddb1='...'}){const _0x2ffea2=[];let _0xd4c408=0x0;const _0x5ba869=_0x446758['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x117bb8=0x0;_0x117bb8<_0x5ba869['length'];_0x117bb8++){let _0x3930e6=_0x5ba869[_0x117bb8];const _0x3bd515=$(_0x3930e6);if(_0x3930e6['startsWith']('<')){if(_0xd4c408>=_0x2d29f5){const _0x58cac2=_0x3930e6['match'](/[a-zA-Z]+/);if(!_0x58cac2){_0x5ba869[_0x117bb8]='';continue;}const _0xc80f8b=_0x58cac2[0x0];_0x3930e6['startsWith']('</')?(_0x2ffea2['length']&&(_0x3930e6=''),_0x2ffea2['pop']()):(_0x2ffea2['push'](_0xc80f8b),_0x3930e6='');}}else{if(_0xd4c408>=_0x2d29f5)_0x3930e6='';else{if(_0xd4c408+_0x3bd515['length']>=_0x2d29f5){let _0x344a40=_0x2d29f5-_0xd4c408;if('\x20'===_0x3bd515[_0x344a40-0x1])_0x344a40--;else{const _0x1eba20=_0x3bd515['slice'](_0x344a40)['indexOf']('\x20');-0x1!==_0x1eba20?_0x344a40+=_0x1eba20:_0x344a40=_0x3930e6['length'];}_0x3930e6=_0x3bd515['slice'](0x0,_0x344a40)['join']('')+_0x10ddb1,_0xd4c408=_0x2d29f5;}else _0xd4c408+=_0x3bd515['length'];}}_0x5ba869[_0x117bb8]=_0x3930e6;}return _0x5ba869['join']('\x0a')['replace'](/\n/g,'');}function $(_0x7586b6){const _0x28fd3e=[];for(let _0x49221a=0x0;_0x49221a<_0x7586b6['length'];_0x49221a++){const _0xa33907=_0x7586b6['substring'](_0x49221a)['match'](/^&[a-z0-9#]+;/);if(_0xa33907){const _0x119a2f=_0xa33907[0x0];_0x28fd3e['push'](_0x119a2f),_0x49221a+=_0x119a2f['length']-0x1;}else _0x28fd3e['push'](_0x7586b6[_0x49221a]);}return _0x28fd3e;}class m extends _0x4c58b5{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x2297a1){super(_0x2297a1);const _0x23dd01=this['bindTemplate'];this['set']('message',o(_0x2297a1,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x2297a1,o(_0x2297a1,'Yes'),_0x1065dc,'submit'),this['cancelView']=this['_createButtonView'](_0x2297a1,o(_0x2297a1,'No'),_0x5a74e0,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x318fac(),this['keystrokes']=new _0x268b6c(),this['focusCycler']=new _0x15e150({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-thread__remove-confirm'],'tabindex':-0x1,'role':'alertdialog'},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner','role':'presentation'},'children':[{'tag':'p','children':[{'text':_0x23dd01['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['focus'](){this['cancelView']['element']['focus']({'preventScroll':!0x0});}['_createButtonView'](_0x38bcfb,_0x203473,_0x6daf8,_0x3bdca2){const _0x17b4f6=new _0x113a4f(_0x38bcfb);return _0x17b4f6['label']=_0x203473,_0x17b4f6['icon']=_0x6daf8,_0x17b4f6['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x3bdca2}}),_0x17b4f6['on']('execute',()=>this['fire'](_0x3bdca2)),_0x17b4f6;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x18919f=>{this['keystrokes']['listenTo'](_0x18919f['element']),this['focusTracker']['add'](_0x18919f['element']);}),this['keystrokes']['set']('esc',(_0xba91be,_0x83871e)=>{this['fire']('cancel'),_0x83871e();});}}function c(_0x169ceb){return class extends _0x169ceb{['showConfirm'](_0x4cc4af,_0x4c1260){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x4cc4af,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x4c1260['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x4256fd=>this['confirmView']['on']('submit',_0x4256fd));}['cancelConfirm'](){this['isConfirm']&&this['confirmView']['fire']('cancel');}['_removeConfirm'](){this['element']&&this['confirmView']&&this['confirmView']['element']&&(this['element']['focus'](),this['confirmView']['element']['remove'](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this['fire']('removeConfirm'),this['confirmView']['destroy'](),this['confirmView']=void 0x0);}};}function j(_0x2a49e8){let _0x2c4aa1=0x0,_0x26fdbe=0x0;for(const _0x190836 of M(_0x2a49e8))_0x2c4aa1=(_0x2c4aa1<<0x5)-_0x2c4aa1+_0x190836,_0x2c4aa1&=_0x2c4aa1,[_0x2c4aa1,_0x26fdbe]=[_0x26fdbe,_0x2c4aa1];return w(_0x2c4aa1)+w(_0x26fdbe);}function*g(_0x37791e){null==_0x37791e||null==_0x37791e?yield 0x12b9b0a1:0x0===_0x37791e||!0x1===_0x37791e?yield 0x0:0x1===_0x37791e||0x1==_0x37791e?yield 0x1:Array['isArray'](_0x37791e)?yield*function*(_0x423c34){for(const _0x253548 of _0x423c34)yield*g(_0x253548);}(_0x37791e):'object'==typeof _0x37791e?yield*M(_0x37791e):'string'==typeof _0x37791e?yield*O(_0x37791e):'number'==typeof _0x37791e&&(yield _0x37791e);}function*M(_0x5e3fa9){if(yield q('{'),_0x5e3fa9){const _0x5f6f1b=Object['keys'](_0x5e3fa9)['sort']();for(const _0x54b574 of _0x5f6f1b){yield*O(_0x54b574),yield q(':');const _0xed46f9=_0x5e3fa9[_0x54b574];yield*g(_0xed46f9);}}yield q('}');}function*O(_0x31cd3a){yield q('\x22');for(const _0x146d9c of _0x31cd3a)yield q(_0x146d9c);yield q('\x22');}function q(_0x586e6a){return _0x586e6a['charCodeAt'](0x0);}function w(_0x7f03b){return(_0x7f03b*=Math['sign'](_0x7f03b))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],D=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function S(_0x2a207d,_0x352ab3,_0x507162,_0x24424c=[]){const _0x577263='string'==typeof _0x2a207d?_0x507162['get'](_0x2a207d)['constructor']:_0x2a207d['prototype']['constructor'];if(_0x352ab3['has'](_0x577263))return _0x352ab3['get'](_0x577263);_0x352ab3['set'](_0x577263,!0x0);const _0x56c772=[...D,..._0x24424c]['map'](_0x1cab50=>{if(_0x507162['has'](_0x1cab50))return _0x507162['get'](_0x1cab50)['constructor'];})['filter'](_0x413a93=>_0x413a93);if(_0x577263&&_0x56c772['includes'](_0x577263))return _0x352ab3['set'](_0x577263,!0x1),!0x1;if(!_0x577263['requires'])return _0x352ab3['set'](_0x577263,!0x0),!0x0;const _0x55b177=_0x577263['requires']['every'](_0x11ae19=>S(_0x11ae19,_0x352ab3,_0x507162,_0x24424c));return _0x352ab3['set'](_0x577263,_0x55b177),_0x55b177;}function C(_0x3854f2,_0x25bee3){const _0x457fc6={};for(const _0x577d08 of _0x3854f2['config']['names']())W['includes'](_0x577d08)||(_0x457fc6[_0x577d08]=_0x3854f2['config']['get'](_0x577d08));const _0x2f71ef=_0x457fc6['plugins']||[],_0x41aeca=_0x3854f2['constructor']['builtinPlugins']||[],_0x321118=_0x2f71ef['length']?_0x2f71ef:_0x41aeca,_0x187b94=_0x457fc6['extraPlugins']||[];delete _0x457fc6['extraPlugins'];const _0x5af809=_0x457fc6['removePlugins']||[];delete _0x457fc6['removePlugins'];const _0x2908ca=_0x3854f2['_context']['config']['get']('plugins')||[],_0x277dfe=_0x321118['concat'](_0x187b94)['concat'](_0x2908ca)['map'](_0x3b5e72=>'string'==typeof _0x3b5e72?_0x41aeca['find'](_0x4f354f=>_0x4f354f['pluginName']==_0x3b5e72):_0x3b5e72)['filter'](_0x125203=>!_0x5af809['includes'](_0x125203)&&!_0x5af809['includes'](_0x125203['pluginName'])),_0x3dbf97=Array['from'](new Set(_0x277dfe)),_0x59af16=new Map();return _0x457fc6['plugins']=_0x3dbf97['filter'](_0x55fe4d=>S(_0x55fe4d,_0x59af16,_0x3854f2['plugins'],_0x25bee3)),_0x457fc6;}function z(_0x564f9f,_0x35fded){const _0x298393=[];_0x564f9f['document']['selection']['on']('change:range',()=>{const _0x3ddf37=function(_0xa6a80c,_0x46a03f){const _0x36c0a3=[];for(const _0x24002d of _0xa6a80c['markers']){const _0x5a46bc=_0x24002d['getRange']();(_0x5a46bc['containsPosition'](_0x46a03f)||_0x5a46bc['start']['isEqual'](_0x46a03f)||_0x5a46bc['end']['isEqual'](_0x46a03f))&&_0x36c0a3['push'](_0x24002d);}return _0x36c0a3;}(_0x564f9f,_0x564f9f['document']['selection']['focus']),_0x1c61d8=[],_0x11ffcd=[],_0x1c6d95=[];for(const _0x2bccb6 of _0x298393)_0x3ddf37['includes'](_0x2bccb6)||_0x1c61d8['push'](_0x2bccb6);for(const _0x567dc9 of _0x3ddf37)_0x298393['includes'](_0x567dc9)||_0x11ffcd['push'](_0x567dc9),_0x1c6d95['push'](_0x567dc9);(_0x1c61d8['length']||_0x11ffcd['length'])&&_0x35fded({'left':_0x1c61d8,'entered':_0x11ffcd}),_0x298393['length']=0x0,_0x298393['push'](..._0x1c6d95);});}const J='Ctrl+Shift+E';function T(_0x15fa84,_0x2a62ed){const _0x404eaf=_0x15fa84['element'];_0x15fa84['keystrokes']['listenTo'](_0x404eaf);for(const _0x34700f of _0x2a62ed)K(_0x15fa84,_0x34700f);_0x2a62ed['on']('change',(_0x3d8879,_0x46b1b0)=>{for(const _0x2ebe3b of _0x46b1b0['removed'])_(_0x15fa84,_0x2ebe3b);for(const _0x1770b1 of Array['from'](_0x46b1b0['added'])['reverse']())K(_0x15fa84,_0x1770b1);}),_0x15fa84['keystrokes']['set']('enter',(_0x3ffe8c,_0x31dec0)=>{_0x404eaf===_0x3ffe8c['target']&&(_0x15fa84['focusCycler']['focusFirst'](),_0x31dec0());},{'filter':_0x269e0b=>_0x269e0b['target']===_0x404eaf}),_0x15fa84['keystrokes']['set']('esc',(_0x11b82e,_0xa5783b)=>{_0x404eaf!==_0x11b82e['target']?_0x15fa84['focus']():_0x15fa84['fire']('escape'),_0xa5783b();}),_0x15fa84['keystrokes']['set']('arrowdown',(_0x362efd,_0xf815c8)=>{_0x404eaf===_0x362efd['target']&&(_0x15fa84['fire']('arrowdown'),_0xf815c8());}),_0x15fa84['keystrokes']['set']('arrowup',(_0x1e0a48,_0x210064)=>{_0x404eaf===_0x1e0a48['target']&&(_0x15fa84['fire']('arrowup'),_0x210064());});}function K(_0x1c0bde,_0x5ae54c){_0x5ae54c['isRendered']&&(_0x1c0bde['focusTracker']['add'](_0x5ae54c['element']),_0x1c0bde['keystrokes']['listenTo'](_0x5ae54c['element']),_0x15d299(_0x5ae54c)&&function(_0x343a82,_0x321f6a){const _0x3fcae2=_0x343a82['actions'],_0x427d76=_0x321f6a['actions'];for(const _0x315acd of Object['keys'](_0x3fcae2))if(_0x315acd in _0x427d76&&_0x3fcae2[_0x315acd]!==_0x427d76[_0x315acd])return!0x1;return!0x0;}(_0x1c0bde['focusCycler'],_0x5ae54c['focusCycler'])&&_0x1c0bde['focusCycler']['chain'](_0x5ae54c['focusCycler']));}function _(_0x3932e7,_0x224aa9){_0x3932e7['focusTracker']['remove'](_0x224aa9['element']),_0x3932e7['keystrokes']['stopListening'](_0x224aa9['element']),_0x15d299(_0x224aa9)&&_0x3932e7['focusCycler']['unchain'](_0x224aa9['focusCycler']);}export{H as AriaDescriptionView,c as ConfirmMixin,J as FOCUS_ANNOTATION_KEYSTROKE,U as LateFocusButtonView,Y as LateFocusDropdownButtonView,n as Permissions,F as UserView,u as Users,R as getAllMarkersDomElementsSorted,E as getDateTimeFormatter,A as getMarkerDomElement,j as hashObject,C as sanitizeEditorConfig,T as setupThreadKeyboardNavigation,z as surroundingMarkersDetector,Z as trimHtml};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "45.2.1-alpha.7",
3
+ "version": "45.2.1-alpha.9",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -32,15 +32,15 @@
32
32
  "type": "module",
33
33
  "main": "src/index.js",
34
34
  "dependencies": {
35
- "@ckeditor/ckeditor5-comments": "45.2.1-alpha.7",
36
- "@ckeditor/ckeditor5-core": "45.2.1-alpha.7",
37
- "@ckeditor/ckeditor5-icons": "45.2.1-alpha.7",
38
- "@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.7",
39
- "@ckeditor/ckeditor5-track-changes": "45.2.1-alpha.7",
40
- "@ckeditor/ckeditor5-ui": "45.2.1-alpha.7",
41
- "@ckeditor/ckeditor5-utils": "45.2.1-alpha.7",
35
+ "@ckeditor/ckeditor5-comments": "45.2.1-alpha.9",
36
+ "@ckeditor/ckeditor5-core": "45.2.1-alpha.9",
37
+ "@ckeditor/ckeditor5-icons": "45.2.1-alpha.9",
38
+ "@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.9",
39
+ "@ckeditor/ckeditor5-track-changes": "45.2.1-alpha.9",
40
+ "@ckeditor/ckeditor5-ui": "45.2.1-alpha.9",
41
+ "@ckeditor/ckeditor5-utils": "45.2.1-alpha.9",
42
42
  "@types/luxon": "3.4.2",
43
- "ckeditor5": "45.2.1-alpha.7",
43
+ "ckeditor5": "45.2.1-alpha.9",
44
44
  "luxon": "3.5.0"
45
45
  },
46
46
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x9586(_0x53c32a,_0x5c98d5){var _0x55184f=_0x5518();return _0x9586=function(_0x958653,_0x50fb77){_0x958653=_0x958653-0x100;var _0x195305=_0x55184f[_0x958653];return _0x195305;},_0x9586(_0x53c32a,_0x5c98d5);}(function(_0x20feca,_0x42eb0c){var _0x23ba9b=_0x9586,_0x465572=_0x20feca();while(!![]){try{var _0x471a06=-parseInt(_0x23ba9b(0x101))/0x1+parseInt(_0x23ba9b(0x106))/0x2*(-parseInt(_0x23ba9b(0x108))/0x3)+-parseInt(_0x23ba9b(0x107))/0x4+parseInt(_0x23ba9b(0x104))/0x5+-parseInt(_0x23ba9b(0x10c))/0x6+parseInt(_0x23ba9b(0x103))/0x7*(-parseInt(_0x23ba9b(0x102))/0x8)+parseInt(_0x23ba9b(0x105))/0x9;if(_0x471a06===_0x42eb0c)break;else _0x465572['push'](_0x465572['shift']());}catch(_0x20f552){_0x465572['push'](_0x465572['shift']());}}}(_0x5518,0x346c7));import{uid as _0xa4b988}from'ckeditor5/src/utils.js';import{View as _0x2a01c7}from'ckeditor5/src/ui.js';function _0x5518(){var _0x5ca0d3=['ck-aria-description-','setTemplate','ck-aria-description','2338656bJSnGa','span','257619RnWZaP','24CrQsYC','482153GVlKfg','1658095OfWHtx','13578399UEwfws','122320YIdVyy','1373804EkFIwQ','21zFbXcw'];_0x5518=function(){return _0x5ca0d3;};return _0x5518();}export default class F extends _0x2a01c7{['id'];constructor(_0x2768e5,_0x36cb24){var _0x37ae7d=_0x9586;super(_0x2768e5),this['id']=_0x37ae7d(0x109)+_0xa4b988(),this[_0x37ae7d(0x10a)]({'tag':_0x37ae7d(0x100),'attributes':{'class':['ck',_0x37ae7d(0x10b)],'id':this['id']},'children':[{'text':_0x36cb24}]});}}
23
+ (function(_0x53b328,_0x5edc11){var _0x4a1ca1=_0x3c78,_0x5d96a=_0x53b328();while(!![]){try{var _0x733933=-parseInt(_0x4a1ca1(0xe3))/0x1*(-parseInt(_0x4a1ca1(0xda))/0x2)+-parseInt(_0x4a1ca1(0xe4))/0x3*(-parseInt(_0x4a1ca1(0xe5))/0x4)+parseInt(_0x4a1ca1(0xd8))/0x5+-parseInt(_0x4a1ca1(0xdc))/0x6*(parseInt(_0x4a1ca1(0xe1))/0x7)+parseInt(_0x4a1ca1(0xe0))/0x8*(parseInt(_0x4a1ca1(0xdd))/0x9)+-parseInt(_0x4a1ca1(0xd9))/0xa+-parseInt(_0x4a1ca1(0xde))/0xb;if(_0x733933===_0x5edc11)break;else _0x5d96a['push'](_0x5d96a['shift']());}catch(_0x2006fb){_0x5d96a['push'](_0x5d96a['shift']());}}}(_0x40e2,0x51e2d));import{uid as _0x31f39a}from'ckeditor5/src/utils.js';import{View as _0x45c921}from'ckeditor5/src/ui.js';function _0x3c78(_0x1f42ef,_0x481213){var _0x40e2a7=_0x40e2();return _0x3c78=function(_0x3c78bf,_0x3fb79e){_0x3c78bf=_0x3c78bf-0xd8;var _0x1fa18b=_0x40e2a7[_0x3c78bf];return _0x1fa18b;},_0x3c78(_0x1f42ef,_0x481213);}export default class H extends _0x45c921{['id'];constructor(_0x46b087,_0x2afa2f){var _0x2a63e4=_0x3c78;super(_0x46b087),this['id']=_0x2a63e4(0xdf)+_0x31f39a(),this[_0x2a63e4(0xe6)]({'tag':_0x2a63e4(0xdb),'attributes':{'class':['ck',_0x2a63e4(0xe2)],'id':this['id']},'children':[{'text':_0x2afa2f}]});}}function _0x40e2(){var _0x370058=['36uYGBfe','5528545bezAqH','ck-aria-description-','1260752iagchR','100177kuHTGI','ck-aria-description','763DZchgp','116511BZHARb','60hrKavz','setTemplate','487005aWjhnh','4789560TIoVuz','430ljMqMU','span','66Wuqqcb'];_0x40e2=function(){return _0x370058;};return _0x40e2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x9cf1a9=_0x1b10;(function(_0x3c701e,_0x2ff86d){var _0x5f4818=_0x1b10,_0x386aa9=_0x3c701e();while(!![]){try{var _0x1fba0c=-parseInt(_0x5f4818(0x18e))/0x1+-parseInt(_0x5f4818(0x18b))/0x2+-parseInt(_0x5f4818(0x197))/0x3*(-parseInt(_0x5f4818(0x189))/0x4)+-parseInt(_0x5f4818(0x18c))/0x5+-parseInt(_0x5f4818(0x191))/0x6+parseInt(_0x5f4818(0x195))/0x7*(parseInt(_0x5f4818(0x190))/0x8)+parseInt(_0x5f4818(0x18d))/0x9;if(_0x1fba0c===_0x2ff86d)break;else _0x386aa9['push'](_0x386aa9['shift']());}catch(_0x2a89d1){_0x386aa9['push'](_0x386aa9['shift']());}}}(_0x5463,0x8fe50));import{ButtonView as _0x35ba3c,DropdownButtonView as _0x4b9738}from'ckeditor5/src/ui.js';function _0x1b10(_0x532c9e,_0x5a246f){var _0x5463d4=_0x5463();return _0x1b10=function(_0x1b10c2,_0x2bd3e4){_0x1b10c2=_0x1b10c2-0x189;var _0x49e149=_0x5463d4[_0x1b10c2];return _0x49e149;},_0x1b10(_0x532c9e,_0x5a246f);}function _0x5463(){var _0xed7521=['16oQitcN','5530830FwPWzs','render','focus','element','3582901DIbHWp','stopPropagation','42jutEJH','preventDefault','mouseup','229192QAfxxu','listenTo','2183976nzgjLt','4798070MpZddq','18567468BQeRgG','326111ZjntMq','mousedown'];_0x5463=function(){return _0xed7521;};return _0x5463();}export class LateFocusButtonView extends _0x35ba3c{[_0x9cf1a9(0x192)](){var _0x29a94f=_0x9cf1a9;super[_0x29a94f(0x192)](),V(this);}}export class LateFocusDropdownButtonView extends _0x4b9738{[_0x9cf1a9(0x192)](){var _0x40fda8=_0x9cf1a9;super[_0x40fda8(0x192)](),V(this);}}function V(_0x1312b0){var _0x2e697c=_0x9cf1a9;_0x1312b0[_0x2e697c(0x18a)](_0x1312b0[_0x2e697c(0x194)],_0x2e697c(0x18f),(_0x42bb59,_0x230a65)=>{var _0x5f13af=_0x2e697c;_0x230a65[_0x5f13af(0x196)](),_0x230a65[_0x5f13af(0x198)]();}),_0x1312b0[_0x2e697c(0x18a)](_0x1312b0[_0x2e697c(0x194)],_0x2e697c(0x199),()=>{var _0xd6dbd4=_0x2e697c;_0x1312b0[_0xd6dbd4(0x194)][_0xd6dbd4(0x193)]();});}
23
+ var _0x7132db=_0x57ff;(function(_0x1ccede,_0x383fb1){var _0x1beda8=_0x57ff,_0x411cc5=_0x1ccede();while(!![]){try{var _0x1e199d=parseInt(_0x1beda8(0x123))/0x1+parseInt(_0x1beda8(0x11b))/0x2+parseInt(_0x1beda8(0x11c))/0x3*(-parseInt(_0x1beda8(0x119))/0x4)+-parseInt(_0x1beda8(0x115))/0x5*(parseInt(_0x1beda8(0x122))/0x6)+parseInt(_0x1beda8(0x120))/0x7+-parseInt(_0x1beda8(0x11d))/0x8+parseInt(_0x1beda8(0x118))/0x9;if(_0x1e199d===_0x383fb1)break;else _0x411cc5['push'](_0x411cc5['shift']());}catch(_0x3eb419){_0x411cc5['push'](_0x411cc5['shift']());}}}(_0x4e5a,0x350d5));import{ButtonView as _0x5cc2a4,DropdownButtonView as _0x3dd6f5}from'ckeditor5/src/ui.js';export class LateFocusButtonView extends _0x5cc2a4{[_0x7132db(0x11a)](){var _0x39fc94=_0x7132db;super[_0x39fc94(0x11a)](),I(this);}}function _0x4e5a(){var _0x726edd=['1197879fgAckC','2647376QgrfDg','mousedown','listenTo','473956zwxJMk','stopPropagation','6WxEPof','230146IVWAIw','element','preventDefault','2055935OXMupW','mouseup','focus','8142174cHvNSb','4vLnsjd','render','312326MgcRvm'];_0x4e5a=function(){return _0x726edd;};return _0x4e5a();}export class LateFocusDropdownButtonView extends _0x3dd6f5{[_0x7132db(0x11a)](){var _0x17babe=_0x7132db;super[_0x17babe(0x11a)](),I(this);}}function _0x57ff(_0x5e4519,_0x24ae3f){var _0x4e5a96=_0x4e5a();return _0x57ff=function(_0x57ffd7,_0x5ca0f4){_0x57ffd7=_0x57ffd7-0x113;var _0x105770=_0x4e5a96[_0x57ffd7];return _0x105770;},_0x57ff(_0x5e4519,_0x24ae3f);}function I(_0x43f98d){var _0x57aef0=_0x7132db;_0x43f98d[_0x57aef0(0x11f)](_0x43f98d[_0x57aef0(0x113)],_0x57aef0(0x11e),(_0x3fc35c,_0x33388c)=>{var _0x5574e8=_0x57aef0;_0x33388c[_0x5574e8(0x121)](),_0x33388c[_0x5574e8(0x114)]();}),_0x43f98d[_0x57aef0(0x11f)](_0x43f98d[_0x57aef0(0x113)],_0x57aef0(0x116),()=>{var _0x39ab59=_0x57aef0;_0x43f98d[_0x39ab59(0x113)][_0x39ab59(0x117)]();});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4462aa=_0x5c28;function _0xc7a9(){const _0xa9cc61=['33659395ViTOBh','ck-user__icon','push','initials','ck-user__notification','8152JiFqnJ','ck-user__img','avatar','div','ck\x20ck-user__name\x20ck-user__name--hidden','isAnonymous','6405eQrxkA','ck\x20ck-user__name','ck-user_me','url(\x27','notificationView','setTemplate','5681588SjrZZn','10QYfWki','content','ck-user','18gckiJm','5058oiacOg','extendTemplate','ck-user__avatar','name','ck-user__anonymous','57283qSwekE','2576667elgZkU','6276RqrokC','1069579CeUPit','isMe'];_0xc7a9=function(){return _0xa9cc61;};return _0xc7a9();}(function(_0x4c76d7,_0x4cbf55){const _0x4b56e8=_0x5c28,_0x26c173=_0x4c76d7();while(!![]){try{const _0x5cd897=parseInt(_0x4b56e8(0x1de))/0x1*(-parseInt(_0x4b56e8(0x1d8))/0x2)+-parseInt(_0x4b56e8(0x1df))/0x3+-parseInt(_0x4b56e8(0x1f4))/0x4+-parseInt(_0x4b56e8(0x1ee))/0x5*(-parseInt(_0x4b56e8(0x1e0))/0x6)+-parseInt(_0x4b56e8(0x1e1))/0x7+parseInt(_0x4b56e8(0x1e8))/0x8*(-parseInt(_0x4b56e8(0x1d9))/0x9)+-parseInt(_0x4b56e8(0x1f5))/0xa*(-parseInt(_0x4b56e8(0x1e3))/0xb);if(_0x5cd897===_0x4cbf55)break;else _0x26c173['push'](_0x26c173['shift']());}catch(_0x43665d){_0x26c173['push'](_0x26c173['shift']());}}}(_0xc7a9,0xd6bcb));import{View as _0x3222cc,IconView as _0x472bbf}from'ckeditor5/src/ui.js';import{IconNotification as _0x35c34c}from'ckeditor5/src/icons.js';function _0x5c28(_0x535085,_0x5e8c7f){const _0x5c28f6=_0xc7a9();return _0x5c28=function(_0x323a75,_0x72d6e2){_0x323a75=_0x323a75-0x1d8;let _0x2ef59c=_0x5c28f6[_0x323a75];return _0x2ef59c;},_0x5c28(_0x535085,_0x5e8c7f);}import'../../../theme/users.css';export default class I extends _0x3222cc{[_0x4462aa(0x1dc)];[_0x4462aa(0x1f2)];constructor(_0x2ba00a,_0x910def,_0x297a2d){const _0x43fba8=_0x4462aa;super(_0x2ba00a),this[_0x43fba8(0x1dc)]=_0x910def[_0x43fba8(0x1dc)],this[_0x43fba8(0x1f2)]=null;const _0x5258c3=['ck',_0x43fba8(0x1f7)],_0x41c156=['ck',_0x43fba8(0x1e9)];if(_0x910def[_0x43fba8(0x1ed)]&&_0x41c156[_0x43fba8(0x1e5)](_0x43fba8(0x1dd)),!_0x910def[_0x43fba8(0x1ed)]&&_0x910def[_0x43fba8(0x1e2)]&&_0x5258c3[_0x43fba8(0x1e5)](_0x43fba8(0x1f0)),_0x910def[_0x43fba8(0x1ea)]&&_0x41c156[_0x43fba8(0x1e5)](_0x43fba8(0x1db)),_0x297a2d){const _0x2b8d55=new _0x472bbf();_0x2b8d55[_0x43fba8(0x1da)]({'attributes':{'class':[_0x43fba8(0x1e4)]}}),_0x2b8d55[_0x43fba8(0x1f6)]=_0x35c34c,this[_0x43fba8(0x1f2)]={'tag':_0x43fba8(0x1eb),'attributes':{'class':['ck',_0x43fba8(0x1e7)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x297a2d},'children':[_0x2b8d55]};}const _0x313b62=[{'tag':_0x43fba8(0x1eb),'attributes':{'class':_0x41c156,'style':{'background-image':_0x910def[_0x43fba8(0x1ea)]?_0x43fba8(0x1f1)+_0x910def[_0x43fba8(0x1ea)]+'\x27)':''}}},{'tag':_0x43fba8(0x1eb),'attributes':{'class':_0x910def[_0x43fba8(0x1ea)]?_0x43fba8(0x1ec):_0x43fba8(0x1ef),'aria-label':_0x910def[_0x43fba8(0x1dc)]},'children':[{'text':_0x910def[_0x43fba8(0x1e6)]}]}];this[_0x43fba8(0x1f2)]&&_0x313b62[_0x43fba8(0x1e5)](this[_0x43fba8(0x1f2)]),this[_0x43fba8(0x1f3)]({'tag':_0x43fba8(0x1eb),'attributes':{'class':_0x5258c3,'data-user-id':_0x910def['id']},'children':_0x313b62});}}
23
+ const _0xbc72c6=_0x5d8e;(function(_0x363530,_0x2705bb){const _0x3ae41c=_0x5d8e,_0x3684ef=_0x363530();while(!![]){try{const _0x31383e=-parseInt(_0x3ae41c(0x18c))/0x1*(-parseInt(_0x3ae41c(0x1a0))/0x2)+-parseInt(_0x3ae41c(0x19a))/0x3*(-parseInt(_0x3ae41c(0x1a8))/0x4)+parseInt(_0x3ae41c(0x18f))/0x5*(-parseInt(_0x3ae41c(0x1a7))/0x6)+-parseInt(_0x3ae41c(0x1a1))/0x7*(parseInt(_0x3ae41c(0x1a9))/0x8)+-parseInt(_0x3ae41c(0x19c))/0x9+parseInt(_0x3ae41c(0x1a6))/0xa+parseInt(_0x3ae41c(0x190))/0xb;if(_0x31383e===_0x2705bb)break;else _0x3684ef['push'](_0x3684ef['shift']());}catch(_0x4eb42d){_0x3684ef['push'](_0x3684ef['shift']());}}}(_0x9a49,0x85e81));function _0x5d8e(_0x91857c,_0x34756b){const _0x9a4991=_0x9a49();return _0x5d8e=function(_0x5d8ec2,_0x795479){_0x5d8ec2=_0x5d8ec2-0x18a;let _0x5c6b7f=_0x9a4991[_0x5d8ec2];return _0x5c6b7f;},_0x5d8e(_0x91857c,_0x34756b);}function _0x9a49(){const _0xce4fff=['259MEsGLs','setTemplate','isMe','ck-user__img','ck\x20ck-user__name\x20ck-user__name--hidden','6884530JCFgXY','5358594IpPfUF','4HKmRgE','134416PLscUZ','ck-user__avatar','content','180233DcXoqx','avatar','ck\x20ck-user__name','5pVGocC','17581916PDWkcL','push','isAnonymous','ck-user__notification','notificationView','ck-user__anonymous','url(\x27','ck-user','name','ck-user__icon','451131lTXKYV','div','8231679UijRnk','ck-user_me','initials','extendTemplate','6aiVohx'];_0x9a49=function(){return _0xce4fff;};return _0x9a49();}import{View as _0x326a41,IconView as _0x2ce996}from'ckeditor5/src/ui.js';import{IconNotification as _0x114a2a}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export default class F extends _0x326a41{[_0xbc72c6(0x198)];[_0xbc72c6(0x194)];constructor(_0x119d46,_0x3f45d6,_0x4e980f){const _0x27b27f=_0xbc72c6;super(_0x119d46),this[_0x27b27f(0x198)]=_0x3f45d6[_0x27b27f(0x198)],this[_0x27b27f(0x194)]=null;const _0xf4ef81=['ck',_0x27b27f(0x197)],_0x4ca138=['ck',_0x27b27f(0x1a4)];if(_0x3f45d6[_0x27b27f(0x192)]&&_0x4ca138[_0x27b27f(0x191)](_0x27b27f(0x195)),!_0x3f45d6[_0x27b27f(0x192)]&&_0x3f45d6[_0x27b27f(0x1a3)]&&_0xf4ef81[_0x27b27f(0x191)](_0x27b27f(0x19d)),_0x3f45d6[_0x27b27f(0x18d)]&&_0x4ca138[_0x27b27f(0x191)](_0x27b27f(0x18a)),_0x4e980f){const _0x592d4f=new _0x2ce996();_0x592d4f[_0x27b27f(0x19f)]({'attributes':{'class':[_0x27b27f(0x199)]}}),_0x592d4f[_0x27b27f(0x18b)]=_0x114a2a,this[_0x27b27f(0x194)]={'tag':_0x27b27f(0x19b),'attributes':{'class':['ck',_0x27b27f(0x193)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4e980f},'children':[_0x592d4f]};}const _0x58101c=[{'tag':_0x27b27f(0x19b),'attributes':{'class':_0x4ca138,'style':{'background-image':_0x3f45d6[_0x27b27f(0x18d)]?_0x27b27f(0x196)+_0x3f45d6[_0x27b27f(0x18d)]+'\x27)':''}}},{'tag':_0x27b27f(0x19b),'attributes':{'class':_0x3f45d6[_0x27b27f(0x18d)]?_0x27b27f(0x1a5):_0x27b27f(0x18e),'aria-label':_0x3f45d6[_0x27b27f(0x198)]},'children':[{'text':_0x3f45d6[_0x27b27f(0x19e)]}]}];this[_0x27b27f(0x194)]&&_0x58101c[_0x27b27f(0x191)](this[_0x27b27f(0x194)]),this[_0x27b27f(0x1a2)]({'tag':_0x27b27f(0x19b),'attributes':{'class':_0xf4ef81,'data-user-id':_0x3f45d6['id']},'children':_0x58101c});}}