@ckeditor/ckeditor5-collaboration-core 34.1.0 → 34.2.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.
@@ -14,7 +14,7 @@ msgid ""
14
14
  msgstr ""
15
15
  "Language-Team: Spanish (https://www.transifex.com/ckeditor/teams/11143/es/)\n"
16
16
  "Language: es\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
19
19
  msgctxt "A label for the anonymous user icon"
20
20
  msgid "Anonymous"
@@ -14,7 +14,7 @@ msgid ""
14
14
  msgstr ""
15
15
  "Language-Team: French (https://www.transifex.com/ckeditor/teams/11143/fr/)\n"
16
16
  "Language: fr\n"
17
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
+ "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
19
19
  msgctxt "A label for the anonymous user icon"
20
20
  msgid "Anonymous"
@@ -14,7 +14,7 @@ msgid ""
14
14
  msgstr ""
15
15
  "Language-Team: Italian (https://www.transifex.com/ckeditor/teams/11143/it/)\n"
16
16
  "Language: it\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
19
19
  msgctxt "A label for the anonymous user icon"
20
20
  msgid "Anonymous"
@@ -14,7 +14,7 @@ msgid ""
14
14
  msgstr ""
15
15
  "Language-Team: Portuguese (Brazil) (https://www.transifex.com/ckeditor/teams/11143/pt_BR/)\n"
16
16
  "Language: pt_BR\n"
17
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
+ "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
18
18
 
19
19
  msgctxt "A label for the anonymous user icon"
20
20
  msgid "Anonymous"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "34.1.0",
3
+ "version": "34.2.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": "^34.1.0",
31
+ "ckeditor5": "^34.2.0",
32
32
  "date-fns": "^2.17.0"
33
33
  }
34
34
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37ab=['plugins','no-permissions','clearForceDisabled','isEnabled','setPermissions','setAdminPermissions','addCommentThread','collaboration.channelId','CommentsOnly','editors','config','permissions-set-permissions-invalid-channel-id','context','find','forceDisabled','get','disableReadOnlyMode','noPermissions','comment:write','commands','enableReadOnlyMode','comment:admin','pluginName','CommentsRepository','has','Permissions','includes'];(function(_0x1ecdeb,_0x37aba7){const _0x82df2=function(_0x10f1a5){while(--_0x10f1a5){_0x1ecdeb['push'](_0x1ecdeb['shift']());}};_0x82df2(++_0x37aba7);}(_0x37ab,0xe5));const _0x82df=function(_0x1ecdeb,_0x37aba7){_0x1ecdeb=_0x1ecdeb-0x0;let _0x82df2=_0x37ab[_0x1ecdeb];return _0x82df2;};import{ContextPlugin as _0x5224df,Editor as _0x202a08}from'ckeditor5/src/core';import{CKEditorError as _0x27ff79}from'ckeditor5/src/utils';export default class i extends _0x5224df{static get[_0x82df('0x9')](){return _0x82df('0xc');}[_0x82df('0x12')](_0x34b72b,_0x4edda4){let _0x580978;if(_0x4edda4||(_0x4edda4=this['context'][_0x82df('0x18')][_0x82df('0x2')](_0x82df('0x15'))),this[_0x82df('0x1a')][_0x82df('0x18')][_0x82df('0x2')](_0x82df('0x15'))==_0x4edda4?_0x580978=this[_0x82df('0x1a')]:this[_0x82df('0x1a')]['editors']&&(_0x580978=this['context'][_0x82df('0x17')][_0x82df('0x0')](_0xa2a731=>_0xa2a731['config'][_0x82df('0x2')](_0x82df('0x15'))==_0x4edda4)),!_0x580978)throw new _0x27ff79(_0x82df('0x19'),null);const _0x2d5b84=_0x580978[_0x82df('0xe')],_0x1a5b1d=_0x580978 instanceof _0x202a08,_0x4f7b00=_0x2d5b84[_0x82df('0xb')]('CommentsRepository')&&_0x2d5b84[_0x82df('0x2')](_0x82df('0xa')),_0x20e8ff=_0x2d5b84[_0x82df('0xb')](_0x82df('0x16'))&&_0x2d5b84[_0x82df('0x2')](_0x82df('0x16')),_0x214f49=_0x34b72b[_0x82df('0xd')]('document:write'),_0x2a3d6d=_0x34b72b[_0x82df('0xd')](_0x82df('0x8')),_0x4a2c8a=_0x34b72b[_0x82df('0xd')](_0x82df('0x5'))||_0x2a3d6d;(_0x20e8ff&&(_0x20e8ff[_0x82df('0x11')]=!_0x214f49&&_0x4a2c8a),_0x1a5b1d)&&(!(_0x214f49||_0x4a2c8a&&_0x4f7b00)?_0x580978[_0x82df('0x7')]('no-permissions'):_0x580978[_0x82df('0x3')](_0x82df('0xf')));if(_0x4f7b00){_0x4f7b00['switchReadOnly'](!_0x4a2c8a,_0x4edda4),_0x4f7b00[_0x82df('0x13')](_0x2a3d6d,_0x4edda4);const _0x1bc256=_0x1a5b1d&&_0x580978[_0x82df('0x6')][_0x82df('0x2')](_0x82df('0x14'));_0x1bc256&&(_0x4a2c8a?_0x1bc256[_0x82df('0x10')](_0x82df('0x4')):_0x1bc256[_0x82df('0x1')](_0x82df('0x4')));}}}
23
+ const _0x1561=['commands','setPermissions','find','config','includes','pluginName','enableReadOnlyMode','disableReadOnlyMode','plugins','collaboration.channelId','context','no-permissions','clearForceDisabled','comment:admin','get','noPermissions','setAdminPermissions','CommentsOnly','switchReadOnly','addCommentThread','CommentsRepository','comment:write','editors','document:write','permissions-set-permissions-invalid-channel-id','has'];(function(_0x2d2cfe,_0x1561dd){const _0xf43ff9=function(_0xcf4f1d){while(--_0xcf4f1d){_0x2d2cfe['push'](_0x2d2cfe['shift']());}};_0xf43ff9(++_0x1561dd);}(_0x1561,0x121));const _0xf43f=function(_0x2d2cfe,_0x1561dd){_0x2d2cfe=_0x2d2cfe-0x0;let _0xf43ff9=_0x1561[_0x2d2cfe];return _0xf43ff9;};import{ContextPlugin as _0x10e323,Editor as _0x5e7df0}from'ckeditor5/src/core';import{CKEditorError as _0x8ef101}from'ckeditor5/src/utils';export default class i extends _0x10e323{static get[_0xf43f('0x2')](){return'Permissions';}[_0xf43f('0x18')](_0x51aed0,_0x55f98e){let _0x237c18;if(_0x55f98e||(_0x55f98e=this['context']['config']['get'](_0xf43f('0x6'))),this['context']['config']['get'](_0xf43f('0x6'))==_0x55f98e?_0x237c18=this[_0xf43f('0x7')]:this['context'][_0xf43f('0x13')]&&(_0x237c18=this[_0xf43f('0x7')]['editors'][_0xf43f('0x19')](_0x573cc2=>_0x573cc2[_0xf43f('0x0')][_0xf43f('0xb')](_0xf43f('0x6'))==_0x55f98e)),!_0x237c18)throw new _0x8ef101(_0xf43f('0x15'),null);const _0x70c29e=_0x237c18[_0xf43f('0x5')],_0x55f8e3=_0x237c18 instanceof _0x5e7df0,_0x8d988=_0x70c29e[_0xf43f('0x16')](_0xf43f('0x11'))&&_0x70c29e[_0xf43f('0xb')](_0xf43f('0x11')),_0x36931f=_0x70c29e['has'](_0xf43f('0xe'))&&_0x70c29e[_0xf43f('0xb')](_0xf43f('0xe')),_0x257bc5=_0x51aed0[_0xf43f('0x1')](_0xf43f('0x14')),_0x572653=_0x51aed0[_0xf43f('0x1')](_0xf43f('0xa')),_0x4c16b1=_0x51aed0['includes'](_0xf43f('0x12'))||_0x572653;(_0x36931f&&(_0x36931f['isEnabled']=!_0x257bc5&&_0x4c16b1),_0x55f8e3)&&(!(_0x257bc5||_0x4c16b1&&_0x8d988)?_0x237c18[_0xf43f('0x3')]('no-permissions'):_0x237c18[_0xf43f('0x4')](_0xf43f('0x8')));if(_0x8d988){_0x8d988[_0xf43f('0xf')](!_0x4c16b1,_0x55f98e),_0x8d988[_0xf43f('0xd')](_0x572653,_0x55f98e);const _0x10b01b=_0x55f8e3&&_0x237c18[_0xf43f('0x17')]['get'](_0xf43f('0x10'));_0x10b01b&&(_0x4c16b1?_0x10b01b[_0xf43f('0x9')](_0xf43f('0xc')):_0x10b01b['forceDisabled'](_0xf43f('0xc')));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import'../theme/suggestion.css';import'../theme/suggestionmarker.css';import'../theme/integrations/image.css';import'../theme/integrations/horizontalline.css';import'../theme/integrations/mediaembed.css';import'../theme/integrations/pagebreak.css';import'../theme/integrations/table.css';
23
+ import'../theme/suggestion.css';import'../theme/suggestionmarker.css';import'../theme/integrations/image.css';import'../theme/integrations/horizontalline.css';import'../theme/integrations/mediaembed.css';import'../theme/integrations/pagebreak.css';import'../theme/integrations/table.css';import'../theme/integrations/codeblock.css';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22bc=['ck-user__anonymous','url(\x27','initials','ck-user','ck-user__avatar','isAnonymous','setTemplate','ck-user__img','name','avatar','push','ck\x20ck-user__name'];(function(_0x5cb5e8,_0x22bc7e){const _0x4a3821=function(_0x317dd4){while(--_0x317dd4){_0x5cb5e8['push'](_0x5cb5e8['shift']());}};_0x4a3821(++_0x22bc7e);}(_0x22bc,0x1e9));const _0x4a38=function(_0x5cb5e8,_0x22bc7e){_0x5cb5e8=_0x5cb5e8-0x0;let _0x4a3821=_0x22bc[_0x5cb5e8];return _0x4a3821;};import{View as _0x19cbdc}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class _ extends _0x19cbdc{constructor(_0x1be055,_0x478c13){super(_0x1be055),this[_0x4a38('0xb')]=_0x478c13[_0x4a38('0xb')];const _0x5ba09b=['ck',_0x4a38('0xa')];_0x478c13[_0x4a38('0x8')]&&_0x5ba09b[_0x4a38('0x1')](_0x4a38('0x3')),_0x478c13[_0x4a38('0x0')]&&_0x5ba09b[_0x4a38('0x1')](_0x4a38('0x7')),this[_0x4a38('0x9')]({'tag':'div','attributes':{'class':['ck',_0x4a38('0x6')],'data-user-id':_0x478c13['id']},'children':[{'tag':'div','attributes':{'class':_0x5ba09b,'style':{'background-image':_0x478c13['avatar']?_0x4a38('0x4')+_0x478c13[_0x4a38('0x0')]+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x478c13[_0x4a38('0x0')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x4a38('0x2')},'children':[{'text':_0x478c13[_0x4a38('0x5')]}]}]});}}
23
+ const _0x2d82=['push','name','initials','div','ck-user__anonymous','ck\x20ck-user__name','ck-user__img','setTemplate','isAnonymous','ck-user__avatar','url(\x27','ck-user','avatar','ck\x20ck-user__name\x20ck-user__name--hidden'];(function(_0x4d3436,_0x2d828a){const _0x28aa02=function(_0x32ee63){while(--_0x32ee63){_0x4d3436['push'](_0x4d3436['shift']());}};_0x28aa02(++_0x2d828a);}(_0x2d82,0x1a8));const _0x28aa=function(_0x4d3436,_0x2d828a){_0x4d3436=_0x4d3436-0x0;let _0x28aa02=_0x2d82[_0x4d3436];return _0x28aa02;};import{View as _0x55ffc0}from'ckeditor5/src/ui';import'../../../theme/users.css';export default class _ extends _0x55ffc0{constructor(_0x44e5b2,_0x21899a){super(_0x44e5b2),this[_0x28aa('0xb')]=_0x21899a[_0x28aa('0xb')];const _0x1b4ad4=['ck',_0x28aa('0x2')];_0x21899a[_0x28aa('0x4')]&&_0x1b4ad4['push'](_0x28aa('0x0')),_0x21899a['avatar']&&_0x1b4ad4[_0x28aa('0xa')](_0x28aa('0x5')),this[_0x28aa('0x3')]({'tag':_0x28aa('0xd'),'attributes':{'class':['ck',_0x28aa('0x7')],'data-user-id':_0x21899a['id']},'children':[{'tag':_0x28aa('0xd'),'attributes':{'class':_0x1b4ad4,'style':{'background-image':_0x21899a['avatar']?_0x28aa('0x6')+_0x21899a[_0x28aa('0x8')]+'\x27)':''}}},{'tag':_0x28aa('0xd'),'attributes':{'class':_0x21899a[_0x28aa('0x8')]?_0x28aa('0x9'):_0x28aa('0x1')},'children':[{'text':_0x21899a[_0x28aa('0xc')]}]}]});}}
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x332a=['_getNextColor','initials','toUpperCase','users.colorsCount','getMarkerClass','name','split','destroy','get','_lastColor','has','_myId','_id','users-me-already-defined','users.anonymousUserId','users-add-invalid-id','trial-license-key-reached-limit','define','users-add-duplicated-id','anonymous-user','Anonymous','ck-user__selection--','isAnonymous','_licenseKeyCheckInterval','_addAnonymousUser','licenseKeyValid','decorate','licenseKey','getSelectionClass','Users','context','string','ck-user__marker--','addUser','_getInitial','getUser','length','invalid-license-key','licenseKeyInvalid','config','init','ck-user__bg-color--','licenseKeyTrialLimit','defineMe','color','getOperationAuthor','licenseKeyTrial','trim','assign','_isAnonymous','_locale','requires','avatar','users'];(function(_0x5174cd,_0x332a86){const _0x57b80c=function(_0x1747ef){while(--_0x1747ef){_0x5174cd['push'](_0x5174cd['shift']());}};_0x57b80c(++_0x332a86);}(_0x332a,0x1ba));const _0x57b8=function(_0x5174cd,_0x332a86){_0x5174cd=_0x5174cd-0x0;let _0x57b80c=_0x332a[_0x5174cd];return _0x57b80c;};import{ContextPlugin as _0x422e81}from'ckeditor5/src/core';import{Collection as _0x2f5c5a,CKEditorError as _0x4f5723}from'ckeditor5/src/utils';import _0x4b147b from'./permissions';import{getTranslation as _0x337e60}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x422e81{static get['pluginName'](){return _0x57b8('0x13');}static get[_0x57b8('0x29')](){return[_0x4b147b];}constructor(_0x4b74bf){super(_0x4b74bf),_0x4b74bf[_0x57b8('0x1d')][_0x57b8('0x7')](_0x57b8('0x4'),_0x57b8('0x9')),_0x4b74bf[_0x57b8('0x1d')][_0x57b8('0x7')](_0x57b8('0x2f'),0x8),this[_0x57b8('0x2b')]=new _0x2f5c5a(),this[_0x57b8('0x28')]=_0x4b74bf['locale'],this[_0x57b8('0xd')]=null,this['_lastColor']=0x0,this['_myId']=null,this[_0x57b8('0x10')](_0x57b8('0x23'));}[_0x57b8('0x1e')](){const _0x414172=this['context'];this[_0x57b8('0x11')]=_0x414172['config'][_0x57b8('0x34')](_0x57b8('0x11')),this[_0x57b8('0xd')]=setInterval(()=>{let _0x30d2de;for(const _0x489255 in _0x414172){const _0x39ff46=_0x414172[_0x489255];if(_0x57b8('0x24')===_0x39ff46||_0x57b8('0x1c')===_0x39ff46||_0x57b8('0xf')===_0x39ff46||'licenseKeyTrialLimit'==_0x39ff46){delete _0x414172[_0x489255],_0x30d2de=_0x39ff46;break;}}if(_0x57b8('0x1c')===_0x30d2de)throw clearInterval(this[_0x57b8('0xd')]),new _0x4f5723(_0x57b8('0x1b'),null);if(_0x57b8('0x24')===_0x30d2de&&console['info']('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.'),_0x57b8('0x20')===_0x30d2de)throw clearInterval(this[_0x57b8('0xd')]),new _0x4f5723(_0x57b8('0x6'),null);_0x57b8('0xf')===_0x30d2de&&clearInterval(this[_0x57b8('0xd')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x57b8('0x1')]?null:this[_0x57b8('0x19')](this[_0x57b8('0x1')]);}[_0x57b8('0x17')](_0x4b7381){if(!(_0x4b7381=Object[_0x57b8('0x26')]({},_0x4b7381,{'color':this['_getNextColor']()}))['id']||_0x57b8('0x15')!=typeof _0x4b7381['id'])throw new _0x4f5723(_0x57b8('0x5'));if(this['users'][_0x57b8('0x0')](_0x4b7381['id']))throw new _0x4f5723(_0x57b8('0x8'),null,{'id':_0x4b7381['id']});_0x4b7381[_0x57b8('0x31')]=function(_0x10c5ee,_0x2ef016=''){return''==(_0x2ef016=_0x2ef016[_0x57b8('0x25')]())?_0x337e60(_0x10c5ee,'Anonymous'):_0x2ef016;}(this['_locale'],_0x4b7381[_0x57b8('0x31')]);const _0x4066d3=new u(_0x4b7381);return this['users']['add'](_0x4066d3),_0x4066d3;}[_0x57b8('0x19')](_0x32a8db){return this[_0x57b8('0x2b')][_0x57b8('0x34')](_0x32a8db);}['useAnonymousUser'](){const _0x4fae3b=this[_0x57b8('0x14')]['config'][_0x57b8('0x34')]('users.anonymousUserId');this[_0x57b8('0x1')]||this[_0x57b8('0x21')](_0x4fae3b);}['defineMe'](_0x4506a5){if(this[_0x57b8('0x1')])throw new _0x4f5723(_0x57b8('0x3'),null);if(!this['getUser'](_0x4506a5))throw new _0x4f5723('users-me-missing-user',null);this[_0x57b8('0x1')]=_0x4506a5;}['getOperationAuthor'](){return this['me'];}['destroy'](){super[_0x57b8('0x33')](),clearInterval(this[_0x57b8('0xd')]);}[_0x57b8('0x2c')](){const _0xf97efb=this[_0x57b8('0x14')][_0x57b8('0x1d')][_0x57b8('0x34')]('users.colorsCount');return this[_0x57b8('0x35')]>=_0xf97efb&&(this['_lastColor']=0x0),new h(this[_0x57b8('0x35')]++);}[_0x57b8('0xe')](){const _0x3f3d14=this['context'][_0x57b8('0x1d')]['get'](_0x57b8('0x4'));this[_0x57b8('0x17')]({'id':_0x3f3d14,'name':_0x337e60(this[_0x57b8('0x28')],_0x57b8('0xa'))})[_0x57b8('0x27')]=!0x0;}}class u{constructor(_0x460e9e){this['id']=_0x460e9e['id'],this[_0x57b8('0x22')]=_0x460e9e[_0x57b8('0x22')],this['name']=_0x460e9e[_0x57b8('0x31')],this['avatar']=_0x460e9e[_0x57b8('0x2a')],this[_0x57b8('0x27')]=!0x1;}get[_0x57b8('0xc')](){return this['_isAnonymous'];}get[_0x57b8('0x2d')](){const _0x373eff=this[_0x57b8('0x31')][_0x57b8('0x32')]('\x20');return 0x1===_0x373eff[_0x57b8('0x1a')]?this[_0x57b8('0x18')](_0x373eff[0x0]):this['_getInitial'](_0x373eff[0x0])+this[_0x57b8('0x18')](_0x373eff[_0x373eff[_0x57b8('0x1a')]-0x1]);}[_0x57b8('0x18')](_0x478447){return _0x478447['charAt'](0x0)[_0x57b8('0x2e')]();}}class h{constructor(_0x4953e1){this['_id']=_0x4953e1;}['getBackgroundColorClass'](){return _0x57b8('0x1f')+this[_0x57b8('0x2')];}[_0x57b8('0x12')](){return _0x57b8('0xb')+this[_0x57b8('0x2')];}[_0x57b8('0x30')](){return _0x57b8('0x16')+this[_0x57b8('0x2')];}}
23
+ const _0x10f3=['_getInitial','get','users.colorsCount','licenseKeyTrialLimit','add','init','_getNextColor','users-me-missing-user','config','color','initials','licenseKey','ck-user__selection--','context','licenseKeyValid','getMarkerClass','addUser','Users','defineMe','destroy','split','name','locale','useAnonymousUser','toUpperCase','define','_id','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','licenseKeyInvalid','users-add-invalid-id','users.anonymousUserId','_licenseKeyCheckInterval','users','length','_isAnonymous','licenseKeyTrial','getOperationAuthor','getUser','Anonymous','_lastColor','trial-license-key-reached-limit','getSelectionClass','isAnonymous','_addAnonymousUser','_myId','_locale'];(function(_0x8714f4,_0x10f3f5){const _0x104dd3=function(_0x32949f){while(--_0x32949f){_0x8714f4['push'](_0x8714f4['shift']());}};_0x104dd3(++_0x10f3f5);}(_0x10f3,0x87));const _0x104d=function(_0x8714f4,_0x10f3f5){_0x8714f4=_0x8714f4-0x0;let _0x104dd3=_0x10f3[_0x8714f4];return _0x104dd3;};import{ContextPlugin as _0x3c1f23}from'ckeditor5/src/core';import{Collection as _0x104b43,CKEditorError as _0x19a7aa}from'ckeditor5/src/utils';import _0x2701f0 from'./permissions';import{getTranslation as _0x484639}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x3c1f23{static get['pluginName'](){return _0x104d('0x17');}static get['requires'](){return[_0x2701f0];}constructor(_0x534f24){super(_0x534f24),_0x534f24['config']['define']('users.anonymousUserId','anonymous-user'),_0x534f24['config'][_0x104d('0x1f')](_0x104d('0x8'),0x8),this[_0x104d('0x27')]=new _0x104b43(),this[_0x104d('0x5')]=_0x534f24[_0x104d('0x1c')],this[_0x104d('0x26')]=null,this[_0x104d('0x2e')]=0x0,this[_0x104d('0x4')]=null,this['decorate'](_0x104d('0x2b'));}[_0x104d('0xb')](){const _0x22336c=this['context'];this[_0x104d('0x11')]=_0x22336c['config'][_0x104d('0x7')](_0x104d('0x11')),this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb666aa;for(const _0x75ae26 in _0x22336c){const _0xcef565=_0x22336c[_0x75ae26];if(_0x104d('0x2a')===_0xcef565||'licenseKeyInvalid'===_0xcef565||'licenseKeyValid'===_0xcef565||_0x104d('0x9')==_0xcef565){delete _0x22336c[_0x75ae26],_0xb666aa=_0xcef565;break;}}if(_0x104d('0x23')===_0xb666aa)throw clearInterval(this[_0x104d('0x26')]),new _0x19a7aa('invalid-license-key',null);if(_0x104d('0x2a')===_0xb666aa&&console['info'](_0x104d('0x21')),_0x104d('0x9')===_0xb666aa)throw clearInterval(this[_0x104d('0x26')]),new _0x19a7aa(_0x104d('0x0'),null);_0x104d('0x14')===_0xb666aa&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x104d('0x3')]();}get['me'](){return null==this['_myId']?null:this['getUser'](this[_0x104d('0x4')]);}[_0x104d('0x16')](_0x4fcf7b){if(!(_0x4fcf7b=Object['assign']({},_0x4fcf7b,{'color':this[_0x104d('0xc')]()}))['id']||'string'!=typeof _0x4fcf7b['id'])throw new _0x19a7aa(_0x104d('0x24'));if(this['users']['has'](_0x4fcf7b['id']))throw new _0x19a7aa('users-add-duplicated-id',null,{'id':_0x4fcf7b['id']});_0x4fcf7b[_0x104d('0x1b')]=function(_0x2a3a53,_0x221397=''){return''==(_0x221397=_0x221397['trim']())?_0x484639(_0x2a3a53,_0x104d('0x2d')):_0x221397;}(this[_0x104d('0x5')],_0x4fcf7b['name']);const _0x16254d=new u(_0x4fcf7b);return this[_0x104d('0x27')][_0x104d('0xa')](_0x16254d),_0x16254d;}['getUser'](_0x48a777){return this[_0x104d('0x27')]['get'](_0x48a777);}[_0x104d('0x1d')](){const _0x12c239=this[_0x104d('0x13')]['config'][_0x104d('0x7')](_0x104d('0x25'));this[_0x104d('0x4')]||this[_0x104d('0x18')](_0x12c239);}[_0x104d('0x18')](_0x202211){if(this['_myId'])throw new _0x19a7aa('users-me-already-defined',null);if(!this[_0x104d('0x2c')](_0x202211))throw new _0x19a7aa(_0x104d('0xd'),null);this[_0x104d('0x4')]=_0x202211;}[_0x104d('0x2b')](){return this['me'];}[_0x104d('0x19')](){super[_0x104d('0x19')](),clearInterval(this[_0x104d('0x26')]);}['_getNextColor'](){const _0x3db09a=this['context'][_0x104d('0xe')][_0x104d('0x7')](_0x104d('0x8'));return this[_0x104d('0x2e')]>=_0x3db09a&&(this['_lastColor']=0x0),new h(this[_0x104d('0x2e')]++);}[_0x104d('0x3')](){const _0x38682c=this[_0x104d('0x13')]['config'][_0x104d('0x7')](_0x104d('0x25'));this['addUser']({'id':_0x38682c,'name':_0x484639(this['_locale'],_0x104d('0x2d'))})['_isAnonymous']=!0x0;}}class u{constructor(_0x2efaf4){this['id']=_0x2efaf4['id'],this[_0x104d('0xf')]=_0x2efaf4[_0x104d('0xf')],this[_0x104d('0x1b')]=_0x2efaf4[_0x104d('0x1b')],this[_0x104d('0x22')]=_0x2efaf4['avatar'],this[_0x104d('0x29')]=!0x1;}get[_0x104d('0x2')](){return this[_0x104d('0x29')];}get[_0x104d('0x10')](){const _0x4d3c5c=this[_0x104d('0x1b')][_0x104d('0x1a')]('\x20');return 0x1===_0x4d3c5c[_0x104d('0x28')]?this[_0x104d('0x6')](_0x4d3c5c[0x0]):this[_0x104d('0x6')](_0x4d3c5c[0x0])+this[_0x104d('0x6')](_0x4d3c5c[_0x4d3c5c['length']-0x1]);}[_0x104d('0x6')](_0x440dad){return _0x440dad['charAt'](0x0)[_0x104d('0x1e')]();}}class h{constructor(_0x3cfdff){this[_0x104d('0x20')]=_0x3cfdff;}['getBackgroundColorClass'](){return'ck-user__bg-color--'+this[_0x104d('0x20')];}[_0x104d('0x1')](){return _0x104d('0x12')+this[_0x104d('0x20')];}[_0x104d('0x15')](){return'ck-user__marker--'+this[_0x104d('0x20')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x156241,_0x4713a6){const t=_0x156241['t'];switch(_0x4713a6){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');}}
23
+ export function getTranslation(_0x4457a4,_0x291b4a){const t=_0x4457a4['t'];switch(_0x291b4a){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x169d=['isConfirm','message','deregisterChild','destroy','confirmView','once','element','cancel','remove','_removeConfirm','set','registerChild','render','submit'];(function(_0x215f95,_0x169dad){var _0x4058c9=function(_0x461081){while(--_0x461081){_0x215f95['push'](_0x215f95['shift']());}};_0x4058c9(++_0x169dad);}(_0x169d,0xf0));var _0x4058=function(_0x215f95,_0x169dad){_0x215f95=_0x215f95-0x0;var _0x4058c9=_0x169d[_0x215f95];return _0x4058c9;};import _0x2a9c7a from'./confirmview';export default{'showConfirm'(_0x415594,_0x2a536d){return this[_0x4058('0x2')]=new _0x2a9c7a(this['locale']),this[_0x4058('0x2')][_0x4058('0xa')](),this[_0x4058('0x2')][_0x4058('0xd')]=_0x415594,this[_0x4058('0x2')][_0x4058('0x3')](_0x4058('0x5'),()=>{this[_0x4058('0x7')]();}),this[_0x4058('0x2')][_0x4058('0x3')](_0x4058('0xb'),()=>{this[_0x4058('0x7')]();}),_0x2a536d['appendChild'](this['confirmView'][_0x4058('0x4')]),this[_0x4058('0x9')](this[_0x4058('0x2')]),this[_0x4058('0x8')]('isConfirm',!0x0),new Promise(_0x180277=>this[_0x4058('0x2')]['on'](_0x4058('0xb'),_0x180277));},'cancelConfirm'(){this[_0x4058('0xc')]&&this['confirmView']['fire'](_0x4058('0x5'));},'_removeConfirm'(){this[_0x4058('0x2')]['element'][_0x4058('0x6')](),this[_0x4058('0x0')](this[_0x4058('0x2')]),this['isConfirm']=!0x1,this[_0x4058('0x2')][_0x4058('0x1')](),delete this[_0x4058('0x2')];}};
23
+ var _0x5497=['deregisterChild','confirmView','set','isConfirm','message','cancel','destroy','remove','_removeConfirm','once','submit','element'];(function(_0x5e1611,_0x549761){var _0x544358=function(_0x45e70f){while(--_0x45e70f){_0x5e1611['push'](_0x5e1611['shift']());}};_0x544358(++_0x549761);}(_0x5497,0x1ef));var _0x5443=function(_0x5e1611,_0x549761){_0x5e1611=_0x5e1611-0x0;var _0x544358=_0x5497[_0x5e1611];return _0x544358;};import _0x2b56f7 from'./confirmview';export default{'showConfirm'(_0x3e2b9f,_0x39cc71){return this[_0x5443('0xa')]=new _0x2b56f7(this['locale']),this[_0x5443('0xa')]['render'](),this[_0x5443('0xa')][_0x5443('0x1')]=_0x3e2b9f,this['confirmView'][_0x5443('0x6')]('cancel',()=>{this[_0x5443('0x5')]();}),this[_0x5443('0xa')][_0x5443('0x6')](_0x5443('0x7'),()=>{this[_0x5443('0x5')]();}),_0x39cc71['appendChild'](this[_0x5443('0xa')][_0x5443('0x8')]),this['registerChild'](this[_0x5443('0xa')]),this[_0x5443('0xb')](_0x5443('0x0'),!0x0),new Promise(_0x2cfecd=>this['confirmView']['on'](_0x5443('0x7'),_0x2cfecd));},'cancelConfirm'(){this[_0x5443('0x0')]&&this[_0x5443('0xa')]['fire'](_0x5443('0x2'));},'_removeConfirm'(){this[_0x5443('0xa')][_0x5443('0x8')][_0x5443('0x4')](),this[_0x5443('0x9')](this[_0x5443('0xa')]),this[_0x5443('0x0')]=!0x1,this[_0x5443('0xa')][_0x5443('0x3')](),delete this[_0x5443('0xa')];}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5134=['setTemplate','message','set','ck-thread__remove-confirm-','submit','label','_createButtonView','submitView','extendTemplate','icon','Are\x20you\x20sure?','cancelView','div','ck-thread__remove-confirm-actions','cancel','ck-thread__remove-confirm-inner'];(function(_0x1e6fb3,_0x5134b6){const _0x225d60=function(_0x564d42){while(--_0x564d42){_0x1e6fb3['push'](_0x1e6fb3['shift']());}};_0x225d60(++_0x5134b6);}(_0x5134,0xe3));const _0x225d=function(_0x1e6fb3,_0x5134b6){_0x1e6fb3=_0x1e6fb3-0x0;let _0x225d60=_0x5134[_0x1e6fb3];return _0x225d60;};import{View as _0x37a37c,ButtonView as _0x547aaa}from'ckeditor5/src/ui';import{icons as _0x324bfe}from'ckeditor5/src/core';import{getTranslation as _0x1a9ea5}from'./common-translations';export default class m extends _0x37a37c{constructor(_0x3ae19e){super(_0x3ae19e);const _0x4a18c1=this['bindTemplate'];this[_0x225d('0x4')]=this[_0x225d('0x3')](_0x3ae19e,_0x1a9ea5(_0x3ae19e,'Yes'),_0x324bfe['check'],_0x225d('0x1')),this['cancelView']=this[_0x225d('0x3')](_0x3ae19e,_0x1a9ea5(_0x3ae19e,'No'),_0x324bfe[_0x225d('0xb')],_0x225d('0xb')),this[_0x225d('0xf')](_0x225d('0xe'),_0x1a9ea5(_0x3ae19e,_0x225d('0x7'))),this[_0x225d('0xd')]({'tag':_0x225d('0x9'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':_0x225d('0xc')},'children':[{'tag':'p','children':[{'text':_0x4a18c1['to'](_0x225d('0xe'))}]},{'tag':'div','attributes':{'class':_0x225d('0xa')},'children':[this['submitView'],this[_0x225d('0x8')]]}]}]});}['_createButtonView'](_0x93b1ea,_0x4349c3,_0x1c80b0,_0x31efdf){const _0x181c8f=new _0x547aaa(_0x93b1ea);return _0x181c8f[_0x225d('0x2')]=_0x4349c3,_0x181c8f[_0x225d('0x6')]=_0x1c80b0,_0x181c8f[_0x225d('0x5')]({'attributes':{'class':_0x225d('0x0')+_0x31efdf}}),_0x181c8f['on']('execute',()=>this['fire'](_0x31efdf)),_0x181c8f;}}
23
+ const _0x31e2=['check','cancel','cancelView','submitView','setTemplate','execute','div','_createButtonView','message','ck-thread__remove-confirm-','submit','set','label','ck-thread__remove-confirm-actions','extendTemplate'];(function(_0x49f0e8,_0x31e24b){const _0x2b983b=function(_0x5aef3e){while(--_0x5aef3e){_0x49f0e8['push'](_0x49f0e8['shift']());}};_0x2b983b(++_0x31e24b);}(_0x31e2,0x19a));const _0x2b98=function(_0x49f0e8,_0x31e24b){_0x49f0e8=_0x49f0e8-0x0;let _0x2b983b=_0x31e2[_0x49f0e8];return _0x2b983b;};import{View as _0x36ede4,ButtonView as _0x4a8802}from'ckeditor5/src/ui';import{icons as _0x546d16}from'ckeditor5/src/core';import{getTranslation as _0xcf4d70}from'./common-translations';export default class m extends _0x36ede4{constructor(_0x1f044b){super(_0x1f044b);const _0x174df3=this['bindTemplate'];this[_0x2b98('0xd')]=this[_0x2b98('0x2')](_0x1f044b,_0xcf4d70(_0x1f044b,'Yes'),_0x546d16[_0x2b98('0xa')],_0x2b98('0x5')),this[_0x2b98('0xc')]=this[_0x2b98('0x2')](_0x1f044b,_0xcf4d70(_0x1f044b,'No'),_0x546d16[_0x2b98('0xb')],_0x2b98('0xb')),this[_0x2b98('0x6')]('message',_0xcf4d70(_0x1f044b,'Are\x20you\x20sure?')),this[_0x2b98('0xe')]({'tag':_0x2b98('0x1'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x174df3['to'](_0x2b98('0x3'))}]},{'tag':'div','attributes':{'class':_0x2b98('0x8')},'children':[this[_0x2b98('0xd')],this[_0x2b98('0xc')]]}]}]});}['_createButtonView'](_0x1c7d2d,_0x40f1a2,_0x450d91,_0x16e126){const _0x2b7f34=new _0x4a8802(_0x1c7d2d);return _0x2b7f34[_0x2b98('0x7')]=_0x40f1a2,_0x2b7f34['icon']=_0x450d91,_0x2b7f34[_0x2b98('0x9')]({'attributes':{'class':_0x2b98('0x4')+_0x16e126}}),_0x2b7f34['on'](_0x2b98('0x0'),()=>this['fire'](_0x16e126)),_0x2b7f34;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5312=['MM-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma','dateTimeFormat','function','invalid-date-time-format','\x27Today\x27\x20hh:mma'];(function(_0x4e41df,_0x5312bd){const _0x752af5=function(_0x31f3f3){while(--_0x31f3f3){_0x4e41df['push'](_0x4e41df['shift']());}};_0x752af5(++_0x5312bd);}(_0x5312,0x1ad));const _0x752a=function(_0x4e41df,_0x5312bd){_0x4e41df=_0x4e41df-0x0;let _0x752af5=_0x5312[_0x4e41df];return _0x752af5;};import _0xe629ba from'date-fns/format';import _0x27661e from'date-fns/parseISO';import _0x39a750 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x53485d}from'ckeditor5/src/utils';export default function E(_0x39c5ae={}){if(void 0x0!==_0x39c5ae['dateTimeFormat']&&_0x752a('0x0')!=typeof _0x39c5ae[_0x752a('0x5')])throw new _0x53485d(_0x752a('0x1'));return _0x428392=>{const _0x3fbf07='string'==typeof _0x428392?_0x27661e(_0x428392):_0x428392,_0x3f5f3e=new Date(),_0x4b2260=_0x39a750(_0x3f5f3e,_0x3fbf07);return _0x39c5ae[_0x752a('0x5')]?_0x39c5ae[_0x752a('0x5')](_0x3fbf07):_0xe629ba(_0x3fbf07,0x0===_0x4b2260?_0x752a('0x2'):0x1===_0x4b2260?_0x752a('0x4'):_0x4b2260<0x7?'\x27Last\x27\x20EEEE\x20hh:mma':_0x752a('0x3'));};}
23
+ const _0x320c=['\x27Yesterday\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','invalid-date-time-format','string','\x27Today\x27\x20hh:mma','dateTimeFormat'];(function(_0x4c5658,_0x320c24){const _0x484885=function(_0x1a8b57){while(--_0x1a8b57){_0x4c5658['push'](_0x4c5658['shift']());}};_0x484885(++_0x320c24);}(_0x320c,0x1a4));const _0x4848=function(_0x4c5658,_0x320c24){_0x4c5658=_0x4c5658-0x0;let _0x484885=_0x320c[_0x4c5658];return _0x484885;};import _0x15463b from'date-fns/format';import _0x3bba07 from'date-fns/parseISO';import _0x53dbde from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x38f27e}from'ckeditor5/src/utils';export default function E(_0x5a4215={}){if(void 0x0!==_0x5a4215['dateTimeFormat']&&'function'!=typeof _0x5a4215[_0x4848('0x5')])throw new _0x38f27e(_0x4848('0x2'));return _0x44f6e7=>{const _0x40c3f1=_0x4848('0x3')==typeof _0x44f6e7?_0x3bba07(_0x44f6e7):_0x44f6e7,_0x4b8fd5=new Date(),_0x5df2cf=_0x53dbde(_0x4b8fd5,_0x40c3f1);return _0x5a4215[_0x4848('0x5')]?_0x5a4215[_0x4848('0x5')](_0x40c3f1):_0x15463b(_0x40c3f1,0x0===_0x5df2cf?_0x4848('0x4'):0x1===_0x5df2cf?_0x4848('0x0'):_0x5df2cf<0x7?_0x4848('0x1'):'MM-dd-yyyy\x20hh:mma');};}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x78bd=['markerNameToElements','mapper','mapViewToDom','values','name','view'];(function(_0x5637cf,_0x78bdd7){const _0x41b78e=function(_0x48f914){while(--_0x48f914){_0x5637cf['push'](_0x5637cf['shift']());}};_0x41b78e(++_0x78bdd7);}(_0x78bd,0x1ce));const _0x41b7=function(_0x5637cf,_0x78bdd7){_0x5637cf=_0x5637cf-0x0;let _0x41b78e=_0x78bd[_0x5637cf];return _0x41b78e;};import{first as _0x4dfc32}from'ckeditor5/src/utils';export default function x(_0x159e63,_0x17e24c){const _0x16766d=_0x159e63[_0x41b7('0x1')][_0x41b7('0x0')](_0x17e24c[_0x41b7('0x4')]),_0x142f80=_0x4dfc32(_0x16766d[_0x41b7('0x3')]());return _0x159e63[_0x41b7('0x5')]['domConverter'][_0x41b7('0x2')](_0x142f80);}
23
+ const _0xa3a1=['markerNameToElements','mapViewToDom','view','domConverter'];(function(_0x315a3e,_0xa3a1a4){const _0x10daa4=function(_0x3556d8){while(--_0x3556d8){_0x315a3e['push'](_0x315a3e['shift']());}};_0x10daa4(++_0xa3a1a4);}(_0xa3a1,0x133));const _0x10da=function(_0x315a3e,_0xa3a1a4){_0x315a3e=_0x315a3e-0x0;let _0x10daa4=_0xa3a1[_0x315a3e];return _0x10daa4;};import{first as _0x2ea9cf}from'ckeditor5/src/utils';export default function x(_0x43ec50,_0x52f08c){const _0x3cfccd=_0x43ec50['mapper'][_0x10da('0x1')](_0x52f08c['name']),_0x35cb04=_0x2ea9cf(_0x3cfccd['values']());return _0x43ec50[_0x10da('0x3')][_0x10da('0x0')][_0x10da('0x2')](_0x35cb04);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2333=['match','push','replace','join','indexOf','substring','split','slice','length','pop','startsWith','...'];(function(_0x1ad52d,_0x23330f){const _0x53d268=function(_0x5ddd5e){while(--_0x5ddd5e){_0x1ad52d['push'](_0x1ad52d['shift']());}};_0x53d268(++_0x23330f);}(_0x2333,0xd4));const _0x53d2=function(_0x1ad52d,_0x23330f){_0x1ad52d=_0x1ad52d-0x0;let _0x53d268=_0x2333[_0x1ad52d];return _0x53d268;};export default function g(_0x187792,{limit:_0x2ab69b,suffix:_0x33da22=_0x53d2('0x3')}){const _0x28c127=[];let _0x225ebe=0x0;const _0x4f9400=_0x187792[_0x53d2('0x6')](/</g,'\x0a<')[_0x53d2('0x6')](/>/g,'>\x0a')[_0x53d2('0x6')](/^\n/g,'')[_0x53d2('0x6')](/\n$/g,'')[_0x53d2('0xa')]('\x0a');for(let _0x3a902c=0x0;_0x3a902c<_0x4f9400['length'];_0x3a902c++){let _0x19e2ca=_0x4f9400[_0x3a902c];const _0x2cafbb=z(_0x19e2ca);if(_0x19e2ca[_0x53d2('0x2')]('<')){if(_0x225ebe>=_0x2ab69b){const _0x1e0d0b=_0x19e2ca[_0x53d2('0x4')](/[a-zA-Z]+/)[0x0];_0x19e2ca[_0x53d2('0x2')]('</')?(_0x28c127['length']&&(_0x19e2ca=''),_0x28c127[_0x53d2('0x1')]()):(_0x28c127[_0x53d2('0x5')](_0x1e0d0b),_0x19e2ca='');}}else{if(_0x225ebe>=_0x2ab69b)_0x19e2ca='';else{if(_0x225ebe+_0x2cafbb[_0x53d2('0x0')]>=_0x2ab69b){let _0x4730d4=_0x2ab69b-_0x225ebe;if('\x20'===_0x2cafbb[_0x4730d4-0x1])_0x4730d4--;else{const _0x5054db=_0x2cafbb[_0x53d2('0xb')](_0x4730d4)[_0x53d2('0x8')]('\x20');-0x1!==_0x5054db?_0x4730d4+=_0x5054db:_0x4730d4=_0x19e2ca[_0x53d2('0x0')];}_0x19e2ca=_0x2cafbb['slice'](0x0,_0x4730d4)[_0x53d2('0x7')]('')+_0x33da22,_0x225ebe=_0x2ab69b;}else _0x225ebe+=_0x2cafbb[_0x53d2('0x0')];}}_0x4f9400[_0x3a902c]=_0x19e2ca;}return _0x4f9400[_0x53d2('0x7')]('\x0a')[_0x53d2('0x6')](/\n/g,'');}function z(_0x539610){const _0x23a576=[];for(let _0x56b54f=0x0;_0x56b54f<_0x539610[_0x53d2('0x0')];_0x56b54f++){const _0xb3ad0f=_0x539610[_0x53d2('0x9')](_0x56b54f)['match'](/^&[a-z0-9#]+;/);if(_0xb3ad0f){const _0x3ef2dc=_0xb3ad0f[0x0];_0x23a576[_0x53d2('0x5')](_0x3ef2dc),_0x56b54f+=_0x3ef2dc['length']-0x1;}else _0x23a576[_0x53d2('0x5')](_0x539610[_0x56b54f]);}return _0x23a576;}
23
+ const _0x395d=['replace','match','join','pop','substring','startsWith','...','split','push','length','slice'];(function(_0xe53062,_0x395d17){const _0x549aae=function(_0xfb41c7){while(--_0xfb41c7){_0xe53062['push'](_0xe53062['shift']());}};_0x549aae(++_0x395d17);}(_0x395d,0xa0));const _0x549a=function(_0xe53062,_0x395d17){_0xe53062=_0xe53062-0x0;let _0x549aae=_0x395d[_0xe53062];return _0x549aae;};export default function g(_0x386f47,{limit:_0x4c13e1,suffix:_0x457486=_0x549a('0x0')}){const _0x2c38b5=[];let _0x2ace73=0x0;const _0x3940f0=_0x386f47['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x549a('0x5')](/^\n/g,'')['replace'](/\n$/g,'')[_0x549a('0x1')]('\x0a');for(let _0x57e7fa=0x0;_0x57e7fa<_0x3940f0[_0x549a('0x3')];_0x57e7fa++){let _0x4b142c=_0x3940f0[_0x57e7fa];const _0x2339df=z(_0x4b142c);if(_0x4b142c['startsWith']('<')){if(_0x2ace73>=_0x4c13e1){const _0x5247eb=_0x4b142c[_0x549a('0x6')](/[a-zA-Z]+/)[0x0];_0x4b142c[_0x549a('0xa')]('</')?(_0x2c38b5[_0x549a('0x3')]&&(_0x4b142c=''),_0x2c38b5[_0x549a('0x8')]()):(_0x2c38b5['push'](_0x5247eb),_0x4b142c='');}}else{if(_0x2ace73>=_0x4c13e1)_0x4b142c='';else{if(_0x2ace73+_0x2339df[_0x549a('0x3')]>=_0x4c13e1){let _0x87900e=_0x4c13e1-_0x2ace73;if('\x20'===_0x2339df[_0x87900e-0x1])_0x87900e--;else{const _0x2c1065=_0x2339df[_0x549a('0x4')](_0x87900e)['indexOf']('\x20');-0x1!==_0x2c1065?_0x87900e+=_0x2c1065:_0x87900e=_0x4b142c[_0x549a('0x3')];}_0x4b142c=_0x2339df[_0x549a('0x4')](0x0,_0x87900e)['join']('')+_0x457486,_0x2ace73=_0x4c13e1;}else _0x2ace73+=_0x2339df[_0x549a('0x3')];}}_0x3940f0[_0x57e7fa]=_0x4b142c;}return _0x3940f0[_0x549a('0x7')]('\x0a')[_0x549a('0x5')](/\n/g,'');}function z(_0x372885){const _0x43486c=[];for(let _0x5a4c83=0x0;_0x5a4c83<_0x372885[_0x549a('0x3')];_0x5a4c83++){const _0x4f6ac9=_0x372885[_0x549a('0x9')](_0x5a4c83)[_0x549a('0x6')](/^&[a-z0-9#]+;/);if(_0x4f6ac9){const _0x3b8541=_0x4f6ac9[0x0];_0x43486c[_0x549a('0x2')](_0x3b8541),_0x5a4c83+=_0x3b8541['length']-0x1;}else _0x43486c[_0x549a('0x2')](_0x372885[_0x5a4c83]);}return _0x43486c;}
@@ -0,0 +1,8 @@
1
+ .ck-content pre > code.ck-suggestion-marker-formatBlock {
2
+ display: block;
3
+ box-shadow: -7px 0 0 0 hsl(0deg 0% 93%), -10px 0 0 0 var(--ck-color-suggestion-marker-format-border);
4
+
5
+ &.ck-suggestion-marker--active {
6
+ box-shadow: -5px 0 0 0 hsl(0deg 0% 93%), -8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);
7
+ }
8
+ }