@ckeditor/ckeditor5-collaboration-core 45.2.1-alpha.0 → 45.2.1-alpha.1

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 _0x502da5,Editor as _0x39b110}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x246693,Collection as _0x7a321c,uid as _0x4d2b0a,first as _0x58906d,FocusTracker as _0x599672,KeystrokeHandler as _0x1a6be9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x433ae5,IconView as _0x50a12d,ButtonView as _0x51b998,DropdownButtonView as _0x3e422c,FocusCycler as _0x96287c,isViewWithFocusCycler as _0x645fef}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x8f2c15,IconCheck as _0x3008d6,IconCancel as _0x6a5923}from'@ckeditor/ckeditor5-icons/dist/index.js';import{DateTime as _0x1add36}from'luxon';class n extends _0x502da5{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x55cd53,_0x3b5f47){let _0xeae669;if(_0x3b5f47||(_0x3b5f47=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x3b5f47?_0xeae669=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0xeae669=this['context']['editors']['find'](_0x5b98fd=>_0x5b98fd['config']['get']('collaboration.channelId')==_0x3b5f47)),!_0xeae669)throw new _0x246693('permissions-set-permissions-invalid-channel-id',null);const _0xc30487=_0xeae669['plugins'],_0x34e2ba=_0xc30487['has']('CommentsRepository')?_0xc30487['get']('CommentsRepository'):void 0x0,_0x318a9a=_0xc30487['has']('CommentsOnly')&&_0xc30487['get']('CommentsOnly'),_0xdd3ee=_0x55cd53['includes']('document:write'),_0x182690=_0x55cd53['includes']('comment:modify_all'),_0x18263d=_0x55cd53['includes']('comment:admin'),_0x1d484d=_0x55cd53['includes']('comment:write'),_0x454f0a=_0x1d484d||_0x18263d,_0x44fddb=_0x454f0a||_0x182690,_0x48a4cd=_0xdd3ee||_0x454f0a;(_0x318a9a&&(_0x318a9a['isEnabled']=!_0xdd3ee&&_0x44fddb),_0xeae669 instanceof _0x39b110)&&(!(_0xdd3ee||_0x44fddb&&_0x34e2ba)?_0xeae669['enableReadOnlyMode']('no-permissions'):_0xeae669['disableReadOnlyMode']('no-permissions'));if(_0x34e2ba){_0x34e2ba['setPermissions']({'admin':_0x18263d,'modifyAll':_0x182690,'write':_0x1d484d,'resolve':_0x48a4cd},_0x3b5f47);const _0x354e5c=_0xeae669 instanceof _0x39b110&&_0xeae669['commands']['get']('addCommentThread');_0x354e5c&&(_0x454f0a?_0x354e5c['clearForceDisabled']('noPermissions'):_0x354e5c['forceDisabled']('noPermissions'));}}}function o(_0x2ff252,_0x87ef19){const t=_0x2ff252['t'];switch(_0x87ef19){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 _0x502da5{['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(_0x2b4e22){super(_0x2b4e22),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x7a321c(),this['_locale']=_0x2b4e22['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:_0x42bf40,name:_0x3a5c96,..._0x44ebc9}){if(!_0x42bf40||'string'!=typeof _0x42bf40)throw new _0x246693('users-add-invalid-id');if(this['users']['has'](_0x42bf40))throw new _0x246693('users-add-duplicated-id',null,{'id':_0x42bf40});const _0x39b84e=this['context']['config']['get']('users.getInitialsCallback'),_0x3c11b8={..._0x44ebc9,'id':_0x42bf40,'name':h(this['_locale'],_0x3a5c96),'color':this['_getNextColor']()};_0x3c11b8['name']=h(this['_locale'],_0x3c11b8['name']);const _0x63535a=new P(_0x3c11b8,_0x39b84e);return this['users']['add'](_0x63535a),_0x63535a;}['getUser'](_0x2e20bc){return this['users']['get'](_0x2e20bc);}['useAnonymousUser'](){const _0x48f815=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x48f815);}['defineMe'](_0x579edf){if(this['_myId'])throw new _0x246693('users-me-already-defined',null);const _0x486935=this['getUser'](_0x579edf);if(!_0x486935)throw new _0x246693('users-me-missing-user',null);this['_myId']=_0x579edf,_0x486935['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x8a68ec=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x8a68ec&&(this['_lastColor']=0x0),new l(this['_lastColor']++);}['_addAnonymousUser'](){const _0x578c7c=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x578c7c,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x3bfccd,_0x4e3c0c){this['id']=_0x3bfccd['id'],this['color']=_0x3bfccd['color'],this['name']=_0x3bfccd['name'],this['initials']=_0x4e3c0c?_0x4e3c0c(this['name']):this['_computeInitials'](),this['avatar']=_0x3bfccd['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x4d20c8=this['name']['split']('\x20')['filter'](_0x46e8c5=>/^[\p{Letter}]/u['test'](_0x46e8c5));return 0x1===_0x4d20c8['length']?this['_getInitial'](_0x4d20c8[0x0]):0x0===_0x4d20c8['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x4d20c8[0x0])+this['_getInitial'](_0x4d20c8[_0x4d20c8['length']-0x1]);}['_getInitial'](_0x5c0d13){return String['fromCodePoint'](_0x5c0d13['codePointAt'](0x0))['toUpperCase']();}}function h(_0x540d37,_0x2ba7b6=''){return''==(_0x2ba7b6=_0x2ba7b6['trim']())?o(_0x540d37,'Anonymous'):_0x2ba7b6;}class l{['_id'];constructor(_0x68bdcb){this['_id']=_0x68bdcb;}['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 _0x433ae5{['name'];['notificationView'];constructor(_0x2f8d08,_0x1e42ff,_0x583505){super(_0x2f8d08),this['name']=_0x1e42ff['name'],this['notificationView']=null;const _0x209ee8=['ck','ck-user'],_0x38d83d=['ck','ck-user__img'];if(_0x1e42ff['isAnonymous']&&_0x38d83d['push']('ck-user__anonymous'),!_0x1e42ff['isAnonymous']&&_0x1e42ff['isMe']&&_0x209ee8['push']('ck-user_me'),_0x1e42ff['avatar']&&_0x38d83d['push']('ck-user__avatar'),_0x583505){const _0x12bfe2=new _0x50a12d();_0x12bfe2['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x12bfe2['content']=_0x8f2c15,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x583505},'children':[_0x12bfe2]};}const _0x378a5f=[{'tag':'div','attributes':{'class':_0x38d83d,'style':{'background-image':_0x1e42ff['avatar']?'url(\x27'+_0x1e42ff['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x1e42ff['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x1e42ff['name']},'children':[{'text':_0x1e42ff['initials']}]}];this['notificationView']&&_0x378a5f['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x209ee8,'data-user-id':_0x1e42ff['id']},'children':_0x378a5f});}}class H extends _0x433ae5{['id'];constructor(_0x21cff6,_0x21d95a){super(_0x21cff6),this['id']='ck-aria-description-'+_0x4d2b0a(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x21d95a}]});}}class U extends _0x51b998{['render'](){super['render'](),I(this);}}class Y extends _0x3e422c{['render'](){super['render'](),I(this);}}function I(_0x55eaa3){_0x55eaa3['listenTo'](_0x55eaa3['element'],'mousedown',(_0x40eb4e,_0x41e49a)=>{_0x41e49a['stopPropagation'](),_0x41e49a['preventDefault']();}),_0x55eaa3['listenTo'](_0x55eaa3['element'],'mouseup',()=>{_0x55eaa3['element']['focus']();});}function E(_0x32149c={},_0x4dcce0){if(void 0x0!==_0x32149c['dateTimeFormat']&&'function'!=typeof _0x32149c['dateTimeFormat'])throw new _0x246693('invalid-date-time-format');return _0x11d8f6=>{const _0x4ec7bd='string'==typeof _0x11d8f6?_0x1add36['fromISO'](_0x11d8f6):_0x1add36['fromJSDate'](_0x11d8f6),_0x9e1a45=_0x1add36['now'](),_0x13a676=Math['floor'](_0x9e1a45['diff'](_0x4ec7bd,'days')['days']);return _0x32149c['dateTimeFormat']?_0x32149c['dateTimeFormat'](_0x4ec7bd['toJSDate'](),_0x4dcce0&&_0x4dcce0['t']?_0x4dcce0['t']:void 0x0):0x0===_0x13a676?_0x4dcce0?o(_0x4dcce0,'Today')+'\x20'+_0x4ec7bd['toFormat']('hh:mma'):_0x4ec7bd['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x13a676?_0x4dcce0?o(_0x4dcce0,'Yesterday')+'\x20'+_0x4ec7bd['toFormat']('hh:mma'):_0x4ec7bd['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x13a676<0x7?_0x4dcce0?o(_0x4dcce0,'Last')+'\x20'+o(_0x4dcce0,_0x4ec7bd['toFormat']('EEEE'))+'\x20'+_0x4ec7bd['toFormat']('hh:mma'):_0x4ec7bd['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x4ec7bd['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x14ca76,_0x365519){const _0x4a50d5=_0x14ca76['mapper']['markerNameToElements'](_0x365519['name']);if(!_0x4a50d5)return null;const _0x154991=_0x58906d(_0x4a50d5['values']());return _0x14ca76['view']['domConverter']['mapViewToDom'](_0x154991)||null;}function R(_0x448470,_0x59e5f4){if(0x0===_0x59e5f4['length'])return null;const _0x43a9a7=[],_0x366ebd=_0x448470['view']['domConverter'];for(const _0x5cae1f of _0x59e5f4){const _0xda850c=_0x448470['mapper']['markerNameToElements'](_0x5cae1f['name']);if(!_0xda850c)continue;const _0x19ee3f=Array['from'](_0xda850c)['map'](_0x12c5f1=>_0x366ebd['mapViewToDom'](_0x12c5f1))['filter'](_0x3e420f=>!!_0x3e420f);_0x43a9a7['push'](..._0x19ee3f);}if(0x0===_0x43a9a7['length'])return null;const _0x59e6cd=[];for(const _0x5a30ce of _0x43a9a7){const _0x16aaa4=_0x5a30ce['getClientRects']()['item'](0x0);_0x16aaa4&&_0x59e6cd['push']({'x':_0x16aaa4['x'],'y':_0x16aaa4['y'],'domElement':_0x5a30ce});}return 0x0===_0x59e6cd['length']?null:(_0x59e6cd['sort']((_0x281939,_0x116a00)=>_0x281939['y']-_0x116a00['y']||_0x281939['x']-_0x116a00['x']),_0x59e6cd['map'](_0x25a3fd=>_0x25a3fd['domElement']));}function Z(_0x5e974e,{limit:_0x305b7c,suffix:_0x135077='...'}){const _0x1413f8=[];let _0x442e71=0x0;const _0x1769ca=_0x5e974e['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x26e906=0x0;_0x26e906<_0x1769ca['length'];_0x26e906++){let _0x25afb7=_0x1769ca[_0x26e906];const _0x56c0d4=$(_0x25afb7);if(_0x25afb7['startsWith']('<')){if(_0x442e71>=_0x305b7c){const _0x4e6dc6=_0x25afb7['match'](/[a-zA-Z]+/);if(!_0x4e6dc6){_0x1769ca[_0x26e906]='';continue;}const _0xc70e83=_0x4e6dc6[0x0];_0x25afb7['startsWith']('</')?(_0x1413f8['length']&&(_0x25afb7=''),_0x1413f8['pop']()):(_0x1413f8['push'](_0xc70e83),_0x25afb7='');}}else{if(_0x442e71>=_0x305b7c)_0x25afb7='';else{if(_0x442e71+_0x56c0d4['length']>=_0x305b7c){let _0x3acdb4=_0x305b7c-_0x442e71;if('\x20'===_0x56c0d4[_0x3acdb4-0x1])_0x3acdb4--;else{const _0x5cb0b2=_0x56c0d4['slice'](_0x3acdb4)['indexOf']('\x20');-0x1!==_0x5cb0b2?_0x3acdb4+=_0x5cb0b2:_0x3acdb4=_0x25afb7['length'];}_0x25afb7=_0x56c0d4['slice'](0x0,_0x3acdb4)['join']('')+_0x135077,_0x442e71=_0x305b7c;}else _0x442e71+=_0x56c0d4['length'];}}_0x1769ca[_0x26e906]=_0x25afb7;}return _0x1769ca['join']('\x0a')['replace'](/\n/g,'');}function $(_0x5c5b83){const _0x21c9ac=[];for(let _0x54e35f=0x0;_0x54e35f<_0x5c5b83['length'];_0x54e35f++){const _0x24f411=_0x5c5b83['substring'](_0x54e35f)['match'](/^&[a-z0-9#]+;/);if(_0x24f411){const _0x14837e=_0x24f411[0x0];_0x21c9ac['push'](_0x14837e),_0x54e35f+=_0x14837e['length']-0x1;}else _0x21c9ac['push'](_0x5c5b83[_0x54e35f]);}return _0x21c9ac;}class m extends _0x433ae5{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x315e5b){super(_0x315e5b);const _0x39ccc7=this['bindTemplate'];this['set']('message',o(_0x315e5b,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x315e5b,o(_0x315e5b,'Yes'),_0x3008d6,'submit'),this['cancelView']=this['_createButtonView'](_0x315e5b,o(_0x315e5b,'No'),_0x6a5923,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x599672(),this['keystrokes']=new _0x1a6be9(),this['focusCycler']=new _0x96287c({'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':_0x39ccc7['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'](_0x599e11,_0x4d1c35,_0x4723ff,_0x5b3512){const _0x639d8a=new _0x51b998(_0x599e11);return _0x639d8a['label']=_0x4d1c35,_0x639d8a['icon']=_0x4723ff,_0x639d8a['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x5b3512}}),_0x639d8a['on']('execute',()=>this['fire'](_0x5b3512)),_0x639d8a;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x1b2e78=>{this['keystrokes']['listenTo'](_0x1b2e78['element']),this['focusTracker']['add'](_0x1b2e78['element']);}),this['keystrokes']['set']('esc',(_0x4e0398,_0x1361ce)=>{this['fire']('cancel'),_0x1361ce();});}}function c(_0x2c12aa){return class extends _0x2c12aa{['showConfirm'](_0x2614d4,_0x4085ae){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x2614d4,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x4085ae['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x122e73=>this['confirmView']['on']('submit',_0x122e73));}['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(_0x5356fe){let _0xc4bec7=0x0,_0x552e25=0x0;for(const _0x12ab99 of M(_0x5356fe))_0xc4bec7=(_0xc4bec7<<0x5)-_0xc4bec7+_0x12ab99,_0xc4bec7&=_0xc4bec7,[_0xc4bec7,_0x552e25]=[_0x552e25,_0xc4bec7];return w(_0xc4bec7)+w(_0x552e25);}function*g(_0x13537a){null==_0x13537a||null==_0x13537a?yield 0x12b9b0a1:0x0===_0x13537a||!0x1===_0x13537a?yield 0x0:0x1===_0x13537a||0x1==_0x13537a?yield 0x1:Array['isArray'](_0x13537a)?yield*function*(_0x482c45){for(const _0x24d198 of _0x482c45)yield*g(_0x24d198);}(_0x13537a):'object'==typeof _0x13537a?yield*M(_0x13537a):'string'==typeof _0x13537a?yield*O(_0x13537a):'number'==typeof _0x13537a&&(yield _0x13537a);}function*M(_0x30b3fe){if(yield q('{'),_0x30b3fe){const _0x37dad8=Object['keys'](_0x30b3fe)['sort']();for(const _0x25a556 of _0x37dad8){yield*O(_0x25a556),yield q(':');const _0x107aec=_0x30b3fe[_0x25a556];yield*g(_0x107aec);}}yield q('}');}function*O(_0x2862e3){yield q('\x22');for(const _0x42df64 of _0x2862e3)yield q(_0x42df64);yield q('\x22');}function q(_0x4a4fb4){return _0x4a4fb4['charCodeAt'](0x0);}function w(_0x352edd){return(_0x352edd*=Math['sign'](_0x352edd))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],D=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function S(_0x5368e4,_0x3e0c35,_0x1f4bd5,_0x15e628=[]){const _0x580c07='string'==typeof _0x5368e4?_0x1f4bd5['get'](_0x5368e4)['constructor']:_0x5368e4['prototype']['constructor'];if(_0x3e0c35['has'](_0x580c07))return _0x3e0c35['get'](_0x580c07);_0x3e0c35['set'](_0x580c07,!0x0);const _0x22b242=[...D,..._0x15e628]['map'](_0x139a01=>{if(_0x1f4bd5['has'](_0x139a01))return _0x1f4bd5['get'](_0x139a01)['constructor'];})['filter'](_0x17f58d=>_0x17f58d);if(_0x580c07&&_0x22b242['includes'](_0x580c07))return _0x3e0c35['set'](_0x580c07,!0x1),!0x1;if(!_0x580c07['requires'])return _0x3e0c35['set'](_0x580c07,!0x0),!0x0;const _0x26bea8=_0x580c07['requires']['every'](_0x5c48b8=>S(_0x5c48b8,_0x3e0c35,_0x1f4bd5,_0x15e628));return _0x3e0c35['set'](_0x580c07,_0x26bea8),_0x26bea8;}function C(_0x1e76b5,_0xf0fbf5){const _0x148d19={};for(const _0x2c5e5c of _0x1e76b5['config']['names']())W['includes'](_0x2c5e5c)||(_0x148d19[_0x2c5e5c]=_0x1e76b5['config']['get'](_0x2c5e5c));const _0x265df3=_0x148d19['plugins']||[],_0x569c48=_0x1e76b5['constructor']['builtinPlugins']||[],_0x99e258=_0x265df3['length']?_0x265df3:_0x569c48,_0x187fc2=_0x148d19['extraPlugins']||[];delete _0x148d19['extraPlugins'];const _0xcee9cd=_0x148d19['removePlugins']||[];delete _0x148d19['removePlugins'];const _0x3ff0f2=_0x1e76b5['_context']['config']['get']('plugins')||[],_0x5ade71=_0x99e258['concat'](_0x187fc2)['concat'](_0x3ff0f2)['map'](_0x256dd8=>'string'==typeof _0x256dd8?_0x569c48['find'](_0x1d265e=>_0x1d265e['pluginName']==_0x256dd8):_0x256dd8)['filter'](_0x160615=>!_0xcee9cd['includes'](_0x160615)&&!_0xcee9cd['includes'](_0x160615['pluginName'])),_0xf5c824=Array['from'](new Set(_0x5ade71)),_0x57765e=new Map();return _0x148d19['plugins']=_0xf5c824['filter'](_0x1d2820=>S(_0x1d2820,_0x57765e,_0x1e76b5['plugins'],_0xf0fbf5)),_0x148d19;}function z(_0x319da5,_0x299dcb){const _0x5365b1=[];_0x319da5['document']['selection']['on']('change:range',()=>{const _0x530f62=function(_0x33473a,_0x2dca8a){const _0x2c5aa0=[];for(const _0x465e0a of _0x33473a['markers']){const _0x1f0750=_0x465e0a['getRange']();(_0x1f0750['containsPosition'](_0x2dca8a)||_0x1f0750['start']['isEqual'](_0x2dca8a)||_0x1f0750['end']['isEqual'](_0x2dca8a))&&_0x2c5aa0['push'](_0x465e0a);}return _0x2c5aa0;}(_0x319da5,_0x319da5['document']['selection']['focus']),_0x193649=[],_0x353f22=[],_0x4c991f=[];for(const _0x973c58 of _0x5365b1)_0x530f62['includes'](_0x973c58)||_0x193649['push'](_0x973c58);for(const _0x424236 of _0x530f62)_0x5365b1['includes'](_0x424236)||_0x353f22['push'](_0x424236),_0x4c991f['push'](_0x424236);(_0x193649['length']||_0x353f22['length'])&&_0x299dcb({'left':_0x193649,'entered':_0x353f22}),_0x5365b1['length']=0x0,_0x5365b1['push'](..._0x4c991f);});}const J='Ctrl+Shift+E';function T(_0x50ee30,_0x5529b6){const _0xf84271=_0x50ee30['element'];_0x50ee30['keystrokes']['listenTo'](_0xf84271);for(const _0x5d783e of _0x5529b6)K(_0x50ee30,_0x5d783e);_0x5529b6['on']('change',(_0x1f3a7b,_0x1d9047)=>{for(const _0x39db5e of _0x1d9047['removed'])_(_0x50ee30,_0x39db5e);for(const _0x4a7555 of Array['from'](_0x1d9047['added'])['reverse']())K(_0x50ee30,_0x4a7555);}),_0x50ee30['keystrokes']['set']('enter',(_0x28832d,_0x37c7d7)=>{_0xf84271===_0x28832d['target']&&(_0x50ee30['focusCycler']['focusFirst'](),_0x37c7d7());},{'filter':_0x58906c=>_0x58906c['target']===_0xf84271}),_0x50ee30['keystrokes']['set']('esc',(_0x18c478,_0x5bfbd0)=>{_0xf84271!==_0x18c478['target']?_0x50ee30['focus']():_0x50ee30['fire']('escape'),_0x5bfbd0();}),_0x50ee30['keystrokes']['set']('arrowdown',(_0x13f5b6,_0x46065a)=>{_0xf84271===_0x13f5b6['target']&&(_0x50ee30['fire']('arrowdown'),_0x46065a());}),_0x50ee30['keystrokes']['set']('arrowup',(_0x15ce77,_0x318bd5)=>{_0xf84271===_0x15ce77['target']&&(_0x50ee30['fire']('arrowup'),_0x318bd5());});}function K(_0x1f3890,_0xc2c5d2){_0xc2c5d2['isRendered']&&(_0x1f3890['focusTracker']['add'](_0xc2c5d2['element']),_0x1f3890['keystrokes']['listenTo'](_0xc2c5d2['element']),_0x645fef(_0xc2c5d2)&&function(_0x10e205,_0xcf60df){const _0x57c011=_0x10e205['actions'],_0x1ff694=_0xcf60df['actions'];for(const _0x2bbcbb of Object['keys'](_0x57c011))if(_0x2bbcbb in _0x1ff694&&_0x57c011[_0x2bbcbb]!==_0x1ff694[_0x2bbcbb])return!0x1;return!0x0;}(_0x1f3890['focusCycler'],_0xc2c5d2['focusCycler'])&&_0x1f3890['focusCycler']['chain'](_0xc2c5d2['focusCycler']));}function _(_0x4c1e0a,_0x3c1e16){_0x4c1e0a['focusTracker']['remove'](_0x3c1e16['element']),_0x4c1e0a['keystrokes']['stopListening'](_0x3c1e16['element']),_0x645fef(_0x3c1e16)&&_0x4c1e0a['focusCycler']['unchain'](_0x3c1e16['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};
23
+ import{ContextPlugin as _0x4f49b3,Editor as _0x68cce3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x13b409,Collection as _0x4c3bfe,uid as _0x59c4a5,first as _0xc8ee6f,FocusTracker as _0x3e174d,KeystrokeHandler as _0x435e4d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x452300,IconView as _0x5012c9,ButtonView as _0x68822,DropdownButtonView as _0x587611,FocusCycler as _0x16e423,isViewWithFocusCycler as _0x42adda}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x1eb6a2,IconCheck as _0x41ffd5,IconCancel as _0x1a5036}from'@ckeditor/ckeditor5-icons/dist/index.js';import{DateTime as _0x3b3a1c}from'luxon';class n extends _0x4f49b3{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x48a817,_0x12907f){let _0x32b774;if(_0x12907f||(_0x12907f=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x12907f?_0x32b774=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x32b774=this['context']['editors']['find'](_0x592a96=>_0x592a96['config']['get']('collaboration.channelId')==_0x12907f)),!_0x32b774)throw new _0x13b409('permissions-set-permissions-invalid-channel-id',null);const _0x5c6be5=_0x32b774['plugins'],_0x1e8ab5=_0x5c6be5['has']('CommentsRepository')?_0x5c6be5['get']('CommentsRepository'):void 0x0,_0x54cd4e=_0x5c6be5['has']('CommentsOnly')&&_0x5c6be5['get']('CommentsOnly'),_0x58bd7a=_0x48a817['includes']('document:write'),_0x3f1ca3=_0x48a817['includes']('comment:modify_all'),_0x18d877=_0x48a817['includes']('comment:admin'),_0x5a3ba3=_0x48a817['includes']('comment:write'),_0x5abf47=_0x5a3ba3||_0x18d877,_0xf31b35=_0x5abf47||_0x3f1ca3,_0x30236f=_0x58bd7a||_0x5abf47;(_0x54cd4e&&(_0x54cd4e['isEnabled']=!_0x58bd7a&&_0xf31b35),_0x32b774 instanceof _0x68cce3)&&(!(_0x58bd7a||_0xf31b35&&_0x1e8ab5)?_0x32b774['enableReadOnlyMode']('no-permissions'):_0x32b774['disableReadOnlyMode']('no-permissions'));if(_0x1e8ab5){_0x1e8ab5['setPermissions']({'admin':_0x18d877,'modifyAll':_0x3f1ca3,'write':_0x5a3ba3,'resolve':_0x30236f},_0x12907f);const _0x1f22ab=_0x32b774 instanceof _0x68cce3&&_0x32b774['commands']['get']('addCommentThread');_0x1f22ab&&(_0x5abf47?_0x1f22ab['clearForceDisabled']('noPermissions'):_0x1f22ab['forceDisabled']('noPermissions'));}}}function o(_0x5cff3e,_0x1176e0){const t=_0x5cff3e['t'];switch(_0x1176e0){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 _0x4f49b3{['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(_0x2d37d3){super(_0x2d37d3),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x4c3bfe(),this['_locale']=_0x2d37d3['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:_0x2d55c5,name:_0x4527a9,..._0x73b148}){if(!_0x2d55c5||'string'!=typeof _0x2d55c5)throw new _0x13b409('users-add-invalid-id');if(this['users']['has'](_0x2d55c5))throw new _0x13b409('users-add-duplicated-id',null,{'id':_0x2d55c5});const _0x4a8072=this['context']['config']['get']('users.getInitialsCallback'),_0xaec4a4={..._0x73b148,'id':_0x2d55c5,'name':h(this['_locale'],_0x4527a9),'color':this['_getNextColor']()};_0xaec4a4['name']=h(this['_locale'],_0xaec4a4['name']);const _0x49a130=new P(_0xaec4a4,_0x4a8072);return this['users']['add'](_0x49a130),_0x49a130;}['getUser'](_0x3ad880){return this['users']['get'](_0x3ad880);}['useAnonymousUser'](){const _0x516643=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x516643);}['defineMe'](_0x4017f4){if(this['_myId'])throw new _0x13b409('users-me-already-defined',null);const _0x4166c3=this['getUser'](_0x4017f4);if(!_0x4166c3)throw new _0x13b409('users-me-missing-user',null);this['_myId']=_0x4017f4,_0x4166c3['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x26be4a=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x26be4a&&(this['_lastColor']=0x0),new l(this['_lastColor']++);}['_addAnonymousUser'](){const _0x17f546=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x17f546,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x18672b,_0x228681){this['id']=_0x18672b['id'],this['color']=_0x18672b['color'],this['name']=_0x18672b['name'],this['initials']=_0x228681?_0x228681(this['name']):this['_computeInitials'](),this['avatar']=_0x18672b['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x416376=this['name']['split']('\x20')['filter'](_0x418960=>/^[\p{Letter}]/u['test'](_0x418960));return 0x1===_0x416376['length']?this['_getInitial'](_0x416376[0x0]):0x0===_0x416376['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x416376[0x0])+this['_getInitial'](_0x416376[_0x416376['length']-0x1]);}['_getInitial'](_0x20c150){return String['fromCodePoint'](_0x20c150['codePointAt'](0x0))['toUpperCase']();}}function h(_0x374fc8,_0x446537=''){return''==(_0x446537=_0x446537['trim']())?o(_0x374fc8,'Anonymous'):_0x446537;}class l{['_id'];constructor(_0xca8539){this['_id']=_0xca8539;}['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 _0x452300{['name'];['notificationView'];constructor(_0x24415e,_0x3a1138,_0x2c1759){super(_0x24415e),this['name']=_0x3a1138['name'],this['notificationView']=null;const _0x54fb03=['ck','ck-user'],_0x25c63d=['ck','ck-user__img'];if(_0x3a1138['isAnonymous']&&_0x25c63d['push']('ck-user__anonymous'),!_0x3a1138['isAnonymous']&&_0x3a1138['isMe']&&_0x54fb03['push']('ck-user_me'),_0x3a1138['avatar']&&_0x25c63d['push']('ck-user__avatar'),_0x2c1759){const _0x24f7f8=new _0x5012c9();_0x24f7f8['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x24f7f8['content']=_0x1eb6a2,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2c1759},'children':[_0x24f7f8]};}const _0x303850=[{'tag':'div','attributes':{'class':_0x25c63d,'style':{'background-image':_0x3a1138['avatar']?'url(\x27'+_0x3a1138['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x3a1138['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x3a1138['name']},'children':[{'text':_0x3a1138['initials']}]}];this['notificationView']&&_0x303850['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x54fb03,'data-user-id':_0x3a1138['id']},'children':_0x303850});}}class F extends _0x452300{['id'];constructor(_0x5ee6eb,_0x4d31ac){super(_0x5ee6eb),this['id']='ck-aria-description-'+_0x59c4a5(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x4d31ac}]});}}class U extends _0x68822{['render'](){super['render'](),V(this);}}class Y extends _0x587611{['render'](){super['render'](),V(this);}}function V(_0x139f38){_0x139f38['listenTo'](_0x139f38['element'],'mousedown',(_0x3fa2a9,_0x33bb3f)=>{_0x33bb3f['stopPropagation'](),_0x33bb3f['preventDefault']();}),_0x139f38['listenTo'](_0x139f38['element'],'mouseup',()=>{_0x139f38['element']['focus']();});}function E(_0x4a3efe={},_0x128ed9){if(void 0x0!==_0x4a3efe['dateTimeFormat']&&'function'!=typeof _0x4a3efe['dateTimeFormat'])throw new _0x13b409('invalid-date-time-format');return _0x43b014=>{const _0x13199d='string'==typeof _0x43b014?_0x3b3a1c['fromISO'](_0x43b014):_0x3b3a1c['fromJSDate'](_0x43b014),_0x5aeb8d=_0x3b3a1c['now'](),_0x1cf45f=Math['floor'](_0x5aeb8d['diff'](_0x13199d,'days')['days']);return _0x4a3efe['dateTimeFormat']?_0x4a3efe['dateTimeFormat'](_0x13199d['toJSDate'](),_0x128ed9&&_0x128ed9['t']?_0x128ed9['t']:void 0x0):0x0===_0x1cf45f?_0x128ed9?o(_0x128ed9,'Today')+'\x20'+_0x13199d['toFormat']('hh:mma'):_0x13199d['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x1cf45f?_0x128ed9?o(_0x128ed9,'Yesterday')+'\x20'+_0x13199d['toFormat']('hh:mma'):_0x13199d['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x1cf45f<0x7?_0x128ed9?o(_0x128ed9,'Last')+'\x20'+o(_0x128ed9,_0x13199d['toFormat']('EEEE'))+'\x20'+_0x13199d['toFormat']('hh:mma'):_0x13199d['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x13199d['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x542c43,_0x50321c){const _0x366b17=_0x542c43['mapper']['markerNameToElements'](_0x50321c['name']);if(!_0x366b17)return null;const _0x2a24fe=_0xc8ee6f(_0x366b17['values']());return _0x542c43['view']['domConverter']['mapViewToDom'](_0x2a24fe)||null;}function R(_0x1a85b7,_0x3b84d9){if(0x0===_0x3b84d9['length'])return null;const _0x9fe36c=[],_0x5cc6d5=_0x1a85b7['view']['domConverter'];for(const _0x2d74fb of _0x3b84d9){const _0x1f3814=_0x1a85b7['mapper']['markerNameToElements'](_0x2d74fb['name']);if(!_0x1f3814)continue;const _0x2487d8=Array['from'](_0x1f3814)['map'](_0x4352b6=>_0x5cc6d5['mapViewToDom'](_0x4352b6))['filter'](_0x5490c1=>!!_0x5490c1);_0x9fe36c['push'](..._0x2487d8);}if(0x0===_0x9fe36c['length'])return null;const _0x8f99d8=[];for(const _0x73146d of _0x9fe36c){const _0x2dffb3=_0x73146d['getClientRects']()['item'](0x0);_0x2dffb3&&_0x8f99d8['push']({'x':_0x2dffb3['x'],'y':_0x2dffb3['y'],'domElement':_0x73146d});}return 0x0===_0x8f99d8['length']?null:(_0x8f99d8['sort']((_0x58b5d6,_0x54fbc5)=>_0x58b5d6['y']-_0x54fbc5['y']||_0x58b5d6['x']-_0x54fbc5['x']),_0x8f99d8['map'](_0x5b5771=>_0x5b5771['domElement']));}function Z(_0x305733,{limit:_0xa9674d,suffix:_0x289de9='...'}){const _0x3632e7=[];let _0x265135=0x0;const _0x1c2a9a=_0x305733['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x5eb4fc=0x0;_0x5eb4fc<_0x1c2a9a['length'];_0x5eb4fc++){let _0x4d2e5c=_0x1c2a9a[_0x5eb4fc];const _0x1d430e=$(_0x4d2e5c);if(_0x4d2e5c['startsWith']('<')){if(_0x265135>=_0xa9674d){const _0x4dd5b4=_0x4d2e5c['match'](/[a-zA-Z]+/);if(!_0x4dd5b4){_0x1c2a9a[_0x5eb4fc]='';continue;}const _0x4991d2=_0x4dd5b4[0x0];_0x4d2e5c['startsWith']('</')?(_0x3632e7['length']&&(_0x4d2e5c=''),_0x3632e7['pop']()):(_0x3632e7['push'](_0x4991d2),_0x4d2e5c='');}}else{if(_0x265135>=_0xa9674d)_0x4d2e5c='';else{if(_0x265135+_0x1d430e['length']>=_0xa9674d){let _0x27f1f0=_0xa9674d-_0x265135;if('\x20'===_0x1d430e[_0x27f1f0-0x1])_0x27f1f0--;else{const _0x577462=_0x1d430e['slice'](_0x27f1f0)['indexOf']('\x20');-0x1!==_0x577462?_0x27f1f0+=_0x577462:_0x27f1f0=_0x4d2e5c['length'];}_0x4d2e5c=_0x1d430e['slice'](0x0,_0x27f1f0)['join']('')+_0x289de9,_0x265135=_0xa9674d;}else _0x265135+=_0x1d430e['length'];}}_0x1c2a9a[_0x5eb4fc]=_0x4d2e5c;}return _0x1c2a9a['join']('\x0a')['replace'](/\n/g,'');}function $(_0x382879){const _0x69eab4=[];for(let _0x4e75e9=0x0;_0x4e75e9<_0x382879['length'];_0x4e75e9++){const _0x122209=_0x382879['substring'](_0x4e75e9)['match'](/^&[a-z0-9#]+;/);if(_0x122209){const _0x1c665f=_0x122209[0x0];_0x69eab4['push'](_0x1c665f),_0x4e75e9+=_0x1c665f['length']-0x1;}else _0x69eab4['push'](_0x382879[_0x4e75e9]);}return _0x69eab4;}class m extends _0x452300{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x1f64c3){super(_0x1f64c3);const _0x546200=this['bindTemplate'];this['set']('message',o(_0x1f64c3,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x1f64c3,o(_0x1f64c3,'Yes'),_0x41ffd5,'submit'),this['cancelView']=this['_createButtonView'](_0x1f64c3,o(_0x1f64c3,'No'),_0x1a5036,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x3e174d(),this['keystrokes']=new _0x435e4d(),this['focusCycler']=new _0x16e423({'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':_0x546200['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'](_0x59ffe4,_0x16b10f,_0x534e44,_0x587fc7){const _0x5a81fe=new _0x68822(_0x59ffe4);return _0x5a81fe['label']=_0x16b10f,_0x5a81fe['icon']=_0x534e44,_0x5a81fe['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x587fc7}}),_0x5a81fe['on']('execute',()=>this['fire'](_0x587fc7)),_0x5a81fe;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x885c80=>{this['keystrokes']['listenTo'](_0x885c80['element']),this['focusTracker']['add'](_0x885c80['element']);}),this['keystrokes']['set']('esc',(_0x7d36aa,_0x3233ff)=>{this['fire']('cancel'),_0x3233ff();});}}function c(_0x1fe279){return class extends _0x1fe279{['showConfirm'](_0x45d18c,_0x1123db){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x45d18c,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x1123db['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x3bedf7=>this['confirmView']['on']('submit',_0x3bedf7));}['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(_0x21112e){let _0x48fa42=0x0,_0x40c6f5=0x0;for(const _0x5033e9 of M(_0x21112e))_0x48fa42=(_0x48fa42<<0x5)-_0x48fa42+_0x5033e9,_0x48fa42&=_0x48fa42,[_0x48fa42,_0x40c6f5]=[_0x40c6f5,_0x48fa42];return w(_0x48fa42)+w(_0x40c6f5);}function*g(_0x22c495){null==_0x22c495||null==_0x22c495?yield 0x12b9b0a1:0x0===_0x22c495||!0x1===_0x22c495?yield 0x0:0x1===_0x22c495||0x1==_0x22c495?yield 0x1:Array['isArray'](_0x22c495)?yield*function*(_0x59f3fc){for(const _0x5f1458 of _0x59f3fc)yield*g(_0x5f1458);}(_0x22c495):'object'==typeof _0x22c495?yield*M(_0x22c495):'string'==typeof _0x22c495?yield*O(_0x22c495):'number'==typeof _0x22c495&&(yield _0x22c495);}function*M(_0x5994a9){if(yield q('{'),_0x5994a9){const _0x21f478=Object['keys'](_0x5994a9)['sort']();for(const _0x545eee of _0x21f478){yield*O(_0x545eee),yield q(':');const _0x15089d=_0x5994a9[_0x545eee];yield*g(_0x15089d);}}yield q('}');}function*O(_0x117429){yield q('\x22');for(const _0x36d94e of _0x117429)yield q(_0x36d94e);yield q('\x22');}function q(_0x1e12bc){return _0x1e12bc['charCodeAt'](0x0);}function w(_0x26656e){return(_0x26656e*=Math['sign'](_0x26656e))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],D=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function S(_0x58598b,_0x5a8803,_0xab25e1,_0x307e18=[]){const _0x216f12='string'==typeof _0x58598b?_0xab25e1['get'](_0x58598b)['constructor']:_0x58598b['prototype']['constructor'];if(_0x5a8803['has'](_0x216f12))return _0x5a8803['get'](_0x216f12);_0x5a8803['set'](_0x216f12,!0x0);const _0x42a91b=[...D,..._0x307e18]['map'](_0x400d2f=>{if(_0xab25e1['has'](_0x400d2f))return _0xab25e1['get'](_0x400d2f)['constructor'];})['filter'](_0x3eb05f=>_0x3eb05f);if(_0x216f12&&_0x42a91b['includes'](_0x216f12))return _0x5a8803['set'](_0x216f12,!0x1),!0x1;if(!_0x216f12['requires'])return _0x5a8803['set'](_0x216f12,!0x0),!0x0;const _0x48c7a1=_0x216f12['requires']['every'](_0x431111=>S(_0x431111,_0x5a8803,_0xab25e1,_0x307e18));return _0x5a8803['set'](_0x216f12,_0x48c7a1),_0x48c7a1;}function C(_0x292c28,_0x43c945){const _0x442b34={};for(const _0x3f2187 of _0x292c28['config']['names']())W['includes'](_0x3f2187)||(_0x442b34[_0x3f2187]=_0x292c28['config']['get'](_0x3f2187));const _0x25933f=_0x442b34['plugins']||[],_0x363ed5=_0x292c28['constructor']['builtinPlugins']||[],_0x4cb628=_0x25933f['length']?_0x25933f:_0x363ed5,_0x5e48e2=_0x442b34['extraPlugins']||[];delete _0x442b34['extraPlugins'];const _0x4bc08e=_0x442b34['removePlugins']||[];delete _0x442b34['removePlugins'];const _0x5e2771=_0x292c28['_context']['config']['get']('plugins')||[],_0x568bd5=_0x4cb628['concat'](_0x5e48e2)['concat'](_0x5e2771)['map'](_0x3dc964=>'string'==typeof _0x3dc964?_0x363ed5['find'](_0x5f2b16=>_0x5f2b16['pluginName']==_0x3dc964):_0x3dc964)['filter'](_0x6529fe=>!_0x4bc08e['includes'](_0x6529fe)&&!_0x4bc08e['includes'](_0x6529fe['pluginName'])),_0x31f3d3=Array['from'](new Set(_0x568bd5)),_0x2da7a4=new Map();return _0x442b34['plugins']=_0x31f3d3['filter'](_0x680b2e=>S(_0x680b2e,_0x2da7a4,_0x292c28['plugins'],_0x43c945)),_0x442b34;}function z(_0x50261c,_0x359322){const _0x4fc15c=[];_0x50261c['document']['selection']['on']('change:range',()=>{const _0x16cbc3=function(_0x5efa3f,_0x336284){const _0x513a07=[];for(const _0x54d69d of _0x5efa3f['markers']){const _0x43c397=_0x54d69d['getRange']();(_0x43c397['containsPosition'](_0x336284)||_0x43c397['start']['isEqual'](_0x336284)||_0x43c397['end']['isEqual'](_0x336284))&&_0x513a07['push'](_0x54d69d);}return _0x513a07;}(_0x50261c,_0x50261c['document']['selection']['focus']),_0x42995f=[],_0x42b821=[],_0x2ad8a6=[];for(const _0x50bb44 of _0x4fc15c)_0x16cbc3['includes'](_0x50bb44)||_0x42995f['push'](_0x50bb44);for(const _0x3d58a6 of _0x16cbc3)_0x4fc15c['includes'](_0x3d58a6)||_0x42b821['push'](_0x3d58a6),_0x2ad8a6['push'](_0x3d58a6);(_0x42995f['length']||_0x42b821['length'])&&_0x359322({'left':_0x42995f,'entered':_0x42b821}),_0x4fc15c['length']=0x0,_0x4fc15c['push'](..._0x2ad8a6);});}const J='Ctrl+Shift+E';function T(_0x430507,_0x48b507){const _0x5f950d=_0x430507['element'];_0x430507['keystrokes']['listenTo'](_0x5f950d);for(const _0x24ada1 of _0x48b507)K(_0x430507,_0x24ada1);_0x48b507['on']('change',(_0x7285ee,_0x571cbc)=>{for(const _0x3d0ef7 of _0x571cbc['removed'])_(_0x430507,_0x3d0ef7);for(const _0x5aa3b9 of Array['from'](_0x571cbc['added'])['reverse']())K(_0x430507,_0x5aa3b9);}),_0x430507['keystrokes']['set']('enter',(_0x1a9c45,_0x261adf)=>{_0x5f950d===_0x1a9c45['target']&&(_0x430507['focusCycler']['focusFirst'](),_0x261adf());},{'filter':_0x173520=>_0x173520['target']===_0x5f950d}),_0x430507['keystrokes']['set']('esc',(_0x12da37,_0x5c4bca)=>{_0x5f950d!==_0x12da37['target']?_0x430507['focus']():_0x430507['fire']('escape'),_0x5c4bca();}),_0x430507['keystrokes']['set']('arrowdown',(_0x3f689f,_0x516abc)=>{_0x5f950d===_0x3f689f['target']&&(_0x430507['fire']('arrowdown'),_0x516abc());}),_0x430507['keystrokes']['set']('arrowup',(_0x17c47c,_0x17e89f)=>{_0x5f950d===_0x17c47c['target']&&(_0x430507['fire']('arrowup'),_0x17e89f());});}function K(_0xaeace1,_0x99e0f8){_0x99e0f8['isRendered']&&(_0xaeace1['focusTracker']['add'](_0x99e0f8['element']),_0xaeace1['keystrokes']['listenTo'](_0x99e0f8['element']),_0x42adda(_0x99e0f8)&&function(_0x45b8fd,_0x1aa651){const _0x1a7140=_0x45b8fd['actions'],_0xeac00=_0x1aa651['actions'];for(const _0x186aa4 of Object['keys'](_0x1a7140))if(_0x186aa4 in _0xeac00&&_0x1a7140[_0x186aa4]!==_0xeac00[_0x186aa4])return!0x1;return!0x0;}(_0xaeace1['focusCycler'],_0x99e0f8['focusCycler'])&&_0xaeace1['focusCycler']['chain'](_0x99e0f8['focusCycler']));}function _(_0x4c177e,_0x2b8db3){_0x4c177e['focusTracker']['remove'](_0x2b8db3['element']),_0x4c177e['keystrokes']['stopListening'](_0x2b8db3['element']),_0x42adda(_0x2b8db3)&&_0x4c177e['focusCycler']['unchain'](_0x2b8db3['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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "45.2.1-alpha.0",
3
+ "version": "45.2.1-alpha.1",
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.0",
36
- "@ckeditor/ckeditor5-core": "45.2.1-alpha.0",
37
- "@ckeditor/ckeditor5-icons": "45.2.1-alpha.0",
38
- "@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.0",
39
- "@ckeditor/ckeditor5-track-changes": "45.2.1-alpha.0",
40
- "@ckeditor/ckeditor5-ui": "45.2.1-alpha.0",
41
- "@ckeditor/ckeditor5-utils": "45.2.1-alpha.0",
35
+ "@ckeditor/ckeditor5-comments": "45.2.1-alpha.1",
36
+ "@ckeditor/ckeditor5-core": "45.2.1-alpha.1",
37
+ "@ckeditor/ckeditor5-icons": "45.2.1-alpha.1",
38
+ "@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.1",
39
+ "@ckeditor/ckeditor5-track-changes": "45.2.1-alpha.1",
40
+ "@ckeditor/ckeditor5-ui": "45.2.1-alpha.1",
41
+ "@ckeditor/ckeditor5-utils": "45.2.1-alpha.1",
42
42
  "@types/luxon": "3.4.2",
43
- "ckeditor5": "45.2.1-alpha.0",
43
+ "ckeditor5": "45.2.1-alpha.1",
44
44
  "luxon": "3.5.0"
45
45
  },
46
46
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3d377f,_0x23b54a){var _0x2d20c6=_0x3c14,_0x41dd41=_0x3d377f();while(!![]){try{var _0x38528c=-parseInt(_0x2d20c6(0x1e0))/0x1*(-parseInt(_0x2d20c6(0x1d7))/0x2)+parseInt(_0x2d20c6(0x1e5))/0x3+parseInt(_0x2d20c6(0x1e4))/0x4*(-parseInt(_0x2d20c6(0x1da))/0x5)+parseInt(_0x2d20c6(0x1e3))/0x6*(parseInt(_0x2d20c6(0x1dd))/0x7)+parseInt(_0x2d20c6(0x1dc))/0x8+parseInt(_0x2d20c6(0x1db))/0x9*(parseInt(_0x2d20c6(0x1de))/0xa)+-parseInt(_0x2d20c6(0x1e2))/0xb;if(_0x38528c===_0x23b54a)break;else _0x41dd41['push'](_0x41dd41['shift']());}catch(_0x173702){_0x41dd41['push'](_0x41dd41['shift']());}}}(_0x2c38,0x3f319));import{uid as _0x4b1f8e}from'ckeditor5/src/utils.js';function _0x2c38(){var _0x1c705d=['6XOdkqU','118060hfdqrY','1301118kPOPXz','4OuLzNJ','ck-aria-description-','span','10pEGpbV','1791XliVMi','2970840YxEGEh','2274986vopxdQ','4060wYbkaq','setTemplate','246786EkgMeN','ck-aria-description','15252094djnLEW'];_0x2c38=function(){return _0x1c705d;};return _0x2c38();}import{View as _0x29d3f3}from'ckeditor5/src/ui.js';function _0x3c14(_0x48ff00,_0x58857a){var _0x2c3876=_0x2c38();return _0x3c14=function(_0x3c14b6,_0xe85bef){_0x3c14b6=_0x3c14b6-0x1d7;var _0x5116b4=_0x2c3876[_0x3c14b6];return _0x5116b4;},_0x3c14(_0x48ff00,_0x58857a);}export default class H extends _0x29d3f3{['id'];constructor(_0x3c8a1e,_0x48adec){var _0x1e82c4=_0x3c14;super(_0x3c8a1e),this['id']=_0x1e82c4(0x1d8)+_0x4b1f8e(),this[_0x1e82c4(0x1df)]({'tag':_0x1e82c4(0x1d9),'attributes':{'class':['ck',_0x1e82c4(0x1e1)],'id':this['id']},'children':[{'text':_0x48adec}]});}}
23
+ function _0x3a40(_0x405ac0,_0x4a2af8){var _0x1c85d6=_0x1c85();return _0x3a40=function(_0x3a40e6,_0x1f1ad7){_0x3a40e6=_0x3a40e6-0x82;var _0x5c3518=_0x1c85d6[_0x3a40e6];return _0x5c3518;},_0x3a40(_0x405ac0,_0x4a2af8);}(function(_0x7777b9,_0x4bd990){var _0x1442c2=_0x3a40,_0x2fe1e8=_0x7777b9();while(!![]){try{var _0x4e596d=parseInt(_0x1442c2(0x8b))/0x1+-parseInt(_0x1442c2(0x83))/0x2*(parseInt(_0x1442c2(0x8c))/0x3)+parseInt(_0x1442c2(0x8e))/0x4*(parseInt(_0x1442c2(0x8a))/0x5)+-parseInt(_0x1442c2(0x86))/0x6+-parseInt(_0x1442c2(0x87))/0x7+-parseInt(_0x1442c2(0x88))/0x8+parseInt(_0x1442c2(0x85))/0x9;if(_0x4e596d===_0x4bd990)break;else _0x2fe1e8['push'](_0x2fe1e8['shift']());}catch(_0x375644){_0x2fe1e8['push'](_0x2fe1e8['shift']());}}}(_0x1c85,0x212a9));import{uid as _0x4347c4}from'ckeditor5/src/utils.js';import{View as _0x405e0f}from'ckeditor5/src/ui.js';function _0x1c85(){var _0x2cf4ca=['58586VcEFaC','ck-aria-description-','5044347UouhuE','393894yaDpsz','901838zlnIwM','2071648krwEhw','ck-aria-description','714335dMYbww','3110YaHSdL','12IuxuRU','span','4xdrwAd','setTemplate'];_0x1c85=function(){return _0x2cf4ca;};return _0x1c85();}export default class F extends _0x405e0f{['id'];constructor(_0x3576ef,_0x522d3b){var _0x251b45=_0x3a40;super(_0x3576ef),this['id']=_0x251b45(0x84)+_0x4347c4(),this[_0x251b45(0x82)]({'tag':_0x251b45(0x8d),'attributes':{'class':['ck',_0x251b45(0x89)],'id':this['id']},'children':[{'text':_0x522d3b}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x41a7(){var _0x11f346=['1169YUHOSl','mousedown','495920WulMtt','listenTo','26sGCPkO','45NsFUxE','689867tbhTrv','stopPropagation','6906mqFqYn','1525YjJbra','mouseup','1424172sxsiue','22010gFxGYb','3619sMLHhx','render','2nzmzFS','element','34508oVrPes','3GmlDRK','preventDefault','focus'];_0x41a7=function(){return _0x11f346;};return _0x41a7();}var _0x5e0ad1=_0x3d0f;function _0x3d0f(_0x3ca9bf,_0x310a15){var _0x41a75d=_0x41a7();return _0x3d0f=function(_0x3d0fce,_0x412cfc){_0x3d0fce=_0x3d0fce-0x115;var _0x596be5=_0x41a75d[_0x3d0fce];return _0x596be5;},_0x3d0f(_0x3ca9bf,_0x310a15);}(function(_0x4eb0f6,_0x522235){var _0x562415=_0x3d0f,_0x1476b0=_0x4eb0f6();while(!![]){try{var _0x52d8e6=-parseInt(_0x562415(0x117))/0x1*(parseInt(_0x562415(0x120))/0x2)+-parseInt(_0x562415(0x123))/0x3*(parseInt(_0x562415(0x122))/0x4)+parseInt(_0x562415(0x11a))/0x5+parseInt(_0x562415(0x119))/0x6*(-parseInt(_0x562415(0x126))/0x7)+parseInt(_0x562415(0x128))/0x8*(parseInt(_0x562415(0x116))/0x9)+parseInt(_0x562415(0x11d))/0xa*(parseInt(_0x562415(0x11e))/0xb)+parseInt(_0x562415(0x11c))/0xc*(parseInt(_0x562415(0x115))/0xd);if(_0x52d8e6===_0x522235)break;else _0x1476b0['push'](_0x1476b0['shift']());}catch(_0x583396){_0x1476b0['push'](_0x1476b0['shift']());}}}(_0x41a7,0x5d06b));import{ButtonView as _0x2d0290,DropdownButtonView as _0x4f4f25}from'ckeditor5/src/ui.js';export class LateFocusButtonView extends _0x2d0290{[_0x5e0ad1(0x11f)](){var _0x4564b8=_0x5e0ad1;super[_0x4564b8(0x11f)](),I(this);}}export class LateFocusDropdownButtonView extends _0x4f4f25{[_0x5e0ad1(0x11f)](){var _0x2cdab2=_0x5e0ad1;super[_0x2cdab2(0x11f)](),I(this);}}function I(_0x143236){var _0x528c41=_0x5e0ad1;_0x143236[_0x528c41(0x129)](_0x143236[_0x528c41(0x121)],_0x528c41(0x127),(_0xe603a6,_0x9b316e)=>{var _0x10aa28=_0x528c41;_0x9b316e[_0x10aa28(0x118)](),_0x9b316e[_0x10aa28(0x124)]();}),_0x143236[_0x528c41(0x129)](_0x143236[_0x528c41(0x121)],_0x528c41(0x11b),()=>{var _0x2a6c25=_0x528c41;_0x143236[_0x2a6c25(0x121)][_0x2a6c25(0x125)]();});}
23
+ var _0x148434=_0x9dbb;(function(_0x508f57,_0x17acb7){var _0x16270f=_0x9dbb,_0x57728e=_0x508f57();while(!![]){try{var _0x4520a7=parseInt(_0x16270f(0x1be))/0x1*(parseInt(_0x16270f(0x1b7))/0x2)+parseInt(_0x16270f(0x1b6))/0x3+-parseInt(_0x16270f(0x1c1))/0x4+-parseInt(_0x16270f(0x1c0))/0x5+parseInt(_0x16270f(0x1bb))/0x6*(parseInt(_0x16270f(0x1b1))/0x7)+-parseInt(_0x16270f(0x1b9))/0x8+parseInt(_0x16270f(0x1bf))/0x9;if(_0x4520a7===_0x17acb7)break;else _0x57728e['push'](_0x57728e['shift']());}catch(_0x22423f){_0x57728e['push'](_0x57728e['shift']());}}}(_0x1706,0xe4b76));import{ButtonView as _0x18fef0,DropdownButtonView as _0x49cb04}from'ckeditor5/src/ui.js';export class LateFocusButtonView extends _0x18fef0{[_0x148434(0x1bc)](){var _0x16323c=_0x148434;super[_0x16323c(0x1bc)](),V(this);}}function _0x9dbb(_0xa1fbaf,_0x5bdca8){var _0x17060a=_0x1706();return _0x9dbb=function(_0x9dbb9f,_0xf3dc4e){_0x9dbb9f=_0x9dbb9f-0x1b1;var _0x589554=_0x17060a[_0x9dbb9f];return _0x589554;},_0x9dbb(_0xa1fbaf,_0x5bdca8);}export class LateFocusDropdownButtonView extends _0x49cb04{[_0x148434(0x1bc)](){var _0x3599b5=_0x148434;super[_0x3599b5(0x1bc)](),V(this);}}function V(_0x461452){var _0x3ef57e=_0x148434;_0x461452[_0x3ef57e(0x1b4)](_0x461452[_0x3ef57e(0x1bd)],_0x3ef57e(0x1ba),(_0x46c69f,_0x1778d7)=>{var _0x1146d5=_0x3ef57e;_0x1778d7[_0x1146d5(0x1b8)](),_0x1778d7[_0x1146d5(0x1b2)]();}),_0x461452[_0x3ef57e(0x1b4)](_0x461452[_0x3ef57e(0x1bd)],_0x3ef57e(0x1b5),()=>{var _0x412450=_0x3ef57e;_0x461452[_0x412450(0x1bd)][_0x412450(0x1b3)]();});}function _0x1706(){var _0xafefd8=['mousedown','5308746jMeHIe','render','element','1Zlzdft','5063157WBBzWF','1946915NbvgLG','6338332bXDZXl','14bQwhLf','preventDefault','focus','listenTo','mouseup','2782449AgOAjA','2795906XRJcMw','stopPropagation','13974424PloTKt'];_0x1706=function(){return _0xafefd8;};return _0x1706();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a24cf=_0xab22;(function(_0x64fbd,_0x55a257){const _0x509475=_0xab22,_0xd8615c=_0x64fbd();while(!![]){try{const _0x1ae3ad=-parseInt(_0x509475(0x168))/0x1*(parseInt(_0x509475(0x179))/0x2)+parseInt(_0x509475(0x16c))/0x3*(-parseInt(_0x509475(0x17a))/0x4)+parseInt(_0x509475(0x16d))/0x5+-parseInt(_0x509475(0x17d))/0x6*(parseInt(_0x509475(0x169))/0x7)+-parseInt(_0x509475(0x171))/0x8*(parseInt(_0x509475(0x172))/0x9)+-parseInt(_0x509475(0x178))/0xa+-parseInt(_0x509475(0x175))/0xb*(-parseInt(_0x509475(0x17c))/0xc);if(_0x1ae3ad===_0x55a257)break;else _0xd8615c['push'](_0xd8615c['shift']());}catch(_0x3ca1a5){_0xd8615c['push'](_0xd8615c['shift']());}}}(_0x36ac,0x2a34e));import{View as _0x507560,IconView as _0x3110fc}from'ckeditor5/src/ui.js';import{IconNotification as _0xf43fdf}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export default class F extends _0x507560{[_0x3a24cf(0x183)];[_0x3a24cf(0x184)];constructor(_0xcd87e7,_0x44a920,_0x637812){const _0x2dbd8e=_0x3a24cf;super(_0xcd87e7),this[_0x2dbd8e(0x183)]=_0x44a920[_0x2dbd8e(0x183)],this[_0x2dbd8e(0x184)]=null;const _0x57f9f5=['ck',_0x2dbd8e(0x177)],_0x2cf49f=['ck',_0x2dbd8e(0x173)];if(_0x44a920[_0x2dbd8e(0x16a)]&&_0x2cf49f[_0x2dbd8e(0x16e)](_0x2dbd8e(0x176)),!_0x44a920[_0x2dbd8e(0x16a)]&&_0x44a920[_0x2dbd8e(0x174)]&&_0x57f9f5[_0x2dbd8e(0x16e)](_0x2dbd8e(0x17b)),_0x44a920[_0x2dbd8e(0x165)]&&_0x2cf49f[_0x2dbd8e(0x16e)](_0x2dbd8e(0x16b)),_0x637812){const _0x4e09f1=new _0x3110fc();_0x4e09f1[_0x2dbd8e(0x180)]({'attributes':{'class':[_0x2dbd8e(0x166)]}}),_0x4e09f1[_0x2dbd8e(0x185)]=_0xf43fdf,this[_0x2dbd8e(0x184)]={'tag':_0x2dbd8e(0x167),'attributes':{'class':['ck',_0x2dbd8e(0x17e)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x637812},'children':[_0x4e09f1]};}const _0x1b3c06=[{'tag':_0x2dbd8e(0x167),'attributes':{'class':_0x2cf49f,'style':{'background-image':_0x44a920[_0x2dbd8e(0x165)]?_0x2dbd8e(0x170)+_0x44a920[_0x2dbd8e(0x165)]+'\x27)':''}}},{'tag':_0x2dbd8e(0x167),'attributes':{'class':_0x44a920[_0x2dbd8e(0x165)]?_0x2dbd8e(0x17f):_0x2dbd8e(0x16f),'aria-label':_0x44a920[_0x2dbd8e(0x183)]},'children':[{'text':_0x44a920[_0x2dbd8e(0x181)]}]}];this[_0x2dbd8e(0x184)]&&_0x1b3c06[_0x2dbd8e(0x16e)](this[_0x2dbd8e(0x184)]),this[_0x2dbd8e(0x182)]({'tag':_0x2dbd8e(0x167),'attributes':{'class':_0x57f9f5,'data-user-id':_0x44a920['id']},'children':_0x1b3c06});}}function _0xab22(_0x28347a,_0x2bc8e4){const _0x36acfb=_0x36ac();return _0xab22=function(_0xab2224,_0x3e0c86){_0xab2224=_0xab2224-0x165;let _0x404a1d=_0x36acfb[_0xab2224];return _0x404a1d;},_0xab22(_0x28347a,_0x2bc8e4);}function _0x36ac(){const _0x3bdf2f=['2034ddddIt','1376608ewuSIl','ck-user_me','3495876MCxEbX','193278sDWvOI','ck-user__notification','ck\x20ck-user__name\x20ck-user__name--hidden','extendTemplate','initials','setTemplate','name','notificationView','content','avatar','ck-user__icon','div','92RSJugU','35jQLJLy','isAnonymous','ck-user__avatar','3XTMFZg','1398070IWHyjq','push','ck\x20ck-user__name','url(\x27','1408792QqrzbA','9MFCgaF','ck-user__img','isMe','33cveRcc','ck-user__anonymous','ck-user','2058250ZGBCGl'];_0x36ac=function(){return _0x3bdf2f;};return _0x36ac();}
23
+ const _0x54cf04=_0xb805;(function(_0x3c1e7a,_0x1815e9){const _0x4850ab=_0xb805,_0x1ed444=_0x3c1e7a();while(!![]){try{const _0x47b0eb=parseInt(_0x4850ab(0x147))/0x1*(-parseInt(_0x4850ab(0x145))/0x2)+-parseInt(_0x4850ab(0x13d))/0x3+-parseInt(_0x4850ab(0x144))/0x4*(parseInt(_0x4850ab(0x13f))/0x5)+-parseInt(_0x4850ab(0x141))/0x6+parseInt(_0x4850ab(0x135))/0x7+-parseInt(_0x4850ab(0x12e))/0x8+parseInt(_0x4850ab(0x14a))/0x9;if(_0x47b0eb===_0x1815e9)break;else _0x1ed444['push'](_0x1ed444['shift']());}catch(_0xedc8ab){_0x1ed444['push'](_0x1ed444['shift']());}}}(_0xc4ef,0xe5857));import{View as _0x1c4508,IconView as _0x284690}from'ckeditor5/src/ui.js';function _0xb805(_0x2e80e6,_0x9b77cc){const _0xc4ef1f=_0xc4ef();return _0xb805=function(_0xb805e9,_0x579543){_0xb805e9=_0xb805e9-0x12d;let _0x1e652f=_0xc4ef1f[_0xb805e9];return _0x1e652f;},_0xb805(_0x2e80e6,_0x9b77cc);}import{IconNotification as _0x363ee5}from'ckeditor5/src/icons.js';import'../../../theme/users.css';function _0xc4ef(){const _0x276d91=['5NzUjqY','initials','ck\x20ck-user__name\x20ck-user__name--hidden','44860392cKitEO','ck\x20ck-user__name','385280yuHCpL','ck-user__icon','push','url(\x27','ck-user_me','isAnonymous','ck-user__anonymous','896777UOCZFr','div','ck-user','setTemplate','ck-user__avatar','content','ck-user__notification','avatar','956196bBpiup','ck-user__img','5bgyqNn','name','9163944dPGGjM','isMe','notificationView','2725356glsJPD','638770ffxQbN','extendTemplate'];_0xc4ef=function(){return _0x276d91;};return _0xc4ef();}export default class I extends _0x1c4508{[_0x54cf04(0x140)];[_0x54cf04(0x143)];constructor(_0x4ae5d4,_0x57eeb3,_0x3ffd37){const _0x3f7b2e=_0x54cf04;super(_0x4ae5d4),this[_0x3f7b2e(0x140)]=_0x57eeb3[_0x3f7b2e(0x140)],this[_0x3f7b2e(0x143)]=null;const _0xcc9c8f=['ck',_0x3f7b2e(0x137)],_0x54ccb4=['ck',_0x3f7b2e(0x13e)];if(_0x57eeb3[_0x3f7b2e(0x133)]&&_0x54ccb4[_0x3f7b2e(0x130)](_0x3f7b2e(0x134)),!_0x57eeb3[_0x3f7b2e(0x133)]&&_0x57eeb3[_0x3f7b2e(0x142)]&&_0xcc9c8f[_0x3f7b2e(0x130)](_0x3f7b2e(0x132)),_0x57eeb3[_0x3f7b2e(0x13c)]&&_0x54ccb4[_0x3f7b2e(0x130)](_0x3f7b2e(0x139)),_0x3ffd37){const _0x1f0c46=new _0x284690();_0x1f0c46[_0x3f7b2e(0x146)]({'attributes':{'class':[_0x3f7b2e(0x12f)]}}),_0x1f0c46[_0x3f7b2e(0x13a)]=_0x363ee5,this[_0x3f7b2e(0x143)]={'tag':_0x3f7b2e(0x136),'attributes':{'class':['ck',_0x3f7b2e(0x13b)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3ffd37},'children':[_0x1f0c46]};}const _0x1ed956=[{'tag':_0x3f7b2e(0x136),'attributes':{'class':_0x54ccb4,'style':{'background-image':_0x57eeb3[_0x3f7b2e(0x13c)]?_0x3f7b2e(0x131)+_0x57eeb3[_0x3f7b2e(0x13c)]+'\x27)':''}}},{'tag':_0x3f7b2e(0x136),'attributes':{'class':_0x57eeb3[_0x3f7b2e(0x13c)]?_0x3f7b2e(0x149):_0x3f7b2e(0x12d),'aria-label':_0x57eeb3[_0x3f7b2e(0x140)]},'children':[{'text':_0x57eeb3[_0x3f7b2e(0x148)]}]}];this[_0x3f7b2e(0x143)]&&_0x1ed956[_0x3f7b2e(0x130)](this[_0x3f7b2e(0x143)]),this[_0x3f7b2e(0x138)]({'tag':_0x3f7b2e(0x136),'attributes':{'class':_0xcc9c8f,'data-user-id':_0x57eeb3['id']},'children':_0x1ed956});}}