@ckeditor/ckeditor5-collaboration-core 40.0.0 → 40.1.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.
@@ -1,16 +1,16 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module collaboration-core/users/view/userview
7
- */
8
- import { View, type TemplateDefinition } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- import type { User } from '../../users';
11
- import '../../../theme/users.css';
12
- export default class UserView extends View {
13
- name: string;
14
- notificationView: TemplateDefinition | null;
15
- constructor(locale: Locale, user: User, notificationText?: null | string);
16
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module collaboration-core/users/view/userview
7
+ */
8
+ import { View, type TemplateDefinition } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ import type { User } from '../../users';
11
+ import '../../../theme/users.css';
12
+ export default class UserView extends View {
13
+ name: string;
14
+ notificationView: TemplateDefinition | null;
15
+ constructor(locale: Locale, user: User, notificationText?: null | string);
16
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d0a=['name','initials','isAnonymous','ck-user__avatar','push','url(\x27','ck-user__anonymous','ck-user__img','setTemplate','ck-user__icon','div','content','ck-user','ck-user__notification','extendTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','avatar','notificationView'];(function(_0x58b4fd,_0x2d0ab4){const _0x223930=function(_0x35a5ba){while(--_0x35a5ba){_0x58b4fd['push'](_0x58b4fd['shift']());}};_0x223930(++_0x2d0ab4);}(_0x2d0a,0x1d8));const _0x2239=function(_0x58b4fd,_0x2d0ab4){_0x58b4fd=_0x58b4fd-0x0;let _0x223930=_0x2d0a[_0x58b4fd];return _0x223930;};import{View as _0x5365bc,IconView as _0x16daae}from'ckeditor5/src/ui';import _0x2c445d from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x5365bc{constructor(_0x5c51ee,_0x1c7273,_0xab3048){super(_0x5c51ee),this[_0x2239('0xe')]=_0x1c7273[_0x2239('0xe')],this[_0x2239('0xd')]=null;const _0x39bf5a=['ck',_0x2239('0x3')];if(_0x1c7273[_0x2239('0x10')]&&_0x39bf5a['push'](_0x2239('0x2')),_0x1c7273[_0x2239('0xc')]&&_0x39bf5a[_0x2239('0x0')](_0x2239('0x11')),_0xab3048){const _0x4e6e20=new _0x16daae();_0x4e6e20[_0x2239('0xa')]({'attributes':{'class':[_0x2239('0x5')]}}),_0x4e6e20[_0x2239('0x7')]=_0x2c445d,this[_0x2239('0xd')]={'tag':_0x2239('0x6'),'attributes':{'class':['ck',_0x2239('0x9')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0xab3048},'children':[_0x4e6e20]};}const _0x49928f=[{'tag':_0x2239('0x6'),'attributes':{'class':_0x39bf5a,'style':{'background-image':_0x1c7273[_0x2239('0xc')]?_0x2239('0x1')+_0x1c7273['avatar']+'\x27)':''}}},{'tag':_0x2239('0x6'),'attributes':{'class':_0x1c7273[_0x2239('0xc')]?_0x2239('0xb'):'ck\x20ck-user__name'},'children':[{'text':_0x1c7273[_0x2239('0xf')]}]}];this[_0x2239('0xd')]&&_0x49928f[_0x2239('0x0')](this[_0x2239('0xd')]),this[_0x2239('0x4')]({'tag':'div','attributes':{'class':['ck',_0x2239('0x8')],'data-user-id':_0x1c7273['id']},'children':_0x49928f});}}
23
+ const _0x304b=['name','avatar','setTemplate','notificationView','ck-user__avatar','ck-user__anonymous','extendTemplate','ck\x20ck-user__name','push','initials','ck-user','url(\x27','ck\x20ck-user__name\x20ck-user__name--hidden','div'];(function(_0x5cb055,_0x304b8e){const _0x20477b=function(_0x30d817){while(--_0x30d817){_0x5cb055['push'](_0x5cb055['shift']());}};_0x20477b(++_0x304b8e);}(_0x304b,0x7c));const _0x2047=function(_0x5cb055,_0x304b8e){_0x5cb055=_0x5cb055-0x0;let _0x20477b=_0x304b[_0x5cb055];return _0x20477b;};import{View as _0x5d1bb6,IconView as _0x59d7b5}from'ckeditor5/src/ui';import _0x252157 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x5d1bb6{constructor(_0x53825e,_0x3ac28f,_0x46cd46){super(_0x53825e),this['name']=_0x3ac28f[_0x2047('0x2')],this[_0x2047('0x5')]=null;const _0x2c0367=['ck','ck-user__img'];if(_0x3ac28f['isAnonymous']&&_0x2c0367['push'](_0x2047('0x7')),_0x3ac28f[_0x2047('0x3')]&&_0x2c0367[_0x2047('0xa')](_0x2047('0x6')),_0x46cd46){const _0x700ec8=new _0x59d7b5();_0x700ec8[_0x2047('0x8')]({'attributes':{'class':['ck-user__icon']}}),_0x700ec8['content']=_0x252157,this[_0x2047('0x5')]={'tag':_0x2047('0x1'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x46cd46},'children':[_0x700ec8]};}const _0x3d3baa=[{'tag':_0x2047('0x1'),'attributes':{'class':_0x2c0367,'style':{'background-image':_0x3ac28f['avatar']?_0x2047('0xd')+_0x3ac28f['avatar']+'\x27)':''}}},{'tag':_0x2047('0x1'),'attributes':{'class':_0x3ac28f[_0x2047('0x3')]?_0x2047('0x0'):_0x2047('0x9')},'children':[{'text':_0x3ac28f[_0x2047('0xb')]}]}];this['notificationView']&&_0x3d3baa[_0x2047('0xa')](this[_0x2047('0x5')]),this[_0x2047('0x4')]({'tag':_0x2047('0x1'),'attributes':{'class':['ck',_0x2047('0xc')],'data-user-id':_0x3ac28f['id']},'children':_0x3d3baa});}}
package/src/users.d.ts CHANGED
@@ -1,161 +1,161 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module collaboration-core/users
7
- * @publicApi
8
- */
9
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
- import { Collection } from 'ckeditor5/src/utils';
11
- import Permissions from './permissions';
12
- import '../theme/usercolors.css';
13
- /**
14
- * The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
15
- */
16
- export default class Users extends ContextPlugin {
17
- licenseKey: string;
18
- /**
19
- * Holds all {@link module:collaboration-core/users~User users} added to the editor.
20
- *
21
- * Note, that the {@link module:collaboration-core/users~User#isAnonymous anonymous user} is always present in the editor.
22
- * You may want to filter it out when processing the users lists.
23
- *
24
- * ```ts
25
- * for ( const user of editor.plugins.get( 'Users' ).users ) {
26
- * if ( !user.isAnonymous ) {
27
- * console.log( user.name );
28
- * }
29
- * }
30
- * ```
31
- *
32
- * Use {@link #addUser} to add a new user.
33
- */
34
- readonly users: Collection<User>;
35
- /**
36
- * @inheritDoc
37
- */
38
- static get pluginName(): "Users";
39
- /**
40
- * @inheritDoc
41
- */
42
- static get requires(): readonly [typeof Permissions];
43
- /**
44
- * @inheritDoc
45
- */
46
- constructor(context: Context | Editor);
47
- /**
48
- * @inheritDoc
49
- */
50
- init(): void;
51
- /**
52
- * A reference to the local user or `null` if it has not been set.
53
- */
54
- get me(): User | null;
55
- /**
56
- * Adds a new user to the list of users.
57
- */
58
- addUser({ id, name, ...additionalData }: Partial<UserData>): User;
59
- /**
60
- * Returns the user with a given ID.
61
- */
62
- getUser(id: string): User | null;
63
- /**
64
- * Sets an {@link module:collaboration-core/users~User#isAnonymous anonymous user} as {@link #me the local user}.
65
- *
66
- * The local user ID will be set to the value of `config.users.anonymousUserId` property. All actions performed by the local user
67
- * will be contributed to the anonymous user.
68
- */
69
- useAnonymousUser(): void;
70
- /**
71
- * Sets the user with the given ID as the local user ({@link #me}).
72
- *
73
- * The local user can be only set once (this includes setting anonymous as the local user).
74
- */
75
- defineMe(userId: string): void;
76
- /**
77
- * Returns the author of the operation. It returns {@link #me} by default if it is not overwritten.
78
- */
79
- getOperationAuthor(): User | null;
80
- /**
81
- * @inheritDoc
82
- */
83
- destroy(): void;
84
- }
85
- /**
86
- * The representation of a single user that is involved in document editing.
87
- */
88
- export declare class User {
89
- /**
90
- * The ID of the user.
91
- */
92
- id: string;
93
- /**
94
- * CSS colors classes object for the user.
95
- */
96
- color: Color;
97
- /**
98
- * The name of the user.
99
- */
100
- name: string;
101
- /**
102
- * The URL pointing to the image with the avatar of the user.
103
- *
104
- * If avatar is not set, default avatar is used.
105
- */
106
- avatar: string | undefined;
107
- /**
108
- * @param data User data.
109
- * @param data.id The ID of the user.
110
- * @param data.color A helper object to generate CSS classes with the user color in the UI.
111
- * @param data.name The name of the user.
112
- * @param data.avatar The URL to the user avatar.
113
- */
114
- constructor(data: UserData);
115
- /**
116
- * Is `true` for the anonymous user, `false` otherwise.
117
- *
118
- * The anonymous user is used when there is no defined user for given resource.
119
- *
120
- * The situations when the anonymous user is used will depend on your application. For example, it can be used when the editor can be
121
- * used by "guest" users of your application, or when the original user's account was removed.
122
- */
123
- get isAnonymous(): boolean;
124
- /**
125
- * The initials of the user.
126
- *
127
- * The initials are composed from the user name's first and last words:
128
- *
129
- * * for `Joe Doe`, the initials are `JD`,
130
- * * for `Anonymous` the initials are `A`,
131
- * * for `Katie John-Newman` the initials are `KJ`,
132
- * * for `Adam Daniel Smith` the initials are `AS`.
133
- */
134
- get initials(): string;
135
- }
136
- /**
137
- * The color object used to generate specified CSS classes with an individual color number assigned to the user.
138
- */
139
- declare class Color {
140
- constructor(colorId: number);
141
- /**
142
- * Returns CSS class for user avatar background color.
143
- */
144
- getBackgroundColorClass(): string;
145
- /**
146
- * Returns CSS class for user selection highlight (the selected range).
147
- */
148
- getSelectionClass(): string;
149
- /**
150
- * Returns CSS class for user caret position element (the pipe).
151
- */
152
- getMarkerClass(): string;
153
- }
154
- type UserData = {
155
- id: string;
156
- color: Color;
157
- name: string;
158
- avatar?: string;
159
- _isAnonymous?: boolean;
160
- };
161
- export {};
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module collaboration-core/users
7
+ * @publicApi
8
+ */
9
+ import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
10
+ import { Collection } from 'ckeditor5/src/utils';
11
+ import Permissions from './permissions';
12
+ import '../theme/usercolors.css';
13
+ /**
14
+ * The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
15
+ */
16
+ export default class Users extends ContextPlugin {
17
+ licenseKey: string;
18
+ /**
19
+ * Holds all {@link module:collaboration-core/users~User users} added to the editor.
20
+ *
21
+ * Note, that the {@link module:collaboration-core/users~User#isAnonymous anonymous user} is always present in the editor.
22
+ * You may want to filter it out when processing the users lists.
23
+ *
24
+ * ```ts
25
+ * for ( const user of editor.plugins.get( 'Users' ).users ) {
26
+ * if ( !user.isAnonymous ) {
27
+ * console.log( user.name );
28
+ * }
29
+ * }
30
+ * ```
31
+ *
32
+ * Use {@link #addUser} to add a new user.
33
+ */
34
+ readonly users: Collection<User>;
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ static get pluginName(): "Users";
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ static get requires(): readonly [typeof Permissions];
43
+ /**
44
+ * @inheritDoc
45
+ */
46
+ constructor(context: Context | Editor);
47
+ /**
48
+ * @inheritDoc
49
+ */
50
+ init(): void;
51
+ /**
52
+ * A reference to the local user or `null` if it has not been set.
53
+ */
54
+ get me(): User | null;
55
+ /**
56
+ * Adds a new user to the list of users.
57
+ */
58
+ addUser({ id, name, ...additionalData }: Partial<UserData>): User;
59
+ /**
60
+ * Returns the user with a given ID.
61
+ */
62
+ getUser(id: string): User | null;
63
+ /**
64
+ * Sets an {@link module:collaboration-core/users~User#isAnonymous anonymous user} as {@link #me the local user}.
65
+ *
66
+ * The local user ID will be set to the value of `config.users.anonymousUserId` property. All actions performed by the local user
67
+ * will be contributed to the anonymous user.
68
+ */
69
+ useAnonymousUser(): void;
70
+ /**
71
+ * Sets the user with the given ID as the local user ({@link #me}).
72
+ *
73
+ * The local user can be only set once (this includes setting anonymous as the local user).
74
+ */
75
+ defineMe(userId: string): void;
76
+ /**
77
+ * Returns the author of the operation. It returns {@link #me} by default if it is not overwritten.
78
+ */
79
+ getOperationAuthor(): User | null;
80
+ /**
81
+ * @inheritDoc
82
+ */
83
+ destroy(): void;
84
+ }
85
+ /**
86
+ * The representation of a single user that is involved in document editing.
87
+ */
88
+ export declare class User {
89
+ /**
90
+ * The ID of the user.
91
+ */
92
+ id: string;
93
+ /**
94
+ * CSS colors classes object for the user.
95
+ */
96
+ color: Color;
97
+ /**
98
+ * The name of the user.
99
+ */
100
+ name: string;
101
+ /**
102
+ * The URL pointing to the image with the avatar of the user.
103
+ *
104
+ * If avatar is not set, default avatar is used.
105
+ */
106
+ avatar: string | undefined;
107
+ /**
108
+ * @param data User data.
109
+ * @param data.id The ID of the user.
110
+ * @param data.color A helper object to generate CSS classes with the user color in the UI.
111
+ * @param data.name The name of the user.
112
+ * @param data.avatar The URL to the user avatar.
113
+ */
114
+ constructor(data: UserData);
115
+ /**
116
+ * Is `true` for the anonymous user, `false` otherwise.
117
+ *
118
+ * The anonymous user is used when there is no defined user for given resource.
119
+ *
120
+ * The situations when the anonymous user is used will depend on your application. For example, it can be used when the editor can be
121
+ * used by "guest" users of your application, or when the original user's account was removed.
122
+ */
123
+ get isAnonymous(): boolean;
124
+ /**
125
+ * The initials of the user.
126
+ *
127
+ * The initials are composed from the user name's first and last words:
128
+ *
129
+ * * for `Joe Doe`, the initials are `JD`,
130
+ * * for `Anonymous` the initials are `A`,
131
+ * * for `Katie John-Newman` the initials are `KJ`,
132
+ * * for `Adam Daniel Smith` the initials are `AS`.
133
+ */
134
+ get initials(): string;
135
+ }
136
+ /**
137
+ * The color object used to generate specified CSS classes with an individual color number assigned to the user.
138
+ */
139
+ declare class Color {
140
+ constructor(colorId: number);
141
+ /**
142
+ * Returns CSS class for user avatar background color.
143
+ */
144
+ getBackgroundColorClass(): string;
145
+ /**
146
+ * Returns CSS class for user selection highlight (the selected range).
147
+ */
148
+ getSelectionClass(): string;
149
+ /**
150
+ * Returns CSS class for user caret position element (the pipe).
151
+ */
152
+ getMarkerClass(): string;
153
+ }
154
+ type UserData = {
155
+ id: string;
156
+ color: Color;
157
+ name: string;
158
+ avatar?: string;
159
+ _isAnonymous?: boolean;
160
+ };
161
+ export {};
package/src/users.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xac86=['invalid-license-key','locale','trial-license-key-reached-limit-time','requires','ck-user__selection--','users.anonymousUserId','info','users','_getNextColor','_id','getSelectionClass','get','_lastColor','define','avatar','isAnonymous','includes','_myId','addUser','destroy','licenseKeyTrialLimit:operations','charAt','context','licenseKeyTrialLimit:time','ck-user__marker--','licenseKey','Users','useAnonymousUser','licenseKeyTrial','ck-user__bg-color--','toUpperCase','_isAnonymous','trial-license-key-reached-limit-changes','users.colorsCount','users-me-already-defined','length','name','_getInitial','init','add','Anonymous','pluginName','config','defineMe','_licenseKeyCheckInterval','anonymous-user','_locale','licenseKeyTrialLimit:revisions','initials','color','getOperationAuthor','trim','getMarkerClass','getUser'];(function(_0x5083fd,_0xac86aa){const _0x3bdfc3=function(_0x5dcbee){while(--_0x5dcbee){_0x5083fd['push'](_0x5083fd['shift']());}};_0x3bdfc3(++_0xac86aa);}(_0xac86,0x1b6));const _0x3bdf=function(_0x5083fd,_0xac86aa){_0x5083fd=_0x5083fd-0x0;let _0x3bdfc3=_0xac86[_0x5083fd];return _0x3bdfc3;};import{ContextPlugin as _0x581b8d}from'ckeditor5/src/core';import{Collection as _0x703e45,CKEditorError as _0x3cb524}from'ckeditor5/src/utils';import _0x3cf163 from'./permissions';import{getTranslation as _0x52f9a9}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x581b8d{static get[_0x3bdf('0x23')](){return _0x3bdf('0x14');}static get[_0x3bdf('0x33')](){return[_0x3cf163];}constructor(_0x24d58e){super(_0x24d58e),this[_0x3bdf('0x10')][_0x3bdf('0x24')][_0x3bdf('0x7')](_0x3bdf('0x35'),_0x3bdf('0x27')),this['context'][_0x3bdf('0x24')][_0x3bdf('0x7')](_0x3bdf('0x1b'),0x8),this[_0x3bdf('0x1')]=new _0x703e45(),this[_0x3bdf('0x28')]=_0x24d58e[_0x3bdf('0x31')],this['_licenseKeyCheckInterval']=null,this[_0x3bdf('0x6')]=0x0,this[_0x3bdf('0xb')]=null,this['decorate'](_0x3bdf('0x2c'));}[_0x3bdf('0x20')](){const _0x12afcb=this['context'];this['licenseKey']=_0x12afcb[_0x3bdf('0x24')][_0x3bdf('0x5')](_0x3bdf('0x13'));const _0x5b72af=[_0x3bdf('0x16'),'licenseKeyInvalid','licenseKeyValid',_0x3bdf('0xe'),_0x3bdf('0x11'),'licenseKeyTrialLimit:revisions'];this[_0x3bdf('0x26')]=setInterval(()=>{let _0x3bff87;for(const _0x20d339 in _0x12afcb){const _0x156d93=_0x12afcb[_0x20d339];if(_0x5b72af[_0x3bdf('0xa')](_0x156d93)){delete _0x12afcb[_0x20d339],_0x3bff87=_0x156d93;break;}}if('licenseKeyInvalid'===_0x3bff87)throw clearInterval(this[_0x3bdf('0x26')]),new _0x3cb524(_0x3bdf('0x30'),null);if('licenseKeyTrial'===_0x3bff87&&console[_0x3bdf('0x0')]('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.'),_0x3bdf('0xe')===_0x3bff87)throw clearInterval(this[_0x3bdf('0x26')]),new _0x3cb524(_0x3bdf('0x1a'),null);if(_0x3bdf('0x11')===_0x3bff87)throw clearInterval(this[_0x3bdf('0x26')]),new _0x3cb524(_0x3bdf('0x32'),null);if(_0x3bdf('0x29')===_0x3bff87)throw clearInterval(this[_0x3bdf('0x26')]),new _0x3cb524('trial-license-key-reached-limit-revisions',null);'licenseKeyValid'===_0x3bff87&&clearInterval(this[_0x3bdf('0x26')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x3bdf('0xb')]?null:this[_0x3bdf('0x2f')](this[_0x3bdf('0xb')]);}['addUser']({id:_0x325920,name:_0x8ef8ff,..._0x3a800e}){if(!_0x325920||'string'!=typeof _0x325920)throw new _0x3cb524('users-add-invalid-id');if(this[_0x3bdf('0x1')]['has'](_0x325920))throw new _0x3cb524('users-add-duplicated-id',null,{'id':_0x325920});const _0x5da33b={..._0x3a800e,'id':_0x325920,'name':a(this[_0x3bdf('0x28')],_0x8ef8ff),'color':this[_0x3bdf('0x2')]()};_0x5da33b[_0x3bdf('0x1e')]=a(this[_0x3bdf('0x28')],_0x5da33b['name']);const _0x54fafd=new User(_0x5da33b);return this[_0x3bdf('0x1')][_0x3bdf('0x21')](_0x54fafd),_0x54fafd;}[_0x3bdf('0x2f')](_0x24c69c){return this['users'][_0x3bdf('0x5')](_0x24c69c);}[_0x3bdf('0x15')](){const _0x1c99f1=this[_0x3bdf('0x10')][_0x3bdf('0x24')][_0x3bdf('0x5')]('users.anonymousUserId');this['_myId']||this[_0x3bdf('0x25')](_0x1c99f1);}['defineMe'](_0x43b9fc){if(this['_myId'])throw new _0x3cb524(_0x3bdf('0x1c'),null);if(!this[_0x3bdf('0x2f')](_0x43b9fc))throw new _0x3cb524('users-me-missing-user',null);this['_myId']=_0x43b9fc;}[_0x3bdf('0x2c')](){return this['me'];}[_0x3bdf('0xd')](){super['destroy'](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x3bdf('0x2')](){const _0x59ea08=this[_0x3bdf('0x10')]['config'][_0x3bdf('0x5')](_0x3bdf('0x1b'));return this['_lastColor']>=_0x59ea08&&(this['_lastColor']=0x0),new u(this['_lastColor']++);}['_addAnonymousUser'](){const _0x9f590c=this['context']['config']['get'](_0x3bdf('0x35'));this[_0x3bdf('0xc')]({'id':_0x9f590c,'name':_0x52f9a9(this[_0x3bdf('0x28')],_0x3bdf('0x22'))})[_0x3bdf('0x19')]=!0x0;}}export class User{constructor(_0x49bd14){this['id']=_0x49bd14['id'],this[_0x3bdf('0x2b')]=_0x49bd14[_0x3bdf('0x2b')],this[_0x3bdf('0x1e')]=_0x49bd14[_0x3bdf('0x1e')],this[_0x3bdf('0x8')]=_0x49bd14['avatar'],this['_isAnonymous']=!0x1;}get[_0x3bdf('0x9')](){return this[_0x3bdf('0x19')];}get[_0x3bdf('0x2a')](){const _0x51b9ea=this['name']['split']('\x20');return 0x1===_0x51b9ea[_0x3bdf('0x1d')]?this[_0x3bdf('0x1f')](_0x51b9ea[0x0]):this[_0x3bdf('0x1f')](_0x51b9ea[0x0])+this[_0x3bdf('0x1f')](_0x51b9ea[_0x51b9ea[_0x3bdf('0x1d')]-0x1]);}[_0x3bdf('0x1f')](_0x31d9e8){return _0x31d9e8[_0x3bdf('0xf')](0x0)[_0x3bdf('0x18')]();}}function a(_0x30e2f6,_0x4714e1=''){return''==(_0x4714e1=_0x4714e1[_0x3bdf('0x2d')]())?_0x52f9a9(_0x30e2f6,_0x3bdf('0x22')):_0x4714e1;}class u{constructor(_0x565e86){this[_0x3bdf('0x3')]=_0x565e86;}['getBackgroundColorClass'](){return _0x3bdf('0x17')+this[_0x3bdf('0x3')];}[_0x3bdf('0x4')](){return _0x3bdf('0x34')+this[_0x3bdf('0x3')];}[_0x3bdf('0x2e')](){return _0x3bdf('0x12')+this[_0x3bdf('0x3')];}}
23
+ const _0x16de=['context','_locale','getUser','useAnonymousUser','pluginName','string','_addAnonymousUser','add','locale','defineMe','users.anonymousUserId','licenseKey','includes','licenseKeyTrialLimit:operations','users-me-missing-user','licenseKeyValid','avatar','users.colorsCount','info','getBackgroundColorClass','anonymous-user','config','requires','split','charAt','licenseKeyTrialLimit:time','init','ck-user__marker--','length','licenseKeyTrial','_getInitial','trial-license-key-reached-limit-revisions','users-add-invalid-id','trim','_id','_getNextColor','users-me-already-defined','getOperationAuthor','initials','name','color','destroy','licenseKeyTrialLimit:revisions','define','Users','decorate','users-add-duplicated-id','get','addUser','_myId','Anonymous','_lastColor','_licenseKeyCheckInterval','_isAnonymous','toUpperCase','licenseKeyInvalid','has','ck-user__selection--','getMarkerClass','isAnonymous','users','trial-license-key-reached-limit-changes'];(function(_0x55a658,_0x16de49){const _0x286f6a=function(_0x386cc5){while(--_0x386cc5){_0x55a658['push'](_0x55a658['shift']());}};_0x286f6a(++_0x16de49);}(_0x16de,0x1cc));const _0x286f=function(_0x55a658,_0x16de49){_0x55a658=_0x55a658-0x0;let _0x286f6a=_0x16de[_0x55a658];return _0x286f6a;};import{ContextPlugin as _0x4938a6}from'ckeditor5/src/core';import{Collection as _0x4e1d08,CKEditorError as _0x56dd20}from'ckeditor5/src/utils';import _0x26ea13 from'./permissions';import{getTranslation as _0x1e2661}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x4938a6{static get[_0x286f('0x28')](){return _0x286f('0x12');}static get[_0x286f('0x3a')](){return[_0x26ea13];}constructor(_0x17a965){super(_0x17a965),this[_0x286f('0x24')]['config'][_0x286f('0x11')](_0x286f('0x2e'),_0x286f('0x38')),this['context']['config'][_0x286f('0x11')]('users.colorsCount',0x8),this['users']=new _0x4e1d08(),this[_0x286f('0x25')]=_0x17a965[_0x286f('0x2c')],this[_0x286f('0x1a')]=null,this[_0x286f('0x19')]=0x0,this[_0x286f('0x17')]=null,this[_0x286f('0x13')](_0x286f('0xb'));}[_0x286f('0x0')](){const _0x33a35e=this[_0x286f('0x24')];this[_0x286f('0x2f')]=_0x33a35e['config'][_0x286f('0x15')](_0x286f('0x2f'));const _0x28c235=[_0x286f('0x3'),'licenseKeyInvalid',_0x286f('0x33'),'licenseKeyTrialLimit:operations',_0x286f('0x3d'),_0x286f('0x10')];this[_0x286f('0x1a')]=setInterval(()=>{let _0x209f16;for(const _0x29da21 in _0x33a35e){const _0x4d483d=_0x33a35e[_0x29da21];if(_0x28c235[_0x286f('0x30')](_0x4d483d)){delete _0x33a35e[_0x29da21],_0x209f16=_0x4d483d;break;}}if(_0x286f('0x1d')===_0x209f16)throw clearInterval(this[_0x286f('0x1a')]),new _0x56dd20('invalid-license-key',null);if(_0x286f('0x3')===_0x209f16&&console[_0x286f('0x36')]('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.'),_0x286f('0x31')===_0x209f16)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x56dd20(_0x286f('0x23'),null);if(_0x286f('0x3d')===_0x209f16)throw clearInterval(this[_0x286f('0x1a')]),new _0x56dd20('trial-license-key-reached-limit-time',null);if(_0x286f('0x10')===_0x209f16)throw clearInterval(this[_0x286f('0x1a')]),new _0x56dd20(_0x286f('0x5'),null);_0x286f('0x33')===_0x209f16&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0x286f('0x2a')]();}get['me'](){return null==this[_0x286f('0x17')]?null:this[_0x286f('0x26')](this['_myId']);}[_0x286f('0x16')]({id:_0x40ef6d,name:_0x44eef3,..._0x15d7ea}){if(!_0x40ef6d||_0x286f('0x29')!=typeof _0x40ef6d)throw new _0x56dd20(_0x286f('0x6'));if(this[_0x286f('0x22')][_0x286f('0x1e')](_0x40ef6d))throw new _0x56dd20(_0x286f('0x14'),null,{'id':_0x40ef6d});const _0x1dc794={..._0x15d7ea,'id':_0x40ef6d,'name':a(this['_locale'],_0x44eef3),'color':this[_0x286f('0x9')]()};_0x1dc794[_0x286f('0xd')]=a(this[_0x286f('0x25')],_0x1dc794[_0x286f('0xd')]);const _0x1ccb20=new User(_0x1dc794);return this[_0x286f('0x22')][_0x286f('0x2b')](_0x1ccb20),_0x1ccb20;}['getUser'](_0x386a47){return this[_0x286f('0x22')]['get'](_0x386a47);}[_0x286f('0x27')](){const _0x3b8d54=this[_0x286f('0x24')][_0x286f('0x39')][_0x286f('0x15')](_0x286f('0x2e'));this[_0x286f('0x17')]||this[_0x286f('0x2d')](_0x3b8d54);}['defineMe'](_0x402e61){if(this[_0x286f('0x17')])throw new _0x56dd20(_0x286f('0xa'),null);if(!this[_0x286f('0x26')](_0x402e61))throw new _0x56dd20(_0x286f('0x32'),null);this[_0x286f('0x17')]=_0x402e61;}['getOperationAuthor'](){return this['me'];}[_0x286f('0xf')](){super['destroy'](),clearInterval(this[_0x286f('0x1a')]);}[_0x286f('0x9')](){const _0x1aba40=this['context'][_0x286f('0x39')][_0x286f('0x15')](_0x286f('0x35'));return this[_0x286f('0x19')]>=_0x1aba40&&(this['_lastColor']=0x0),new u(this[_0x286f('0x19')]++);}[_0x286f('0x2a')](){const _0x41224a=this[_0x286f('0x24')]['config'][_0x286f('0x15')]('users.anonymousUserId');this[_0x286f('0x16')]({'id':_0x41224a,'name':_0x1e2661(this['_locale'],_0x286f('0x18'))})['_isAnonymous']=!0x0;}}export class User{constructor(_0x4ada04){this['id']=_0x4ada04['id'],this[_0x286f('0xe')]=_0x4ada04[_0x286f('0xe')],this[_0x286f('0xd')]=_0x4ada04['name'],this[_0x286f('0x34')]=_0x4ada04[_0x286f('0x34')],this[_0x286f('0x1b')]=!0x1;}get[_0x286f('0x21')](){return this[_0x286f('0x1b')];}get[_0x286f('0xc')](){const _0x2dffb5=this[_0x286f('0xd')][_0x286f('0x3b')]('\x20');return 0x1===_0x2dffb5[_0x286f('0x2')]?this[_0x286f('0x4')](_0x2dffb5[0x0]):this[_0x286f('0x4')](_0x2dffb5[0x0])+this['_getInitial'](_0x2dffb5[_0x2dffb5[_0x286f('0x2')]-0x1]);}[_0x286f('0x4')](_0x13fb5b){return _0x13fb5b[_0x286f('0x3c')](0x0)[_0x286f('0x1c')]();}}function a(_0x59881f,_0x5b291e=''){return''==(_0x5b291e=_0x5b291e[_0x286f('0x7')]())?_0x1e2661(_0x59881f,_0x286f('0x18')):_0x5b291e;}class u{constructor(_0x488494){this[_0x286f('0x8')]=_0x488494;}[_0x286f('0x37')](){return'ck-user__bg-color--'+this[_0x286f('0x8')];}['getSelectionClass'](){return _0x286f('0x1f')+this[_0x286f('0x8')];}[_0x286f('0x20')](){return _0x286f('0x1')+this[_0x286f('0x8')];}}
@@ -1,9 +1,9 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module collaboration-core/utils/common-translations
7
- */
8
- import type { Locale } from 'ckeditor5/src/utils';
9
- export declare function getTranslation(locale: Locale, id: string): string;
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module collaboration-core/utils/common-translations
7
+ */
8
+ import type { Locale } from 'ckeditor5/src/utils';
9
+ export declare function getTranslation(locale: Locale, id: string): string;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x60cc7,_0x293fbe){const t=_0x60cc7['t'];switch(_0x293fbe){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'';}}
23
+ export function getTranslation(_0x2b4476,_0x44d6b3){const t=_0x2b4476['t'];switch(_0x44d6b3){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'';}}
@@ -1,20 +1,20 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/comments/ui/view/confirmmixin
7
- */
8
- import type { View } from 'ckeditor5/src/ui';
9
- import type { Locale, Mixed } from 'ckeditor5/src/utils';
10
- /**
11
- * Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure
12
- * Confirm is always set to the `content` collection at the last position.
13
- */
14
- export default function ConfirmMixin<Base extends new (...args: Array<any>) => View>(base: Base): Mixed<Base, ConfirmApi>;
15
- export interface ConfirmApi {
16
- isConfirm: boolean;
17
- locale: Locale;
18
- showConfirm(message: string, element: Element): Promise<unknown>;
19
- cancelConfirm(): void;
20
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/ui/view/confirmmixin
7
+ */
8
+ import type { View } from 'ckeditor5/src/ui';
9
+ import type { Locale, Mixed } from 'ckeditor5/src/utils';
10
+ /**
11
+ * Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure
12
+ * Confirm is always set to the `content` collection at the last position.
13
+ */
14
+ export default function ConfirmMixin<Base extends new (...args: Array<any>) => View>(base: Base): Mixed<Base, ConfirmApi>;
15
+ export interface ConfirmApi {
16
+ isConfirm: boolean;
17
+ locale: Locale;
18
+ showConfirm(message: string, element: Element): Promise<unknown>;
19
+ cancelConfirm(): void;
20
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5e35=['remove','submit','destroy','once','showConfirm','deregisterChild','confirmView','appendChild','locale','isConfirm','render','_removeConfirm','set','cancel','registerChild','element','cancelConfirm','message','focus'];(function(_0xb43ebd,_0x5e358f){var _0x247f24=function(_0x5ec2f3){while(--_0x5ec2f3){_0xb43ebd['push'](_0xb43ebd['shift']());}};_0x247f24(++_0x5e358f);}(_0x5e35,0x93));var _0x247f=function(_0xb43ebd,_0x5e358f){_0xb43ebd=_0xb43ebd-0x0;var _0x247f24=_0x5e35[_0xb43ebd];return _0x247f24;};import _0x5ac9d2 from'./confirmview';export default function m(_0x1d2497){return class extends _0x1d2497{[_0x247f('0x9')](_0x2dee4a,_0x1a1814){return this['confirmView']=new _0x5ac9d2(this[_0x247f('0xd')]),this[_0x247f('0xb')][_0x247f('0xf')](),this['confirmView'][_0x247f('0x3')]=_0x2dee4a,this[_0x247f('0xb')][_0x247f('0x8')](_0x247f('0x12'),()=>{this[_0x247f('0x10')]();}),this[_0x247f('0xb')][_0x247f('0x8')](_0x247f('0x6'),()=>{this[_0x247f('0x10')]();}),_0x1a1814[_0x247f('0xc')](this[_0x247f('0xb')][_0x247f('0x1')]),this[_0x247f('0x0')](this[_0x247f('0xb')]),this[_0x247f('0x1')]['focus'](),this[_0x247f('0x11')](_0x247f('0xe'),!0x0),new Promise(_0x399085=>this[_0x247f('0xb')]['on'](_0x247f('0x6'),_0x399085));}[_0x247f('0x2')](){this[_0x247f('0xe')]&&this['confirmView']['fire'](_0x247f('0x12'));}[_0x247f('0x10')](){this[_0x247f('0x1')]&&this[_0x247f('0xb')]&&this['confirmView']['element']&&(this['element'][_0x247f('0x4')](),this[_0x247f('0xb')]['element'][_0x247f('0x5')](),this[_0x247f('0xa')](this[_0x247f('0xb')]),this['isConfirm']=!0x1,this['confirmView'][_0x247f('0x7')](),this['confirmView']=void 0x0);}};}
23
+ var _0x37bd=['appendChild','set','destroy','_removeConfirm','deregisterChild','showConfirm','registerChild','isConfirm','focus','cancel','confirmView','once','element','render','locale','fire'];(function(_0x55eee5,_0x37bddb){var _0x5f2813=function(_0x3cdda4){while(--_0x3cdda4){_0x55eee5['push'](_0x55eee5['shift']());}};_0x5f2813(++_0x37bddb);}(_0x37bd,0x7a));var _0x5f28=function(_0x55eee5,_0x37bddb){_0x55eee5=_0x55eee5-0x0;var _0x5f2813=_0x37bd[_0x55eee5];return _0x5f2813;};import _0x529d28 from'./confirmview';export default function m(_0x1f11cf){return class extends _0x1f11cf{[_0x5f28('0xb')](_0x5c4253,_0x4568fd){return this['confirmView']=new _0x529d28(this[_0x5f28('0x4')]),this[_0x5f28('0x0')][_0x5f28('0x3')](),this[_0x5f28('0x0')]['message']=_0x5c4253,this[_0x5f28('0x0')][_0x5f28('0x1')](_0x5f28('0xf'),()=>{this[_0x5f28('0x9')]();}),this[_0x5f28('0x0')][_0x5f28('0x1')]('submit',()=>{this[_0x5f28('0x9')]();}),_0x4568fd[_0x5f28('0x6')](this['confirmView'][_0x5f28('0x2')]),this[_0x5f28('0xc')](this[_0x5f28('0x0')]),this[_0x5f28('0x2')][_0x5f28('0xe')](),this[_0x5f28('0x7')](_0x5f28('0xd'),!0x0),new Promise(_0x13933d=>this[_0x5f28('0x0')]['on']('submit',_0x13933d));}['cancelConfirm'](){this[_0x5f28('0xd')]&&this[_0x5f28('0x0')][_0x5f28('0x5')](_0x5f28('0xf'));}[_0x5f28('0x9')](){this[_0x5f28('0x2')]&&this[_0x5f28('0x0')]&&this[_0x5f28('0x0')][_0x5f28('0x2')]&&(this['element'][_0x5f28('0xe')](),this['confirmView'][_0x5f28('0x2')]['remove'](),this[_0x5f28('0xa')](this[_0x5f28('0x0')]),this[_0x5f28('0xd')]=!0x1,this[_0x5f28('0x0')][_0x5f28('0x8')](),this[_0x5f28('0x0')]=void 0x0);}};}
@@ -1,13 +1,13 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module comments/comments/ui/view/confirmview
7
- */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
10
- export default class ConfirmView extends View {
11
- message: string;
12
- constructor(locale: Locale);
13
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module comments/comments/ui/view/confirmview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import type { Locale } from 'ckeditor5/src/utils';
10
+ export default class ConfirmView extends View {
11
+ message: string;
12
+ constructor(locale: Locale);
13
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x266b=['ck-thread__remove-confirm','extendTemplate','cancel','ck-thread__remove-confirm-inner','icon','execute','Yes','fire','bindTemplate','Are\x20you\x20sure?','submit','submitView','cancelView','message','label','set','_createButtonView','div'];(function(_0x1b1106,_0x266beb){const _0x2b8522=function(_0x2346ab){while(--_0x2346ab){_0x1b1106['push'](_0x1b1106['shift']());}};_0x2b8522(++_0x266beb);}(_0x266b,0xd5));const _0x2b85=function(_0x1b1106,_0x266beb){_0x1b1106=_0x1b1106-0x0;let _0x2b8522=_0x266b[_0x1b1106];return _0x2b8522;};import{View as _0x27f2f6,ButtonView as _0x59d7c5}from'ckeditor5/src/ui';import{icons as _0x4966be}from'ckeditor5/src/core';import{getTranslation as _0x557f14}from'./common-translations';export default class h extends _0x27f2f6{constructor(_0x2d02cd){super(_0x2d02cd);const _0x415686=this[_0x2b85('0xb')];this[_0x2b85('0xe')]=this['_createButtonView'](_0x2d02cd,_0x557f14(_0x2d02cd,_0x2b85('0x9')),_0x4966be['check'],_0x2b85('0xd')),this[_0x2b85('0xf')]=this[_0x2b85('0x1')](_0x2d02cd,_0x557f14(_0x2d02cd,'No'),_0x4966be[_0x2b85('0x5')],_0x2b85('0x5')),this[_0x2b85('0x0')](_0x2b85('0x10'),_0x557f14(_0x2d02cd,_0x2b85('0xc'))),this['setTemplate']({'tag':'div','attributes':{'class':[_0x2b85('0x3')]},'children':[{'tag':_0x2b85('0x2'),'attributes':{'class':_0x2b85('0x6')},'children':[{'tag':'p','children':[{'text':_0x415686['to'](_0x2b85('0x10'))}]},{'tag':_0x2b85('0x2'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x2b85('0xe')],this['cancelView']]}]}]});}['_createButtonView'](_0x1484c4,_0x462e80,_0x2ad46a,_0x3c4410){const _0x5552a9=new _0x59d7c5(_0x1484c4);return _0x5552a9[_0x2b85('0x11')]=_0x462e80,_0x5552a9[_0x2b85('0x7')]=_0x2ad46a,_0x5552a9[_0x2b85('0x4')]({'attributes':{'class':'ck-thread__remove-confirm-'+_0x3c4410}}),_0x5552a9['on'](_0x2b85('0x8'),()=>this[_0x2b85('0xa')](_0x3c4410)),_0x5552a9;}}
23
+ const _0x2a94=['cancel','ck-thread__remove-confirm','bindTemplate','set','setTemplate','submit','icon','fire','cancelView','ck-thread__remove-confirm-','label','div','submitView','message','check','execute'];(function(_0x35cb57,_0x2a9457){const _0x39db85=function(_0x567752){while(--_0x567752){_0x35cb57['push'](_0x35cb57['shift']());}};_0x39db85(++_0x2a9457);}(_0x2a94,0x146));const _0x39db=function(_0x35cb57,_0x2a9457){_0x35cb57=_0x35cb57-0x0;let _0x39db85=_0x2a94[_0x35cb57];return _0x39db85;};import{View as _0x49fe4c,ButtonView as _0x1487e8}from'ckeditor5/src/ui';import{icons as _0x5a2ac7}from'ckeditor5/src/core';import{getTranslation as _0x395d31}from'./common-translations';export default class h extends _0x49fe4c{constructor(_0x10939e){super(_0x10939e);const _0xe0d727=this[_0x39db('0xc')];this['submitView']=this['_createButtonView'](_0x10939e,_0x395d31(_0x10939e,'Yes'),_0x5a2ac7[_0x39db('0x8')],_0x39db('0xf')),this[_0x39db('0x2')]=this['_createButtonView'](_0x10939e,_0x395d31(_0x10939e,'No'),_0x5a2ac7['cancel'],_0x39db('0xa')),this[_0x39db('0xd')]('message',_0x395d31(_0x10939e,'Are\x20you\x20sure?')),this[_0x39db('0xe')]({'tag':'div','attributes':{'class':[_0x39db('0xb')]},'children':[{'tag':_0x39db('0x5'),'attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0xe0d727['to'](_0x39db('0x7'))}]},{'tag':_0x39db('0x5'),'attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this[_0x39db('0x6')],this[_0x39db('0x2')]]}]}]});}['_createButtonView'](_0x35bc91,_0x32e301,_0x4b4aa3,_0x367c67){const _0x34c1f3=new _0x1487e8(_0x35bc91);return _0x34c1f3[_0x39db('0x4')]=_0x32e301,_0x34c1f3[_0x39db('0x0')]=_0x4b4aa3,_0x34c1f3['extendTemplate']({'attributes':{'class':_0x39db('0x3')+_0x367c67}}),_0x34c1f3['on'](_0x39db('0x9'),()=>this[_0x39db('0x1')](_0x367c67)),_0x34c1f3;}}