@ckeditor/ckeditor5-collaboration-core 45.2.0-alpha.2 → 45.2.0-alpha.4

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 _0x555c9a,Editor as _0x31e108}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x21a421,Collection as _0x2077fd,uid as _0x39b478,first as _0x26887e,FocusTracker as _0x239393,KeystrokeHandler as _0x14a510}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x4ff4dc,IconView as _0x16cbdb,ButtonView as _0xd0c25e,DropdownButtonView as _0xe22211,FocusCycler as _0x47276d,isViewWithFocusCycler as _0x5708b3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x23c1b8,IconCheck as _0x25f840,IconCancel as _0x3fab8d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{DateTime as _0x20f388}from'luxon';class n extends _0x555c9a{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x51ff7e,_0xbd7602){let _0x15b235;if(_0xbd7602||(_0xbd7602=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0xbd7602?_0x15b235=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x15b235=this['context']['editors']['find'](_0x4889d0=>_0x4889d0['config']['get']('collaboration.channelId')==_0xbd7602)),!_0x15b235)throw new _0x21a421('permissions-set-permissions-invalid-channel-id',null);const _0x5e4517=_0x15b235['plugins'],_0x464a7=_0x5e4517['has']('CommentsRepository')?_0x5e4517['get']('CommentsRepository'):void 0x0,_0x433e25=_0x5e4517['has']('CommentsOnly')&&_0x5e4517['get']('CommentsOnly'),_0x7a63cd=_0x51ff7e['includes']('document:write'),_0x599f48=_0x51ff7e['includes']('comment:modify_all'),_0x56bf08=_0x51ff7e['includes']('comment:admin'),_0x3645db=_0x51ff7e['includes']('comment:write'),_0x5d732c=_0x3645db||_0x56bf08,_0x316b75=_0x5d732c||_0x599f48,_0xf519dc=_0x7a63cd||_0x5d732c;(_0x433e25&&(_0x433e25['isEnabled']=!_0x7a63cd&&_0x316b75),_0x15b235 instanceof _0x31e108)&&(!(_0x7a63cd||_0x316b75&&_0x464a7)?_0x15b235['enableReadOnlyMode']('no-permissions'):_0x15b235['disableReadOnlyMode']('no-permissions'));if(_0x464a7){_0x464a7['setPermissions']({'admin':_0x56bf08,'modifyAll':_0x599f48,'write':_0x3645db,'resolve':_0xf519dc},_0xbd7602);const _0x3d3b97=_0x15b235 instanceof _0x31e108&&_0x15b235['commands']['get']('addCommentThread');_0x3d3b97&&(_0x5d732c?_0x3d3b97['clearForceDisabled']('noPermissions'):_0x3d3b97['forceDisabled']('noPermissions'));}}}function o(_0x1ddccd,_0x4a0486){const t=_0x1ddccd['t'];switch(_0x4a0486){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 _0x555c9a{['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(_0x3ad212){super(_0x3ad212),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x2077fd(),this['_locale']=_0x3ad212['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:_0x56335c,name:_0x17ed64,..._0x5ac3e9}){if(!_0x56335c||'string'!=typeof _0x56335c)throw new _0x21a421('users-add-invalid-id');if(this['users']['has'](_0x56335c))throw new _0x21a421('users-add-duplicated-id',null,{'id':_0x56335c});const _0x2412b3=this['context']['config']['get']('users.getInitialsCallback'),_0x2814c3={..._0x5ac3e9,'id':_0x56335c,'name':h(this['_locale'],_0x17ed64),'color':this['_getNextColor']()};_0x2814c3['name']=h(this['_locale'],_0x2814c3['name']);const _0x4d2ce5=new P(_0x2814c3,_0x2412b3);return this['users']['add'](_0x4d2ce5),_0x4d2ce5;}['getUser'](_0x4f00d5){return this['users']['get'](_0x4f00d5);}['useAnonymousUser'](){const _0x154fcc=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x154fcc);}['defineMe'](_0x1af2f6){if(this['_myId'])throw new _0x21a421('users-me-already-defined',null);const _0x8e8e9=this['getUser'](_0x1af2f6);if(!_0x8e8e9)throw new _0x21a421('users-me-missing-user',null);this['_myId']=_0x1af2f6,_0x8e8e9['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x153bf0=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x153bf0&&(this['_lastColor']=0x0),new l(this['_lastColor']++);}['_addAnonymousUser'](){const _0x42d9b3=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x42d9b3,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x3184d0,_0x570dec){this['id']=_0x3184d0['id'],this['color']=_0x3184d0['color'],this['name']=_0x3184d0['name'],this['initials']=_0x570dec?_0x570dec(this['name']):this['_computeInitials'](),this['avatar']=_0x3184d0['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x169dbe=this['name']['split']('\x20')['filter'](_0x47fadd=>/^[\p{Letter}]/u['test'](_0x47fadd));return 0x1===_0x169dbe['length']?this['_getInitial'](_0x169dbe[0x0]):0x0===_0x169dbe['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x169dbe[0x0])+this['_getInitial'](_0x169dbe[_0x169dbe['length']-0x1]);}['_getInitial'](_0x1796a4){return String['fromCodePoint'](_0x1796a4['codePointAt'](0x0))['toUpperCase']();}}function h(_0x1b4cab,_0x4ff56a=''){return''==(_0x4ff56a=_0x4ff56a['trim']())?o(_0x1b4cab,'Anonymous'):_0x4ff56a;}class l{['_id'];constructor(_0x29c582){this['_id']=_0x29c582;}['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 _0x4ff4dc{['name'];['notificationView'];constructor(_0xb6ae4f,_0x38b04a,_0x463c0a){super(_0xb6ae4f),this['name']=_0x38b04a['name'],this['notificationView']=null;const _0x1df5c4=['ck','ck-user'],_0x463a83=['ck','ck-user__img'];if(_0x38b04a['isAnonymous']&&_0x463a83['push']('ck-user__anonymous'),!_0x38b04a['isAnonymous']&&_0x38b04a['isMe']&&_0x1df5c4['push']('ck-user_me'),_0x38b04a['avatar']&&_0x463a83['push']('ck-user__avatar'),_0x463c0a){const _0x71f001=new _0x16cbdb();_0x71f001['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x71f001['content']=_0x23c1b8,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x463c0a},'children':[_0x71f001]};}const _0x528693=[{'tag':'div','attributes':{'class':_0x463a83,'style':{'background-image':_0x38b04a['avatar']?'url(\x27'+_0x38b04a['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x38b04a['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x38b04a['name']},'children':[{'text':_0x38b04a['initials']}]}];this['notificationView']&&_0x528693['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x1df5c4,'data-user-id':_0x38b04a['id']},'children':_0x528693});}}class H extends _0x4ff4dc{['id'];constructor(_0x280b04,_0x58fcfb){super(_0x280b04),this['id']='ck-aria-description-'+_0x39b478(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x58fcfb}]});}}class U extends _0xd0c25e{['render'](){super['render'](),I(this);}}class Y extends _0xe22211{['render'](){super['render'](),I(this);}}function I(_0x58e4b1){_0x58e4b1['listenTo'](_0x58e4b1['element'],'mousedown',(_0xc2081,_0x21a2c9)=>{_0x21a2c9['stopPropagation'](),_0x21a2c9['preventDefault']();}),_0x58e4b1['listenTo'](_0x58e4b1['element'],'mouseup',()=>{_0x58e4b1['element']['focus']();});}function E(_0x127ac4={},_0xd33746){if(void 0x0!==_0x127ac4['dateTimeFormat']&&'function'!=typeof _0x127ac4['dateTimeFormat'])throw new _0x21a421('invalid-date-time-format');return _0x3c1234=>{const _0x398207='string'==typeof _0x3c1234?_0x20f388['fromISO'](_0x3c1234):_0x20f388['fromJSDate'](_0x3c1234),_0x115d72=_0x20f388['now'](),_0x1b04d6=Math['floor'](_0x115d72['diff'](_0x398207,'days')['days']);return _0x127ac4['dateTimeFormat']?_0x127ac4['dateTimeFormat'](_0x398207['toJSDate'](),_0xd33746&&_0xd33746['t']?_0xd33746['t']:void 0x0):0x0===_0x1b04d6?_0xd33746?o(_0xd33746,'Today')+'\x20'+_0x398207['toFormat']('hh:mma'):_0x398207['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x1b04d6?_0xd33746?o(_0xd33746,'Yesterday')+'\x20'+_0x398207['toFormat']('hh:mma'):_0x398207['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x1b04d6<0x7?_0xd33746?o(_0xd33746,'Last')+'\x20'+o(_0xd33746,_0x398207['toFormat']('EEEE'))+'\x20'+_0x398207['toFormat']('hh:mma'):_0x398207['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x398207['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x2c5f5c,_0x4069a6){const _0x4ff849=_0x2c5f5c['mapper']['markerNameToElements'](_0x4069a6['name']);if(!_0x4ff849)return null;const _0xf4a801=_0x26887e(_0x4ff849['values']());return _0x2c5f5c['view']['domConverter']['mapViewToDom'](_0xf4a801)||null;}function R(_0x2b31f8,_0x3beeb6){if(0x0===_0x3beeb6['length'])return null;const _0xe4c45=[],_0x370515=_0x2b31f8['view']['domConverter'];for(const _0x39ab36 of _0x3beeb6){const _0x272eca=_0x2b31f8['mapper']['markerNameToElements'](_0x39ab36['name']);if(!_0x272eca)continue;const _0x1e2a8f=Array['from'](_0x272eca)['map'](_0x3f0692=>_0x370515['mapViewToDom'](_0x3f0692))['filter'](_0x577fc1=>!!_0x577fc1);_0xe4c45['push'](..._0x1e2a8f);}if(0x0===_0xe4c45['length'])return null;const _0x43cc97=[];for(const _0x1559ad of _0xe4c45){const _0x23acb1=_0x1559ad['getClientRects']()['item'](0x0);_0x23acb1&&_0x43cc97['push']({'x':_0x23acb1['x'],'y':_0x23acb1['y'],'domElement':_0x1559ad});}return 0x0===_0x43cc97['length']?null:(_0x43cc97['sort']((_0x304bb7,_0x194396)=>_0x304bb7['y']-_0x194396['y']||_0x304bb7['x']-_0x194396['x']),_0x43cc97['map'](_0x1d9498=>_0x1d9498['domElement']));}function Z(_0x1284b6,{limit:_0x36e24c,suffix:_0x3e4d4a='...'}){const _0x549d75=[];let _0x42f253=0x0;const _0x34d18d=_0x1284b6['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x3c446c=0x0;_0x3c446c<_0x34d18d['length'];_0x3c446c++){let _0x4a9e7a=_0x34d18d[_0x3c446c];const _0x43ca36=$(_0x4a9e7a);if(_0x4a9e7a['startsWith']('<')){if(_0x42f253>=_0x36e24c){const _0x56f6fa=_0x4a9e7a['match'](/[a-zA-Z]+/);if(!_0x56f6fa){_0x34d18d[_0x3c446c]='';continue;}const _0x3a1526=_0x56f6fa[0x0];_0x4a9e7a['startsWith']('</')?(_0x549d75['length']&&(_0x4a9e7a=''),_0x549d75['pop']()):(_0x549d75['push'](_0x3a1526),_0x4a9e7a='');}}else{if(_0x42f253>=_0x36e24c)_0x4a9e7a='';else{if(_0x42f253+_0x43ca36['length']>=_0x36e24c){let _0x372b09=_0x36e24c-_0x42f253;if('\x20'===_0x43ca36[_0x372b09-0x1])_0x372b09--;else{const _0x8bc9b2=_0x43ca36['slice'](_0x372b09)['indexOf']('\x20');-0x1!==_0x8bc9b2?_0x372b09+=_0x8bc9b2:_0x372b09=_0x4a9e7a['length'];}_0x4a9e7a=_0x43ca36['slice'](0x0,_0x372b09)['join']('')+_0x3e4d4a,_0x42f253=_0x36e24c;}else _0x42f253+=_0x43ca36['length'];}}_0x34d18d[_0x3c446c]=_0x4a9e7a;}return _0x34d18d['join']('\x0a')['replace'](/\n/g,'');}function $(_0x47ba51){const _0x46af4d=[];for(let _0xf09f6d=0x0;_0xf09f6d<_0x47ba51['length'];_0xf09f6d++){const _0x41d6a8=_0x47ba51['substring'](_0xf09f6d)['match'](/^&[a-z0-9#]+;/);if(_0x41d6a8){const _0x10ec0a=_0x41d6a8[0x0];_0x46af4d['push'](_0x10ec0a),_0xf09f6d+=_0x10ec0a['length']-0x1;}else _0x46af4d['push'](_0x47ba51[_0xf09f6d]);}return _0x46af4d;}class m extends _0x4ff4dc{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x478a04){super(_0x478a04);const _0x4b6b99=this['bindTemplate'];this['set']('message',o(_0x478a04,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x478a04,o(_0x478a04,'Yes'),_0x25f840,'submit'),this['cancelView']=this['_createButtonView'](_0x478a04,o(_0x478a04,'No'),_0x3fab8d,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x239393(),this['keystrokes']=new _0x14a510(),this['focusCycler']=new _0x47276d({'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':_0x4b6b99['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'](_0x2e1f08,_0x1a3e3d,_0x3802b6,_0x367f74){const _0x10dc3c=new _0xd0c25e(_0x2e1f08);return _0x10dc3c['label']=_0x1a3e3d,_0x10dc3c['icon']=_0x3802b6,_0x10dc3c['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x367f74}}),_0x10dc3c['on']('execute',()=>this['fire'](_0x367f74)),_0x10dc3c;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x133dd6=>{this['keystrokes']['listenTo'](_0x133dd6['element']),this['focusTracker']['add'](_0x133dd6['element']);}),this['keystrokes']['set']('esc',(_0x2859b3,_0x273481)=>{this['fire']('cancel'),_0x273481();});}}function c(_0x547a0c){return class extends _0x547a0c{['showConfirm'](_0x1c7735,_0x2aba43){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x1c7735,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x2aba43['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x3210b0=>this['confirmView']['on']('submit',_0x3210b0));}['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(_0x214448){let _0x92b54b=0x0,_0x116d61=0x0;for(const _0x31e34f of M(_0x214448))_0x92b54b=(_0x92b54b<<0x5)-_0x92b54b+_0x31e34f,_0x92b54b&=_0x92b54b,[_0x92b54b,_0x116d61]=[_0x116d61,_0x92b54b];return w(_0x92b54b)+w(_0x116d61);}function*g(_0x3afef3){null==_0x3afef3||null==_0x3afef3?yield 0x12b9b0a1:0x0===_0x3afef3||!0x1===_0x3afef3?yield 0x0:0x1===_0x3afef3||0x1==_0x3afef3?yield 0x1:Array['isArray'](_0x3afef3)?yield*function*(_0xea6f6e){for(const _0x187466 of _0xea6f6e)yield*g(_0x187466);}(_0x3afef3):'object'==typeof _0x3afef3?yield*M(_0x3afef3):'string'==typeof _0x3afef3?yield*O(_0x3afef3):'number'==typeof _0x3afef3&&(yield _0x3afef3);}function*M(_0x16dcf9){if(yield q('{'),_0x16dcf9){const _0x24eae7=Object['keys'](_0x16dcf9)['sort']();for(const _0x2148b3 of _0x24eae7){yield*O(_0x2148b3),yield q(':');const _0x563ac0=_0x16dcf9[_0x2148b3];yield*g(_0x563ac0);}}yield q('}');}function*O(_0x453538){yield q('\x22');for(const _0x44c377 of _0x453538)yield q(_0x44c377);yield q('\x22');}function q(_0x309cb8){return _0x309cb8['charCodeAt'](0x0);}function w(_0x14dd81){return(_0x14dd81*=Math['sign'](_0x14dd81))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],D=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function S(_0x2a2a6b,_0x594519,_0x2bee5d,_0x4e17aa=[]){const _0x99206a='string'==typeof _0x2a2a6b?_0x2bee5d['get'](_0x2a2a6b)['constructor']:_0x2a2a6b['prototype']['constructor'];if(_0x594519['has'](_0x99206a))return _0x594519['get'](_0x99206a);_0x594519['set'](_0x99206a,!0x0);const _0x3d6f14=[...D,..._0x4e17aa]['map'](_0x6187a=>{if(_0x2bee5d['has'](_0x6187a))return _0x2bee5d['get'](_0x6187a)['constructor'];})['filter'](_0x3de953=>_0x3de953);if(_0x99206a&&_0x3d6f14['includes'](_0x99206a))return _0x594519['set'](_0x99206a,!0x1),!0x1;if(!_0x99206a['requires'])return _0x594519['set'](_0x99206a,!0x0),!0x0;const _0xdb02e7=_0x99206a['requires']['every'](_0x10c392=>S(_0x10c392,_0x594519,_0x2bee5d,_0x4e17aa));return _0x594519['set'](_0x99206a,_0xdb02e7),_0xdb02e7;}function C(_0x5e5893,_0x1251ac){const _0x5a4684={};for(const _0x5b87c0 of _0x5e5893['config']['names']())W['includes'](_0x5b87c0)||(_0x5a4684[_0x5b87c0]=_0x5e5893['config']['get'](_0x5b87c0));const _0x4c004e=_0x5a4684['plugins']||[],_0x2adb3e=_0x5e5893['constructor']['builtinPlugins']||[],_0x351706=_0x4c004e['length']?_0x4c004e:_0x2adb3e,_0x9b8090=_0x5a4684['extraPlugins']||[];delete _0x5a4684['extraPlugins'];const _0x3a1f7b=_0x5a4684['removePlugins']||[];delete _0x5a4684['removePlugins'];const _0x5d1cf9=_0x5e5893['_context']['config']['get']('plugins')||[],_0x2d9ac2=_0x351706['concat'](_0x9b8090)['concat'](_0x5d1cf9)['map'](_0x42f53c=>'string'==typeof _0x42f53c?_0x2adb3e['find'](_0x1a9160=>_0x1a9160['pluginName']==_0x42f53c):_0x42f53c)['filter'](_0x30b813=>!_0x3a1f7b['includes'](_0x30b813)&&!_0x3a1f7b['includes'](_0x30b813['pluginName'])),_0x5830d9=Array['from'](new Set(_0x2d9ac2)),_0x20ca30=new Map();return _0x5a4684['plugins']=_0x5830d9['filter'](_0x327d2a=>S(_0x327d2a,_0x20ca30,_0x5e5893['plugins'],_0x1251ac)),_0x5a4684;}function z(_0x15c02c,_0xf994af){const _0x3aa38d=[];_0x15c02c['document']['selection']['on']('change:range',()=>{const _0x20b27f=function(_0x28f240,_0x429452){const _0x383a60=[];for(const _0x30a43c of _0x28f240['markers']){const _0x370627=_0x30a43c['getRange']();(_0x370627['containsPosition'](_0x429452)||_0x370627['start']['isEqual'](_0x429452)||_0x370627['end']['isEqual'](_0x429452))&&_0x383a60['push'](_0x30a43c);}return _0x383a60;}(_0x15c02c,_0x15c02c['document']['selection']['focus']),_0x8b368=[],_0x14e6c0=[],_0x4c34eb=[];for(const _0x5d9b1e of _0x3aa38d)_0x20b27f['includes'](_0x5d9b1e)||_0x8b368['push'](_0x5d9b1e);for(const _0x2d8888 of _0x20b27f)_0x3aa38d['includes'](_0x2d8888)||_0x14e6c0['push'](_0x2d8888),_0x4c34eb['push'](_0x2d8888);(_0x8b368['length']||_0x14e6c0['length'])&&_0xf994af({'left':_0x8b368,'entered':_0x14e6c0}),_0x3aa38d['length']=0x0,_0x3aa38d['push'](..._0x4c34eb);});}const J='Ctrl+Shift+E';function T(_0x4d1d05,_0x4bd79e){const _0xbb5736=_0x4d1d05['element'];_0x4d1d05['keystrokes']['listenTo'](_0xbb5736);for(const _0x8fd6fd of _0x4bd79e)K(_0x4d1d05,_0x8fd6fd);_0x4bd79e['on']('change',(_0x97036e,_0x47a2ee)=>{for(const _0x1e4282 of _0x47a2ee['removed'])_(_0x4d1d05,_0x1e4282);for(const _0x23d04c of Array['from'](_0x47a2ee['added'])['reverse']())K(_0x4d1d05,_0x23d04c);}),_0x4d1d05['keystrokes']['set']('enter',(_0x500c72,_0x4cbf99)=>{_0xbb5736===_0x500c72['target']&&(_0x4d1d05['focusCycler']['focusFirst'](),_0x4cbf99());},{'filter':_0x4c1474=>_0x4c1474['target']===_0xbb5736}),_0x4d1d05['keystrokes']['set']('esc',(_0x31c2a8,_0x167b8a)=>{_0xbb5736!==_0x31c2a8['target']?_0x4d1d05['focus']():_0x4d1d05['fire']('escape'),_0x167b8a();}),_0x4d1d05['keystrokes']['set']('arrowdown',(_0x5f276f,_0x4d6ce7)=>{_0xbb5736===_0x5f276f['target']&&(_0x4d1d05['fire']('arrowdown'),_0x4d6ce7());}),_0x4d1d05['keystrokes']['set']('arrowup',(_0x5e1147,_0x2d62d8)=>{_0xbb5736===_0x5e1147['target']&&(_0x4d1d05['fire']('arrowup'),_0x2d62d8());});}function K(_0x59d870,_0x56a326){_0x56a326['isRendered']&&(_0x59d870['focusTracker']['add'](_0x56a326['element']),_0x59d870['keystrokes']['listenTo'](_0x56a326['element']),_0x5708b3(_0x56a326)&&function(_0x11dff2,_0x315e05){const _0x1fd1b9=_0x11dff2['actions'],_0xf8aeb0=_0x315e05['actions'];for(const _0x5c52cf of Object['keys'](_0x1fd1b9))if(_0x5c52cf in _0xf8aeb0&&_0x1fd1b9[_0x5c52cf]!==_0xf8aeb0[_0x5c52cf])return!0x1;return!0x0;}(_0x59d870['focusCycler'],_0x56a326['focusCycler'])&&_0x59d870['focusCycler']['chain'](_0x56a326['focusCycler']));}function _(_0x4772e3,_0x2fd652){_0x4772e3['focusTracker']['remove'](_0x2fd652['element']),_0x4772e3['keystrokes']['stopListening'](_0x2fd652['element']),_0x5708b3(_0x2fd652)&&_0x4772e3['focusCycler']['unchain'](_0x2fd652['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 _0x1fe64e,Editor as _0x2fc7ab}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x481fa8,Collection as _0x354ed3,uid as _0x29d085,first as _0x578ce9,FocusTracker as _0x196e5a,KeystrokeHandler as _0x174624}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x13c6a5,IconView as _0xee8a0b,ButtonView as _0x4a4de6,DropdownButtonView as _0x36c2d6,FocusCycler as _0x28b3f3,isViewWithFocusCycler as _0x2060bf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x31294c,IconCheck as _0x14057e,IconCancel as _0x9298cc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{DateTime as _0x48ae17}from'luxon';class n extends _0x1fe64e{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x3f4985,_0x5c586d){let _0x35b8c3;if(_0x5c586d||(_0x5c586d=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x5c586d?_0x35b8c3=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x35b8c3=this['context']['editors']['find'](_0x45c04c=>_0x45c04c['config']['get']('collaboration.channelId')==_0x5c586d)),!_0x35b8c3)throw new _0x481fa8('permissions-set-permissions-invalid-channel-id',null);const _0x343b3f=_0x35b8c3['plugins'],_0x4b0211=_0x343b3f['has']('CommentsRepository')?_0x343b3f['get']('CommentsRepository'):void 0x0,_0x5998e4=_0x343b3f['has']('CommentsOnly')&&_0x343b3f['get']('CommentsOnly'),_0x3ced3d=_0x3f4985['includes']('document:write'),_0x3d1d92=_0x3f4985['includes']('comment:modify_all'),_0x28cee9=_0x3f4985['includes']('comment:admin'),_0x287380=_0x3f4985['includes']('comment:write'),_0x133843=_0x287380||_0x28cee9,_0x45978c=_0x133843||_0x3d1d92,_0x4ef251=_0x3ced3d||_0x133843;(_0x5998e4&&(_0x5998e4['isEnabled']=!_0x3ced3d&&_0x45978c),_0x35b8c3 instanceof _0x2fc7ab)&&(!(_0x3ced3d||_0x45978c&&_0x4b0211)?_0x35b8c3['enableReadOnlyMode']('no-permissions'):_0x35b8c3['disableReadOnlyMode']('no-permissions'));if(_0x4b0211){_0x4b0211['setPermissions']({'admin':_0x28cee9,'modifyAll':_0x3d1d92,'write':_0x287380,'resolve':_0x4ef251},_0x5c586d);const _0x2a47c2=_0x35b8c3 instanceof _0x2fc7ab&&_0x35b8c3['commands']['get']('addCommentThread');_0x2a47c2&&(_0x133843?_0x2a47c2['clearForceDisabled']('noPermissions'):_0x2a47c2['forceDisabled']('noPermissions'));}}}function o(_0x1c282b,_0xe05187){const t=_0x1c282b['t'];switch(_0xe05187){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 _0x1fe64e{['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(_0x2651fd){super(_0x2651fd),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x354ed3(),this['_locale']=_0x2651fd['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:_0x6b8863,name:_0x417df7,..._0x2f7b05}){if(!_0x6b8863||'string'!=typeof _0x6b8863)throw new _0x481fa8('users-add-invalid-id');if(this['users']['has'](_0x6b8863))throw new _0x481fa8('users-add-duplicated-id',null,{'id':_0x6b8863});const _0x5a9166=this['context']['config']['get']('users.getInitialsCallback'),_0x217e7e={..._0x2f7b05,'id':_0x6b8863,'name':h(this['_locale'],_0x417df7),'color':this['_getNextColor']()};_0x217e7e['name']=h(this['_locale'],_0x217e7e['name']);const _0x4150cb=new P(_0x217e7e,_0x5a9166);return this['users']['add'](_0x4150cb),_0x4150cb;}['getUser'](_0x5157f8){return this['users']['get'](_0x5157f8);}['useAnonymousUser'](){const _0x4e5054=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x4e5054);}['defineMe'](_0x4005a6){if(this['_myId'])throw new _0x481fa8('users-me-already-defined',null);const _0x391fbf=this['getUser'](_0x4005a6);if(!_0x391fbf)throw new _0x481fa8('users-me-missing-user',null);this['_myId']=_0x4005a6,_0x391fbf['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x14eeb5=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x14eeb5&&(this['_lastColor']=0x0),new l(this['_lastColor']++);}['_addAnonymousUser'](){const _0x123172=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x123172,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x15bebe,_0x3a090d){this['id']=_0x15bebe['id'],this['color']=_0x15bebe['color'],this['name']=_0x15bebe['name'],this['initials']=_0x3a090d?_0x3a090d(this['name']):this['_computeInitials'](),this['avatar']=_0x15bebe['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x776035=this['name']['split']('\x20')['filter'](_0x192ddc=>/^[\p{Letter}]/u['test'](_0x192ddc));return 0x1===_0x776035['length']?this['_getInitial'](_0x776035[0x0]):0x0===_0x776035['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x776035[0x0])+this['_getInitial'](_0x776035[_0x776035['length']-0x1]);}['_getInitial'](_0x14e3ce){return String['fromCodePoint'](_0x14e3ce['codePointAt'](0x0))['toUpperCase']();}}function h(_0x2b2d43,_0x6e5d93=''){return''==(_0x6e5d93=_0x6e5d93['trim']())?o(_0x2b2d43,'Anonymous'):_0x6e5d93;}class l{['_id'];constructor(_0x180046){this['_id']=_0x180046;}['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 _0x13c6a5{['name'];['notificationView'];constructor(_0x2ab204,_0x218e1e,_0x4decba){super(_0x2ab204),this['name']=_0x218e1e['name'],this['notificationView']=null;const _0x57681f=['ck','ck-user'],_0x194069=['ck','ck-user__img'];if(_0x218e1e['isAnonymous']&&_0x194069['push']('ck-user__anonymous'),!_0x218e1e['isAnonymous']&&_0x218e1e['isMe']&&_0x57681f['push']('ck-user_me'),_0x218e1e['avatar']&&_0x194069['push']('ck-user__avatar'),_0x4decba){const _0x6ca874=new _0xee8a0b();_0x6ca874['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x6ca874['content']=_0x31294c,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x4decba},'children':[_0x6ca874]};}const _0x886e8d=[{'tag':'div','attributes':{'class':_0x194069,'style':{'background-image':_0x218e1e['avatar']?'url(\x27'+_0x218e1e['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x218e1e['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x218e1e['name']},'children':[{'text':_0x218e1e['initials']}]}];this['notificationView']&&_0x886e8d['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x57681f,'data-user-id':_0x218e1e['id']},'children':_0x886e8d});}}class F extends _0x13c6a5{['id'];constructor(_0x29a298,_0x363370){super(_0x29a298),this['id']='ck-aria-description-'+_0x29d085(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x363370}]});}}class U extends _0x4a4de6{['render'](){super['render'](),V(this);}}class Y extends _0x36c2d6{['render'](){super['render'](),V(this);}}function V(_0x578883){_0x578883['listenTo'](_0x578883['element'],'mousedown',(_0x1460d3,_0x423a2c)=>{_0x423a2c['stopPropagation'](),_0x423a2c['preventDefault']();}),_0x578883['listenTo'](_0x578883['element'],'mouseup',()=>{_0x578883['element']['focus']();});}function E(_0x5d9899={},_0x4f4acc){if(void 0x0!==_0x5d9899['dateTimeFormat']&&'function'!=typeof _0x5d9899['dateTimeFormat'])throw new _0x481fa8('invalid-date-time-format');return _0x576b35=>{const _0x23541f='string'==typeof _0x576b35?_0x48ae17['fromISO'](_0x576b35):_0x48ae17['fromJSDate'](_0x576b35),_0x59ad6c=_0x48ae17['now'](),_0x14d609=Math['floor'](_0x59ad6c['diff'](_0x23541f,'days')['days']);return _0x5d9899['dateTimeFormat']?_0x5d9899['dateTimeFormat'](_0x23541f['toJSDate'](),_0x4f4acc&&_0x4f4acc['t']?_0x4f4acc['t']:void 0x0):0x0===_0x14d609?_0x4f4acc?o(_0x4f4acc,'Today')+'\x20'+_0x23541f['toFormat']('hh:mma'):_0x23541f['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x14d609?_0x4f4acc?o(_0x4f4acc,'Yesterday')+'\x20'+_0x23541f['toFormat']('hh:mma'):_0x23541f['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x14d609<0x7?_0x4f4acc?o(_0x4f4acc,'Last')+'\x20'+o(_0x4f4acc,_0x23541f['toFormat']('EEEE'))+'\x20'+_0x23541f['toFormat']('hh:mma'):_0x23541f['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x23541f['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x2bee31,_0x3a1145){const _0x1ebfa5=_0x2bee31['mapper']['markerNameToElements'](_0x3a1145['name']);if(!_0x1ebfa5)return null;const _0x686822=_0x578ce9(_0x1ebfa5['values']());return _0x2bee31['view']['domConverter']['mapViewToDom'](_0x686822)||null;}function R(_0x579a1e,_0x4ac4da){if(0x0===_0x4ac4da['length'])return null;const _0x4431da=[],_0x3ed775=_0x579a1e['view']['domConverter'];for(const _0x279deb of _0x4ac4da){const _0x540bed=_0x579a1e['mapper']['markerNameToElements'](_0x279deb['name']);if(!_0x540bed)continue;const _0x22824d=Array['from'](_0x540bed)['map'](_0x2de90c=>_0x3ed775['mapViewToDom'](_0x2de90c))['filter'](_0x550f66=>!!_0x550f66);_0x4431da['push'](..._0x22824d);}if(0x0===_0x4431da['length'])return null;const _0x223dd0=[];for(const _0x28ccf3 of _0x4431da){const _0x25465d=_0x28ccf3['getClientRects']()['item'](0x0);_0x25465d&&_0x223dd0['push']({'x':_0x25465d['x'],'y':_0x25465d['y'],'domElement':_0x28ccf3});}return 0x0===_0x223dd0['length']?null:(_0x223dd0['sort']((_0x32862e,_0xf18800)=>_0x32862e['y']-_0xf18800['y']||_0x32862e['x']-_0xf18800['x']),_0x223dd0['map'](_0x41466=>_0x41466['domElement']));}function Z(_0x504ea2,{limit:_0x504829,suffix:_0x3d4f47='...'}){const _0x510ca0=[];let _0x388bee=0x0;const _0xe3f373=_0x504ea2['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x521b0c=0x0;_0x521b0c<_0xe3f373['length'];_0x521b0c++){let _0x477c94=_0xe3f373[_0x521b0c];const _0x58718e=$(_0x477c94);if(_0x477c94['startsWith']('<')){if(_0x388bee>=_0x504829){const _0x3974a6=_0x477c94['match'](/[a-zA-Z]+/);if(!_0x3974a6){_0xe3f373[_0x521b0c]='';continue;}const _0x3f42c4=_0x3974a6[0x0];_0x477c94['startsWith']('</')?(_0x510ca0['length']&&(_0x477c94=''),_0x510ca0['pop']()):(_0x510ca0['push'](_0x3f42c4),_0x477c94='');}}else{if(_0x388bee>=_0x504829)_0x477c94='';else{if(_0x388bee+_0x58718e['length']>=_0x504829){let _0x16f781=_0x504829-_0x388bee;if('\x20'===_0x58718e[_0x16f781-0x1])_0x16f781--;else{const _0x298737=_0x58718e['slice'](_0x16f781)['indexOf']('\x20');-0x1!==_0x298737?_0x16f781+=_0x298737:_0x16f781=_0x477c94['length'];}_0x477c94=_0x58718e['slice'](0x0,_0x16f781)['join']('')+_0x3d4f47,_0x388bee=_0x504829;}else _0x388bee+=_0x58718e['length'];}}_0xe3f373[_0x521b0c]=_0x477c94;}return _0xe3f373['join']('\x0a')['replace'](/\n/g,'');}function $(_0x3cc0ef){const _0x3e4de8=[];for(let _0x561803=0x0;_0x561803<_0x3cc0ef['length'];_0x561803++){const _0x2017ca=_0x3cc0ef['substring'](_0x561803)['match'](/^&[a-z0-9#]+;/);if(_0x2017ca){const _0x3652ab=_0x2017ca[0x0];_0x3e4de8['push'](_0x3652ab),_0x561803+=_0x3652ab['length']-0x1;}else _0x3e4de8['push'](_0x3cc0ef[_0x561803]);}return _0x3e4de8;}class m extends _0x13c6a5{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x45b140){super(_0x45b140);const _0x35b394=this['bindTemplate'];this['set']('message',o(_0x45b140,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x45b140,o(_0x45b140,'Yes'),_0x14057e,'submit'),this['cancelView']=this['_createButtonView'](_0x45b140,o(_0x45b140,'No'),_0x9298cc,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x196e5a(),this['keystrokes']=new _0x174624(),this['focusCycler']=new _0x28b3f3({'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':_0x35b394['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'](_0xfb15f7,_0x396f0b,_0x19f03b,_0x94f92a){const _0xb02d7c=new _0x4a4de6(_0xfb15f7);return _0xb02d7c['label']=_0x396f0b,_0xb02d7c['icon']=_0x19f03b,_0xb02d7c['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x94f92a}}),_0xb02d7c['on']('execute',()=>this['fire'](_0x94f92a)),_0xb02d7c;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x1f8f43=>{this['keystrokes']['listenTo'](_0x1f8f43['element']),this['focusTracker']['add'](_0x1f8f43['element']);}),this['keystrokes']['set']('esc',(_0x4befd1,_0x11c9b6)=>{this['fire']('cancel'),_0x11c9b6();});}}function c(_0x17b3ee){return class extends _0x17b3ee{['showConfirm'](_0x1f7b2b,_0x2cc50a){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x1f7b2b,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x2cc50a['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x49c671=>this['confirmView']['on']('submit',_0x49c671));}['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(_0x4c4045){let _0x15cf1e=0x0,_0x22fca0=0x0;for(const _0xbb0af of M(_0x4c4045))_0x15cf1e=(_0x15cf1e<<0x5)-_0x15cf1e+_0xbb0af,_0x15cf1e&=_0x15cf1e,[_0x15cf1e,_0x22fca0]=[_0x22fca0,_0x15cf1e];return w(_0x15cf1e)+w(_0x22fca0);}function*g(_0x591279){null==_0x591279||null==_0x591279?yield 0x12b9b0a1:0x0===_0x591279||!0x1===_0x591279?yield 0x0:0x1===_0x591279||0x1==_0x591279?yield 0x1:Array['isArray'](_0x591279)?yield*function*(_0x3ca6e8){for(const _0x1d5f36 of _0x3ca6e8)yield*g(_0x1d5f36);}(_0x591279):'object'==typeof _0x591279?yield*M(_0x591279):'string'==typeof _0x591279?yield*O(_0x591279):'number'==typeof _0x591279&&(yield _0x591279);}function*M(_0x2ba70f){if(yield q('{'),_0x2ba70f){const _0x14f5f8=Object['keys'](_0x2ba70f)['sort']();for(const _0x228c84 of _0x14f5f8){yield*O(_0x228c84),yield q(':');const _0x20c2fc=_0x2ba70f[_0x228c84];yield*g(_0x20c2fc);}}yield q('}');}function*O(_0x32dcd0){yield q('\x22');for(const _0x38676e of _0x32dcd0)yield q(_0x38676e);yield q('\x22');}function q(_0xe29b7){return _0xe29b7['charCodeAt'](0x0);}function w(_0x4f37f9){return(_0x4f37f9*=Math['sign'](_0x4f37f9))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],D=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function S(_0x4c4338,_0x1f5e31,_0x357b88,_0x63aebc=[]){const _0x5762f7='string'==typeof _0x4c4338?_0x357b88['get'](_0x4c4338)['constructor']:_0x4c4338['prototype']['constructor'];if(_0x1f5e31['has'](_0x5762f7))return _0x1f5e31['get'](_0x5762f7);_0x1f5e31['set'](_0x5762f7,!0x0);const _0x1099c3=[...D,..._0x63aebc]['map'](_0x5a47fe=>{if(_0x357b88['has'](_0x5a47fe))return _0x357b88['get'](_0x5a47fe)['constructor'];})['filter'](_0x42a96f=>_0x42a96f);if(_0x5762f7&&_0x1099c3['includes'](_0x5762f7))return _0x1f5e31['set'](_0x5762f7,!0x1),!0x1;if(!_0x5762f7['requires'])return _0x1f5e31['set'](_0x5762f7,!0x0),!0x0;const _0xad47ba=_0x5762f7['requires']['every'](_0x27c3ac=>S(_0x27c3ac,_0x1f5e31,_0x357b88,_0x63aebc));return _0x1f5e31['set'](_0x5762f7,_0xad47ba),_0xad47ba;}function C(_0x481369,_0x72a204){const _0x1a3810={};for(const _0x3b16b4 of _0x481369['config']['names']())W['includes'](_0x3b16b4)||(_0x1a3810[_0x3b16b4]=_0x481369['config']['get'](_0x3b16b4));const _0x4cc47b=_0x1a3810['plugins']||[],_0x92be50=_0x481369['constructor']['builtinPlugins']||[],_0x27e75c=_0x4cc47b['length']?_0x4cc47b:_0x92be50,_0x3aa6f4=_0x1a3810['extraPlugins']||[];delete _0x1a3810['extraPlugins'];const _0x264380=_0x1a3810['removePlugins']||[];delete _0x1a3810['removePlugins'];const _0x5b5d7e=_0x481369['_context']['config']['get']('plugins')||[],_0x3ff1c0=_0x27e75c['concat'](_0x3aa6f4)['concat'](_0x5b5d7e)['map'](_0x117346=>'string'==typeof _0x117346?_0x92be50['find'](_0x3e4274=>_0x3e4274['pluginName']==_0x117346):_0x117346)['filter'](_0x3fc311=>!_0x264380['includes'](_0x3fc311)&&!_0x264380['includes'](_0x3fc311['pluginName'])),_0x11428c=Array['from'](new Set(_0x3ff1c0)),_0x599044=new Map();return _0x1a3810['plugins']=_0x11428c['filter'](_0x2349b3=>S(_0x2349b3,_0x599044,_0x481369['plugins'],_0x72a204)),_0x1a3810;}function z(_0x302501,_0x3919f9){const _0x1a8b8d=[];_0x302501['document']['selection']['on']('change:range',()=>{const _0x327678=function(_0x1ddfd9,_0x694981){const _0x22446a=[];for(const _0x2bf146 of _0x1ddfd9['markers']){const _0x24b8fc=_0x2bf146['getRange']();(_0x24b8fc['containsPosition'](_0x694981)||_0x24b8fc['start']['isEqual'](_0x694981)||_0x24b8fc['end']['isEqual'](_0x694981))&&_0x22446a['push'](_0x2bf146);}return _0x22446a;}(_0x302501,_0x302501['document']['selection']['focus']),_0x3bee4b=[],_0x27ef2f=[],_0x409c12=[];for(const _0x4119cb of _0x1a8b8d)_0x327678['includes'](_0x4119cb)||_0x3bee4b['push'](_0x4119cb);for(const _0x211937 of _0x327678)_0x1a8b8d['includes'](_0x211937)||_0x27ef2f['push'](_0x211937),_0x409c12['push'](_0x211937);(_0x3bee4b['length']||_0x27ef2f['length'])&&_0x3919f9({'left':_0x3bee4b,'entered':_0x27ef2f}),_0x1a8b8d['length']=0x0,_0x1a8b8d['push'](..._0x409c12);});}const J='Ctrl+Shift+E';function T(_0x4ce857,_0xe73c7){const _0x17c2d6=_0x4ce857['element'];_0x4ce857['keystrokes']['listenTo'](_0x17c2d6);for(const _0x317827 of _0xe73c7)K(_0x4ce857,_0x317827);_0xe73c7['on']('change',(_0x43a329,_0x4812ca)=>{for(const _0x159b46 of _0x4812ca['removed'])_(_0x4ce857,_0x159b46);for(const _0xe88289 of Array['from'](_0x4812ca['added'])['reverse']())K(_0x4ce857,_0xe88289);}),_0x4ce857['keystrokes']['set']('enter',(_0x2bdc76,_0x331c03)=>{_0x17c2d6===_0x2bdc76['target']&&(_0x4ce857['focusCycler']['focusFirst'](),_0x331c03());},{'filter':_0x57fd1e=>_0x57fd1e['target']===_0x17c2d6}),_0x4ce857['keystrokes']['set']('esc',(_0x51cf6b,_0x1e1c78)=>{_0x17c2d6!==_0x51cf6b['target']?_0x4ce857['focus']():_0x4ce857['fire']('escape'),_0x1e1c78();}),_0x4ce857['keystrokes']['set']('arrowdown',(_0x54cc8e,_0x18a924)=>{_0x17c2d6===_0x54cc8e['target']&&(_0x4ce857['fire']('arrowdown'),_0x18a924());}),_0x4ce857['keystrokes']['set']('arrowup',(_0x97e7fd,_0x1108fb)=>{_0x17c2d6===_0x97e7fd['target']&&(_0x4ce857['fire']('arrowup'),_0x1108fb());});}function K(_0xc77186,_0x276a56){_0x276a56['isRendered']&&(_0xc77186['focusTracker']['add'](_0x276a56['element']),_0xc77186['keystrokes']['listenTo'](_0x276a56['element']),_0x2060bf(_0x276a56)&&function(_0x182fc8,_0xf1877c){const _0x3a3c0e=_0x182fc8['actions'],_0x4ca671=_0xf1877c['actions'];for(const _0x3fbe8f of Object['keys'](_0x3a3c0e))if(_0x3fbe8f in _0x4ca671&&_0x3a3c0e[_0x3fbe8f]!==_0x4ca671[_0x3fbe8f])return!0x1;return!0x0;}(_0xc77186['focusCycler'],_0x276a56['focusCycler'])&&_0xc77186['focusCycler']['chain'](_0x276a56['focusCycler']));}function _(_0xe209bf,_0x4b7ceb){_0xe209bf['focusTracker']['remove'](_0x4b7ceb['element']),_0xe209bf['keystrokes']['stopListening'](_0x4b7ceb['element']),_0x2060bf(_0x4b7ceb)&&_0xe209bf['focusCycler']['unchain'](_0x4b7ceb['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.0-alpha.2",
3
+ "version": "45.2.0-alpha.4",
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.0-alpha.2",
36
- "@ckeditor/ckeditor5-core": "45.2.0-alpha.2",
37
- "@ckeditor/ckeditor5-icons": "45.2.0-alpha.2",
38
- "@ckeditor/ckeditor5-theme-lark": "45.2.0-alpha.2",
39
- "@ckeditor/ckeditor5-track-changes": "45.2.0-alpha.2",
40
- "@ckeditor/ckeditor5-ui": "45.2.0-alpha.2",
41
- "@ckeditor/ckeditor5-utils": "45.2.0-alpha.2",
35
+ "@ckeditor/ckeditor5-comments": "45.2.0-alpha.4",
36
+ "@ckeditor/ckeditor5-core": "45.2.0-alpha.4",
37
+ "@ckeditor/ckeditor5-icons": "45.2.0-alpha.4",
38
+ "@ckeditor/ckeditor5-theme-lark": "45.2.0-alpha.4",
39
+ "@ckeditor/ckeditor5-track-changes": "45.2.0-alpha.4",
40
+ "@ckeditor/ckeditor5-ui": "45.2.0-alpha.4",
41
+ "@ckeditor/ckeditor5-utils": "45.2.0-alpha.4",
42
42
  "@types/luxon": "3.4.2",
43
- "ckeditor5": "45.2.0-alpha.2",
43
+ "ckeditor5": "45.2.0-alpha.4",
44
44
  "luxon": "3.5.0"
45
45
  },
46
46
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x301726,_0x4051ca){var _0xced726=_0x394e,_0x42b697=_0x301726();while(!![]){try{var _0x283e36=parseInt(_0xced726(0x1db))/0x1*(-parseInt(_0xced726(0x1da))/0x2)+parseInt(_0xced726(0x1d7))/0x3+-parseInt(_0xced726(0x1dd))/0x4*(-parseInt(_0xced726(0x1d2))/0x5)+-parseInt(_0xced726(0x1d9))/0x6+parseInt(_0xced726(0x1de))/0x7+-parseInt(_0xced726(0x1d4))/0x8+parseInt(_0xced726(0x1dc))/0x9;if(_0x283e36===_0x4051ca)break;else _0x42b697['push'](_0x42b697['shift']());}catch(_0x303144){_0x42b697['push'](_0x42b697['shift']());}}}(_0x5218,0x38f3e));import{uid as _0x1fb2be}from'ckeditor5/src/utils.js';import{View as _0x282430}from'ckeditor5/src/ui.js';function _0x5218(){var _0x4d55eb=['547fvPzRn','3041550PGFtCI','20716rvhENs','2580837AXeZJl','310PORDGU','span','2097168zcFngJ','setTemplate','ck-aria-description-','952728aYuwXr','ck-aria-description','2335902HCqzzf','1684EickkJ'];_0x5218=function(){return _0x4d55eb;};return _0x5218();}function _0x394e(_0x3a7b2f,_0x55d2cf){var _0x5218d4=_0x5218();return _0x394e=function(_0x394e38,_0x15d53f){_0x394e38=_0x394e38-0x1d2;var _0x53357a=_0x5218d4[_0x394e38];return _0x53357a;},_0x394e(_0x3a7b2f,_0x55d2cf);}export default class H extends _0x282430{['id'];constructor(_0xb87e4f,_0x5d4809){var _0x5efeee=_0x394e;super(_0xb87e4f),this['id']=_0x5efeee(0x1d6)+_0x1fb2be(),this[_0x5efeee(0x1d5)]({'tag':_0x5efeee(0x1d3),'attributes':{'class':['ck',_0x5efeee(0x1d8)],'id':this['id']},'children':[{'text':_0x5d4809}]});}}
23
+ (function(_0x3658d4,_0x21755e){var _0x55ab35=_0x7302,_0x2129b9=_0x3658d4();while(!![]){try{var _0x543cb8=parseInt(_0x55ab35(0x6c))/0x1+-parseInt(_0x55ab35(0x77))/0x2+-parseInt(_0x55ab35(0x73))/0x3+parseInt(_0x55ab35(0x6f))/0x4+parseInt(_0x55ab35(0x76))/0x5+parseInt(_0x55ab35(0x6e))/0x6*(parseInt(_0x55ab35(0x75))/0x7)+-parseInt(_0x55ab35(0x74))/0x8;if(_0x543cb8===_0x21755e)break;else _0x2129b9['push'](_0x2129b9['shift']());}catch(_0x3426b4){_0x2129b9['push'](_0x2129b9['shift']());}}}(_0x5ae3,0x338a9));function _0x7302(_0x3e088e,_0x412e8f){var _0x5ae3c4=_0x5ae3();return _0x7302=function(_0x7302a9,_0x575d3c){_0x7302a9=_0x7302a9-0x6c;var _0x40e43e=_0x5ae3c4[_0x7302a9];return _0x40e43e;},_0x7302(_0x3e088e,_0x412e8f);}import{uid as _0x12a629}from'ckeditor5/src/utils.js';import{View as _0x3c1773}from'ckeditor5/src/ui.js';function _0x5ae3(){var _0x5add2d=['6120QTkYwT','1069528uJgcwu','ck-aria-description','span','setTemplate','492228tniqQf','5968392fSexGq','2779jHfPlj','1800585BHpdWi','109124uzKLHa','143361NxQiXz','ck-aria-description-'];_0x5ae3=function(){return _0x5add2d;};return _0x5ae3();}export default class F extends _0x3c1773{['id'];constructor(_0x54cd24,_0x139fd1){var _0xa2cd5d=_0x7302;super(_0x54cd24),this['id']=_0xa2cd5d(0x6d)+_0x12a629(),this[_0xa2cd5d(0x72)]({'tag':_0xa2cd5d(0x71),'attributes':{'class':['ck',_0xa2cd5d(0x70)],'id':this['id']},'children':[{'text':_0x139fd1}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4eae(_0xe8d4c4,_0x51569b){var _0x37132b=_0x3713();return _0x4eae=function(_0x4eae90,_0x356be3){_0x4eae90=_0x4eae90-0xa6;var _0x40358b=_0x37132b[_0x4eae90];return _0x40358b;},_0x4eae(_0xe8d4c4,_0x51569b);}var _0x2b8c8c=_0x4eae;(function(_0x20b6c8,_0x4f20a3){var _0x1954a3=_0x4eae,_0x16b847=_0x20b6c8();while(!![]){try{var _0x2d7552=-parseInt(_0x1954a3(0xa7))/0x1+parseInt(_0x1954a3(0xae))/0x2+parseInt(_0x1954a3(0xaf))/0x3+-parseInt(_0x1954a3(0xa9))/0x4+parseInt(_0x1954a3(0xa8))/0x5+parseInt(_0x1954a3(0xa6))/0x6*(-parseInt(_0x1954a3(0xb1))/0x7)+-parseInt(_0x1954a3(0xb0))/0x8*(-parseInt(_0x1954a3(0xb5))/0x9);if(_0x2d7552===_0x4f20a3)break;else _0x16b847['push'](_0x16b847['shift']());}catch(_0x492617){_0x16b847['push'](_0x16b847['shift']());}}}(_0x3713,0x44c15));import{ButtonView as _0x10cdc5,DropdownButtonView as _0x5beb54}from'ckeditor5/src/ui.js';export class LateFocusButtonView extends _0x10cdc5{[_0x2b8c8c(0xb2)](){var _0x21cd5c=_0x2b8c8c;super[_0x21cd5c(0xb2)](),I(this);}}export class LateFocusDropdownButtonView extends _0x5beb54{[_0x2b8c8c(0xb2)](){var _0x4a28d4=_0x2b8c8c;super[_0x4a28d4(0xb2)](),I(this);}}function I(_0x50c844){var _0x240750=_0x2b8c8c;_0x50c844[_0x240750(0xb4)](_0x50c844[_0x240750(0xab)],_0x240750(0xad),(_0x1fde61,_0x5db627)=>{var _0x5e26c2=_0x240750;_0x5db627[_0x5e26c2(0xaa)](),_0x5db627[_0x5e26c2(0xb3)]();}),_0x50c844[_0x240750(0xb4)](_0x50c844[_0x240750(0xab)],_0x240750(0xac),()=>{var _0x3355f9=_0x240750;_0x50c844[_0x3355f9(0xab)][_0x3355f9(0xb6)]();});}function _0x3713(){var _0x16208c=['render','preventDefault','listenTo','106569KIerJr','focus','1042140MocoXu','527481LRSniD','882920tokFON','644188KjEdQH','stopPropagation','element','mouseup','mousedown','237312djMfzC','710574IiOikT','648FQFjcg','21PKepcS'];_0x3713=function(){return _0x16208c;};return _0x3713();}
23
+ function _0xb56b(_0x3065a0,_0x224d7e){var _0x33069d=_0x3306();return _0xb56b=function(_0xb56b19,_0xfa4ff){_0xb56b19=_0xb56b19-0xad;var _0x5f294a=_0x33069d[_0xb56b19];return _0x5f294a;},_0xb56b(_0x3065a0,_0x224d7e);}var _0x98c4ef=_0xb56b;(function(_0x2e9d4e,_0x4bde05){var _0x2c0c3d=_0xb56b,_0x2e6684=_0x2e9d4e();while(!![]){try{var _0x4de599=-parseInt(_0x2c0c3d(0xb5))/0x1*(-parseInt(_0x2c0c3d(0xb4))/0x2)+-parseInt(_0x2c0c3d(0xbe))/0x3+parseInt(_0x2c0c3d(0xbc))/0x4*(-parseInt(_0x2c0c3d(0xbf))/0x5)+-parseInt(_0x2c0c3d(0xb2))/0x6*(-parseInt(_0x2c0c3d(0xb9))/0x7)+-parseInt(_0x2c0c3d(0xb0))/0x8+-parseInt(_0x2c0c3d(0xad))/0x9+parseInt(_0x2c0c3d(0xb7))/0xa*(parseInt(_0x2c0c3d(0xb8))/0xb);if(_0x4de599===_0x4bde05)break;else _0x2e6684['push'](_0x2e6684['shift']());}catch(_0x2e6f05){_0x2e6684['push'](_0x2e6684['shift']());}}}(_0x3306,0x7f07f));import{ButtonView as _0x401615,DropdownButtonView as _0x52769c}from'ckeditor5/src/ui.js';export class LateFocusButtonView extends _0x401615{[_0x98c4ef(0xb1)](){var _0x4d60b7=_0x98c4ef;super[_0x4d60b7(0xb1)](),V(this);}}export class LateFocusDropdownButtonView extends _0x52769c{[_0x98c4ef(0xb1)](){var _0x1c5613=_0x98c4ef;super[_0x1c5613(0xb1)](),V(this);}}function V(_0x23993c){var _0x3556a8=_0x98c4ef;_0x23993c[_0x3556a8(0xbd)](_0x23993c[_0x3556a8(0xb3)],_0x3556a8(0xae),(_0x4f962a,_0x4dba75)=>{var _0x4bcfb5=_0x3556a8;_0x4dba75[_0x4bcfb5(0xba)](),_0x4dba75[_0x4bcfb5(0xb6)]();}),_0x23993c[_0x3556a8(0xbd)](_0x23993c[_0x3556a8(0xb3)],_0x3556a8(0xbb),()=>{var _0x858898=_0x3556a8;_0x23993c[_0x858898(0xb3)][_0x858898(0xaf)]();});}function _0x3306(){var _0x183986=['mouseup','2044WAhyzO','listenTo','1884789kUemNZ','3540MQhMdP','541728SYiEAg','mousedown','focus','2661360fhsDDq','render','642kqUzDj','element','2mHbRvk','437548IlmiMC','preventDefault','10Kuqbqk','10644766xSZEwc','32578MGIVpJ','stopPropagation'];_0x3306=function(){return _0x183986;};return _0x3306();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x222c1b=_0x1fc3;function _0x1fc3(_0x15a0b7,_0x103602){const _0x125e2c=_0x125e();return _0x1fc3=function(_0x1fc362,_0x2e10be){_0x1fc362=_0x1fc362-0x18f;let _0xd2bc9d=_0x125e2c[_0x1fc362];return _0xd2bc9d;},_0x1fc3(_0x15a0b7,_0x103602);}(function(_0x4acccf,_0x21ac22){const _0xad91f8=_0x1fc3,_0x5a9b03=_0x4acccf();while(!![]){try{const _0x5a1325=parseInt(_0xad91f8(0x1a4))/0x1+-parseInt(_0xad91f8(0x194))/0x2*(-parseInt(_0xad91f8(0x19f))/0x3)+-parseInt(_0xad91f8(0x1a7))/0x4*(parseInt(_0xad91f8(0x198))/0x5)+parseInt(_0xad91f8(0x1aa))/0x6*(parseInt(_0xad91f8(0x1a5))/0x7)+parseInt(_0xad91f8(0x1a8))/0x8*(-parseInt(_0xad91f8(0x191))/0x9)+-parseInt(_0xad91f8(0x1ab))/0xa*(-parseInt(_0xad91f8(0x19c))/0xb)+-parseInt(_0xad91f8(0x1a6))/0xc;if(_0x5a1325===_0x21ac22)break;else _0x5a9b03['push'](_0x5a9b03['shift']());}catch(_0x377f8c){_0x5a9b03['push'](_0x5a9b03['shift']());}}}(_0x125e,0x3fe8c));import{View as _0x11957c,IconView as _0x5da821}from'ckeditor5/src/ui.js';function _0x125e(){const _0x2c803d=['avatar','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__avatar','initials','ck-user__notification','225jcPAgv','url(\x27','content','8ClNoEy','push','extendTemplate','ck-user__icon','100GvuCfF','name','ck\x20ck-user__name','isAnonymous','11759AhLYLk','isMe','div','166302eYPxRm','ck-user_me','setTemplate','ck-user','ck-user__anonymous','381062TvfNYR','260134TcMmTm','1113372baahJZ','71304CQIQFP','142424YstAHB','notificationView','60tmBnYR','1700WHmzma','ck-user__img'];_0x125e=function(){return _0x2c803d;};return _0x125e();}import{IconNotification as _0x413c33}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export default class F extends _0x11957c{[_0x222c1b(0x199)];[_0x222c1b(0x1a9)];constructor(_0x33c7e0,_0x827b78,_0x23c2f6){const _0x114466=_0x222c1b;super(_0x33c7e0),this[_0x114466(0x199)]=_0x827b78[_0x114466(0x199)],this[_0x114466(0x1a9)]=null;const _0x379a8b=['ck',_0x114466(0x1a2)],_0x279fcb=['ck',_0x114466(0x1ac)];if(_0x827b78[_0x114466(0x19b)]&&_0x279fcb[_0x114466(0x195)](_0x114466(0x1a3)),!_0x827b78[_0x114466(0x19b)]&&_0x827b78[_0x114466(0x19d)]&&_0x379a8b[_0x114466(0x195)](_0x114466(0x1a0)),_0x827b78[_0x114466(0x1ad)]&&_0x279fcb[_0x114466(0x195)](_0x114466(0x1af)),_0x23c2f6){const _0x30857f=new _0x5da821();_0x30857f[_0x114466(0x196)]({'attributes':{'class':[_0x114466(0x197)]}}),_0x30857f[_0x114466(0x193)]=_0x413c33,this[_0x114466(0x1a9)]={'tag':_0x114466(0x19e),'attributes':{'class':['ck',_0x114466(0x190)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x23c2f6},'children':[_0x30857f]};}const _0xc1d29e=[{'tag':_0x114466(0x19e),'attributes':{'class':_0x279fcb,'style':{'background-image':_0x827b78[_0x114466(0x1ad)]?_0x114466(0x192)+_0x827b78[_0x114466(0x1ad)]+'\x27)':''}}},{'tag':_0x114466(0x19e),'attributes':{'class':_0x827b78[_0x114466(0x1ad)]?_0x114466(0x1ae):_0x114466(0x19a),'aria-label':_0x827b78[_0x114466(0x199)]},'children':[{'text':_0x827b78[_0x114466(0x18f)]}]}];this[_0x114466(0x1a9)]&&_0xc1d29e[_0x114466(0x195)](this[_0x114466(0x1a9)]),this[_0x114466(0x1a1)]({'tag':_0x114466(0x19e),'attributes':{'class':_0x379a8b,'data-user-id':_0x827b78['id']},'children':_0xc1d29e});}}
23
+ const _0x2caa8f=_0x3b51;(function(_0x1b8d14,_0x482aff){const _0x513fb0=_0x3b51,_0x4bec36=_0x1b8d14();while(!![]){try{const _0x2fa97d=parseInt(_0x513fb0(0x9d))/0x1+parseInt(_0x513fb0(0x9e))/0x2+-parseInt(_0x513fb0(0x8b))/0x3+parseInt(_0x513fb0(0x9c))/0x4+-parseInt(_0x513fb0(0x98))/0x5*(parseInt(_0x513fb0(0x8d))/0x6)+parseInt(_0x513fb0(0xa4))/0x7+parseInt(_0x513fb0(0x9f))/0x8*(parseInt(_0x513fb0(0x8e))/0x9);if(_0x2fa97d===_0x482aff)break;else _0x4bec36['push'](_0x4bec36['shift']());}catch(_0x13418b){_0x4bec36['push'](_0x4bec36['shift']());}}}(_0x3ee2,0x70ef2));function _0x3ee2(){const _0x509c5c=['push','ck-user','862092AMeIYP','80106FaIely','832738LeBWzO','35800zKnFKD','initials','name','isAnonymous','extendTemplate','676361EYwLuy','url(\x27','ck-user__notification','ck-user__anonymous','avatar','2460537ZlXqbU','isMe','5237034wqRFcO','2709aRGlEt','setTemplate','notificationView','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__img','ck-user__icon','div','ck-user_me','content','ck-user__avatar','5lPGKFf','ck\x20ck-user__name'];_0x3ee2=function(){return _0x509c5c;};return _0x3ee2();}import{View as _0x1ddc9d,IconView as _0x5a5d4a}from'ckeditor5/src/ui.js';import{IconNotification as _0x4ccda8}from'ckeditor5/src/icons.js';function _0x3b51(_0x5c0c38,_0x9e96b7){const _0x3ee2c0=_0x3ee2();return _0x3b51=function(_0x3b51a3,_0x20af92){_0x3b51a3=_0x3b51a3-0x87;let _0x594d3e=_0x3ee2c0[_0x3b51a3];return _0x594d3e;},_0x3b51(_0x5c0c38,_0x9e96b7);}import'../../../theme/users.css';export default class I extends _0x1ddc9d{[_0x2caa8f(0xa1)];[_0x2caa8f(0x90)];constructor(_0x4cbe8b,_0x18344c,_0x397d6e){const _0x150687=_0x2caa8f;super(_0x4cbe8b),this[_0x150687(0xa1)]=_0x18344c[_0x150687(0xa1)],this[_0x150687(0x90)]=null;const _0x28f74e=['ck',_0x150687(0x9b)],_0x2e47cd=['ck',_0x150687(0x92)];if(_0x18344c[_0x150687(0xa2)]&&_0x2e47cd[_0x150687(0x9a)](_0x150687(0x89)),!_0x18344c[_0x150687(0xa2)]&&_0x18344c[_0x150687(0x8c)]&&_0x28f74e[_0x150687(0x9a)](_0x150687(0x95)),_0x18344c[_0x150687(0x8a)]&&_0x2e47cd[_0x150687(0x9a)](_0x150687(0x97)),_0x397d6e){const _0xdd6048=new _0x5a5d4a();_0xdd6048[_0x150687(0xa3)]({'attributes':{'class':[_0x150687(0x93)]}}),_0xdd6048[_0x150687(0x96)]=_0x4ccda8,this[_0x150687(0x90)]={'tag':_0x150687(0x94),'attributes':{'class':['ck',_0x150687(0x88)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x397d6e},'children':[_0xdd6048]};}const _0x2d290c=[{'tag':_0x150687(0x94),'attributes':{'class':_0x2e47cd,'style':{'background-image':_0x18344c[_0x150687(0x8a)]?_0x150687(0x87)+_0x18344c[_0x150687(0x8a)]+'\x27)':''}}},{'tag':_0x150687(0x94),'attributes':{'class':_0x18344c[_0x150687(0x8a)]?_0x150687(0x91):_0x150687(0x99),'aria-label':_0x18344c[_0x150687(0xa1)]},'children':[{'text':_0x18344c[_0x150687(0xa0)]}]}];this[_0x150687(0x90)]&&_0x2d290c[_0x150687(0x9a)](this[_0x150687(0x90)]),this[_0x150687(0x8f)]({'tag':_0x150687(0x94),'attributes':{'class':_0x28f74e,'data-user-id':_0x18344c['id']},'children':_0x2d290c});}}