@ckeditor/ckeditor5-collaboration-core 44.2.0-alpha.4 → 44.2.0-alpha.5

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 _0x56edc0,Editor as _0x4e3d8c,icons as _0x4a2c7f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2b20cc,Collection as _0x3acf78,uid as _0x4e50bd,first as _0x671e0e,FocusTracker as _0x4c175c,KeystrokeHandler as _0x50c0d5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x74e6f3,IconView as _0x53d0a6,ButtonView as _0x7efbfc,DropdownButtonView as _0x147102,FocusCycler as _0x503041,isViewWithFocusCycler as _0x3c9fce}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5ab92c}from'luxon';class n extends _0x56edc0{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x3d131e,_0x58fa3){let _0x37eabd;if(_0x58fa3||(_0x58fa3=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x58fa3?_0x37eabd=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x37eabd=this['context']['editors']['find'](_0x3b0361=>_0x3b0361['config']['get']('collaboration.channelId')==_0x58fa3)),!_0x37eabd)throw new _0x2b20cc('permissions-set-permissions-invalid-channel-id',null);const _0x2d04bf=_0x37eabd['plugins'],_0x3ca2ab=_0x2d04bf['has']('CommentsRepository')?_0x2d04bf['get']('CommentsRepository'):void 0x0,_0x4f044d=_0x2d04bf['has']('CommentsOnly')&&_0x2d04bf['get']('CommentsOnly'),_0x26a11d=_0x3d131e['includes']('document:write'),_0x26fd75=_0x3d131e['includes']('comment:modify_all'),_0x5aabd9=_0x3d131e['includes']('comment:admin'),_0x12b00a=_0x3d131e['includes']('comment:write'),_0x3fbf0e=_0x12b00a||_0x5aabd9,_0x423a23=_0x3fbf0e||_0x26fd75,_0x5bcd28=_0x26a11d||_0x3fbf0e;(_0x4f044d&&(_0x4f044d['isEnabled']=!_0x26a11d&&_0x423a23),_0x37eabd instanceof _0x4e3d8c)&&(!(_0x26a11d||_0x423a23&&_0x3ca2ab)?_0x37eabd['enableReadOnlyMode']('no-permissions'):_0x37eabd['disableReadOnlyMode']('no-permissions'));if(_0x3ca2ab){_0x3ca2ab['setPermissions']({'admin':_0x5aabd9,'modifyAll':_0x26fd75,'write':_0x12b00a,'resolve':_0x5bcd28},_0x58fa3);const _0x4b7527=_0x37eabd instanceof _0x4e3d8c&&_0x37eabd['commands']['get']('addCommentThread');_0x4b7527&&(_0x3fbf0e?_0x4b7527['clearForceDisabled']('noPermissions'):_0x4b7527['forceDisabled']('noPermissions'));}}}function o(_0x1c2bf6,_0x48ebe9){const t=_0x1c2bf6['t'];switch(_0x48ebe9){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}class u extends _0x56edc0{['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(_0x12e2cb){super(_0x12e2cb),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x3acf78(),this['_locale']=_0x12e2cb['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:_0x28bc98,name:_0x1efdcb,..._0xf5dec9}){if(!_0x28bc98||'string'!=typeof _0x28bc98)throw new _0x2b20cc('users-add-invalid-id');if(this['users']['has'](_0x28bc98))throw new _0x2b20cc('users-add-duplicated-id',null,{'id':_0x28bc98});const _0x494d18={..._0xf5dec9,'id':_0x28bc98,'name':h(this['_locale'],_0x1efdcb),'color':this['_getNextColor']()};_0x494d18['name']=h(this['_locale'],_0x494d18['name']);const _0x2c5b5c=new P(_0x494d18);return this['users']['add'](_0x2c5b5c),_0x2c5b5c;}['getUser'](_0x323fe4){return this['users']['get'](_0x323fe4);}['useAnonymousUser'](){const _0x14313f=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x14313f);}['defineMe'](_0x4370d4){if(this['_myId'])throw new _0x2b20cc('users-me-already-defined',null);const _0x186ca0=this['getUser'](_0x4370d4);if(!_0x186ca0)throw new _0x2b20cc('users-me-missing-user',null);this['_myId']=_0x4370d4,_0x186ca0['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x52fb4f=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x52fb4f&&(this['_lastColor']=0x0),new c(this['_lastColor']++);}['_addAnonymousUser'](){const _0x55ddf3=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x55ddf3,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x3cb88a){this['id']=_0x3cb88a['id'],this['color']=_0x3cb88a['color'],this['name']=_0x3cb88a['name'],this['avatar']=_0x3cb88a['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}get['initials'](){const _0x4d8770=this['name']['split']('\x20');return 0x1===_0x4d8770['length']?this['_getInitial'](_0x4d8770[0x0]):this['_getInitial'](_0x4d8770[0x0])+this['_getInitial'](_0x4d8770[_0x4d8770['length']-0x1]);}['_getInitial'](_0x196293){return _0x196293['charAt'](0x0)['toUpperCase']();}}function h(_0x4382d9,_0x23eaf8=''){return''==(_0x23eaf8=_0x23eaf8['trim']())?o(_0x4382d9,'Anonymous'):_0x23eaf8;}class c{['_id'];constructor(_0x4cb4da){this['_id']=_0x4cb4da;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return'ck-user__selection--'+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this['_id'];}}class H extends _0x74e6f3{['name'];['notificationView'];constructor(_0x367d46,_0x19fb65,_0x127932){super(_0x367d46),this['name']=_0x19fb65['name'],this['notificationView']=null;const _0xdb91ae=['ck','ck-user'],_0xae8b4e=['ck','ck-user__img'];if(_0x19fb65['isAnonymous']&&_0xae8b4e['push']('ck-user__anonymous'),!_0x19fb65['isAnonymous']&&_0x19fb65['isMe']&&_0xdb91ae['push']('ck-user_me'),_0x19fb65['avatar']&&_0xae8b4e['push']('ck-user__avatar'),_0x127932){const _0x324b69=new _0x53d0a6();_0x324b69['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x324b69['content']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10\x200C4.48\x200\x200\x204.48\x200\x2010s4.48\x2010\x2010\x2010\x2010-4.48\x2010-10S15.52\x200\x2010\x200zm1\x2015H9v-2h2v2zm0-4H9V5h2v6z\x22/></svg>\x0a',this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x127932},'children':[_0x324b69]};}const _0x1ef643=[{'tag':'div','attributes':{'class':_0xae8b4e,'style':{'background-image':_0x19fb65['avatar']?'url(\x27'+_0x19fb65['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x19fb65['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x19fb65['name']},'children':[{'text':_0x19fb65['initials']}]}];this['notificationView']&&_0x1ef643['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0xdb91ae,'data-user-id':_0x19fb65['id']},'children':_0x1ef643});}}class F extends _0x74e6f3{['id'];constructor(_0x2e2edf,_0x1e99fc){super(_0x2e2edf),this['id']='ck-aria-description-'+_0x4e50bd(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x1e99fc}]});}}class I extends _0x7efbfc{['render'](){super['render'](),V(this);}}class U extends _0x147102{['render'](){super['render'](),V(this);}}function V(_0x24a0e1){_0x24a0e1['listenTo'](_0x24a0e1['element'],'mousedown',(_0x1da39f,_0x26d9aa)=>{_0x26d9aa['stopPropagation'](),_0x26d9aa['preventDefault']();}),_0x24a0e1['listenTo'](_0x24a0e1['element'],'mouseup',()=>{_0x24a0e1['element']['focus']();});}function E(_0x5c7ff3={}){if(void 0x0!==_0x5c7ff3['dateTimeFormat']&&'function'!=typeof _0x5c7ff3['dateTimeFormat'])throw new _0x2b20cc('invalid-date-time-format');return _0x4d92f4=>{const _0x15f0af='string'==typeof _0x4d92f4?_0x5ab92c['fromISO'](_0x4d92f4):_0x5ab92c['fromJSDate'](_0x4d92f4),_0x1d7b6f=_0x5ab92c['now'](),_0x315ce1=Math['floor'](_0x1d7b6f['diff'](_0x15f0af,'days')['days']);return _0x5c7ff3['dateTimeFormat']?_0x5c7ff3['dateTimeFormat'](_0x15f0af['toJSDate']()):0x0===_0x315ce1?_0x15f0af['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x315ce1?_0x15f0af['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x315ce1<0x7?_0x15f0af['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x15f0af['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x222571,_0x436024){const _0x394a28=_0x222571['mapper']['markerNameToElements'](_0x436024['name']);if(!_0x394a28)return null;const _0x1b9f95=_0x671e0e(_0x394a28['values']());return _0x222571['view']['domConverter']['mapViewToDom'](_0x1b9f95)||null;}function Y(_0x490d98,_0x2fd778){if(0x0===_0x2fd778['length'])return null;const _0x280a7a=[],_0x420d83=_0x490d98['view']['domConverter'];for(const _0x1e0304 of _0x2fd778){const _0x1c8b4e=_0x490d98['mapper']['markerNameToElements'](_0x1e0304['name']);if(!_0x1c8b4e)continue;const _0x1b3757=Array['from'](_0x1c8b4e)['map'](_0x235b3f=>_0x420d83['mapViewToDom'](_0x235b3f))['filter'](_0x2b946a=>!!_0x2b946a);_0x280a7a['push'](..._0x1b3757);}if(0x0===_0x280a7a['length'])return null;const _0x243e49=[];for(const _0xda30e9 of _0x280a7a){const _0x4d0b85=_0xda30e9['getClientRects']()['item'](0x0);_0x4d0b85&&_0x243e49['push']({'x':_0x4d0b85['x'],'y':_0x4d0b85['y'],'domElement':_0xda30e9});}return 0x0===_0x243e49['length']?null:(_0x243e49['sort']((_0x44a8e6,_0x1354a5)=>_0x44a8e6['y']-_0x1354a5['y']||_0x44a8e6['x']-_0x1354a5['x']),_0x243e49['map'](_0x5f3780=>_0x5f3780['domElement']));}function Z(_0x3ee387,{limit:_0x21bc8d,suffix:_0x1d4df5='...'}){const _0x53565b=[];let _0x5d18e5=0x0;const _0xc5fa6f=_0x3ee387['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x4b4eb1=0x0;_0x4b4eb1<_0xc5fa6f['length'];_0x4b4eb1++){let _0x2380f7=_0xc5fa6f[_0x4b4eb1];const _0x40b273=$(_0x2380f7);if(_0x2380f7['startsWith']('<')){if(_0x5d18e5>=_0x21bc8d){const _0x12f573=_0x2380f7['match'](/[a-zA-Z]+/);if(!_0x12f573){_0xc5fa6f[_0x4b4eb1]='';continue;}const _0x44f9b1=_0x12f573[0x0];_0x2380f7['startsWith']('</')?(_0x53565b['length']&&(_0x2380f7=''),_0x53565b['pop']()):(_0x53565b['push'](_0x44f9b1),_0x2380f7='');}}else{if(_0x5d18e5>=_0x21bc8d)_0x2380f7='';else{if(_0x5d18e5+_0x40b273['length']>=_0x21bc8d){let _0x3df3ad=_0x21bc8d-_0x5d18e5;if('\x20'===_0x40b273[_0x3df3ad-0x1])_0x3df3ad--;else{const _0x14cff5=_0x40b273['slice'](_0x3df3ad)['indexOf']('\x20');-0x1!==_0x14cff5?_0x3df3ad+=_0x14cff5:_0x3df3ad=_0x2380f7['length'];}_0x2380f7=_0x40b273['slice'](0x0,_0x3df3ad)['join']('')+_0x1d4df5,_0x5d18e5=_0x21bc8d;}else _0x5d18e5+=_0x40b273['length'];}}_0xc5fa6f[_0x4b4eb1]=_0x2380f7;}return _0xc5fa6f['join']('\x0a')['replace'](/\n/g,'');}function $(_0x30f23c){const _0x578849=[];for(let _0x5018d4=0x0;_0x5018d4<_0x30f23c['length'];_0x5018d4++){const _0x1e0db2=_0x30f23c['substring'](_0x5018d4)['match'](/^&[a-z0-9#]+;/);if(_0x1e0db2){const _0x2a4424=_0x1e0db2[0x0];_0x578849['push'](_0x2a4424),_0x5018d4+=_0x2a4424['length']-0x1;}else _0x578849['push'](_0x30f23c[_0x5018d4]);}return _0x578849;}class m extends _0x74e6f3{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x2cf168){super(_0x2cf168);const _0x2b7fc9=this['bindTemplate'];this['set']('message',o(_0x2cf168,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x2cf168,o(_0x2cf168,'Yes'),_0x4a2c7f['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x2cf168,o(_0x2cf168,'No'),_0x4a2c7f['cancel'],'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x4c175c(),this['keystrokes']=new _0x50c0d5(),this['focusCycler']=new _0x503041({'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':_0x2b7fc9['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'](_0x17bd40,_0x204742,_0x9c34eb,_0x83fd3f){const _0x1b1370=new _0x7efbfc(_0x17bd40);return _0x1b1370['label']=_0x204742,_0x1b1370['icon']=_0x9c34eb,_0x1b1370['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x83fd3f}}),_0x1b1370['on']('execute',()=>this['fire'](_0x83fd3f)),_0x1b1370;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x5e80e6=>{this['keystrokes']['listenTo'](_0x5e80e6['element']),this['focusTracker']['add'](_0x5e80e6['element']);}),this['keystrokes']['set']('esc',(_0x11cf13,_0x5bf8b8)=>{this['fire']('cancel'),_0x5bf8b8();});}}function f(_0x47b608){return class extends _0x47b608{['showConfirm'](_0x5dff51,_0x18f86a){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x5dff51,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x18f86a['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x14c0ca=>this['confirmView']['on']('submit',_0x14c0ca));}['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(_0x3baeee){let _0x510904=0x0,_0x1df816=0x0;for(const _0x6f494e of M(_0x3baeee))_0x510904=(_0x510904<<0x5)-_0x510904+_0x6f494e,_0x510904|=0x0,[_0x510904,_0x1df816]=[_0x1df816,_0x510904];return v(_0x510904)+v(_0x1df816);}function*g(_0x560d5f){null==_0x560d5f||null==_0x560d5f?yield 0x12b9b0a1:0x0===_0x560d5f||!0x1===_0x560d5f?yield 0x0:0x1===_0x560d5f||0x1==_0x560d5f?yield 0x1:Array['isArray'](_0x560d5f)?yield*function*(_0x40bb9b){for(const _0x4f5b8f of _0x40bb9b)yield*g(_0x4f5b8f);}(_0x560d5f):'object'==typeof _0x560d5f?yield*M(_0x560d5f):'string'==typeof _0x560d5f?yield*O(_0x560d5f):'number'==typeof _0x560d5f&&(yield _0x560d5f);}function*M(_0x5015b2){if(yield q('{'),_0x5015b2){const _0x32e6b5=Object['keys'](_0x5015b2)['sort']();for(const _0x34dbfa of _0x32e6b5){yield*O(_0x34dbfa),yield q(':');const _0x5088f9=_0x5015b2[_0x34dbfa];yield*g(_0x5088f9);}}yield q('}');}function*O(_0x22657f){yield q('\x22');for(const _0x420efd of _0x22657f)yield q(_0x420efd);yield q('\x22');}function q(_0x2d9101){return _0x2d9101['charCodeAt'](0x0);}function v(_0x5227df){return(_0x5227df*=Math['sign'](_0x5227df))['toString'](0x24);}const w=['initialData','context','toolbar','rootsAttributes'],W=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function D(_0x22dc4b,_0x232d9c,_0x2184e2,_0x31cab3=[]){const _0x3d769b='string'==typeof _0x22dc4b?_0x2184e2['get'](_0x22dc4b)['constructor']:_0x22dc4b['prototype']['constructor'];if(_0x232d9c['has'](_0x3d769b))return _0x232d9c['get'](_0x3d769b);_0x232d9c['set'](_0x3d769b,!0x0);const _0x4401b5=[...W,..._0x31cab3]['map'](_0xf1f1fe=>{if(_0x2184e2['has'](_0xf1f1fe))return _0x2184e2['get'](_0xf1f1fe)['constructor'];})['filter'](_0x52a792=>_0x52a792);if(_0x3d769b&&_0x4401b5['includes'](_0x3d769b))return _0x232d9c['set'](_0x3d769b,!0x1),!0x1;if(!_0x3d769b['requires'])return _0x232d9c['set'](_0x3d769b,!0x0),!0x0;const _0x5ce3fe=_0x3d769b['requires']['every'](_0x315880=>D(_0x315880,_0x232d9c,_0x2184e2,_0x31cab3));return _0x232d9c['set'](_0x3d769b,_0x5ce3fe),_0x5ce3fe;}function S(_0x107ff2,_0x54ea1d){const _0x30de8c={};for(const _0x6ee8ae of _0x107ff2['config']['names']())w['includes'](_0x6ee8ae)||(_0x30de8c[_0x6ee8ae]=_0x107ff2['config']['get'](_0x6ee8ae));const _0x486617=_0x30de8c['plugins']||[],_0x174247=_0x107ff2['constructor']['builtinPlugins']||[],_0x5d1e78=_0x486617['length']?_0x486617:_0x174247,_0x5c16bb=_0x30de8c['extraPlugins']||[];delete _0x30de8c['extraPlugins'];const _0x58768e=_0x30de8c['removePlugins']||[];delete _0x30de8c['removePlugins'];const _0x46c37f=_0x107ff2['_context']['config']['get']('plugins')||[],_0xf07b1b=_0x5d1e78['concat'](_0x5c16bb)['concat'](_0x46c37f)['map'](_0x14f419=>'string'==typeof _0x14f419?_0x174247['find'](_0x51e88d=>_0x51e88d['pluginName']==_0x14f419):_0x14f419)['filter'](_0xbb9e6e=>!_0x58768e['includes'](_0xbb9e6e)&&!_0x58768e['includes'](_0xbb9e6e['pluginName'])),_0x2e6a89=Array['from'](new Set(_0xf07b1b)),_0x41e1a7=new Map();return _0x30de8c['plugins']=_0x2e6a89['filter'](_0x410865=>D(_0x410865,_0x41e1a7,_0x107ff2['plugins'],_0x54ea1d)),_0x30de8c;}function z(_0x24d455,_0x1b50e1){const _0x39e2c0=[];_0x24d455['document']['selection']['on']('change:range',()=>{const _0x3137f0=function(_0x2ef300,_0xac47c6){const _0x330178=[];for(const _0x440f4b of _0x2ef300['markers']){const _0x3950af=_0x440f4b['getRange']();(_0x3950af['containsPosition'](_0xac47c6)||_0x3950af['start']['isEqual'](_0xac47c6)||_0x3950af['end']['isEqual'](_0xac47c6))&&_0x330178['push'](_0x440f4b);}return _0x330178;}(_0x24d455,_0x24d455['document']['selection']['focus']),_0x152af9=[],_0x47487c=[],_0x4dbcd6=[];for(const _0x5e8d41 of _0x39e2c0)_0x3137f0['includes'](_0x5e8d41)||_0x152af9['push'](_0x5e8d41);for(const _0x66942b of _0x3137f0)_0x39e2c0['includes'](_0x66942b)||_0x47487c['push'](_0x66942b),_0x4dbcd6['push'](_0x66942b);(_0x152af9['length']||_0x47487c['length'])&&_0x1b50e1({'left':_0x152af9,'entered':_0x47487c}),_0x39e2c0['length']=0x0,_0x39e2c0['push'](..._0x4dbcd6);});}const R='Ctrl+Shift+E';function T(_0x35ee99,_0x39f659){const _0x1127de=_0x35ee99['element'];_0x35ee99['keystrokes']['listenTo'](_0x1127de);for(const _0x46b105 of _0x39f659)C(_0x35ee99,_0x46b105);_0x39f659['on']('change',(_0x2cff79,_0x56ee53)=>{for(const _0x5aeaf5 of _0x56ee53['removed'])K(_0x35ee99,_0x5aeaf5);for(const _0x1ee8bc of Array['from'](_0x56ee53['added'])['reverse']())C(_0x35ee99,_0x1ee8bc);}),_0x35ee99['keystrokes']['set']('enter',(_0x3a9f77,_0x549b7b)=>{_0x1127de===_0x3a9f77['target']&&(_0x35ee99['focusCycler']['focusFirst'](),_0x549b7b());},{'filter':_0x5da945=>_0x5da945['target']===_0x1127de}),_0x35ee99['keystrokes']['set']('esc',(_0x49da87,_0x14dac3)=>{_0x1127de!==_0x49da87['target']?_0x35ee99['focus']():_0x35ee99['fire']('escape'),_0x14dac3();}),_0x35ee99['keystrokes']['set']('arrowdown',(_0x541bf9,_0x38368f)=>{_0x1127de===_0x541bf9['target']&&(_0x35ee99['fire']('arrowdown'),_0x38368f());}),_0x35ee99['keystrokes']['set']('arrowup',(_0x4a0fa7,_0x2533b0)=>{_0x1127de===_0x4a0fa7['target']&&(_0x35ee99['fire']('arrowup'),_0x2533b0());});}function C(_0x4fc0b3,_0x38a0b6){_0x38a0b6['isRendered']&&(_0x4fc0b3['focusTracker']['add'](_0x38a0b6['element']),_0x4fc0b3['keystrokes']['listenTo'](_0x38a0b6['element']),_0x3c9fce(_0x38a0b6)&&function(_0x3ae3d8,_0x436801){const _0x264e77=_0x3ae3d8['actions'],_0x5c7849=_0x436801['actions'];for(const _0x3ffa4c of Object['keys'](_0x264e77))if(_0x3ffa4c in _0x5c7849&&_0x264e77[_0x3ffa4c]!==_0x5c7849[_0x3ffa4c])return!0x1;return!0x0;}(_0x4fc0b3['focusCycler'],_0x38a0b6['focusCycler'])&&_0x4fc0b3['focusCycler']['chain'](_0x38a0b6['focusCycler']));}function K(_0x53b6fd,_0x511627){_0x53b6fd['focusTracker']['remove'](_0x511627['element']),_0x53b6fd['keystrokes']['stopListening'](_0x511627['element']),_0x3c9fce(_0x511627)&&_0x53b6fd['focusCycler']['unchain'](_0x511627['focusCycler']);}export{F as AriaDescriptionView,f as ConfirmMixin,R as FOCUS_ANNOTATION_KEYSTROKE,I as LateFocusButtonView,U as LateFocusDropdownButtonView,n as Permissions,H as UserView,u as Users,Y as getAllMarkersDomElementsSorted,E as getDateTimeFormatter,A as getMarkerDomElement,j as hashObject,S as sanitizeEditorConfig,T as setupThreadKeyboardNavigation,z as surroundingMarkersDetector,Z as trimHtml};
23
+ import{ContextPlugin as _0x4e1f8b,Editor as _0x1d706a,icons as _0x32b5a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xd113c0,Collection as _0x5dbd43,uid as _0x1fd9e5,first as _0x550008,FocusTracker as _0x3f8023,KeystrokeHandler as _0x27e7b7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0xc73082,IconView as _0xeda996,ButtonView as _0x7e27e0,DropdownButtonView as _0xe25ff3,FocusCycler as _0x53065d,isViewWithFocusCycler as _0x41f762}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x544e97}from'luxon';class n extends _0x4e1f8b{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x4d5b46,_0xac5c8c){let _0x1b8ce6;if(_0xac5c8c||(_0xac5c8c=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0xac5c8c?_0x1b8ce6=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x1b8ce6=this['context']['editors']['find'](_0x42a580=>_0x42a580['config']['get']('collaboration.channelId')==_0xac5c8c)),!_0x1b8ce6)throw new _0xd113c0('permissions-set-permissions-invalid-channel-id',null);const _0x21ba65=_0x1b8ce6['plugins'],_0x286ff0=_0x21ba65['has']('CommentsRepository')?_0x21ba65['get']('CommentsRepository'):void 0x0,_0x1ca810=_0x21ba65['has']('CommentsOnly')&&_0x21ba65['get']('CommentsOnly'),_0x48d3b8=_0x4d5b46['includes']('document:write'),_0x49ac11=_0x4d5b46['includes']('comment:modify_all'),_0x386d17=_0x4d5b46['includes']('comment:admin'),_0x2c5dff=_0x4d5b46['includes']('comment:write'),_0x40549a=_0x2c5dff||_0x386d17,_0x8503ca=_0x40549a||_0x49ac11,_0x19b399=_0x48d3b8||_0x40549a;(_0x1ca810&&(_0x1ca810['isEnabled']=!_0x48d3b8&&_0x8503ca),_0x1b8ce6 instanceof _0x1d706a)&&(!(_0x48d3b8||_0x8503ca&&_0x286ff0)?_0x1b8ce6['enableReadOnlyMode']('no-permissions'):_0x1b8ce6['disableReadOnlyMode']('no-permissions'));if(_0x286ff0){_0x286ff0['setPermissions']({'admin':_0x386d17,'modifyAll':_0x49ac11,'write':_0x2c5dff,'resolve':_0x19b399},_0xac5c8c);const _0x39098a=_0x1b8ce6 instanceof _0x1d706a&&_0x1b8ce6['commands']['get']('addCommentThread');_0x39098a&&(_0x40549a?_0x39098a['clearForceDisabled']('noPermissions'):_0x39098a['forceDisabled']('noPermissions'));}}}function o(_0x171c40,_0x34f02b){const t=_0x171c40['t'];switch(_0x34f02b){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}class u extends _0x4e1f8b{['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(_0x19e627){super(_0x19e627),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x5dbd43(),this['_locale']=_0x19e627['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:_0x22cb27,name:_0x16e7fb,..._0x5a6e04}){if(!_0x22cb27||'string'!=typeof _0x22cb27)throw new _0xd113c0('users-add-invalid-id');if(this['users']['has'](_0x22cb27))throw new _0xd113c0('users-add-duplicated-id',null,{'id':_0x22cb27});const _0x3f26fe={..._0x5a6e04,'id':_0x22cb27,'name':h(this['_locale'],_0x16e7fb),'color':this['_getNextColor']()};_0x3f26fe['name']=h(this['_locale'],_0x3f26fe['name']);const _0x351be9=new P(_0x3f26fe);return this['users']['add'](_0x351be9),_0x351be9;}['getUser'](_0x4e0f47){return this['users']['get'](_0x4e0f47);}['useAnonymousUser'](){const _0x1efe92=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x1efe92);}['defineMe'](_0x1f45b1){if(this['_myId'])throw new _0xd113c0('users-me-already-defined',null);const _0x25c6f0=this['getUser'](_0x1f45b1);if(!_0x25c6f0)throw new _0xd113c0('users-me-missing-user',null);this['_myId']=_0x1f45b1,_0x25c6f0['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x35e946=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x35e946&&(this['_lastColor']=0x0),new c(this['_lastColor']++);}['_addAnonymousUser'](){const _0x266469=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x266469,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x55fed5){this['id']=_0x55fed5['id'],this['color']=_0x55fed5['color'],this['name']=_0x55fed5['name'],this['avatar']=_0x55fed5['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}get['initials'](){const _0x4aad6d=this['name']['split']('\x20');return 0x1===_0x4aad6d['length']?this['_getInitial'](_0x4aad6d[0x0]):this['_getInitial'](_0x4aad6d[0x0])+this['_getInitial'](_0x4aad6d[_0x4aad6d['length']-0x1]);}['_getInitial'](_0x3bf5bf){return _0x3bf5bf['charAt'](0x0)['toUpperCase']();}}function h(_0x103af5,_0x9e36da=''){return''==(_0x9e36da=_0x9e36da['trim']())?o(_0x103af5,'Anonymous'):_0x9e36da;}class c{['_id'];constructor(_0x450a1a){this['_id']=_0x450a1a;}['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 _0xc73082{['name'];['notificationView'];constructor(_0x25ba5f,_0x43a8d1,_0x30d0e4){super(_0x25ba5f),this['name']=_0x43a8d1['name'],this['notificationView']=null;const _0x21fe16=['ck','ck-user'],_0x39e28c=['ck','ck-user__img'];if(_0x43a8d1['isAnonymous']&&_0x39e28c['push']('ck-user__anonymous'),!_0x43a8d1['isAnonymous']&&_0x43a8d1['isMe']&&_0x21fe16['push']('ck-user_me'),_0x43a8d1['avatar']&&_0x39e28c['push']('ck-user__avatar'),_0x30d0e4){const _0x1abffc=new _0xeda996();_0x1abffc['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x1abffc['content']='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10\x200C4.48\x200\x200\x204.48\x200\x2010s4.48\x2010\x2010\x2010\x2010-4.48\x2010-10S15.52\x200\x2010\x200zm1\x2015H9v-2h2v2zm0-4H9V5h2v6z\x22/></svg>\x0a',this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x30d0e4},'children':[_0x1abffc]};}const _0x598c2d=[{'tag':'div','attributes':{'class':_0x39e28c,'style':{'background-image':_0x43a8d1['avatar']?'url(\x27'+_0x43a8d1['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x43a8d1['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x43a8d1['name']},'children':[{'text':_0x43a8d1['initials']}]}];this['notificationView']&&_0x598c2d['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x21fe16,'data-user-id':_0x43a8d1['id']},'children':_0x598c2d});}}class H extends _0xc73082{['id'];constructor(_0x5979df,_0x3b6155){super(_0x5979df),this['id']='ck-aria-description-'+_0x1fd9e5(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x3b6155}]});}}class I extends _0x7e27e0{['render'](){super['render'](),V(this);}}class U extends _0xe25ff3{['render'](){super['render'](),V(this);}}function V(_0x10e050){_0x10e050['listenTo'](_0x10e050['element'],'mousedown',(_0x2ecd98,_0x5b3d5f)=>{_0x5b3d5f['stopPropagation'](),_0x5b3d5f['preventDefault']();}),_0x10e050['listenTo'](_0x10e050['element'],'mouseup',()=>{_0x10e050['element']['focus']();});}function E(_0x2c5ed9={}){if(void 0x0!==_0x2c5ed9['dateTimeFormat']&&'function'!=typeof _0x2c5ed9['dateTimeFormat'])throw new _0xd113c0('invalid-date-time-format');return _0x24adf6=>{const _0x5831be='string'==typeof _0x24adf6?_0x544e97['fromISO'](_0x24adf6):_0x544e97['fromJSDate'](_0x24adf6),_0x19b009=_0x544e97['now'](),_0x2e6f90=Math['floor'](_0x19b009['diff'](_0x5831be,'days')['days']);return _0x2c5ed9['dateTimeFormat']?_0x2c5ed9['dateTimeFormat'](_0x5831be['toJSDate']()):0x0===_0x2e6f90?_0x5831be['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x2e6f90?_0x5831be['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x2e6f90<0x7?_0x5831be['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x5831be['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x45a67f,_0x5540b2){const _0x195c64=_0x45a67f['mapper']['markerNameToElements'](_0x5540b2['name']);if(!_0x195c64)return null;const _0x3f8914=_0x550008(_0x195c64['values']());return _0x45a67f['view']['domConverter']['mapViewToDom'](_0x3f8914)||null;}function Y(_0xb38e24,_0xc08f95){if(0x0===_0xc08f95['length'])return null;const _0x3c90e0=[],_0xf0129c=_0xb38e24['view']['domConverter'];for(const _0x35cdae of _0xc08f95){const _0x6ca72a=_0xb38e24['mapper']['markerNameToElements'](_0x35cdae['name']);if(!_0x6ca72a)continue;const _0x558833=Array['from'](_0x6ca72a)['map'](_0x2b44a8=>_0xf0129c['mapViewToDom'](_0x2b44a8))['filter'](_0x1f6ff5=>!!_0x1f6ff5);_0x3c90e0['push'](..._0x558833);}if(0x0===_0x3c90e0['length'])return null;const _0x3b0510=[];for(const _0x10262f of _0x3c90e0){const _0x1277b7=_0x10262f['getClientRects']()['item'](0x0);_0x1277b7&&_0x3b0510['push']({'x':_0x1277b7['x'],'y':_0x1277b7['y'],'domElement':_0x10262f});}return 0x0===_0x3b0510['length']?null:(_0x3b0510['sort']((_0x14370e,_0x109650)=>_0x14370e['y']-_0x109650['y']||_0x14370e['x']-_0x109650['x']),_0x3b0510['map'](_0x58d71c=>_0x58d71c['domElement']));}function Z(_0x277626,{limit:_0x5431fe,suffix:_0x309697='...'}){const _0x4aa27e=[];let _0x5d4a4d=0x0;const _0x10a483=_0x277626['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x1ebdaf=0x0;_0x1ebdaf<_0x10a483['length'];_0x1ebdaf++){let _0x3a3cce=_0x10a483[_0x1ebdaf];const _0xaddd52=$(_0x3a3cce);if(_0x3a3cce['startsWith']('<')){if(_0x5d4a4d>=_0x5431fe){const _0x7f59d8=_0x3a3cce['match'](/[a-zA-Z]+/);if(!_0x7f59d8){_0x10a483[_0x1ebdaf]='';continue;}const _0xd67afd=_0x7f59d8[0x0];_0x3a3cce['startsWith']('</')?(_0x4aa27e['length']&&(_0x3a3cce=''),_0x4aa27e['pop']()):(_0x4aa27e['push'](_0xd67afd),_0x3a3cce='');}}else{if(_0x5d4a4d>=_0x5431fe)_0x3a3cce='';else{if(_0x5d4a4d+_0xaddd52['length']>=_0x5431fe){let _0x4c20de=_0x5431fe-_0x5d4a4d;if('\x20'===_0xaddd52[_0x4c20de-0x1])_0x4c20de--;else{const _0x19d8d9=_0xaddd52['slice'](_0x4c20de)['indexOf']('\x20');-0x1!==_0x19d8d9?_0x4c20de+=_0x19d8d9:_0x4c20de=_0x3a3cce['length'];}_0x3a3cce=_0xaddd52['slice'](0x0,_0x4c20de)['join']('')+_0x309697,_0x5d4a4d=_0x5431fe;}else _0x5d4a4d+=_0xaddd52['length'];}}_0x10a483[_0x1ebdaf]=_0x3a3cce;}return _0x10a483['join']('\x0a')['replace'](/\n/g,'');}function $(_0x4ac1b1){const _0x282de7=[];for(let _0xf7519d=0x0;_0xf7519d<_0x4ac1b1['length'];_0xf7519d++){const _0x2f4a0f=_0x4ac1b1['substring'](_0xf7519d)['match'](/^&[a-z0-9#]+;/);if(_0x2f4a0f){const _0x3b0a82=_0x2f4a0f[0x0];_0x282de7['push'](_0x3b0a82),_0xf7519d+=_0x3b0a82['length']-0x1;}else _0x282de7['push'](_0x4ac1b1[_0xf7519d]);}return _0x282de7;}class m extends _0xc73082{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0xca1c03){super(_0xca1c03);const _0x4810bb=this['bindTemplate'];this['set']('message',o(_0xca1c03,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0xca1c03,o(_0xca1c03,'Yes'),_0x32b5a0['check'],'submit'),this['cancelView']=this['_createButtonView'](_0xca1c03,o(_0xca1c03,'No'),_0x32b5a0['cancel'],'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x3f8023(),this['keystrokes']=new _0x27e7b7(),this['focusCycler']=new _0x53065d({'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':_0x4810bb['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'](_0x3d3e8d,_0x512c34,_0x209bc5,_0x552512){const _0x533166=new _0x7e27e0(_0x3d3e8d);return _0x533166['label']=_0x512c34,_0x533166['icon']=_0x209bc5,_0x533166['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x552512}}),_0x533166['on']('execute',()=>this['fire'](_0x552512)),_0x533166;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x2166f4=>{this['keystrokes']['listenTo'](_0x2166f4['element']),this['focusTracker']['add'](_0x2166f4['element']);}),this['keystrokes']['set']('esc',(_0x400dab,_0x2da822)=>{this['fire']('cancel'),_0x2da822();});}}function f(_0x5e42d3){return class extends _0x5e42d3{['showConfirm'](_0x5b07b2,_0x5b4513){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x5b07b2,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x5b4513['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x507117=>this['confirmView']['on']('submit',_0x507117));}['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(_0x524ec9){let _0x5949f6=0x0,_0x3e20d3=0x0;for(const _0x3872f3 of M(_0x524ec9))_0x5949f6=(_0x5949f6<<0x5)-_0x5949f6+_0x3872f3,_0x5949f6|=0x0,[_0x5949f6,_0x3e20d3]=[_0x3e20d3,_0x5949f6];return v(_0x5949f6)+v(_0x3e20d3);}function*g(_0x423206){null==_0x423206||null==_0x423206?yield 0x12b9b0a1:0x0===_0x423206||!0x1===_0x423206?yield 0x0:0x1===_0x423206||0x1==_0x423206?yield 0x1:Array['isArray'](_0x423206)?yield*function*(_0x32a83c){for(const _0x463560 of _0x32a83c)yield*g(_0x463560);}(_0x423206):'object'==typeof _0x423206?yield*M(_0x423206):'string'==typeof _0x423206?yield*O(_0x423206):'number'==typeof _0x423206&&(yield _0x423206);}function*M(_0x58e4dc){if(yield q('{'),_0x58e4dc){const _0xb311cc=Object['keys'](_0x58e4dc)['sort']();for(const _0x269940 of _0xb311cc){yield*O(_0x269940),yield q(':');const _0x39e9b4=_0x58e4dc[_0x269940];yield*g(_0x39e9b4);}}yield q('}');}function*O(_0x33929c){yield q('\x22');for(const _0x29e6e0 of _0x33929c)yield q(_0x29e6e0);yield q('\x22');}function q(_0x525388){return _0x525388['charCodeAt'](0x0);}function v(_0x5a00e2){return(_0x5a00e2*=Math['sign'](_0x5a00e2))['toString'](0x24);}const w=['initialData','context','toolbar','rootsAttributes'],W=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function D(_0x3c1ff8,_0x2bec3d,_0x49ecdf,_0x3e91d4=[]){const _0x236b90='string'==typeof _0x3c1ff8?_0x49ecdf['get'](_0x3c1ff8)['constructor']:_0x3c1ff8['prototype']['constructor'];if(_0x2bec3d['has'](_0x236b90))return _0x2bec3d['get'](_0x236b90);_0x2bec3d['set'](_0x236b90,!0x0);const _0x4f8944=[...W,..._0x3e91d4]['map'](_0x3e436c=>{if(_0x49ecdf['has'](_0x3e436c))return _0x49ecdf['get'](_0x3e436c)['constructor'];})['filter'](_0x47f100=>_0x47f100);if(_0x236b90&&_0x4f8944['includes'](_0x236b90))return _0x2bec3d['set'](_0x236b90,!0x1),!0x1;if(!_0x236b90['requires'])return _0x2bec3d['set'](_0x236b90,!0x0),!0x0;const _0x384795=_0x236b90['requires']['every'](_0x43d0de=>D(_0x43d0de,_0x2bec3d,_0x49ecdf,_0x3e91d4));return _0x2bec3d['set'](_0x236b90,_0x384795),_0x384795;}function S(_0x179405,_0x5a337d){const _0x2d7768={};for(const _0x5bfd02 of _0x179405['config']['names']())w['includes'](_0x5bfd02)||(_0x2d7768[_0x5bfd02]=_0x179405['config']['get'](_0x5bfd02));const _0x786f6d=_0x2d7768['plugins']||[],_0x32a96b=_0x179405['constructor']['builtinPlugins']||[],_0x17b7a8=_0x786f6d['length']?_0x786f6d:_0x32a96b,_0x5588aa=_0x2d7768['extraPlugins']||[];delete _0x2d7768['extraPlugins'];const _0x2b07df=_0x2d7768['removePlugins']||[];delete _0x2d7768['removePlugins'];const _0xc035ad=_0x179405['_context']['config']['get']('plugins')||[],_0x193b1f=_0x17b7a8['concat'](_0x5588aa)['concat'](_0xc035ad)['map'](_0x2c1926=>'string'==typeof _0x2c1926?_0x32a96b['find'](_0x14bd94=>_0x14bd94['pluginName']==_0x2c1926):_0x2c1926)['filter'](_0x42099e=>!_0x2b07df['includes'](_0x42099e)&&!_0x2b07df['includes'](_0x42099e['pluginName'])),_0xffb3a6=Array['from'](new Set(_0x193b1f)),_0x3256dc=new Map();return _0x2d7768['plugins']=_0xffb3a6['filter'](_0x27f8fe=>D(_0x27f8fe,_0x3256dc,_0x179405['plugins'],_0x5a337d)),_0x2d7768;}function z(_0x77e08d,_0x560c81){const _0x4f73b4=[];_0x77e08d['document']['selection']['on']('change:range',()=>{const _0x204555=function(_0x2b2119,_0x16e8cc){const _0x35d0b5=[];for(const _0x5cd510 of _0x2b2119['markers']){const _0x3e9a4d=_0x5cd510['getRange']();(_0x3e9a4d['containsPosition'](_0x16e8cc)||_0x3e9a4d['start']['isEqual'](_0x16e8cc)||_0x3e9a4d['end']['isEqual'](_0x16e8cc))&&_0x35d0b5['push'](_0x5cd510);}return _0x35d0b5;}(_0x77e08d,_0x77e08d['document']['selection']['focus']),_0x5418cb=[],_0x312d0=[],_0x114fdd=[];for(const _0x52f383 of _0x4f73b4)_0x204555['includes'](_0x52f383)||_0x5418cb['push'](_0x52f383);for(const _0x10f170 of _0x204555)_0x4f73b4['includes'](_0x10f170)||_0x312d0['push'](_0x10f170),_0x114fdd['push'](_0x10f170);(_0x5418cb['length']||_0x312d0['length'])&&_0x560c81({'left':_0x5418cb,'entered':_0x312d0}),_0x4f73b4['length']=0x0,_0x4f73b4['push'](..._0x114fdd);});}const R='Ctrl+Shift+E';function T(_0xd65f6b,_0x2d1742){const _0x1a0bc2=_0xd65f6b['element'];_0xd65f6b['keystrokes']['listenTo'](_0x1a0bc2);for(const _0x58848b of _0x2d1742)C(_0xd65f6b,_0x58848b);_0x2d1742['on']('change',(_0x336b4b,_0x315b51)=>{for(const _0x1afc2c of _0x315b51['removed'])K(_0xd65f6b,_0x1afc2c);for(const _0x56870a of Array['from'](_0x315b51['added'])['reverse']())C(_0xd65f6b,_0x56870a);}),_0xd65f6b['keystrokes']['set']('enter',(_0x2b9db0,_0x277ae5)=>{_0x1a0bc2===_0x2b9db0['target']&&(_0xd65f6b['focusCycler']['focusFirst'](),_0x277ae5());},{'filter':_0x44dbdb=>_0x44dbdb['target']===_0x1a0bc2}),_0xd65f6b['keystrokes']['set']('esc',(_0x2a35f9,_0x138033)=>{_0x1a0bc2!==_0x2a35f9['target']?_0xd65f6b['focus']():_0xd65f6b['fire']('escape'),_0x138033();}),_0xd65f6b['keystrokes']['set']('arrowdown',(_0x3498f3,_0x2cea30)=>{_0x1a0bc2===_0x3498f3['target']&&(_0xd65f6b['fire']('arrowdown'),_0x2cea30());}),_0xd65f6b['keystrokes']['set']('arrowup',(_0x507bb3,_0x1b7268)=>{_0x1a0bc2===_0x507bb3['target']&&(_0xd65f6b['fire']('arrowup'),_0x1b7268());});}function C(_0x22d8e5,_0x52c99f){_0x52c99f['isRendered']&&(_0x22d8e5['focusTracker']['add'](_0x52c99f['element']),_0x22d8e5['keystrokes']['listenTo'](_0x52c99f['element']),_0x41f762(_0x52c99f)&&function(_0x2545ec,_0xd21872){const _0x36ade1=_0x2545ec['actions'],_0x182e35=_0xd21872['actions'];for(const _0x22eada of Object['keys'](_0x36ade1))if(_0x22eada in _0x182e35&&_0x36ade1[_0x22eada]!==_0x182e35[_0x22eada])return!0x1;return!0x0;}(_0x22d8e5['focusCycler'],_0x52c99f['focusCycler'])&&_0x22d8e5['focusCycler']['chain'](_0x52c99f['focusCycler']));}function K(_0x59c05c,_0x5aa1fe){_0x59c05c['focusTracker']['remove'](_0x5aa1fe['element']),_0x59c05c['keystrokes']['stopListening'](_0x5aa1fe['element']),_0x41f762(_0x5aa1fe)&&_0x59c05c['focusCycler']['unchain'](_0x5aa1fe['focusCycler']);}export{H as AriaDescriptionView,f as ConfirmMixin,R as FOCUS_ANNOTATION_KEYSTROKE,I as LateFocusButtonView,U as LateFocusDropdownButtonView,n as Permissions,F as UserView,u as Users,Y as getAllMarkersDomElementsSorted,E as getDateTimeFormatter,A as getMarkerDomElement,j as hashObject,S 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": "44.2.0-alpha.4",
3
+ "version": "44.2.0-alpha.5",
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,14 +32,14 @@
32
32
  "type": "module",
33
33
  "main": "src/index.js",
34
34
  "dependencies": {
35
- "@ckeditor/ckeditor5-comments": "44.2.0-alpha.4",
36
- "@ckeditor/ckeditor5-core": "44.2.0-alpha.4",
37
- "@ckeditor/ckeditor5-theme-lark": "44.2.0-alpha.4",
38
- "@ckeditor/ckeditor5-track-changes": "44.2.0-alpha.4",
39
- "@ckeditor/ckeditor5-ui": "44.2.0-alpha.4",
40
- "@ckeditor/ckeditor5-utils": "44.2.0-alpha.4",
35
+ "@ckeditor/ckeditor5-comments": "44.2.0-alpha.5",
36
+ "@ckeditor/ckeditor5-core": "44.2.0-alpha.5",
37
+ "@ckeditor/ckeditor5-theme-lark": "44.2.0-alpha.5",
38
+ "@ckeditor/ckeditor5-track-changes": "44.2.0-alpha.5",
39
+ "@ckeditor/ckeditor5-ui": "44.2.0-alpha.5",
40
+ "@ckeditor/ckeditor5-utils": "44.2.0-alpha.5",
41
41
  "@types/luxon": "3.4.2",
42
- "ckeditor5": "44.2.0-alpha.4",
42
+ "ckeditor5": "44.2.0-alpha.5",
43
43
  "luxon": "3.5.0"
44
44
  },
45
45
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4ece7e,_0x1be8e1){var _0x4d4142=_0x1495,_0x813dd5=_0x4ece7e();while(!![]){try{var _0xa8c9a2=parseInt(_0x4d4142(0x1e1))/0x1+parseInt(_0x4d4142(0x1e9))/0x2+parseInt(_0x4d4142(0x1e8))/0x3+parseInt(_0x4d4142(0x1ed))/0x4*(parseInt(_0x4d4142(0x1e6))/0x5)+parseInt(_0x4d4142(0x1ec))/0x6*(parseInt(_0x4d4142(0x1e0))/0x7)+parseInt(_0x4d4142(0x1e5))/0x8*(-parseInt(_0x4d4142(0x1e4))/0x9)+-parseInt(_0x4d4142(0x1eb))/0xa;if(_0xa8c9a2===_0x1be8e1)break;else _0x813dd5['push'](_0x813dd5['shift']());}catch(_0x102ad0){_0x813dd5['push'](_0x813dd5['shift']());}}}(_0x2e28,0x29c1d));import{uid as _0x3e38d0}from'ckeditor5/src/utils.js';import{View as _0x471b8f}from'ckeditor5/src/ui.js';function _0x2e28(){var _0x4f2dae=['1721043tUTNoF','8VLpMtB','304430tVGSBo','span','395583ANeptM','382510vVniOf','ck-aria-description','5935760MxgEnv','30nUEYKq','8iCBMbd','449435wxZMFd','189927LmzQgR','ck-aria-description-','setTemplate'];_0x2e28=function(){return _0x4f2dae;};return _0x2e28();}function _0x1495(_0x550631,_0x270811){var _0x2e284b=_0x2e28();return _0x1495=function(_0x1495c3,_0x19ee2b){_0x1495c3=_0x1495c3-0x1e0;var _0x2e3803=_0x2e284b[_0x1495c3];return _0x2e3803;},_0x1495(_0x550631,_0x270811);}export default class F extends _0x471b8f{constructor(_0x3337cb,_0x49e248){var _0x29667f=_0x1495;super(_0x3337cb),this['id']=_0x29667f(0x1e2)+_0x3e38d0(),this[_0x29667f(0x1e3)]({'tag':_0x29667f(0x1e7),'attributes':{'class':['ck',_0x29667f(0x1ea)],'id':this['id']},'children':[{'text':_0x49e248}]});}}
23
+ (function(_0x5d403d,_0x5d5ff4){var _0x5233de=_0x8fb5,_0xef910d=_0x5d403d();while(!![]){try{var _0x386100=parseInt(_0x5233de(0x120))/0x1+-parseInt(_0x5233de(0x12a))/0x2+parseInt(_0x5233de(0x129))/0x3*(-parseInt(_0x5233de(0x123))/0x4)+parseInt(_0x5233de(0x125))/0x5*(-parseInt(_0x5233de(0x11e))/0x6)+parseInt(_0x5233de(0x121))/0x7*(-parseInt(_0x5233de(0x126))/0x8)+parseInt(_0x5233de(0x11f))/0x9+-parseInt(_0x5233de(0x12b))/0xa*(-parseInt(_0x5233de(0x127))/0xb);if(_0x386100===_0x5d5ff4)break;else _0xef910d['push'](_0xef910d['shift']());}catch(_0x25eed5){_0xef910d['push'](_0xef910d['shift']());}}}(_0x3b8e,0xebf00));function _0x8fb5(_0x2bede8,_0x564632){var _0x3b8ef5=_0x3b8e();return _0x8fb5=function(_0x8fb5e9,_0x2c441b){_0x8fb5e9=_0x8fb5e9-0x11e;var _0x26359d=_0x3b8ef5[_0x8fb5e9];return _0x26359d;},_0x8fb5(_0x2bede8,_0x564632);}function _0x3b8e(){var _0x52bcb7=['850juidQv','setTemplate','8088840VZMfBS','8734527owBrDi','1803369MxCGWK','2527xmDuMy','span','6856lkSsIM','ck-aria-description-','5WROZAa','39176iLxuxI','333685YlNDxm','ck-aria-description','615mWdabZ','1837240WYfLBR'];_0x3b8e=function(){return _0x52bcb7;};return _0x3b8e();}import{uid as _0x345a55}from'ckeditor5/src/utils.js';import{View as _0x561816}from'ckeditor5/src/ui.js';export default class H extends _0x561816{constructor(_0x29d742,_0x3678c7){var _0x163bcc=_0x8fb5;super(_0x29d742),this['id']=_0x163bcc(0x124)+_0x345a55(),this[_0x163bcc(0x12c)]({'tag':_0x163bcc(0x122),'attributes':{'class':['ck',_0x163bcc(0x128)],'id':this['id']},'children':[{'text':_0x3678c7}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2fa426,_0x1edbb8){const _0x19c03b=_0x26e0,_0x4d716e=_0x2fa426();while(!![]){try{const _0x29410b=parseInt(_0x19c03b(0x15b))/0x1*(parseInt(_0x19c03b(0x150))/0x2)+parseInt(_0x19c03b(0x144))/0x3*(-parseInt(_0x19c03b(0x14d))/0x4)+parseInt(_0x19c03b(0x151))/0x5*(-parseInt(_0x19c03b(0x147))/0x6)+parseInt(_0x19c03b(0x148))/0x7+-parseInt(_0x19c03b(0x14f))/0x8*(parseInt(_0x19c03b(0x159))/0x9)+parseInt(_0x19c03b(0x15c))/0xa*(-parseInt(_0x19c03b(0x14c))/0xb)+-parseInt(_0x19c03b(0x141))/0xc*(-parseInt(_0x19c03b(0x149))/0xd);if(_0x29410b===_0x1edbb8)break;else _0x4d716e['push'](_0x4d716e['shift']());}catch(_0xd86a4b){_0x4d716e['push'](_0x4d716e['shift']());}}}(_0x3ce5,0x66aa8));import{View as _0x5b8a96,IconView as _0x965280}from'ckeditor5/src/ui.js';function _0x26e0(_0x36d3f3,_0x43586e){const _0x3ce511=_0x3ce5();return _0x26e0=function(_0x26e02d,_0x2ea514){_0x26e02d=_0x26e02d-0x13f;let _0x4cf0a4=_0x3ce511[_0x26e02d];return _0x4cf0a4;},_0x26e0(_0x36d3f3,_0x43586e);}import _0x4d2362 from'../../../theme/icons/notification.svg';function _0x3ce5(){const _0x3e6392=['url(\x27','ck-user','ck-user__anonymous','ck-user__img','ck-user__notification','119835KFFyBM','ck-user__icon','2FLTKbS','2362610FuRcjO','ck\x20ck-user__name','div','ck-user__avatar','push','initials','ck\x20ck-user__name\x20ck-user__name--hidden','355836dEyaOe','name','notificationView','198UTDwSj','extendTemplate','content','132KcBEcY','156653NwePva','949qBLOFG','isMe','ck-user_me','33lhPzCd','45316VyrHlg','isAnonymous','88AzXShr','464798YZkxTG','142810qvEjqd','setTemplate','avatar'];_0x3ce5=function(){return _0x3e6392;};return _0x3ce5();}import'../../../theme/users.css';export default class H extends _0x5b8a96{constructor(_0x5b96a0,_0x39da22,_0x5cc1ec){const _0x48b677=_0x26e0;super(_0x5b96a0),this[_0x48b677(0x142)]=_0x39da22[_0x48b677(0x142)],this[_0x48b677(0x143)]=null;const _0x572424=['ck',_0x48b677(0x155)],_0x9cb123=['ck',_0x48b677(0x157)];if(_0x39da22[_0x48b677(0x14e)]&&_0x9cb123[_0x48b677(0x160)](_0x48b677(0x156)),!_0x39da22[_0x48b677(0x14e)]&&_0x39da22[_0x48b677(0x14a)]&&_0x572424[_0x48b677(0x160)](_0x48b677(0x14b)),_0x39da22[_0x48b677(0x153)]&&_0x9cb123[_0x48b677(0x160)](_0x48b677(0x15f)),_0x5cc1ec){const _0x256150=new _0x965280();_0x256150[_0x48b677(0x145)]({'attributes':{'class':[_0x48b677(0x15a)]}}),_0x256150[_0x48b677(0x146)]=_0x4d2362,this[_0x48b677(0x143)]={'tag':_0x48b677(0x15e),'attributes':{'class':['ck',_0x48b677(0x158)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x5cc1ec},'children':[_0x256150]};}const _0x55cf07=[{'tag':_0x48b677(0x15e),'attributes':{'class':_0x9cb123,'style':{'background-image':_0x39da22[_0x48b677(0x153)]?_0x48b677(0x154)+_0x39da22[_0x48b677(0x153)]+'\x27)':''}}},{'tag':_0x48b677(0x15e),'attributes':{'class':_0x39da22[_0x48b677(0x153)]?_0x48b677(0x140):_0x48b677(0x15d),'aria-label':_0x39da22[_0x48b677(0x142)]},'children':[{'text':_0x39da22[_0x48b677(0x13f)]}]}];this[_0x48b677(0x143)]&&_0x55cf07[_0x48b677(0x160)](this[_0x48b677(0x143)]),this[_0x48b677(0x152)]({'tag':_0x48b677(0x15e),'attributes':{'class':_0x572424,'data-user-id':_0x39da22['id']},'children':_0x55cf07});}}
23
+ (function(_0x4b0649,_0x3c0757){const _0x403ec6=_0x2035,_0x351121=_0x4b0649();while(!![]){try{const _0x115513=-parseInt(_0x403ec6(0xfc))/0x1+parseInt(_0x403ec6(0x105))/0x2+parseInt(_0x403ec6(0x10c))/0x3*(parseInt(_0x403ec6(0xfe))/0x4)+-parseInt(_0x403ec6(0x10b))/0x5*(-parseInt(_0x403ec6(0xf1))/0x6)+-parseInt(_0x403ec6(0xef))/0x7+-parseInt(_0x403ec6(0xff))/0x8*(-parseInt(_0x403ec6(0xf4))/0x9)+-parseInt(_0x403ec6(0xf7))/0xa;if(_0x115513===_0x3c0757)break;else _0x351121['push'](_0x351121['shift']());}catch(_0xda15fd){_0x351121['push'](_0x351121['shift']());}}}(_0x35f9,0xd84c7));import{View as _0x1c9d8a,IconView as _0x48a7a5}from'ckeditor5/src/ui.js';function _0x2035(_0x199446,_0x1af5e9){const _0x35f9cc=_0x35f9();return _0x2035=function(_0x2035a4,_0x40a309){_0x2035a4=_0x2035a4-0xef;let _0x6b0f48=_0x35f9cc[_0x2035a4];return _0x6b0f48;},_0x2035(_0x199446,_0x1af5e9);}import _0x3868e9 from'../../../theme/icons/notification.svg';function _0x35f9(){const _0x3839c6=['1590OKLaDX','isAnonymous','ck-user__avatar','99ZKxxpu','setTemplate','div','10525530EYEvjC','ck-user__img','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__anonymous','avatar','1770921XbzQut','notificationView','4RHGUEi','1163048hjDqqh','initials','name','ck-user__icon','url(\x27','extendTemplate','2178990KJUDMq','push','content','isMe','ck-user__notification','ck-user_me','6025QsbwDE','5266689PHHdYw','ck\x20ck-user__name','7378987fKviQZ','ck-user'];_0x35f9=function(){return _0x3839c6;};return _0x35f9();}import'../../../theme/users.css';export default class F extends _0x1c9d8a{constructor(_0x410ec3,_0x340ec4,_0xc7f1d){const _0x4dfa21=_0x2035;super(_0x410ec3),this[_0x4dfa21(0x101)]=_0x340ec4[_0x4dfa21(0x101)],this[_0x4dfa21(0xfd)]=null;const _0x52e11d=['ck',_0x4dfa21(0xf0)],_0x4a9d11=['ck',_0x4dfa21(0xf8)];if(_0x340ec4[_0x4dfa21(0xf2)]&&_0x4a9d11[_0x4dfa21(0x106)](_0x4dfa21(0xfa)),!_0x340ec4[_0x4dfa21(0xf2)]&&_0x340ec4[_0x4dfa21(0x108)]&&_0x52e11d[_0x4dfa21(0x106)](_0x4dfa21(0x10a)),_0x340ec4[_0x4dfa21(0xfb)]&&_0x4a9d11[_0x4dfa21(0x106)](_0x4dfa21(0xf3)),_0xc7f1d){const _0x20172d=new _0x48a7a5();_0x20172d[_0x4dfa21(0x104)]({'attributes':{'class':[_0x4dfa21(0x102)]}}),_0x20172d[_0x4dfa21(0x107)]=_0x3868e9,this[_0x4dfa21(0xfd)]={'tag':_0x4dfa21(0xf6),'attributes':{'class':['ck',_0x4dfa21(0x109)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0xc7f1d},'children':[_0x20172d]};}const _0x48c15b=[{'tag':_0x4dfa21(0xf6),'attributes':{'class':_0x4a9d11,'style':{'background-image':_0x340ec4[_0x4dfa21(0xfb)]?_0x4dfa21(0x103)+_0x340ec4[_0x4dfa21(0xfb)]+'\x27)':''}}},{'tag':_0x4dfa21(0xf6),'attributes':{'class':_0x340ec4[_0x4dfa21(0xfb)]?_0x4dfa21(0xf9):_0x4dfa21(0x10d),'aria-label':_0x340ec4[_0x4dfa21(0x101)]},'children':[{'text':_0x340ec4[_0x4dfa21(0x100)]}]}];this[_0x4dfa21(0xfd)]&&_0x48c15b[_0x4dfa21(0x106)](this[_0x4dfa21(0xfd)]),this[_0x4dfa21(0xf5)]({'tag':_0x4dfa21(0xf6),'attributes':{'class':_0x52e11d,'data-user-id':_0x340ec4['id']},'children':_0x48c15b});}}