@ckeditor/ckeditor5-collaboration-core 45.0.0-alpha.10 → 45.0.0-alpha.12

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 _0x202675,Editor as _0x7218eb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x578e7b,Collection as _0x54f4e5,uid as _0x2b0973,first as _0x443b5b,FocusTracker as _0x32fefa,KeystrokeHandler as _0xf2a595}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x5bec1a,IconView as _0x13fd41,ButtonView as _0x3c0a80,DropdownButtonView as _0x28a308,FocusCycler as _0x114ecd,isViewWithFocusCycler as _0x57aae1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x1d101c,IconCheck as _0x399378,IconCancel as _0x3383ce}from'@ckeditor/ckeditor5-icons/dist/index.js';import{DateTime as _0x2f7ad8}from'luxon';class n extends _0x202675{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x45fc11,_0x6704f0){let _0x49b0bf;if(_0x6704f0||(_0x6704f0=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x6704f0?_0x49b0bf=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x49b0bf=this['context']['editors']['find'](_0x22e8dc=>_0x22e8dc['config']['get']('collaboration.channelId')==_0x6704f0)),!_0x49b0bf)throw new _0x578e7b('permissions-set-permissions-invalid-channel-id',null);const _0x160feb=_0x49b0bf['plugins'],_0x42ad07=_0x160feb['has']('CommentsRepository')?_0x160feb['get']('CommentsRepository'):void 0x0,_0x385e35=_0x160feb['has']('CommentsOnly')&&_0x160feb['get']('CommentsOnly'),_0x43e619=_0x45fc11['includes']('document:write'),_0x55f85a=_0x45fc11['includes']('comment:modify_all'),_0x257284=_0x45fc11['includes']('comment:admin'),_0x694acb=_0x45fc11['includes']('comment:write'),_0x4922cc=_0x694acb||_0x257284,_0x21dbb8=_0x4922cc||_0x55f85a,_0x3e4e19=_0x43e619||_0x4922cc;(_0x385e35&&(_0x385e35['isEnabled']=!_0x43e619&&_0x21dbb8),_0x49b0bf instanceof _0x7218eb)&&(!(_0x43e619||_0x21dbb8&&_0x42ad07)?_0x49b0bf['enableReadOnlyMode']('no-permissions'):_0x49b0bf['disableReadOnlyMode']('no-permissions'));if(_0x42ad07){_0x42ad07['setPermissions']({'admin':_0x257284,'modifyAll':_0x55f85a,'write':_0x694acb,'resolve':_0x3e4e19},_0x6704f0);const _0xa10cb4=_0x49b0bf instanceof _0x7218eb&&_0x49b0bf['commands']['get']('addCommentThread');_0xa10cb4&&(_0x4922cc?_0xa10cb4['clearForceDisabled']('noPermissions'):_0xa10cb4['forceDisabled']('noPermissions'));}}}function o(_0x6d14a2,_0x28945){const t=_0x6d14a2['t'];switch(_0x28945){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 _0x202675{['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(_0xacaf1c){super(_0xacaf1c),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x54f4e5(),this['_locale']=_0xacaf1c['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:_0x191bdb,name:_0x475a4c,..._0x1da305}){if(!_0x191bdb||'string'!=typeof _0x191bdb)throw new _0x578e7b('users-add-invalid-id');if(this['users']['has'](_0x191bdb))throw new _0x578e7b('users-add-duplicated-id',null,{'id':_0x191bdb});const _0x4f9692=this['context']['config']['get']('users.getInitialsCallback'),_0x33a078={..._0x1da305,'id':_0x191bdb,'name':h(this['_locale'],_0x475a4c),'color':this['_getNextColor']()};_0x33a078['name']=h(this['_locale'],_0x33a078['name']);const _0x392b48=new P(_0x33a078,_0x4f9692);return this['users']['add'](_0x392b48),_0x392b48;}['getUser'](_0x210429){return this['users']['get'](_0x210429);}['useAnonymousUser'](){const _0x2219f7=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x2219f7);}['defineMe'](_0x10b64f){if(this['_myId'])throw new _0x578e7b('users-me-already-defined',null);const _0x4702cd=this['getUser'](_0x10b64f);if(!_0x4702cd)throw new _0x578e7b('users-me-missing-user',null);this['_myId']=_0x10b64f,_0x4702cd['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x1042d9=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x1042d9&&(this['_lastColor']=0x0),new l(this['_lastColor']++);}['_addAnonymousUser'](){const _0x437c30=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x437c30,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x66138a,_0x1b8892){this['id']=_0x66138a['id'],this['color']=_0x66138a['color'],this['name']=_0x66138a['name'],this['initials']=_0x1b8892?_0x1b8892(this['name']):this['_computeInitials'](),this['avatar']=_0x66138a['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x4f6f58=this['name']['split']('\x20')['filter'](_0x1609c0=>/^[\p{Letter}]/u['test'](_0x1609c0));return 0x1===_0x4f6f58['length']?this['_getInitial'](_0x4f6f58[0x0]):0x0===_0x4f6f58['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x4f6f58[0x0])+this['_getInitial'](_0x4f6f58[_0x4f6f58['length']-0x1]);}['_getInitial'](_0x15319b){return String['fromCodePoint'](_0x15319b['codePointAt'](0x0))['toUpperCase']();}}function h(_0x307a55,_0x227b25=''){return''==(_0x227b25=_0x227b25['trim']())?o(_0x307a55,'Anonymous'):_0x227b25;}class l{['_id'];constructor(_0xe6f52){this['_id']=_0xe6f52;}['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 _0x5bec1a{['name'];['notificationView'];constructor(_0x4b3bfc,_0xd53651,_0x2a9466){super(_0x4b3bfc),this['name']=_0xd53651['name'],this['notificationView']=null;const _0x7f7005=['ck','ck-user'],_0x43f2dd=['ck','ck-user__img'];if(_0xd53651['isAnonymous']&&_0x43f2dd['push']('ck-user__anonymous'),!_0xd53651['isAnonymous']&&_0xd53651['isMe']&&_0x7f7005['push']('ck-user_me'),_0xd53651['avatar']&&_0x43f2dd['push']('ck-user__avatar'),_0x2a9466){const _0x5bd692=new _0x13fd41();_0x5bd692['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x5bd692['content']=_0x1d101c,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2a9466},'children':[_0x5bd692]};}const _0x38dc69=[{'tag':'div','attributes':{'class':_0x43f2dd,'style':{'background-image':_0xd53651['avatar']?'url(\x27'+_0xd53651['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0xd53651['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0xd53651['name']},'children':[{'text':_0xd53651['initials']}]}];this['notificationView']&&_0x38dc69['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x7f7005,'data-user-id':_0xd53651['id']},'children':_0x38dc69});}}class F extends _0x5bec1a{['id'];constructor(_0x39f4e0,_0x2ab825){super(_0x39f4e0),this['id']='ck-aria-description-'+_0x2b0973(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x2ab825}]});}}class U extends _0x3c0a80{['render'](){super['render'](),V(this);}}class Y extends _0x28a308{['render'](){super['render'](),V(this);}}function V(_0x55d4fa){_0x55d4fa['listenTo'](_0x55d4fa['element'],'mousedown',(_0x249212,_0x5bb1ae)=>{_0x5bb1ae['stopPropagation'](),_0x5bb1ae['preventDefault']();}),_0x55d4fa['listenTo'](_0x55d4fa['element'],'mouseup',()=>{_0x55d4fa['element']['focus']();});}function E(_0x42badf={},_0x24e265){if(void 0x0!==_0x42badf['dateTimeFormat']&&'function'!=typeof _0x42badf['dateTimeFormat'])throw new _0x578e7b('invalid-date-time-format');return _0x14b7a9=>{const _0x231e60='string'==typeof _0x14b7a9?_0x2f7ad8['fromISO'](_0x14b7a9):_0x2f7ad8['fromJSDate'](_0x14b7a9),_0x24bdd2=_0x2f7ad8['now'](),_0x2df450=Math['floor'](_0x24bdd2['diff'](_0x231e60,'days')['days']);return _0x42badf['dateTimeFormat']?_0x42badf['dateTimeFormat'](_0x231e60['toJSDate'](),_0x24e265&&_0x24e265['t']?_0x24e265['t']:void 0x0):0x0===_0x2df450?_0x24e265?o(_0x24e265,'Today')+'\x20'+_0x231e60['toFormat']('hh:mma'):_0x231e60['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x2df450?_0x24e265?o(_0x24e265,'Yesterday')+'\x20'+_0x231e60['toFormat']('hh:mma'):_0x231e60['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x2df450<0x7?_0x24e265?o(_0x24e265,'Last')+'\x20'+o(_0x24e265,_0x231e60['toFormat']('EEEE'))+'\x20'+_0x231e60['toFormat']('hh:mma'):_0x231e60['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x231e60['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x5c6852,_0x33ec98){const _0x3cf0f7=_0x5c6852['mapper']['markerNameToElements'](_0x33ec98['name']);if(!_0x3cf0f7)return null;const _0x4ec183=_0x443b5b(_0x3cf0f7['values']());return _0x5c6852['view']['domConverter']['mapViewToDom'](_0x4ec183)||null;}function R(_0x581a90,_0x5e1c2b){if(0x0===_0x5e1c2b['length'])return null;const _0x370974=[],_0x493881=_0x581a90['view']['domConverter'];for(const _0x2fcb4e of _0x5e1c2b){const _0x3c3163=_0x581a90['mapper']['markerNameToElements'](_0x2fcb4e['name']);if(!_0x3c3163)continue;const _0x20b235=Array['from'](_0x3c3163)['map'](_0x4994f9=>_0x493881['mapViewToDom'](_0x4994f9))['filter'](_0x655255=>!!_0x655255);_0x370974['push'](..._0x20b235);}if(0x0===_0x370974['length'])return null;const _0x3ab692=[];for(const _0x3a8405 of _0x370974){const _0x1ea5e8=_0x3a8405['getClientRects']()['item'](0x0);_0x1ea5e8&&_0x3ab692['push']({'x':_0x1ea5e8['x'],'y':_0x1ea5e8['y'],'domElement':_0x3a8405});}return 0x0===_0x3ab692['length']?null:(_0x3ab692['sort']((_0x39bceb,_0x5e18a0)=>_0x39bceb['y']-_0x5e18a0['y']||_0x39bceb['x']-_0x5e18a0['x']),_0x3ab692['map'](_0x2ba6e7=>_0x2ba6e7['domElement']));}function Z(_0x15e670,{limit:_0x5ce30c,suffix:_0xdf0c43='...'}){const _0x5e038e=[];let _0x5b76ee=0x0;const _0x242bdd=_0x15e670['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x13f955=0x0;_0x13f955<_0x242bdd['length'];_0x13f955++){let _0x3b28a5=_0x242bdd[_0x13f955];const _0x5711c8=$(_0x3b28a5);if(_0x3b28a5['startsWith']('<')){if(_0x5b76ee>=_0x5ce30c){const _0x2f9b81=_0x3b28a5['match'](/[a-zA-Z]+/);if(!_0x2f9b81){_0x242bdd[_0x13f955]='';continue;}const _0x5f5a14=_0x2f9b81[0x0];_0x3b28a5['startsWith']('</')?(_0x5e038e['length']&&(_0x3b28a5=''),_0x5e038e['pop']()):(_0x5e038e['push'](_0x5f5a14),_0x3b28a5='');}}else{if(_0x5b76ee>=_0x5ce30c)_0x3b28a5='';else{if(_0x5b76ee+_0x5711c8['length']>=_0x5ce30c){let _0xc9520a=_0x5ce30c-_0x5b76ee;if('\x20'===_0x5711c8[_0xc9520a-0x1])_0xc9520a--;else{const _0x49e212=_0x5711c8['slice'](_0xc9520a)['indexOf']('\x20');-0x1!==_0x49e212?_0xc9520a+=_0x49e212:_0xc9520a=_0x3b28a5['length'];}_0x3b28a5=_0x5711c8['slice'](0x0,_0xc9520a)['join']('')+_0xdf0c43,_0x5b76ee=_0x5ce30c;}else _0x5b76ee+=_0x5711c8['length'];}}_0x242bdd[_0x13f955]=_0x3b28a5;}return _0x242bdd['join']('\x0a')['replace'](/\n/g,'');}function $(_0x497818){const _0x5213c8=[];for(let _0x3508c0=0x0;_0x3508c0<_0x497818['length'];_0x3508c0++){const _0x4520d7=_0x497818['substring'](_0x3508c0)['match'](/^&[a-z0-9#]+;/);if(_0x4520d7){const _0x37a348=_0x4520d7[0x0];_0x5213c8['push'](_0x37a348),_0x3508c0+=_0x37a348['length']-0x1;}else _0x5213c8['push'](_0x497818[_0x3508c0]);}return _0x5213c8;}class m extends _0x5bec1a{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x446fc1){super(_0x446fc1);const _0xbe8d14=this['bindTemplate'];this['set']('message',o(_0x446fc1,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x446fc1,o(_0x446fc1,'Yes'),_0x399378,'submit'),this['cancelView']=this['_createButtonView'](_0x446fc1,o(_0x446fc1,'No'),_0x3383ce,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x32fefa(),this['keystrokes']=new _0xf2a595(),this['focusCycler']=new _0x114ecd({'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':_0xbe8d14['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'](_0x5db263,_0x8ce496,_0xbee574,_0x519a8c){const _0x31b48a=new _0x3c0a80(_0x5db263);return _0x31b48a['label']=_0x8ce496,_0x31b48a['icon']=_0xbee574,_0x31b48a['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x519a8c}}),_0x31b48a['on']('execute',()=>this['fire'](_0x519a8c)),_0x31b48a;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x1f7300=>{this['keystrokes']['listenTo'](_0x1f7300['element']),this['focusTracker']['add'](_0x1f7300['element']);}),this['keystrokes']['set']('esc',(_0x23e694,_0x149558)=>{this['fire']('cancel'),_0x149558();});}}function c(_0x4831ea){return class extends _0x4831ea{['showConfirm'](_0x3fd484,_0x36caae){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x3fd484,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x36caae['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x18e117=>this['confirmView']['on']('submit',_0x18e117));}['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(_0x2951f8){let _0x1c0213=0x0,_0x45188a=0x0;for(const _0x58ea5d of M(_0x2951f8))_0x1c0213=(_0x1c0213<<0x5)-_0x1c0213+_0x58ea5d,_0x1c0213|=0x0,[_0x1c0213,_0x45188a]=[_0x45188a,_0x1c0213];return w(_0x1c0213)+w(_0x45188a);}function*g(_0x5d8cd0){null==_0x5d8cd0||null==_0x5d8cd0?yield 0x12b9b0a1:0x0===_0x5d8cd0||!0x1===_0x5d8cd0?yield 0x0:0x1===_0x5d8cd0||0x1==_0x5d8cd0?yield 0x1:Array['isArray'](_0x5d8cd0)?yield*function*(_0x182d26){for(const _0x268620 of _0x182d26)yield*g(_0x268620);}(_0x5d8cd0):'object'==typeof _0x5d8cd0?yield*M(_0x5d8cd0):'string'==typeof _0x5d8cd0?yield*O(_0x5d8cd0):'number'==typeof _0x5d8cd0&&(yield _0x5d8cd0);}function*M(_0x3d15c1){if(yield q('{'),_0x3d15c1){const _0x3ea1b9=Object['keys'](_0x3d15c1)['sort']();for(const _0x5defd9 of _0x3ea1b9){yield*O(_0x5defd9),yield q(':');const _0x1de67b=_0x3d15c1[_0x5defd9];yield*g(_0x1de67b);}}yield q('}');}function*O(_0x2495b6){yield q('\x22');for(const _0x20088a of _0x2495b6)yield q(_0x20088a);yield q('\x22');}function q(_0x3c02c7){return _0x3c02c7['charCodeAt'](0x0);}function w(_0x5fe58b){return(_0x5fe58b*=Math['sign'](_0x5fe58b))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],D=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function S(_0x410c7a,_0x27f1eb,_0x11cc4c,_0x4ed8a3=[]){const _0x1aeb13='string'==typeof _0x410c7a?_0x11cc4c['get'](_0x410c7a)['constructor']:_0x410c7a['prototype']['constructor'];if(_0x27f1eb['has'](_0x1aeb13))return _0x27f1eb['get'](_0x1aeb13);_0x27f1eb['set'](_0x1aeb13,!0x0);const _0x473642=[...D,..._0x4ed8a3]['map'](_0x277148=>{if(_0x11cc4c['has'](_0x277148))return _0x11cc4c['get'](_0x277148)['constructor'];})['filter'](_0x31a4bb=>_0x31a4bb);if(_0x1aeb13&&_0x473642['includes'](_0x1aeb13))return _0x27f1eb['set'](_0x1aeb13,!0x1),!0x1;if(!_0x1aeb13['requires'])return _0x27f1eb['set'](_0x1aeb13,!0x0),!0x0;const _0x29c9db=_0x1aeb13['requires']['every'](_0x404aa4=>S(_0x404aa4,_0x27f1eb,_0x11cc4c,_0x4ed8a3));return _0x27f1eb['set'](_0x1aeb13,_0x29c9db),_0x29c9db;}function C(_0x3cf5d6,_0x58854e){const _0x43e2ce={};for(const _0x58df00 of _0x3cf5d6['config']['names']())W['includes'](_0x58df00)||(_0x43e2ce[_0x58df00]=_0x3cf5d6['config']['get'](_0x58df00));const _0x4a7e24=_0x43e2ce['plugins']||[],_0x1b3881=_0x3cf5d6['constructor']['builtinPlugins']||[],_0x267f8c=_0x4a7e24['length']?_0x4a7e24:_0x1b3881,_0x18efa3=_0x43e2ce['extraPlugins']||[];delete _0x43e2ce['extraPlugins'];const _0x2d80e1=_0x43e2ce['removePlugins']||[];delete _0x43e2ce['removePlugins'];const _0x2f3c45=_0x3cf5d6['_context']['config']['get']('plugins')||[],_0x473157=_0x267f8c['concat'](_0x18efa3)['concat'](_0x2f3c45)['map'](_0x1b543e=>'string'==typeof _0x1b543e?_0x1b3881['find'](_0x285fd8=>_0x285fd8['pluginName']==_0x1b543e):_0x1b543e)['filter'](_0x2532fa=>!_0x2d80e1['includes'](_0x2532fa)&&!_0x2d80e1['includes'](_0x2532fa['pluginName'])),_0x57a829=Array['from'](new Set(_0x473157)),_0x3955c6=new Map();return _0x43e2ce['plugins']=_0x57a829['filter'](_0x571181=>S(_0x571181,_0x3955c6,_0x3cf5d6['plugins'],_0x58854e)),_0x43e2ce;}function z(_0x1d282f,_0x224958){const _0x1cfa9c=[];_0x1d282f['document']['selection']['on']('change:range',()=>{const _0x2357eb=function(_0xeb3add,_0x8bfa9f){const _0x470008=[];for(const _0x4376ef of _0xeb3add['markers']){const _0x21182d=_0x4376ef['getRange']();(_0x21182d['containsPosition'](_0x8bfa9f)||_0x21182d['start']['isEqual'](_0x8bfa9f)||_0x21182d['end']['isEqual'](_0x8bfa9f))&&_0x470008['push'](_0x4376ef);}return _0x470008;}(_0x1d282f,_0x1d282f['document']['selection']['focus']),_0x6837ef=[],_0x45dbdc=[],_0x4d3cb4=[];for(const _0xee2250 of _0x1cfa9c)_0x2357eb['includes'](_0xee2250)||_0x6837ef['push'](_0xee2250);for(const _0x16637a of _0x2357eb)_0x1cfa9c['includes'](_0x16637a)||_0x45dbdc['push'](_0x16637a),_0x4d3cb4['push'](_0x16637a);(_0x6837ef['length']||_0x45dbdc['length'])&&_0x224958({'left':_0x6837ef,'entered':_0x45dbdc}),_0x1cfa9c['length']=0x0,_0x1cfa9c['push'](..._0x4d3cb4);});}const J='Ctrl+Shift+E';function T(_0x1d908f,_0x38933c){const _0x2e2039=_0x1d908f['element'];_0x1d908f['keystrokes']['listenTo'](_0x2e2039);for(const _0x28fcb0 of _0x38933c)K(_0x1d908f,_0x28fcb0);_0x38933c['on']('change',(_0x41aafb,_0x32b421)=>{for(const _0x2e931c of _0x32b421['removed'])_(_0x1d908f,_0x2e931c);for(const _0x594164 of Array['from'](_0x32b421['added'])['reverse']())K(_0x1d908f,_0x594164);}),_0x1d908f['keystrokes']['set']('enter',(_0x3fdf16,_0x556399)=>{_0x2e2039===_0x3fdf16['target']&&(_0x1d908f['focusCycler']['focusFirst'](),_0x556399());},{'filter':_0x35446f=>_0x35446f['target']===_0x2e2039}),_0x1d908f['keystrokes']['set']('esc',(_0x1bc9bd,_0x3b7d80)=>{_0x2e2039!==_0x1bc9bd['target']?_0x1d908f['focus']():_0x1d908f['fire']('escape'),_0x3b7d80();}),_0x1d908f['keystrokes']['set']('arrowdown',(_0x3a5cb6,_0x38a3ec)=>{_0x2e2039===_0x3a5cb6['target']&&(_0x1d908f['fire']('arrowdown'),_0x38a3ec());}),_0x1d908f['keystrokes']['set']('arrowup',(_0x2879d5,_0x310dc1)=>{_0x2e2039===_0x2879d5['target']&&(_0x1d908f['fire']('arrowup'),_0x310dc1());});}function K(_0x24f488,_0x10f2ce){_0x10f2ce['isRendered']&&(_0x24f488['focusTracker']['add'](_0x10f2ce['element']),_0x24f488['keystrokes']['listenTo'](_0x10f2ce['element']),_0x57aae1(_0x10f2ce)&&function(_0x3f55a5,_0x33550d){const _0x527db7=_0x3f55a5['actions'],_0x3ab8bc=_0x33550d['actions'];for(const _0x1b6140 of Object['keys'](_0x527db7))if(_0x1b6140 in _0x3ab8bc&&_0x527db7[_0x1b6140]!==_0x3ab8bc[_0x1b6140])return!0x1;return!0x0;}(_0x24f488['focusCycler'],_0x10f2ce['focusCycler'])&&_0x24f488['focusCycler']['chain'](_0x10f2ce['focusCycler']));}function _(_0x49d587,_0x5a0156){_0x49d587['focusTracker']['remove'](_0x5a0156['element']),_0x49d587['keystrokes']['stopListening'](_0x5a0156['element']),_0x57aae1(_0x5a0156)&&_0x49d587['focusCycler']['unchain'](_0x5a0156['focusCycler']);}export{F as AriaDescriptionView,c as ConfirmMixin,J as FOCUS_ANNOTATION_KEYSTROKE,U as LateFocusButtonView,Y as LateFocusDropdownButtonView,n as Permissions,I as UserView,u as Users,R as getAllMarkersDomElementsSorted,E as getDateTimeFormatter,A as getMarkerDomElement,j as hashObject,C as sanitizeEditorConfig,T as setupThreadKeyboardNavigation,z as surroundingMarkersDetector,Z as trimHtml};
23
+ import{ContextPlugin as _0x368e78,Editor as _0x4e768f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x23e79b,Collection as _0x3d9332,uid as _0xb859a8,first as _0xe87cfc,FocusTracker as _0x165cf3,KeystrokeHandler as _0x56ce11}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x5265e4,IconView as _0xb72ad1,ButtonView as _0xb88641,DropdownButtonView as _0x58989e,FocusCycler as _0x3d9683,isViewWithFocusCycler as _0x4ac81b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconNotification as _0x3c8d57,IconCheck as _0x56b153,IconCancel as _0x486852}from'@ckeditor/ckeditor5-icons/dist/index.js';import{DateTime as _0x3f7017}from'luxon';class n extends _0x368e78{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x5d26f1,_0x232d0b){let _0x3f9bf1;if(_0x232d0b||(_0x232d0b=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x232d0b?_0x3f9bf1=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x3f9bf1=this['context']['editors']['find'](_0xc485eb=>_0xc485eb['config']['get']('collaboration.channelId')==_0x232d0b)),!_0x3f9bf1)throw new _0x23e79b('permissions-set-permissions-invalid-channel-id',null);const _0x38646d=_0x3f9bf1['plugins'],_0xd266ac=_0x38646d['has']('CommentsRepository')?_0x38646d['get']('CommentsRepository'):void 0x0,_0x16b921=_0x38646d['has']('CommentsOnly')&&_0x38646d['get']('CommentsOnly'),_0x36b3ee=_0x5d26f1['includes']('document:write'),_0x4cf112=_0x5d26f1['includes']('comment:modify_all'),_0x25f185=_0x5d26f1['includes']('comment:admin'),_0xe19be1=_0x5d26f1['includes']('comment:write'),_0xb677d8=_0xe19be1||_0x25f185,_0x44de3e=_0xb677d8||_0x4cf112,_0xce86f5=_0x36b3ee||_0xb677d8;(_0x16b921&&(_0x16b921['isEnabled']=!_0x36b3ee&&_0x44de3e),_0x3f9bf1 instanceof _0x4e768f)&&(!(_0x36b3ee||_0x44de3e&&_0xd266ac)?_0x3f9bf1['enableReadOnlyMode']('no-permissions'):_0x3f9bf1['disableReadOnlyMode']('no-permissions'));if(_0xd266ac){_0xd266ac['setPermissions']({'admin':_0x25f185,'modifyAll':_0x4cf112,'write':_0xe19be1,'resolve':_0xce86f5},_0x232d0b);const _0x29cc54=_0x3f9bf1 instanceof _0x4e768f&&_0x3f9bf1['commands']['get']('addCommentThread');_0x29cc54&&(_0xb677d8?_0x29cc54['clearForceDisabled']('noPermissions'):_0x29cc54['forceDisabled']('noPermissions'));}}}function o(_0x12b5c6,_0x1e2949){const t=_0x12b5c6['t'];switch(_0x1e2949){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 _0x368e78{['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(_0x11590a){super(_0x11590a),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x3d9332(),this['_locale']=_0x11590a['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:_0x4472cb,name:_0x23cdda,..._0x1461d1}){if(!_0x4472cb||'string'!=typeof _0x4472cb)throw new _0x23e79b('users-add-invalid-id');if(this['users']['has'](_0x4472cb))throw new _0x23e79b('users-add-duplicated-id',null,{'id':_0x4472cb});const _0x3a961b=this['context']['config']['get']('users.getInitialsCallback'),_0x7d6047={..._0x1461d1,'id':_0x4472cb,'name':h(this['_locale'],_0x23cdda),'color':this['_getNextColor']()};_0x7d6047['name']=h(this['_locale'],_0x7d6047['name']);const _0x3c4726=new P(_0x7d6047,_0x3a961b);return this['users']['add'](_0x3c4726),_0x3c4726;}['getUser'](_0x4eea4c){return this['users']['get'](_0x4eea4c);}['useAnonymousUser'](){const _0x235bc2=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x235bc2);}['defineMe'](_0x4120bc){if(this['_myId'])throw new _0x23e79b('users-me-already-defined',null);const _0x1d98bf=this['getUser'](_0x4120bc);if(!_0x1d98bf)throw new _0x23e79b('users-me-missing-user',null);this['_myId']=_0x4120bc,_0x1d98bf['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x242945=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x242945&&(this['_lastColor']=0x0),new l(this['_lastColor']++);}['_addAnonymousUser'](){const _0x56212c=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x56212c,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x5627ac,_0x264675){this['id']=_0x5627ac['id'],this['color']=_0x5627ac['color'],this['name']=_0x5627ac['name'],this['initials']=_0x264675?_0x264675(this['name']):this['_computeInitials'](),this['avatar']=_0x5627ac['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x4aaf41=this['name']['split']('\x20')['filter'](_0x3b361b=>/^[\p{Letter}]/u['test'](_0x3b361b));return 0x1===_0x4aaf41['length']?this['_getInitial'](_0x4aaf41[0x0]):0x0===_0x4aaf41['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x4aaf41[0x0])+this['_getInitial'](_0x4aaf41[_0x4aaf41['length']-0x1]);}['_getInitial'](_0x5e08e4){return String['fromCodePoint'](_0x5e08e4['codePointAt'](0x0))['toUpperCase']();}}function h(_0x71a77a,_0x325d43=''){return''==(_0x325d43=_0x325d43['trim']())?o(_0x71a77a,'Anonymous'):_0x325d43;}class l{['_id'];constructor(_0x3725a3){this['_id']=_0x3725a3;}['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 _0x5265e4{['name'];['notificationView'];constructor(_0x1618a7,_0x5f1771,_0x5b29ca){super(_0x1618a7),this['name']=_0x5f1771['name'],this['notificationView']=null;const _0x353226=['ck','ck-user'],_0x6a036d=['ck','ck-user__img'];if(_0x5f1771['isAnonymous']&&_0x6a036d['push']('ck-user__anonymous'),!_0x5f1771['isAnonymous']&&_0x5f1771['isMe']&&_0x353226['push']('ck-user_me'),_0x5f1771['avatar']&&_0x6a036d['push']('ck-user__avatar'),_0x5b29ca){const _0x429eee=new _0xb72ad1();_0x429eee['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x429eee['content']=_0x3c8d57,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x5b29ca},'children':[_0x429eee]};}const _0x2bc042=[{'tag':'div','attributes':{'class':_0x6a036d,'style':{'background-image':_0x5f1771['avatar']?'url(\x27'+_0x5f1771['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x5f1771['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x5f1771['name']},'children':[{'text':_0x5f1771['initials']}]}];this['notificationView']&&_0x2bc042['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x353226,'data-user-id':_0x5f1771['id']},'children':_0x2bc042});}}class H extends _0x5265e4{['id'];constructor(_0x1e3f64,_0x2c2a3f){super(_0x1e3f64),this['id']='ck-aria-description-'+_0xb859a8(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x2c2a3f}]});}}class U extends _0xb88641{['render'](){super['render'](),I(this);}}class Y extends _0x58989e{['render'](){super['render'](),I(this);}}function I(_0x2108f6){_0x2108f6['listenTo'](_0x2108f6['element'],'mousedown',(_0x5dd936,_0x53e5be)=>{_0x53e5be['stopPropagation'](),_0x53e5be['preventDefault']();}),_0x2108f6['listenTo'](_0x2108f6['element'],'mouseup',()=>{_0x2108f6['element']['focus']();});}function E(_0x597f7f={},_0x471cb5){if(void 0x0!==_0x597f7f['dateTimeFormat']&&'function'!=typeof _0x597f7f['dateTimeFormat'])throw new _0x23e79b('invalid-date-time-format');return _0x4e866e=>{const _0x3835bf='string'==typeof _0x4e866e?_0x3f7017['fromISO'](_0x4e866e):_0x3f7017['fromJSDate'](_0x4e866e),_0xca5ef5=_0x3f7017['now'](),_0xe993c8=Math['floor'](_0xca5ef5['diff'](_0x3835bf,'days')['days']);return _0x597f7f['dateTimeFormat']?_0x597f7f['dateTimeFormat'](_0x3835bf['toJSDate'](),_0x471cb5&&_0x471cb5['t']?_0x471cb5['t']:void 0x0):0x0===_0xe993c8?_0x471cb5?o(_0x471cb5,'Today')+'\x20'+_0x3835bf['toFormat']('hh:mma'):_0x3835bf['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0xe993c8?_0x471cb5?o(_0x471cb5,'Yesterday')+'\x20'+_0x3835bf['toFormat']('hh:mma'):_0x3835bf['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0xe993c8<0x7?_0x471cb5?o(_0x471cb5,'Last')+'\x20'+o(_0x471cb5,_0x3835bf['toFormat']('EEEE'))+'\x20'+_0x3835bf['toFormat']('hh:mma'):_0x3835bf['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x3835bf['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x12da73,_0x40b8f0){const _0x26033c=_0x12da73['mapper']['markerNameToElements'](_0x40b8f0['name']);if(!_0x26033c)return null;const _0x18eb44=_0xe87cfc(_0x26033c['values']());return _0x12da73['view']['domConverter']['mapViewToDom'](_0x18eb44)||null;}function R(_0xa84ecb,_0x4e9935){if(0x0===_0x4e9935['length'])return null;const _0xed1da2=[],_0x24d0f0=_0xa84ecb['view']['domConverter'];for(const _0x299c0a of _0x4e9935){const _0x4ffaf6=_0xa84ecb['mapper']['markerNameToElements'](_0x299c0a['name']);if(!_0x4ffaf6)continue;const _0x52e113=Array['from'](_0x4ffaf6)['map'](_0x59debb=>_0x24d0f0['mapViewToDom'](_0x59debb))['filter'](_0x1d5d6b=>!!_0x1d5d6b);_0xed1da2['push'](..._0x52e113);}if(0x0===_0xed1da2['length'])return null;const _0x3d90e6=[];for(const _0x5cac51 of _0xed1da2){const _0x3b1099=_0x5cac51['getClientRects']()['item'](0x0);_0x3b1099&&_0x3d90e6['push']({'x':_0x3b1099['x'],'y':_0x3b1099['y'],'domElement':_0x5cac51});}return 0x0===_0x3d90e6['length']?null:(_0x3d90e6['sort']((_0x8c6306,_0x4e0812)=>_0x8c6306['y']-_0x4e0812['y']||_0x8c6306['x']-_0x4e0812['x']),_0x3d90e6['map'](_0x5ab075=>_0x5ab075['domElement']));}function Z(_0x572020,{limit:_0x5754d2,suffix:_0x24a9f7='...'}){const _0x2f99e6=[];let _0x305c9=0x0;const _0x33e996=_0x572020['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x58bd95=0x0;_0x58bd95<_0x33e996['length'];_0x58bd95++){let _0x85a2f=_0x33e996[_0x58bd95];const _0x503fd9=$(_0x85a2f);if(_0x85a2f['startsWith']('<')){if(_0x305c9>=_0x5754d2){const _0x1583f6=_0x85a2f['match'](/[a-zA-Z]+/);if(!_0x1583f6){_0x33e996[_0x58bd95]='';continue;}const _0x57b8a9=_0x1583f6[0x0];_0x85a2f['startsWith']('</')?(_0x2f99e6['length']&&(_0x85a2f=''),_0x2f99e6['pop']()):(_0x2f99e6['push'](_0x57b8a9),_0x85a2f='');}}else{if(_0x305c9>=_0x5754d2)_0x85a2f='';else{if(_0x305c9+_0x503fd9['length']>=_0x5754d2){let _0x141941=_0x5754d2-_0x305c9;if('\x20'===_0x503fd9[_0x141941-0x1])_0x141941--;else{const _0x1a10ac=_0x503fd9['slice'](_0x141941)['indexOf']('\x20');-0x1!==_0x1a10ac?_0x141941+=_0x1a10ac:_0x141941=_0x85a2f['length'];}_0x85a2f=_0x503fd9['slice'](0x0,_0x141941)['join']('')+_0x24a9f7,_0x305c9=_0x5754d2;}else _0x305c9+=_0x503fd9['length'];}}_0x33e996[_0x58bd95]=_0x85a2f;}return _0x33e996['join']('\x0a')['replace'](/\n/g,'');}function $(_0x4164fb){const _0x50766a=[];for(let _0x44d565=0x0;_0x44d565<_0x4164fb['length'];_0x44d565++){const _0x2cbb8e=_0x4164fb['substring'](_0x44d565)['match'](/^&[a-z0-9#]+;/);if(_0x2cbb8e){const _0x53c51a=_0x2cbb8e[0x0];_0x50766a['push'](_0x53c51a),_0x44d565+=_0x53c51a['length']-0x1;}else _0x50766a['push'](_0x4164fb[_0x44d565]);}return _0x50766a;}class m extends _0x5265e4{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x3ed962){super(_0x3ed962);const _0x44a912=this['bindTemplate'];this['set']('message',o(_0x3ed962,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x3ed962,o(_0x3ed962,'Yes'),_0x56b153,'submit'),this['cancelView']=this['_createButtonView'](_0x3ed962,o(_0x3ed962,'No'),_0x486852,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x165cf3(),this['keystrokes']=new _0x56ce11(),this['focusCycler']=new _0x3d9683({'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':_0x44a912['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'](_0x51c3a6,_0x3207ae,_0x210aee,_0x2aea29){const _0x27bf91=new _0xb88641(_0x51c3a6);return _0x27bf91['label']=_0x3207ae,_0x27bf91['icon']=_0x210aee,_0x27bf91['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x2aea29}}),_0x27bf91['on']('execute',()=>this['fire'](_0x2aea29)),_0x27bf91;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x29f151=>{this['keystrokes']['listenTo'](_0x29f151['element']),this['focusTracker']['add'](_0x29f151['element']);}),this['keystrokes']['set']('esc',(_0x2f5d16,_0x2f020e)=>{this['fire']('cancel'),_0x2f020e();});}}function c(_0x4160c0){return class extends _0x4160c0{['showConfirm'](_0x377752,_0xf5230b){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x377752,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0xf5230b['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x4d3640=>this['confirmView']['on']('submit',_0x4d3640));}['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(_0x226da3){let _0x35adb=0x0,_0x190d04=0x0;for(const _0x2fe344 of M(_0x226da3))_0x35adb=(_0x35adb<<0x5)-_0x35adb+_0x2fe344,_0x35adb|=0x0,[_0x35adb,_0x190d04]=[_0x190d04,_0x35adb];return w(_0x35adb)+w(_0x190d04);}function*g(_0xe9a618){null==_0xe9a618||null==_0xe9a618?yield 0x12b9b0a1:0x0===_0xe9a618||!0x1===_0xe9a618?yield 0x0:0x1===_0xe9a618||0x1==_0xe9a618?yield 0x1:Array['isArray'](_0xe9a618)?yield*function*(_0x2726a7){for(const _0x459da3 of _0x2726a7)yield*g(_0x459da3);}(_0xe9a618):'object'==typeof _0xe9a618?yield*M(_0xe9a618):'string'==typeof _0xe9a618?yield*O(_0xe9a618):'number'==typeof _0xe9a618&&(yield _0xe9a618);}function*M(_0x4f0482){if(yield q('{'),_0x4f0482){const _0x5da0ee=Object['keys'](_0x4f0482)['sort']();for(const _0x2f1780 of _0x5da0ee){yield*O(_0x2f1780),yield q(':');const _0x5daf50=_0x4f0482[_0x2f1780];yield*g(_0x5daf50);}}yield q('}');}function*O(_0x151b47){yield q('\x22');for(const _0x522c0f of _0x151b47)yield q(_0x522c0f);yield q('\x22');}function q(_0x26f370){return _0x26f370['charCodeAt'](0x0);}function w(_0x384fda){return(_0x384fda*=Math['sign'](_0x384fda))['toString'](0x24);}const W=['initialData','context','toolbar','rootsAttributes'],D=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function S(_0x25d345,_0x9cec96,_0x957f79,_0x12c172=[]){const _0x3358eb='string'==typeof _0x25d345?_0x957f79['get'](_0x25d345)['constructor']:_0x25d345['prototype']['constructor'];if(_0x9cec96['has'](_0x3358eb))return _0x9cec96['get'](_0x3358eb);_0x9cec96['set'](_0x3358eb,!0x0);const _0x316d2f=[...D,..._0x12c172]['map'](_0x2fea2a=>{if(_0x957f79['has'](_0x2fea2a))return _0x957f79['get'](_0x2fea2a)['constructor'];})['filter'](_0x2b362f=>_0x2b362f);if(_0x3358eb&&_0x316d2f['includes'](_0x3358eb))return _0x9cec96['set'](_0x3358eb,!0x1),!0x1;if(!_0x3358eb['requires'])return _0x9cec96['set'](_0x3358eb,!0x0),!0x0;const _0x48b025=_0x3358eb['requires']['every'](_0x58653=>S(_0x58653,_0x9cec96,_0x957f79,_0x12c172));return _0x9cec96['set'](_0x3358eb,_0x48b025),_0x48b025;}function C(_0x6a12a6,_0x4ae89c){const _0x16fdf9={};for(const _0x48504b of _0x6a12a6['config']['names']())W['includes'](_0x48504b)||(_0x16fdf9[_0x48504b]=_0x6a12a6['config']['get'](_0x48504b));const _0x4ecc40=_0x16fdf9['plugins']||[],_0x51534c=_0x6a12a6['constructor']['builtinPlugins']||[],_0x3d5d28=_0x4ecc40['length']?_0x4ecc40:_0x51534c,_0xbb62a=_0x16fdf9['extraPlugins']||[];delete _0x16fdf9['extraPlugins'];const _0x236aa1=_0x16fdf9['removePlugins']||[];delete _0x16fdf9['removePlugins'];const _0x2555ef=_0x6a12a6['_context']['config']['get']('plugins')||[],_0x33b8f8=_0x3d5d28['concat'](_0xbb62a)['concat'](_0x2555ef)['map'](_0x3822ae=>'string'==typeof _0x3822ae?_0x51534c['find'](_0x3a253c=>_0x3a253c['pluginName']==_0x3822ae):_0x3822ae)['filter'](_0x34031b=>!_0x236aa1['includes'](_0x34031b)&&!_0x236aa1['includes'](_0x34031b['pluginName'])),_0x1f4a59=Array['from'](new Set(_0x33b8f8)),_0xd0fc9f=new Map();return _0x16fdf9['plugins']=_0x1f4a59['filter'](_0x348588=>S(_0x348588,_0xd0fc9f,_0x6a12a6['plugins'],_0x4ae89c)),_0x16fdf9;}function z(_0x21145f,_0x8e9a63){const _0xbdf890=[];_0x21145f['document']['selection']['on']('change:range',()=>{const _0x191f7b=function(_0x5b1009,_0x10096c){const _0x55d085=[];for(const _0xf353b of _0x5b1009['markers']){const _0x3caecf=_0xf353b['getRange']();(_0x3caecf['containsPosition'](_0x10096c)||_0x3caecf['start']['isEqual'](_0x10096c)||_0x3caecf['end']['isEqual'](_0x10096c))&&_0x55d085['push'](_0xf353b);}return _0x55d085;}(_0x21145f,_0x21145f['document']['selection']['focus']),_0x3f4613=[],_0x6f0ece=[],_0xfed7d7=[];for(const _0x2504d1 of _0xbdf890)_0x191f7b['includes'](_0x2504d1)||_0x3f4613['push'](_0x2504d1);for(const _0x180e89 of _0x191f7b)_0xbdf890['includes'](_0x180e89)||_0x6f0ece['push'](_0x180e89),_0xfed7d7['push'](_0x180e89);(_0x3f4613['length']||_0x6f0ece['length'])&&_0x8e9a63({'left':_0x3f4613,'entered':_0x6f0ece}),_0xbdf890['length']=0x0,_0xbdf890['push'](..._0xfed7d7);});}const J='Ctrl+Shift+E';function T(_0x2728f8,_0x4dcf8a){const _0xa87dc9=_0x2728f8['element'];_0x2728f8['keystrokes']['listenTo'](_0xa87dc9);for(const _0x22df00 of _0x4dcf8a)K(_0x2728f8,_0x22df00);_0x4dcf8a['on']('change',(_0x8dbe4f,_0xabe2b1)=>{for(const _0x2c9d86 of _0xabe2b1['removed'])_(_0x2728f8,_0x2c9d86);for(const _0x3bd3c2 of Array['from'](_0xabe2b1['added'])['reverse']())K(_0x2728f8,_0x3bd3c2);}),_0x2728f8['keystrokes']['set']('enter',(_0x15b1bc,_0xb32c6)=>{_0xa87dc9===_0x15b1bc['target']&&(_0x2728f8['focusCycler']['focusFirst'](),_0xb32c6());},{'filter':_0x597a2a=>_0x597a2a['target']===_0xa87dc9}),_0x2728f8['keystrokes']['set']('esc',(_0x3e0647,_0x2cda96)=>{_0xa87dc9!==_0x3e0647['target']?_0x2728f8['focus']():_0x2728f8['fire']('escape'),_0x2cda96();}),_0x2728f8['keystrokes']['set']('arrowdown',(_0x33b897,_0x377811)=>{_0xa87dc9===_0x33b897['target']&&(_0x2728f8['fire']('arrowdown'),_0x377811());}),_0x2728f8['keystrokes']['set']('arrowup',(_0x2ba006,_0x219773)=>{_0xa87dc9===_0x2ba006['target']&&(_0x2728f8['fire']('arrowup'),_0x219773());});}function K(_0x490dc3,_0x103ffd){_0x103ffd['isRendered']&&(_0x490dc3['focusTracker']['add'](_0x103ffd['element']),_0x490dc3['keystrokes']['listenTo'](_0x103ffd['element']),_0x4ac81b(_0x103ffd)&&function(_0x46b426,_0x4dcf3c){const _0x42c320=_0x46b426['actions'],_0x4f1ff0=_0x4dcf3c['actions'];for(const _0x33e0a4 of Object['keys'](_0x42c320))if(_0x33e0a4 in _0x4f1ff0&&_0x42c320[_0x33e0a4]!==_0x4f1ff0[_0x33e0a4])return!0x1;return!0x0;}(_0x490dc3['focusCycler'],_0x103ffd['focusCycler'])&&_0x490dc3['focusCycler']['chain'](_0x103ffd['focusCycler']));}function _(_0x283f52,_0x324ad9){_0x283f52['focusTracker']['remove'](_0x324ad9['element']),_0x283f52['keystrokes']['stopListening'](_0x324ad9['element']),_0x4ac81b(_0x324ad9)&&_0x283f52['focusCycler']['unchain'](_0x324ad9['focusCycler']);}export{H as AriaDescriptionView,c as ConfirmMixin,J as FOCUS_ANNOTATION_KEYSTROKE,U as LateFocusButtonView,Y as LateFocusDropdownButtonView,n as Permissions,F as UserView,u as Users,R as getAllMarkersDomElementsSorted,E as getDateTimeFormatter,A as getMarkerDomElement,j as hashObject,C as sanitizeEditorConfig,T as setupThreadKeyboardNavigation,z as surroundingMarkersDetector,Z as trimHtml};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "45.0.0-alpha.10",
3
+ "version": "45.0.0-alpha.12",
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.0.0-alpha.10",
36
- "@ckeditor/ckeditor5-core": "45.0.0-alpha.10",
37
- "@ckeditor/ckeditor5-icons": "45.0.0-alpha.10",
38
- "@ckeditor/ckeditor5-theme-lark": "45.0.0-alpha.10",
39
- "@ckeditor/ckeditor5-track-changes": "45.0.0-alpha.10",
40
- "@ckeditor/ckeditor5-ui": "45.0.0-alpha.10",
41
- "@ckeditor/ckeditor5-utils": "45.0.0-alpha.10",
35
+ "@ckeditor/ckeditor5-comments": "45.0.0-alpha.12",
36
+ "@ckeditor/ckeditor5-core": "45.0.0-alpha.12",
37
+ "@ckeditor/ckeditor5-icons": "45.0.0-alpha.12",
38
+ "@ckeditor/ckeditor5-theme-lark": "45.0.0-alpha.12",
39
+ "@ckeditor/ckeditor5-track-changes": "45.0.0-alpha.12",
40
+ "@ckeditor/ckeditor5-ui": "45.0.0-alpha.12",
41
+ "@ckeditor/ckeditor5-utils": "45.0.0-alpha.12",
42
42
  "@types/luxon": "3.4.2",
43
- "ckeditor5": "45.0.0-alpha.10",
43
+ "ckeditor5": "45.0.0-alpha.12",
44
44
  "luxon": "3.5.0"
45
45
  },
46
46
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x46a1(){var _0x55684b=['2yOpfmk','1332226jtQAfM','3825FKQQeE','setTemplate','7576908iWDHHP','17128TYTnDN','573412wkIksc','7tdIqfn','8328540OTepHM','span','1439040ebGfEE','830085YwMBPx','ck-aria-description-','ck-aria-description'];_0x46a1=function(){return _0x55684b;};return _0x46a1();}function _0x19e5(_0x1855e9,_0x3fb54c){var _0x46a1dd=_0x46a1();return _0x19e5=function(_0x19e53e,_0x262c92){_0x19e53e=_0x19e53e-0xec;var _0x2aeeaa=_0x46a1dd[_0x19e53e];return _0x2aeeaa;},_0x19e5(_0x1855e9,_0x3fb54c);}(function(_0x54887d,_0x1db201){var _0x42c7f8=_0x19e5,_0x17479c=_0x54887d();while(!![]){try{var _0x44fb4a=-parseInt(_0x42c7f8(0xef))/0x1*(-parseInt(_0x42c7f8(0xf0))/0x2)+parseInt(_0x42c7f8(0xf9))/0x3+parseInt(_0x42c7f8(0xf5))/0x4+parseInt(_0x42c7f8(0xec))/0x5+parseInt(_0x42c7f8(0xf3))/0x6*(-parseInt(_0x42c7f8(0xf6))/0x7)+-parseInt(_0x42c7f8(0xf4))/0x8*(-parseInt(_0x42c7f8(0xf1))/0x9)+-parseInt(_0x42c7f8(0xf7))/0xa;if(_0x44fb4a===_0x1db201)break;else _0x17479c['push'](_0x17479c['shift']());}catch(_0x5ed82d){_0x17479c['push'](_0x17479c['shift']());}}}(_0x46a1,0xe4669));import{uid as _0x54f72b}from'ckeditor5/src/utils.js';import{View as _0x25cff7}from'ckeditor5/src/ui.js';export default class F extends _0x25cff7{['id'];constructor(_0x556294,_0x5688b5){var _0x68fc57=_0x19e5;super(_0x556294),this['id']=_0x68fc57(0xed)+_0x54f72b(),this[_0x68fc57(0xf2)]({'tag':_0x68fc57(0xf8),'attributes':{'class':['ck',_0x68fc57(0xee)],'id':this['id']},'children':[{'text':_0x5688b5}]});}}
23
+ (function(_0x232c38,_0x456572){var _0x448868=_0x1863,_0x57260f=_0x232c38();while(!![]){try{var _0x119cac=parseInt(_0x448868(0xe2))/0x1*(-parseInt(_0x448868(0xdc))/0x2)+parseInt(_0x448868(0xde))/0x3*(parseInt(_0x448868(0xe5))/0x4)+parseInt(_0x448868(0xdb))/0x5*(-parseInt(_0x448868(0xdd))/0x6)+parseInt(_0x448868(0xe3))/0x7*(-parseInt(_0x448868(0xe1))/0x8)+-parseInt(_0x448868(0xdf))/0x9+-parseInt(_0x448868(0xe0))/0xa+parseInt(_0x448868(0xe8))/0xb;if(_0x119cac===_0x456572)break;else _0x57260f['push'](_0x57260f['shift']());}catch(_0x106afb){_0x57260f['push'](_0x57260f['shift']());}}}(_0x110f,0xf091e));import{uid as _0x34b16d}from'ckeditor5/src/utils.js';import{View as _0x4865b9}from'ckeditor5/src/ui.js';function _0x1863(_0x20ddb5,_0x2770a4){var _0x110f99=_0x110f();return _0x1863=function(_0x18632b,_0x4db42b){_0x18632b=_0x18632b-0xdb;var _0x2dd6ba=_0x110f99[_0x18632b];return _0x2dd6ba;},_0x1863(_0x20ddb5,_0x2770a4);}function _0x110f(){var _0x4ded17=['5165334fGkBEk','12848760dEQhgn','32jXeHSp','1ilCXkA','2972158CWdrPR','ck-aria-description','32tloBLX','span','setTemplate','64105481dXycCZ','ck-aria-description-','1194715bHbUAD','2804174bQnNNd','24AtHgtw','402240rqhgLt'];_0x110f=function(){return _0x4ded17;};return _0x110f();}export default class H extends _0x4865b9{['id'];constructor(_0x20226d,_0x43ca23){var _0x375285=_0x1863;super(_0x20226d),this['id']=_0x375285(0xe9)+_0x34b16d(),this[_0x375285(0xe7)]({'tag':_0x375285(0xe6),'attributes':{'class':['ck',_0x375285(0xe4)],'id':this['id']},'children':[{'text':_0x43ca23}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2b52ef=_0x3e7b;(function(_0x34a692,_0x3162a9){var _0x53a9e2=_0x3e7b,_0x59776d=_0x34a692();while(!![]){try{var _0x1eb514=-parseInt(_0x53a9e2(0x199))/0x1+parseInt(_0x53a9e2(0x198))/0x2*(-parseInt(_0x53a9e2(0x19b))/0x3)+-parseInt(_0x53a9e2(0x19d))/0x4*(-parseInt(_0x53a9e2(0x19f))/0x5)+parseInt(_0x53a9e2(0x1a3))/0x6+parseInt(_0x53a9e2(0x1a6))/0x7*(-parseInt(_0x53a9e2(0x1a5))/0x8)+-parseInt(_0x53a9e2(0x19a))/0x9*(parseInt(_0x53a9e2(0x1a1))/0xa)+-parseInt(_0x53a9e2(0x1a4))/0xb*(-parseInt(_0x53a9e2(0x1a2))/0xc);if(_0x1eb514===_0x3162a9)break;else _0x59776d['push'](_0x59776d['shift']());}catch(_0x5ccd4d){_0x59776d['push'](_0x59776d['shift']());}}}(_0x45af,0x52175));function _0x3e7b(_0x28852d,_0x31501a){var _0x45af80=_0x45af();return _0x3e7b=function(_0x3e7ba2,_0x8f7a5c){_0x3e7ba2=_0x3e7ba2-0x198;var _0x4e37ed=_0x45af80[_0x3e7ba2];return _0x4e37ed;},_0x3e7b(_0x28852d,_0x31501a);}import{ButtonView as _0x4f423e,DropdownButtonView as _0x5dc0ba}from'ckeditor5/src/ui.js';export class LateFocusButtonView extends _0x4f423e{[_0x2b52ef(0x19e)](){var _0x4229cd=_0x2b52ef;super[_0x4229cd(0x19e)](),V(this);}}export class LateFocusDropdownButtonView extends _0x5dc0ba{[_0x2b52ef(0x19e)](){var _0x2e66a8=_0x2b52ef;super[_0x2e66a8(0x19e)](),V(this);}}function _0x45af(){var _0x58091a=['1264660OOejyb','595020hcEsEh','2041020zjOzNY','242khaQZX','392bCIgZA','76783srNIwq','element','mouseup','focus','listenTo','preventDefault','626298DSGRqm','77988nxmYgN','27lfAsfV','6kXyeQl','stopPropagation','8fGpqMq','render','1315925SBHbAs','mousedown'];_0x45af=function(){return _0x58091a;};return _0x45af();}function V(_0x45ca1f){var _0x799576=_0x2b52ef;_0x45ca1f[_0x799576(0x1aa)](_0x45ca1f[_0x799576(0x1a7)],_0x799576(0x1a0),(_0x52fb23,_0x3a1dde)=>{var _0x4ed64d=_0x799576;_0x3a1dde[_0x4ed64d(0x19c)](),_0x3a1dde[_0x4ed64d(0x1ab)]();}),_0x45ca1f[_0x799576(0x1aa)](_0x45ca1f[_0x799576(0x1a7)],_0x799576(0x1a8),()=>{var _0x1a947c=_0x799576;_0x45ca1f[_0x1a947c(0x1a7)][_0x1a947c(0x1a9)]();});}
23
+ var _0x1baa5d=_0x3392;function _0x3392(_0x36958d,_0x525860){var _0x587362=_0x5873();return _0x3392=function(_0x339264,_0x4f482c){_0x339264=_0x339264-0x124;var _0x131374=_0x587362[_0x339264];return _0x131374;},_0x3392(_0x36958d,_0x525860);}function _0x5873(){var _0x1f8ae6=['2759940Inoybr','stopPropagation','171942wkaUqH','134651fvnuoT','14JCkETW','257622Lpxyyo','170rMgXbn','112688geoNdt','preventDefault','136RfwCcI','focus','4sgjuDQ','366385OneDpC','mousedown','element','render','4SlZXTD','35919RqnXYz','mouseup','listenTo'];_0x5873=function(){return _0x1f8ae6;};return _0x5873();}(function(_0x2f47b0,_0x1387e5){var _0x47167d=_0x3392,_0x19acd9=_0x2f47b0();while(!![]){try{var _0x1c4afb=-parseInt(_0x47167d(0x12b))/0x1*(parseInt(_0x47167d(0x127))/0x2)+parseInt(_0x47167d(0x136))/0x3+parseInt(_0x47167d(0x130))/0x4*(-parseInt(_0x47167d(0x12c))/0x5)+-parseInt(_0x47167d(0x125))/0x6*(-parseInt(_0x47167d(0x124))/0x7)+parseInt(_0x47167d(0x129))/0x8*(-parseInt(_0x47167d(0x131))/0x9)+parseInt(_0x47167d(0x126))/0xa*(parseInt(_0x47167d(0x137))/0xb)+parseInt(_0x47167d(0x134))/0xc;if(_0x1c4afb===_0x1387e5)break;else _0x19acd9['push'](_0x19acd9['shift']());}catch(_0x522548){_0x19acd9['push'](_0x19acd9['shift']());}}}(_0x5873,0x346fc));import{ButtonView as _0x297abf,DropdownButtonView as _0xf01f6f}from'ckeditor5/src/ui.js';export class LateFocusButtonView extends _0x297abf{[_0x1baa5d(0x12f)](){var _0x150308=_0x1baa5d;super[_0x150308(0x12f)](),I(this);}}export class LateFocusDropdownButtonView extends _0xf01f6f{[_0x1baa5d(0x12f)](){var _0x391fcb=_0x1baa5d;super[_0x391fcb(0x12f)](),I(this);}}function I(_0x372b12){var _0x171537=_0x1baa5d;_0x372b12[_0x171537(0x133)](_0x372b12[_0x171537(0x12e)],_0x171537(0x12d),(_0x3677b1,_0x169dc2)=>{var _0x643b97=_0x171537;_0x169dc2[_0x643b97(0x135)](),_0x169dc2[_0x643b97(0x128)]();}),_0x372b12[_0x171537(0x133)](_0x372b12[_0x171537(0x12e)],_0x171537(0x132),()=>{var _0x494d1c=_0x171537;_0x372b12[_0x494d1c(0x12e)][_0x494d1c(0x12a)]();});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fdaa4=_0x5a4c;(function(_0x46091b,_0x19367e){const _0x45a539=_0x5a4c,_0x20d0a8=_0x46091b();while(!![]){try{const _0x3d0da8=parseInt(_0x45a539(0xa2))/0x1+parseInt(_0x45a539(0x9e))/0x2*(-parseInt(_0x45a539(0x99))/0x3)+-parseInt(_0x45a539(0x90))/0x4+parseInt(_0x45a539(0x9b))/0x5*(-parseInt(_0x45a539(0x9f))/0x6)+-parseInt(_0x45a539(0x9c))/0x7*(-parseInt(_0x45a539(0xa4))/0x8)+-parseInt(_0x45a539(0x8a))/0x9*(-parseInt(_0x45a539(0x8c))/0xa)+parseInt(_0x45a539(0xa7))/0xb*(-parseInt(_0x45a539(0x93))/0xc);if(_0x3d0da8===_0x19367e)break;else _0x20d0a8['push'](_0x20d0a8['shift']());}catch(_0x1c9708){_0x20d0a8['push'](_0x20d0a8['shift']());}}}(_0x5bc4,0xe8145));function _0x5bc4(){const _0x5e45b2=['push','73430PFVEgX','notificationView','initials','url(\x27','2298200lTjtWF','ck-user__anonymous','name','5246784vbioWx','ck\x20ck-user__name','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__notification','div','extendTemplate','3FebjYS','content','505diQNeB','3163356LBVbBr','ck-user__icon','1216984bmvsKY','17730kGVNLc','isAnonymous','ck-user__avatar','1668452eRmxbE','avatar','24aahQrs','setTemplate','ck-user','33McTbpm','ck-user__img','ck-user_me','isMe','882AyNrHo'];_0x5bc4=function(){return _0x5e45b2;};return _0x5bc4();}import{View as _0x111c61,IconView as _0x3324c4}from'ckeditor5/src/ui.js';function _0x5a4c(_0x51a4d9,_0x132d3a){const _0x5bc470=_0x5bc4();return _0x5a4c=function(_0x5a4c66,_0x1891d4){_0x5a4c66=_0x5a4c66-0x87;let _0x58e7aa=_0x5bc470[_0x5a4c66];return _0x58e7aa;},_0x5a4c(_0x51a4d9,_0x132d3a);}import{IconNotification as _0x24b723}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export default class I extends _0x111c61{[_0x4fdaa4(0x92)];[_0x4fdaa4(0x8d)];constructor(_0x27069f,_0x34be1f,_0x3a3624){const _0x3b370f=_0x4fdaa4;super(_0x27069f),this[_0x3b370f(0x92)]=_0x34be1f[_0x3b370f(0x92)],this[_0x3b370f(0x8d)]=null;const _0x5d8bc1=['ck',_0x3b370f(0xa6)],_0x587a80=['ck',_0x3b370f(0x87)];if(_0x34be1f[_0x3b370f(0xa0)]&&_0x587a80[_0x3b370f(0x8b)](_0x3b370f(0x91)),!_0x34be1f[_0x3b370f(0xa0)]&&_0x34be1f[_0x3b370f(0x89)]&&_0x5d8bc1[_0x3b370f(0x8b)](_0x3b370f(0x88)),_0x34be1f[_0x3b370f(0xa3)]&&_0x587a80[_0x3b370f(0x8b)](_0x3b370f(0xa1)),_0x3a3624){const _0x3820be=new _0x3324c4();_0x3820be[_0x3b370f(0x98)]({'attributes':{'class':[_0x3b370f(0x9d)]}}),_0x3820be[_0x3b370f(0x9a)]=_0x24b723,this[_0x3b370f(0x8d)]={'tag':_0x3b370f(0x97),'attributes':{'class':['ck',_0x3b370f(0x96)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3a3624},'children':[_0x3820be]};}const _0x24c484=[{'tag':_0x3b370f(0x97),'attributes':{'class':_0x587a80,'style':{'background-image':_0x34be1f[_0x3b370f(0xa3)]?_0x3b370f(0x8f)+_0x34be1f[_0x3b370f(0xa3)]+'\x27)':''}}},{'tag':_0x3b370f(0x97),'attributes':{'class':_0x34be1f[_0x3b370f(0xa3)]?_0x3b370f(0x95):_0x3b370f(0x94),'aria-label':_0x34be1f[_0x3b370f(0x92)]},'children':[{'text':_0x34be1f[_0x3b370f(0x8e)]}]}];this[_0x3b370f(0x8d)]&&_0x24c484[_0x3b370f(0x8b)](this[_0x3b370f(0x8d)]),this[_0x3b370f(0xa5)]({'tag':_0x3b370f(0x97),'attributes':{'class':_0x5d8bc1,'data-user-id':_0x34be1f['id']},'children':_0x24c484});}}
23
+ const _0x2fe868=_0x5472;(function(_0x15f2a7,_0x4f1648){const _0x269112=_0x5472,_0x218c10=_0x15f2a7();while(!![]){try{const _0x362557=parseInt(_0x269112(0x163))/0x1+-parseInt(_0x269112(0x161))/0x2*(-parseInt(_0x269112(0x15c))/0x3)+-parseInt(_0x269112(0x165))/0x4*(parseInt(_0x269112(0x168))/0x5)+parseInt(_0x269112(0x15a))/0x6+-parseInt(_0x269112(0x154))/0x7*(-parseInt(_0x269112(0x16b))/0x8)+-parseInt(_0x269112(0x16a))/0x9+-parseInt(_0x269112(0x167))/0xa*(parseInt(_0x269112(0x169))/0xb);if(_0x362557===_0x4f1648)break;else _0x218c10['push'](_0x218c10['shift']());}catch(_0x2cc30c){_0x218c10['push'](_0x218c10['shift']());}}}(_0xadef,0x82517));function _0x5472(_0x427242,_0x58167b){const _0xadef69=_0xadef();return _0x5472=function(_0x5472ff,_0x2d3226){_0x5472ff=_0x5472ff-0x153;let _0x324bd9=_0xadef69[_0x5472ff];return _0x324bd9;},_0x5472(_0x427242,_0x58167b);}import{View as _0x2126b1,IconView as _0x4d06f3}from'ckeditor5/src/ui.js';function _0xadef(){const _0x5b5858=['isMe','isAnonymous','content','893928NhhPRS','div','186vOiwUH','name','push','ck-user__img','ck-user__icon','31142ktkmDz','ck-user','1008494lDOoio','initials','1302856iMepcg','extendTemplate','21740vlGDPY','5gLhSzM','7579wwZFGc','4818708bObYqC','6159288nVQxEO','ck\x20ck-user__name','ck-user__notification','ck-user_me','avatar','ck-user__avatar','url(\x27','notificationView','setTemplate','7NLUDZw','ck-user__anonymous','ck\x20ck-user__name\x20ck-user__name--hidden'];_0xadef=function(){return _0x5b5858;};return _0xadef();}import{IconNotification as _0x2dce91}from'ckeditor5/src/icons.js';import'../../../theme/users.css';export default class F extends _0x2126b1{[_0x2fe868(0x15d)];[_0x2fe868(0x172)];constructor(_0x249e4c,_0x85d773,_0xc88f33){const _0x580351=_0x2fe868;super(_0x249e4c),this[_0x580351(0x15d)]=_0x85d773[_0x580351(0x15d)],this[_0x580351(0x172)]=null;const _0x350724=['ck',_0x580351(0x162)],_0x30adb6=['ck',_0x580351(0x15f)];if(_0x85d773[_0x580351(0x158)]&&_0x30adb6[_0x580351(0x15e)](_0x580351(0x155)),!_0x85d773[_0x580351(0x158)]&&_0x85d773[_0x580351(0x157)]&&_0x350724[_0x580351(0x15e)](_0x580351(0x16e)),_0x85d773[_0x580351(0x16f)]&&_0x30adb6[_0x580351(0x15e)](_0x580351(0x170)),_0xc88f33){const _0x5693e3=new _0x4d06f3();_0x5693e3[_0x580351(0x166)]({'attributes':{'class':[_0x580351(0x160)]}}),_0x5693e3[_0x580351(0x159)]=_0x2dce91,this[_0x580351(0x172)]={'tag':_0x580351(0x15b),'attributes':{'class':['ck',_0x580351(0x16d)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0xc88f33},'children':[_0x5693e3]};}const _0x1031f=[{'tag':_0x580351(0x15b),'attributes':{'class':_0x30adb6,'style':{'background-image':_0x85d773[_0x580351(0x16f)]?_0x580351(0x171)+_0x85d773[_0x580351(0x16f)]+'\x27)':''}}},{'tag':_0x580351(0x15b),'attributes':{'class':_0x85d773[_0x580351(0x16f)]?_0x580351(0x156):_0x580351(0x16c),'aria-label':_0x85d773[_0x580351(0x15d)]},'children':[{'text':_0x85d773[_0x580351(0x164)]}]}];this[_0x580351(0x172)]&&_0x1031f[_0x580351(0x15e)](this[_0x580351(0x172)]),this[_0x580351(0x153)]({'tag':_0x580351(0x15b),'attributes':{'class':_0x350724,'data-user-id':_0x85d773['id']},'children':_0x1031f});}}