@ckeditor/ckeditor5-collaboration-core 37.0.0-rc.0 → 37.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "37.0.0-rc.0",
3
+ "version": "37.0.0",
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/)",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "main": "src/index.js",
30
30
  "dependencies": {
31
- "ckeditor5": "^37.0.0-rc.0",
31
+ "ckeditor5": "^37.0.0",
32
32
  "date-fns": "^2.17.0"
33
33
  },
34
34
  "files": [
@@ -9,7 +9,7 @@ import { ContextPlugin } from 'ckeditor5/src/core';
9
9
  * Following is the list of all defined permissions:
10
10
  *
11
11
  * * `document:write` - modify the content of the document,
12
- * * `comment:write` - create, edit and remove own comments,
12
+ * * `comment:write` - create, edit and remove own comments and create and remove own comment threads,
13
13
  * * `comment:admin` - remove comment threads created by other users (enables `comment:write`).
14
14
  * * `comment:modify_all` - edit and remove any comments created by any user.
15
15
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x180a=['permissions-set-permissions-invalid-channel-id','clearForceDisabled','collaboration.channelId','Permissions','comment:admin','comment:modify_all','editors','document:write','CommentsOnly','comment:write','no-permissions','commands','noPermissions','disableReadOnlyMode','CommentsRepository','pluginName','includes','setPermissions','isEnabled','config','context','find','get','enableReadOnlyMode'];(function(_0x21b1df,_0x180a06){const _0xe785be=function(_0x132d84){while(--_0x132d84){_0x21b1df['push'](_0x21b1df['shift']());}};_0xe785be(++_0x180a06);}(_0x180a,0x6c));const _0xe785=function(_0x21b1df,_0x180a06){_0x21b1df=_0x21b1df-0x0;let _0xe785be=_0x180a[_0x21b1df];return _0xe785be;};import{ContextPlugin as _0x51b776,Editor as _0x5423d4}from'ckeditor5/src/core';import{CKEditorError as _0xdaeca0}from'ckeditor5/src/utils';export default class n extends _0x51b776{static get[_0xe785('0x3')](){return _0xe785('0xf');}['setPermissions'](_0x57f96e,_0x46bfc3){let _0x19f987;if(_0x46bfc3||(_0x46bfc3=this[_0xe785('0x8')]['config'][_0xe785('0xa')](_0xe785('0xe'))),this[_0xe785('0x8')][_0xe785('0x7')][_0xe785('0xa')](_0xe785('0xe'))==_0x46bfc3?_0x19f987=this[_0xe785('0x8')]:'editors'in this[_0xe785('0x8')]&&this['context'][_0xe785('0x12')]&&(_0x19f987=this[_0xe785('0x8')][_0xe785('0x12')][_0xe785('0x9')](_0x416fd3=>_0x416fd3['config'][_0xe785('0xa')](_0xe785('0xe'))==_0x46bfc3)),!_0x19f987)throw new _0xdaeca0(_0xe785('0xc'),null);const _0x5dd890=_0x19f987['plugins'],_0x20c5b3=_0x5dd890['has'](_0xe785('0x2'))?_0x5dd890[_0xe785('0xa')](_0xe785('0x2')):void 0x0,_0x5b9916=_0x5dd890['has'](_0xe785('0x14'))&&_0x5dd890[_0xe785('0xa')]('CommentsOnly'),_0x13618d=_0x57f96e[_0xe785('0x4')](_0xe785('0x13')),_0x9106d7=_0x57f96e['includes'](_0xe785('0x11')),_0x2ba3a0=_0x57f96e['includes'](_0xe785('0x10')),_0x59a42d=_0x57f96e[_0xe785('0x4')](_0xe785('0x15')),_0x4f69e8=_0x59a42d||_0x2ba3a0;(_0x5b9916&&(_0x5b9916[_0xe785('0x6')]=!_0x13618d&&_0x4f69e8),_0x19f987 instanceof _0x5423d4)&&(!(_0x13618d||_0x4f69e8&&_0x20c5b3)?_0x19f987[_0xe785('0xb')](_0xe785('0x16')):_0x19f987[_0xe785('0x1')](_0xe785('0x16')));if(_0x20c5b3){_0x20c5b3[_0xe785('0x5')]({'admin':_0x2ba3a0,'modifyAll':_0x9106d7,'write':_0x59a42d},_0x46bfc3);const _0x2db527=_0x19f987 instanceof _0x5423d4&&_0x19f987[_0xe785('0x17')][_0xe785('0xa')]('addCommentThread');_0x2db527&&(_0x4f69e8?_0x2db527[_0xe785('0xd')](_0xe785('0x0')):_0x2db527['forceDisabled'](_0xe785('0x0')));}}}
23
+ const _0x3d36=['config','setPermissions','enableReadOnlyMode','includes','no-permissions','CommentsRepository','CommentsOnly','plugins','document:write','context','pluginName','has','collaboration.channelId','noPermissions','editors','comment:admin','get','isEnabled','commands','permissions-set-permissions-invalid-channel-id','find','comment:modify_all'];(function(_0xe23f37,_0x3d3633){const _0x1028b0=function(_0x4416d2){while(--_0x4416d2){_0xe23f37['push'](_0xe23f37['shift']());}};_0x1028b0(++_0x3d3633);}(_0x3d36,0x9f));const _0x1028=function(_0xe23f37,_0x3d3633){_0xe23f37=_0xe23f37-0x0;let _0x1028b0=_0x3d36[_0xe23f37];return _0x1028b0;};import{ContextPlugin as _0x34fc5c,Editor as _0x4044eb}from'ckeditor5/src/core';import{CKEditorError as _0x44bee8}from'ckeditor5/src/utils';export default class n extends _0x34fc5c{static get[_0x1028('0x5')](){return'Permissions';}[_0x1028('0x12')](_0x11981e,_0x163ad2){let _0x2bdfe8;if(_0x163ad2||(_0x163ad2=this[_0x1028('0x4')][_0x1028('0x11')][_0x1028('0xb')]('collaboration.channelId')),this[_0x1028('0x4')][_0x1028('0x11')][_0x1028('0xb')](_0x1028('0x7'))==_0x163ad2?_0x2bdfe8=this[_0x1028('0x4')]:'editors'in this['context']&&this[_0x1028('0x4')][_0x1028('0x9')]&&(_0x2bdfe8=this[_0x1028('0x4')][_0x1028('0x9')][_0x1028('0xf')](_0x435782=>_0x435782[_0x1028('0x11')]['get']('collaboration.channelId')==_0x163ad2)),!_0x2bdfe8)throw new _0x44bee8(_0x1028('0xe'),null);const _0xba20b9=_0x2bdfe8[_0x1028('0x2')],_0x1229da=_0xba20b9['has'](_0x1028('0x0'))?_0xba20b9[_0x1028('0xb')](_0x1028('0x0')):void 0x0,_0x598c57=_0xba20b9[_0x1028('0x6')](_0x1028('0x1'))&&_0xba20b9[_0x1028('0xb')]('CommentsOnly'),_0x2f2678=_0x11981e[_0x1028('0x14')](_0x1028('0x3')),_0x45576f=_0x11981e[_0x1028('0x14')](_0x1028('0x10')),_0x77bc7f=_0x11981e[_0x1028('0x14')](_0x1028('0xa')),_0x48504c=_0x11981e[_0x1028('0x14')]('comment:write'),_0x9cf107=_0x48504c||_0x77bc7f,_0x1ee14b=_0x9cf107||_0x45576f;(_0x598c57&&(_0x598c57[_0x1028('0xc')]=!_0x2f2678&&_0x1ee14b),_0x2bdfe8 instanceof _0x4044eb)&&(!(_0x2f2678||_0x1ee14b&&_0x1229da)?_0x2bdfe8[_0x1028('0x13')](_0x1028('0x15')):_0x2bdfe8['disableReadOnlyMode'](_0x1028('0x15')));if(_0x1229da){_0x1229da[_0x1028('0x12')]({'admin':_0x77bc7f,'modifyAll':_0x45576f,'write':_0x48504c},_0x163ad2);const _0xfd9124=_0x2bdfe8 instanceof _0x4044eb&&_0x2bdfe8[_0x1028('0xd')][_0x1028('0xb')]('addCommentThread');_0xfd9124&&(_0x9cf107?_0xfd9124['clearForceDisabled'](_0x1028('0x8')):_0xfd9124['forceDisabled']('noPermissions'));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a77=['url(\x27','ck-user__icon','div','setTemplate','ck-user__anonymous','push','avatar','ck-user__notification','ck-user','name','notificationView'];(function(_0x11d2e8,_0x4a77e2){const _0x41eaa4=function(_0x218d64){while(--_0x218d64){_0x11d2e8['push'](_0x11d2e8['shift']());}};_0x41eaa4(++_0x4a77e2);}(_0x4a77,0xae));const _0x41ea=function(_0x11d2e8,_0x4a77e2){_0x11d2e8=_0x11d2e8-0x0;let _0x41eaa4=_0x4a77[_0x11d2e8];return _0x41eaa4;};import{View as _0x49f6a2,IconView as _0x55709e}from'ckeditor5/src/ui';import _0x224950 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0x49f6a2{constructor(_0x3e13fe,_0x4cbb5a,_0x421f63){super(_0x3e13fe),this[_0x41ea('0x0')]=_0x4cbb5a[_0x41ea('0x0')],this[_0x41ea('0x1')]=null;const _0x3ab2b4=['ck','ck-user__img'];if(_0x4cbb5a['isAnonymous']&&_0x3ab2b4[_0x41ea('0x7')](_0x41ea('0x6')),_0x4cbb5a['avatar']&&_0x3ab2b4['push']('ck-user__avatar'),_0x421f63){const _0x191a93=new _0x55709e();_0x191a93['extendTemplate']({'attributes':{'class':[_0x41ea('0x3')]}}),_0x191a93['content']=_0x224950,this[_0x41ea('0x1')]={'tag':_0x41ea('0x4'),'attributes':{'class':['ck',_0x41ea('0x9')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x421f63},'children':[_0x191a93]};}const _0x3ca967=[{'tag':_0x41ea('0x4'),'attributes':{'class':_0x3ab2b4,'style':{'background-image':_0x4cbb5a[_0x41ea('0x8')]?_0x41ea('0x2')+_0x4cbb5a[_0x41ea('0x8')]+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x4cbb5a[_0x41ea('0x8')]?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name'},'children':[{'text':_0x4cbb5a['initials']}]}];this[_0x41ea('0x1')]&&_0x3ca967[_0x41ea('0x7')](this[_0x41ea('0x1')]),this[_0x41ea('0x5')]({'tag':_0x41ea('0x4'),'attributes':{'class':['ck',_0x41ea('0xa')],'data-user-id':_0x4cbb5a['id']},'children':_0x3ca967});}}
23
+ const _0x36a5=['initials','ck-user','setTemplate','ck-user__anonymous','avatar','content','push','name','ck-user__notification','isAnonymous','notificationView','ck\x20ck-user__name\x20ck-user__name--hidden','div','extendTemplate'];(function(_0x18b9f7,_0x36a598){const _0xb20e2=function(_0x127122){while(--_0x127122){_0x18b9f7['push'](_0x18b9f7['shift']());}};_0xb20e2(++_0x36a598);}(_0x36a5,0xcb));const _0xb20e=function(_0x18b9f7,_0x36a598){_0x18b9f7=_0x18b9f7-0x0;let _0xb20e2=_0x36a5[_0x18b9f7];return _0xb20e2;};import{View as _0xdf60e2,IconView as _0x3b3e81}from'ckeditor5/src/ui';import _0x3475c3 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0xdf60e2{constructor(_0x3b55fc,_0x2be1d2,_0x2924fc){super(_0x3b55fc),this[_0xb20e('0x0')]=_0x2be1d2['name'],this[_0xb20e('0x3')]=null;const _0x1497f1=['ck','ck-user__img'];if(_0x2be1d2[_0xb20e('0x2')]&&_0x1497f1['push'](_0xb20e('0xa')),_0x2be1d2['avatar']&&_0x1497f1[_0xb20e('0xd')]('ck-user__avatar'),_0x2924fc){const _0x6fa6f5=new _0x3b3e81();_0x6fa6f5[_0xb20e('0x6')]({'attributes':{'class':['ck-user__icon']}}),_0x6fa6f5[_0xb20e('0xc')]=_0x3475c3,this['notificationView']={'tag':'div','attributes':{'class':['ck',_0xb20e('0x1')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x2924fc},'children':[_0x6fa6f5]};}const _0x2fb875=[{'tag':_0xb20e('0x5'),'attributes':{'class':_0x1497f1,'style':{'background-image':_0x2be1d2['avatar']?'url(\x27'+_0x2be1d2[_0xb20e('0xb')]+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x2be1d2[_0xb20e('0xb')]?_0xb20e('0x4'):'ck\x20ck-user__name'},'children':[{'text':_0x2be1d2[_0xb20e('0x7')]}]}];this[_0xb20e('0x3')]&&_0x2fb875[_0xb20e('0xd')](this[_0xb20e('0x3')]),this[_0xb20e('0x9')]({'tag':_0xb20e('0x5'),'attributes':{'class':['ck',_0xb20e('0x8')],'data-user-id':_0x2be1d2['id']},'children':_0x2fb875});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x350d=['info','pluginName','context','defineMe','color','decorate','_lastColor','users-me-missing-user','getMarkerClass','charAt','ck-user__selection--','add','trial-license-key-reached-limit-revisions','addUser','invalid-license-key','licenseKeyTrialLimit:operations','split','define','has','_id','destroy','_licenseKeyCheckInterval','_getInitial','isAnonymous','ck-user__marker--','licenseKeyValid','locale','initials','users-add-invalid-id','trial-license-key-reached-limit-time','licenseKeyTrialLimit:time','Anonymous','users','_isAnonymous','_getNextColor','trial-license-key-reached-limit-changes','requires','_addAnonymousUser','getUser','get','includes','licenseKeyTrial','licenseKeyTrialLimit:revisions','users.anonymousUserId','users.colorsCount','_locale','length','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','avatar','name','toUpperCase','useAnonymousUser','getOperationAuthor','users-add-duplicated-id','ck-user__bg-color--','licenseKeyInvalid','_myId','config','trim'];(function(_0x1fe587,_0x350dd0){const _0x241b17=function(_0x1dbf02){while(--_0x1dbf02){_0x1fe587['push'](_0x1fe587['shift']());}};_0x241b17(++_0x350dd0);}(_0x350d,0xea));const _0x241b=function(_0x1fe587,_0x350dd0){_0x1fe587=_0x1fe587-0x0;let _0x241b17=_0x350d[_0x1fe587];return _0x241b17;};import{ContextPlugin as _0x3152e0}from'ckeditor5/src/core';import{Collection as _0x5e3a39,CKEditorError as _0x14c657}from'ckeditor5/src/utils';import _0x5270e5 from'./permissions';import{getTranslation as _0x1da2ec}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x3152e0{static get[_0x241b('0x3')](){return'Users';}static get[_0x241b('0x26')](){return[_0x5270e5];}constructor(_0x574ae7){super(_0x574ae7),this[_0x241b('0x4')][_0x241b('0x0')][_0x241b('0x13')]('users.anonymousUserId','anonymous-user'),this[_0x241b('0x4')][_0x241b('0x0')][_0x241b('0x13')](_0x241b('0x2e'),0x8),this['users']=new _0x5e3a39(),this['_locale']=_0x574ae7[_0x241b('0x1c')],this[_0x241b('0x17')]=null,this[_0x241b('0x8')]=0x0,this['_myId']=null,this[_0x241b('0x7')](_0x241b('0x36'));}['init'](){const _0x25d784=this['context'];this['licenseKey']=_0x25d784['config'][_0x241b('0x29')]('licenseKey');const _0x423372=[_0x241b('0x2b'),_0x241b('0x39'),'licenseKeyValid',_0x241b('0x11'),_0x241b('0x20'),_0x241b('0x2c')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19e609;for(const _0x2f70ab in _0x25d784){const _0x1982aa=_0x25d784[_0x2f70ab];if(_0x423372[_0x241b('0x2a')](_0x1982aa)){delete _0x25d784[_0x2f70ab],_0x19e609=_0x1982aa;break;}}if('licenseKeyInvalid'===_0x19e609)throw clearInterval(this[_0x241b('0x17')]),new _0x14c657(_0x241b('0x10'),null);if(_0x241b('0x2b')===_0x19e609&&console[_0x241b('0x2')](_0x241b('0x31')),_0x241b('0x11')===_0x19e609)throw clearInterval(this[_0x241b('0x17')]),new _0x14c657(_0x241b('0x25'),null);if('licenseKeyTrialLimit:time'===_0x19e609)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x14c657(_0x241b('0x1f'),null);if(_0x241b('0x2c')===_0x19e609)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x14c657(_0x241b('0xe'),null);_0x241b('0x1b')===_0x19e609&&clearInterval(this[_0x241b('0x17')]);},0x3e8),this[_0x241b('0x27')]();}get['me'](){return null==this[_0x241b('0x3a')]?null:this[_0x241b('0x28')](this[_0x241b('0x3a')]);}['addUser']({id:_0x2fc6d6,name:_0x454b4b,..._0x425aef}){if(!_0x2fc6d6||'string'!=typeof _0x2fc6d6)throw new _0x14c657(_0x241b('0x1e'));if(this['users'][_0x241b('0x14')](_0x2fc6d6))throw new _0x14c657(_0x241b('0x37'),null,{'id':_0x2fc6d6});const _0x297f1f={..._0x425aef,'id':_0x2fc6d6,'name':a(this['_locale'],_0x454b4b),'color':this[_0x241b('0x24')]()};_0x297f1f[_0x241b('0x33')]=a(this[_0x241b('0x2f')],_0x297f1f[_0x241b('0x33')]);const _0x401f56=new User(_0x297f1f);return this[_0x241b('0x22')][_0x241b('0xd')](_0x401f56),_0x401f56;}['getUser'](_0x3cabc3){return this[_0x241b('0x22')][_0x241b('0x29')](_0x3cabc3);}[_0x241b('0x35')](){const _0x28b562=this[_0x241b('0x4')][_0x241b('0x0')][_0x241b('0x29')]('users.anonymousUserId');this[_0x241b('0x3a')]||this[_0x241b('0x5')](_0x28b562);}[_0x241b('0x5')](_0x1bde85){if(this['_myId'])throw new _0x14c657('users-me-already-defined',null);if(!this[_0x241b('0x28')](_0x1bde85))throw new _0x14c657(_0x241b('0x9'),null);this['_myId']=_0x1bde85;}['getOperationAuthor'](){return this['me'];}[_0x241b('0x16')](){super[_0x241b('0x16')](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x241b('0x24')](){const _0x3e76a5=this[_0x241b('0x4')][_0x241b('0x0')][_0x241b('0x29')](_0x241b('0x2e'));return this[_0x241b('0x8')]>=_0x3e76a5&&(this[_0x241b('0x8')]=0x0),new u(this[_0x241b('0x8')]++);}[_0x241b('0x27')](){const _0x4a4684=this[_0x241b('0x4')][_0x241b('0x0')][_0x241b('0x29')](_0x241b('0x2d'));this[_0x241b('0xf')]({'id':_0x4a4684,'name':_0x1da2ec(this[_0x241b('0x2f')],_0x241b('0x21'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0xd0f552){this['id']=_0xd0f552['id'],this[_0x241b('0x6')]=_0xd0f552[_0x241b('0x6')],this[_0x241b('0x33')]=_0xd0f552[_0x241b('0x33')],this[_0x241b('0x32')]=_0xd0f552[_0x241b('0x32')],this[_0x241b('0x23')]=!0x1;}get[_0x241b('0x19')](){return this[_0x241b('0x23')];}get[_0x241b('0x1d')](){const _0x6e42cc=this[_0x241b('0x33')][_0x241b('0x12')]('\x20');return 0x1===_0x6e42cc[_0x241b('0x30')]?this[_0x241b('0x18')](_0x6e42cc[0x0]):this['_getInitial'](_0x6e42cc[0x0])+this[_0x241b('0x18')](_0x6e42cc[_0x6e42cc[_0x241b('0x30')]-0x1]);}[_0x241b('0x18')](_0xcc14d3){return _0xcc14d3[_0x241b('0xb')](0x0)[_0x241b('0x34')]();}}function a(_0x120f6e,_0x46c4f4=''){return''==(_0x46c4f4=_0x46c4f4[_0x241b('0x1')]())?_0x1da2ec(_0x120f6e,_0x241b('0x21')):_0x46c4f4;}class u{constructor(_0xbe0037){this[_0x241b('0x15')]=_0xbe0037;}['getBackgroundColorClass'](){return _0x241b('0x38')+this[_0x241b('0x15')];}['getSelectionClass'](){return _0x241b('0xc')+this['_id'];}[_0x241b('0xa')](){return _0x241b('0x1a')+this[_0x241b('0x15')];}}
23
+ const _0x2abd=['add','trial-license-key-reached-limit-time','licenseKeyValid','requires','includes','context','users-add-duplicated-id','locale','users','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','info','name','trial-license-key-reached-limit-changes','users-me-missing-user','_lastColor','getMarkerClass','licenseKeyTrialLimit:revisions','anonymous-user','define','licenseKeyInvalid','Anonymous','addUser','isAnonymous','has','config','_myId','getSelectionClass','getBackgroundColorClass','color','invalid-license-key','_getInitial','toUpperCase','destroy','getUser','avatar','pluginName','_addAnonymousUser','users-me-already-defined','licenseKeyTrialLimit:operations','useAnonymousUser','_isAnonymous','licenseKey','_id','users-add-invalid-id','users.colorsCount','licenseKeyTrial','_licenseKeyCheckInterval','ck-user__selection--','users.anonymousUserId','trim','_locale','defineMe','length','decorate','split','Users','licenseKeyTrialLimit:time','string','get'];(function(_0x4f0f16,_0x2abdf5){const _0x57d86f=function(_0x25c8ca){while(--_0x25c8ca){_0x4f0f16['push'](_0x4f0f16['shift']());}};_0x57d86f(++_0x2abdf5);}(_0x2abd,0x1b0));const _0x57d8=function(_0x4f0f16,_0x2abdf5){_0x4f0f16=_0x4f0f16-0x0;let _0x57d86f=_0x2abd[_0x4f0f16];return _0x57d86f;};import{ContextPlugin as _0x34d480}from'ckeditor5/src/core';import{Collection as _0x3abf4a,CKEditorError as _0x3d6cea}from'ckeditor5/src/utils';import _0xe2efc2 from'./permissions';import{getTranslation as _0xb27d}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x34d480{static get[_0x57d8('0x10')](){return _0x57d8('0x24');}static get[_0x57d8('0x2b')](){return[_0xe2efc2];}constructor(_0x2da5bb){super(_0x2da5bb),this[_0x57d8('0x2d')]['config'][_0x57d8('0x3a')](_0x57d8('0x1d'),_0x57d8('0x39')),this[_0x57d8('0x2d')]['config'][_0x57d8('0x3a')]('users.colorsCount',0x8),this[_0x57d8('0x30')]=new _0x3abf4a(),this[_0x57d8('0x1f')]=_0x2da5bb[_0x57d8('0x2f')],this[_0x57d8('0x1b')]=null,this[_0x57d8('0x36')]=0x0,this[_0x57d8('0x6')]=null,this[_0x57d8('0x22')]('getOperationAuthor');}['init'](){const _0x507149=this[_0x57d8('0x2d')];this[_0x57d8('0x16')]=_0x507149[_0x57d8('0x5')][_0x57d8('0x27')]('licenseKey');const _0x1da112=[_0x57d8('0x1a'),_0x57d8('0x0'),_0x57d8('0x2a'),_0x57d8('0x13'),_0x57d8('0x25'),'licenseKeyTrialLimit:revisions'];this[_0x57d8('0x1b')]=setInterval(()=>{let _0x5a596f;for(const _0xfab245 in _0x507149){const _0x5407b3=_0x507149[_0xfab245];if(_0x1da112[_0x57d8('0x2c')](_0x5407b3)){delete _0x507149[_0xfab245],_0x5a596f=_0x5407b3;break;}}if(_0x57d8('0x0')===_0x5a596f)throw clearInterval(this[_0x57d8('0x1b')]),new _0x3d6cea(_0x57d8('0xa'),null);if(_0x57d8('0x1a')===_0x5a596f&&console[_0x57d8('0x32')](_0x57d8('0x31')),'licenseKeyTrialLimit:operations'===_0x5a596f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x3d6cea(_0x57d8('0x34'),null);if(_0x57d8('0x25')===_0x5a596f)throw clearInterval(this[_0x57d8('0x1b')]),new _0x3d6cea(_0x57d8('0x29'),null);if(_0x57d8('0x38')===_0x5a596f)throw clearInterval(this[_0x57d8('0x1b')]),new _0x3d6cea('trial-license-key-reached-limit-revisions',null);_0x57d8('0x2a')===_0x5a596f&&clearInterval(this[_0x57d8('0x1b')]);},0x3e8),this[_0x57d8('0x11')]();}get['me'](){return null==this['_myId']?null:this[_0x57d8('0xe')](this['_myId']);}[_0x57d8('0x2')]({id:_0x38e240,name:_0x4f5db9,..._0xab90a0}){if(!_0x38e240||_0x57d8('0x26')!=typeof _0x38e240)throw new _0x3d6cea(_0x57d8('0x18'));if(this[_0x57d8('0x30')][_0x57d8('0x4')](_0x38e240))throw new _0x3d6cea(_0x57d8('0x2e'),null,{'id':_0x38e240});const _0x2962af={..._0xab90a0,'id':_0x38e240,'name':a(this[_0x57d8('0x1f')],_0x4f5db9),'color':this['_getNextColor']()};_0x2962af[_0x57d8('0x33')]=a(this[_0x57d8('0x1f')],_0x2962af[_0x57d8('0x33')]);const _0x3133cf=new User(_0x2962af);return this['users'][_0x57d8('0x28')](_0x3133cf),_0x3133cf;}[_0x57d8('0xe')](_0x56a203){return this[_0x57d8('0x30')][_0x57d8('0x27')](_0x56a203);}[_0x57d8('0x14')](){const _0x203332=this['context'][_0x57d8('0x5')]['get'](_0x57d8('0x1d'));this['_myId']||this[_0x57d8('0x20')](_0x203332);}[_0x57d8('0x20')](_0x3d80b3){if(this['_myId'])throw new _0x3d6cea(_0x57d8('0x12'),null);if(!this['getUser'](_0x3d80b3))throw new _0x3d6cea(_0x57d8('0x35'),null);this[_0x57d8('0x6')]=_0x3d80b3;}['getOperationAuthor'](){return this['me'];}[_0x57d8('0xd')](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}['_getNextColor'](){const _0x2d9808=this['context'][_0x57d8('0x5')][_0x57d8('0x27')](_0x57d8('0x19'));return this[_0x57d8('0x36')]>=_0x2d9808&&(this['_lastColor']=0x0),new u(this[_0x57d8('0x36')]++);}[_0x57d8('0x11')](){const _0x1608cc=this[_0x57d8('0x2d')][_0x57d8('0x5')]['get'](_0x57d8('0x1d'));this[_0x57d8('0x2')]({'id':_0x1608cc,'name':_0xb27d(this['_locale'],_0x57d8('0x1'))})[_0x57d8('0x15')]=!0x0;}}export class User{constructor(_0x1c9478){this['id']=_0x1c9478['id'],this['color']=_0x1c9478[_0x57d8('0x9')],this[_0x57d8('0x33')]=_0x1c9478[_0x57d8('0x33')],this[_0x57d8('0xf')]=_0x1c9478[_0x57d8('0xf')],this[_0x57d8('0x15')]=!0x1;}get[_0x57d8('0x3')](){return this[_0x57d8('0x15')];}get['initials'](){const _0x5fdd93=this[_0x57d8('0x33')][_0x57d8('0x23')]('\x20');return 0x1===_0x5fdd93['length']?this[_0x57d8('0xb')](_0x5fdd93[0x0]):this[_0x57d8('0xb')](_0x5fdd93[0x0])+this[_0x57d8('0xb')](_0x5fdd93[_0x5fdd93[_0x57d8('0x21')]-0x1]);}[_0x57d8('0xb')](_0x48113f){return _0x48113f['charAt'](0x0)[_0x57d8('0xc')]();}}function a(_0x3b8b17,_0x1b5e69=''){return''==(_0x1b5e69=_0x1b5e69[_0x57d8('0x1e')]())?_0xb27d(_0x3b8b17,_0x57d8('0x1')):_0x1b5e69;}class u{constructor(_0x439401){this[_0x57d8('0x17')]=_0x439401;}[_0x57d8('0x8')](){return'ck-user__bg-color--'+this[_0x57d8('0x17')];}[_0x57d8('0x7')](){return _0x57d8('0x1c')+this[_0x57d8('0x17')];}[_0x57d8('0x37')](){return'ck-user__marker--'+this['_id'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x452229,_0x31c329){const t=_0x452229['t'];switch(_0x31c329){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'';}}
23
+ export function getTranslation(_0x391ede,_0x451bca){const t=_0x391ede['t'];switch(_0x451bca){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'';}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5bc0=['message','submit','locale','element','_removeConfirm','cancel','focus','render','registerChild','cancelConfirm','isConfirm','appendChild','once','destroy','remove','set','confirmView','fire'];(function(_0xa1ba4e,_0x5bc09b){var _0x2f04f0=function(_0x535b54){while(--_0x535b54){_0xa1ba4e['push'](_0xa1ba4e['shift']());}};_0x2f04f0(++_0x5bc09b);}(_0x5bc0,0x8e));var _0x2f04=function(_0xa1ba4e,_0x5bc09b){_0xa1ba4e=_0xa1ba4e-0x0;var _0x2f04f0=_0x5bc0[_0xa1ba4e];return _0x2f04f0;};import _0xc07ce1 from'./confirmview';export default function m(_0xe04acc){return class extends _0xe04acc{['showConfirm'](_0x35d19e,_0x3d2dbd){return this[_0x2f04('0x0')]=new _0xc07ce1(this[_0x2f04('0x4')]),this[_0x2f04('0x0')][_0x2f04('0x9')](),this[_0x2f04('0x0')][_0x2f04('0x2')]=_0x35d19e,this[_0x2f04('0x0')]['once'](_0x2f04('0x7'),()=>{this[_0x2f04('0x6')]();}),this[_0x2f04('0x0')][_0x2f04('0xe')](_0x2f04('0x3'),()=>{this['_removeConfirm']();}),_0x3d2dbd[_0x2f04('0xd')](this[_0x2f04('0x0')]['element']),this[_0x2f04('0xa')](this[_0x2f04('0x0')]),this[_0x2f04('0x5')][_0x2f04('0x8')](),this[_0x2f04('0x11')](_0x2f04('0xc'),!0x0),new Promise(_0x2a00e7=>this['confirmView']['on']('submit',_0x2a00e7));}[_0x2f04('0xb')](){this[_0x2f04('0xc')]&&this[_0x2f04('0x0')][_0x2f04('0x1')](_0x2f04('0x7'));}[_0x2f04('0x6')](){this[_0x2f04('0x5')]&&this['confirmView']&&this['confirmView'][_0x2f04('0x5')]&&(this[_0x2f04('0x5')][_0x2f04('0x8')](),this[_0x2f04('0x0')][_0x2f04('0x5')][_0x2f04('0x10')](),this['deregisterChild'](this[_0x2f04('0x0')]),this['isConfirm']=!0x1,this[_0x2f04('0x0')][_0x2f04('0xf')](),this[_0x2f04('0x0')]=void 0x0);}};}
23
+ var _0x193a=['once','appendChild','fire','focus','showConfirm','destroy','element','isConfirm','remove','submit','set','confirmView','_removeConfirm','cancel'];(function(_0x14fe0f,_0x193a83){var _0x23e247=function(_0x372238){while(--_0x372238){_0x14fe0f['push'](_0x14fe0f['shift']());}};_0x23e247(++_0x193a83);}(_0x193a,0xbc));var _0x23e2=function(_0x14fe0f,_0x193a83){_0x14fe0f=_0x14fe0f-0x0;var _0x23e247=_0x193a[_0x14fe0f];return _0x23e247;};import _0x36fe43 from'./confirmview';export default function m(_0x4c3848){return class extends _0x4c3848{[_0x23e2('0xc')](_0x490d16,_0x1f378a){return this[_0x23e2('0x5')]=new _0x36fe43(this['locale']),this[_0x23e2('0x5')]['render'](),this[_0x23e2('0x5')]['message']=_0x490d16,this['confirmView'][_0x23e2('0x8')](_0x23e2('0x7'),()=>{this[_0x23e2('0x6')]();}),this['confirmView'][_0x23e2('0x8')]('submit',()=>{this[_0x23e2('0x6')]();}),_0x1f378a[_0x23e2('0x9')](this['confirmView'][_0x23e2('0x0')]),this['registerChild'](this[_0x23e2('0x5')]),this[_0x23e2('0x0')]['focus'](),this[_0x23e2('0x4')](_0x23e2('0x1'),!0x0),new Promise(_0xee1cd0=>this[_0x23e2('0x5')]['on'](_0x23e2('0x3'),_0xee1cd0));}['cancelConfirm'](){this['isConfirm']&&this[_0x23e2('0x5')][_0x23e2('0xa')]('cancel');}['_removeConfirm'](){this['element']&&this[_0x23e2('0x5')]&&this[_0x23e2('0x5')]['element']&&(this[_0x23e2('0x0')][_0x23e2('0xb')](),this[_0x23e2('0x5')][_0x23e2('0x0')][_0x23e2('0x2')](),this['deregisterChild'](this[_0x23e2('0x5')]),this['isConfirm']=!0x1,this[_0x23e2('0x5')][_0x23e2('0xd')](),this[_0x23e2('0x5')]=void 0x0);}};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1415=['submit','Are\x20you\x20sure?','execute','ck-thread__remove-confirm-actions','_createButtonView','Yes','label','div','check','cancel','ck-thread__remove-confirm','extendTemplate','set','ck-thread__remove-confirm-','submitView','message','bindTemplate','cancelView'];(function(_0x17c8b3,_0x1415f1){const _0x538ce3=function(_0x421705){while(--_0x421705){_0x17c8b3['push'](_0x17c8b3['shift']());}};_0x538ce3(++_0x1415f1);}(_0x1415,0xc7));const _0x538c=function(_0x17c8b3,_0x1415f1){_0x17c8b3=_0x17c8b3-0x0;let _0x538ce3=_0x1415[_0x17c8b3];return _0x538ce3;};import{View as _0x4878eb,ButtonView as _0x2e5cef}from'ckeditor5/src/ui';import{icons as _0x30317f}from'ckeditor5/src/core';import{getTranslation as _0x7ffd67}from'./common-translations';export default class h extends _0x4878eb{constructor(_0xd9fc8){super(_0xd9fc8);const _0x5b91b9=this[_0x538c('0xf')];this['submitView']=this[_0x538c('0x3')](_0xd9fc8,_0x7ffd67(_0xd9fc8,_0x538c('0x4')),_0x30317f[_0x538c('0x7')],_0x538c('0x11')),this[_0x538c('0x10')]=this[_0x538c('0x3')](_0xd9fc8,_0x7ffd67(_0xd9fc8,'No'),_0x30317f[_0x538c('0x8')],'cancel'),this[_0x538c('0xb')](_0x538c('0xe'),_0x7ffd67(_0xd9fc8,_0x538c('0x0'))),this['setTemplate']({'tag':'div','attributes':{'class':[_0x538c('0x9')]},'children':[{'tag':_0x538c('0x6'),'attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x5b91b9['to'](_0x538c('0xe'))}]},{'tag':_0x538c('0x6'),'attributes':{'class':_0x538c('0x2')},'children':[this[_0x538c('0xd')],this[_0x538c('0x10')]]}]}]});}[_0x538c('0x3')](_0x5ad06b,_0x3087c7,_0xbd49b5,_0xfdb8eb){const _0x476861=new _0x2e5cef(_0x5ad06b);return _0x476861[_0x538c('0x5')]=_0x3087c7,_0x476861['icon']=_0xbd49b5,_0x476861[_0x538c('0xa')]({'attributes':{'class':_0x538c('0xc')+_0xfdb8eb}}),_0x476861['on'](_0x538c('0x1'),()=>this['fire'](_0xfdb8eb)),_0x476861;}}
23
+ const _0x35d2=['ck-thread__remove-confirm-inner','ck-thread__remove-confirm','check','label','set','submitView','extendTemplate','bindTemplate','fire','div','ck-thread__remove-confirm-','Are\x20you\x20sure?','_createButtonView','execute','setTemplate','cancel','Yes','icon','message'];(function(_0x3e06cf,_0x35d2a5){const _0xc5d96d=function(_0x2d99e7){while(--_0x2d99e7){_0x3e06cf['push'](_0x3e06cf['shift']());}};_0xc5d96d(++_0x35d2a5);}(_0x35d2,0x168));const _0xc5d9=function(_0x3e06cf,_0x35d2a5){_0x3e06cf=_0x3e06cf-0x0;let _0xc5d96d=_0x35d2[_0x3e06cf];return _0xc5d96d;};import{View as _0x2c2089,ButtonView as _0x59f22c}from'ckeditor5/src/ui';import{icons as _0x3f4032}from'ckeditor5/src/core';import{getTranslation as _0xfb1d0b}from'./common-translations';export default class h extends _0x2c2089{constructor(_0x18091a){super(_0x18091a);const _0x240b03=this[_0xc5d9('0x8')];this['submitView']=this[_0xc5d9('0xd')](_0x18091a,_0xfb1d0b(_0x18091a,_0xc5d9('0x11')),_0x3f4032[_0xc5d9('0x3')],'submit'),this['cancelView']=this['_createButtonView'](_0x18091a,_0xfb1d0b(_0x18091a,'No'),_0x3f4032[_0xc5d9('0x10')],_0xc5d9('0x10')),this[_0xc5d9('0x5')]('message',_0xfb1d0b(_0x18091a,_0xc5d9('0xc'))),this[_0xc5d9('0xf')]({'tag':'div','attributes':{'class':[_0xc5d9('0x2')]},'children':[{'tag':_0xc5d9('0xa'),'attributes':{'class':_0xc5d9('0x1')},'children':[{'tag':'p','children':[{'text':_0x240b03['to'](_0xc5d9('0x0'))}]},{'tag':_0xc5d9('0xa'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0xc5d9('0x6')],this['cancelView']]}]}]});}[_0xc5d9('0xd')](_0x546b78,_0x17cbd4,_0x1f2502,_0x15f199){const _0x3691eb=new _0x59f22c(_0x546b78);return _0x3691eb[_0xc5d9('0x4')]=_0x17cbd4,_0x3691eb[_0xc5d9('0x12')]=_0x1f2502,_0x3691eb[_0xc5d9('0x7')]({'attributes':{'class':_0xc5d9('0xb')+_0x15f199}}),_0x3691eb['on'](_0xc5d9('0xe'),()=>this[_0xc5d9('0x9')](_0x15f199)),_0x3691eb;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd975=['string','\x27Yesterday\x27\x20hh:mma','invalid-date-time-format','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','MM-dd-yyyy\x20hh:mma','dateTimeFormat'];(function(_0x26faac,_0xd975a1){const _0x5135c8=function(_0x2deb21){while(--_0x2deb21){_0x26faac['push'](_0x26faac['shift']());}};_0x5135c8(++_0xd975a1);}(_0xd975,0x107));const _0x5135=function(_0x26faac,_0xd975a1){_0x26faac=_0x26faac-0x0;let _0x5135c8=_0xd975[_0x26faac];return _0x5135c8;};import _0x2befe5 from'date-fns/format';import _0x163784 from'date-fns/parseISO';import _0x1c387f from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x17402a}from'ckeditor5/src/utils';export default function E(_0x5cea87={}){if(void 0x0!==_0x5cea87[_0x5135('0x2')]&&'function'!=typeof _0x5cea87[_0x5135('0x2')])throw new _0x17402a(_0x5135('0x5'));return _0x591bc7=>{const _0x463119=_0x5135('0x3')==typeof _0x591bc7?_0x163784(_0x591bc7):_0x591bc7,_0x2a9f2f=new Date(),_0x514120=_0x1c387f(_0x2a9f2f,_0x463119);return _0x5cea87['dateTimeFormat']?_0x5cea87[_0x5135('0x2')](_0x463119):_0x2befe5(_0x463119,0x0===_0x514120?_0x5135('0x6'):0x1===_0x514120?_0x5135('0x4'):_0x514120<0x7?_0x5135('0x0'):_0x5135('0x1'));};}
23
+ const _0x3d70=['function','string','invalid-date-time-format','\x27Today\x27\x20hh:mma','\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','dateTimeFormat'];(function(_0xd93470,_0x3d708a){const _0x203d72=function(_0x15e1e9){while(--_0x15e1e9){_0xd93470['push'](_0xd93470['shift']());}};_0x203d72(++_0x3d708a);}(_0x3d70,0x9d));const _0x203d=function(_0xd93470,_0x3d708a){_0xd93470=_0xd93470-0x0;let _0x203d72=_0x3d70[_0xd93470];return _0x203d72;};import _0x1ab64e from'date-fns/format';import _0x1d1e30 from'date-fns/parseISO';import _0xfc9b6b from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x2b9930}from'ckeditor5/src/utils';export default function E(_0x2134da={}){if(void 0x0!==_0x2134da[_0x203d('0x3')]&&_0x203d('0x4')!=typeof _0x2134da['dateTimeFormat'])throw new _0x2b9930(_0x203d('0x6'));return _0x1a39b5=>{const _0xd7a7a8=_0x203d('0x5')==typeof _0x1a39b5?_0x1d1e30(_0x1a39b5):_0x1a39b5,_0x5f02bd=new Date(),_0x637533=_0xfc9b6b(_0x5f02bd,_0xd7a7a8);return _0x2134da[_0x203d('0x3')]?_0x2134da['dateTimeFormat'](_0xd7a7a8):_0x1ab64e(_0xd7a7a8,0x0===_0x637533?_0x203d('0x0'):0x1===_0x637533?_0x203d('0x1'):_0x637533<0x7?'\x27Last\x27\x20EEEE\x20hh:mma':_0x203d('0x2'));};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b2c=['domConverter','mapper','getClientRects','filter','map','values','from','markerNameToElements','mapViewToDom','name','view','push','length'];(function(_0xe35fcf,_0x1b2c70){const _0x3f6d4b=function(_0x1a646b){while(--_0x1a646b){_0xe35fcf['push'](_0xe35fcf['shift']());}};_0x3f6d4b(++_0x1b2c70);}(_0x1b2c,0x9f));const _0x3f6d=function(_0xe35fcf,_0x1b2c70){_0xe35fcf=_0xe35fcf-0x0;let _0x3f6d4b=_0x1b2c[_0xe35fcf];return _0x3f6d4b;};import{first as _0x726890}from'ckeditor5/src/utils';export default function k(_0x1299ed,_0x1d1c10){const _0x519bec=_0x1299ed[_0x3f6d('0xb')]['markerNameToElements'](_0x1d1c10[_0x3f6d('0x6')]);if(!_0x519bec)return null;const _0x4af494=_0x726890(_0x519bec[_0x3f6d('0x2')]());return _0x1299ed[_0x3f6d('0x7')][_0x3f6d('0xa')]['mapViewToDom'](_0x4af494)||null;}export function getAllMarkersDomElementsSorted(_0x3b9300,_0x14247c){if(0x0===_0x14247c['length'])return null;const _0x2b4290=[],_0x5ea68d=_0x3b9300[_0x3f6d('0x7')][_0x3f6d('0xa')];for(const _0x14bc9f of _0x14247c){const _0x230d0a=_0x3b9300['mapper'][_0x3f6d('0x4')](_0x14bc9f[_0x3f6d('0x6')]);if(!_0x230d0a)continue;const _0x387d69=Array[_0x3f6d('0x3')](_0x230d0a)[_0x3f6d('0x1')](_0x2645ab=>_0x5ea68d[_0x3f6d('0x5')](_0x2645ab))[_0x3f6d('0x0')](_0x4f414f=>!!_0x4f414f);_0x2b4290[_0x3f6d('0x8')](..._0x387d69);}if(0x0===_0x2b4290[_0x3f6d('0x9')])return null;const _0x2eabe5=[];for(const _0x17c369 of _0x2b4290){const _0x25c16d=_0x17c369[_0x3f6d('0xc')]()['item'](0x0);_0x25c16d&&_0x2eabe5[_0x3f6d('0x8')]({'x':_0x25c16d['x'],'y':_0x25c16d['y'],'domElement':_0x17c369});}return 0x0===_0x2eabe5['length']?null:(_0x2eabe5['sort']((_0x368af0,_0x537063)=>_0x368af0['y']-_0x537063['y']||_0x368af0['x']-_0x537063['x']),_0x2eabe5[_0x3f6d('0x1')](_0x5c0ed9=>_0x5c0ed9['domElement']));}
23
+ const _0x2a17=['markerNameToElements','length','values','from','push','mapper','map','mapViewToDom','getClientRects','domConverter','item','view','name'];(function(_0x35cdf6,_0x2a1732){const _0x1fb927=function(_0x5ce35c){while(--_0x5ce35c){_0x35cdf6['push'](_0x35cdf6['shift']());}};_0x1fb927(++_0x2a1732);}(_0x2a17,0x146));const _0x1fb9=function(_0x35cdf6,_0x2a1732){_0x35cdf6=_0x35cdf6-0x0;let _0x1fb927=_0x2a17[_0x35cdf6];return _0x1fb927;};import{first as _0x38bef4}from'ckeditor5/src/utils';export default function k(_0x2bfed9,_0x38887c){const _0x5684f2=_0x2bfed9[_0x1fb9('0x4')][_0x1fb9('0xc')](_0x38887c[_0x1fb9('0xb')]);if(!_0x5684f2)return null;const _0x767dd9=_0x38bef4(_0x5684f2[_0x1fb9('0x1')]());return _0x2bfed9['view']['domConverter'][_0x1fb9('0x6')](_0x767dd9)||null;}export function getAllMarkersDomElementsSorted(_0x595404,_0x290529){if(0x0===_0x290529['length'])return null;const _0x5bd567=[],_0x4be18b=_0x595404[_0x1fb9('0xa')][_0x1fb9('0x8')];for(const _0x3a1325 of _0x290529){const _0x4906e3=_0x595404[_0x1fb9('0x4')]['markerNameToElements'](_0x3a1325['name']);if(!_0x4906e3)continue;const _0x548e43=Array[_0x1fb9('0x2')](_0x4906e3)[_0x1fb9('0x5')](_0x208a4e=>_0x4be18b[_0x1fb9('0x6')](_0x208a4e))['filter'](_0x3eddc9=>!!_0x3eddc9);_0x5bd567[_0x1fb9('0x3')](..._0x548e43);}if(0x0===_0x5bd567['length'])return null;const _0x283d2d=[];for(const _0x56c6b2 of _0x5bd567){const _0x22c7fc=_0x56c6b2[_0x1fb9('0x7')]()[_0x1fb9('0x9')](0x0);_0x22c7fc&&_0x283d2d['push']({'x':_0x22c7fc['x'],'y':_0x22c7fc['y'],'domElement':_0x56c6b2});}return 0x0===_0x283d2d[_0x1fb9('0x0')]?null:(_0x283d2d['sort']((_0x9b0fc4,_0x580f87)=>_0x9b0fc4['y']-_0x580f87['y']||_0x9b0fc4['x']-_0x580f87['x']),_0x283d2d['map'](_0x510bed=>_0x510bed['domElement']));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x222b=['number','sort','sign','charCodeAt','keys','toString','object','string','boolean'];(function(_0x24b01b,_0x222bd4){const _0x5e8542=function(_0x117b14){while(--_0x117b14){_0x24b01b['push'](_0x24b01b['shift']());}};_0x5e8542(++_0x222bd4);}(_0x222b,0xfe));const _0x5e85=function(_0x24b01b,_0x222bd4){_0x24b01b=_0x24b01b-0x0;let _0x5e8542=_0x222b[_0x24b01b];return _0x5e8542;};export default function b(_0x34e73a){let _0x539055=0x0,_0xce663d=0x0;for(const _0x3e9177 of g(_0x34e73a))_0x539055=(_0x539055<<0x5)-_0x539055+_0x3e9177,_0x539055&=_0x539055,[_0x539055,_0xce663d]=[_0xce663d,_0x539055];return O(_0x539055)+O(_0xce663d);}function*j(_0x8f13cf){_0x8f13cf?_0x5e85('0x6')==typeof _0x8f13cf?yield 0x1:Array['isArray'](_0x8f13cf)?yield*function*(_0xd703e9){for(const _0x52be73 of _0xd703e9)yield*j(_0x52be73);}(_0x8f13cf):_0x5e85('0x4')==typeof _0x8f13cf?yield*g(_0x8f13cf):_0x5e85('0x5')==typeof _0x8f13cf?yield*A(_0x8f13cf):_0x5e85('0x7')==typeof _0x8f13cf&&(yield _0x8f13cf):yield 0x0;}function*g(_0x59f74d){if(yield M('{'),_0x59f74d){const _0x3a74b8=Object[_0x5e85('0x2')](_0x59f74d)[_0x5e85('0x8')]();for(const _0x4c367f of _0x3a74b8){yield*A(_0x4c367f),yield M(':');const _0x4d1945=_0x59f74d[_0x4c367f];yield*j(_0x4d1945);}}yield M('}');}function*A(_0x21c094){yield M('\x22');for(const _0xca744a of _0x21c094)yield M(_0xca744a);yield M('\x22');}function M(_0x212897){return _0x212897[_0x5e85('0x1')](0x0);}function O(_0x571621){return(_0x571621*=Math[_0x5e85('0x0')](_0x571621))[_0x5e85('0x3')](0x24);}
23
+ const _0x3500=['string','isArray','boolean','toString','number','sort','keys','charCodeAt'];(function(_0x404c17,_0x3500bd){const _0x13653f=function(_0x1f02f8){while(--_0x1f02f8){_0x404c17['push'](_0x404c17['shift']());}};_0x13653f(++_0x3500bd);}(_0x3500,0x172));const _0x1365=function(_0x404c17,_0x3500bd){_0x404c17=_0x404c17-0x0;let _0x13653f=_0x3500[_0x404c17];return _0x13653f;};export default function b(_0x359b3d){let _0x2a42d0=0x0,_0x295163=0x0;for(const _0x3f1277 of g(_0x359b3d))_0x2a42d0=(_0x2a42d0<<0x5)-_0x2a42d0+_0x3f1277,_0x2a42d0&=_0x2a42d0,[_0x2a42d0,_0x295163]=[_0x295163,_0x2a42d0];return O(_0x2a42d0)+O(_0x295163);}function*j(_0x23429a){_0x23429a?_0x1365('0x0')==typeof _0x23429a?yield 0x1:Array[_0x1365('0x7')](_0x23429a)?yield*function*(_0x1801ad){for(const _0x235e60 of _0x1801ad)yield*j(_0x235e60);}(_0x23429a):'object'==typeof _0x23429a?yield*g(_0x23429a):_0x1365('0x6')==typeof _0x23429a?yield*A(_0x23429a):_0x1365('0x2')==typeof _0x23429a&&(yield _0x23429a):yield 0x0;}function*g(_0x5be4e2){if(yield M('{'),_0x5be4e2){const _0x528558=Object[_0x1365('0x4')](_0x5be4e2)[_0x1365('0x3')]();for(const _0xd39b41 of _0x528558){yield*A(_0xd39b41),yield M(':');const _0x443a97=_0x5be4e2[_0xd39b41];yield*j(_0x443a97);}}yield M('}');}function*A(_0x456594){yield M('\x22');for(const _0x11439c of _0x456594)yield M(_0x11439c);yield M('\x22');}function M(_0x125b83){return _0x125b83[_0x1365('0x5')](0x0);}function O(_0x555684){return(_0x555684*=Math['sign'](_0x555684))[_0x1365('0x1')](0x24);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5980=['substring','match','push','replace','length','pop','startsWith','indexOf','slice','split','join'];(function(_0x2b8432,_0x598061){const _0x11f752=function(_0x25db62){while(--_0x25db62){_0x2b8432['push'](_0x2b8432['shift']());}};_0x11f752(++_0x598061);}(_0x5980,0x11a));const _0x11f7=function(_0x2b8432,_0x598061){_0x2b8432=_0x2b8432-0x0;let _0x11f752=_0x5980[_0x2b8432];return _0x11f752;};export default function z(_0x2ef4da,{limit:_0x2afa93,suffix:_0x40b6e1='...'}){const _0x5c0684=[];let _0x1854b4=0x0;const _0x55e81f=_0x2ef4da[_0x11f7('0x7')](/</g,'\x0a<')[_0x11f7('0x7')](/>/g,'>\x0a')[_0x11f7('0x7')](/^\n/g,'')[_0x11f7('0x7')](/\n$/g,'')[_0x11f7('0x2')]('\x0a');for(let _0x13c75d=0x0;_0x13c75d<_0x55e81f['length'];_0x13c75d++){let _0x4d40ce=_0x55e81f[_0x13c75d];const _0x14aebd=Z(_0x4d40ce);if(_0x4d40ce[_0x11f7('0xa')]('<')){if(_0x1854b4>=_0x2afa93){const _0xe51ef6=_0x4d40ce[_0x11f7('0x5')](/[a-zA-Z]+/);if(!_0xe51ef6){_0x55e81f[_0x13c75d]='';continue;}const _0x1c6985=_0xe51ef6[0x0];_0x4d40ce[_0x11f7('0xa')]('</')?(_0x5c0684[_0x11f7('0x8')]&&(_0x4d40ce=''),_0x5c0684[_0x11f7('0x9')]()):(_0x5c0684[_0x11f7('0x6')](_0x1c6985),_0x4d40ce='');}}else{if(_0x1854b4>=_0x2afa93)_0x4d40ce='';else{if(_0x1854b4+_0x14aebd[_0x11f7('0x8')]>=_0x2afa93){let _0x4702c9=_0x2afa93-_0x1854b4;if('\x20'===_0x14aebd[_0x4702c9-0x1])_0x4702c9--;else{const _0x4cf715=_0x14aebd[_0x11f7('0x1')](_0x4702c9)[_0x11f7('0x0')]('\x20');-0x1!==_0x4cf715?_0x4702c9+=_0x4cf715:_0x4702c9=_0x4d40ce['length'];}_0x4d40ce=_0x14aebd[_0x11f7('0x1')](0x0,_0x4702c9)[_0x11f7('0x3')]('')+_0x40b6e1,_0x1854b4=_0x2afa93;}else _0x1854b4+=_0x14aebd[_0x11f7('0x8')];}}_0x55e81f[_0x13c75d]=_0x4d40ce;}return _0x55e81f['join']('\x0a')[_0x11f7('0x7')](/\n/g,'');}function Z(_0x36c494){const _0x477cca=[];for(let _0x24dfc4=0x0;_0x24dfc4<_0x36c494['length'];_0x24dfc4++){const _0x2d60ef=_0x36c494[_0x11f7('0x4')](_0x24dfc4)['match'](/^&[a-z0-9#]+;/);if(_0x2d60ef){const _0x20d8c6=_0x2d60ef[0x0];_0x477cca[_0x11f7('0x6')](_0x20d8c6),_0x24dfc4+=_0x20d8c6[_0x11f7('0x8')]-0x1;}else _0x477cca[_0x11f7('0x6')](_0x36c494[_0x24dfc4]);}return _0x477cca;}
23
+ const _0x4eb6=['length','startsWith','match','pop','...','push','split','slice','replace','substring','join'];(function(_0x110da4,_0x4eb6c4){const _0x44cfb5=function(_0x7bd29d){while(--_0x7bd29d){_0x110da4['push'](_0x110da4['shift']());}};_0x44cfb5(++_0x4eb6c4);}(_0x4eb6,0xab));const _0x44cf=function(_0x110da4,_0x4eb6c4){_0x110da4=_0x110da4-0x0;let _0x44cfb5=_0x4eb6[_0x110da4];return _0x44cfb5;};export default function z(_0x479bc8,{limit:_0x1489d,suffix:_0x44ebe0=_0x44cf('0x9')}){const _0x16dafb=[];let _0x1b6e71=0x0;const _0x25c3a0=_0x479bc8[_0x44cf('0x2')](/</g,'\x0a<')[_0x44cf('0x2')](/>/g,'>\x0a')[_0x44cf('0x2')](/^\n/g,'')[_0x44cf('0x2')](/\n$/g,'')[_0x44cf('0x0')]('\x0a');for(let _0x4e3018=0x0;_0x4e3018<_0x25c3a0[_0x44cf('0x5')];_0x4e3018++){let _0x12c01f=_0x25c3a0[_0x4e3018];const _0x59c960=Z(_0x12c01f);if(_0x12c01f[_0x44cf('0x6')]('<')){if(_0x1b6e71>=_0x1489d){const _0x253655=_0x12c01f[_0x44cf('0x7')](/[a-zA-Z]+/);if(!_0x253655){_0x25c3a0[_0x4e3018]='';continue;}const _0x16a992=_0x253655[0x0];_0x12c01f[_0x44cf('0x6')]('</')?(_0x16dafb[_0x44cf('0x5')]&&(_0x12c01f=''),_0x16dafb[_0x44cf('0x8')]()):(_0x16dafb[_0x44cf('0xa')](_0x16a992),_0x12c01f='');}}else{if(_0x1b6e71>=_0x1489d)_0x12c01f='';else{if(_0x1b6e71+_0x59c960['length']>=_0x1489d){let _0x297f3b=_0x1489d-_0x1b6e71;if('\x20'===_0x59c960[_0x297f3b-0x1])_0x297f3b--;else{const _0xa5e92b=_0x59c960[_0x44cf('0x1')](_0x297f3b)['indexOf']('\x20');-0x1!==_0xa5e92b?_0x297f3b+=_0xa5e92b:_0x297f3b=_0x12c01f[_0x44cf('0x5')];}_0x12c01f=_0x59c960[_0x44cf('0x1')](0x0,_0x297f3b)[_0x44cf('0x4')]('')+_0x44ebe0,_0x1b6e71=_0x1489d;}else _0x1b6e71+=_0x59c960[_0x44cf('0x5')];}}_0x25c3a0[_0x4e3018]=_0x12c01f;}return _0x25c3a0['join']('\x0a')[_0x44cf('0x2')](/\n/g,'');}function Z(_0x46b77d){const _0x513eb5=[];for(let _0x4d43b0=0x0;_0x4d43b0<_0x46b77d['length'];_0x4d43b0++){const _0x32954b=_0x46b77d[_0x44cf('0x3')](_0x4d43b0)[_0x44cf('0x7')](/^&[a-z0-9#]+;/);if(_0x32954b){const _0x3784bc=_0x32954b[0x0];_0x513eb5['push'](_0x3784bc),_0x4d43b0+=_0x3784bc[_0x44cf('0x5')]-0x1;}else _0x513eb5[_0x44cf('0xa')](_0x46b77d[_0x4d43b0]);}return _0x513eb5;}