@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20230821.1 → 0.0.0-nightly-20230822.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-20230822.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-20230822.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 _0x5b7e=['includes','find','forceDisabled','context','plugins','comment:modify_all','comment:write','collaboration.channelId','addCommentThread','isEnabled','commands','enableReadOnlyMode','setPermissions','config','editors','comment:admin','clearForceDisabled','get','has','disableReadOnlyMode','CommentsRepository','document:write','pluginName','no-permissions','noPermissions','CommentsOnly','Permissions'];(function(_0x15b1da,_0x5b7e0d){const _0x3b6bbb=function(_0x42a9f6){while(--_0x42a9f6){_0x15b1da['push'](_0x15b1da['shift']());}};_0x3b6bbb(++_0x5b7e0d);}(_0x5b7e,0xbf));const _0x3b6b=function(_0x15b1da,_0x5b7e0d){_0x15b1da=_0x15b1da-0x0;let _0x3b6bbb=_0x5b7e[_0x15b1da];return _0x3b6bbb;};import{ContextPlugin as _0x2b9411,Editor as _0x449d2e}from'ckeditor5/src/core';import{CKEditorError as _0xbf8a8b}from'ckeditor5/src/utils';export default class n extends _0x2b9411{static get[_0x3b6b('0x14')](){return _0x3b6b('0x18');}[_0x3b6b('0xa')](_0x254d03,_0x3467d8){let _0x2e3e61;if(_0x3467d8||(_0x3467d8=this[_0x3b6b('0x1')][_0x3b6b('0xb')]['get'](_0x3b6b('0x5'))),this[_0x3b6b('0x1')][_0x3b6b('0xb')][_0x3b6b('0xf')](_0x3b6b('0x5'))==_0x3467d8?_0x2e3e61=this[_0x3b6b('0x1')]:_0x3b6b('0xc')in this[_0x3b6b('0x1')]&&this[_0x3b6b('0x1')][_0x3b6b('0xc')]&&(_0x2e3e61=this['context'][_0x3b6b('0xc')][_0x3b6b('0x1a')](_0x173137=>_0x173137[_0x3b6b('0xb')][_0x3b6b('0xf')](_0x3b6b('0x5'))==_0x3467d8)),!_0x2e3e61)throw new _0xbf8a8b('permissions-set-permissions-invalid-channel-id',null);const _0x299a28=_0x2e3e61[_0x3b6b('0x2')],_0x10f6b7=_0x299a28[_0x3b6b('0x10')]('CommentsRepository')?_0x299a28[_0x3b6b('0xf')](_0x3b6b('0x12')):void 0x0,_0x46b6dd=_0x299a28[_0x3b6b('0x10')]('CommentsOnly')&&_0x299a28['get'](_0x3b6b('0x17')),_0x1813ca=_0x254d03['includes'](_0x3b6b('0x13')),_0xee7755=_0x254d03[_0x3b6b('0x19')](_0x3b6b('0x3')),_0x32150b=_0x254d03[_0x3b6b('0x19')](_0x3b6b('0xd')),_0x41ddf0=_0x254d03[_0x3b6b('0x19')](_0x3b6b('0x4')),_0xefbddc=_0x41ddf0||_0x32150b,_0xcead1c=_0xefbddc||_0xee7755,_0x115f2b=_0x1813ca||_0xefbddc;(_0x46b6dd&&(_0x46b6dd[_0x3b6b('0x7')]=!_0x1813ca&&_0xcead1c),_0x2e3e61 instanceof _0x449d2e)&&(!(_0x1813ca||_0xcead1c&&_0x10f6b7)?_0x2e3e61[_0x3b6b('0x9')](_0x3b6b('0x15')):_0x2e3e61[_0x3b6b('0x11')](_0x3b6b('0x15')));if(_0x10f6b7){_0x10f6b7[_0x3b6b('0xa')]({'admin':_0x32150b,'modifyAll':_0xee7755,'write':_0x41ddf0,'resolve':_0x115f2b},_0x3467d8);const _0x5c6aef=_0x2e3e61 instanceof _0x449d2e&&_0x2e3e61[_0x3b6b('0x8')]['get'](_0x3b6b('0x6'));_0x5c6aef&&(_0xefbddc?_0x5c6aef[_0x3b6b('0xe')](_0x3b6b('0x16')):_0x5c6aef[_0x3b6b('0x0')](_0x3b6b('0x16')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x37bc=['ck-user__img','notificationView','isAnonymous','ck-user__avatar','ck-user','push','setTemplate','div','ck-user__notification','initials','ck-user__icon','ck-user__anonymous','extendTemplate','avatar','url(\x27','ck\x20ck-user__name','name','content'];(function(_0x5545e3,_0x37bca5){const _0x40bb50=function(_0x4ffb68){while(--_0x4ffb68){_0x5545e3['push'](_0x5545e3['shift']());}};_0x40bb50(++_0x37bca5);}(_0x37bc,0x1ca));const _0x40bb=function(_0x5545e3,_0x37bca5){_0x5545e3=_0x5545e3-0x0;let _0x40bb50=_0x37bc[_0x5545e3];return _0x40bb50;};import{View as _0x1ea55e,IconView as _0x288154}from'ckeditor5/src/ui';import _0x355933 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x1ea55e{constructor(_0x5ec0eb,_0x82648b,_0x18d12e){super(_0x5ec0eb),this[_0x40bb('0x8')]=_0x82648b[_0x40bb('0x8')],this['notificationView']=null;const _0x38717e=['ck',_0x40bb('0xa')];if(_0x82648b[_0x40bb('0xc')]&&_0x38717e[_0x40bb('0xf')](_0x40bb('0x3')),_0x82648b[_0x40bb('0x5')]&&_0x38717e[_0x40bb('0xf')](_0x40bb('0xd')),_0x18d12e){const _0x18d57a=new _0x288154();_0x18d57a[_0x40bb('0x4')]({'attributes':{'class':[_0x40bb('0x2')]}}),_0x18d57a[_0x40bb('0x9')]=_0x355933,this[_0x40bb('0xb')]={'tag':_0x40bb('0x11'),'attributes':{'class':['ck',_0x40bb('0x0')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x18d12e},'children':[_0x18d57a]};}const _0x285948=[{'tag':_0x40bb('0x11'),'attributes':{'class':_0x38717e,'style':{'background-image':_0x82648b[_0x40bb('0x5')]?_0x40bb('0x6')+_0x82648b[_0x40bb('0x5')]+'\x27)':''}}},{'tag':_0x40bb('0x11'),'attributes':{'class':_0x82648b[_0x40bb('0x5')]?'ck\x20ck-user__name\x20ck-user__name--hidden':_0x40bb('0x7')},'children':[{'text':_0x82648b[_0x40bb('0x1')]}]}];this[_0x40bb('0xb')]&&_0x285948[_0x40bb('0xf')](this[_0x40bb('0xb')]),this[_0x40bb('0x10')]({'tag':_0x40bb('0x11'),'attributes':{'class':['ck',_0x40bb('0xe')],'data-user-id':_0x82648b['id']},'children':_0x285948});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x482e=['_id','length','initials','color','users.colorsCount','useAnonymousUser','_isAnonymous','users-me-missing-user','split','_licenseKeyCheckInterval','locale','getUser','_getInitial','destroy','licenseKeyTrialLimit:operations','anonymous-user','getBackgroundColorClass','licenseKeyTrialLimit:revisions','name','Anonymous','licenseKeyInvalid','trial-license-key-reached-limit-revisions','charAt','invalid-license-key','users','getOperationAuthor','users-add-duplicated-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.','config','define','users-me-already-defined','decorate','_myId','Users','has','ck-user__selection--','defineMe','_locale','trial-license-key-reached-limit-changes','includes','get','requires','pluginName','users.anonymousUserId','addUser','add','trial-license-key-reached-limit-time','licenseKeyTrial','context','avatar','getMarkerClass','licenseKeyTrialLimit:time','_getNextColor','licenseKey','_lastColor','ck-user__marker--','trim','licenseKeyValid','info','_addAnonymousUser'];(function(_0x29d7a3,_0x482e9b){const _0x231bdc=function(_0x11065b){while(--_0x11065b){_0x29d7a3['push'](_0x29d7a3['shift']());}};_0x231bdc(++_0x482e9b);}(_0x482e,0x113));const _0x231b=function(_0x29d7a3,_0x482e9b){_0x29d7a3=_0x29d7a3-0x0;let _0x231bdc=_0x482e[_0x29d7a3];return _0x231bdc;};import{ContextPlugin as _0x39b2b8}from'ckeditor5/src/core';import{Collection as _0x1ae634,CKEditorError as _0x2457c3}from'ckeditor5/src/utils';import _0x49f38f from'./permissions';import{getTranslation as _0x101f51}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x39b2b8{static get[_0x231b('0x7')](){return _0x231b('0x3a');}static get[_0x231b('0x6')](){return[_0x49f38f];}constructor(_0x168bf7){super(_0x168bf7),this[_0x231b('0xd')][_0x231b('0x35')][_0x231b('0x36')](_0x231b('0x8'),_0x231b('0x28')),this[_0x231b('0xd')]['config'][_0x231b('0x36')](_0x231b('0x1d'),0x8),this['users']=new _0x1ae634(),this[_0x231b('0x2')]=_0x168bf7[_0x231b('0x23')],this['_licenseKeyCheckInterval']=null,this[_0x231b('0x13')]=0x0,this[_0x231b('0x39')]=null,this[_0x231b('0x38')](_0x231b('0x32'));}['init'](){const _0x405710=this[_0x231b('0xd')];this[_0x231b('0x12')]=_0x405710[_0x231b('0x35')][_0x231b('0x5')](_0x231b('0x12'));const _0x3ecd6c=['licenseKeyTrial',_0x231b('0x2d'),_0x231b('0x16'),_0x231b('0x27'),_0x231b('0x10'),_0x231b('0x2a')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d300c;for(const _0xae7ae5 in _0x405710){const _0x4f47e5=_0x405710[_0xae7ae5];if(_0x3ecd6c[_0x231b('0x4')](_0x4f47e5)){delete _0x405710[_0xae7ae5],_0x2d300c=_0x4f47e5;break;}}if(_0x231b('0x2d')===_0x2d300c)throw clearInterval(this[_0x231b('0x22')]),new _0x2457c3(_0x231b('0x30'),null);if(_0x231b('0xc')===_0x2d300c&&console[_0x231b('0x17')](_0x231b('0x34')),_0x231b('0x27')===_0x2d300c)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x2457c3(_0x231b('0x3'),null);if('licenseKeyTrialLimit:time'===_0x2d300c)throw clearInterval(this[_0x231b('0x22')]),new _0x2457c3(_0x231b('0xb'),null);if(_0x231b('0x2a')===_0x2d300c)throw clearInterval(this[_0x231b('0x22')]),new _0x2457c3(_0x231b('0x2e'),null);_0x231b('0x16')===_0x2d300c&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x231b('0x18')]();}get['me'](){return null==this['_myId']?null:this['getUser'](this[_0x231b('0x39')]);}[_0x231b('0x9')]({id:_0x8da1d6,name:_0x43acdf,..._0x28cfc3}){if(!_0x8da1d6||'string'!=typeof _0x8da1d6)throw new _0x2457c3('users-add-invalid-id');if(this[_0x231b('0x31')][_0x231b('0x3b')](_0x8da1d6))throw new _0x2457c3(_0x231b('0x33'),null,{'id':_0x8da1d6});const _0x1392f8={..._0x28cfc3,'id':_0x8da1d6,'name':a(this[_0x231b('0x2')],_0x43acdf),'color':this[_0x231b('0x11')]()};_0x1392f8[_0x231b('0x2b')]=a(this[_0x231b('0x2')],_0x1392f8['name']);const _0xb944c6=new User(_0x1392f8);return this[_0x231b('0x31')][_0x231b('0xa')](_0xb944c6),_0xb944c6;}['getUser'](_0x1f0b77){return this['users'][_0x231b('0x5')](_0x1f0b77);}[_0x231b('0x1e')](){const _0x3d94c4=this['context'][_0x231b('0x35')][_0x231b('0x5')]('users.anonymousUserId');this[_0x231b('0x39')]||this[_0x231b('0x1')](_0x3d94c4);}[_0x231b('0x1')](_0x29bb36){if(this[_0x231b('0x39')])throw new _0x2457c3(_0x231b('0x37'),null);if(!this[_0x231b('0x24')](_0x29bb36))throw new _0x2457c3(_0x231b('0x20'),null);this[_0x231b('0x39')]=_0x29bb36;}['getOperationAuthor'](){return this['me'];}[_0x231b('0x26')](){super[_0x231b('0x26')](),clearInterval(this[_0x231b('0x22')]);}[_0x231b('0x11')](){const _0x14f640=this[_0x231b('0xd')]['config'][_0x231b('0x5')](_0x231b('0x1d'));return this[_0x231b('0x13')]>=_0x14f640&&(this[_0x231b('0x13')]=0x0),new u(this[_0x231b('0x13')]++);}['_addAnonymousUser'](){const _0x1e6476=this[_0x231b('0xd')][_0x231b('0x35')]['get'](_0x231b('0x8'));this[_0x231b('0x9')]({'id':_0x1e6476,'name':_0x101f51(this[_0x231b('0x2')],_0x231b('0x2c'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x47ac88){this['id']=_0x47ac88['id'],this[_0x231b('0x1c')]=_0x47ac88[_0x231b('0x1c')],this[_0x231b('0x2b')]=_0x47ac88[_0x231b('0x2b')],this[_0x231b('0xe')]=_0x47ac88[_0x231b('0xe')],this[_0x231b('0x1f')]=!0x1;}get['isAnonymous'](){return this[_0x231b('0x1f')];}get[_0x231b('0x1b')](){const _0x55de32=this[_0x231b('0x2b')][_0x231b('0x21')]('\x20');return 0x1===_0x55de32[_0x231b('0x1a')]?this['_getInitial'](_0x55de32[0x0]):this['_getInitial'](_0x55de32[0x0])+this[_0x231b('0x25')](_0x55de32[_0x55de32[_0x231b('0x1a')]-0x1]);}[_0x231b('0x25')](_0x34ca94){return _0x34ca94[_0x231b('0x2f')](0x0)['toUpperCase']();}}function a(_0x16ee89,_0x56184d=''){return''==(_0x56184d=_0x56184d[_0x231b('0x15')]())?_0x101f51(_0x16ee89,_0x231b('0x2c')):_0x56184d;}class u{constructor(_0x48b121){this['_id']=_0x48b121;}[_0x231b('0x29')](){return'ck-user__bg-color--'+this['_id'];}['getSelectionClass'](){return _0x231b('0x0')+this[_0x231b('0x19')];}[_0x231b('0xf')](){return _0x231b('0x14')+this[_0x231b('0x19')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x814816,_0x1ad1c6){const t=_0x814816['t'];switch(_0x1ad1c6){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 _0x1ede=['locale','focus','cancelConfirm','_removeConfirm','message','isConfirm','cancel','deregisterChild','remove','once','fire','render','confirmView','submit','element','registerChild','showConfirm'];(function(_0x2525a1,_0x1ede7b){var _0x2f956a=function(_0x3df68d){while(--_0x3df68d){_0x2525a1['push'](_0x2525a1['shift']());}};_0x2f956a(++_0x1ede7b);}(_0x1ede,0x100));var _0x2f95=function(_0x2525a1,_0x1ede7b){_0x2525a1=_0x2525a1-0x0;var _0x2f956a=_0x1ede[_0x2525a1];return _0x2f956a;};import _0x11a187 from'./confirmview';export default function m(_0x3f2f2e){return class extends _0x3f2f2e{[_0x2f95('0xf')](_0x30c940,_0x2f2a37){return this['confirmView']=new _0x11a187(this[_0x2f95('0x10')]),this[_0x2f95('0xb')][_0x2f95('0xa')](),this[_0x2f95('0xb')][_0x2f95('0x3')]=_0x30c940,this[_0x2f95('0xb')][_0x2f95('0x8')]('cancel',()=>{this[_0x2f95('0x2')]();}),this[_0x2f95('0xb')][_0x2f95('0x8')](_0x2f95('0xc'),()=>{this[_0x2f95('0x2')]();}),_0x2f2a37['appendChild'](this[_0x2f95('0xb')][_0x2f95('0xd')]),this[_0x2f95('0xe')](this[_0x2f95('0xb')]),this[_0x2f95('0xd')]['focus'](),this['set'](_0x2f95('0x4'),!0x0),new Promise(_0x2f1873=>this[_0x2f95('0xb')]['on']('submit',_0x2f1873));}[_0x2f95('0x1')](){this[_0x2f95('0x4')]&&this[_0x2f95('0xb')][_0x2f95('0x9')](_0x2f95('0x5'));}[_0x2f95('0x2')](){this[_0x2f95('0xd')]&&this[_0x2f95('0xb')]&&this[_0x2f95('0xb')][_0x2f95('0xd')]&&(this[_0x2f95('0xd')][_0x2f95('0x0')](),this[_0x2f95('0xb')][_0x2f95('0xd')][_0x2f95('0x7')](),this[_0x2f95('0x6')](this[_0x2f95('0xb')]),this[_0x2f95('0x4')]=!0x1,this['confirmView']['destroy'](),this[_0x2f95('0xb')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2d6d=['ck-thread__remove-confirm-inner','Are\x20you\x20sure?','setTemplate','check','set','message','label','cancelView','cancel','submitView','ck-thread__remove-confirm-','submit','_createButtonView','fire','extendTemplate','ck-thread__remove-confirm','icon'];(function(_0x4b9bf6,_0x2d6db2){const _0x337f89=function(_0x1b13c1){while(--_0x1b13c1){_0x4b9bf6['push'](_0x4b9bf6['shift']());}};_0x337f89(++_0x2d6db2);}(_0x2d6d,0x1a1));const _0x337f=function(_0x4b9bf6,_0x2d6db2){_0x4b9bf6=_0x4b9bf6-0x0;let _0x337f89=_0x2d6d[_0x4b9bf6];return _0x337f89;};import{View as _0x50b4b7,ButtonView as _0x11f50a}from'ckeditor5/src/ui';import{icons as _0x95d6f4}from'ckeditor5/src/core';import{getTranslation as _0x2c953e}from'./common-translations';export default class h extends _0x50b4b7{constructor(_0x504cbf){super(_0x504cbf);const _0x346688=this['bindTemplate'];this[_0x337f('0x0')]=this[_0x337f('0x3')](_0x504cbf,_0x2c953e(_0x504cbf,'Yes'),_0x95d6f4[_0x337f('0xb')],_0x337f('0x2')),this['cancelView']=this[_0x337f('0x3')](_0x504cbf,_0x2c953e(_0x504cbf,'No'),_0x95d6f4[_0x337f('0x10')],_0x337f('0x10')),this[_0x337f('0xc')]('message',_0x2c953e(_0x504cbf,_0x337f('0x9'))),this[_0x337f('0xa')]({'tag':'div','attributes':{'class':[_0x337f('0x6')]},'children':[{'tag':'div','attributes':{'class':_0x337f('0x8')},'children':[{'tag':'p','children':[{'text':_0x346688['to'](_0x337f('0xd'))}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this[_0x337f('0xf')]]}]}]});}[_0x337f('0x3')](_0x18c145,_0x44fd4f,_0x476235,_0x3233e1){const _0x59910e=new _0x11f50a(_0x18c145);return _0x59910e[_0x337f('0xe')]=_0x44fd4f,_0x59910e[_0x337f('0x7')]=_0x476235,_0x59910e[_0x337f('0x5')]({'attributes':{'class':_0x337f('0x1')+_0x3233e1}}),_0x59910e['on']('execute',()=>this[_0x337f('0x4')](_0x3233e1)),_0x59910e;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x379f=['\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','dateTimeFormat','\x27Last\x27\x20EEEE\x20hh:mma'];(function(_0x281c95,_0x379fc5){const _0x4ad597=function(_0x1a589f){while(--_0x1a589f){_0x281c95['push'](_0x281c95['shift']());}};_0x4ad597(++_0x379fc5);}(_0x379f,0x10c));const _0x4ad5=function(_0x281c95,_0x379fc5){_0x281c95=_0x281c95-0x0;let _0x4ad597=_0x379f[_0x281c95];return _0x4ad597;};import _0x4a8f50 from'date-fns/format';import _0x41e40e from'date-fns/parseISO';import _0x4e165b from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x3a611b}from'ckeditor5/src/utils';export default function E(_0x568be8={}){if(void 0x0!==_0x568be8[_0x4ad5('0x2')]&&'function'!=typeof _0x568be8[_0x4ad5('0x2')])throw new _0x3a611b('invalid-date-time-format');return _0x20e7d8=>{const _0x5c8d8a='string'==typeof _0x20e7d8?_0x41e40e(_0x20e7d8):_0x20e7d8,_0x598fc3=new Date(),_0x1a6ac7=_0x4e165b(_0x598fc3,_0x5c8d8a);return _0x568be8[_0x4ad5('0x2')]?_0x568be8[_0x4ad5('0x2')](_0x5c8d8a):_0x4a8f50(_0x5c8d8a,0x0===_0x1a6ac7?'\x27Today\x27\x20hh:mma':0x1===_0x1a6ac7?_0x4ad5('0x0'):_0x1a6ac7<0x7?_0x4ad5('0x3'):_0x4ad5('0x1'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2e1e=['push','mapViewToDom','item','domElement','sort','from','length','getClientRects','filter','values','domConverter','map','markerNameToElements','view','mapper','name'];(function(_0x52c13b,_0x2e1e03){const _0x31accf=function(_0x5f28f7){while(--_0x5f28f7){_0x52c13b['push'](_0x52c13b['shift']());}};_0x31accf(++_0x2e1e03);}(_0x2e1e,0x1bf));const _0x31ac=function(_0x52c13b,_0x2e1e03){_0x52c13b=_0x52c13b-0x0;let _0x31accf=_0x2e1e[_0x52c13b];return _0x31accf;};import{first as _0x41fbf9}from'ckeditor5/src/utils';export default function k(_0x516b2c,_0x57f7d8){const _0x16a743=_0x516b2c[_0x31ac('0xf')][_0x31ac('0xd')](_0x57f7d8['name']);if(!_0x16a743)return null;const _0x4bbba3=_0x41fbf9(_0x16a743[_0x31ac('0xa')]());return _0x516b2c[_0x31ac('0xe')][_0x31ac('0xb')]['mapViewToDom'](_0x4bbba3)||null;}export function getAllMarkersDomElementsSorted(_0x111e10,_0x50b7ff){if(0x0===_0x50b7ff[_0x31ac('0x7')])return null;const _0x1a2473=[],_0x26b51e=_0x111e10[_0x31ac('0xe')][_0x31ac('0xb')];for(const _0x252f3d of _0x50b7ff){const _0x3de40c=_0x111e10[_0x31ac('0xf')][_0x31ac('0xd')](_0x252f3d[_0x31ac('0x0')]);if(!_0x3de40c)continue;const _0xab8e93=Array[_0x31ac('0x6')](_0x3de40c)[_0x31ac('0xc')](_0x36a8ee=>_0x26b51e[_0x31ac('0x2')](_0x36a8ee))[_0x31ac('0x9')](_0x1d4a3f=>!!_0x1d4a3f);_0x1a2473['push'](..._0xab8e93);}if(0x0===_0x1a2473[_0x31ac('0x7')])return null;const _0x17a48e=[];for(const _0x21037c of _0x1a2473){const _0x4ad6d4=_0x21037c[_0x31ac('0x8')]()[_0x31ac('0x3')](0x0);_0x4ad6d4&&_0x17a48e[_0x31ac('0x1')]({'x':_0x4ad6d4['x'],'y':_0x4ad6d4['y'],'domElement':_0x21037c});}return 0x0===_0x17a48e[_0x31ac('0x7')]?null:(_0x17a48e[_0x31ac('0x5')]((_0x215aed,_0x2c5ff1)=>_0x215aed['y']-_0x2c5ff1['y']||_0x215aed['x']-_0x2c5ff1['x']),_0x17a48e[_0x31ac('0xc')](_0x4e00fe=>_0x4e00fe[_0x31ac('0x4')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1d2e=['sign','keys','sort','number','charCodeAt','object','toString','isArray','boolean'];(function(_0x219216,_0x1d2e9f){const _0x57723a=function(_0x354e6d){while(--_0x354e6d){_0x219216['push'](_0x219216['shift']());}};_0x57723a(++_0x1d2e9f);}(_0x1d2e,0xf1));const _0x5772=function(_0x219216,_0x1d2e9f){_0x219216=_0x219216-0x0;let _0x57723a=_0x1d2e[_0x219216];return _0x57723a;};export default function b(_0x36da27){let _0x47d50f=0x0,_0x47033a=0x0;for(const _0x55949e of g(_0x36da27))_0x47d50f=(_0x47d50f<<0x5)-_0x47d50f+_0x55949e,_0x47d50f&=_0x47d50f,[_0x47d50f,_0x47033a]=[_0x47033a,_0x47d50f];return O(_0x47d50f)+O(_0x47033a);}function*j(_0x2d84ba){_0x2d84ba?_0x5772('0x1')==typeof _0x2d84ba?yield 0x1:Array[_0x5772('0x0')](_0x2d84ba)?yield*function*(_0x57b411){for(const _0x17e6c3 of _0x57b411)yield*j(_0x17e6c3);}(_0x2d84ba):_0x5772('0x7')==typeof _0x2d84ba?yield*g(_0x2d84ba):'string'==typeof _0x2d84ba?yield*A(_0x2d84ba):_0x5772('0x5')==typeof _0x2d84ba&&(yield _0x2d84ba):yield 0x0;}function*g(_0x140147){if(yield M('{'),_0x140147){const _0x36d390=Object[_0x5772('0x3')](_0x140147)[_0x5772('0x4')]();for(const _0x38a17d of _0x36d390){yield*A(_0x38a17d),yield M(':');const _0x49f927=_0x140147[_0x38a17d];yield*j(_0x49f927);}}yield M('}');}function*A(_0x318ecb){yield M('\x22');for(const _0x2fdd6c of _0x318ecb)yield M(_0x2fdd6c);yield M('\x22');}function M(_0x44585e){return _0x44585e[_0x5772('0x6')](0x0);}function O(_0x25a3b3){return(_0x25a3b3*=Math[_0x5772('0x2')](_0x25a3b3))[_0x5772('0x8')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x15ad=['WordCount','concat','set','name','context','plugins','_context','every','rootsAttributes','toolbar','has','WProofreader','initialData','requires','get','config','map','filter','string','includes','names','find','pluginName','constructor','length','removePlugins','builtinPlugins'];(function(_0x37ba9f,_0x15ada5){const _0x5431ea=function(_0x20e0e7){while(--_0x20e0e7){_0x37ba9f['push'](_0x37ba9f['shift']());}};_0x5431ea(++_0x15ada5);}(_0x15ad,0x14e));const _0x5431=function(_0x37ba9f,_0x15ada5){_0x37ba9f=_0x37ba9f-0x0;let _0x5431ea=_0x15ad[_0x37ba9f];return _0x5431ea;};const w=[_0x5431('0x2'),_0x5431('0x15'),_0x5431('0x1a'),_0x5431('0x19')],W=['WebSocketGateway','RevisionTracker','Autosave',_0x5431('0x11'),'DocumentOutline',_0x5431('0x1')];function v(_0x1798c8,_0x465f05,_0x260591,_0x54cd49=[]){const _0x4599dd='string'==typeof _0x1798c8?_0x260591['get'](_0x1798c8)['constructor']:_0x1798c8,_0x217b00=_0x4599dd[_0x5431('0xc')]||_0x4599dd[_0x5431('0x14')];if(_0x465f05[_0x5431('0x0')](_0x217b00))return _0x465f05[_0x5431('0x4')](_0x217b00);if(_0x465f05[_0x5431('0x13')](_0x217b00,!0x0),_0x217b00&&W[_0x5431('0x12')](_0x54cd49)[_0x5431('0x9')](_0x217b00))return _0x465f05[_0x5431('0x13')](_0x217b00,!0x1),!0x1;if(!_0x4599dd[_0x5431('0x3')])return _0x465f05[_0x5431('0x13')](_0x217b00,!0x0),!0x0;const _0x50e196=_0x4599dd['requires'][_0x5431('0x18')](_0x1418de=>v(_0x1418de,_0x465f05,_0x260591,_0x54cd49));return _0x465f05['set'](_0x217b00,_0x50e196),_0x50e196;}export default function D(_0x86ea5e,_0x5cafee){const _0x7313ba={};for(const _0x1d773d of _0x86ea5e[_0x5431('0x5')][_0x5431('0xa')]())w[_0x5431('0x9')](_0x1d773d)||(_0x7313ba[_0x1d773d]=_0x86ea5e['config']['get'](_0x1d773d));const _0x1f5cb7=_0x7313ba[_0x5431('0x16')]||[],_0x5e13c7=_0x86ea5e[_0x5431('0xd')][_0x5431('0x10')]||[],_0x5e884d=_0x1f5cb7[_0x5431('0xe')]?_0x1f5cb7:_0x5e13c7,_0x2a4ae1=_0x7313ba['extraPlugins']||[];delete _0x7313ba['extraPlugins'];const _0x15b16a=_0x7313ba[_0x5431('0xf')]||[];delete _0x7313ba[_0x5431('0xf')];const _0x40c4ea=_0x86ea5e[_0x5431('0x17')][_0x5431('0x5')][_0x5431('0x4')](_0x5431('0x16'))||[],_0x526722=_0x5e884d['concat'](_0x2a4ae1)['concat'](_0x40c4ea)[_0x5431('0x6')](_0x15bcfb=>_0x5431('0x8')==typeof _0x15bcfb?_0x5e13c7[_0x5431('0xb')](_0x3d95ed=>_0x3d95ed['pluginName']==_0x15bcfb):_0x15bcfb)['filter'](_0x5caf93=>!_0x15b16a[_0x5431('0x9')](_0x5caf93)),_0x41b424=Array['from'](new Set(_0x526722)),_0x1c47ec=new Map();return _0x7313ba[_0x5431('0x16')]=_0x41b424[_0x5431('0x7')](_0x4686bd=>v(_0x4686bd,_0x1c47ec,_0x86ea5e[_0x5431('0x16')],_0x5cafee)),_0x7313ba;}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3aeb=['match','pop','startsWith','slice','replace','length','split','indexOf','push'];(function(_0x46dea7,_0x3aebde){const _0x562e1a=function(_0x13256b){while(--_0x13256b){_0x46dea7['push'](_0x46dea7['shift']());}};_0x562e1a(++_0x3aebde);}(_0x3aeb,0x18d));const _0x562e=function(_0x46dea7,_0x3aebde){_0x46dea7=_0x46dea7-0x0;let _0x562e1a=_0x3aeb[_0x46dea7];return _0x562e1a;};export default function z(_0x2b03aa,{limit:_0x4fa593,suffix:_0x1b6fef='...'}){const _0x26be24=[];let _0x54248e=0x0;const _0x5f126e=_0x2b03aa['replace'](/</g,'\x0a<')[_0x562e('0x3')](/>/g,'>\x0a')[_0x562e('0x3')](/^\n/g,'')['replace'](/\n$/g,'')[_0x562e('0x5')]('\x0a');for(let _0x4df81e=0x0;_0x4df81e<_0x5f126e[_0x562e('0x4')];_0x4df81e++){let _0xea44e6=_0x5f126e[_0x4df81e];const _0x11f049=Z(_0xea44e6);if(_0xea44e6[_0x562e('0x1')]('<')){if(_0x54248e>=_0x4fa593){const _0x33ab48=_0xea44e6[_0x562e('0x8')](/[a-zA-Z]+/);if(!_0x33ab48){_0x5f126e[_0x4df81e]='';continue;}const _0x2d74be=_0x33ab48[0x0];_0xea44e6['startsWith']('</')?(_0x26be24[_0x562e('0x4')]&&(_0xea44e6=''),_0x26be24[_0x562e('0x0')]()):(_0x26be24[_0x562e('0x7')](_0x2d74be),_0xea44e6='');}}else{if(_0x54248e>=_0x4fa593)_0xea44e6='';else{if(_0x54248e+_0x11f049[_0x562e('0x4')]>=_0x4fa593){let _0x2227a4=_0x4fa593-_0x54248e;if('\x20'===_0x11f049[_0x2227a4-0x1])_0x2227a4--;else{const _0x5b75bc=_0x11f049[_0x562e('0x2')](_0x2227a4)[_0x562e('0x6')]('\x20');-0x1!==_0x5b75bc?_0x2227a4+=_0x5b75bc:_0x2227a4=_0xea44e6[_0x562e('0x4')];}_0xea44e6=_0x11f049[_0x562e('0x2')](0x0,_0x2227a4)['join']('')+_0x1b6fef,_0x54248e=_0x4fa593;}else _0x54248e+=_0x11f049['length'];}}_0x5f126e[_0x4df81e]=_0xea44e6;}return _0x5f126e['join']('\x0a')[_0x562e('0x3')](/\n/g,'');}function Z(_0x9d45b2){const _0x4752cf=[];for(let _0x1cf6a5=0x0;_0x1cf6a5<_0x9d45b2[_0x562e('0x4')];_0x1cf6a5++){const _0x3ce604=_0x9d45b2['substring'](_0x1cf6a5)[_0x562e('0x8')](/^&[a-z0-9#]+;/);if(_0x3ce604){const _0x32ead2=_0x3ce604[0x0];_0x4752cf[_0x562e('0x7')](_0x32ead2),_0x1cf6a5+=_0x32ead2[_0x562e('0x4')]-0x1;}else _0x4752cf[_0x562e('0x7')](_0x9d45b2[_0x1cf6a5]);}return _0x4752cf;}
|