@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20230904.0 → 0.0.0-nightly-20230906.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-20230906.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-20230906.0",
|
35
35
|
"date-fns": "2.30.0"
|
36
36
|
},
|
37
37
|
"files": [
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5888=['CommentsOnly','commands','no-permissions','disableReadOnlyMode','editors','pluginName','isEnabled','has','forceDisabled','config','get','comment:write','collaboration.channelId','noPermissions','setPermissions','Permissions','find','plugins','document:write','includes','CommentsRepository','permissions-set-permissions-invalid-channel-id','context','enableReadOnlyMode','comment:modify_all'];(function(_0x30de68,_0x58880d){const _0x9b1b25=function(_0x23272a){while(--_0x23272a){_0x30de68['push'](_0x30de68['shift']());}};_0x9b1b25(++_0x58880d);}(_0x5888,0x131));const _0x9b1b=function(_0x30de68,_0x58880d){_0x30de68=_0x30de68-0x0;let _0x9b1b25=_0x5888[_0x30de68];return _0x9b1b25;};import{ContextPlugin as _0x12bf8c,Editor as _0x1c9ded}from'ckeditor5/src/core';import{CKEditorError as _0x2066c0}from'ckeditor5/src/utils';export default class n extends _0x12bf8c{static get[_0x9b1b('0x0')](){return _0x9b1b('0xa');}[_0x9b1b('0x9')](_0x3b9fd7,_0x3b22b1){let _0x435f8d;if(_0x3b22b1||(_0x3b22b1=this[_0x9b1b('0x11')]['config'][_0x9b1b('0x5')](_0x9b1b('0x7'))),this[_0x9b1b('0x11')][_0x9b1b('0x4')][_0x9b1b('0x5')]('collaboration.channelId')==_0x3b22b1?_0x435f8d=this[_0x9b1b('0x11')]:'editors'in this[_0x9b1b('0x11')]&&this[_0x9b1b('0x11')]['editors']&&(_0x435f8d=this[_0x9b1b('0x11')][_0x9b1b('0x18')][_0x9b1b('0xb')](_0x45203c=>_0x45203c[_0x9b1b('0x4')][_0x9b1b('0x5')]('collaboration.channelId')==_0x3b22b1)),!_0x435f8d)throw new _0x2066c0(_0x9b1b('0x10'),null);const _0x274922=_0x435f8d[_0x9b1b('0xc')],_0x48653c=_0x274922['has'](_0x9b1b('0xf'))?_0x274922[_0x9b1b('0x5')](_0x9b1b('0xf')):void 0x0,_0x1dec9e=_0x274922[_0x9b1b('0x2')](_0x9b1b('0x14'))&&_0x274922[_0x9b1b('0x5')](_0x9b1b('0x14')),_0x318e6f=_0x3b9fd7[_0x9b1b('0xe')](_0x9b1b('0xd')),_0x263bb7=_0x3b9fd7['includes'](_0x9b1b('0x13')),_0x10acbe=_0x3b9fd7['includes']('comment:admin'),_0x92028=_0x3b9fd7['includes'](_0x9b1b('0x6')),_0x563178=_0x92028||_0x10acbe,_0x6a6d47=_0x563178||_0x263bb7,_0x400e2c=_0x318e6f||_0x563178;(_0x1dec9e&&(_0x1dec9e[_0x9b1b('0x1')]=!_0x318e6f&&_0x6a6d47),_0x435f8d instanceof _0x1c9ded)&&(!(_0x318e6f||_0x6a6d47&&_0x48653c)?_0x435f8d[_0x9b1b('0x12')](_0x9b1b('0x16')):_0x435f8d[_0x9b1b('0x17')]('no-permissions'));if(_0x48653c){_0x48653c[_0x9b1b('0x9')]({'admin':_0x10acbe,'modifyAll':_0x263bb7,'write':_0x92028,'resolve':_0x400e2c},_0x3b22b1);const _0xfadf16=_0x435f8d instanceof _0x1c9ded&&_0x435f8d[_0x9b1b('0x15')][_0x9b1b('0x5')]('addCommentThread');_0xfadf16&&(_0x563178?_0xfadf16['clearForceDisabled'](_0x9b1b('0x8')):_0xfadf16[_0x9b1b('0x3')](_0x9b1b('0x8')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1ad1=['ck-user__avatar','initials','setTemplate','ck\x20ck-user__name','notificationView','ck-user__anonymous','extendTemplate','div','ck-user__notification','avatar','isAnonymous','ck-user','ck-user__icon','url(\x27','push','content'];(function(_0x4e54ce,_0x1ad151){const _0x5de8d3=function(_0xe9e26f){while(--_0xe9e26f){_0x4e54ce['push'](_0x4e54ce['shift']());}};_0x5de8d3(++_0x1ad151);}(_0x1ad1,0x1ad));const _0x5de8=function(_0x4e54ce,_0x1ad151){_0x4e54ce=_0x4e54ce-0x0;let _0x5de8d3=_0x1ad1[_0x4e54ce];return _0x5de8d3;};import{View as _0x57eb60,IconView as _0x1aea73}from'ckeditor5/src/ui';import _0x362ac4 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x57eb60{constructor(_0x12815b,_0x251737,_0x314fe1){super(_0x12815b),this['name']=_0x251737['name'],this[_0x5de8('0x7')]=null;const _0x42db3d=['ck','ck-user__img'];if(_0x251737[_0x5de8('0xd')]&&_0x42db3d[_0x5de8('0x1')](_0x5de8('0x8')),_0x251737[_0x5de8('0xc')]&&_0x42db3d['push'](_0x5de8('0x3')),_0x314fe1){const _0x1e0fc7=new _0x1aea73();_0x1e0fc7[_0x5de8('0x9')]({'attributes':{'class':[_0x5de8('0xf')]}}),_0x1e0fc7[_0x5de8('0x2')]=_0x362ac4,this[_0x5de8('0x7')]={'tag':_0x5de8('0xa'),'attributes':{'class':['ck',_0x5de8('0xb')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x314fe1},'children':[_0x1e0fc7]};}const _0x1afcc6=[{'tag':_0x5de8('0xa'),'attributes':{'class':_0x42db3d,'style':{'background-image':_0x251737['avatar']?_0x5de8('0x0')+_0x251737[_0x5de8('0xc')]+'\x27)':''}}},{'tag':_0x5de8('0xa'),'attributes':{'class':_0x251737[_0x5de8('0xc')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x5de8('0x6')},'children':[{'text':_0x251737[_0x5de8('0x4')]}]}];this[_0x5de8('0x7')]&&_0x1afcc6[_0x5de8('0x1')](this[_0x5de8('0x7')]),this[_0x5de8('0x5')]({'tag':_0x5de8('0xa'),'attributes':{'class':['ck',_0x5de8('0xe')],'data-user-id':_0x251737['id']},'children':_0x1afcc6});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5b3d=['licenseKey','get','color','Users','avatar','define','string','isAnonymous','addUser','_myId','defineMe','ck-user__bg-color--','length','config','pluginName','ck-user__marker--','_addAnonymousUser','context','users.anonymousUserId','split','Anonymous','users-me-missing-user','charAt','users-add-duplicated-id','trial-license-key-reached-limit-time','licenseKeyTrialLimit:time','trial-license-key-reached-limit-revisions','licenseKeyTrialLimit:revisions','ck-user__selection--','invalid-license-key','licenseKeyTrialLimit:operations','_lastColor','destroy','getSelectionClass','_getInitial','init','licenseKeyTrial','getUser','anonymous-user','users','_locale','trial-license-key-reached-limit-changes','getBackgroundColorClass','getMarkerClass','initials','users.colorsCount','licenseKeyInvalid','name','_licenseKeyCheckInterval','_id','toUpperCase','_getNextColor','getOperationAuthor','licenseKeyValid','_isAnonymous','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.'];(function(_0x10c3ae,_0x5b3d39){const _0x52fc97=function(_0x57fef2){while(--_0x57fef2){_0x10c3ae['push'](_0x10c3ae['shift']());}};_0x52fc97(++_0x5b3d39);}(_0x5b3d,0xaa));const _0x52fc=function(_0x10c3ae,_0x5b3d39){_0x10c3ae=_0x10c3ae-0x0;let _0x52fc97=_0x5b3d[_0x10c3ae];return _0x52fc97;};import{ContextPlugin as _0x3cb030}from'ckeditor5/src/core';import{Collection as _0x4ebbb5,CKEditorError as _0x4b0cdc}from'ckeditor5/src/utils';import _0x356aed from'./permissions';import{getTranslation as _0x52f20c}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x3cb030{static get[_0x52fc('0xc')](){return _0x52fc('0x1');}static get['requires'](){return[_0x356aed];}constructor(_0x355baa){super(_0x355baa),this[_0x52fc('0xf')]['config'][_0x52fc('0x3')]('users.anonymousUserId',_0x52fc('0x24')),this[_0x52fc('0xf')][_0x52fc('0xb')][_0x52fc('0x3')](_0x52fc('0x2b'),0x8),this['users']=new _0x4ebbb5(),this[_0x52fc('0x26')]=_0x355baa['locale'],this[_0x52fc('0x2e')]=null,this['_lastColor']=0x0,this[_0x52fc('0x7')]=null,this['decorate'](_0x52fc('0x32'));}[_0x52fc('0x21')](){const _0x16cbcb=this[_0x52fc('0xf')];this[_0x52fc('0x36')]=_0x16cbcb['config'][_0x52fc('0x37')](_0x52fc('0x36'));const _0x25a462=[_0x52fc('0x22'),_0x52fc('0x2c'),_0x52fc('0x33'),_0x52fc('0x1c'),_0x52fc('0x17'),_0x52fc('0x19')];this[_0x52fc('0x2e')]=setInterval(()=>{let _0x338195;for(const _0x24ad01 in _0x16cbcb){const _0x480a80=_0x16cbcb[_0x24ad01];if(_0x25a462['includes'](_0x480a80)){delete _0x16cbcb[_0x24ad01],_0x338195=_0x480a80;break;}}if(_0x52fc('0x2c')===_0x338195)throw clearInterval(this[_0x52fc('0x2e')]),new _0x4b0cdc(_0x52fc('0x1b'),null);if('licenseKeyTrial'===_0x338195&&console['info'](_0x52fc('0x35')),_0x52fc('0x1c')===_0x338195)throw clearInterval(this[_0x52fc('0x2e')]),new _0x4b0cdc(_0x52fc('0x27'),null);if('licenseKeyTrialLimit:time'===_0x338195)throw clearInterval(this[_0x52fc('0x2e')]),new _0x4b0cdc(_0x52fc('0x16'),null);if(_0x52fc('0x19')===_0x338195)throw clearInterval(this[_0x52fc('0x2e')]),new _0x4b0cdc(_0x52fc('0x18'),null);_0x52fc('0x33')===_0x338195&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x52fc('0xe')]();}get['me'](){return null==this[_0x52fc('0x7')]?null:this['getUser'](this['_myId']);}[_0x52fc('0x6')]({id:_0x2dcfcf,name:_0x410fc7,..._0x3eb1b9}){if(!_0x2dcfcf||_0x52fc('0x4')!=typeof _0x2dcfcf)throw new _0x4b0cdc('users-add-invalid-id');if(this[_0x52fc('0x25')]['has'](_0x2dcfcf))throw new _0x4b0cdc(_0x52fc('0x15'),null,{'id':_0x2dcfcf});const _0x4d10bf={..._0x3eb1b9,'id':_0x2dcfcf,'name':a(this['_locale'],_0x410fc7),'color':this['_getNextColor']()};_0x4d10bf[_0x52fc('0x2d')]=a(this[_0x52fc('0x26')],_0x4d10bf[_0x52fc('0x2d')]);const _0x19f734=new User(_0x4d10bf);return this[_0x52fc('0x25')]['add'](_0x19f734),_0x19f734;}[_0x52fc('0x23')](_0x26f38d){return this[_0x52fc('0x25')][_0x52fc('0x37')](_0x26f38d);}['useAnonymousUser'](){const _0x5864f8=this['context'][_0x52fc('0xb')][_0x52fc('0x37')](_0x52fc('0x10'));this[_0x52fc('0x7')]||this[_0x52fc('0x8')](_0x5864f8);}[_0x52fc('0x8')](_0x50dd0a){if(this[_0x52fc('0x7')])throw new _0x4b0cdc('users-me-already-defined',null);if(!this[_0x52fc('0x23')](_0x50dd0a))throw new _0x4b0cdc(_0x52fc('0x13'),null);this['_myId']=_0x50dd0a;}['getOperationAuthor'](){return this['me'];}['destroy'](){super[_0x52fc('0x1e')](),clearInterval(this[_0x52fc('0x2e')]);}[_0x52fc('0x31')](){const _0x97e130=this[_0x52fc('0xf')][_0x52fc('0xb')][_0x52fc('0x37')](_0x52fc('0x2b'));return this[_0x52fc('0x1d')]>=_0x97e130&&(this[_0x52fc('0x1d')]=0x0),new u(this[_0x52fc('0x1d')]++);}['_addAnonymousUser'](){const _0x58925a=this[_0x52fc('0xf')]['config']['get']('users.anonymousUserId');this[_0x52fc('0x6')]({'id':_0x58925a,'name':_0x52f20c(this[_0x52fc('0x26')],_0x52fc('0x12'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x5c46a7){this['id']=_0x5c46a7['id'],this[_0x52fc('0x0')]=_0x5c46a7[_0x52fc('0x0')],this['name']=_0x5c46a7[_0x52fc('0x2d')],this[_0x52fc('0x2')]=_0x5c46a7[_0x52fc('0x2')],this['_isAnonymous']=!0x1;}get[_0x52fc('0x5')](){return this[_0x52fc('0x34')];}get[_0x52fc('0x2a')](){const _0x343f97=this[_0x52fc('0x2d')][_0x52fc('0x11')]('\x20');return 0x1===_0x343f97[_0x52fc('0xa')]?this[_0x52fc('0x20')](_0x343f97[0x0]):this[_0x52fc('0x20')](_0x343f97[0x0])+this[_0x52fc('0x20')](_0x343f97[_0x343f97[_0x52fc('0xa')]-0x1]);}[_0x52fc('0x20')](_0x4f9996){return _0x4f9996[_0x52fc('0x14')](0x0)[_0x52fc('0x30')]();}}function a(_0x31d0fe,_0x1eac55=''){return''==(_0x1eac55=_0x1eac55['trim']())?_0x52f20c(_0x31d0fe,_0x52fc('0x12')):_0x1eac55;}class u{constructor(_0x1e304b){this[_0x52fc('0x2f')]=_0x1e304b;}[_0x52fc('0x28')](){return _0x52fc('0x9')+this[_0x52fc('0x2f')];}[_0x52fc('0x1f')](){return _0x52fc('0x1a')+this['_id'];}[_0x52fc('0x29')](){return _0x52fc('0xd')+this[_0x52fc('0x2f')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x46076b,_0x3266df){const t=_0x46076b['t'];switch(_0x3266df){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 _0x14a1=['message','appendChild','cancel','confirmView','isConfirm','element','submit','deregisterChild','registerChild','remove','focus','set','once','destroy','showConfirm','cancelConfirm','fire','locale','_removeConfirm'];(function(_0x325c5e,_0x14a1f0){var _0x1739c7=function(_0x58c869){while(--_0x58c869){_0x325c5e['push'](_0x325c5e['shift']());}};_0x1739c7(++_0x14a1f0);}(_0x14a1,0x137));var _0x1739=function(_0x325c5e,_0x14a1f0){_0x325c5e=_0x325c5e-0x0;var _0x1739c7=_0x14a1[_0x325c5e];return _0x1739c7;};import _0x4323ba from'./confirmview';export default function m(_0xd9ed71){return class extends _0xd9ed71{[_0x1739('0x7')](_0x2d0e10,_0x41d77a){return this[_0x1739('0xf')]=new _0x4323ba(this[_0x1739('0xa')]),this[_0x1739('0xf')]['render'](),this[_0x1739('0xf')][_0x1739('0xc')]=_0x2d0e10,this[_0x1739('0xf')][_0x1739('0x5')](_0x1739('0xe'),()=>{this[_0x1739('0xb')]();}),this[_0x1739('0xf')][_0x1739('0x5')](_0x1739('0x12'),()=>{this[_0x1739('0xb')]();}),_0x41d77a[_0x1739('0xd')](this[_0x1739('0xf')][_0x1739('0x11')]),this[_0x1739('0x1')](this[_0x1739('0xf')]),this[_0x1739('0x11')][_0x1739('0x3')](),this[_0x1739('0x4')](_0x1739('0x10'),!0x0),new Promise(_0xe79699=>this[_0x1739('0xf')]['on'](_0x1739('0x12'),_0xe79699));}[_0x1739('0x8')](){this[_0x1739('0x10')]&&this[_0x1739('0xf')][_0x1739('0x9')](_0x1739('0xe'));}[_0x1739('0xb')](){this[_0x1739('0x11')]&&this[_0x1739('0xf')]&&this['confirmView'][_0x1739('0x11')]&&(this['element'][_0x1739('0x3')](),this['confirmView'][_0x1739('0x11')][_0x1739('0x2')](),this[_0x1739('0x0')](this[_0x1739('0xf')]),this[_0x1739('0x10')]=!0x1,this['confirmView'][_0x1739('0x6')](),this['confirmView']=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x25be=['div','ck-thread__remove-confirm-','message','_createButtonView','submitView','cancelView','cancel','bindTemplate','submit','execute','set','ck-thread__remove-confirm','Are\x20you\x20sure?','extendTemplate','ck-thread__remove-confirm-inner'];(function(_0x476d18,_0x25beb3){const _0x4a9c03=function(_0x41dd54){while(--_0x41dd54){_0x476d18['push'](_0x476d18['shift']());}};_0x4a9c03(++_0x25beb3);}(_0x25be,0x190));const _0x4a9c=function(_0x476d18,_0x25beb3){_0x476d18=_0x476d18-0x0;let _0x4a9c03=_0x25be[_0x476d18];return _0x4a9c03;};import{View as _0x4d9847,ButtonView as _0x36d948}from'ckeditor5/src/ui';import{icons as _0xf25e71}from'ckeditor5/src/core';import{getTranslation as _0x4f1da9}from'./common-translations';export default class h extends _0x4d9847{constructor(_0x204740){super(_0x204740);const _0x40eeb1=this[_0x4a9c('0xc')];this[_0x4a9c('0x9')]=this[_0x4a9c('0x8')](_0x204740,_0x4f1da9(_0x204740,'Yes'),_0xf25e71['check'],_0x4a9c('0xd')),this[_0x4a9c('0xa')]=this[_0x4a9c('0x8')](_0x204740,_0x4f1da9(_0x204740,'No'),_0xf25e71[_0x4a9c('0xb')],_0x4a9c('0xb')),this[_0x4a9c('0x0')](_0x4a9c('0x7'),_0x4f1da9(_0x204740,_0x4a9c('0x2'))),this['setTemplate']({'tag':_0x4a9c('0x5'),'attributes':{'class':[_0x4a9c('0x1')]},'children':[{'tag':_0x4a9c('0x5'),'attributes':{'class':_0x4a9c('0x4')},'children':[{'tag':'p','children':[{'text':_0x40eeb1['to'](_0x4a9c('0x7'))}]},{'tag':_0x4a9c('0x5'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x4a9c('0x9')],this[_0x4a9c('0xa')]]}]}]});}['_createButtonView'](_0x39f576,_0x3edec9,_0x50c473,_0x2ed49a){const _0x27cb70=new _0x36d948(_0x39f576);return _0x27cb70['label']=_0x3edec9,_0x27cb70['icon']=_0x50c473,_0x27cb70[_0x4a9c('0x3')]({'attributes':{'class':_0x4a9c('0x6')+_0x2ed49a}}),_0x27cb70['on'](_0x4a9c('0xe'),()=>this['fire'](_0x2ed49a)),_0x27cb70;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x15af=['dateTimeFormat','\x27Yesterday\x27\x20hh:mma','function','string','\x27Last\x27\x20EEEE\x20hh:mma','\x27Today\x27\x20hh:mma'];(function(_0x480a00,_0x15afd8){const _0x58e2ce=function(_0x1b4ca2){while(--_0x1b4ca2){_0x480a00['push'](_0x480a00['shift']());}};_0x58e2ce(++_0x15afd8);}(_0x15af,0x192));const _0x58e2=function(_0x480a00,_0x15afd8){_0x480a00=_0x480a00-0x0;let _0x58e2ce=_0x15af[_0x480a00];return _0x58e2ce;};import _0x1971bb from'date-fns/format';import _0x4d9d17 from'date-fns/parseISO';import _0x2433f7 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x2d935}from'ckeditor5/src/utils';export default function E(_0x44f81f={}){if(void 0x0!==_0x44f81f[_0x58e2('0x0')]&&_0x58e2('0x2')!=typeof _0x44f81f['dateTimeFormat'])throw new _0x2d935('invalid-date-time-format');return _0x569055=>{const _0xd23219=_0x58e2('0x3')==typeof _0x569055?_0x4d9d17(_0x569055):_0x569055,_0x3b473c=new Date(),_0x199ccf=_0x2433f7(_0x3b473c,_0xd23219);return _0x44f81f['dateTimeFormat']?_0x44f81f[_0x58e2('0x0')](_0xd23219):_0x1971bb(_0xd23219,0x0===_0x199ccf?_0x58e2('0x5'):0x1===_0x199ccf?_0x58e2('0x1'):_0x199ccf<0x7?_0x58e2('0x4'):'MM-dd-yyyy\x20hh:mma');};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x352e=['sort','mapper','values','markerNameToElements','view','domConverter','map','mapViewToDom','filter','length','name','getClientRects','from'];(function(_0x12ffe5,_0x352e1b){const _0x224c63=function(_0x17cb3e){while(--_0x17cb3e){_0x12ffe5['push'](_0x12ffe5['shift']());}};_0x224c63(++_0x352e1b);}(_0x352e,0xb3));const _0x224c=function(_0x12ffe5,_0x352e1b){_0x12ffe5=_0x12ffe5-0x0;let _0x224c63=_0x352e[_0x12ffe5];return _0x224c63;};import{first as _0x44f866}from'ckeditor5/src/utils';export default function k(_0x9c2bf3,_0x15cf97){const _0x318711=_0x9c2bf3[_0x224c('0x4')][_0x224c('0x6')](_0x15cf97[_0x224c('0x0')]);if(!_0x318711)return null;const _0x125dd4=_0x44f866(_0x318711[_0x224c('0x5')]());return _0x9c2bf3[_0x224c('0x7')][_0x224c('0x8')][_0x224c('0xa')](_0x125dd4)||null;}export function getAllMarkersDomElementsSorted(_0x456c58,_0x4fc585){if(0x0===_0x4fc585['length'])return null;const _0x47f5e3=[],_0x3d69a0=_0x456c58['view'][_0x224c('0x8')];for(const _0x33cd96 of _0x4fc585){const _0x40ac68=_0x456c58['mapper'][_0x224c('0x6')](_0x33cd96[_0x224c('0x0')]);if(!_0x40ac68)continue;const _0x42eafc=Array[_0x224c('0x2')](_0x40ac68)[_0x224c('0x9')](_0x159046=>_0x3d69a0[_0x224c('0xa')](_0x159046))[_0x224c('0xb')](_0x156004=>!!_0x156004);_0x47f5e3['push'](..._0x42eafc);}if(0x0===_0x47f5e3[_0x224c('0xc')])return null;const _0x2238ad=[];for(const _0x36ebb4 of _0x47f5e3){const _0xc19c6e=_0x36ebb4[_0x224c('0x1')]()['item'](0x0);_0xc19c6e&&_0x2238ad['push']({'x':_0xc19c6e['x'],'y':_0xc19c6e['y'],'domElement':_0x36ebb4});}return 0x0===_0x2238ad[_0x224c('0xc')]?null:(_0x2238ad[_0x224c('0x3')]((_0x26aab7,_0x13d757)=>_0x26aab7['y']-_0x13d757['y']||_0x26aab7['x']-_0x13d757['x']),_0x2238ad[_0x224c('0x9')](_0x1d1daf=>_0x1d1daf['domElement']));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x4f29=['boolean','object','keys','sort','isArray','string'];(function(_0x6222fe,_0x4f2954){const _0x74031d=function(_0x3679f9){while(--_0x3679f9){_0x6222fe['push'](_0x6222fe['shift']());}};_0x74031d(++_0x4f2954);}(_0x4f29,0x7d));const _0x7403=function(_0x6222fe,_0x4f2954){_0x6222fe=_0x6222fe-0x0;let _0x74031d=_0x4f29[_0x6222fe];return _0x74031d;};export default function b(_0x126a4a){let _0x63aacc=0x0,_0x27d48b=0x0;for(const _0x258514 of g(_0x126a4a))_0x63aacc=(_0x63aacc<<0x5)-_0x63aacc+_0x258514,_0x63aacc&=_0x63aacc,[_0x63aacc,_0x27d48b]=[_0x27d48b,_0x63aacc];return O(_0x63aacc)+O(_0x27d48b);}function*j(_0x527bc3){_0x527bc3?_0x7403('0x1')==typeof _0x527bc3?yield 0x1:Array[_0x7403('0x5')](_0x527bc3)?yield*function*(_0x368038){for(const _0x4ba7aa of _0x368038)yield*j(_0x4ba7aa);}(_0x527bc3):_0x7403('0x2')==typeof _0x527bc3?yield*g(_0x527bc3):_0x7403('0x0')==typeof _0x527bc3?yield*A(_0x527bc3):'number'==typeof _0x527bc3&&(yield _0x527bc3):yield 0x0;}function*g(_0x2f2f92){if(yield M('{'),_0x2f2f92){const _0xd84f0d=Object[_0x7403('0x3')](_0x2f2f92)[_0x7403('0x4')]();for(const _0x287a1e of _0xd84f0d){yield*A(_0x287a1e),yield M(':');const _0x5af2ff=_0x2f2f92[_0x287a1e];yield*j(_0x5af2ff);}}yield M('}');}function*A(_0x2584ab){yield M('\x22');for(const _0x4fb47c of _0x2584ab)yield M(_0x4fb47c);yield M('\x22');}function M(_0x53b7d3){return _0x53b7d3['charCodeAt'](0x0);}function O(_0x25c67e){return(_0x25c67e*=Math['sign'](_0x25c67e))['toString'](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0xc355=['string','config','find','WordCount','DocumentOutline','filter','Autosave','initialData','requires','WebSocketGateway','constructor','plugins','concat','pluginName','_context','rootsAttributes','WProofreader','includes','get','set','removePlugins','extraPlugins','every','has','names','map','context','length'];(function(_0x3a235a,_0xc3552f){const _0xb4b8ac=function(_0x57626e){while(--_0x57626e){_0x3a235a['push'](_0x3a235a['shift']());}};_0xb4b8ac(++_0xc3552f);}(_0xc355,0x158));const _0xb4b8=function(_0x3a235a,_0xc3552f){_0x3a235a=_0x3a235a-0x0;let _0xb4b8ac=_0xc355[_0x3a235a];return _0xb4b8ac;};const w=[_0xb4b8('0x1b'),_0xb4b8('0x12'),'toolbar',_0xb4b8('0x7')],W=[_0xb4b8('0x1'),'RevisionTracker',_0xb4b8('0x1a'),_0xb4b8('0x17'),_0xb4b8('0x18'),_0xb4b8('0x8')];function v(_0x38613f,_0x7c87d5,_0x55a2e1,_0x40e2d6=[]){const _0x2d62dc=_0xb4b8('0x14')==typeof _0x38613f?_0x55a2e1[_0xb4b8('0xa')](_0x38613f)[_0xb4b8('0x2')]:_0x38613f,_0x5455a5=_0x2d62dc[_0xb4b8('0x5')]||_0x2d62dc['name'];if(_0x7c87d5[_0xb4b8('0xf')](_0x5455a5))return _0x7c87d5[_0xb4b8('0xa')](_0x5455a5);if(_0x7c87d5[_0xb4b8('0xb')](_0x5455a5,!0x0),_0x5455a5&&W[_0xb4b8('0x4')](_0x40e2d6)[_0xb4b8('0x9')](_0x5455a5))return _0x7c87d5['set'](_0x5455a5,!0x1),!0x1;if(!_0x2d62dc[_0xb4b8('0x0')])return _0x7c87d5['set'](_0x5455a5,!0x0),!0x0;const _0x269434=_0x2d62dc[_0xb4b8('0x0')][_0xb4b8('0xe')](_0x3d2a8f=>v(_0x3d2a8f,_0x7c87d5,_0x55a2e1,_0x40e2d6));return _0x7c87d5[_0xb4b8('0xb')](_0x5455a5,_0x269434),_0x269434;}export default function D(_0x5975da,_0x185dd6){const _0x38f31f={};for(const _0x10ffd6 of _0x5975da['config'][_0xb4b8('0x10')]())w[_0xb4b8('0x9')](_0x10ffd6)||(_0x38f31f[_0x10ffd6]=_0x5975da['config']['get'](_0x10ffd6));const _0x143b4b=_0x38f31f['plugins']||[],_0x5b3e83=_0x5975da['constructor']['builtinPlugins']||[],_0xb78999=_0x143b4b[_0xb4b8('0x13')]?_0x143b4b:_0x5b3e83,_0x1d51e8=_0x38f31f[_0xb4b8('0xd')]||[];delete _0x38f31f[_0xb4b8('0xd')];const _0x8ea28e=_0x38f31f['removePlugins']||[];delete _0x38f31f[_0xb4b8('0xc')];const _0x57a7d6=_0x5975da[_0xb4b8('0x6')][_0xb4b8('0x15')][_0xb4b8('0xa')](_0xb4b8('0x3'))||[],_0x187a1e=_0xb78999[_0xb4b8('0x4')](_0x1d51e8)[_0xb4b8('0x4')](_0x57a7d6)[_0xb4b8('0x11')](_0x77468c=>'string'==typeof _0x77468c?_0x5b3e83[_0xb4b8('0x16')](_0x3a7cbe=>_0x3a7cbe[_0xb4b8('0x5')]==_0x77468c):_0x77468c)[_0xb4b8('0x19')](_0x34f3df=>!_0x8ea28e[_0xb4b8('0x9')](_0x34f3df)),_0x4166d2=Array['from'](new Set(_0x187a1e)),_0x218c61=new Map();return _0x38f31f[_0xb4b8('0x3')]=_0x4166d2[_0xb4b8('0x19')](_0x1df947=>v(_0x1df947,_0x218c61,_0x5975da[_0xb4b8('0x3')],_0x185dd6)),_0x38f31f;}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5c6d=['substring','slice','length','split','pop','match','...','push','indexOf','startsWith','replace','join'];(function(_0x1678fd,_0x5c6d63){const _0x4c5a69=function(_0x1454d0){while(--_0x1454d0){_0x1678fd['push'](_0x1678fd['shift']());}};_0x4c5a69(++_0x5c6d63);}(_0x5c6d,0xc2));const _0x4c5a=function(_0x1678fd,_0x5c6d63){_0x1678fd=_0x1678fd-0x0;let _0x4c5a69=_0x5c6d[_0x1678fd];return _0x4c5a69;};export default function z(_0x55dd54,{limit:_0x141f61,suffix:_0x19c941=_0x4c5a('0x4')}){const _0x4e907e=[];let _0x403ce9=0x0;const _0x10e1d0=_0x55dd54['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x4c5a('0x8')](/^\n/g,'')[_0x4c5a('0x8')](/\n$/g,'')[_0x4c5a('0x1')]('\x0a');for(let _0x2b5cbc=0x0;_0x2b5cbc<_0x10e1d0[_0x4c5a('0x0')];_0x2b5cbc++){let _0x53263f=_0x10e1d0[_0x2b5cbc];const _0xbf4a4b=Z(_0x53263f);if(_0x53263f[_0x4c5a('0x7')]('<')){if(_0x403ce9>=_0x141f61){const _0x4663fc=_0x53263f[_0x4c5a('0x3')](/[a-zA-Z]+/);if(!_0x4663fc){_0x10e1d0[_0x2b5cbc]='';continue;}const _0x3ccbc6=_0x4663fc[0x0];_0x53263f[_0x4c5a('0x7')]('</')?(_0x4e907e[_0x4c5a('0x0')]&&(_0x53263f=''),_0x4e907e[_0x4c5a('0x2')]()):(_0x4e907e[_0x4c5a('0x5')](_0x3ccbc6),_0x53263f='');}}else{if(_0x403ce9>=_0x141f61)_0x53263f='';else{if(_0x403ce9+_0xbf4a4b[_0x4c5a('0x0')]>=_0x141f61){let _0x21eeb0=_0x141f61-_0x403ce9;if('\x20'===_0xbf4a4b[_0x21eeb0-0x1])_0x21eeb0--;else{const _0x22bbcc=_0xbf4a4b[_0x4c5a('0xb')](_0x21eeb0)[_0x4c5a('0x6')]('\x20');-0x1!==_0x22bbcc?_0x21eeb0+=_0x22bbcc:_0x21eeb0=_0x53263f[_0x4c5a('0x0')];}_0x53263f=_0xbf4a4b['slice'](0x0,_0x21eeb0)[_0x4c5a('0x9')]('')+_0x19c941,_0x403ce9=_0x141f61;}else _0x403ce9+=_0xbf4a4b[_0x4c5a('0x0')];}}_0x10e1d0[_0x2b5cbc]=_0x53263f;}return _0x10e1d0[_0x4c5a('0x9')]('\x0a')[_0x4c5a('0x8')](/\n/g,'');}function Z(_0x3e23c2){const _0x32489e=[];for(let _0x129cc5=0x0;_0x129cc5<_0x3e23c2[_0x4c5a('0x0')];_0x129cc5++){const _0x2e51e6=_0x3e23c2[_0x4c5a('0xa')](_0x129cc5)[_0x4c5a('0x3')](/^&[a-z0-9#]+;/);if(_0x2e51e6){const _0x55cbd3=_0x2e51e6[0x0];_0x32489e[_0x4c5a('0x5')](_0x55cbd3),_0x129cc5+=_0x55cbd3[_0x4c5a('0x0')]-0x1;}else _0x32489e[_0x4c5a('0x5')](_0x3e23c2[_0x129cc5]);}return _0x32489e;}
|