@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20230711.0 → 0.0.0-nightly-20230713.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/sanitizeEditorConfig.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": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20230713.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/)",
|
@@ -31,7 +31,7 @@
|
|
31
31
|
],
|
32
32
|
"main": "src/index.js",
|
33
33
|
"dependencies": {
|
34
|
-
"ckeditor5": "0.0.0-nightly-
|
34
|
+
"ckeditor5": "0.0.0-nightly-20230713.0",
|
35
35
|
"date-fns": "^2.17.0"
|
36
36
|
},
|
37
37
|
"engines": {
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x38a8=['pluginName','enableReadOnlyMode','noPermissions','config','document:write','includes','disableReadOnlyMode','no-permissions','editors','CommentsOnly','permissions-set-permissions-invalid-channel-id','comment:modify_all','comment:write','CommentsRepository','context','addCommentThread','clearForceDisabled','setPermissions','get','find','has','commands','collaboration.channelId'];(function(_0x1e326b,_0x38a80d){const _0x40ecd9=function(_0x2921b8){while(--_0x2921b8){_0x1e326b['push'](_0x1e326b['shift']());}};_0x40ecd9(++_0x38a80d);}(_0x38a8,0xe2));const _0x40ec=function(_0x1e326b,_0x38a80d){_0x1e326b=_0x1e326b-0x0;let _0x40ecd9=_0x38a8[_0x1e326b];return _0x40ecd9;};import{ContextPlugin as _0xbea5d9,Editor as _0x38b363}from'ckeditor5/src/core';import{CKEditorError as _0x1343a5}from'ckeditor5/src/utils';export default class n extends _0xbea5d9{static get[_0x40ec('0x4')](){return'Permissions';}[_0x40ec('0x15')](_0x413635,_0x49eb85){let _0x422b87;if(_0x49eb85||(_0x49eb85=this['context'][_0x40ec('0x7')][_0x40ec('0x16')](_0x40ec('0x3'))),this[_0x40ec('0x12')][_0x40ec('0x7')][_0x40ec('0x16')]('collaboration.channelId')==_0x49eb85?_0x422b87=this[_0x40ec('0x12')]:'editors'in this['context']&&this[_0x40ec('0x12')][_0x40ec('0xc')]&&(_0x422b87=this[_0x40ec('0x12')][_0x40ec('0xc')][_0x40ec('0x0')](_0x3403a4=>_0x3403a4['config']['get'](_0x40ec('0x3'))==_0x49eb85)),!_0x422b87)throw new _0x1343a5(_0x40ec('0xe'),null);const _0x1f9b03=_0x422b87['plugins'],_0x5a7afd=_0x1f9b03[_0x40ec('0x1')](_0x40ec('0x11'))?_0x1f9b03[_0x40ec('0x16')](_0x40ec('0x11')):void 0x0,_0x220096=_0x1f9b03[_0x40ec('0x1')](_0x40ec('0xd'))&&_0x1f9b03[_0x40ec('0x16')](_0x40ec('0xd')),_0x294df3=_0x413635['includes'](_0x40ec('0x8')),_0x9b1082=_0x413635[_0x40ec('0x9')](_0x40ec('0xf')),_0x22332f=_0x413635['includes']('comment:admin'),_0x34a6ff=_0x413635[_0x40ec('0x9')](_0x40ec('0x10')),_0x17d165=_0x34a6ff||_0x22332f,_0x17b4fe=_0x17d165||_0x9b1082,_0x44975e=_0x294df3||_0x17d165;(_0x220096&&(_0x220096['isEnabled']=!_0x294df3&&_0x17b4fe),_0x422b87 instanceof _0x38b363)&&(!(_0x294df3||_0x17b4fe&&_0x5a7afd)?_0x422b87[_0x40ec('0x5')](_0x40ec('0xb')):_0x422b87[_0x40ec('0xa')](_0x40ec('0xb')));if(_0x5a7afd){_0x5a7afd['setPermissions']({'admin':_0x22332f,'modifyAll':_0x9b1082,'write':_0x34a6ff,'resolve':_0x44975e},_0x49eb85);const _0x3a20bf=_0x422b87 instanceof _0x38b363&&_0x422b87[_0x40ec('0x2')][_0x40ec('0x16')](_0x40ec('0x13'));_0x3a20bf&&(_0x17d165?_0x3a20bf[_0x40ec('0x14')](_0x40ec('0x6')):_0x3a20bf['forceDisabled'](_0x40ec('0x6')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x6bba=['ck-user__anonymous','setTemplate','notificationView','ck-user__img','url(\x27','initials','div','extendTemplate','ck-user__avatar','isAnonymous','push','content','ck\x20ck-user__name\x20ck-user__name--hidden','name','ck-user__icon','avatar'];(function(_0x42cc0b,_0x6bba6d){const _0x51dfa9=function(_0x15c3c2){while(--_0x15c3c2){_0x42cc0b['push'](_0x42cc0b['shift']());}};_0x51dfa9(++_0x6bba6d);}(_0x6bba,0x17c));const _0x51df=function(_0x42cc0b,_0x6bba6d){_0x42cc0b=_0x42cc0b-0x0;let _0x51dfa9=_0x6bba[_0x42cc0b];return _0x51dfa9;};import{View as _0x47b0a3,IconView as _0x19d924}from'ckeditor5/src/ui';import _0x4aeef8 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x47b0a3{constructor(_0x4142fc,_0x1dbacc,_0x44a410){super(_0x4142fc),this['name']=_0x1dbacc[_0x51df('0x1')],this['notificationView']=null;const _0x115d94=['ck',_0x51df('0x7')];if(_0x1dbacc[_0x51df('0xd')]&&_0x115d94[_0x51df('0xe')](_0x51df('0x4')),_0x1dbacc[_0x51df('0x3')]&&_0x115d94['push'](_0x51df('0xc')),_0x44a410){const _0x53cbea=new _0x19d924();_0x53cbea[_0x51df('0xb')]({'attributes':{'class':[_0x51df('0x2')]}}),_0x53cbea[_0x51df('0xf')]=_0x4aeef8,this[_0x51df('0x6')]={'tag':_0x51df('0xa'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x44a410},'children':[_0x53cbea]};}const _0x352674=[{'tag':_0x51df('0xa'),'attributes':{'class':_0x115d94,'style':{'background-image':_0x1dbacc['avatar']?_0x51df('0x8')+_0x1dbacc['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x1dbacc[_0x51df('0x3')]?_0x51df('0x0'):'ck\x20ck-user__name'},'children':[{'text':_0x1dbacc[_0x51df('0x9')]}]}];this[_0x51df('0x6')]&&_0x352674[_0x51df('0xe')](this['notificationView']),this[_0x51df('0x5')]({'tag':_0x51df('0xa'),'attributes':{'class':['ck','ck-user'],'data-user-id':_0x1dbacc['id']},'children':_0x352674});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x18d4=['_getInitial','destroy','licenseKeyInvalid','init','licenseKey','_isAnonymous','users-me-missing-user','trim','_id','licenseKeyTrial','anonymous-user','getOperationAuthor','pluginName','_locale','decorate','_licenseKeyCheckInterval','info','licenseKeyTrialLimit:revisions','includes','users-me-already-defined','Users','name','_myId','toUpperCase','color','define','trial-license-key-reached-limit-time','licenseKeyTrialLimit:operations','_addAnonymousUser','ck-user__marker--','_lastColor','ck-user__selection--','ck-user__bg-color--','avatar','get','addUser','config','trial-license-key-reached-limit-changes','_getNextColor','defineMe','length','getBackgroundColorClass','has','users.anonymousUserId','getUser','licenseKeyTrialLimit:time','context','getMarkerClass','Anonymous','users','users.colorsCount','useAnonymousUser','getSelectionClass','charAt','trial-license-key-reached-limit-revisions','licenseKeyValid'];(function(_0x1bf923,_0x18d453){const _0x5442a2=function(_0x292302){while(--_0x292302){_0x1bf923['push'](_0x1bf923['shift']());}};_0x5442a2(++_0x18d453);}(_0x18d4,0xd9));const _0x5442=function(_0x1bf923,_0x18d453){_0x1bf923=_0x1bf923-0x0;let _0x5442a2=_0x18d4[_0x1bf923];return _0x5442a2;};import{ContextPlugin as _0x12c85c}from'ckeditor5/src/core';import{Collection as _0x35e550,CKEditorError as _0x13778c}from'ckeditor5/src/utils';import _0x198217 from'./permissions';import{getTranslation as _0x30ace5}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x12c85c{static get[_0x5442('0x13')](){return _0x5442('0x1b');}static get['requires'](){return[_0x198217];}constructor(_0x2e09af){super(_0x2e09af),this['context'][_0x5442('0x2b')]['define'](_0x5442('0x32'),_0x5442('0x11')),this[_0x5442('0x35')][_0x5442('0x2b')][_0x5442('0x20')](_0x5442('0x1'),0x8),this[_0x5442('0x0')]=new _0x35e550(),this[_0x5442('0x14')]=_0x2e09af['locale'],this[_0x5442('0x16')]=null,this[_0x5442('0x25')]=0x0,this[_0x5442('0x1d')]=null,this[_0x5442('0x15')](_0x5442('0x12'));}[_0x5442('0xa')](){const _0x8094cd=this[_0x5442('0x35')];this[_0x5442('0xb')]=_0x8094cd['config'][_0x5442('0x29')](_0x5442('0xb'));const _0x21a7d2=[_0x5442('0x10'),_0x5442('0x9'),'licenseKeyValid',_0x5442('0x22'),'licenseKeyTrialLimit:time',_0x5442('0x18')];this[_0x5442('0x16')]=setInterval(()=>{let _0x109763;for(const _0x28453f in _0x8094cd){const _0x58b9ed=_0x8094cd[_0x28453f];if(_0x21a7d2[_0x5442('0x19')](_0x58b9ed)){delete _0x8094cd[_0x28453f],_0x109763=_0x58b9ed;break;}}if(_0x5442('0x9')===_0x109763)throw clearInterval(this[_0x5442('0x16')]),new _0x13778c('invalid-license-key',null);if(_0x5442('0x10')===_0x109763&&console[_0x5442('0x17')]('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.'),'licenseKeyTrialLimit:operations'===_0x109763)throw clearInterval(this[_0x5442('0x16')]),new _0x13778c(_0x5442('0x2c'),null);if(_0x5442('0x34')===_0x109763)throw clearInterval(this[_0x5442('0x16')]),new _0x13778c(_0x5442('0x21'),null);if('licenseKeyTrialLimit:revisions'===_0x109763)throw clearInterval(this[_0x5442('0x16')]),new _0x13778c(_0x5442('0x5'),null);_0x5442('0x6')===_0x109763&&clearInterval(this[_0x5442('0x16')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x5442('0x1d')]?null:this[_0x5442('0x33')](this['_myId']);}[_0x5442('0x2a')]({id:_0x292d3a,name:_0xf8e077,..._0x5496c3}){if(!_0x292d3a||'string'!=typeof _0x292d3a)throw new _0x13778c('users-add-invalid-id');if(this[_0x5442('0x0')][_0x5442('0x31')](_0x292d3a))throw new _0x13778c('users-add-duplicated-id',null,{'id':_0x292d3a});const _0x292e07={..._0x5496c3,'id':_0x292d3a,'name':a(this[_0x5442('0x14')],_0xf8e077),'color':this[_0x5442('0x2d')]()};_0x292e07['name']=a(this['_locale'],_0x292e07[_0x5442('0x1c')]);const _0x4201d4=new User(_0x292e07);return this['users']['add'](_0x4201d4),_0x4201d4;}[_0x5442('0x33')](_0x30e031){return this[_0x5442('0x0')][_0x5442('0x29')](_0x30e031);}[_0x5442('0x2')](){const _0x579d26=this[_0x5442('0x35')][_0x5442('0x2b')][_0x5442('0x29')]('users.anonymousUserId');this['_myId']||this[_0x5442('0x2e')](_0x579d26);}['defineMe'](_0x2fb547){if(this[_0x5442('0x1d')])throw new _0x13778c(_0x5442('0x1a'),null);if(!this[_0x5442('0x33')](_0x2fb547))throw new _0x13778c(_0x5442('0xd'),null);this[_0x5442('0x1d')]=_0x2fb547;}[_0x5442('0x12')](){return this['me'];}[_0x5442('0x8')](){super[_0x5442('0x8')](),clearInterval(this[_0x5442('0x16')]);}['_getNextColor'](){const _0x210643=this[_0x5442('0x35')][_0x5442('0x2b')]['get'](_0x5442('0x1'));return this[_0x5442('0x25')]>=_0x210643&&(this[_0x5442('0x25')]=0x0),new u(this['_lastColor']++);}[_0x5442('0x23')](){const _0x3acf95=this['context'][_0x5442('0x2b')][_0x5442('0x29')](_0x5442('0x32'));this[_0x5442('0x2a')]({'id':_0x3acf95,'name':_0x30ace5(this[_0x5442('0x14')],_0x5442('0x37'))})[_0x5442('0xc')]=!0x0;}}export class User{constructor(_0x2cf011){this['id']=_0x2cf011['id'],this[_0x5442('0x1f')]=_0x2cf011[_0x5442('0x1f')],this[_0x5442('0x1c')]=_0x2cf011['name'],this['avatar']=_0x2cf011[_0x5442('0x28')],this[_0x5442('0xc')]=!0x1;}get['isAnonymous'](){return this[_0x5442('0xc')];}get['initials'](){const _0xdb48ff=this[_0x5442('0x1c')]['split']('\x20');return 0x1===_0xdb48ff['length']?this['_getInitial'](_0xdb48ff[0x0]):this[_0x5442('0x7')](_0xdb48ff[0x0])+this[_0x5442('0x7')](_0xdb48ff[_0xdb48ff[_0x5442('0x2f')]-0x1]);}[_0x5442('0x7')](_0x158c31){return _0x158c31[_0x5442('0x4')](0x0)[_0x5442('0x1e')]();}}function a(_0x1ab0ce,_0x133dac=''){return''==(_0x133dac=_0x133dac[_0x5442('0xe')]())?_0x30ace5(_0x1ab0ce,_0x5442('0x37')):_0x133dac;}class u{constructor(_0xd445a1){this['_id']=_0xd445a1;}[_0x5442('0x30')](){return _0x5442('0x27')+this['_id'];}[_0x5442('0x3')](){return _0x5442('0x26')+this[_0x5442('0xf')];}[_0x5442('0x36')](){return _0x5442('0x24')+this['_id'];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x15b2bd,_0x4f738c){const t=_0x15b2bd['t'];switch(_0x4f738c){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
|
23
|
+
var _0x17aa=['element','cancel','appendChild','showConfirm','remove','_removeConfirm','submit','focus','cancelConfirm','deregisterChild','isConfirm','confirmView','message','once','set'];(function(_0x56fea4,_0x17aa73){var _0x3e5a78=function(_0x33fafc){while(--_0x33fafc){_0x56fea4['push'](_0x56fea4['shift']());}};_0x3e5a78(++_0x17aa73);}(_0x17aa,0x1d1));var _0x3e5a=function(_0x56fea4,_0x17aa73){_0x56fea4=_0x56fea4-0x0;var _0x3e5a78=_0x17aa[_0x56fea4];return _0x3e5a78;};import _0x2cc246 from'./confirmview';export default function m(_0x1f86d8){return class extends _0x1f86d8{[_0x3e5a('0x3')](_0x49815d,_0x193056){return this['confirmView']=new _0x2cc246(this['locale']),this[_0x3e5a('0xb')]['render'](),this['confirmView'][_0x3e5a('0xc')]=_0x49815d,this[_0x3e5a('0xb')]['once'](_0x3e5a('0x1'),()=>{this[_0x3e5a('0x5')]();}),this['confirmView'][_0x3e5a('0xd')](_0x3e5a('0x6'),()=>{this[_0x3e5a('0x5')]();}),_0x193056[_0x3e5a('0x2')](this[_0x3e5a('0xb')][_0x3e5a('0x0')]),this['registerChild'](this[_0x3e5a('0xb')]),this[_0x3e5a('0x0')][_0x3e5a('0x7')](),this[_0x3e5a('0xe')](_0x3e5a('0xa'),!0x0),new Promise(_0x50500e=>this[_0x3e5a('0xb')]['on']('submit',_0x50500e));}[_0x3e5a('0x8')](){this[_0x3e5a('0xa')]&&this[_0x3e5a('0xb')]['fire'](_0x3e5a('0x1'));}['_removeConfirm'](){this[_0x3e5a('0x0')]&&this['confirmView']&&this[_0x3e5a('0xb')][_0x3e5a('0x0')]&&(this[_0x3e5a('0x0')][_0x3e5a('0x7')](),this[_0x3e5a('0xb')][_0x3e5a('0x0')][_0x3e5a('0x4')](),this[_0x3e5a('0x9')](this['confirmView']),this[_0x3e5a('0xa')]=!0x1,this[_0x3e5a('0xb')]['destroy'](),this[_0x3e5a('0xb')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4e68=['Yes','execute','ck-thread__remove-confirm','label','div','bindTemplate','Are\x20you\x20sure?','cancel','icon','submitView','setTemplate','message','cancelView','submit','ck-thread__remove-confirm-actions','ck-thread__remove-confirm-inner','extendTemplate','_createButtonView'];(function(_0x5263cd,_0x4e683b){const _0x3dd54a=function(_0x60c65d){while(--_0x60c65d){_0x5263cd['push'](_0x5263cd['shift']());}};_0x3dd54a(++_0x4e683b);}(_0x4e68,0x1be));const _0x3dd5=function(_0x5263cd,_0x4e683b){_0x5263cd=_0x5263cd-0x0;let _0x3dd54a=_0x4e68[_0x5263cd];return _0x3dd54a;};import{View as _0x1b0303,ButtonView as _0x174590}from'ckeditor5/src/ui';import{icons as _0x249ff7}from'ckeditor5/src/core';import{getTranslation as _0x24ecb9}from'./common-translations';export default class h extends _0x1b0303{constructor(_0x486c3e){super(_0x486c3e);const _0xbe352=this[_0x3dd5('0x9')];this[_0x3dd5('0xd')]=this[_0x3dd5('0x3')](_0x486c3e,_0x24ecb9(_0x486c3e,_0x3dd5('0x4')),_0x249ff7['check'],_0x3dd5('0x11')),this['cancelView']=this['_createButtonView'](_0x486c3e,_0x24ecb9(_0x486c3e,'No'),_0x249ff7[_0x3dd5('0xb')],'cancel'),this['set'](_0x3dd5('0xf'),_0x24ecb9(_0x486c3e,_0x3dd5('0xa'))),this[_0x3dd5('0xe')]({'tag':'div','attributes':{'class':[_0x3dd5('0x6')]},'children':[{'tag':_0x3dd5('0x8'),'attributes':{'class':_0x3dd5('0x1')},'children':[{'tag':'p','children':[{'text':_0xbe352['to'](_0x3dd5('0xf'))}]},{'tag':_0x3dd5('0x8'),'attributes':{'class':_0x3dd5('0x0')},'children':[this['submitView'],this[_0x3dd5('0x10')]]}]}]});}[_0x3dd5('0x3')](_0x506cfe,_0x57d551,_0x447c52,_0x280200){const _0x6dbf3c=new _0x174590(_0x506cfe);return _0x6dbf3c[_0x3dd5('0x7')]=_0x57d551,_0x6dbf3c[_0x3dd5('0xc')]=_0x447c52,_0x6dbf3c[_0x3dd5('0x2')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x280200}}),_0x6dbf3c['on'](_0x3dd5('0x5'),()=>this['fire'](_0x280200)),_0x6dbf3c;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2bf8=['dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma','\x27Yesterday\x27\x20hh:mma','\x27Today\x27\x20hh:mma','function'];(function(_0x32953e,_0x2bf8eb){const _0x27b8b0=function(_0x338c00){while(--_0x338c00){_0x32953e['push'](_0x32953e['shift']());}};_0x27b8b0(++_0x2bf8eb);}(_0x2bf8,0x138));const _0x27b8=function(_0x32953e,_0x2bf8eb){_0x32953e=_0x32953e-0x0;let _0x27b8b0=_0x2bf8[_0x32953e];return _0x27b8b0;};import _0x6dab38 from'date-fns/format';import _0x54a0b9 from'date-fns/parseISO';import _0x40a12d from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x4830f7}from'ckeditor5/src/utils';export default function E(_0x57fb6d={}){if(void 0x0!==_0x57fb6d[_0x27b8('0x3')]&&_0x27b8('0x2')!=typeof _0x57fb6d[_0x27b8('0x3')])throw new _0x4830f7('invalid-date-time-format');return _0x5c52dc=>{const _0x3459ab='string'==typeof _0x5c52dc?_0x54a0b9(_0x5c52dc):_0x5c52dc,_0x384239=new Date(),_0x377e05=_0x40a12d(_0x384239,_0x3459ab);return _0x57fb6d['dateTimeFormat']?_0x57fb6d['dateTimeFormat'](_0x3459ab):_0x6dab38(_0x3459ab,0x0===_0x377e05?_0x27b8('0x1'):0x1===_0x377e05?_0x27b8('0x0'):_0x377e05<0x7?_0x27b8('0x4'):'MM-dd-yyyy\x20hh:mma');};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x9703=['length','filter','values','domConverter','from','sort','item','view','map','domElement','markerNameToElements','push','mapViewToDom'];(function(_0x12f144,_0x970333){const _0x439033=function(_0x568977){while(--_0x568977){_0x12f144['push'](_0x12f144['shift']());}};_0x439033(++_0x970333);}(_0x9703,0xb3));const _0x4390=function(_0x12f144,_0x970333){_0x12f144=_0x12f144-0x0;let _0x439033=_0x9703[_0x12f144];return _0x439033;};import{first as _0x3df303}from'ckeditor5/src/utils';export default function k(_0x1b32ea,_0x56becb){const _0x1f6209=_0x1b32ea['mapper'][_0x4390('0x0')](_0x56becb['name']);if(!_0x1f6209)return null;const _0x2f4e75=_0x3df303(_0x1f6209[_0x4390('0x5')]());return _0x1b32ea[_0x4390('0xa')]['domConverter'][_0x4390('0x2')](_0x2f4e75)||null;}export function getAllMarkersDomElementsSorted(_0x1c8071,_0x40776f){if(0x0===_0x40776f[_0x4390('0x3')])return null;const _0x1bc95e=[],_0x47fd02=_0x1c8071[_0x4390('0xa')][_0x4390('0x6')];for(const _0x3d857b of _0x40776f){const _0x1042fe=_0x1c8071['mapper']['markerNameToElements'](_0x3d857b['name']);if(!_0x1042fe)continue;const _0x30dfa1=Array[_0x4390('0x7')](_0x1042fe)[_0x4390('0xb')](_0xfea45=>_0x47fd02[_0x4390('0x2')](_0xfea45))[_0x4390('0x4')](_0x3e031f=>!!_0x3e031f);_0x1bc95e['push'](..._0x30dfa1);}if(0x0===_0x1bc95e[_0x4390('0x3')])return null;const _0x5e9279=[];for(const _0x24a665 of _0x1bc95e){const _0x1cfe59=_0x24a665['getClientRects']()[_0x4390('0x9')](0x0);_0x1cfe59&&_0x5e9279[_0x4390('0x1')]({'x':_0x1cfe59['x'],'y':_0x1cfe59['y'],'domElement':_0x24a665});}return 0x0===_0x5e9279['length']?null:(_0x5e9279[_0x4390('0x8')]((_0x45ba6d,_0x1e7285)=>_0x45ba6d['y']-_0x1e7285['y']||_0x45ba6d['x']-_0x1e7285['x']),_0x5e9279['map'](_0x452e91=>_0x452e91[_0x4390('0xc')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x57a3=['string','keys','sign','object','sort','toString'];(function(_0x2d03e6,_0x57a3f1){const _0x563786=function(_0x2d0dea){while(--_0x2d0dea){_0x2d03e6['push'](_0x2d03e6['shift']());}};_0x563786(++_0x57a3f1);}(_0x57a3,0x121));const _0x5637=function(_0x2d03e6,_0x57a3f1){_0x2d03e6=_0x2d03e6-0x0;let _0x563786=_0x57a3[_0x2d03e6];return _0x563786;};export default function b(_0x19fa2c){let _0x2d9e44=0x0,_0x3928e0=0x0;for(const _0x8ba55a of g(_0x19fa2c))_0x2d9e44=(_0x2d9e44<<0x5)-_0x2d9e44+_0x8ba55a,_0x2d9e44&=_0x2d9e44,[_0x2d9e44,_0x3928e0]=[_0x3928e0,_0x2d9e44];return O(_0x2d9e44)+O(_0x3928e0);}function*j(_0x27af63){_0x27af63?'boolean'==typeof _0x27af63?yield 0x1:Array['isArray'](_0x27af63)?yield*function*(_0x552911){for(const _0x26cf89 of _0x552911)yield*j(_0x26cf89);}(_0x27af63):_0x5637('0x2')==typeof _0x27af63?yield*g(_0x27af63):_0x5637('0x5')==typeof _0x27af63?yield*A(_0x27af63):'number'==typeof _0x27af63&&(yield _0x27af63):yield 0x0;}function*g(_0x35ad88){if(yield M('{'),_0x35ad88){const _0x40340d=Object[_0x5637('0x0')](_0x35ad88)[_0x5637('0x3')]();for(const _0x2e6d19 of _0x40340d){yield*A(_0x2e6d19),yield M(':');const _0x422939=_0x35ad88[_0x2e6d19];yield*j(_0x422939);}}yield M('}');}function*A(_0x175915){yield M('\x22');for(const _0xa61872 of _0x175915)yield M(_0xa61872);yield M('\x22');}function M(_0x4c06a2){return _0x4c06a2['charCodeAt'](0x0);}function O(_0x1d7ded){return(_0x1d7ded*=Math[_0x5637('0x1')](_0x1d7ded))[_0x5637('0x4')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1d3b=['concat','has','toolbar','find','plugins','set','names','WordCount','includes','initialData','constructor','removePlugins','function','DocumentOutline','WProofreader','map','get','requires','name','config','pluginName','every','filter','builtinPlugins','WebSocketGateway','extraPlugins','rootsAttributes'];(function(_0x5bd21f,_0x1d3bae){const _0x24deb5=function(_0x148276){while(--_0x148276){_0x5bd21f['push'](_0x5bd21f['shift']());}};_0x24deb5(++_0x1d3bae);}(_0x1d3b,0x1e6));const _0x24de=function(_0x5bd21f,_0x1d3bae){_0x5bd21f=_0x5bd21f-0x0;let _0x24deb5=_0x1d3b[_0x5bd21f];return _0x24deb5;};const w=[_0x24de('0x9'),'context',_0x24de('0x2'),_0x24de('0x1a')],W=[_0x24de('0x18'),'RevisionTracker','Autosave',_0x24de('0x7'),_0x24de('0xd'),_0x24de('0xe')];function v(_0x2bb0b3,_0x350562,_0x6b1d2b=[]){const _0x40025a=_0x24de('0xc')==typeof _0x2bb0b3?_0x2bb0b3[_0x24de('0x14')]||_0x2bb0b3[_0x24de('0x12')]:_0x2bb0b3;if(_0x350562[_0x24de('0x1')](_0x40025a))return _0x350562[_0x24de('0x10')](_0x40025a);if(_0x350562[_0x24de('0x5')](_0x40025a,!0x0),_0x40025a&&W[_0x24de('0x0')](_0x6b1d2b)[_0x24de('0x8')](_0x40025a))return _0x350562[_0x24de('0x5')](_0x40025a,!0x1),!0x1;if(!_0x2bb0b3[_0x24de('0x11')])return _0x350562[_0x24de('0x5')](_0x40025a,!0x0),!0x0;const _0x3c4c65=_0x2bb0b3[_0x24de('0x11')][_0x24de('0x15')](_0x575a01=>v(_0x575a01,_0x350562,_0x6b1d2b));return _0x350562[_0x24de('0x5')](_0x40025a,_0x3c4c65),_0x3c4c65;}export default function D(_0x220a9e,_0x36885f){const _0x40fcbd={};for(const _0x83dfa0 of _0x220a9e[_0x24de('0x13')][_0x24de('0x6')]())w[_0x24de('0x8')](_0x83dfa0)||(_0x40fcbd[_0x83dfa0]=_0x220a9e[_0x24de('0x13')][_0x24de('0x10')](_0x83dfa0));const _0x49369a=_0x40fcbd[_0x24de('0x4')]||[],_0x331bb0=_0x220a9e[_0x24de('0xa')][_0x24de('0x17')]||[],_0x16ed8c=_0x49369a['length']?_0x49369a:_0x331bb0,_0xa01185=_0x40fcbd[_0x24de('0x19')]||[];delete _0x40fcbd[_0x24de('0x19')];const _0x25b6d9=_0x40fcbd[_0x24de('0xb')]||[];delete _0x40fcbd[_0x24de('0xb')];const _0x5c79cf=_0x220a9e['_context'][_0x24de('0x13')][_0x24de('0x10')](_0x24de('0x4'))||[],_0x381344=_0x16ed8c['concat'](_0xa01185)[_0x24de('0x0')](_0x5c79cf)[_0x24de('0xf')](_0x38c483=>'string'==typeof _0x38c483?_0x331bb0[_0x24de('0x3')](_0x35772a=>_0x35772a[_0x24de('0x14')]==_0x38c483):_0x38c483)[_0x24de('0x16')](_0x1ef8d7=>!_0x25b6d9[_0x24de('0x8')](_0x1ef8d7)),_0x29e867=Array['from'](new Set(_0x381344)),_0x3f02f5=new Map();return _0x40fcbd[_0x24de('0x4')]=_0x29e867[_0x24de('0x16')](_0x344827=>v(_0x344827,_0x3f02f5,_0x36885f)),_0x40fcbd;}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x468f=['startsWith','join','...','indexOf','length','match','pop','push','slice','replace'];(function(_0x2d32f1,_0x468fe1){const _0x49529e=function(_0x353dd2){while(--_0x353dd2){_0x2d32f1['push'](_0x2d32f1['shift']());}};_0x49529e(++_0x468fe1);}(_0x468f,0x122));const _0x4952=function(_0x2d32f1,_0x468fe1){_0x2d32f1=_0x2d32f1-0x0;let _0x49529e=_0x468f[_0x2d32f1];return _0x49529e;};export default function z(_0x599331,{limit:_0x536b8a,suffix:_0x469ae0=_0x4952('0x2')}){const _0x388f72=[];let _0x588fc4=0x0;const _0x31cf8f=_0x599331[_0x4952('0x9')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x4952('0x9')](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x338509=0x0;_0x338509<_0x31cf8f[_0x4952('0x4')];_0x338509++){let _0x1bcd49=_0x31cf8f[_0x338509];const _0x5d0207=Z(_0x1bcd49);if(_0x1bcd49[_0x4952('0x0')]('<')){if(_0x588fc4>=_0x536b8a){const _0x2157a3=_0x1bcd49[_0x4952('0x5')](/[a-zA-Z]+/);if(!_0x2157a3){_0x31cf8f[_0x338509]='';continue;}const _0x19cfa8=_0x2157a3[0x0];_0x1bcd49[_0x4952('0x0')]('</')?(_0x388f72[_0x4952('0x4')]&&(_0x1bcd49=''),_0x388f72[_0x4952('0x6')]()):(_0x388f72[_0x4952('0x7')](_0x19cfa8),_0x1bcd49='');}}else{if(_0x588fc4>=_0x536b8a)_0x1bcd49='';else{if(_0x588fc4+_0x5d0207['length']>=_0x536b8a){let _0x30b0d2=_0x536b8a-_0x588fc4;if('\x20'===_0x5d0207[_0x30b0d2-0x1])_0x30b0d2--;else{const _0x4b1f09=_0x5d0207[_0x4952('0x8')](_0x30b0d2)[_0x4952('0x3')]('\x20');-0x1!==_0x4b1f09?_0x30b0d2+=_0x4b1f09:_0x30b0d2=_0x1bcd49[_0x4952('0x4')];}_0x1bcd49=_0x5d0207[_0x4952('0x8')](0x0,_0x30b0d2)[_0x4952('0x1')]('')+_0x469ae0,_0x588fc4=_0x536b8a;}else _0x588fc4+=_0x5d0207['length'];}}_0x31cf8f[_0x338509]=_0x1bcd49;}return _0x31cf8f[_0x4952('0x1')]('\x0a')[_0x4952('0x9')](/\n/g,'');}function Z(_0x531e48){const _0x14ce0f=[];for(let _0x400433=0x0;_0x400433<_0x531e48[_0x4952('0x4')];_0x400433++){const _0x1966d3=_0x531e48['substring'](_0x400433)[_0x4952('0x5')](/^&[a-z0-9#]+;/);if(_0x1966d3){const _0x25fd15=_0x1966d3[0x0];_0x14ce0f[_0x4952('0x7')](_0x25fd15),_0x400433+=_0x25fd15[_0x4952('0x4')]-0x1;}else _0x14ce0f[_0x4952('0x7')](_0x531e48[_0x400433]);}return _0x14ce0f;}
|