@ckeditor/ckeditor5-collaboration-core 35.3.1 → 35.4.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 +2 -2
- package/src/permissions.js +1 -1
- package/src/users/view/userview.js +1 -1
- package/src/users.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.js +1 -1
- package/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/trim-html.js +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
3
|
-
"version": "35.
|
3
|
+
"version": "35.4.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": "^35.
|
31
|
+
"ckeditor5": "^35.4.0",
|
32
32
|
"date-fns": "^2.17.0"
|
33
33
|
}
|
34
34
|
}
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2067=['comment:admin','disableReadOnlyMode','includes','enableReadOnlyMode','editors','commands','config','document:write','permissions-set-permissions-invalid-channel-id','has','clearForceDisabled','get','find','context','collaboration.channelId','CommentsOnly','plugins','no-permissions','switchReadOnly','noPermissions','setAdminPermissions','Permissions','setPermissions','isEnabled'];(function(_0x62eedc,_0x2067cb){const _0x335c78=function(_0x243c9a){while(--_0x243c9a){_0x62eedc['push'](_0x62eedc['shift']());}};_0x335c78(++_0x2067cb);}(_0x2067,0x7d));const _0x335c=function(_0x62eedc,_0x2067cb){_0x62eedc=_0x62eedc-0x0;let _0x335c78=_0x2067[_0x62eedc];return _0x335c78;};import{ContextPlugin as _0x3373d1,Editor as _0x15be7c}from'ckeditor5/src/core';import{CKEditorError as _0x1f9364}from'ckeditor5/src/utils';export default class i extends _0x3373d1{static get['pluginName'](){return _0x335c('0x10');}[_0x335c('0x11')](_0x1b9eaa,_0x5ea864){let _0x53c520;if(_0x5ea864||(_0x5ea864=this[_0x335c('0x8')][_0x335c('0x1')][_0x335c('0x6')](_0x335c('0x9'))),this['context'][_0x335c('0x1')][_0x335c('0x6')](_0x335c('0x9'))==_0x5ea864?_0x53c520=this['context']:this['context'][_0x335c('0x17')]&&(_0x53c520=this[_0x335c('0x8')][_0x335c('0x17')][_0x335c('0x7')](_0x532e6e=>_0x532e6e[_0x335c('0x1')][_0x335c('0x6')](_0x335c('0x9'))==_0x5ea864)),!_0x53c520)throw new _0x1f9364(_0x335c('0x3'),null);const _0x2da67b=_0x53c520[_0x335c('0xb')],_0x2b5799=_0x53c520 instanceof _0x15be7c,_0x4f3065=_0x2da67b['has']('CommentsRepository')&&_0x2da67b[_0x335c('0x6')]('CommentsRepository'),_0x141065=_0x2da67b[_0x335c('0x4')](_0x335c('0xa'))&&_0x2da67b['get']('CommentsOnly'),_0x532ea4=_0x1b9eaa[_0x335c('0x15')](_0x335c('0x2')),_0x1d3ec2=_0x1b9eaa['includes'](_0x335c('0x13')),_0xedb58=_0x1b9eaa[_0x335c('0x15')]('comment:write')||_0x1d3ec2;(_0x141065&&(_0x141065[_0x335c('0x12')]=!_0x532ea4&&_0xedb58),_0x2b5799)&&(!(_0x532ea4||_0xedb58&&_0x4f3065)?_0x53c520[_0x335c('0x16')](_0x335c('0xc')):_0x53c520[_0x335c('0x14')](_0x335c('0xc')));if(_0x4f3065){_0x4f3065[_0x335c('0xd')](!_0xedb58,_0x5ea864),_0x4f3065[_0x335c('0xf')](_0x1d3ec2,_0x5ea864);const _0x47b905=_0x2b5799&&_0x53c520[_0x335c('0x0')]['get']('addCommentThread');_0x47b905&&(_0xedb58?_0x47b905[_0x335c('0x5')](_0x335c('0xe')):_0x47b905['forceDisabled'](_0x335c('0xe')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4d92=['setTemplate','isAnonymous','ck\x20ck-user__name\x20ck-user__name--hidden','extendTemplate','ck-user','ck-user__img','ck-user__anonymous','avatar','ck-user__avatar','div','content','push','notificationView','ck-user__notification','ck\x20ck-user__name'];(function(_0x205494,_0x4d92f8){const _0x6c44b4=function(_0x20ee7a){while(--_0x20ee7a){_0x205494['push'](_0x205494['shift']());}};_0x6c44b4(++_0x4d92f8);}(_0x4d92,0xeb));const _0x6c44=function(_0x205494,_0x4d92f8){_0x205494=_0x205494-0x0;let _0x6c44b4=_0x4d92[_0x205494];return _0x6c44b4;};import{View as _0x42ad34,IconView as _0x5c384c}from'ckeditor5/src/ui';import _0x1069c8 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class w extends _0x42ad34{constructor(_0x4a74b9,_0x3e4fad,_0x247196){super(_0x4a74b9),this['name']=_0x3e4fad['name'],this[_0x6c44('0x2')]=null;const _0x460dd8=['ck',_0x6c44('0xa')];if(_0x3e4fad[_0x6c44('0x6')]&&_0x460dd8[_0x6c44('0x1')](_0x6c44('0xb')),_0x3e4fad[_0x6c44('0xc')]&&_0x460dd8[_0x6c44('0x1')](_0x6c44('0xd')),_0x247196){const _0x4760bd=new _0x5c384c();_0x4760bd[_0x6c44('0x8')]({'attributes':{'class':['ck-user__icon']}}),_0x4760bd[_0x6c44('0x0')]=_0x1069c8,this[_0x6c44('0x2')]={'tag':_0x6c44('0xe'),'attributes':{'class':['ck',_0x6c44('0x3')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x247196},'children':[_0x4760bd]};}const _0x477544=[{'tag':'div','attributes':{'class':_0x460dd8,'style':{'background-image':_0x3e4fad[_0x6c44('0xc')]?'url(\x27'+_0x3e4fad[_0x6c44('0xc')]+'\x27)':''}}},{'tag':_0x6c44('0xe'),'attributes':{'class':_0x3e4fad[_0x6c44('0xc')]?_0x6c44('0x7'):_0x6c44('0x4')},'children':[{'text':_0x3e4fad['initials']}]}];this[_0x6c44('0x2')]&&_0x477544['push'](this[_0x6c44('0x2')]),this[_0x6c44('0x5')]({'tag':'div','attributes':{'class':['ck',_0x6c44('0x9')],'data-user-id':_0x3e4fad['id']},'children':_0x477544});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x17dc=['invalid-license-key','ck-user__bg-color--','users','users-me-missing-user','anonymous-user','users-add-duplicated-id','destroy','name','requires','getMarkerClass','users.colorsCount','assign','decorate','length','define','isAnonymous','locale','licenseKey','users-me-already-defined','ck-user__selection--','ck-user__marker--','get','getOperationAuthor','color','users-add-invalid-id','trial-license-key-reached-limit-time','getBackgroundColorClass','string','context','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.','charAt','licenseKeyTrialLimit:operations','licenseKeyValid','initials','avatar','licenseKeyTrial','users.anonymousUserId','licenseKeyTrialLimit:revisions','_licenseKeyCheckInterval','_locale','pluginName','getUser','toUpperCase','trial-license-key-reached-limit-revisions','licenseKeyTrialLimit:time','_getInitial','Anonymous','getSelectionClass','_isAnonymous','_getNextColor','licenseKeyInvalid','config','trial-license-key-reached-limit-changes','_id','_lastColor','_myId'];(function(_0x3e1260,_0x17dc06){const _0x2e957a=function(_0x22ef5f){while(--_0x22ef5f){_0x3e1260['push'](_0x3e1260['shift']());}};_0x2e957a(++_0x17dc06);}(_0x17dc,0x168));const _0x2e95=function(_0x3e1260,_0x17dc06){_0x3e1260=_0x3e1260-0x0;let _0x2e957a=_0x17dc[_0x3e1260];return _0x2e957a;};import{ContextPlugin as _0x13a018}from'ckeditor5/src/core';import{Collection as _0x51ae52,CKEditorError as _0x2fa18d}from'ckeditor5/src/utils';import _0x3dc5d3 from'./permissions';import{getTranslation as _0x1d0d7f}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x13a018{static get[_0x2e95('0x10')](){return'Users';}static get[_0x2e95('0x28')](){return[_0x3dc5d3];}constructor(_0x29c049){super(_0x29c049),_0x29c049[_0x2e95('0x1b')][_0x2e95('0x2e')](_0x2e95('0xc'),_0x2e95('0x24')),_0x29c049[_0x2e95('0x1b')][_0x2e95('0x2e')](_0x2e95('0x2a'),0x8),this[_0x2e95('0x22')]=new _0x51ae52(),this[_0x2e95('0xf')]=_0x29c049[_0x2e95('0x30')],this[_0x2e95('0xe')]=null,this[_0x2e95('0x1e')]=0x0,this['_myId']=null,this[_0x2e95('0x2c')](_0x2e95('0x36'));}['init'](){const _0x344b45=this['context'];this[_0x2e95('0x31')]=_0x344b45[_0x2e95('0x1b')][_0x2e95('0x35')](_0x2e95('0x31'));const _0x3cae61=[_0x2e95('0xb'),_0x2e95('0x1a'),_0x2e95('0x8'),_0x2e95('0x7'),'licenseKeyTrialLimit:time',_0x2e95('0xd')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35d4ab;for(const _0x2d5d4e in _0x344b45){const _0x491e0b=_0x344b45[_0x2d5d4e];if(_0x3cae61['includes'](_0x491e0b)){delete _0x344b45[_0x2d5d4e],_0x35d4ab=_0x491e0b;break;}}if('licenseKeyInvalid'===_0x35d4ab)throw clearInterval(this[_0x2e95('0xe')]),new _0x2fa18d(_0x2e95('0x20'),null);if(_0x2e95('0xb')===_0x35d4ab&&console['info'](_0x2e95('0x5')),'licenseKeyTrialLimit:operations'===_0x35d4ab)throw clearInterval(this[_0x2e95('0xe')]),new _0x2fa18d(_0x2e95('0x1c'),null);if(_0x2e95('0x14')===_0x35d4ab)throw clearInterval(this[_0x2e95('0xe')]),new _0x2fa18d(_0x2e95('0x1'),null);if(_0x2e95('0xd')===_0x35d4ab)throw clearInterval(this[_0x2e95('0xe')]),new _0x2fa18d(_0x2e95('0x13'),null);_0x2e95('0x8')===_0x35d4ab&&clearInterval(this[_0x2e95('0xe')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x2e95('0x1f')]?null:this[_0x2e95('0x11')](this[_0x2e95('0x1f')]);}['addUser'](_0x1a65aa){if(!(_0x1a65aa=Object[_0x2e95('0x2b')]({},_0x1a65aa,{'color':this[_0x2e95('0x19')]()}))['id']||_0x2e95('0x3')!=typeof _0x1a65aa['id'])throw new _0x2fa18d(_0x2e95('0x0'));if(this[_0x2e95('0x22')]['has'](_0x1a65aa['id']))throw new _0x2fa18d(_0x2e95('0x25'),null,{'id':_0x1a65aa['id']});_0x1a65aa[_0x2e95('0x27')]=function(_0x515ba1,_0x30299f=''){return''==(_0x30299f=_0x30299f['trim']())?_0x1d0d7f(_0x515ba1,_0x2e95('0x16')):_0x30299f;}(this[_0x2e95('0xf')],_0x1a65aa[_0x2e95('0x27')]);const _0x5af040=new u(_0x1a65aa);return this[_0x2e95('0x22')]['add'](_0x5af040),_0x5af040;}[_0x2e95('0x11')](_0x1befdd){return this[_0x2e95('0x22')][_0x2e95('0x35')](_0x1befdd);}['useAnonymousUser'](){const _0x47ee7e=this['context'][_0x2e95('0x1b')][_0x2e95('0x35')](_0x2e95('0xc'));this[_0x2e95('0x1f')]||this['defineMe'](_0x47ee7e);}['defineMe'](_0x493829){if(this[_0x2e95('0x1f')])throw new _0x2fa18d(_0x2e95('0x32'),null);if(!this[_0x2e95('0x11')](_0x493829))throw new _0x2fa18d(_0x2e95('0x23'),null);this[_0x2e95('0x1f')]=_0x493829;}[_0x2e95('0x36')](){return this['me'];}[_0x2e95('0x26')](){super['destroy'](),clearInterval(this[_0x2e95('0xe')]);}['_getNextColor'](){const _0x13fec6=this[_0x2e95('0x4')][_0x2e95('0x1b')][_0x2e95('0x35')]('users.colorsCount');return this[_0x2e95('0x1e')]>=_0x13fec6&&(this['_lastColor']=0x0),new a(this['_lastColor']++);}['_addAnonymousUser'](){const _0xff4a4c=this[_0x2e95('0x4')][_0x2e95('0x1b')]['get'](_0x2e95('0xc'));this['addUser']({'id':_0xff4a4c,'name':_0x1d0d7f(this[_0x2e95('0xf')],_0x2e95('0x16'))})[_0x2e95('0x18')]=!0x0;}}class u{constructor(_0x5330ba){this['id']=_0x5330ba['id'],this[_0x2e95('0x37')]=_0x5330ba[_0x2e95('0x37')],this[_0x2e95('0x27')]=_0x5330ba[_0x2e95('0x27')],this[_0x2e95('0xa')]=_0x5330ba['avatar'],this[_0x2e95('0x18')]=!0x1;}get[_0x2e95('0x2f')](){return this[_0x2e95('0x18')];}get[_0x2e95('0x9')](){const _0x48e10d=this[_0x2e95('0x27')]['split']('\x20');return 0x1===_0x48e10d[_0x2e95('0x2d')]?this[_0x2e95('0x15')](_0x48e10d[0x0]):this[_0x2e95('0x15')](_0x48e10d[0x0])+this['_getInitial'](_0x48e10d[_0x48e10d[_0x2e95('0x2d')]-0x1]);}[_0x2e95('0x15')](_0x3f6daf){return _0x3f6daf[_0x2e95('0x6')](0x0)[_0x2e95('0x12')]();}}class a{constructor(_0x3636d7){this[_0x2e95('0x1d')]=_0x3636d7;}[_0x2e95('0x2')](){return _0x2e95('0x21')+this['_id'];}[_0x2e95('0x17')](){return _0x2e95('0x33')+this[_0x2e95('0x1d')];}[_0x2e95('0x29')](){return _0x2e95('0x34')+this['_id'];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x550228,_0x2ff758){const t=_0x550228['t'];switch(_0x2ff758){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
|
23
|
+
var _0x1b0e=['locale','_removeConfirm','destroy','isConfirm','cancel','once','registerChild','confirmView','fire','focus','deregisterChild','message','submit','render','appendChild','remove'];(function(_0x3bd009,_0x1b0e43){var _0x624fb5=function(_0x42e54a){while(--_0x42e54a){_0x3bd009['push'](_0x3bd009['shift']());}};_0x624fb5(++_0x1b0e43);}(_0x1b0e,0x15f));var _0x624f=function(_0x3bd009,_0x1b0e43){_0x3bd009=_0x3bd009-0x0;var _0x624fb5=_0x1b0e[_0x3bd009];return _0x624fb5;};import _0x4c946c from'./confirmview';export default{'showConfirm'(_0x3b4aec,_0xe571c7){return this['confirmView']=new _0x4c946c(this[_0x624f('0x1')]),this[_0x624f('0x8')][_0x624f('0xe')](),this[_0x624f('0x8')][_0x624f('0xc')]=_0x3b4aec,this[_0x624f('0x8')][_0x624f('0x6')](_0x624f('0x5'),()=>{this[_0x624f('0x2')]();}),this['confirmView'][_0x624f('0x6')](_0x624f('0xd'),()=>{this[_0x624f('0x2')]();}),_0xe571c7[_0x624f('0xf')](this[_0x624f('0x8')]['element']),this[_0x624f('0x7')](this[_0x624f('0x8')]),this['set'](_0x624f('0x4'),!0x0),new Promise(_0x49bfbd=>this[_0x624f('0x8')]['on']('submit',_0x49bfbd));},'cancelConfirm'(){this['isConfirm']&&this[_0x624f('0x8')][_0x624f('0x9')](_0x624f('0x5'));},'_removeConfirm'(){this['element'][_0x624f('0xa')](),this[_0x624f('0x8')]['element'][_0x624f('0x0')](),this[_0x624f('0xb')](this[_0x624f('0x8')]),this['isConfirm']=!0x1,this[_0x624f('0x8')][_0x624f('0x3')](),delete this[_0x624f('0x8')];}};
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1685=['ck-thread__remove-confirm','ck-thread__remove-confirm-','extendTemplate','ck-thread__remove-confirm-actions','setTemplate','submitView','ck-thread__remove-confirm-inner','execute','set','submit','_createButtonView','check','div','icon','cancel','Are\x20you\x20sure?','cancelView','message'];(function(_0x91a538,_0x168594){const _0x2df0e5=function(_0x324c91){while(--_0x324c91){_0x91a538['push'](_0x91a538['shift']());}};_0x2df0e5(++_0x168594);}(_0x1685,0x8a));const _0x2df0=function(_0x91a538,_0x168594){_0x91a538=_0x91a538-0x0;let _0x2df0e5=_0x1685[_0x91a538];return _0x2df0e5;};import{View as _0x173849,ButtonView as _0x4bbd67}from'ckeditor5/src/ui';import{icons as _0x1f3dca}from'ckeditor5/src/core';import{getTranslation as _0x52f48c}from'./common-translations';export default class h extends _0x173849{constructor(_0x376b05){super(_0x376b05);const _0x53e090=this['bindTemplate'];this[_0x2df0('0xb')]=this[_0x2df0('0x10')](_0x376b05,_0x52f48c(_0x376b05,'Yes'),_0x1f3dca[_0x2df0('0x11')],_0x2df0('0xf')),this[_0x2df0('0x4')]=this[_0x2df0('0x10')](_0x376b05,_0x52f48c(_0x376b05,'No'),_0x1f3dca[_0x2df0('0x2')],'cancel'),this[_0x2df0('0xe')](_0x2df0('0x5'),_0x52f48c(_0x376b05,_0x2df0('0x3'))),this[_0x2df0('0xa')]({'tag':_0x2df0('0x0'),'attributes':{'class':[_0x2df0('0x6')]},'children':[{'tag':_0x2df0('0x0'),'attributes':{'class':_0x2df0('0xc')},'children':[{'tag':'p','children':[{'text':_0x53e090['to']('message')}]},{'tag':_0x2df0('0x0'),'attributes':{'class':_0x2df0('0x9')},'children':[this['submitView'],this[_0x2df0('0x4')]]}]}]});}[_0x2df0('0x10')](_0x4eb849,_0x4aeeca,_0x1156ea,_0xa7bee0){const _0x3b8917=new _0x4bbd67(_0x4eb849);return _0x3b8917['label']=_0x4aeeca,_0x3b8917[_0x2df0('0x1')]=_0x1156ea,_0x3b8917[_0x2df0('0x8')]({'attributes':{'class':_0x2df0('0x7')+_0xa7bee0}}),_0x3b8917['on'](_0x2df0('0xd'),()=>this['fire'](_0xa7bee0)),_0x3b8917;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x51b6=['string','MM-dd-yyyy\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','dateTimeFormat','\x27Today\x27\x20hh:mma'];(function(_0x3f81d0,_0x51b6c1){const _0x2ac988=function(_0x263d7f){while(--_0x263d7f){_0x3f81d0['push'](_0x3f81d0['shift']());}};_0x2ac988(++_0x51b6c1);}(_0x51b6,0x16f));const _0x2ac9=function(_0x3f81d0,_0x51b6c1){_0x3f81d0=_0x3f81d0-0x0;let _0x2ac988=_0x51b6[_0x3f81d0];return _0x2ac988;};import _0x2fd0d5 from'date-fns/format';import _0x51b8ac from'date-fns/parseISO';import _0x186076 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x18e9b2}from'ckeditor5/src/utils';export default function E(_0x1dcacc={}){if(void 0x0!==_0x1dcacc[_0x2ac9('0x1')]&&'function'!=typeof _0x1dcacc[_0x2ac9('0x1')])throw new _0x18e9b2('invalid-date-time-format');return _0x45ca42=>{const _0x38c89d=_0x2ac9('0x3')==typeof _0x45ca42?_0x51b8ac(_0x45ca42):_0x45ca42,_0x59d638=new Date(),_0x2c24eb=_0x186076(_0x59d638,_0x38c89d);return _0x1dcacc['dateTimeFormat']?_0x1dcacc['dateTimeFormat'](_0x38c89d):_0x2fd0d5(_0x38c89d,0x0===_0x2c24eb?_0x2ac9('0x2'):0x1===_0x2c24eb?'\x27Yesterday\x27\x20hh:mma':_0x2c24eb<0x7?_0x2ac9('0x0'):_0x2ac9('0x4'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x422d=['view','mapper','values','markerNameToElements','name','mapViewToDom','domConverter'];(function(_0x4b098,_0x422d29){const _0x117542=function(_0x2fc00f){while(--_0x2fc00f){_0x4b098['push'](_0x4b098['shift']());}};_0x117542(++_0x422d29);}(_0x422d,0x65));const _0x1175=function(_0x4b098,_0x422d29){_0x4b098=_0x4b098-0x0;let _0x117542=_0x422d[_0x4b098];return _0x117542;};import{first as _0x208f42}from'ckeditor5/src/utils';export default function x(_0x3f2346,_0x228719){const _0x59666e=_0x3f2346[_0x1175('0x5')][_0x1175('0x0')](_0x228719[_0x1175('0x1')]),_0x2b134f=_0x208f42(_0x59666e[_0x1175('0x6')]());return _0x3f2346[_0x1175('0x4')][_0x1175('0x3')][_0x1175('0x2')](_0x2b134f);}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x23b4=['string','boolean','object','isArray','sort','keys','sign','toString','charCodeAt'];(function(_0x599e5a,_0x23b4f5){const _0x510a75=function(_0x149c6d){while(--_0x149c6d){_0x599e5a['push'](_0x599e5a['shift']());}};_0x510a75(++_0x23b4f5);}(_0x23b4,0x1dc));const _0x510a=function(_0x599e5a,_0x23b4f5){_0x599e5a=_0x599e5a-0x0;let _0x510a75=_0x23b4[_0x599e5a];return _0x510a75;};export default function b(_0xe8ae19){let _0x281fcf=0x0,_0x31f312=0x0;for(const _0x2b5766 of g(_0xe8ae19))_0x281fcf=(_0x281fcf<<0x5)-_0x281fcf+_0x2b5766,_0x281fcf&=_0x281fcf,[_0x281fcf,_0x31f312]=[_0x31f312,_0x281fcf];return O(_0x281fcf)+O(_0x31f312);}function*j(_0x1ee3fc){_0x1ee3fc?_0x510a('0x2')==typeof _0x1ee3fc?yield 0x1:Array[_0x510a('0x4')](_0x1ee3fc)?yield*function*(_0x6fbe6d){for(const _0x4f2444 of _0x6fbe6d)yield*j(_0x4f2444);}(_0x1ee3fc):_0x510a('0x3')==typeof _0x1ee3fc?yield*g(_0x1ee3fc):_0x510a('0x1')==typeof _0x1ee3fc?yield*A(_0x1ee3fc):'number'==typeof _0x1ee3fc&&(yield _0x1ee3fc):yield 0x0;}function*g(_0x5a671b){if(yield M('{'),_0x5a671b){const _0x4f9953=Object[_0x510a('0x6')](_0x5a671b)[_0x510a('0x5')]();for(const _0x4a1cdd of _0x4f9953){yield*A(_0x4a1cdd),yield M(':');const _0x2eadad=_0x5a671b[_0x4a1cdd];yield*j(_0x2eadad);}}yield M('}');}function*A(_0x4f4eb3){yield M('\x22');for(const _0x3b4322 of _0x4f4eb3)yield M(_0x3b4322);yield M('\x22');}function M(_0xe83841){return _0xe83841[_0x510a('0x0')](0x0);}function O(_0x4bae38){return(_0x4bae38*=Math[_0x510a('0x7')](_0x4bae38))[_0x510a('0x8')](0x24);}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x6d86=['replace','length','...','slice','substring','join','split','match','startsWith','push','indexOf'];(function(_0x5867b2,_0x6d867){const _0x18657f=function(_0x1f0dfe){while(--_0x1f0dfe){_0x5867b2['push'](_0x5867b2['shift']());}};_0x18657f(++_0x6d867);}(_0x6d86,0x1d7));const _0x1865=function(_0x5867b2,_0x6d867){_0x5867b2=_0x5867b2-0x0;let _0x18657f=_0x6d86[_0x5867b2];return _0x18657f;};export default function z(_0x257b52,{limit:_0x9d6826,suffix:_0x3d8d88=_0x1865('0x4')}){const _0x551e33=[];let _0x130296=0x0;const _0x47097c=_0x257b52[_0x1865('0x2')](/</g,'\x0a<')[_0x1865('0x2')](/>/g,'>\x0a')[_0x1865('0x2')](/^\n/g,'')[_0x1865('0x2')](/\n$/g,'')[_0x1865('0x8')]('\x0a');for(let _0x49153f=0x0;_0x49153f<_0x47097c[_0x1865('0x3')];_0x49153f++){let _0x254e60=_0x47097c[_0x49153f];const _0x576519=Z(_0x254e60);if(_0x254e60[_0x1865('0xa')]('<')){if(_0x130296>=_0x9d6826){const _0x16d3ea=_0x254e60[_0x1865('0x9')](/[a-zA-Z]+/)[0x0];_0x254e60[_0x1865('0xa')]('</')?(_0x551e33[_0x1865('0x3')]&&(_0x254e60=''),_0x551e33['pop']()):(_0x551e33[_0x1865('0x0')](_0x16d3ea),_0x254e60='');}}else{if(_0x130296>=_0x9d6826)_0x254e60='';else{if(_0x130296+_0x576519[_0x1865('0x3')]>=_0x9d6826){let _0x48513a=_0x9d6826-_0x130296;if('\x20'===_0x576519[_0x48513a-0x1])_0x48513a--;else{const _0x20bad2=_0x576519[_0x1865('0x5')](_0x48513a)[_0x1865('0x1')]('\x20');-0x1!==_0x20bad2?_0x48513a+=_0x20bad2:_0x48513a=_0x254e60[_0x1865('0x3')];}_0x254e60=_0x576519[_0x1865('0x5')](0x0,_0x48513a)[_0x1865('0x7')]('')+_0x3d8d88,_0x130296=_0x9d6826;}else _0x130296+=_0x576519[_0x1865('0x3')];}}_0x47097c[_0x49153f]=_0x254e60;}return _0x47097c[_0x1865('0x7')]('\x0a')[_0x1865('0x2')](/\n/g,'');}function Z(_0x5bb02d){const _0x57f331=[];for(let _0x5c2b70=0x0;_0x5c2b70<_0x5bb02d[_0x1865('0x3')];_0x5c2b70++){const _0x3679e2=_0x5bb02d[_0x1865('0x6')](_0x5c2b70)[_0x1865('0x9')](/^&[a-z0-9#]+;/);if(_0x3679e2){const _0x5bbc28=_0x3679e2[0x0];_0x57f331[_0x1865('0x0')](_0x5bbc28),_0x5c2b70+=_0x5bbc28['length']-0x1;}else _0x57f331['push'](_0x5bb02d[_0x5c2b70]);}return _0x57f331;}
|