@ckeditor/ckeditor5-collaboration-core 44.3.0-alpha.6 → 44.3.0-alpha.7

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 _0x46c7ca,Editor as _0x3a97b1,icons as _0x3b98ca}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x17b460,Collection as _0x3db024,uid as _0x3dafe2,first as _0x35623c,FocusTracker as _0x11a438,KeystrokeHandler as _0x5f5140}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x27beb5,IconView as _0x4c83b7,ButtonView as _0x5d0405,DropdownButtonView as _0x2eb4ad,FocusCycler as _0x501809,isViewWithFocusCycler as _0x2baf6d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x42bf37}from'luxon';class n extends _0x46c7ca{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x5bac8a,_0x3a79fa){let _0xd2fdbd;if(_0x3a79fa||(_0x3a79fa=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x3a79fa?_0xd2fdbd=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0xd2fdbd=this['context']['editors']['find'](_0x19f750=>_0x19f750['config']['get']('collaboration.channelId')==_0x3a79fa)),!_0xd2fdbd)throw new _0x17b460('permissions-set-permissions-invalid-channel-id',null);const _0x24a6f4=_0xd2fdbd['plugins'],_0x101d0e=_0x24a6f4['has']('CommentsRepository')?_0x24a6f4['get']('CommentsRepository'):void 0x0,_0x3be6fa=_0x24a6f4['has']('CommentsOnly')&&_0x24a6f4['get']('CommentsOnly'),_0x3892e2=_0x5bac8a['includes']('document:write'),_0xd91bf0=_0x5bac8a['includes']('comment:modify_all'),_0x3ee191=_0x5bac8a['includes']('comment:admin'),_0x143d63=_0x5bac8a['includes']('comment:write'),_0x27e135=_0x143d63||_0x3ee191,_0x5724d5=_0x27e135||_0xd91bf0,_0x592000=_0x3892e2||_0x27e135;(_0x3be6fa&&(_0x3be6fa['isEnabled']=!_0x3892e2&&_0x5724d5),_0xd2fdbd instanceof _0x3a97b1)&&(!(_0x3892e2||_0x5724d5&&_0x101d0e)?_0xd2fdbd['enableReadOnlyMode']('no-permissions'):_0xd2fdbd['disableReadOnlyMode']('no-permissions'));if(_0x101d0e){_0x101d0e['setPermissions']({'admin':_0x3ee191,'modifyAll':_0xd91bf0,'write':_0x143d63,'resolve':_0x592000},_0x3a79fa);const _0x4ffda1=_0xd2fdbd instanceof _0x3a97b1&&_0xd2fdbd['commands']['get']('addCommentThread');_0x4ffda1&&(_0x27e135?_0x4ffda1['clearForceDisabled']('noPermissions'):_0x4ffda1['forceDisabled']('noPermissions'));}}}function o(_0x43b836,_0x4b7330){const t=_0x43b836['t'];switch(_0x4b7330){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 _0x46c7ca{['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(_0x3b2e2d){super(_0x3b2e2d),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x3db024(),this['_locale']=_0x3b2e2d['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:_0x1ef4d7,name:_0x26a662,..._0x213a14}){if(!_0x1ef4d7||'string'!=typeof _0x1ef4d7)throw new _0x17b460('users-add-invalid-id');if(this['users']['has'](_0x1ef4d7))throw new _0x17b460('users-add-duplicated-id',null,{'id':_0x1ef4d7});const _0x1e2db9=this['context']['config']['get']('users.getInitialsCallback'),_0x1f9d89={..._0x213a14,'id':_0x1ef4d7,'name':h(this['_locale'],_0x26a662),'color':this['_getNextColor']()};_0x1f9d89['name']=h(this['_locale'],_0x1f9d89['name']);const _0xd25de8=new P(_0x1f9d89,_0x1e2db9);return this['users']['add'](_0xd25de8),_0xd25de8;}['getUser'](_0x4da091){return this['users']['get'](_0x4da091);}['useAnonymousUser'](){const _0x4d193e=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x4d193e);}['defineMe'](_0x28ae92){if(this['_myId'])throw new _0x17b460('users-me-already-defined',null);const _0x2c47c0=this['getUser'](_0x28ae92);if(!_0x2c47c0)throw new _0x17b460('users-me-missing-user',null);this['_myId']=_0x28ae92,_0x2c47c0['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x6c9f26=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x6c9f26&&(this['_lastColor']=0x0),new c(this['_lastColor']++);}['_addAnonymousUser'](){const _0x5a321f=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x5a321f,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x1bd88a,_0x5a8d1d){this['id']=_0x1bd88a['id'],this['color']=_0x1bd88a['color'],this['name']=_0x1bd88a['name'],this['initials']=_0x5a8d1d?_0x5a8d1d(this['name']):this['_computeInitials'](),this['avatar']=_0x1bd88a['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x54e95c=this['name']['split']('\x20')['filter'](_0x550ae0=>/^[\p{Letter}]/u['test'](_0x550ae0));return 0x1===_0x54e95c['length']?this['_getInitial'](_0x54e95c[0x0]):0x0===_0x54e95c['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x54e95c[0x0])+this['_getInitial'](_0x54e95c[_0x54e95c['length']-0x1]);}['_getInitial'](_0x3bfd1f){return String['fromCodePoint'](_0x3bfd1f['codePointAt'](0x0))['toUpperCase']();}}function h(_0x3070b6,_0x227251=''){return''==(_0x227251=_0x227251['trim']())?o(_0x3070b6,'Anonymous'):_0x227251;}class c{['_id'];constructor(_0x2bc0aa){this['_id']=_0x2bc0aa;}['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 _0x27beb5{['name'];['notificationView'];constructor(_0x32ae99,_0x41ab23,_0x1f80d6){super(_0x32ae99),this['name']=_0x41ab23['name'],this['notificationView']=null;const _0x4ef229=['ck','ck-user'],_0x1fcc2c=['ck','ck-user__img'];if(_0x41ab23['isAnonymous']&&_0x1fcc2c['push']('ck-user__anonymous'),!_0x41ab23['isAnonymous']&&_0x41ab23['isMe']&&_0x4ef229['push']('ck-user_me'),_0x41ab23['avatar']&&_0x1fcc2c['push']('ck-user__avatar'),_0x1f80d6){const _0x24364a=new _0x4c83b7();_0x24364a['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x24364a['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':_0x1f80d6},'children':[_0x24364a]};}const _0x26e167=[{'tag':'div','attributes':{'class':_0x1fcc2c,'style':{'background-image':_0x41ab23['avatar']?'url(\x27'+_0x41ab23['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x41ab23['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x41ab23['name']},'children':[{'text':_0x41ab23['initials']}]}];this['notificationView']&&_0x26e167['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x4ef229,'data-user-id':_0x41ab23['id']},'children':_0x26e167});}}class F extends _0x27beb5{['id'];constructor(_0x13c65b,_0x5d0054){super(_0x13c65b),this['id']='ck-aria-description-'+_0x3dafe2(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x5d0054}]});}}class I extends _0x5d0405{['render'](){super['render'](),V(this);}}class U extends _0x2eb4ad{['render'](){super['render'](),V(this);}}function V(_0x338b5d){_0x338b5d['listenTo'](_0x338b5d['element'],'mousedown',(_0x5f2abc,_0x56cf1d)=>{_0x56cf1d['stopPropagation'](),_0x56cf1d['preventDefault']();}),_0x338b5d['listenTo'](_0x338b5d['element'],'mouseup',()=>{_0x338b5d['element']['focus']();});}function E(_0x7e716f={}){if(void 0x0!==_0x7e716f['dateTimeFormat']&&'function'!=typeof _0x7e716f['dateTimeFormat'])throw new _0x17b460('invalid-date-time-format');return _0x25384c=>{const _0x56a64a='string'==typeof _0x25384c?_0x42bf37['fromISO'](_0x25384c):_0x42bf37['fromJSDate'](_0x25384c),_0x308f0e=_0x42bf37['now'](),_0x2e7053=Math['floor'](_0x308f0e['diff'](_0x56a64a,'days')['days']);return _0x7e716f['dateTimeFormat']?_0x7e716f['dateTimeFormat'](_0x56a64a['toJSDate']()):0x0===_0x2e7053?_0x56a64a['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x2e7053?_0x56a64a['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x2e7053<0x7?_0x56a64a['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x56a64a['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x59de09,_0x5340f5){const _0x2c38c8=_0x59de09['mapper']['markerNameToElements'](_0x5340f5['name']);if(!_0x2c38c8)return null;const _0x2e613f=_0x35623c(_0x2c38c8['values']());return _0x59de09['view']['domConverter']['mapViewToDom'](_0x2e613f)||null;}function Y(_0x16ac59,_0x2f5260){if(0x0===_0x2f5260['length'])return null;const _0xcc3186=[],_0x44f7c2=_0x16ac59['view']['domConverter'];for(const _0x4a2cc4 of _0x2f5260){const _0xe4d7c7=_0x16ac59['mapper']['markerNameToElements'](_0x4a2cc4['name']);if(!_0xe4d7c7)continue;const _0x3592c4=Array['from'](_0xe4d7c7)['map'](_0x273b65=>_0x44f7c2['mapViewToDom'](_0x273b65))['filter'](_0x224c71=>!!_0x224c71);_0xcc3186['push'](..._0x3592c4);}if(0x0===_0xcc3186['length'])return null;const _0x122ccf=[];for(const _0x395eea of _0xcc3186){const _0x4e4a0d=_0x395eea['getClientRects']()['item'](0x0);_0x4e4a0d&&_0x122ccf['push']({'x':_0x4e4a0d['x'],'y':_0x4e4a0d['y'],'domElement':_0x395eea});}return 0x0===_0x122ccf['length']?null:(_0x122ccf['sort']((_0x52541c,_0x261449)=>_0x52541c['y']-_0x261449['y']||_0x52541c['x']-_0x261449['x']),_0x122ccf['map'](_0x3a6736=>_0x3a6736['domElement']));}function Z(_0x527062,{limit:_0xa2b245,suffix:_0x5c7faa='...'}){const _0x2d8f57=[];let _0x459d7b=0x0;const _0x5d2416=_0x527062['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x70faa4=0x0;_0x70faa4<_0x5d2416['length'];_0x70faa4++){let _0x3e466d=_0x5d2416[_0x70faa4];const _0x581ce5=$(_0x3e466d);if(_0x3e466d['startsWith']('<')){if(_0x459d7b>=_0xa2b245){const _0x35e188=_0x3e466d['match'](/[a-zA-Z]+/);if(!_0x35e188){_0x5d2416[_0x70faa4]='';continue;}const _0x42285d=_0x35e188[0x0];_0x3e466d['startsWith']('</')?(_0x2d8f57['length']&&(_0x3e466d=''),_0x2d8f57['pop']()):(_0x2d8f57['push'](_0x42285d),_0x3e466d='');}}else{if(_0x459d7b>=_0xa2b245)_0x3e466d='';else{if(_0x459d7b+_0x581ce5['length']>=_0xa2b245){let _0x184ae5=_0xa2b245-_0x459d7b;if('\x20'===_0x581ce5[_0x184ae5-0x1])_0x184ae5--;else{const _0x5218c7=_0x581ce5['slice'](_0x184ae5)['indexOf']('\x20');-0x1!==_0x5218c7?_0x184ae5+=_0x5218c7:_0x184ae5=_0x3e466d['length'];}_0x3e466d=_0x581ce5['slice'](0x0,_0x184ae5)['join']('')+_0x5c7faa,_0x459d7b=_0xa2b245;}else _0x459d7b+=_0x581ce5['length'];}}_0x5d2416[_0x70faa4]=_0x3e466d;}return _0x5d2416['join']('\x0a')['replace'](/\n/g,'');}function $(_0x44a86a){const _0x25c6de=[];for(let _0x37d28f=0x0;_0x37d28f<_0x44a86a['length'];_0x37d28f++){const _0x121130=_0x44a86a['substring'](_0x37d28f)['match'](/^&[a-z0-9#]+;/);if(_0x121130){const _0x50446a=_0x121130[0x0];_0x25c6de['push'](_0x50446a),_0x37d28f+=_0x50446a['length']-0x1;}else _0x25c6de['push'](_0x44a86a[_0x37d28f]);}return _0x25c6de;}class m extends _0x27beb5{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x1ea40f){super(_0x1ea40f);const _0x362b69=this['bindTemplate'];this['set']('message',o(_0x1ea40f,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x1ea40f,o(_0x1ea40f,'Yes'),_0x3b98ca['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x1ea40f,o(_0x1ea40f,'No'),_0x3b98ca['cancel'],'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x11a438(),this['keystrokes']=new _0x5f5140(),this['focusCycler']=new _0x501809({'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':_0x362b69['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'](_0x5c2cf6,_0x5650f6,_0x15f387,_0x498719){const _0x2f3b36=new _0x5d0405(_0x5c2cf6);return _0x2f3b36['label']=_0x5650f6,_0x2f3b36['icon']=_0x15f387,_0x2f3b36['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x498719}}),_0x2f3b36['on']('execute',()=>this['fire'](_0x498719)),_0x2f3b36;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x302d84=>{this['keystrokes']['listenTo'](_0x302d84['element']),this['focusTracker']['add'](_0x302d84['element']);}),this['keystrokes']['set']('esc',(_0x41541c,_0x383982)=>{this['fire']('cancel'),_0x383982();});}}function f(_0x562cdc){return class extends _0x562cdc{['showConfirm'](_0x200e39,_0x26fc97){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x200e39,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x26fc97['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x6203b6=>this['confirmView']['on']('submit',_0x6203b6));}['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(_0x593e5a){let _0x4200c9=0x0,_0xa717b4=0x0;for(const _0x2507d5 of M(_0x593e5a))_0x4200c9=(_0x4200c9<<0x5)-_0x4200c9+_0x2507d5,_0x4200c9|=0x0,[_0x4200c9,_0xa717b4]=[_0xa717b4,_0x4200c9];return v(_0x4200c9)+v(_0xa717b4);}function*g(_0x14b666){null==_0x14b666||null==_0x14b666?yield 0x12b9b0a1:0x0===_0x14b666||!0x1===_0x14b666?yield 0x0:0x1===_0x14b666||0x1==_0x14b666?yield 0x1:Array['isArray'](_0x14b666)?yield*function*(_0x28c77b){for(const _0xe2ec0b of _0x28c77b)yield*g(_0xe2ec0b);}(_0x14b666):'object'==typeof _0x14b666?yield*M(_0x14b666):'string'==typeof _0x14b666?yield*O(_0x14b666):'number'==typeof _0x14b666&&(yield _0x14b666);}function*M(_0x5149f9){if(yield q('{'),_0x5149f9){const _0x5b7a68=Object['keys'](_0x5149f9)['sort']();for(const _0xe57204 of _0x5b7a68){yield*O(_0xe57204),yield q(':');const _0x52af18=_0x5149f9[_0xe57204];yield*g(_0x52af18);}}yield q('}');}function*O(_0x4213d2){yield q('\x22');for(const _0x4e7e92 of _0x4213d2)yield q(_0x4e7e92);yield q('\x22');}function q(_0x11cedf){return _0x11cedf['charCodeAt'](0x0);}function v(_0x38bcd5){return(_0x38bcd5*=Math['sign'](_0x38bcd5))['toString'](0x24);}const w=['initialData','context','toolbar','rootsAttributes'],W=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function D(_0xad62c2,_0x2a49d2,_0x58f2fa,_0x4cca63=[]){const _0x5890cd='string'==typeof _0xad62c2?_0x58f2fa['get'](_0xad62c2)['constructor']:_0xad62c2['prototype']['constructor'];if(_0x2a49d2['has'](_0x5890cd))return _0x2a49d2['get'](_0x5890cd);_0x2a49d2['set'](_0x5890cd,!0x0);const _0x424d52=[...W,..._0x4cca63]['map'](_0x3f65e2=>{if(_0x58f2fa['has'](_0x3f65e2))return _0x58f2fa['get'](_0x3f65e2)['constructor'];})['filter'](_0x194285=>_0x194285);if(_0x5890cd&&_0x424d52['includes'](_0x5890cd))return _0x2a49d2['set'](_0x5890cd,!0x1),!0x1;if(!_0x5890cd['requires'])return _0x2a49d2['set'](_0x5890cd,!0x0),!0x0;const _0x28c767=_0x5890cd['requires']['every'](_0x56ae22=>D(_0x56ae22,_0x2a49d2,_0x58f2fa,_0x4cca63));return _0x2a49d2['set'](_0x5890cd,_0x28c767),_0x28c767;}function S(_0x3826b6,_0x22e256){const _0x2e308b={};for(const _0x3d7b12 of _0x3826b6['config']['names']())w['includes'](_0x3d7b12)||(_0x2e308b[_0x3d7b12]=_0x3826b6['config']['get'](_0x3d7b12));const _0x12cde4=_0x2e308b['plugins']||[],_0x14ee33=_0x3826b6['constructor']['builtinPlugins']||[],_0x11df65=_0x12cde4['length']?_0x12cde4:_0x14ee33,_0x4ba5ef=_0x2e308b['extraPlugins']||[];delete _0x2e308b['extraPlugins'];const _0x84bfc9=_0x2e308b['removePlugins']||[];delete _0x2e308b['removePlugins'];const _0x2e2cb4=_0x3826b6['_context']['config']['get']('plugins')||[],_0x5809ae=_0x11df65['concat'](_0x4ba5ef)['concat'](_0x2e2cb4)['map'](_0x1ee522=>'string'==typeof _0x1ee522?_0x14ee33['find'](_0x561253=>_0x561253['pluginName']==_0x1ee522):_0x1ee522)['filter'](_0x3abb45=>!_0x84bfc9['includes'](_0x3abb45)&&!_0x84bfc9['includes'](_0x3abb45['pluginName'])),_0x4d2569=Array['from'](new Set(_0x5809ae)),_0x24c715=new Map();return _0x2e308b['plugins']=_0x4d2569['filter'](_0x26dec4=>D(_0x26dec4,_0x24c715,_0x3826b6['plugins'],_0x22e256)),_0x2e308b;}function z(_0xabbb81,_0x2e65c6){const _0x4ddbf5=[];_0xabbb81['document']['selection']['on']('change:range',()=>{const _0x165cc1=function(_0x1b1c06,_0x3988b7){const _0x5100f4=[];for(const _0x39d053 of _0x1b1c06['markers']){const _0x127941=_0x39d053['getRange']();(_0x127941['containsPosition'](_0x3988b7)||_0x127941['start']['isEqual'](_0x3988b7)||_0x127941['end']['isEqual'](_0x3988b7))&&_0x5100f4['push'](_0x39d053);}return _0x5100f4;}(_0xabbb81,_0xabbb81['document']['selection']['focus']),_0x17d384=[],_0x102905=[],_0x281b6b=[];for(const _0x14cea9 of _0x4ddbf5)_0x165cc1['includes'](_0x14cea9)||_0x17d384['push'](_0x14cea9);for(const _0x22ee69 of _0x165cc1)_0x4ddbf5['includes'](_0x22ee69)||_0x102905['push'](_0x22ee69),_0x281b6b['push'](_0x22ee69);(_0x17d384['length']||_0x102905['length'])&&_0x2e65c6({'left':_0x17d384,'entered':_0x102905}),_0x4ddbf5['length']=0x0,_0x4ddbf5['push'](..._0x281b6b);});}const R='Ctrl+Shift+E';function T(_0x3a6bc9,_0x3cc0f9){const _0x4d6553=_0x3a6bc9['element'];_0x3a6bc9['keystrokes']['listenTo'](_0x4d6553);for(const _0x108352 of _0x3cc0f9)C(_0x3a6bc9,_0x108352);_0x3cc0f9['on']('change',(_0x3bcff3,_0x2113fb)=>{for(const _0x5ee3f0 of _0x2113fb['removed'])K(_0x3a6bc9,_0x5ee3f0);for(const _0x3e8630 of Array['from'](_0x2113fb['added'])['reverse']())C(_0x3a6bc9,_0x3e8630);}),_0x3a6bc9['keystrokes']['set']('enter',(_0x564862,_0x416970)=>{_0x4d6553===_0x564862['target']&&(_0x3a6bc9['focusCycler']['focusFirst'](),_0x416970());},{'filter':_0xe95eaa=>_0xe95eaa['target']===_0x4d6553}),_0x3a6bc9['keystrokes']['set']('esc',(_0x5338a9,_0x5b5150)=>{_0x4d6553!==_0x5338a9['target']?_0x3a6bc9['focus']():_0x3a6bc9['fire']('escape'),_0x5b5150();}),_0x3a6bc9['keystrokes']['set']('arrowdown',(_0x5a11a5,_0x2389cd)=>{_0x4d6553===_0x5a11a5['target']&&(_0x3a6bc9['fire']('arrowdown'),_0x2389cd());}),_0x3a6bc9['keystrokes']['set']('arrowup',(_0xe1c213,_0x5aee01)=>{_0x4d6553===_0xe1c213['target']&&(_0x3a6bc9['fire']('arrowup'),_0x5aee01());});}function C(_0x4c112c,_0x49d051){_0x49d051['isRendered']&&(_0x4c112c['focusTracker']['add'](_0x49d051['element']),_0x4c112c['keystrokes']['listenTo'](_0x49d051['element']),_0x2baf6d(_0x49d051)&&function(_0x552cc5,_0x4ac3dc){const _0x5aefdd=_0x552cc5['actions'],_0x28926c=_0x4ac3dc['actions'];for(const _0x243c92 of Object['keys'](_0x5aefdd))if(_0x243c92 in _0x28926c&&_0x5aefdd[_0x243c92]!==_0x28926c[_0x243c92])return!0x1;return!0x0;}(_0x4c112c['focusCycler'],_0x49d051['focusCycler'])&&_0x4c112c['focusCycler']['chain'](_0x49d051['focusCycler']));}function K(_0xa06b5e,_0x3f63f3){_0xa06b5e['focusTracker']['remove'](_0x3f63f3['element']),_0xa06b5e['keystrokes']['stopListening'](_0x3f63f3['element']),_0x2baf6d(_0x3f63f3)&&_0xa06b5e['focusCycler']['unchain'](_0x3f63f3['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 _0x4bc26e,Editor as _0x320b29,icons as _0x378922}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x20a85f,Collection as _0x3fe138,uid as _0x4e9e47,first as _0x2b2abe,FocusTracker as _0x10b050,KeystrokeHandler as _0x2a28d3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{View as _0x35b239,IconView as _0x17b009,ButtonView as _0x59d78c,DropdownButtonView as _0x5d224e,FocusCycler as _0x3a02f4,isViewWithFocusCycler as _0x2019ea}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x14678c}from'luxon';class n extends _0x4bc26e{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x1c6fa1,_0x409ffb){let _0x1e2a83;if(_0x409ffb||(_0x409ffb=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x409ffb?_0x1e2a83=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x1e2a83=this['context']['editors']['find'](_0x90af3=>_0x90af3['config']['get']('collaboration.channelId')==_0x409ffb)),!_0x1e2a83)throw new _0x20a85f('permissions-set-permissions-invalid-channel-id',null);const _0xd92a05=_0x1e2a83['plugins'],_0x191766=_0xd92a05['has']('CommentsRepository')?_0xd92a05['get']('CommentsRepository'):void 0x0,_0x27edb2=_0xd92a05['has']('CommentsOnly')&&_0xd92a05['get']('CommentsOnly'),_0x1af352=_0x1c6fa1['includes']('document:write'),_0x5cf46f=_0x1c6fa1['includes']('comment:modify_all'),_0x1379af=_0x1c6fa1['includes']('comment:admin'),_0x24ede2=_0x1c6fa1['includes']('comment:write'),_0x4b7750=_0x24ede2||_0x1379af,_0x55c840=_0x4b7750||_0x5cf46f,_0x44f522=_0x1af352||_0x4b7750;(_0x27edb2&&(_0x27edb2['isEnabled']=!_0x1af352&&_0x55c840),_0x1e2a83 instanceof _0x320b29)&&(!(_0x1af352||_0x55c840&&_0x191766)?_0x1e2a83['enableReadOnlyMode']('no-permissions'):_0x1e2a83['disableReadOnlyMode']('no-permissions'));if(_0x191766){_0x191766['setPermissions']({'admin':_0x1379af,'modifyAll':_0x5cf46f,'write':_0x24ede2,'resolve':_0x44f522},_0x409ffb);const _0x1a073e=_0x1e2a83 instanceof _0x320b29&&_0x1e2a83['commands']['get']('addCommentThread');_0x1a073e&&(_0x4b7750?_0x1a073e['clearForceDisabled']('noPermissions'):_0x1a073e['forceDisabled']('noPermissions'));}}}function o(_0x182618,_0x115315){const t=_0x182618['t'];switch(_0x115315){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 _0x4bc26e{['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(_0x45d765){super(_0x45d765),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new _0x3fe138(),this['_locale']=_0x45d765['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:_0x260c8e,name:_0x550298,..._0x29e79a}){if(!_0x260c8e||'string'!=typeof _0x260c8e)throw new _0x20a85f('users-add-invalid-id');if(this['users']['has'](_0x260c8e))throw new _0x20a85f('users-add-duplicated-id',null,{'id':_0x260c8e});const _0x1fdcb9=this['context']['config']['get']('users.getInitialsCallback'),_0x190c52={..._0x29e79a,'id':_0x260c8e,'name':h(this['_locale'],_0x550298),'color':this['_getNextColor']()};_0x190c52['name']=h(this['_locale'],_0x190c52['name']);const _0x30d19a=new P(_0x190c52,_0x1fdcb9);return this['users']['add'](_0x30d19a),_0x30d19a;}['getUser'](_0x1121ed){return this['users']['get'](_0x1121ed);}['useAnonymousUser'](){const _0x4a497e=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x4a497e);}['defineMe'](_0x286c79){if(this['_myId'])throw new _0x20a85f('users-me-already-defined',null);const _0x12ae8a=this['getUser'](_0x286c79);if(!_0x12ae8a)throw new _0x20a85f('users-me-missing-user',null);this['_myId']=_0x286c79,_0x12ae8a['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0xd0b807=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0xd0b807&&(this['_lastColor']=0x0),new c(this['_lastColor']++);}['_addAnonymousUser'](){const _0xe9ec3f=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0xe9ec3f,'name':o(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}class P{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x337d84,_0x447b8e){this['id']=_0x337d84['id'],this['color']=_0x337d84['color'],this['name']=_0x337d84['name'],this['initials']=_0x447b8e?_0x447b8e(this['name']):this['_computeInitials'](),this['avatar']=_0x337d84['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x382c8b=this['name']['split']('\x20')['filter'](_0x3df988=>/^[\p{Letter}]/u['test'](_0x3df988));return 0x1===_0x382c8b['length']?this['_getInitial'](_0x382c8b[0x0]):0x0===_0x382c8b['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x382c8b[0x0])+this['_getInitial'](_0x382c8b[_0x382c8b['length']-0x1]);}['_getInitial'](_0x5b75f7){return String['fromCodePoint'](_0x5b75f7['codePointAt'](0x0))['toUpperCase']();}}function h(_0x32bfc4,_0x1459c1=''){return''==(_0x1459c1=_0x1459c1['trim']())?o(_0x32bfc4,'Anonymous'):_0x1459c1;}class c{['_id'];constructor(_0x2d2e3c){this['_id']=_0x2d2e3c;}['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 _0x35b239{['name'];['notificationView'];constructor(_0x1297f9,_0x5abf6a,_0x518a49){super(_0x1297f9),this['name']=_0x5abf6a['name'],this['notificationView']=null;const _0x4028f1=['ck','ck-user'],_0xcf8404=['ck','ck-user__img'];if(_0x5abf6a['isAnonymous']&&_0xcf8404['push']('ck-user__anonymous'),!_0x5abf6a['isAnonymous']&&_0x5abf6a['isMe']&&_0x4028f1['push']('ck-user_me'),_0x5abf6a['avatar']&&_0xcf8404['push']('ck-user__avatar'),_0x518a49){const _0x245aed=new _0x17b009();_0x245aed['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x245aed['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':_0x518a49},'children':[_0x245aed]};}const _0x599191=[{'tag':'div','attributes':{'class':_0xcf8404,'style':{'background-image':_0x5abf6a['avatar']?'url(\x27'+_0x5abf6a['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x5abf6a['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x5abf6a['name']},'children':[{'text':_0x5abf6a['initials']}]}];this['notificationView']&&_0x599191['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x4028f1,'data-user-id':_0x5abf6a['id']},'children':_0x599191});}}class H extends _0x35b239{['id'];constructor(_0x28e451,_0x487ab7){super(_0x28e451),this['id']='ck-aria-description-'+_0x4e9e47(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x487ab7}]});}}class I extends _0x59d78c{['render'](){super['render'](),V(this);}}class U extends _0x5d224e{['render'](){super['render'](),V(this);}}function V(_0x14c24b){_0x14c24b['listenTo'](_0x14c24b['element'],'mousedown',(_0x40fc86,_0x2321e1)=>{_0x2321e1['stopPropagation'](),_0x2321e1['preventDefault']();}),_0x14c24b['listenTo'](_0x14c24b['element'],'mouseup',()=>{_0x14c24b['element']['focus']();});}function E(_0xfbe580={}){if(void 0x0!==_0xfbe580['dateTimeFormat']&&'function'!=typeof _0xfbe580['dateTimeFormat'])throw new _0x20a85f('invalid-date-time-format');return _0x4837de=>{const _0x262517='string'==typeof _0x4837de?_0x14678c['fromISO'](_0x4837de):_0x14678c['fromJSDate'](_0x4837de),_0x49c016=_0x14678c['now'](),_0x5c04a3=Math['floor'](_0x49c016['diff'](_0x262517,'days')['days']);return _0xfbe580['dateTimeFormat']?_0xfbe580['dateTimeFormat'](_0x262517['toJSDate']()):0x0===_0x5c04a3?_0x262517['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x5c04a3?_0x262517['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x5c04a3<0x7?_0x262517['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x262517['toFormat']('LL-dd-yyyy\x20hh:mma');};}function A(_0x4862b7,_0x3012ac){const _0xfcf459=_0x4862b7['mapper']['markerNameToElements'](_0x3012ac['name']);if(!_0xfcf459)return null;const _0x57bffa=_0x2b2abe(_0xfcf459['values']());return _0x4862b7['view']['domConverter']['mapViewToDom'](_0x57bffa)||null;}function Y(_0x524ffa,_0x59e5e9){if(0x0===_0x59e5e9['length'])return null;const _0x189c63=[],_0x259273=_0x524ffa['view']['domConverter'];for(const _0x443cfc of _0x59e5e9){const _0x47a91b=_0x524ffa['mapper']['markerNameToElements'](_0x443cfc['name']);if(!_0x47a91b)continue;const _0x3b803d=Array['from'](_0x47a91b)['map'](_0x68e1f6=>_0x259273['mapViewToDom'](_0x68e1f6))['filter'](_0x4d0b5b=>!!_0x4d0b5b);_0x189c63['push'](..._0x3b803d);}if(0x0===_0x189c63['length'])return null;const _0xd81c4=[];for(const _0x34eb6c of _0x189c63){const _0x79bd6b=_0x34eb6c['getClientRects']()['item'](0x0);_0x79bd6b&&_0xd81c4['push']({'x':_0x79bd6b['x'],'y':_0x79bd6b['y'],'domElement':_0x34eb6c});}return 0x0===_0xd81c4['length']?null:(_0xd81c4['sort']((_0x262742,_0x3579be)=>_0x262742['y']-_0x3579be['y']||_0x262742['x']-_0x3579be['x']),_0xd81c4['map'](_0x4b27c2=>_0x4b27c2['domElement']));}function Z(_0x434734,{limit:_0x2b34a7,suffix:_0x5baed3='...'}){const _0x23c1a5=[];let _0x250b95=0x0;const _0x4b20c4=_0x434734['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x5b508c=0x0;_0x5b508c<_0x4b20c4['length'];_0x5b508c++){let _0xe5c785=_0x4b20c4[_0x5b508c];const _0x2891c7=$(_0xe5c785);if(_0xe5c785['startsWith']('<')){if(_0x250b95>=_0x2b34a7){const _0x3aaa21=_0xe5c785['match'](/[a-zA-Z]+/);if(!_0x3aaa21){_0x4b20c4[_0x5b508c]='';continue;}const _0x143168=_0x3aaa21[0x0];_0xe5c785['startsWith']('</')?(_0x23c1a5['length']&&(_0xe5c785=''),_0x23c1a5['pop']()):(_0x23c1a5['push'](_0x143168),_0xe5c785='');}}else{if(_0x250b95>=_0x2b34a7)_0xe5c785='';else{if(_0x250b95+_0x2891c7['length']>=_0x2b34a7){let _0x1f5e66=_0x2b34a7-_0x250b95;if('\x20'===_0x2891c7[_0x1f5e66-0x1])_0x1f5e66--;else{const _0x1331f4=_0x2891c7['slice'](_0x1f5e66)['indexOf']('\x20');-0x1!==_0x1331f4?_0x1f5e66+=_0x1331f4:_0x1f5e66=_0xe5c785['length'];}_0xe5c785=_0x2891c7['slice'](0x0,_0x1f5e66)['join']('')+_0x5baed3,_0x250b95=_0x2b34a7;}else _0x250b95+=_0x2891c7['length'];}}_0x4b20c4[_0x5b508c]=_0xe5c785;}return _0x4b20c4['join']('\x0a')['replace'](/\n/g,'');}function $(_0x33bd46){const _0x26418c=[];for(let _0x5c3216=0x0;_0x5c3216<_0x33bd46['length'];_0x5c3216++){const _0x36fcfe=_0x33bd46['substring'](_0x5c3216)['match'](/^&[a-z0-9#]+;/);if(_0x36fcfe){const _0x36ae46=_0x36fcfe[0x0];_0x26418c['push'](_0x36ae46),_0x5c3216+=_0x36ae46['length']-0x1;}else _0x26418c['push'](_0x33bd46[_0x5c3216]);}return _0x26418c;}class m extends _0x35b239{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x1aa2a8){super(_0x1aa2a8);const _0x3490e0=this['bindTemplate'];this['set']('message',o(_0x1aa2a8,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x1aa2a8,o(_0x1aa2a8,'Yes'),_0x378922['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x1aa2a8,o(_0x1aa2a8,'No'),_0x378922['cancel'],'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new _0x10b050(),this['keystrokes']=new _0x2a28d3(),this['focusCycler']=new _0x3a02f4({'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':_0x3490e0['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'](_0x1f14cb,_0x389918,_0x277090,_0x3c38dd){const _0x5cb4b7=new _0x59d78c(_0x1f14cb);return _0x5cb4b7['label']=_0x389918,_0x5cb4b7['icon']=_0x277090,_0x5cb4b7['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x3c38dd}}),_0x5cb4b7['on']('execute',()=>this['fire'](_0x3c38dd)),_0x5cb4b7;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x1502cf=>{this['keystrokes']['listenTo'](_0x1502cf['element']),this['focusTracker']['add'](_0x1502cf['element']);}),this['keystrokes']['set']('esc',(_0x15bb9c,_0x434de8)=>{this['fire']('cancel'),_0x434de8();});}}function f(_0x586092){return class extends _0x586092{['showConfirm'](_0x13f81f,_0x4f8924){return this['confirmView']=new m(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0x13f81f,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x4f8924['appendChild'](this['confirmView']['element']),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x226d8a=>this['confirmView']['on']('submit',_0x226d8a));}['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(_0x30ca9a){let _0xba6a8c=0x0,_0x2acff3=0x0;for(const _0x1fb02c of M(_0x30ca9a))_0xba6a8c=(_0xba6a8c<<0x5)-_0xba6a8c+_0x1fb02c,_0xba6a8c|=0x0,[_0xba6a8c,_0x2acff3]=[_0x2acff3,_0xba6a8c];return v(_0xba6a8c)+v(_0x2acff3);}function*g(_0x2a588e){null==_0x2a588e||null==_0x2a588e?yield 0x12b9b0a1:0x0===_0x2a588e||!0x1===_0x2a588e?yield 0x0:0x1===_0x2a588e||0x1==_0x2a588e?yield 0x1:Array['isArray'](_0x2a588e)?yield*function*(_0x3c6bab){for(const _0x574ff5 of _0x3c6bab)yield*g(_0x574ff5);}(_0x2a588e):'object'==typeof _0x2a588e?yield*M(_0x2a588e):'string'==typeof _0x2a588e?yield*O(_0x2a588e):'number'==typeof _0x2a588e&&(yield _0x2a588e);}function*M(_0x12bb18){if(yield q('{'),_0x12bb18){const _0x39ae0b=Object['keys'](_0x12bb18)['sort']();for(const _0x284219 of _0x39ae0b){yield*O(_0x284219),yield q(':');const _0x20928a=_0x12bb18[_0x284219];yield*g(_0x20928a);}}yield q('}');}function*O(_0x54c6c9){yield q('\x22');for(const _0x1354b3 of _0x54c6c9)yield q(_0x1354b3);yield q('\x22');}function q(_0x328795){return _0x328795['charCodeAt'](0x0);}function v(_0x77f1c3){return(_0x77f1c3*=Math['sign'](_0x77f1c3))['toString'](0x24);}const w=['initialData','context','toolbar','rootsAttributes'],W=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function D(_0x353527,_0x2fe113,_0x24821d,_0x4440ed=[]){const _0x5d6dae='string'==typeof _0x353527?_0x24821d['get'](_0x353527)['constructor']:_0x353527['prototype']['constructor'];if(_0x2fe113['has'](_0x5d6dae))return _0x2fe113['get'](_0x5d6dae);_0x2fe113['set'](_0x5d6dae,!0x0);const _0x20c93c=[...W,..._0x4440ed]['map'](_0x52c680=>{if(_0x24821d['has'](_0x52c680))return _0x24821d['get'](_0x52c680)['constructor'];})['filter'](_0x48b5d5=>_0x48b5d5);if(_0x5d6dae&&_0x20c93c['includes'](_0x5d6dae))return _0x2fe113['set'](_0x5d6dae,!0x1),!0x1;if(!_0x5d6dae['requires'])return _0x2fe113['set'](_0x5d6dae,!0x0),!0x0;const _0x15e131=_0x5d6dae['requires']['every'](_0x1225b4=>D(_0x1225b4,_0x2fe113,_0x24821d,_0x4440ed));return _0x2fe113['set'](_0x5d6dae,_0x15e131),_0x15e131;}function S(_0x2a0418,_0x45a4c1){const _0x17b06e={};for(const _0x432140 of _0x2a0418['config']['names']())w['includes'](_0x432140)||(_0x17b06e[_0x432140]=_0x2a0418['config']['get'](_0x432140));const _0xeb17b7=_0x17b06e['plugins']||[],_0x332b0e=_0x2a0418['constructor']['builtinPlugins']||[],_0x5c1139=_0xeb17b7['length']?_0xeb17b7:_0x332b0e,_0x3e576b=_0x17b06e['extraPlugins']||[];delete _0x17b06e['extraPlugins'];const _0x3273d2=_0x17b06e['removePlugins']||[];delete _0x17b06e['removePlugins'];const _0x44894b=_0x2a0418['_context']['config']['get']('plugins')||[],_0x251551=_0x5c1139['concat'](_0x3e576b)['concat'](_0x44894b)['map'](_0x394cf7=>'string'==typeof _0x394cf7?_0x332b0e['find'](_0x5ce0dd=>_0x5ce0dd['pluginName']==_0x394cf7):_0x394cf7)['filter'](_0x5923dc=>!_0x3273d2['includes'](_0x5923dc)&&!_0x3273d2['includes'](_0x5923dc['pluginName'])),_0x34fafb=Array['from'](new Set(_0x251551)),_0x505410=new Map();return _0x17b06e['plugins']=_0x34fafb['filter'](_0x32af16=>D(_0x32af16,_0x505410,_0x2a0418['plugins'],_0x45a4c1)),_0x17b06e;}function z(_0x26242e,_0x5aba93){const _0x5664e5=[];_0x26242e['document']['selection']['on']('change:range',()=>{const _0x6e9271=function(_0x52e7e2,_0xd53d73){const _0x4a53ed=[];for(const _0x3e7211 of _0x52e7e2['markers']){const _0x14d56a=_0x3e7211['getRange']();(_0x14d56a['containsPosition'](_0xd53d73)||_0x14d56a['start']['isEqual'](_0xd53d73)||_0x14d56a['end']['isEqual'](_0xd53d73))&&_0x4a53ed['push'](_0x3e7211);}return _0x4a53ed;}(_0x26242e,_0x26242e['document']['selection']['focus']),_0xdf7620=[],_0x9e2d41=[],_0xc6c594=[];for(const _0x10b0c8 of _0x5664e5)_0x6e9271['includes'](_0x10b0c8)||_0xdf7620['push'](_0x10b0c8);for(const _0x501ce0 of _0x6e9271)_0x5664e5['includes'](_0x501ce0)||_0x9e2d41['push'](_0x501ce0),_0xc6c594['push'](_0x501ce0);(_0xdf7620['length']||_0x9e2d41['length'])&&_0x5aba93({'left':_0xdf7620,'entered':_0x9e2d41}),_0x5664e5['length']=0x0,_0x5664e5['push'](..._0xc6c594);});}const R='Ctrl+Shift+E';function T(_0x53d187,_0xe5a69f){const _0x439169=_0x53d187['element'];_0x53d187['keystrokes']['listenTo'](_0x439169);for(const _0x1d2e61 of _0xe5a69f)C(_0x53d187,_0x1d2e61);_0xe5a69f['on']('change',(_0x5e897c,_0x51153c)=>{for(const _0x6c9b46 of _0x51153c['removed'])K(_0x53d187,_0x6c9b46);for(const _0x40275f of Array['from'](_0x51153c['added'])['reverse']())C(_0x53d187,_0x40275f);}),_0x53d187['keystrokes']['set']('enter',(_0x50360b,_0x52e858)=>{_0x439169===_0x50360b['target']&&(_0x53d187['focusCycler']['focusFirst'](),_0x52e858());},{'filter':_0x466b6b=>_0x466b6b['target']===_0x439169}),_0x53d187['keystrokes']['set']('esc',(_0xdae86b,_0x2884e4)=>{_0x439169!==_0xdae86b['target']?_0x53d187['focus']():_0x53d187['fire']('escape'),_0x2884e4();}),_0x53d187['keystrokes']['set']('arrowdown',(_0x2aa43d,_0x182b14)=>{_0x439169===_0x2aa43d['target']&&(_0x53d187['fire']('arrowdown'),_0x182b14());}),_0x53d187['keystrokes']['set']('arrowup',(_0x3cfaf9,_0xd692dc)=>{_0x439169===_0x3cfaf9['target']&&(_0x53d187['fire']('arrowup'),_0xd692dc());});}function C(_0x30acef,_0x41e139){_0x41e139['isRendered']&&(_0x30acef['focusTracker']['add'](_0x41e139['element']),_0x30acef['keystrokes']['listenTo'](_0x41e139['element']),_0x2019ea(_0x41e139)&&function(_0x4dc54e,_0x243fac){const _0x53c5ce=_0x4dc54e['actions'],_0x481255=_0x243fac['actions'];for(const _0x2bf8e0 of Object['keys'](_0x53c5ce))if(_0x2bf8e0 in _0x481255&&_0x53c5ce[_0x2bf8e0]!==_0x481255[_0x2bf8e0])return!0x1;return!0x0;}(_0x30acef['focusCycler'],_0x41e139['focusCycler'])&&_0x30acef['focusCycler']['chain'](_0x41e139['focusCycler']));}function K(_0x4f2af0,_0x2e0aaa){_0x4f2af0['focusTracker']['remove'](_0x2e0aaa['element']),_0x4f2af0['keystrokes']['stopListening'](_0x2e0aaa['element']),_0x2019ea(_0x2e0aaa)&&_0x4f2af0['focusCycler']['unchain'](_0x2e0aaa['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.3.0-alpha.6",
3
+ "version": "44.3.0-alpha.7",
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.3.0-alpha.6",
36
- "@ckeditor/ckeditor5-core": "44.3.0-alpha.6",
37
- "@ckeditor/ckeditor5-theme-lark": "44.3.0-alpha.6",
38
- "@ckeditor/ckeditor5-track-changes": "44.3.0-alpha.6",
39
- "@ckeditor/ckeditor5-ui": "44.3.0-alpha.6",
40
- "@ckeditor/ckeditor5-utils": "44.3.0-alpha.6",
35
+ "@ckeditor/ckeditor5-comments": "44.3.0-alpha.7",
36
+ "@ckeditor/ckeditor5-core": "44.3.0-alpha.7",
37
+ "@ckeditor/ckeditor5-theme-lark": "44.3.0-alpha.7",
38
+ "@ckeditor/ckeditor5-track-changes": "44.3.0-alpha.7",
39
+ "@ckeditor/ckeditor5-ui": "44.3.0-alpha.7",
40
+ "@ckeditor/ckeditor5-utils": "44.3.0-alpha.7",
41
41
  "@types/luxon": "3.4.2",
42
- "ckeditor5": "44.3.0-alpha.6",
42
+ "ckeditor5": "44.3.0-alpha.7",
43
43
  "luxon": "3.5.0"
44
44
  },
45
45
  "files": [
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x9f27(_0xd4c7f1,_0x47c60e){var _0x4339b0=_0x4339();return _0x9f27=function(_0x9f27f1,_0x5b9d68){_0x9f27f1=_0x9f27f1-0xba;var _0x1562f5=_0x4339b0[_0x9f27f1];return _0x1562f5;},_0x9f27(_0xd4c7f1,_0x47c60e);}(function(_0x2d8bff,_0x4bd181){var _0x4c664c=_0x9f27,_0x405ffe=_0x2d8bff();while(!![]){try{var _0x24d21e=parseInt(_0x4c664c(0xbd))/0x1+parseInt(_0x4c664c(0xbc))/0x2*(parseInt(_0x4c664c(0xc2))/0x3)+parseInt(_0x4c664c(0xbb))/0x4*(-parseInt(_0x4c664c(0xc4))/0x5)+parseInt(_0x4c664c(0xba))/0x6+parseInt(_0x4c664c(0xbe))/0x7+-parseInt(_0x4c664c(0xc7))/0x8*(parseInt(_0x4c664c(0xc6))/0x9)+parseInt(_0x4c664c(0xc5))/0xa*(-parseInt(_0x4c664c(0xc3))/0xb);if(_0x24d21e===_0x4bd181)break;else _0x405ffe['push'](_0x405ffe['shift']());}catch(_0x558141){_0x405ffe['push'](_0x405ffe['shift']());}}}(_0x4339,0x60d8c));import{uid as _0x507f90}from'ckeditor5/src/utils.js';import{View as _0x2b57b1}from'ckeditor5/src/ui.js';function _0x4339(){var _0x38ac76=['5013tbbatl','8248gvcIQd','setTemplate','2120664SEGOQy','4eBdymO','304glltoW','787050qGfwKz','1885758MuXEoh','span','ck-aria-description-','ck-aria-description','9336znCeSH','22Tivozy','2055185VZMlxf','2504620mUXivu'];_0x4339=function(){return _0x38ac76;};return _0x4339();}export default class F extends _0x2b57b1{constructor(_0x107b24,_0x1905ed){var _0x2ba8b7=_0x9f27;super(_0x107b24),this['id']=_0x2ba8b7(0xc0)+_0x507f90(),this[_0x2ba8b7(0xc8)]({'tag':_0x2ba8b7(0xbf),'attributes':{'class':['ck',_0x2ba8b7(0xc1)],'id':this['id']},'children':[{'text':_0x1905ed}]});}}
23
+ function _0x4678(){var _0x384a83=['13949947UREWAe','2535490oirUfT','ck-aria-description','1800592BxBMYH','3265641ffbWgn','span','856476RXjBsG','7nfrsgA','18RpoNWE','1569636lbZUiC','ck-aria-description-','56IsgtyB','9166QkeltT','30YpSiPj','setTemplate'];_0x4678=function(){return _0x384a83;};return _0x4678();}(function(_0x4f4827,_0x292b15){var _0x2c6880=_0xb3dc,_0x359848=_0x4f4827();while(!![]){try{var _0x2c3677=-parseInt(_0x2c6880(0x189))/0x1*(parseInt(_0x2c6880(0x18a))/0x2)+-parseInt(_0x2c6880(0x191))/0x3+parseInt(_0x2c6880(0x193))/0x4*(parseInt(_0x2c6880(0x18b))/0x5)+-parseInt(_0x2c6880(0x187))/0x6+-parseInt(_0x2c6880(0x194))/0x7*(-parseInt(_0x2c6880(0x190))/0x8)+-parseInt(_0x2c6880(0x195))/0x9*(parseInt(_0x2c6880(0x18e))/0xa)+parseInt(_0x2c6880(0x18d))/0xb;if(_0x2c3677===_0x292b15)break;else _0x359848['push'](_0x359848['shift']());}catch(_0x2e6ab8){_0x359848['push'](_0x359848['shift']());}}}(_0x4678,0xa2202));import{uid as _0x12bf2b}from'ckeditor5/src/utils.js';function _0xb3dc(_0x417695,_0x39c0c5){var _0x4678a1=_0x4678();return _0xb3dc=function(_0xb3dc29,_0x2e6ce7){_0xb3dc29=_0xb3dc29-0x187;var _0x306a25=_0x4678a1[_0xb3dc29];return _0x306a25;},_0xb3dc(_0x417695,_0x39c0c5);}import{View as _0x3840fb}from'ckeditor5/src/ui.js';export default class H extends _0x3840fb{constructor(_0x26c5e7,_0x558db8){var _0x40ad2a=_0xb3dc;super(_0x26c5e7),this['id']=_0x40ad2a(0x188)+_0x12bf2b(),this[_0x40ad2a(0x18c)]({'tag':_0x40ad2a(0x192),'attributes':{'class':['ck',_0x40ad2a(0x18f)],'id':this['id']},'children':[{'text':_0x558db8}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4de916,_0x52a2d8){const _0x3a0894=_0x3cd8,_0x19a701=_0x4de916();while(!![]){try{const _0x175786=-parseInt(_0x3a0894(0xd1))/0x1*(-parseInt(_0x3a0894(0xdc))/0x2)+-parseInt(_0x3a0894(0xd7))/0x3+parseInt(_0x3a0894(0xe6))/0x4+-parseInt(_0x3a0894(0xed))/0x5*(parseInt(_0x3a0894(0xd8))/0x6)+-parseInt(_0x3a0894(0xd2))/0x7*(-parseInt(_0x3a0894(0xdd))/0x8)+parseInt(_0x3a0894(0xdb))/0x9+-parseInt(_0x3a0894(0xd4))/0xa;if(_0x175786===_0x52a2d8)break;else _0x19a701['push'](_0x19a701['shift']());}catch(_0x2c1722){_0x19a701['push'](_0x19a701['shift']());}}}(_0x719b,0x94230));function _0x3cd8(_0x12d376,_0x1508c0){const _0x719be5=_0x719b();return _0x3cd8=function(_0x3cd813,_0x140cb7){_0x3cd813=_0x3cd813-0xd1;let _0x53ba4c=_0x719be5[_0x3cd813];return _0x53ba4c;},_0x3cd8(_0x12d376,_0x1508c0);}import{View as _0x1179f2,IconView as _0x7509bd}from'ckeditor5/src/ui.js';import _0x45ffaf from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class H extends _0x1179f2{constructor(_0xd5ba47,_0x276e9b,_0x3a3e84){const _0x2b6d36=_0x3cd8;super(_0xd5ba47),this[_0x2b6d36(0xe2)]=_0x276e9b[_0x2b6d36(0xe2)],this[_0x2b6d36(0xe9)]=null;const _0x2e35e9=['ck',_0x2b6d36(0xe8)],_0x15fc2e=['ck',_0x2b6d36(0xe5)];if(_0x276e9b[_0x2b6d36(0xee)]&&_0x15fc2e[_0x2b6d36(0xeb)](_0x2b6d36(0xe4)),!_0x276e9b[_0x2b6d36(0xee)]&&_0x276e9b[_0x2b6d36(0xde)]&&_0x2e35e9[_0x2b6d36(0xeb)](_0x2b6d36(0xe1)),_0x276e9b[_0x2b6d36(0xd5)]&&_0x15fc2e[_0x2b6d36(0xeb)](_0x2b6d36(0xda)),_0x3a3e84){const _0x3a5a7d=new _0x7509bd();_0x3a5a7d[_0x2b6d36(0xdf)]({'attributes':{'class':[_0x2b6d36(0xe7)]}}),_0x3a5a7d[_0x2b6d36(0xd9)]=_0x45ffaf,this[_0x2b6d36(0xe9)]={'tag':_0x2b6d36(0xd6),'attributes':{'class':['ck',_0x2b6d36(0xe0)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3a3e84},'children':[_0x3a5a7d]};}const _0x4e92fc=[{'tag':_0x2b6d36(0xd6),'attributes':{'class':_0x15fc2e,'style':{'background-image':_0x276e9b[_0x2b6d36(0xd5)]?_0x2b6d36(0xe3)+_0x276e9b[_0x2b6d36(0xd5)]+'\x27)':''}}},{'tag':_0x2b6d36(0xd6),'attributes':{'class':_0x276e9b[_0x2b6d36(0xd5)]?_0x2b6d36(0xec):_0x2b6d36(0xef),'aria-label':_0x276e9b[_0x2b6d36(0xe2)]},'children':[{'text':_0x276e9b[_0x2b6d36(0xd3)]}]}];this[_0x2b6d36(0xe9)]&&_0x4e92fc[_0x2b6d36(0xeb)](this[_0x2b6d36(0xe9)]),this[_0x2b6d36(0xea)]({'tag':_0x2b6d36(0xd6),'attributes':{'class':_0x2e35e9,'data-user-id':_0x276e9b['id']},'children':_0x4e92fc});}}function _0x719b(){const _0x11370d=['1800tzkfxD','isMe','extendTemplate','ck-user__notification','ck-user_me','name','url(\x27','ck-user__anonymous','ck-user__img','2140804nVJQaq','ck-user__icon','ck-user','notificationView','setTemplate','push','ck\x20ck-user__name\x20ck-user__name--hidden','5aIOABR','isAnonymous','ck\x20ck-user__name','6446jmBAfe','7791ahoFtb','initials','1420950OPwsEp','avatar','div','1560810hNoToG','5093136cQKahI','content','ck-user__avatar','2825055TJKDTE','316YOvqbH'];_0x719b=function(){return _0x11370d;};return _0x719b();}
23
+ (function(_0x24d165,_0x113d21){const _0x28635a=_0x1bd9,_0x984b11=_0x24d165();while(!![]){try{const _0x3ea503=parseInt(_0x28635a(0xf4))/0x1*(parseInt(_0x28635a(0xfd))/0x2)+-parseInt(_0x28635a(0xf1))/0x3*(-parseInt(_0x28635a(0xfa))/0x4)+-parseInt(_0x28635a(0xf0))/0x5+-parseInt(_0x28635a(0x104))/0x6*(parseInt(_0x28635a(0xeb))/0x7)+parseInt(_0x28635a(0x105))/0x8*(-parseInt(_0x28635a(0xf5))/0x9)+parseInt(_0x28635a(0xed))/0xa+-parseInt(_0x28635a(0x10b))/0xb*(-parseInt(_0x28635a(0xee))/0xc);if(_0x3ea503===_0x113d21)break;else _0x984b11['push'](_0x984b11['shift']());}catch(_0x3f4a85){_0x984b11['push'](_0x984b11['shift']());}}}(_0xad99,0x783e4));function _0x1bd9(_0x2a86ae,_0x25b270){const _0xad99c5=_0xad99();return _0x1bd9=function(_0x1bd994,_0x28dd21){_0x1bd994=_0x1bd994-0xeb;let _0x3684cc=_0xad99c5[_0x1bd994];return _0x3684cc;},_0x1bd9(_0x2a86ae,_0x25b270);}import{View as _0x45f09f,IconView as _0x428232}from'ckeditor5/src/ui.js';import _0x1fa40a from'../../../theme/icons/notification.svg';function _0xad99(){const _0x399573=['name','avatar','30KufzeZ','536huWVnQ','isMe','extendTemplate','ck-user__icon','ck\x20ck-user__name','setTemplate','914947lRtcZY','464639IpHEDz','ck-user__notification','2722670FUiBcR','72GvIuUA','ck-user__anonymous','4871215uZEdJb','25107Phcpgb','div','ck\x20ck-user__name\x20ck-user__name--hidden','134303LqRGYV','60075ofoDQf','push','ck-user_me','isAnonymous','ck-user__img','448stjQqx','content','url(\x27','8NCvhgw','ck-user__avatar','initials','ck-user','notificationView'];_0xad99=function(){return _0x399573;};return _0xad99();}import'../../../theme/users.css';export default class F extends _0x45f09f{constructor(_0x602627,_0x5893b5,_0x213b51){const _0x5d4728=_0x1bd9;super(_0x602627),this[_0x5d4728(0x102)]=_0x5893b5[_0x5d4728(0x102)],this[_0x5d4728(0x101)]=null;const _0x171a54=['ck',_0x5d4728(0x100)],_0x2fe5b7=['ck',_0x5d4728(0xf9)];if(_0x5893b5[_0x5d4728(0xf8)]&&_0x2fe5b7[_0x5d4728(0xf6)](_0x5d4728(0xef)),!_0x5893b5[_0x5d4728(0xf8)]&&_0x5893b5[_0x5d4728(0x106)]&&_0x171a54[_0x5d4728(0xf6)](_0x5d4728(0xf7)),_0x5893b5[_0x5d4728(0x103)]&&_0x2fe5b7[_0x5d4728(0xf6)](_0x5d4728(0xfe)),_0x213b51){const _0x56c0f2=new _0x428232();_0x56c0f2[_0x5d4728(0x107)]({'attributes':{'class':[_0x5d4728(0x108)]}}),_0x56c0f2[_0x5d4728(0xfb)]=_0x1fa40a,this[_0x5d4728(0x101)]={'tag':_0x5d4728(0xf2),'attributes':{'class':['ck',_0x5d4728(0xec)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x213b51},'children':[_0x56c0f2]};}const _0x57bca4=[{'tag':_0x5d4728(0xf2),'attributes':{'class':_0x2fe5b7,'style':{'background-image':_0x5893b5[_0x5d4728(0x103)]?_0x5d4728(0xfc)+_0x5893b5[_0x5d4728(0x103)]+'\x27)':''}}},{'tag':_0x5d4728(0xf2),'attributes':{'class':_0x5893b5[_0x5d4728(0x103)]?_0x5d4728(0xf3):_0x5d4728(0x109),'aria-label':_0x5893b5[_0x5d4728(0x102)]},'children':[{'text':_0x5893b5[_0x5d4728(0xff)]}]}];this[_0x5d4728(0x101)]&&_0x57bca4[_0x5d4728(0xf6)](this[_0x5d4728(0x101)]),this[_0x5d4728(0x10a)]({'tag':_0x5d4728(0xf2),'attributes':{'class':_0x171a54,'data-user-id':_0x5893b5['id']},'children':_0x57bca4});}}